@superdoc-dev/cli 0.5.0-next.23 → 0.5.0-next.25

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 +15 -12
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -172511,7 +172511,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
172511
172511
  init_remark_gfm_z_sDF4ss_es();
172512
172512
  });
172513
172513
 
172514
- // ../../packages/superdoc/dist/chunks/src-BrtcDgR1.es.js
172514
+ // ../../packages/superdoc/dist/chunks/src-BOboPGqd.es.js
172515
172515
  function deleteProps(obj, propOrProps) {
172516
172516
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
172517
172517
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -175875,6 +175875,14 @@ function createNumberingPlugin(editor) {
175875
175875
  if (nextRev != null)
175876
175876
  tr.setNodeAttribute(pos, "sdBlockRev", nextRev);
175877
175877
  };
175878
+ const normalizeListRendering = (listRendering) => listRendering ?? null;
175879
+ const serializeListRendering = (listRendering) => JSON.stringify(normalizeListRendering(listRendering));
175880
+ const updateListRenderingIfNeeded = (node3, pos, nextListRendering) => {
175881
+ if (serializeListRendering(node3?.attrs?.listRendering) === serializeListRendering(nextListRendering))
175882
+ return;
175883
+ tr.setNodeAttribute(pos, "listRendering", normalizeListRendering(nextListRendering));
175884
+ bumpBlockRev(node3, pos);
175885
+ };
175878
175886
  numberingManager.enableCache();
175879
175887
  try {
175880
175888
  newState.doc.descendants((node3, pos) => {
@@ -175888,9 +175896,8 @@ function createNumberingPlugin(editor) {
175888
175896
  editor
175889
175897
  });
175890
175898
  if (!definitionDetails || Object.keys(definitionDetails).length === 0) {
175891
- tr.setNodeAttribute(pos, "listRendering", null);
175892
- bumpBlockRev(node3, pos);
175893
- return;
175899
+ updateListRenderingIfNeeded(node3, pos, null);
175900
+ return false;
175894
175901
  }
175895
175902
  let { lvlText, customFormat, listNumberingType, suffix, justification, abstractId } = definitionDetails;
175896
175903
  let markerText = "";
@@ -175907,18 +175914,14 @@ function createNumberingPlugin(editor) {
175907
175914
  }) ?? "";
175908
175915
  else
175909
175916
  markerText = docxNumberingHelpers.normalizeLvlTextChar(lvlText) ?? "";
175910
- const newListRendering = {
175917
+ updateListRenderingIfNeeded(node3, pos, {
175911
175918
  markerText,
175912
175919
  suffix,
175913
175920
  justification,
175914
175921
  path: path2,
175915
175922
  numberingType: listNumberingType,
175916
175923
  ...customFormat ? { customFormat } : {}
175917
- };
175918
- if (JSON.stringify(node3.attrs.listRendering) !== JSON.stringify(newListRendering)) {
175919
- tr.setNodeAttribute(pos, "listRendering", newListRendering);
175920
- bumpBlockRev(node3, pos);
175921
- }
175924
+ });
175922
175925
  return false;
175923
175926
  });
175924
175927
  } finally {
@@ -254879,7 +254882,7 @@ var Node$13 = class Node$14 {
254879
254882
  return;
254880
254883
  console.log(...args$1);
254881
254884
  }, 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;
254882
- var init_src_BrtcDgR1_es = __esm(() => {
254885
+ var init_src_BOboPGqd_es = __esm(() => {
254883
254886
  init_rolldown_runtime_B2q5OVn9_es();
254884
254887
  init_SuperConverter_CYbYOJeZ_es();
254885
254888
  init_jszip_ChlR43oI_es();
@@ -288871,7 +288874,7 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
288871
288874
 
288872
288875
  // ../../packages/superdoc/dist/super-editor.es.js
288873
288876
  var init_super_editor_es = __esm(() => {
288874
- init_src_BrtcDgR1_es();
288877
+ init_src_BOboPGqd_es();
288875
288878
  init_SuperConverter_CYbYOJeZ_es();
288876
288879
  init_jszip_ChlR43oI_es();
288877
288880
  init_xml_js_40FWvL78_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.5.0-next.23",
3
+ "version": "0.5.0-next.25",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,20 +25,20 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
- "@superdoc/super-editor": "0.0.1",
28
+ "@superdoc/pm-adapter": "0.0.0",
29
29
  "superdoc": "1.23.0",
30
- "@superdoc/pm-adapter": "0.0.0"
30
+ "@superdoc/super-editor": "0.0.1"
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.5.0-next.23",
38
- "@superdoc-dev/cli-darwin-x64": "0.5.0-next.23",
39
- "@superdoc-dev/cli-linux-arm64": "0.5.0-next.23",
40
- "@superdoc-dev/cli-linux-x64": "0.5.0-next.23",
41
- "@superdoc-dev/cli-windows-x64": "0.5.0-next.23"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.25",
38
+ "@superdoc-dev/cli-darwin-x64": "0.5.0-next.25",
39
+ "@superdoc-dev/cli-linux-x64": "0.5.0-next.25",
40
+ "@superdoc-dev/cli-linux-arm64": "0.5.0-next.25",
41
+ "@superdoc-dev/cli-windows-x64": "0.5.0-next.25"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",