@superdoc-dev/mcp 0.3.0-next.40 → 0.3.0-next.41

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 +3 -3
package/dist/index.js CHANGED
@@ -198748,7 +198748,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
198748
198748
  init_remark_gfm_BhnWr3yf_es();
198749
198749
  });
198750
198750
 
198751
- // ../../packages/superdoc/dist/chunks/src-B3BEPHBG.es.js
198751
+ // ../../packages/superdoc/dist/chunks/src-UYM49iGE.es.js
198752
198752
  function deleteProps(obj, propOrProps) {
198753
198753
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
198754
198754
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -268952,7 +268952,7 @@ var Node$13 = class Node$14 {
268952
268952
  }, markInsertion = ({ tr, from: from$1, to, user, date: date6, id: providedId }) => {
268953
268953
  tr.removeMark(from$1, to, tr.doc.type.schema.marks[TrackDeleteMarkName]);
268954
268954
  tr.removeMark(from$1, to, tr.doc.type.schema.marks[TrackInsertMarkName]);
268955
- let trackedMark = findTrackedMarkBetween({
268955
+ const trackedMark = findTrackedMarkBetween({
268956
268956
  tr,
268957
268957
  from: from$1,
268958
268958
  to,
@@ -268993,7 +268993,7 @@ var Node$13 = class Node$14 {
268993
268993
  return true;
268994
268994
  return authorEmail === userEmail;
268995
268995
  };
268996
- let trackedMark = findTrackedMarkBetween({
268996
+ const trackedMark = findTrackedMarkBetween({
268997
268997
  tr,
268998
268998
  from: from$1,
268999
268999
  to,
@@ -269408,18 +269408,20 @@ var Node$13 = class Node$14 {
269408
269408
  const formatChangeMark = liveMarks.find((mark2) => mark2.type.name === TrackFormatMarkName);
269409
269409
  let after = [];
269410
269410
  let before = [];
269411
- if (formatChangeMark)
269412
- if (formatChangeMark.attrs.before.find((mark2) => markSnapshotMatchesStepMark(mark2, step2.mark, true))) {
269413
- before = [...formatChangeMark.attrs.before.filter((mark2) => !markSnapshotMatchesStepMark(mark2, step2.mark, true))];
269414
- after = formatChangeMark.attrs.after.filter((mark2) => getTypeName(mark2) !== step2.mark.type.name);
269411
+ if (formatChangeMark) {
269412
+ const beforeSnapshots = formatChangeMark.attrs.before || [];
269413
+ const afterSnapshots = formatChangeMark.attrs.after || [];
269414
+ if (beforeSnapshots.find((mark2) => markSnapshotMatchesStepMark(mark2, step2.mark, true))) {
269415
+ before = [...beforeSnapshots.filter((mark2) => !markSnapshotMatchesStepMark(mark2, step2.mark, true))];
269416
+ after = afterSnapshots.filter((mark2) => getTypeName(mark2) !== step2.mark.type.name);
269415
269417
  } else {
269416
- before = [...formatChangeMark.attrs.before];
269417
- after = upsertMarkSnapshotByType(formatChangeMark.attrs.after, {
269418
+ before = [...beforeSnapshots];
269419
+ after = upsertMarkSnapshotByType(afterSnapshots, {
269418
269420
  type: step2.mark.type.name,
269419
269421
  attrs: { ...step2.mark.attrs }
269420
269422
  });
269421
269423
  }
269422
- else {
269424
+ } else {
269423
269425
  const existingMarkOfSameType = liveMarks.find((mark2) => mark2.type.name === step2.mark.type.name && !["trackDelete", "trackFormat"].includes(mark2.type.name));
269424
269426
  before = existingMarkOfSameType ? [{
269425
269427
  type: existingMarkOfSameType.type.name,
@@ -290008,7 +290010,7 @@ menclose::after {
290008
290010
  return;
290009
290011
  console.log(...args$1);
290010
290012
  }, 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;
290011
- var init_src_B3BEPHBG_es = __esm(() => {
290013
+ var init_src_UYM49iGE_es = __esm(() => {
290012
290014
  init_rolldown_runtime_Bg48TavK_es();
290013
290015
  init_SuperConverter_CkLY_4Vz_es();
290014
290016
  init_jszip_C49i9kUs_es();
@@ -327434,7 +327436,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
327434
327436
 
327435
327437
  // ../../packages/superdoc/dist/super-editor.es.js
327436
327438
  var init_super_editor_es = __esm(() => {
327437
- init_src_B3BEPHBG_es();
327439
+ init_src_UYM49iGE_es();
327438
327440
  init_SuperConverter_CkLY_4Vz_es();
327439
327441
  init_jszip_C49i9kUs_es();
327440
327442
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.3.0-next.40",
3
+ "version": "0.3.0-next.41",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -20,8 +20,8 @@
20
20
  "@types/node": "22.19.2",
21
21
  "typescript": "^5.9.2",
22
22
  "@superdoc/document-api": "0.0.1",
23
- "@superdoc/super-editor": "0.0.1",
24
- "superdoc": "1.31.0"
23
+ "superdoc": "1.31.0",
24
+ "@superdoc/super-editor": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"