@superdoc-dev/cli 0.16.0-next.25 → 0.16.0-next.27
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 +237 -15
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -230255,7 +230255,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
230255
230255
|
init_remark_gfm_BhnWr3yf_es();
|
|
230256
230256
|
});
|
|
230257
230257
|
|
|
230258
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
230258
|
+
// ../../packages/superdoc/dist/chunks/src-MLERudib.es.js
|
|
230259
230259
|
function deleteProps(obj, propOrProps) {
|
|
230260
230260
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
230261
230261
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -270539,6 +270539,20 @@ function isSettled(status) {
|
|
|
270539
270539
|
function normalizeFamilyKey$2(family$1) {
|
|
270540
270540
|
return family$1.trim().replace(/^["']|["']$/g, "").toLowerCase();
|
|
270541
270541
|
}
|
|
270542
|
+
function deriveBundledSubstitutes() {
|
|
270543
|
+
const substitutes = {};
|
|
270544
|
+
for (const row2 of SUBSTITUTION_EVIDENCE)
|
|
270545
|
+
if (row2.policyAction === "substitute" && row2.physicalFamily)
|
|
270546
|
+
substitutes[normalizeFamilyKey$2(row2.logicalFamily)] = row2.physicalFamily;
|
|
270547
|
+
return Object.freeze(substitutes);
|
|
270548
|
+
}
|
|
270549
|
+
function deriveCategoryFallbacks() {
|
|
270550
|
+
const fallbacks = {};
|
|
270551
|
+
for (const row2 of SUBSTITUTION_EVIDENCE)
|
|
270552
|
+
if (row2.policyAction === "category_fallback" && row2.physicalFamily)
|
|
270553
|
+
fallbacks[normalizeFamilyKey$2(row2.logicalFamily)] = row2.physicalFamily;
|
|
270554
|
+
return Object.freeze(fallbacks);
|
|
270555
|
+
}
|
|
270542
270556
|
function stripFamilyQuotes(family$1) {
|
|
270543
270557
|
return family$1.trim().replace(/^["']|["']$/g, "");
|
|
270544
270558
|
}
|
|
@@ -270660,7 +270674,7 @@ function buildFontReport(logicalFamilies, registry2, resolver2) {
|
|
|
270660
270674
|
reason,
|
|
270661
270675
|
loadStatus,
|
|
270662
270676
|
exportFamily: logical,
|
|
270663
|
-
missing: isSettled(loadStatus) && loadStatus !== "loaded"
|
|
270677
|
+
missing: reason === "category_fallback" || isSettled(loadStatus) && loadStatus !== "loaded"
|
|
270664
270678
|
});
|
|
270665
270679
|
}
|
|
270666
270680
|
return report;
|
|
@@ -270686,7 +270700,7 @@ function buildFaceReport(usedFaces, registry2, resolver2) {
|
|
|
270686
270700
|
weight,
|
|
270687
270701
|
style: style2
|
|
270688
270702
|
});
|
|
270689
|
-
const missing = reason === "fallback_face_absent" || isSettled(loadStatus) && loadStatus !== "loaded";
|
|
270703
|
+
const missing = reason === "fallback_face_absent" || reason === "category_fallback" || isSettled(loadStatus) && loadStatus !== "loaded";
|
|
270690
270704
|
report.push({
|
|
270691
270705
|
logicalFamily,
|
|
270692
270706
|
physicalFamily,
|
|
@@ -310374,7 +310388,7 @@ menclose::after {
|
|
|
310374
310388
|
const minReadablePx = getMinimumReadableTextStartPx(markerContentEndPx, gutterWidthPx);
|
|
310375
310389
|
return Math.max(nextTabStopPx, minReadablePx);
|
|
310376
310390
|
}
|
|
310377
|
-
}, SETTLED_STATUSES, BUNDLED_SUBSTITUTES, FontResolver = class {
|
|
310391
|
+
}, SETTLED_STATUSES, SUBSTITUTION_EVIDENCE, BUNDLED_SUBSTITUTES, CATEGORY_FALLBACKS, FontResolver = class {
|
|
310378
310392
|
#overrides = /* @__PURE__ */ new Map;
|
|
310379
310393
|
#version = 0;
|
|
310380
310394
|
#cachedSignature = null;
|
|
@@ -310432,6 +310446,12 @@ menclose::after {
|
|
|
310432
310446
|
physical: bundled,
|
|
310433
310447
|
reason: "bundled_substitute"
|
|
310434
310448
|
};
|
|
310449
|
+
const category = CATEGORY_FALLBACKS[key2];
|
|
310450
|
+
if (category)
|
|
310451
|
+
return {
|
|
310452
|
+
physical: category,
|
|
310453
|
+
reason: "category_fallback"
|
|
310454
|
+
};
|
|
310435
310455
|
return {
|
|
310436
310456
|
physical: bareFamily,
|
|
310437
310457
|
reason: "as_requested"
|
|
@@ -310456,6 +310476,12 @@ menclose::after {
|
|
|
310456
310476
|
physical: bundled,
|
|
310457
310477
|
reason: "bundled_substitute"
|
|
310458
310478
|
};
|
|
310479
|
+
const category = CATEGORY_FALLBACKS[key2];
|
|
310480
|
+
if (category && hasFace(category, face.weight, face.style))
|
|
310481
|
+
return {
|
|
310482
|
+
physical: category,
|
|
310483
|
+
reason: "category_fallback"
|
|
310484
|
+
};
|
|
310459
310485
|
if (override || bundled)
|
|
310460
310486
|
return {
|
|
310461
310487
|
physical: primary,
|
|
@@ -310501,8 +310527,8 @@ menclose::after {
|
|
|
310501
310527
|
const parts = splitStack(cssFontFamily);
|
|
310502
310528
|
if (parts.length === 0)
|
|
310503
310529
|
return cssFontFamily;
|
|
310504
|
-
const { physical
|
|
310505
|
-
if (
|
|
310530
|
+
const { physical } = this.#resolveFaceLadder(parts[0], face, hasFace);
|
|
310531
|
+
if (normalizeFamilyKey$2(physical) !== normalizeFamilyKey$2(parts[0]))
|
|
310506
310532
|
return [physical, ...parts.slice(1)].join(", ");
|
|
310507
310533
|
return cssFontFamily;
|
|
310508
310534
|
}
|
|
@@ -326524,7 +326550,7 @@ menclose::after {
|
|
|
326524
326550
|
return;
|
|
326525
326551
|
console.log(...args$1);
|
|
326526
326552
|
}, 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;
|
|
326527
|
-
var
|
|
326553
|
+
var init_src_MLERudib_es = __esm(() => {
|
|
326528
326554
|
init_rolldown_runtime_Bg48TavK_es();
|
|
326529
326555
|
init_SuperConverter_DBsJeu9t_es();
|
|
326530
326556
|
init_jszip_C49i9kUs_es();
|
|
@@ -353440,13 +353466,209 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
353440
353466
|
"timed_out",
|
|
353441
353467
|
"fallback_used"
|
|
353442
353468
|
];
|
|
353443
|
-
|
|
353444
|
-
|
|
353445
|
-
|
|
353446
|
-
|
|
353447
|
-
|
|
353448
|
-
|
|
353449
|
-
|
|
353469
|
+
SUBSTITUTION_EVIDENCE = Object.freeze([
|
|
353470
|
+
{
|
|
353471
|
+
evidenceId: "calibri",
|
|
353472
|
+
logicalFamily: "Calibri",
|
|
353473
|
+
physicalFamily: "Carlito",
|
|
353474
|
+
verdict: "metric_safe",
|
|
353475
|
+
faces: {
|
|
353476
|
+
regular: true,
|
|
353477
|
+
bold: true,
|
|
353478
|
+
italic: true,
|
|
353479
|
+
boldItalic: true
|
|
353480
|
+
},
|
|
353481
|
+
advance: {
|
|
353482
|
+
meanDelta: 0,
|
|
353483
|
+
maxDelta: 0
|
|
353484
|
+
},
|
|
353485
|
+
gates: {
|
|
353486
|
+
static: "pass",
|
|
353487
|
+
metric: "pass",
|
|
353488
|
+
layout: "pass",
|
|
353489
|
+
ship: "pass"
|
|
353490
|
+
},
|
|
353491
|
+
policyAction: "substitute",
|
|
353492
|
+
measurementRefs: ["calibri__carlito#analytic_advance#2026-06-03", "calibri__carlito#face_aggregate#2026-06-03"],
|
|
353493
|
+
candidateLicense: "OFL-1.1",
|
|
353494
|
+
exportRule: "preserve_original_name"
|
|
353495
|
+
},
|
|
353496
|
+
{
|
|
353497
|
+
evidenceId: "cambria",
|
|
353498
|
+
logicalFamily: "Cambria",
|
|
353499
|
+
physicalFamily: "Caladea",
|
|
353500
|
+
verdict: "visual_only",
|
|
353501
|
+
faceVerdicts: {
|
|
353502
|
+
regular: "metric_safe",
|
|
353503
|
+
bold: "metric_safe",
|
|
353504
|
+
italic: "metric_safe",
|
|
353505
|
+
boldItalic: "visual_only"
|
|
353506
|
+
},
|
|
353507
|
+
glyphExceptions: [{
|
|
353508
|
+
slot: "boldItalic",
|
|
353509
|
+
codepoint: 96,
|
|
353510
|
+
advanceDelta: 0.231,
|
|
353511
|
+
note: "Caladea Bold Italic grave accent (U+0060) advance diverges ~23% from Cambria; lines containing it reflow."
|
|
353512
|
+
}],
|
|
353513
|
+
faces: {
|
|
353514
|
+
regular: true,
|
|
353515
|
+
bold: true,
|
|
353516
|
+
italic: true,
|
|
353517
|
+
boldItalic: true
|
|
353518
|
+
},
|
|
353519
|
+
advance: {
|
|
353520
|
+
meanDelta: 0.0002378,
|
|
353521
|
+
maxDelta: 0.2310758
|
|
353522
|
+
},
|
|
353523
|
+
gates: {
|
|
353524
|
+
static: "pass",
|
|
353525
|
+
metric: "pass",
|
|
353526
|
+
layout: "not_run",
|
|
353527
|
+
ship: "pass"
|
|
353528
|
+
},
|
|
353529
|
+
policyAction: "substitute",
|
|
353530
|
+
measurementRefs: [
|
|
353531
|
+
"cambria_regular__caladea#regular#w400#d2f6cad3#analytic_advance#2026-06-04",
|
|
353532
|
+
"cambria_bold__caladea#bold#w700#74eda4fc#analytic_advance#2026-06-04",
|
|
353533
|
+
"cambria_italic__caladea#italic#w400#9c968bf6#analytic_advance#2026-06-04",
|
|
353534
|
+
"cambria_boldItalic__caladea#boldItalic#w700#f47a35ad#analytic_advance#2026-06-04"
|
|
353535
|
+
],
|
|
353536
|
+
candidateLicense: "Apache-2.0",
|
|
353537
|
+
exportRule: "preserve_original_name"
|
|
353538
|
+
},
|
|
353539
|
+
{
|
|
353540
|
+
evidenceId: "arial",
|
|
353541
|
+
logicalFamily: "Arial",
|
|
353542
|
+
physicalFamily: "Liberation Sans",
|
|
353543
|
+
verdict: "metric_safe",
|
|
353544
|
+
faces: {
|
|
353545
|
+
regular: true,
|
|
353546
|
+
bold: true,
|
|
353547
|
+
italic: true,
|
|
353548
|
+
boldItalic: true
|
|
353549
|
+
},
|
|
353550
|
+
advance: {
|
|
353551
|
+
meanDelta: 0,
|
|
353552
|
+
maxDelta: 0
|
|
353553
|
+
},
|
|
353554
|
+
gates: {
|
|
353555
|
+
static: "pass",
|
|
353556
|
+
metric: "pass",
|
|
353557
|
+
layout: "not_run",
|
|
353558
|
+
ship: "pass"
|
|
353559
|
+
},
|
|
353560
|
+
policyAction: "substitute",
|
|
353561
|
+
measurementRefs: ["arial__liberation-sans#analytic_advance#2026-06-03"],
|
|
353562
|
+
candidateLicense: "OFL-1.1",
|
|
353563
|
+
exportRule: "preserve_original_name"
|
|
353564
|
+
},
|
|
353565
|
+
{
|
|
353566
|
+
evidenceId: "times-new-roman",
|
|
353567
|
+
logicalFamily: "Times New Roman",
|
|
353568
|
+
physicalFamily: "Liberation Serif",
|
|
353569
|
+
verdict: "metric_safe",
|
|
353570
|
+
faces: {
|
|
353571
|
+
regular: true,
|
|
353572
|
+
bold: true,
|
|
353573
|
+
italic: true,
|
|
353574
|
+
boldItalic: true
|
|
353575
|
+
},
|
|
353576
|
+
advance: {
|
|
353577
|
+
meanDelta: 0,
|
|
353578
|
+
maxDelta: 0
|
|
353579
|
+
},
|
|
353580
|
+
gates: {
|
|
353581
|
+
static: "pass",
|
|
353582
|
+
metric: "pass",
|
|
353583
|
+
layout: "not_run",
|
|
353584
|
+
ship: "pass"
|
|
353585
|
+
},
|
|
353586
|
+
policyAction: "substitute",
|
|
353587
|
+
measurementRefs: ["times-new-roman__liberation-serif#analytic_advance#2026-06-03"],
|
|
353588
|
+
candidateLicense: "OFL-1.1",
|
|
353589
|
+
exportRule: "preserve_original_name"
|
|
353590
|
+
},
|
|
353591
|
+
{
|
|
353592
|
+
evidenceId: "courier-new",
|
|
353593
|
+
logicalFamily: "Courier New",
|
|
353594
|
+
physicalFamily: "Liberation Mono",
|
|
353595
|
+
verdict: "metric_safe",
|
|
353596
|
+
faces: {
|
|
353597
|
+
regular: true,
|
|
353598
|
+
bold: true,
|
|
353599
|
+
italic: true,
|
|
353600
|
+
boldItalic: true
|
|
353601
|
+
},
|
|
353602
|
+
advance: {
|
|
353603
|
+
meanDelta: 0,
|
|
353604
|
+
maxDelta: 0
|
|
353605
|
+
},
|
|
353606
|
+
gates: {
|
|
353607
|
+
static: "pass",
|
|
353608
|
+
metric: "pass",
|
|
353609
|
+
layout: "not_run",
|
|
353610
|
+
ship: "pass"
|
|
353611
|
+
},
|
|
353612
|
+
policyAction: "substitute",
|
|
353613
|
+
measurementRefs: ["courier-new__liberation-mono#analytic_advance#2026-06-03"],
|
|
353614
|
+
candidateLicense: "OFL-1.1",
|
|
353615
|
+
exportRule: "preserve_original_name"
|
|
353616
|
+
},
|
|
353617
|
+
{
|
|
353618
|
+
evidenceId: "helvetica",
|
|
353619
|
+
logicalFamily: "Helvetica",
|
|
353620
|
+
physicalFamily: "Liberation Sans",
|
|
353621
|
+
verdict: "metric_safe",
|
|
353622
|
+
faces: {
|
|
353623
|
+
regular: true,
|
|
353624
|
+
bold: true,
|
|
353625
|
+
italic: true,
|
|
353626
|
+
boldItalic: true
|
|
353627
|
+
},
|
|
353628
|
+
advance: {
|
|
353629
|
+
meanDelta: 0,
|
|
353630
|
+
maxDelta: 0
|
|
353631
|
+
},
|
|
353632
|
+
gates: {
|
|
353633
|
+
static: "not_run",
|
|
353634
|
+
metric: "pass",
|
|
353635
|
+
layout: "not_run",
|
|
353636
|
+
ship: "fail"
|
|
353637
|
+
},
|
|
353638
|
+
policyAction: "substitute",
|
|
353639
|
+
measurementRefs: ["helvetica__liberation-sans#analytic_advance#2026-06-03"],
|
|
353640
|
+
candidateLicense: "OFL-1.1",
|
|
353641
|
+
exportRule: "preserve_original_name"
|
|
353642
|
+
},
|
|
353643
|
+
{
|
|
353644
|
+
evidenceId: "calibri-light",
|
|
353645
|
+
logicalFamily: "Calibri Light",
|
|
353646
|
+
physicalFamily: "Carlito",
|
|
353647
|
+
verdict: "visual_only",
|
|
353648
|
+
faces: {
|
|
353649
|
+
regular: false,
|
|
353650
|
+
bold: false,
|
|
353651
|
+
italic: false,
|
|
353652
|
+
boldItalic: false
|
|
353653
|
+
},
|
|
353654
|
+
advance: {
|
|
353655
|
+
meanDelta: 0.0148,
|
|
353656
|
+
maxDelta: 0.066
|
|
353657
|
+
},
|
|
353658
|
+
gates: {
|
|
353659
|
+
static: "not_run",
|
|
353660
|
+
metric: "fail",
|
|
353661
|
+
layout: "not_run",
|
|
353662
|
+
ship: "fail"
|
|
353663
|
+
},
|
|
353664
|
+
policyAction: "category_fallback",
|
|
353665
|
+
measurementRefs: ["calibri-light__carlito#analytic_advance#2026-06-05"],
|
|
353666
|
+
candidateLicense: "OFL-1.1",
|
|
353667
|
+
exportRule: "preserve_original_name"
|
|
353668
|
+
}
|
|
353669
|
+
]);
|
|
353670
|
+
BUNDLED_SUBSTITUTES = deriveBundledSubstitutes();
|
|
353671
|
+
CATEGORY_FALLBACKS = deriveCategoryFallbacks();
|
|
353450
353672
|
defaultResolver = new FontResolver;
|
|
353451
353673
|
DEFAULT_FONT_MEASURE_CONTEXT = Object.freeze({
|
|
353452
353674
|
resolvePhysical: (cssFontFamily, _face) => resolvePhysicalFamily(cssFontFamily),
|
|
@@ -361320,7 +361542,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
361320
361542
|
|
|
361321
361543
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
361322
361544
|
var init_super_editor_es = __esm(() => {
|
|
361323
|
-
|
|
361545
|
+
init_src_MLERudib_es();
|
|
361324
361546
|
init_SuperConverter_DBsJeu9t_es();
|
|
361325
361547
|
init_jszip_C49i9kUs_es();
|
|
361326
361548
|
init_xml_js_CqGKpaft_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.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
|
-
"superdoc": "
|
|
29
|
-
"
|
|
28
|
+
"@superdoc/super-editor": "0.0.1",
|
|
29
|
+
"superdoc": "1.38.0"
|
|
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-
|
|
37
|
-
"@superdoc-dev/cli-darwin-
|
|
38
|
-
"@superdoc-dev/cli-linux-arm64": "0.16.0-next.
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.16.0-next.27",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.16.0-next.27",
|
|
38
|
+
"@superdoc-dev/cli-linux-arm64": "0.16.0-next.27",
|
|
39
|
+
"@superdoc-dev/cli-windows-x64": "0.16.0-next.27",
|
|
40
|
+
"@superdoc-dev/cli-linux-x64": "0.16.0-next.27"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|