@niscorp/nova 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +12 -10
- 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 +6 -6
- package/dist/adapters/dom/index.d.cts +1 -1
- package/dist/adapters/dom/index.d.ts +1 -1
- package/dist/adapters/dom/index.js +4 -4
- package/dist/adapters/dom/server.cjs +5 -5
- package/dist/adapters/dom/server.d.cts +1 -1
- package/dist/adapters/dom/server.d.ts +1 -1
- package/dist/adapters/dom/server.js +4 -4
- package/dist/adapters/react/components/index.cjs +24 -24
- package/dist/adapters/react/components/index.js +5 -5
- package/dist/adapters/react/index.cjs +27 -27
- package/dist/adapters/react/index.d.cts +1 -1
- package/dist/adapters/react/index.d.ts +1 -1
- package/dist/adapters/react/index.js +5 -5
- 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 +3 -3
- package/dist/adapters/tty/index.d.cts +1 -1
- package/dist/adapters/tty/index.d.ts +1 -1
- package/dist/adapters/tty/index.js +3 -3
- package/dist/adapters/vue/components/index.cjs +24 -24
- 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 +5 -5
- package/dist/adapters/vue/index.cjs +32 -32
- package/dist/adapters/vue/index.d.cts +1 -1
- package/dist/adapters/vue/index.d.ts +1 -1
- package/dist/adapters/vue/index.js +6 -6
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-ZZRQAH5Z.js → chunk-A3IIJF4E.js} +16 -12
- package/dist/chunk-A3IIJF4E.js.map +1 -0
- package/dist/{chunk-ZVQKCDUG.cjs → chunk-BML7HQPE.cjs} +8 -28
- package/dist/chunk-BML7HQPE.cjs.map +1 -0
- package/dist/{chunk-WQJZMXS5.cjs → chunk-CAKJCAHW.cjs} +22 -22
- package/dist/{chunk-WQJZMXS5.cjs.map → chunk-CAKJCAHW.cjs.map} +1 -1
- package/dist/{chunk-XHDQIQAG.cjs → chunk-DMAVKM7M.cjs} +6 -6
- package/dist/{chunk-XHDQIQAG.cjs.map → chunk-DMAVKM7M.cjs.map} +1 -1
- package/dist/{chunk-YV2G37TJ.js → chunk-E2PXYR3H.js} +3 -3
- package/dist/{chunk-YV2G37TJ.js.map → chunk-E2PXYR3H.js.map} +1 -1
- package/dist/{chunk-EZ3AJRQ7.cjs → chunk-FVGJD6CI.cjs} +4 -4
- package/dist/{chunk-EZ3AJRQ7.cjs.map → chunk-FVGJD6CI.cjs.map} +1 -1
- package/dist/{chunk-2SEZAI3I.js → chunk-GFMNQT2X.js} +5 -5
- package/dist/{chunk-2SEZAI3I.js.map → chunk-GFMNQT2X.js.map} +1 -1
- package/dist/{chunk-UXFQZX6O.js → chunk-GY3KNTNK.js} +6 -26
- package/dist/chunk-GY3KNTNK.js.map +1 -0
- package/dist/{chunk-D42FJUQA.js → chunk-IIOO6Z4T.js} +5 -5
- package/dist/{chunk-D42FJUQA.js.map → chunk-IIOO6Z4T.js.map} +1 -1
- package/dist/{chunk-3YS2FBF5.js → chunk-L5HAGG4U.js} +3 -3
- package/dist/{chunk-3YS2FBF5.js.map → chunk-L5HAGG4U.js.map} +1 -1
- package/dist/{chunk-BXUEWV7V.cjs → chunk-OM2HY2GE.cjs} +16 -12
- package/dist/chunk-OM2HY2GE.cjs.map +1 -0
- package/dist/{chunk-2HWYS6OJ.js → chunk-OPF42ISN.js} +4 -4
- package/dist/{chunk-2HWYS6OJ.js.map → chunk-OPF42ISN.js.map} +1 -1
- package/dist/{chunk-FG6IKUHA.cjs → chunk-TWXAKLMX.cjs} +21 -21
- package/dist/{chunk-FG6IKUHA.cjs.map → chunk-TWXAKLMX.cjs.map} +1 -1
- package/dist/{chunk-K54CT3QN.cjs → chunk-VDB7VHFS.cjs} +4 -4
- package/dist/{chunk-K54CT3QN.cjs.map → chunk-VDB7VHFS.cjs.map} +1 -1
- package/dist/{chunk-O2N4BVLL.js → chunk-WKDPEBXU.js} +3 -3
- package/dist/{chunk-O2N4BVLL.js.map → chunk-WKDPEBXU.js.map} +1 -1
- package/dist/{chunk-X77B4ZKQ.cjs → chunk-WRVT7JTK.cjs} +34 -34
- package/dist/{chunk-X77B4ZKQ.cjs.map → chunk-WRVT7JTK.cjs.map} +1 -1
- package/dist/devtools/index.cjs +52 -32
- package/dist/devtools/index.cjs.map +1 -1
- package/dist/devtools/index.d.cts +2 -2
- package/dist/devtools/index.d.ts +2 -2
- package/dist/devtools/index.js +52 -32
- package/dist/devtools/index.js.map +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-CB1fcRjc.d.cts → head-CBse5408.d.cts} +1 -1
- package/dist/{head-BvqHLqlL.d.ts → head-pDYg3tbK.d.ts} +1 -1
- package/dist/index.cjs +41 -41
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/reflect/index.cjs +21 -21
- package/dist/reflect/index.d.cts +2 -2
- package/dist/reflect/index.d.ts +2 -2
- package/dist/reflect/index.js +3 -3
- package/dist/{types-BTha1ZLR.d.cts → types-6KTCKlXf.d.cts} +6 -1
- package/dist/{types-BxpSKUxn.d.ts → types-DV-GDFJd.d.ts} +6 -1
- package/package.json +1 -1
- package/dist/chunk-BXUEWV7V.cjs.map +0 -1
- package/dist/chunk-UXFQZX6O.js.map +0 -1
- package/dist/chunk-ZVQKCDUG.cjs.map +0 -1
- package/dist/chunk-ZZRQAH5Z.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkTWXAKLMX_cjs = require('../../../chunk-TWXAKLMX.cjs');
|
|
4
|
+
var chunkFVGJD6CI_cjs = require('../../../chunk-FVGJD6CI.cjs');
|
|
5
5
|
require('../../../chunk-QHX3VA55.cjs');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-WRVT7JTK.cjs');
|
|
7
7
|
require('../../../chunk-QTJ4ZQRM.cjs');
|
|
8
|
-
require('../../../chunk-
|
|
9
|
-
require('../../../chunk-
|
|
8
|
+
require('../../../chunk-VDB7VHFS.cjs');
|
|
9
|
+
require('../../../chunk-OM2HY2GE.cjs');
|
|
10
10
|
require('../../../chunk-RVU6YEHO.cjs');
|
|
11
11
|
require('../../../chunk-MEZCO7ND.cjs');
|
|
12
12
|
require('../../../chunk-CQZH3L3W.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 chunkTWXAKLMX_cjs.ActionSlot; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "Box", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkTWXAKLMX_cjs.Box; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "Button", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkTWXAKLMX_cjs.Button; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "CanvasSlot", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkTWXAKLMX_cjs.CanvasSlot; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "Input", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkTWXAKLMX_cjs.Input; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "JsonTree", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkTWXAKLMX_cjs.JsonTree; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "Panel", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkTWXAKLMX_cjs.Panel; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "Stack", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkTWXAKLMX_cjs.Stack; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "Text", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkTWXAKLMX_cjs.Text; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "registerNovaVueComponents", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkTWXAKLMX_cjs.registerNovaVueComponents; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "ActionSlotPropsSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkFVGJD6CI_cjs.ActionSlotPropsSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "BoxPropsSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkFVGJD6CI_cjs.BoxPropsSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "ButtonPropsSchema", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkFVGJD6CI_cjs.ButtonPropsSchema; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "CanvasSlotPropsSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkFVGJD6CI_cjs.CanvasSlotPropsSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "InputPropsSchema", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkFVGJD6CI_cjs.InputPropsSchema; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "JsonTreePropsSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkFVGJD6CI_cjs.JsonTreePropsSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "PanelPropsSchema", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkFVGJD6CI_cjs.PanelPropsSchema; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "StackPropsSchema", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkFVGJD6CI_cjs.StackPropsSchema; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "TextPropsSchema", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkFVGJD6CI_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?: "center" | "start" | "end" | "stretch" | undefined;
|
|
14
|
+
justify?: "center" | "start" | "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?: "center" | "start" | "end" | "stretch" | undefined;
|
|
21
|
+
justify?: "center" | "start" | "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
|
-
start: "start";
|
|
35
34
|
center: "center";
|
|
35
|
+
start: "start";
|
|
36
36
|
end: "end";
|
|
37
37
|
stretch: "stretch";
|
|
38
38
|
}>>;
|
|
39
39
|
justify: zod.ZodOptional<zod.ZodEnum<{
|
|
40
|
-
start: "start";
|
|
41
40
|
center: "center";
|
|
41
|
+
start: "start";
|
|
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?: "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?: "
|
|
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>;
|
|
@@ -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?: "center" | "start" | "end" | "stretch" | undefined;
|
|
14
|
+
justify?: "center" | "start" | "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?: "center" | "start" | "end" | "stretch" | undefined;
|
|
21
|
+
justify?: "center" | "start" | "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
|
-
start: "start";
|
|
35
34
|
center: "center";
|
|
35
|
+
start: "start";
|
|
36
36
|
end: "end";
|
|
37
37
|
stretch: "stretch";
|
|
38
38
|
}>>;
|
|
39
39
|
justify: zod.ZodOptional<zod.ZodEnum<{
|
|
40
|
-
start: "start";
|
|
41
40
|
center: "center";
|
|
41
|
+
start: "start";
|
|
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?: "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?: "
|
|
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
|
-
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-GFMNQT2X.js';
|
|
2
|
+
export { ActionSlotPropsSchema, BoxPropsSchema, ButtonPropsSchema, CanvasSlotPropsSchema, InputPropsSchema, JsonTreePropsSchema, PanelPropsSchema, StackPropsSchema, TextPropsSchema } from '../../../chunk-WKDPEBXU.js';
|
|
3
3
|
import '../../../chunk-SCXYAXMO.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-L5HAGG4U.js';
|
|
5
5
|
import '../../../chunk-C63CBYD5.js';
|
|
6
|
-
import '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-E2PXYR3H.js';
|
|
7
|
+
import '../../../chunk-A3IIJF4E.js';
|
|
8
8
|
import '../../../chunk-M2ZZUSH3.js';
|
|
9
9
|
import '../../../chunk-Y3UKAJJX.js';
|
|
10
10
|
import '../../../chunk-G4OQ4PEO.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkTWXAKLMX_cjs = require('../../chunk-TWXAKLMX.cjs');
|
|
4
|
+
require('../../chunk-FVGJD6CI.cjs');
|
|
5
5
|
require('../../chunk-QHX3VA55.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-WRVT7JTK.cjs');
|
|
7
7
|
var chunkQTJ4ZQRM_cjs = require('../../chunk-QTJ4ZQRM.cjs');
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
8
|
+
require('../../chunk-VDB7VHFS.cjs');
|
|
9
|
+
require('../../chunk-OM2HY2GE.cjs');
|
|
10
10
|
require('../../chunk-RVU6YEHO.cjs');
|
|
11
11
|
require('../../chunk-MEZCO7ND.cjs');
|
|
12
12
|
require('../../chunk-CQZH3L3W.cjs');
|
|
@@ -39,7 +39,7 @@ var NovaRenderProvider = vue.defineComponent(
|
|
|
39
39
|
return props.fallback;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
vue.provide(
|
|
42
|
+
vue.provide(chunkTWXAKLMX_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(chunkTWXAKLMX_cjs.NovaShellKey, source);
|
|
55
|
+
chunkTWXAKLMX_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
|
+
chunkTWXAKLMX_cjs.registerNovaVueComponents(registry);
|
|
87
87
|
};
|
|
88
88
|
var ShellRenderTreeView = vue.defineComponent(
|
|
89
89
|
() => {
|
|
90
|
-
const nodes =
|
|
91
|
-
return () => vue.h(
|
|
90
|
+
const nodes = chunkTWXAKLMX_cjs.useShellRenderTree();
|
|
91
|
+
return () => vue.h(chunkTWXAKLMX_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
|
+
chunkTWXAKLMX_cjs.useShell();
|
|
109
|
+
const nodes = chunkTWXAKLMX_cjs.useCanvasRenderTree(() => props.canvasId);
|
|
110
|
+
return () => vue.h(chunkTWXAKLMX_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 chunkTWXAKLMX_cjs.ErrorMarker; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "NovaRenderKey", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkTWXAKLMX_cjs.NovaRenderKey; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "NovaShellKey", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkTWXAKLMX_cjs.NovaShellKey; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "RenderNodeView", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkTWXAKLMX_cjs.RenderNodeView; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "RenderTree", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkTWXAKLMX_cjs.RenderTree; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "isNovaComponent", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkTWXAKLMX_cjs.isNovaComponent; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "useActionData", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkTWXAKLMX_cjs.useActionData; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "useActionStatus", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkTWXAKLMX_cjs.useActionStatus; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "useCanvas", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkTWXAKLMX_cjs.useCanvas; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "useCanvasRenderTree", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkTWXAKLMX_cjs.useCanvasRenderTree; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "useNovaDispatch", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkTWXAKLMX_cjs.useNovaDispatch; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "useNovaPublish", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkTWXAKLMX_cjs.useNovaPublish; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "useNovaRegistry", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkTWXAKLMX_cjs.useNovaRegistry; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "useRenderTree", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkTWXAKLMX_cjs.useRenderTree; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "useShell", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkTWXAKLMX_cjs.useShell; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "useShellRenderTree", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkTWXAKLMX_cjs.useShellRenderTree; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "useShellState", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkTWXAKLMX_cjs.useShellState; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "useSlotWrapper", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkTWXAKLMX_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, r as StateSnapshot } from '../../types-6KTCKlXf.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, r as StateSnapshot } from '../../types-DV-GDFJd.js';
|
|
8
8
|
import '../../schemas-pMyyuXV7.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../../effects-DkBBrxVj.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
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-GFMNQT2X.js';
|
|
2
|
+
export { ErrorMarker, NovaRenderKey, NovaShellKey, RenderNodeView, RenderTree, isNovaComponent, useActionData, useActionStatus, useCanvas, useCanvasRenderTree, useNovaDispatch, useNovaPublish, useNovaRegistry, useRenderTree, useShell, useShellRenderTree, useShellState, useSlotWrapper } from '../../chunk-GFMNQT2X.js';
|
|
3
|
+
import '../../chunk-WKDPEBXU.js';
|
|
4
4
|
import '../../chunk-SCXYAXMO.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-L5HAGG4U.js';
|
|
6
6
|
import { CANVAS_SLOT_NAME } from '../../chunk-C63CBYD5.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-E2PXYR3H.js';
|
|
8
|
+
import '../../chunk-A3IIJF4E.js';
|
|
9
9
|
import '../../chunk-M2ZZUSH3.js';
|
|
10
10
|
import '../../chunk-Y3UKAJJX.js';
|
|
11
11
|
import '../../chunk-G4OQ4PEO.js';
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDC5HONDE_cjs = require('../chunk-DC5HONDE.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkOM2HY2GE_cjs = require('../chunk-OM2HY2GE.cjs');
|
|
5
5
|
var chunkNBXZ3RAC_cjs = require('../chunk-NBXZ3RAC.cjs');
|
|
6
6
|
require('../chunk-Q7SFCCGT.cjs');
|
|
7
7
|
var cortex = require('@niscorp/cortex');
|
|
@@ -33,7 +33,7 @@ Object.defineProperty(exports, "paletteFromRegistry", {
|
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "collectInteractive", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkOM2HY2GE_cjs.collectInteractive; }
|
|
37
37
|
});
|
|
38
38
|
exports.layoutAgent = layoutAgent;
|
|
39
39
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { paletteFromRegistry } from '../chunk-OBFFZ23H.js';
|
|
2
|
-
export { collectInteractive } from '../chunk-
|
|
2
|
+
export { collectInteractive } from '../chunk-A3IIJF4E.js';
|
|
3
3
|
import { LayoutNodeSchema } from '../chunk-JKULAG53.js';
|
|
4
4
|
import '../chunk-PZ5AY32C.js';
|
|
5
5
|
import { defineAgent } from '@niscorp/cortex';
|
|
@@ -10,13 +10,24 @@ var collectInteractive = (layout) => {
|
|
|
10
10
|
const scanString = (value, scope) => {
|
|
11
11
|
for (const match of value.matchAll(KEY_PATTERN)) {
|
|
12
12
|
const key = match[1];
|
|
13
|
-
if (key !== void 0) boundKeys.add(key);
|
|
13
|
+
if (key !== void 0 && !scope.has(key)) boundKeys.add(key);
|
|
14
14
|
}
|
|
15
15
|
for (const match of value.matchAll(VAR_PATTERN)) {
|
|
16
16
|
const name = match[1];
|
|
17
17
|
if (name !== void 0 && !scope.has(name)) suspects.add(`$${name}.`);
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
+
const refsIn = (value, path, component) => {
|
|
21
|
+
if (Array.isArray(value)) {
|
|
22
|
+
value.forEach((item, index) => refsIn(item, `${path}${index}.`, component));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (value === null || typeof value !== "object") return;
|
|
26
|
+
for (const [key, inner] of Object.entries(value)) {
|
|
27
|
+
if ((key === "ref" || key.endsWith("Ref")) && typeof inner === "string" && inner.length > 0) refs.push({ ref: inner, component, via: `${path}${key}` });
|
|
28
|
+
else refsIn(inner, `${path}${key}.`, component);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
20
31
|
const walk = (node, scope) => {
|
|
21
32
|
if (typeof node === "string") return scanString(node, scope);
|
|
22
33
|
if (Array.isArray(node)) {
|
|
@@ -26,7 +37,7 @@ var collectInteractive = (layout) => {
|
|
|
26
37
|
if (node === null || typeof node !== "object") return;
|
|
27
38
|
const record = node;
|
|
28
39
|
const loopVar = record["for"] !== void 0 && typeof record["as"] === "string" ? record["as"] : void 0;
|
|
29
|
-
const childScope = loopVar !== void 0 ? /* @__PURE__ */ new Set([...scope, loopVar]) : scope;
|
|
40
|
+
const childScope = loopVar !== void 0 ? /* @__PURE__ */ new Set([...scope, loopVar, "index", "items"]) : scope;
|
|
30
41
|
const component = typeof record["component"] === "string" ? record["component"] : void 0;
|
|
31
42
|
if (component !== void 0) {
|
|
32
43
|
componentCount += 1;
|
|
@@ -36,14 +47,7 @@ var collectInteractive = (layout) => {
|
|
|
36
47
|
if (typeof record["model"] === "string" && record["model"].length > 0) {
|
|
37
48
|
models.push({ path: record["model"], component });
|
|
38
49
|
}
|
|
39
|
-
|
|
40
|
-
if (props !== null && typeof props === "object" && !Array.isArray(props)) {
|
|
41
|
-
for (const [key, value] of Object.entries(props)) {
|
|
42
|
-
if (key.endsWith("Ref") && typeof value === "string" && value.length > 0) {
|
|
43
|
-
refs.push({ ref: value, component, via: key });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
50
|
+
refsIn(record["props"], "", component);
|
|
47
51
|
}
|
|
48
52
|
for (const value of Object.values(record)) walk(value, childScope);
|
|
49
53
|
};
|
|
@@ -58,5 +62,5 @@ var collectInteractive = (layout) => {
|
|
|
58
62
|
};
|
|
59
63
|
|
|
60
64
|
export { collectInteractive };
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-A3IIJF4E.js.map
|
|
66
|
+
//# sourceMappingURL=chunk-A3IIJF4E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/agent/affordances.ts"],"names":[],"mappings":"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","file":"chunk-A3IIJF4E.js","sourcesContent":["export type InteractiveRef = {\n ref: string;\n component: string;\n via: string;\n};\n\nexport type InteractiveModel = {\n path: string;\n component: string;\n};\n\nexport type InteractiveSurface = {\n refs: InteractiveRef[];\n models: InteractiveModel[];\n boundKeys: string[];\n suspectBindings: string[];\n componentCount: number;\n};\n\nconst KEY_PATTERN = /\\$\\.([A-Za-z_][A-Za-z0-9_]*)/g;\nconst VAR_PATTERN = /\\$([A-Za-z_][A-Za-z0-9_]*)\\./g;\n\nexport const collectInteractive = (layout: unknown): InteractiveSurface => {\n const refs: InteractiveRef[] = [];\n const models: InteractiveModel[] = [];\n const boundKeys = new Set<string>();\n const suspects = new Set<string>();\n let componentCount = 0;\n\n const scanString = (value: string, scope: ReadonlySet<string>): void => {\n for (const match of value.matchAll(KEY_PATTERN)) {\n const key = match[1];\n if (key !== undefined && !scope.has(key)) boundKeys.add(key);\n }\n for (const match of value.matchAll(VAR_PATTERN)) {\n const name = match[1];\n if (name !== undefined && !scope.has(name)) suspects.add(`$${name}.`);\n }\n };\n\n // A ref a component dispatches from inside its props, at any depth: a Table's `rowRef`, a menu item's `ref`.\n const refsIn = (value: unknown, path: string, component: string): void => {\n if (Array.isArray(value)) {\n value.forEach((item, index) => refsIn(item, `${path}${index}.`, component));\n return;\n }\n if (value === null || typeof value !== 'object') return;\n for (const [key, inner] of Object.entries(value as Record<string, unknown>)) {\n if ((key === 'ref' || key.endsWith('Ref')) && typeof inner === 'string' && inner.length > 0) refs.push({ ref: inner, component, via: `${path}${key}` });\n else refsIn(inner, `${path}${key}.`, component);\n }\n };\n\n const walk = (node: unknown, scope: ReadonlySet<string>): void => {\n if (typeof node === 'string') return scanString(node, scope);\n if (Array.isArray(node)) {\n for (const child of node) walk(child, scope);\n return;\n }\n if (node === null || typeof node !== 'object') return;\n const record = node as Record<string, unknown>;\n\n const loopVar = record['for'] !== undefined && typeof record['as'] === 'string' ? record['as'] : undefined;\n // The renderer binds the loop variable, `index` and `items` under the data root inside a loop.\n const childScope = loopVar !== undefined ? new Set([...scope, loopVar, 'index', 'items']) : scope;\n\n const component = typeof record['component'] === 'string' ? record['component'] : undefined;\n if (component !== undefined) {\n componentCount += 1;\n if (typeof record['ref'] === 'string' && record['ref'].length > 0) {\n refs.push({ ref: record['ref'], component, via: 'ref' });\n }\n if (typeof record['model'] === 'string' && record['model'].length > 0) {\n models.push({ path: record['model'], component });\n }\n refsIn(record['props'], '', component);\n }\n for (const value of Object.values(record)) walk(value, childScope);\n };\n\n walk(layout, new Set());\n return {\n refs,\n models,\n boundKeys: [...boundKeys].sort(),\n suspectBindings: [...suspects].sort(),\n componentCount,\n };\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVDB7VHFS_cjs = require('./chunk-VDB7VHFS.cjs');
|
|
4
4
|
|
|
5
5
|
// src/reflect/walk.ts
|
|
6
6
|
var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -41,40 +41,20 @@ var loopVarsOf = (value) => {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
// src/reflect/audit.ts
|
|
44
|
-
var classifyAudit = (issue
|
|
45
|
-
const layout = typeof definition.layout === "object" ? definition.layout : void 0;
|
|
46
|
-
const bind = issue.match(/binds "\$\.([\w.]+)"/);
|
|
47
|
-
if (bind !== null) {
|
|
48
|
-
const root = (bind[1] ?? "").split(".")[0] ?? "";
|
|
49
|
-
if (root === "index" || root === "items") {
|
|
50
|
-
return { kind: "info", tag: "loop scope", reason: `\`${root}\` is a renderer-reserved loop variable` };
|
|
51
|
-
}
|
|
52
|
-
if (loopVarsOf(layout).has(root)) {
|
|
53
|
-
return { kind: "info", tag: "loop var", reason: `\`${root}\` is a loop \`as:\` variable \u2014 in scope at runtime` };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const ref = issue.match(/ref "([^"]+)"/);
|
|
57
|
-
if (ref !== null && issue.includes("listens") && refsOf(layout).has(ref[1] ?? "")) {
|
|
58
|
-
return { kind: "info", tag: "prop ref", reason: "dispatched by a component from a props value (e.g. Table rowRef / cell.ref)" };
|
|
59
|
-
}
|
|
60
|
-
if (issue.includes("{{")) {
|
|
61
|
-
return { kind: "info", tag: "template", reason: "target resolves from data at runtime \u2014 statically unknowable" };
|
|
62
|
-
}
|
|
63
|
-
return { kind: "address" };
|
|
64
|
-
};
|
|
44
|
+
var classifyAudit = (issue) => issue.includes("{{") ? { kind: "info", tag: "template", reason: "target resolves from data at runtime \u2014 statically unknowable" } : { kind: "address" };
|
|
65
45
|
var auditCatalog = (definitions) => {
|
|
66
46
|
const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);
|
|
67
47
|
const catalog = defs.map((definition) => ({ id: definition.id, ...definition.input !== void 0 ? { input: definition.input } : {} }));
|
|
68
48
|
const channels = [
|
|
69
49
|
...new Set(
|
|
70
50
|
defs.flatMap((definition) => {
|
|
71
|
-
const usage =
|
|
51
|
+
const usage = chunkVDB7VHFS_cjs.collectChannels(definition);
|
|
72
52
|
return [...usage.emits, ...usage.listens];
|
|
73
53
|
})
|
|
74
54
|
)
|
|
75
55
|
];
|
|
76
56
|
return defs.map((definition) => {
|
|
77
|
-
const issues =
|
|
57
|
+
const issues = chunkVDB7VHFS_cjs.auditAction(definition, { catalog, channels }).issues.map((issue) => ({ issue, ...classifyAudit(issue) }));
|
|
78
58
|
issues.sort((a, b) => Number(a.kind === "info") - Number(b.kind === "info"));
|
|
79
59
|
return { id: definition.id, address: issues.filter((issue) => issue.kind === "address").length, issues };
|
|
80
60
|
}).filter((row) => row.issues.length > 0).sort((a, b) => b.address - a.address);
|
|
@@ -129,7 +109,7 @@ var describeInstance = (shell, instanceId) => {
|
|
|
129
109
|
const definition = runtime.definition;
|
|
130
110
|
const layout = definition.layout;
|
|
131
111
|
const layoutNode = typeof layout === "string" ? shell.layoutStore.get(layout) : layout;
|
|
132
|
-
const issues =
|
|
112
|
+
const issues = chunkVDB7VHFS_cjs.auditAction(definition).issues.map((issue) => ({ issue, ...classifyAudit(issue) }));
|
|
133
113
|
return {
|
|
134
114
|
id: definition.id,
|
|
135
115
|
instanceId,
|
|
@@ -167,7 +147,7 @@ var actionGraph = (definitions) => {
|
|
|
167
147
|
const nodes = defs.map((definition) => {
|
|
168
148
|
const pushes = navTargetsOf(definition);
|
|
169
149
|
for (const target of pushes) if (!target.includes("{{") && !known.has(target)) dangling.add(target);
|
|
170
|
-
const usage =
|
|
150
|
+
const usage = chunkVDB7VHFS_cjs.collectChannels(definition);
|
|
171
151
|
return { id: definition.id, pushes, emits: usage.emits, listens: usage.listens };
|
|
172
152
|
});
|
|
173
153
|
return { nodes, dangling: [...dangling].sort() };
|
|
@@ -314,5 +294,5 @@ exports.loopVarsOf = loopVarsOf;
|
|
|
314
294
|
exports.refsOf = refsOf;
|
|
315
295
|
exports.snapshotShell = snapshotShell;
|
|
316
296
|
exports.walkNodes = walkNodes;
|
|
317
|
-
//# sourceMappingURL=chunk-
|
|
318
|
-
//# sourceMappingURL=chunk-
|
|
297
|
+
//# sourceMappingURL=chunk-BML7HQPE.cjs.map
|
|
298
|
+
//# sourceMappingURL=chunk-BML7HQPE.cjs.map
|