@superdoc-dev/cli 0.17.0-next.11 → 0.17.0-next.13

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.
Files changed (2) hide show
  1. package/dist/index.js +159 -41
  2. package/package.json +8 -8
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-DJyHekqW.es.js
68330
+ // ../../packages/superdoc/dist/chunks/SuperConverter-d9QeIy9-.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")
@@ -83894,16 +83894,31 @@ function preProcessXeInstruction(nodesToCombine, instrText, options = {}) {
83894
83894
  }];
83895
83895
  }
83896
83896
  function preProcessTcInstruction(nodesToCombine, instrText, options = {}) {
83897
+ const before2 = [];
83898
+ const after2 = [];
83899
+ const entryElements = [];
83897
83900
  const instructionTokens = options.instructionTokens ?? null;
83898
- return [{
83899
- name: "sd:tableOfContentsEntry",
83900
- type: "element",
83901
- attributes: {
83902
- instruction: instrText,
83903
- ...instructionTokens ? { instructionTokens } : {}
83901
+ let seenContent = false;
83902
+ for (const node3 of nodesToCombine)
83903
+ if (node3?.name === "w:bookmarkStart" || node3?.name === "w:bookmarkEnd")
83904
+ (seenContent ? after2 : before2).push(node3);
83905
+ else {
83906
+ seenContent = true;
83907
+ entryElements.push(node3);
83908
+ }
83909
+ return [
83910
+ ...before2,
83911
+ {
83912
+ name: "sd:tableOfContentsEntry",
83913
+ type: "element",
83914
+ attributes: {
83915
+ instruction: instrText,
83916
+ ...instructionTokens ? { instructionTokens } : {}
83917
+ },
83918
+ elements: entryElements
83904
83919
  },
83905
- elements: nodesToCombine
83906
- }];
83920
+ ...after2
83921
+ ];
83907
83922
  }
83908
83923
  function preProcessRefInstruction(nodesToCombine, instrText, options = {}) {
83909
83924
  return [{
@@ -134312,7 +134327,7 @@ var isRegExp = (value) => {
134312
134327
  state.kern = kernNode.attributes["w:val"];
134313
134328
  }
134314
134329
  }, SuperConverter;
134315
- var init_SuperConverter_DJyHekqW_es = __esm(() => {
134330
+ var init_SuperConverter_d9QeIy9_es = __esm(() => {
134316
134331
  init_rolldown_runtime_Bg48TavK_es();
134317
134332
  init_jszip_C49i9kUs_es();
134318
134333
  init_xml_js_CqGKpaft_es();
@@ -172241,29 +172256,45 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172241
172256
  evidenceId: "lucida-console",
172242
172257
  generic: "monospace",
172243
172258
  logicalFamily: "Lucida Console",
172244
- physicalFamily: "Cousine",
172245
- verdict: "cell_width_only",
172259
+ physicalFamily: "Noto Sans Mono",
172260
+ verdict: "visual_only",
172246
172261
  faces: {
172247
- regular: false,
172248
- bold: false,
172262
+ regular: true,
172263
+ bold: true,
172249
172264
  italic: false,
172250
172265
  boldItalic: false
172251
172266
  },
172267
+ faceSources: {
172268
+ italic: {
172269
+ kind: "synthetic",
172270
+ from: "regular"
172271
+ },
172272
+ boldItalic: {
172273
+ kind: "synthetic",
172274
+ from: "bold"
172275
+ }
172276
+ },
172252
172277
  gates: {
172253
- static: "not_run",
172254
- metric: "not_run",
172278
+ static: "pass",
172279
+ metric: "pass",
172255
172280
  layout: "not_run",
172256
- ship: "not_run"
172281
+ ship: "fail"
172257
172282
  },
172258
172283
  policyAction: "category_fallback",
172259
- measurementRefs: ["lucida-console__cousine#analytic_advance#2026-06-03"],
172284
+ measurementRefs: ["lucida-console__noto-sans-mono#monospace_cell#analytic_advance#2026-06-09", "lucida-console__noto-sans-mono#visual_review#2026-06-09"],
172260
172285
  exportRule: "preserve_original_name",
172261
172286
  advance: {
172262
172287
  basis: "monospace_cell",
172263
- meanDelta: 0.004050000000000001,
172264
- maxDelta: 0.004050000000000001
172288
+ meanDelta: 0.00254,
172289
+ maxDelta: 0.00303
172265
172290
  },
172266
- candidateLicense: "OFL-1.1"
172291
+ candidateLicense: "OFL-1.1",
172292
+ faceVerdicts: {
172293
+ regular: "cell_width_only",
172294
+ bold: "cell_width_only",
172295
+ italic: "visual_only",
172296
+ boldItalic: "visual_only"
172297
+ }
172267
172298
  },
172268
172299
  {
172269
172300
  evidenceId: "gill-sans-mt-condensed",
@@ -172416,6 +172447,20 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172416
172447
  italic: false,
172417
172448
  boldItalic: false
172418
172449
  },
172450
+ faceSources: {
172451
+ bold: {
172452
+ kind: "synthetic",
172453
+ from: "regular"
172454
+ },
172455
+ italic: {
172456
+ kind: "synthetic",
172457
+ from: "regular"
172458
+ },
172459
+ boldItalic: {
172460
+ kind: "synthetic",
172461
+ from: "regular"
172462
+ }
172463
+ },
172419
172464
  gates: {
172420
172465
  static: "pass",
172421
172466
  metric: "fail",
@@ -172423,7 +172468,7 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172423
172468
  ship: "not_run"
172424
172469
  },
172425
172470
  policyAction: "substitute",
172426
- measurementRefs: ["baskerville-old-face_regular__bacasime-antique#regular#w400#7dac1e5f#analytic_advance#2026-06-05"],
172471
+ 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"],
172427
172472
  exportRule: "preserve_original_name",
172428
172473
  advance: {
172429
172474
  basis: "latin_full",
@@ -172431,7 +172476,12 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172431
172476
  maxDelta: 0.4915590863952334
172432
172477
  },
172433
172478
  candidateLicense: "OFL-1.1",
172434
- faceVerdicts: { regular: "visual_only" },
172479
+ faceVerdicts: {
172480
+ regular: "visual_only",
172481
+ bold: "visual_only",
172482
+ italic: "visual_only",
172483
+ boldItalic: "visual_only"
172484
+ },
172435
172485
  glyphExceptions: [{
172436
172486
  slot: "regular",
172437
172487
  codepoint: 160,
@@ -172439,6 +172489,37 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172439
172489
  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."
172440
172490
  }]
172441
172491
  },
172492
+ {
172493
+ evidenceId: "brush-script-mt",
172494
+ generic: "serif",
172495
+ logicalFamily: "Brush Script MT",
172496
+ physicalFamily: "Oregano Italic",
172497
+ verdict: "visual_only",
172498
+ faces: {
172499
+ regular: true,
172500
+ bold: false,
172501
+ italic: false,
172502
+ boldItalic: false
172503
+ },
172504
+ faceSources: { bold: {
172505
+ kind: "synthetic",
172506
+ from: "regular"
172507
+ } },
172508
+ gates: {
172509
+ static: "pass",
172510
+ metric: "fail",
172511
+ layout: "not_run",
172512
+ ship: "fail"
172513
+ },
172514
+ policyAction: "category_fallback",
172515
+ measurementRefs: ["brush-script-mt__oregano-italic#visual_review#2026-06-09"],
172516
+ exportRule: "preserve_original_name",
172517
+ candidateLicense: "OFL-1.1",
172518
+ faceVerdicts: {
172519
+ regular: "visual_only",
172520
+ bold: "visual_only"
172521
+ }
172522
+ },
172442
172523
  {
172443
172524
  evidenceId: "cooper-black",
172444
172525
  generic: "serif",
@@ -172505,6 +172586,16 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172505
172586
  style: "normal",
172506
172587
  file: "Caprasimo-Regular.woff2"
172507
172588
  }]),
172589
+ familyWithFaces("Bacasime Antique", "OFL-1.1", [{
172590
+ weight: "normal",
172591
+ style: "normal",
172592
+ file: "BacasimeAntique-Regular.woff2"
172593
+ }]),
172594
+ familyWithFaces("Oregano Italic", "OFL-1.1", [{
172595
+ weight: "normal",
172596
+ style: "normal",
172597
+ file: "OreganoItalic-Regular.woff2"
172598
+ }]),
172508
172599
  family("Gelasio", "Gelasio", "OFL-1.1"),
172509
172600
  familyWithFaces("Cardo", "OFL-1.1", [
172510
172601
  {
@@ -172533,6 +172624,15 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172533
172624
  file: "ComicRelief-Bold.woff2"
172534
172625
  }]),
172535
172626
  family("Noto Sans", "NotoSans", "OFL-1.1"),
172627
+ familyWithFaces("Noto Sans Mono", "OFL-1.1", [{
172628
+ weight: "normal",
172629
+ style: "normal",
172630
+ file: "NotoSansMono-Regular.woff2"
172631
+ }, {
172632
+ weight: "bold",
172633
+ style: "normal",
172634
+ file: "NotoSansMono-Bold.woff2"
172635
+ }]),
172536
172636
  family("PT Sans", "PTSans", "OFL-1.1")
172537
172637
  ]);
172538
172638
  SUBSTITUTION_EVIDENCE = SUBSTITUTION_EVIDENCE$1;
@@ -172550,10 +172650,13 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
172550
172650
  registriesByFontSet = /* @__PURE__ */ new WeakMap;
172551
172651
  BUNDLED_FAMILIES = new Set(BUNDLED_MANIFEST.map((f2) => f2.family));
172552
172652
  ADVERTISED_BUILT_IN_TOOLBAR_FAMILIES = new Set([
172653
+ "Baskerville Old Face",
172654
+ "Brush Script MT",
172553
172655
  "Cooper Black",
172554
172656
  "Comic Sans MS",
172555
172657
  "Garamond",
172556
172658
  "Georgia",
172659
+ "Lucida Console",
172557
172660
  "Tahoma",
172558
172661
  "Trebuchet MS"
172559
172662
  ]);
@@ -174344,7 +174447,7 @@ var init_SuperConverter_DJyHekqW_es = __esm(() => {
174344
174447
  };
174345
174448
  });
