@superdoc-dev/cli 0.8.0-next.58 → 0.8.0-next.59

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 +14 -12
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -207212,7 +207212,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
207212
207212
  init_remark_gfm_BhnWr3yf_es();
207213
207213
  });
207214
207214
 
207215
- // ../../packages/superdoc/dist/chunks/src-B3BEPHBG.es.js
207215
+ // ../../packages/superdoc/dist/chunks/src-UYM49iGE.es.js
207216
207216
  function deleteProps(obj, propOrProps) {
207217
207217
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
207218
207218
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -277416,7 +277416,7 @@ var Node$13 = class Node$14 {
277416
277416
  }, markInsertion = ({ tr, from: from$1, to, user, date, id: providedId }) => {
277417
277417
  tr.removeMark(from$1, to, tr.doc.type.schema.marks[TrackDeleteMarkName]);
277418
277418
  tr.removeMark(from$1, to, tr.doc.type.schema.marks[TrackInsertMarkName]);
277419
- let trackedMark = findTrackedMarkBetween({
277419
+ const trackedMark = findTrackedMarkBetween({
277420
277420
  tr,
277421
277421
  from: from$1,
277422
277422
  to,
@@ -277457,7 +277457,7 @@ var Node$13 = class Node$14 {
277457
277457
  return true;
277458
277458
  return authorEmail === userEmail;
277459
277459
  };
277460
- let trackedMark = findTrackedMarkBetween({
277460
+ const trackedMark = findTrackedMarkBetween({
277461
277461
  tr,
277462
277462
  from: from$1,
277463
277463
  to,
@@ -277872,18 +277872,20 @@ var Node$13 = class Node$14 {
277872
277872
  const formatChangeMark = liveMarks.find((mark2) => mark2.type.name === TrackFormatMarkName);
277873
277873
  let after2 = [];
277874
277874
  let before2 = [];
277875
- if (formatChangeMark)
277876
- if (formatChangeMark.attrs.before.find((mark2) => markSnapshotMatchesStepMark(mark2, step3.mark, true))) {
277877
- before2 = [...formatChangeMark.attrs.before.filter((mark2) => !markSnapshotMatchesStepMark(mark2, step3.mark, true))];
277878
- after2 = formatChangeMark.attrs.after.filter((mark2) => getTypeName(mark2) !== step3.mark.type.name);
277875
+ if (formatChangeMark) {
277876
+ const beforeSnapshots = formatChangeMark.attrs.before || [];
277877
+ const afterSnapshots = formatChangeMark.attrs.after || [];
277878
+ if (beforeSnapshots.find((mark2) => markSnapshotMatchesStepMark(mark2, step3.mark, true))) {
277879
+ before2 = [...beforeSnapshots.filter((mark2) => !markSnapshotMatchesStepMark(mark2, step3.mark, true))];
277880
+ after2 = afterSnapshots.filter((mark2) => getTypeName(mark2) !== step3.mark.type.name);
277879
277881
  } else {
277880
- before2 = [...formatChangeMark.attrs.before];
277881
- after2 = upsertMarkSnapshotByType(formatChangeMark.attrs.after, {
277882
+ before2 = [...beforeSnapshots];
277883
+ after2 = upsertMarkSnapshotByType(afterSnapshots, {
277882
277884
  type: step3.mark.type.name,
277883
277885
  attrs: { ...step3.mark.attrs }
277884
277886
  });
277885
277887
  }
277886
- else {
277888
+ } else {
277887
277889
  const existingMarkOfSameType = liveMarks.find((mark2) => mark2.type.name === step3.mark.type.name && !["trackDelete", "trackFormat"].includes(mark2.type.name));
277888
277890
  before2 = existingMarkOfSameType ? [{
277889
277891
  type: existingMarkOfSameType.type.name,
@@ -298472,7 +298474,7 @@ menclose::after {
298472
298474
  return;
298473
298475
  console.log(...args$1);
298474
298476
  }, 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;
298475
- var init_src_B3BEPHBG_es = __esm(() => {
298477
+ var init_src_UYM49iGE_es = __esm(() => {
298476
298478
  init_rolldown_runtime_Bg48TavK_es();
298477
298479
  init_SuperConverter_CkLY_4Vz_es();
298478
298480
  init_jszip_C49i9kUs_es();
@@ -335898,7 +335900,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
335898
335900
 
335899
335901
  // ../../packages/superdoc/dist/super-editor.es.js
335900
335902
  var init_super_editor_es = __esm(() => {
335901
- init_src_B3BEPHBG_es();
335903
+ init_src_UYM49iGE_es();
335902
335904
  init_SuperConverter_CkLY_4Vz_es();
335903
335905
  init_jszip_C49i9kUs_es();
335904
335906
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.8.0-next.58",
3
+ "version": "0.8.0-next.59",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,9 +24,9 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
- "@superdoc/document-api": "0.0.1",
28
27
  "@superdoc/pm-adapter": "0.0.0",
29
28
  "@superdoc/super-editor": "0.0.1",
29
+ "@superdoc/document-api": "0.0.1",
30
30
  "superdoc": "1.31.0"
31
31
  },
32
32
  "module": "src/index.ts",
@@ -34,11 +34,11 @@
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.58",
38
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.58",
39
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.58",
40
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.58",
41
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.58"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.59",
38
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.59",
39
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.59",
40
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.59",
41
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.59"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",