@superdoc-dev/mcp 0.8.0-next.3 → 0.8.0-next.5

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 +56 -18
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -51891,7 +51891,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
51891
51891
  emptyOptions2 = {};
51892
51892
  });
51893
51893
 
51894
- // ../../packages/superdoc/dist/chunks/SuperConverter-zMJ6NmqZ.es.js
51894
+ // ../../packages/superdoc/dist/chunks/SuperConverter-yBMSqEiB.es.js
51895
51895
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
51896
51896
  const fieldValue = extension$1.config[field];
51897
51897
  if (typeof fieldValue === "function")
@@ -61026,6 +61026,10 @@ function resolveRunProperties(params, inlineRpr, resolvedPpr, tableInfo = null,
61026
61026
  inlineRpr = {};
61027
61027
  if (inlineRpr?.underline)
61028
61028
  delete inlineRpr.underline;
61029
+ if (inlineRpr?.vanish)
61030
+ delete inlineRpr.vanish;
61031
+ if (inlineRpr?.specVanish)
61032
+ delete inlineRpr.specVanish;
61029
61033
  styleChain = [
61030
61034
  ...defaultsChain,
61031
61035
  tableStyleProps,
@@ -105973,7 +105977,7 @@ var isRegExp = (value) => {
105973
105977
  state.kern = kernNode.attributes["w:val"];
105974
105978
  }
105975
105979
  }, SuperConverter;
105976
- var init_SuperConverter_zMJ6NmqZ_es = __esm(() => {
105980
+ var init_SuperConverter_yBMSqEiB_es = __esm(() => {
105977
105981
  init_rolldown_runtime_Bg48TavK_es();
105978
105982
  init_jszip_C49i9kUs_es();
105979
105983
  init_xml_js_CqGKpaft_es();
@@ -144153,7 +144157,7 @@ var init_SuperConverter_zMJ6NmqZ_es = __esm(() => {
144153
144157
  };
144154
144158
  });
144155
144159
 
144156
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-CoZdlJbj.es.js
144160
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-DOHBUV3P.es.js
144157
144161
  function parseSizeUnit(val = "0") {
144158
144162
  const length = val.toString() || "0";
144159
144163
  const value = Number.parseFloat(length);
@@ -154178,8 +154182,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
154178
154182
  }
154179
154183
  };
154180
154184
  };
154181
- var init_create_headless_toolbar_CoZdlJbj_es = __esm(() => {
154182
- init_SuperConverter_zMJ6NmqZ_es();
154185
+ var init_create_headless_toolbar_DOHBUV3P_es = __esm(() => {
154186
+ init_SuperConverter_yBMSqEiB_es();
154183
154187
  init_uuid_qzgm05fK_es();
154184
154188
  init_constants_DrU4EASo_es();
154185
154189
  init_dist_B8HfvhaK_es();
@@ -208905,7 +208909,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
208905
208909
  init_remark_gfm_BhnWr3yf_es();
208906
208910
  });
208907
208911
 
208908
- // ../../packages/superdoc/dist/chunks/src-QKGB098Q.es.js
208912
+ // ../../packages/superdoc/dist/chunks/src-Cccxf1lk.es.js
208909
208913
  function deleteProps(obj, propOrProps) {
208910
208914
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
208911
208915
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -260537,7 +260541,7 @@ function toFlowBlocks(pmDoc, options) {
260537
260541
  blockCounts,
260538
260542
  bookmarks: bookmarks.size
260539
260543
  });
260540
- const mergedBlocks = mergeDropCapParagraphs(hydrateImageBlocks(blocks2, options?.mediaFiles));
260544
+ const mergedBlocks = mergeFusedParagraphs(mergeDropCapParagraphs(hydrateImageBlocks(blocks2, options?.mediaFiles)));
260541
260545
  flowBlockCache?.commit();
260542
260546
  return {
260543
260547
  blocks: mergedBlocks,
@@ -260574,6 +260578,32 @@ function mergeDropCapParagraphs(blocks2) {
260574
260578
  }
260575
260579
  return result;
260576
260580
  }
260581
+ function mergeFusedParagraphs(blocks2) {
260582
+ const result = [];
260583
+ for (const block of blocks2) {
260584
+ const prev = result.length > 0 ? result[result.length - 1] : undefined;
260585
+ if (block.kind === "paragraph" && prev?.kind === "paragraph" && prev.attrs?.suppressParagraphBreak) {
260586
+ const head = prev;
260587
+ const tail = block;
260588
+ const mergedAttrs = { ...head.attrs };
260589
+ if (tail.attrs?.suppressParagraphBreak)
260590
+ mergedAttrs.suppressParagraphBreak = true;
260591
+ else
260592
+ delete mergedAttrs.suppressParagraphBreak;
260593
+ const merged = {
260594
+ kind: "paragraph",
260595
+ id: head.id,
260596
+ runs: [...head.runs, ...tail.runs],
260597
+ attrs: mergedAttrs,
260598
+ ...head.sourceAnchor ? { sourceAnchor: head.sourceAnchor } : {}
260599
+ };
260600
+ result[result.length - 1] = merged;
260601
+ continue;
260602
+ }
260603
+ result.push(block);
260604
+ }
260605
+ return result;
260606
+ }
260577
260607
  function normalizeConverterContext(context, defaultFont, defaultSize) {
260578
260608
  if (!context)
260579
260609
  context = {
@@ -290602,6 +290632,8 @@ menclose::after {
290602
290632
  pageBreakBefore: resolvedParagraphProperties.pageBreakBefore,
290603
290633
  directionContext
290604
290634
  };
290635
+ if (resolvedParagraphProperties.runProperties?.vanish === true || paragraphProperties.runProperties?.vanish === true)
290636
+ paragraphAttrs.suppressParagraphBreak = true;
290605
290637
  if (normalizedNumberingProperties && normalizedListRendering) {
290606
290638
  const markerRunAttrs = computeRunAttrs(resolveRunProperties(converterContext, resolvedParagraphProperties.runProperties, resolvedParagraphProperties, converterContext.tableInfo, true, Boolean(paragraphProperties.numberingProperties)), converterContext);
290607
290639
  let markerFontFallback;
@@ -297344,13 +297376,13 @@ menclose::after {
297344
297376
  return;
297345
297377
  console.log(...args$1);
297346
297378
  }, 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;
297347
- var init_src_QKGB098Q_es = __esm(() => {
297379
+ var init_src_Cccxf1lk_es = __esm(() => {
297348
297380
  init_rolldown_runtime_Bg48TavK_es();
297349
- init_SuperConverter_zMJ6NmqZ_es();
297381
+ init_SuperConverter_yBMSqEiB_es();
297350
297382
  init_jszip_C49i9kUs_es();
297351
297383
  init_xml_js_CqGKpaft_es();
297352
297384
  init_uuid_qzgm05fK_es();
297353
- init_create_headless_toolbar_CoZdlJbj_es();
297385
+ init_create_headless_toolbar_DOHBUV3P_es();
297354
297386
  init_constants_DrU4EASo_es();
297355
297387
  init_dist_B8HfvhaK_es();
297356
297388
  init_unified_Dsuw2be5_es();
@@ -335147,11 +335179,11 @@ function print() { __p += __j.call(arguments, '') }
335147
335179
  ];
335148
335180
  });
335149
335181
 
335150
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-DM_6uPhc.es.js
335182
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-Dv5eUJtx.es.js
335151
335183
  var 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;
335152
- var init_create_super_doc_ui_DM_6uPhc_es = __esm(() => {
335153
- init_SuperConverter_zMJ6NmqZ_es();
335154
- init_create_headless_toolbar_CoZdlJbj_es();
335184
+ var init_create_super_doc_ui_Dv5eUJtx_es = __esm(() => {
335185
+ init_SuperConverter_yBMSqEiB_es();
335186
+ init_create_headless_toolbar_DOHBUV3P_es();
335155
335187
  MOD_ALIASES = new Set([
335156
335188
  "Mod",
335157
335189
  "Meta",
@@ -335193,16 +335225,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
335193
335225
 
335194
335226
  // ../../packages/superdoc/dist/super-editor.es.js
335195
335227
  var init_super_editor_es = __esm(() => {
335196
- init_src_QKGB098Q_es();
335197
- init_SuperConverter_zMJ6NmqZ_es();
335228
+ init_src_Cccxf1lk_es();
335229
+ init_SuperConverter_yBMSqEiB_es();
335198
335230
  init_jszip_C49i9kUs_es();
335199
335231
  init_xml_js_CqGKpaft_es();
335200
- init_create_headless_toolbar_CoZdlJbj_es();
335232
+ init_create_headless_toolbar_DOHBUV3P_es();
335201
335233
  init_constants_DrU4EASo_es();
335202
335234
  init_dist_B8HfvhaK_es();
335203
335235
  init_unified_Dsuw2be5_es();
335204
335236
  init_DocxZipper_CZMPWpOp_es();
335205
- init_create_super_doc_ui_DM_6uPhc_es();
335237
+ init_create_super_doc_ui_Dv5eUJtx_es();
335206
335238
  init_ui_C5PAS9hY_es();
335207
335239
  init_eventemitter3_BnGqBE_Q_es();
335208
335240
  init_errors_CNaD6vcg_es();
@@ -376450,6 +376482,12 @@ function resolveRunProperties2(params3, inlineRpr, resolvedPpr, tableInfo = null
376450
376482
  if (inlineRpr?.underline) {
376451
376483
  delete inlineRpr.underline;
376452
376484
  }
376485
+ if (inlineRpr?.vanish) {
376486
+ delete inlineRpr.vanish;
376487
+ }
376488
+ if (inlineRpr?.specVanish) {
376489
+ delete inlineRpr.specVanish;
376490
+ }
376453
376491
  styleChain = [
376454
376492
  ...defaultsChain,
376455
376493
  tableStyleProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.8.0-next.3",
3
+ "version": "0.8.0-next.5",
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/document-api": "0.0.1",
22
+ "superdoc": "1.35.0",
23
23
  "@superdoc/super-editor": "0.0.1",
24
- "superdoc": "1.35.0"
24
+ "@superdoc/document-api": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"