@superdoc-dev/cli 0.16.0-next.3 → 0.16.0-next.4
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 +128 -31
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -68110,7 +68110,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
68110
68110
|
emptyOptions2 = {};
|
|
68111
68111
|
});
|
|
68112
68112
|
|
|
68113
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
68113
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-nmIRMGtB.es.js
|
|
68114
68114
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
68115
68115
|
const fieldValue = extension$1.config[field];
|
|
68116
68116
|
if (typeof fieldValue === "function")
|
|
@@ -68913,10 +68913,10 @@ function isStoryLocator2(value) {
|
|
|
68913
68913
|
case "headerFooterSlot":
|
|
68914
68914
|
return isSectionAddress2(value.section) && isStringEnumMember2(value.headerFooterKind, STORY_HEADER_FOOTER_KINDS2) && isStringEnumMember2(value.variant, STORY_HEADER_FOOTER_VARIANTS2) && isOptionalStringEnumMember2(value.resolution, STORY_HEADER_FOOTER_RESOLUTIONS2) && isOptionalStringEnumMember2(value.onWrite, STORY_HEADER_FOOTER_ON_WRITE_VALUES2);
|
|
68915
68915
|
case "headerFooterPart":
|
|
68916
|
-
return isNonEmptyString$
|
|
68916
|
+
return isNonEmptyString$2(value.refId);
|
|
68917
68917
|
case "footnote":
|
|
68918
68918
|
case "endnote":
|
|
68919
|
-
return isNonEmptyString$
|
|
68919
|
+
return isNonEmptyString$2(value.noteId);
|
|
68920
68920
|
}
|
|
68921
68921
|
}
|
|
68922
68922
|
function getStoryHeaderFooterResolution(locator) {
|
|
@@ -68949,7 +68949,7 @@ function storyLocatorToKey2(locator) {
|
|
|
68949
68949
|
function isObjectRecord$1(value) {
|
|
68950
68950
|
return typeof value === "object" && value !== null;
|
|
68951
68951
|
}
|
|
68952
|
-
function isNonEmptyString$
|
|
68952
|
+
function isNonEmptyString$2(value) {
|
|
68953
68953
|
return typeof value === "string" && value.length > 0;
|
|
68954
68954
|
}
|
|
68955
68955
|
function isStringEnumMember2(value, allowed) {
|
|
@@ -104708,6 +104708,7 @@ function toFlowBlocks(pmDoc, options) {
|
|
|
104708
104708
|
bookmarks: bookmarks.size
|
|
104709
104709
|
});
|
|
104710
104710
|
const mergedBlocks = mergeFusedParagraphs(mergeDropCapParagraphs(hydrateImageBlocks(blocks, options?.mediaFiles)));
|
|
104711
|
+
stampTrackedChangeColors(mergedBlocks, options?.resolveTrackedChangeColor);
|
|
104711
104712
|
flowBlockCache?.commit();
|
|
104712
104713
|
return {
|
|
104713
104714
|
blocks: mergedBlocks,
|
|
@@ -108715,6 +108716,9 @@ function getTextAdapter(editor, input) {
|
|
|
108715
108716
|
`, `
|
|
108716
108717
|
`, { textModel: "visible" });
|
|
108717
108718
|
}
|
|
108719
|
+
function rangesOverlap(a, b) {
|
|
108720
|
+
return a[0] < b[1] && b[0] < a[1];
|
|
108721
|
+
}
|
|
108718
108722
|
function getRawTrackedMarks(editor) {
|
|
108719
108723
|
try {
|
|
108720
108724
|
const marks = getTrackChanges(editor.state);
|
|
@@ -108914,6 +108918,7 @@ function groupTrackedChanges(editor) {
|
|
|
108914
108918
|
const wordRevisionId = toNonEmptyString(attrs.sourceId);
|
|
108915
108919
|
const wordRevisionIdKey = getWordRevisionIdKey(markType);
|
|
108916
108920
|
const excerptText = !wordRevisionId || !hasChildTrackedMarkOnNode(item, id2) ? getTrackedMarkText(editor, item) : "";
|
|
108921
|
+
const range = [item.from, item.to];
|
|
108917
108922
|
if (!existing) {
|
|
108918
108923
|
byRawId.set(groupKey, {
|
|
108919
108924
|
rawId: groupKey,
|
|
@@ -108925,6 +108930,7 @@ function groupTrackedChanges(editor) {
|
|
|
108925
108930
|
hasFormat: nextHasFormat,
|
|
108926
108931
|
attrs: { ...attrs },
|
|
108927
108932
|
excerptParts: excerptText ? [excerptText] : [],
|
|
108933
|
+
excerptRanges: excerptText ? [range] : [],
|
|
108928
108934
|
wordRevisionIds: wordRevisionIdKey ? mergeWordRevisionId(undefined, wordRevisionIdKey, wordRevisionId ?? undefined) : undefined
|
|
108929
108935
|
});
|
|
108930
108936
|
continue;
|
|
@@ -108936,12 +108942,14 @@ function groupTrackedChanges(editor) {
|
|
|
108936
108942
|
existing.hasFormat = existing.hasFormat || nextHasFormat;
|
|
108937
108943
|
if (Object.keys(existing.attrs).length === 0 && Object.keys(attrs).length > 0)
|
|
108938
108944
|
existing.attrs = { ...attrs };
|
|
108939
|
-
if (excerptText)
|
|
108945
|
+
if (excerptText && !existing.excerptRanges.some((counted) => rangesOverlap(counted, range))) {
|
|
108946
|
+
existing.excerptRanges.push(range);
|
|
108940
108947
|
existing.excerptParts.push(excerptText);
|
|
108948
|
+
}
|
|
108941
108949
|
if (wordRevisionIdKey)
|
|
108942
108950
|
existing.wordRevisionIds = mergeWordRevisionId(existing.wordRevisionIds, wordRevisionIdKey, wordRevisionId ?? undefined);
|
|
108943
108951
|
}
|
|
108944
|
-
const grouped = Array.from(byRawId.values()).map(({ excerptParts, ...change }) => {
|
|
108952
|
+
const grouped = Array.from(byRawId.values()).map(({ excerptParts, excerptRanges: _excerptRanges, ...change }) => {
|
|
108945
108953
|
const hasWordSourceId = Boolean(toNonEmptyString(change.attrs.sourceId));
|
|
108946
108954
|
const rawExcerpt = excerptParts.join("");
|
|
108947
108955
|
const withExcerpt = {
|
|
@@ -112821,6 +112829,50 @@ var isRegExp = (value) => {
|
|
|
112821
112829
|
partialRow: fragment2.kind === "table" ? fragment2.partialRow : undefined,
|
|
112822
112830
|
sourceAnchor: fragment2.sourceAnchor ?? existing?.sourceAnchor
|
|
112823
112831
|
});
|
|
112832
|
+
}, isNonEmptyString$1 = (value) => typeof value === "string" && value.length > 0, authorFromTrackedChangeMeta = (meta) => ({
|
|
112833
|
+
name: meta.author,
|
|
112834
|
+
email: meta.authorEmail,
|
|
112835
|
+
image: meta.authorImage
|
|
112836
|
+
}), applyColorToLayer = (meta, resolve2) => {
|
|
112837
|
+
const color2 = resolve2?.(authorFromTrackedChangeMeta(meta));
|
|
112838
|
+
if (isNonEmptyString$1(color2)) {
|
|
112839
|
+
meta.color = color2;
|
|
112840
|
+
return;
|
|
112841
|
+
}
|
|
112842
|
+
delete meta.color;
|
|
112843
|
+
}, stampRunTrackedChangeColors = (run$1, resolve2) => {
|
|
112844
|
+
if (Array.isArray(run$1.trackedChanges))
|
|
112845
|
+
for (const layer of run$1.trackedChanges)
|
|
112846
|
+
applyColorToLayer(layer, resolve2);
|
|
112847
|
+
if (run$1.trackedChange)
|
|
112848
|
+
applyColorToLayer(run$1.trackedChange, resolve2);
|
|
112849
|
+
}, stampBlockTrackedChangeColors = (block, resolve2) => {
|
|
112850
|
+
if (!block)
|
|
112851
|
+
return;
|
|
112852
|
+
switch (block.kind) {
|
|
112853
|
+
case "paragraph":
|
|
112854
|
+
for (const run$1 of block.runs)
|
|
112855
|
+
stampRunTrackedChangeColors(run$1, resolve2);
|
|
112856
|
+
break;
|
|
112857
|
+
case "list":
|
|
112858
|
+
for (const item of block.items)
|
|
112859
|
+
stampBlockTrackedChangeColors(item.paragraph, resolve2);
|
|
112860
|
+
break;
|
|
112861
|
+
case "table":
|
|
112862
|
+
for (const row of block.rows)
|
|
112863
|
+
for (const cell of row.cells) {
|
|
112864
|
+
stampBlockTrackedChangeColors(cell.paragraph, resolve2);
|
|
112865
|
+
if (Array.isArray(cell.blocks))
|
|
112866
|
+
for (const nested of cell.blocks)
|
|
112867
|
+
stampBlockTrackedChangeColors(nested, resolve2);
|
|
112868
|
+
}
|
|
112869
|
+
break;
|
|
112870
|
+
default:
|
|
112871
|
+
break;
|
|
112872
|
+
}
|
|
112873
|
+
}, stampTrackedChangeColors = (blocks, resolve2) => {
|
|
112874
|
+
for (const block of blocks)
|
|
112875
|
+
stampBlockTrackedChangeColors(block, resolve2);
|
|
112824
112876
|
}, idlessSdtContainerKeys, nextIdlessSdtContainerKey = 0, engines_exports, EMPTY_SDT_PLACEHOLDER_TEXT = "Click or tap here to enter text", FONT_SLOT_THEME_PAIRS, TABLE_STYLE_ID_TABLE_GRID = "TableGrid", TABLE_FALLBACK_BORDER, TABLE_FALLBACK_BORDERS, TABLE_FALLBACK_CELL_PADDING, DEFAULT_TBL_LOOK, CNF_STYLE_MAP, TABLE_STYLE_PRECEDENCE, getToCssFontFamily = () => {
|
|
112825
112877
|
return SuperConverter.toCssFontFamily;
|
|
112826
112878
|
}, getSpacingStyle = (spacing, isListItem$1) => {
|
|
@@ -130197,7 +130249,7 @@ var isRegExp = (value) => {
|
|
|
130197
130249
|
state.kern = kernNode.attributes["w:val"];
|
|
130198
130250
|
}
|
|
130199
130251
|
}, SuperConverter;
|
|
130200
|
-
var
|
|
130252
|
+
var init_SuperConverter_nmIRMGtB_es = __esm(() => {
|
|
130201
130253
|
init_rolldown_runtime_Bg48TavK_es();
|
|
130202
130254
|
init_jszip_C49i9kUs_es();
|
|
130203
130255
|
init_xml_js_CqGKpaft_es();
|
|
@@ -168886,7 +168938,7 @@ var init_SuperConverter_kNDiQmof_es = __esm(() => {
|
|
|
168886
168938
|
};
|
|
168887
168939
|
});
|
|
168888
168940
|
|
|
168889
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
168941
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-7bitVHMJ.es.js
|
|
168890
168942
|
function parseSizeUnit(val = "0") {
|
|
168891
168943
|
const length3 = val.toString() || "0";
|
|
168892
168944
|
const value = Number.parseFloat(length3);
|
|
@@ -179217,8 +179269,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
179217
179269
|
}
|
|
179218
179270
|
};
|
|
179219
179271
|
};
|
|
179220
|
-
var
|
|
179221
|
-
|
|
179272
|
+
var init_create_headless_toolbar_7bitVHMJ_es = __esm(() => {
|
|
179273
|
+
init_SuperConverter_nmIRMGtB_es();
|
|
179222
179274
|
init_uuid_qzgm05fK_es();
|
|
179223
179275
|
init_constants_D_X7xF4s_es();
|
|
179224
179276
|
init_dist_B8HfvhaK_es();
|
|
@@ -228381,7 +228433,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
228381
228433
|
init_remark_gfm_BhnWr3yf_es();
|
|
228382
228434
|
});
|
|
228383
228435
|
|
|
228384
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
228436
|
+
// ../../packages/superdoc/dist/chunks/src-BrZa8lMN.es.js
|
|
228385
228437
|
function deleteProps(obj, propOrProps) {
|
|
228386
228438
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
228387
228439
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -276146,7 +276198,7 @@ function selectionToRects(layout, blocks2, measures, from$1, to, geometryHelper)
|
|
|
276146
276198
|
return;
|
|
276147
276199
|
const block = blocks2[blockIndex];
|
|
276148
276200
|
const pmRange = getAtomicPmRange(fragment2, block);
|
|
276149
|
-
if (!
|
|
276201
|
+
if (!rangesOverlap2(pmRange.pmStart, pmRange.pmEnd, from$1, to))
|
|
276150
276202
|
return;
|
|
276151
276203
|
rects.push({
|
|
276152
276204
|
x: fragment2.x,
|
|
@@ -277705,7 +277757,7 @@ function createLayoutMetrics(perf, startMark, layout, blocks2) {
|
|
|
277705
277757
|
pageCount: layout.pages?.length ?? 0
|
|
277706
277758
|
};
|
|
277707
277759
|
}
|
|
277708
|
-
function buildFootnotesInput(editorState, converter, converterContext, themeColors, renderOverride = null) {
|
|
277760
|
+
function buildFootnotesInput(editorState, converter, converterContext, themeColors, renderOverride = null, resolveTrackedChangeColor) {
|
|
277709
277761
|
if (!editorState)
|
|
277710
277762
|
return null;
|
|
277711
277763
|
const footnoteNumberById = converterContext?.footnoteNumberById;
|
|
@@ -277745,7 +277797,8 @@ function buildFootnotesInput(editorState, converter, converterContext, themeColo
|
|
|
277745
277797
|
}),
|
|
277746
277798
|
enableRichHyperlinks: true,
|
|
277747
277799
|
themeColors,
|
|
277748
|
-
converterContext
|
|
277800
|
+
converterContext,
|
|
277801
|
+
resolveTrackedChangeColor
|
|
277749
277802
|
});
|
|
277750
277803
|
if (result?.blocks?.length) {
|
|
277751
277804
|
ensureFootnoteMarker(result.blocks, id2, footnoteNumberById);
|
|
@@ -283790,7 +283843,7 @@ function getHostEditor(editor) {
|
|
|
283790
283843
|
function resolveSessionHostEditor(editor, runtime) {
|
|
283791
283844
|
return getHostEditor(editor) ?? getHostEditor(runtime.editor) ?? runtime.editor;
|
|
283792
283845
|
}
|
|
283793
|
-
function buildEndnoteBlocks(editorState, converter, converterContext, themeColors, renderOverride = null) {
|
|
283846
|
+
function buildEndnoteBlocks(editorState, converter, converterContext, themeColors, renderOverride = null, resolveTrackedChangeColor) {
|
|
283794
283847
|
if (!editorState)
|
|
283795
283848
|
return [];
|
|
283796
283849
|
const endnoteNumberById = converterContext?.endnoteNumberById;
|
|
@@ -283828,7 +283881,8 @@ function buildEndnoteBlocks(editorState, converter, converterContext, themeColor
|
|
|
283828
283881
|
}),
|
|
283829
283882
|
enableRichHyperlinks: true,
|
|
283830
283883
|
themeColors,
|
|
283831
|
-
converterContext
|
|
283884
|
+
converterContext,
|
|
283885
|
+
resolveTrackedChangeColor
|
|
283832
283886
|
});
|
|
283833
283887
|
if (result?.blocks?.length) {
|
|
283834
283888
|
ensureEndnoteMarker(result.blocks, id2, endnoteNumberById);
|
|
@@ -308409,7 +308463,47 @@ menclose::after {
|
|
|
308409
308463
|
});
|
|
308410
308464
|
return createErrorPlaceholder(fragment2.blockId, error3);
|
|
308411
308465
|
}
|
|
308412
|
-
}, TRACK_CHANGE_BASE_CLASS, TRACK_CHANGE_OVERLAP_INSERT_DELETE_CLASS = "track-overlap-insert-delete-dec",
|
|
308466
|
+
}, TRACK_CHANGE_BASE_CLASS, TRACK_CHANGE_OVERLAP_INSERT_DELETE_CLASS = "track-overlap-insert-delete-dec", TRACK_CHANGE_BACKGROUND_ALPHA = 34, TRACK_CHANGE_BACKGROUND_FOCUSED_ALPHA = 68, expandHexColor = (hex) => {
|
|
308467
|
+
const normalized = hex.replace("#", "");
|
|
308468
|
+
if (normalized.length === 3)
|
|
308469
|
+
return normalized.split("").map((char) => char + char).join("");
|
|
308470
|
+
if (normalized.length === 6 || normalized.length === 8)
|
|
308471
|
+
return normalized.slice(0, 6);
|
|
308472
|
+
return null;
|
|
308473
|
+
}, colorWithAlpha = (color2, alpha) => {
|
|
308474
|
+
const expanded = color2.trim().startsWith("#") ? expandHexColor(color2.trim()) : null;
|
|
308475
|
+
if (!expanded)
|
|
308476
|
+
return color2;
|
|
308477
|
+
return `#${expanded}${Math.max(0, Math.min(255, alpha)).toString(16).padStart(2, "0")}`;
|
|
308478
|
+
}, setColorVar = (elem, name, value) => {
|
|
308479
|
+
elem.style.setProperty(name, value);
|
|
308480
|
+
}, applyAuthorColorVariables = (elem, layer) => {
|
|
308481
|
+
const color2 = layer.color;
|
|
308482
|
+
if (!color2)
|
|
308483
|
+
return;
|
|
308484
|
+
const background = colorWithAlpha(color2, TRACK_CHANGE_BACKGROUND_ALPHA);
|
|
308485
|
+
const backgroundFocused = colorWithAlpha(color2, TRACK_CHANGE_BACKGROUND_FOCUSED_ALPHA);
|
|
308486
|
+
switch (layer.kind) {
|
|
308487
|
+
case "insert":
|
|
308488
|
+
setColorVar(elem, "--sd-tracked-changes-insert-border", color2);
|
|
308489
|
+
setColorVar(elem, "--sd-tracked-changes-insert-background", background);
|
|
308490
|
+
setColorVar(elem, "--sd-tracked-changes-insert-background-focused", backgroundFocused);
|
|
308491
|
+
break;
|
|
308492
|
+
case "delete":
|
|
308493
|
+
setColorVar(elem, "--sd-tracked-changes-delete-border", color2);
|
|
308494
|
+
setColorVar(elem, "--sd-tracked-changes-delete-background", background);
|
|
308495
|
+
setColorVar(elem, "--sd-tracked-changes-delete-background-focused", backgroundFocused);
|
|
308496
|
+
setColorVar(elem, "--sd-tracked-changes-delete-text", color2);
|
|
308497
|
+
break;
|
|
308498
|
+
case "format":
|
|
308499
|
+
setColorVar(elem, "--sd-tracked-changes-format-border", color2);
|
|
308500
|
+
setColorVar(elem, "--sd-tracked-changes-format-background", background);
|
|
308501
|
+
setColorVar(elem, "--sd-tracked-changes-format-background-focused", backgroundFocused);
|
|
308502
|
+
break;
|
|
308503
|
+
default:
|
|
308504
|
+
break;
|
|
308505
|
+
}
|
|
308506
|
+
}, TRACK_CHANGE_MODIFIER_CLASS, getTrackedChangeLayers$1 = (run2) => {
|
|
308413
308507
|
if (Array.isArray(run2.trackedChanges) && run2.trackedChanges.length > 0)
|
|
308414
308508
|
return run2.trackedChanges;
|
|
308415
308509
|
return run2.trackedChange ? [run2.trackedChange] : [];
|
|
@@ -308446,6 +308540,7 @@ menclose::after {
|
|
|
308446
308540
|
const modifier = TRACK_CHANGE_MODIFIER_CLASS[layer.kind]?.[config2.mode];
|
|
308447
308541
|
if (modifier)
|
|
308448
308542
|
elem.classList.add(modifier);
|
|
308543
|
+
applyAuthorColorVariables(elem, layer);
|
|
308449
308544
|
});
|
|
308450
308545
|
if (overlap) {
|
|
308451
308546
|
elem.classList.add(TRACK_CHANGE_OVERLAP_INSERT_DELETE_CLASS);
|
|
@@ -314004,7 +314099,7 @@ menclose::after {
|
|
|
314004
314099
|
};
|
|
314005
314100
|
}
|
|
314006
314101
|
return null;
|
|
314007
|
-
}, logSelectionMapDebug = (payload) => {},
|
|
314102
|
+
}, logSelectionMapDebug = (payload) => {}, rangesOverlap2 = (startA, endA, startB, endB) => {
|
|
314008
314103
|
if (startA == null)
|
|
314009
314104
|
return false;
|
|
314010
314105
|
return (endA ?? startA + 1) > startB && startA < endB;
|
|
@@ -319432,13 +319527,13 @@ menclose::after {
|
|
|
319432
319527
|
return;
|
|
319433
319528
|
console.log(...args$1);
|
|
319434
319529
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions, TRACKED_MARK_NAMES;
|
|
319435
|
-
var
|
|
319530
|
+
var init_src_BrZa8lMN_es = __esm(() => {
|
|
319436
319531
|
init_rolldown_runtime_Bg48TavK_es();
|
|
319437
|
-
|
|
319532
|
+
init_SuperConverter_nmIRMGtB_es();
|
|
319438
319533
|
init_jszip_C49i9kUs_es();
|
|
319439
319534
|
init_xml_js_CqGKpaft_es();
|
|
319440
319535
|
init_uuid_qzgm05fK_es();
|
|
319441
|
-
|
|
319536
|
+
init_create_headless_toolbar_7bitVHMJ_es();
|
|
319442
319537
|
init_constants_D_X7xF4s_es();
|
|
319443
319538
|
init_dist_B8HfvhaK_es();
|
|
319444
319539
|
init_unified_Dsuw2be5_es();
|
|
@@ -347400,6 +347495,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
347400
347495
|
flowMode: requestedFlowMode,
|
|
347401
347496
|
semanticOptions: options.layoutEngineOptions?.semanticOptions,
|
|
347402
347497
|
trackedChanges: options.layoutEngineOptions?.trackedChanges,
|
|
347498
|
+
resolveTrackedChangeColor: options.layoutEngineOptions?.resolveTrackedChangeColor,
|
|
347403
347499
|
emitCommentPositionsInViewing: options.layoutEngineOptions?.emitCommentPositionsInViewing,
|
|
347404
347500
|
enableCommentsInViewing: options.layoutEngineOptions?.enableCommentsInViewing,
|
|
347405
347501
|
presence: validatedPresence,
|
|
@@ -350770,6 +350866,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
350770
350866
|
sectionMetadata,
|
|
350771
350867
|
trackedChangesMode: this.#trackedChangesMode,
|
|
350772
350868
|
enableTrackedChanges: this.#trackedChangesEnabled,
|
|
350869
|
+
resolveTrackedChangeColor: this.#layoutOptions.resolveTrackedChangeColor,
|
|
350773
350870
|
enableComments: commentsEnabled,
|
|
350774
350871
|
enableRichHyperlinks: true,
|
|
350775
350872
|
themeColors: this.#editor?.converter?.themeColors ?? undefined,
|
|
@@ -350801,10 +350898,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
350801
350898
|
const isSemanticFlow = this.#isSemanticFlowMode();
|
|
350802
350899
|
const baseLayoutOptions = this.#resolveLayoutOptions(blocks2, sectionMetadata);
|
|
350803
350900
|
const activeFootnoteOverride = this.#buildActiveNoteRenderOverride("footnote");
|
|
350804
|
-
const footnotesLayoutInput = buildFootnotesInput(this.#editor?.state, this.#editor?.converter, converterContext, this.#editor?.converter?.themeColors ?? undefined, activeFootnoteOverride);
|
|
350901
|
+
const footnotesLayoutInput = buildFootnotesInput(this.#editor?.state, this.#editor?.converter, converterContext, this.#editor?.converter?.themeColors ?? undefined, activeFootnoteOverride, this.#layoutOptions.resolveTrackedChangeColor);
|
|
350805
350902
|
const semanticFootnoteBlocks = isSemanticFlow ? buildSemanticFootnoteBlocks(footnotesLayoutInput, this.#layoutOptions.semanticOptions?.footnotesMode) : [];
|
|
350806
350903
|
const activeEndnoteOverride = this.#buildActiveNoteRenderOverride("endnote");
|
|
350807
|
-
const endnoteBlocks = buildEndnoteBlocks(this.#editor?.state, this.#editor?.converter, converterContext, this.#editor?.converter?.themeColors ?? undefined, activeEndnoteOverride);
|
|
350904
|
+
const endnoteBlocks = buildEndnoteBlocks(this.#editor?.state, this.#editor?.converter, converterContext, this.#editor?.converter?.themeColors ?? undefined, activeEndnoteOverride, this.#layoutOptions.resolveTrackedChangeColor);
|
|
350808
350905
|
const blocksForLayout = semanticFootnoteBlocks.length > 0 || endnoteBlocks.length > 0 ? [
|
|
350809
350906
|
...blocks2,
|
|
350810
350907
|
...semanticFootnoteBlocks,
|
|
@@ -353602,11 +353699,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
353602
353699
|
]);
|
|
353603
353700
|
});
|
|
353604
353701
|
|
|
353605
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
353702
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-DZGOzt3u.es.js
|
|
353606
353703
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
353607
|
-
var
|
|
353608
|
-
|
|
353609
|
-
|
|
353704
|
+
var init_create_super_doc_ui_DZGOzt3u_es = __esm(() => {
|
|
353705
|
+
init_SuperConverter_nmIRMGtB_es();
|
|
353706
|
+
init_create_headless_toolbar_7bitVHMJ_es();
|
|
353610
353707
|
MOD_ALIASES = new Set([
|
|
353611
353708
|
"Mod",
|
|
353612
353709
|
"Meta",
|
|
@@ -353648,16 +353745,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
353648
353745
|
|
|
353649
353746
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
353650
353747
|
var init_super_editor_es = __esm(() => {
|
|
353651
|
-
|
|
353652
|
-
|
|
353748
|
+
init_src_BrZa8lMN_es();
|
|
353749
|
+
init_SuperConverter_nmIRMGtB_es();
|
|
353653
353750
|
init_jszip_C49i9kUs_es();
|
|
353654
353751
|
init_xml_js_CqGKpaft_es();
|
|
353655
|
-
|
|
353752
|
+
init_create_headless_toolbar_7bitVHMJ_es();
|
|
353656
353753
|
init_constants_D_X7xF4s_es();
|
|
353657
353754
|
init_dist_B8HfvhaK_es();
|
|
353658
353755
|
init_unified_Dsuw2be5_es();
|
|
353659
353756
|
init_DocxZipper_nv_KfOqb_es();
|
|
353660
|
-
|
|
353757
|
+
init_create_super_doc_ui_DZGOzt3u_es();
|
|
353661
353758
|
init_ui_C5PAS9hY_es();
|
|
353662
353759
|
init_eventemitter3_BnGqBE_Q_es();
|
|
353663
353760
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.16.0-next.
|
|
3
|
+
"version": "0.16.0-next.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"@superdoc/super-editor": "0.0.1",
|
|
28
27
|
"@superdoc/document-api": "0.0.1",
|
|
29
|
-
"superdoc": "1.38.0"
|
|
28
|
+
"superdoc": "1.38.0",
|
|
29
|
+
"@superdoc/super-editor": "0.0.1"
|
|
30
30
|
},
|
|
31
31
|
"module": "src/index.ts",
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@superdoc-dev/cli-darwin-arm64": "0.16.0-next.
|
|
37
|
-
"@superdoc-dev/cli-
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-linux-arm64": "0.16.0-next.
|
|
40
|
-
"@superdoc-dev/cli-windows-x64": "0.16.0-next.
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.16.0-next.4",
|
|
37
|
+
"@superdoc-dev/cli-linux-x64": "0.16.0-next.4",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.16.0-next.4",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.16.0-next.4",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.16.0-next.4"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|