@niscorp/nova 0.1.1 → 0.1.3

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.
Files changed (67) hide show
  1. package/ACTION_DOCS.md +121 -30
  2. package/ADAPTER.md +167 -12
  3. package/CHANGELOG.md +18 -0
  4. package/DESIGN.md +45 -22
  5. package/I18N_DOCS.md +4 -4
  6. package/LAYOUT_DOCS.md +55 -14
  7. package/REACT_DOCS.md +52 -16
  8. package/README.md +55 -20
  9. package/SHELL_DOCS.md +136 -16
  10. package/TERMINAL_DOCS.md +13 -7
  11. package/dist/adapters/dom/components/index.d.cts +2 -2
  12. package/dist/adapters/dom/components/index.d.ts +2 -2
  13. package/dist/adapters/dom/index.cjs +351 -53
  14. package/dist/adapters/dom/index.cjs.map +1 -1
  15. package/dist/adapters/dom/index.d.cts +4 -2
  16. package/dist/adapters/dom/index.d.ts +4 -2
  17. package/dist/adapters/dom/index.js +2 -2
  18. package/dist/adapters/dom/server.cjs +356 -55
  19. package/dist/adapters/dom/server.cjs.map +1 -1
  20. package/dist/adapters/dom/server.d.cts +2 -2
  21. package/dist/adapters/dom/server.d.ts +2 -2
  22. package/dist/adapters/dom/server.js +7 -4
  23. package/dist/adapters/dom/server.js.map +1 -1
  24. package/dist/adapters/react/components/index.d.cts +2 -2
  25. package/dist/adapters/react/components/index.d.ts +2 -2
  26. package/dist/adapters/react/index.d.cts +4 -4
  27. package/dist/adapters/react/index.d.ts +4 -4
  28. package/dist/adapters/tty/components/index.d.cts +2 -2
  29. package/dist/adapters/tty/components/index.d.ts +2 -2
  30. package/dist/adapters/tty/index.d.cts +2 -2
  31. package/dist/adapters/tty/index.d.ts +2 -2
  32. package/dist/adapters/vue/components/index.d.cts +5 -5
  33. package/dist/adapters/vue/components/index.d.ts +5 -5
  34. package/dist/adapters/vue/index.d.cts +4 -4
  35. package/dist/adapters/vue/index.d.ts +4 -4
  36. package/dist/adapters/vue/index.js +1 -1
  37. package/dist/agent/index.d.cts +2 -2
  38. package/dist/agent/index.d.ts +2 -2
  39. package/dist/{chunk-7B3RDENH.js → chunk-6N4WRC5V.js} +9 -4
  40. package/dist/chunk-6N4WRC5V.js.map +1 -0
  41. package/dist/chunk-FQAJ24KA.js +408 -0
  42. package/dist/chunk-FQAJ24KA.js.map +1 -0
  43. package/dist/devtools/index.d.cts +2 -2
  44. package/dist/devtools/index.d.ts +2 -2
  45. package/dist/i18n/index.d.cts +2 -2
  46. package/dist/i18n/index.d.ts +2 -2
  47. package/dist/index.cjs +8 -2
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +5 -5
  50. package/dist/index.d.ts +5 -5
  51. package/dist/index.js +2 -2
  52. package/dist/{palette-CP0wd3bE.d.ts → palette-Mx7XHYC6.d.ts} +1 -1
  53. package/dist/{palette-lm0bU9i5.d.cts → palette-wbJB_svk.d.cts} +1 -1
  54. package/dist/reflect/index.d.cts +2 -2
  55. package/dist/reflect/index.d.ts +2 -2
  56. package/dist/{types-DdltMfw7.d.ts → types-B-rjaUX0.d.ts} +1 -1
  57. package/dist/{types-Boh9ckdG.d.ts → types-BB9RXel5.d.ts} +1 -1
  58. package/dist/{types-De0KpxfI.d.cts → types-BLVRduoz.d.cts} +11 -1
  59. package/dist/{types-DhHL0twe.d.ts → types-B_nOtkyt.d.ts} +1 -1
  60. package/dist/{types-Brc7v_pS.d.ts → types-DE77Jl2W.d.ts} +11 -1
  61. package/dist/{types-Dv6JLmgo.d.cts → types-PDXOkvtK.d.cts} +1 -1
  62. package/dist/{types-Q80YtOQt.d.cts → types-mRKXqZPX.d.cts} +1 -1
  63. package/dist/{types-ByNSwtUV.d.cts → types-uk19d6KC.d.cts} +1 -1
  64. package/package.json +7 -7
  65. package/dist/chunk-7B3RDENH.js.map +0 -1
  66. package/dist/chunk-OAMC6R6E.js +0 -121
  67. package/dist/chunk-OAMC6R6E.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { C as ComponentRegistry } from '../../types-Brc7v_pS.js';
