@superdoc-dev/mcp 0.12.0-next.10 → 0.12.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.
Files changed (2) hide show
  1. package/dist/index.js +265 -48
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -52172,7 +52172,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
52172
52172
  emptyOptions2 = {};
52173
52173
  });
52174
52174
 
52175
- // ../../packages/superdoc/dist/chunks/SuperConverter-BSDZ3hYr.es.js
52175
+ // ../../packages/superdoc/dist/chunks/SuperConverter-DLdwVEPh.es.js
52176
52176
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
52177
52177
  const fieldValue = extension$1.config[field];
52178
52178
  if (typeof fieldValue === "function")
@@ -95546,6 +95546,7 @@ function groupTrackedChanges(editor) {
95546
95546
  return cached2.grouped;
95547
95547
  const marks = getRawTrackedMarks(editor);
95548
95548
  const byRawId = /* @__PURE__ */ new Map;
95549
+ const segmentsByRawId = /* @__PURE__ */ new Map;
95549
95550
  for (const item of marks) {
95550
95551
  const attrs = item.mark?.attrs ?? {};
95551
95552
  const id = toNonEmptyString(attrs.id);
@@ -95561,6 +95562,17 @@ function groupTrackedChanges(editor) {
95561
95562
  const wordRevisionIdKey = getWordRevisionIdKey(markType);
95562
95563
  const excerptText = !wordRevisionId || !hasChildTrackedMarkOnNode(item, id) ? getTrackedMarkText(editor, item) : "";
95563
95564
  const range = [item.from, item.to];
95565
+ const priorSegments = segmentsByRawId.get(groupKey);
95566
+ if (priorSegments)
95567
+ priorSegments.push({
95568
+ from: item.from,
95569
+ to: item.to
95570
+ });
95571
+ else
95572
+ segmentsByRawId.set(groupKey, [{
95573
+ from: item.from,
95574
+ to: item.to
95575
+ }]);
95564
95576
  if (!existing) {
95565
95577
  byRawId.set(groupKey, {
95566
95578
  rawId: groupKey,
@@ -95608,7 +95620,23 @@ function groupTrackedChanges(editor) {
95608
95620
  return a.id.localeCompare(b.id);
95609
95621
  });
95610
95622
  attachOverlapMetadata(grouped);
95611
- for (const structural of enumerateStructuralRowChanges(editor.state)) {
95623
+ const structuralChanges = enumerateStructuralRowChanges(editor.state);
95624
+ const wholeTableRanges = structuralChanges.filter((structural) => structural.decidable && structural.wholeTable).map((structural) => ({
95625
+ from: structural.tableFrom,
95626
+ to: structural.tableTo
95627
+ }));
95628
+ if (wholeTableRanges.length > 0) {
95629
+ const segmentInsideSomeTable = (segment) => wholeTableRanges.some((range) => segment.from >= range.from && segment.to <= range.to);
95630
+ for (let i$1 = grouped.length - 1;i$1 >= 0; i$1 -= 1) {
95631
+ const change = grouped[i$1];
95632
+ if ((segmentsByRawId.get(change.rawId) ?? [{
95633
+ from: change.from,
95634
+ to: change.to
95635
+ }]).every(segmentInsideSomeTable))
95636
+ grouped.splice(i$1, 1);
95637
+ }
95638
+ }
95639
+ for (const structural of structuralChanges) {
95612
95640
  const excerpt = normalizeExcerpt(editor.state.doc.textBetween(structural.tableFrom, structural.tableTo, " ", ""));
95613
95641
  const stableRawId = structural.sourceId ? `word:structural:${structural.sourceId}` : structural.id;
95614
95642
  grouped.push({
@@ -118129,7 +118157,7 @@ var isRegExp = (value) => {
118129
118157
  state.kern = kernNode.attributes["w:val"];
118130
118158
  }
118131
118159
  }, SuperConverter;
118132
- var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
118160
+ var init_SuperConverter_DLdwVEPh_es = __esm(() => {
118133
118161
  init_rolldown_runtime_Bg48TavK_es();
118134
118162
  init_jszip_C49i9kUs_es();
118135
118163
  init_xml_js_CqGKpaft_es();
@@ -156058,29 +156086,45 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156058
156086
  evidenceId: "lucida-console",
156059
156087
  generic: "monospace",
156060
156088
  logicalFamily: "Lucida Console",
156061
- physicalFamily: "Cousine",
156062
- verdict: "cell_width_only",
156089
+ physicalFamily: "Noto Sans Mono",
156090
+ verdict: "visual_only",
156063
156091
  faces: {
156064
- regular: false,
156065
- bold: false,
156092
+ regular: true,
156093
+ bold: true,
156066
156094
  italic: false,
156067
156095
  boldItalic: false
156068
156096
  },
156097
+ faceSources: {
156098
+ italic: {
156099
+ kind: "synthetic",
156100
+ from: "regular"
156101
+ },
156102
+ boldItalic: {
156103
+ kind: "synthetic",
156104
+ from: "bold"
156105
+ }
156106
+ },
156069
156107
  gates: {
156070
- static: "not_run",
156071
- metric: "not_run",
156108
+ static: "pass",
156109
+ metric: "pass",
156072
156110
  layout: "not_run",
156073
- ship: "not_run"
156111
+ ship: "fail"
156074
156112
  },
156075
156113
  policyAction: "category_fallback",
156076
- measurementRefs: ["lucida-console__cousine#analytic_advance#2026-06-03"],
156114
+ measurementRefs: ["lucida-console__noto-sans-mono#monospace_cell#analytic_advance#2026-06-09", "lucida-console__noto-sans-mono#visual_review#2026-06-09"],
156077
156115
  exportRule: "preserve_original_name",
156078
156116
  advance: {
156079
156117
  basis: "monospace_cell",
156080
- meanDelta: 0.004050000000000001,
156081
- maxDelta: 0.004050000000000001
156118
+ meanDelta: 0.00254,
156119
+ maxDelta: 0.00303
156082
156120
  },
156083
- candidateLicense: "OFL-1.1"
156121
+ candidateLicense: "OFL-1.1",
156122
+ faceVerdicts: {
156123
+ regular: "cell_width_only",
156124
+ bold: "cell_width_only",
156125
+ italic: "visual_only",
156126
+ boldItalic: "visual_only"
156127
+ }
156084
156128
  },
156085
156129
  {
156086
156130
  evidenceId: "gill-sans-mt-condensed",
@@ -156233,6 +156277,20 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156233
156277
  italic: false,
156234
156278
  boldItalic: false
156235
156279
  },
156280
+ faceSources: {
156281
+ bold: {
156282
+ kind: "synthetic",
156283
+ from: "regular"
156284
+ },
156285
+ italic: {
156286
+ kind: "synthetic",
156287
+ from: "regular"
156288
+ },
156289
+ boldItalic: {
156290
+ kind: "synthetic",
156291
+ from: "regular"
156292
+ }
156293
+ },
156236
156294
  gates: {
156237
156295
  static: "pass",
156238
156296
  metric: "fail",
@@ -156240,7 +156298,7 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156240
156298
  ship: "not_run"
156241
156299
  },
156242
156300
  policyAction: "substitute",
156243
- measurementRefs: ["baskerville-old-face_regular__bacasime-antique#regular#w400#7dac1e5f#analytic_advance#2026-06-05"],
156301
+ 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"],
156244
156302
  exportRule: "preserve_original_name",
156245
156303
  advance: {
156246
156304
  basis: "latin_full",
@@ -156248,7 +156306,12 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156248
156306
  maxDelta: 0.4915590863952334
156249
156307
  },
156250
156308
  candidateLicense: "OFL-1.1",
156251
- faceVerdicts: { regular: "visual_only" },
156309
+ faceVerdicts: {
156310
+ regular: "visual_only",
156311
+ bold: "visual_only",
156312
+ italic: "visual_only",
156313
+ boldItalic: "visual_only"
156314
+ },
156252
156315
  glyphExceptions: [{
156253
156316
  slot: "regular",
156254
156317
  codepoint: 160,
@@ -156256,6 +156319,37 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156256
156319
  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."
156257
156320
  }]
156258
156321
  },
156322
+ {
156323
+ evidenceId: "brush-script-mt",
156324
+ generic: "serif",
156325
+ logicalFamily: "Brush Script MT",
156326
+ physicalFamily: "Oregano Italic",
156327
+ verdict: "visual_only",
156328
+ faces: {
156329
+ regular: true,
156330
+ bold: false,
156331
+ italic: false,
156332
+ boldItalic: false
156333
+ },
156334
+ faceSources: { bold: {
156335
+ kind: "synthetic",
156336
+ from: "regular"
156337
+ } },
156338
+ gates: {
156339
+ static: "pass",
156340
+ metric: "fail",
156341
+ layout: "not_run",
156342
+ ship: "fail"
156343
+ },
156344
+ policyAction: "category_fallback",
156345
+ measurementRefs: ["brush-script-mt__oregano-italic#visual_review#2026-06-09"],
156346
+ exportRule: "preserve_original_name",
156347
+ candidateLicense: "OFL-1.1",
156348
+ faceVerdicts: {
156349
+ regular: "visual_only",
156350
+ bold: "visual_only"
156351
+ }
156352
+ },
156259
156353
  {
156260
156354
  evidenceId: "cooper-black",
156261
156355
  generic: "serif",
@@ -156322,6 +156416,16 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156322
156416
  style: "normal",
156323
156417
  file: "Caprasimo-Regular.woff2"
156324
156418
  }]),
156419
+ familyWithFaces("Bacasime Antique", "OFL-1.1", [{
156420
+ weight: "normal",
156421
+ style: "normal",
156422
+ file: "BacasimeAntique-Regular.woff2"
156423
+ }]),
156424
+ familyWithFaces("Oregano Italic", "OFL-1.1", [{
156425
+ weight: "normal",
156426
+ style: "normal",
156427
+ file: "OreganoItalic-Regular.woff2"
156428
+ }]),
156325
156429
  family("Gelasio", "Gelasio", "OFL-1.1"),
156326
156430
  familyWithFaces("Cardo", "OFL-1.1", [
156327
156431
  {
@@ -156350,6 +156454,15 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156350
156454
  file: "ComicRelief-Bold.woff2"
156351
156455
  }]),
156352
156456
  family("Noto Sans", "NotoSans", "OFL-1.1"),
156457
+ familyWithFaces("Noto Sans Mono", "OFL-1.1", [{
156458
+ weight: "normal",
156459
+ style: "normal",
156460
+ file: "NotoSansMono-Regular.woff2"
156461
+ }, {
156462
+ weight: "bold",
156463
+ style: "normal",
156464
+ file: "NotoSansMono-Bold.woff2"
156465
+ }]),
156353
156466
  family("PT Sans", "PTSans", "OFL-1.1")
156354
156467
  ]);
156355
156468
  SUBSTITUTION_EVIDENCE = SUBSTITUTION_EVIDENCE$1;
@@ -156367,10 +156480,13 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
156367
156480
  registriesByFontSet = /* @__PURE__ */ new WeakMap;
156368
156481
  BUNDLED_FAMILIES = new Set(BUNDLED_MANIFEST.map((f2) => f2.family));
156369
156482
  ADVERTISED_BUILT_IN_TOOLBAR_FAMILIES = new Set([
156483
+ "Baskerville Old Face",
156484
+ "Brush Script MT",
156370
156485
  "Cooper Black",
156371
156486
  "Comic Sans MS",
156372
156487
  "Garamond",
156373
156488
  "Georgia",
156489
+ "Lucida Console",
156374
156490
  "Tahoma",
156375
156491
  "Trebuchet MS"
156376
156492
  ]);
@@ -158161,7 +158277,7 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
158161
158277
  };
158162
158278
  });
158163
158279
 
158164
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-CKZ579SH.es.js
158280
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-BxKMAAgQ.es.js
158165
158281
  function parseSizeUnit(val = "0") {
158166
158282
  const length = val.toString() || "0";
158167
158283
  const value = Number.parseFloat(length);
@@ -168519,8 +168635,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
168519
168635
  }
168520
168636
  };
