@superdoc-dev/cli 0.16.0-next.11 → 0.16.0-next.12
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 +144 -40
- package/package.json +6 -6
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-BoqEhvrr.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")
|
|
@@ -104441,6 +104441,17 @@ function paragraphToFlowBlocks({ para, nextBlockId, positions, storyKey, tracked
|
|
|
104441
104441
|
const usePreviousFont = previousParagraphFont != null && resolvedParagraphProperties.numberingProperties != null && !hasExplicitParagraphRunProperties(paragraphProps);
|
|
104442
104442
|
const defaultFont = usePreviousFont && previousParagraphFont.fontFamily ? previousParagraphFont.fontFamily : extracted.defaultFont;
|
|
104443
104443
|
const defaultSize = usePreviousFont && previousParagraphFont.fontSize ? previousParagraphFont.fontSize : extracted.defaultSize;
|
|
104444
|
+
const finalizeParagraphBlocks = (outputBlocks) => {
|
|
104445
|
+
outputBlocks.forEach((block) => {
|
|
104446
|
+
if (block.kind === "paragraph")
|
|
104447
|
+
syncListMarkerFontFromParagraphRuns({
|
|
104448
|
+
block,
|
|
104449
|
+
converterContext,
|
|
104450
|
+
para
|
|
104451
|
+
});
|
|
104452
|
+
});
|
|
104453
|
+
return outputBlocks;
|
|
104454
|
+
};
|
|
104444
104455
|
if (paragraphAttrs.pageBreakBefore)
|
|
104445
104456
|
blocks.push({
|
|
104446
104457
|
kind: "pageBreak",
|
|
@@ -104449,7 +104460,7 @@ function paragraphToFlowBlocks({ para, nextBlockId, positions, storyKey, tracked
|
|
|
104449
104460
|
});
|
|
104450
104461
|
if (!para.content || para.content.length === 0) {
|
|
104451
104462
|
if (paragraphProps.runProperties?.vanish)
|
|
104452
|
-
return blocks;
|
|
104463
|
+
return finalizeParagraphBlocks(blocks);
|
|
104453
104464
|
const paragraphMarkTrackedChange = getParagraphMarkTrackedChange(paragraphProps, storyKey);
|
|
104454
104465
|
const paraPos = positions.get(para);
|
|
104455
104466
|
const emptyRun = {
|
|
@@ -104477,15 +104488,15 @@ function paragraphToFlowBlocks({ para, nextBlockId, positions, storyKey, tracked
|
|
|
104477
104488
|
sourceAnchor
|
|
104478
104489
|
});
|
|
104479
104490
|
if (!trackedChangesConfig)
|
|
104480
|
-
return blocks;
|
|
104491
|
+
return finalizeParagraphBlocks(blocks);
|
|
104481
104492
|
const paragraphBlock = blocks[blocks.length - 1];
|
|
104482
104493
|
if (paragraphBlock?.kind !== "paragraph")
|
|
104483
|
-
return blocks;
|
|
104494
|
+
return finalizeParagraphBlocks(blocks);
|
|
104484
104495
|
const filteredRuns = applyTrackedChangesModeToRuns(paragraphBlock.runs, trackedChangesConfig, hyperlinkConfig, applyMarksToRun, themeColors, enableComments, storyKey);
|
|
104485
104496
|
const isGhostTrackedListArtifact = trackedChangesConfig.enabled && isGhostSuppressionMode(trackedChangesConfig.mode) && Boolean(paragraphAttrs.numberingProperties) && Boolean(paragraphMarkTrackedChange) && filteredRuns.length > 0 && filteredRuns.every(isEmptyTextRun);
|
|
104486
104497
|
if (trackedChangesConfig.enabled && (filteredRuns.length === 0 || isGhostTrackedListArtifact)) {
|
|
104487
104498
|
blocks.pop();
|
|
104488
|
-
return blocks;
|
|
104499
|
+
return finalizeParagraphBlocks(blocks);
|
|
104489
104500
|
}
|
|
104490
104501
|
paragraphBlock.runs = filteredRuns;
|
|
104491
104502
|
paragraphBlock.attrs = {
|
|
@@ -104493,7 +104504,7 @@ function paragraphToFlowBlocks({ para, nextBlockId, positions, storyKey, tracked
|
|
|
104493
104504
|
trackedChangesMode: trackedChangesConfig.mode,
|
|
104494
104505
|
trackedChangesEnabled: trackedChangesConfig.enabled
|
|
104495
104506
|
};
|
|
104496
|
-
return blocks;
|
|
104507
|
+
return finalizeParagraphBlocks(blocks);
|
|
104497
104508
|
}
|
|
104498
104509
|
let currentRuns = [];
|
|
104499
104510
|
let partIndex = 0;
|
|
@@ -104669,7 +104680,7 @@ function paragraphToFlowBlocks({ para, nextBlockId, positions, storyKey, tracked
|
|
|
104669
104680
|
block.runs = expandRunsForInlineNewlines(block.runs);
|
|
104670
104681
|
});
|
|
104671
104682
|
if (!trackedChangesConfig)
|
|
104672
|
-
return blocks;
|
|
104683
|
+
return finalizeParagraphBlocks(blocks);
|
|
104673
104684
|
const processedBlocks = [];
|
|
104674
104685
|
blocks.forEach((block) => {
|
|
104675
104686
|
if (block.kind !== "paragraph") {
|
|
@@ -104687,7 +104698,7 @@ function paragraphToFlowBlocks({ para, nextBlockId, positions, storyKey, tracked
|
|
|
104687
104698
|
};
|
|
104688
104699
|
processedBlocks.push(block);
|
|
104689
104700
|
});
|
|
104690
|
-
return processedBlocks;
|
|
104701
|
+
return finalizeParagraphBlocks(processedBlocks);
|
|
104691
104702
|
}
|
|
104692
104703
|
function getLastParagraphFont(blocks) {
|
|
104693
104704
|
for (let i$1 = blocks.length - 1;i$1 >= 0; i$1--) {
|
|
@@ -104697,6 +104708,8 @@ function getLastParagraphFont(blocks) {
|
|
|
104697
104708
|
if (!firstRun)
|
|
104698
104709
|
continue;
|
|
104699
104710
|
const run$1 = firstRun;
|
|
104711
|
+
if (typeof run$1.text === "string" && run$1.text.length === 0)
|
|
104712
|
+
continue;
|
|
104700
104713
|
const fontFamily = typeof run$1.fontFamily === "string" ? run$1.fontFamily.trim() : "";
|
|
104701
104714
|
const fontSize = typeof run$1.fontSize === "number" && Number.isFinite(run$1.fontSize) ? run$1.fontSize : NaN;
|
|
104702
104715
|
if (fontFamily.length > 0 && fontSize > 0)
|
|
@@ -104730,6 +104743,18 @@ function handleParagraphNode(node3, context) {
|
|
|
104730
104743
|
if (cached) {
|
|
104731
104744
|
const delta = pmStart - cached.pmStart;
|
|
104732
104745
|
const reusedBlocks = shiftCachedBlocks(cached.blocks, delta);
|
|
104746
|
+
const paragraphProps = node3.attrs?.paragraphProperties;
|
|
104747
|
+
const previousParagraphFont$2 = !hasExplicitParagraphRunProperties(paragraphProps) ? getLastParagraphFont(blocks) : undefined;
|
|
104748
|
+
reusedBlocks.forEach((block) => {
|
|
104749
|
+
if (block.kind === "paragraph")
|
|
104750
|
+
syncListMarkerFontFromParagraphRuns({
|
|
104751
|
+
block,
|
|
104752
|
+
converterContext,
|
|
104753
|
+
para: node3,
|
|
104754
|
+
contentFontSource: "paragraph",
|
|
104755
|
+
previousParagraphFont: previousParagraphFont$2
|
|
104756
|
+
});
|
|
104757
|
+
});
|
|
104733
104758
|
applyTrackedGhostListAdjustments(node3, reusedBlocks, context);
|
|
104734
104759
|
reusedBlocks.forEach((block) => {
|
|
104735
104760
|
blocks.push(block);
|
|
@@ -127787,7 +127812,7 @@ var isRegExp = (value) => {
|
|
|
127787
127812
|
};
|
|
127788
127813
|
}, browser2, process3, cachedSetTimeout2, cachedClearTimeout2, queue2, draining2 = false, currentQueue2, queueIndex2 = -1, browserExports2, process$12, TWIPS_PER_INCH$1 = 1440, PX_PER_PT, VALID_TRACKED_MODES, DEFAULT_HYPERLINK_CONFIG, ATOMIC_INLINE_TYPES, TOKEN_INLINE_TYPES, isValidTrackedMode = (value) => {
|
|
127789
127814
|
return typeof value === "string" && VALID_TRACKED_MODES.includes(value);
|
|
127790
|
-
}, isTextRun$
|
|
127815
|
+
}, isTextRun$2 = (run$1) => {
|
|
127791
127816
|
return "text" in run$1 && run$1.kind !== "tab";
|
|
127792
127817
|
}, stripTrackedChangeFromRun = (run$1) => {
|
|
127793
127818
|
if ("trackedChange" in run$1 && run$1.trackedChange)
|
|
@@ -127799,7 +127824,7 @@ var isRegExp = (value) => {
|
|
|
127799
127824
|
return run$1.trackedChanges;
|
|
127800
127825
|
return run$1.trackedChange ? [run$1.trackedChange] : [];
|
|
127801
127826
|
}, isTrackedChangeRun = (run$1) => {
|
|
127802
|
-
return isTextRun$
|
|
127827
|
+
return isTextRun$2(run$1) || run$1.kind === "break";
|
|
127803
127828
|
}, runHasTrackedChangeKind = (run$1, kind) => {
|
|
127804
127829
|
if (!isTrackedChangeRun(run$1))
|
|
127805
127830
|
return false;
|
|
@@ -127882,14 +127907,14 @@ var isRegExp = (value) => {
|
|
|
127882
127907
|
runs.forEach((run$1) => stripTrackedChangeFromRun(run$1));
|
|
127883
127908
|
else
|
|
127884
127909
|
runs.forEach((run$1) => {
|
|
127885
|
-
if (isTextRun$
|
|
127910
|
+
if (isTextRun$2(run$1))
|
|
127886
127911
|
applyFormatChangeMarks(run$1, config$42, hyperlinkConfig, applyMarksToRun$1, themeColors, enableComments, storyKey);
|
|
127887
127912
|
});
|
|
127888
127913
|
return runs;
|
|
127889
127914
|
}
|
|
127890
127915
|
const filtered = [];
|
|
127891
127916
|
runs.forEach((run$1) => {
|
|
127892
|
-
if (!isTextRun$
|
|
127917
|
+
if (!isTextRun$2(run$1) && run$1.kind !== "break") {
|
|
127893
127918
|
filtered.push(run$1);
|
|
127894
127919
|
return;
|
|
127895
127920
|
}
|
|
@@ -127907,7 +127932,7 @@ var isRegExp = (value) => {
|
|
|
127907
127932
|
filtered.forEach((run$1) => stripTrackedChangeFromRun(run$1));
|
|
127908
127933
|
else {
|
|
127909
127934
|
filtered.forEach((run$1) => {
|
|
127910
|
-
if (isTextRun$
|
|
127935
|
+
if (isTextRun$2(run$1))
|
|
127911
127936
|
applyFormatChangeMarks(run$1, config$42, hyperlinkConfig || DEFAULT_HYPERLINK_CONFIG, applyMarksToRun$1, themeColors, enableComments, storyKey);
|
|
127912
127937
|
});
|
|
127913
127938
|
if ((config$42.mode === "original" || config$42.mode === "final") && config$42.enabled)
|
|
@@ -128499,6 +128524,11 @@ var isRegExp = (value) => {
|
|
|
128499
128524
|
inlineDirection,
|
|
128500
128525
|
writingMode
|
|
128501
128526
|
};
|
|
128527
|
+
}, numberingDefinesMarkerFontFamily = (numberingProperties, converterContext) => {
|
|
128528
|
+
const numId = numberingProperties?.numId;
|
|
128529
|
+
if (numId == null || numId === 0 || !converterContext)
|
|
128530
|
+
return false;
|
|
128531
|
+
return getNumberingProperties$1("runProperties", converterContext, numberingProperties?.ilvl ?? 0, numId).fontFamily != null;
|
|
128502
128532
|
}, DEFAULT_DECIMAL_SEPARATOR = ".", DEFAULT_TAB_INTERVAL_TWIPS = 720, normalizeColor$1 = (value) => {
|
|
128503
128533
|
if (typeof value !== "string")
|
|
128504
128534
|
return;
|
|
@@ -128681,15 +128711,11 @@ var isRegExp = (value) => {
|
|
|
128681
128711
|
if (normalizedNumberingProperties && normalizedListRendering) {
|
|
128682
128712
|
const markerRunAttrs = computeRunAttrs(resolveRunProperties(converterContext, resolvedParagraphProperties.runProperties, resolvedParagraphProperties, converterContext.tableInfo, true, Boolean(paragraphProperties.numberingProperties)), converterContext);
|
|
128683
128713
|
let markerFontFallback;
|
|
128684
|
-
if (!hasExplicitParagraphRunProperties(paragraphProperties) && previousParagraphFont)
|
|
128685
|
-
const numProps = paragraphProperties.numberingProperties;
|
|
128686
|
-
const numId = numProps?.numId;
|
|
128687
|
-
const ilvl = numProps?.ilvl ?? 0;
|
|
128714
|
+
if (!hasExplicitParagraphRunProperties(paragraphProperties) && previousParagraphFont)
|
|
128688
128715
|
markerFontFallback = {
|
|
128689
|
-
fontFamily: (
|
|
128716
|
+
fontFamily: numberingDefinesMarkerFontFamily(paragraphProperties.numberingProperties, converterContext) ? undefined : previousParagraphFont.fontFamily,
|
|
128690
128717
|
fontSize: previousParagraphFont.fontSize
|
|
128691
128718
|
};
|
|
128692
|
-
}
|
|
128693
128719
|
paragraphAttrs.wordLayout = computeWordParagraphLayout({
|
|
128694
128720
|
paragraph: paragraphAttrs,
|
|
128695
128721
|
listRenderingAttrs: normalizedListRendering,
|
|
@@ -129431,6 +129457,84 @@ var isRegExp = (value) => {
|
|
|
129431
129457
|
merged.script = script;
|
|
129432
129458
|
}
|
|
129433
129459
|
return merged;
|
|
129460
|
+
}, isTextRun$1 = (run$1) => ("text" in run$1), pickFontPartial = (fontFamily, fontSize) => {
|
|
129461
|
+
const partial = {};
|
|
129462
|
+
if (typeof fontFamily === "string" && fontFamily.trim().length > 0)
|
|
129463
|
+
partial.fontFamily = fontFamily.trim();
|
|
129464
|
+
if (typeof fontSize === "number" && Number.isFinite(fontSize) && fontSize > 0)
|
|
129465
|
+
partial.fontSize = fontSize;
|
|
129466
|
+
return Object.keys(partial).length > 0 ? partial : undefined;
|
|
129467
|
+
}, getFontFromRuns = (runs) => {
|
|
129468
|
+
for (const run$1 of runs) {
|
|
129469
|
+
if (!isTextRun$1(run$1))
|
|
129470
|
+
continue;
|
|
129471
|
+
if (typeof run$1.text === "string" && run$1.text.length === 0)
|
|
129472
|
+
continue;
|
|
129473
|
+
const partial = pickFontPartial(run$1.fontFamily, run$1.fontSize);
|
|
129474
|
+
if (partial)
|
|
129475
|
+
return partial;
|
|
129476
|
+
}
|
|
129477
|
+
}, getFontFromTextStyleMark = (attrs) => {
|
|
129478
|
+
const probe = {
|
|
129479
|
+
text: "",
|
|
129480
|
+
fontFamily: "",
|
|
129481
|
+
fontSize: 0
|
|
129482
|
+
};
|
|
129483
|
+
applyTextStyleMark(probe, attrs);
|
|
129484
|
+
return pickFontPartial(probe.fontFamily, probe.fontSize);
|
|
129485
|
+
}, getFontFromParagraphContent = (node3) => {
|
|
129486
|
+
let found$1;
|
|
129487
|
+
const visit2 = (current) => {
|
|
129488
|
+
if (found$1 || current == null || typeof current !== "object")
|
|
129489
|
+
return;
|
|
129490
|
+
const candidate = current;
|
|
129491
|
+
if ((candidate.isText === true || typeof candidate.text === "string") && candidate.marks?.length)
|
|
129492
|
+
for (const mark of candidate.marks) {
|
|
129493
|
+
if ((typeof mark.type === "string" ? mark.type : mark.type?.name) !== "textStyle")
|
|
129494
|
+
continue;
|
|
129495
|
+
const partial = getFontFromTextStyleMark(mark.attrs ?? {});
|
|
129496
|
+
if (partial) {
|
|
129497
|
+
found$1 = partial;
|
|
129498
|
+
return;
|
|
129499
|
+
}
|
|
129500
|
+
}
|
|
129501
|
+
candidate.content?.forEach?.(visit2);
|
|
129502
|
+
};
|
|
129503
|
+
visit2(node3);
|
|
129504
|
+
return found$1;
|
|
129505
|
+
}, resolveContentFont = (block, para, source, previousParagraphFont) => {
|
|
129506
|
+
const fromRuns = getFontFromRuns(block.runs);
|
|
129507
|
+
const fromPara = para ? getFontFromParagraphContent(para) : undefined;
|
|
129508
|
+
if (source === "paragraph") {
|
|
129509
|
+
if (fromPara)
|
|
129510
|
+
return fromPara;
|
|
129511
|
+
return fromRuns ?? previousParagraphFont;
|
|
129512
|
+
}
|
|
129513
|
+
return fromRuns ?? fromPara;
|
|
129514
|
+
}, syncListMarkerFontFromParagraphRuns = ({ block, converterContext, para, contentFontSource = "runs", previousParagraphFont }) => {
|
|
129515
|
+
const markerRun = block.attrs?.wordLayout?.marker?.run;
|
|
129516
|
+
if (!markerRun)
|
|
129517
|
+
return;
|
|
129518
|
+
const contentFont = resolveContentFont(block, para, contentFontSource, previousParagraphFont);
|
|
129519
|
+
if (!contentFont)
|
|
129520
|
+
return;
|
|
129521
|
+
const paragraphProperties = para?.attrs?.paragraphProperties != null && typeof para.attrs.paragraphProperties === "object" ? para.attrs.paragraphProperties : undefined;
|
|
129522
|
+
const hasLiveTextStyleFont = para ? getFontFromParagraphContent(para) != null : false;
|
|
129523
|
+
const allowBodyFontSync = !hasExplicitParagraphRunProperties(paragraphProperties) || hasLiveTextStyleFont;
|
|
129524
|
+
if (contentFontSource === "paragraph") {
|
|
129525
|
+
const firstRun = block.runs[0];
|
|
129526
|
+
if (firstRun && isTextRun$1(firstRun) && firstRun.text.length === 0) {
|
|
129527
|
+
if (contentFont.fontFamily)
|
|
129528
|
+
firstRun.fontFamily = contentFont.fontFamily;
|
|
129529
|
+
if (contentFont.fontSize)
|
|
129530
|
+
firstRun.fontSize = contentFont.fontSize;
|
|
129531
|
+
}
|
|
129532
|
+
}
|
|
129533
|
+
const preserveNumberingFontFamily = numberingDefinesMarkerFontFamily(block.attrs?.numberingProperties, converterContext);
|
|
129534
|
+
if (allowBodyFontSync && !preserveNumberingFontFamily && contentFont.fontFamily)
|
|
129535
|
+
markerRun.fontFamily = contentFont.fontFamily;
|
|
129536
|
+
if (allowBodyFontSync && contentFont.fontSize)
|
|
129537
|
+
markerRun.fontSize = contentFont.fontSize;
|
|
129434
129538
|
}, buildSyntheticTextNode = (displayText, marks) => ({
|
|
129435
129539
|
type: "text",
|
|
129436
129540
|
text: displayText,
|
|
@@ -130696,7 +130800,7 @@ var isRegExp = (value) => {
|
|
|
130696
130800
|
state.kern = kernNode.attributes["w:val"];
|
|
130697
130801
|
}
|
|
130698
130802
|
}, SuperConverter;
|
|
130699
|
-
var
|
|
130803
|
+
var init_SuperConverter_BoqEhvrr_es = __esm(() => {
|
|
130700
130804
|
init_rolldown_runtime_Bg48TavK_es();
|
|
130701
130805
|
init_jszip_C49i9kUs_es();
|
|
130702
130806
|
init_xml_js_CqGKpaft_es();
|
|
@@ -169470,7 +169574,7 @@ var init_SuperConverter_D9c2ow57_es = __esm(() => {
|
|
|
169470
169574
|
};
|
|
169471
169575
|
});
|
|
169472
169576
|
|
|
169473
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
169577
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-BrbwjtJZ.es.js
|
|
169474
169578
|
function parseSizeUnit(val = "0") {
|
|
169475
169579
|
const length3 = val.toString() || "0";
|
|
169476
169580
|
const value = Number.parseFloat(length3);
|
|
@@ -179801,8 +179905,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
179801
179905
|
}
|
|
179802
179906
|
};
|
|
179803
179907
|
};
|
|
179804
|
-
var
|
|
179805
|
-
|
|
179908
|
+
var init_create_headless_toolbar_BrbwjtJZ_es = __esm(() => {
|
|
179909
|
+
init_SuperConverter_BoqEhvrr_es();
|
|
179806
179910
|
init_uuid_qzgm05fK_es();
|
|
179807
179911
|
init_constants_D_X7xF4s_es();
|
|
179808
179912
|
init_dist_B8HfvhaK_es();
|
|
@@ -228965,7 +229069,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
228965
229069
|
init_remark_gfm_BhnWr3yf_es();
|
|
228966
229070
|
});
|
|
228967
229071
|
|
|
228968
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
229072
|
+
// ../../packages/superdoc/dist/chunks/src-HGVtAenV.es.js
|
|
228969
229073
|
function deleteProps(obj, propOrProps) {
|
|
228970
229074
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
228971
229075
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -283300,7 +283404,7 @@ function updateMaxFontInfo(currentMaxSize, currentMaxInfo, newRun) {
|
|
|
283300
283404
|
return getFontInfoFromRun(newRun);
|
|
283301
283405
|
return currentMaxInfo;
|
|
283302
283406
|
}
|
|
283303
|
-
function isTextRun$
|
|
283407
|
+
function isTextRun$22(run2) {
|
|
283304
283408
|
return run2.kind === "text" || run2.kind === undefined;
|
|
283305
283409
|
}
|
|
283306
283410
|
function isTabRun(run2) {
|
|
@@ -283427,9 +283531,9 @@ async function measureBlock(block, constraints) {
|
|
|
283427
283531
|
async function measureParagraphBlock(block, maxWidth) {
|
|
283428
283532
|
const ctx$1 = getCanvasContext();
|
|
283429
283533
|
const wordLayout = block.attrs?.wordLayout;
|
|
283430
|
-
const firstTextRunWithSize = block.runs.find((run2) => isTextRun$
|
|
283534
|
+
const firstTextRunWithSize = block.runs.find((run2) => isTextRun$22(run2) && ("fontSize" in run2) && run2.fontSize != null);
|
|
283431
283535
|
const fallbackFontSize = normalizeFontSize2(firstTextRunWithSize?.fontSize, DEFAULT_PARAGRAPH_FONT_SIZE);
|
|
283432
|
-
const fallbackFontFamily = block.runs.find((run2) => isTextRun$
|
|
283536
|
+
const fallbackFontFamily = block.runs.find((run2) => isTextRun$22(run2) && typeof run2.fontFamily === "string" && run2.fontFamily.trim().length > 0)?.fontFamily ?? DEFAULT_PARAGRAPH_FONT_FAMILY;
|
|
283433
283537
|
const normalizedRuns = normalizeRunsForMeasurement(block.runs, fallbackFontSize, fallbackFontFamily);
|
|
283434
283538
|
const markerInfo = wordLayout?.marker ? (() => {
|
|
283435
283539
|
const { font: markerFont } = buildFontString({
|
|
@@ -283651,10 +283755,10 @@ async function measureParagraphBlock(block, maxWidth) {
|
|
|
283651
283755
|
});
|
|
283652
283756
|
} else
|
|
283653
283757
|
runsToProcess.push(run2);
|
|
283654
|
-
if (runsToProcess.some((run2) => isTextRun$
|
|
283758
|
+
if (runsToProcess.some((run2) => isTextRun$22(run2) && typeof run2.text === "string" && run2.text.includes("\t"))) {
|
|
283655
283759
|
const expandedRuns = [];
|
|
283656
283760
|
for (const run2 of runsToProcess) {
|
|
283657
|
-
if (!isTextRun$
|
|
283761
|
+
if (!isTextRun$22(run2) || typeof run2.text !== "string" || !run2.text.includes("\t")) {
|
|
283658
283762
|
expandedRuns.push(run2);
|
|
283659
283763
|
continue;
|
|
283660
283764
|
}
|
|
@@ -322089,13 +322193,13 @@ menclose::after {
|
|
|
322089
322193
|
return;
|
|
322090
322194
|
console.log(...args$1);
|
|
322091
322195
|
}, 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;
|
|
322092
|
-
var
|
|
322196
|
+
var init_src_HGVtAenV_es = __esm(() => {
|
|
322093
322197
|
init_rolldown_runtime_Bg48TavK_es();
|
|
322094
|
-
|
|
322198
|
+
init_SuperConverter_BoqEhvrr_es();
|
|
322095
322199
|
init_jszip_C49i9kUs_es();
|
|
322096
322200
|
init_xml_js_CqGKpaft_es();
|
|
322097
322201
|
init_uuid_qzgm05fK_es();
|
|
322098
|
-
|
|
322202
|
+
init_create_headless_toolbar_BrbwjtJZ_es();
|
|
322099
322203
|
init_constants_D_X7xF4s_es();
|
|
322100
322204
|
init_dist_B8HfvhaK_es();
|
|
322101
322205
|
init_unified_Dsuw2be5_es();
|
|
@@ -356437,11 +356541,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
356437
356541
|
]);
|
|
356438
356542
|
});
|
|
356439
356543
|
|
|
356440
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
356544
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-SRtgJ7Vz.es.js
|
|
356441
356545
|
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;
|
|
356442
|
-
var
|
|
356443
|
-
|
|
356444
|
-
|
|
356546
|
+
var init_create_super_doc_ui_SRtgJ7Vz_es = __esm(() => {
|
|
356547
|
+
init_SuperConverter_BoqEhvrr_es();
|
|
356548
|
+
init_create_headless_toolbar_BrbwjtJZ_es();
|
|
356445
356549
|
MOD_ALIASES = new Set([
|
|
356446
356550
|
"Mod",
|
|
356447
356551
|
"Meta",
|
|
@@ -356483,16 +356587,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
356483
356587
|
|
|
356484
356588
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
356485
356589
|
var init_super_editor_es = __esm(() => {
|
|
356486
|
-
|
|
356487
|
-
|
|
356590
|
+
init_src_HGVtAenV_es();
|
|
356591
|
+
init_SuperConverter_BoqEhvrr_es();
|
|
356488
356592
|
init_jszip_C49i9kUs_es();
|
|
356489
356593
|
init_xml_js_CqGKpaft_es();
|
|
356490
|
-
|
|
356594
|
+
init_create_headless_toolbar_BrbwjtJZ_es();
|
|
356491
356595
|
init_constants_D_X7xF4s_es();
|
|
356492
356596
|
init_dist_B8HfvhaK_es();
|
|
356493
356597
|
init_unified_Dsuw2be5_es();
|
|
356494
356598
|
init_DocxZipper_nv_KfOqb_es();
|
|
356495
|
-
|
|
356599
|
+
init_create_super_doc_ui_SRtgJ7Vz_es();
|
|
356496
356600
|
init_ui_C5PAS9hY_es();
|
|
356497
356601
|
init_eventemitter3_BnGqBE_Q_es();
|
|
356498
356602
|
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.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@superdoc-dev/cli-darwin-
|
|
37
|
-
"@superdoc-dev/cli-darwin-
|
|
38
|
-
"@superdoc-dev/cli-linux-
|
|
39
|
-
"@superdoc-dev/cli-linux-
|
|
40
|
-
"@superdoc-dev/cli-windows-x64": "0.16.0-next.
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.16.0-next.12",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.16.0-next.12",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.16.0-next.12",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.16.0-next.12",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.16.0-next.12"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|