@niscorp/nova 0.5.0 → 0.5.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/ACTION_DOCS.md +2 -0
- package/CHANGELOG.md +14 -0
- package/DESIGN.md +14 -12
- package/README.md +8 -1
- package/SHELL_DOCS.md +26 -1
- package/dist/adapters/dom/components/index.d.cts +1 -1
- package/dist/adapters/dom/components/index.d.ts +1 -1
- package/dist/adapters/dom/index.cjs +4 -4
- package/dist/adapters/dom/index.d.cts +1 -1
- package/dist/adapters/dom/index.d.ts +1 -1
- package/dist/adapters/dom/index.js +2 -2
- package/dist/adapters/dom/server.cjs +3 -3
- package/dist/adapters/dom/server.d.cts +1 -1
- package/dist/adapters/dom/server.d.ts +1 -1
- package/dist/adapters/dom/server.js +2 -2
- package/dist/adapters/react/components/index.cjs +22 -22
- package/dist/adapters/react/components/index.js +3 -3
- package/dist/adapters/react/index.cjs +25 -25
- package/dist/adapters/react/index.d.cts +1 -1
- package/dist/adapters/react/index.d.ts +1 -1
- package/dist/adapters/react/index.js +3 -3
- package/dist/adapters/tty/components/index.d.cts +1 -1
- package/dist/adapters/tty/components/index.d.ts +1 -1
- package/dist/adapters/tty/index.cjs +1 -1
- package/dist/adapters/tty/index.d.cts +1 -1
- package/dist/adapters/tty/index.d.ts +1 -1
- package/dist/adapters/tty/index.js +1 -1
- package/dist/adapters/vue/components/index.cjs +22 -22
- package/dist/adapters/vue/components/index.d.cts +9 -9
- package/dist/adapters/vue/components/index.d.ts +9 -9
- package/dist/adapters/vue/components/index.js +3 -3
- package/dist/adapters/vue/index.cjs +30 -30
- package/dist/adapters/vue/index.d.cts +1 -1
- package/dist/adapters/vue/index.d.ts +1 -1
- package/dist/adapters/vue/index.js +4 -4
- package/dist/{chunk-FVGJD6CI.cjs → chunk-3XZODV7S.cjs} +4 -4
- package/dist/{chunk-FVGJD6CI.cjs.map → chunk-3XZODV7S.cjs.map} +1 -1
- package/dist/{chunk-GFMNQT2X.js → chunk-57PZEPIK.js} +4 -4
- package/dist/{chunk-GFMNQT2X.js.map → chunk-57PZEPIK.js.map} +1 -1
- package/dist/{chunk-DMAVKM7M.cjs → chunk-5T26T2EJ.cjs} +4 -4
- package/dist/{chunk-DMAVKM7M.cjs.map → chunk-5T26T2EJ.cjs.map} +1 -1
- package/dist/{chunk-WKDPEBXU.js → chunk-6VHOMWNF.js} +3 -3
- package/dist/{chunk-WKDPEBXU.js.map → chunk-6VHOMWNF.js.map} +1 -1
- package/dist/{chunk-CAKJCAHW.cjs → chunk-ITSVPZS5.cjs} +15 -15
- package/dist/{chunk-CAKJCAHW.cjs.map → chunk-ITSVPZS5.cjs.map} +1 -1
- package/dist/{chunk-IIOO6Z4T.js → chunk-LAVCNLL3.js} +4 -4
- package/dist/{chunk-IIOO6Z4T.js.map → chunk-LAVCNLL3.js.map} +1 -1
- package/dist/{chunk-WRVT7JTK.cjs → chunk-OWA5Z3WT.cjs} +45 -13
- package/dist/chunk-OWA5Z3WT.cjs.map +1 -0
- package/dist/{chunk-L5HAGG4U.js → chunk-OY7SCFTJ.js} +45 -13
- package/dist/chunk-OY7SCFTJ.js.map +1 -0
- package/dist/{chunk-OPF42ISN.js → chunk-T33VE5XQ.js} +3 -3
- package/dist/{chunk-OPF42ISN.js.map → chunk-T33VE5XQ.js.map} +1 -1
- package/dist/{chunk-TWXAKLMX.cjs → chunk-UIWTFU3M.cjs} +16 -16
- package/dist/{chunk-TWXAKLMX.cjs.map → chunk-UIWTFU3M.cjs.map} +1 -1
- package/dist/devtools/index.d.cts +1 -1
- package/dist/devtools/index.d.ts +1 -1
- package/dist/document/index.d.cts +3 -3
- package/dist/document/index.d.ts +3 -3
- package/dist/examples/index.d.cts +1 -1
- package/dist/examples/index.d.ts +1 -1
- package/dist/{head-pDYg3tbK.d.ts → head-CVjtToF8.d.ts} +1 -1
- package/dist/{head-CBse5408.d.cts → head-zznJvVEE.d.cts} +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +4 -20
- package/dist/index.d.ts +4 -20
- package/dist/index.js +1 -1
- package/dist/reflect/index.d.cts +1 -1
- package/dist/reflect/index.d.ts +1 -1
- package/dist/{types-6KTCKlXf.d.cts → types-CWOom_fv.d.cts} +27 -1
- package/dist/{types-DV-GDFJd.d.ts → types-DOm2MKDk.d.ts} +27 -1
- package/package.json +7 -7
- package/dist/chunk-L5HAGG4U.js.map +0 -1
- package/dist/chunk-WRVT7JTK.cjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkUIWTFU3M_cjs = require('../../../chunk-UIWTFU3M.cjs');
|
|
4
|
+
var chunk3XZODV7S_cjs = require('../../../chunk-3XZODV7S.cjs');
|
|
5
5
|
require('../../../chunk-QHX3VA55.cjs');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-OWA5Z3WT.cjs');
|
|
7
7
|
require('../../../chunk-QTJ4ZQRM.cjs');
|
|
8
8
|
require('../../../chunk-VDB7VHFS.cjs');
|
|
9
9
|
require('../../../chunk-OM2HY2GE.cjs');
|
|
@@ -19,79 +19,79 @@ require('../../../chunk-Q7SFCCGT.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "ActionSlot", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUIWTFU3M_cjs.ActionSlot; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "Box", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkUIWTFU3M_cjs.Box; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "Button", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkUIWTFU3M_cjs.Button; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "CanvasSlot", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkUIWTFU3M_cjs.CanvasSlot; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "Input", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkUIWTFU3M_cjs.Input; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "JsonTree", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkUIWTFU3M_cjs.JsonTree; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "Panel", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkUIWTFU3M_cjs.Panel; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "Stack", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkUIWTFU3M_cjs.Stack; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "Text", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkUIWTFU3M_cjs.Text; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "registerNovaVueComponents", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkUIWTFU3M_cjs.registerNovaVueComponents; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "ActionSlotPropsSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk3XZODV7S_cjs.ActionSlotPropsSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "BoxPropsSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk3XZODV7S_cjs.BoxPropsSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "ButtonPropsSchema", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk3XZODV7S_cjs.ButtonPropsSchema; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "CanvasSlotPropsSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk3XZODV7S_cjs.CanvasSlotPropsSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "InputPropsSchema", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk3XZODV7S_cjs.InputPropsSchema; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "JsonTreePropsSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk3XZODV7S_cjs.JsonTreePropsSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "PanelPropsSchema", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk3XZODV7S_cjs.PanelPropsSchema; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "StackPropsSchema", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk3XZODV7S_cjs.StackPropsSchema; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "TextPropsSchema", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk3XZODV7S_cjs.TextPropsSchema; }
|
|
95
95
|
});
|
|
96
96
|
//# sourceMappingURL=index.cjs.map
|
|
97
97
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -10,15 +10,15 @@ import '../../../schemas-pMyyuXV7.cjs';
|
|
|
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>;
|
|
@@ -10,15 +10,15 @@ import '../../../schemas-pMyyuXV7.js';
|
|
|
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-57PZEPIK.js';
|
|
2
|
+
export { ActionSlotPropsSchema, BoxPropsSchema, ButtonPropsSchema, CanvasSlotPropsSchema, InputPropsSchema, JsonTreePropsSchema, PanelPropsSchema, StackPropsSchema, TextPropsSchema } from '../../../chunk-6VHOMWNF.js';
|
|
3
3
|
import '../../../chunk-SCXYAXMO.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-OY7SCFTJ.js';
|
|
5
5
|
import '../../../chunk-C63CBYD5.js';
|
|
6
6
|
import '../../../chunk-E2PXYR3H.js';
|
|
7
7
|
import '../../../chunk-A3IIJF4E.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkUIWTFU3M_cjs = require('../../chunk-UIWTFU3M.cjs');
|
|
4
|
+
require('../../chunk-3XZODV7S.cjs');
|
|
5
5
|
require('../../chunk-QHX3VA55.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-OWA5Z3WT.cjs');
|
|
7
7
|
var chunkQTJ4ZQRM_cjs = require('../../chunk-QTJ4ZQRM.cjs');
|
|
8
8
|
require('../../chunk-VDB7VHFS.cjs');
|
|
9
9
|
require('../../chunk-OM2HY2GE.cjs');
|
|
@@ -39,7 +39,7 @@ var NovaRenderProvider = vue.defineComponent(
|
|
|
39
39
|
return props.fallback;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
vue.provide(
|
|
42
|
+
vue.provide(chunkUIWTFU3M_cjs.NovaRenderKey, value);
|
|
43
43
|
return () => slots.default?.();
|
|
44
44
|
},
|
|
45
45
|
{ name: "NovaRenderProvider", props: ["registry", "dispatch", "publish", "slotWrapper", "fallback"] }
|
|
@@ -51,8 +51,8 @@ var NovaShellProvider = vue.defineComponent(
|
|
|
51
51
|
return props.shell;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
vue.provide(
|
|
55
|
-
|
|
54
|
+
vue.provide(chunkUIWTFU3M_cjs.NovaShellKey, source);
|
|
55
|
+
chunkUIWTFU3M_cjs.provideShellHead(() => props.shell);
|
|
56
56
|
const dispatch = (event) => props.shell.dispatch(event);
|
|
57
57
|
const publish = (channel, payload) => props.shell.publish(channel, payload);
|
|
58
58
|
return () => vue.h(
|
|
@@ -83,12 +83,12 @@ var NovaErrorBoundary = vue.defineComponent(
|
|
|
83
83
|
);
|
|
84
84
|
var ensureVueBuiltins = (registry) => {
|
|
85
85
|
if (registry.has(chunkQTJ4ZQRM_cjs.CANVAS_SLOT_NAME)) return;
|
|
86
|
-
|
|
86
|
+
chunkUIWTFU3M_cjs.registerNovaVueComponents(registry);
|
|
87
87
|
};
|
|
88
88
|
var ShellRenderTreeView = vue.defineComponent(
|
|
89
89
|
() => {
|
|
90
|
-
const nodes =
|
|
91
|
-
return () => vue.h(
|
|
90
|
+
const nodes = chunkUIWTFU3M_cjs.useShellRenderTree();
|
|
91
|
+
return () => vue.h(chunkUIWTFU3M_cjs.RenderTree, { nodes: nodes.value });
|
|
92
92
|
},
|
|
93
93
|
{ name: "NovaShellRenderTree" }
|
|
94
94
|
);
|
|
@@ -105,9 +105,9 @@ var NovaShell = vue.defineComponent(
|
|
|
105
105
|
);
|
|
106
106
|
var CanvasRenderTreeView = vue.defineComponent(
|
|
107
107
|
(props) => {
|
|
108
|
-
|
|
109
|
-
const nodes =
|
|
110
|
-
return () => vue.h(
|
|
108
|
+
chunkUIWTFU3M_cjs.useShell();
|
|
109
|
+
const nodes = chunkUIWTFU3M_cjs.useCanvasRenderTree(() => props.canvasId);
|
|
110
|
+
return () => vue.h(chunkUIWTFU3M_cjs.RenderTree, { nodes: nodes.value });
|
|
111
111
|
},
|
|
112
112
|
{ name: "NovaCanvasRenderTree", props: ["canvasId"] }
|
|
113
113
|
);
|
|
@@ -126,75 +126,75 @@ var NovaCanvas = vue.defineComponent(
|
|
|
126
126
|
|
|
127
127
|
Object.defineProperty(exports, "ErrorMarker", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkUIWTFU3M_cjs.ErrorMarker; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "NovaRenderKey", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkUIWTFU3M_cjs.NovaRenderKey; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "NovaShellKey", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkUIWTFU3M_cjs.NovaShellKey; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "RenderNodeView", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkUIWTFU3M_cjs.RenderNodeView; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "RenderTree", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkUIWTFU3M_cjs.RenderTree; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "isNovaComponent", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkUIWTFU3M_cjs.isNovaComponent; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "useActionData", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkUIWTFU3M_cjs.useActionData; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "useActionStatus", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkUIWTFU3M_cjs.useActionStatus; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "useCanvas", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkUIWTFU3M_cjs.useCanvas; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "useCanvasRenderTree", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkUIWTFU3M_cjs.useCanvasRenderTree; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "useNovaDispatch", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkUIWTFU3M_cjs.useNovaDispatch; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "useNovaPublish", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkUIWTFU3M_cjs.useNovaPublish; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "useNovaRegistry", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkUIWTFU3M_cjs.useNovaRegistry; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "useRenderTree", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkUIWTFU3M_cjs.useRenderTree; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "useShell", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkUIWTFU3M_cjs.useShell; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "useShellRenderTree", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkUIWTFU3M_cjs.useShellRenderTree; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "useShellState", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkUIWTFU3M_cjs.useShellState; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "useSlotWrapper", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkUIWTFU3M_cjs.useSlotWrapper; }
|
|
198
198
|
});
|
|
199
199
|
exports.NovaCanvas = NovaCanvas;
|
|
200
200
|
exports.NovaErrorBoundary = NovaErrorBoundary;
|
|
@@ -4,7 +4,7 @@ import * as vue from 'vue';
|
|
|
4
4
|
import { Component, InjectionKey, VNodeChild, MaybeRefOrGetter, Ref } from 'vue';
|
|
5
5
|
import { A as ActionDefinition } from '../../index-BoPH5aSd.cjs';
|
|
6
6
|
import { C as ComponentRegistry, b as RenderNode } from '../../types-CR56luN7.cjs';
|
|
7
|
-
import { a as Shell, b as ActionStatus, d as CanvasState,
|
|
7
|
+
import { a as Shell, b as ActionStatus, d as CanvasState, w as StateSnapshot } from '../../types-CWOom_fv.cjs';
|
|
8
8
|
import '../../schemas-pMyyuXV7.cjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../../effects-DkBBrxVj.cjs';
|
|
@@ -4,7 +4,7 @@ import * as vue from 'vue';
|
|
|
4
4
|
import { Component, InjectionKey, VNodeChild, MaybeRefOrGetter, Ref } from 'vue';
|
|
5
5
|
import { A as ActionDefinition } from '../../index-BjQX8XZl.js';
|
|
6
6
|
import { C as ComponentRegistry, b as RenderNode } from '../../types-CJC8mnzl.js';
|
|
7
|
-
import { a as Shell, b as ActionStatus, d as CanvasState,
|
|
7
|
+
import { a as Shell, b as ActionStatus, d as CanvasState, w as StateSnapshot } from '../../types-DOm2MKDk.js';
|
|
8
8
|
import '../../schemas-pMyyuXV7.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../../effects-DkBBrxVj.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NovaRenderKey, NovaShellKey, provideShellHead, useShellRenderTree, RenderTree, useShell, useCanvasRenderTree, registerNovaVueComponents } from '../../chunk-
|
|
2
|
-
export { ErrorMarker, NovaRenderKey, NovaShellKey, RenderNodeView, RenderTree, isNovaComponent, useActionData, useActionStatus, useCanvas, useCanvasRenderTree, useNovaDispatch, useNovaPublish, useNovaRegistry, useRenderTree, useShell, useShellRenderTree, useShellState, useSlotWrapper } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
import { NovaRenderKey, NovaShellKey, provideShellHead, useShellRenderTree, RenderTree, useShell, useCanvasRenderTree, registerNovaVueComponents } from '../../chunk-57PZEPIK.js';
|
|
2
|
+
export { ErrorMarker, NovaRenderKey, NovaShellKey, RenderNodeView, RenderTree, isNovaComponent, useActionData, useActionStatus, useCanvas, useCanvasRenderTree, useNovaDispatch, useNovaPublish, useNovaRegistry, useRenderTree, useShell, useShellRenderTree, useShellState, useSlotWrapper } from '../../chunk-57PZEPIK.js';
|
|
3
|
+
import '../../chunk-6VHOMWNF.js';
|
|
4
4
|
import '../../chunk-SCXYAXMO.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-OY7SCFTJ.js';
|
|
6
6
|
import { CANVAS_SLOT_NAME } from '../../chunk-C63CBYD5.js';
|
|
7
7
|
import '../../chunk-E2PXYR3H.js';
|
|
8
8
|
import '../../chunk-A3IIJF4E.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHX3VA55_cjs = require('./chunk-QHX3VA55.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkOWA5Z3WT_cjs = require('./chunk-OWA5Z3WT.cjs');
|
|
5
5
|
var chunkQTJ4ZQRM_cjs = require('./chunk-QTJ4ZQRM.cjs');
|
|
6
6
|
var zod = require('zod');
|
|
7
7
|
|
|
@@ -55,7 +55,7 @@ var ActionSlotPropsSchema = zod.z.object({
|
|
|
55
55
|
|
|
56
56
|
// src/document/shell-head.ts
|
|
57
57
|
var createShellHead = (shell) => {
|
|
58
|
-
const view =
|
|
58
|
+
const view = chunkOWA5Z3WT_cjs.shellView(shell);
|
|
59
59
|
let present = 0;
|
|
60
60
|
let keep;
|
|
61
61
|
let queued = false;
|
|
@@ -93,5 +93,5 @@ exports.PanelPropsSchema = PanelPropsSchema;
|
|
|
93
93
|
exports.StackPropsSchema = StackPropsSchema;
|
|
94
94
|
exports.TextPropsSchema = TextPropsSchema;
|
|
95
95
|
exports.createShellHead = createShellHead;
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
96
|
+
//# sourceMappingURL=chunk-3XZODV7S.cjs.map
|
|
97
|
+
//# sourceMappingURL=chunk-3XZODV7S.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/adapters/primitive-props.ts","../src/document/shell-head.ts"],"names":["z","shellView","createHeadKeeper","headOf"],"mappings":";;;;;;;AAEO,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,CA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CAAC,CAAA,CACA,MAAA,EAAO,CACP,QAAA,CAAS,mFAAmF;;;AC3KxF,IAAM,eAAA,GAAkB,CAAC,KAAA,KAA4B;AAC1D,EAAA,MAAM,IAAA,GAAOC,4BAAU,KAAK,CAAA;AAC5B,EAAA,IAAI,OAAA,GAAU,CAAA;AACd,EAAA,IAAI,IAAA;AACJ,EAAA,IAAI,MAAA,GAAS,KAAA;AACb,EAAA,MAAM,OAAO,MAAY;AACvB,IAAA,IAAI,MAAA,IAAU,OAAO,QAAA,KAAa,WAAA,EAAa;AAC/C,IAAA,MAAA,GAAS,IAAA;AACT,IAAA,cAAA,CAAe,MAAM;AACnB,MAAA,MAAA,GAAS,KAAA;AACT,MAAA,IAAA,KAASC,mCAAiB,QAAQ,CAAA;AAClC,MAAA,IAAA,CAAK,UAAU,CAAA,GAAIC,wBAAA,CAAO,KAAK,GAAG,CAAA,EAAG,WAAW,MAAS,CAAA;AAAA,IAC3D,CAAC,CAAA;AAAA,EACH,CAAA;AACA,EAAA,OAAO;AAAA,IACL,OAAO,MAAM;AACX,MAAA,OAAA,IAAW,CAAA;AACX,MAAA,IAAA,EAAK;AAAA,IACP,CAAA;AAAA,IACA,OAAO,MAAM;AACX,MAAA,OAAA,IAAW,CAAA;AACX,MAAA,IAAA,EAAK;AAAA,IACP,CAAA;AAAA,IACA,KAAA,EAAO,MACL,IAAA,CAAK,SAAA,CAAU,MAAM;AACnB,MAAA,IAAI,OAAA,GAAU,GAAG,IAAA,EAAK;AAAA,IACxB,CAAC;AAAA,GACL;AACF","file":"chunk-FVGJD6CI.cjs","sourcesContent":["import { z } from 'zod';\n\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\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\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\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\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\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\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\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// Authored props only. The `canvasId` and `definitionId` that flattenRenderTree\n// stamps on a served marker are output: in this schema they would be offered to\n// 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 { headOf, shellView } from '../shell';\nimport type { Shell } from '../shell';\nimport { createHeadKeeper } from './head-keeper';\nimport type { HeadKeeper } from './head-keeper';\n\nexport type ShellHead = {\n enter: () => void;\n leave: () => void;\n watch: () => () => void;\n};\n\nexport const createShellHead = (shell: Shell): ShellHead => {\n const view = shellView(shell);\n let present = 0;\n let keep: HeadKeeper | undefined;\n let queued = false;\n const read = (): void => {\n if (queued || typeof document === 'undefined') return;\n queued = true;\n queueMicrotask(() => {\n queued = false;\n keep ??= createHeadKeeper(document);\n keep(present > 0 ? headOf(view.api)?.elements : undefined);\n });\n };\n return {\n enter: () => {\n present += 1;\n read();\n },\n leave: () => {\n present -= 1;\n read();\n },\n watch: () =>\n view.subscribe(() => {\n if (present > 0) read();\n }),\n };\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/adapters/primitive-props.ts","../src/document/shell-head.ts"],"names":["z","shellView","createHeadKeeper","headOf"],"mappings":";;;;;;;AAEO,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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AS,KAAA;AACb,EAAA,MAAM,OAAO,MAAY;AACvB,IAAA,IAAI,MAAA,IAAU,OAAO,QAAA,KAAa,WAAA,EAAa;AAC/C,IAAA,MAAA,GAAS,IAAA;AACT,IAAA,cAAA,CAAe,MAAM;AACnB,MAAA,MAAA,GAAS,KAAA;AACT,MAAA,IAAA,KAASC,mCAAiB,QAAQ,CAAA;AAClC,MAAA,IAAA,CAAK,UAAU,CAAA,GAAIC,wBAAA,CAAO,KAAK,GAAG,CAAA,EAAG,WAAW,MAAS,CAAA;AAAA,IAC3D,CAAC,CAAA;AAAA,EACH,CAAA;AACA,EAAA,OAAO;AAAA,IACL,OAAO,MAAM;AACX,MAAA,OAAA,IAAW,CAAA;AACX,MAAA,IAAA,EAAK;AAAA,IACP,CAAA;AAAA,IACA,OAAO,MAAM;AACX,MAAA,OAAA,IAAW,CAAA;AACX,MAAA,IAAA,EAAK;AAAA,IACP,CAAA;AAAA,IACA,KAAA,EAAO,MACL,IAAA,CAAK,SAAA,CAAU,MAAM;AACnB,MAAA,IAAI,OAAA,GAAU,GAAG,IAAA,EAAK;AAAA,IACxB,CAAC;AAAA,GACL;AACF","file":"chunk-3XZODV7S.cjs","sourcesContent":["import { z } from 'zod';\n\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\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\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\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\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\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\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\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// Authored props only. The `canvasId` and `definitionId` that flattenRenderTree\n// stamps on a served marker are output: in this schema they would be offered to\n// 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 { headOf, shellView } from '../shell';\nimport type { Shell } from '../shell';\nimport { createHeadKeeper } from './head-keeper';\nimport type { HeadKeeper } from './head-keeper';\n\nexport type ShellHead = {\n enter: () => void;\n leave: () => void;\n watch: () => () => void;\n};\n\nexport const createShellHead = (shell: Shell): ShellHead => {\n const view = shellView(shell);\n let present = 0;\n let keep: HeadKeeper | undefined;\n let queued = false;\n const read = (): void => {\n if (queued || typeof document === 'undefined') return;\n queued = true;\n queueMicrotask(() => {\n queued = false;\n keep ??= createHeadKeeper(document);\n keep(present > 0 ? headOf(view.api)?.elements : undefined);\n });\n };\n return {\n enter: () => {\n present += 1;\n read();\n },\n leave: () => {\n present -= 1;\n read();\n },\n watch: () =>\n view.subscribe(() => {\n if (present > 0) read();\n }),\n };\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StackPropsSchema, BoxPropsSchema, TextPropsSchema, ButtonPropsSchema, InputPropsSchema, PanelPropsSchema, JsonTreePropsSchema, CanvasSlotPropsSchema, ActionSlotPropsSchema, createShellHead } from './chunk-
|
|
2
|
-
import { scopeDispatch } from './chunk-
|
|
1
|
+
import { StackPropsSchema, BoxPropsSchema, TextPropsSchema, ButtonPropsSchema, InputPropsSchema, PanelPropsSchema, JsonTreePropsSchema, CanvasSlotPropsSchema, ActionSlotPropsSchema, createShellHead } from './chunk-6VHOMWNF.js';
|
|
2
|
+
import { scopeDispatch } from './chunk-OY7SCFTJ.js';
|
|
3
3
|
import { isHeadNode } from './chunk-C63CBYD5.js';
|
|
4
4
|
import { renderNodeKey, NOVA_MODEL_PROP, NOVA_REF_PROP } from './chunk-E2PXYR3H.js';
|
|
5
5
|
import { defineComponent, h, shallowRef, onBeforeUnmount, inject, onMounted, watch, provide, createTextVNode, Fragment, toValue } from 'vue';
|
|
@@ -589,5 +589,5 @@ var registerNovaVueComponents = (registry) => {
|
|
|
589
589
|
};
|
|
590
590
|
|
|
591
591
|
export { ActionSlot, Box, Button, CanvasSlot, ErrorMarker, Input, JsonTree, NovaRenderKey, NovaShellKey, Panel, RenderNodeView, RenderTree, Stack, Text, isNovaComponent, provideShellHead, registerNovaVueComponents, useActionData, useActionStatus, useCanvas, useCanvasRenderTree, useNovaDispatch, useNovaPublish, useNovaRegistry, useRenderTree, useShell, useShellRenderTree, useShellState, useSlotWrapper };
|
|
592
|
-
//# sourceMappingURL=chunk-
|
|
593
|
-
//# sourceMappingURL=chunk-
|
|
592
|
+
//# sourceMappingURL=chunk-57PZEPIK.js.map
|
|
593
|
+
//# sourceMappingURL=chunk-57PZEPIK.js.map
|