2
- import { R as RenderApi } from '../../types-Boh9ckdG.js';
1
+ import { C as ComponentRegistry } from '../../types-DE77Jl2W.js';
2
+ import { R as RenderApi } from '../../types-BB9RXel5.js';
3
3
  import { DomComponent } from './index.js';
4
4
  import 'zod';
5
5
  import '../../schemas-DPdeFlCT.js';
@@ -1,5 +1,5 @@
1
- import { createDomView } from '../../chunk-OAMC6R6E.js';
2
- import '../../chunk-7B3RDENH.js';
1
+ import { createDomView } from '../../chunk-FQAJ24KA.js';
2
+ import '../../chunk-6N4WRC5V.js';
3
3
  import '../../chunk-RQB4PRPV.js';
4
4
  import '../../chunk-OGD5CCMZ.js';
5
5
  import '../../chunk-GVBBL36G.js';
@@ -22,8 +22,11 @@ var renderToString = (registry, api, options) => {
22
22
  if (value !== void 0) Object.defineProperty(globalThis, name, { value, configurable: true, writable: true });
23
23
  }
24
24
  const root = document.createElement("div");
25
- createDomView(root, registry, api, options.fallback !== void 0 ? { fallback: options.fallback } : {}).render();
26
- return root.innerHTML;
25
+ const view = createDomView(root, registry, api, options.fallback !== void 0 ? { fallback: options.fallback } : {});
26
+ view.render();
27
+ const markup = root.innerHTML;
28
+ view.destroy();
29
+ return markup;
27
30
  } finally {
28
31
  for (const [name, descriptor] of before) {
29
32
  if (descriptor === void 0) Reflect.deleteProperty(globalThis, name);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/adapters/dom/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBA,IAAM,IAAA,GAAO,CAAC,UAAA,EAAY,MAAA,EAAQ,SAAA,EAAW,aAAA,EAAe,YAAA,EAAc,kBAAA,EAAoB,qBAAA,EAAuB,mBAAA,EAAqB,eAAA,EAAiB,OAAO,CAAA;AAE3J,IAAM,cAAA,GAAiB,CAAC,QAAA,EAA2C,GAAA,EAAgB,OAAA,KAAiE;AACzJ,EAAA,MAAM,MAAA,GAAS,IAAA,CAAK,GAAA,CAAI,CAAC,IAAA,KAAS,CAAC,IAAA,EAAM,MAAA,CAAO,wBAAA,CAAyB,UAAA,EAAY,IAAI,CAAC,CAAU,CAAA;AACpG,EAAA,IAAI;AACF,IAAA,KAAA,MAAW,QAAQ,IAAA,EAAM;AACvB,MAAA,MAAM,KAAA,GAAiB,OAAA,CAAQ,GAAA,CAAI,OAAA,CAAQ,QAAQ,IAAI,CAAA;AACvD,MAAA,IAAI,KAAA,KAAU,KAAA,CAAA,EAAW,MAAA,CAAO,cAAA,CAAe,UAAA,EAAY,IAAA,EAAM,EAAE,KAAA,EAAO,YAAA,EAAc,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,CAAA;AAAA,IAChH;AACA,IAAA,MAAM,IAAA,GAAO,QAAA,CAAS,aAAA,CAAc,KAAK,CAAA;AACzC,IAAA,aAAA,CAAc,IAAA,EAAM,QAAA,EAAU,GAAA,EAAK,OAAA,CAAQ,aAAa,KAAA,CAAA,GAAY,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS,GAAI,EAAE,EAAE,MAAA,EAAO;AAChH,IAAA,OAAO,IAAA,CAAK,SAAA;AAAA,EACd,CAAA,SAAE;AACA,IAAA,KAAA,MAAW,CAAC,IAAA,EAAM,UAAU,CAAA,IAAK,MAAA,EAAQ;AACvC,MAAA,IAAI,UAAA,KAAe,MAAA,EAAW,OAAA,CAAQ,cAAA,CAAe,YAAY,IAAI,CAAA;AAAA,WAChE,MAAA,CAAO,cAAA,CAAe,UAAA,EAAY,IAAA,EAAM,UAAU,CAAA;AAAA,IACzD;AAAA,EACF;AACF","file":"server.js","sourcesContent":["import type { ComponentRegistry } from '@layout/types';\nimport type { RenderApi } from '@shell';\nimport { createDomView } from './index';\nimport type { DomComponent } from './index';\n\n// ═══════════════════════════════════════════════════════════\n// @niscorp/nova/adapters/dom/server — the DOM adapter, drawing to a string.\n//\n// A DOM kit builds real elements, so drawing one where there is no browser needs\n// a DOM to build them in. The caller hands one in — a `window` from jsdom,\n// happy-dom or linkedom; nova depends on none of them — and this draws into it\n// and reads the markup back. What is drawn is whatever the `RenderApi` holds: a\n// served snapshot, or a shell that lives in this process (`shellView`).\n//\n// A kit's components name `document` as a global, the way they do in a browser.\n// So for the length of one draw — synchronous from start to end, and so unable\n// to interleave with another — the window's own names are lent to the global\n// scope, and taken back whatever happens.\n//\n// The browser needs no twin of this to pick the page up: the adapter rebuilds\n// its root on every render, so its first render replaces these elements with\n// the same elements, in one step (`mountShell`).\n// ═══════════════════════════════════════════════════════════\n\n// What a DOM kit and the adapter itself name as globals.\nconst LENT = ['document', 'Node', 'Element', 'HTMLElement', 'SVGElement', 'HTMLInputElement', 'HTMLTextAreaElement', 'HTMLSelectElement', 'KeyboardEvent', 'Event'];\n\nexport const renderToString = (registry: ComponentRegistry<DomComponent>, api: RenderApi, options: { window: object; fallback?: DomComponent }): string => {\n const before = LENT.map((name) => [name, Object.getOwnPropertyDescriptor(globalThis, name)] as const);\n try {\n for (const name of LENT) {\n const value: unknown = Reflect.get(options.window, name);\n if (value !== undefined) Object.defineProperty(globalThis, name, { value, configurable: true, writable: true });\n }\n const root = document.createElement('div');\n createDomView(root, registry, api, options.fallback !== undefined ? { fallback: options.fallback } : {}).render();\n return root.innerHTML;\n } finally {\n for (const [name, descriptor] of before) {\n if (descriptor === undefined) Reflect.deleteProperty(globalThis, name);\n else Object.defineProperty(globalThis, name, descriptor);\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../../../src/adapters/dom/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AA8BA,IAAM,IAAA,GAAO,CAAC,UAAA,EAAY,MAAA,EAAQ,SAAA,EAAW,aAAA,EAAe,YAAA,EAAc,kBAAA,EAAoB,qBAAA,EAAuB,mBAAA,EAAqB,eAAA,EAAiB,OAAO,CAAA;AAE3J,IAAM,cAAA,GAAiB,CAAC,QAAA,EAA2C,GAAA,EAAgB,OAAA,KAAiE;AACzJ,EAAA,MAAM,MAAA,GAAS,IAAA,CAAK,GAAA,CAAI,CAAC,IAAA,KAAS,CAAC,IAAA,EAAM,MAAA,CAAO,wBAAA,CAAyB,UAAA,EAAY,IAAI,CAAC,CAAU,CAAA;AACpG,EAAA,IAAI;AACF,IAAA,KAAA,MAAW,QAAQ,IAAA,EAAM;AACvB,MAAA,MAAM,KAAA,GAAiB,OAAA,CAAQ,GAAA,CAAI,OAAA,CAAQ,QAAQ,IAAI,CAAA;AACvD,MAAA,IAAI,KAAA,KAAU,KAAA,CAAA,EAAW,MAAA,CAAO,cAAA,CAAe,UAAA,EAAY,IAAA,EAAM,EAAE,KAAA,EAAO,YAAA,EAAc,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,CAAA;AAAA,IAChH;AACA,IAAA,MAAM,IAAA,GAAO,QAAA,CAAS,aAAA,CAAc,KAAK,CAAA;AACzC,IAAA,MAAM,IAAA,GAAO,aAAA,CAAc,IAAA,EAAM,QAAA,EAAU,KAAK,OAAA,CAAQ,QAAA,KAAa,KAAA,CAAA,GAAY,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS,GAAI,EAAE,CAAA;AACpH,IAAA,IAAA,CAAK,MAAA,EAAO;AACZ,IAAA,MAAM,SAAS,IAAA,CAAK,SAAA;AACpB,IAAA,IAAA,CAAK,OAAA,EAAQ;AACb,IAAA,OAAO,MAAA;AAAA,EACT,CAAA,SAAE;AACA,IAAA,KAAA,MAAW,CAAC,IAAA,EAAM,UAAU,CAAA,IAAK,MAAA,EAAQ;AACvC,MAAA,IAAI,UAAA,KAAe,MAAA,EAAW,OAAA,CAAQ,cAAA,CAAe,YAAY,IAAI,CAAA;AAAA,WAChE,MAAA,CAAO,cAAA,CAAe,UAAA,EAAY,IAAA,EAAM,UAAU,CAAA;AAAA,IACzD;AAAA,EACF;AACF","file":"server.js","sourcesContent":["import type { ComponentRegistry } from '@layout/types';\nimport type { RenderApi } from '@shell';\nimport { createDomView } from './index';\nimport type { DomComponent } from './index';\n\n// ═══════════════════════════════════════════════════════════\n// @niscorp/nova/adapters/dom/server — the DOM adapter, drawing to a string.\n//\n// A DOM kit builds real elements, so drawing one where there is no browser needs\n// a DOM to build them in. The caller hands one in — a `window` from jsdom,\n// happy-dom or linkedom; nova depends on none of them — and this draws into it\n// and reads the markup back. What is drawn is whatever the `RenderApi` holds: a\n// served snapshot, or a shell that lives in this process (`shellView`).\n//\n// A kit's components name `document` as a global, the way they do in a browser.\n// So for the length of one draw — synchronous from start to end, and so unable\n// to interleave with another — the window's own names are lent to the global\n// scope, and taken back whatever happens.\n//\n// The browser needs no twin of this to pick the page up: a view's FIRST render\n// replaces whatever its root holds, so these elements are replaced with the\n// same elements, in one step (`mountShell`). Only the first — from then on the\n// view keeps what did not change.\n//\n// A draw ends with the view destroyed, so whatever a component started while\n// it was built (a timer, through its `onRemove`) is stopped here rather than\n// left running in a process that only wanted the markup.\n// ═══════════════════════════════════════════════════════════\n\n// What a DOM kit and the adapter itself name as globals.\nconst LENT = ['document', 'Node', 'Element', 'HTMLElement', 'SVGElement', 'HTMLInputElement', 'HTMLTextAreaElement', 'HTMLSelectElement', 'KeyboardEvent', 'Event'];\n\nexport const renderToString = (registry: ComponentRegistry<DomComponent>, api: RenderApi, options: { window: object; fallback?: DomComponent }): string => {\n const before = LENT.map((name) => [name, Object.getOwnPropertyDescriptor(globalThis, name)] as const);\n try {\n for (const name of LENT) {\n const value: unknown = Reflect.get(options.window, name);\n if (value !== undefined) Object.defineProperty(globalThis, name, { value, configurable: true, writable: true });\n }\n const root = document.createElement('div');\n const view = createDomView(root, registry, api, options.fallback !== undefined ? { fallback: options.fallback } : {});\n view.render();\n const markup = root.innerHTML;\n view.destroy();\n return markup;\n } finally {\n for (const [name, descriptor] of before) {\n if (descriptor === undefined) Reflect.deleteProperty(globalThis, name);\n else Object.defineProperty(globalThis, name, descriptor);\n }\n }\n};\n"]}
@@ -1,5 +1,5 @@
1
- import { C as ComponentRegistry } from '../../../types-De0KpxfI.cjs';
2
- import { N as NovaComponent } from '../../../types-ByNSwtUV.cjs';
1
+ import { C as ComponentRegistry } from '../../../types-BLVRduoz.cjs';
2
+ import { N as NovaComponent } from '../../../types-uk19d6KC.cjs';
3
3
  import { S as StackProps, T as TextProps, I as InputProps, B as ButtonProps, a as BoxProps, P as PanelProps, J as JsonTreeProps, C as CanvasSlotProps, A as ActionSlotProps } from '../../../primitive-props-BH_EJWIe.cjs';
4
4
  export { b as ActionSlotPropsSchema, c as BoxPropsSchema, d as ButtonPropsSchema, e as CanvasSlotPropsSchema, f as InputPropsSchema, g as JsonTreePropsSchema, h as PanelPropsSchema, i as StackPropsSchema, j as TextPropsSchema } from '../../../primitive-props-BH_EJWIe.cjs';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { C as ComponentRegistry } from '../../../types-Brc7v_pS.js';
2
- import { N as NovaComponent } from '../../../types-DdltMfw7.js';
1
+ import { C as ComponentRegistry } from '../../../types-DE77Jl2W.js';
2
+ import { N as NovaComponent } from '../../../types-B-rjaUX0.js';
3
3
  import { S as StackProps, T as TextProps, I as InputProps, B as ButtonProps, a as BoxProps, P as PanelProps, J as JsonTreeProps, C as CanvasSlotProps, A as ActionSlotProps } from '../../../primitive-props-BH_EJWIe.js';
4
4
  export { b as ActionSlotPropsSchema, c as BoxPropsSchema, d as ButtonPropsSchema, e as CanvasSlotPropsSchema, f as InputPropsSchema, g as JsonTreePropsSchema, h as PanelPropsSchema, i as StackPropsSchema, j as TextPropsSchema } from '../../../primitive-props-BH_EJWIe.js';
5
5
  import 'zod';
@@ -1,9 +1,9 @@
1
- import { N as NovaComponent, a as NovaDispatch, b as NovaPublish } from '../../types-ByNSwtUV.cjs';
2
- export { c as NovaComponentProps, d as NovaModelBinding } from '../../types-ByNSwtUV.cjs';
1
+ import { N as NovaComponent, a as NovaDispatch, b as NovaPublish } from '../../types-uk19d6KC.cjs';
2
+ export { c as NovaComponentProps, d as NovaModelBinding } from '../../types-uk19d6KC.cjs';
3
3
  import { FC, ReactNode, ComponentType, Component, ErrorInfo } from 'react';
4
4
  import { A as ActionDefinition } from '../../index-caZoXSwr.cjs';
5
- import { C as ComponentRegistry, b as RenderNode, r as RegistrationInput, L as LayoutStore, a as RenderOnError, R as RenderContext } from '../../types-De0KpxfI.cjs';
6
- import { a as Shell, q as StateSnapshot, d as CanvasState, b as ActionStatus } from '../../types-Dv6JLmgo.cjs';
5
+ import { C as ComponentRegistry, b as RenderNode, s as RegistrationInput, L as LayoutStore, a as RenderOnError, R as RenderContext } from '../../types-BLVRduoz.cjs';
6
+ import { a as Shell, q as StateSnapshot, d as CanvasState, b as ActionStatus } from '../../types-PDXOkvtK.cjs';
7
7
  import { L as LayoutNode } from '../../schemas-DPdeFlCT.cjs';
8
8
  import '../../schemas-pMyyuXV7.cjs';
9
9
  import 'zod';
@@ -1,9 +1,9 @@
1
- import { N as NovaComponent, a as NovaDispatch, b as NovaPublish } from '../../types-DdltMfw7.js';
2
- export { c as NovaComponentProps, d as NovaModelBinding } from '../../types-DdltMfw7.js';
1
+ import { N as NovaComponent, a as NovaDispatch, b as NovaPublish } from '../../types-B-rjaUX0.js';
2
+ export { c as NovaComponentProps, d as NovaModelBinding } from '../../types-B-rjaUX0.js';
3
3
  import { FC, ReactNode, ComponentType, Component, ErrorInfo } from 'react';
4
4
  import { A as ActionDefinition } from '../../index-CNfzSBe2.js';
5
- import { C as ComponentRegistry, b as RenderNode, r as RegistrationInput, L as LayoutStore, a as RenderOnError, R as RenderContext } from '../../types-Brc7v_pS.js';
6
- import { a as Shell, q as StateSnapshot, d as CanvasState, b as ActionStatus } from '../../types-Boh9ckdG.js';
5
+ import { C as ComponentRegistry, b as RenderNode, s as RegistrationInput, L as LayoutStore, a as RenderOnError, R as RenderContext } from '../../types-DE77Jl2W.js';
6
+ import { a as Shell, q as StateSnapshot, d as CanvasState, b as ActionStatus } from '../../types-BB9RXel5.js';
7
7
  import { L as LayoutNode } from '../../schemas-DPdeFlCT.js';
8
8
  import '../../schemas-pMyyuXV7.js';
9
9
  import 'zod';
@@ -1,8 +1,8 @@
1
- import { C as ComponentRegistry } from '../../../types-De0KpxfI.cjs';
1
+ import { C as ComponentRegistry } from '../../../types-BLVRduoz.cjs';
2
2
  import { TtyComponent, TtyBlock } from '../index.cjs';
3
3
  import 'zod';
4
4
  import '../../../schemas-DPdeFlCT.cjs';
5
- import '../../../types-Dv6JLmgo.cjs';
5
+ import '../../../types-PDXOkvtK.cjs';
6
6
  import '../../../index-caZoXSwr.cjs';
7
7
  import '../../../effects-CndX9K7D.cjs';
8
8
  import '../../../schemas-pMyyuXV7.cjs';
@@ -1,8 +1,8 @@
1
- import { C as ComponentRegistry } from '../../../types-Brc7v_pS.js';
1
+ import { C as ComponentRegistry } from '../../../types-DE77Jl2W.js';
2
2
  import { TtyComponent, TtyBlock } from '../index.js';
3
3
  import 'zod';
4
4
  import '../../../schemas-DPdeFlCT.js';
5
- import '../../../types-Boh9ckdG.js';
5
+ import '../../../types-BB9RXel5.js';
6
6
  import '../../../index-CNfzSBe2.js';
7
7
  import '../../../effects-CndX9K7D.js';
8
8
  import '../../../schemas-pMyyuXV7.js';
@@ -1,5 +1,5 @@
1
- import { C as ComponentRegistry } from '../../types-De0KpxfI.cjs';
2
- import { R as RenderApi } from '../../types-Dv6JLmgo.cjs';
1
+ import { C as ComponentRegistry } from '../../types-BLVRduoz.cjs';
2
+ import { R as RenderApi } from '../../types-PDXOkvtK.cjs';
3
3
  import 'zod';
4
4
  import '../../schemas-DPdeFlCT.cjs';
5
5
  import '../../index-caZoXSwr.cjs';
@@ -1,5 +1,5 @@
1
- import { C as ComponentRegistry } from '../../types-Brc7v_pS.js';
2
- import { R as RenderApi } from '../../types-Boh9ckdG.js';
1
+ import { C as ComponentRegistry } from '../../types-DE77Jl2W.js';
2
+ import { R as RenderApi } from '../../types-BB9RXel5.js';
3
3
  import 'zod';
4
4
  import '../../schemas-DPdeFlCT.js';
5
5
  import '../../index-CNfzSBe2.js';
@@ -1,8 +1,8 @@
1
- import { C as ComponentRegistry } from '../../../types-De0KpxfI.cjs';
1
+ import { C as ComponentRegistry } from '../../../types-BLVRduoz.cjs';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
  import * as zod from 'zod';
4
4
  import * as vue from 'vue';
5
- import { c as NovaComponentProps } from '../../../types-Q80YtOQt.cjs';
5
+ import { c as NovaComponentProps } from '../../../types-mRKXqZPX.cjs';
6
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-BH_EJWIe.cjs';
7
7
  import '../../../schemas-DPdeFlCT.cjs';
8
8
  import '../../../schemas-pMyyuXV7.cjs';
@@ -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?: "normal" | "medium" | "bold" | undefined;
75
+ weight?: "bold" | "normal" | "medium" | 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?: "normal" | "medium" | "bold" | undefined;
80
+ weight?: "bold" | "normal" | "medium" | 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";
102
103
  normal: "normal";
103
104
  medium: "medium";
104
- bold: "bold";
105
105
  }>>;
106
106
  color: zod.ZodOptional<zod.ZodString>;
107
107
  }, zod_v4_core.$strict>;
