@superdoc-dev/cli 0.13.0-next.4 → 0.13.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 +50 -18
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -67593,7 +67593,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
67593
67593
  emptyOptions2 = {};
67594
67594
  });
67595
67595
 
67596
- // ../../packages/superdoc/dist/chunks/SuperConverter-zMJ6NmqZ.es.js
67596
+ // ../../packages/superdoc/dist/chunks/SuperConverter-yBMSqEiB.es.js
67597
67597
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
67598
67598
  const fieldValue = extension$1.config[field];
67599
67599
  if (typeof fieldValue === "function")
@@ -76728,6 +76728,10 @@ function resolveRunProperties(params3, inlineRpr, resolvedPpr, tableInfo = null,
76728
76728
  inlineRpr = {};
76729
76729
  if (inlineRpr?.underline)
76730
76730
  delete inlineRpr.underline;
76731
+ if (inlineRpr?.vanish)
76732
+ delete inlineRpr.vanish;
76733
+ if (inlineRpr?.specVanish)
76734
+ delete inlineRpr.specVanish;
76731
76735
  styleChain = [
76732
76736
  ...defaultsChain,
76733
76737
  tableStyleProps,
@@ -121675,7 +121679,7 @@ var isRegExp = (value) => {
121675
121679
  state.kern = kernNode.attributes["w:val"];
121676
121680
  }
121677
121681
  }, SuperConverter;
121678
- var init_SuperConverter_zMJ6NmqZ_es = __esm(() => {
121682
+ var init_SuperConverter_yBMSqEiB_es = __esm(() => {
121679
121683
  init_rolldown_runtime_Bg48TavK_es();
121680
121684
  init_jszip_C49i9kUs_es();
121681
121685
  init_xml_js_CqGKpaft_es();
@@ -159855,7 +159859,7 @@ var init_SuperConverter_zMJ6NmqZ_es = __esm(() => {
159855
159859
  };
159856
159860
  });
159857
159861
 
159858
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-CoZdlJbj.es.js
159862
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-DOHBUV3P.es.js
159859
159863
  function parseSizeUnit(val = "0") {
159860
159864
  const length3 = val.toString() || "0";
159861
159865
  const value = Number.parseFloat(length3);
@@ -169880,8 +169884,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
169880
169884
  }
169881
169885
  };
169882
169886
  };
169883
- var init_create_headless_toolbar_CoZdlJbj_es = __esm(() => {
169884
- init_SuperConverter_zMJ6NmqZ_es();
169887
+ var init_create_headless_toolbar_DOHBUV3P_es = __esm(() => {
169888
+ init_SuperConverter_yBMSqEiB_es();
169885
169889
  init_uuid_qzgm05fK_es();
169886
169890
  init_constants_DrU4EASo_es();
169887
169891
  init_dist_B8HfvhaK_es();
@@ -219086,7 +219090,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
219086
219090
  init_remark_gfm_BhnWr3yf_es();
219087
219091
  });
219088
219092
 
219089
- // ../../packages/superdoc/dist/chunks/src-QKGB098Q.es.js
219093
+ // ../../packages/superdoc/dist/chunks/src-Cccxf1lk.es.js
219090
219094
  function deleteProps(obj, propOrProps) {
219091
219095
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
219092
219096
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -270807,7 +270811,7 @@ function toFlowBlocks(pmDoc, options) {
270807
270811
  blockCounts,
270808
270812
  bookmarks: bookmarks.size
270809
270813
  });
270810
- const mergedBlocks = mergeDropCapParagraphs(hydrateImageBlocks(blocks2, options?.mediaFiles));
270814
+ const mergedBlocks = mergeFusedParagraphs(mergeDropCapParagraphs(hydrateImageBlocks(blocks2, options?.mediaFiles)));
270811
270815
  flowBlockCache?.commit();
270812
270816
  return {
270813
270817
  blocks: mergedBlocks,
@@ -270844,6 +270848,32 @@ function mergeDropCapParagraphs(blocks2) {
270844
270848
  }
270845
270849
  return result;
270846
270850
  }
270851
+ function mergeFusedParagraphs(blocks2) {
270852
+ const result = [];
270853
+ for (const block of blocks2) {
270854
+ const prev = result.length > 0 ? result[result.length - 1] : undefined;
270855
+ if (block.kind === "paragraph" && prev?.kind === "paragraph" && prev.attrs?.suppressParagraphBreak) {
270856
+ const head = prev;
270857
+ const tail = block;
270858
+ const mergedAttrs = { ...head.attrs };
270859
+ if (tail.attrs?.suppressParagraphBreak)
270860
+ mergedAttrs.suppressParagraphBreak = true;
270861
+ else
270862
+ delete mergedAttrs.suppressParagraphBreak;
270863
+ const merged = {
270864
+ kind: "paragraph",
270865
+ id: head.id,
270866
+ runs: [...head.runs, ...tail.runs],
270867
+ attrs: mergedAttrs,
270868
+ ...head.sourceAnchor ? { sourceAnchor: head.sourceAnchor } : {}
270869
+ };
270870
+ result[result.length - 1] = merged;
270871
+ continue;
270872
+ }
270873
+ result.push(block);
270874
+ }
270875
+ return result;
270876
+ }
270847
270877
  function normalizeConverterContext(context, defaultFont, defaultSize) {
270848
270878
  if (!context)
270849
270879
  context = {
@@ -300872,6 +300902,8 @@ menclose::after {
300872
300902
  pageBreakBefore: resolvedParagraphProperties.pageBreakBefore,
300873
300903
  directionContext
300874
300904
  };
300905
+ if (resolvedParagraphProperties.runProperties?.vanish === true || paragraphProperties.runProperties?.vanish === true)
300906
+ paragraphAttrs.suppressParagraphBreak = true;
300875
300907
  if (normalizedNumberingProperties && normalizedListRendering) {
300876
300908
  const markerRunAttrs = computeRunAttrs(resolveRunProperties(converterContext, resolvedParagraphProperties.runProperties, resolvedParagraphProperties, converterContext.tableInfo, true, Boolean(paragraphProperties.numberingProperties)), converterContext);
300877
300909
  let markerFontFallback;
@@ -307614,13 +307646,13 @@ menclose::after {
307614
307646
  return;
307615
307647
  console.log(...args$1);
307616
307648
  }, 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;
307617
- var init_src_QKGB098Q_es = __esm(() => {
307649
+ var init_src_Cccxf1lk_es = __esm(() => {
307618
307650
  init_rolldown_runtime_Bg48TavK_es();
307619
- init_SuperConverter_zMJ6NmqZ_es();
307651
+ init_SuperConverter_yBMSqEiB_es();
307620
307652
  init_jszip_C49i9kUs_es();
307621
307653
  init_xml_js_CqGKpaft_es();
307622
307654
  init_uuid_qzgm05fK_es();
307623
- init_create_headless_toolbar_CoZdlJbj_es();
307655
+ init_create_headless_toolbar_DOHBUV3P_es();
307624
307656
  init_constants_DrU4EASo_es();
307625
307657
  init_dist_B8HfvhaK_es();
307626
307658
  init_unified_Dsuw2be5_es();
@@ -345417,11 +345449,11 @@ function print() { __p += __j.call(arguments, '') }
345417
345449
  ];
345418
345450
  });
345419
345451
 
345420
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-DM_6uPhc.es.js
345452
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-Dv5eUJtx.es.js
345421
345453
  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;
345422
- var init_create_super_doc_ui_DM_6uPhc_es = __esm(() => {
345423
- init_SuperConverter_zMJ6NmqZ_es();
345424
- init_create_headless_toolbar_CoZdlJbj_es();
345454
+ var init_create_super_doc_ui_Dv5eUJtx_es = __esm(() => {
345455
+ init_SuperConverter_yBMSqEiB_es();
345456
+ init_create_headless_toolbar_DOHBUV3P_es();
345425
345457
  MOD_ALIASES = new Set([
345426
345458
  "Mod",
345427
345459
  "Meta",
@@ -345463,16 +345495,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
345463
345495
 
345464
345496
  // ../../packages/superdoc/dist/super-editor.es.js
345465
345497
  var init_super_editor_es = __esm(() => {
345466
- init_src_QKGB098Q_es();
345467
- init_SuperConverter_zMJ6NmqZ_es();
345498
+ init_src_Cccxf1lk_es();
345499
+ init_SuperConverter_yBMSqEiB_es();
345468
345500
  init_jszip_C49i9kUs_es();
345469
345501
  init_xml_js_CqGKpaft_es();
345470
- init_create_headless_toolbar_CoZdlJbj_es();
345502
+ init_create_headless_toolbar_DOHBUV3P_es();
345471
345503
  init_constants_DrU4EASo_es();
345472
345504
  init_dist_B8HfvhaK_es();
345473
345505
  init_unified_Dsuw2be5_es();
345474
345506
  init_DocxZipper_CZMPWpOp_es();
345475
- init_create_super_doc_ui_DM_6uPhc_es();
345507
+ init_create_super_doc_ui_Dv5eUJtx_es();
345476
345508
  init_ui_C5PAS9hY_es();
345477
345509
  init_eventemitter3_BnGqBE_Q_es();
345478
345510
  init_errors_CNaD6vcg_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.13.0-next.4",
3
+ "version": "0.13.0-next.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -26,19 +26,19 @@
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
28
  "@superdoc/pm-adapter": "0.0.0",
29
- "superdoc": "1.35.0",
30
- "@superdoc/super-editor": "0.0.1"
29
+ "@superdoc/super-editor": "0.0.1",
30
+ "superdoc": "1.35.0"
31
31
  },
32
32
  "module": "src/index.ts",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.13.0-next.4",
38
- "@superdoc-dev/cli-darwin-x64": "0.13.0-next.4",
39
- "@superdoc-dev/cli-linux-arm64": "0.13.0-next.4",
40
- "@superdoc-dev/cli-windows-x64": "0.13.0-next.4",
41
- "@superdoc-dev/cli-linux-x64": "0.13.0-next.4"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.13.0-next.5",
38
+ "@superdoc-dev/cli-darwin-x64": "0.13.0-next.5",
39
+ "@superdoc-dev/cli-linux-x64": "0.13.0-next.5",
40
+ "@superdoc-dev/cli-linux-arm64": "0.13.0-next.5",
41
+ "@superdoc-dev/cli-windows-x64": "0.13.0-next.5"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",