@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
package/dist/document/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as HeadElement } from '../head-
|
|
2
|
-
export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from '../head-
|
|
1
|
+
import { f as HeadElement } from '../head-pDYg3tbK.js';
|
|
2
|
+
export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from '../head-pDYg3tbK.js';
|
|
3
3
|
import '../types-CJC8mnzl.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../schemas-DPdeFlCT.js';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-DV-GDFJd.js';
|
|
7
7
|
import '../index-BjQX8XZl.js';
|
|
8
8
|
import '../effects-DkBBrxVj.js';
|
|
9
9
|
import '../schemas-pMyyuXV7.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ActionDefinition, a as ActionFragment } from '../index-BoPH5aSd.cjs';
|
|
2
2
|
import { P as Phrasebook, H as PhraseKeys } from '../types-CR56luN7.cjs';
|
|
3
3
|
import { L as LayoutNode } from '../schemas-DPdeFlCT.cjs';
|
|
4
|
-
import { C as CanvasConfig } from '../types-
|
|
4
|
+
import { C as CanvasConfig } from '../types-6KTCKlXf.cjs';
|
|
5
5
|
import '../effects-DkBBrxVj.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../schemas-pMyyuXV7.cjs';
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as ActionDefinition, a as ActionFragment } from '../index-BjQX8XZl.js';
|
|
2
2
|
import { P as Phrasebook, H as PhraseKeys } from '../types-CJC8mnzl.js';
|
|
3
3
|
import { L as LayoutNode } from '../schemas-DPdeFlCT.js';
|
|
4
|
-
import { C as CanvasConfig } from '../types-
|
|
4
|
+
import { C as CanvasConfig } from '../types-DV-GDFJd.js';
|
|
5
5
|
import '../effects-DkBBrxVj.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../schemas-pMyyuXV7.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDC5HONDE_cjs = require('./chunk-DC5HONDE.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWRVT7JTK_cjs = require('./chunk-WRVT7JTK.cjs');
|
|
5
5
|
var chunkQTJ4ZQRM_cjs = require('./chunk-QTJ4ZQRM.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var chunkVDB7VHFS_cjs = require('./chunk-VDB7VHFS.cjs');
|
|
7
|
+
require('./chunk-OM2HY2GE.cjs');
|
|
8
8
|
require('./chunk-RVU6YEHO.cjs');
|
|
9
9
|
var chunkMEZCO7ND_cjs = require('./chunk-MEZCO7ND.cjs');
|
|
10
10
|
var chunkCQZH3L3W_cjs = require('./chunk-CQZH3L3W.cjs');
|
|
@@ -25,59 +25,59 @@ Object.defineProperty(exports, "paletteFromRegistry", {
|
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "DEFAULT_HISTORY_DEPTH", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkWRVT7JTK_cjs.DEFAULT_HISTORY_DEPTH; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "DEFAULT_SETTLE_WAIT_MS", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkWRVT7JTK_cjs.DEFAULT_SETTLE_WAIT_MS; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "MessageEnvelopeSchema", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkWRVT7JTK_cjs.MessageEnvelopeSchema; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "NovaEventSchema", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkWRVT7JTK_cjs.NovaEventSchema; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "canvasTreeOf", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkWRVT7JTK_cjs.canvasTreeOf; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "createIdFactory", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkWRVT7JTK_cjs.createIdFactory; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "createShell", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkWRVT7JTK_cjs.createShell; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "hasVisibleContent", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkWRVT7JTK_cjs.hasVisibleContent; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "navigatedChannel", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkWRVT7JTK_cjs.navigatedChannel; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "reconcileCanvas", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkWRVT7JTK_cjs.reconcileCanvas; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "scopeDispatch", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkWRVT7JTK_cjs.scopeDispatch; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "shellIdle", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkWRVT7JTK_cjs.shellIdle; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "shellSettled", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkWRVT7JTK_cjs.shellSettled; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "shellView", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkWRVT7JTK_cjs.shellView; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "ACTION_SLOT_NAME", {
|
|
83
83
|
enumerable: true,
|
|
@@ -97,99 +97,99 @@ Object.defineProperty(exports, "isHeadNode", {
|
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "HEAD_META", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkVDB7VHFS_cjs.HEAD_META; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "HeadLinkPropsSchema", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkVDB7VHFS_cjs.HeadLinkPropsSchema; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "HeadMetaPropsSchema", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkVDB7VHFS_cjs.HeadMetaPropsSchema; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "HeadPropsSchema", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkVDB7VHFS_cjs.HeadPropsSchema; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "HeadScriptPropsSchema", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkVDB7VHFS_cjs.HeadScriptPropsSchema; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "HeadTitlePropsSchema", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkVDB7VHFS_cjs.HeadTitlePropsSchema; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "NOVA_MODEL_PROP", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkVDB7VHFS_cjs.NOVA_MODEL_PROP; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "NOVA_REF_PROP", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkVDB7VHFS_cjs.NOVA_REF_PROP; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "auditAction", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkVDB7VHFS_cjs.auditAction; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "collectChannels", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkVDB7VHFS_cjs.collectChannels; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "composeAction", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkVDB7VHFS_cjs.composeAction; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "createLayoutStore", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkVDB7VHFS_cjs.createLayoutStore; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "fillSlots", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkVDB7VHFS_cjs.fillSlots; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "isComponentNode", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkVDB7VHFS_cjs.isComponentNode; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "isConditionalNode", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkVDB7VHFS_cjs.isConditionalNode; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "isLayoutNode", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkVDB7VHFS_cjs.isLayoutNode; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "isLayoutPrimitive", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkVDB7VHFS_cjs.isLayoutPrimitive; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "isLayoutRefNode", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkVDB7VHFS_cjs.isLayoutRefNode; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "isLoopNode", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkVDB7VHFS_cjs.isLoopNode; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "isSlotNode", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkVDB7VHFS_cjs.isSlotNode; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "render", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkVDB7VHFS_cjs.render; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "renderLayout", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkVDB7VHFS_cjs.renderLayout; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "renderLayoutFromStore", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkVDB7VHFS_cjs.renderLayoutFromStore; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "renderNodeKey", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkVDB7VHFS_cjs.renderNodeKey; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "HEAD_LINK_NAME", {
|
|
195
195
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { R as RenderContext, a as RenderOnError, b as RenderNode, D as DataStoreView, L as LayoutStore, C as ComponentRegistry, c as ComponentMeta } from './types-CR56luN7.cjs';
|
|
2
2
|
export { d as ComponentEntry, e as ComponentNotFoundContext, f as ComponentNotFoundError, g as DefinitionValidationContext, h as DefinitionValidationError, i as DefinitionValidationFailure, E as ErrorCode, j as ErrorCodes, k as EventMeta, l as LayoutRefNotFoundContext, m as LayoutRefNotFoundError, n as LifecycleError, o as LifecycleErrorContext, p as LifecycleHook, M as ModelBindingDescriptor, q as MutationError, N as NovaError, r as NovaErrorContext, s as RegistrationInput, t as RenderComponentNode, u as RenderError, v as RenderErrorNode, w as RenderFragmentNode, x as RenderTextNode, S as ShellDisposedError, U as UnknownActionContext, y as UnknownActionError, z as UnknownFragmentContext, A as UnknownFragmentError, B as UnknownFunctionContext, F as UnknownFunctionError, G as Unsubscribe } from './types-CR56luN7.cjs';
|
|
3
|
-
import { S as ShellConfig, a as Shell, R as RenderApi } from './types-
|
|
4
|
-
export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, E as EventBus, f as EventHandler, F as FetchFn, g as FetchInit, h as FetchResponse, i as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler,
|
|
3
|
+
import { S as ShellConfig, a as Shell, R as RenderApi } from './types-6KTCKlXf.cjs';
|
|
4
|
+
export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, E as EventBus, f as EventHandler, F as FetchFn, g as FetchInit, h as FetchResponse, i as FunctionDefinition, j as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, k as NavigationEffect, P as PublicActionRuntime, l as PushOptions, m as ShellCanvasChangeHandler, n as ShellDataChangeEvent, o as ShellDataChangeHandler, p as ShellStateChangeHandler, q as ShellTelemetry, r as StateSnapshot, s as StatusChangeHandler, T as TransformFn, t as createIdFactory } from './types-6KTCKlXf.cjs';
|
|
5
5
|
import { N as NovaEvent } from './schemas-pMyyuXV7.cjs';
|
|
6
6
|
export { a as NovaEventSchema } from './schemas-pMyyuXV7.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { C as ComponentNode, a as ConditionalNode, L as LayoutNode, b as LayoutPrimitive, c as LayoutRefNode, d as LoopNode, S as SlotNode } from './schemas-DPdeFlCT.cjs';
|
|
9
9
|
export { e as ComponentNodeSchema, f as ConditionalNodeSchema, g as LayoutNodeSchema, h as LayoutPrimitiveSchema, i as LayoutRefNodeSchema, j as LoopNodeSchema, k as SlotNodeSchema } from './schemas-DPdeFlCT.cjs';
|
|
10
|
-
export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-
|
|
10
|
+
export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-CBse5408.cjs';
|
|
11
11
|
export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, p as paletteEntryOf, a as paletteFromRegistry } from './palette-CCxWSi3C.cjs';
|
|
12
12
|
import { A as ActionDefinition, a as ActionFragment } from './index-BoPH5aSd.cjs';
|
|
13
13
|
export { b as ActionDefinitionSchema, c as ActionFragmentSchema } from './index-BoPH5aSd.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { R as RenderContext, a as RenderOnError, b as RenderNode, D as DataStoreView, L as LayoutStore, C as ComponentRegistry, c as ComponentMeta } from './types-CJC8mnzl.js';
|
|
2
2
|
export { d as ComponentEntry, e as ComponentNotFoundContext, f as ComponentNotFoundError, g as DefinitionValidationContext, h as DefinitionValidationError, i as DefinitionValidationFailure, E as ErrorCode, j as ErrorCodes, k as EventMeta, l as LayoutRefNotFoundContext, m as LayoutRefNotFoundError, n as LifecycleError, o as LifecycleErrorContext, p as LifecycleHook, M as ModelBindingDescriptor, q as MutationError, N as NovaError, r as NovaErrorContext, s as RegistrationInput, t as RenderComponentNode, u as RenderError, v as RenderErrorNode, w as RenderFragmentNode, x as RenderTextNode, S as ShellDisposedError, U as UnknownActionContext, y as UnknownActionError, z as UnknownFragmentContext, A as UnknownFragmentError, B as UnknownFunctionContext, F as UnknownFunctionError, G as Unsubscribe } from './types-CJC8mnzl.js';
|
|
3
|
-
import { S as ShellConfig, a as Shell, R as RenderApi } from './types-
|
|
4
|
-
export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, E as EventBus, f as EventHandler, F as FetchFn, g as FetchInit, h as FetchResponse, i as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler,
|
|
3
|
+
import { S as ShellConfig, a as Shell, R as RenderApi } from './types-DV-GDFJd.js';
|
|
4
|
+
export { A as ActionInstance, b as ActionStatus, C as CanvasConfig, c as CanvasInitialSeed, d as CanvasState, e as ChannelHandler, D as DataChangeHandler, E as EventBus, f as EventHandler, F as FetchFn, g as FetchInit, h as FetchResponse, i as FunctionDefinition, j as FunctionHandler, I as IdFactory, M as MessageBus, N as NavigateHandler, k as NavigationEffect, P as PublicActionRuntime, l as PushOptions, m as ShellCanvasChangeHandler, n as ShellDataChangeEvent, o as ShellDataChangeHandler, p as ShellStateChangeHandler, q as ShellTelemetry, r as StateSnapshot, s as StatusChangeHandler, T as TransformFn, t as createIdFactory } from './types-DV-GDFJd.js';
|
|
5
5
|
import { N as NovaEvent } from './schemas-pMyyuXV7.js';
|
|
6
6
|
export { a as NovaEventSchema } from './schemas-pMyyuXV7.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { C as ComponentNode, a as ConditionalNode, L as LayoutNode, b as LayoutPrimitive, c as LayoutRefNode, d as LoopNode, S as SlotNode } from './schemas-DPdeFlCT.js';
|
|
9
9
|
export { e as ComponentNodeSchema, f as ConditionalNodeSchema, g as LayoutNodeSchema, h as LayoutPrimitiveSchema, i as LayoutRefNodeSchema, j as LoopNodeSchema, k as SlotNodeSchema } from './schemas-DPdeFlCT.js';
|
|
10
|
-
export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-
|
|
10
|
+
export { H as HEAD_LINK_NAME, a as HEAD_META_NAME, b as HEAD_NAME, c as HEAD_NAMES, d as HEAD_SCRIPT_NAME, e as HEAD_TITLE_NAME, f as HeadElement, S as ScreenHead, h as headKeyOf, g as headOf, i as isHeadNode } from './head-pDYg3tbK.js';
|
|
11
11
|
export { L as LayoutPaletteEntry, P as PaletteFromRegistryOptions, p as paletteEntryOf, a as paletteFromRegistry } from './palette-BZujb2rm.js';
|
|
12
12
|
import { A as ActionDefinition, a as ActionFragment } from './index-BjQX8XZl.js';
|
|
13
13
|
export { b as ActionDefinitionSchema, c as ActionFragmentSchema } from './index-BjQX8XZl.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { paletteEntryOf, paletteFromRegistry } from './chunk-OBFFZ23H.js';
|
|
2
|
-
export { DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, NovaEventSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, scopeDispatch, shellIdle, shellSettled, shellView } from './chunk-
|
|
2
|
+
export { DEFAULT_HISTORY_DEPTH, DEFAULT_SETTLE_WAIT_MS, MessageEnvelopeSchema, NovaEventSchema, canvasTreeOf, createIdFactory, createShell, hasVisibleContent, navigatedChannel, reconcileCanvas, scopeDispatch, shellIdle, shellSettled, shellView } from './chunk-L5HAGG4U.js';
|
|
3
3
|
export { ACTION_SLOT_NAME, CANVAS_SLOT_NAME, headOf, isHeadNode } from './chunk-C63CBYD5.js';
|
|
4
|
-
export { HEAD_META, HeadLinkPropsSchema, HeadMetaPropsSchema, HeadPropsSchema, HeadScriptPropsSchema, HeadTitlePropsSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, auditAction, collectChannels, composeAction, createLayoutStore, fillSlots, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, render, renderLayout, renderLayoutFromStore, renderNodeKey } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
export { HEAD_META, HeadLinkPropsSchema, HeadMetaPropsSchema, HeadPropsSchema, HeadScriptPropsSchema, HeadTitlePropsSchema, NOVA_MODEL_PROP, NOVA_REF_PROP, auditAction, collectChannels, composeAction, createLayoutStore, fillSlots, isComponentNode, isConditionalNode, isLayoutNode, isLayoutPrimitive, isLayoutRefNode, isLoopNode, isSlotNode, render, renderLayout, renderLayoutFromStore, renderNodeKey } from './chunk-E2PXYR3H.js';
|
|
5
|
+
import './chunk-A3IIJF4E.js';
|
|
6
6
|
import './chunk-M2ZZUSH3.js';
|
|
7
7
|
export { HEAD_LINK_NAME, HEAD_META_NAME, HEAD_NAME, HEAD_NAMES, HEAD_SCRIPT_NAME, HEAD_TITLE_NAME, headKeyOf } from './chunk-Y3UKAJJX.js';
|
|
8
8
|
export { ActionDefinitionSchema, ActionFragmentSchema, ComponentNotFoundError, DefinitionValidationError, EffectSchema, EndpointConfigSchema, ErrorCodes, LayoutRefNotFoundError, LifecycleConfigSchema, LifecycleError, MutationError, MutationSchema, NovaError, RenderError, ShellDisposedError, StepSchema, TriggerConfigSchema, UnknownActionError, UnknownFragmentError, UnknownFunctionError, getPath } from './chunk-G4OQ4PEO.js';
|
package/dist/reflect/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkBML7HQPE_cjs = require('../chunk-BML7HQPE.cjs');
|
|
4
|
+
var chunkVDB7VHFS_cjs = require('../chunk-VDB7VHFS.cjs');
|
|
5
|
+
require('../chunk-OM2HY2GE.cjs');
|
|
6
6
|
require('../chunk-RVU6YEHO.cjs');
|
|
7
7
|
require('../chunk-MEZCO7ND.cjs');
|
|
8
8
|
require('../chunk-CQZH3L3W.cjs');
|
|
@@ -15,75 +15,75 @@ require('../chunk-Q7SFCCGT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "actionGraph", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkBML7HQPE_cjs.actionGraph; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "auditCatalog", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkBML7HQPE_cjs.auditCatalog; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "chainCycles", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkBML7HQPE_cjs.chainCycles; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "classifyAudit", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkBML7HQPE_cjs.classifyAudit; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "componentsOf", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkBML7HQPE_cjs.componentsOf; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "describeInstance", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkBML7HQPE_cjs.describeInstance; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "describeShell", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkBML7HQPE_cjs.describeShell; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "isRecord", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkBML7HQPE_cjs.isRecord; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "livenessOf", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkBML7HQPE_cjs.livenessOf; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "loopVarsOf", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkBML7HQPE_cjs.loopVarsOf; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "refsOf", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkBML7HQPE_cjs.refsOf; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "snapshotShell", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkBML7HQPE_cjs.snapshotShell; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "walkNodes", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkBML7HQPE_cjs.walkNodes; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "declaredKeys", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkVDB7VHFS_cjs.declaredKeys; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "gesturedKeys", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkVDB7VHFS_cjs.gesturedKeys; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "lifecycleKeys", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkVDB7VHFS_cjs.lifecycleKeys; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "loadedKeys", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkVDB7VHFS_cjs.loadedKeys; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "mountInputKeys", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkVDB7VHFS_cjs.mountInputKeys; }
|
|
87
87
|
});
|
|
88
88
|
//# sourceMappingURL=index.cjs.map
|
|
89
89
|
//# sourceMappingURL=index.cjs.map
|
package/dist/reflect/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Shell } from '../types-
|
|
1
|
+
import { a as Shell } from '../types-6KTCKlXf.cjs';
|
|
2
2
|
import { L as LayoutNode } from '../schemas-DPdeFlCT.cjs';
|
|
3
3
|
import { E as EndpointConfig, T as TriggerConfig } from '../endpoints-fqx9Vmf6.cjs';
|
|
4
4
|
import { A as ActionDefinition } from '../index-BoPH5aSd.cjs';
|
|
@@ -20,7 +20,7 @@ type IssueClass = {
|
|
|
20
20
|
tag: string;
|
|
21
21
|
reason: string;
|
|
22
22
|
};
|
|
23
|
-
declare const classifyAudit: (issue: string
|
|
23
|
+
declare const classifyAudit: (issue: string) => IssueClass;
|
|
24
24
|
type ClassifiedIssue = {
|
|
25
25
|
issue: string;
|
|
26
26
|
} & IssueClass;
|
package/dist/reflect/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Shell } from '../types-
|
|
1
|
+
import { a as Shell } from '../types-DV-GDFJd.js';
|
|
2
2
|
import { L as LayoutNode } from '../schemas-DPdeFlCT.js';
|
|
3
3
|
import { E as EndpointConfig, T as TriggerConfig } from '../endpoints-DD6VsLv9.js';
|
|
4
4
|
import { A as ActionDefinition } from '../index-BjQX8XZl.js';
|
|
@@ -20,7 +20,7 @@ type IssueClass = {
|
|
|
20
20
|
tag: string;
|
|
21
21
|
reason: string;
|
|
22
22
|
};
|
|
23
|
-
declare const classifyAudit: (issue: string
|
|
23
|
+
declare const classifyAudit: (issue: string) => IssueClass;
|
|
24
24
|
type ClassifiedIssue = {
|
|
25
25
|
issue: string;
|
|
26
26
|
} & IssueClass;
|
package/dist/reflect/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { actionGraph, auditCatalog, chainCycles, classifyAudit, componentsOf, describeInstance, describeShell, isRecord, livenessOf, loopVarsOf, refsOf, snapshotShell, walkNodes } from '../chunk-
|
|
2
|
-
export { declaredKeys, gesturedKeys, lifecycleKeys, loadedKeys, mountInputKeys } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { actionGraph, auditCatalog, chainCycles, classifyAudit, componentsOf, describeInstance, describeShell, isRecord, livenessOf, loopVarsOf, refsOf, snapshotShell, walkNodes } from '../chunk-GY3KNTNK.js';
|
|
2
|
+
export { declaredKeys, gesturedKeys, lifecycleKeys, loadedKeys, mountInputKeys } from '../chunk-E2PXYR3H.js';
|
|
3
|
+
import '../chunk-A3IIJF4E.js';
|
|
4
4
|
import '../chunk-M2ZZUSH3.js';
|
|
5
5
|
import '../chunk-Y3UKAJJX.js';
|
|
6
6
|
import '../chunk-G4OQ4PEO.js';
|
|
@@ -41,6 +41,11 @@ type StatusChangeHandler = (status: ActionStatus) => void;
|
|
|
41
41
|
type TransformFn = (config: unknown, source: unknown) => unknown;
|
|
42
42
|
type FetchFn = (url: string, init?: FetchInit) => Promise<FetchResponse>;
|
|
43
43
|
type FunctionHandler = (data: Record<string, unknown>, signal: AbortSignal) => Promise<unknown>;
|
|
44
|
+
type FunctionDefinition = {
|
|
45
|
+
id: string;
|
|
46
|
+
description: string;
|
|
47
|
+
execute: FunctionHandler;
|
|
48
|
+
};
|
|
44
49
|
type FetchInit = {
|
|
45
50
|
method?: string;
|
|
46
51
|
headers?: Record<string, string>;
|
|
@@ -190,4 +195,4 @@ type Shell = {
|
|
|
190
195
|
dispose: () => void;
|
|
191
196
|
};
|
|
192
197
|
|
|
193
|
-
export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type EventHandler as f, type FetchInit as g, type FetchResponse as h, type
|
|
198
|
+
export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type EventHandler as f, type FetchInit as g, type FetchResponse as h, type FunctionDefinition as i, type FunctionHandler as j, type NavigationEffect as k, type PushOptions as l, type CanvasChangeHandler as m, type DataChangeEvent as n, type DataChangeHandler as o, type StateChangeHandler as p, type ShellTelemetry as q, type StateSnapshot as r, type StatusChangeHandler as s, createIdFactory as t };
|
|
@@ -41,6 +41,11 @@ type StatusChangeHandler = (status: ActionStatus) => void;
|
|
|
41
41
|
type TransformFn = (config: unknown, source: unknown) => unknown;
|
|
42
42
|
type FetchFn = (url: string, init?: FetchInit) => Promise<FetchResponse>;
|
|
43
43
|
type FunctionHandler = (data: Record<string, unknown>, signal: AbortSignal) => Promise<unknown>;
|
|
44
|
+
type FunctionDefinition = {
|
|
45
|
+
id: string;
|
|
46
|
+
description: string;
|
|
47
|
+
execute: FunctionHandler;
|
|
48
|
+
};
|
|
44
49
|
type FetchInit = {
|
|
45
50
|
method?: string;
|
|
46
51
|
headers?: Record<string, string>;
|
|
@@ -190,4 +195,4 @@ type Shell = {
|
|
|
190
195
|
dispose: () => void;
|
|
191
196
|
};
|
|
192
197
|
|
|
193
|
-
export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type EventHandler as f, type FetchInit as g, type FetchResponse as h, type
|
|
198
|
+
export { type ActionInstance as A, type CanvasConfig as C, type DataChangeHandler$1 as D, type EventBus as E, type FetchFn as F, type IdFactory as I, type MessageBus as M, type NavigateHandler as N, type PublicActionRuntime as P, type RenderApi as R, type ShellConfig as S, type TransformFn as T, type Shell as a, type ActionStatus as b, type CanvasInitialSeed as c, type CanvasState as d, type ChannelHandler as e, type EventHandler as f, type FetchInit as g, type FetchResponse as h, type FunctionDefinition as i, type FunctionHandler as j, type NavigationEffect as k, type PushOptions as l, type CanvasChangeHandler as m, type DataChangeEvent as n, type DataChangeHandler as o, type StateChangeHandler as p, type ShellTelemetry as q, type StateSnapshot as r, type StatusChangeHandler as s, createIdFactory as t };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/agent/affordances.ts"],"names":[],"mappings":";;;AAmBA,IAAM,WAAA,GAAc,+BAAA;AACpB,IAAM,WAAA,GAAc,+BAAA;AAEb,IAAM,kBAAA,GAAqB,CAAC,MAAA,KAAwC;AACzE,EAAA,MAAM,OAAyB,EAAC;AAChC,EAAA,MAAM,SAA6B,EAAC;AACpC,EAAA,MAAM,SAAA,uBAAgB,GAAA,EAAY;AAClC,EAAA,MAAM,QAAA,uBAAe,GAAA,EAAY;AACjC,EAAA,IAAI,cAAA,GAAiB,CAAA;AAErB,EAAA,MAAM,UAAA,GAAa,CAAC,KAAA,EAAe,KAAA,KAAqC;AACtE,IAAA,KAAA,MAAW,KAAA,IAAS,KAAA,CAAM,QAAA,CAAS,WAAW,CAAA,EAAG;AAC/C,MAAA,MAAM,GAAA,GAAM,MAAM,CAAC,CAAA;AACnB,MAAA,IAAI,GAAA,KAAQ,MAAA,EAAW,SAAA,CAAU,GAAA,CAAI,GAAG,CAAA;AAAA,IAC1C;AACA,IAAA,KAAA,MAAW,KAAA,IAAS,KAAA,CAAM,QAAA,CAAS,WAAW,CAAA,EAAG;AAC/C,MAAA,MAAM,IAAA,GAAO,MAAM,CAAC,CAAA;AACpB,MAAA,IAAI,IAAA,KAAS,MAAA,IAAa,CAAC,KAAA,CAAM,GAAA,CAAI,IAAI,CAAA,EAAG,QAAA,CAAS,GAAA,CAAI,CAAA,CAAA,EAAI,IAAI,CAAA,CAAA,CAAG,CAAA;AAAA,IACtE;AAAA,EACF,CAAA;AAEA,EAAA,MAAM,IAAA,GAAO,CAAC,IAAA,EAAe,KAAA,K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M,OAAO,OAAO,CAAA,EAAG,WAAW,CAAA;AAAA,MAClD;AACA,MAAA,MAAM,KAAA,GAAQ,OAAO,OAAO,CAAA;AAC5B,MAAA,IAAI,KAAA,KAAU,QAAQ,OAAO,KAAA,KAAU,YAAY,CAAC,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AACxE,QAAA,KAAA,MAAW,CAAC,GAAA,EAAK,KAAK,KAAK,MAAA,CAAO,OAAA,CAAQ,KAAgC,CAAA,EAAG;AAC3E,UAAA,IAAI,GAAA,CAAI,SAAS,KAAK,CAAA,IAAK,OAAO,KAAA,KAAU,QAAA,IAAY,KAAA,CAAM,MAAA,GAAS,CAAA,EAAG;AACxE,YAAA,IAAA,CAAK,KAAK,EAAE,GAAA,EAAK,OAAO,SAAA,EAAW,GAAA,EAAK,KAAK,CAAA;AAAA,UAC/C;AAAA,QACF;AAAA,MACF;AAAA,IACF;AACA,IAAA,KAAA,MAAW,SAAS,MAAA,CAAO,MAAA,CAAO,MAAM,CAAA,EAAG,IAAA,CAAK,OAAO,UAAU,CAAA;AAAA,EACnE,CAAA;AAEA,EAAA,IAAA,CAAK,MAAA,kBAAQ,IAAI,GAAA,EAAK,CAAA;AACtB,EAAA,OAAO;AAAA,IACL,IAAA;AAAA,IACA,MAAA;AAAA,IACA,SAAA,EAAW,CAAC,GAAG,SAAS,EAAE,IAAA,EAAK;AAAA,IAC/B,eAAA,EAAiB,CAAC,GAAG,QAAQ,EAAE,IAAA,EAAK;AAAA,IACpC;AAAA,GACF;AACF","file":"chunk-BXUEWV7V.cjs","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) 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 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 const childScope = loopVar !== undefined ? new Set([...scope, loopVar]) : 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 const props = record['props'];\n if (props !== null && typeof props === 'object' && !Array.isArray(props)) {\n for (const [key, value] of Object.entries(props as Record<string, unknown>)) {\n if (key.endsWith('Ref') && typeof value === 'string' && value.length > 0) {\n refs.push({ ref: value, component, via: key });\n }\n }\n }\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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/reflect/walk.ts","../src/reflect/audit.ts","../src/reflect/shell.ts","../src/reflect/graph.ts","../src/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A,CAAE,IAAA,EAAK;AAAA,IAC3I,SAAA;AAAA,IACA,YAAA,EAAc,OAAO,MAAA,KAAW;AAAA,GAClC;AACF","file":"chunk-UXFQZX6O.js","sourcesContent":["export const isRecord = (value: unknown): value is Record<string, unknown> =>\n value !== null && typeof value === 'object' && !Array.isArray(value);\n\nexport const walkNodes = (value: unknown, visit: (record: Record<string, unknown>) => void): void => {\n if (Array.isArray(value)) {\n for (const item of value) walkNodes(item, visit);\n return;\n }\n if (!isRecord(value)) return;\n visit(value);\n for (const inner of Object.values(value)) walkNodes(inner, visit);\n};\n\nexport const componentsOf = (value: unknown): Set<string> => {\n const out = new Set<string>();\n walkNodes(value, (record) => {\n if (typeof record['component'] === 'string') out.add(record['component']);\n });\n return out;\n};\n\n// Only the refs inside a component's props (a Table's `rowRef`, a cell's\n// `ref`), not a node's own `ref`.\nexport const refsOf = (value: unknown): Set<string> => {\n const out = new Set<string>();\n walkNodes(value, (record) => {\n if (record['component'] === undefined || !isRecord(record['props'])) return;\n walkNodes(record['props'], (props) => {\n for (const [key, propValue] of Object.entries(props)) {\n if ((key === 'ref' || key.endsWith('Ref')) && typeof propValue === 'string' && propValue !== '') out.add(propValue);\n }\n });\n });\n return out;\n};\n\nexport const loopVarsOf = (value: unknown): Set<string> => {\n const out = new Set<string>();\n walkNodes(value, (record) => {\n if (typeof record['as'] === 'string' && record['for'] !== undefined) out.add(record['as']);\n });\n return out;\n};\n","import { auditAction, collectChannels } from '@action';\nimport type { ActionDefinition } from '@action';\nimport { loopVarsOf, refsOf } from './walk';\n\nexport type IssueClass = { kind: 'address' } | { kind: 'info'; tag: string; reason: string };\n\nexport const classifyAudit = (issue: string, definition: ActionDefinition): IssueClass => {\n const layout = typeof definition.layout === 'object' ? definition.layout : undefined;\n\n const bind = issue.match(/binds \"\\$\\.([\\w.]+)\"/);\n if (bind !== null) {\n const root = (bind[1] ?? '').split('.')[0] ?? '';\n if (root === 'index' || root === 'items') {\n return { kind: 'info', tag: 'loop scope', reason: `\\`${root}\\` is a renderer-reserved loop variable` };\n }\n if (loopVarsOf(layout).has(root)) {\n return { kind: 'info', tag: 'loop var', reason: `\\`${root}\\` is a loop \\`as:\\` variable — in scope at runtime` };\n }\n }\n\n const ref = issue.match(/ref \"([^\"]+)\"/);\n if (ref !== null && issue.includes('listens') && refsOf(layout).has(ref[1] ?? '')) {\n return { kind: 'info', tag: 'prop ref', reason: 'dispatched by a component from a props value (e.g. Table rowRef / cell.ref)' };\n }\n\n if (issue.includes('{{')) {\n return { kind: 'info', tag: 'template', reason: 'target resolves from data at runtime — statically unknowable' };\n }\n\n return { kind: 'address' };\n};\n\nexport type ClassifiedIssue = { issue: string } & IssueClass;\nexport type CatalogAuditRow = { id: string; address: number; issues: ClassifiedIssue[] };\n\nexport const auditCatalog = (\n definitions: Record<string, ActionDefinition> | readonly ActionDefinition[],\n): CatalogAuditRow[] => {\n const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);\n const catalog = defs.map((definition) => ({ id: definition.id, ...(definition.input !== undefined ? { input: definition.input } : {}) }));\n const channels = [\n ...new Set(\n defs.flatMap((definition) => {\n const usage = collectChannels(definition);\n return [...usage.emits, ...usage.listens];\n }),\n ),\n ];\n return defs\n .map((definition): CatalogAuditRow => {\n const issues = auditAction(definition, { catalog, channels }).issues.map((issue): ClassifiedIssue => ({ issue, ...classifyAudit(issue, definition) }));\n issues.sort((a, b) => Number(a.kind === 'info') - Number(b.kind === 'info'));\n return { id: definition.id, address: issues.filter((issue) => issue.kind === 'address').length, issues };\n })\n .filter((row) => row.issues.length > 0)\n .sort((a, b) => b.address - a.address);\n};\n","import type { Shell } from '@shell';\nimport type { ActionDefinition, EndpointConfig, TriggerConfig } from '@action';\nimport type { LayoutNode } from '@layout';\nimport { classifyAudit, type ClassifiedIssue } from './audit';\nimport { auditAction } from '@action';\n\nexport type InstanceRef = {\n definitionId: string;\n instanceId: string;\n status: string;\n active: boolean;\n};\n\nexport type CanvasRef = {\n id: string;\n depth: number;\n // top-of-stack first\n items: InstanceRef[];\n};\n\nexport type ShellSnapshot = {\n canvases: CanvasRef[];\n layouts: string[];\n components: string[];\n};\n\nexport const snapshotShell = (shell: Shell, exclude: readonly string[] = []): ShellSnapshot => {\n const state = shell.getState();\n const canvases = Object.values(state.canvases)\n .filter((canvas) => !exclude.includes(canvas.id))\n .map((canvas): CanvasRef => ({\n id: canvas.id,\n depth: canvas.stack.length,\n items: [...canvas.stack].reverse().map((instance): InstanceRef => ({\n definitionId: instance.definitionId,\n instanceId: instance.id,\n status: instance.status,\n active: instance.id === canvas.active?.id,\n })),\n }));\n return { canvases, layouts: shell.layoutStore.list(), components: shell.registry.list() };\n};\n\nexport type DescribeShellOptions = {\n only?: readonly string[];\n mark?: (instanceId: string) => string | undefined;\n collapseOver?: number;\n head?: number;\n clean?: (data: Record<string, unknown>) => Record<string, unknown>;\n};\n\nconst compact = (value: unknown, over: number, head: number): unknown => {\n if (Array.isArray(value)) {\n return over === 0 || value.length <= over ? value.map((item) => compact(item, over, head)) : [...value.slice(0, head).map((item) => compact(item, over, head)), `…${value.length - head} more`];\n }\n if (value === null || typeof value !== 'object') return value;\n const out: Record<string, unknown> = {};\n for (const [key, inner] of Object.entries(value as Record<string, unknown>)) out[key] = compact(inner, over, head);\n return out;\n};\n\nexport const describeShell = (shell: Shell, options: DescribeShellOptions = {}): string => {\n const { only, mark, collapseOver = 5, head = 3, clean } = options;\n const lines: string[] = [];\n for (const [canvasId, canvas] of Object.entries(shell.getState().canvases)) {\n if (only !== undefined && !only.includes(canvasId)) continue;\n if (canvas.active === undefined) {\n lines.push(` ${canvasId}: (empty)`);\n continue;\n }\n lines.push(` ${canvasId}: ${canvas.stack.map((item, index) => `${item.definitionId}${index === canvas.stack.length - 1 ? '*' : ''}`).join(' › ')}`);\n for (const item of canvas.stack) {\n const runtime = shell.getRuntime(item.id);\n const note = mark?.(item.id);\n const data = runtime === undefined ? undefined : (clean ?? ((value: Record<string, unknown>) => value))(runtime.getData());\n lines.push(` ${item.definitionId}${note === undefined ? '' : ` ${note}`} data: ${data === undefined ? '{}' : JSON.stringify(compact(data, collapseOver, head))}`);\n }\n }\n return lines.join('\\n');\n};\n\nexport type InstanceModel = {\n id: string;\n instanceId: string;\n canvasId: string;\n status: string;\n title: string;\n data: Record<string, unknown>;\n endpoints: Array<{ name: string; config: EndpointConfig }>;\n triggers: TriggerConfig[];\n lifecycle: Record<string, unknown>;\n layoutKind: 'inline' | 'store';\n layout: LayoutNode | undefined;\n input: Record<string, unknown> | undefined;\n issues: ClassifiedIssue[];\n};\n\nexport const describeInstance = (shell: Shell, instanceId: string): InstanceModel | undefined => {\n const runtime = shell.getRuntime(instanceId);\n if (runtime === undefined) return undefined;\n\n const definition: ActionDefinition = runtime.definition;\n const layout = definition.layout;\n const layoutNode = typeof layout === 'string' ? shell.layoutStore.get(layout) : layout;\n const issues = auditAction(definition).issues.map((issue): ClassifiedIssue => ({ issue, ...classifyAudit(issue, definition) }));\n\n return {\n id: definition.id,\n instanceId,\n canvasId: runtime.instance.canvasId,\n status: runtime.instance.status,\n title: definition.title ?? '',\n data: runtime.getData(),\n endpoints: Object.entries(definition.endpoints ?? {}).map(([name, config]) => ({ name, config })),\n triggers: definition.triggers ?? [],\n lifecycle: definition.lifecycle ?? {},\n layoutKind: typeof layout === 'string' ? 'store' : 'inline',\n layout: layoutNode,\n input: definition.input,\n issues,\n };\n};\n","import { collectChannels } from '@action';\nimport type { ActionDefinition } from '@action';\nimport { walkNodes, isRecord } from './walk';\n\nconst navTargetsOf = (definition: ActionDefinition): string[] => {\n const out = new Set<string>();\n const scan = (value: unknown): void =>\n walkNodes(value, (record) => {\n for (const key of ['push', 'replace', 'resetTo']) {\n const target = record[key];\n if (isRecord(target) && typeof target['action'] === 'string') out.add(target['action']);\n }\n });\n scan(definition.triggers ?? []);\n scan(definition.lifecycle ?? {});\n return [...out].sort();\n};\n\nexport type ActionNode = {\n id: string;\n pushes: string[];\n emits: string[];\n listens: string[];\n};\n\nexport type ActionGraph = {\n nodes: ActionNode[];\n dangling: string[];\n};\n\nexport const actionGraph = (\n definitions: Record<string, ActionDefinition> | readonly ActionDefinition[],\n): ActionGraph => {\n const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);\n const known = new Set(defs.map((definition) => definition.id));\n const dangling = new Set<string>();\n\n const nodes = defs.map((definition): ActionNode => {\n const pushes = navTargetsOf(definition);\n for (const target of pushes) if (!target.includes('{{') && !known.has(target)) dangling.add(target);\n const usage = collectChannels(definition);\n return { id: definition.id, pushes, emits: usage.emits, listens: usage.listens };\n });\n\n return { nodes, dangling: [...dangling].sort() };\n};\n","import type { ActionDefinition } from '@action';\nimport { isRecord } from './walk';\n\nexport type ChainStep = {\n // `from` and `to`: `channel:<name>` or `mount:<action id>`.\n from: string;\n to: string;\n action: string;\n via: string;\n};\n\nexport type ChainCycle = {\n steps: ChainStep[];\n path: string;\n};\n\nconst NAV_KEYS = ['push', 'replace', 'resetTo'];\n\nconst isLiteral = (value: unknown): value is string => typeof value === 'string' && value !== '' && !value.includes('{{');\n\nconst edgesOf = (definition: ActionDefinition, from: string, steps: unknown, known: ReadonlySet<string>, out: ChainStep[]): void => {\n if (!Array.isArray(steps)) return;\n for (const step of steps) {\n if (!isRecord(step)) continue;\n const emit = step['emit'];\n if (isRecord(emit) && isLiteral(emit['channel'])) out.push({ from, to: `channel:${emit['channel']}`, action: definition.id, via: 'emit' });\n if (step['reload'] === true) out.push({ from, to: `mount:${definition.id}`, action: definition.id, via: 'reload' });\n for (const key of NAV_KEYS) {\n const nav = step[key];\n if (isRecord(nav) && isLiteral(nav['action']) && known.has(nav['action'])) out.push({ from, to: `mount:${nav['action']}`, action: definition.id, via: key });\n }\n if (typeof step['call'] === 'string') {\n edgesOf(definition, from, step['onSuccess'], known, out);\n edgesOf(definition, from, step['onError'], known, out);\n }\n }\n};\n\nconst label = (node: string): string => (node.startsWith('channel:') ? node.slice('channel:'.length) : `mount ${node.slice('mount:'.length)}`);\n\nexport const chainCycles = (definitions: Record<string, ActionDefinition> | readonly ActionDefinition[]): ChainCycle[] => {\n const defs = Array.isArray(definitions) ? [...definitions] : Object.values(definitions);\n const known = new Set(defs.map((definition) => definition.id));\n const edges: ChainStep[] = [];\n for (const definition of defs) {\n for (const trigger of definition.triggers ?? []) {\n if (isLiteral(trigger.message)) edgesOf(definition, `channel:${trigger.message}`, trigger.do, known, edges);\n }\n edgesOf(definition, `mount:${definition.id}`, definition.lifecycle?.mount, known, edges);\n }\n const outgoing = new Map<string, ChainStep[]>();\n for (const edge of edges) outgoing.set(edge.from, [...(outgoing.get(edge.from) ?? []), edge]);\n\n // Tarjan: one cycle per strongly connected component, so a tangle of triggers\n // reports once and not once per rotation of every loop in it.\n const index = new Map<string, number>();\n const low = new Map<string, number>();\n const onStack = new Set<string>();\n const stack: string[] = [];\n const components: string[][] = [];\n let counter = 0;\n const connect = (node: string): void => {\n index.set(node, counter);\n low.set(node, counter);\n counter += 1;\n stack.push(node);\n onStack.add(node);\n for (const edge of outgoing.get(node) ?? []) {\n if (!index.has(edge.to)) {\n connect(edge.to);\n low.set(node, Math.min(low.get(node) ?? 0, low.get(edge.to) ?? 0));\n } else if (onStack.has(edge.to)) {\n low.set(node, Math.min(low.get(node) ?? 0, index.get(edge.to) ?? 0));\n }\n }\n if (low.get(node) !== index.get(node)) return;\n const component: string[] = [];\n for (let top = stack.pop(); top !== undefined; top = stack.pop()) {\n onStack.delete(top);\n component.push(top);\n if (top === node) break;\n }\n components.push(component);\n };\n for (const node of [...outgoing.keys()].sort()) if (!index.has(node)) connect(node);\n\n const cycleIn = (component: readonly string[]): ChainStep[] | undefined => {\n const members = new Set(component);\n const start = [...component].sort()[0];\n if (start === undefined) return undefined;\n const via = new Map<string, ChainStep>();\n const queue = [start];\n for (let node = queue.shift(); node !== undefined; node = queue.shift()) {\n for (const edge of outgoing.get(node) ?? []) {\n if (!members.has(edge.to)) continue;\n if (edge.to === start) {\n const steps = [edge];\n for (let back = via.get(node); back !== undefined; back = via.get(back.from)) steps.unshift(back);\n return steps;\n }\n if (via.has(edge.to)) continue;\n via.set(edge.to, edge);\n queue.push(edge.to);\n }\n }\n return undefined;\n };\n\n return components\n .map(cycleIn)\n .filter((steps): steps is ChainStep[] => steps !== undefined)\n .map((steps) => ({\n steps,\n path: [label(steps[0]?.from ?? ''), ...steps.map((step) => `—${step.via} (${step.action})→ ${label(step.to)}`)].join(' '),\n }))\n .sort((a, b) => a.path.localeCompare(b.path));\n};\n","import type { ActionDefinition } from '@action';\nimport { isRecord, walkNodes } from './walk';\n\nexport type EndpointUse = {\n name: string;\n kind: 'fn' | 'http';\n url?: string;\n request?: unknown;\n onOpen: boolean;\n later: boolean;\n};\n\nexport type ActionLiveness = {\n gestures: boolean;\n listens: readonly string[];\n endpoints: readonly EndpointUse[];\n // The layout is a store id and is not read here: `gestures` false then does\n // not mean nothing can be pressed.\n opaqueLayout: boolean;\n};\n\nconst callsIn = (steps: unknown): Set<string> => {\n const names = new Set<string>();\n walkNodes(steps, (record) => {\n if (typeof record['call'] === 'string') names.add(record['call']);\n });\n return names;\n};\n\nexport const livenessOf = (definition: ActionDefinition): ActionLiveness => {\n const triggers = definition.triggers ?? [];\n const layout = definition.layout;\n\n let bound = false;\n if (layout !== undefined && typeof layout !== 'string') {\n walkNodes(layout, (record) => {\n if (typeof record['component'] === 'string' && record['model'] !== undefined) bound = true;\n });\n }\n\n const opening = callsIn(definition.lifecycle ?? {});\n const afterwards = callsIn(triggers.map((trigger) => trigger.do));\n\n const endpoints = Object.entries(definition.endpoints ?? {}).map(([name, config]): EndpointUse => {\n const spec: unknown = config;\n const use = { name, onOpen: opening.has(name), later: afterwards.has(name) };\n if (isRecord(spec) && typeof spec['fn'] === 'string') return { ...use, kind: 'fn' };\n return {\n ...use,\n kind: 'http',\n ...(isRecord(spec) && typeof spec['url'] === 'string' ? { url: spec['url'] } : {}),\n ...(isRecord(spec) && spec['request'] !== undefined ? { request: spec['request'] } : {}),\n };\n });\n\n return {\n gestures: bound || triggers.some((trigger) => typeof trigger.event === 'string'),\n listens: [...new Set(triggers.map((trigger) => trigger.message).filter((channel): channel is string => typeof channel === 'string'))].sort(),\n endpoints,\n opaqueLayout: typeof layout === 'string',\n };\n};\n"]}
|