@@ -1,8 +1,8 @@
1
- import { C as ComponentRegistry } from '../../../types-Brc7v_pS.js';
1
+ import { C as ComponentRegistry } from '../../../types-DE77Jl2W.js';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
  import * as zod from 'zod';
4
4
  import * as vue from 'vue';
5
- import { c as NovaComponentProps } from '../../../types-DhHL0twe.js';
5
+ import { c as NovaComponentProps } from '../../../types-B_nOtkyt.js';
6
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-BH_EJWIe.js';
7
7
  import '../../../schemas-DPdeFlCT.js';
8
8
  import '../../../schemas-pMyyuXV7.js';
@@ -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?: "normal" | "medium" | "bold" | undefined;
75
+ weight?: "bold" | "normal" | "medium" | 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?: "normal" | "medium" | "bold" | undefined;
80
+ weight?: "bold" | "normal" | "medium" | 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";
102
103
  normal: "normal";
103
104
  medium: "medium";
104
- bold: "bold";
105
105
  }>>;
106
106
  color: zod.ZodOptional<zod.ZodString>;
107
107
  }, zod_v4_core.$strict>;
@@ -1,10 +1,10 @@
1
- import { N as NovaDispatch, a as NovaPublish, b as NovaComponent } from '../../types-Q80YtOQt.cjs';
2
- export { c as NovaComponentProps, d as NovaModelBinding, i as isNovaComponent } from '../../types-Q80YtOQt.cjs';
1
+ import { N as NovaDispatch, a as NovaPublish, b as NovaComponent } from '../../types-mRKXqZPX.cjs';
2
+ export { c as NovaComponentProps, d as NovaModelBinding, i as isNovaComponent } from '../../types-mRKXqZPX.cjs';
3
3
  import * as vue from 'vue';
