@superdoc-dev/mcp 0.3.0-next.37 → 0.3.0-next.38

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 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -198749,7 +198749,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
198749
198749
  init_remark_gfm_BhnWr3yf_es();
198750
198750
  });
198751
198751
 
198752
- // ../../packages/superdoc/dist/chunks/src-9bb-fNQI.es.js
198752
+ // ../../packages/superdoc/dist/chunks/src-B34dYiHx.es.js
198753
198753
  function deleteProps(obj, propOrProps) {
198754
198754
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
198755
198755
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -285384,7 +285384,7 @@ menclose::after {
285384
285384
  this.#onCursorsUpdate = null;
285385
285385
  this.#isSetup = false;
285386
285386
  }
285387
- }, SEMANTIC_FOOTNOTES_HEADING_BLOCK_ID = "__sd_semantic_footnotes_heading", SEMANTIC_FOOTNOTE_BLOCK_ID_PREFIX = "__sd_semantic_footnote", MULTI_CLICK_TIME_THRESHOLD_MS = 400, MULTI_CLICK_DISTANCE_THRESHOLD_PX = 5, AUTO_SCROLL_EDGE_PX = 32, AUTO_SCROLL_MAX_SPEED_PX = 24, SCROLL_DETECTION_TOLERANCE_PX = 1, DEFAULT_PAGE_MARGIN_PX = 72, COMMENT_HIGHLIGHT_SELECTOR = ".superdoc-comment-highlight", TRACK_CHANGE_SELECTOR = "[data-track-change-id]", PM_TRACK_CHANGE_SELECTOR = ".track-insert[data-id], .track-delete[data-id], .track-format[data-id]", VISIBLE_HEADER_FOOTER_SELECTOR = ".superdoc-page-header, .superdoc-page-footer", VISIBLE_BODY_CONTENT_SELECTOR = ".superdoc-line, .superdoc-fragment, [data-block-id]", COMMENT_THREAD_HIT_TOLERANCE_PX = 3, COMMENT_THREAD_HIT_SAMPLE_OFFSETS, clamp = (value, min$2, max$2) => Math.max(min$2, Math.min(max$2, value)), EditorInputManager = class {
285387
+ }, SEMANTIC_FOOTNOTES_HEADING_BLOCK_ID = "__sd_semantic_footnotes_heading", SEMANTIC_FOOTNOTE_BLOCK_ID_PREFIX = "__sd_semantic_footnote", MULTI_CLICK_TIME_THRESHOLD_MS = 400, MULTI_CLICK_DISTANCE_THRESHOLD_PX = 5, DRAG_SELECTION_DISTANCE_THRESHOLD_PX = 5, AUTO_SCROLL_EDGE_PX = 32, AUTO_SCROLL_MAX_SPEED_PX = 24, SCROLL_DETECTION_TOLERANCE_PX = 1, DEFAULT_PAGE_MARGIN_PX = 72, COMMENT_HIGHLIGHT_SELECTOR = ".superdoc-comment-highlight", TRACK_CHANGE_SELECTOR = "[data-track-change-id]", PM_TRACK_CHANGE_SELECTOR = ".track-insert[data-id], .track-delete[data-id], .track-format[data-id]", VISIBLE_HEADER_FOOTER_SELECTOR = ".superdoc-page-header, .superdoc-page-footer", VISIBLE_BODY_CONTENT_SELECTOR = ".superdoc-line, .superdoc-fragment, [data-block-id]", COMMENT_THREAD_HIT_TOLERANCE_PX = 3, COMMENT_THREAD_HIT_SAMPLE_OFFSETS, clamp = (value, min$2, max$2) => Math.max(min$2, Math.min(max$2, value)), EditorInputManager = class {
285388
285388
  #deps = null;
285389
285389
  #callbacks = {};
285390
285390
  #isDragging = false;
@@ -285394,6 +285394,8 @@ menclose::after {
285394
285394
  #dragLastPointer = null;
285395
285395
  #dragLastRawHit = null;
285396
285396
  #dragUsedPageNotMountedFallback = false;
285397
+ #dragStartClient = null;
285398
+ #dragThresholdExceeded = false;
285397
285399
  #autoScrollActive = false;
285398
285400
  #autoScrollTimer = null;
285399
285401
  #autoScrollVelocity = {
@@ -285549,9 +285551,24 @@ menclose::after {
285549
285551
  this.#dragLastPointer = null;
285550
285552
  this.#dragLastRawHit = null;
285551
285553
  this.#dragUsedPageNotMountedFallback = false;
285554
+ this.#dragStartClient = null;
285555
+ this.#dragThresholdExceeded = false;
285552
285556
  this.#lastPointerClient = null;
285553
285557
  this.#stopAutoScroll();
285554
285558
  }
285559
+ #hasExceededDragSelectionThreshold(clientX, clientY) {
285560
+ if (this.#dragThresholdExceeded)
285561
+ return true;
285562
+ if (!this.#dragStartClient)
285563
+ return true;
285564
+ const deltaX = clientX - this.#dragStartClient.clientX;
285565
+ const deltaY = clientY - this.#dragStartClient.clientY;
285566
+ const thresholdSquared = DRAG_SELECTION_DISTANCE_THRESHOLD_PX * DRAG_SELECTION_DISTANCE_THRESHOLD_PX;
285567
+ if (deltaX * deltaX + deltaY * deltaY < thresholdSquared)
285568
+ return false;
285569
+ this.#dragThresholdExceeded = true;
285570
+ return true;
285571
+ }
285555
285572
  #clearCellAnchor() {
285556
285573
  this.#cellAnchor = null;
285557
285574
  this.#cellDragMode = "none";
@@ -286135,6 +286152,11 @@ menclose::after {
286135
286152
  };
286136
286153
  this.#dragLastRawHit = hit;
286137
286154
  this.#dragUsedPageNotMountedFallback = false;
286155
+ this.#dragStartClient = {
286156
+ clientX: event.clientX,
286157
+ clientY: event.clientY
286158
+ };
286159
+ this.#dragThresholdExceeded = false;
286138
286160
  this.#lastPointerClient = {
286139
286161
  clientX: event.clientX,
286140
286162
  clientY: event.clientY
@@ -286198,6 +286220,8 @@ menclose::after {
286198
286220
  if (!this.#deps.getLayoutState().layout)
286199
286221
  return;
286200
286222
  if (this.#isDragging && this.#dragAnchor !== null && event.buttons & 1) {
286223
+ if (!this.#hasExceededDragSelectionThreshold(event.clientX, event.clientY))
286224
+ return;
286201
286225
  this.#lastPointerClient = {
286202
286226
  clientX: event.clientX,
286203
286227
  clientY: event.clientY
@@ -286255,6 +286279,8 @@ menclose::after {
286255
286279
  this.#dragLastPointer = null;
286256
286280
  this.#dragLastRawHit = null;
286257
286281
  this.#dragUsedPageNotMountedFallback = false;
286282
+ this.#dragStartClient = null;
286283
+ this.#dragThresholdExceeded = false;
286258
286284
  this.#lastPointerClient = null;
286259
286285
  return;
286260
286286
  }
@@ -286935,6 +286961,8 @@ menclose::after {
286935
286961
  this.#dragLastPointer = null;
286936
286962
  this.#dragLastRawHit = null;
286937
286963
  this.#dragUsedPageNotMountedFallback = false;
286964
+ this.#dragStartClient = null;
286965
+ this.#dragThresholdExceeded = false;
286938
286966
  this.#lastPointerClient = null;
286939
286967
  this.#stopAutoScroll();
286940
286968
  }
@@ -289981,7 +290009,7 @@ menclose::after {
289981
290009
  return;
289982
290010
  console.log(...args$1);
289983
290011
  }, 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;
289984
- var init_src_9bb_fNQI_es = __esm(() => {
290012
+ var init_src_B34dYiHx_es = __esm(() => {
289985
290013
  init_rolldown_runtime_Bg48TavK_es();
289986
290014
  init_SuperConverter_CkLY_4Vz_es();
289987
290015
  init_jszip_C49i9kUs_es();
@@ -327407,7 +327435,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
327407
327435
 
327408
327436
  // ../../packages/superdoc/dist/super-editor.es.js
327409
327437
  var init_super_editor_es = __esm(() => {
327410
- init_src_9bb_fNQI_es();
327438
+ init_src_B34dYiHx_es();
327411
327439
  init_SuperConverter_CkLY_4Vz_es();
327412
327440
  init_jszip_C49i9kUs_es();
327413
327441
  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.37",
3
+ "version": "0.3.0-next.38",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"