@superdoc/cli 0.36.1-next.5 → 0.36.1-next.6
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/index.js +103 -22
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -330867,13 +330867,21 @@ function mirrorStoryBlocksFromSession(input) {
|
|
|
330867
330867
|
});
|
|
330868
330868
|
}
|
|
330869
330869
|
syncBlockPayloads(input.doc, payloads);
|
|
330870
|
-
} else
|
|
330871
|
-
|
|
330872
|
-
|
|
330873
|
-
|
|
330874
|
-
|
|
330875
|
-
|
|
330876
|
-
|
|
330870
|
+
} else {
|
|
330871
|
+
const physicallyMerged = input.prepared.semanticDelta.invalidatedRefs.some((ref5) => ref5.kind === "block" && ref5.storyId === input.storyId && ref5.nodeId === source.second.paraId);
|
|
330872
|
+
if (physicallyMerged) {
|
|
330873
|
+
if (findBlockMap(input.doc, source.first.paraId) && findBlockMap(input.doc, source.second.paraId)) {
|
|
330874
|
+
mergeBlocks({
|
|
330875
|
+
doc: input.doc,
|
|
330876
|
+
firstBlockId: source.first.paraId,
|
|
330877
|
+
secondBlockId: source.second.paraId,
|
|
330878
|
+
origin: STORY_SURFACE_BACKEND_ORIGIN
|
|
330879
|
+
});
|
|
330880
|
+
}
|
|
330881
|
+
syncBlocksFromSession(input.session, input.storyId, input.doc, [source.first.paraId]);
|
|
330882
|
+
} else {
|
|
330883
|
+
syncBlocksFromSession(input.session, input.storyId, input.doc, input.extension.targetBlockIds);
|
|
330884
|
+
}
|
|
330877
330885
|
}
|
|
330878
330886
|
writeParagraphMembershipTableOverlaysFromSession(input.session, input.prepared, input.storyId, input.doc, [source.first.paraId, source.second.paraId], "paragraph.merge");
|
|
330879
330887
|
return;
|
|
@@ -331975,6 +331983,14 @@ var init_story_surface_session_sync = __esm(() => {
|
|
|
331975
331983
|
});
|
|
331976
331984
|
|
|
331977
331985
|
// ../../../v2/collaboration-v2/dist/backend/story-surface-execution-backend.js
|
|
331986
|
+
function trackedStoryTextRequiresMergedCarrierSync(validation) {
|
|
331987
|
+
if (!validation || validation.source.changeMode !== "tracked")
|
|
331988
|
+
return false;
|
|
331989
|
+
const authorsText = validation.trackedInsert != null || validation.trackedInsertContinuation === true || (validation.trackedRefinement?.metadata.insertedText.length ?? 0) > 0;
|
|
331990
|
+
if (!authorsText && validation.trackedRefinement?.usesMergedCarrier !== true)
|
|
331991
|
+
return false;
|
|
331992
|
+
return snapshotStoryShard(validation.doc).blocks.some((block) => block.blockId === validation.target.blockId && block.mergedTailBlockIds.length > 0);
|
|
331993
|
+
}
|
|
331978
331994
|
function createStorySurfaceExecutionBackend(options) {
|
|
331979
331995
|
const delegate = options.delegate;
|
|
331980
331996
|
return {
|
|
@@ -332163,7 +332179,8 @@ function runFamilyMirror(prepared, extension3, options, directStoryText, tracked
|
|
|
332163
332179
|
};
|
|
332164
332180
|
}
|
|
332165
332181
|
if (extension3.family === "storyText") {
|
|
332166
|
-
|
|
332182
|
+
const mergedCarrierSync = trackedStoryTextRequiresMergedCarrierSync(directStoryText);
|
|
332183
|
+
if (extension3.historyReplay || extension3.resyncFromSession || extension3.sessionSync || mergedCarrierSync) {
|
|
332167
332184
|
if (!options.session) {
|
|
332168
332185
|
return {
|
|
332169
332186
|
mirrored: false,
|
|
@@ -332177,7 +332194,7 @@ function runFamilyMirror(prepared, extension3, options, directStoryText, tracked
|
|
|
332177
332194
|
const sessionSync = mirrorStorySurfaceFromSession({
|
|
332178
332195
|
session: options.session,
|
|
332179
332196
|
prepared,
|
|
332180
|
-
extension: extension3,
|
|
332197
|
+
extension: mergedCarrierSync && !extension3.sessionSync ? { ...extension3, sessionSync: { reason: "structural-inline-edit" } } : extension3,
|
|
332181
332198
|
storyIds: storyIdsRequiringShards(prepared, extension3),
|
|
332182
332199
|
resolveStoryShard: options.resolveStoryShard
|
|
332183
332200
|
});
|
|
@@ -332998,6 +333015,9 @@ function admitPreparedStorySurfaceMutation(prepared, options) {
|
|
|
332998
333015
|
return validateStoryTextSessionSync(prepared, extension3, options);
|
|
332999
333016
|
}
|
|
333000
333017
|
const direct = validateDirectStoryText(prepared, extension3, options);
|
|
333018
|
+
if (direct.ok && trackedStoryTextRequiresMergedCarrierSync(direct) && !options.session) {
|
|
333019
|
+
return { ok: false, message: "tracked text across merged carriers requires an authoritative session" };
|
|
333020
|
+
}
|
|
333001
333021
|
return direct.ok ? { ok: true, directStoryText: direct } : { ok: false, message: direct.failureReason };
|
|
333002
333022
|
}
|
|
333003
333023
|
const storyIds = [...new Set(prepared.resolvedTargets.stories.map((storyId) => String(storyId)))];
|
|
@@ -333436,9 +333456,18 @@ function validateDirectStoryText(prepared, extension3, options) {
|
|
|
333436
333456
|
let validatedTrackedRefinement;
|
|
333437
333457
|
if (trackedRefinement?.ok) {
|
|
333438
333458
|
const live = validateTrackedTextRefinementTarget(hydratedBlock, trackedRefinement.metadata);
|
|
333439
|
-
if (
|
|
333440
|
-
|
|
333441
|
-
|
|
333459
|
+
if (live.ok) {
|
|
333460
|
+
validatedTrackedRefinement = { metadata: trackedRefinement.metadata, span: live.span };
|
|
333461
|
+
} else {
|
|
333462
|
+
const merged = validateMergedCarrierTrackedTextRefinementTarget(doc, source.on.startBlockId, trackedRefinement.metadata);
|
|
333463
|
+
if (!merged.ok)
|
|
333464
|
+
return { ok: false, failureReason: live.failureReason };
|
|
333465
|
+
validatedTrackedRefinement = {
|
|
333466
|
+
metadata: trackedRefinement.metadata,
|
|
333467
|
+
span: merged.span,
|
|
333468
|
+
usesMergedCarrier: true
|
|
333469
|
+
};
|
|
333470
|
+
}
|
|
333442
333471
|
} else {
|
|
333443
333472
|
const mutationStart = trackedEdit?.ok ? trackedEdit.trackedEdit.startOffset : source.on.startOffset;
|
|
333444
333473
|
const mutationEnd = trackedEdit?.ok ? trackedEdit.trackedEdit.endOffset : source.on.endOffset;
|
|
@@ -333531,6 +333560,58 @@ function validateTrackedTextRefinementTarget(block, metadata2) {
|
|
|
333531
333560
|
}
|
|
333532
333561
|
return { ok: true, span };
|
|
333533
333562
|
}
|
|
333563
|
+
function validateMergedCarrierTrackedTextRefinementTarget(doc, blockId, metadata2) {
|
|
333564
|
+
const block = snapshotStoryShard(doc).blocks.find((candidate2) => candidate2.blockId === blockId);
|
|
333565
|
+
if (!block || block.mergedTailBlockIds.length === 0) {
|
|
333566
|
+
return { ok: false, failureReason: "tracked text refinement has no merged paragraph carriers" };
|
|
333567
|
+
}
|
|
333568
|
+
const starts = block.atoms.map((atom, index2) => ({ atom, index: index2 })).filter(({ atom }) => atom.kind === INLINE_ATOM_KIND.trackedWrapper && atom.meta.wrapper === "ins" && String(atom.meta.rsid ?? "") === metadata2.insertionRsid && atom.meta.position === "start");
|
|
333569
|
+
const ends = block.atoms.map((atom, index2) => ({ atom, index: index2 })).filter(({ atom }) => atom.kind === INLINE_ATOM_KIND.trackedWrapper && atom.meta.wrapper === "ins" && String(atom.meta.rsid ?? "") === metadata2.insertionRsid && atom.meta.position === "end");
|
|
333570
|
+
const candidates = starts.flatMap((start) => {
|
|
333571
|
+
const end = ends.find((candidate2) => candidate2.index > start.index);
|
|
333572
|
+
if (!end)
|
|
333573
|
+
return [];
|
|
333574
|
+
const span2 = {
|
|
333575
|
+
trackedKind: "ins",
|
|
333576
|
+
blockId,
|
|
333577
|
+
startOffset: start.atom.visibleOffset,
|
|
333578
|
+
endOffset: end.atom.visibleOffset,
|
|
333579
|
+
sourceStartOffset: start.atom.visibleOffset,
|
|
333580
|
+
sourceEndOffset: end.atom.visibleOffset,
|
|
333581
|
+
startAtomIndex: start.index,
|
|
333582
|
+
startAtomId: start.atom.id,
|
|
333583
|
+
endAtomId: end.atom.id,
|
|
333584
|
+
preservedAtomIds: [],
|
|
333585
|
+
containedAtomIds: block.atoms.slice(start.index + 1, end.index).map((atom) => atom.id),
|
|
333586
|
+
deletedRuns: [],
|
|
333587
|
+
deletedSegments: []
|
|
333588
|
+
};
|
|
333589
|
+
return metadata2.liveTextRange.startOffset >= span2.startOffset && metadata2.liveTextRange.endOffset <= span2.endOffset ? [span2] : [];
|
|
333590
|
+
});
|
|
333591
|
+
if (candidates.length !== 1) {
|
|
333592
|
+
return {
|
|
333593
|
+
ok: false,
|
|
333594
|
+
failureReason: `tracked text refinement could not resolve insertion ${metadata2.insertionRsid}`
|
|
333595
|
+
};
|
|
333596
|
+
}
|
|
333597
|
+
const span = candidates[0];
|
|
333598
|
+
const resultLength = span.endOffset - span.startOffset - (metadata2.liveTextRange.endOffset - metadata2.liveTextRange.startOffset) + metadata2.insertedText.length;
|
|
333599
|
+
if (resultLength < 0 || metadata2.removesInsertion !== (resultLength === 0)) {
|
|
333600
|
+
return { ok: false, failureReason: "tracked text refinement removal metadata does not match live insertion" };
|
|
333601
|
+
}
|
|
333602
|
+
if (span.containedAtomIds.length > 0) {
|
|
333603
|
+
return {
|
|
333604
|
+
ok: false,
|
|
333605
|
+
failureReason: "tracked text refinement intersects an unsupported insertion carrier"
|
|
333606
|
+
};
|
|
333607
|
+
}
|
|
333608
|
+
const ownCarrierIds = new Set([span.startAtomId, span.endAtomId]);
|
|
333609
|
+
const unsafeCarrier = block.atoms.find((atom) => !ownCarrierIds.has(atom.id) && atom.visibleOffset > metadata2.liveTextRange.startOffset && atom.visibleOffset < metadata2.liveTextRange.endOffset);
|
|
333610
|
+
if (unsafeCarrier) {
|
|
333611
|
+
return { ok: false, failureReason: `tracked text refinement intersects ${unsafeCarrier.kind} atom` };
|
|
333612
|
+
}
|
|
333613
|
+
return { ok: true, span };
|
|
333614
|
+
}
|
|
333534
333615
|
function validateTrackedTextInsert(source, extension3) {
|
|
333535
333616
|
if (extension3.changeMode !== "tracked") {
|
|
333536
333617
|
return { ok: false, failureReason: "tracked editText source requires tracked storySurface metadata" };
|
|
@@ -333629,7 +333710,7 @@ function mirrorTrackedTextInsert(input) {
|
|
|
333629
333710
|
wrapper: "ins",
|
|
333630
333711
|
position: "start",
|
|
333631
333712
|
rsid: input.trackedInsert.rsid,
|
|
333632
|
-
wId: input.trackedInsert.wId,
|
|
333713
|
+
wId: String(input.trackedInsert.wId),
|
|
333633
333714
|
author: input.trackedInsert.author,
|
|
333634
333715
|
authorEmail: author.email ?? null,
|
|
333635
333716
|
date: input.trackedInsert.date
|
|
@@ -333643,7 +333724,7 @@ function mirrorTrackedTextInsert(input) {
|
|
|
333643
333724
|
wrapper: "ins",
|
|
333644
333725
|
position: "end",
|
|
333645
333726
|
rsid: input.trackedInsert.rsid,
|
|
333646
|
-
wId: input.trackedInsert.wId,
|
|
333727
|
+
wId: String(input.trackedInsert.wId),
|
|
333647
333728
|
author: input.trackedInsert.author,
|
|
333648
333729
|
authorEmail: author.email ?? null,
|
|
333649
333730
|
date: input.trackedInsert.date
|
|
@@ -333826,7 +333907,7 @@ function mirrorTrackedTextEdit(input) {
|
|
|
333826
333907
|
wrapper: "del",
|
|
333827
333908
|
position: "start",
|
|
333828
333909
|
rsid: input.trackedEdit.deletion.rsid,
|
|
333829
|
-
wId: input.trackedEdit.deletion.wId,
|
|
333910
|
+
wId: String(input.trackedEdit.deletion.wId),
|
|
333830
333911
|
author: input.trackedEdit.deletion.author,
|
|
333831
333912
|
authorEmail: deletionAuthor.email ?? null,
|
|
333832
333913
|
date: input.trackedEdit.deletion.date
|
|
@@ -333846,7 +333927,7 @@ function mirrorTrackedTextEdit(input) {
|
|
|
333846
333927
|
wrapper: "del",
|
|
333847
333928
|
position: "end",
|
|
333848
333929
|
rsid: input.trackedEdit.deletion.rsid,
|
|
333849
|
-
wId: input.trackedEdit.deletion.wId,
|
|
333930
|
+
wId: String(input.trackedEdit.deletion.wId),
|
|
333850
333931
|
author: input.trackedEdit.deletion.author,
|
|
333851
333932
|
authorEmail: deletionAuthor.email ?? null,
|
|
333852
333933
|
date: input.trackedEdit.deletion.date
|
|
@@ -333866,7 +333947,7 @@ function mirrorTrackedTextEdit(input) {
|
|
|
333866
333947
|
wrapper: "ins",
|
|
333867
333948
|
position: "start",
|
|
333868
333949
|
rsid: insertion.rsid,
|
|
333869
|
-
wId: insertion.wId,
|
|
333950
|
+
wId: String(insertion.wId),
|
|
333870
333951
|
author: insertion.author,
|
|
333871
333952
|
authorEmail: insertionAuthor.email ?? null,
|
|
333872
333953
|
date: insertion.date
|
|
@@ -333879,7 +333960,7 @@ function mirrorTrackedTextEdit(input) {
|
|
|
333879
333960
|
wrapper: "ins",
|
|
333880
333961
|
position: "end",
|
|
333881
333962
|
rsid: insertion.rsid,
|
|
333882
|
-
wId: insertion.wId,
|
|
333963
|
+
wId: String(insertion.wId),
|
|
333883
333964
|
author: insertion.author,
|
|
333884
333965
|
authorEmail: insertionAuthor.email ?? null,
|
|
333885
333966
|
date: insertion.date
|
|
@@ -456100,7 +456181,7 @@ var _0x155452, _0xe72d47, _0x33482f = (_0x4ba150, _0x451d4e) => () => (_0x451d4e
|
|
|
456100
456181
|
}, _0x3cf707, _0x2cf55b, _0x48b283, _0x5ecde2, _0x52a064, _0x37693a, _0x1c87b1, _0x5039ea, _0x22fda3, _0x4e13bb, _0x3a4b56, _0x4e7b32, _0x210968, _0x554a60, _0x25edf4, _0x2daecf = 25000, _0x3f0f1a, _0x1132c2 = 2147483647, _0x1c3033 = 63, _0x5067e3, _0x437ef9 = 1638, _0x478f47 = 255, _0x4b27f7 = 2147483647, _0x284a2c = 63, _0x1adefa, _0x4b1f06, _0x47ea1b, _0x15e746, _0x3a430c, _0x2a0e86, _0x5c2c60, _0x5a421d = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x153be4 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x1ccc62 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x300b52 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x216acb, _0x1b72a1 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x341d89 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x39780c, _0x4b22cc, _0x34c27d = "Content control mutations outside the document body are not supported by this adapter.", _0x18c109, _0x1cd8ef, _0x3cd4ce = 128, _0xe72527 = 16, _0x25c750 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x1b6d08 = (_0x3f5865) => ({ ..._0x3f5865, author: { name: _0x3f5865["author"]["name"] } }), _0x2088a3 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x1af04f, _0x2d5416, _0x1dda51, _0x55525b, _0x3435fe, _0xaf6dc3, _0x3d6464, _0x181cdd, _0x27e8cd, _0x170ec3, _0x266234, _0x357b6d, _0x109f83 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x39bba6 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x5e6a25, _0x215a4c, _0x414312, _0x21db93, _0xd97cfb, _0x5985d1, _0x1b105e = "__sd:paragraph:", _0xc1c103 = "__sd:textbox-paragraph:", _0x3d8745 = "tc-comment:", _0x2eb615, _0x150ec0, _0x2ef23f, _0x460475, _0x46e547, _0x20a841 = "http://schemas.openxmlformats.org/drawingml/2006/main", _0xb0dc49 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x180d60 = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", _0xba02a5 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x3c0664, _0x5db411, _0x302081, _0x59a5e4 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x1a1061 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x2ac9a3, _0x2daece = 32, _0x473364, _0x7d2564, _0x5af9b2, _0x4b88be, _0x2d07a6, _0x53097f = 256, _0xfbdfbe, _0x290acc, _0x288672 = 4096, _0x1971e2 = 256, _0x337b65, _0x3c54e8, _0x50c69b, _0x5433c9, _0x5a3521, _0x566584, _0x4c9d4b, _0x8f13e8, _0x4af89d, _0x34b352, _0xe35492, _0x30c5b0, _0xd80024, _0x14462f, _0x24bf57, _0x3a04df, _0x2ba425, _0x2b5a6e, _0x48419e = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x480d14, _0x5c207a, _0x1ad4be = 9525, _0x253830 = 1000, _0x19e8e8, _0x480d21, _0x588dfd, _0x27cf36 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", _0x559b22 = 9525, _0x3d86bf = 1000, _0x35511e = 251659264, _0x8f0640 = "{C183D7F6-B498-43B3-948B-1728B52AA6E4}", _0x280091 = "http://schemas.microsoft.com/office/drawing/2017/decorative", _0x517b0a = "http://schemas.openxmlformats.org/drawingml/2006/main", _0x2cf9cf = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x39cc30, _0x5669f2, _0x32767f = 12240, _0x2172ab = 1440, _0x1249ab = 15, _0x2f0332, _0x5431a8, _0x3e2da1, _0x12c214, _0x3d6ba3, _0x371091, _0x2222aa, _0x54c04d, _0x2f2808, _0xbfe0eb, _0x528708, _0x421e14 = 32, _0x1293f7, _0x5f3ea0, _0xd26f74, _0x3a324f, _0x2ad438, _0x543590 = "body:/word/document.xml", _0xea3380 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x210dd3, _0x339d4c, _0x58144e, _0x4d4902 = "/word/document.xml", _0x287b46, _0x2a6f63, _0x2293c0, _0x505a79 = "/word/settings.xml", _0x28434b = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x2302a1, _0x2b957d, _0x2a9621, _0x598783 = "/word/document.xml", _0x21daf4 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", _0x316f1e, _0x35cc65, _0x1a897c = "/[Content_Types].xml", _0x245198 = "/", _0x124a73, _0x38206d = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x558cc3, _0x3c25ba, _0x201a63 = "http://schemas.openxmlformats.org/package/2006/relationships", _0x3abeb7 = "http://schemas.openxmlformats.org/package/2006/content-types", _0x6928b9, _0x2911c1, _0x29029a = "/relationships/footer", _0x244c6c = "/relationships/footnotes", _0x5b09fe = "/relationships/endnotes", _0x381862 = "/word/_rels/document.xml.rels", _0x4f890a = "/[Content_Types].xml", _0x26758e = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x3e1107, _0x11a6a7, _0x2dc867, _0x389edf, _0x4c360a = 9525, _0xd75c5c, _0x2632cf, _0x6fce0e, _0x3bc4d0, _0x46a21f, _0x33e9f1, _0x2ab8a7 = "/word/_rels/document.xml.rels", _0x40b371 = "/[Content_Types].xml", _0x141b77 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x35a75a = "/relationships/header", _0x3d0399 = "/relationships/footer", _0x21f41e, _0x41c465, _0x20a114, _0x6247b5 = "body:/word/document.xml", _0x26227b = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x5dfeb3 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x3e5d16 = "http://schemas.openxmlformats.org/markup-compatibility/2006", _0x20770e, _0x156391, _0xe9af97, _0x43cad9, _0x21eaca = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x464fec = "http://schemas.microsoft.com/office/word/2010/wordml", _0x1eabdc = "body:/word/document.xml", _0x28d314, _0x3886e5 = (_0x1752d0) => _0x1752d0["tag"]["attributes"]["find"]((_0x1b19e7) => _0x1b19e7["namespaceUri"] === _0x464fec && _0x1b19e7["localName"] === "paraId")?.["value"], _0x3eb1ff, _0x1fc758, _0x2f769b = "/word/styles.xml", _0x32aa3b, _0x291ea0, _0x31ca74, _0x3ceb63, _0x16b108 = "/word/document.xml", _0x288ace = "body:/word/document.xml", _0x422b02 = "snapshot", _0x3848ab = "superdoc-v2", _0xd64d83, _0x4f6b84, _0x1b4665 = "superdoc-v2-full-diff-snapshot", _0x38ab66 = "sd-diff-v2/full-snapshot/v1", _0x5855d5 = "superdoc-v2-full-diff-payload", _0x2abfcc = "sd-diff-v2/full-payload/v1", _0x91aad1, _0x3c0508 = "/word/_rels/document.xml.rels", _0x2fcded = "/word/document.xml", _0x3b6fa7 = "/[Content_Types].xml", _0x1b9df7, _0x2b7e15, _0x2ef462, _0x8cfa1 = "http://schemas.openxmlformats.org/package/2006/relationships", _0x44c79a = "http://schemas.openxmlformats.org/package/2006/content-types", _0x5133c2 = "http://schemas.openxmlformats.org/drawingml/2006/main", _0x5f4c03 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x28b53f = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", _0x50ce9d = "http://purl.org/dc/terms/", _0x1cf578 = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", _0x4357a4, _0x4ee04a = 64, _0x444319 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x5500c9, _0x2fd7b9, _0x3a3d29, _0x1d8f3c = "/word/document.xml", _0x27ff45 = "/word/numbering.xml", _0x34c00d, _0x4fa144, _0x31eef0 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x5d50c8 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x15e4ea = "http://schemas.openxmlformats.org/officeDocument/2006/math", _0x1895be = "http://schemas.openxmlformats.org/markup-compatibility/2006", _0xb8ab3e = "urn:schemas-microsoft-com:vml", _0x57aaee, _0x44dee7, _0x5c5c5, _0x10fb3b, _0x3acb0d, _0x49080b = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0xd5a7e3 = "/word/numbering.xml", _0x16a5e0 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0xb4e410, _0x35de1d, _0x23a403, _0x3e0c7a, _0x29369e, _0x5c4261, _0x272086, _0x5dded6, _0x3f6fc0, _0x193e4d = "/word/document.xml", _0x10ca5c, _0x29e2d1, _0xc3a319, _0xe612c2, _0x230ef4, _0x1b6a52, _0x1cd0df = 100, _0x46c4c6 = 100, _0x284fc9 = 100, _0x15ca05 = 1000, _0xea2719 = 500, _0x278ce9, _0x14c539 = "v2-textbox-geometry", _0x2bd589, _0x50afc7, _0x5c304b, _0xdc71b9, _0x3f27d0 = 100, _0x1b3584, _0x25018b, _0x37cb98, _0x39a5cb = "hl-field:", _0x280e46 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", _0x1060ec, _0x3191c7, _0x517e1a, _0x153386 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", _0x4c75f2 = "application/vnd.openxmlformats-package.relationships+xml", _0x367b5f = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x549a5c, _0x2db410, _0x539eb5, _0x1b078d = "http://schemas.microsoft.com/office/word/2010/wordml", _0x859606 = "/word/footnotes.xml", _0x5cd5df = "/word/endnotes.xml", _0x569aa5 = "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", _0x53bbd5 = "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml", _0x6c0cdf = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes", _0x112ecf = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes", _0xbb21ad, _0x113271, _0x367808, _0xfe388a, _0x9b6cd3, _0x1f615c = 63, _0x5337b5 = 1638, _0x587bc5 = 255, _0x2d8f01, _0xda47cb, _0x33daf9, _0x58c201 = 64, _0x4c04cb = 8000, _0x404bc2 = 256, _0x14b6e9, _0x32b794, _0x565803, _0x927b46 = 9525, _0x5d777d = 1024, _0x240f5f, _0xe9bf0, _0xb264d, _0x838c3d, _0x2ebb1f, _0x90c803, _0xcc304, _0x5cde5f = "Anchored metadata", _0x464d2c = "http://schemas.microsoft.com/office/word/2012/wordml", _0x50588b = 2147483646, _0x16f201, _0x3c9f8, _0x4fd88c = "all", _0x5d3d54, _0x3f3ca4, _0x48cde0, _0x51bd31 = "[Content_Types].xml", _0x42a6d4 = "/[Content_Types].xml", _0x1799f5 = "/word/document.xml", _0x5dd7e2 = "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml", _0x288376 = "http://purl.oclc.org/ooxml/wordprocessingml/main", _0x699d97 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", _0x4646fe = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", _0x456469 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings", _0x574366 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", _0x4bf4af = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", _0x286456 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", _0x2813b6, _0x17f8f1 = "word/styles.xml", _0x48bc41, _0x3b6bd9 = "word/numbering.xml", _0x127e2f = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x40a1fb, _0x19c061, _0x464c96, _0x4620a3 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x488130, _0x1dd744, _0x44be92, _0x15051d, _0x2c0649, _0x2097de, _0x5ece3f, _0x242260, _0x34bdca;
|
|
456101
456182
|
var init_document_runtime = __esm(() => {
|
|
456102
456183
|
/*!
|
|
456103
|
-
* DOCX Engine v0.15.1-next.
|
|
456184
|
+
* DOCX Engine v0.15.1-next.5
|
|
456104
456185
|
* Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
|
|
456105
456186
|
* Use governed by the DOCX Engine Proprietary License Agreement.
|
|
456106
456187
|
* No reverse engineering, deobfuscation, redistribution,
|
|
@@ -473728,7 +473809,7 @@ var _0x18d6be, _0x39ae2b, _0xaf93c4 = "host.request.timeoutMs", _0x39ef6a = 2147
|
|
|
473728
473809
|
var init_document_host_BV5jPLq6 = __esm(() => {
|
|
473729
473810
|
init_document_runtime();
|
|
473730
473811
|
/*!
|
|
473731
|
-
* DOCX Engine v0.15.1-next.
|
|
473812
|
+
* DOCX Engine v0.15.1-next.5
|
|
473732
473813
|
* Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
|
|
473733
473814
|
* Use governed by the DOCX Engine Proprietary License Agreement.
|
|
473734
473815
|
* No reverse engineering, deobfuscation, redistribution,
|
|
@@ -473966,7 +474047,7 @@ function _0x19ec() {
|
|
|
473966
474047
|
var init_document_host = __esm(() => {
|
|
473967
474048
|
init_document_host_BV5jPLq6();
|
|
473968
474049
|
/*!
|
|
473969
|
-
* DOCX Engine v0.15.1-next.
|
|
474050
|
+
* DOCX Engine v0.15.1-next.5
|
|
473970
474051
|
* Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
|
|
473971
474052
|
* Use governed by the DOCX Engine Proprietary License Agreement.
|
|
473972
474053
|
* No reverse engineering, deobfuscation, redistribution,
|
|
@@ -484546,7 +484627,7 @@ var init_host2 = __esm(() => {
|
|
|
484546
484627
|
});
|
|
484547
484628
|
|
|
484548
484629
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
484549
|
-
var SDK_VERSION = "2.13.1-next.
|
|
484630
|
+
var SDK_VERSION = "2.13.1-next.6";
|
|
484550
484631
|
|
|
484551
484632
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
484552
484633
|
import { chmodSync, existsSync } from "node:fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/cli",
|
|
3
|
-
"version": "0.36.1-next.
|
|
3
|
+
"version": "0.36.1-next.6",
|
|
4
4
|
"description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"fast-glob": "^3.3.3",
|
|
30
30
|
"happy-dom": "^20.3.4",
|
|
31
31
|
"ws": "^8.18.0",
|
|
32
|
-
"superdoc": "2.16.1-next.
|
|
32
|
+
"superdoc": "2.16.1-next.6",
|
|
33
33
|
"y-websocket": "^3.0.0",
|
|
34
34
|
"yjs": "13.6.31"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@hocuspocus/server": "^2.13.6",
|
|
38
|
-
"@superdoc/sdk": "2.13.1-next.
|
|
38
|
+
"@superdoc/sdk": "2.13.1-next.6",
|
|
39
39
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
40
|
-
"@superdoc/docx-engine": "0.15.1-next.
|
|
40
|
+
"@superdoc/docx-engine": "0.15.1-next.5",
|
|
41
41
|
"@types/bun": "^1.3.8",
|
|
42
42
|
"@types/node": "22.19.2",
|
|
43
43
|
"@types/ws": "^8.5.13",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@superdoc/cli-darwin-arm64": "0.36.1-next.
|
|
55
|
-
"@superdoc/cli-darwin-x64": "0.36.1-next.
|
|
56
|
-
"@superdoc/cli-linux-x64": "0.36.1-next.
|
|
57
|
-
"@superdoc/cli-linux-arm64": "0.36.1-next.
|
|
58
|
-
"@superdoc/cli-windows-x64": "0.36.1-next.
|
|
54
|
+
"@superdoc/cli-darwin-arm64": "0.36.1-next.6",
|
|
55
|
+
"@superdoc/cli-darwin-x64": "0.36.1-next.6",
|
|
56
|
+
"@superdoc/cli-linux-x64": "0.36.1-next.6",
|
|
57
|
+
"@superdoc/cli-linux-arm64": "0.36.1-next.6",
|
|
58
|
+
"@superdoc/cli-windows-x64": "0.36.1-next.6"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"predev": "node scripts/ensure-superdoc-build.js",
|