@superdoc-dev/cli 0.8.0-next.110 → 0.8.0-next.111

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 +16 -4
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -209057,7 +209057,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
209057
209057
  init_remark_gfm_BhnWr3yf_es();
209058
209058
  });
209059
209059
 
209060
- // ../../packages/superdoc/dist/chunks/src-GAfNMk63.es.js
209060
+ // ../../packages/superdoc/dist/chunks/src-BaUVXQjX.es.js
209061
209061
  function deleteProps(obj, propOrProps) {
209062
209062
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
209063
209063
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -302872,7 +302872,7 @@ menclose::after {
302872
302872
  return;
302873
302873
  console.log(...args$1);
302874
302874
  }, 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;
302875
- var init_src_GAfNMk63_es = __esm(() => {
302875
+ var init_src_BaUVXQjX_es = __esm(() => {
302876
302876
  init_rolldown_runtime_Bg48TavK_es();
302877
302877
  init_SuperConverter_1Voea3gd_es();
302878
302878
  init_jszip_C49i9kUs_es();
@@ -336543,11 +336543,23 @@ function print() { __p += __j.call(arguments, '') }
336543
336543
  if (pageIndex != null) {
336544
336544
  const pageEl = getPageElementByIndex(this.#viewportHost, pageIndex);
336545
336545
  if (pageEl) {
336546
- (this.#findElementAtPosition(pageEl, clampedPos) ?? pageEl).scrollIntoView({
336546
+ const elToScroll = this.#findElementAtPosition(pageEl, clampedPos) ?? pageEl;
336547
+ elToScroll.scrollIntoView({
336547
336548
  block,
336548
336549
  inline: "nearest",
336549
336550
  behavior
336550
336551
  });
336552
+ this.#shouldScrollSelectionIntoView = false;
336553
+ const win = this.#visibleHost.ownerDocument?.defaultView;
336554
+ if (win)
336555
+ win.requestAnimationFrame(() => {
336556
+ elToScroll.scrollIntoView({
336557
+ block,
336558
+ inline: "nearest",
336559
+ behavior
336560
+ });
336561
+ this.#shouldScrollSelectionIntoView = false;
336562
+ });
336551
336563
  return true;
336552
336564
  }
336553
336565
  }
@@ -340973,7 +340985,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
340973
340985
 
340974
340986
  // ../../packages/superdoc/dist/super-editor.es.js
340975
340987
  var init_super_editor_es = __esm(() => {
340976
- init_src_GAfNMk63_es();
340988
+ init_src_BaUVXQjX_es();
340977
340989
  init_SuperConverter_1Voea3gd_es();
340978
340990
  init_jszip_C49i9kUs_es();
340979
340991
  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.110",
3
+ "version": "0.8.0-next.111",
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/super-editor": "0.0.1",
28
29
  "@superdoc/pm-adapter": "0.0.0",
29
- "superdoc": "1.32.0",
30
- "@superdoc/super-editor": "0.0.1"
30
+ "superdoc": "1.32.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.110",
38
- "@superdoc-dev/cli-darwin-x64": "0.8.0-next.110",
39
- "@superdoc-dev/cli-linux-x64": "0.8.0-next.110",
40
- "@superdoc-dev/cli-windows-x64": "0.8.0-next.110",
41
- "@superdoc-dev/cli-linux-arm64": "0.8.0-next.110"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.8.0-next.111",
38
+ "@superdoc-dev/cli-darwin-x64": "0.8.0-next.111",
39
+ "@superdoc-dev/cli-linux-x64": "0.8.0-next.111",
40
+ "@superdoc-dev/cli-linux-arm64": "0.8.0-next.111",
41
+ "@superdoc-dev/cli-windows-x64": "0.8.0-next.111"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",