174346
174449
 
174347
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-Jmx2i-9i.es.js
174450
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-l5QB6sQY.es.js
174348
174451
  function parseSizeUnit(val = "0") {
174349
174452
  const length3 = val.toString() || "0";
174350
174453
  const value = Number.parseFloat(length3);
@@ -184702,8 +184805,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
184702
184805
  }
184703
184806
  };
184704
184807
  };
184705
- var init_create_headless_toolbar_Jmx2i_9i_es = __esm(() => {
184706
- init_SuperConverter_DJyHekqW_es();
184808
+ var init_create_headless_toolbar_l5QB6sQY_es = __esm(() => {
184809
+ init_SuperConverter_d9QeIy9_es();
184707
184810
  init_uuid_B2wVPhPi_es();
184708
184811
  init_constants_D9qj59G2_es();
184709
184812
  init_dist_B8HfvhaK_es();
@@ -233866,7 +233969,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
233866
233969
  init_remark_gfm_BhnWr3yf_es();
233867
233970
  });
233868
233971
 
233869
- // ../../packages/superdoc/dist/chunks/src-BB_FFFud.es.js
233972
+ // ../../packages/superdoc/dist/chunks/src-LeQVnrcZ.es.js
233870
233973
  function deleteProps(obj, propOrProps) {
233871
233974
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
233872
233975
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -288826,6 +288929,9 @@ async function goToAnchor({ anchor, layout, blocks: blocks2, measures, bookmarks
288826
288929
  let nextFragmentPage = null;
288827
288930
  let nextFragmentStart = null;
288828
288931
  let nextFragmentY = null;
288932
+ let prevFragmentPage = null;
288933
+ let prevFragmentEnd = null;
288934
+ let prevFragmentY = null;
288829
288935
  for (const page of layout.pages) {
288830
288936
  for (const fragment2 of page.fragments) {
288831
288937
  if (fragment2.kind !== "para")
@@ -288844,13 +288950,25 @@ async function goToAnchor({ anchor, layout, blocks: blocks2, measures, bookmarks
288844
288950
  nextFragmentStart = fragStart;
288845
288951
  nextFragmentY = fragment2.y;
288846
288952
  }
288953
+ if (fragEnd <= pmPos && (prevFragmentEnd === null || fragEnd > prevFragmentEnd)) {
288954
+ prevFragmentPage = page.number - 1;
288955
+ prevFragmentEnd = fragEnd;
288956
+ prevFragmentY = fragment2.y;
288957
+ }
288847
288958
  }
288848
288959
  if (pageIndex != null)
288849
288960
  break;
288850
288961
  }
288851
- if (pageIndex == null && nextFragmentPage != null) {
288852
- pageIndex = nextFragmentPage;
288853
- fragmentY = nextFragmentY;
288962
+ if (pageIndex == null) {
288963
+ const prevGap = prevFragmentEnd != null ? pmPos - prevFragmentEnd : Infinity;
288964
+ const nextGap = nextFragmentStart != null ? nextFragmentStart - pmPos : Infinity;
288965
+ if (prevFragmentPage != null && prevGap < nextGap) {
288966
+ pageIndex = prevFragmentPage;
288967
+ fragmentY = prevFragmentY;
288968
+ } else if (nextFragmentPage != null) {
288969
+ pageIndex = nextFragmentPage;
288970
+ fragmentY = nextFragmentY;
288971
+ }
288854
288972
  }
288855
288973
  }
288856
288974
  if (pageIndex == null)
@@ -331457,13 +331575,13 @@ menclose::after {
331457
331575
  return;
331458
331576
  console.log(...args$1);
331459
331577
  }, 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;
331460
- var init_src_BB_FFFud_es = __esm(() => {
331578
+ var init_src_LeQVnrcZ_es = __esm(() => {
331461
331579
  init_rolldown_runtime_Bg48TavK_es();
331462
- init_SuperConverter_DJyHekqW_es();
331580
+ init_SuperConverter_d9QeIy9_es();
331463
331581
  init_jszip_C49i9kUs_es();
331464
331582
  init_xml_js_CqGKpaft_es();
331465
331583
  init_uuid_B2wVPhPi_es();
331466
- init_create_headless_toolbar_Jmx2i_9i_es();
331584
+ init_create_headless_toolbar_l5QB6sQY_es();
331467
331585
  init_constants_D9qj59G2_es();
331468
331586
  init_dist_B8HfvhaK_es();
331469
331587
  init_unified_Dsuw2be5_es();
@@ -366428,11 +366546,11 @@ function print() { __p += __j.call(arguments, '') }
366428
366546
  ]);
366429
366547
  });
366430
366548
 
366431
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-Cjo_Z85j.es.js
366549
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-uuXftA9o.es.js
366432
366550
  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;
366433
- var init_create_super_doc_ui_Cjo_Z85j_es = __esm(() => {
366434
- init_SuperConverter_DJyHekqW_es();
366435
- init_create_headless_toolbar_Jmx2i_9i_es();
366551
+ var init_create_super_doc_ui_uuXftA9o_es = __esm(() => {
366552
+ init_SuperConverter_d9QeIy9_es();
366553
+ init_create_headless_toolbar_l5QB6sQY_es();
366436
366554
  headlessToolbarConstants = {
366437
366555
  DEFAULT_TEXT_ALIGN_OPTIONS: [
366438
366556
  {
@@ -366714,16 +366832,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
366714
366832
 
366715
366833
  // ../../packages/superdoc/dist/super-editor.es.js
366716
366834
  var init_super_editor_es = __esm(() => {
366717
- init_src_BB_FFFud_es();
366718
- init_SuperConverter_DJyHekqW_es();
366835
+ init_src_LeQVnrcZ_es();
366836
+ init_SuperConverter_d9QeIy9_es();
366719
366837
  init_jszip_C49i9kUs_es();
366720
366838
  init_xml_js_CqGKpaft_es();
366721
- init_create_headless_toolbar_Jmx2i_9i_es();
366839
+ init_create_headless_toolbar_l5QB6sQY_es();
366722
366840
  init_constants_D9qj59G2_es();
366723
366841
  init_dist_B8HfvhaK_es();
366724
366842
  init_unified_Dsuw2be5_es();
366725
366843
  init_DocxZipper_FUsfThjV_es();
366726
- init_create_super_doc_ui_Cjo_Z85j_es();
366844
+ init_create_super_doc_ui_uuXftA9o_es();
366727
366845
  init_ui_C5PAS9hY_es();
366728
366846
  init_eventemitter3_BnGqBE_Q_es();
366729
366847
  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.11",
3
+ "version": "0.17.0-next.13",
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/document-api": "0.0.1",
27
28
  "@superdoc/super-editor": "0.0.1",
28
- "superdoc": "1.39.0",
29
- "@superdoc/document-api": "0.0.1"
29
+ "superdoc": "1.39.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-x64": "0.17.0-next.11",
37
- "@superdoc-dev/cli-darwin-arm64": "0.17.0-next.11",
38
- "@superdoc-dev/cli-linux-x64": "0.17.0-next.11",
39
- "@superdoc-dev/cli-linux-arm64": "0.17.0-next.11",
40
- "@superdoc-dev/cli-windows-x64": "0.17.0-next.11"
36
+ "@superdoc-dev/cli-darwin-arm64": "0.17.0-next.13",
37
+ "@superdoc-dev/cli-darwin-x64": "0.17.0-next.13",
38
+ "@superdoc-dev/cli-linux-x64": "0.17.0-next.13",
39
+ "@superdoc-dev/cli-linux-arm64": "0.17.0-next.13",
40
+ "@superdoc-dev/cli-windows-x64": "0.17.0-next.13"
41
41
  },
42
42
  "scripts": {
43
43
  "predev": "node scripts/ensure-superdoc-build.js",