@superdoc-dev/cli 0.3.0-next.32 → 0.3.0-next.33

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 +6 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -147681,7 +147681,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
147681
147681
  init_remark_gfm_z_sDF4ss_es();
147682
147682
  });
147683
147683
 
147684
- // ../../packages/superdoc/dist/chunks/src-DmrqwlWf.es.js
147684
+ // ../../packages/superdoc/dist/chunks/src-DsoBnhF3.es.js
147685
147685
  function deleteProps(obj, propOrProps) {
147686
147686
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
147687
147687
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -227502,7 +227502,7 @@ var Node$13 = class Node$14 {
227502
227502
  return false;
227503
227503
  return Boolean(checker(attrs));
227504
227504
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
227505
- var init_src_DmrqwlWf_es = __esm(() => {
227505
+ var init_src_DsoBnhF3_es = __esm(() => {
227506
227506
  init_rolldown_runtime_B2q5OVn9_es();
227507
227507
  init_SuperConverter_BrfbGHMj_es();
227508
227508
  init_jszip_ChlR43oI_es();
@@ -245786,6 +245786,7 @@ function print() { __p += __j.call(arguments, '') }
245786
245786
  }
245787
245787
  const beforeX = win.scrollX;
245788
245788
  const beforeY = win.scrollY;
245789
+ const alreadyFocused = view.hasFocus();
245789
245790
  let focused = false;
245790
245791
  try {
245791
245792
  view.dom.focus({ preventScroll: true });
@@ -245815,6 +245816,8 @@ function print() { __p += __j.call(arguments, '') }
245815
245816
  strategy: "original"
245816
245817
  });
245817
245818
  }
245819
+ if (!alreadyFocused)
245820
+ view.domObserver.suppressSelectionUpdates();
245818
245821
  if (win.scrollX !== beforeX || win.scrollY !== beforeY)
245819
245822
  win.scrollTo(beforeX, beforeY);
245820
245823
  if (this.#focusScrollRafId != null)
@@ -260773,7 +260776,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
260773
260776
 
260774
260777
  // ../../packages/superdoc/dist/super-editor.es.js
260775
260778
  var init_super_editor_es = __esm(() => {
260776
- init_src_DmrqwlWf_es();
260779
+ init_src_DsoBnhF3_es();
260777
260780
  init_SuperConverter_BrfbGHMj_es();
260778
260781
  init_jszip_ChlR43oI_es();
260779
260782
  init_xml_js_BtmJ6bNs_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.3.0-next.32",
3
+ "version": "0.3.0-next.33",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -30,11 +30,11 @@
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.32",
34
- "@superdoc-dev/cli-darwin-x64": "0.3.0-next.32",
35
- "@superdoc-dev/cli-linux-x64": "0.3.0-next.32",
36
- "@superdoc-dev/cli-windows-x64": "0.3.0-next.32",
37
- "@superdoc-dev/cli-linux-arm64": "0.3.0-next.32"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.33",
34
+ "@superdoc-dev/cli-darwin-x64": "0.3.0-next.33",
35
+ "@superdoc-dev/cli-linux-x64": "0.3.0-next.33",
36
+ "@superdoc-dev/cli-linux-arm64": "0.3.0-next.33",
37
+ "@superdoc-dev/cli-windows-x64": "0.3.0-next.33"
38
38
  },
39
39
  "scripts": {
40
40
  "predev": "node scripts/ensure-superdoc-build.js",