4
4
  import { Component, InjectionKey, VNodeChild, MaybeRefOrGetter, Ref } from 'vue';
5
5
  import { A as ActionDefinition } from '../../index-caZoXSwr.cjs';
6
- import { C as ComponentRegistry, b as RenderNode } from '../../types-De0KpxfI.cjs';
7
- import { a as Shell, b as ActionStatus, d as CanvasState, q as StateSnapshot } from '../../types-Dv6JLmgo.cjs';
6
+ import { C as ComponentRegistry, b as RenderNode } from '../../types-BLVRduoz.cjs';
7
+ import { a as Shell, b as ActionStatus, d as CanvasState, q as StateSnapshot } from '../../types-PDXOkvtK.cjs';
8
8
  import '../../schemas-pMyyuXV7.cjs';
9
9
  import 'zod';
10
10
  import '../../effects-CndX9K7D.cjs';
@@ -1,10 +1,10 @@
1
- import { N as NovaDispatch, a as NovaPublish, b as NovaComponent } from '../../types-DhHL0twe.js';
2
- export { c as NovaComponentProps, d as NovaModelBinding, i as isNovaComponent } from '../../types-DhHL0twe.js';
1
+ import { N as NovaDispatch, a as NovaPublish, b as NovaComponent } from '../../types-B_nOtkyt.js';
2
+ export { c as NovaComponentProps, d as NovaModelBinding, i as isNovaComponent } from '../../types-B_nOtkyt.js';
3
3
  import * as vue from 'vue';
