@niscorp/nova 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ACTION_DOCS.md +121 -30
- package/ADAPTER.md +167 -12
- package/CHANGELOG.md +19 -0
- package/DESIGN.md +45 -22
- package/I18N_DOCS.md +4 -4
- package/LAYOUT_DOCS.md +55 -14
- package/REACT_DOCS.md +52 -16
- package/README.md +54 -19
- package/SHELL_DOCS.md +136 -16
- package/TERMINAL_DOCS.md +13 -7
- package/dist/adapters/dom/components/index.d.cts +2 -2
- package/dist/adapters/dom/components/index.d.ts +2 -2
- package/dist/adapters/dom/index.cjs +351 -53
- package/dist/adapters/dom/index.cjs.map +1 -1
- package/dist/adapters/dom/index.d.cts +4 -2
- package/dist/adapters/dom/index.d.ts +4 -2
- package/dist/adapters/dom/index.js +2 -2
- package/dist/adapters/dom/server.cjs +356 -55
- package/dist/adapters/dom/server.cjs.map +1 -1
- package/dist/adapters/dom/server.d.cts +2 -2
- package/dist/adapters/dom/server.d.ts +2 -2
- package/dist/adapters/dom/server.js +7 -4
- package/dist/adapters/dom/server.js.map +1 -1
- package/dist/adapters/react/components/index.d.cts +4 -4
- package/dist/adapters/react/components/index.d.ts +4 -4
- package/dist/adapters/react/index.d.cts +4 -4
- package/dist/adapters/react/index.d.ts +4 -4
- package/dist/adapters/tty/components/index.d.cts +2 -2
- package/dist/adapters/tty/components/index.d.ts +2 -2
- package/dist/adapters/tty/index.d.cts +2 -2
- package/dist/adapters/tty/index.d.ts +2 -2
- package/dist/adapters/vue/components/index.d.cts +6 -6
- package/dist/adapters/vue/components/index.d.ts +6 -6
- package/dist/adapters/vue/index.d.cts +4 -4
- package/dist/adapters/vue/index.d.ts +4 -4
- package/dist/adapters/vue/index.js +1 -1
- package/dist/agent/index.d.cts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/{chunk-7B3RDENH.js → chunk-6N4WRC5V.js} +9 -4
- package/dist/chunk-6N4WRC5V.js.map +1 -0
- package/dist/chunk-FQAJ24KA.js +408 -0
- package/dist/chunk-FQAJ24KA.js.map +1 -0
- package/dist/devtools/index.d.cts +2 -2
- package/dist/devtools/index.d.ts +2 -2
- package/dist/i18n/index.d.cts +2 -2
- package/dist/i18n/index.d.ts +2 -2
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{palette-CP0wd3bE.d.ts → palette-Mx7XHYC6.d.ts} +1 -1
- package/dist/{palette-lm0bU9i5.d.cts → palette-wbJB_svk.d.cts} +1 -1
- package/dist/reflect/index.d.cts +2 -2
- package/dist/reflect/index.d.ts +2 -2
- package/dist/{types-DdltMfw7.d.ts → types-B-rjaUX0.d.ts} +1 -1
- package/dist/{types-Boh9ckdG.d.ts → types-BB9RXel5.d.ts} +1 -1
- package/dist/{types-De0KpxfI.d.cts → types-BLVRduoz.d.cts} +11 -1
- package/dist/{types-DhHL0twe.d.ts → types-B_nOtkyt.d.ts} +1 -1
- package/dist/{types-Brc7v_pS.d.ts → types-DE77Jl2W.d.ts} +11 -1
- package/dist/{types-Dv6JLmgo.d.cts → types-PDXOkvtK.d.cts} +1 -1
- package/dist/{types-Q80YtOQt.d.cts → types-mRKXqZPX.d.cts} +1 -1
- package/dist/{types-ByNSwtUV.d.cts → types-uk19d6KC.d.cts} +1 -1
- package/package.json +7 -10
- package/dist/chunk-7B3RDENH.js.map +0 -1
- package/dist/chunk-EG2RUXJN.js +0 -266
- package/dist/chunk-EG2RUXJN.js.map +0 -1
- package/dist/chunk-I5D2R5UA.js +0 -753
- package/dist/chunk-I5D2R5UA.js.map +0 -1
- package/dist/chunk-LA3BSEMX.js +0 -1905
- package/dist/chunk-LA3BSEMX.js.map +0 -1
- package/dist/chunk-OAMC6R6E.js +0 -121
- package/dist/chunk-OAMC6R6E.js.map +0 -1
- package/dist/primitive-props-CGoJvmcH.d.cts +0 -100
- package/dist/primitive-props-CGoJvmcH.d.ts +0 -100
package/dist/chunk-OAMC6R6E.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { shellView } from './chunk-7B3RDENH.js';
|
|
2
|
-
|
|
3
|
-
// src/adapters/dom/index.ts
|
|
4
|
-
var CANVAS_SLOT = "CanvasSlot";
|
|
5
|
-
var ACTION_SLOT = "ActionSlot";
|
|
6
|
-
var errorEl = (code, message) => {
|
|
7
|
-
const el = document.createElement("div");
|
|
8
|
-
el.setAttribute("data-nova-error", code);
|
|
9
|
-
el.textContent = `${code}: ${message}`;
|
|
10
|
-
return el;
|
|
11
|
-
};
|
|
12
|
-
var readValue = (target) => {
|
|
13
|
-
if (target instanceof HTMLInputElement && target.type === "checkbox") return target.checked;
|
|
14
|
-
if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement) return target.value;
|
|
15
|
-
return "";
|
|
16
|
-
};
|
|
17
|
-
var wireEvents = (el, node, dispatch) => {
|
|
18
|
-
if (node.model !== void 0) {
|
|
19
|
-
const ref = node.model.ref;
|
|
20
|
-
const debounce = typeof node.props["debounce"] === "number" ? node.props["debounce"] : 0;
|
|
21
|
-
let timer;
|
|
22
|
-
const fire = (value) => dispatch({ type: "ui:model", ref, payload: value });
|
|
23
|
-
el.addEventListener("input", (e) => {
|
|
24
|
-
const value = readValue(e.target);
|
|
25
|
-
if (debounce > 0) {
|
|
26
|
-
clearTimeout(timer);
|
|
27
|
-
timer = setTimeout(() => fire(value), debounce);
|
|
28
|
-
} else fire(value);
|
|
29
|
-
});
|
|
30
|
-
el.addEventListener("keydown", (e) => {
|
|
31
|
-
if (e instanceof KeyboardEvent) dispatch({ type: "ui:key", ref, key: e.key });
|
|
32
|
-
});
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if (node.ref !== void 0) {
|
|
36
|
-
const ref = node.ref;
|
|
37
|
-
el.addEventListener("click", (e) => {
|
|
38
|
-
e.stopPropagation();
|
|
39
|
-
const value = node.props["value"];
|
|
40
|
-
dispatch(value === void 0 ? { type: "ui:click", ref } : { type: "ui:click", ref, payload: value });
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var inInstance = (node, ctx) => {
|
|
45
|
-
if (node.type !== "component" || node.name !== ACTION_SLOT) return ctx;
|
|
46
|
-
const instanceId = node.props["instanceId"];
|
|
47
|
-
if (typeof instanceId !== "string" || instanceId === "") return ctx;
|
|
48
|
-
const outer = ctx.dispatch;
|
|
49
|
-
return { ...ctx, dispatch: (event) => outer(event.origin === void 0 ? { ...event, origin: instanceId } : event) };
|
|
50
|
-
};
|
|
51
|
-
var renderNode = (node, parent) => {
|
|
52
|
-
const ctx = inInstance(node, parent);
|
|
53
|
-
if (node.type === "text") return document.createTextNode(node.value);
|
|
54
|
-
if (node.type === "fragment") {
|
|
55
|
-
const frag = document.createDocumentFragment();
|
|
56
|
-
for (const child of node.children) frag.appendChild(renderNode(child, ctx));
|
|
57
|
-
return frag;
|
|
58
|
-
}
|
|
59
|
-
if (node.type === "error") return errorEl(node.code, node.message);
|
|
60
|
-
if (node.name === CANVAS_SLOT) {
|
|
61
|
-
const canvasId = typeof node.props["canvasId"] === "string" ? node.props["canvasId"] : "";
|
|
62
|
-
const host = document.createElement("div");
|
|
63
|
-
host.setAttribute("data-canvas", canvasId);
|
|
64
|
-
if (canvasId === "") return host;
|
|
65
|
-
const canvasCtx = { ...ctx, dispatch: (event) => ctx.api.dispatch(canvasId, event) };
|
|
66
|
-
for (const child of ctx.api.canvasTree(canvasId)) host.appendChild(renderNode(child, canvasCtx));
|
|
67
|
-
return host;
|
|
68
|
-
}
|
|
69
|
-
const entry = ctx.registry.get(node.name);
|
|
70
|
-
const build = entry !== void 0 ? entry.component : ctx.fallback;
|
|
71
|
-
if (build === void 0) return errorEl("COMPONENT_NOT_FOUND", node.name);
|
|
72
|
-
const children = node.children.map((child) => renderNode(child, ctx));
|
|
73
|
-
const el = build({ props: node.props, children, dispatch: ctx.dispatch });
|
|
74
|
-
el.setAttribute("data-component", node.name);
|
|
75
|
-
if (node.ref !== void 0) el.setAttribute("data-ref", node.ref);
|
|
76
|
-
wireEvents(el, node, ctx.dispatch);
|
|
77
|
-
return el;
|
|
78
|
-
};
|
|
79
|
-
var captureFocus = (root) => {
|
|
80
|
-
const active = root.ownerDocument.activeElement;
|
|
81
|
-
if (!(active instanceof HTMLInputElement || active instanceof HTMLTextAreaElement)) return void 0;
|
|
82
|
-
const ref = active.getAttribute("data-ref");
|
|
83
|
-
if (ref === null || !root.contains(active)) return void 0;
|
|
84
|
-
return { ref, value: active.value, start: active.selectionStart, end: active.selectionEnd };
|
|
85
|
-
};
|
|
86
|
-
var restoreFocus = (root, focus) => {
|
|
87
|
-
const el = root.querySelector(`[data-ref="${focus.ref}"]`);
|
|
88
|
-
if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement)) return;
|
|
89
|
-
el.value = focus.value;
|
|
90
|
-
el.focus();
|
|
91
|
-
try {
|
|
92
|
-
el.setSelectionRange(focus.start ?? el.value.length, focus.end ?? el.value.length);
|
|
93
|
-
} catch {
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var createDomView = (root, registry, api, options = {}) => {
|
|
97
|
-
const ctx = { registry, dispatch: () => void 0, api, ...options.fallback !== void 0 ? { fallback: options.fallback } : {} };
|
|
98
|
-
const render = () => {
|
|
99
|
-
const focus = captureFocus(root);
|
|
100
|
-
root.replaceChildren();
|
|
101
|
-
for (const node of api.frame()) root.appendChild(renderNode(node, ctx));
|
|
102
|
-
if (focus !== void 0) restoreFocus(root, focus);
|
|
103
|
-
};
|
|
104
|
-
return { render, destroy: () => root.replaceChildren() };
|
|
105
|
-
};
|
|
106
|
-
var mountShell = (root, registry, shell, options = {}) => {
|
|
107
|
-
const view = shellView(shell);
|
|
108
|
-
const dom = createDomView(root, registry, view.api, options);
|
|
109
|
-
dom.render();
|
|
110
|
-
const stop = view.subscribe(dom.render);
|
|
111
|
-
return {
|
|
112
|
-
destroy: () => {
|
|
113
|
-
stop();
|
|
114
|
-
dom.destroy();
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export { createDomView, mountShell };
|
|
120
|
-
//# sourceMappingURL=chunk-OAMC6R6E.js.map
|
|
121
|
-
//# sourceMappingURL=chunk-OAMC6R6E.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/adapters/dom/index.ts"],"names":[],"mappings":";;;AAgDA,IAAM,WAAA,GAAc,YAAA;AACpB,IAAM,WAAA,GAAc,YAAA;AAepB,IAAM,OAAA,GAAU,CAAC,IAAA,EAAc,OAAA,KAAiC;AAC9D,EAAA,MAAM,EAAA,GAAK,QAAA,CAAS,aAAA,CAAc,KAAK,CAAA;AACvC,EAAA,EAAA,CAAG,YAAA,CAAa,mBAAmB,IAAI,CAAA;AACvC,EAAA,EAAA,CAAG,WAAA,GAAc,CAAA,EAAG,IAAI,CAAA,EAAA,EAAK,OAAO,CAAA,CAAA;AACpC,EAAA,OAAO,EAAA;AACT,CAAA;AAIA,IAAM,SAAA,GAAY,CAAC,MAAA,KAAwC;AACzD,EAAA,IAAI,kBAAkB,gBAAA,IAAoB,MAAA,CAAO,IAAA,KAAS,UAAA,SAAmB,MAAA,CAAO,OAAA;AACpF,EAAA,IAAI,kBAAkB,gBAAA,IAAoB,MAAA,YAAkB,uBAAuB,MAAA,YAAkB,iBAAA,SAA0B,MAAA,CAAO,KAAA;AACtI,EAAA,OAAO,EAAA;AACT,CAAA;AAMA,IAAM,UAAA,GAAa,CAAC,EAAA,EAAiB,IAAA,EAAkD,QAAA,KAA+C;AACpI,EAAA,IAAI,IAAA,CAAK,UAAU,MAAA,EAAW;AAC5B,IAAA,MAAM,GAAA,GAAM,KAAK,KAAA,CAAM,GAAA;AACvB,IAAA,MAAM,QAAA,GAAW,OAAO,IAAA,CAAK,KAAA,CAAM,UAAU,MAAM,QAAA,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BAAgB,CAC3B,IAAA,EACA,UACA,GAAA,EACA,OAAA,GAAuC,EAAC,KAC5B;AAEZ,EAAA,MAAM,MAAW,EAAE,QAAA,EAAU,QAAA,EAAU,MAAM,QAAW,GAAA,EAAK,GAAI,OAAA,CAAQ,QAAA,KAAa,SAAY,EAAE,QAAA,EAAU,QAAQ,QAAA,EAAS,GAAI,EAAC,EAAG;AACvI,EAAA,MAAM,SAAS,MAAY;AACzB,IAAA,MAAM,KAAA,GAAQ,aAAa,IAAI,CAAA;AAC/B,IAAA,IAAA,CAAK,eAAA,EAAgB;AACrB,IAAA,KAAA,MAAW,IAAA,IAAQ,IAAI,KAAA,EAAM,OAAQ,WAAA,CAAY,UAAA,CAAW,IAAA,EAAM,GAAG,CAAC,CAAA;AACtE,IAAA,IAAI,KAAA,KAAU,MAAA,EAAW,YAAA,CAAa,IAAA,EAAM,KAAK,CAAA;AAAA,EACnD,CAAA;AACA,EAAA,OAAO,EAAE,MAAA,EAAQ,OAAA,EAAS,MAAM,IAAA,CAAK,iBAAgB,EAAE;AACzD;AAaO,IAAM,aAAa,CACxB,IAAA,EACA,UACA,KAAA,EACA,OAAA,GAAuC,EAAC,KACZ;AAC5B,EAAA,MAAM,IAAA,GAAO,UAAU,KAAK,CAAA;AAC5B,EAAA,MAAM,MAAM,aAAA,CAAc,IAAA,EAAM,QAAA,EAAU,IAAA,CAAK,KAAK,OAAO,CAAA;AAC3D,EAAA,GAAA,CAAI,MAAA,EAAO;AACX,EAAA,MAAM,IAAA,GAAO,IAAA,CAAK,SAAA,CAAU,GAAA,CAAI,MAAM,CAAA;AACtC,EAAA,OAAO;AAAA,IACL,SAAS,MAAM;AACb,MAAA,IAAA,EAAK;AACL,MAAA,GAAA,CAAI,OAAA,EAAQ;AAAA,IACd;AAAA,GACF;AACF","file":"chunk-OAMC6R6E.js","sourcesContent":["import type { ComponentRegistry, RenderNode } from '@layout/types';\nimport type { NovaEvent } from '@shared/event-bus/schemas';\nimport { shellView } from '@shell';\nimport type { RenderApi, Shell } from '@shell';\n\n// ═══════════════════════════════════════════════════════════\n// @niscorp/nova/adapters/dom — a vanilla-DOM adapter, the platform sibling of\n// nova/react. It turns a served RenderNode tree into DOM: registry lookup →\n// element, recurse children, and wire events BY CONVENTION — a `ref`'d\n// element dispatches `ui:click`, a `model`'d element dispatches `ui:model`\n// (+ `ui:key`), the payload of a click is the node's `value` prop. Origin is\n// never stamped here — moss stamps the active instance server-side.\n//\n// No framework: the registry maps a component name to a function that builds\n// an element from props + already-rendered children. `CanvasSlot` is resolved\n// here (the frame's markers → per-canvas trees), the one piece of terminal\n// structure the renderer owns; the terminal hands in `canvasTree`/`dispatch`.\n// See packages/nova/ADAPTER.md for the shared adapter contract.\n// ═══════════════════════════════════════════════════════════\n\nexport type DomComponentContext = {\n props: Record<string, unknown>;\n // the node's children, already rendered — the component appends them where\n // it wants (most append to their own element; leaves ignore them).\n children: Node[];\n // the dispatch in force here (canvas-scoped inside a CanvasSlot) — for\n // data-driven components with INTERNAL interactivity (a table's row clicks,\n // an inline checkbox); simple components ignore it and let the renderer wire\n // their `ref`/`model` by convention.\n dispatch: (event: NovaEvent) => void;\n};\n\n// A DOM component: props + rendered children in, one element out.\nexport type DomComponent = (ctx: DomComponentContext) => HTMLElement;\n\n// What the terminal hands the view: core's `RenderApi` (the frame, per-canvas\n// trees, a canvas-scoped dispatch, publish). Aliased, not redeclared, so the\n// dom adapter, the react adapter, and moss's terminal share ONE definition —\n// drift is impossible. CanvasSlot resolution + event routing ride these; the\n// renderer never touches the wire directly.\nexport type DomRenderApi = RenderApi;\n\nexport type DomView = {\n // (re)render from the current snapshot; call on every wire change\n render: () => void;\n destroy: () => void;\n};\n\nconst CANVAS_SLOT = 'CanvasSlot';\nconst ACTION_SLOT = 'ActionSlot';\n\n// The recursion context: the registry, the dispatch in force (frame chrome\n// dispatches nothing; a CanvasSlot switches it to that canvas's), publish,\n// and the canvas resolver.\ntype Ctx = {\n registry: ComponentRegistry<DomComponent>;\n dispatch: (event: NovaEvent) => void;\n api: DomRenderApi;\n // used when a component name is unregistered — a permissive renderer (the\n // html terminal's default kit) supplies one so unknown primitives render\n // their children instead of an error; strict consumers omit it.\n fallback?: DomComponent;\n};\n\nconst errorEl = (code: string, message: string): HTMLElement => {\n const el = document.createElement('div');\n el.setAttribute('data-nova-error', code);\n el.textContent = `${code}: ${message}`;\n return el;\n};\n\n// Read the model value off an event target — a checkbox reports `checked`,\n// everything else `value`.\nconst readValue = (target: EventTarget | null): unknown => {\n if (target instanceof HTMLInputElement && target.type === 'checkbox') return target.checked;\n if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement) return target.value;\n return '';\n};\n\n// Attach the conventional listeners: a model'd element is an input (dispatch\n// ui:model on change, ui:key on keydown); a bare ref'd element is clickable\n// (dispatch ui:click, payload = its `value` prop). Uniform across every\n// component — the event vocabulary is the convention, not per-component code.\nconst wireEvents = (el: HTMLElement, node: Extract<RenderNode, { type: 'component' }>, dispatch: (event: NovaEvent) => void): void => {\n if (node.model !== undefined) {\n const ref = node.model.ref;\n const debounce = typeof node.props['debounce'] === 'number' ? (node.props['debounce'] as number) : 0;\n let timer: ReturnType<typeof setTimeout> | undefined;\n const fire = (value: unknown): void => dispatch({ type: 'ui:model', ref, payload: value });\n el.addEventListener('input', (e) => {\n const value = readValue(e.target);\n if (debounce > 0) {\n clearTimeout(timer);\n timer = setTimeout(() => fire(value), debounce);\n } else fire(value);\n });\n el.addEventListener('keydown', (e) => {\n if (e instanceof KeyboardEvent) dispatch({ type: 'ui:key', ref, key: e.key });\n });\n return;\n }\n if (node.ref !== undefined) {\n const ref = node.ref;\n el.addEventListener('click', (e) => {\n e.stopPropagation();\n const value = node.props['value'];\n dispatch(value === undefined ? { type: 'ui:click', ref } : { type: 'ui:click', ref, payload: value });\n });\n }\n};\n\n// The per-instance boundary a served tree carries. A list canvas renders\n// several live instances at once, so a click inside THIS boundary must reach\n// THIS instance: its events carry it as their origin (the server's\n// active-instance fallback only holds for a card-deck canvas). An event that\n// already has an origin keeps it — moss's react terminal does the same.\nconst inInstance = (node: RenderNode, ctx: Ctx): Ctx => {\n if (node.type !== 'component' || node.name !== ACTION_SLOT) return ctx;\n const instanceId = node.props['instanceId'];\n if (typeof instanceId !== 'string' || instanceId === '') return ctx;\n const outer = ctx.dispatch;\n return { ...ctx, dispatch: (event) => outer(event.origin === undefined ? { ...event, origin: instanceId } : event) };\n};\n\nconst renderNode = (node: RenderNode, parent: Ctx): Node => {\n const ctx = inInstance(node, parent);\n if (node.type === 'text') return document.createTextNode(node.value);\n if (node.type === 'fragment') {\n const frag = document.createDocumentFragment();\n for (const child of node.children) frag.appendChild(renderNode(child, ctx));\n return frag;\n }\n if (node.type === 'error') return errorEl(node.code, node.message);\n\n // component\n if (node.name === CANVAS_SLOT) {\n const canvasId = typeof node.props['canvasId'] === 'string' ? (node.props['canvasId'] as string) : '';\n const host = document.createElement('div');\n host.setAttribute('data-canvas', canvasId);\n if (canvasId === '') return host;\n // Switch dispatch to this canvas's; the server stamps origin, so the\n // terminal just tags the canvas.\n const canvasCtx: Ctx = { ...ctx, dispatch: (event) => ctx.api.dispatch(canvasId, event) };\n for (const child of ctx.api.canvasTree(canvasId)) host.appendChild(renderNode(child, canvasCtx));\n return host;\n }\n\n const entry = ctx.registry.get(node.name);\n const build = entry !== undefined ? entry.component : ctx.fallback;\n if (build === undefined) return errorEl('COMPONENT_NOT_FOUND', node.name);\n\n const children = node.children.map((child) => renderNode(child, ctx));\n const el = build({ props: node.props, children, dispatch: ctx.dispatch });\n el.setAttribute('data-component', node.name);\n if (node.ref !== undefined) el.setAttribute('data-ref', node.ref);\n wireEvents(el, node, ctx.dispatch);\n return el;\n};\n\n// The one interactive concession: never overwrite the value of the focused\n// input when a new tree arrives. We rebuild fully (the\n// server is authoritative), so capture the focused ref + value + caret before,\n// and restore them after — the in-progress value wins over the server's.\ntype Focus = { ref: string; value: string; start: number | null; end: number | null };\n\nconst captureFocus = (root: HTMLElement): Focus | undefined => {\n const active = root.ownerDocument.activeElement;\n if (!(active instanceof HTMLInputElement || active instanceof HTMLTextAreaElement)) return undefined;\n const ref = active.getAttribute('data-ref');\n if (ref === null || !root.contains(active)) return undefined;\n return { ref, value: active.value, start: active.selectionStart, end: active.selectionEnd };\n};\n\nconst restoreFocus = (root: HTMLElement, focus: Focus): void => {\n const el = root.querySelector(`[data-ref=\"${focus.ref}\"]`);\n if (!(el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement)) return;\n el.value = focus.value; // the user's in-progress value, not the server's\n el.focus();\n try {\n el.setSelectionRange(focus.start ?? el.value.length, focus.end ?? el.value.length);\n } catch {\n /* selectionRange throws on some input types — harmless */\n }\n};\n\nexport const createDomView = (\n root: HTMLElement,\n registry: ComponentRegistry<DomComponent>,\n api: DomRenderApi,\n options: { fallback?: DomComponent } = {},\n): DomView => {\n // The frame dispatches nothing (chrome); only a CanvasSlot's subtree does.\n const ctx: Ctx = { registry, dispatch: () => undefined, api, ...(options.fallback !== undefined ? { fallback: options.fallback } : {}) };\n const render = (): void => {\n const focus = captureFocus(root);\n root.replaceChildren();\n for (const node of api.frame()) root.appendChild(renderNode(node, ctx));\n if (focus !== undefined) restoreFocus(root, focus);\n };\n return { render, destroy: () => root.replaceChildren() };\n};\n\n// A SHELL THAT LIVES IN THIS PAGE, drawn into `root` and kept current: the\n// shell's own view (`shellView`), this adapter over it, and a re-render on every\n// change. The whole of a browser entry for an app whose shell runs in the\n// browser:\n//\n// mountShell(root, registry, await boot());\n//\n// A `root` that already holds the same screen as markup — drawn ahead of time\n// by `renderToString` (./server) from the same boot — is picked up by the first\n// render: the adapter rebuilds its root, so those elements are replaced with the\n// same elements in one step, and nothing can disagree with them.\nexport const mountShell = (\n root: HTMLElement,\n registry: ComponentRegistry<DomComponent>,\n shell: Shell,\n options: { fallback?: DomComponent } = {},\n): { destroy: () => void } => {\n const view = shellView(shell);\n const dom = createDomView(root, registry, view.api, options);\n dom.render();\n const stop = view.subscribe(dom.render);\n return {\n destroy: () => {\n stop();\n dom.destroy();\n },\n };\n};\n"]}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const StackPropsSchema: z.ZodObject<{
|
|
4
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
5
|
-
row: "row";
|
|
6
|
-
column: "column";
|
|
7
|
-
}>>;
|
|
8
|
-
gap: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
start: "start";
|
|
11
|
-
center: "center";
|
|
12
|
-
end: "end";
|
|
13
|
-
stretch: "stretch";
|
|
14
|
-
}>>;
|
|
15
|
-
justify: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
start: "start";
|
|
17
|
-
center: "center";
|
|
18
|
-
end: "end";
|
|
19
|
-
between: "between";
|
|
20
|
-
around: "around";
|
|
21
|
-
}>>;
|
|
22
|
-
padding: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
}, z.core.$strict>;
|
|
25
|
-
type StackProps = z.infer<typeof StackPropsSchema>;
|
|
26
|
-
declare const TextPropsSchema: z.ZodObject<{
|
|
27
|
-
as: z.ZodOptional<z.ZodEnum<{
|
|
28
|
-
span: "span";
|
|
29
|
-
p: "p";
|
|
30
|
-
h1: "h1";
|
|
31
|
-
h2: "h2";
|
|
32
|
-
h3: "h3";
|
|
33
|
-
h4: "h4";
|
|
34
|
-
}>>;
|
|
35
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
sm: "sm";
|
|
37
|
-
md: "md";
|
|
38
|
-
lg: "lg";
|
|
39
|
-
xl: "xl";
|
|
40
|
-
"2xl": "2xl";
|
|
41
|
-
}>>;
|
|
42
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
43
|
-
normal: "normal";
|
|
44
|
-
medium: "medium";
|
|
45
|
-
bold: "bold";
|
|
46
|
-
}>>;
|
|
47
|
-
color: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strict>;
|
|
49
|
-
type TextProps = z.infer<typeof TextPropsSchema>;
|
|
50
|
-
declare const InputPropsSchema: z.ZodObject<{
|
|
51
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
number: "number";
|
|
53
|
-
text: "text";
|
|
54
|
-
email: "email";
|
|
55
|
-
password: "password";
|
|
56
|
-
}>>;
|
|
57
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
58
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
value: z.ZodOptional<z.ZodString>;
|
|
60
|
-
debounce: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
}, z.core.$strict>;
|
|
62
|
-
type InputProps = z.infer<typeof InputPropsSchema>;
|
|
63
|
-
declare const ButtonPropsSchema: z.ZodObject<{
|
|
64
|
-
label: z.ZodOptional<z.ZodString>;
|
|
65
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
66
|
-
primary: "primary";
|
|
67
|
-
secondary: "secondary";
|
|
68
|
-
ghost: "ghost";
|
|
69
|
-
}>>;
|
|
70
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
}, z.core.$strict>;
|
|
72
|
-
type ButtonProps = z.infer<typeof ButtonPropsSchema>;
|
|
73
|
-
declare const BoxPropsSchema: z.ZodObject<{
|
|
74
|
-
padding: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
background: z.ZodOptional<z.ZodString>;
|
|
76
|
-
border: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
radius: z.ZodOptional<z.ZodNumber>;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
type BoxProps = z.infer<typeof BoxPropsSchema>;
|
|
80
|
-
declare const PanelPropsSchema: z.ZodObject<{
|
|
81
|
-
title: z.ZodOptional<z.ZodString>;
|
|
82
|
-
backRef: z.ZodOptional<z.ZodString>;
|
|
83
|
-
closeRef: z.ZodOptional<z.ZodString>;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
type PanelProps = z.infer<typeof PanelPropsSchema>;
|
|
86
|
-
declare const JsonTreePropsSchema: z.ZodObject<{
|
|
87
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
88
|
-
label: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$strict>;
|
|
90
|
-
type JsonTreeProps = z.infer<typeof JsonTreePropsSchema>;
|
|
91
|
-
declare const CanvasSlotPropsSchema: z.ZodObject<{
|
|
92
|
-
canvasId: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$strict>;
|
|
94
|
-
type CanvasSlotProps = z.infer<typeof CanvasSlotPropsSchema>;
|
|
95
|
-
declare const ActionSlotPropsSchema: z.ZodObject<{
|
|
96
|
-
instanceId: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, z.core.$strict>;
|
|
98
|
-
type ActionSlotProps = z.infer<typeof ActionSlotPropsSchema>;
|
|
99
|
-
|
|
100
|
-
export { type ActionSlotProps as A, type ButtonProps as B, type CanvasSlotProps as C, type InputProps as I, type JsonTreeProps as J, type PanelProps as P, type StackProps as S, type TextProps as T, type BoxProps as a, ActionSlotPropsSchema as b, BoxPropsSchema as c, ButtonPropsSchema as d, CanvasSlotPropsSchema as e, InputPropsSchema as f, JsonTreePropsSchema as g, PanelPropsSchema as h, StackPropsSchema as i, TextPropsSchema as j };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const StackPropsSchema: z.ZodObject<{
|
|
4
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
5
|
-
row: "row";
|
|
6
|
-
column: "column";
|
|
7
|
-
}>>;
|
|
8
|
-
gap: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
start: "start";
|
|
11
|
-
center: "center";
|
|
12
|
-
end: "end";
|
|
13
|
-
stretch: "stretch";
|
|
14
|
-
}>>;
|
|
15
|
-
justify: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
start: "start";
|
|
17
|
-
center: "center";
|
|
18
|
-
end: "end";
|
|
19
|
-
between: "between";
|
|
20
|
-
around: "around";
|
|
21
|
-
}>>;
|
|
22
|
-
padding: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
}, z.core.$strict>;
|
|
25
|
-
type StackProps = z.infer<typeof StackPropsSchema>;
|
|
26
|
-
declare const TextPropsSchema: z.ZodObject<{
|
|
27
|
-
as: z.ZodOptional<z.ZodEnum<{
|
|
28
|
-
span: "span";
|
|
29
|
-
p: "p";
|
|
30
|
-
h1: "h1";
|
|
31
|
-
h2: "h2";
|
|
32
|
-
h3: "h3";
|
|
33
|
-
h4: "h4";
|
|
34
|
-
}>>;
|
|
35
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
sm: "sm";
|
|
37
|
-
md: "md";
|
|
38
|
-
lg: "lg";
|
|
39
|
-
xl: "xl";
|
|
40
|
-
"2xl": "2xl";
|
|
41
|
-
}>>;
|
|
42
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
43
|
-
normal: "normal";
|
|
44
|
-
medium: "medium";
|
|
45
|
-
bold: "bold";
|
|
46
|
-
}>>;
|
|
47
|
-
color: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strict>;
|
|
49
|
-
type TextProps = z.infer<typeof TextPropsSchema>;
|
|
50
|
-
declare const InputPropsSchema: z.ZodObject<{
|
|
51
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
number: "number";
|
|
53
|
-
text: "text";
|
|
54
|
-
email: "email";
|
|
55
|
-
password: "password";
|
|
56
|
-
}>>;
|
|
57
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
58
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
value: z.ZodOptional<z.ZodString>;
|
|
60
|
-
debounce: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
}, z.core.$strict>;
|
|
62
|
-
type InputProps = z.infer<typeof InputPropsSchema>;
|
|
63
|
-
declare const ButtonPropsSchema: z.ZodObject<{
|
|
64
|
-
label: z.ZodOptional<z.ZodString>;
|
|
65
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
66
|
-
primary: "primary";
|
|
67
|
-
secondary: "secondary";
|
|
68
|
-
ghost: "ghost";
|
|
69
|
-
}>>;
|
|
70
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
}, z.core.$strict>;
|
|
72
|
-
type ButtonProps = z.infer<typeof ButtonPropsSchema>;
|
|
73
|
-
declare const BoxPropsSchema: z.ZodObject<{
|
|
74
|
-
padding: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
background: z.ZodOptional<z.ZodString>;
|
|
76
|
-
border: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
radius: z.ZodOptional<z.ZodNumber>;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
type BoxProps = z.infer<typeof BoxPropsSchema>;
|
|
80
|
-
declare const PanelPropsSchema: z.ZodObject<{
|
|
81
|
-
title: z.ZodOptional<z.ZodString>;
|
|
82
|
-
backRef: z.ZodOptional<z.ZodString>;
|
|
83
|
-
closeRef: z.ZodOptional<z.ZodString>;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
type PanelProps = z.infer<typeof PanelPropsSchema>;
|
|
86
|
-
declare const JsonTreePropsSchema: z.ZodObject<{
|
|
87
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
88
|
-
label: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$strict>;
|
|
90
|
-
type JsonTreeProps = z.infer<typeof JsonTreePropsSchema>;
|
|
91
|
-
declare const CanvasSlotPropsSchema: z.ZodObject<{
|
|
92
|
-
canvasId: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.core.$strict>;
|
|
94
|
-
type CanvasSlotProps = z.infer<typeof CanvasSlotPropsSchema>;
|
|
95
|
-
declare const ActionSlotPropsSchema: z.ZodObject<{
|
|
96
|
-
instanceId: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, z.core.$strict>;
|
|
98
|
-
type ActionSlotProps = z.infer<typeof ActionSlotPropsSchema>;
|
|
99
|
-
|
|
100
|
-
export { type ActionSlotProps as A, type ButtonProps as B, type CanvasSlotProps as C, type InputProps as I, type JsonTreeProps as J, type PanelProps as P, type StackProps as S, type TextProps as T, type BoxProps as a, ActionSlotPropsSchema as b, BoxPropsSchema as c, ButtonPropsSchema as d, CanvasSlotPropsSchema as e, InputPropsSchema as f, JsonTreePropsSchema as g, PanelPropsSchema as h, StackPropsSchema as i, TextPropsSchema as j };
|