@niscorp/nova 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/dist/adapters/dom/index.cjs +5 -5
- package/dist/adapters/dom/index.js +3 -3
- package/dist/adapters/dom/server.cjs +4 -4
- package/dist/adapters/dom/server.js +3 -3
- package/dist/adapters/react/components/index.cjs +23 -23
- package/dist/adapters/react/components/index.d.cts +2 -2
- package/dist/adapters/react/components/index.d.ts +2 -2
- package/dist/adapters/react/components/index.js +4 -4
- package/dist/adapters/react/index.cjs +26 -26
- package/dist/adapters/react/index.js +4 -4
- package/dist/adapters/tty/index.cjs +2 -2
- package/dist/adapters/tty/index.js +2 -2
- package/dist/adapters/vue/components/index.cjs +23 -23
- package/dist/adapters/vue/components/index.d.cts +10 -10
- package/dist/adapters/vue/components/index.d.ts +10 -10
- package/dist/adapters/vue/components/index.js +4 -4
- package/dist/adapters/vue/index.cjs +31 -31
- package/dist/adapters/vue/index.js +5 -5
- package/dist/{chunk-F2H7WP6R.js → chunk-7MATRNZZ.js} +5 -5
- package/dist/{chunk-F2H7WP6R.js.map → chunk-7MATRNZZ.js.map} +1 -1
- package/dist/{chunk-3IPM5QBT.cjs → chunk-AGEAMUQR.cjs} +6 -6
- package/dist/{chunk-3IPM5QBT.cjs.map → chunk-AGEAMUQR.cjs.map} +1 -1
- package/dist/{chunk-OO247V4J.cjs → chunk-ECFWPZGL.cjs} +34 -34
- package/dist/{chunk-OO247V4J.cjs.map → chunk-ECFWPZGL.cjs.map} +1 -1
- package/dist/{chunk-VOD5JA4D.js → chunk-EG45GQOE.js} +3 -3
- package/dist/{chunk-VOD5JA4D.js.map → chunk-EG45GQOE.js.map} +1 -1
- package/dist/{chunk-5AF72LOE.cjs → chunk-HYFNOF7Y.cjs} +4 -4
- package/dist/{chunk-5AF72LOE.cjs.map → chunk-HYFNOF7Y.cjs.map} +1 -1
- package/dist/{chunk-TMLNVU5W.cjs → chunk-M3UFIUXK.cjs} +7 -7
- package/dist/{chunk-TMLNVU5W.cjs.map → chunk-M3UFIUXK.cjs.map} +1 -1
- package/dist/{chunk-DU2VIJAF.js → chunk-P5SJ3QXJ.js} +3 -3
- package/dist/{chunk-DU2VIJAF.js.map → chunk-P5SJ3QXJ.js.map} +1 -1
- package/dist/{chunk-IZ2UU5UL.cjs → chunk-PBPUSZIQ.cjs} +2 -2
- package/dist/chunk-PBPUSZIQ.cjs.map +1 -0
- package/dist/{chunk-SVNK5NIK.js → chunk-QLFHYHJ2.js} +4 -4
- package/dist/{chunk-SVNK5NIK.js.map → chunk-QLFHYHJ2.js.map} +1 -1
- package/dist/{chunk-G4LSLLGI.js → chunk-RB4OMSPA.js} +5 -5
- package/dist/{chunk-G4LSLLGI.js.map → chunk-RB4OMSPA.js.map} +1 -1
- package/dist/{chunk-3JRTELLC.js → chunk-X5JTZ5LW.js} +3 -3
- package/dist/{chunk-3JRTELLC.js.map → chunk-X5JTZ5LW.js.map} +1 -1
- package/dist/{chunk-Y6XVPRYH.js → chunk-XUSKGJRI.js} +2 -2
- package/dist/chunk-XUSKGJRI.js.map +1 -0
- package/dist/{chunk-WGPFR7MN.cjs → chunk-Z7CS43ZT.cjs} +22 -22
- package/dist/{chunk-WGPFR7MN.cjs.map → chunk-Z7CS43ZT.cjs.map} +1 -1
- package/dist/{chunk-TRJYDVWK.cjs → chunk-ZYTWQZZC.cjs} +21 -21
- package/dist/{chunk-TRJYDVWK.cjs.map → chunk-ZYTWQZZC.cjs.map} +1 -1
- package/dist/devtools/index.cjs +5 -5
- package/dist/devtools/index.js +2 -2
- package/dist/index.cjs +40 -40
- package/dist/index.js +2 -2
- package/dist/reflect/index.cjs +20 -20
- package/dist/reflect/index.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-IZ2UU5UL.cjs.map +0 -1
- package/dist/chunk-Y6XVPRYH.js.map +0 -1
- package/dist/{primitive-props-Cl5jiC8g.d.cts → primitive-props-CGoJvmcH.d.cts} +5 -5
- package/dist/{primitive-props-Cl5jiC8g.d.ts → primitive-props-CGoJvmcH.d.ts} +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkHYFNOF7Y_cjs = require('./chunk-HYFNOF7Y.cjs');
|
|
4
|
+
var chunkECFWPZGL_cjs = require('./chunk-ECFWPZGL.cjs');
|
|
5
5
|
var chunkPNQY6OFB_cjs = require('./chunk-PNQY6OFB.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkPBPUSZIQ_cjs = require('./chunk-PBPUSZIQ.cjs');
|
|
7
7
|
var vue = require('vue');
|
|
8
8
|
|
|
9
9
|
var px = (value) => `${value ?? 0}px`;
|
|
@@ -39,7 +39,7 @@ var Stack = Object.assign(
|
|
|
39
39
|
),
|
|
40
40
|
{ name: "NovaStack", props: ["direction", "gap", "align", "justify", "padding", "wrap"], inheritAttrs: false }
|
|
41
41
|
),
|
|
42
|
-
{ meta: { description: "Flex container that arranges children in a row or column.", propsSchema:
|
|
42
|
+
{ meta: { description: "Flex container that arranges children in a row or column.", propsSchema: chunkHYFNOF7Y_cjs.StackPropsSchema } }
|
|
43
43
|
);
|
|
44
44
|
var Box = Object.assign(
|
|
45
45
|
vue.defineComponent(
|
|
@@ -60,7 +60,7 @@ var Box = Object.assign(
|
|
|
60
60
|
{
|
|
61
61
|
meta: {
|
|
62
62
|
description: "Generic container with basic styling props. Use Stack for layout, Box for visual wrapping.",
|
|
63
|
-
propsSchema:
|
|
63
|
+
propsSchema: chunkHYFNOF7Y_cjs.BoxPropsSchema
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
);
|
|
@@ -91,7 +91,7 @@ var Text = Object.assign(
|
|
|
91
91
|
),
|
|
92
92
|
{ name: "NovaText", props: ["as", "size", "weight", "color"], inheritAttrs: false }
|
|
93
93
|
),
|
|
94
|
-
{ meta: { description: "Text element with semantic typography props.", propsSchema:
|
|
94
|
+
{ meta: { description: "Text element with semantic typography props.", propsSchema: chunkHYFNOF7Y_cjs.TextPropsSchema } }
|
|
95
95
|
);
|
|
96
96
|
|
|
97
97
|
// src/adapters/vue/context.ts
|
|
@@ -193,7 +193,7 @@ var Button = Object.assign(
|
|
|
193
193
|
},
|
|
194
194
|
{ name: "NovaButton", props: ["label", "variant", "disabled", "novaRef"], inheritAttrs: false }
|
|
195
195
|
),
|
|
196
|
-
{ meta: { description: "Clickable button. Click events fire as `ui:click` with the layout node's ref.", propsSchema:
|
|
196
|
+
{ meta: { description: "Clickable button. Click events fire as `ui:click` with the layout node's ref.", propsSchema: chunkHYFNOF7Y_cjs.ButtonPropsSchema } }
|
|
197
197
|
);
|
|
198
198
|
var inputStyle = (isDisabled, isFocused, isHovered) => ({
|
|
199
199
|
padding: "8px 12px",
|
|
@@ -275,7 +275,7 @@ var Input = Object.assign(
|
|
|
275
275
|
inheritAttrs: false
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
{ meta: { description: "Text input bound to data via the `model` field on the layout node.", propsSchema:
|
|
278
|
+
{ meta: { description: "Text input bound to data via the `model` field on the layout node.", propsSchema: chunkHYFNOF7Y_cjs.InputPropsSchema } }
|
|
279
279
|
);
|
|
280
280
|
var HEADER_BUTTON_STYLE = {
|
|
281
281
|
border: "none",
|
|
@@ -317,7 +317,7 @@ var Panel = Object.assign(
|
|
|
317
317
|
{
|
|
318
318
|
meta: {
|
|
319
319
|
description: "A framed, elevated surface with an optional title; `closeRef` adds a header \u2715.",
|
|
320
|
-
propsSchema:
|
|
320
|
+
propsSchema: chunkHYFNOF7Y_cjs.PanelPropsSchema
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
);
|
|
@@ -347,7 +347,7 @@ var JsonTree = Object.assign(
|
|
|
347
347
|
),
|
|
348
348
|
{ name: "NovaJsonTree", props: ["value", "label"], inheritAttrs: false }
|
|
349
349
|
),
|
|
350
|
-
{ meta: { description: "A collapsible view of any JSON value.", propsSchema:
|
|
350
|
+
{ meta: { description: "A collapsible view of any JSON value.", propsSchema: chunkHYFNOF7Y_cjs.JsonTreePropsSchema } }
|
|
351
351
|
);
|
|
352
352
|
var bindShell = (binding) => {
|
|
353
353
|
const source = useShellSource();
|
|
@@ -445,7 +445,7 @@ var HeadMark = vue.defineComponent(
|
|
|
445
445
|
);
|
|
446
446
|
var provideShellHead = (shell) => {
|
|
447
447
|
let held = shell();
|
|
448
|
-
const head = vue.shallowRef(
|
|
448
|
+
const head = vue.shallowRef(chunkHYFNOF7Y_cjs.createShellHead(held));
|
|
449
449
|
vue.provide(ShellHeadKey, head);
|
|
450
450
|
vue.onMounted(() => {
|
|
451
451
|
vue.watch(
|
|
@@ -453,7 +453,7 @@ var provideShellHead = (shell) => {
|
|
|
453
453
|
(next, _previous, onCleanup) => {
|
|
454
454
|
if (next !== held) {
|
|
455
455
|
held = next;
|
|
456
|
-
head.value =
|
|
456
|
+
head.value = chunkHYFNOF7Y_cjs.createShellHead(next);
|
|
457
457
|
}
|
|
458
458
|
onCleanup(head.value.watch());
|
|
459
459
|
},
|
|
@@ -466,7 +466,7 @@ var provideShellHead = (shell) => {
|
|
|
466
466
|
var isNovaComponent = (value) => typeof value === "function" || typeof value === "object" && value !== null;
|
|
467
467
|
|
|
468
468
|
// src/adapters/vue/render-node.ts
|
|
469
|
-
var childViews = (children) => children.map((child, i) => vue.h(RenderNodeView, { node: child, key:
|
|
469
|
+
var childViews = (children) => children.map((child, i) => vue.h(RenderNodeView, { node: child, key: chunkPBPUSZIQ_cjs.renderNodeKey(child, i) }));
|
|
470
470
|
var renderNode = (ctx, node) => {
|
|
471
471
|
if (node.type === "text") return vue.createTextVNode(node.value);
|
|
472
472
|
if (node.type === "fragment") return vue.h(RenderTree, { nodes: node.children });
|
|
@@ -476,8 +476,8 @@ var renderNode = (ctx, node) => {
|
|
|
476
476
|
const component = isNovaComponent(registered) ? registered : ctx.fallback;
|
|
477
477
|
if (component === void 0) return vue.h(ErrorMarker, { code: "COMPONENT_NOT_FOUND", message: node.name });
|
|
478
478
|
const props = { ...node.props };
|
|
479
|
-
if (node.model !== void 0) props[
|
|
480
|
-
if (node.ref !== void 0) props[
|
|
479
|
+
if (node.model !== void 0) props[chunkPBPUSZIQ_cjs.NOVA_MODEL_PROP] = { ref: node.model.ref, path: node.model.path };
|
|
480
|
+
if (node.ref !== void 0) props[chunkPBPUSZIQ_cjs.NOVA_REF_PROP] = node.ref;
|
|
481
481
|
const { children } = node;
|
|
482
482
|
if (children.length === 0) return vue.h(component, props);
|
|
483
483
|
if (!children.some(chunkPNQY6OFB_cjs.isHeadNode)) return vue.h(component, props, { default: () => childViews(children) });
|
|
@@ -498,7 +498,7 @@ var RenderNodeView = vue.defineComponent(
|
|
|
498
498
|
|
|
499
499
|
// src/adapters/vue/render-tree.ts
|
|
500
500
|
var RenderTree = vue.defineComponent(
|
|
501
|
-
(props) => () => props.nodes.map((node, i) => vue.h(RenderNodeView, { node, key:
|
|
501
|
+
(props) => () => props.nodes.map((node, i) => vue.h(RenderNodeView, { node, key: chunkPBPUSZIQ_cjs.renderNodeKey(node, i) })),
|
|
502
502
|
{ name: "NovaRenderTree", props: ["nodes"] }
|
|
503
503
|
);
|
|
504
504
|
|
|
@@ -514,7 +514,7 @@ var CanvasSlot = Object.assign(
|
|
|
514
514
|
{
|
|
515
515
|
meta: {
|
|
516
516
|
description: "Renders a canvas by id, recursing into its actionLayout.",
|
|
517
|
-
propsSchema:
|
|
517
|
+
propsSchema: chunkHYFNOF7Y_cjs.CanvasSlotPropsSchema
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
);
|
|
@@ -527,7 +527,7 @@ var InstanceScope = vue.defineComponent(
|
|
|
527
527
|
return parent.registry;
|
|
528
528
|
},
|
|
529
529
|
get dispatch() {
|
|
530
|
-
return
|
|
530
|
+
return chunkECFWPZGL_cjs.scopeDispatch(parent.dispatch, props.instanceId);
|
|
531
531
|
},
|
|
532
532
|
get publish() {
|
|
533
533
|
return parent.publish;
|
|
@@ -570,7 +570,7 @@ var ActionSlot = Object.assign(
|
|
|
570
570
|
{
|
|
571
571
|
meta: {
|
|
572
572
|
description: "Renders an action instance by id. Used inside a canvas actionLayout.",
|
|
573
|
-
propsSchema:
|
|
573
|
+
propsSchema: chunkHYFNOF7Y_cjs.ActionSlotPropsSchema
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
);
|
|
@@ -619,5 +619,5 @@ exports.useShell = useShell;
|
|
|
619
619
|
exports.useShellRenderTree = useShellRenderTree;
|
|
620
620
|
exports.useShellState = useShellState;
|
|
621
621
|
exports.useSlotWrapper = useSlotWrapper;
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
623
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-ZYTWQZZC.cjs.map
|
|
623
|
+
//# sourceMappingURL=chunk-ZYTWQZZC.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/adapters/vue/components/layout.ts","../src/adapters/vue/context.ts","../src/adapters/vue/composables/context.ts","../src/adapters/vue/components/controls.ts","../src/adapters/vue/components/introspection.ts","../src/adapters/vue/composables/shell.ts","../src/adapters/vue/error-marker.ts","../src/adapters/vue/head.ts","../src/adapters/vue/types.ts","../src/adapters/vue/render-node.ts","../src/adapters/vue/render-tree.ts","../src/adapters/vue/components/slots.ts","../src/adapters/vue/components/index.ts"],"names":["defineComponent","h","StackPropsSchema","BoxPropsSchema","TextPropsSchema","inject","shallowRef","ButtonPropsSchema","onBeforeUnmount","InputPropsSchema","PanelPropsSchema","JsonTreePropsSchema","watch","toValue","onMounted","createShellHead","provide","renderNodeKey","createTextVNode","isHeadNode","NOVA_MODEL_PROP","NOVA_REF_PROP","Fragment","CanvasSlotPropsSchema","scopeDispatch","ActionSlotPropsSchema"],"mappings":";;;;;;;;AAiBA,IAAM,EAAA,GAAK,CAAC,KAAA,KAAsC,CAAA,EAAG,SAAS,CAAC,CAA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,EAAkB,KAAA,EAAO,CAAC,YAAY,CAAA,EAAG,cAAc,KAAA;AAAM,GACvE;AAAA,EACA;AAAA,IACE,IAAA,EAAM;AAAA,MACJ,WAAA,EAAa,sEAAA;AAAA,MACb,WAAA,EAAawB;AAAA;AACf;AAEJ;;;ACrEO,IAAM,yBAAA,GAA4B,CAAC,QAAA,KAAsC;AAC9E,EAAA,QAAA,CAAS,WAAA,CAAY;AAAA,IACnB,KAAA;AAAA,IACA,IAAA;AAAA,IACA,KAAA;AAAA,IACA,MAAA;AAAA,IACA,GAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACD,CAAA;AACH","file":"chunk-TRJYDVWK.cjs","sourcesContent":["import { defineComponent, h } from 'vue';\nimport {\n BoxPropsSchema,\n StackPropsSchema,\n TextPropsSchema,\n type BoxProps,\n type StackProps,\n type TextProps,\n} from '../../primitive-props';\n\n// ═══════════════════════════════════════════════════════════\n// The layout primitives — Stack, Box, Text. Headless reference looks (inline\n// styles, as the React kit's); an app's kit is where its real look lives.\n// ═══════════════════════════════════════════════════════════\n\nexport { StackPropsSchema, type StackProps, BoxPropsSchema, type BoxProps, TextPropsSchema, type TextProps };\n\nconst px = (value: number | undefined): string => `${value ?? 0}px`;\n\n// ─── Stack ─────────────────────────────────────────────────\n\nconst ALIGN_MAP = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n} as const;\n\nconst JUSTIFY_MAP = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n between: 'space-between',\n around: 'space-around',\n} as const;\n\nexport const Stack = Object.assign(\n defineComponent(\n (props: StackProps, { slots }) =>\n () =>\n h(\n 'div',\n {\n style: {\n display: 'flex',\n flexDirection: props.direction ?? 'column',\n gap: px(props.gap),\n alignItems: ALIGN_MAP[props.align ?? 'stretch'],\n justifyContent: JUSTIFY_MAP[props.justify ?? 'start'],\n padding: px(props.padding),\n flexWrap: props.wrap === true ? 'wrap' : 'nowrap',\n },\n },\n slots.default?.(),\n ),\n { name: 'NovaStack', props: ['direction', 'gap', 'align', 'justify', 'padding', 'wrap'], inheritAttrs: false },\n ),\n { meta: { description: 'Flex container that arranges children in a row or column.', propsSchema: StackPropsSchema } },\n);\n\n// ─── Box ───────────────────────────────────────────────────\n\nexport const Box = Object.assign(\n defineComponent(\n (props: BoxProps, { slots }) =>\n () =>\n h(\n 'div',\n {\n style: {\n padding: px(props.padding),\n background: props.background ?? 'transparent',\n border: props.border === true ? '1px solid #e5e7eb' : 'none',\n borderRadius: px(props.radius),\n },\n },\n slots.default?.(),\n ),\n { name: 'NovaBox', props: ['padding', 'background', 'border', 'radius'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'Generic container with basic styling props. Use Stack for layout, Box for visual wrapping.',\n propsSchema: BoxPropsSchema,\n },\n },\n);\n\n// ─── Text ──────────────────────────────────────────────────\n\nconst SIZE_MAP = {\n sm: '12px',\n md: '14px',\n lg: '16px',\n xl: '20px',\n '2xl': '24px',\n} as const;\n\nconst WEIGHT_MAP = {\n normal: 400,\n medium: 500,\n bold: 700,\n} as const;\n\nexport const Text = Object.assign(\n defineComponent(\n (props: TextProps, { slots }) =>\n () =>\n h(\n props.as ?? 'span',\n {\n style: {\n fontSize: SIZE_MAP[props.size ?? 'md'],\n fontWeight: WEIGHT_MAP[props.weight ?? 'normal'],\n color: props.color ?? 'inherit',\n },\n },\n slots.default?.(),\n ),\n { name: 'NovaText', props: ['as', 'size', 'weight', 'color'], inheritAttrs: false },\n ),\n { meta: { description: 'Text element with semantic typography props.', propsSchema: TextPropsSchema } },\n);\n","import type { Component, InjectionKey } from 'vue';\nimport type { ActionDefinition } from '@action';\nimport type { ComponentRegistry } from '@layout';\nimport type { Shell } from '@shell';\nimport type { NovaComponent, NovaDispatch, NovaPublish } from './types';\n\n// ═══════════════════════════════════════════════════════════\n// Two injections, the twins of the React adapter's two contexts:\n// - NovaRenderKey: registry + dispatch + publish (+ optional slotWrapper /\n// fallback). Required to render a layout. Does NOT require a shell.\n// - NovaShellKey: the shell. Shell-aware composables need it.\n//\n// Keys are `Symbol.for`, not `Symbol()`: a CJS consumer loading the adapter\n// and its components subpath as two bundles gets two module copies, and a\n// private symbol per copy would make one's provide invisible to the other's\n// inject. A registered symbol is one identity however many copies load.\n//\n// Both values are GETTER objects over the provider's props, so a component\n// that injected once reads the provider's current registry / dispatch /\n// shell — a prop swap reaches every descendant without re-providing.\n// ═══════════════════════════════════════════════════════════\n\n// An app-supplied component that wraps each action instance's rendered content\n// at the ActionSlot seam (animation, gating, logging). It receives identity\n// only — these props — and the content as its default slot; all three are\n// undefined while the slot is empty or exiting. Nova owns no timing.\nexport type SlotWrapperProps = {\n canvasId?: string;\n instanceId?: string;\n action?: ActionDefinition;\n};\nexport type SlotWrapper = Component;\n\nexport type NovaRenderContextValue = {\n // unknown-typed: a shell's registry is untyped, and the walker narrows each\n // entry (isNovaComponent) rather than trusting a cast\n readonly registry: ComponentRegistry;\n readonly dispatch: NovaDispatch;\n readonly publish: NovaPublish;\n readonly slotWrapper?: SlotWrapper;\n // rendered for an unregistered component name — a permissive host supplies\n // one; strict consumers omit it and get a COMPONENT_NOT_FOUND marker\n readonly fallback?: NovaComponent;\n};\n\nexport type NovaShellSource = { readonly shell: Shell };\n\nexport const NovaRenderKey: InjectionKey<NovaRenderContextValue> = Symbol.for('@niscorp/nova/adapters/vue:render');\nexport const NovaShellKey: InjectionKey<NovaShellSource> = Symbol.for('@niscorp/nova/adapters/vue:shell');\n","import { inject } from 'vue';\nimport type { ComponentRegistry } from '@layout';\nimport type { Shell } from '@shell';\nimport { NovaRenderKey, NovaShellKey, type NovaRenderContextValue, type NovaShellSource, type SlotWrapper } from '../context';\nimport type { NovaDispatch, NovaPublish } from '../types';\n\n// ═══════════════════════════════════════════════════════════\n// The render-context composables. Call them in setup (or a functional\n// component's render). dispatch / publish come back as stable functions that\n// read the provider's CURRENT value on every call, so a provider whose\n// dispatch changes (a scoped slot, a swapped shell) is honoured without the\n// component re-running setup.\n// ═══════════════════════════════════════════════════════════\n\nconst renderContext = (caller: string): NovaRenderContextValue => {\n const ctx = inject(NovaRenderKey, undefined);\n if (ctx === undefined) throw new Error(`${caller} must be used inside <NovaRenderProvider>`);\n return ctx;\n};\n\nexport const useNovaDispatch = (): NovaDispatch => {\n const ctx = renderContext('useNovaDispatch');\n return (event) => ctx.dispatch(event);\n};\n\nexport const useNovaPublish = (): NovaPublish => {\n const ctx = renderContext('useNovaPublish');\n return (channel, payload) => ctx.publish(channel, payload);\n};\n\n// The component registry exposed via <NovaRenderProvider> — for components\n// that introspect or look up other registered components (agent tooling,\n// dev inspectors).\nexport const useNovaRegistry = (): ComponentRegistry => renderContext('useNovaRegistry').registry;\n\n// The optional app-supplied slotWrapper; undefined when none was provided (or\n// outside a provider). Never throws: a missing wrapper is the common case.\nexport const useSlotWrapper = (): SlotWrapper | undefined => inject(NovaRenderKey, undefined)?.slotWrapper;\n\n// The shell source — the subscribing composables read `.shell` inside a watch\n// so a swapped shell resubscribes.\nexport const useShellSource = (): NovaShellSource => {\n const source = inject(NovaShellKey, undefined);\n if (source === undefined) throw new Error('useShell must be used inside <NovaShellProvider>');\n return source;\n};\n\nexport const useShell = (): Shell => useShellSource().shell;\n","import { defineComponent, h, onBeforeUnmount, shallowRef, type CSSProperties } from 'vue';\nimport { ButtonPropsSchema, InputPropsSchema, type ButtonProps, type InputProps } from '../../primitive-props';\nimport { useNovaDispatch } from '../composables/context';\nimport type { NovaComponentProps } from '../types';\n\n// ═══════════════════════════════════════════════════════════\n// The interactive primitives — Button, Input. Interaction is ref + event:\n// a click fires `ui:click` carrying the node's ref (injected as `novaRef`); a\n// model-bound input fires `ui:model` carrying the binding's ref.\n// ═══════════════════════════════════════════════════════════\n\nexport { ButtonPropsSchema, type ButtonProps, InputPropsSchema, type InputProps };\n\n// ─── Button ────────────────────────────────────────────────\n\ntype Variant = 'primary' | 'secondary' | 'ghost';\n\nconst BASE_STYLE: CSSProperties = {\n borderRadius: '6px',\n fontSize: '14px',\n fontWeight: 500,\n transition: 'background-color 100ms',\n};\n\nconst buttonStyle = (variant: Variant, isDisabled: boolean, isHovered: boolean, isActive: boolean): CSSProperties => {\n const cursor = isDisabled ? 'not-allowed' : 'pointer';\n if (variant === 'primary') {\n return {\n ...BASE_STYLE,\n padding: '8px 16px',\n border: 'none',\n color: '#ffffff',\n cursor,\n background: isDisabled ? '#93c5fd' : isActive ? '#1e40af' : isHovered ? '#1d4ed8' : '#2563eb',\n };\n }\n if (variant === 'secondary') {\n return {\n ...BASE_STYLE,\n padding: '8px 16px',\n border: `1px solid ${isDisabled ? '#e5e7eb' : isHovered ? '#9ca3af' : '#d1d5db'}`,\n color: isDisabled ? '#9ca3af' : '#1f2937',\n cursor,\n background: isDisabled ? '#ffffff' : isActive ? '#e5e7eb' : isHovered ? '#f3f4f6' : '#ffffff',\n };\n }\n return {\n ...BASE_STYLE,\n padding: '8px 12px',\n border: 'none',\n color: isDisabled ? '#93c5fd' : '#2563eb',\n cursor,\n background: isDisabled ? 'transparent' : isActive ? '#dbeafe' : isHovered ? '#eff6ff' : 'transparent',\n };\n};\n\nexport const Button = Object.assign(\n defineComponent(\n (props: NovaComponentProps & ButtonProps, { slots }) => {\n const dispatch = useNovaDispatch();\n const isHovered = shallowRef(false);\n const isActive = shallowRef(false);\n const onClick = (): void => {\n if (props.disabled === true) return;\n if (props.novaRef === undefined) return;\n dispatch({ type: 'ui:click', ref: props.novaRef });\n };\n return () => {\n const isDisabled = props.disabled ?? false;\n return h(\n 'button',\n {\n type: 'button',\n disabled: isDisabled,\n style: buttonStyle(props.variant ?? 'primary', isDisabled, isHovered.value, isActive.value),\n onClick,\n onMouseenter: () => (isHovered.value = true),\n onMouseleave: () => {\n isHovered.value = false;\n isActive.value = false;\n },\n onMousedown: () => (isActive.value = true),\n onMouseup: () => (isActive.value = false),\n },\n props.label ?? slots.default?.(),\n );\n };\n },\n { name: 'NovaButton', props: ['label', 'variant', 'disabled', 'novaRef'], inheritAttrs: false },\n ),\n { meta: { description: \"Clickable button. Click events fire as `ui:click` with the layout node's ref.\", propsSchema: ButtonPropsSchema } },\n);\n\n// ─── Input ─────────────────────────────────────────────────\n//\n// Number inputs still dispatch a string payload; mutation ops parse on the\n// action side.\n//\n// Two remote round-trip obligations (ADAPTER.md §6), because the shell may be\n// authoritative over a socket:\n// - it holds a local draft while focused, so an async tree echo can't clobber\n// the value the user is mid-typing;\n// - it honours the layout's `debounce` prop, coalescing keystrokes before\n// they hit the wire, and flushes the pending value on blur.\n\nconst inputStyle = (isDisabled: boolean, isFocused: boolean, isHovered: boolean): CSSProperties => ({\n padding: '8px 12px',\n border: `1px solid ${isDisabled ? '#d1d5db' : isFocused ? '#2563eb' : isHovered ? '#9ca3af' : '#d1d5db'}`,\n borderRadius: '6px',\n fontSize: '14px',\n background: isDisabled ? '#f9fafb' : '#ffffff',\n color: isDisabled ? '#9ca3af' : 'inherit',\n cursor: isDisabled ? 'not-allowed' : 'text',\n minWidth: '240px',\n outline: 'none',\n boxShadow: isFocused ? '0 0 0 3px rgba(37, 99, 235, 0.15)' : 'none',\n transition: 'border-color 150ms, box-shadow 150ms',\n});\n\nexport const Input = Object.assign(\n defineComponent(\n (props: NovaComponentProps & InputProps) => {\n const dispatch = useNovaDispatch();\n const isHovered = shallowRef(false);\n // `draft` is the local editing value; `null` means \"not editing — the\n // server value is authoritative\". While focused the draft wins.\n const draft = shallowRef<string | null>(null);\n // A single pending debounced dispatch — replaced by the next keystroke,\n // flushed on blur, dropped on unmount (a keystroke against a screen\n // that has gone is worse than a lost one).\n let timer: ReturnType<typeof setTimeout> | undefined;\n const clearPending = (): void => {\n if (timer !== undefined) {\n clearTimeout(timer);\n timer = undefined;\n }\n };\n onBeforeUnmount(clearPending);\n\n const fire = (next: string): void => {\n if (props.novaModel === undefined) return;\n dispatch({ type: 'ui:model', ref: props.novaModel.ref, payload: next });\n };\n\n const onInput = (event: Event): void => {\n const target = event.target;\n if (!(target instanceof HTMLInputElement)) return;\n const next = target.value;\n draft.value = next;\n const debounceMs = props.debounce ?? 0;\n if (debounceMs > 0) {\n clearPending();\n timer = setTimeout(() => {\n timer = undefined;\n fire(next);\n }, debounceMs);\n } else {\n fire(next);\n }\n };\n\n const onFocus = (): void => {\n draft.value = props.value ?? '';\n };\n const onBlur = (): void => {\n // flush any pending keystroke now, then hand authority back\n const pending = draft.value;\n if (timer !== undefined && pending !== null) {\n clearPending();\n fire(pending);\n }\n draft.value = null;\n };\n\n return () => {\n const isDisabled = props.disabled ?? false;\n return h('input', {\n type: props.type ?? 'text',\n placeholder: props.placeholder,\n disabled: isDisabled,\n value: draft.value ?? props.value ?? '',\n onInput,\n onFocus,\n onBlur,\n onMouseenter: () => (isHovered.value = true),\n onMouseleave: () => (isHovered.value = false),\n style: inputStyle(isDisabled, draft.value !== null, isHovered.value),\n });\n };\n },\n {\n name: 'NovaInput',\n props: ['type', 'placeholder', 'disabled', 'value', 'debounce', 'novaModel'],\n inheritAttrs: false,\n },\n ),\n { meta: { description: 'Text input bound to data via the `model` field on the layout node.', propsSchema: InputPropsSchema } },\n);\n","import { defineComponent, h, type VNode } from 'vue';\nimport { JsonTreePropsSchema, PanelPropsSchema, type JsonTreeProps, type PanelProps } from '../../primitive-props';\nimport { useNovaDispatch } from '../composables/context';\n\n// ═══════════════════════════════════════════════════════════\n// The introspection primitives nova/devtools composes against — Panel and\n// JsonTree. Generic, useful anywhere.\n// ═══════════════════════════════════════════════════════════\n\nexport { PanelPropsSchema, type PanelProps, JsonTreePropsSchema, type JsonTreeProps };\n\n// ─── Panel ─────────────────────────────────────────────────\n// A framed, elevated surface with an optional title header. `backRef` /\n// `closeRef` grow a header ← / ✕ firing ui:click with that ref.\n\nconst HEADER_BUTTON_STYLE = {\n border: 'none',\n background: 'none',\n color: '#6b7280',\n cursor: 'pointer',\n fontSize: '13px',\n lineHeight: 1,\n padding: '2px',\n};\n\nexport const Panel = Object.assign(\n defineComponent(\n (props: PanelProps, { slots }) => {\n const dispatch = useNovaDispatch();\n const headerButton = (ref: string, glyph: string): VNode =>\n h('button', { type: 'button', style: HEADER_BUTTON_STYLE, onClick: () => dispatch({ type: 'ui:click', ref }) }, glyph);\n return () =>\n h(\n 'div',\n {\n style: {\n border: '1px solid #d8dae0',\n borderRadius: '10px',\n background: '#fff',\n boxShadow: '0 1px 3px rgba(0,0,0,.06)',\n padding: '12px',\n },\n },\n [\n props.title === undefined\n ? null\n : h('div', { style: { display: 'flex', alignItems: 'center', gap: '6px', fontWeight: 600, fontSize: '13px', marginBottom: '8px' } }, [\n props.backRef === undefined ? null : headerButton(props.backRef, '←'),\n h('span', { style: { flex: 1 } }, props.title),\n props.closeRef === undefined ? null : headerButton(props.closeRef, '✕'),\n ]),\n slots.default?.(),\n ],\n );\n },\n { name: 'NovaPanel', props: ['title', 'backRef', 'closeRef'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'A framed, elevated surface with an optional title; `closeRef` adds a header ✕.',\n propsSchema: PanelPropsSchema,\n },\n },\n);\n\n// ─── JsonTree ──────────────────────────────────────────────\n// A collapsible view of any JSON value via native <details> (no state).\n\nconst entriesOf = (value: object): Array<[string, unknown]> =>\n Array.isArray(value) ? value.map((item, index): [string, unknown] => [String(index), item]) : Object.entries(value);\n\nconst jsonNode = (value: unknown, name: string | undefined, key?: string): VNode => {\n if (value !== null && typeof value === 'object') {\n const entries = entriesOf(value);\n const shape = Array.isArray(value) ? `[${entries.length}]` : `{${entries.length}}`;\n return h('details', { key }, [\n h('summary', { style: { cursor: 'pointer', color: '#6b7280' } }, name === undefined ? shape : `${name} ${shape}`),\n h(\n 'div',\n { style: { paddingLeft: '13px', borderLeft: '1px solid #d8dae0', marginLeft: '3px' } },\n entries.map(([childKey, child]) => jsonNode(child, childKey, childKey)),\n ),\n ]);\n }\n const text = name === undefined ? JSON.stringify(value) : `${name}: ${JSON.stringify(value)}`;\n return h('div', { key, style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, text);\n};\n\nexport const JsonTree = Object.assign(\n defineComponent(\n (props: JsonTreeProps) => () =>\n h(\n 'div',\n { style: { fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize: '12px', lineHeight: 1.5 } },\n [jsonNode(props.value, props.label)],\n ),\n { name: 'NovaJsonTree', props: ['value', 'label'], inheritAttrs: false },\n ),\n { meta: { description: 'A collapsible view of any JSON value.', propsSchema: JsonTreePropsSchema } },\n);\n","import { shallowRef, toValue, watch, type MaybeRefOrGetter, type Ref } from 'vue';\nimport type { ActionStatus, PublicActionRuntime } from '@action';\nimport type { RenderNode } from '@layout';\nimport type { CanvasState, Shell, StateSnapshot } from '@shell';\nimport type { Phrasebook } from '../../../i18n/phrases';\nimport { useShellSource } from './context';\n\n// ═══════════════════════════════════════════════════════════\n// Subscription bindings (ADAPTER.md §3): core subscriptions bridged into Vue\n// reactivity. Each composable holds a shallowRef — core hands out immutable\n// snapshots, so deep reactivity would only cost — re-read on the MATCHING\n// subscription. The subscription lives in a watch over (shell, key): a\n// swapped shell or a changed id resubscribes, and the watch's cleanup\n// unsubscribes on both that and unmount.\n// ═══════════════════════════════════════════════════════════\n\ntype Unsubscribe = () => void;\n\ntype Binding<T, K> = {\n key: () => K;\n read: (shell: Shell, key: K) => T;\n subscribe: (shell: Shell, key: K, notify: () => void) => Unsubscribe;\n};\n\nconst bindShell = <T, K>(binding: Binding<T, K>): Readonly<Ref<T>> => {\n const source = useShellSource();\n const value = shallowRef<T>(binding.read(source.shell, binding.key()));\n watch(\n (): [Shell, K] => [source.shell, binding.key()],\n ([shell, key], _previous, onCleanup) => {\n const refresh = (): void => {\n value.value = binding.read(shell, key);\n };\n refresh();\n onCleanup(binding.subscribe(shell, key, refresh));\n },\n { immediate: true },\n );\n return value;\n};\n\nconst EMPTY: RenderNode[] = [];\n\nconst subscribeState = (shell: Shell, _key: unknown, notify: () => void): Unsubscribe => shell.onStateChange(() => notify());\n\n// A canvas's rendered tree depends on its instances' data, not only the\n// canvas's own state, so it recomputes on every shell state change (as the\n// React hook does).\nexport const useCanvasRenderTree = (canvasId: MaybeRefOrGetter<string | undefined>): Readonly<Ref<RenderNode[]>> =>\n bindShell({\n key: () => toValue(canvasId),\n read: (shell, id) => (id === undefined || id === '' ? EMPTY : shell.getCanvasRenderTree(id)),\n subscribe: subscribeState,\n });\n\nexport const useShellRenderTree = (): Readonly<Ref<RenderNode[]>> =>\n bindShell({ key: () => undefined, read: (shell) => shell.getShellRenderTree(), subscribe: subscribeState });\n\nexport const useShellState = (): Readonly<Ref<StateSnapshot>> =>\n bindShell({ key: () => undefined, read: (shell) => shell.getState(), subscribe: subscribeState });\n\n// The shell owns canvas-change equality — onCanvasChange only fires on\n// meaningful change, so no comparator lives here.\nexport const useCanvas = (canvasId: MaybeRefOrGetter<string>): Readonly<Ref<CanvasState>> =>\n bindShell({\n key: () => toValue(canvasId),\n read: (shell, id) => shell.getCanvasState(id),\n subscribe: (shell, id, notify) => shell.onCanvasChange(id, () => notify()),\n });\n\n// Listens to one runtime AND to the shell: the instance may not exist yet, or\n// be replaced under the same id, so a state change showing a different\n// runtime under the id re-attaches the runtime listener.\nconst subscribeRuntime =\n (listen: (runtime: PublicActionRuntime, notify: () => void) => Unsubscribe) =>\n (shell: Shell, instanceId: string, notify: () => void): Unsubscribe => {\n let current = shell.getRuntime(instanceId);\n let offRuntime = current === undefined ? undefined : listen(current, notify);\n const offState = shell.onStateChange(() => {\n const next = shell.getRuntime(instanceId);\n if (next !== current) {\n offRuntime?.();\n current = next;\n offRuntime = current === undefined ? undefined : listen(current, notify);\n }\n notify();\n });\n return () => {\n offRuntime?.();\n offState();\n };\n };\n\nconst onData = subscribeRuntime((runtime, notify) => runtime.onDataChange(() => notify()));\nconst onStatus = subscribeRuntime((runtime, notify) => runtime.onStatusChange(() => notify()));\n\nexport const useActionData = (instanceId: MaybeRefOrGetter<string>): Readonly<Ref<Record<string, unknown> | undefined>> =>\n bindShell({ key: () => toValue(instanceId), read: (shell, id) => shell.getRuntime(id)?.getData(), subscribe: onData });\n\nexport const useActionStatus = (instanceId: MaybeRefOrGetter<string>): Readonly<Ref<ActionStatus | undefined>> =>\n bindShell({ key: () => toValue(instanceId), read: (shell, id) => shell.getRuntime(id)?.instance.status, subscribe: onStatus });\n\n// One instance's rendered tree. Two inputs: the runtime's data and the shell's\n// phrasebook (setPhrases changes the words without touching any data), so it\n// listens to both and caches on both — an unrelated state change hands back\n// the same tree and Vue skips the re-render.\nexport const useRenderTree = (instanceId: MaybeRefOrGetter<string>): Readonly<Ref<RenderNode[]>> => {\n let cache: { data: Record<string, unknown>; phrases: Phrasebook | undefined; tree: RenderNode[] } | undefined;\n return bindShell({\n key: () => toValue(instanceId),\n read: (shell, id) => {\n const runtime = shell.getRuntime(id);\n if (runtime === undefined) {\n cache = undefined;\n return EMPTY;\n }\n const data = runtime.getData();\n const phrases = shell.getPhrases();\n if (cache !== undefined && cache.data === data && cache.phrases === phrases) return cache.tree;\n const tree = runtime.render();\n cache = { data, phrases, tree };\n return tree;\n },\n subscribe: onData,\n });\n};\n","import { defineComponent, h } from 'vue';\n\nexport type ErrorMarkerProps = {\n code: string;\n message: string;\n};\n\n// Renders error RenderNodes surfaced by the renderer in lax mode.\n// Consumers can style via the `data-nova-error` attribute.\nexport const ErrorMarker = defineComponent(\n (props: ErrorMarkerProps) => () => h('span', { 'data-nova-error': props.code, role: 'alert' }, `[${props.code}] ${props.message}`),\n { name: 'NovaErrorMarker', props: ['code', 'message'] },\n);\n","import { defineComponent, inject, onMounted, provide, shallowRef, watch, type InjectionKey, type ShallowRef } from 'vue';\nimport type { Shell } from '@shell';\nimport { createShellHead, type ShellHead } from '../../document/shell-head';\n\n// ═══════════════════════════════════════════════════════════\n// A head node (`nova:head`), in Vue — the twin of the React adapter's.\n//\n// It draws nothing, and neither does anything it holds. Where the shell lives\n// in this page it says that it is on the screen, so the page's head is read\n// off the shell only while there is one to read (document/shell-head). Under a\n// served screen there is no shell here and nothing to say to: the terminal\n// keeps the head off the wire.\n//\n// Everything here starts in `onMounted`, which does not run where a screen is\n// drawn to a string — so none of it touches a document that is not a browser's.\n// ═══════════════════════════════════════════════════════════\n\n// `Symbol.for`, as the adapter's other keys are (./context).\nconst ShellHeadKey: InjectionKey<ShallowRef<ShellHead>> = Symbol.for('@niscorp/nova/adapters/vue:head');\n\nexport const HeadMark = defineComponent(\n () => {\n const head = inject(ShellHeadKey, undefined);\n onMounted(() => {\n if (head === undefined) return;\n // a swapped shell has another head: leave the one, enter the other\n watch(\n head,\n (current, _previous, onCleanup) => {\n current.enter();\n onCleanup(current.leave);\n },\n { immediate: true },\n );\n });\n return () => null;\n },\n { name: 'NovaHeadMark' },\n);\n\n// Called in a provider's setup: every head below it reports to this shell's,\n// and the shell is watched for as long as the provider stands.\nexport const provideShellHead = (shell: () => Shell): void => {\n let held = shell();\n const head = shallowRef(createShellHead(held));\n provide(ShellHeadKey, head);\n onMounted(() => {\n watch(\n shell,\n (next, _previous, onCleanup) => {\n if (next !== held) {\n held = next;\n head.value = createShellHead(next);\n }\n onCleanup(head.value.watch());\n },\n { immediate: true },\n );\n });\n};\n","import type { Component } from 'vue';\nimport type { ComponentMeta } from '@layout';\nimport type { NovaEvent } from '@shared/event-bus';\n\n// ═══════════════════════════════════════════════════════════\n// Dispatch / publish contracts exposed to rendered components\n// via provide/inject. Components never touch the shell directly.\n// ═══════════════════════════════════════════════════════════\n\nexport type NovaDispatch = (event: NovaEvent) => void;\nexport type NovaPublish = (channel: string, payload?: unknown) => void;\n\n// ═══════════════════════════════════════════════════════════\n// Framework-injected props. Layout `props` are spread on top; a node's\n// children arrive as the DEFAULT SLOT — an array of per-child vnodes keyed by\n// core's renderNodeKey, so a component can address them individually.\n// ═══════════════════════════════════════════════════════════\n\nexport type NovaModelBinding = {\n ref: string;\n path: string;\n};\n\nexport type NovaComponentProps = {\n novaModel?: NovaModelBinding;\n novaRef?: string;\n};\n\n// Any Vue component — a `defineComponent` result or a plain functional\n// component. A functional component with no declared `props` receives the\n// node's props, novaRef and novaModel all as props. A static `.meta` is picked\n// up by the registry (`register` / `registerAll`).\nexport type NovaComponent = Component & {\n meta?: ComponentMeta;\n};\n\n// The registry holds arbitrary values; the walker renders only what can be a\n// Vue component — a function (functional / constructor) or an options object.\nexport const isNovaComponent = (value: unknown): value is NovaComponent =>\n typeof value === 'function' || (typeof value === 'object' && value !== null);\n","import { Fragment, createTextVNode, defineComponent, h, inject, type VNode } from 'vue';\nimport { NOVA_MODEL_PROP, NOVA_REF_PROP, renderNodeKey, type RenderNode } from '@layout';\nimport { isHeadNode } from '@shell';\nimport { NovaRenderKey, type NovaRenderContextValue } from './context';\nimport { ErrorMarker } from './error-marker';\nimport { HeadMark } from './head';\nimport { RenderTree } from './render-tree';\nimport { isNovaComponent } from './types';\n\nexport type RenderNodeViewProps = {\n node: RenderNode;\n};\n\n// A node's children as the component's default slot: one keyed RenderNodeView\n// per child (not one RenderTree wrapper), so a component can address them\n// individually — a Grid wraps each in a weighted cell.\nconst childViews = (children: RenderNode[]): VNode[] =>\n children.map((child, i) => h(RenderNodeView, { node: child, key: renderNodeKey(child, i) }));\n\nconst renderNode = (ctx: NovaRenderContextValue, node: RenderNode): VNode => {\n if (node.type === 'text') return createTextVNode(node.value);\n if (node.type === 'fragment') return h(RenderTree, { nodes: node.children });\n if (node.type === 'error') return h(ErrorMarker, { code: node.code, message: node.message });\n\n // a head is the document's, not the screen's: nothing is drawn for it or for what it holds\n if (isHeadNode(node)) return h(HeadMark);\n\n // node.type === 'component' — an unknown name never throws\n const registered = ctx.registry.get(node.name)?.component;\n const component = isNovaComponent(registered) ? registered : ctx.fallback;\n if (component === undefined) return h(ErrorMarker, { code: 'COMPONENT_NOT_FOUND', message: node.name });\n const props: Record<string, unknown> = { ...node.props };\n if (node.model !== undefined) props[NOVA_MODEL_PROP] = { ref: node.model.ref, path: node.model.path };\n if (node.ref !== undefined) props[NOVA_REF_PROP] = node.ref;\n const { children } = node;\n if (children.length === 0) return h(component, props);\n if (!children.some(isHeadNode)) return h(component, props, { default: () => childViews(children) });\n // A head among them is not handed to the component — a kit that gives every\n // child a cell would give it an empty one. It stands beside the component.\n const shown = children.filter((child) => !isHeadNode(child));\n return h(Fragment, [\n shown.length === 0 ? h(component, props) : h(component, props, { default: () => childViews(shown) }),\n ...children.filter(isHeadNode).map((_head, i) => h(HeadMark, { key: `head:${i}` })),\n ]);\n};\n\nexport const RenderNodeView = defineComponent(\n (props: RenderNodeViewProps) => {\n const ctx = inject(NovaRenderKey, undefined);\n if (ctx === undefined) throw new Error('RenderNodeView must be used inside <NovaRenderProvider>');\n return () => renderNode(ctx, props.node);\n },\n { name: 'NovaRenderNode', props: ['node'] },\n);\n","import { defineComponent, h } from 'vue';\nimport { renderNodeKey, type RenderNode } from '@layout';\nimport { RenderNodeView } from './render-node';\n\nexport type RenderTreeProps = {\n nodes: RenderNode[];\n};\n\n// A fragment of keyed node views — list identity is core's renderNodeKey.\nexport const RenderTree = defineComponent(\n (props: RenderTreeProps) => () => props.nodes.map((node, i) => h(RenderNodeView, { node, key: renderNodeKey(node, i) })),\n { name: 'NovaRenderTree', props: ['nodes'] },\n);\n","import { defineComponent, h, inject, provide } from 'vue';\nimport { scopeDispatch } from '@shared/event-bus';\nimport { ActionSlotPropsSchema, CanvasSlotPropsSchema, type ActionSlotProps, type CanvasSlotProps } from '../../primitive-props';\nimport { NovaRenderKey, type NovaRenderContextValue } from '../context';\nimport { useShellSource } from '../composables/context';\nimport { useCanvasRenderTree, useRenderTree } from '../composables/shell';\nimport { RenderTree } from '../render-tree';\n\n// ═══════════════════════════════════════════════════════════\n// The shell-backed structural slots (ADAPTER.md §4). They pull from the shell\n// injection, so they render only inside <NovaShellProvider>. A remote host (a\n// moss terminal) registers its own wire-backed pair under the same names.\n// ═══════════════════════════════════════════════════════════\n\nexport { CanvasSlotPropsSchema, type CanvasSlotProps, ActionSlotPropsSchema, type ActionSlotProps };\n\n// ─── CanvasSlot ────────────────────────────────────────────\n\nexport const CanvasSlot = Object.assign(\n defineComponent(\n (props: CanvasSlotProps) => {\n const tree = useCanvasRenderTree(() => props.canvasId);\n return () => (props.canvasId === undefined || props.canvasId === '' ? null : h(RenderTree, { nodes: tree.value }));\n },\n { name: 'NovaCanvasSlot', props: ['canvasId'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'Renders a canvas by id, recursing into its actionLayout.',\n propsSchema: CanvasSlotPropsSchema,\n },\n },\n);\n\n// ─── ActionSlot ────────────────────────────────────────────\n\n// Re-provides the render context with dispatch scoped to one instance, so the\n// runtime delivers UI events from its subtree to that instance's own triggers\n// only. The stamping rule is core's scopeDispatch — not reimplemented here. It\n// sits INSIDE the slot wrapper, as in the React adapter: the wrapper itself is\n// outside the instance.\nconst InstanceScope = defineComponent(\n (props: { instanceId: string }, { slots }) => {\n const parent = inject(NovaRenderKey, undefined);\n if (parent !== undefined) {\n const scoped: NovaRenderContextValue = {\n get registry() {\n return parent.registry;\n },\n get dispatch() {\n return scopeDispatch(parent.dispatch, props.instanceId);\n },\n get publish() {\n return parent.publish;\n },\n get slotWrapper() {\n return parent.slotWrapper;\n },\n get fallback() {\n return parent.fallback;\n },\n };\n provide(NovaRenderKey, scoped);\n }\n return () => slots.default?.();\n },\n { name: 'NovaInstanceScope', props: ['instanceId'] },\n);\n\nexport const ActionSlot = Object.assign(\n defineComponent(\n (props: ActionSlotProps) => {\n const source = useShellSource();\n const ctx = inject(NovaRenderKey, undefined);\n const tree = useRenderTree(() => props.instanceId ?? '');\n return () => {\n const instanceId = props.instanceId;\n const hasInstance = instanceId !== undefined && instanceId !== '';\n const content =\n hasInstance && tree.value.length > 0\n ? h(InstanceScope, { instanceId }, { default: () => h(RenderTree, { nodes: tree.value }) })\n : null;\n const Wrapper = ctx?.slotWrapper;\n if (Wrapper === undefined) return content;\n // With a wrapper, render it PERSISTENTLY (content or null) so a\n // presence-managing wrapper can animate an instance leaving. Identity\n // resolves from the live runtime; undefined while empty or exiting.\n const runtime = hasInstance ? source.shell.getRuntime(instanceId) : undefined;\n return h(\n Wrapper,\n { canvasId: runtime?.instance.canvasId, instanceId: hasInstance ? instanceId : undefined, action: runtime?.definition },\n { default: () => content },\n );\n };\n },\n { name: 'NovaActionSlot', props: ['instanceId'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'Renders an action instance by id. Used inside a canvas actionLayout.',\n propsSchema: ActionSlotPropsSchema,\n },\n },\n);\n","// ═══════════════════════════════════════════════════════════\n// @niscorp/nova/adapters/vue/components\n//\n// Headless Vue component set for Nova layouts — the same vocabulary, and the\n// same props schemas, as the React kit. Every component carries static\n// `.meta` (description + Zod props schema). `registerNovaVueComponents`\n// batches them into a registry via `registerAll`.\n// ═══════════════════════════════════════════════════════════\n\nimport type { ComponentRegistry } from '@layout';\nimport { Box, Stack, Text } from './layout';\nimport { Button, Input } from './controls';\nimport { JsonTree, Panel } from './introspection';\nimport { ActionSlot, CanvasSlot } from './slots';\n\nexport { Stack, StackPropsSchema, type StackProps } from './layout';\nexport { Text, TextPropsSchema, type TextProps } from './layout';\nexport { Box, BoxPropsSchema, type BoxProps } from './layout';\nexport { Input, InputPropsSchema, type InputProps } from './controls';\nexport { Button, ButtonPropsSchema, type ButtonProps } from './controls';\n\n// ─── Introspection primitives (used by nova/devtools) ──────\nexport { Panel, PanelPropsSchema, type PanelProps } from './introspection';\nexport { JsonTree, JsonTreePropsSchema, type JsonTreeProps } from './introspection';\n\n// ─── Shell slots ───────────────────────────────────────────\n// Shell-aware: they read the shell injection and must render inside a\n// <NovaShellProvider>. A remote host registers its own pair under the names.\nexport { CanvasSlot, CanvasSlotPropsSchema, type CanvasSlotProps } from './slots';\nexport { ActionSlot, ActionSlotPropsSchema, type ActionSlotProps } from './slots';\n\n// ─── Bulk registration helper ──────────────────────────────\n// Typed over the untyped registry so it takes a kit's\n// ComponentRegistry<NovaComponent> and a shell's registry alike.\nexport const registerNovaVueComponents = (registry: ComponentRegistry): void => {\n registry.registerAll({\n Stack,\n Text,\n Input,\n Button,\n Box,\n Panel,\n JsonTree,\n CanvasSlot,\n ActionSlot,\n });\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/adapters/vue/components/layout.ts","../src/adapters/vue/context.ts","../src/adapters/vue/composables/context.ts","../src/adapters/vue/components/controls.ts","../src/adapters/vue/components/introspection.ts","../src/adapters/vue/composables/shell.ts","../src/adapters/vue/error-marker.ts","../src/adapters/vue/head.ts","../src/adapters/vue/types.ts","../src/adapters/vue/render-node.ts","../src/adapters/vue/render-tree.ts","../src/adapters/vue/components/slots.ts","../src/adapters/vue/components/index.ts"],"names":["defineComponent","h","StackPropsSchema","BoxPropsSchema","TextPropsSchema","inject","shallowRef","ButtonPropsSchema","onBeforeUnmount","InputPropsSchema","PanelPropsSchema","JsonTreePropsSchema","watch","toValue","onMounted","createShellHead","provide","renderNodeKey","createTextVNode","isHeadNode","NOVA_MODEL_PROP","NOVA_REF_PROP","Fragment","CanvasSlotPropsSchema","scopeDispatch","ActionSlotPropsSchema"],"mappings":";;;;;;;;AAiBA,IAAM,EAAA,GAAK,CAAC,KAAA,KAAsC,CAAA,EAAG,SAAS,CAAC,CAAA,EAAA,CAAA;AAI/D,IAAM,SAAA,GAAY;AAAA,EAChB,KAAA,EAAO,YAAA;AAAA,EACP,MAAA,EAAQ,QAAA;AAAA,EACR,GAAA,EAAK,UAAA;AAAA,EACL,OAAA,EAAS;AACX,CAAA;AAEA,IAAM,WAAA,GAAc;AAAA,EAClB,KAAA,EAAO,YAAA;AAAA,EACP,MAAA,EAAQ,QAAA;AAAA,EACR,GAAA,EAAK,UAAA;AAAA,EACL,OAAA,EAAS,eAAA;AAAA,EACT,MAAA,EAAQ;AACV,CAAA;AAEO,IAAM,QAAQ,MAAA,CAAO,MAAA;AAAA,EAC1BA,mBAAA;AAAA,IACE,CAAC,KAAA,EAAmB,EAAE,KAAA,OACpB,MACEC,KAAA;AAAA,MACE,KAAA;AAAA,MACA;AAAA,QACE,KAAA,EAAO;AAAA,UACL,OAAA,EAAS,MAAA;AAAA,UACT,aAAA,EAAe,MAA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,KAAAA,CAAE,aAAA,EAAe,EAAE,UAAA,EAAW,EAAG,EAAE,OAAA,EAAS,MAAMA,KAAAA,CAAE,UAAA,EAAY,EAAE,KAAA,EAAO,KAAK,KAAA,EAAO,CAAA,EAAG,CAAA,GACxF,IAAA;AACN,QAAA,MAAM,UAAU,GAAA,EAAK,WAAA;AACrB,QAAA,IAAI,OAAA,KAAY,QAAW,OAAO,OAAA;AAIlC,QAAA,MAAM,UAAU,WAAA,GAAc,MAAA,CAAO,KAAA,CAAM,UAAA,CAAW,UAAU,CAAA,GAAI,MAAA;AACpE,QAAA,OAAOA,KAAAA;AAAA,UACL,OAAA;AAAA,UACA,EAAE,QAAA,EAAU,OAAA,EAAS,QAAA,CAAS,QAAA,EAAU,UAAA,EAAY,WAAA,GAAc,UAAA,GAAa,MAAA,EAAW,MAAA,EAAQ,OAAA,EAAS,UAAA,EAAW;AAAA,UACtH,EAAE,OAAA,EAAS,MAAM,OAAA;AAAQ,SAC3B;AAAA,MACF,CAAA;AAAA,IACF,CAAA;AAAA,IACA,EAAE,MAAM,gBAAA,EAAkB,KAAA,EAAO,CAAC,YAAY,CAAA,EAAG,cAAc,KAAA;AAAM,GACvE;AAAA,EACA;AAAA,IACE,IAAA,EAAM;AAAA,MACJ,WAAA,EAAa,sEAAA;AAAA,MACb,WAAA,EAAawB;AAAA;AACf;AAEJ;;;ACrEO,IAAM,yBAAA,GAA4B,CAAC,QAAA,KAAsC;AAC9E,EAAA,QAAA,CAAS,WAAA,CAAY;AAAA,IACnB,KAAA;AAAA,IACA,IAAA;AAAA,IACA,KAAA;AAAA,IACA,MAAA;AAAA,IACA,GAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACD,CAAA;AACH","file":"chunk-ZYTWQZZC.cjs","sourcesContent":["import { defineComponent, h } from 'vue';\nimport {\n BoxPropsSchema,\n StackPropsSchema,\n TextPropsSchema,\n type BoxProps,\n type StackProps,\n type TextProps,\n} from '../../primitive-props';\n\n// ═══════════════════════════════════════════════════════════\n// The layout primitives — Stack, Box, Text. Headless reference looks (inline\n// styles, as the React kit's); an app's kit is where its real look lives.\n// ═══════════════════════════════════════════════════════════\n\nexport { StackPropsSchema, type StackProps, BoxPropsSchema, type BoxProps, TextPropsSchema, type TextProps };\n\nconst px = (value: number | undefined): string => `${value ?? 0}px`;\n\n// ─── Stack ─────────────────────────────────────────────────\n\nconst ALIGN_MAP = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n stretch: 'stretch',\n} as const;\n\nconst JUSTIFY_MAP = {\n start: 'flex-start',\n center: 'center',\n end: 'flex-end',\n between: 'space-between',\n around: 'space-around',\n} as const;\n\nexport const Stack = Object.assign(\n defineComponent(\n (props: StackProps, { slots }) =>\n () =>\n h(\n 'div',\n {\n style: {\n display: 'flex',\n flexDirection: props.direction ?? 'column',\n gap: px(props.gap),\n alignItems: ALIGN_MAP[props.align ?? 'stretch'],\n justifyContent: JUSTIFY_MAP[props.justify ?? 'start'],\n padding: px(props.padding),\n flexWrap: props.wrap === true ? 'wrap' : 'nowrap',\n },\n },\n slots.default?.(),\n ),\n { name: 'NovaStack', props: ['direction', 'gap', 'align', 'justify', 'padding', 'wrap'], inheritAttrs: false },\n ),\n { meta: { description: 'Flex container that arranges children in a row or column.', propsSchema: StackPropsSchema } },\n);\n\n// ─── Box ───────────────────────────────────────────────────\n\nexport const Box = Object.assign(\n defineComponent(\n (props: BoxProps, { slots }) =>\n () =>\n h(\n 'div',\n {\n style: {\n padding: px(props.padding),\n background: props.background ?? 'transparent',\n border: props.border === true ? '1px solid #e5e7eb' : 'none',\n borderRadius: px(props.radius),\n },\n },\n slots.default?.(),\n ),\n { name: 'NovaBox', props: ['padding', 'background', 'border', 'radius'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'Generic container with basic styling props. Use Stack for layout, Box for visual wrapping.',\n propsSchema: BoxPropsSchema,\n },\n },\n);\n\n// ─── Text ──────────────────────────────────────────────────\n\nconst SIZE_MAP = {\n sm: '12px',\n md: '14px',\n lg: '16px',\n xl: '20px',\n '2xl': '24px',\n} as const;\n\nconst WEIGHT_MAP = {\n normal: 400,\n medium: 500,\n bold: 700,\n} as const;\n\nexport const Text = Object.assign(\n defineComponent(\n (props: TextProps, { slots }) =>\n () =>\n h(\n props.as ?? 'span',\n {\n style: {\n fontSize: SIZE_MAP[props.size ?? 'md'],\n fontWeight: WEIGHT_MAP[props.weight ?? 'normal'],\n color: props.color ?? 'inherit',\n },\n },\n slots.default?.(),\n ),\n { name: 'NovaText', props: ['as', 'size', 'weight', 'color'], inheritAttrs: false },\n ),\n { meta: { description: 'Text element with semantic typography props.', propsSchema: TextPropsSchema } },\n);\n","import type { Component, InjectionKey } from 'vue';\nimport type { ActionDefinition } from '@action';\nimport type { ComponentRegistry } from '@layout';\nimport type { Shell } from '@shell';\nimport type { NovaComponent, NovaDispatch, NovaPublish } from './types';\n\n// ═══════════════════════════════════════════════════════════\n// Two injections, the twins of the React adapter's two contexts:\n// - NovaRenderKey: registry + dispatch + publish (+ optional slotWrapper /\n// fallback). Required to render a layout. Does NOT require a shell.\n// - NovaShellKey: the shell. Shell-aware composables need it.\n//\n// Keys are `Symbol.for`, not `Symbol()`: a CJS consumer loading the adapter\n// and its components subpath as two bundles gets two module copies, and a\n// private symbol per copy would make one's provide invisible to the other's\n// inject. A registered symbol is one identity however many copies load.\n//\n// Both values are GETTER objects over the provider's props, so a component\n// that injected once reads the provider's current registry / dispatch /\n// shell — a prop swap reaches every descendant without re-providing.\n// ═══════════════════════════════════════════════════════════\n\n// An app-supplied component that wraps each action instance's rendered content\n// at the ActionSlot seam (animation, gating, logging). It receives identity\n// only — these props — and the content as its default slot; all three are\n// undefined while the slot is empty or exiting. Nova owns no timing.\nexport type SlotWrapperProps = {\n canvasId?: string;\n instanceId?: string;\n action?: ActionDefinition;\n};\nexport type SlotWrapper = Component;\n\nexport type NovaRenderContextValue = {\n // unknown-typed: a shell's registry is untyped, and the walker narrows each\n // entry (isNovaComponent) rather than trusting a cast\n readonly registry: ComponentRegistry;\n readonly dispatch: NovaDispatch;\n readonly publish: NovaPublish;\n readonly slotWrapper?: SlotWrapper;\n // rendered for an unregistered component name — a permissive host supplies\n // one; strict consumers omit it and get a COMPONENT_NOT_FOUND marker\n readonly fallback?: NovaComponent;\n};\n\nexport type NovaShellSource = { readonly shell: Shell };\n\nexport const NovaRenderKey: InjectionKey<NovaRenderContextValue> = Symbol.for('@niscorp/nova/adapters/vue:render');\nexport const NovaShellKey: InjectionKey<NovaShellSource> = Symbol.for('@niscorp/nova/adapters/vue:shell');\n","import { inject } from 'vue';\nimport type { ComponentRegistry } from '@layout';\nimport type { Shell } from '@shell';\nimport { NovaRenderKey, NovaShellKey, type NovaRenderContextValue, type NovaShellSource, type SlotWrapper } from '../context';\nimport type { NovaDispatch, NovaPublish } from '../types';\n\n// ═══════════════════════════════════════════════════════════\n// The render-context composables. Call them in setup (or a functional\n// component's render). dispatch / publish come back as stable functions that\n// read the provider's CURRENT value on every call, so a provider whose\n// dispatch changes (a scoped slot, a swapped shell) is honoured without the\n// component re-running setup.\n// ═══════════════════════════════════════════════════════════\n\nconst renderContext = (caller: string): NovaRenderContextValue => {\n const ctx = inject(NovaRenderKey, undefined);\n if (ctx === undefined) throw new Error(`${caller} must be used inside <NovaRenderProvider>`);\n return ctx;\n};\n\nexport const useNovaDispatch = (): NovaDispatch => {\n const ctx = renderContext('useNovaDispatch');\n return (event) => ctx.dispatch(event);\n};\n\nexport const useNovaPublish = (): NovaPublish => {\n const ctx = renderContext('useNovaPublish');\n return (channel, payload) => ctx.publish(channel, payload);\n};\n\n// The component registry exposed via <NovaRenderProvider> — for components\n// that introspect or look up other registered components (agent tooling,\n// dev inspectors).\nexport const useNovaRegistry = (): ComponentRegistry => renderContext('useNovaRegistry').registry;\n\n// The optional app-supplied slotWrapper; undefined when none was provided (or\n// outside a provider). Never throws: a missing wrapper is the common case.\nexport const useSlotWrapper = (): SlotWrapper | undefined => inject(NovaRenderKey, undefined)?.slotWrapper;\n\n// The shell source — the subscribing composables read `.shell` inside a watch\n// so a swapped shell resubscribes.\nexport const useShellSource = (): NovaShellSource => {\n const source = inject(NovaShellKey, undefined);\n if (source === undefined) throw new Error('useShell must be used inside <NovaShellProvider>');\n return source;\n};\n\nexport const useShell = (): Shell => useShellSource().shell;\n","import { defineComponent, h, onBeforeUnmount, shallowRef, type CSSProperties } from 'vue';\nimport { ButtonPropsSchema, InputPropsSchema, type ButtonProps, type InputProps } from '../../primitive-props';\nimport { useNovaDispatch } from '../composables/context';\nimport type { NovaComponentProps } from '../types';\n\n// ═══════════════════════════════════════════════════════════\n// The interactive primitives — Button, Input. Interaction is ref + event:\n// a click fires `ui:click` carrying the node's ref (injected as `novaRef`); a\n// model-bound input fires `ui:model` carrying the binding's ref.\n// ═══════════════════════════════════════════════════════════\n\nexport { ButtonPropsSchema, type ButtonProps, InputPropsSchema, type InputProps };\n\n// ─── Button ────────────────────────────────────────────────\n\ntype Variant = 'primary' | 'secondary' | 'ghost';\n\nconst BASE_STYLE: CSSProperties = {\n borderRadius: '6px',\n fontSize: '14px',\n fontWeight: 500,\n transition: 'background-color 100ms',\n};\n\nconst buttonStyle = (variant: Variant, isDisabled: boolean, isHovered: boolean, isActive: boolean): CSSProperties => {\n const cursor = isDisabled ? 'not-allowed' : 'pointer';\n if (variant === 'primary') {\n return {\n ...BASE_STYLE,\n padding: '8px 16px',\n border: 'none',\n color: '#ffffff',\n cursor,\n background: isDisabled ? '#93c5fd' : isActive ? '#1e40af' : isHovered ? '#1d4ed8' : '#2563eb',\n };\n }\n if (variant === 'secondary') {\n return {\n ...BASE_STYLE,\n padding: '8px 16px',\n border: `1px solid ${isDisabled ? '#e5e7eb' : isHovered ? '#9ca3af' : '#d1d5db'}`,\n color: isDisabled ? '#9ca3af' : '#1f2937',\n cursor,\n background: isDisabled ? '#ffffff' : isActive ? '#e5e7eb' : isHovered ? '#f3f4f6' : '#ffffff',\n };\n }\n return {\n ...BASE_STYLE,\n padding: '8px 12px',\n border: 'none',\n color: isDisabled ? '#93c5fd' : '#2563eb',\n cursor,\n background: isDisabled ? 'transparent' : isActive ? '#dbeafe' : isHovered ? '#eff6ff' : 'transparent',\n };\n};\n\nexport const Button = Object.assign(\n defineComponent(\n (props: NovaComponentProps & ButtonProps, { slots }) => {\n const dispatch = useNovaDispatch();\n const isHovered = shallowRef(false);\n const isActive = shallowRef(false);\n const onClick = (): void => {\n if (props.disabled === true) return;\n if (props.novaRef === undefined) return;\n dispatch({ type: 'ui:click', ref: props.novaRef });\n };\n return () => {\n const isDisabled = props.disabled ?? false;\n return h(\n 'button',\n {\n type: 'button',\n disabled: isDisabled,\n style: buttonStyle(props.variant ?? 'primary', isDisabled, isHovered.value, isActive.value),\n onClick,\n onMouseenter: () => (isHovered.value = true),\n onMouseleave: () => {\n isHovered.value = false;\n isActive.value = false;\n },\n onMousedown: () => (isActive.value = true),\n onMouseup: () => (isActive.value = false),\n },\n props.label ?? slots.default?.(),\n );\n };\n },\n { name: 'NovaButton', props: ['label', 'variant', 'disabled', 'novaRef'], inheritAttrs: false },\n ),\n { meta: { description: \"Clickable button. Click events fire as `ui:click` with the layout node's ref.\", propsSchema: ButtonPropsSchema } },\n);\n\n// ─── Input ─────────────────────────────────────────────────\n//\n// Number inputs still dispatch a string payload; mutation ops parse on the\n// action side.\n//\n// Two remote round-trip obligations (ADAPTER.md §6), because the shell may be\n// authoritative over a socket:\n// - it holds a local draft while focused, so an async tree echo can't clobber\n// the value the user is mid-typing;\n// - it honours the layout's `debounce` prop, coalescing keystrokes before\n// they hit the wire, and flushes the pending value on blur.\n\nconst inputStyle = (isDisabled: boolean, isFocused: boolean, isHovered: boolean): CSSProperties => ({\n padding: '8px 12px',\n border: `1px solid ${isDisabled ? '#d1d5db' : isFocused ? '#2563eb' : isHovered ? '#9ca3af' : '#d1d5db'}`,\n borderRadius: '6px',\n fontSize: '14px',\n background: isDisabled ? '#f9fafb' : '#ffffff',\n color: isDisabled ? '#9ca3af' : 'inherit',\n cursor: isDisabled ? 'not-allowed' : 'text',\n minWidth: '240px',\n outline: 'none',\n boxShadow: isFocused ? '0 0 0 3px rgba(37, 99, 235, 0.15)' : 'none',\n transition: 'border-color 150ms, box-shadow 150ms',\n});\n\nexport const Input = Object.assign(\n defineComponent(\n (props: NovaComponentProps & InputProps) => {\n const dispatch = useNovaDispatch();\n const isHovered = shallowRef(false);\n // `draft` is the local editing value; `null` means \"not editing — the\n // server value is authoritative\". While focused the draft wins.\n const draft = shallowRef<string | null>(null);\n // A single pending debounced dispatch — replaced by the next keystroke,\n // flushed on blur, dropped on unmount (a keystroke against a screen\n // that has gone is worse than a lost one).\n let timer: ReturnType<typeof setTimeout> | undefined;\n const clearPending = (): void => {\n if (timer !== undefined) {\n clearTimeout(timer);\n timer = undefined;\n }\n };\n onBeforeUnmount(clearPending);\n\n const fire = (next: string): void => {\n if (props.novaModel === undefined) return;\n dispatch({ type: 'ui:model', ref: props.novaModel.ref, payload: next });\n };\n\n const onInput = (event: Event): void => {\n const target = event.target;\n if (!(target instanceof HTMLInputElement)) return;\n const next = target.value;\n draft.value = next;\n const debounceMs = props.debounce ?? 0;\n if (debounceMs > 0) {\n clearPending();\n timer = setTimeout(() => {\n timer = undefined;\n fire(next);\n }, debounceMs);\n } else {\n fire(next);\n }\n };\n\n const onFocus = (): void => {\n draft.value = props.value ?? '';\n };\n const onBlur = (): void => {\n // flush any pending keystroke now, then hand authority back\n const pending = draft.value;\n if (timer !== undefined && pending !== null) {\n clearPending();\n fire(pending);\n }\n draft.value = null;\n };\n\n return () => {\n const isDisabled = props.disabled ?? false;\n return h('input', {\n type: props.type ?? 'text',\n placeholder: props.placeholder,\n disabled: isDisabled,\n value: draft.value ?? props.value ?? '',\n onInput,\n onFocus,\n onBlur,\n onMouseenter: () => (isHovered.value = true),\n onMouseleave: () => (isHovered.value = false),\n style: inputStyle(isDisabled, draft.value !== null, isHovered.value),\n });\n };\n },\n {\n name: 'NovaInput',\n props: ['type', 'placeholder', 'disabled', 'value', 'debounce', 'novaModel'],\n inheritAttrs: false,\n },\n ),\n { meta: { description: 'Text input bound to data via the `model` field on the layout node.', propsSchema: InputPropsSchema } },\n);\n","import { defineComponent, h, type VNode } from 'vue';\nimport { JsonTreePropsSchema, PanelPropsSchema, type JsonTreeProps, type PanelProps } from '../../primitive-props';\nimport { useNovaDispatch } from '../composables/context';\n\n// ═══════════════════════════════════════════════════════════\n// The introspection primitives nova/devtools composes against — Panel and\n// JsonTree. Generic, useful anywhere.\n// ═══════════════════════════════════════════════════════════\n\nexport { PanelPropsSchema, type PanelProps, JsonTreePropsSchema, type JsonTreeProps };\n\n// ─── Panel ─────────────────────────────────────────────────\n// A framed, elevated surface with an optional title header. `backRef` /\n// `closeRef` grow a header ← / ✕ firing ui:click with that ref.\n\nconst HEADER_BUTTON_STYLE = {\n border: 'none',\n background: 'none',\n color: '#6b7280',\n cursor: 'pointer',\n fontSize: '13px',\n lineHeight: 1,\n padding: '2px',\n};\n\nexport const Panel = Object.assign(\n defineComponent(\n (props: PanelProps, { slots }) => {\n const dispatch = useNovaDispatch();\n const headerButton = (ref: string, glyph: string): VNode =>\n h('button', { type: 'button', style: HEADER_BUTTON_STYLE, onClick: () => dispatch({ type: 'ui:click', ref }) }, glyph);\n return () =>\n h(\n 'div',\n {\n style: {\n border: '1px solid #d8dae0',\n borderRadius: '10px',\n background: '#fff',\n boxShadow: '0 1px 3px rgba(0,0,0,.06)',\n padding: '12px',\n },\n },\n [\n props.title === undefined\n ? null\n : h('div', { style: { display: 'flex', alignItems: 'center', gap: '6px', fontWeight: 600, fontSize: '13px', marginBottom: '8px' } }, [\n props.backRef === undefined ? null : headerButton(props.backRef, '←'),\n h('span', { style: { flex: 1 } }, props.title),\n props.closeRef === undefined ? null : headerButton(props.closeRef, '✕'),\n ]),\n slots.default?.(),\n ],\n );\n },\n { name: 'NovaPanel', props: ['title', 'backRef', 'closeRef'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'A framed, elevated surface with an optional title; `closeRef` adds a header ✕.',\n propsSchema: PanelPropsSchema,\n },\n },\n);\n\n// ─── JsonTree ──────────────────────────────────────────────\n// A collapsible view of any JSON value via native <details> (no state).\n\nconst entriesOf = (value: object): Array<[string, unknown]> =>\n Array.isArray(value) ? value.map((item, index): [string, unknown] => [String(index), item]) : Object.entries(value);\n\nconst jsonNode = (value: unknown, name: string | undefined, key?: string): VNode => {\n if (value !== null && typeof value === 'object') {\n const entries = entriesOf(value);\n const shape = Array.isArray(value) ? `[${entries.length}]` : `{${entries.length}}`;\n return h('details', { key }, [\n h('summary', { style: { cursor: 'pointer', color: '#6b7280' } }, name === undefined ? shape : `${name} ${shape}`),\n h(\n 'div',\n { style: { paddingLeft: '13px', borderLeft: '1px solid #d8dae0', marginLeft: '3px' } },\n entries.map(([childKey, child]) => jsonNode(child, childKey, childKey)),\n ),\n ]);\n }\n const text = name === undefined ? JSON.stringify(value) : `${name}: ${JSON.stringify(value)}`;\n return h('div', { key, style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, text);\n};\n\nexport const JsonTree = Object.assign(\n defineComponent(\n (props: JsonTreeProps) => () =>\n h(\n 'div',\n { style: { fontFamily: 'ui-monospace, SFMono-Regular, Menlo, monospace', fontSize: '12px', lineHeight: 1.5 } },\n [jsonNode(props.value, props.label)],\n ),\n { name: 'NovaJsonTree', props: ['value', 'label'], inheritAttrs: false },\n ),\n { meta: { description: 'A collapsible view of any JSON value.', propsSchema: JsonTreePropsSchema } },\n);\n","import { shallowRef, toValue, watch, type MaybeRefOrGetter, type Ref } from 'vue';\nimport type { ActionStatus, PublicActionRuntime } from '@action';\nimport type { RenderNode } from '@layout';\nimport type { CanvasState, Shell, StateSnapshot } from '@shell';\nimport type { Phrasebook } from '../../../i18n/phrases';\nimport { useShellSource } from './context';\n\n// ═══════════════════════════════════════════════════════════\n// Subscription bindings (ADAPTER.md §3): core subscriptions bridged into Vue\n// reactivity. Each composable holds a shallowRef — core hands out immutable\n// snapshots, so deep reactivity would only cost — re-read on the MATCHING\n// subscription. The subscription lives in a watch over (shell, key): a\n// swapped shell or a changed id resubscribes, and the watch's cleanup\n// unsubscribes on both that and unmount.\n// ═══════════════════════════════════════════════════════════\n\ntype Unsubscribe = () => void;\n\ntype Binding<T, K> = {\n key: () => K;\n read: (shell: Shell, key: K) => T;\n subscribe: (shell: Shell, key: K, notify: () => void) => Unsubscribe;\n};\n\nconst bindShell = <T, K>(binding: Binding<T, K>): Readonly<Ref<T>> => {\n const source = useShellSource();\n const value = shallowRef<T>(binding.read(source.shell, binding.key()));\n watch(\n (): [Shell, K] => [source.shell, binding.key()],\n ([shell, key], _previous, onCleanup) => {\n const refresh = (): void => {\n value.value = binding.read(shell, key);\n };\n refresh();\n onCleanup(binding.subscribe(shell, key, refresh));\n },\n { immediate: true },\n );\n return value;\n};\n\nconst EMPTY: RenderNode[] = [];\n\nconst subscribeState = (shell: Shell, _key: unknown, notify: () => void): Unsubscribe => shell.onStateChange(() => notify());\n\n// A canvas's rendered tree depends on its instances' data, not only the\n// canvas's own state, so it recomputes on every shell state change (as the\n// React hook does).\nexport const useCanvasRenderTree = (canvasId: MaybeRefOrGetter<string | undefined>): Readonly<Ref<RenderNode[]>> =>\n bindShell({\n key: () => toValue(canvasId),\n read: (shell, id) => (id === undefined || id === '' ? EMPTY : shell.getCanvasRenderTree(id)),\n subscribe: subscribeState,\n });\n\nexport const useShellRenderTree = (): Readonly<Ref<RenderNode[]>> =>\n bindShell({ key: () => undefined, read: (shell) => shell.getShellRenderTree(), subscribe: subscribeState });\n\nexport const useShellState = (): Readonly<Ref<StateSnapshot>> =>\n bindShell({ key: () => undefined, read: (shell) => shell.getState(), subscribe: subscribeState });\n\n// The shell owns canvas-change equality — onCanvasChange only fires on\n// meaningful change, so no comparator lives here.\nexport const useCanvas = (canvasId: MaybeRefOrGetter<string>): Readonly<Ref<CanvasState>> =>\n bindShell({\n key: () => toValue(canvasId),\n read: (shell, id) => shell.getCanvasState(id),\n subscribe: (shell, id, notify) => shell.onCanvasChange(id, () => notify()),\n });\n\n// Listens to one runtime AND to the shell: the instance may not exist yet, or\n// be replaced under the same id, so a state change showing a different\n// runtime under the id re-attaches the runtime listener.\nconst subscribeRuntime =\n (listen: (runtime: PublicActionRuntime, notify: () => void) => Unsubscribe) =>\n (shell: Shell, instanceId: string, notify: () => void): Unsubscribe => {\n let current = shell.getRuntime(instanceId);\n let offRuntime = current === undefined ? undefined : listen(current, notify);\n const offState = shell.onStateChange(() => {\n const next = shell.getRuntime(instanceId);\n if (next !== current) {\n offRuntime?.();\n current = next;\n offRuntime = current === undefined ? undefined : listen(current, notify);\n }\n notify();\n });\n return () => {\n offRuntime?.();\n offState();\n };\n };\n\nconst onData = subscribeRuntime((runtime, notify) => runtime.onDataChange(() => notify()));\nconst onStatus = subscribeRuntime((runtime, notify) => runtime.onStatusChange(() => notify()));\n\nexport const useActionData = (instanceId: MaybeRefOrGetter<string>): Readonly<Ref<Record<string, unknown> | undefined>> =>\n bindShell({ key: () => toValue(instanceId), read: (shell, id) => shell.getRuntime(id)?.getData(), subscribe: onData });\n\nexport const useActionStatus = (instanceId: MaybeRefOrGetter<string>): Readonly<Ref<ActionStatus | undefined>> =>\n bindShell({ key: () => toValue(instanceId), read: (shell, id) => shell.getRuntime(id)?.instance.status, subscribe: onStatus });\n\n// One instance's rendered tree. Two inputs: the runtime's data and the shell's\n// phrasebook (setPhrases changes the words without touching any data), so it\n// listens to both and caches on both — an unrelated state change hands back\n// the same tree and Vue skips the re-render.\nexport const useRenderTree = (instanceId: MaybeRefOrGetter<string>): Readonly<Ref<RenderNode[]>> => {\n let cache: { data: Record<string, unknown>; phrases: Phrasebook | undefined; tree: RenderNode[] } | undefined;\n return bindShell({\n key: () => toValue(instanceId),\n read: (shell, id) => {\n const runtime = shell.getRuntime(id);\n if (runtime === undefined) {\n cache = undefined;\n return EMPTY;\n }\n const data = runtime.getData();\n const phrases = shell.getPhrases();\n if (cache !== undefined && cache.data === data && cache.phrases === phrases) return cache.tree;\n const tree = runtime.render();\n cache = { data, phrases, tree };\n return tree;\n },\n subscribe: onData,\n });\n};\n","import { defineComponent, h } from 'vue';\n\nexport type ErrorMarkerProps = {\n code: string;\n message: string;\n};\n\n// Renders error RenderNodes surfaced by the renderer in lax mode.\n// Consumers can style via the `data-nova-error` attribute.\nexport const ErrorMarker = defineComponent(\n (props: ErrorMarkerProps) => () => h('span', { 'data-nova-error': props.code, role: 'alert' }, `[${props.code}] ${props.message}`),\n { name: 'NovaErrorMarker', props: ['code', 'message'] },\n);\n","import { defineComponent, inject, onMounted, provide, shallowRef, watch, type InjectionKey, type ShallowRef } from 'vue';\nimport type { Shell } from '@shell';\nimport { createShellHead, type ShellHead } from '../../document/shell-head';\n\n// ═══════════════════════════════════════════════════════════\n// A head node (`nova:head`), in Vue — the twin of the React adapter's.\n//\n// It draws nothing, and neither does anything it holds. Where the shell lives\n// in this page it says that it is on the screen, so the page's head is read\n// off the shell only while there is one to read (document/shell-head). Under a\n// served screen there is no shell here and nothing to say to: the terminal\n// keeps the head off the wire.\n//\n// Everything here starts in `onMounted`, which does not run where a screen is\n// drawn to a string — so none of it touches a document that is not a browser's.\n// ═══════════════════════════════════════════════════════════\n\n// `Symbol.for`, as the adapter's other keys are (./context).\nconst ShellHeadKey: InjectionKey<ShallowRef<ShellHead>> = Symbol.for('@niscorp/nova/adapters/vue:head');\n\nexport const HeadMark = defineComponent(\n () => {\n const head = inject(ShellHeadKey, undefined);\n onMounted(() => {\n if (head === undefined) return;\n // a swapped shell has another head: leave the one, enter the other\n watch(\n head,\n (current, _previous, onCleanup) => {\n current.enter();\n onCleanup(current.leave);\n },\n { immediate: true },\n );\n });\n return () => null;\n },\n { name: 'NovaHeadMark' },\n);\n\n// Called in a provider's setup: every head below it reports to this shell's,\n// and the shell is watched for as long as the provider stands.\nexport const provideShellHead = (shell: () => Shell): void => {\n let held = shell();\n const head = shallowRef(createShellHead(held));\n provide(ShellHeadKey, head);\n onMounted(() => {\n watch(\n shell,\n (next, _previous, onCleanup) => {\n if (next !== held) {\n held = next;\n head.value = createShellHead(next);\n }\n onCleanup(head.value.watch());\n },\n { immediate: true },\n );\n });\n};\n","import type { Component } from 'vue';\nimport type { ComponentMeta } from '@layout';\nimport type { NovaEvent } from '@shared/event-bus';\n\n// ═══════════════════════════════════════════════════════════\n// Dispatch / publish contracts exposed to rendered components\n// via provide/inject. Components never touch the shell directly.\n// ═══════════════════════════════════════════════════════════\n\nexport type NovaDispatch = (event: NovaEvent) => void;\nexport type NovaPublish = (channel: string, payload?: unknown) => void;\n\n// ═══════════════════════════════════════════════════════════\n// Framework-injected props. Layout `props` are spread on top; a node's\n// children arrive as the DEFAULT SLOT — an array of per-child vnodes keyed by\n// core's renderNodeKey, so a component can address them individually.\n// ═══════════════════════════════════════════════════════════\n\nexport type NovaModelBinding = {\n ref: string;\n path: string;\n};\n\nexport type NovaComponentProps = {\n novaModel?: NovaModelBinding;\n novaRef?: string;\n};\n\n// Any Vue component — a `defineComponent` result or a plain functional\n// component. A functional component with no declared `props` receives the\n// node's props, novaRef and novaModel all as props. A static `.meta` is picked\n// up by the registry (`register` / `registerAll`).\nexport type NovaComponent = Component & {\n meta?: ComponentMeta;\n};\n\n// The registry holds arbitrary values; the walker renders only what can be a\n// Vue component — a function (functional / constructor) or an options object.\nexport const isNovaComponent = (value: unknown): value is NovaComponent =>\n typeof value === 'function' || (typeof value === 'object' && value !== null);\n","import { Fragment, createTextVNode, defineComponent, h, inject, type VNode } from 'vue';\nimport { NOVA_MODEL_PROP, NOVA_REF_PROP, renderNodeKey, type RenderNode } from '@layout';\nimport { isHeadNode } from '@shell';\nimport { NovaRenderKey, type NovaRenderContextValue } from './context';\nimport { ErrorMarker } from './error-marker';\nimport { HeadMark } from './head';\nimport { RenderTree } from './render-tree';\nimport { isNovaComponent } from './types';\n\nexport type RenderNodeViewProps = {\n node: RenderNode;\n};\n\n// A node's children as the component's default slot: one keyed RenderNodeView\n// per child (not one RenderTree wrapper), so a component can address them\n// individually — a Grid wraps each in a weighted cell.\nconst childViews = (children: RenderNode[]): VNode[] =>\n children.map((child, i) => h(RenderNodeView, { node: child, key: renderNodeKey(child, i) }));\n\nconst renderNode = (ctx: NovaRenderContextValue, node: RenderNode): VNode => {\n if (node.type === 'text') return createTextVNode(node.value);\n if (node.type === 'fragment') return h(RenderTree, { nodes: node.children });\n if (node.type === 'error') return h(ErrorMarker, { code: node.code, message: node.message });\n\n // a head is the document's, not the screen's: nothing is drawn for it or for what it holds\n if (isHeadNode(node)) return h(HeadMark);\n\n // node.type === 'component' — an unknown name never throws\n const registered = ctx.registry.get(node.name)?.component;\n const component = isNovaComponent(registered) ? registered : ctx.fallback;\n if (component === undefined) return h(ErrorMarker, { code: 'COMPONENT_NOT_FOUND', message: node.name });\n const props: Record<string, unknown> = { ...node.props };\n if (node.model !== undefined) props[NOVA_MODEL_PROP] = { ref: node.model.ref, path: node.model.path };\n if (node.ref !== undefined) props[NOVA_REF_PROP] = node.ref;\n const { children } = node;\n if (children.length === 0) return h(component, props);\n if (!children.some(isHeadNode)) return h(component, props, { default: () => childViews(children) });\n // A head among them is not handed to the component — a kit that gives every\n // child a cell would give it an empty one. It stands beside the component.\n const shown = children.filter((child) => !isHeadNode(child));\n return h(Fragment, [\n shown.length === 0 ? h(component, props) : h(component, props, { default: () => childViews(shown) }),\n ...children.filter(isHeadNode).map((_head, i) => h(HeadMark, { key: `head:${i}` })),\n ]);\n};\n\nexport const RenderNodeView = defineComponent(\n (props: RenderNodeViewProps) => {\n const ctx = inject(NovaRenderKey, undefined);\n if (ctx === undefined) throw new Error('RenderNodeView must be used inside <NovaRenderProvider>');\n return () => renderNode(ctx, props.node);\n },\n { name: 'NovaRenderNode', props: ['node'] },\n);\n","import { defineComponent, h } from 'vue';\nimport { renderNodeKey, type RenderNode } from '@layout';\nimport { RenderNodeView } from './render-node';\n\nexport type RenderTreeProps = {\n nodes: RenderNode[];\n};\n\n// A fragment of keyed node views — list identity is core's renderNodeKey.\nexport const RenderTree = defineComponent(\n (props: RenderTreeProps) => () => props.nodes.map((node, i) => h(RenderNodeView, { node, key: renderNodeKey(node, i) })),\n { name: 'NovaRenderTree', props: ['nodes'] },\n);\n","import { defineComponent, h, inject, provide } from 'vue';\nimport { scopeDispatch } from '@shared/event-bus';\nimport { ActionSlotPropsSchema, CanvasSlotPropsSchema, type ActionSlotProps, type CanvasSlotProps } from '../../primitive-props';\nimport { NovaRenderKey, type NovaRenderContextValue } from '../context';\nimport { useShellSource } from '../composables/context';\nimport { useCanvasRenderTree, useRenderTree } from '../composables/shell';\nimport { RenderTree } from '../render-tree';\n\n// ═══════════════════════════════════════════════════════════\n// The shell-backed structural slots (ADAPTER.md §4). They pull from the shell\n// injection, so they render only inside <NovaShellProvider>. A remote host (a\n// moss terminal) registers its own wire-backed pair under the same names.\n// ═══════════════════════════════════════════════════════════\n\nexport { CanvasSlotPropsSchema, type CanvasSlotProps, ActionSlotPropsSchema, type ActionSlotProps };\n\n// ─── CanvasSlot ────────────────────────────────────────────\n\nexport const CanvasSlot = Object.assign(\n defineComponent(\n (props: CanvasSlotProps) => {\n const tree = useCanvasRenderTree(() => props.canvasId);\n return () => (props.canvasId === undefined || props.canvasId === '' ? null : h(RenderTree, { nodes: tree.value }));\n },\n { name: 'NovaCanvasSlot', props: ['canvasId'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'Renders a canvas by id, recursing into its actionLayout.',\n propsSchema: CanvasSlotPropsSchema,\n },\n },\n);\n\n// ─── ActionSlot ────────────────────────────────────────────\n\n// Re-provides the render context with dispatch scoped to one instance, so the\n// runtime delivers UI events from its subtree to that instance's own triggers\n// only. The stamping rule is core's scopeDispatch — not reimplemented here. It\n// sits INSIDE the slot wrapper, as in the React adapter: the wrapper itself is\n// outside the instance.\nconst InstanceScope = defineComponent(\n (props: { instanceId: string }, { slots }) => {\n const parent = inject(NovaRenderKey, undefined);\n if (parent !== undefined) {\n const scoped: NovaRenderContextValue = {\n get registry() {\n return parent.registry;\n },\n get dispatch() {\n return scopeDispatch(parent.dispatch, props.instanceId);\n },\n get publish() {\n return parent.publish;\n },\n get slotWrapper() {\n return parent.slotWrapper;\n },\n get fallback() {\n return parent.fallback;\n },\n };\n provide(NovaRenderKey, scoped);\n }\n return () => slots.default?.();\n },\n { name: 'NovaInstanceScope', props: ['instanceId'] },\n);\n\nexport const ActionSlot = Object.assign(\n defineComponent(\n (props: ActionSlotProps) => {\n const source = useShellSource();\n const ctx = inject(NovaRenderKey, undefined);\n const tree = useRenderTree(() => props.instanceId ?? '');\n return () => {\n const instanceId = props.instanceId;\n const hasInstance = instanceId !== undefined && instanceId !== '';\n const content =\n hasInstance && tree.value.length > 0\n ? h(InstanceScope, { instanceId }, { default: () => h(RenderTree, { nodes: tree.value }) })\n : null;\n const Wrapper = ctx?.slotWrapper;\n if (Wrapper === undefined) return content;\n // With a wrapper, render it PERSISTENTLY (content or null) so a\n // presence-managing wrapper can animate an instance leaving. Identity\n // resolves from the live runtime; undefined while empty or exiting.\n const runtime = hasInstance ? source.shell.getRuntime(instanceId) : undefined;\n return h(\n Wrapper,\n { canvasId: runtime?.instance.canvasId, instanceId: hasInstance ? instanceId : undefined, action: runtime?.definition },\n { default: () => content },\n );\n };\n },\n { name: 'NovaActionSlot', props: ['instanceId'], inheritAttrs: false },\n ),\n {\n meta: {\n description: 'Renders an action instance by id. Used inside a canvas actionLayout.',\n propsSchema: ActionSlotPropsSchema,\n },\n },\n);\n","// ═══════════════════════════════════════════════════════════\n// @niscorp/nova/adapters/vue/components\n//\n// Headless Vue component set for Nova layouts — the same vocabulary, and the\n// same props schemas, as the React kit. Every component carries static\n// `.meta` (description + Zod props schema). `registerNovaVueComponents`\n// batches them into a registry via `registerAll`.\n// ═══════════════════════════════════════════════════════════\n\nimport type { ComponentRegistry } from '@layout';\nimport { Box, Stack, Text } from './layout';\nimport { Button, Input } from './controls';\nimport { JsonTree, Panel } from './introspection';\nimport { ActionSlot, CanvasSlot } from './slots';\n\nexport { Stack, StackPropsSchema, type StackProps } from './layout';\nexport { Text, TextPropsSchema, type TextProps } from './layout';\nexport { Box, BoxPropsSchema, type BoxProps } from './layout';\nexport { Input, InputPropsSchema, type InputProps } from './controls';\nexport { Button, ButtonPropsSchema, type ButtonProps } from './controls';\n\n// ─── Introspection primitives (used by nova/devtools) ──────\nexport { Panel, PanelPropsSchema, type PanelProps } from './introspection';\nexport { JsonTree, JsonTreePropsSchema, type JsonTreeProps } from './introspection';\n\n// ─── Shell slots ───────────────────────────────────────────\n// Shell-aware: they read the shell injection and must render inside a\n// <NovaShellProvider>. A remote host registers its own pair under the names.\nexport { CanvasSlot, CanvasSlotPropsSchema, type CanvasSlotProps } from './slots';\nexport { ActionSlot, ActionSlotPropsSchema, type ActionSlotProps } from './slots';\n\n// ─── Bulk registration helper ──────────────────────────────\n// Typed over the untyped registry so it takes a kit's\n// ComponentRegistry<NovaComponent> and a shell's registry alike.\nexport const registerNovaVueComponents = (registry: ComponentRegistry): void => {\n registry.registerAll({\n Stack,\n Text,\n Input,\n Button,\n Box,\n Panel,\n JsonTree,\n CanvasSlot,\n ActionSlot,\n });\n};\n"]}
|
package/dist/devtools/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkM3UFIUXK_cjs = require('../chunk-M3UFIUXK.cjs');
|
|
4
|
+
require('../chunk-PBPUSZIQ.cjs');
|
|
5
5
|
require('../chunk-PMKWYOOX.cjs');
|
|
6
6
|
require('../chunk-KOYRJXTI.cjs');
|
|
7
7
|
require('../chunk-GV7UC3SS.cjs');
|
|
@@ -367,9 +367,9 @@ var createDevtoolsFunctions = (config) => {
|
|
|
367
367
|
}
|
|
368
368
|
return on;
|
|
369
369
|
},
|
|
370
|
-
"devtools.shellState": async () =>
|
|
370
|
+
"devtools.shellState": async () => chunkM3UFIUXK_cjs.snapshotShell(shell(), [DEVTOOLS_CANVAS]),
|
|
371
371
|
"devtools.audit": async () => {
|
|
372
|
-
const rows =
|
|
372
|
+
const rows = chunkM3UFIUXK_cjs.auditCatalog(definitions);
|
|
373
373
|
return { rows, address: rows.reduce((total, row) => total + row.address, 0), definitions: rows.length };
|
|
374
374
|
},
|
|
375
375
|
// Stack navigation from the dock — pop the top of a canvas's stack. Only
|
|
@@ -385,7 +385,7 @@ var createDevtoolsFunctions = (config) => {
|
|
|
385
385
|
},
|
|
386
386
|
// Newest first — the ring buffer is oldest→newest; the dock shows a feed.
|
|
387
387
|
"devtools.timeline": async () => ({ rows: timeline.slice().reverse(), count: timeline.length }),
|
|
388
|
-
"devtools.describe": async (data) =>
|
|
388
|
+
"devtools.describe": async (data) => chunkM3UFIUXK_cjs.describeInstance(shell(), String(data["instanceId"] ?? "")) ?? { id: "unmounted", found: false, data: {}, layout: null, issues: [] }
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
391
|
|
package/dist/devtools/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { describeInstance, auditCatalog, snapshotShell } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { describeInstance, auditCatalog, snapshotShell } from '../chunk-X5JTZ5LW.js';
|
|
2
|
+
import '../chunk-XUSKGJRI.js';
|
|
3
3
|
import '../chunk-OGD5CCMZ.js';
|
|
4
4
|
import '../chunk-7TS3YVQR.js';
|
|
5
5
|
import '../chunk-OE4E6IBD.js';
|