4
4
  import { Component, InjectionKey, VNodeChild, MaybeRefOrGetter, Ref } from 'vue';
5
5
  import { A as ActionDefinition } from '../../index-CNfzSBe2.js';
6
- import { C as ComponentRegistry, b as RenderNode } from '../../types-Brc7v_pS.js';
7
- import { a as Shell, b as ActionStatus, d as CanvasState, q as StateSnapshot } from '../../types-Boh9ckdG.js';
6
+ import { C as ComponentRegistry, b as RenderNode } from '../../types-DE77Jl2W.js';
7
+ import { a as Shell, b as ActionStatus, d as CanvasState, q as StateSnapshot } from '../../types-BB9RXel5.js';
8
8
  import '../../schemas-pMyyuXV7.js';
9
9
  import 'zod';
10
10
  import '../../effects-CndX9K7D.js';
@@ -1,7 +1,7 @@
1
1
  import { NovaRenderKey, NovaShellKey, useShellRenderTree, RenderTree, useShell, useCanvasRenderTree, registerNovaVueComponents } from '../../chunk-4ZID7UX5.js';
2
2
  export { ErrorMarker, NovaRenderKey, NovaShellKey, RenderNodeView, RenderTree, isNovaComponent, useActionData, useActionStatus, useCanvas, useCanvasRenderTree, useNovaDispatch, useNovaPublish, useNovaRegistry, useRenderTree, useShell, useShellRenderTree, useShellState, useSlotWrapper } from '../../chunk-4ZID7UX5.js';
