@superdoc-dev/cli 0.8.0-next.1 → 0.8.0-next.2

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 +10 -5
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -205842,7 +205842,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
205842
205842
  init_remark_gfm_BhnWr3yf_es();
205843
205843
  });
205844
205844
 
205845
- // ../../packages/superdoc/dist/chunks/src-BjTwoiTr.es.js
205845
+ // ../../packages/superdoc/dist/chunks/src-CuSoVLMS.es.js
205846
205846
  function deleteProps(obj, propOrProps) {
205847
205847
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
205848
205848
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -259914,6 +259914,11 @@ function getCommentHighlightThreadIds(target) {
259914
259914
  function isDirectSingleCommentHighlightHit(target) {
259915
259915
  return getCommentHighlightThreadIds(target).length === 1;
259916
259916
  }
259917
+ function isDirectTrackedChangeHit(target) {
259918
+ if (!(target instanceof Element))
259919
+ return false;
259920
+ return target.closest(TRACK_CHANGE_SELECTOR) != null;
259921
+ }
259917
259922
  function resolveTrackChangeThreadId(target) {
259918
259923
  if (!(target instanceof Element))
259919
259924
  return null;
@@ -259986,7 +259991,7 @@ function getActiveCommentThreadId(editor) {
259986
259991
  function shouldIgnoreRepeatClickOnActiveComment(target, clientX, clientY, activeThreadId) {
259987
259992
  if (!activeThreadId)
259988
259993
  return false;
259989
- if (isDirectSingleCommentHighlightHit(target))
259994
+ if (isDirectSingleCommentHighlightHit(target) || isDirectTrackedChangeHit(target))
259990
259995
  return false;
259991
259996
  return resolveCommentThreadIdNearPointer(target, clientX, clientY) === activeThreadId;
259992
259997
  }
@@ -288182,7 +288187,7 @@ menclose::after {
288182
288187
  return true;
288183
288188
  }
288184
288189
  #handleSingleCommentHighlightClick(event, target, editor) {
288185
- if (isDirectSingleCommentHighlightHit(target))
288190
+ if (isDirectSingleCommentHighlightHit(target) || isDirectTrackedChangeHit(target))
288186
288191
  return false;
288187
288192
  const clickedThreadId = resolveCommentThreadIdNearPointer(target, event.clientX, event.clientY);
288188
288193
  if (!clickedThreadId)
@@ -290543,7 +290548,7 @@ menclose::after {
290543
290548
  return;
290544
290549
  console.log(...args$1);
290545
290550
  }, 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;
290546
- var init_src_BjTwoiTr_es = __esm(() => {
290551
+ var init_src_CuSoVLMS_es = __esm(() => {
290547
290552
  init_rolldown_runtime_Bg48TavK_es();
290548
290553
  init_SuperConverter_3_5Ylzu3_es();
290549
290554
  init_jszip_C49i9kUs_es();
@@ -325441,7 +325446,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
325441
325446
 
325442
325447
  // ../../packages/superdoc/dist/super-editor.es.js
325443
325448
  var init_super_editor_es = __esm(() => {
325444
- init_src_BjTwoiTr_es();
325449
+ init_src_CuSoVLMS_es();
325445
325450
  init_SuperConverter_3_5Ylzu3_es();
325446
325451
  init_jszip_C49i9kUs_es();
325447
325452
  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.1",
3
+ "version": "0.8.0-next.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,20 +25,20 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
+ "@superdoc/pm-adapter": "0.0.0",
28
29
  "@superdoc/super-editor": "0.0.1",
29
- "superdoc": "1.27.0",
30
- "@superdoc/pm-adapter": "0.0.0"
30
+ "superdoc": "1.27.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.1",
38
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.1",
39
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.1",
40
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.1",
41
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.1"
37
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.2",
38
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.2",
39
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.2",
40
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.2",
41
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.2"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",