@niscorp/nova 0.2.0 → 0.2.2
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 +61 -0
- package/README.md +56 -13
- package/SHELL_DOCS.md +13 -4
- package/dist/adapters/dom/components/index.cjs +4 -51
- package/dist/adapters/dom/components/index.cjs.map +1 -1
- package/dist/adapters/dom/index.cjs +22 -686
- package/dist/adapters/dom/index.cjs.map +1 -1
- package/dist/adapters/dom/index.js +2 -2
- package/dist/adapters/dom/server.cjs +14 -411
- package/dist/adapters/dom/server.cjs.map +1 -1
- package/dist/adapters/dom/server.js +2 -2
- package/dist/adapters/react/components/index.cjs +87 -562
- package/dist/adapters/react/components/index.cjs.map +1 -1
- 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 +3 -3
- package/dist/adapters/react/index.cjs +97 -1815
- package/dist/adapters/react/index.cjs.map +1 -1
- package/dist/adapters/react/index.js +3 -3
- package/dist/adapters/tty/components/index.cjs +3 -44
- package/dist/adapters/tty/components/index.cjs.map +1 -1
- package/dist/adapters/tty/index.cjs +13 -5
- package/dist/adapters/tty/index.cjs.map +1 -1
- package/dist/adapters/tty/index.js +1 -1
- package/dist/adapters/vue/components/index.cjs +88 -639
- package/dist/adapters/vue/components/index.cjs.map +1 -1
- 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 +3 -3
- package/dist/adapters/vue/index.cjs +96 -962
- package/dist/adapters/vue/index.cjs.map +1 -1
- package/dist/adapters/vue/index.js +4 -4
- package/dist/agent/index.cjs +13 -151
- package/dist/agent/index.cjs.map +1 -1
- package/dist/chunk-3IPM5QBT.cjs +436 -0
- package/dist/chunk-3IPM5QBT.cjs.map +1 -0
- package/dist/chunk-5AF72LOE.cjs +97 -0
- package/dist/chunk-5AF72LOE.cjs.map +1 -0
- package/dist/chunk-5YQIAS4V.cjs +184 -0
- package/dist/chunk-5YQIAS4V.cjs.map +1 -0
- package/dist/chunk-D4PUWBN6.cjs +72 -0
- package/dist/chunk-D4PUWBN6.cjs.map +1 -0
- package/dist/{chunk-RYIIIXDX.js → chunk-DU2VIJAF.js} +57 -15
- package/dist/chunk-DU2VIJAF.js.map +1 -0
- package/dist/{chunk-VU6NNCEJ.js → chunk-F2H7WP6R.js} +4 -4
- package/dist/{chunk-VU6NNCEJ.js.map → chunk-F2H7WP6R.js.map} +1 -1
- package/dist/chunk-FSUMCJAR.cjs +646 -0
- package/dist/chunk-FSUMCJAR.cjs.map +1 -0
- package/dist/{chunk-QXQCPH33.js → chunk-G4LSLLGI.js} +4 -4
- package/dist/{chunk-QXQCPH33.js.map → chunk-G4LSLLGI.js.map} +1 -1
- package/dist/chunk-GV7UC3SS.cjs +33 -0
- package/dist/chunk-GV7UC3SS.cjs.map +1 -0
- package/dist/chunk-IZ2UU5UL.cjs +808 -0
- package/dist/chunk-IZ2UU5UL.cjs.map +1 -0
- package/dist/chunk-KOYRJXTI.cjs +123 -0
- package/dist/chunk-KOYRJXTI.cjs.map +1 -0
- package/dist/chunk-KW34ZKF5.cjs +12 -0
- package/dist/chunk-KW34ZKF5.cjs.map +1 -0
- package/dist/chunk-OE527MXF.cjs +49 -0
- package/dist/chunk-OE527MXF.cjs.map +1 -0
- package/dist/chunk-OO247V4J.cjs +2117 -0
- package/dist/chunk-OO247V4J.cjs.map +1 -0
- package/dist/chunk-PMKWYOOX.cjs +64 -0
- package/dist/chunk-PMKWYOOX.cjs.map +1 -0
- package/dist/chunk-PNQY6OFB.cjs +132 -0
- package/dist/chunk-PNQY6OFB.cjs.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/{chunk-MHW5VEIM.js → chunk-SVNK5NIK.js} +3 -3
- package/dist/{chunk-MHW5VEIM.js.map → chunk-SVNK5NIK.js.map} +1 -1
- package/dist/chunk-TMLNVU5W.cjs +318 -0
- package/dist/chunk-TMLNVU5W.cjs.map +1 -0
- package/dist/chunk-TRJYDVWK.cjs +623 -0
- package/dist/chunk-TRJYDVWK.cjs.map +1 -0
- package/dist/chunk-UGG7MCX4.cjs +34 -0
- package/dist/chunk-UGG7MCX4.cjs.map +1 -0
- package/dist/{chunk-UDCXGDLQ.js → chunk-VOD5JA4D.js} +3 -3
- package/dist/{chunk-UDCXGDLQ.js.map → chunk-VOD5JA4D.js.map} +1 -1
- package/dist/chunk-WGPFR7MN.cjs +808 -0
- package/dist/chunk-WGPFR7MN.cjs.map +1 -0
- package/dist/chunk-WGZZKCJQ.cjs +157 -0
- package/dist/chunk-WGZZKCJQ.cjs.map +1 -0
- package/dist/chunk-XQTI4Q4I.js +178 -0
- package/dist/chunk-XQTI4Q4I.js.map +1 -0
- package/dist/devtools/index.cjs +13 -697
- package/dist/devtools/index.cjs.map +1 -1
- package/dist/document/index.cjs +56 -301
- package/dist/document/index.cjs.map +1 -1
- package/dist/examples/index.cjs +1161 -0
- package/dist/examples/index.cjs.map +1 -0
- package/dist/examples/index.d.cts +63 -0
- package/dist/examples/index.d.ts +63 -0
- package/dist/examples/index.js +1158 -0
- package/dist/examples/index.js.map +1 -0
- package/dist/i18n/index.cjs +44 -292
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.js +2 -176
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +335 -3911
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/migrations/index.cjs +7 -590
- package/dist/migrations/index.cjs.map +1 -1
- package/dist/reflect/index.cjs +85 -994
- package/dist/reflect/index.cjs.map +1 -1
- package/package.json +19 -8
- package/dist/chunk-RYIIIXDX.js.map +0 -1
- package/dist/{primitive-props-CGoJvmcH.d.cts → primitive-props-Cl5jiC8g.d.cts} +5 -5
- package/dist/{primitive-props-CGoJvmcH.d.ts → primitive-props-Cl5jiC8g.d.ts} +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/adapters/primitive-props.ts","../../../../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/shared/event-bus/scope-dispatch.ts","../../../../src/adapters/vue/composables/shell.ts","../../../../src/layout/head.ts","../../../../src/layout/adapter.ts","../../../../src/shell/head.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":["z","defineComponent","h","inject","shallowRef","onBeforeUnmount","watch","toValue","onMounted","createTextVNode","Fragment","provide"],"mappings":";;;;;;AAWO,IAAM,gBAAA,GAAmBA,MAC7B,MAAA,CAAO;AAAA,EACN,SAAA,EAAWA,KAAA,CACR,IAAA,CAAK,CAAC,KAAA,EAAO,QAAQ,CAAC,CAAA,CACtB,QAAA,EAAS,CACT,QAAA,CAAS,kCAAkC,CAAA;AAAA,EAC9C,GAAA,EAAKA,KAAA,CACF,MAAA,EAAO,CACP,GAAA,EAAI,CACJ,GAAA,CAAI,CAAC,CAAA,CACL,QAAA,EAAS,CACT,QAAA,CAAS,6CAA6C,CAAA;AAAA,EACzD,KAAA,EAAOA,KAAA,CACJ,IAAA,CAAK,CAAC,OAAA,EAAS,QAAA,EAAU,KAAA,EAAO,SAAS,CAAC,CAAA,CAC1C,QAAA,EAAS,CACT,SAAS,yCAAyC,CAAA;AAAA,EACrD,OAAA,EAASA,KAAA,CACN,IAAA,CAAK,CAAC,SAAS,QAAA,EAAU,KAAA,EAAO,SAAA,EAAW,QAAQ,CAAC,CAAA,CACpD,QAAA,EAAS,CACT,SAAS,0CAA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AA,EACA;AAAA,IACE,IAAA,EAAM;AAAA,MACJ,WAAA,EAAa,sEAAA;AAAA,MACb,WAAA,EAAa;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":"index.cjs","sourcesContent":["import { z } from 'zod';\n\n// ═══════════════════════════════════════════════════════════\n// The headless primitive vocabulary's AUTHORING contracts — one Zod props\n// schema per primitive, framework-free, shared by every adapter kit that ships\n// the vocabulary (react, vue). A schema is what a layout node may set; the\n// kits differ in how they paint, never in what they accept, so the schema\n// lives once, here, and each kit's component carries it as its static `meta`.\n// ═══════════════════════════════════════════════════════════\n\n// ─── Stack ───\nexport const StackPropsSchema = z\n .object({\n direction: z\n .enum(['row', 'column'])\n .optional()\n .describe('Flex direction. Default: column.'),\n gap: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Gap between children in pixels. Default: 0.'),\n align: z\n .enum(['start', 'center', 'end', 'stretch'])\n .optional()\n .describe('Cross-axis alignment. Default: stretch.'),\n justify: z\n .enum(['start', 'center', 'end', 'between', 'around'])\n .optional()\n .describe('Main-axis justification. Default: start.'),\n padding: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Inner padding in pixels. Default: 0.'),\n wrap: z\n .boolean()\n .optional()\n .describe('Whether children wrap to a new line. Default: false.'),\n })\n .strict()\n .describe('Flex container that arranges children in a row or column.');\n\nexport type StackProps = z.infer<typeof StackPropsSchema>;\n\n// ─── Text ───\nexport const TextPropsSchema = z\n .object({\n as: z\n .enum(['span', 'p', 'h1', 'h2', 'h3', 'h4'])\n .optional()\n .describe('HTML element to render. Default: span.'),\n size: z\n .enum(['sm', 'md', 'lg', 'xl', '2xl'])\n .optional()\n .describe('Font size token. Default: md.'),\n weight: z\n .enum(['normal', 'medium', 'bold'])\n .optional()\n .describe('Font weight token. Default: normal.'),\n color: z\n .string()\n .optional()\n .describe('CSS color string (open set). Default: inherit.'),\n })\n .strict()\n .describe('Text element with semantic typography props.');\n\nexport type TextProps = z.infer<typeof TextPropsSchema>;\n\n// ─── Input ───\nexport const InputPropsSchema = z\n .object({\n type: z\n .enum(['text', 'number', 'email', 'password'])\n .optional()\n .describe('Input type. Default: text.'),\n placeholder: z\n .string()\n .optional()\n .describe('Placeholder text shown when empty.'),\n disabled: z\n .boolean()\n .optional()\n .describe('Whether the input is disabled. Default: false.'),\n value: z\n .string()\n .optional()\n .describe('Current value. Typically supplied via model binding.'),\n debounce: z\n .number()\n .optional()\n .describe('Milliseconds to coalesce keystrokes before dispatching ui:model. Default: 0 (every keystroke). Set it when the shell is remote to cut round-trips.'),\n })\n .strict()\n .describe('Text input bound to data via the `model` field on the layout node.');\n\nexport type InputProps = z.infer<typeof InputPropsSchema>;\n\n// ─── Button ───\nexport const ButtonPropsSchema = z\n .object({\n label: z\n .string()\n .optional()\n .describe('Button label. If absent, children are used.'),\n variant: z\n .enum(['primary', 'secondary', 'ghost'])\n .optional()\n .describe('Visual variant. Default: primary.'),\n disabled: z\n .boolean()\n .optional()\n .describe('Whether the button is disabled. Default: false.'),\n })\n .strict()\n .describe(\"Clickable button. Click events fire as `ui:click` with the layout node's ref.\");\n\nexport type ButtonProps = z.infer<typeof ButtonPropsSchema>;\n\n// ─── Box ───\nexport const BoxPropsSchema = z\n .object({\n padding: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Inner padding in pixels. Default: 0.'),\n background: z\n .string()\n .optional()\n .describe('CSS background color or value.'),\n border: z\n .boolean()\n .optional()\n .describe('Whether to show a 1px border. Default: false.'),\n radius: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('Border radius in pixels. Default: 0.'),\n })\n .strict()\n .describe('Generic container with basic styling props. Use Stack for layout, Box for visual wrapping.');\n\nexport type BoxProps = z.infer<typeof BoxPropsSchema>;\n\n// ─── Panel ───\nexport const PanelPropsSchema = z\n .object({\n title: z.string().optional().describe('Optional header title.'),\n backRef: z.string().optional().describe('When set, the header grows a ← (before the title) that fires ui:click with this ref.'),\n closeRef: z.string().optional().describe('When set, the header grows a ✕ that fires ui:click with this ref.'),\n })\n .strict()\n .describe('A framed, elevated surface with an optional title.');\n\nexport type PanelProps = z.infer<typeof PanelPropsSchema>;\n\n// ─── JsonTree ───\nexport const JsonTreePropsSchema = z\n .object({\n value: z.unknown().optional().describe('The value to render.'),\n label: z.string().optional().describe('A name for the root node.'),\n })\n .strict()\n .describe('A collapsible view of any JSON value.');\n\nexport type JsonTreeProps = z.infer<typeof JsonTreePropsSchema>;\n\n// ─── CanvasSlot ───\nexport const CanvasSlotPropsSchema = z\n .object({\n canvasId: z\n .string()\n .optional()\n .describe('Id of the canvas to render. Usually bound from a loop, e.g. \"$.c.id\".'),\n })\n .strict()\n .describe('Renders a canvas by id, recursing into its actionLayout. Resolves to nothing when canvasId is missing.');\n\nexport type CanvasSlotProps = z.infer<typeof CanvasSlotPropsSchema>;\n\n// ─── ActionSlot ───\n// The AUTHORING contract: what a layout node may set on an ActionSlot —\n// instanceId only, strict. The identity props flattenRenderTree stamps on a\n// served marker (canvasId / definitionId) are runtime OUTPUT, never authored;\n// widening this schema would advertise them to the layout agent's palette.\nexport const ActionSlotPropsSchema = z\n .object({\n instanceId: z\n .string()\n .optional()\n .describe('Id of the action instance to render. Usually bound from canvas scope, e.g. \"$.active.id\" or \"$.i.id\".'),\n })\n .strict()\n .describe('Renders an action instance by id. Resolves to nothing when instanceId is missing.');\n\nexport type ActionSlotProps = z.infer<typeof ActionSlotPropsSchema>;\n\n","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 type { NovaEvent } from './schemas';\n\n// Wraps a dispatch function so every event passing through it gets stamped\n// with `origin` (the dispatching action instance's id) unless it already\n// carries one — a re-dispatch keeps its original origin. Adapters wrap the\n// dispatch they hand to an instance's rendered subtree with this, so the\n// runtime delivers UI events to that instance's own triggers only. This is\n// routing semantics: never reimplement it per adapter.\nexport const scopeDispatch = (\n dispatch: (event: NovaEvent) => void,\n origin: string,\n): ((event: NovaEvent) => void) => {\n return (event) => dispatch(event.origin === undefined ? { ...event, origin } : event);\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","// ═══════════════════════════════════════════════════════════\n// THE HEAD — `nova:head` is the document's <head>, as a node in a layout.\n//\n// A document has a part nobody sees on the screen: its title, the sentence\n// that describes it, the card shown where a link to it is pasted. That part\n// is written the way the rest of the screen is — a layout node, its children\n// bound to the action's data — and travels the way the rest does, in the\n// render tree.\n//\n// Its children are the elements a head holds, named as HTML names them:\n// `nova:title`, `nova:meta`, `nova:link`, `nova:script`. A child's props are\n// that element's ATTRIBUTES, written as given. Nova keeps no list of them, so\n// any `name`, `property` or `rel` there is — or will be — can be said without\n// nova learning it.\n//\n// Nothing here is drawn on the screen. No adapter builds an element for a head\n// or for anything in it, and no registry has to hold the names. Whoever writes\n// the document reads the elements off the tree (`headOf`) and writes them into\n// its <head>.\n//\n// WHAT A HEAD DOES NOT HOLD is what runs or styles: a script that executes, a\n// stylesheet, a <base>, an instruction to the browser (`http-equiv`), a handler\n// attribute. A layout is data, and data that reaches every page must not be\n// able to run. Those stay in the app's own index.html, which holds anything.\n//\n// This file holds no schema on purpose: a terminal that only reads a head off\n// the wire needs the names and the shape, and nothing to validate with.\n// ═══════════════════════════════════════════════════════════\n\n// Namespaced as a package's own in-layout components are (`loom:field`), so\n// none can be a name an app's kit already uses for something else.\nexport const HEAD_NAME = 'nova:head';\nexport const HEAD_TITLE_NAME = 'nova:title';\nexport const HEAD_META_NAME = 'nova:meta';\nexport const HEAD_LINK_NAME = 'nova:link';\nexport const HEAD_SCRIPT_NAME = 'nova:script';\n\n// The head and what it holds: the names a layout may use with no registry\n// entry behind them.\nexport const HEAD_NAMES: readonly string[] = [HEAD_NAME, HEAD_TITLE_NAME, HEAD_META_NAME, HEAD_LINK_NAME, HEAD_SCRIPT_NAME];\n\n// One element of a head, as data: what to write, wherever a head is written.\nexport type HeadElement = {\n tag: 'title' | 'meta' | 'link' | 'script';\n // as the layout gave them, in the order it gave them\n attributes: Record<string, string>;\n // a title's words; a script's data, as JSON\n text?: string;\n};\n\n// What two elements both say, when they say the same thing — the later one\n// then takes the earlier one's place. A document has one title, one <meta> of\n// a given name or property, one canonical address. Anything else stands beside\n// its like: two alternates, two data blocks.\nexport const headKeyOf = (element: Pick<HeadElement, 'tag' | 'attributes'>): string | undefined => {\n const said = (name: string): string | undefined => {\n const found = Object.entries(element.attributes).find(([key]) => key.toLowerCase() === name)?.[1].trim().toLowerCase();\n return found === undefined || found === '' ? undefined : found;\n };\n if (element.tag === 'title') return 'title';\n if (element.tag === 'meta') {\n const [name, property] = [said('name'), said('property')];\n if (name !== undefined) return `meta name ${name}`;\n return property === undefined ? undefined : `meta property ${property}`;\n }\n if (element.tag === 'link') return (said('rel') ?? '').split(/\\s+/).includes('canonical') ? 'link canonical' : undefined;\n return undefined;\n};\n","import type { RenderNode } from './types';\n\n// ═══════════════════════════════════════════════════════════\n// Adapter helpers — framework-agnostic pieces every adapter\n// (React, Vue, …) needs to render a RenderNode tree the same\n// way. See packages/nova/ADAPTER.md for the full contract.\n// ═══════════════════════════════════════════════════════════\n\n// Names of the props an adapter injects on rendered components:\n// `RenderNode.model` → NOVA_MODEL_PROP ({ ref, path }),\n// `RenderNode.ref` → NOVA_REF_PROP (string). Constants so all\n// adapters inject identically and components can rely on them.\nexport const NOVA_MODEL_PROP = 'novaModel';\nexport const NOVA_REF_PROP = 'novaRef';\n\n// Stable identity for a RenderNode within its sibling list.\n// Loop identity (stamped from LoopNode.key/index) wins over ref: a shared\n// `ref` across looped rows is an event-target id, not a list key.\nexport const renderNodeKey = (node: RenderNode, index: number): string => {\n if (node.key !== undefined) return `k:${node.key}`;\n if (node.type === 'component') {\n if (node.ref !== undefined) return `c:${node.ref}`;\n return `c:${node.name}:${index}`;\n }\n if (node.type === 'text') return `t:${index}`;\n if (node.type === 'fragment') return `f:${index}`;\n return `e:${node.code}:${index}`;\n};\n","import { HEAD_LINK_NAME, HEAD_META_NAME, HEAD_NAME, HEAD_SCRIPT_NAME, HEAD_TITLE_NAME, headKeyOf } from '../layout/head';\nimport type { HeadElement } from '../layout/head';\nimport type { RenderNode } from '../layout';\nimport type { RenderApi } from './types';\nimport { ACTION_SLOT_NAME, CANVAS_SLOT_NAME } from './slot-names';\n\n// ═══════════════════════════════════════════════════════════\n// The head a screen has, read off its render tree.\n//\n// The frame is walked in the order it is drawn, into each canvas where its\n// slot stands and into each instance on it, and every `nova:head` it meets\n// gives its elements in turn. A screen can hold more than one head — the\n// shell's chrome says what holds on every screen, an action says its own, a\n// dialog opens over a page. An element that says the same thing as an earlier\n// one (the title, a <meta> of that name) takes its place; anything else stands\n// beside what came before.\n//\n// What a head may not hold is refused here, once, for every writer: the\n// element is left out and the reason is given. See ../layout/head.\n// ═══════════════════════════════════════════════════════════\n\nexport type ScreenHead = {\n // what the document's head is to hold, in the order the screen said it\n elements: HeadElement[];\n // the actions whose instances said any of it (none: only the shell's chrome did)\n actions: string[];\n // what a head held that it may not — left out, each with why\n refused: string[];\n};\n\ntype ComponentNode = Extract<RenderNode, { type: 'component' }>;\ntype Read = { element: HeadElement } | { refused: string } | undefined;\n\nconst ATTRIBUTE_NAME = /^[A-Za-z][A-Za-z0-9:._-]*$/;\n// a data block: a type no browser runs\nconst DATA_TYPE = /^application\\/([a-z0-9.-]+\\+)?json$/i;\n\n// A prop, as the attribute it is written as — or nothing, when it says nothing.\nconst written = (value: unknown): string | undefined => {\n if (typeof value === 'string') return value.trim() === '' ? undefined : value;\n if (typeof value === 'number') return String(value);\n return value === true ? '' : undefined;\n};\n\n// An element's attributes, from its props — or why it may not be written.\nconst attributesOf = (what: string, props: Record<string, unknown>, skip: readonly string[] = []): { attributes: Record<string, string> } | { refused: string } => {\n const attributes: Record<string, string> = {};\n for (const [name, value] of Object.entries(props)) {\n if (skip.includes(name)) continue;\n if (!ATTRIBUTE_NAME.test(name)) return { refused: `${what}: \"${name}\" is not an attribute’s name` };\n if (/^on/i.test(name)) return { refused: `${what}: \\`${name}\\` is a handler, and a layout does not run` };\n const text = written(value);\n if (text !== undefined) attributes[name] = text;\n }\n return { attributes };\n};\n\nconst has = (attributes: Record<string, string>, name: string): boolean => Object.keys(attributes).some((key) => key.toLowerCase() === name);\nconst valueOf = (attributes: Record<string, string>, name: string): string => Object.entries(attributes).find(([key]) => key.toLowerCase() === name)?.[1] ?? '';\n\nconst textOf = (nodes: readonly RenderNode[]): string =>\n nodes.map((node) => (node.type === 'text' ? node.value : node.type === 'fragment' ? textOf(node.children) : '')).join('');\n\nconst titleOf = (node: ComponentNode): Read => {\n const text = textOf(node.children).trim();\n return text === '' ? undefined : { element: { tag: 'title', attributes: {}, text } };\n};\n\nconst metaOf = (node: ComponentNode): Read => {\n const read = attributesOf(HEAD_META_NAME, node.props);\n if ('refused' in read) return read;\n if (has(read.attributes, 'http-equiv')) return { refused: `${HEAD_META_NAME}: \\`http-equiv\\` instructs the browser, and a layout does not` };\n // nothing to say yet: its value is not answered\n return has(read.attributes, 'content') ? { element: { tag: 'meta', attributes: read.attributes } } : undefined;\n};\n\nconst linkOf = (node: ComponentNode): Read => {\n const read = attributesOf(HEAD_LINK_NAME, node.props);\n if ('refused' in read) return read;\n if (valueOf(read.attributes, 'rel').toLowerCase().split(/\\s+/).includes('stylesheet')) return { refused: `${HEAD_LINK_NAME}: a stylesheet styles the page, and a layout does not` };\n return has(read.attributes, 'href') ? { element: { tag: 'link', attributes: read.attributes } } : undefined;\n};\n\nconst scriptOf = (node: ComponentNode): Read => {\n const read = attributesOf(HEAD_SCRIPT_NAME, node.props, ['data']);\n if ('refused' in read) return read;\n if (has(read.attributes, 'src')) return { refused: `${HEAD_SCRIPT_NAME}: a script with a \\`src\\` runs, and a layout does not` };\n const type = valueOf(read.attributes, 'type');\n if (!DATA_TYPE.test(type)) return { refused: `${HEAD_SCRIPT_NAME}: only a data block may be written (a JSON \\`type\\`), and \"${type}\" is not one` };\n const data = node.props['data'];\n if (data === undefined || data === null || data === '') return undefined;\n return { element: { tag: 'script', attributes: read.attributes, text: JSON.stringify(data) } };\n};\n\nconst READERS: Record<string, (node: ComponentNode) => Read> = {\n [HEAD_TITLE_NAME]: titleOf,\n [HEAD_META_NAME]: metaOf,\n [HEAD_LINK_NAME]: linkOf,\n [HEAD_SCRIPT_NAME]: scriptOf,\n};\n\nexport const isHeadNode = (node: RenderNode): boolean => node.type === 'component' && node.name === HEAD_NAME;\n\nexport const headOf = (api: Pick<RenderApi, 'frame' | 'canvasTree'>): ScreenHead | undefined => {\n let heads = 0;\n const said: { element: HeadElement; action: string | undefined }[] = [];\n const refused: string[] = [];\n // a canvas whose own tree names it again would never end\n const open = new Set<string>();\n\n const hold = (nodes: readonly RenderNode[], action: string | undefined): void => {\n for (const node of nodes) {\n if (node.type === 'fragment') {\n hold(node.children, action);\n continue;\n }\n if (node.type === 'error') {\n refused.push(`${HEAD_NAME}: ${node.message}`);\n continue;\n }\n // text between a head's elements is nothing\n if (node.type !== 'component') continue;\n const read = READERS[node.name];\n if (read === undefined) {\n refused.push(`${HEAD_NAME}: \"${node.name}\" is not something a head holds`);\n continue;\n }\n const found = read(node);\n if (found === undefined) continue;\n if ('refused' in found) {\n refused.push(found.refused);\n continue;\n }\n const key = headKeyOf(found.element);\n const earlier = key === undefined ? -1 : said.findIndex((other) => headKeyOf(other.element) === key);\n if (earlier >= 0) said.splice(earlier, 1);\n said.push({ element: found.element, action });\n }\n };\n\n const walk = (nodes: readonly RenderNode[], action: string | undefined): void => {\n for (const node of nodes) {\n if (node.type === 'fragment') {\n walk(node.children, action);\n continue;\n }\n if (node.type !== 'component') continue;\n if (node.name === HEAD_NAME) {\n heads += 1;\n hold(node.children, action);\n continue;\n }\n if (node.name === CANVAS_SLOT_NAME) {\n const canvasId = node.props['canvasId'];\n if (typeof canvasId !== 'string' || canvasId === '' || open.has(canvasId)) continue;\n open.add(canvasId);\n walk(api.canvasTree(canvasId), undefined);\n open.delete(canvasId);\n continue;\n }\n const definitionId = node.name === ACTION_SLOT_NAME ? node.props['definitionId'] : undefined;\n walk(node.children, typeof definitionId === 'string' ? definitionId : action);\n }\n };\n\n walk(api.frame(), undefined);\n if (heads === 0) return undefined;\n const actions = [...new Set(said.flatMap((one) => (one.action === undefined ? [] : [one.action])))];\n return { elements: said.map((one) => one.element), actions, refused };\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":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -3,22 +3,22 @@ import * as zod_v4_core from 'zod/v4/core';
|
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { c as NovaComponentProps } from '../../../types-C9734_lJ.cjs';
|
|
6
|
-
export { A as ActionSlotProps, b as ActionSlotPropsSchema, a as BoxProps, c as BoxPropsSchema, B as ButtonProps, d as ButtonPropsSchema, C as CanvasSlotProps, e as CanvasSlotPropsSchema, I as InputProps, f as InputPropsSchema, J as JsonTreeProps, g as JsonTreePropsSchema, P as PanelProps, h as PanelPropsSchema, S as StackProps, i as StackPropsSchema, T as TextProps, j as TextPropsSchema } from '../../../primitive-props-
|
|
6
|
+
export { A as ActionSlotProps, b as ActionSlotPropsSchema, a as BoxProps, c as BoxPropsSchema, B as ButtonProps, d as ButtonPropsSchema, C as CanvasSlotProps, e as CanvasSlotPropsSchema, I as InputProps, f as InputPropsSchema, J as JsonTreeProps, g as JsonTreePropsSchema, P as PanelProps, h as PanelPropsSchema, S as StackProps, i as StackPropsSchema, T as TextProps, j as TextPropsSchema } from '../../../primitive-props-Cl5jiC8g.cjs';
|
|
7
7
|
import '../../../schemas-DPdeFlCT.cjs';
|
|
8
8
|
import '../../../schemas-pMyyuXV7.cjs';
|
|
9
9
|
|
|
10
10
|
declare const Stack: vue.DefineSetupFnComponent<{
|
|
11
11
|
direction?: "row" | "column" | undefined;
|
|
12
12
|
gap?: number | undefined;
|
|
13
|
-
align?: "
|
|
14
|
-
justify?: "
|
|
13
|
+
align?: "start" | "center" | "end" | "stretch" | undefined;
|
|
14
|
+
justify?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
15
15
|
padding?: number | undefined;
|
|
16
16
|
wrap?: boolean | undefined;
|
|
17
17
|
}, {}, {}, {
|
|
18
18
|
direction?: "row" | "column" | undefined;
|
|
19
19
|
gap?: number | undefined;
|
|
20
|
-
align?: "
|
|
21
|
-
justify?: "
|
|
20
|
+
align?: "start" | "center" | "end" | "stretch" | undefined;
|
|
21
|
+
justify?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
22
22
|
padding?: number | undefined;
|
|
23
23
|
wrap?: boolean | undefined;
|
|
24
24
|
} & {}, vue.PublicProps> & {
|
|
@@ -31,14 +31,14 @@ declare const Stack: vue.DefineSetupFnComponent<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
gap: zod.ZodOptional<zod.ZodNumber>;
|
|
33
33
|
align: zod.ZodOptional<zod.ZodEnum<{
|
|
34
|
-
center: "center";
|
|
35
34
|
start: "start";
|
|
35
|
+
center: "center";
|
|
36
36
|
end: "end";
|
|
37
37
|
stretch: "stretch";
|
|
38
38
|
}>>;
|
|
39
39
|
justify: zod.ZodOptional<zod.ZodEnum<{
|
|
40
|
-
center: "center";
|
|
41
40
|
start: "start";
|
|
41
|
+
center: "center";
|
|
42
42
|
end: "end";
|
|
43
43
|
between: "between";
|
|
44
44
|
around: "around";
|
|
@@ -72,12 +72,12 @@ declare const Box: vue.DefineSetupFnComponent<{
|
|
|
72
72
|
declare const Text: vue.DefineSetupFnComponent<{
|
|
73
73
|
as?: "h1" | "h2" | "h3" | "h4" | "p" | "span" | undefined;
|
|
74
74
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
75
|
-
weight?: "
|
|
75
|
+
weight?: "normal" | "medium" | "bold" | undefined;
|
|
76
76
|
color?: string | undefined;
|
|
77
77
|
}, {}, {}, {
|
|
78
78
|
as?: "h1" | "h2" | "h3" | "h4" | "p" | "span" | undefined;
|
|
79
79
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
80
|
-
weight?: "
|
|
80
|
+
weight?: "normal" | "medium" | "bold" | undefined;
|
|
81
81
|
color?: string | undefined;
|
|
82
82
|
} & {}, vue.PublicProps> & {
|
|
83
83
|
meta: {
|
|
@@ -99,9 +99,9 @@ declare const Text: vue.DefineSetupFnComponent<{
|
|
|
99
99
|
"2xl": "2xl";
|
|
100
100
|
}>>;
|
|
101
101
|
weight: zod.ZodOptional<zod.ZodEnum<{
|
|
102
|
-
bold: "bold";
|
|
103
102
|
normal: "normal";
|
|
104
103
|
medium: "medium";
|
|
104
|
+
bold: "bold";
|
|
105
105
|
}>>;
|
|
106
106
|
color: zod.ZodOptional<zod.ZodString>;
|
|
107
107
|
}, zod_v4_core.$strict>;
|
|
@@ -3,22 +3,22 @@ import * as zod_v4_core from 'zod/v4/core';
|
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { c as NovaComponentProps } from '../../../types-BWc-olbY.js';
|
|
6
|
-
export { A as ActionSlotProps, b as ActionSlotPropsSchema, a as BoxProps, c as BoxPropsSchema, B as ButtonProps, d as ButtonPropsSchema, C as CanvasSlotProps, e as CanvasSlotPropsSchema, I as InputProps, f as InputPropsSchema, J as JsonTreeProps, g as JsonTreePropsSchema, P as PanelProps, h as PanelPropsSchema, S as StackProps, i as StackPropsSchema, T as TextProps, j as TextPropsSchema } from '../../../primitive-props-
|
|
6
|
+
export { A as ActionSlotProps, b as ActionSlotPropsSchema, a as BoxProps, c as BoxPropsSchema, B as ButtonProps, d as ButtonPropsSchema, C as CanvasSlotProps, e as CanvasSlotPropsSchema, I as InputProps, f as InputPropsSchema, J as JsonTreeProps, g as JsonTreePropsSchema, P as PanelProps, h as PanelPropsSchema, S as StackProps, i as StackPropsSchema, T as TextProps, j as TextPropsSchema } from '../../../primitive-props-Cl5jiC8g.js';
|
|
7
7
|
import '../../../schemas-DPdeFlCT.js';
|
|
8
8
|
import '../../../schemas-pMyyuXV7.js';
|
|
9
9
|
|
|
10
10
|
declare const Stack: vue.DefineSetupFnComponent<{
|
|
11
11
|
direction?: "row" | "column" | undefined;
|
|
12
12
|
gap?: number | undefined;
|
|
13
|
-
align?: "
|
|
14
|
-
justify?: "
|
|
13
|
+
align?: "start" | "center" | "end" | "stretch" | undefined;
|
|
14
|
+
justify?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
15
15
|
padding?: number | undefined;
|
|
16
16
|
wrap?: boolean | undefined;
|
|
17
17
|
}, {}, {}, {
|
|
18
18
|
direction?: "row" | "column" | undefined;
|
|
19
19
|
gap?: number | undefined;
|
|
20
|
-
align?: "
|
|
21
|
-
justify?: "
|
|
20
|
+
align?: "start" | "center" | "end" | "stretch" | undefined;
|
|
21
|
+
justify?: "start" | "center" | "end" | "between" | "around" | undefined;
|
|
22
22
|
padding?: number | undefined;
|
|
23
23
|
wrap?: boolean | undefined;
|
|
24
24
|
} & {}, vue.PublicProps> & {
|
|
@@ -31,14 +31,14 @@ declare const Stack: vue.DefineSetupFnComponent<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
gap: zod.ZodOptional<zod.ZodNumber>;
|
|
33
33
|
align: zod.ZodOptional<zod.ZodEnum<{
|
|
34
|
-
center: "center";
|
|
35
34
|
start: "start";
|
|
35
|
+
center: "center";
|
|
36
36
|
end: "end";
|
|
37
37
|
stretch: "stretch";
|
|
38
38
|
}>>;
|
|
39
39
|
justify: zod.ZodOptional<zod.ZodEnum<{
|
|
40
|
-
center: "center";
|
|
41
40
|
start: "start";
|
|
41
|
+
center: "center";
|
|
42
42
|
end: "end";
|
|
43
43
|
between: "between";
|
|
44
44
|
around: "around";
|
|
@@ -72,12 +72,12 @@ declare const Box: vue.DefineSetupFnComponent<{
|
|
|
72
72
|
declare const Text: vue.DefineSetupFnComponent<{
|
|
73
73
|
as?: "h1" | "h2" | "h3" | "h4" | "p" | "span" | undefined;
|
|
74
74
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
75
|
-
weight?: "
|
|
75
|
+
weight?: "normal" | "medium" | "bold" | undefined;
|
|
76
76
|
color?: string | undefined;
|
|
77
77
|
}, {}, {}, {
|
|
78
78
|
as?: "h1" | "h2" | "h3" | "h4" | "p" | "span" | undefined;
|
|
79
79
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
80
|
-
weight?: "
|
|
80
|
+
weight?: "normal" | "medium" | "bold" | undefined;
|
|
81
81
|
color?: string | undefined;
|
|
82
82
|
} & {}, vue.PublicProps> & {
|
|
83
83
|
meta: {
|
|
@@ -99,9 +99,9 @@ declare const Text: vue.DefineSetupFnComponent<{
|
|
|
99
99
|
"2xl": "2xl";
|
|
100
100
|
}>>;
|
|
101
101
|
weight: zod.ZodOptional<zod.ZodEnum<{
|
|
102
|
-
bold: "bold";
|
|
103
102
|
normal: "normal";
|
|
104
103
|
medium: "medium";
|
|
104
|
+
bold: "bold";
|
|
105
105
|
}>>;
|
|
106
106
|
color: zod.ZodOptional<zod.ZodString>;
|
|
107
107
|
}, zod_v4_core.$strict>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ActionSlot, Box, Button, CanvasSlot, Input, JsonTree, Panel, Stack, Text, registerNovaVueComponents } from '../../../chunk-
|
|
2
|
-
export { ActionSlotPropsSchema, BoxPropsSchema, ButtonPropsSchema, CanvasSlotPropsSchema, InputPropsSchema, JsonTreePropsSchema, PanelPropsSchema, StackPropsSchema, TextPropsSchema } from '../../../chunk-
|
|
1
|
+
export { ActionSlot, Box, Button, CanvasSlot, Input, JsonTree, Panel, Stack, Text, registerNovaVueComponents } from '../../../chunk-F2H7WP6R.js';
|
|
2
|
+
export { ActionSlotPropsSchema, BoxPropsSchema, ButtonPropsSchema, CanvasSlotPropsSchema, InputPropsSchema, JsonTreePropsSchema, PanelPropsSchema, StackPropsSchema, TextPropsSchema } from '../../../chunk-VOD5JA4D.js';
|
|
3
3
|
import '../../../chunk-V4BPFFFV.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-DU2VIJAF.js';
|
|
5
5
|
import '../../../chunk-RFBIGRCI.js';
|
|
6
6
|
import '../../../chunk-Y6XVPRYH.js';
|
|
7
7
|
import '../../../chunk-OGD5CCMZ.js';
|