3
3
  import '../../chunk-7S5BNPUS.js';
4
- import { CANVAS_SLOT_NAME } from '../../chunk-7B3RDENH.js';
4
+ import { CANVAS_SLOT_NAME } from '../../chunk-6N4WRC5V.js';
5
5
  import '../../chunk-RQB4PRPV.js';
6
6
  import '../../chunk-OGD5CCMZ.js';
7
7
  import '../../chunk-GVBBL36G.js';
@@ -1,8 +1,8 @@
1
1
  import { AgentDefinition } from '@niscorp/cortex';
2
2
  import { L as LayoutNode } from '../schemas-DPdeFlCT.cjs';
3
- export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, a as paletteFromRegistry } from '../palette-lm0bU9i5.cjs';
3
+ export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, a as paletteFromRegistry } from '../palette-wbJB_svk.cjs';
4
4
  import 'zod';
5
- import '../types-De0KpxfI.cjs';
5
+ import '../types-BLVRduoz.cjs';
6
6
 
7
7
  type LayoutAgentOutput = LayoutNode;
8
8
  declare const layoutAgent: AgentDefinition<LayoutNode>;
@@ -1,8 +1,8 @@
1
1
  import { AgentDefinition } from '@niscorp/cortex';
2
2
  import { L as LayoutNode } from '../schemas-DPdeFlCT.js';
