@superdoc-dev/cli 0.3.0-next.7 → 0.3.0-next.8
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.
- package/dist/index.js +35 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -131315,7 +131315,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
131315
131315
|
init_remark_gfm_z_sDF4ss_es();
|
|
131316
131316
|
});
|
|
131317
131317
|
|
|
131318
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
131318
|
+
// ../../packages/superdoc/dist/chunks/src-CN3DqjnS.es.js
|
|
131319
131319
|
function deleteProps(obj, propOrProps) {
|
|
131320
131320
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
131321
131321
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -217838,7 +217838,7 @@ var Node$13 = class Node$14 {
|
|
|
217838
217838
|
return false;
|
|
217839
217839
|
return Boolean(checker(attrs));
|
|
217840
217840
|
}, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
|
|
217841
|
-
var
|
|
217841
|
+
var init_src_CN3DqjnS_es = __esm(() => {
|
|
217842
217842
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
217843
217843
|
init_SuperConverter_C2Sw7Q5Z_es();
|
|
217844
217844
|
init_jszip_ChlR43oI_es();
|
|
@@ -236924,6 +236924,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
236924
236924
|
#editorListeners = [];
|
|
236925
236925
|
#scrollHandler = null;
|
|
236926
236926
|
#scrollContainer = null;
|
|
236927
|
+
#scrollContainerValidated = false;
|
|
236927
236928
|
#sectionMetadata = [];
|
|
236928
236929
|
#documentMode = "editing";
|
|
236929
236930
|
#inputBridge = null;
|
|
@@ -238480,6 +238481,36 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238480
238481
|
}
|
|
238481
238482
|
return win;
|
|
238482
238483
|
}
|
|
238484
|
+
#revalidateScrollContainer() {
|
|
238485
|
+
if (this.#scrollContainerValidated)
|
|
238486
|
+
return;
|
|
238487
|
+
this.#scrollContainerValidated = true;
|
|
238488
|
+
if (!(this.#scrollContainer instanceof Element))
|
|
238489
|
+
return;
|
|
238490
|
+
if (this.#scrollContainer.scrollHeight > this.#scrollContainer.clientHeight + 1)
|
|
238491
|
+
return;
|
|
238492
|
+
const win = this.#scrollContainer.ownerDocument?.defaultView;
|
|
238493
|
+
const viewportHeight = win?.innerHeight ?? 0;
|
|
238494
|
+
if (this.#scrollContainer.clientHeight <= viewportHeight)
|
|
238495
|
+
return;
|
|
238496
|
+
let el = this.#scrollContainer.parentElement;
|
|
238497
|
+
let next2 = win ?? null;
|
|
238498
|
+
while (el) {
|
|
238499
|
+
const { overflowY } = getComputedStyle(el);
|
|
238500
|
+
if ((overflowY === "auto" || overflowY === "scroll") && el.scrollHeight > el.clientHeight + 1) {
|
|
238501
|
+
next2 = el;
|
|
238502
|
+
break;
|
|
238503
|
+
}
|
|
238504
|
+
el = el.parentElement;
|
|
238505
|
+
}
|
|
238506
|
+
if (!next2 || next2 === this.#scrollContainer)
|
|
238507
|
+
return;
|
|
238508
|
+
this.#scrollContainer.removeEventListener("scroll", this.#scrollHandler);
|
|
238509
|
+
this.#scrollContainer = next2;
|
|
238510
|
+
if (next2 instanceof Element)
|
|
238511
|
+
next2.addEventListener("scroll", this.#scrollHandler, { passive: true });
|
|
238512
|
+
this.#domPainter?.setScrollContainer?.(next2 instanceof HTMLElement ? next2 : null);
|
|
238513
|
+
}
|
|
238483
238514
|
#setupDragHandlers() {
|
|
238484
238515
|
this.#dragDropManager?.destroy();
|
|
238485
238516
|
this.#dragDropManager = new DragDropManager;
|
|
@@ -238996,6 +239027,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
238996
239027
|
this.#epochMapper.onLayoutComplete(layoutEpoch);
|
|
238997
239028
|
this.#selectionSync.onLayoutComplete(layoutEpoch);
|
|
238998
239029
|
layoutCompleted = true;
|
|
239030
|
+
this.#revalidateScrollContainer();
|
|
238999
239031
|
this.#updatePermissionOverlay();
|
|
239000
239032
|
this.#layoutError = null;
|
|
239001
239033
|
this.#layoutErrorState = "healthy";
|
|
@@ -251976,7 +252008,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
251976
252008
|
|
|
251977
252009
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
251978
252010
|
var init_super_editor_es = __esm(() => {
|
|
251979
|
-
|
|
252011
|
+
init_src_CN3DqjnS_es();
|
|
251980
252012
|
init_SuperConverter_C2Sw7Q5Z_es();
|
|
251981
252013
|
init_jszip_ChlR43oI_es();
|
|
251982
252014
|
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.
|
|
3
|
+
"version": "0.3.0-next.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,8 +20,8 @@
|
|
|
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",
|
|
24
|
+
"@superdoc/document-api": "0.0.1",
|
|
25
25
|
"@superdoc/super-editor": "0.0.1",
|
|
26
26
|
"superdoc": "1.19.0"
|
|
27
27
|
},
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@superdoc-dev/cli-darwin-arm64": "0.3.0-next.
|
|
34
|
-
"@superdoc-dev/cli-darwin-x64": "0.3.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-x64": "0.3.0-next.
|
|
36
|
-
"@superdoc-dev/cli-
|
|
37
|
-
"@superdoc-dev/cli-
|
|
33
|
+
"@superdoc-dev/cli-darwin-arm64": "0.3.0-next.8",
|
|
34
|
+
"@superdoc-dev/cli-darwin-x64": "0.3.0-next.8",
|
|
35
|
+
"@superdoc-dev/cli-linux-x64": "0.3.0-next.8",
|
|
36
|
+
"@superdoc-dev/cli-windows-x64": "0.3.0-next.8",
|
|
37
|
+
"@superdoc-dev/cli-linux-arm64": "0.3.0-next.8"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"dev": "bun run src/index.ts",
|