Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .changeset/vue-renderer.md

This file was deleted.

8 changes: 8 additions & 0 deletions examples/renderers/mdma-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# mdma-example-vue

## 0.0.2

### Patch Changes

- Updated dependencies [19977c0]
- @mobile-reality/mdma-renderer-vue@0.2.0
2 changes: 1 addition & 1 deletion examples/renderers/mdma-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mdma-example-vue",
"private": true,
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"description": "Frontend-only Vue 3 agent chat: streams an OpenRouter model and renders its MDMA replies with @mobile-reality/mdma-renderer-vue.",
"scripts": {
Expand Down
26 changes: 26 additions & 0 deletions packages/renderer-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# @mobile-reality/mdma-renderer-vue

## 0.2.0

### Minor Changes

- 19977c0: Add `@mobile-reality/mdma-renderer-vue`, a Vue 3 renderer for MDMA documents.

It turns a parsed MDMA document into interactive Vue 3 components — forms, tables, charts,
approval gates, and the rest of the component catalog — with full state, bindings, actions,
policy, audit, and PII redaction, all from the headless `spec` + `runtime` stack. Give
`MdmaDocument` an AST and a document store and it renders the live UI and dispatches user
interactions back into the store.

- **State via composables.** `useComponentState`, `useBinding`, and `useDocumentState` return
`ComputedRef`s, so reads stay reactive.
- **provide/inject wiring.** `MdmaProvider`, `MdmaThemeProvider`, element overrides, and custom
variants are supplied through Vue's provide/inject with exported `InjectionKey`s.
- **Themeable.** Ships `styles.css` driven by `--mdma-*` variables; pass a `theme` prop
(`"light" | "dark" | "auto"`, or a full `MdmaTheme`) to `MdmaDocument`.
- **Customizable.** Override any built-in component via `customizations.components`, or draw a
host-registered `custom` block via `customizations.customVariants`; custom renderers spread the
exported `blockRendererProps` declaration.

Components are authored as `defineComponent` + `h()` in plain `.ts` — no `.vue` SFCs — so the
package builds with `tsc` and needs no bundler.
7 changes: 5 additions & 2 deletions packages/renderer-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mobile-reality/mdma-renderer-vue",
"version": "0.1.0",
"version": "0.2.0",
"keywords": [
"mdma",
"markdown",
Expand Down Expand Up @@ -45,7 +45,10 @@
"vitest": "^3.2.0",
"vue": "^3.5.0"
},
"files": ["dist", "styles.css"],
"files": [
"dist",
"styles.css"
],
"publishConfig": {
"access": "public"
},
Expand Down