@kitionstage/sdk 0.0.0-stage → 0.5.2-stage.1
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/README.md +69 -2
- package/dist/LICENSE +177 -0
- package/dist/THIRD_PARTY_NOTICES +28 -0
- package/dist/lib/assets/kitEngine.worker-9haDiVHZ.js +13220 -0
- package/dist/lib/chunks/batch-BWpAyHvP.js +789 -0
- package/dist/lib/chunks/canonical-BIWfVCL-.js +87 -0
- package/dist/lib/chunks/envelope-D6MGY-ZN.js +61 -0
- package/dist/lib/chunks/replica-D8w3I4sn.js +2472 -0
- package/dist/lib/chunks/runtime-BVJHE1Pg.js +997 -0
- package/dist/lib/chunks/session-BqXC9a1-.js +281 -0
- package/dist/lib/chunks/toolIds-BCeSGHpV.js +821 -0
- package/dist/lib/chunks/workspaceTree-Destqupf.js +23 -0
- package/dist/lib/convergence/index.js +1035 -0
- package/dist/lib/convergence/node.js +8 -0
- package/dist/lib/embed-server/callbacks.js +37 -0
- package/dist/lib/embed-server/cli.js +19 -0
- package/dist/lib/embed-server/index.js +272 -0
- package/dist/lib/extensions/index.js +439 -0
- package/dist/lib/extensions/panel.html +208 -0
- package/dist/lib/extensions/runtime.js +198 -0
- package/dist/lib/extensions/sandbox.html +35 -0
- package/dist/lib/kdm/index.js +437 -0
- package/dist/lib/kit-dev-host/checkUiIds.mjs +44 -0
- package/dist/lib/kit-dev-host/index.js +308 -0
- package/dist/lib/kit-dev-host/lineRow.mjs +47 -0
- package/dist/lib/kit-dev-host/modeSmoke.mjs +178 -0
- package/dist/lib/kit-editor/index.js +6489 -0
- package/dist/lib/kit-editor/styles.css +807 -0
- package/dist/lib/kit-editor/workspaceTree.js +1 -0
- package/dist/lib/kit-engine/index.js +7 -0
- package/dist/lib/kit-host/index.js +530 -0
- package/dist/lib/kit-ui-protocol/index.js +336 -0
- package/dist/lib/node-only/embed-server-callbacks.js +2 -0
- package/dist/lib/node-only/embed-server.js +2 -0
- package/dist/lib/sync/index.js +1008 -0
- package/dist/lib/sync/openToken.js +201 -0
- package/dist/lib/sync/replicaVersions.js +51 -0
- package/dist/standalone/chunks/batch-CAGYk6m4.js +789 -0
- package/dist/standalone/chunks/client-B9xkOcvf.js +772 -0
- package/dist/standalone/chunks/collab-B5TbpTyO.js +1022 -0
- package/dist/standalone/chunks/comment-Ds9t8xSE.js +94 -0
- package/dist/standalone/chunks/comments-uVDS8Wxp.js +41 -0
- package/dist/standalone/chunks/document-CuIGSDsY.js +324 -0
- package/dist/standalone/chunks/envelope-GX4Cynkx.js +7612 -0
- package/dist/standalone/chunks/index-BEgEEnhU.js +287 -0
- package/dist/standalone/chunks/index-Blc_B6iX.js +1967 -0
- package/dist/standalone/chunks/kits-Cp51mDlw.js +9 -0
- package/dist/standalone/chunks/replica-Di2iCPiD.js +3281 -0
- package/dist/standalone/chunks/replicaVersions-C3rJxnk9.js +50 -0
- package/dist/standalone/chunks/touched-T9jKJjxn.js +78 -0
- package/dist/standalone/index.js +12 -0
- package/dist/standalone/script/index.js +339 -0
- package/dist/standalone/script/kits/board.js +5 -0
- package/dist/standalone/script/kits/cad.js +5 -0
- package/dist/standalone/script/kits/design.js +5 -0
- package/dist/standalone/script/kits/doc.js +5 -0
- package/dist/standalone/script/kits/film.js +5 -0
- package/dist/standalone/script/kits/html.js +5 -0
- package/dist/standalone/script/kits/index.js +38 -0
- package/dist/standalone/script/kits/layout.js +5 -0
- package/dist/standalone/script/kits/motion.js +5 -0
- package/dist/standalone/script/kits/note.js +5 -0
- package/dist/standalone/script/kits/pdf.js +5 -0
- package/dist/standalone/script/kits/photo.js +5 -0
- package/dist/standalone/script/kits/scene.js +5 -0
- package/dist/standalone/script/kits/sheet.js +5 -0
- package/dist/standalone/script/kits/slide.js +5 -0
- package/dist/standalone/script/kits/table.js +5 -0
- package/dist/standalone/script/kits/vector.js +5 -0
- package/dist/standalone/script/node.js +401 -0
- package/dist/standalone/script/proxy.js +254 -0
- package/dist/types/convergence/src/adapter.d.ts +131 -0
- package/dist/types/convergence/src/engine.d.ts +66 -0
- package/dist/types/convergence/src/index.d.ts +21 -0
- package/dist/types/convergence/src/net.d.ts +52 -0
- package/dist/types/convergence/src/node.d.ts +6 -0
- package/dist/types/convergence/src/report.d.ts +56 -0
- package/dist/types/convergence/src/rng.d.ts +12 -0
- package/dist/types/convergence/src/scenarios.d.ts +15 -0
- package/dist/types/convergence/src/state.d.ts +67 -0
- package/dist/types/embed/src/agent.d.ts +88 -0
- package/dist/types/embed/src/blobs.d.ts +2 -0
- package/dist/types/embed/src/collab.d.ts +250 -0
- package/dist/types/embed/src/comments.d.ts +30 -0
- package/dist/types/embed/src/errors.d.ts +24 -0
- package/dist/types/embed/src/handlers.d.ts +92 -0
- package/dist/types/embed/src/index.d.ts +20 -0
- package/dist/types/embed/src/mount.d.ts +39 -0
- package/dist/types/embed/src/replicaStore.d.ts +3 -0
- package/dist/types/embed/src/rooms.d.ts +40 -0
- package/dist/types/embed/src/schemas.d.ts +7 -0
- package/dist/types/embed/src/syncClients.d.ts +28 -0
- package/dist/types/embed/src/theme.d.ts +7 -0
- package/dist/types/embed/src/types.d.ts +596 -0
- package/dist/types/embed/src/ui.d.ts +33 -0
- package/dist/types/embed/src/version.d.ts +2 -0
- package/dist/types/embed-server/src/callbacks.d.ts +30 -0
- package/dist/types/embed-server/src/cli.d.ts +1 -0
- package/dist/types/embed-server/src/index.d.ts +19 -0
- package/dist/types/embed-server/src/page.d.ts +15 -0
- package/dist/types/embed-server/src/server.d.ts +39 -0
- package/dist/types/embed-server/src/session.d.ts +22 -0
- package/dist/types/extensions/src/gate.d.ts +17 -0
- package/dist/types/extensions/src/generated/runtime.d.ts +8 -0
- package/dist/types/extensions/src/host.d.ts +135 -0
- package/dist/types/extensions/src/index.d.ts +13 -0
- package/dist/types/extensions/src/manifest.d.ts +82 -0
- package/dist/types/extensions/src/protocol.d.ts +159 -0
- package/dist/types/extensions/src/rpc.d.ts +52 -0
- package/dist/types/extensions/src/runtime/document.d.ts +40 -0
- package/dist/types/extensions/src/runtime/index.d.ts +10 -0
- package/dist/types/extensions/src/runtime/panel.d.ts +19 -0
- package/dist/types/extensions/src/runtime/runtime.d.ts +54 -0
- package/dist/types/extensions/src/runtime/worker.d.ts +1 -0
- package/dist/types/extensions/src/sandbox.d.ts +41 -0
- package/dist/types/kdm/src/args.d.ts +12 -0
- package/dist/types/kdm/src/batch.d.ts +118 -0
- package/dist/types/kdm/src/canonical.d.ts +25 -0
- package/dist/types/kdm/src/comment.d.ts +114 -0
- package/dist/types/kdm/src/diff.d.ts +125 -0
- package/dist/types/kdm/src/envelope.d.ts +27 -0
- package/dist/types/kdm/src/errors.d.ts +28 -0
- package/dist/types/kdm/src/footprint.d.ts +21 -0
- package/dist/types/kdm/src/ids.d.ts +57 -0
- package/dist/types/kdm/src/index.d.ts +18 -0
- package/dist/types/kdm/src/marks.d.ts +32 -0
- package/dist/types/kdm/src/op.d.ts +124 -0
- package/dist/types/kdm/src/origin.d.ts +41 -0
- package/dist/types/kdm/src/overlay.d.ts +92 -0
- package/dist/types/kdm/src/projection.d.ts +29 -0
- package/dist/types/kdm/src/read.d.ts +90 -0
- package/dist/types/kdm/src/replica.d.ts +403 -0
- package/dist/types/kdm/src/schema.d.ts +185 -0
- package/dist/types/kdm/src/testing.d.ts +28 -0
- package/dist/types/kdm/src/toolIds.d.ts +61 -0
- package/dist/types/kdm/src/touched.d.ts +24 -0
- package/dist/types/kdm/src/tx.d.ts +215 -0
- package/dist/types/kdm/src/value.d.ts +23 -0
- package/dist/types/kit-dev-host/src/checkNoPaths.d.ts +19 -0
- package/dist/types/kit-dev-host/src/checkUiIds.d.mts +2 -0
- package/dist/types/kit-dev-host/src/index.d.ts +179 -0
- package/dist/types/kit-dev-host/src/lineRow.d.mts +14 -0
- package/dist/types/kit-dev-host/src/memoryFiles.d.ts +15 -0
- package/dist/types/kit-dev-host/src/modeSmoke.d.mts +8 -0
- package/dist/types/kit-editor/src/CommandDialog.d.ts +22 -0
- package/dist/types/kit-editor/src/CommentsPanel.d.ts +45 -0
- package/dist/types/kit-editor/src/CustomizeDialog.d.ts +32 -0
- package/dist/types/kit-editor/src/HostButtons.d.ts +11 -0
- package/dist/types/kit-editor/src/RenderFailure.d.ts +7 -0
- package/dist/types/kit-editor/src/TextSink.d.ts +6 -0
- package/dist/types/kit-editor/src/brand.d.ts +2 -0
- package/dist/types/kit-editor/src/catalogMenus.d.ts +27 -0
- package/dist/types/kit-editor/src/chart.d.ts +138 -0
- package/dist/types/kit-editor/src/conflicts.d.ts +12 -0
- package/dist/types/kit-editor/src/drawing.d.ts +83 -0
- package/dist/types/kit-editor/src/editor.d.ts +544 -0
- package/dist/types/kit-editor/src/engine/KitCanvas.d.ts +70 -0
- package/dist/types/kit-editor/src/engine/backdrop.d.ts +32 -0
- package/dist/types/kit-editor/src/engine/createKitFile.d.ts +12 -0
- package/dist/types/kit-editor/src/engine/decorations.d.ts +14 -0
- package/dist/types/kit-editor/src/engine/engineOverlays.d.ts +197 -0
- package/dist/types/kit-editor/src/engine/engineTools.d.ts +116 -0
- package/dist/types/kit-editor/src/engine/kitDraft.d.ts +70 -0
- package/dist/types/kit-editor/src/engine/kitEngine.d.ts +390 -0
- package/dist/types/kit-editor/src/engine/kitEngine.worker.d.ts +30 -0
- package/dist/types/kit-editor/src/engine/kitHost.d.ts +41 -0
- package/dist/types/kit-editor/src/engine/kitModel.d.ts +32 -0
- package/dist/types/kit-editor/src/engine/kitModelRunner.d.ts +99 -0
- package/dist/types/kit-editor/src/engine/kitModule.d.ts +185 -0
- package/dist/types/kit-editor/src/engine/kitShortcuts.d.ts +32 -0
- package/dist/types/kit-editor/src/engine/kitTools.d.ts +79 -0
- package/dist/types/kit-editor/src/engine/lazyFonts.d.ts +34 -0
- package/dist/types/kit-editor/src/engine/lentFiles.d.ts +29 -0
- package/dist/types/kit-editor/src/engine/rasterViewport.d.ts +178 -0
- package/dist/types/kit-editor/src/engine/readOnly.d.ts +78 -0
- package/dist/types/kit-editor/src/engine/refusal.d.ts +39 -0
- package/dist/types/kit-editor/src/engine/replica.d.ts +23 -0
- package/dist/types/kit-editor/src/engine/useKitDocument.d.ts +154 -0
- package/dist/types/kit-editor/src/engine/workerRelay.d.ts +62 -0
- package/dist/types/kit-editor/src/files.d.ts +74 -0
- package/dist/types/kit-editor/src/frame/EditorFrame.d.ts +74 -0
- package/dist/types/kit-editor/src/frame/FocusBar.d.ts +10 -0
- package/dist/types/kit-editor/src/frame/MenuNodes.d.ts +20 -0
- package/dist/types/kit-editor/src/frame/MenuRibbon.d.ts +8 -0
- package/dist/types/kit-editor/src/frame/ModeButton.d.ts +7 -0
- package/dist/types/kit-editor/src/frame/menus.d.ts +64 -0
- package/dist/types/kit-editor/src/frame/modes.d.ts +51 -0
- package/dist/types/kit-editor/src/frame/useFrameLayout.d.ts +34 -0
- package/dist/types/kit-editor/src/host.d.ts +127 -0
- package/dist/types/kit-editor/src/index.d.ts +85 -0
- package/dist/types/kit-editor/src/ink.d.ts +26 -0
- package/dist/types/kit-editor/src/lease.d.ts +53 -0
- package/dist/types/kit-editor/src/oneInFlight.d.ts +7 -0
- package/dist/types/kit-editor/src/phrases.d.ts +25 -0
- package/dist/types/kit-editor/src/presence.d.ts +79 -0
- package/dist/types/kit-editor/src/strings.d.ts +6 -0
- package/dist/types/kit-editor/src/toolIcons.d.ts +32 -0
- package/dist/types/kit-editor/src/uiCatalog.d.ts +59 -0
- package/dist/types/kit-editor/src/uiConfig.d.ts +53 -0
- package/dist/types/kit-editor/src/uiContext.d.ts +65 -0
- package/dist/types/kit-editor/src/uiStore.d.ts +20 -0
- package/dist/types/kit-editor/src/useCommentAnchors.d.ts +29 -0
- package/dist/types/kit-editor/src/useKitSession.d.ts +115 -0
- package/dist/types/kit-editor/src/workspaceTree.d.ts +5 -0
- package/dist/types/kit-engine/src/contract.d.ts +154 -0
- package/dist/types/kit-engine/src/index.d.ts +2 -0
- package/dist/types/kit-engine/src/session.d.ts +133 -0
- package/dist/types/kit-host/src/files.d.ts +163 -0
- package/dist/types/kit-host/src/index.d.ts +315 -0
- package/dist/types/kit-ui-protocol/src/index.d.ts +1145 -0
- package/dist/types/loro-crdt.d.ts +9 -0
- package/dist/types/script/kits/board.d.ts +534 -0
- package/dist/types/script/kits/cad.d.ts +2937 -0
- package/dist/types/script/kits/design.d.ts +3213 -0
- package/dist/types/script/kits/doc.d.ts +2575 -0
- package/dist/types/script/kits/film.d.ts +4067 -0
- package/dist/types/script/kits/html.d.ts +38 -0
- package/dist/types/script/kits/index.d.ts +20 -0
- package/dist/types/script/kits/layout.d.ts +3483 -0
- package/dist/types/script/kits/motion.d.ts +4826 -0
- package/dist/types/script/kits/note.d.ts +631 -0
- package/dist/types/script/kits/pdf.d.ts +829 -0
- package/dist/types/script/kits/photo.d.ts +7574 -0
- package/dist/types/script/kits/scene.d.ts +2962 -0
- package/dist/types/script/kits/sheet.d.ts +2419 -0
- package/dist/types/script/kits/slide.d.ts +1894 -0
- package/dist/types/script/kits/table.d.ts +654 -0
- package/dist/types/script/kits/vector.d.ts +5167 -0
- package/dist/types/script/src/agentRelay.d.ts +48 -0
- package/dist/types/script/src/capabilities.d.ts +21 -0
- package/dist/types/script/src/document.d.ts +87 -0
- package/dist/types/script/src/drafts.d.ts +141 -0
- package/dist/types/script/src/exchange.d.ts +30 -0
- package/dist/types/script/src/headless.d.ts +190 -0
- package/dist/types/script/src/index.d.ts +15 -0
- package/dist/types/script/src/kitModel.d.ts +17 -0
- package/dist/types/script/src/kits.d.ts +8 -0
- package/dist/types/script/src/node.d.ts +42 -0
- package/dist/types/script/src/port.d.ts +89 -0
- package/dist/types/script/src/proxy.d.ts +132 -0
- package/dist/types/script/src/room.d.ts +162 -0
- package/dist/types/script/src/sources.d.ts +73 -0
- package/dist/types/sync/src/backoff.d.ts +9 -0
- package/dist/types/sync/src/blobSection.d.ts +23 -0
- package/dist/types/sync/src/capabilities.d.ts +20 -0
- package/dist/types/sync/src/client.d.ts +253 -0
- package/dist/types/sync/src/framing.d.ts +35 -0
- package/dist/types/sync/src/hash.d.ts +2 -0
- package/dist/types/sync/src/index.d.ts +19 -0
- package/dist/types/sync/src/leases.d.ts +82 -0
- package/dist/types/sync/src/openToken.d.ts +104 -0
- package/dist/types/sync/src/protocol.d.ts +484 -0
- package/dist/types/sync/src/relay.d.ts +52 -0
- package/dist/types/sync/src/replicaVersions.d.ts +17 -0
- package/dist/types/sync/src/saveMachine.d.ts +83 -0
- package/dist/types/sync/src/saveRun.d.ts +52 -0
- package/dist/types/sync/src/transport.d.ts +19 -0
- package/package.json +229 -4
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { d as s, o as c, b as u } from "./envelope-GX4Cynkx.js";
|
|
2
|
+
function a(e) {
|
|
3
|
+
return e.length ? new Map(u.decode(e).toJSON()) : /* @__PURE__ */ new Map();
|
|
4
|
+
}
|
|
5
|
+
const d = {
|
|
6
|
+
isEmpty: (e) => {
|
|
7
|
+
try {
|
|
8
|
+
return s(c(e).engine, !1).changeNum === 0;
|
|
9
|
+
} catch {
|
|
10
|
+
return !1;
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
merge: (e, t) => {
|
|
14
|
+
const r = a(e);
|
|
15
|
+
for (const [n, o] of a(t)) r.set(n, Math.max(o, r.get(n) ?? 0));
|
|
16
|
+
return u.parseJSON(r).encode();
|
|
17
|
+
},
|
|
18
|
+
endOf: (e) => {
|
|
19
|
+
try {
|
|
20
|
+
return s(c(e).engine, !1).partialEndVersionVector.encode();
|
|
21
|
+
} catch {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
includes: (e, t) => {
|
|
26
|
+
try {
|
|
27
|
+
const r = a(e);
|
|
28
|
+
for (const [n, o] of a(t)) if ((r.get(n) ?? 0) < o) return !1;
|
|
29
|
+
return !0;
|
|
30
|
+
} catch {
|
|
31
|
+
return !1;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
snapshotRoot: (e) => {
|
|
35
|
+
let t;
|
|
36
|
+
try {
|
|
37
|
+
t = s(c(e).engine, !1);
|
|
38
|
+
} catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
if (t.mode === "update" || t.mode === "outdated-update") return null;
|
|
42
|
+
if (t.mode !== "shallow-snapshot") return new Uint8Array();
|
|
43
|
+
const r = new Map(t.partialStartVersionVector.toJSON());
|
|
44
|
+
for (const { peer: n, counter: o } of t.startFrontiers) r.set(n, Math.max(o + 1, r.get(n) ?? 0));
|
|
45
|
+
return u.parseJSON(r).encode();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
d as LORO_REPLICA_VERSIONS
|
|
50
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { L as w, o as f, e as l, V as b, i as M, a as v } from "./envelope-GX4Cynkx.js";
|
|
2
|
+
import { i as C } from "./comment-Ds9t8xSE.js";
|
|
3
|
+
import { O as d, T as E } from "./replica-Di2iCPiD.js";
|
|
4
|
+
function O(n) {
|
|
5
|
+
if (n.outside) return !1;
|
|
6
|
+
for (const e of n.objects.values()) if (e === null || !C(e)) return !1;
|
|
7
|
+
return !0;
|
|
8
|
+
}
|
|
9
|
+
const u = (n) => n instanceof Error ? n.message : String(n);
|
|
10
|
+
function p(n, e) {
|
|
11
|
+
const o = n.getMap(d).get(e);
|
|
12
|
+
if (!(o instanceof v)) return null;
|
|
13
|
+
const r = o.get(E);
|
|
14
|
+
return typeof r == "string" ? r : null;
|
|
15
|
+
}
|
|
16
|
+
class h {
|
|
17
|
+
constructor(e) {
|
|
18
|
+
this.doc = e;
|
|
19
|
+
}
|
|
20
|
+
/** From a snapshot or a full change export of the document. */
|
|
21
|
+
static load(e) {
|
|
22
|
+
const o = new w();
|
|
23
|
+
try {
|
|
24
|
+
o.import(f(e).engine);
|
|
25
|
+
} catch (r) {
|
|
26
|
+
throw l.encoding(u(r));
|
|
27
|
+
}
|
|
28
|
+
return new h(o);
|
|
29
|
+
}
|
|
30
|
+
version() {
|
|
31
|
+
return b.fromEngine(this.doc.oplogVersion());
|
|
32
|
+
}
|
|
33
|
+
/** Takes changes the document already holds without looking at them (another replica's, an undo). */
|
|
34
|
+
follow(e) {
|
|
35
|
+
try {
|
|
36
|
+
this.doc.import(f(e).engine);
|
|
37
|
+
} catch (o) {
|
|
38
|
+
throw l.encoding(u(o));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/** Takes `changes` and answers what they touched. */
|
|
42
|
+
touched(e) {
|
|
43
|
+
const o = f(e).engine, r = this.doc.oplogFrontiers(), i = /* @__PURE__ */ new Set();
|
|
44
|
+
let c = !1;
|
|
45
|
+
const g = this.doc.subscribe((t) => {
|
|
46
|
+
for (const s of t.events)
|
|
47
|
+
if (s.path[0] !== d) c = !0;
|
|
48
|
+
else if (s.path.length >= 2) i.add(String(s.path[1]));
|
|
49
|
+
else if (s.diff.type === "map") for (const y of Object.keys(s.diff.updated)) i.add(y);
|
|
50
|
+
else c = !0;
|
|
51
|
+
});
|
|
52
|
+
try {
|
|
53
|
+
this.doc.import(o);
|
|
54
|
+
} catch (t) {
|
|
55
|
+
throw l.encoding(u(t));
|
|
56
|
+
} finally {
|
|
57
|
+
g();
|
|
58
|
+
}
|
|
59
|
+
const a = /* @__PURE__ */ new Map();
|
|
60
|
+
if (!i.size) return { objects: a, outside: c };
|
|
61
|
+
const m = new Map([...i].map((t) => [t, p(this.doc, t)]));
|
|
62
|
+
this.doc.checkout(r);
|
|
63
|
+
try {
|
|
64
|
+
for (const t of i) a.set(t, p(this.doc, t) ?? m.get(t) ?? null);
|
|
65
|
+
} finally {
|
|
66
|
+
this.doc.checkoutToLatest();
|
|
67
|
+
}
|
|
68
|
+
for (const t of i) {
|
|
69
|
+
const s = this.doc.getMap(d).get(t);
|
|
70
|
+
s !== void 0 && !M(s) && a.set(t, null);
|
|
71
|
+
}
|
|
72
|
+
return { objects: a, outside: c };
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
h as C,
|
|
77
|
+
O as t
|
|
78
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { g as r, E as s, h as o, a as A, F as e, i as _, j as t, k as M, r as O } from "./chunks/index-Blc_B6iX.js";
|
|
2
|
+
export {
|
|
3
|
+
r as EMBED_CAPABILITY_SETS,
|
|
4
|
+
s as EMBED_VERSION,
|
|
5
|
+
o as EmbedConflictError,
|
|
6
|
+
A as EmbedError,
|
|
7
|
+
e as FRAME_ALLOW,
|
|
8
|
+
_ as FRAME_SANDBOX,
|
|
9
|
+
t as KitionEmbed,
|
|
10
|
+
M as ROOMS_KEY,
|
|
11
|
+
O as relayAgentPort
|
|
12
|
+
};
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { s as g, a as u, H as b, S as E } from "../chunks/client-B9xkOcvf.js";
|
|
2
|
+
import { B as h, f as I, d as C } from "../chunks/batch-CAGYk6m4.js";
|
|
3
|
+
import { O as Y } from "../chunks/batch-CAGYk6m4.js";
|
|
4
|
+
import "../chunks/envelope-GX4Cynkx.js";
|
|
5
|
+
import { M as S } from "../chunks/document-CuIGSDsY.js";
|
|
6
|
+
import { E as J, e as X, i as z, k as Q, o as V, a as Z, p as ee } from "../chunks/document-CuIGSDsY.js";
|
|
7
|
+
import { k as p } from "../chunks/kits-Cp51mDlw.js";
|
|
8
|
+
import { r as re } from "../chunks/kits-Cp51mDlw.js";
|
|
9
|
+
import { NotSyncedError as se, PropertyNotLoadedError as ne, RequestContext as ie } from "./proxy.js";
|
|
10
|
+
import { t as R, C as T } from "../chunks/touched-T9jKJjxn.js";
|
|
11
|
+
import { p as f, R as w, r as y } from "../chunks/replica-Di2iCPiD.js";
|
|
12
|
+
const d = {
|
|
13
|
+
model: "KitModel 1.1",
|
|
14
|
+
collab: "KitCollab 1.0",
|
|
15
|
+
objectModel: "KitObjectModel 1.0",
|
|
16
|
+
extensions: "KitExtensions 1.0",
|
|
17
|
+
embed: "KitEmbed 1.0"
|
|
18
|
+
};
|
|
19
|
+
let l = [d.model, d.objectModel];
|
|
20
|
+
function O(t) {
|
|
21
|
+
l = [...t];
|
|
22
|
+
}
|
|
23
|
+
function _() {
|
|
24
|
+
return l;
|
|
25
|
+
}
|
|
26
|
+
function N(t, e = l) {
|
|
27
|
+
return g(t, e);
|
|
28
|
+
}
|
|
29
|
+
function k(t) {
|
|
30
|
+
const e = globalThis.WebSocket;
|
|
31
|
+
if (!e) throw new Error("no global WebSocket here (Node 22 or later has one): pass createTransport");
|
|
32
|
+
const r = new e(t);
|
|
33
|
+
return r.binaryType = "arraybuffer", r;
|
|
34
|
+
}
|
|
35
|
+
function v(t) {
|
|
36
|
+
const e = new URL(t);
|
|
37
|
+
if (e.protocol === "http:" || e.protocol === "https:")
|
|
38
|
+
e.protocol = e.protocol === "http:" ? "ws:" : "wss:", (e.pathname === "/" || e.pathname === "") && (e.pathname = "/v1/sync");
|
|
39
|
+
else if (e.protocol !== "ws:" && e.protocol !== "wss:")
|
|
40
|
+
throw new Error(`${t} is no sync server address (ws://, wss://, http://, or https://)`);
|
|
41
|
+
return e.toString();
|
|
42
|
+
}
|
|
43
|
+
const m = {
|
|
44
|
+
owner: null,
|
|
45
|
+
editor: null,
|
|
46
|
+
commenter: "a commenter may change only comments (CommentThread and Comment objects)",
|
|
47
|
+
viewer: "a viewer may only read the room"
|
|
48
|
+
};
|
|
49
|
+
function L(t, e) {
|
|
50
|
+
if (t instanceof h) return t;
|
|
51
|
+
const r = t instanceof Error ? t.message : String(t), n = (t instanceof E ? t.reason : void 0) === "forbidden" ? "read-only" : "invalid-value";
|
|
52
|
+
return new h(n, null, `${e}: ${r}`);
|
|
53
|
+
}
|
|
54
|
+
class A {
|
|
55
|
+
constructor(e, r, s, n, o, i) {
|
|
56
|
+
this.sync = e, this.docId = r, this.kitId = s, this.hello = o, this.options = i, this.schema = "types" in n && "root" in n && "kit" in n ? f(n) : n;
|
|
57
|
+
}
|
|
58
|
+
events = ["presence"];
|
|
59
|
+
schema;
|
|
60
|
+
replica = null;
|
|
61
|
+
early = [];
|
|
62
|
+
actor = y();
|
|
63
|
+
queue = Promise.resolve();
|
|
64
|
+
listeners = /* @__PURE__ */ new Set();
|
|
65
|
+
roleListeners = /* @__PURE__ */ new Set();
|
|
66
|
+
waiters = [];
|
|
67
|
+
unsubscribes = [];
|
|
68
|
+
/** The highest room `seq` this replica has every change up to. */
|
|
69
|
+
seen = 0;
|
|
70
|
+
/** The replica's version after this handle's last batch. */
|
|
71
|
+
own = null;
|
|
72
|
+
role = null;
|
|
73
|
+
presence = [];
|
|
74
|
+
/** Removed from the room by its owner (`room/access`): the handle reads what it has, and writes nothing. */
|
|
75
|
+
removed = !1;
|
|
76
|
+
/** Left the room (`close`). */
|
|
77
|
+
left = !1;
|
|
78
|
+
/** Joins the room and loads its document. */
|
|
79
|
+
async join() {
|
|
80
|
+
this.unsubscribes.push(
|
|
81
|
+
this.sync.onChanges(this.docId, (o) => this.receive(o.changes, o.seq)),
|
|
82
|
+
this.sync.onPresence(this.docId, (o) => {
|
|
83
|
+
this.presence = o;
|
|
84
|
+
}),
|
|
85
|
+
this.sync.onAccess(this.docId, (o) => {
|
|
86
|
+
this.role = o, o === null && (this.removed = !0);
|
|
87
|
+
for (const i of [...this.roleListeners]) i(o);
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
const e = await this.sync.join(this.docId, null);
|
|
91
|
+
this.role = e.role, this.presence = e.presence;
|
|
92
|
+
let r = e.changes, s;
|
|
93
|
+
e.snapshot ? (s = r[0], r = r.slice(1)) : s = (await this.sync.snapshot(this.docId)).snapshot;
|
|
94
|
+
const n = w.load(this.schema, s, this.actor);
|
|
95
|
+
for (const o of [...r, ...this.early]) n.importChanges(o);
|
|
96
|
+
this.early = [], this.replica = n, this.reach(e.seq);
|
|
97
|
+
}
|
|
98
|
+
receive(e, r) {
|
|
99
|
+
if (!this.replica) {
|
|
100
|
+
this.early.push(e);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const s = this.replica.version();
|
|
104
|
+
try {
|
|
105
|
+
this.replica.importChanges(e);
|
|
106
|
+
} catch (i) {
|
|
107
|
+
(this.options.onError ?? ((c) => console.error("[kition-sdk] a change from the room did not import", c)))(i);
|
|
108
|
+
}
|
|
109
|
+
this.reach(r ?? Number.MAX_SAFE_INTEGER);
|
|
110
|
+
const n = this.replica.version();
|
|
111
|
+
if (n.equals(s)) return;
|
|
112
|
+
const o = n.encode();
|
|
113
|
+
for (const i of [...this.listeners]) i(o);
|
|
114
|
+
}
|
|
115
|
+
reach(e) {
|
|
116
|
+
e > this.seen && (this.seen = e);
|
|
117
|
+
const r = this.waiters.filter((s) => s.seq <= this.seen);
|
|
118
|
+
this.waiters = this.waiters.filter((s) => s.seq > this.seen);
|
|
119
|
+
for (const s of r) s.done();
|
|
120
|
+
}
|
|
121
|
+
/** Settles once this replica holds the room's change `seq`. */
|
|
122
|
+
arrived(e) {
|
|
123
|
+
if (e <= this.seen) return Promise.resolve();
|
|
124
|
+
const r = this.options.commandTimeout ?? 3e4;
|
|
125
|
+
return new Promise((s, n) => {
|
|
126
|
+
const o = { seq: e, done: () => (clearTimeout(i), s()) }, i = setTimeout(() => {
|
|
127
|
+
this.waiters = this.waiters.filter((a) => a !== o), n(new Error(`the change the command made (seq ${e}) did not arrive within ${r} ms`));
|
|
128
|
+
}, r);
|
|
129
|
+
this.waiters.push(o);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
loaded() {
|
|
133
|
+
if (this.left) throw new h("read-only", null, "this room handle has left the room");
|
|
134
|
+
if (!this.replica) throw new h("not-found", null, "the room is not joined yet");
|
|
135
|
+
return this.replica;
|
|
136
|
+
}
|
|
137
|
+
/** What the server lists in `sync/hello`: protocol features and capability sets. */
|
|
138
|
+
get capabilities() {
|
|
139
|
+
return this.hello.capabilities;
|
|
140
|
+
}
|
|
141
|
+
/** Whether the server runs the room's kit commands (`agent/run`). */
|
|
142
|
+
get runsCommands() {
|
|
143
|
+
return this.hello.capabilities.includes(b);
|
|
144
|
+
}
|
|
145
|
+
target() {
|
|
146
|
+
return {
|
|
147
|
+
replica: () => this.loaded(),
|
|
148
|
+
readOnly: () => this.removed || this.role === null || this.role === "viewer",
|
|
149
|
+
transact: async (e, r) => {
|
|
150
|
+
const s = this.loaded(), n = s.version(), o = s.fork(this.actor);
|
|
151
|
+
if (o.transact(e, r), o.version().equals(n)) return;
|
|
152
|
+
const i = o.exportChanges(n);
|
|
153
|
+
if (this.role === "commenter" && !R(T.load(s.exportChanges()).touched(i)))
|
|
154
|
+
throw new h("read-only", null, m.commenter);
|
|
155
|
+
let a;
|
|
156
|
+
try {
|
|
157
|
+
a = (await this.sync.push(this.docId, i)).seq;
|
|
158
|
+
} catch (c) {
|
|
159
|
+
throw L(c, "the room refused the changes");
|
|
160
|
+
}
|
|
161
|
+
s.importChanges(i), this.reach(a);
|
|
162
|
+
},
|
|
163
|
+
command: async (e, r) => {
|
|
164
|
+
const s = this.removed || !this.role ? "not a member of the room" : this.role === "commenter" ? "a commenter may not run commands (the server runs them for an owner or an editor)" : m[this.role];
|
|
165
|
+
if (s) throw new Error(s);
|
|
166
|
+
if (!this.runsCommands)
|
|
167
|
+
throw new Error(`\`${e}\` needs the kit's engine: this sync server runs no kits (it does not list \`headless\`), so a room handle runs only model operations`);
|
|
168
|
+
let n;
|
|
169
|
+
try {
|
|
170
|
+
n = await this.sync.runAgent(this.docId, { ops: [{ op: "command", id: e, params: r }] });
|
|
171
|
+
} catch (o) {
|
|
172
|
+
const i = o.data?.model;
|
|
173
|
+
throw new Error(typeof i?.message == "string" ? i.message : o instanceof Error ? o.message : String(o));
|
|
174
|
+
}
|
|
175
|
+
return n.seq !== null && await this.arrived(n.seq), (n.result?.results ?? [])[0] ?? null;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
serial(e) {
|
|
180
|
+
const r = this.queue.then(e, e);
|
|
181
|
+
return this.queue = r.catch(() => {
|
|
182
|
+
}), r;
|
|
183
|
+
}
|
|
184
|
+
batch(e) {
|
|
185
|
+
return this.serial(async () => {
|
|
186
|
+
try {
|
|
187
|
+
return await I(this.target(), e);
|
|
188
|
+
} finally {
|
|
189
|
+
(e.ops?.length ?? 0) > 0 && this.replica && (this.own = this.replica.version().encode());
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
describe() {
|
|
194
|
+
return this.serial(async () => ({ ...C(this.loaded()), commands: [] }));
|
|
195
|
+
}
|
|
196
|
+
/** The kit's catalogue does not travel over the sync protocol: a room lists no commands. */
|
|
197
|
+
async commands() {
|
|
198
|
+
return [];
|
|
199
|
+
}
|
|
200
|
+
/** The document's version after this handle's last batch (`changed` from the room is told apart by it). */
|
|
201
|
+
version() {
|
|
202
|
+
return this.own;
|
|
203
|
+
}
|
|
204
|
+
onChanged(e) {
|
|
205
|
+
return this.listeners.add(e), () => {
|
|
206
|
+
this.listeners.delete(e);
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
onRole(e) {
|
|
210
|
+
return this.roleListeners.add(e), () => {
|
|
211
|
+
this.roleListeners.delete(e);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
on = (e, r) => {
|
|
215
|
+
if (e !== "presence") return () => {
|
|
216
|
+
};
|
|
217
|
+
const s = r;
|
|
218
|
+
return this.sync.onPresence(this.docId, (n) => s({ peers: n }));
|
|
219
|
+
};
|
|
220
|
+
/** The room's document as it stands here, as one snapshot. */
|
|
221
|
+
snapshot() {
|
|
222
|
+
return this.loaded().snapshot();
|
|
223
|
+
}
|
|
224
|
+
leave() {
|
|
225
|
+
for (const e of this.unsubscribes.splice(0)) e();
|
|
226
|
+
for (const e of this.waiters.splice(0)) e.done();
|
|
227
|
+
this.listeners.clear(), this.roleListeners.clear(), this.left || this.sync.leave(this.docId), this.left = !0;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
class x extends S {
|
|
231
|
+
constructor(e, r, s) {
|
|
232
|
+
super(e, r), this.room = e, this.ownsClient = s;
|
|
233
|
+
}
|
|
234
|
+
/** The room's document id. */
|
|
235
|
+
get docId() {
|
|
236
|
+
return this.room.docId;
|
|
237
|
+
}
|
|
238
|
+
/** This person's role in the room (`null` once removed from it). */
|
|
239
|
+
get role() {
|
|
240
|
+
return this.room.role;
|
|
241
|
+
}
|
|
242
|
+
/** Who the server says this person is. */
|
|
243
|
+
get principal() {
|
|
244
|
+
return this.room.sync.principal;
|
|
245
|
+
}
|
|
246
|
+
/** The people in the room, as last heard. */
|
|
247
|
+
get peers() {
|
|
248
|
+
return this.room.presence;
|
|
249
|
+
}
|
|
250
|
+
/** Whether the server runs kit commands for this room (`agent/run`); without, a `command` operation is refused. */
|
|
251
|
+
get runsCommands() {
|
|
252
|
+
return this.room.runsCommands;
|
|
253
|
+
}
|
|
254
|
+
/** What the server lists in `sync/hello` (test one with `supports(set, doc.capabilities)`). */
|
|
255
|
+
get capabilities() {
|
|
256
|
+
return this.room.capabilities;
|
|
257
|
+
}
|
|
258
|
+
/** The sync client the room is joined with (presence, leases, previews, history). */
|
|
259
|
+
get sync() {
|
|
260
|
+
return this.room.sync;
|
|
261
|
+
}
|
|
262
|
+
/** Hears this person's role change; `null`: they were removed, and the handle only reads what it has. */
|
|
263
|
+
onRole(e) {
|
|
264
|
+
return this.room.onRole(e);
|
|
265
|
+
}
|
|
266
|
+
/** The room's document as this handle holds it, as a KDM snapshot. */
|
|
267
|
+
snapshot() {
|
|
268
|
+
return this.room.snapshot();
|
|
269
|
+
}
|
|
270
|
+
/** Leaves the room and, when `openRoom` made the connection, closes it. */
|
|
271
|
+
close() {
|
|
272
|
+
super.close(), this.room.leave(), this.ownsClient && queueMicrotask(() => this.room.sync.close());
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
const P = "a shallow replica truncated after the document's birth does not carry the document's whole history: a room starts from a full document or a copy made as a new document (sync protocol S20)";
|
|
276
|
+
async function F(t) {
|
|
277
|
+
const e = t.tokenProvider ?? t.token;
|
|
278
|
+
if (e === void 0) throw new Error("createRoom takes a token or a tokenProvider");
|
|
279
|
+
const r = t.schema ?? p(t.kit)?.schema;
|
|
280
|
+
if (!r) throw new Error(`no schema for ${t.kit}: pass options.schema or registerKit() its descriptor`);
|
|
281
|
+
const s = "types" in r && "root" in r && "kit" in r ? f(r) : r, n = w.load(s, t.document, y());
|
|
282
|
+
if (!n.carriesWholeHistory()) throw new Error(P);
|
|
283
|
+
const o = new u({ createTransport: t.createTransport ?? k, client: t.client ?? { name: "@kition/script", version: "0.1.0" } });
|
|
284
|
+
try {
|
|
285
|
+
await o.connect(v(t.server), e);
|
|
286
|
+
const { shareLink: i } = await o.createRoom(n.docId, n.snapshot(), t.name, t.kit);
|
|
287
|
+
return { docId: n.docId, shareLink: i };
|
|
288
|
+
} finally {
|
|
289
|
+
o.close();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
async function H(t) {
|
|
293
|
+
if (t.docId === void 0 == (t.shareLink === void 0)) throw new Error("openRoom takes a docId or a shareLink");
|
|
294
|
+
const e = t.tokenProvider ?? t.token;
|
|
295
|
+
if (e === void 0) throw new Error("openRoom takes a token or a tokenProvider");
|
|
296
|
+
if (t.docId !== void 0 && !t.kit) throw new Error("openRoom with a docId takes the room's kit too");
|
|
297
|
+
const r = new u({ createTransport: t.createTransport ?? k, client: t.client ?? { name: "@kition/script", version: "0.1.0" } });
|
|
298
|
+
try {
|
|
299
|
+
const s = await r.connect(v(t.server), e);
|
|
300
|
+
let n = t.docId, o = t.kit;
|
|
301
|
+
if (t.shareLink !== void 0) {
|
|
302
|
+
const c = await r.openRoom(t.shareLink);
|
|
303
|
+
if (o && o !== c.kit) throw new Error(`the share link opens a ${c.kit} room, not ${o}`);
|
|
304
|
+
n = c.docId, o = c.kit;
|
|
305
|
+
}
|
|
306
|
+
const i = t.schema ?? p(o)?.schema;
|
|
307
|
+
if (!i) throw new Error(`no schema for ${o}: pass options.schema or registerKit() its descriptor`);
|
|
308
|
+
const a = new A(r, n, o, i, s, t);
|
|
309
|
+
return await a.join(), new x(a, t.origin, !0);
|
|
310
|
+
} catch (s) {
|
|
311
|
+
throw r.close(), s;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
export {
|
|
315
|
+
h as BatchError,
|
|
316
|
+
d as CAPABILITY_SETS,
|
|
317
|
+
J as Exchange,
|
|
318
|
+
S as ModelDocument,
|
|
319
|
+
se as NotSyncedError,
|
|
320
|
+
Y as OBJECT_MODEL_CAPABILITY,
|
|
321
|
+
ne as PropertyNotLoadedError,
|
|
322
|
+
ie as RequestContext,
|
|
323
|
+
x as RoomDocument,
|
|
324
|
+
O as advertiseCapabilitySets,
|
|
325
|
+
_ as capabilitySets,
|
|
326
|
+
F as createRoom,
|
|
327
|
+
X as exchangeBackend,
|
|
328
|
+
z as isModelPort,
|
|
329
|
+
p as kitDescriptor,
|
|
330
|
+
Q as kitModelBackend,
|
|
331
|
+
V as openDocument,
|
|
332
|
+
H as openRoom,
|
|
333
|
+
Z as portFromConnection,
|
|
334
|
+
ee as portFromEngine,
|
|
335
|
+
re as registerKit,
|
|
336
|
+
N as supports,
|
|
337
|
+
v as syncEndpoint,
|
|
338
|
+
k as webSocketTransport
|
|
339
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { r as e } from "../../chunks/kits-Cp51mDlw.js";
|
|
2
|
+
const i = e({ id: "kit.board", schema: { kdm: 1, kit: "kit.board", schemaVersion: 2, root: "Board", types: { Board: { batchOps: { "*": { direct: !0 } }, label: "title", derived: { pageCount: { description: "Number of pages used by the default name of a new page" }, structure: { description: "Fingerprint of ordered parent links, mind-map nodes and connector bindings; isolated objects are excluded" }, mapStructure: { description: "Fingerprint of mind-map nodes and ordered effective branches, independent of container membership" }, keys: { description: "Fingerprint of authoring keys on all pages" }, frameOrder: { description: "Frame ids in page stacking order for historical destination tie replay" } }, fields: { title: { kind: "string" }, size: { kind: "json", optional: !0 }, pages: { kind: "list", of: "Page" } } }, Page: { batchOps: { "*": { direct: !0 } }, label: "name", derived: { hierarchy: { description: "Fingerprint of this page's unordered parent links, independent of stacking and connector bindings" }, geometry: { description: "Content bounds of this page used by default content-relative placement" } }, fields: { name: { kind: "string" }, elements: { kind: "list", of: "Element" } } }, Element: { batchOps: { "*": { direct: !0 } }, label: "text", derived: { bounds: { description: "Own axis-aligned bounds; null for groups and connectors whose geometry reads other objects" }, frame: { description: "Unrotated frame rectangle for destination frame picking; null for other kinds" }, link: { description: "Workspace card target path, null for other elements" } }, fields: { kind: { kind: "enum", values: ["shape", "text", "stroke", "connector", "image", "card", "frame", "group"], readOnly: !0 }, position: { kind: "json", optional: !0, position: !0, members: { x: { minimum: -1e6, maximum: 1e6 }, y: { minimum: -1e6, maximum: 1e6 } } }, size: { kind: "json", optional: !0, members: { w: { minimum: 0, maximum: 1e5 }, h: { minimum: 0, maximum: 1e5 } } }, rotation: { kind: "number", optional: !0, minimum: -3600, maximum: 3600 }, locked: { kind: "boolean", optional: !0, label: "locked" }, parent: { kind: "ref", of: "Element", optional: !0, position: !0 }, key: { kind: "string", optional: !0, sample: !1 }, shapeType: { kind: "string", optional: !0 }, shapeStyle: { kind: "string", optional: !0 }, strokeColor: { kind: "string", optional: !0 }, fillColor: { kind: "string", optional: !0 }, fillStyle: { kind: "string", optional: !0 }, dashStyle: { kind: "string", optional: !0 }, strokeSize: { kind: "string", optional: !0 }, opacity: { kind: "number", optional: !0, minimum: 0, maximum: 1 }, roundness: { kind: "number", optional: !0, minimum: 0, maximum: 1e5 }, text: { kind: "text", marks: { bold: { expand: "after" }, italic: { expand: "after" }, link: { expand: "none" } } }, textFormat: { kind: "enum", values: ["plain", "markdown"], optional: !0 }, fontSize: { kind: "number", optional: !0, minimum: 1, maximum: 1e3 }, fontFamily: { kind: "enum", values: ["sans", "serif", "mono"], optional: !0 }, textAlign: { kind: "enum", values: ["left", "center", "right"], optional: !0 }, points: { kind: "json", optional: !0 }, start: { kind: "json", optional: !0 }, end: { kind: "json", optional: !0 }, waypoints: { kind: "json", optional: !0 }, labelPosition: { kind: "number", optional: !0, minimum: 0, maximum: 1 }, connectorType: { kind: "string", optional: !0 }, startArrowhead: { kind: "string", optional: !0 }, endArrowhead: { kind: "string", optional: !0 }, connectorRole: { kind: "string", optional: !0 }, mindMapBranchAxis: { kind: "string", optional: !0 }, mindMapBranchSide: { kind: "string", optional: !0 }, mindMapDirection: { kind: "string", optional: !0 }, mindMapCollapsed: { kind: "boolean", optional: !0, label: "collapsed" }, image: { kind: "blob", optional: !0 }, alt: { kind: "string", optional: !0 }, card: { kind: "json", optional: !0 }, sourceRefIds: { kind: "json", optional: !0 } } }, CommentThread: { batchOps: { "*": { direct: !0 } }, fields: { anchor: { kind: "json" }, resolved: { kind: "boolean", optional: !0 }, comments: { kind: "list", of: "Comment" } } }, Comment: { batchOps: { "*": { direct: !0 } }, fields: { author: { kind: "string" }, name: { kind: "string", optional: !0 }, body: { kind: "text" }, created: { kind: "string" } } } } } });
|
|
3
|
+
export {
|
|
4
|
+
i as boardKit
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { r as e } from "../../chunks/kits-Cp51mDlw.js";
|
|
2
|
+
const r = e({ id: "kit.cad", schema: { kdm: 1, kit: "kit.cad", schemaVersion: 3, root: "Drawing", types: { Drawing: { batchOps: { "*": { direct: !0 } }, derived: { constraintProviders: { premiseOnly: !0, description: "Transitive parameter providers consumed by the constraint solver." }, dimSync: { premiseOnly: !0, description: "Presence and HVal type of each dimension header variable consumed by style synchronization; values come from the selected style." }, layoutCanDelete: { premiseOnly: !0, description: "Whether deleting a layout can leave at least one remaining layout." }, centerLinetype: { premiseOnly: !0, description: "Identity of the CENTER linetype implicitly used by center marks and center lines, or null when absent." }, recordNames: { premiseOnly: !0, description: "Named-record identities by type and lowercase name for replaying discriminated RENAME addresses." }, queries: { premiseOnly: !0, description: "Ordered space contents and layers for replaying observed query membership without duplicating entity geometry in receipts." }, modelSelection: { premiseOnly: !0, description: "Model-space entity membership and selectable visibility/lock state for parameterless selections." }, layerMembers: { premiseOnly: !0, description: "Entity and viewport-reference membership per layer, keyed by hex-encoded lowercase name." }, groupTargets: { premiseOnly: !0, description: "Saved group identities, names and members for replaying UNGROUP targets." }, purge_all: { premiseOnly: !0, description: "Victims and values of cascading named purges; names held conservatively." }, purge_blocks: { premiseOnly: !0, description: "Block purge victims and values." }, purge_dimstyles: { premiseOnly: !0, description: "Dimension-style purge victims and values." }, purge_groups: { premiseOnly: !0, description: "Group purge victims and values." }, purge_layers: { premiseOnly: !0, description: "Layer purge victims and values." }, purge_linetypes: { premiseOnly: !0, description: "Linetype purge victims and values." }, purge_mleaderstyles: { premiseOnly: !0, description: "Multileader-style purge victims and values." }, purge_tablestyles: { premiseOnly: !0, description: "Table-style purge victims and values." }, purge_textstyles: { premiseOnly: !0, description: "Text-style purge victims and values." }, purge_zeroLength: { premiseOnly: !0, description: "Zero-length geometry purge victims and values." }, purge_emptyText: { premiseOnly: !0, description: "Empty-text purge victims and values." }, purge_other: { premiseOnly: !0, description: "No victims for purge types the engine does not implement." }, audit: { premiseOnly: !0, description: "Original and repaired objects from the engine's audit scan." }, history: { premiseOnly: !0, description: "Drawing content held by history operations; outside rereads preserve scoped undo histories." }, overkill: { premiseOnly: !0, description: "Duplicate-removal victims and values in each space." }, cutters: { premiseOnly: !0, description: "Visible supported cutting-edge membership in each drawing space." }, insertRefs: { premiseOnly: !0, description: "Direct insert-reference membership for attribute synchronization, excluding geometry and attribute values." }, texts: { premiseOnly: !0, description: "Text in model and paper spaces, excluding placement. FIND filters historical matches in the call's space." }, modelBounds: { description: "Model extents used to fit a new viewport." }, newVpLayers: { premiseOnly: !0, description: "Identities and names of layers frozen in new viewports." }, viewportSeed: { premiseOnly: !0, description: "Largest saved viewport number." }, nextLayoutName: { premiseOnly: !0, description: "First free automatically chosen layout name." }, nextGroupName: { premiseOnly: !0, description: "First free automatically chosen unnamed group name." }, layoutSeed: { premiseOnly: !0, description: "Largest layout tab order." } }, fields: { header: { kind: "map" }, recordIdsUsed: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, parametric: { kind: "json", optional: !0 }, layers: { kind: "map", owns: !0, of: "Layer" }, linetypes: { kind: "map", owns: !0, of: "Linetype" }, textStyles: { kind: "map", owns: !0, of: "TextStyle" }, dimStyles: { kind: "map", owns: !0, of: "DimStyle" }, mleaderStyles: { kind: "map", owns: !0, of: "MLeaderStyle" }, tableStyles: { kind: "map", owns: !0, of: "TableStyle" }, views: { kind: "map", owns: !0, of: "View" }, ucss: { kind: "map", owns: !0, of: "Ucs" }, layerStates: { kind: "map", owns: !0, of: "LayerState" }, groups: { kind: "map", owns: !0, of: "Group" }, plotStyleTables: { kind: "map", owns: !0, of: "PlotStyleTable" }, blocks: { kind: "map", owns: !0, of: "Block" }, layouts: { kind: "map", owns: !0, of: "Layout" }, model: { kind: "list", of: "Entity" }, constraints: { kind: "list", of: "Constraint" } } }, Layer: { batchOps: { "*": { direct: !0 } }, label: "name", derived: { canFreeze: { description: "Whether this layer is not current and may be frozen." } }, fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", optional: !0, readOnly: !0 } }, toolId: { field: "id", prefix: "layer:" } }, Linetype: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "linetype:" } }, TextStyle: { batchOps: { "*": { direct: !0 } }, label: "name", derived: { canDelete: { description: "Whether this style is neither protected, current nor used by an entity or auxiliary record." } }, fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "textstyle:" } }, DimStyle: { batchOps: { "*": { direct: !0 } }, label: "name", derived: { canDelete: { description: "Whether this style is neither protected, current nor used by an entity or auxiliary record." } }, fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "dimstyle:" } }, MLeaderStyle: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "mleaderstyle:" } }, TableStyle: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "tablestyle:" } }, View: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", optional: !0, readOnly: !0 } }, toolId: { field: "id", prefix: "view:" } }, Ucs: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "ucs:" } }, LayerState: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "layerstate:" } }, Group: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "map" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "group:" } }, PlotStyleTable: { batchOps: { "*": { direct: !0 } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", readOnly: !0 } }, toolId: { field: "id", prefix: "plotstyletable:" } }, Block: { batchOps: { "*": { direct: !0 } }, derived: { blockCenter: { premiseOnly: !0, description: "Native visible definition bounds center for a unit reference at the origin, or null when centering applies no offset; includes nested definitions and member-layer visibility." }, insertAttributes: { premiseOnly: !0, description: "Ordered nonconstant attribute definitions and the block base used to place copied attributes; ordinary drawing members are excluded." }, memberOrder: { premiseOnly: !0, description: "Ordered member identities, excluding carried child fields." } }, label: "name", fields: { data: { kind: "json" }, entities: { kind: "list", of: "Entity" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", optional: !0, readOnly: !0 } }, toolId: { field: "id", prefix: "block:" } }, Layout: { batchOps: { "*": { direct: !0 } }, derived: { chspaceViewport: { premiseOnly: !0, description: "The first valid projection viewport identity selected by CHSPACE, or null." }, memberOrder: { premiseOnly: !0, description: "Ordered member identities, excluding carried child fields." }, selection: { premiseOnly: !0, description: "This layout's entity membership and selectable visibility/lock state for parameterless selections." } }, label: "name", fields: { order: { kind: "number", sample: !1 }, data: { kind: "json" }, entities: { kind: "list", of: "Entity" }, id: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, name: { kind: "string", optional: !0, readOnly: !0 } }, toolId: { field: "id", prefix: "layout:" } }, Entity: { batchOps: { "*": { direct: !0 } }, text: "kind.value", label: "description", derived: { polylineCanClose: { premiseOnly: !0, description: "Whether a lightweight polyline has enough vertices for CLOSE to set its closed flag." }, linearDimension: { premiseOnly: !0, description: "Whether a dimension is linear or aligned and eligible for spacing." }, boundaryOutline: { premiseOnly: !0, description: "Sampled boundary input beyond finite-line endpoints and pick state; curves and infinite-line clipping retain exact outlines." }, dimOverride_scale: { premiseOnly: !0, description: "Observed per-dimension scale override, including absence." }, dimOverride_arrowSize: { premiseOnly: !0, description: "Observed per-dimension arrowSize override, including absence." }, dimOverride_extOffset: { premiseOnly: !0, description: "Observed per-dimension extOffset override, including absence." }, dimOverride_extExtend: { premiseOnly: !0, description: "Observed per-dimension extExtend override, including absence." }, dimOverride_textHeight: { premiseOnly: !0, description: "Observed per-dimension textHeight override, including absence." }, dimOverride_textGap: { premiseOnly: !0, description: "Observed per-dimension textGap override, including absence." }, dimOverride_decimals: { premiseOnly: !0, description: "Observed per-dimension decimals override, including absence." }, dimOverride_angularDecimals: { premiseOnly: !0, description: "Observed per-dimension angularDecimals override, including absence." }, dimOverride_linearFactor: { premiseOnly: !0, description: "Observed per-dimension linearFactor override, including absence." }, dimOverride_textAbove: { premiseOnly: !0, description: "Observed per-dimension textAbove override, including absence." }, dimOverride_textInsideHorizontal: { premiseOnly: !0, description: "Observed per-dimension textInsideHorizontal override, including absence." }, dimOverride_textOutsideHorizontal: { premiseOnly: !0, description: "Observed per-dimension textOutsideHorizontal override, including absence." }, dimOverride_arrowBlock: { premiseOnly: !0, description: "Observed per-dimension arrowBlock override, including absence." }, dimOverride_arrowBlock1: { premiseOnly: !0, description: "Observed per-dimension arrowBlock1 override, including absence." }, dimOverride_arrowBlock2: { premiseOnly: !0, description: "Observed per-dimension arrowBlock2 override, including absence." }, dimOverride_tickSize: { premiseOnly: !0, description: "Observed per-dimension tickSize override, including absence." }, dimOverride_dimLineColor: { premiseOnly: !0, description: "Observed per-dimension dimLineColor override, including absence." }, dimOverride_extLineColor: { premiseOnly: !0, description: "Observed per-dimension extLineColor override, including absence." }, dimOverride_textColor: { premiseOnly: !0, description: "Observed per-dimension textColor override, including absence." }, dimOverride_textStyle: { premiseOnly: !0, description: "Observed per-dimension textStyle override, including absence." }, dimOverride_post: { premiseOnly: !0, description: "Observed per-dimension post override, including absence." }, dimOverride_centerMark: { premiseOnly: !0, description: "Observed per-dimension centerMark override, including absence." }, dimOverride_zeroSuppression: { premiseOnly: !0, description: "Observed per-dimension zeroSuppression override, including absence." }, dimOverride_linearUnit: { premiseOnly: !0, description: "Observed per-dimension linearUnit override, including absence." }, dimOverride_tolerance: { premiseOnly: !0, description: "Observed per-dimension tolerance override, including absence." }, dimOverride_tolPlus: { premiseOnly: !0, description: "Observed per-dimension tolPlus override, including absence." }, dimOverride_tolMinus: { premiseOnly: !0, description: "Observed per-dimension tolMinus override, including absence." }, dimOverride_baselineSpacing: { premiseOnly: !0, description: "Observed per-dimension baselineSpacing override, including absence." }, dimOverride_dimLineExtend: { premiseOnly: !0, description: "Observed per-dimension dimLineExtend override, including absence." }, dimOverride_textJust: { premiseOnly: !0, description: "Observed per-dimension textJust override, including absence." }, dimOverride_round: { premiseOnly: !0, description: "Observed per-dimension round override, including absence." }, dimOverride_decimalSeparator: { premiseOnly: !0, description: "Observed per-dimension decimalSeparator override, including absence." }, dimOverride_fractionFormat: { premiseOnly: !0, description: "Observed per-dimension fractionFormat override, including absence." }, dimOverride_limits: { premiseOnly: !0, description: "Observed per-dimension limits override, including absence." }, dimOverride_tolDecimals: { premiseOnly: !0, description: "Observed per-dimension tolDecimals override, including absence." }, dimOverride_tolScale: { premiseOnly: !0, description: "Observed per-dimension tolScale override, including absence." }, dimOverride_tolZeroSuppression: { premiseOnly: !0, description: "Observed per-dimension tolZeroSuppression override, including absence." }, dimOverride_alt: { premiseOnly: !0, description: "Observed per-dimension alt override, including absence." }, dimOverride_altFactor: { premiseOnly: !0, description: "Observed per-dimension altFactor override, including absence." }, dimOverride_altDecimals: { premiseOnly: !0, description: "Observed per-dimension altDecimals override, including absence." }, dimOverride_altPost: { premiseOnly: !0, description: "Observed per-dimension altPost override, including absence." }, dimOverride_altRound: { premiseOnly: !0, description: "Observed per-dimension altRound override, including absence." }, dimOverride_altUnit: { premiseOnly: !0, description: "Observed per-dimension altUnit override, including absence." }, dimOverride_altZeroSuppression: { premiseOnly: !0, description: "Observed per-dimension altZeroSuppression override, including absence." }, dimOverride_angularUnit: { premiseOnly: !0, description: "Observed per-dimension angularUnit override, including absence." }, dimOverride_suppressExt1: { premiseOnly: !0, description: "Observed per-dimension suppressExt1 override, including absence." }, dimOverride_suppressExt2: { premiseOnly: !0, description: "Observed per-dimension suppressExt2 override, including absence." }, groups: { premiseOnly: !0, description: "Saved identities and content of groups containing this entity; holds handle-driven UNGROUP discovery." }, attributes: { premiseOnly: !0, description: "Case-insensitive attribute tag/value/constant facts in a sorted selector list, excluding text placement and appearance." }, words: { premiseOnly: !0, description: "Text strings held by FIND matches, excluding geometry and placement." }, solve: { premiseOnly: !0, description: "Geometry-connected constraints and the expression providers they use, excluding disconnected geometry and parameters." }, locked: { premiseOnly: !0, description: "Whether the entity's current layer is locked; a rename preserving this state does not change the fact." }, visible: { premiseOnly: !0, description: "Effective entity visibility, independent of rank and owning space." }, space: { premiseOnly: !0, description: "Owning model or paper space, independent of rank and visibility." }, pick: { premiseOnly: !0, description: "Effective visibility, draw order, owning space and referenced block definitions. Spatial replay combines this metadata with the stored kind." }, grid: { premiseOnly: !0, description: "Table row and column counts and merge anchors, excluding cell text and placement." } }, fields: { description: { kind: "string", optional: !0, readOnly: !0, sample: !1 }, handle: { kind: "string", optional: !0, readOnly: !0 }, common: { kind: "json", members: { ltscale: { minimum: 0 } } }, constraintState: { kind: "json", optional: !0, readOnly: !0, sample: !1 }, kind: { kind: "json" } }, toolId: { field: "handle" } }, Constraint: { batchOps: { "*": { direct: !0 } }, fields: { id: { kind: "integer", optional: !0, readOnly: !0 }, kind: { kind: "json" }, refs: { kind: "json" }, name: { kind: "string", optional: !0 }, expr: { kind: "string", optional: !0 } }, toolId: { field: "id", prefix: "constraint:" } } } } });
|
|
3
|
+
export {
|
|
4
|
+
r as cadKit
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { r as e } from "../../chunks/kits-Cp51mDlw.js";
|
|
2
|
+
const n = e({ id: "kit.design", schema: { kdm: 1, kit: "kit.design", schemaVersion: 4, root: "Design", types: { Design: { batchOps: { "*": { direct: !0 } }, derived: { history: { description: "Ordered saved-version identities, names, descriptions and timestamps." }, versionIds: { description: "Ordered saved-version identities, independent of labels and snapshot contents." }, imagePresetCount: { description: "Number of saved image presets, checked against capacity when appending a new named preset." }, codeOwners: { description: "Component and set owners grouped by hashed name for code-link import resolution." }, snapshots: { description: "Saved-version identities and SHA-256 fingerprints of snapshot documents and image bytes." }, defaultCondition: { description: "The engine's implicit prototype condition, including the chosen variable and resolved starting value." }, branches: { description: "Saved branch metadata and fingerprints of bases, heads and history, including image bytes." }, assets: { description: "Identities of publishable local assets." }, textNodes: { description: "Identities of all text layers used by global text-resource commands." }, variableNames: { description: "Collection eligibility and variable names/types used when an import matches destinations by name." }, libraryUsage: { description: "Local library user membership, reference inputs and variable alias/extension graph used by refresh, swap and pruning." }, published: { description: "The file's published library snapshot." } }, fields: { settings: { kind: "map" }, nodes: { kind: "tree", of: "Node" }, styles: { kind: "list", of: "Style" }, collections: { kind: "list", of: "Collection" }, variables: { kind: "list", of: "Variable" }, images: { kind: "list", of: "Image" }, comments: { kind: "list", of: "CommentThread" }, libraries: { kind: "list", of: "Library" }, libraryStore: { kind: "tree", of: "Node" }, libraryCopies: { kind: "list", of: "LibraryCopy" } } }, Node: { batchOps: { "*": { direct: !0 } }, label: "name", derived: { bounds: { description: "Local painted bounds before ancestor transforms, including stroke and effects." }, boundVariables: { description: "Variable bindings with a stable empty value, independent of style links and mode overrides." }, styleLinks: { description: "Style links with stable empty values, independent of variable bindings and mode overrides." }, hierarchy: { description: "Parent id, sibling index and child count, derived from the document tree." }, sourceOpacity: { description: "The source layer's opacity and opacity binding, used by inherited instance values." }, width: { description: "Local width, independent of height, translation and rotation." }, height: { description: "Local height, independent of width, translation and rotation." }, textNodes: { description: "Sorted identities of text layers in this layer's subtree." }, children: { description: "Ordered identities of this layer's direct children." }, transform: { description: "Local affine transform, independent of width and height." } }, fields: { key: { kind: "integer", optional: !0, readOnly: !0 }, name: { kind: "string", optional: !0 }, visible: { kind: "boolean", optional: !0, label: "visible" }, locked: { kind: "boolean", optional: !0, label: "locked" }, opacity: { kind: "number", optional: !0, minimum: 0, maximum: 1 }, kind: { kind: "json", sample: !1 }, frame: { kind: "json", optional: !0, position: !0 }, fills: { kind: "json", optional: !0 }, strokes: { kind: "json", optional: !0 }, stroke: { kind: "json", optional: !0 }, effects: { kind: "json", optional: !0 }, corners: { kind: "json", optional: !0 }, layout: { kind: "json", optional: !0 }, childLayout: { kind: "json", optional: !0 }, constraints: { kind: "json", optional: !0 }, prototype: { kind: "json", optional: !0 }, bindings: { kind: "json", optional: !0 }, instance: { kind: "json", optional: !0 }, mirrors: { kind: "integer", optional: !0, sample: !1 }, dev: { kind: "json", optional: !0 }, props: { kind: "json", optional: !0 } }, toolId: { field: "key" } }, Style: { batchOps: { "*": { direct: !0 } }, label: "name", toolId: { field: "key" }, fields: { key: { kind: "string", readOnly: !0 }, name: { kind: "string", optional: !0 }, value: { kind: "json" }, props: { kind: "json", optional: !0 } } }, Collection: { batchOps: { "*": { direct: !0 } }, label: "name", toolId: { field: "key" }, fields: { key: { kind: "string", readOnly: !0 }, name: { kind: "string", optional: !0 }, modes: { kind: "list", of: "Mode" }, props: { kind: "json", optional: !0 } } }, Mode: { batchOps: { "*": { direct: !0 } }, label: "name", toolId: { field: "key" }, fields: { key: { kind: "string", readOnly: !0 }, name: { kind: "string", optional: !0 } } }, Variable: { batchOps: { "*": { direct: !0 } }, label: "name", toolId: { field: "key" }, fields: { key: { kind: "string", readOnly: !0 }, name: { kind: "string", optional: !0 }, collection: { kind: "string", optional: !0, sample: !1 }, type: { kind: "string", optional: !0, sample: !1 }, values: { kind: "map" }, props: { kind: "json", optional: !0 } } }, Library: { batchOps: { "*": { direct: !0 } }, label: "name", toolId: { field: "key" }, fields: { key: { kind: "string", readOnly: !0 }, name: { kind: "string", optional: !0 }, path: { kind: "string", optional: !0, sample: !1 }, version: { kind: "integer", optional: !0, minimum: 0, sample: !1 } } }, LibraryCopy: { readOnly: !0, fields: { kind: { kind: "string" }, local: { kind: "string" }, record: { kind: "json" } } }, Image: { batchOps: { "*": { direct: !0 } }, toolId: { field: "key" }, fields: { key: { kind: "string", readOnly: !0 }, blob: { kind: "blob", optional: !0 }, size: { kind: "json", optional: !0 } } }, CommentThread: { batchOps: { "*": { direct: !0 } }, toolId: { field: "key" }, fields: { key: { kind: "integer", readOnly: !0 }, anchor: { kind: "json" }, resolved: { kind: "boolean", optional: !0, label: "resolved" }, comments: { kind: "list", of: "Comment" } } }, Comment: { batchOps: { "*": { direct: !0 } }, label: "body", fields: { author: { kind: "string" }, name: { kind: "string", optional: !0 }, body: { kind: "text" }, created: { kind: "string", sample: !1 }, edited: { kind: "integer", optional: !0, minimum: 0, sample: !1 }, reactions: { kind: "json", optional: !0 }, key: { kind: "integer", optional: !0, readOnly: !0 } } } } } });
|
|
3
|
+
export {
|
|
4
|
+
n as designKit
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { r as e } from "../../chunks/kits-Cp51mDlw.js";
|
|
2
|
+
const n = e({ id: "kit.doc", schema: { kdm: 1, kit: "kit.doc", schemaVersion: 6, root: "Document", types: { Document: { batchOps: { "*": { direct: !0 } }, derived: { commentCount: { description: "the number of comments, including unanchored comments and replies; every document inspector report consumes this count", premiseOnly: !0 }, inkIds: { description: "the sorted set of ink stroke ids across all stories; drawing.ink compares this set before and after insertion", premiseOnly: !0 }, drawingIds: { description: "the sorted set of numbered inline ids, including group member ids; drawing commands scan these ids for allocation and lookup", premiseOnly: !0 }, drawingFrames: { description: "numbered inline ids and their stored frames in story order; drawing stack and connector commands consume this index", premiseOnly: !0 }, paraIds: { description: "the sorted set of paragraph and row ids in body and parts, as a fingerprint; fragment insertion reads this set to clear copied ids that are still in use", premiseOnly: !0 }, bookmarks: { description: "the body's bookmark names, paragraph ids and offsets, in body order, as a fingerprint; replacing a bookmark depends on its presence and anchors, not unrelated text", premiseOnly: !0 } }, fields: { settings: { kind: "json", optional: !0 }, core: { kind: "json", optional: !0 }, sources: { kind: "json", optional: !0 }, customProps: { kind: "json", optional: !0 }, lastSection: { kind: "json", optional: !0 }, styles: { kind: "json", optional: !0 }, numbering: { kind: "json", optional: !0 }, lists: { kind: "map" }, passthrough: { kind: "json", optional: !0, readOnly: !0 }, body: { kind: "list", of: "Block" }, parts: { kind: "list", of: "Part" }, comments: { kind: "list", of: "Comment" }, revisions: { kind: "list", of: "Revision" }, media: { kind: "list", of: "Media" } } }, Block: { batchOps: { "*": { direct: !0 } }, toolId: { field: "id" }, derived: { objects: { description: "the drawing objects, pictures, charts and equations anchored in the paragraph (their kind, frame and look), as a fingerprint: another program's change of one is told by a reread of the file only through it", premiseOnly: !0 }, shapeFrames: { description: "the numbered shape and graphic frames anchored in this paragraph, as a fingerprint; rotation and wrapping consume these frames without consuming appearance", premiseOnly: !0 }, layout: { description: "where the paragraph is laid out (page geometry, line geometry and inline object frames/origins), as a fingerprint: what a command that reads the layout (page numbers, what lies at a point of a page, a drawing's frame) rests on, which no field holds", premiseOnly: !0 }, frameValidity: { description: "whether each numbered object anchored in this paragraph passes drawing write_back frame validation; format and text preserve frame coordinates, so ordinary valid reflow does not change this premise", premiseOnly: !0 }, inkCount: { description: "counts of ink strokes anchored in this paragraph by laid-out page; the drawing limit consumes counts without reading stroke appearance", premiseOnly: !0 }, inkGeometry: { description: "ink strokes anchored in this paragraph, including their ids, offsets, laid-out pages/rectangles, freeform geometry, color and pen width; erasers consume this even when no current stroke is hit", premiseOnly: !0 }, comments: { description: "the comment threads whose range starts in the paragraph, each with its comments (author, date, text, parent, resolved flag) and body anchor positions, as a fingerprint: a thread is held by no field of the document, so another program's change of one is told by a reread of the file only through it", premiseOnly: !0 } }, fields: { id: { kind: "string", optional: !0, readOnly: !0 }, kind: { kind: "enum", values: ["para", "table"], sample: !1 }, para: { kind: "json", optional: !0 }, text: { kind: "text", marks: { style: { expand: "after" }, font: { expand: "after" }, size: { expand: "after" }, bold: { expand: "after" }, italic: { expand: "after" }, underline: { expand: "after" }, underlineColor: { expand: "after" }, strike: { expand: "after" }, doubleStrike: { expand: "after" }, color: { expand: "after" }, highlight: { expand: "after" }, shading: { expand: "after" }, border: { expand: "after" }, vertAlign: { expand: "after" }, caps: { expand: "after" }, smallCaps: { expand: "after" }, hidden: { expand: "after" }, spacing: { expand: "after" }, scale: { expand: "after" }, fitText: { expand: "after" }, eastAsianLayout: { expand: "after" }, position: { expand: "after" }, kern: { expand: "after" }, outline: { expand: "after" }, shadow: { expand: "after" }, emboss: { expand: "after" }, engrave: { expand: "after" }, lang: { expand: "after" }, noProof: { expand: "after" }, rtl: { expand: "after" }, cs: { expand: "after" }, fontCs: { expand: "after" }, fontEa: { expand: "after" }, fontHint: { expand: "after" }, sizeCs: { expand: "after" }, boldCs: { expand: "after" }, italicCs: { expand: "after" }, langBidi: { expand: "after" }, langEa: { expand: "after" }, textEffects: { expand: "after" }, colorTheme: { expand: "after" }, shadingTheme: { expand: "after" }, fontTheme: { expand: "after" }, link: { expand: "none" }, ins: { expand: "none" }, del: { expand: "none" }, fmtChange: { expand: "none" }, control: { expand: "none" }, object: { expand: "none" }, extra: { expand: "after" } } }, table: { kind: "ref", of: "Table", optional: !0, owns: !0 } } }, Inline: { batchOps: { "*": { direct: !0 } }, toolId: { field: "uid" }, fields: { uid: { kind: "integer", optional: !0, readOnly: !0 }, value: { kind: "json", optional: !0 }, frame: { kind: "json", optional: !0 }, look: { kind: "map" }, chart: { kind: "ref", of: "Chart", optional: !0, owns: !0 } } }, Chart: { batchOps: { "*": { direct: !0 } }, fields: { parts: { kind: "map" } } }, Table: { batchOps: { "*": { direct: !0 } }, fields: { props: { kind: "json", optional: !0 }, grid: { kind: "json", optional: !0 }, rows: { kind: "list", of: "Row" } } }, Row: { batchOps: { "*": { direct: !0 } }, toolId: { field: "id" }, derived: { tableOrder: { description: "the containing table's ordered row ids, as a fingerprint; anchored to a stable row even when sorting changes the table's first-row tool id", premiseOnly: !0 } }, fields: { id: { kind: "string", optional: !0, readOnly: !0 }, props: { kind: "json", optional: !0 }, cells: { kind: "list", of: "Cell" } } }, Cell: { batchOps: { "*": { direct: !0 } }, fields: { props: { kind: "json", optional: !0 }, blocks: { kind: "list", of: "Block" } } }, Part: { batchOps: { "*": { direct: !0 } }, toolId: { field: "id", prefix: "part:" }, fields: { id: { kind: "string", optional: !0, readOnly: !0 }, kind: { kind: "enum", values: ["header", "footer", "footnote", "endnote", "comment", "textbox"], sample: !1 }, props: { kind: "json", optional: !0 }, blocks: { kind: "list", of: "Block" } } }, CommentThread: { batchOps: { "*": { direct: !0 } }, toolId: { field: "id", prefix: "thread:" }, fields: { id: { kind: "string", optional: !0, readOnly: !0 }, anchor: { kind: "json" }, resolved: { kind: "boolean", optional: !0 }, comments: { kind: "list", of: "Comment" } } }, Comment: { batchOps: { "*": { direct: !0 } }, toolId: { field: "id", prefix: "comment:" }, fields: { id: { kind: "string", optional: !0, readOnly: !0 }, author: { kind: "string" }, name: { kind: "string", optional: !0 }, body: { kind: "text" }, created: { kind: "string" }, initials: { kind: "string", optional: !0 }, props: { kind: "json", optional: !0 }, part: { kind: "ref", of: "Part", optional: !0 }, parent: { kind: "ref", of: "Comment", optional: !0 } } }, Revision: { batchOps: { "*": { direct: !0 } }, fields: { props: { kind: "json", optional: !0 } } }, Media: { batchOps: { "*": { direct: !0 } }, fields: { key: { kind: "string" }, blob: { kind: "blob", optional: !0 } } } } } });
|
|
3
|
+
export {
|
|
4
|
+
n as docKit
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { r as e } from "../../chunks/kits-Cp51mDlw.js";
|
|
2
|
+
const t = e({ id: "kit.film", schema: { kdm: 1, kit: "kit.film", schemaVersion: 3, root: "Project", types: { SearchPremises: { projected: !0, readOnly: !0, fields: {}, derived: { project: { description: "Searchable displayed column text and candidate order used by project queries.", premiseOnly: !0 } } }, EditorPremises: { projected: !0, readOnly: !0, fields: { selection: { kind: "json" } } }, ItemPremises: { projected: !0, readOnly: !0, fields: { items: { kind: "json" } } }, PremiseFact: { projected: !0, readOnly: !0, fields: { key: { kind: "string", readOnly: !0 }, value: { kind: "json", optional: !0 } }, toolId: { field: "key" } }, Project: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, derived: { placementOptions: { description: "Local media and linked-placement options consumed by compound sound edits.", premiseOnly: !0 }, importOptions: { description: "Local media import, analysis and label options consumed by import dispatch.", premiseOnly: !0 }, voiceoverOptions: { description: "Recording settings, input hardware and active take used by voice-over commands.", premiseOnly: !0 }, binNames: { description: "Distinct child-bin names used to choose an unused default bin name.", premiseOnly: !0 }, subclipOptions: { description: "Still-image duration and unit used for default subclip ranges.", premiseOnly: !0 }, itemIds: { description: "Ordered project item identities selected by Select All Project Items.", premiseOnly: !0 }, renameSelection: { description: "First timeline clip used by an implicit rename.", premiseOnly: !0, onDemand: !0 }, interpolationSelection: { description: "Timeline clips used by implicit time interpolation.", premiseOnly: !0, onDemand: !0 }, sequenceCount: { description: "Number of sequence items used by the unnamed new-sequence default.", premiseOnly: !0 }, processedBin: { description: "Identity of the first root bin named Processed Clips, or null.", premiseOnly: !0 }, metadataColumns: { description: "Canonical project metadata column names, excluding internal layout bookkeeping.", premiseOnly: !0 }, fontUses: { description: "Replace Fonts recipient and assignment facts indexed by canonical family and style.", premiseOnly: !0 } }, fields: { name: { kind: "string" }, settings: { kind: "json" }, bins: { kind: "tree", of: "Bin" }, docState: { kind: "json", optional: !0 } } }, Bin: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, derived: { entryOrder: { description: "Ordered direct item ids, independent of the items' content.", premiseOnly: !0 } }, fields: { name: { kind: "string" }, entries: { kind: "list", of: "Item" }, binId: { kind: "integer", optional: !0, readOnly: !0 } }, toolId: { field: "binId" } }, Item: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, derived: { clipIds: { description: "Ordered sequence clip identities selected by Select All.", premiseOnly: !0 }, offlineEligible: { description: "Whether this source resolves to offline media for Edit Offline target selection.", premiseOnly: !0 }, audioClipIds: { description: "Ordered audio clip identities considered for ducking triggers, independent of empty lanes and clip names.", premiseOnly: !0 }, cameraMap: { description: "Effective ordered camera video/audio identities and enabled flags, independent of inferred or explicit representation and display names.", premiseOnly: !0 }, sourceStart: { description: "Source monitor lower bound used by navigation.", premiseOnly: !0 }, sourceEnd: { description: "Source monitor exclusive upper bound used by navigation.", premiseOnly: !0 }, sourceRate: { description: "Source monitor frame rate used by navigation.", premiseOnly: !0 }, sourceMarkIn: { description: "Source monitor In mark used by navigation.", premiseOnly: !0 }, sourceMarkOut: { description: "Source monitor Out mark used by navigation.", premiseOnly: !0 }, sourceMedia: { description: "Resolved Source marker owner identity.", premiseOnly: !0 }, sourceMarkerStarts: { description: "Source marker destinations after filtering a subclip's range.", premiseOnly: !0 }, editPoints: { description: "Sorted unique sequence clip edges used by edit-point navigation.", premiseOnly: !0 }, mixerRoutes: { description: "Pairwise eligibility for a strip to feed a named submix; bounded to mixers with at most 64 ordinary strips, null beyond that cap.", premiseOnly: !0 }, metadataVideoReadOnly: { description: "Whether Video Info and Color Space are read-only metadata for this item.", premiseOnly: !0 }, metadataVideoCodecReadOnly: { description: "Whether Video Codec is read-only metadata for this item.", premiseOnly: !0 }, metadataAudioReadOnly: { description: "Whether Audio Info and Audio Codec are read-only metadata for this item.", premiseOnly: !0 }, metadataMarksReadOnly: { description: "Whether both ordinary marks exist, making In Point and Out Point read-only metadata.", premiseOnly: !0 }, parentBin: { description: "First containing bin used as the merged clip destination, or null.", premiseOnly: !0, onDemand: !0 }, projectOrder: { description: "Index of this item in the bins' depth-first order, which Automate to Sequence's sort ordering reads, independent of the items' content.", premiseOnly: !0 }, sourceGraphic: { description: "This source item's shared graphic definition and sorted recipient clip identities.", premiseOnly: !0 }, sourceGraphicDefinition: { description: "Shared layers and graphic metadata copied into a newly placed video clip, without recipient identities.", premiseOnly: !0 }, sourceAudioPlacement: { description: "Effective audio stream/channel placements computed by the shared command planner, empty for silent media and null for nonmedia.", premiseOnly: !0 }, newSequenceVideoMaterial: { description: "Copied video clip and transition identities by nonempty lane over a new sequence source’s full duration, independent of monitor marks.", premiseOnly: !0 }, newSequenceAudioMaterial: { description: "Copied audio clip and transition identities by nonempty lane over a new sequence source’s full duration, independent of monitor marks.", premiseOnly: !0 }, sourceHasAudio: { description: "Whether a sequence source has any audio track (nest placement capability).", premiseOnly: !0 }, sourceVideoMaterial: { description: "Copied video clip and transition identities by nonempty Source lane in its actual marked/split copy range.", premiseOnly: !0 }, sourceAudioMaterial: { description: "Copied audio clip and transition identities by nonempty Source lane in its actual marked/split copy range.", premiseOnly: !0 }, allJoinPlan: { description: "Survivors, removed pieces and affected transition identities of every unlocked through join.", premiseOnly: !0 }, captionTrackOrder: { description: "Ordered caption track identities, without descendant caption content.", premiseOnly: !0 }, captionTrackCount: { description: "Number of caption tracks used by the ordinal returned for a newly appended track.", premiseOnly: !0 }, videoTrackOrder: { description: "Ordered video track identities, without audio tracks or descendant content.", premiseOnly: !0 }, videoTrackNames: { description: "Outside name assignments to video lanes observed at the checkpoint.", premiseOnly: !0, onDemand: !0 }, audioTrackNames: { description: "Outside name assignments to audio lanes observed at the checkpoint.", premiseOnly: !0, onDemand: !0 }, submixTrackNames: { description: "Outside name assignments to submix lanes observed at the checkpoint.", premiseOnly: !0, onDemand: !0 }, audioTrackOrder: { description: "Ordered audio track identities, without video tracks or descendant content.", premiseOnly: !0 }, submixTrackOrder: { description: "Ordered submix track identities, without other tracks or descendant content.", premiseOnly: !0 }, markedMaterial: { description: "Track and clip identities intersecting stored inclusive In/Out marks, excluding empty tracks.", premiseOnly: !0 }, markedCaptionMaterial: { description: "Caption identities consumed by Extract's stored marked range.", premiseOnly: !0 }, motionScale: { description: "Video clip Motion parameters and refit switches consumed by proportional frame-size scaling.", premiseOnly: !0 } }, fields: { kind: { kind: "enum", values: ["media", "sequence", "subclip", "adjustment", "graphic"], sample: !1 }, name: { kind: "string" }, props: { kind: "json", optional: !0 }, sequence: { kind: "ref", of: "Sequence", optional: !0, owns: !0 }, itemId: { kind: "integer", optional: !0, readOnly: !0 } }, toolId: { field: "itemId" } }, Sequence: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, fields: { settings: { kind: "json" }, duration: { kind: "string", optional: !0, readOnly: !0, position: !0 }, videoTracks: { kind: "list", of: "Track" }, audioTracks: { kind: "list", of: "Track" }, submixTracks: { kind: "list", of: "Track" }, captionTracks: { kind: "json", optional: !0 }, markers: { kind: "json", optional: !0 }, mixer: { kind: "json", optional: !0 }, masterVolumeDb: { kind: "number", optional: !0, minimum: -96, maximum: 15 } } }, Track: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, derived: { submixDependants: { description: "Strip identities and send positions that a submix deletion reroutes or removes.", premiseOnly: !0 }, joinLock: { description: "Lock eligibility used by historical through-join membership.", premiseOnly: !0 }, nextVideoTrack: { description: "Identity of this video track’s next video sibling, or null; independent of tracks before it and clip content.", premiseOnly: !0 }, nextAudioTrack: { description: "Identity of this audio track’s next audio sibling, or null; independent of tracks before it and clip content.", premiseOnly: !0 }, clipOrder: { description: "Ordered direct clip ids, without descendant content.", premiseOnly: !0 }, editEdges: { description: "Ordered clip identities, starts and durations searched by geometry edits, without appearance.", premiseOnly: !0 }, editPoints: { description: "Sorted unique track clip edges used by targeted edit-point navigation.", premiseOnly: !0 } }, fields: { props: { kind: "json", optional: !0 }, volumeDb: { kind: "number", optional: !0, minimum: -96, maximum: 15 }, pan: { kind: "number", optional: !0, minimum: -100, maximum: 100 }, effects: { kind: "list", of: "Effect" }, clips: { kind: "list", of: "Clip" }, transitions: { kind: "list", of: "Transition" }, trackId: { kind: "integer", optional: !0, readOnly: !0 } }, toolId: { field: "trackId" }, label: "props.name" }, Clip: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, derived: { joinInput: { description: "Bounded predicate values and owner used to reconstruct historical through-join recipients.", premiseOnly: !0 }, assignedStart: { description: "Start assigned by a command, held as content for same-field protection.", premiseOnly: !0 }, singleJoinPlan: { description: "Survivor, removed pieces and affected transition identities for a single named through join.", premiseOnly: !0 }, linkedGroup: { description: "Least recipient clip id representing this clip's linked group, or null.", premiseOnly: !0 }, linkedMembers: { description: "Sorted recipient ids on the group's least clip id; null on other clips.", premiseOnly: !0 } }, fields: { item: { kind: "ref", of: "Item", optional: !0 }, missingItem: { kind: "integer", optional: !0, readOnly: !0 }, start: { kind: "string", position: !0, display: { kind: "time", perSecond: 254016e6 } }, duration: { kind: "string", position: !0, display: { kind: "time", perSecond: 254016e6 } }, sourceIn: { kind: "string", display: { kind: "time", perSecond: 254016e6 } }, speed: { kind: "number", minimum: 0 }, reverse: { kind: "boolean" }, link: { kind: "string", optional: !0 }, group: { kind: "string", optional: !0 }, gain: { kind: "json", optional: !0 }, markers: { kind: "json", optional: !0 }, props: { kind: "json", optional: !0 }, effects: { kind: "list", of: "Effect" }, clipId: { kind: "integer", optional: !0, readOnly: !0, position: !0 } }, toolId: { field: "clipId" }, label: "props.name" }, Effect: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, fields: { def: { kind: "string", readOnly: !0, sample: !1 }, params: { kind: "json", optional: !0 } } }, Transition: { batchIndependent: !0, batchOps: { "*": { direct: !0 } }, derived: { assignedStart: { description: "Start assigned by a command, held as content for same-field protection.", premiseOnly: !0 } }, fields: { effect: { kind: "ref", of: "Effect", owns: !0 }, start: { kind: "string", position: !0 }, duration: { kind: "string", position: !0 }, from: { kind: "ref", of: "Clip", optional: !0 }, to: { kind: "ref", of: "Clip", optional: !0 }, align: { kind: "string" }, reverse: { kind: "boolean" }, transitionId: { kind: "integer", optional: !0, readOnly: !0 } }, toolId: { field: "transitionId" } } } } });
|
|
3
|
+
export {
|
|
4
|
+
t as filmKit
|
|
5
|
+
};
|