@superdoc-dev/cli 0.17.0-next.10 → 0.17.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 +147 -31
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -68327,7 +68327,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
68327
68327
|
emptyOptions2 = {};
|
|
68328
68328
|
});
|
|
68329
68329
|
|
|
68330
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
68330
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-DLdwVEPh.es.js
|
|
68331
68331
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
68332
68332
|
const fieldValue = extension$1.config[field];
|
|
68333
68333
|
if (typeof fieldValue === "function")
|
|
@@ -111701,6 +111701,7 @@ function groupTrackedChanges(editor) {
|
|
|
111701
111701
|
return cached.grouped;
|
|
111702
111702
|
const marks = getRawTrackedMarks(editor);
|
|
111703
111703
|
const byRawId = /* @__PURE__ */ new Map;
|
|
111704
|
+
const segmentsByRawId = /* @__PURE__ */ new Map;
|
|
111704
111705
|
for (const item of marks) {
|
|
111705
111706
|
const attrs = item.mark?.attrs ?? {};
|
|
111706
111707
|
const id2 = toNonEmptyString(attrs.id);
|
|
@@ -111716,6 +111717,17 @@ function groupTrackedChanges(editor) {
|
|
|
111716
111717
|
const wordRevisionIdKey = getWordRevisionIdKey(markType);
|
|
111717
111718
|
const excerptText = !wordRevisionId || !hasChildTrackedMarkOnNode(item, id2) ? getTrackedMarkText(editor, item) : "";
|
|
111718
111719
|
const range = [item.from, item.to];
|
|
111720
|
+
const priorSegments = segmentsByRawId.get(groupKey);
|
|
111721
|
+
if (priorSegments)
|
|
111722
|
+
priorSegments.push({
|
|
111723
|
+
from: item.from,
|
|
111724
|
+
to: item.to
|
|
111725
|
+
});
|
|
111726
|
+
else
|
|
111727
|
+
segmentsByRawId.set(groupKey, [{
|
|
111728
|
+
from: item.from,
|
|
111729
|
+
to: item.to
|
|
111730
|
+
}]);
|
|
111719
111731
|
if (!existing) {
|
|
111720
111732
|
byRawId.set(groupKey, {
|
|
111721
111733
|
rawId: groupKey,
|
|
@@ -111763,7 +111775,23 @@ function groupTrackedChanges(editor) {
|
|
|
111763
111775
|
return a.id.localeCompare(b.id);
|
|
111764
111776
|
});
|
|
111765
111777
|
attachOverlapMetadata(grouped);
|
|
111766
|
-
|
|
111778
|
+
const structuralChanges = enumerateStructuralRowChanges(editor.state);
|
|
111779
|
+
const wholeTableRanges = structuralChanges.filter((structural) => structural.decidable && structural.wholeTable).map((structural) => ({
|
|
111780
|
+
from: structural.tableFrom,
|
|
111781
|
+
to: structural.tableTo
|
|
111782
|
+
}));
|
|
111783
|
+
if (wholeTableRanges.length > 0) {
|
|
111784
|
+
const segmentInsideSomeTable = (segment) => wholeTableRanges.some((range) => segment.from >= range.from && segment.to <= range.to);
|
|
111785
|
+
for (let i$1 = grouped.length - 1;i$1 >= 0; i$1 -= 1) {
|
|
111786
|
+
const change = grouped[i$1];
|
|
111787
|
+
if ((segmentsByRawId.get(change.rawId) ?? [{
|
|
111788
|
+
from: change.from,
|
|
111789
|
+
to: change.to
|
|
111790
|
+
}]).every(segmentInsideSomeTable))
|
|
111791
|
+
grouped.splice(i$1, 1);
|
|
111792
|
+
}
|
|
111793
|
+
}
|
|
111794
|
+
for (const structural of structuralChanges) {
|
|
111767
111795
|
const excerpt = normalizeExcerpt(editor.state.doc.textBetween(structural.tableFrom, structural.tableTo, " ", ""));
|
|
111768
111796
|
const stableRawId = structural.sourceId ? `word:structural:${structural.sourceId}` : structural.id;
|
|
111769
111797
|
grouped.push({
|
|
@@ -134284,7 +134312,7 @@ var isRegExp = (value) => {
|
|
|
134284
134312
|
state.kern = kernNode.attributes["w:val"];
|
|
134285
134313
|
}
|
|
134286
134314
|
}, SuperConverter;
|
|
134287
|
-
var
|
|
134315
|
+
var init_SuperConverter_DLdwVEPh_es = __esm(() => {
|
|
134288
134316
|
init_rolldown_runtime_Bg48TavK_es();
|
|
134289
134317
|
init_jszip_C49i9kUs_es();
|
|
134290
134318
|
init_xml_js_CqGKpaft_es();
|
|
@@ -172213,29 +172241,45 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172213
172241
|
evidenceId: "lucida-console",
|
|
172214
172242
|
generic: "monospace",
|
|
172215
172243
|
logicalFamily: "Lucida Console",
|
|
172216
|
-
physicalFamily: "
|
|
172217
|
-
verdict: "
|
|
172244
|
+
physicalFamily: "Noto Sans Mono",
|
|
172245
|
+
verdict: "visual_only",
|
|
172218
172246
|
faces: {
|
|
172219
|
-
regular:
|
|
172220
|
-
bold:
|
|
172247
|
+
regular: true,
|
|
172248
|
+
bold: true,
|
|
172221
172249
|
italic: false,
|
|
172222
172250
|
boldItalic: false
|
|
172223
172251
|
},
|
|
172252
|
+
faceSources: {
|
|
172253
|
+
italic: {
|
|
172254
|
+
kind: "synthetic",
|
|
172255
|
+
from: "regular"
|
|
172256
|
+
},
|
|
172257
|
+
boldItalic: {
|
|
172258
|
+
kind: "synthetic",
|
|
172259
|
+
from: "bold"
|
|
172260
|
+
}
|
|
172261
|
+
},
|
|
172224
172262
|
gates: {
|
|
172225
|
-
static: "
|
|
172226
|
-
metric: "
|
|
172263
|
+
static: "pass",
|
|
172264
|
+
metric: "pass",
|
|
172227
172265
|
layout: "not_run",
|
|
172228
|
-
ship: "
|
|
172266
|
+
ship: "fail"
|
|
172229
172267
|
},
|
|
172230
172268
|
policyAction: "category_fallback",
|
|
172231
|
-
measurementRefs: ["lucida-
|
|
172269
|
+
measurementRefs: ["lucida-console__noto-sans-mono#monospace_cell#analytic_advance#2026-06-09", "lucida-console__noto-sans-mono#visual_review#2026-06-09"],
|
|
172232
172270
|
exportRule: "preserve_original_name",
|
|
172233
172271
|
advance: {
|
|
172234
172272
|
basis: "monospace_cell",
|
|
172235
|
-
meanDelta: 0.
|
|
172236
|
-
maxDelta: 0.
|
|
172273
|
+
meanDelta: 0.00254,
|
|
172274
|
+
maxDelta: 0.00303
|
|
172237
172275
|
},
|
|
172238
|
-
candidateLicense: "OFL-1.1"
|
|
172276
|
+
candidateLicense: "OFL-1.1",
|
|
172277
|
+
faceVerdicts: {
|
|
172278
|
+
regular: "cell_width_only",
|
|
172279
|
+
bold: "cell_width_only",
|
|
172280
|
+
italic: "visual_only",
|
|
172281
|
+
boldItalic: "visual_only"
|
|
172282
|
+
}
|
|
172239
172283
|
},
|
|
172240
172284
|
{
|
|
172241
172285
|
evidenceId: "gill-sans-mt-condensed",
|
|
@@ -172388,6 +172432,20 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172388
172432
|
italic: false,
|
|
172389
172433
|
boldItalic: false
|
|
172390
172434
|
},
|
|
172435
|
+
faceSources: {
|
|
172436
|
+
bold: {
|
|
172437
|
+
kind: "synthetic",
|
|
172438
|
+
from: "regular"
|
|
172439
|
+
},
|
|
172440
|
+
italic: {
|
|
172441
|
+
kind: "synthetic",
|
|
172442
|
+
from: "regular"
|
|
172443
|
+
},
|
|
172444
|
+
boldItalic: {
|
|
172445
|
+
kind: "synthetic",
|
|
172446
|
+
from: "regular"
|
|
172447
|
+
}
|
|
172448
|
+
},
|
|
172391
172449
|
gates: {
|
|
172392
172450
|
static: "pass",
|
|
172393
172451
|
metric: "fail",
|
|
@@ -172395,7 +172453,7 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172395
172453
|
ship: "not_run"
|
|
172396
172454
|
},
|
|
172397
172455
|
policyAction: "substitute",
|
|
172398
|
-
measurementRefs: ["baskerville-old-face_regular__bacasime-antique#regular#w400#7dac1e5f#analytic_advance#2026-06-05"],
|
|
172456
|
+
measurementRefs: ["baskerville-old-face_regular__bacasime-antique#regular#w400#7dac1e5f#analytic_advance#2026-06-05", "baskerville-old-face__bacasime-antique#synthetic_faces#visual_review#2026-06-09"],
|
|
172399
172457
|
exportRule: "preserve_original_name",
|
|
172400
172458
|
advance: {
|
|
172401
172459
|
basis: "latin_full",
|
|
@@ -172403,7 +172461,12 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172403
172461
|
maxDelta: 0.4915590863952334
|
|
172404
172462
|
},
|
|
172405
172463
|
candidateLicense: "OFL-1.1",
|
|
172406
|
-
faceVerdicts: {
|
|
172464
|
+
faceVerdicts: {
|
|
172465
|
+
regular: "visual_only",
|
|
172466
|
+
bold: "visual_only",
|
|
172467
|
+
italic: "visual_only",
|
|
172468
|
+
boldItalic: "visual_only"
|
|
172469
|
+
},
|
|
172407
172470
|
glyphExceptions: [{
|
|
172408
172471
|
slot: "regular",
|
|
172409
172472
|
codepoint: 160,
|
|
@@ -172411,6 +172474,37 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172411
172474
|
note: "Bacasime Antique Regular's no-break space (U+00A0) advance diverges ~49% from Baskerville Old Face; lines containing NBSP reflow. Every other Latin-core glyph is advance-identical, which is why this is visual_only with a single named exception, not near_metric."
|
|
172412
172475
|
}]
|
|
172413
172476
|
},
|
|
172477
|
+
{
|
|
172478
|
+
evidenceId: "brush-script-mt",
|
|
172479
|
+
generic: "serif",
|
|
172480
|
+
logicalFamily: "Brush Script MT",
|
|
172481
|
+
physicalFamily: "Oregano Italic",
|
|
172482
|
+
verdict: "visual_only",
|
|
172483
|
+
faces: {
|
|
172484
|
+
regular: true,
|
|
172485
|
+
bold: false,
|
|
172486
|
+
italic: false,
|
|
172487
|
+
boldItalic: false
|
|
172488
|
+
},
|
|
172489
|
+
faceSources: { bold: {
|
|
172490
|
+
kind: "synthetic",
|
|
172491
|
+
from: "regular"
|
|
172492
|
+
} },
|
|
172493
|
+
gates: {
|
|
172494
|
+
static: "pass",
|
|
172495
|
+
metric: "fail",
|
|
172496
|
+
layout: "not_run",
|
|
172497
|
+
ship: "fail"
|
|
172498
|
+
},
|
|
172499
|
+
policyAction: "category_fallback",
|
|
172500
|
+
measurementRefs: ["brush-script-mt__oregano-italic#visual_review#2026-06-09"],
|
|
172501
|
+
exportRule: "preserve_original_name",
|
|
172502
|
+
candidateLicense: "OFL-1.1",
|
|
172503
|
+
faceVerdicts: {
|
|
172504
|
+
regular: "visual_only",
|
|
172505
|
+
bold: "visual_only"
|
|
172506
|
+
}
|
|
172507
|
+
},
|
|
172414
172508
|
{
|
|
172415
172509
|
evidenceId: "cooper-black",
|
|
172416
172510
|
generic: "serif",
|
|
@@ -172477,6 +172571,16 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172477
172571
|
style: "normal",
|
|
172478
172572
|
file: "Caprasimo-Regular.woff2"
|
|
172479
172573
|
}]),
|
|
172574
|
+
familyWithFaces("Bacasime Antique", "OFL-1.1", [{
|
|
172575
|
+
weight: "normal",
|
|
172576
|
+
style: "normal",
|
|
172577
|
+
file: "BacasimeAntique-Regular.woff2"
|
|
172578
|
+
}]),
|
|
172579
|
+
familyWithFaces("Oregano Italic", "OFL-1.1", [{
|
|
172580
|
+
weight: "normal",
|
|
172581
|
+
style: "normal",
|
|
172582
|
+
file: "OreganoItalic-Regular.woff2"
|
|
172583
|
+
}]),
|
|
172480
172584
|
family("Gelasio", "Gelasio", "OFL-1.1"),
|
|
172481
172585
|
familyWithFaces("Cardo", "OFL-1.1", [
|
|
172482
172586
|
{
|
|
@@ -172505,6 +172609,15 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172505
172609
|
file: "ComicRelief-Bold.woff2"
|
|
172506
172610
|
}]),
|
|
172507
172611
|
family("Noto Sans", "NotoSans", "OFL-1.1"),
|
|
172612
|
+
familyWithFaces("Noto Sans Mono", "OFL-1.1", [{
|
|
172613
|
+
weight: "normal",
|
|
172614
|
+
style: "normal",
|
|
172615
|
+
file: "NotoSansMono-Regular.woff2"
|
|
172616
|
+
}, {
|
|
172617
|
+
weight: "bold",
|
|
172618
|
+
style: "normal",
|
|
172619
|
+
file: "NotoSansMono-Bold.woff2"
|
|
172620
|
+
}]),
|
|
172508
172621
|
family("PT Sans", "PTSans", "OFL-1.1")
|
|
172509
172622
|
]);
|
|
172510
172623
|
SUBSTITUTION_EVIDENCE = SUBSTITUTION_EVIDENCE$1;
|
|
@@ -172522,10 +172635,13 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
172522
172635
|
registriesByFontSet = /* @__PURE__ */ new WeakMap;
|
|
172523
172636
|
BUNDLED_FAMILIES = new Set(BUNDLED_MANIFEST.map((f2) => f2.family));
|
|
172524
172637
|
ADVERTISED_BUILT_IN_TOOLBAR_FAMILIES = new Set([
|
|
172638
|
+
"Baskerville Old Face",
|
|
172639
|
+
"Brush Script MT",
|
|
172525
172640
|
"Cooper Black",
|
|
172526
172641
|
"Comic Sans MS",
|
|
172527
172642
|
"Garamond",
|
|
172528
172643
|
"Georgia",
|
|
172644
|
+
"Lucida Console",
|
|
172529
172645
|
"Tahoma",
|
|
172530
172646
|
"Trebuchet MS"
|
|
172531
172647
|
]);
|
|
@@ -174316,7 +174432,7 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
|
|
|
174316
174432
|
};
|
|
174317
174433
|
});
|
|
174318
174434
|
|
|
174319
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
174435
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-BxKMAAgQ.es.js
|
|
174320
174436
|
function parseSizeUnit(val = "0") {
|
|
174321
174437
|
const length3 = val.toString() || "0";
|
|
174322
174438
|
const value = Number.parseFloat(length3);
|
|
@@ -184674,8 +184790,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
184674
184790
|
}
|
|
184675
184791
|
};
|
|
184676
184792
|
};
|
|
184677
|
-
var
|
|
184678
|
-
|
|
184793
|
+
var init_create_headless_toolbar_BxKMAAgQ_es = __esm(() => {
|
|
184794
|
+
init_SuperConverter_DLdwVEPh_es();
|
|
184679
184795
|
init_uuid_B2wVPhPi_es();
|
|
184680
184796
|
init_constants_D9qj59G2_es();
|
|
184681
184797
|
init_dist_B8HfvhaK_es();
|
|
@@ -233838,7 +233954,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
233838
233954
|
init_remark_gfm_BhnWr3yf_es();
|
|
233839
233955
|
});
|
|
233840
233956
|
|
|
233841
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
233957
|
+
// ../../packages/superdoc/dist/chunks/src-Bq_Yxqun.es.js
|
|
233842
233958
|
function deleteProps(obj, propOrProps) {
|
|
233843
233959
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
233844
233960
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -331429,13 +331545,13 @@ menclose::after {
|
|
|
331429
331545
|
return;
|
|
331430
331546
|
console.log(...args$1);
|
|
331431
331547
|
}, 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;
|
|
331432
|
-
var
|
|
331548
|
+
var init_src_Bq_Yxqun_es = __esm(() => {
|
|
331433
331549
|
init_rolldown_runtime_Bg48TavK_es();
|
|
331434
|
-
|
|
331550
|
+
init_SuperConverter_DLdwVEPh_es();
|
|
331435
331551
|
init_jszip_C49i9kUs_es();
|
|
331436
331552
|
init_xml_js_CqGKpaft_es();
|
|
331437
331553
|
init_uuid_B2wVPhPi_es();
|
|
331438
|
-
|
|
331554
|
+
init_create_headless_toolbar_BxKMAAgQ_es();
|
|
331439
331555
|
init_constants_D9qj59G2_es();
|
|
331440
331556
|
init_dist_B8HfvhaK_es();
|
|
331441
331557
|
init_unified_Dsuw2be5_es();
|
|
@@ -366400,11 +366516,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
366400
366516
|
]);
|
|
366401
366517
|
});
|
|
366402
366518
|
|
|
366403
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui
|
|
366519
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-gS4xi9O7.es.js
|
|
366404
366520
|
var headlessToolbarConstants, 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;
|
|
366405
|
-
var
|
|
366406
|
-
|
|
366407
|
-
|
|
366521
|
+
var init_create_super_doc_ui_gS4xi9O7_es = __esm(() => {
|
|
366522
|
+
init_SuperConverter_DLdwVEPh_es();
|
|
366523
|
+
init_create_headless_toolbar_BxKMAAgQ_es();
|
|
366408
366524
|
headlessToolbarConstants = {
|
|
366409
366525
|
DEFAULT_TEXT_ALIGN_OPTIONS: [
|
|
366410
366526
|
{
|
|
@@ -366686,16 +366802,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
366686
366802
|
|
|
366687
366803
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
366688
366804
|
var init_super_editor_es = __esm(() => {
|
|
366689
|
-
|
|
366690
|
-
|
|
366805
|
+
init_src_Bq_Yxqun_es();
|
|
366806
|
+
init_SuperConverter_DLdwVEPh_es();
|
|
366691
366807
|
init_jszip_C49i9kUs_es();
|
|
366692
366808
|
init_xml_js_CqGKpaft_es();
|
|
366693
|
-
|
|
366809
|
+
init_create_headless_toolbar_BxKMAAgQ_es();
|
|
366694
366810
|
init_constants_D9qj59G2_es();
|
|
366695
366811
|
init_dist_B8HfvhaK_es();
|
|
366696
366812
|
init_unified_Dsuw2be5_es();
|
|
366697
366813
|
init_DocxZipper_FUsfThjV_es();
|
|
366698
|
-
|
|
366814
|
+
init_create_super_doc_ui_gS4xi9O7_es();
|
|
366699
366815
|
init_ui_C5PAS9hY_es();
|
|
366700
366816
|
init_eventemitter3_BnGqBE_Q_es();
|
|
366701
366817
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.17.0-next.
|
|
3
|
+
"version": "0.17.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-x64": "0.17.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-arm64": "0.17.0-next.
|
|
40
|
-
"@superdoc-dev/cli-windows-x64": "0.17.0-next.
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.17.0-next.12",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.17.0-next.12",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.17.0-next.12",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.17.0-next.12",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.17.0-next.12"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|