168521
168637
  };
168522
- var init_create_headless_toolbar_CKZ579SH_es = __esm(() => {
168523
- init_SuperConverter_BSDZ3hYr_es();
168638
+ var init_create_headless_toolbar_BxKMAAgQ_es = __esm(() => {
168639
+ init_SuperConverter_DLdwVEPh_es();
168524
168640
  init_uuid_B2wVPhPi_es();
168525
168641
  init_constants_D9qj59G2_es();
168526
168642
  init_dist_B8HfvhaK_es();
@@ -223204,7 +223320,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
223204
223320
  init_remark_gfm_BhnWr3yf_es();
223205
223321
  });
223206
223322
 
223207
- // ../../packages/superdoc/dist/chunks/src-BXck1nRd.es.js
223323
+ // ../../packages/superdoc/dist/chunks/src-Bq_Yxqun.es.js
223208
223324
  function deleteProps(obj, propOrProps) {
223209
223325
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
223210
223326
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -320662,13 +320778,13 @@ menclose::after {
320662
320778
  return;
320663
320779
  console.log(...args$1);
320664
320780
  }, 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;
320665
- var init_src_BXck1nRd_es = __esm(() => {
320781
+ var init_src_Bq_Yxqun_es = __esm(() => {
320666
320782
  init_rolldown_runtime_Bg48TavK_es();
320667
- init_SuperConverter_BSDZ3hYr_es();
320783
+ init_SuperConverter_DLdwVEPh_es();
320668
320784
  init_jszip_C49i9kUs_es();
320669
320785
  init_xml_js_CqGKpaft_es();
320670
320786
  init_uuid_B2wVPhPi_es();
320671
- init_create_headless_toolbar_CKZ579SH_es();
320787
+ init_create_headless_toolbar_BxKMAAgQ_es();
320672
320788
  init_constants_D9qj59G2_es();
320673
320789
  init_dist_B8HfvhaK_es();
320674
320790
  init_unified_Dsuw2be5_es();
@@ -355633,11 +355749,11 @@ function print() { __p += __j.call(arguments, '') }
355633
355749
  ]);
355634
355750
  });
355635
355751
 
355636
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui---bNCP-9.es.js
355752
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-gS4xi9O7.es.js
355637
355753
  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;
355638
- var init_create_super_doc_ui_bNCP_9_es = __esm(() => {
355639
- init_SuperConverter_BSDZ3hYr_es();
355640
- init_create_headless_toolbar_CKZ579SH_es();
355754
+ var init_create_super_doc_ui_gS4xi9O7_es = __esm(() => {
355755
+ init_SuperConverter_DLdwVEPh_es();
355756
+ init_create_headless_toolbar_BxKMAAgQ_es();
355641
355757
  headlessToolbarConstants = {
355642
355758
  DEFAULT_TEXT_ALIGN_OPTIONS: [
355643
355759
  {
@@ -355919,16 +356035,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
355919
356035
 
355920
356036
  // ../../packages/superdoc/dist/super-editor.es.js
355921
356037
  var init_super_editor_es = __esm(() => {
355922
- init_src_BXck1nRd_es();
355923
- init_SuperConverter_BSDZ3hYr_es();
356038
+ init_src_Bq_Yxqun_es();
356039
+ init_SuperConverter_DLdwVEPh_es();
355924
356040
  init_jszip_C49i9kUs_es();
355925
356041
  init_xml_js_CqGKpaft_es();
355926
- init_create_headless_toolbar_CKZ579SH_es();
356042
+ init_create_headless_toolbar_BxKMAAgQ_es();
355927
356043
  init_constants_D9qj59G2_es();
355928
356044
  init_dist_B8HfvhaK_es();
355929
356045
  init_unified_Dsuw2be5_es();
355930
356046
  init_DocxZipper_FUsfThjV_es();
355931
- init_create_super_doc_ui_bNCP_9_es();
356047
+ init_create_super_doc_ui_gS4xi9O7_es();
355932
356048
  init_ui_C5PAS9hY_es();
355933
356049
  init_eventemitter3_BnGqBE_Q_es();
355934
356050
  init_errors_CNaD6vcg_es();
@@ -457138,7 +457254,7 @@ var init_exporter = __esm(() => {
457138
457254
  // ../../shared/font-system/src/types.ts
457139
457255
  var init_types8 = () => {};
457140
457256
 
457141
- // ../../node_modules/.pnpm/@docfonts+fallbacks@0.12.0/node_modules/@docfonts/fallbacks/dist/data.js
457257
+ // ../../node_modules/.pnpm/@docfonts+fallbacks@0.13.0/node_modules/@docfonts/fallbacks/dist/data.js
457142
457258
  var SUBSTITUTION_EVIDENCE2;
457143
457259
  var init_data = __esm(() => {
457144
457260
  SUBSTITUTION_EVIDENCE2 = [
@@ -457805,31 +457921,48 @@ var init_data = __esm(() => {
457805
457921
  evidenceId: "lucida-console",
457806
457922
  generic: "monospace",
457807
457923
  logicalFamily: "Lucida Console",
457808
- physicalFamily: "Cousine",
457809
- verdict: "cell_width_only",
457924
+ physicalFamily: "Noto Sans Mono",
457925
+ verdict: "visual_only",
457810
457926
  faces: {
457811
- regular: false,
457812
- bold: false,
457927
+ regular: true,
457928
+ bold: true,
457813
457929
  italic: false,
457814
457930
  boldItalic: false
457815
457931
  },
457932
+ faceSources: {
457933
+ italic: {
457934
+ kind: "synthetic",
457935
+ from: "regular"
457936
+ },
457937
+ boldItalic: {
457938
+ kind: "synthetic",
457939
+ from: "bold"
457940
+ }
457941
+ },
457816
457942
  gates: {
457817
- static: "not_run",
457818
- metric: "not_run",
457943
+ static: "pass",
457944
+ metric: "pass",
457819
457945
  layout: "not_run",
457820
- ship: "not_run"
457946
+ ship: "fail"
457821
457947
  },
457822
457948
  policyAction: "category_fallback",
457823
457949
  measurementRefs: [
457824
- "lucida-console__cousine#analytic_advance#2026-06-03"
457950
+ "lucida-console__noto-sans-mono#monospace_cell#analytic_advance#2026-06-09",
457951
+ "lucida-console__noto-sans-mono#visual_review#2026-06-09"
457825
457952
  ],
457826
457953
  exportRule: "preserve_original_name",
457827
457954
  advance: {
457828
457955
  basis: "monospace_cell",
457829
- meanDelta: 0.004050000000000001,
457830
- maxDelta: 0.004050000000000001
457956
+ meanDelta: 0.00254,
457957
+ maxDelta: 0.00303
457831
457958
  },
457832
- candidateLicense: "OFL-1.1"
457959
+ candidateLicense: "OFL-1.1",
457960
+ faceVerdicts: {
457961
+ regular: "cell_width_only",
457962
+ bold: "cell_width_only",
457963
+ italic: "visual_only",
457964
+ boldItalic: "visual_only"
457965
+ }
457833
457966
  },
457834
457967
  {
457835
457968
  evidenceId: "gill-sans-mt-condensed",
@@ -457988,6 +458121,20 @@ var init_data = __esm(() => {
457988
458121
  italic: false,
457989
458122
  boldItalic: false
457990
458123
  },
458124
+ faceSources: {
458125
+ bold: {
458126
+ kind: "synthetic",
458127
+ from: "regular"
458128
+ },
458129
+ italic: {
458130
+ kind: "synthetic",
458131
+ from: "regular"
458132
+ },
458133
+ boldItalic: {
458134
+ kind: "synthetic",
458135
+ from: "regular"
458136
+ }
458137
+ },
457991
458138
  gates: {
457992
458139
  static: "pass",
457993
458140
  metric: "fail",
@@ -457996,7 +458143,8 @@ var init_data = __esm(() => {
457996
458143
  },
457997
458144
  policyAction: "substitute",
457998
458145
  measurementRefs: [
457999
- "baskerville-old-face_regular__bacasime-antique#regular#w400#7dac1e5f#analytic_advance#2026-06-05"
458146
+ "baskerville-old-face_regular__bacasime-antique#regular#w400#7dac1e5f#analytic_advance#2026-06-05",
458147
+ "baskerville-old-face__bacasime-antique#synthetic_faces#visual_review#2026-06-09"
458000
458148
  ],
458001
458149
  exportRule: "preserve_original_name",
458002
458150
  advance: {
@@ -458006,7 +458154,10 @@ var init_data = __esm(() => {
458006
458154
  },
458007
458155
  candidateLicense: "OFL-1.1",
458008
458156
  faceVerdicts: {
458009
- regular: "visual_only"
458157
+ regular: "visual_only",
458158
+ bold: "visual_only",
458159
+ italic: "visual_only",
458160
+ boldItalic: "visual_only"
458010
458161
  },
458011
458162
  glyphExceptions: [
458012
458163
  {
@@ -458017,6 +458168,41 @@ var init_data = __esm(() => {
458017
458168
  }
458018
458169
  ]
458019
458170
  },
458171
+ {
458172
+ evidenceId: "brush-script-mt",
458173
+ generic: "serif",
458174
+ logicalFamily: "Brush Script MT",
458175
+ physicalFamily: "Oregano Italic",
458176
+ verdict: "visual_only",
458177
+ faces: {
458178
+ regular: true,
458179
+ bold: false,
458180
+ italic: false,
458181
+ boldItalic: false
458182
+ },
458183
+ faceSources: {
458184
+ bold: {
458185
+ kind: "synthetic",
458186
+ from: "regular"
458187
+ }
458188
+ },
458189
+ gates: {
458190
+ static: "pass",
458191
+ metric: "fail",
458192
+ layout: "not_run",
458193
+ ship: "fail"
458194
+ },
458195
+ policyAction: "category_fallback",
458196
+ measurementRefs: [
458197
+ "brush-script-mt__oregano-italic#visual_review#2026-06-09"
458198
+ ],
458199
+ exportRule: "preserve_original_name",
458200
+ candidateLicense: "OFL-1.1",
458201
+ faceVerdicts: {
458202
+ regular: "visual_only",
458203
+ bold: "visual_only"
458204
+ }
458205
+ },
458020
458206
  {
458021
458207
  evidenceId: "cooper-black",
458022
458208
  generic: "serif",
@@ -458071,7 +458257,7 @@ var init_data = __esm(() => {
458071
458257
  ];
458072
458258
  });
458073
458259
 
458074
- // ../../node_modules/.pnpm/@docfonts+fallbacks@0.12.0/node_modules/@docfonts/fallbacks/dist/fallbacks.js
458260
+ // ../../node_modules/.pnpm/@docfonts+fallbacks@0.13.0/node_modules/@docfonts/fallbacks/dist/fallbacks.js
458075
458261
  function normalizeFamilyName2(name) {
458076
458262
  return name.trim().replace(/^['"]+|['"]+$/g, "").trim().toLowerCase();
458077
458263
  }
@@ -458165,7 +458351,7 @@ var init_fallbacks = __esm(() => {
458165
458351
  ]));
458166
458352
  });
458167
458353
 
458168
- // ../../node_modules/.pnpm/@docfonts+fallbacks@0.12.0/node_modules/@docfonts/fallbacks/dist/index.js
458354
+ // ../../node_modules/.pnpm/@docfonts+fallbacks@0.13.0/node_modules/@docfonts/fallbacks/dist/index.js
458169
458355
  var init_dist11 = __esm(() => {
458170
458356
  init_data();
458171
458357
  init_fallbacks();
@@ -458195,6 +458381,12 @@ var init_bundled_manifest = __esm(() => {
458195
458381
  family2("Liberation Serif", "LiberationSerif", "OFL-1.1"),
458196
458382
  family2("Liberation Mono", "LiberationMono", "OFL-1.1"),
458197
458383
  familyWithFaces2("Caprasimo", "OFL-1.1", [{ weight: "normal", style: "normal", file: "Caprasimo-Regular.woff2" }]),
458384
+ familyWithFaces2("Bacasime Antique", "OFL-1.1", [
458385
+ { weight: "normal", style: "normal", file: "BacasimeAntique-Regular.woff2" }
458386
+ ]),
458387
+ familyWithFaces2("Oregano Italic", "OFL-1.1", [
458388
+ { weight: "normal", style: "normal", file: "OreganoItalic-Regular.woff2" }
458389
+ ]),
458198
458390
  family2("Gelasio", "Gelasio", "OFL-1.1"),
458199
458391
  familyWithFaces2("Cardo", "OFL-1.1", [
458200
458392
  { weight: "normal", style: "normal", file: "Cardo-Regular.woff2" },
@@ -458206,6 +458398,10 @@ var init_bundled_manifest = __esm(() => {
458206
458398
  { weight: "bold", style: "normal", file: "ComicRelief-Bold.woff2" }
458207
458399
  ]),
458208
458400
  family2("Noto Sans", "NotoSans", "OFL-1.1"),
458401
+ familyWithFaces2("Noto Sans Mono", "OFL-1.1", [
458402
+ { weight: "normal", style: "normal", file: "NotoSansMono-Regular.woff2" },
458403
+ { weight: "bold", style: "normal", file: "NotoSansMono-Bold.woff2" }
458404
+ ]),
458209
458405
  family2("PT Sans", "PTSans", "OFL-1.1")
458210
458406
  ]);
458211
458407
  });
@@ -458899,10 +459095,13 @@ var init_font_offerings = __esm(() => {
458899
459095
  init_substitution_evidence();
458900
459096
  BUNDLED_FAMILIES2 = new Set(BUNDLED_MANIFEST2.map((f2) => f2.family));
458901
459097
  ADVERTISED_BUILT_IN_TOOLBAR_FAMILIES2 = new Set([
459098
+ "Baskerville Old Face",
459099
+ "Brush Script MT",
458902
459100
  "Cooper Black",
458903
459101
  "Comic Sans MS",
458904
459102
  "Garamond",
458905
459103
  "Georgia",
459104
+ "Lucida Console",
458906
459105
  "Tahoma",
458907
459106
  "Trebuchet MS"
458908
459107
  ]);
@@ -459960,6 +460159,7 @@ function groupTrackedChanges2(editor) {
459960
460159
  return cached2.grouped;
459961
460160
  const marks = getRawTrackedMarks2(editor);
459962
460161
  const byRawId = new Map;
460162
+ const segmentsByRawId = new Map;
459963
460163
  for (const item of marks) {
459964
460164
  const attrs = item.mark?.attrs ?? {};
459965
460165
  const id2 = toNonEmptyString2(attrs.id);
@@ -459976,6 +460176,11 @@ function groupTrackedChanges2(editor) {
459976
460176
  const contributesToExcerpt = !wordRevisionId || !hasChildTrackedMarkOnNode2(item, id2);
459977
460177
  const excerptText = contributesToExcerpt ? getTrackedMarkText2(editor, item) : "";
459978
460178
  const range = [item.from, item.to];
460179
+ const priorSegments = segmentsByRawId.get(groupKey);
460180
+ if (priorSegments)
460181
+ priorSegments.push({ from: item.from, to: item.to });
460182
+ else
460183
+ segmentsByRawId.set(groupKey, [{ from: item.from, to: item.to }]);
459979
460184
  if (!existing) {
459980
460185
  byRawId.set(groupKey, {
459981
460186
  rawId: groupKey,
@@ -460025,7 +460230,19 @@ function groupTrackedChanges2(editor) {
460025
460230
  return a2.id.localeCompare(b2.id);
460026
460231
  });
460027
460232
  attachOverlapMetadata2(grouped);
460028
- for (const structural of enumerateStructuralRowChanges2(editor.state)) {
460233
+ const structuralChanges = enumerateStructuralRowChanges2(editor.state);
460234
+ const wholeTableRanges = structuralChanges.filter((structural) => structural.decidable && structural.wholeTable).map((structural) => ({ from: structural.tableFrom, to: structural.tableTo }));
460235
+ if (wholeTableRanges.length > 0) {
460236
+ const segmentInsideSomeTable = (segment) => wholeTableRanges.some((range) => segment.from >= range.from && segment.to <= range.to);
460237
+ for (let i5 = grouped.length - 1;i5 >= 0; i5 -= 1) {
460238
+ const change = grouped[i5];
460239
+ const segments = segmentsByRawId.get(change.rawId) ?? [{ from: change.from, to: change.to }];
460240
+ const ownedByTable = segments.every(segmentInsideSomeTable);
460241
+ if (ownedByTable)
460242
+ grouped.splice(i5, 1);
460243
+ }
460244
+ }
460245
+ for (const structural of structuralChanges) {
460029
460246
  const excerpt = normalizeExcerpt2(editor.state.doc.textBetween(structural.tableFrom, structural.tableTo, " ", ""));
460030
460247
  const stableRawId = structural.sourceId ? `word:structural:${structural.sourceId}` : structural.id;
460031
460248
  grouped.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.12.0-next.10",
3
+ "version": "0.12.0-next.12",
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": "1.39.0",
23
22
  "@superdoc/document-api": "0.0.1",
24
- "@superdoc/super-editor": "0.0.1"
23
+ "@superdoc/super-editor": "0.0.1",
24
+ "superdoc": "1.39.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"