3
- export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, a as paletteFromRegistry } from '../palette-CP0wd3bE.js';
3
+ export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, a as paletteFromRegistry } from '../palette-Mx7XHYC6.js';
4
4
  import 'zod';
5
- import '../types-Brc7v_pS.js';
5
+ import '../types-DE77Jl2W.js';
6
6
 
7
7
  type LayoutAgentOutput = LayoutNode;
8
8
  declare const layoutAgent: AgentDefinition<LayoutNode>;
@@ -601,7 +601,9 @@ var executeSteps = async (steps, ctx) => {
601
601
  buffer = [];
602
602
  const chain = createScopeChain(ctx.dataStore.get());
603
603
  const resolved = resolveMutationValues(list, chain, ctx.extras);
604
- ctx.dataStore.update((curr) => applyMutations(curr, resolved));
604
+ ctx.dataStore.update(
605
+ (curr) => applyMutations(curr, resolved, { ...ctx.initial === void 0 ? {} : { initial: ctx.initial }, strict: ctx.strict })
606
+ );
605
607
  };
606
608
  for (const step of steps) {
607
609
  if (ctx.signal.aborted) {
@@ -918,6 +920,7 @@ var createActionRuntime = (config) => {
918
920
  ...config.onEndpoint === void 0 ? {} : { onEndpoint: (event) => config.onEndpoint({ ...event, instanceId: instance.id, canvasId: instance.canvasId }) },
919
921
  calls,
920
922
  extras: {},
923
+ initial: initialSnapshot,
921
924
  strict,
922
925
  onError,
923
926
  signal,
@@ -1006,7 +1009,7 @@ var createActionRuntime = (config) => {
1006
1009
  } else {
1007
1010
  await runLifecycleHook("mount", definition, () => buildContext(abortController.signal, cause));
1008
1011
  }
1009
- setStatus("active");
1012
+ if (instance.status === "initializing") setStatus("active");
1010
1013
  };
1011
1014
  const unmount = async () => {
1012
1015
  abortController.abort();
@@ -1729,6 +1732,7 @@ var createShell = (config) => {
1729
1732
  if (canvases.has(cfg.id)) return;
1730
1733
  canvases.set(cfg.id, createCanvas(cfg.id));
1731
1734
  if (cfg.actionLayout !== void 0) actionLayouts.set(cfg.id, cfg.actionLayout);
1735
+ if (cfg.mode === "list") listCanvases.add(cfg.id);
1732
1736
  canvasOrder.push(cfg.id);
1733
1737
  seedCanvas(cfg);
1734
1738
  fireState();
@@ -1743,6 +1747,7 @@ var createShell = (config) => {
1743
1747
  journal.forgetCanvas(canvasId);
1744
1748
  announced.delete(canvasId);
1745
1749
  actionLayouts.delete(canvasId);
1750
+ listCanvases.delete(canvasId);
1746
1751
  const index = canvasOrder.indexOf(canvasId);
1747
1752
  if (index >= 0) canvasOrder.splice(index, 1);
1748
1753
  fireState();
@@ -1978,5 +1983,5 @@ var shellSettled = async (shell, options = {}) => {
1978
1983
  };
1979
1984
 
1980
1985
  export { ACTION_SLOT_NAME, CANVAS_SLOT_NAME, DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, shellSettled, shellView };
1981
- //# sourceMappingURL=chunk-7B3RDENH.js.map
1982
- //# sourceMappingURL=chunk-7B3RDENH.js.map
1986
+ //# sourceMappingURL=chunk-6N4WRC5V.js.map
1987
+ //# sourceMappingURL=chunk-6N4WRC5V.js.map