@superdoc-dev/cli 0.2.0-next.129 → 0.2.0-next.130

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 +11 -8
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -135072,7 +135072,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
135072
135072
  init_remark_gfm_z_sDF4ss_es();
135073
135073
  });
135074
135074
 
135075
- // ../../packages/superdoc/dist/chunks/src-mZ_XrF8p.es.js
135075
+ // ../../packages/superdoc/dist/chunks/src-BNoEv7Gv.es.js
135076
135076
  function deleteProps(obj, propOrProps) {
135077
135077
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
135078
135078
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -217807,7 +217807,7 @@ var Node$13 = class Node$14 {
217807
217807
  return false;
217808
217808
  return Boolean(checker(attrs));
217809
217809
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
217810
- var init_src_mZ_XrF8p_es = __esm(() => {
217810
+ var init_src_BNoEv7Gv_es = __esm(() => {
217811
217811
  init_rolldown_runtime_B2q5OVn9_es();
217812
217812
  init_SuperConverter_Cw5CEerM_es();
217813
217813
  init_jszip_ChlR43oI_es();
@@ -232763,15 +232763,18 @@ function print() { __p += __j.call(arguments, '') }
232763
232763
  const paddingTop = this.getMountPaddingTopPx();
232764
232764
  const zoom = this.zoomFactor;
232765
232765
  let scrollY;
232766
- if (this.mount.scrollHeight > this.mount.clientHeight + 1)
232766
+ const isContainerScrollable = this.mount.scrollHeight > this.mount.clientHeight + 1;
232767
+ const scrollCont = this.scrollContainer;
232768
+ const isScrollContainerActive = scrollCont != null && scrollCont.scrollHeight > scrollCont.clientHeight + 1;
232769
+ if (isContainerScrollable)
232767
232770
  scrollY = Math.max(0, this.mount.scrollTop - paddingTop);
232768
- else if (this.scrollContainer) {
232771
+ else if (isScrollContainerActive) {
232769
232772
  if (this.scrollContainerMountOffset == null) {
232770
232773
  const mountRect = this.mount.getBoundingClientRect();
232771
- const containerRect = this.scrollContainer.getBoundingClientRect();
232772
- this.scrollContainerMountOffset = mountRect.top - containerRect.top + this.scrollContainer.scrollTop;
232774
+ const containerRect = scrollCont.getBoundingClientRect();
232775
+ this.scrollContainerMountOffset = mountRect.top - containerRect.top + scrollCont.scrollTop;
232773
232776
  }
232774
- scrollY = Math.max(0, (this.scrollContainer.scrollTop - this.scrollContainerMountOffset) / zoom - paddingTop);
232777
+ scrollY = Math.max(0, (scrollCont.scrollTop - this.scrollContainerMountOffset) / zoom - paddingTop);
232775
232778
  } else {
232776
232779
  const rect = this.mount.getBoundingClientRect();
232777
232780
  scrollY = Math.max(0, -rect.top / zoom - paddingTop);
@@ -251415,7 +251418,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
251415
251418
 
251416
251419
  // ../../packages/superdoc/dist/super-editor.es.js
251417
251420
  var init_super_editor_es = __esm(() => {
251418
- init_src_mZ_XrF8p_es();
251421
+ init_src_BNoEv7Gv_es();
251419
251422
  init_SuperConverter_Cw5CEerM_es();
251420
251423
  init_jszip_ChlR43oI_es();
251421
251424
  init_xml_js_DLE8mr0n_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.2.0-next.129",
3
+ "version": "0.2.0-next.130",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -20,21 +20,21 @@
20
20
  "@types/bun": "^1.3.8",
21
21
  "@types/node": "22.19.2",
22
22
  "typescript": "^5.9.2",
23
- "@superdoc/document-api": "0.0.1",
24
23
  "@superdoc/pm-adapter": "0.0.0",
25
24
  "@superdoc/super-editor": "0.0.1",
26
- "superdoc": "1.18.0"
25
+ "superdoc": "1.18.0",
26
+ "@superdoc/document-api": "0.0.1"
27
27
  },
28
28
  "module": "src/index.ts",
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.2.0-next.129",
34
- "@superdoc-dev/cli-linux-x64": "0.2.0-next.129",
35
- "@superdoc-dev/cli-linux-arm64": "0.2.0-next.129",
36
- "@superdoc-dev/cli-darwin-x64": "0.2.0-next.129",
37
- "@superdoc-dev/cli-windows-x64": "0.2.0-next.129"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.2.0-next.130",
34
+ "@superdoc-dev/cli-darwin-x64": "0.2.0-next.130",
35
+ "@superdoc-dev/cli-linux-x64": "0.2.0-next.130",
36
+ "@superdoc-dev/cli-linux-arm64": "0.2.0-next.130",
37
+ "@superdoc-dev/cli-windows-x64": "0.2.0-next.130"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "bun run src/index.ts",