@superdoc-dev/cli 0.8.0-next.54 → 0.8.0-next.56

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 +42 -8
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -207213,7 +207213,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
207213
207213
  init_remark_gfm_BhnWr3yf_es();
207214
207214
  });
207215
207215
 
207216
- // ../../packages/superdoc/dist/chunks/src-9bb-fNQI.es.js
207216
+ // ../../packages/superdoc/dist/chunks/src-B34dYiHx.es.js
207217
207217
  function deleteProps(obj, propOrProps) {
207218
207218
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
207219
207219
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -293848,7 +293848,7 @@ menclose::after {
293848
293848
  this.#onCursorsUpdate = null;
293849
293849
  this.#isSetup = false;
293850
293850
  }
293851
- }, 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 {
293851
+ }, 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 {
293852
293852
  #deps = null;
293853
293853
  #callbacks = {};
293854
293854
  #isDragging = false;
@@ -293858,6 +293858,8 @@ menclose::after {
293858
293858
  #dragLastPointer = null;
293859
293859
  #dragLastRawHit = null;
293860
293860
  #dragUsedPageNotMountedFallback = false;
293861
+ #dragStartClient = null;
293862
+ #dragThresholdExceeded = false;
293861
293863
  #autoScrollActive = false;
293862
293864
  #autoScrollTimer = null;
293863
293865
  #autoScrollVelocity = {
@@ -294013,9 +294015,24 @@ menclose::after {
294013
294015
  this.#dragLastPointer = null;
294014
294016
  this.#dragLastRawHit = null;
294015
294017
  this.#dragUsedPageNotMountedFallback = false;
294018
+ this.#dragStartClient = null;
294019
+ this.#dragThresholdExceeded = false;
294016
294020
  this.#lastPointerClient = null;
294017
294021
  this.#stopAutoScroll();
294018
294022
  }
294023
+ #hasExceededDragSelectionThreshold(clientX, clientY) {
294024
+ if (this.#dragThresholdExceeded)
294025
+ return true;
294026
+ if (!this.#dragStartClient)
294027
+ return true;
294028
+ const deltaX = clientX - this.#dragStartClient.clientX;
294029
+ const deltaY = clientY - this.#dragStartClient.clientY;
294030
+ const thresholdSquared = DRAG_SELECTION_DISTANCE_THRESHOLD_PX * DRAG_SELECTION_DISTANCE_THRESHOLD_PX;
294031
+ if (deltaX * deltaX + deltaY * deltaY < thresholdSquared)
294032
+ return false;
294033
+ this.#dragThresholdExceeded = true;
294034
+ return true;
294035
+ }
294019
294036
  #clearCellAnchor() {
294020
294037
  this.#cellAnchor = null;
294021
294038
  this.#cellDragMode = "none";
@@ -294599,6 +294616,11 @@ menclose::after {
294599
294616
  };
294600
294617
  this.#dragLastRawHit = hit;
294601
294618
  this.#dragUsedPageNotMountedFallback = false;
294619
+ this.#dragStartClient = {
294620
+ clientX: event.clientX,
294621
+ clientY: event.clientY
294622
+ };
294623
+ this.#dragThresholdExceeded = false;
294602
294624
  this.#lastPointerClient = {
294603
294625
  clientX: event.clientX,
294604
294626
  clientY: event.clientY
@@ -294662,6 +294684,8 @@ menclose::after {
294662
294684
  if (!this.#deps.getLayoutState().layout)
294663
294685
  return;
294664
294686
  if (this.#isDragging && this.#dragAnchor !== null && event.buttons & 1) {
294687
+ if (!this.#hasExceededDragSelectionThreshold(event.clientX, event.clientY))
294688
+ return;
294665
294689
  this.#lastPointerClient = {
294666
294690
  clientX: event.clientX,
294667
294691
  clientY: event.clientY
@@ -294719,6 +294743,8 @@ menclose::after {
294719
294743
  this.#dragLastPointer = null;
294720
294744
  this.#dragLastRawHit = null;
294721
294745
  this.#dragUsedPageNotMountedFallback = false;
294746
+ this.#dragStartClient = null;
294747
+ this.#dragThresholdExceeded = false;
294722
294748
  this.#lastPointerClient = null;
294723
294749
  return;
294724
294750
  }
@@ -295399,6 +295425,8 @@ menclose::after {
295399
295425
  this.#dragLastPointer = null;
295400
295426
  this.#dragLastRawHit = null;
295401
295427
  this.#dragUsedPageNotMountedFallback = false;
295428
+ this.#dragStartClient = null;
295429
+ this.#dragThresholdExceeded = false;
295402
295430
  this.#lastPointerClient = null;
295403
295431
  this.#stopAutoScroll();
295404
295432
  }
@@ -298445,7 +298473,7 @@ menclose::after {
298445
298473
  return;
298446
298474
  console.log(...args$1);
298447
298475
  }, 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;
298448
- var init_src_9bb_fNQI_es = __esm(() => {
298476
+ var init_src_B34dYiHx_es = __esm(() => {
298449
298477
  init_rolldown_runtime_Bg48TavK_es();
298450
298478
  init_SuperConverter_CkLY_4Vz_es();
298451
298479
  init_jszip_C49i9kUs_es();
@@ -335843,11 +335871,17 @@ function print() { __p += __j.call(arguments, '') }
335843
335871
  ];
335844
335872
  });
335845
335873
 
335846
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-XUwPsHl2.es.js
335847
- var ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
335848
- var init_create_super_doc_ui_XUwPsHl2_es = __esm(() => {
335874
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-B-_Cgskg.es.js
335875
+ var RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
335876
+ var init_create_super_doc_ui_B__Cgskg_es = __esm(() => {
335849
335877
  init_SuperConverter_CkLY_4Vz_es();
335850
335878
  init_create_headless_toolbar_1rAXWJ8P_es();
335879
+ RESERVED_PROXY_PROPERTY_NAMES = new Set([
335880
+ "register",
335881
+ "get",
335882
+ "has",
335883
+ "require"
335884
+ ]);
335851
335885
  ALL_TOOLBAR_COMMAND_IDS = Object.keys(createToolbarRegistry());
335852
335886
  EMPTY_ACTIVE_IDS = Object.freeze([]);
335853
335887
  });
@@ -335865,7 +335899,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
335865
335899
 
335866
335900
  // ../../packages/superdoc/dist/super-editor.es.js
335867
335901
  var init_super_editor_es = __esm(() => {
335868
- init_src_9bb_fNQI_es();
335902
+ init_src_B34dYiHx_es();
335869
335903
  init_SuperConverter_CkLY_4Vz_es();
335870
335904
  init_jszip_C49i9kUs_es();
335871
335905
  init_xml_js_CqGKpaft_es();
@@ -335874,7 +335908,7 @@ var init_super_editor_es = __esm(() => {
335874
335908
  init_dist_B8HfvhaK_es();
335875
335909
  init_unified_Dsuw2be5_es();
335876
335910
  init_DocxZipper_CUX64E5K_es();
335877
- init_create_super_doc_ui_XUwPsHl2_es();
335911
+ init_create_super_doc_ui_B__Cgskg_es();
335878
335912
  init_ui_CGB3qmy3_es();
335879
335913
  init_eventemitter3_BJrNoN9D_es();
335880
335914
  init_errors_C_DoKMoN_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.8.0-next.54",
3
+ "version": "0.8.0-next.56",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -26,19 +26,19 @@
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
28
  "@superdoc/super-editor": "0.0.1",
29
- "superdoc": "1.31.0",
30
- "@superdoc/pm-adapter": "0.0.0"
29
+ "@superdoc/pm-adapter": "0.0.0",
30
+ "superdoc": "1.31.0"
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.8.0-next.54",
38
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.54",
39
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.54",
40
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.54",
41
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.54"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.56",
38
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.56",
39
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.56",
40
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.56",
41
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.56"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",