@superdoc-dev/mcp 0.10.0-next.11 → 0.10.0-next.12

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 +32 -26
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -211378,7 +211378,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
211378
211378
  init_remark_gfm_BhnWr3yf_es();
211379
211379
  });
211380
211380
 
211381
- // ../../packages/superdoc/dist/chunks/src-BmITdkcx.es.js
211381
+ // ../../packages/superdoc/dist/chunks/src-Bm7Xq4ys.es.js
211382
211382
  function deleteProps(obj, propOrProps) {
211383
211383
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
211384
211384
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -281070,7 +281070,7 @@ var Node$13 = class Node$14 {
281070
281070
  }
281071
281071
  });
281072
281072
  }
281073
- }, COMPOSITION_INPUT_TYPES, COMBINING_MARK_REGEX, graphemeSegmenter, DEAD_KEY_PLACEHOLDER_MARKS, getTextNodeAtPos = ({ doc: doc$12, pos }) => {
281073
+ }, COMPOSITION_INPUT_TYPES, COMBINING_MARK_REGEX, graphemeSegmenter, DEAD_KEY_PLACEHOLDER_MARKS, TRACKABLE_META_KEYS, PASSTHROUGH_META_KEYS, ALLOWED_META_KEYS, getTextNodeAtPos = ({ doc: doc$12, pos }) => {
281074
281074
  let found2 = null;
281075
281075
  doc$12.nodesBetween(Math.max(0, pos - 1), Math.min(doc$12.content.size, pos + 1), (node2, nodePos) => {
281076
281076
  if (found2 || !node2.isText || !node2.text)
@@ -281261,6 +281261,12 @@ var Node$13 = class Node$14 {
281261
281261
  ...existingMeta,
281262
281262
  ...extraMeta
281263
281263
  });
281264
+ }, copyPassthroughMeta = (sourceTr, targetTr) => {
281265
+ PASSTHROUGH_META_KEYS.forEach((key2) => {
281266
+ const value = sourceTr.getMeta(key2);
281267
+ if (value !== undefined)
281268
+ targetTr.setMeta(key2, value);
281269
+ });
281264
281270
  }, getPendingDeadKeyPlaceholder = ({ tr, newTr, user }) => {
281265
281271
  if (!isCompositionTransaction(tr) || tr.steps.length !== 1)
281266
281272
  return null;
@@ -281290,13 +281296,6 @@ var Node$13 = class Node$14 {
281290
281296
  authorEmail: user.email
281291
281297
  };
281292
281298
  }, trackedTransaction = ({ tr, state, user, replacements = "paired" }) => {
281293
- const onlyInputTypeMeta = [
281294
- "inputType",
281295
- "uiEvent",
281296
- "paste",
281297
- "pointer",
281298
- "composition"
281299
- ];
281300
281299
  const notAllowedMeta = [
281301
281300
  "historyUndo",
281302
281301
  "historyRedo",
@@ -281305,13 +281304,7 @@ var Node$13 = class Node$14 {
281305
281304
  const isProgrammaticInput = tr.getMeta("inputType") === "programmatic";
281306
281305
  const ySyncMeta = tr.getMeta(ySyncPluginKey);
281307
281306
  const pendingDeadKeyPlaceholder = TrackChangesBasePluginKey.getState(state)?.pendingDeadKeyPlaceholder ?? null;
281308
- const allowedMeta = new Set([
281309
- ...onlyInputTypeMeta,
281310
- ySyncPluginKey.key,
281311
- "forceTrackChanges",
281312
- "protectTrackedReviewState"
281313
- ]);
281314
- const hasDisallowedMeta = tr.meta && Object.keys(tr.meta).some((meta4) => !allowedMeta.has(meta4));
281307
+ const hasDisallowedMeta = tr.meta && Object.keys(tr.meta).some((meta4) => !ALLOWED_META_KEYS.has(meta4));
281315
281308
  if (ySyncMeta?.isChangeOrigin || !tr.steps.length || hasDisallowedMeta && !isProgrammaticInput || notAllowedMeta.includes(tr.getMeta("inputType")) || tr.getMeta(CommentsPluginKey)) {
281316
281309
  if (pendingDeadKeyPlaceholder && !isCompositionTransaction(tr))
281317
281310
  mergeTrackChangesMeta(tr, { pendingDeadKeyPlaceholder: null });
@@ -281386,14 +281379,7 @@ var Node$13 = class Node$14 {
281386
281379
  else
281387
281380
  newTr.step(step2);
281388
281381
  });
281389
- if (tr.getMeta("inputType"))
281390
- newTr.setMeta("inputType", tr.getMeta("inputType"));
281391
- if (tr.getMeta("uiEvent"))
281392
- newTr.setMeta("uiEvent", tr.getMeta("uiEvent"));
281393
- if (tr.getMeta("composition") !== undefined)
281394
- newTr.setMeta("composition", tr.getMeta("composition"));
281395
- if (tr.getMeta("addToHistory") !== undefined)
281396
- newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
281382
+ copyPassthroughMeta(tr, newTr);
281397
281383
  mergeTrackChangesMeta(newTr, { pendingDeadKeyPlaceholder: getPendingDeadKeyPlaceholder({
281398
281384
  tr,
281399
281385
  newTr,
@@ -308429,7 +308415,7 @@ menclose::after {
308429
308415
  return;
308430
308416
  console.log(...args$1);
308431
308417
  }, 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, TRACKED_MARK_NAMES;
308432
- var init_src_BmITdkcx_es = __esm(() => {
308418
+ var init_src_Bm7Xq4ys_es = __esm(() => {
308433
308419
  init_rolldown_runtime_Bg48TavK_es();
308434
308420
  init_SuperConverter_C6hKp29w_es();
308435
308421
  init_jszip_C49i9kUs_es();
@@ -325420,6 +325406,26 @@ function print() { __p += __j.call(arguments, '') }
325420
325406
  ["~", "̃"],
325421
325407
  ["¨", "̈"]
325422
325408
  ]);
325409
+ TRACKABLE_META_KEYS = [
325410
+ "inputType",
325411
+ "uiEvent",
325412
+ "paste",
325413
+ "pointer",
325414
+ "composition",
325415
+ "superdocSlicePaste",
325416
+ "forceTrackChanges",
325417
+ "protectTrackedReviewState"
325418
+ ];
325419
+ PASSTHROUGH_META_KEYS = [
325420
+ "inputType",
325421
+ "uiEvent",
325422
+ "paste",
325423
+ "pointer",
325424
+ "composition",
325425
+ "addToHistory",
325426
+ "superdocSlicePaste"
325427
+ ];
325428
+ ALLOWED_META_KEYS = new Set([...TRACKABLE_META_KEYS, ySyncPluginKey.key]);
325423
325429
  TrackFormat = Mark3.create({
325424
325430
  name: TrackFormatMarkName,
325425
325431
  group: "track",
@@ -342891,7 +342897,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
342891
342897
 
342892
342898
  // ../../packages/superdoc/dist/super-editor.es.js
342893
342899
  var init_super_editor_es = __esm(() => {
342894
- init_src_BmITdkcx_es();
342900
+ init_src_Bm7Xq4ys_es();
342895
342901
  init_SuperConverter_C6hKp29w_es();
342896
342902
  init_jszip_C49i9kUs_es();
342897
342903
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.10.0-next.11",
3
+ "version": "0.10.0-next.12",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"