@niscorp/nova 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/adapters/dom/components/index.cjs +4 -51
- package/dist/adapters/dom/components/index.cjs.map +1 -1
- package/dist/adapters/dom/index.cjs +22 -686
- package/dist/adapters/dom/index.cjs.map +1 -1
- package/dist/adapters/dom/server.cjs +14 -411
- package/dist/adapters/dom/server.cjs.map +1 -1
- package/dist/adapters/react/components/index.cjs +87 -562
- package/dist/adapters/react/components/index.cjs.map +1 -1
- package/dist/adapters/react/components/index.d.cts +2 -2
- package/dist/adapters/react/components/index.d.ts +2 -2
- package/dist/adapters/react/index.cjs +97 -1815
- package/dist/adapters/react/index.cjs.map +1 -1
- package/dist/adapters/tty/components/index.cjs +3 -44
- package/dist/adapters/tty/components/index.cjs.map +1 -1
- package/dist/adapters/tty/index.cjs +13 -5
- package/dist/adapters/tty/index.cjs.map +1 -1
- package/dist/adapters/vue/components/index.cjs +88 -639
- package/dist/adapters/vue/components/index.cjs.map +1 -1
- package/dist/adapters/vue/components/index.d.cts +10 -10
- package/dist/adapters/vue/components/index.d.ts +10 -10
- package/dist/adapters/vue/index.cjs +96 -962
- package/dist/adapters/vue/index.cjs.map +1 -1
- package/dist/agent/index.cjs +13 -151
- package/dist/agent/index.cjs.map +1 -1
- package/dist/chunk-3IPM5QBT.cjs +436 -0
- package/dist/chunk-3IPM5QBT.cjs.map +1 -0
- package/dist/chunk-5AF72LOE.cjs +97 -0
- package/dist/chunk-5AF72LOE.cjs.map +1 -0
- package/dist/chunk-5YQIAS4V.cjs +184 -0
- package/dist/chunk-5YQIAS4V.cjs.map +1 -0
- package/dist/chunk-D4PUWBN6.cjs +72 -0
- package/dist/chunk-D4PUWBN6.cjs.map +1 -0
- package/dist/chunk-FSUMCJAR.cjs +646 -0
- package/dist/chunk-FSUMCJAR.cjs.map +1 -0
- package/dist/chunk-GV7UC3SS.cjs +33 -0
- package/dist/chunk-GV7UC3SS.cjs.map +1 -0
- package/dist/chunk-IZ2UU5UL.cjs +808 -0
- package/dist/chunk-IZ2UU5UL.cjs.map +1 -0
- package/dist/chunk-KOYRJXTI.cjs +123 -0
- package/dist/chunk-KOYRJXTI.cjs.map +1 -0
- package/dist/chunk-KW34ZKF5.cjs +12 -0
- package/dist/chunk-KW34ZKF5.cjs.map +1 -0
- package/dist/chunk-OE527MXF.cjs +49 -0
- package/dist/chunk-OE527MXF.cjs.map +1 -0
- package/dist/chunk-OO247V4J.cjs +2117 -0
- package/dist/chunk-OO247V4J.cjs.map +1 -0
- package/dist/chunk-PMKWYOOX.cjs +64 -0
- package/dist/chunk-PMKWYOOX.cjs.map +1 -0
- package/dist/chunk-PNQY6OFB.cjs +132 -0
- package/dist/chunk-PNQY6OFB.cjs.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-TMLNVU5W.cjs +318 -0
- package/dist/chunk-TMLNVU5W.cjs.map +1 -0
- package/dist/chunk-TRJYDVWK.cjs +623 -0
- package/dist/chunk-TRJYDVWK.cjs.map +1 -0
- package/dist/chunk-UGG7MCX4.cjs +34 -0
- package/dist/chunk-UGG7MCX4.cjs.map +1 -0
- package/dist/chunk-WGPFR7MN.cjs +808 -0
- package/dist/chunk-WGPFR7MN.cjs.map +1 -0
- package/dist/chunk-WGZZKCJQ.cjs +157 -0
- package/dist/chunk-WGZZKCJQ.cjs.map +1 -0
- package/dist/devtools/index.cjs +13 -697
- package/dist/devtools/index.cjs.map +1 -1
- package/dist/document/index.cjs +56 -301
- package/dist/document/index.cjs.map +1 -1
- package/dist/examples/index.cjs +6 -31
- package/dist/examples/index.cjs.map +1 -1
- package/dist/i18n/index.cjs +44 -292
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/index.cjs +335 -3954
- package/dist/index.cjs.map +1 -1
- package/dist/migrations/index.cjs +7 -590
- package/dist/migrations/index.cjs.map +1 -1
- package/dist/reflect/index.cjs +85 -994
- package/dist/reflect/index.cjs.map +1 -1
- package/package.json +5 -5
- package/dist/{primitive-props-CGoJvmcH.d.cts → primitive-props-Cl5jiC8g.d.cts} +5 -5
- package/dist/{primitive-props-CGoJvmcH.d.ts → primitive-props-Cl5jiC8g.d.ts} +5 -5
|
@@ -1,353 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkTRJYDVWK_cjs = require('../../chunk-TRJYDVWK.cjs');
|
|
4
|
+
require('../../chunk-5AF72LOE.cjs');
|
|
5
|
+
require('../../chunk-WGZZKCJQ.cjs');
|
|
6
|
+
require('../../chunk-OO247V4J.cjs');
|
|
7
|
+
var chunkPNQY6OFB_cjs = require('../../chunk-PNQY6OFB.cjs');
|
|
8
|
+
require('../../chunk-IZ2UU5UL.cjs');
|
|
9
|
+
require('../../chunk-PMKWYOOX.cjs');
|
|
10
|
+
require('../../chunk-KOYRJXTI.cjs');
|
|
11
|
+
require('../../chunk-GV7UC3SS.cjs');
|
|
12
|
+
require('../../chunk-FSUMCJAR.cjs');
|
|
13
|
+
require('../../chunk-D4PUWBN6.cjs');
|
|
14
|
+
require('../../chunk-KW34ZKF5.cjs');
|
|
15
|
+
require('../../chunk-OE527MXF.cjs');
|
|
16
|
+
require('../../chunk-Q7SFCCGT.cjs');
|
|
3
17
|
var vue = require('vue');
|
|
4
|
-
var zod = require('zod');
|
|
5
18
|
|
|
6
|
-
// src/adapters/vue/types.ts
|
|
7
|
-
var isNovaComponent = (value) => typeof value === "function" || typeof value === "object" && value !== null;
|
|
8
|
-
|
|
9
|
-
// src/adapters/vue/context.ts
|
|
10
|
-
var NovaRenderKey = /* @__PURE__ */ Symbol.for("@niscorp/nova/adapters/vue:render");
|
|
11
|
-
var NovaShellKey = /* @__PURE__ */ Symbol.for("@niscorp/nova/adapters/vue:shell");
|
|
12
|
-
|
|
13
|
-
// src/layout/head.ts
|
|
14
|
-
var HEAD_NAME = "nova:head";
|
|
15
|
-
var HEAD_TITLE_NAME = "nova:title";
|
|
16
|
-
var HEAD_META_NAME = "nova:meta";
|
|
17
|
-
var HEAD_LINK_NAME = "nova:link";
|
|
18
|
-
var HEAD_SCRIPT_NAME = "nova:script";
|
|
19
|
-
var headKeyOf = (element) => {
|
|
20
|
-
const said = (name) => {
|
|
21
|
-
const found = Object.entries(element.attributes).find(([key]) => key.toLowerCase() === name)?.[1].trim().toLowerCase();
|
|
22
|
-
return found === void 0 || found === "" ? void 0 : found;
|
|
23
|
-
};
|
|
24
|
-
if (element.tag === "title") return "title";
|
|
25
|
-
if (element.tag === "meta") {
|
|
26
|
-
const [name, property] = [said("name"), said("property")];
|
|
27
|
-
if (name !== void 0) return `meta name ${name}`;
|
|
28
|
-
return property === void 0 ? void 0 : `meta property ${property}`;
|
|
29
|
-
}
|
|
30
|
-
if (element.tag === "link") return (said("rel") ?? "").split(/\s+/).includes("canonical") ? "link canonical" : void 0;
|
|
31
|
-
return void 0;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// src/layout/adapter.ts
|
|
35
|
-
var NOVA_MODEL_PROP = "novaModel";
|
|
36
|
-
var NOVA_REF_PROP = "novaRef";
|
|
37
|
-
var renderNodeKey = (node, index) => {
|
|
38
|
-
if (node.key !== void 0) return `k:${node.key}`;
|
|
39
|
-
if (node.type === "component") {
|
|
40
|
-
if (node.ref !== void 0) return `c:${node.ref}`;
|
|
41
|
-
return `c:${node.name}:${index}`;
|
|
42
|
-
}
|
|
43
|
-
if (node.type === "text") return `t:${index}`;
|
|
44
|
-
if (node.type === "fragment") return `f:${index}`;
|
|
45
|
-
return `e:${node.code}:${index}`;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// src/shared/event-bus/scope-dispatch.ts
|
|
49
|
-
var scopeDispatch = (dispatch, origin) => {
|
|
50
|
-
return (event) => dispatch(event.origin === void 0 ? { ...event, origin } : event);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
// src/shell/slot-names.ts
|
|
54
|
-
var CANVAS_SLOT_NAME = "CanvasSlot";
|
|
55
|
-
var ACTION_SLOT_NAME = "ActionSlot";
|
|
56
|
-
|
|
57
|
-
// src/shell/head.ts
|
|
58
|
-
var ATTRIBUTE_NAME = /^[A-Za-z][A-Za-z0-9:._-]*$/;
|
|
59
|
-
var DATA_TYPE = /^application\/([a-z0-9.-]+\+)?json$/i;
|
|
60
|
-
var written = (value) => {
|
|
61
|
-
if (typeof value === "string") return value.trim() === "" ? void 0 : value;
|
|
62
|
-
if (typeof value === "number") return String(value);
|
|
63
|
-
return value === true ? "" : void 0;
|
|
64
|
-
};
|
|
65
|
-
var attributesOf = (what, props, skip = []) => {
|
|
66
|
-
const attributes = {};
|
|
67
|
-
for (const [name, value] of Object.entries(props)) {
|
|
68
|
-
if (skip.includes(name)) continue;
|
|
69
|
-
if (!ATTRIBUTE_NAME.test(name)) return { refused: `${what}: "${name}" is not an attribute\u2019s name` };
|
|
70
|
-
if (/^on/i.test(name)) return { refused: `${what}: \`${name}\` is a handler, and a layout does not run` };
|
|
71
|
-
const text = written(value);
|
|
72
|
-
if (text !== void 0) attributes[name] = text;
|
|
73
|
-
}
|
|
74
|
-
return { attributes };
|
|
75
|
-
};
|
|
76
|
-
var has = (attributes, name) => Object.keys(attributes).some((key) => key.toLowerCase() === name);
|
|
77
|
-
var valueOf = (attributes, name) => Object.entries(attributes).find(([key]) => key.toLowerCase() === name)?.[1] ?? "";
|
|
78
|
-
var textOf = (nodes) => nodes.map((node) => node.type === "text" ? node.value : node.type === "fragment" ? textOf(node.children) : "").join("");
|
|
79
|
-
var titleOf = (node) => {
|
|
80
|
-
const text = textOf(node.children).trim();
|
|
81
|
-
return text === "" ? void 0 : { element: { tag: "title", attributes: {}, text } };
|
|
82
|
-
};
|
|
83
|
-
var metaOf = (node) => {
|
|
84
|
-
const read = attributesOf(HEAD_META_NAME, node.props);
|
|
85
|
-
if ("refused" in read) return read;
|
|
86
|
-
if (has(read.attributes, "http-equiv")) return { refused: `${HEAD_META_NAME}: \`http-equiv\` instructs the browser, and a layout does not` };
|
|
87
|
-
return has(read.attributes, "content") ? { element: { tag: "meta", attributes: read.attributes } } : void 0;
|
|
88
|
-
};
|
|
89
|
-
var linkOf = (node) => {
|
|
90
|
-
const read = attributesOf(HEAD_LINK_NAME, node.props);
|
|
91
|
-
if ("refused" in read) return read;
|
|
92
|
-
if (valueOf(read.attributes, "rel").toLowerCase().split(/\s+/).includes("stylesheet")) return { refused: `${HEAD_LINK_NAME}: a stylesheet styles the page, and a layout does not` };
|
|
93
|
-
return has(read.attributes, "href") ? { element: { tag: "link", attributes: read.attributes } } : void 0;
|
|
94
|
-
};
|
|
95
|
-
var scriptOf = (node) => {
|
|
96
|
-
const read = attributesOf(HEAD_SCRIPT_NAME, node.props, ["data"]);
|
|
97
|
-
if ("refused" in read) return read;
|
|
98
|
-
if (has(read.attributes, "src")) return { refused: `${HEAD_SCRIPT_NAME}: a script with a \`src\` runs, and a layout does not` };
|
|
99
|
-
const type = valueOf(read.attributes, "type");
|
|
100
|
-
if (!DATA_TYPE.test(type)) return { refused: `${HEAD_SCRIPT_NAME}: only a data block may be written (a JSON \`type\`), and "${type}" is not one` };
|
|
101
|
-
const data = node.props["data"];
|
|
102
|
-
if (data === void 0 || data === null || data === "") return void 0;
|
|
103
|
-
return { element: { tag: "script", attributes: read.attributes, text: JSON.stringify(data) } };
|
|
104
|
-
};
|
|
105
|
-
var READERS = {
|
|
106
|
-
[HEAD_TITLE_NAME]: titleOf,
|
|
107
|
-
[HEAD_META_NAME]: metaOf,
|
|
108
|
-
[HEAD_LINK_NAME]: linkOf,
|
|
109
|
-
[HEAD_SCRIPT_NAME]: scriptOf
|
|
110
|
-
};
|
|
111
|
-
var isHeadNode = (node) => node.type === "component" && node.name === HEAD_NAME;
|
|
112
|
-
var headOf = (api) => {
|
|
113
|
-
let heads = 0;
|
|
114
|
-
const said = [];
|
|
115
|
-
const refused = [];
|
|
116
|
-
const open = /* @__PURE__ */ new Set();
|
|
117
|
-
const hold = (nodes, action) => {
|
|
118
|
-
for (const node of nodes) {
|
|
119
|
-
if (node.type === "fragment") {
|
|
120
|
-
hold(node.children, action);
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
if (node.type === "error") {
|
|
124
|
-
refused.push(`${HEAD_NAME}: ${node.message}`);
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
if (node.type !== "component") continue;
|
|
128
|
-
const read = READERS[node.name];
|
|
129
|
-
if (read === void 0) {
|
|
130
|
-
refused.push(`${HEAD_NAME}: "${node.name}" is not something a head holds`);
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
const found = read(node);
|
|
134
|
-
if (found === void 0) continue;
|
|
135
|
-
if ("refused" in found) {
|
|
136
|
-
refused.push(found.refused);
|
|
137
|
-
continue;
|
|
138
|
-
}
|
|
139
|
-
const key = headKeyOf(found.element);
|
|
140
|
-
const earlier = key === void 0 ? -1 : said.findIndex((other) => headKeyOf(other.element) === key);
|
|
141
|
-
if (earlier >= 0) said.splice(earlier, 1);
|
|
142
|
-
said.push({ element: found.element, action });
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
const walk = (nodes, action) => {
|
|
146
|
-
for (const node of nodes) {
|
|
147
|
-
if (node.type === "fragment") {
|
|
148
|
-
walk(node.children, action);
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
if (node.type !== "component") continue;
|
|
152
|
-
if (node.name === HEAD_NAME) {
|
|
153
|
-
heads += 1;
|
|
154
|
-
hold(node.children, action);
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
if (node.name === CANVAS_SLOT_NAME) {
|
|
158
|
-
const canvasId = node.props["canvasId"];
|
|
159
|
-
if (typeof canvasId !== "string" || canvasId === "" || open.has(canvasId)) continue;
|
|
160
|
-
open.add(canvasId);
|
|
161
|
-
walk(api.canvasTree(canvasId), void 0);
|
|
162
|
-
open.delete(canvasId);
|
|
163
|
-
continue;
|
|
164
|
-
}
|
|
165
|
-
const definitionId = node.name === ACTION_SLOT_NAME ? node.props["definitionId"] : void 0;
|
|
166
|
-
walk(node.children, typeof definitionId === "string" ? definitionId : action);
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
walk(api.frame(), void 0);
|
|
170
|
-
if (heads === 0) return void 0;
|
|
171
|
-
const actions = [...new Set(said.flatMap((one) => one.action === void 0 ? [] : [one.action]))];
|
|
172
|
-
return { elements: said.map((one) => one.element), actions, refused };
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
// src/shell/view.ts
|
|
176
|
-
var hasVisibleContent = (nodes) => nodes.some((node) => {
|
|
177
|
-
if (node.type === "text") return node.value !== "";
|
|
178
|
-
if (node.type === "fragment") return hasVisibleContent(node.children);
|
|
179
|
-
if (node.type === "component" && node.name === ACTION_SLOT_NAME) return hasVisibleContent(node.children);
|
|
180
|
-
if (isHeadNode(node)) return false;
|
|
181
|
-
return true;
|
|
182
|
-
});
|
|
183
|
-
var canvasTreeOf = (shell, canvasId) => {
|
|
184
|
-
const tree = shell.flattenRenderTree(shell.getCanvasRenderTree(canvasId));
|
|
185
|
-
return hasVisibleContent(tree) ? tree : [];
|
|
186
|
-
};
|
|
187
|
-
var shellView = (shell) => ({
|
|
188
|
-
api: {
|
|
189
|
-
frame: () => shell.getShellRenderTree(),
|
|
190
|
-
canvasTree: (canvasId) => canvasTreeOf(shell, canvasId),
|
|
191
|
-
// An event that names no origin belongs to the canvas's ACTIVE instance — on
|
|
192
|
-
// a card deck that is the only one drawn. One that names its own (an
|
|
193
|
-
// adapter stamps it at the instance boundary, `scopeDispatch`) keeps it. A
|
|
194
|
-
// canvas with nothing mounted dispatches unstamped.
|
|
195
|
-
dispatch: (canvasId, event) => {
|
|
196
|
-
const active = shell.getState().canvases[canvasId]?.active;
|
|
197
|
-
shell.dispatch(event.origin === void 0 && active !== void 0 ? { ...event, origin: active.id } : event);
|
|
198
|
-
},
|
|
199
|
-
publish: (channel, payload) => shell.publish(channel, payload)
|
|
200
|
-
},
|
|
201
|
-
subscribe: (listener) => {
|
|
202
|
-
let pending = false;
|
|
203
|
-
let stopped = false;
|
|
204
|
-
const changed = () => {
|
|
205
|
-
if (pending || stopped) return;
|
|
206
|
-
pending = true;
|
|
207
|
-
queueMicrotask(() => {
|
|
208
|
-
pending = false;
|
|
209
|
-
if (!stopped) listener();
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
const offState = shell.onStateChange(changed);
|
|
213
|
-
const offData = shell.onDataChange(changed);
|
|
214
|
-
return () => {
|
|
215
|
-
stopped = true;
|
|
216
|
-
offState();
|
|
217
|
-
offData();
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
// src/document/place-head.ts
|
|
223
|
-
var HEAD_MARK = "data-nova-head";
|
|
224
|
-
var OWN_MARK = "data-nova-own";
|
|
225
|
-
|
|
226
|
-
// src/document/head-keeper.ts
|
|
227
|
-
var TAGS2 = ["title", "meta", "link"];
|
|
228
|
-
var keyOfNode = (node) => {
|
|
229
|
-
const tag = TAGS2.find((name) => name === node.tagName.toLowerCase());
|
|
230
|
-
if (tag !== "title" && tag !== "meta" && tag !== "link") return void 0;
|
|
231
|
-
return headKeyOf({ tag, attributes: Object.fromEntries([...node.attributes].map((attribute) => [attribute.name, attribute.value])) });
|
|
232
|
-
};
|
|
233
|
-
var createHeadKeeper = (doc) => {
|
|
234
|
-
let mine = [];
|
|
235
|
-
let away = [];
|
|
236
|
-
let said;
|
|
237
|
-
const built = (element) => {
|
|
238
|
-
const node = doc.createElement(element.tag);
|
|
239
|
-
for (const [name, value] of Object.entries(element.attributes)) node.setAttribute(name, value);
|
|
240
|
-
node.setAttribute(HEAD_MARK, "");
|
|
241
|
-
if (element.text !== void 0) node.textContent = element.text;
|
|
242
|
-
return node;
|
|
243
|
-
};
|
|
244
|
-
const adopt = () => {
|
|
245
|
-
mine = [...doc.head.querySelectorAll(`[${HEAD_MARK}]`)];
|
|
246
|
-
const view = doc.defaultView;
|
|
247
|
-
for (const stash of doc.head.querySelectorAll(`template[${OWN_MARK}]`)) {
|
|
248
|
-
if (view === null || !(stash instanceof view.HTMLTemplateElement)) continue;
|
|
249
|
-
for (const child of [...stash.content.children]) {
|
|
250
|
-
const key = keyOfNode(child);
|
|
251
|
-
if (key !== void 0) away.push({ key, node: doc.importNode(child, true), before: null });
|
|
252
|
-
}
|
|
253
|
-
stash.remove();
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
return (elements) => {
|
|
257
|
-
const now = elements ?? [];
|
|
258
|
-
const next = JSON.stringify(now);
|
|
259
|
-
if (said === void 0) {
|
|
260
|
-
if (now.length === 0) return;
|
|
261
|
-
adopt();
|
|
262
|
-
}
|
|
263
|
-
if (next === said) return;
|
|
264
|
-
said = next;
|
|
265
|
-
for (const node of mine) node.remove();
|
|
266
|
-
mine = now.map(built);
|
|
267
|
-
const keys = new Set(now.flatMap((element) => headKeyOf(element) ?? []));
|
|
268
|
-
for (const node of [...doc.head.children]) {
|
|
269
|
-
const key = keyOfNode(node);
|
|
270
|
-
if (key === void 0 || !keys.has(key)) continue;
|
|
271
|
-
away.push({ key, node, before: node.nextSibling });
|
|
272
|
-
node.remove();
|
|
273
|
-
}
|
|
274
|
-
const [back, still] = [away.filter((gone) => !keys.has(gone.key)), away.filter((gone) => keys.has(gone.key))];
|
|
275
|
-
for (const gone of [...back].reverse()) doc.head.insertBefore(gone.node, gone.before !== null && gone.before.parentNode === doc.head ? gone.before : null);
|
|
276
|
-
away = still;
|
|
277
|
-
doc.head.append(...mine);
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
// src/document/shell-head.ts
|
|
282
|
-
var createShellHead = (shell) => {
|
|
283
|
-
const view = shellView(shell);
|
|
284
|
-
let present = 0;
|
|
285
|
-
let keep;
|
|
286
|
-
let queued = false;
|
|
287
|
-
const read = () => {
|
|
288
|
-
if (queued || typeof document === "undefined") return;
|
|
289
|
-
queued = true;
|
|
290
|
-
queueMicrotask(() => {
|
|
291
|
-
queued = false;
|
|
292
|
-
keep ??= createHeadKeeper(document);
|
|
293
|
-
keep(present > 0 ? headOf(view.api)?.elements : void 0);
|
|
294
|
-
});
|
|
295
|
-
};
|
|
296
|
-
return {
|
|
297
|
-
enter: () => {
|
|
298
|
-
present += 1;
|
|
299
|
-
read();
|
|
300
|
-
},
|
|
301
|
-
leave: () => {
|
|
302
|
-
present -= 1;
|
|
303
|
-
read();
|
|
304
|
-
},
|
|
305
|
-
watch: () => view.subscribe(() => {
|
|
306
|
-
if (present > 0) read();
|
|
307
|
-
})
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
// src/adapters/vue/head.ts
|
|
312
|
-
var ShellHeadKey = /* @__PURE__ */ Symbol.for("@niscorp/nova/adapters/vue:head");
|
|
313
|
-
var HeadMark = vue.defineComponent(
|
|
314
|
-
() => {
|
|
315
|
-
const head = vue.inject(ShellHeadKey, void 0);
|
|
316
|
-
vue.onMounted(() => {
|
|
317
|
-
if (head === void 0) return;
|
|
318
|
-
vue.watch(
|
|
319
|
-
head,
|
|
320
|
-
(current, _previous, onCleanup) => {
|
|
321
|
-
current.enter();
|
|
322
|
-
onCleanup(current.leave);
|
|
323
|
-
},
|
|
324
|
-
{ immediate: true }
|
|
325
|
-
);
|
|
326
|
-
});
|
|
327
|
-
return () => null;
|
|
328
|
-
},
|
|
329
|
-
{ name: "NovaHeadMark" }
|
|
330
|
-
);
|
|
331
|
-
var provideShellHead = (shell) => {
|
|
332
|
-
let held = shell();
|
|
333
|
-
const head = vue.shallowRef(createShellHead(held));
|
|
334
|
-
vue.provide(ShellHeadKey, head);
|
|
335
|
-
vue.onMounted(() => {
|
|
336
|
-
vue.watch(
|
|
337
|
-
shell,
|
|
338
|
-
(next, _previous, onCleanup) => {
|
|
339
|
-
if (next !== held) {
|
|
340
|
-
held = next;
|
|
341
|
-
head.value = createShellHead(next);
|
|
342
|
-
}
|
|
343
|
-
onCleanup(head.value.watch());
|
|
344
|
-
},
|
|
345
|
-
{ immediate: true }
|
|
346
|
-
);
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
// src/adapters/vue/provider.ts
|
|
351
19
|
var noopDispatch = () => {
|
|
352
20
|
};
|
|
353
21
|
var noopPublish = () => {
|
|
@@ -371,7 +39,7 @@ var NovaRenderProvider = vue.defineComponent(
|
|
|
371
39
|
return props.fallback;
|
|
372
40
|
}
|
|
373
41
|
};
|
|
374
|
-
vue.provide(NovaRenderKey, value);
|
|
42
|
+
vue.provide(chunkTRJYDVWK_cjs.NovaRenderKey, value);
|
|
375
43
|
return () => slots.default?.();
|
|
376
44
|
},
|
|
377
45
|
{ name: "NovaRenderProvider", props: ["registry", "dispatch", "publish", "slotWrapper", "fallback"] }
|
|
@@ -383,8 +51,8 @@ var NovaShellProvider = vue.defineComponent(
|
|
|
383
51
|
return props.shell;
|
|
384
52
|
}
|
|
385
53
|
};
|
|
386
|
-
vue.provide(NovaShellKey, source);
|
|
387
|
-
provideShellHead(() => props.shell);
|
|
54
|
+
vue.provide(chunkTRJYDVWK_cjs.NovaShellKey, source);
|
|
55
|
+
chunkTRJYDVWK_cjs.provideShellHead(() => props.shell);
|
|
388
56
|
const dispatch = (event) => props.shell.dispatch(event);
|
|
389
57
|
const publish = (channel, payload) => props.shell.publish(channel, payload);
|
|
390
58
|
return () => vue.h(
|
|
@@ -395,47 +63,6 @@ var NovaShellProvider = vue.defineComponent(
|
|
|
395
63
|
},
|
|
396
64
|
{ name: "NovaShellProvider", props: ["shell", "registry", "slotWrapper"] }
|
|
397
65
|
);
|
|
398
|
-
var ErrorMarker = vue.defineComponent(
|
|
399
|
-
(props) => () => vue.h("span", { "data-nova-error": props.code, role: "alert" }, `[${props.code}] ${props.message}`),
|
|
400
|
-
{ name: "NovaErrorMarker", props: ["code", "message"] }
|
|
401
|
-
);
|
|
402
|
-
|
|
403
|
-
// src/adapters/vue/render-node.ts
|
|
404
|
-
var childViews = (children) => children.map((child, i) => vue.h(RenderNodeView, { node: child, key: renderNodeKey(child, i) }));
|
|
405
|
-
var renderNode = (ctx, node) => {
|
|
406
|
-
if (node.type === "text") return vue.createTextVNode(node.value);
|
|
407
|
-
if (node.type === "fragment") return vue.h(RenderTree, { nodes: node.children });
|
|
408
|
-
if (node.type === "error") return vue.h(ErrorMarker, { code: node.code, message: node.message });
|
|
409
|
-
if (isHeadNode(node)) return vue.h(HeadMark);
|
|
410
|
-
const registered = ctx.registry.get(node.name)?.component;
|
|
411
|
-
const component = isNovaComponent(registered) ? registered : ctx.fallback;
|
|
412
|
-
if (component === void 0) return vue.h(ErrorMarker, { code: "COMPONENT_NOT_FOUND", message: node.name });
|
|
413
|
-
const props = { ...node.props };
|
|
414
|
-
if (node.model !== void 0) props[NOVA_MODEL_PROP] = { ref: node.model.ref, path: node.model.path };
|
|
415
|
-
if (node.ref !== void 0) props[NOVA_REF_PROP] = node.ref;
|
|
416
|
-
const { children } = node;
|
|
417
|
-
if (children.length === 0) return vue.h(component, props);
|
|
418
|
-
if (!children.some(isHeadNode)) return vue.h(component, props, { default: () => childViews(children) });
|
|
419
|
-
const shown = children.filter((child) => !isHeadNode(child));
|
|
420
|
-
return vue.h(vue.Fragment, [
|
|
421
|
-
shown.length === 0 ? vue.h(component, props) : vue.h(component, props, { default: () => childViews(shown) }),
|
|
422
|
-
...children.filter(isHeadNode).map((_head, i) => vue.h(HeadMark, { key: `head:${i}` }))
|
|
423
|
-
]);
|
|
424
|
-
};
|
|
425
|
-
var RenderNodeView = vue.defineComponent(
|
|
426
|
-
(props) => {
|
|
427
|
-
const ctx = vue.inject(NovaRenderKey, void 0);
|
|
428
|
-
if (ctx === void 0) throw new Error("RenderNodeView must be used inside <NovaRenderProvider>");
|
|
429
|
-
return () => renderNode(ctx, props.node);
|
|
430
|
-
},
|
|
431
|
-
{ name: "NovaRenderNode", props: ["node"] }
|
|
432
|
-
);
|
|
433
|
-
|
|
434
|
-
// src/adapters/vue/render-tree.ts
|
|
435
|
-
var RenderTree = vue.defineComponent(
|
|
436
|
-
(props) => () => props.nodes.map((node, i) => vue.h(RenderNodeView, { node, key: renderNodeKey(node, i) })),
|
|
437
|
-
{ name: "NovaRenderTree", props: ["nodes"] }
|
|
438
|
-
);
|
|
439
66
|
var NovaErrorBoundary = vue.defineComponent(
|
|
440
67
|
(props, { slots }) => {
|
|
441
68
|
const caught = vue.shallowRef(void 0);
|
|
@@ -454,561 +81,14 @@ var NovaErrorBoundary = vue.defineComponent(
|
|
|
454
81
|
},
|
|
455
82
|
{ name: "NovaErrorBoundary", props: ["fallback", "onError"] }
|
|
456
83
|
);
|
|
457
|
-
var StackPropsSchema = zod.z.object({
|
|
458
|
-
direction: zod.z.enum(["row", "column"]).optional().describe("Flex direction. Default: column."),
|
|
459
|
-
gap: zod.z.number().int().min(0).optional().describe("Gap between children in pixels. Default: 0."),
|
|
460
|
-
align: zod.z.enum(["start", "center", "end", "stretch"]).optional().describe("Cross-axis alignment. Default: stretch."),
|
|
461
|
-
justify: zod.z.enum(["start", "center", "end", "between", "around"]).optional().describe("Main-axis justification. Default: start."),
|
|
462
|
-
padding: zod.z.number().int().min(0).optional().describe("Inner padding in pixels. Default: 0."),
|
|
463
|
-
wrap: zod.z.boolean().optional().describe("Whether children wrap to a new line. Default: false.")
|
|
464
|
-
}).strict().describe("Flex container that arranges children in a row or column.");
|
|
465
|
-
var TextPropsSchema = zod.z.object({
|
|
466
|
-
as: zod.z.enum(["span", "p", "h1", "h2", "h3", "h4"]).optional().describe("HTML element to render. Default: span."),
|
|
467
|
-
size: zod.z.enum(["sm", "md", "lg", "xl", "2xl"]).optional().describe("Font size token. Default: md."),
|
|
468
|
-
weight: zod.z.enum(["normal", "medium", "bold"]).optional().describe("Font weight token. Default: normal."),
|
|
469
|
-
color: zod.z.string().optional().describe("CSS color string (open set). Default: inherit.")
|
|
470
|
-
}).strict().describe("Text element with semantic typography props.");
|
|
471
|
-
var InputPropsSchema = zod.z.object({
|
|
472
|
-
type: zod.z.enum(["text", "number", "email", "password"]).optional().describe("Input type. Default: text."),
|
|
473
|
-
placeholder: zod.z.string().optional().describe("Placeholder text shown when empty."),
|
|
474
|
-
disabled: zod.z.boolean().optional().describe("Whether the input is disabled. Default: false."),
|
|
475
|
-
value: zod.z.string().optional().describe("Current value. Typically supplied via model binding."),
|
|
476
|
-
debounce: zod.z.number().optional().describe("Milliseconds to coalesce keystrokes before dispatching ui:model. Default: 0 (every keystroke). Set it when the shell is remote to cut round-trips.")
|
|
477
|
-
}).strict().describe("Text input bound to data via the `model` field on the layout node.");
|
|
478
|
-
var ButtonPropsSchema = zod.z.object({
|
|
479
|
-
label: zod.z.string().optional().describe("Button label. If absent, children are used."),
|
|
480
|
-
variant: zod.z.enum(["primary", "secondary", "ghost"]).optional().describe("Visual variant. Default: primary."),
|
|
481
|
-
disabled: zod.z.boolean().optional().describe("Whether the button is disabled. Default: false.")
|
|
482
|
-
}).strict().describe("Clickable button. Click events fire as `ui:click` with the layout node's ref.");
|
|
483
|
-
var BoxPropsSchema = zod.z.object({
|
|
484
|
-
padding: zod.z.number().int().min(0).optional().describe("Inner padding in pixels. Default: 0."),
|
|
485
|
-
background: zod.z.string().optional().describe("CSS background color or value."),
|
|
486
|
-
border: zod.z.boolean().optional().describe("Whether to show a 1px border. Default: false."),
|
|
487
|
-
radius: zod.z.number().int().min(0).optional().describe("Border radius in pixels. Default: 0.")
|
|
488
|
-
}).strict().describe("Generic container with basic styling props. Use Stack for layout, Box for visual wrapping.");
|
|
489
|
-
var PanelPropsSchema = zod.z.object({
|
|
490
|
-
title: zod.z.string().optional().describe("Optional header title."),
|
|
491
|
-
backRef: zod.z.string().optional().describe("When set, the header grows a \u2190 (before the title) that fires ui:click with this ref."),
|
|
492
|
-
closeRef: zod.z.string().optional().describe("When set, the header grows a \u2715 that fires ui:click with this ref.")
|
|
493
|
-
}).strict().describe("A framed, elevated surface with an optional title.");
|
|
494
|
-
var JsonTreePropsSchema = zod.z.object({
|
|
495
|
-
value: zod.z.unknown().optional().describe("The value to render."),
|
|
496
|
-
label: zod.z.string().optional().describe("A name for the root node.")
|
|
497
|
-
}).strict().describe("A collapsible view of any JSON value.");
|
|
498
|
-
var CanvasSlotPropsSchema = zod.z.object({
|
|
499
|
-
canvasId: zod.z.string().optional().describe('Id of the canvas to render. Usually bound from a loop, e.g. "$.c.id".')
|
|
500
|
-
}).strict().describe("Renders a canvas by id, recursing into its actionLayout. Resolves to nothing when canvasId is missing.");
|
|
501
|
-
var ActionSlotPropsSchema = zod.z.object({
|
|
502
|
-
instanceId: zod.z.string().optional().describe('Id of the action instance to render. Usually bound from canvas scope, e.g. "$.active.id" or "$.i.id".')
|
|
503
|
-
}).strict().describe("Renders an action instance by id. Resolves to nothing when instanceId is missing.");
|
|
504
|
-
|
|
505
|
-
// src/adapters/vue/components/layout.ts
|
|
506
|
-
var px = (value) => `${value ?? 0}px`;
|
|
507
|
-
var ALIGN_MAP = {
|
|
508
|
-
start: "flex-start",
|
|
509
|
-
center: "center",
|
|
510
|
-
end: "flex-end",
|
|
511
|
-
stretch: "stretch"
|
|
512
|
-
};
|
|
513
|
-
var JUSTIFY_MAP = {
|
|
514
|
-
start: "flex-start",
|
|
515
|
-
center: "center",
|
|
516
|
-
end: "flex-end",
|
|
517
|
-
between: "space-between",
|
|
518
|
-
around: "space-around"
|
|
519
|
-
};
|
|
520
|
-
var Stack = Object.assign(
|
|
521
|
-
vue.defineComponent(
|
|
522
|
-
(props, { slots }) => () => vue.h(
|
|
523
|
-
"div",
|
|
524
|
-
{
|
|
525
|
-
style: {
|
|
526
|
-
display: "flex",
|
|
527
|
-
flexDirection: props.direction ?? "column",
|
|
528
|
-
gap: px(props.gap),
|
|
529
|
-
alignItems: ALIGN_MAP[props.align ?? "stretch"],
|
|
530
|
-
justifyContent: JUSTIFY_MAP[props.justify ?? "start"],
|
|
531
|
-
padding: px(props.padding),
|
|
532
|
-
flexWrap: props.wrap === true ? "wrap" : "nowrap"
|
|
533
|
-
}
|
|
534
|
-
},
|
|
535
|
-
slots.default?.()
|
|
536
|
-
),
|
|
537
|
-
{ name: "NovaStack", props: ["direction", "gap", "align", "justify", "padding", "wrap"], inheritAttrs: false }
|
|
538
|
-
),
|
|
539
|
-
{ meta: { description: "Flex container that arranges children in a row or column.", propsSchema: StackPropsSchema } }
|
|
540
|
-
);
|
|
541
|
-
var Box = Object.assign(
|
|
542
|
-
vue.defineComponent(
|
|
543
|
-
(props, { slots }) => () => vue.h(
|
|
544
|
-
"div",
|
|
545
|
-
{
|
|
546
|
-
style: {
|
|
547
|
-
padding: px(props.padding),
|
|
548
|
-
background: props.background ?? "transparent",
|
|
549
|
-
border: props.border === true ? "1px solid #e5e7eb" : "none",
|
|
550
|
-
borderRadius: px(props.radius)
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
slots.default?.()
|
|
554
|
-
),
|
|
555
|
-
{ name: "NovaBox", props: ["padding", "background", "border", "radius"], inheritAttrs: false }
|
|
556
|
-
),
|
|
557
|
-
{
|
|
558
|
-
meta: {
|
|
559
|
-
description: "Generic container with basic styling props. Use Stack for layout, Box for visual wrapping.",
|
|
560
|
-
propsSchema: BoxPropsSchema
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
);
|
|
564
|
-
var SIZE_MAP = {
|
|
565
|
-
sm: "12px",
|
|
566
|
-
md: "14px",
|
|
567
|
-
lg: "16px",
|
|
568
|
-
xl: "20px",
|
|
569
|
-
"2xl": "24px"
|
|
570
|
-
};
|
|
571
|
-
var WEIGHT_MAP = {
|
|
572
|
-
normal: 400,
|
|
573
|
-
medium: 500,
|
|
574
|
-
bold: 700
|
|
575
|
-
};
|
|
576
|
-
var Text = Object.assign(
|
|
577
|
-
vue.defineComponent(
|
|
578
|
-
(props, { slots }) => () => vue.h(
|
|
579
|
-
props.as ?? "span",
|
|
580
|
-
{
|
|
581
|
-
style: {
|
|
582
|
-
fontSize: SIZE_MAP[props.size ?? "md"],
|
|
583
|
-
fontWeight: WEIGHT_MAP[props.weight ?? "normal"],
|
|
584
|
-
color: props.color ?? "inherit"
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
slots.default?.()
|
|
588
|
-
),
|
|
589
|
-
{ name: "NovaText", props: ["as", "size", "weight", "color"], inheritAttrs: false }
|
|
590
|
-
),
|
|
591
|
-
{ meta: { description: "Text element with semantic typography props.", propsSchema: TextPropsSchema } }
|
|
592
|
-
);
|
|
593
|
-
var renderContext = (caller) => {
|
|
594
|
-
const ctx = vue.inject(NovaRenderKey, void 0);
|
|
595
|
-
if (ctx === void 0) throw new Error(`${caller} must be used inside <NovaRenderProvider>`);
|
|
596
|
-
return ctx;
|
|
597
|
-
};
|
|
598
|
-
var useNovaDispatch = () => {
|
|
599
|
-
const ctx = renderContext("useNovaDispatch");
|
|
600
|
-
return (event) => ctx.dispatch(event);
|
|
601
|
-
};
|
|
602
|
-
var useNovaPublish = () => {
|
|
603
|
-
const ctx = renderContext("useNovaPublish");
|
|
604
|
-
return (channel, payload) => ctx.publish(channel, payload);
|
|
605
|
-
};
|
|
606
|
-
var useNovaRegistry = () => renderContext("useNovaRegistry").registry;
|
|
607
|
-
var useSlotWrapper = () => vue.inject(NovaRenderKey, void 0)?.slotWrapper;
|
|
608
|
-
var useShellSource = () => {
|
|
609
|
-
const source = vue.inject(NovaShellKey, void 0);
|
|
610
|
-
if (source === void 0) throw new Error("useShell must be used inside <NovaShellProvider>");
|
|
611
|
-
return source;
|
|
612
|
-
};
|
|
613
|
-
var useShell = () => useShellSource().shell;
|
|
614
|
-
|
|
615
|
-
// src/adapters/vue/components/controls.ts
|
|
616
|
-
var BASE_STYLE = {
|
|
617
|
-
borderRadius: "6px",
|
|
618
|
-
fontSize: "14px",
|
|
619
|
-
fontWeight: 500,
|
|
620
|
-
transition: "background-color 100ms"
|
|
621
|
-
};
|
|
622
|
-
var buttonStyle = (variant, isDisabled, isHovered, isActive) => {
|
|
623
|
-
const cursor = isDisabled ? "not-allowed" : "pointer";
|
|
624
|
-
if (variant === "primary") {
|
|
625
|
-
return {
|
|
626
|
-
...BASE_STYLE,
|
|
627
|
-
padding: "8px 16px",
|
|
628
|
-
border: "none",
|
|
629
|
-
color: "#ffffff",
|
|
630
|
-
cursor,
|
|
631
|
-
background: isDisabled ? "#93c5fd" : isActive ? "#1e40af" : isHovered ? "#1d4ed8" : "#2563eb"
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
if (variant === "secondary") {
|
|
635
|
-
return {
|
|
636
|
-
...BASE_STYLE,
|
|
637
|
-
padding: "8px 16px",
|
|
638
|
-
border: `1px solid ${isDisabled ? "#e5e7eb" : isHovered ? "#9ca3af" : "#d1d5db"}`,
|
|
639
|
-
color: isDisabled ? "#9ca3af" : "#1f2937",
|
|
640
|
-
cursor,
|
|
641
|
-
background: isDisabled ? "#ffffff" : isActive ? "#e5e7eb" : isHovered ? "#f3f4f6" : "#ffffff"
|
|
642
|
-
};
|
|
643
|
-
}
|
|
644
|
-
return {
|
|
645
|
-
...BASE_STYLE,
|
|
646
|
-
padding: "8px 12px",
|
|
647
|
-
border: "none",
|
|
648
|
-
color: isDisabled ? "#93c5fd" : "#2563eb",
|
|
649
|
-
cursor,
|
|
650
|
-
background: isDisabled ? "transparent" : isActive ? "#dbeafe" : isHovered ? "#eff6ff" : "transparent"
|
|
651
|
-
};
|
|
652
|
-
};
|
|
653
|
-
var Button = Object.assign(
|
|
654
|
-
vue.defineComponent(
|
|
655
|
-
(props, { slots }) => {
|
|
656
|
-
const dispatch = useNovaDispatch();
|
|
657
|
-
const isHovered = vue.shallowRef(false);
|
|
658
|
-
const isActive = vue.shallowRef(false);
|
|
659
|
-
const onClick = () => {
|
|
660
|
-
if (props.disabled === true) return;
|
|
661
|
-
if (props.novaRef === void 0) return;
|
|
662
|
-
dispatch({ type: "ui:click", ref: props.novaRef });
|
|
663
|
-
};
|
|
664
|
-
return () => {
|
|
665
|
-
const isDisabled = props.disabled ?? false;
|
|
666
|
-
return vue.h(
|
|
667
|
-
"button",
|
|
668
|
-
{
|
|
669
|
-
type: "button",
|
|
670
|
-
disabled: isDisabled,
|
|
671
|
-
style: buttonStyle(props.variant ?? "primary", isDisabled, isHovered.value, isActive.value),
|
|
672
|
-
onClick,
|
|
673
|
-
onMouseenter: () => isHovered.value = true,
|
|
674
|
-
onMouseleave: () => {
|
|
675
|
-
isHovered.value = false;
|
|
676
|
-
isActive.value = false;
|
|
677
|
-
},
|
|
678
|
-
onMousedown: () => isActive.value = true,
|
|
679
|
-
onMouseup: () => isActive.value = false
|
|
680
|
-
},
|
|
681
|
-
props.label ?? slots.default?.()
|
|
682
|
-
);
|
|
683
|
-
};
|
|
684
|
-
},
|
|
685
|
-
{ name: "NovaButton", props: ["label", "variant", "disabled", "novaRef"], inheritAttrs: false }
|
|
686
|
-
),
|
|
687
|
-
{ meta: { description: "Clickable button. Click events fire as `ui:click` with the layout node's ref.", propsSchema: ButtonPropsSchema } }
|
|
688
|
-
);
|
|
689
|
-
var inputStyle = (isDisabled, isFocused, isHovered) => ({
|
|
690
|
-
padding: "8px 12px",
|
|
691
|
-
border: `1px solid ${isDisabled ? "#d1d5db" : isFocused ? "#2563eb" : isHovered ? "#9ca3af" : "#d1d5db"}`,
|
|
692
|
-
borderRadius: "6px",
|
|
693
|
-
fontSize: "14px",
|
|
694
|
-
background: isDisabled ? "#f9fafb" : "#ffffff",
|
|
695
|
-
color: isDisabled ? "#9ca3af" : "inherit",
|
|
696
|
-
cursor: isDisabled ? "not-allowed" : "text",
|
|
697
|
-
minWidth: "240px",
|
|
698
|
-
outline: "none",
|
|
699
|
-
boxShadow: isFocused ? "0 0 0 3px rgba(37, 99, 235, 0.15)" : "none",
|
|
700
|
-
transition: "border-color 150ms, box-shadow 150ms"
|
|
701
|
-
});
|
|
702
|
-
var Input = Object.assign(
|
|
703
|
-
vue.defineComponent(
|
|
704
|
-
(props) => {
|
|
705
|
-
const dispatch = useNovaDispatch();
|
|
706
|
-
const isHovered = vue.shallowRef(false);
|
|
707
|
-
const draft = vue.shallowRef(null);
|
|
708
|
-
let timer;
|
|
709
|
-
const clearPending = () => {
|
|
710
|
-
if (timer !== void 0) {
|
|
711
|
-
clearTimeout(timer);
|
|
712
|
-
timer = void 0;
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
|
-
vue.onBeforeUnmount(clearPending);
|
|
716
|
-
const fire = (next) => {
|
|
717
|
-
if (props.novaModel === void 0) return;
|
|
718
|
-
dispatch({ type: "ui:model", ref: props.novaModel.ref, payload: next });
|
|
719
|
-
};
|
|
720
|
-
const onInput = (event) => {
|
|
721
|
-
const target = event.target;
|
|
722
|
-
if (!(target instanceof HTMLInputElement)) return;
|
|
723
|
-
const next = target.value;
|
|
724
|
-
draft.value = next;
|
|
725
|
-
const debounceMs = props.debounce ?? 0;
|
|
726
|
-
if (debounceMs > 0) {
|
|
727
|
-
clearPending();
|
|
728
|
-
timer = setTimeout(() => {
|
|
729
|
-
timer = void 0;
|
|
730
|
-
fire(next);
|
|
731
|
-
}, debounceMs);
|
|
732
|
-
} else {
|
|
733
|
-
fire(next);
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
const onFocus = () => {
|
|
737
|
-
draft.value = props.value ?? "";
|
|
738
|
-
};
|
|
739
|
-
const onBlur = () => {
|
|
740
|
-
const pending = draft.value;
|
|
741
|
-
if (timer !== void 0 && pending !== null) {
|
|
742
|
-
clearPending();
|
|
743
|
-
fire(pending);
|
|
744
|
-
}
|
|
745
|
-
draft.value = null;
|
|
746
|
-
};
|
|
747
|
-
return () => {
|
|
748
|
-
const isDisabled = props.disabled ?? false;
|
|
749
|
-
return vue.h("input", {
|
|
750
|
-
type: props.type ?? "text",
|
|
751
|
-
placeholder: props.placeholder,
|
|
752
|
-
disabled: isDisabled,
|
|
753
|
-
value: draft.value ?? props.value ?? "",
|
|
754
|
-
onInput,
|
|
755
|
-
onFocus,
|
|
756
|
-
onBlur,
|
|
757
|
-
onMouseenter: () => isHovered.value = true,
|
|
758
|
-
onMouseleave: () => isHovered.value = false,
|
|
759
|
-
style: inputStyle(isDisabled, draft.value !== null, isHovered.value)
|
|
760
|
-
});
|
|
761
|
-
};
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
name: "NovaInput",
|
|
765
|
-
props: ["type", "placeholder", "disabled", "value", "debounce", "novaModel"],
|
|
766
|
-
inheritAttrs: false
|
|
767
|
-
}
|
|
768
|
-
),
|
|
769
|
-
{ meta: { description: "Text input bound to data via the `model` field on the layout node.", propsSchema: InputPropsSchema } }
|
|
770
|
-
);
|
|
771
|
-
var HEADER_BUTTON_STYLE = {
|
|
772
|
-
border: "none",
|
|
773
|
-
background: "none",
|
|
774
|
-
color: "#6b7280",
|
|
775
|
-
cursor: "pointer",
|
|
776
|
-
fontSize: "13px",
|
|
777
|
-
lineHeight: 1,
|
|
778
|
-
padding: "2px"
|
|
779
|
-
};
|
|
780
|
-
var Panel = Object.assign(
|
|
781
|
-
vue.defineComponent(
|
|
782
|
-
(props, { slots }) => {
|
|
783
|
-
const dispatch = useNovaDispatch();
|
|
784
|
-
const headerButton = (ref, glyph) => vue.h("button", { type: "button", style: HEADER_BUTTON_STYLE, onClick: () => dispatch({ type: "ui:click", ref }) }, glyph);
|
|
785
|
-
return () => vue.h(
|
|
786
|
-
"div",
|
|
787
|
-
{
|
|
788
|
-
style: {
|
|
789
|
-
border: "1px solid #d8dae0",
|
|
790
|
-
borderRadius: "10px",
|
|
791
|
-
background: "#fff",
|
|
792
|
-
boxShadow: "0 1px 3px rgba(0,0,0,.06)",
|
|
793
|
-
padding: "12px"
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
[
|
|
797
|
-
props.title === void 0 ? null : vue.h("div", { style: { display: "flex", alignItems: "center", gap: "6px", fontWeight: 600, fontSize: "13px", marginBottom: "8px" } }, [
|
|
798
|
-
props.backRef === void 0 ? null : headerButton(props.backRef, "\u2190"),
|
|
799
|
-
vue.h("span", { style: { flex: 1 } }, props.title),
|
|
800
|
-
props.closeRef === void 0 ? null : headerButton(props.closeRef, "\u2715")
|
|
801
|
-
]),
|
|
802
|
-
slots.default?.()
|
|
803
|
-
]
|
|
804
|
-
);
|
|
805
|
-
},
|
|
806
|
-
{ name: "NovaPanel", props: ["title", "backRef", "closeRef"], inheritAttrs: false }
|
|
807
|
-
),
|
|
808
|
-
{
|
|
809
|
-
meta: {
|
|
810
|
-
description: "A framed, elevated surface with an optional title; `closeRef` adds a header \u2715.",
|
|
811
|
-
propsSchema: PanelPropsSchema
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
);
|
|
815
|
-
var entriesOf = (value) => Array.isArray(value) ? value.map((item, index) => [String(index), item]) : Object.entries(value);
|
|
816
|
-
var jsonNode = (value, name, key) => {
|
|
817
|
-
if (value !== null && typeof value === "object") {
|
|
818
|
-
const entries = entriesOf(value);
|
|
819
|
-
const shape = Array.isArray(value) ? `[${entries.length}]` : `{${entries.length}}`;
|
|
820
|
-
return vue.h("details", { key }, [
|
|
821
|
-
vue.h("summary", { style: { cursor: "pointer", color: "#6b7280" } }, name === void 0 ? shape : `${name} ${shape}`),
|
|
822
|
-
vue.h(
|
|
823
|
-
"div",
|
|
824
|
-
{ style: { paddingLeft: "13px", borderLeft: "1px solid #d8dae0", marginLeft: "3px" } },
|
|
825
|
-
entries.map(([childKey, child]) => jsonNode(child, childKey, childKey))
|
|
826
|
-
)
|
|
827
|
-
]);
|
|
828
|
-
}
|
|
829
|
-
const text = name === void 0 ? JSON.stringify(value) : `${name}: ${JSON.stringify(value)}`;
|
|
830
|
-
return vue.h("div", { key, style: { whiteSpace: "pre-wrap", wordBreak: "break-word" } }, text);
|
|
831
|
-
};
|
|
832
|
-
var JsonTree = Object.assign(
|
|
833
|
-
vue.defineComponent(
|
|
834
|
-
(props) => () => vue.h(
|
|
835
|
-
"div",
|
|
836
|
-
{ style: { fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontSize: "12px", lineHeight: 1.5 } },
|
|
837
|
-
[jsonNode(props.value, props.label)]
|
|
838
|
-
),
|
|
839
|
-
{ name: "NovaJsonTree", props: ["value", "label"], inheritAttrs: false }
|
|
840
|
-
),
|
|
841
|
-
{ meta: { description: "A collapsible view of any JSON value.", propsSchema: JsonTreePropsSchema } }
|
|
842
|
-
);
|
|
843
|
-
var bindShell = (binding) => {
|
|
844
|
-
const source = useShellSource();
|
|
845
|
-
const value = vue.shallowRef(binding.read(source.shell, binding.key()));
|
|
846
|
-
vue.watch(
|
|
847
|
-
() => [source.shell, binding.key()],
|
|
848
|
-
([shell, key], _previous, onCleanup) => {
|
|
849
|
-
const refresh = () => {
|
|
850
|
-
value.value = binding.read(shell, key);
|
|
851
|
-
};
|
|
852
|
-
refresh();
|
|
853
|
-
onCleanup(binding.subscribe(shell, key, refresh));
|
|
854
|
-
},
|
|
855
|
-
{ immediate: true }
|
|
856
|
-
);
|
|
857
|
-
return value;
|
|
858
|
-
};
|
|
859
|
-
var EMPTY = [];
|
|
860
|
-
var subscribeState = (shell, _key, notify) => shell.onStateChange(() => notify());
|
|
861
|
-
var useCanvasRenderTree = (canvasId) => bindShell({
|
|
862
|
-
key: () => vue.toValue(canvasId),
|
|
863
|
-
read: (shell, id) => id === void 0 || id === "" ? EMPTY : shell.getCanvasRenderTree(id),
|
|
864
|
-
subscribe: subscribeState
|
|
865
|
-
});
|
|
866
|
-
var useShellRenderTree = () => bindShell({ key: () => void 0, read: (shell) => shell.getShellRenderTree(), subscribe: subscribeState });
|
|
867
|
-
var useShellState = () => bindShell({ key: () => void 0, read: (shell) => shell.getState(), subscribe: subscribeState });
|
|
868
|
-
var useCanvas = (canvasId) => bindShell({
|
|
869
|
-
key: () => vue.toValue(canvasId),
|
|
870
|
-
read: (shell, id) => shell.getCanvasState(id),
|
|
871
|
-
subscribe: (shell, id, notify) => shell.onCanvasChange(id, () => notify())
|
|
872
|
-
});
|
|
873
|
-
var subscribeRuntime = (listen) => (shell, instanceId, notify) => {
|
|
874
|
-
let current = shell.getRuntime(instanceId);
|
|
875
|
-
let offRuntime = current === void 0 ? void 0 : listen(current, notify);
|
|
876
|
-
const offState = shell.onStateChange(() => {
|
|
877
|
-
const next = shell.getRuntime(instanceId);
|
|
878
|
-
if (next !== current) {
|
|
879
|
-
offRuntime?.();
|
|
880
|
-
current = next;
|
|
881
|
-
offRuntime = current === void 0 ? void 0 : listen(current, notify);
|
|
882
|
-
}
|
|
883
|
-
notify();
|
|
884
|
-
});
|
|
885
|
-
return () => {
|
|
886
|
-
offRuntime?.();
|
|
887
|
-
offState();
|
|
888
|
-
};
|
|
889
|
-
};
|
|
890
|
-
var onData = subscribeRuntime((runtime, notify) => runtime.onDataChange(() => notify()));
|
|
891
|
-
var onStatus = subscribeRuntime((runtime, notify) => runtime.onStatusChange(() => notify()));
|
|
892
|
-
var useActionData = (instanceId) => bindShell({ key: () => vue.toValue(instanceId), read: (shell, id) => shell.getRuntime(id)?.getData(), subscribe: onData });
|
|
893
|
-
var useActionStatus = (instanceId) => bindShell({ key: () => vue.toValue(instanceId), read: (shell, id) => shell.getRuntime(id)?.instance.status, subscribe: onStatus });
|
|
894
|
-
var useRenderTree = (instanceId) => {
|
|
895
|
-
let cache;
|
|
896
|
-
return bindShell({
|
|
897
|
-
key: () => vue.toValue(instanceId),
|
|
898
|
-
read: (shell, id) => {
|
|
899
|
-
const runtime = shell.getRuntime(id);
|
|
900
|
-
if (runtime === void 0) {
|
|
901
|
-
cache = void 0;
|
|
902
|
-
return EMPTY;
|
|
903
|
-
}
|
|
904
|
-
const data = runtime.getData();
|
|
905
|
-
const phrases = shell.getPhrases();
|
|
906
|
-
if (cache !== void 0 && cache.data === data && cache.phrases === phrases) return cache.tree;
|
|
907
|
-
const tree = runtime.render();
|
|
908
|
-
cache = { data, phrases, tree };
|
|
909
|
-
return tree;
|
|
910
|
-
},
|
|
911
|
-
subscribe: onData
|
|
912
|
-
});
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
// src/adapters/vue/components/slots.ts
|
|
916
|
-
var CanvasSlot = Object.assign(
|
|
917
|
-
vue.defineComponent(
|
|
918
|
-
(props) => {
|
|
919
|
-
const tree = useCanvasRenderTree(() => props.canvasId);
|
|
920
|
-
return () => props.canvasId === void 0 || props.canvasId === "" ? null : vue.h(RenderTree, { nodes: tree.value });
|
|
921
|
-
},
|
|
922
|
-
{ name: "NovaCanvasSlot", props: ["canvasId"], inheritAttrs: false }
|
|
923
|
-
),
|
|
924
|
-
{
|
|
925
|
-
meta: {
|
|
926
|
-
description: "Renders a canvas by id, recursing into its actionLayout.",
|
|
927
|
-
propsSchema: CanvasSlotPropsSchema
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
);
|
|
931
|
-
var InstanceScope = vue.defineComponent(
|
|
932
|
-
(props, { slots }) => {
|
|
933
|
-
const parent = vue.inject(NovaRenderKey, void 0);
|
|
934
|
-
if (parent !== void 0) {
|
|
935
|
-
const scoped = {
|
|
936
|
-
get registry() {
|
|
937
|
-
return parent.registry;
|
|
938
|
-
},
|
|
939
|
-
get dispatch() {
|
|
940
|
-
return scopeDispatch(parent.dispatch, props.instanceId);
|
|
941
|
-
},
|
|
942
|
-
get publish() {
|
|
943
|
-
return parent.publish;
|
|
944
|
-
},
|
|
945
|
-
get slotWrapper() {
|
|
946
|
-
return parent.slotWrapper;
|
|
947
|
-
},
|
|
948
|
-
get fallback() {
|
|
949
|
-
return parent.fallback;
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
|
-
vue.provide(NovaRenderKey, scoped);
|
|
953
|
-
}
|
|
954
|
-
return () => slots.default?.();
|
|
955
|
-
},
|
|
956
|
-
{ name: "NovaInstanceScope", props: ["instanceId"] }
|
|
957
|
-
);
|
|
958
|
-
var ActionSlot = Object.assign(
|
|
959
|
-
vue.defineComponent(
|
|
960
|
-
(props) => {
|
|
961
|
-
const source = useShellSource();
|
|
962
|
-
const ctx = vue.inject(NovaRenderKey, void 0);
|
|
963
|
-
const tree = useRenderTree(() => props.instanceId ?? "");
|
|
964
|
-
return () => {
|
|
965
|
-
const instanceId = props.instanceId;
|
|
966
|
-
const hasInstance = instanceId !== void 0 && instanceId !== "";
|
|
967
|
-
const content = hasInstance && tree.value.length > 0 ? vue.h(InstanceScope, { instanceId }, { default: () => vue.h(RenderTree, { nodes: tree.value }) }) : null;
|
|
968
|
-
const Wrapper = ctx?.slotWrapper;
|
|
969
|
-
if (Wrapper === void 0) return content;
|
|
970
|
-
const runtime = hasInstance ? source.shell.getRuntime(instanceId) : void 0;
|
|
971
|
-
return vue.h(
|
|
972
|
-
Wrapper,
|
|
973
|
-
{ canvasId: runtime?.instance.canvasId, instanceId: hasInstance ? instanceId : void 0, action: runtime?.definition },
|
|
974
|
-
{ default: () => content }
|
|
975
|
-
);
|
|
976
|
-
};
|
|
977
|
-
},
|
|
978
|
-
{ name: "NovaActionSlot", props: ["instanceId"], inheritAttrs: false }
|
|
979
|
-
),
|
|
980
|
-
{
|
|
981
|
-
meta: {
|
|
982
|
-
description: "Renders an action instance by id. Used inside a canvas actionLayout.",
|
|
983
|
-
propsSchema: ActionSlotPropsSchema
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
);
|
|
987
|
-
|
|
988
|
-
// src/adapters/vue/components/index.ts
|
|
989
|
-
var registerNovaVueComponents = (registry) => {
|
|
990
|
-
registry.registerAll({
|
|
991
|
-
Stack,
|
|
992
|
-
Text,
|
|
993
|
-
Input,
|
|
994
|
-
Button,
|
|
995
|
-
Box,
|
|
996
|
-
Panel,
|
|
997
|
-
JsonTree,
|
|
998
|
-
CanvasSlot,
|
|
999
|
-
ActionSlot
|
|
1000
|
-
});
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
|
-
// src/adapters/vue/nova.ts
|
|
1004
84
|
var ensureVueBuiltins = (registry) => {
|
|
1005
|
-
if (registry.has(CANVAS_SLOT_NAME)) return;
|
|
1006
|
-
registerNovaVueComponents(registry);
|
|
85
|
+
if (registry.has(chunkPNQY6OFB_cjs.CANVAS_SLOT_NAME)) return;
|
|
86
|
+
chunkTRJYDVWK_cjs.registerNovaVueComponents(registry);
|
|
1007
87
|
};
|
|
1008
88
|
var ShellRenderTreeView = vue.defineComponent(
|
|
1009
89
|
() => {
|
|
1010
|
-
const nodes = useShellRenderTree();
|
|
1011
|
-
return () => vue.h(RenderTree, { nodes: nodes.value });
|
|
90
|
+
const nodes = chunkTRJYDVWK_cjs.useShellRenderTree();
|
|
91
|
+
return () => vue.h(chunkTRJYDVWK_cjs.RenderTree, { nodes: nodes.value });
|
|
1012
92
|
},
|
|
1013
93
|
{ name: "NovaShellRenderTree" }
|
|
1014
94
|
);
|
|
@@ -1025,9 +105,9 @@ var NovaShell = vue.defineComponent(
|
|
|
1025
105
|
);
|
|
1026
106
|
var CanvasRenderTreeView = vue.defineComponent(
|
|
1027
107
|
(props) => {
|
|
1028
|
-
useShell();
|
|
1029
|
-
const nodes = useCanvasRenderTree(() => props.canvasId);
|
|
1030
|
-
return () => vue.h(RenderTree, { nodes: nodes.value });
|
|
108
|
+
chunkTRJYDVWK_cjs.useShell();
|
|
109
|
+
const nodes = chunkTRJYDVWK_cjs.useCanvasRenderTree(() => props.canvasId);
|
|
110
|
+
return () => vue.h(chunkTRJYDVWK_cjs.RenderTree, { nodes: nodes.value });
|
|
1031
111
|
},
|
|
1032
112
|
{ name: "NovaCanvasRenderTree", props: ["canvasId"] }
|
|
1033
113
|
);
|
|
@@ -1044,28 +124,82 @@ var NovaCanvas = vue.defineComponent(
|
|
|
1044
124
|
{ name: "NovaCanvas", props: ["id", "shell", "registry", "builtins"] }
|
|
1045
125
|
);
|
|
1046
126
|
|
|
1047
|
-
exports
|
|
127
|
+
Object.defineProperty(exports, "ErrorMarker", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunkTRJYDVWK_cjs.ErrorMarker; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "NovaRenderKey", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkTRJYDVWK_cjs.NovaRenderKey; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "NovaShellKey", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunkTRJYDVWK_cjs.NovaShellKey; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "RenderNodeView", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkTRJYDVWK_cjs.RenderNodeView; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "RenderTree", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunkTRJYDVWK_cjs.RenderTree; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "isNovaComponent", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkTRJYDVWK_cjs.isNovaComponent; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "useActionData", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkTRJYDVWK_cjs.useActionData; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "useActionStatus", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkTRJYDVWK_cjs.useActionStatus; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "useCanvas", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunkTRJYDVWK_cjs.useCanvas; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "useCanvasRenderTree", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkTRJYDVWK_cjs.useCanvasRenderTree; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "useNovaDispatch", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkTRJYDVWK_cjs.useNovaDispatch; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "useNovaPublish", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkTRJYDVWK_cjs.useNovaPublish; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "useNovaRegistry", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunkTRJYDVWK_cjs.useNovaRegistry; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "useRenderTree", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunkTRJYDVWK_cjs.useRenderTree; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "useShell", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkTRJYDVWK_cjs.useShell; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "useShellRenderTree", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunkTRJYDVWK_cjs.useShellRenderTree; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "useShellState", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return chunkTRJYDVWK_cjs.useShellState; }
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "useSlotWrapper", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () { return chunkTRJYDVWK_cjs.useSlotWrapper; }
|
|
198
|
+
});
|
|
1048
199
|
exports.NovaCanvas = NovaCanvas;
|
|
1049
200
|
exports.NovaErrorBoundary = NovaErrorBoundary;
|
|
1050
|
-
exports.NovaRenderKey = NovaRenderKey;
|
|
1051
201
|
exports.NovaRenderProvider = NovaRenderProvider;
|
|
1052
202
|
exports.NovaShell = NovaShell;
|
|
1053
|
-
exports.NovaShellKey = NovaShellKey;
|
|
1054
203
|
exports.NovaShellProvider = NovaShellProvider;
|
|
1055
|
-
exports.RenderNodeView = RenderNodeView;
|
|
1056
|
-
exports.RenderTree = RenderTree;
|
|
1057
|
-
exports.isNovaComponent = isNovaComponent;
|
|
1058
|
-
exports.useActionData = useActionData;
|
|
1059
|
-
exports.useActionStatus = useActionStatus;
|
|
1060
|
-
exports.useCanvas = useCanvas;
|
|
1061
|
-
exports.useCanvasRenderTree = useCanvasRenderTree;
|
|
1062
|
-
exports.useNovaDispatch = useNovaDispatch;
|
|
1063
|
-
exports.useNovaPublish = useNovaPublish;
|
|
1064
|
-
exports.useNovaRegistry = useNovaRegistry;
|
|
1065
|
-
exports.useRenderTree = useRenderTree;
|
|
1066
|
-
exports.useShell = useShell;
|
|
1067
|
-
exports.useShellRenderTree = useShellRenderTree;
|
|
1068
|
-
exports.useShellState = useShellState;
|
|
1069
|
-
exports.useSlotWrapper = useSlotWrapper;
|
|
1070
204
|
//# sourceMappingURL=index.cjs.map
|
|
1071
205
|
//# sourceMappingURL=index.cjs.map
|