@arbidocs/blocks 0.4.120 → 0.4.121
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/dist/agents/index.cjs +286 -286
- package/dist/agents/index.js +10 -10
- package/dist/calls/index.cjs +1 -1
- package/dist/calls/index.js +1 -1
- package/dist/{chunk-XFZ7HNPG.js → chunk-4MRQKBD2.js} +3 -3
- package/dist/{chunk-XFZ7HNPG.js.map → chunk-4MRQKBD2.js.map} +1 -1
- package/dist/{chunk-XSUOEJB3.cjs → chunk-5JVPLVDT.cjs} +3 -3
- package/dist/{chunk-XSUOEJB3.cjs.map → chunk-5JVPLVDT.cjs.map} +1 -1
- package/dist/{chunk-P5ST47VY.js → chunk-5Y7JRY7Y.js} +3 -3
- package/dist/{chunk-P5ST47VY.js.map → chunk-5Y7JRY7Y.js.map} +1 -1
- package/dist/{chunk-AY32GGKU.js → chunk-DFHDWO6U.js} +3 -3
- package/dist/{chunk-AY32GGKU.js.map → chunk-DFHDWO6U.js.map} +1 -1
- package/dist/{chunk-US5ASM4G.cjs → chunk-GIEHWHVO.cjs} +5 -5
- package/dist/{chunk-US5ASM4G.cjs.map → chunk-GIEHWHVO.cjs.map} +1 -1
- package/dist/{chunk-6Z7DLJU2.js → chunk-N5S6JG7S.js} +11 -11
- package/dist/{chunk-6Z7DLJU2.js.map → chunk-N5S6JG7S.js.map} +1 -1
- package/dist/{chunk-ZV3BKLFY.cjs → chunk-NYHGG2IA.cjs} +3 -3
- package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-NYHGG2IA.cjs.map} +1 -1
- package/dist/{chunk-FXUQZFAN.cjs → chunk-SCLMCCMU.cjs} +55 -55
- package/dist/{chunk-FXUQZFAN.cjs.map → chunk-SCLMCCMU.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +10 -10
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/index.cjs +39 -29
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +20 -10
- package/dist/connect/index.js.map +1 -1
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.js +3 -3
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +18 -18
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +406 -406
- package/dist/index.js +16 -16
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +11 -11
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +11 -11
- package/dist/shell/index.js +3 -3
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +2 -2
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +53 -53
- package/dist/workflow-canvas/index.js +10 -10
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +222 -12
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +82 -5
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +82 -5
- package/node_modules/@arbidocs/coedit/dist/commands.js +217 -13
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +2 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +2 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +27 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +27 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.cjs +27 -0
- package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.js +27 -0
- package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{port-ip7WByvH.d.cts → port-BbN5OZHx.d.cts} +24 -1
- package/node_modules/@arbidocs/coedit/dist/{port-ip7WByvH.d.ts → port-BbN5OZHx.d.ts} +24 -1
- package/node_modules/@arbidocs/coedit/dist/server.cjs +65 -2
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +65 -2
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
|
@@ -723,6 +723,10 @@ var NodeRegistry = class {
|
|
|
723
723
|
get(id) {
|
|
724
724
|
return this.entries.get(id);
|
|
725
725
|
}
|
|
726
|
+
/** Whether the id names a node, one inside a paragraph that is not open yet included. */
|
|
727
|
+
has(id) {
|
|
728
|
+
return (this.entries.get(id) ?? this.resolveInsideParagraph(id)) !== void 0;
|
|
729
|
+
}
|
|
726
730
|
require(id) {
|
|
727
731
|
let entry = this.entries.get(id) ?? this.resolveInsideParagraph(id);
|
|
728
732
|
if (!entry) throw new RegistryError(`journal names unknown node ${id}`);
|
|
@@ -1123,8 +1127,31 @@ function moveNode(registry, id, destinationId, destinationIndex) {
|
|
|
1123
1127
|
const destination = childrenOf(asLiveElement(destinationEntry.live, destinationId));
|
|
1124
1128
|
destination.insert(destinationIndex, [registry.toLive(copy)]);
|
|
1125
1129
|
}
|
|
1130
|
+
function renameNode(registry, id, qname) {
|
|
1131
|
+
const entry = registry.require(id);
|
|
1132
|
+
if ("plain" in entry) {
|
|
1133
|
+
const el = entry.plain;
|
|
1134
|
+
if (el.type !== "element") return false;
|
|
1135
|
+
el.ns = qname.namespaceUri;
|
|
1136
|
+
el.local = qname.localName;
|
|
1137
|
+
if (qname.prefix === void 0) delete el.prefix;
|
|
1138
|
+
else el.prefix = qname.prefix;
|
|
1139
|
+
registry.touch(el);
|
|
1140
|
+
return true;
|
|
1141
|
+
}
|
|
1142
|
+
const live = entry.live;
|
|
1143
|
+
if (live instanceof Y3.Text || isRichParagraph(live)) return false;
|
|
1144
|
+
if (live.get("ns") !== qname.namespaceUri) live.set("ns", qname.namespaceUri);
|
|
1145
|
+
if (live.get("local") !== qname.localName) live.set("local", qname.localName);
|
|
1146
|
+
if (qname.prefix === void 0) {
|
|
1147
|
+
if (live.has("prefix")) live.delete("prefix");
|
|
1148
|
+
} else if (live.get("prefix") !== qname.prefix) live.set("prefix", qname.prefix);
|
|
1149
|
+
return true;
|
|
1150
|
+
}
|
|
1126
1151
|
function putNode(registry, effect) {
|
|
1127
1152
|
const d = effect.descriptor;
|
|
1153
|
+
if (d.kind !== "textValue" && registry.has(d.logicalId) && renameNode(registry, d.logicalId, d.qname))
|
|
1154
|
+
return;
|
|
1128
1155
|
if (d.kind === "textValue") {
|
|
1129
1156
|
registry.registerPlain({ type: "text", id: d.logicalId, value: "" });
|
|
1130
1157
|
return;
|