@superdoc-dev/cli 0.2.0-next.128 → 0.2.0-next.129

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 +3 -34
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -135072,7 +135072,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
135072
135072
  init_remark_gfm_z_sDF4ss_es();
135073
135073
  });
135074
135074
 
135075
- // ../../packages/superdoc/dist/chunks/src-CBmd-TxZ.es.js
135075
+ // ../../packages/superdoc/dist/chunks/src-mZ_XrF8p.es.js
135076
135076
  function deleteProps(obj, propOrProps) {
135077
135077
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
135078
135078
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -139617,18 +139617,6 @@ function extractTableInfo($pos, depth) {
139617
139617
  return fallbackInfo;
139618
139618
  }
139619
139619
  }
139620
- function findFirstRunPosInParagraph(paragraphNode, paragraphPos, runType) {
139621
- let firstRunPos = null;
139622
- paragraphNode.descendants((child, childPos) => {
139623
- if (firstRunPos !== null)
139624
- return false;
139625
- if (child.type !== runType)
139626
- return true;
139627
- firstRunPos = paragraphPos + 1 + childPos;
139628
- return false;
139629
- });
139630
- return firstRunPos;
139631
- }
139632
139620
  function segmentRunByInlineProps(runNode, paragraphNode, tableInfo, $pos, editor, preservedDerivedKeys) {
139633
139621
  const segments = [];
139634
139622
  let lastKey = null;
@@ -139714,9 +139702,6 @@ function stableStringifyInlineProps(inlineProps) {
139714
139702
  });
139715
139703
  return JSON.stringify(sorted);
139716
139704
  }
139717
- function areRunPropertiesEqual(left$1, right$1) {
139718
- return stableStringifyInlineProps(left$1) === stableStringifyInlineProps(right$1);
139719
- }
139720
139705
  function createSelectionPreserver(tr, originalSelection) {
139721
139706
  if (!originalSelection)
139722
139707
  return null;
@@ -194216,7 +194201,6 @@ var Node$13 = class Node$14 {
194216
194201
  if (!runPositions.size)
194217
194202
  return null;
194218
194203
  const selectionPreserver = createSelectionPreserver(tr, newState.selection);
194219
- const firstRunPosByParagraph = /* @__PURE__ */ new Map;
194220
194204
  Array.from(runPositions).sort((a2, b$1) => b$1 - a2).forEach((pos) => {
194221
194205
  const mappedPos = tr.mapping.map(pos);
194222
194206
  const runNode = tr.doc.nodeAt(mappedPos);
@@ -194228,21 +194212,6 @@ var Node$13 = class Node$14 {
194228
194212
  return;
194229
194213
  const { segments, firstInlineProps } = segmentRunByInlineProps(runNode, paragraphNode, tableInfo, $pos, editor, preservedDerivedKeys);
194230
194214
  const runProperties = firstInlineProps ?? null;
194231
- let firstRunPos = firstRunPosByParagraph.get(paragraphPos);
194232
- if (firstRunPos === undefined) {
194233
- firstRunPos = findFirstRunPosInParagraph(paragraphNode, paragraphPos, runType);
194234
- firstRunPosByParagraph.set(paragraphPos, firstRunPos);
194235
- }
194236
- if (firstRunPos === mappedPos) {
194237
- if (!areRunPropertiesEqual(paragraphNode.attrs?.paragraphProperties?.runProperties ?? null, runProperties)) {
194238
- const inlineParagraphProperties = carbonCopy(paragraphNode.attrs.paragraphProperties) || {};
194239
- inlineParagraphProperties.runProperties = runProperties;
194240
- tr.setNodeMarkup(paragraphPos, paragraphNode.type, {
194241
- ...paragraphNode.attrs,
194242
- paragraphProperties: inlineParagraphProperties
194243
- });
194244
- }
194245
- }
194246
194215
  if (segments.length === 1) {
194247
194216
  if (JSON.stringify(runProperties) === JSON.stringify(runNode.attrs.runProperties))
194248
194217
  return;
@@ -217838,7 +217807,7 @@ var Node$13 = class Node$14 {
217838
217807
  return false;
217839
217808
  return Boolean(checker(attrs));
217840
217809
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
217841
- var init_src_CBmd_TxZ_es = __esm(() => {
217810
+ var init_src_mZ_XrF8p_es = __esm(() => {
217842
217811
  init_rolldown_runtime_B2q5OVn9_es();
217843
217812
  init_SuperConverter_Cw5CEerM_es();
217844
217813
  init_jszip_ChlR43oI_es();
@@ -251446,7 +251415,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
251446
251415
 
251447
251416
  // ../../packages/superdoc/dist/super-editor.es.js
251448
251417
  var init_super_editor_es = __esm(() => {
251449
- init_src_CBmd_TxZ_es();
251418
+ init_src_mZ_XrF8p_es();
251450
251419
  init_SuperConverter_Cw5CEerM_es();
251451
251420
  init_jszip_ChlR43oI_es();
251452
251421
  init_xml_js_DLE8mr0n_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.2.0-next.128",
3
+ "version": "0.2.0-next.129",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -30,11 +30,11 @@
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.2.0-next.128",
34
- "@superdoc-dev/cli-darwin-x64": "0.2.0-next.128",
35
- "@superdoc-dev/cli-linux-x64": "0.2.0-next.128",
36
- "@superdoc-dev/cli-windows-x64": "0.2.0-next.128",
37
- "@superdoc-dev/cli-linux-arm64": "0.2.0-next.128"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.2.0-next.129",
34
+ "@superdoc-dev/cli-linux-x64": "0.2.0-next.129",
35
+ "@superdoc-dev/cli-linux-arm64": "0.2.0-next.129",
36
+ "@superdoc-dev/cli-darwin-x64": "0.2.0-next.129",
37
+ "@superdoc-dev/cli-windows-x64": "0.2.0-next.129"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "bun run src/index.ts",