@superdoc-dev/mcp 0.11.0-next.8 → 0.11.0-next.9

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 +237 -16
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -219642,7 +219642,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
219642
219642
  init_remark_gfm_BhnWr3yf_es();
219643
219643
  });
219644
219644
 
219645
- // ../../packages/superdoc/dist/chunks/src-DYT7-l3i.es.js
219645
+ // ../../packages/superdoc/dist/chunks/src-MLERudib.es.js
219646
219646
  function deleteProps(obj, propOrProps) {
219647
219647
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
219648
219648
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -259793,6 +259793,20 @@ function isSettled(status) {
259793
259793
  function normalizeFamilyKey$2(family$1) {
259794
259794
  return family$1.trim().replace(/^["']|["']$/g, "").toLowerCase();
259795
259795
  }
259796
+ function deriveBundledSubstitutes() {
259797
+ const substitutes = {};
259798
+ for (const row2 of SUBSTITUTION_EVIDENCE)
259799
+ if (row2.policyAction === "substitute" && row2.physicalFamily)
259800
+ substitutes[normalizeFamilyKey$2(row2.logicalFamily)] = row2.physicalFamily;
259801
+ return Object.freeze(substitutes);
259802
+ }
259803
+ function deriveCategoryFallbacks() {
259804
+ const fallbacks = {};
259805
+ for (const row2 of SUBSTITUTION_EVIDENCE)
259806
+ if (row2.policyAction === "category_fallback" && row2.physicalFamily)
259807
+ fallbacks[normalizeFamilyKey$2(row2.logicalFamily)] = row2.physicalFamily;
259808
+ return Object.freeze(fallbacks);
259809
+ }
259796
259810
  function stripFamilyQuotes(family$1) {
259797
259811
  return family$1.trim().replace(/^["']|["']$/g, "");
259798
259812
  }
@@ -259914,7 +259928,7 @@ function buildFontReport(logicalFamilies, registry3, resolver2) {
259914
259928
  reason,
259915
259929
  loadStatus,
259916
259930
  exportFamily: logical,
259917
- missing: isSettled(loadStatus) && loadStatus !== "loaded"
259931
+ missing: reason === "category_fallback" || isSettled(loadStatus) && loadStatus !== "loaded"
259918
259932
  });
259919
259933
  }
259920
259934
  return report;
@@ -259940,7 +259954,7 @@ function buildFaceReport(usedFaces, registry3, resolver2) {
259940
259954
  weight,
259941
259955
  style: style2
259942
259956
  });
259943
- const missing = reason === "fallback_face_absent" || isSettled(loadStatus) && loadStatus !== "loaded";
259957
+ const missing = reason === "fallback_face_absent" || reason === "category_fallback" || isSettled(loadStatus) && loadStatus !== "loaded";
259944
259958
  report.push({
259945
259959
  logicalFamily,
259946
259960
  physicalFamily,
@@ -299628,7 +299642,7 @@ menclose::after {
299628
299642
  const minReadablePx = getMinimumReadableTextStartPx(markerContentEndPx, gutterWidthPx);
299629
299643
  return Math.max(nextTabStopPx, minReadablePx);
299630
299644
  }
299631
- }, SETTLED_STATUSES, BUNDLED_SUBSTITUTES, FontResolver = class {
299645
+ }, SETTLED_STATUSES, SUBSTITUTION_EVIDENCE, BUNDLED_SUBSTITUTES, CATEGORY_FALLBACKS, FontResolver = class {
299632
299646
  #overrides = /* @__PURE__ */ new Map;
299633
299647
  #version = 0;
299634
299648
  #cachedSignature = null;
@@ -299686,6 +299700,12 @@ menclose::after {
299686
299700
  physical: bundled,
299687
299701
  reason: "bundled_substitute"
299688
299702
  };
299703
+ const category = CATEGORY_FALLBACKS[key2];
299704
+ if (category)
299705
+ return {
299706
+ physical: category,
299707
+ reason: "category_fallback"
299708
+ };
299689
299709
  return {
299690
299710
  physical: bareFamily,
299691
299711
  reason: "as_requested"
@@ -299710,6 +299730,12 @@ menclose::after {
299710
299730
  physical: bundled,
299711
299731
  reason: "bundled_substitute"
299712
299732
  };
299733
+ const category = CATEGORY_FALLBACKS[key2];
299734
+ if (category && hasFace(category, face.weight, face.style))
299735
+ return {
299736
+ physical: category,
299737
+ reason: "category_fallback"
299738
+ };
299713
299739
  if (override || bundled)
299714
299740
  return {
299715
299741
  physical: primary,
@@ -299755,8 +299781,8 @@ menclose::after {
299755
299781
  const parts = splitStack(cssFontFamily);
299756
299782
  if (parts.length === 0)
299757
299783
  return cssFontFamily;
299758
- const { physical, reason } = this.#resolveFaceLadder(parts[0], face, hasFace);
299759
- if (reason === "custom_mapping" || reason === "bundled_substitute")
299784
+ const { physical } = this.#resolveFaceLadder(parts[0], face, hasFace);
299785
+ if (normalizeFamilyKey$2(physical) !== normalizeFamilyKey$2(parts[0]))
299760
299786
  return [physical, ...parts.slice(1)].join(", ");
299761
299787
  return cssFontFamily;
299762
299788
  }
@@ -315778,7 +315804,7 @@ menclose::after {
315778
315804
  return;
315779
315805
  console.log(...args$1);
315780
315806
  }, 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;
315781
- var init_src_DYT7_l3i_es = __esm(() => {
315807
+ var init_src_MLERudib_es = __esm(() => {
315782
315808
  init_rolldown_runtime_Bg48TavK_es();
315783
315809
  init_SuperConverter_DBsJeu9t_es();
315784
315810
  init_jszip_C49i9kUs_es();
@@ -342694,14 +342720,209 @@ function print() { __p += __j.call(arguments, '') }
342694
342720
  "timed_out",
342695
342721
  "fallback_used"
342696
342722
  ];
342697
- BUNDLED_SUBSTITUTES = Object.freeze({
342698
- calibri: "Carlito",
342699
- cambria: "Caladea",
342700
- arial: "Liberation Sans",
342701
- "times new roman": "Liberation Serif",
342702
- "courier new": "Liberation Mono",
342703
- helvetica: "Liberation Sans"
342704
- });
342723
+ SUBSTITUTION_EVIDENCE = Object.freeze([
342724
+ {
342725
+ evidenceId: "calibri",
342726
+ logicalFamily: "Calibri",
342727
+ physicalFamily: "Carlito",
342728
+ verdict: "metric_safe",
342729
+ faces: {
342730
+ regular: true,
342731
+ bold: true,
342732
+ italic: true,
342733
+ boldItalic: true
342734
+ },
342735
+ advance: {
342736
+ meanDelta: 0,
342737
+ maxDelta: 0
342738
+ },
342739
+ gates: {
342740
+ static: "pass",
342741
+ metric: "pass",
342742
+ layout: "pass",
342743
+ ship: "pass"
342744
+ },
342745
+ policyAction: "substitute",
342746
+ measurementRefs: ["calibri__carlito#analytic_advance#2026-06-03", "calibri__carlito#face_aggregate#2026-06-03"],
342747
+ candidateLicense: "OFL-1.1",
342748
+ exportRule: "preserve_original_name"
342749
+ },
342750
+ {
342751
+ evidenceId: "cambria",
342752
+ logicalFamily: "Cambria",
342753
+ physicalFamily: "Caladea",
342754
+ verdict: "visual_only",
342755
+ faceVerdicts: {
342756
+ regular: "metric_safe",
342757
+ bold: "metric_safe",
342758
+ italic: "metric_safe",
342759
+ boldItalic: "visual_only"
342760
+ },
342761
+ glyphExceptions: [{
342762
+ slot: "boldItalic",
342763
+ codepoint: 96,
342764
+ advanceDelta: 0.231,
342765
+ note: "Caladea Bold Italic grave accent (U+0060) advance diverges ~23% from Cambria; lines containing it reflow."
342766
+ }],
342767
+ faces: {
342768
+ regular: true,
342769
+ bold: true,
342770
+ italic: true,
342771
+ boldItalic: true
342772
+ },
342773
+ advance: {
342774
+ meanDelta: 0.0002378,
342775
+ maxDelta: 0.2310758
342776
+ },
342777
+ gates: {
342778
+ static: "pass",
342779
+ metric: "pass",
342780
+ layout: "not_run",
342781
+ ship: "pass"
342782
+ },
342783
+ policyAction: "substitute",
342784
+ measurementRefs: [
342785
+ "cambria_regular__caladea#regular#w400#d2f6cad3#analytic_advance#2026-06-04",
342786
+ "cambria_bold__caladea#bold#w700#74eda4fc#analytic_advance#2026-06-04",
342787
+ "cambria_italic__caladea#italic#w400#9c968bf6#analytic_advance#2026-06-04",
342788
+ "cambria_boldItalic__caladea#boldItalic#w700#f47a35ad#analytic_advance#2026-06-04"
342789
+ ],
342790
+ candidateLicense: "Apache-2.0",
342791
+ exportRule: "preserve_original_name"
342792
+ },
342793
+ {
342794
+ evidenceId: "arial",
342795
+ logicalFamily: "Arial",
342796
+ physicalFamily: "Liberation Sans",
342797
+ verdict: "metric_safe",
342798
+ faces: {
342799
+ regular: true,
342800
+ bold: true,
342801
+ italic: true,
342802
+ boldItalic: true
342803
+ },
342804
+ advance: {
342805
+ meanDelta: 0,
342806
+ maxDelta: 0
342807
+ },
342808
+ gates: {
342809
+ static: "pass",
342810
+ metric: "pass",
342811
+ layout: "not_run",
342812
+ ship: "pass"
342813
+ },
342814
+ policyAction: "substitute",
342815
+ measurementRefs: ["arial__liberation-sans#analytic_advance#2026-06-03"],
342816
+ candidateLicense: "OFL-1.1",
342817
+ exportRule: "preserve_original_name"
342818
+ },
342819
+ {
342820
+ evidenceId: "times-new-roman",
342821
+ logicalFamily: "Times New Roman",
342822
+ physicalFamily: "Liberation Serif",
342823
+ verdict: "metric_safe",
342824
+ faces: {
342825
+ regular: true,
342826
+ bold: true,
342827
+ italic: true,
342828
+ boldItalic: true
342829
+ },
342830
+ advance: {
342831
+ meanDelta: 0,
342832
+ maxDelta: 0
342833
+ },
342834
+ gates: {
342835
+ static: "pass",
342836
+ metric: "pass",
342837
+ layout: "not_run",
342838
+ ship: "pass"
342839
+ },
342840
+ policyAction: "substitute",
342841
+ measurementRefs: ["times-new-roman__liberation-serif#analytic_advance#2026-06-03"],
342842
+ candidateLicense: "OFL-1.1",
342843
+ exportRule: "preserve_original_name"
342844
+ },
342845
+ {
342846
+ evidenceId: "courier-new",
342847
+ logicalFamily: "Courier New",
342848
+ physicalFamily: "Liberation Mono",
342849
+ verdict: "metric_safe",
342850
+ faces: {
342851
+ regular: true,
342852
+ bold: true,
342853
+ italic: true,
342854
+ boldItalic: true
342855
+ },
342856
+ advance: {
342857
+ meanDelta: 0,
342858
+ maxDelta: 0
342859
+ },
342860
+ gates: {
342861
+ static: "pass",
342862
+ metric: "pass",
342863
+ layout: "not_run",
342864
+ ship: "pass"
342865
+ },
342866
+ policyAction: "substitute",
342867
+ measurementRefs: ["courier-new__liberation-mono#analytic_advance#2026-06-03"],
342868
+ candidateLicense: "OFL-1.1",
342869
+ exportRule: "preserve_original_name"
342870
+ },
342871
+ {
342872
+ evidenceId: "helvetica",
342873
+ logicalFamily: "Helvetica",
342874
+ physicalFamily: "Liberation Sans",
342875
+ verdict: "metric_safe",
342876
+ faces: {
342877
+ regular: true,
342878
+ bold: true,
342879
+ italic: true,
342880
+ boldItalic: true
342881
+ },
342882
+ advance: {
342883
+ meanDelta: 0,
342884
+ maxDelta: 0
342885
+ },
342886
+ gates: {
342887
+ static: "not_run",
342888
+ metric: "pass",
342889
+ layout: "not_run",
342890
+ ship: "fail"
342891
+ },
342892
+ policyAction: "substitute",
342893
+ measurementRefs: ["helvetica__liberation-sans#analytic_advance#2026-06-03"],
342894
+ candidateLicense: "OFL-1.1",
342895
+ exportRule: "preserve_original_name"
342896
+ },
342897
+ {
342898
+ evidenceId: "calibri-light",
342899
+ logicalFamily: "Calibri Light",
342900
+ physicalFamily: "Carlito",
342901
+ verdict: "visual_only",
342902
+ faces: {
342903
+ regular: false,
342904
+ bold: false,
342905
+ italic: false,
342906
+ boldItalic: false
342907
+ },
342908
+ advance: {
342909
+ meanDelta: 0.0148,
342910
+ maxDelta: 0.066
342911
+ },
342912
+ gates: {
342913
+ static: "not_run",
342914
+ metric: "fail",
342915
+ layout: "not_run",
342916
+ ship: "fail"
342917
+ },
342918
+ policyAction: "category_fallback",
342919
+ measurementRefs: ["calibri-light__carlito#analytic_advance#2026-06-05"],
342920
+ candidateLicense: "OFL-1.1",
342921
+ exportRule: "preserve_original_name"
342922
+ }
342923
+ ]);
342924
+ BUNDLED_SUBSTITUTES = deriveBundledSubstitutes();
342925
+ CATEGORY_FALLBACKS = deriveCategoryFallbacks();
342705
342926
  defaultResolver = new FontResolver;
342706
342927
  DEFAULT_FONT_MEASURE_CONTEXT = Object.freeze({
342707
342928
  resolvePhysical: (cssFontFamily, _face) => resolvePhysicalFamily(cssFontFamily),
@@ -350575,7 +350796,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
350575
350796
 
350576
350797
  // ../../packages/superdoc/dist/super-editor.es.js
350577
350798
  var init_super_editor_es = __esm(() => {
350578
- init_src_DYT7_l3i_es();
350799
+ init_src_MLERudib_es();
350579
350800
  init_SuperConverter_DBsJeu9t_es();
350580
350801
  init_jszip_C49i9kUs_es();
350581
350802
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.11.0-next.8",
3
+ "version": "0.11.0-next.9",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -19,9 +19,9 @@
19
19
  "@types/bun": "^1.3.8",
20
20
  "@types/node": "22.19.2",
21
21
  "typescript": "^5.9.2",
22
- "@superdoc/super-editor": "0.0.1",
23
22
  "@superdoc/document-api": "0.0.1",
24
- "superdoc": "1.38.0"
23
+ "superdoc": "1.38.0",
24
+ "@superdoc/super-editor": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"