@superdoc-dev/cli 0.2.0-next.70 → 0.2.0-next.71
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 +29 -12
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -105834,9 +105834,9 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
|
|
|
105834
105834
|
init_remark_gfm_z_sDF4ss_es();
|
|
105835
105835
|
});
|
|
105836
105836
|
|
|
105837
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
105838
|
-
var
|
|
105839
|
-
__export(
|
|
105837
|
+
// ../../packages/superdoc/dist/chunks/src-Dq_frLdZ.es.js
|
|
105838
|
+
var exports_src_Dq_frLdZ_es = {};
|
|
105839
|
+
__export(exports_src_Dq_frLdZ_es, {
|
|
105840
105840
|
zt: () => defineMark,
|
|
105841
105841
|
z: () => cM,
|
|
105842
105842
|
yt: () => removeAwarenessStates,
|
|
@@ -166688,6 +166688,9 @@ var Node$13 = class Node$14 {
|
|
|
166688
166688
|
},
|
|
166689
166689
|
setZoom(zoom) {
|
|
166690
166690
|
painter.setZoom(zoom);
|
|
166691
|
+
},
|
|
166692
|
+
setScrollContainer(el) {
|
|
166693
|
+
painter.setScrollContainer(el);
|
|
166691
166694
|
}
|
|
166692
166695
|
};
|
|
166693
166696
|
}, DEFAULT_CONFIG, levelOrder, HUD_DATA_ATTR = "data-superdoc-selection-debug-hud", import_lodash, DomPositionIndex = class {
|
|
@@ -180519,7 +180522,7 @@ var Node$13 = class Node$14 {
|
|
|
180519
180522
|
trackedChanges: context.trackedChanges ?? []
|
|
180520
180523
|
});
|
|
180521
180524
|
}, _hoisted_1$6, _hoisted_2$2, _hoisted_3, _hoisted_4, ContextMenu_default, _hoisted_1$5, BasicUpload_default, _hoisted_1$4, MIN_WIDTH = 200, PPI = 96, alignment = "flex-end", Ruler_default, GenericPopover_default, _hoisted_1$3, _hoisted_2$1, RESIZE_HANDLE_WIDTH_PX = 9, RESIZE_HANDLE_HEIGHT_PX = 9, RESIZE_HANDLE_OFFSET_PX = 4, DRAG_OVERLAY_EXTENSION_PX = 1000, MIN_DRAG_OVERLAY_WIDTH_PX = 2000, THROTTLE_INTERVAL_MS = 16, MIN_RESIZE_DELTA_PX = 1, TableResizeOverlay_default, _hoisted_1$2, OVERLAY_EXPANSION_PX = 2000, RESIZE_HANDLE_SIZE_PX = 12, MOUSE_MOVE_THROTTLE_MS = 16, DIMENSION_CHANGE_THRESHOLD_PX = 1, Z_INDEX_OVERLAY = 10, Z_INDEX_HANDLE = 15, Z_INDEX_GUIDELINE = 20, ImageResizeOverlay_default, LINK_CLICK_DEBOUNCE_MS = 300, CURSOR_UPDATE_TIMEOUT_MS = 10, POPOVER_VERTICAL_OFFSET_PX = 15, LinkClickHandler_default, _hoisted_1$1, _hoisted_2, DOCX2 = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", TABLE_RESIZE_HOVER_THRESHOLD = 8, TABLE_RESIZE_THROTTLE_MS = 16, SuperEditor_default, _hoisted_1, SuperInput_default, SlashMenu, Extensions;
|
|
180522
|
-
var
|
|
180525
|
+
var init_src_Dq_frLdZ_es = __esm(() => {
|
|
180523
180526
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
180524
180527
|
init_SuperConverter_DLewdNXt_es();
|
|
180525
180528
|
init_jszip_ChlR43oI_es();
|
|
@@ -194652,6 +194655,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
194652
194655
|
this.onWindowScrollHandler = null;
|
|
194653
194656
|
this.onResizeHandler = null;
|
|
194654
194657
|
this.zoomFactor = 1;
|
|
194658
|
+
this.scrollContainer = null;
|
|
194655
194659
|
this.sdtHover = new SdtGroupedHover;
|
|
194656
194660
|
this.activeCommentId = null;
|
|
194657
194661
|
this.paintSnapshotBuilder = null;
|
|
@@ -194693,6 +194697,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
194693
194697
|
this.updateVirtualWindow();
|
|
194694
194698
|
}
|
|
194695
194699
|
}
|
|
194700
|
+
setScrollContainer(el) {
|
|
194701
|
+
if (el !== this.scrollContainer) {
|
|
194702
|
+
this.scrollContainer = el;
|
|
194703
|
+
if (this.virtualEnabled && this.mount)
|
|
194704
|
+
this.updateVirtualWindow();
|
|
194705
|
+
}
|
|
194706
|
+
}
|
|
194696
194707
|
setActiveComment(commentId) {
|
|
194697
194708
|
if (this.activeCommentId !== commentId) {
|
|
194698
194709
|
this.activeCommentId = commentId;
|
|
@@ -195054,7 +195065,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
195054
195065
|
let scrollY;
|
|
195055
195066
|
if (this.mount.scrollHeight > this.mount.clientHeight + 1)
|
|
195056
195067
|
scrollY = Math.max(0, this.mount.scrollTop - paddingTop);
|
|
195057
|
-
else {
|
|
195068
|
+
else if (this.scrollContainer) {
|
|
195069
|
+
const mountRect = this.mount.getBoundingClientRect();
|
|
195070
|
+
const containerRect = this.scrollContainer.getBoundingClientRect();
|
|
195071
|
+
scrollY = Math.max(0, (containerRect.top - mountRect.top) / zoom - paddingTop);
|
|
195072
|
+
} else {
|
|
195058
195073
|
const rect = this.mount.getBoundingClientRect();
|
|
195059
195074
|
scrollY = Math.max(0, -rect.top / zoom - paddingTop);
|
|
195060
195075
|
}
|
|
@@ -200710,6 +200725,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
200710
200725
|
const currentZoom = this.#layoutOptions.zoom ?? 1;
|
|
200711
200726
|
if (currentZoom !== 1)
|
|
200712
200727
|
this.#domPainter.setZoom(currentZoom);
|
|
200728
|
+
if (this.#scrollContainer && this.#scrollContainer instanceof HTMLElement)
|
|
200729
|
+
this.#domPainter.setScrollContainer?.(this.#scrollContainer);
|
|
200713
200730
|
}
|
|
200714
200731
|
return this.#domPainter;
|
|
200715
200732
|
}
|
|
@@ -211848,8 +211865,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211848
211865
|
return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
211849
211866
|
};
|
|
211850
211867
|
stubFalse_default = stubFalse;
|
|
211851
|
-
freeExports$2 = typeof
|
|
211852
|
-
freeModule$2 = freeExports$2 && typeof
|
|
211868
|
+
freeExports$2 = typeof exports_src_Dq_frLdZ_es == "object" && exports_src_Dq_frLdZ_es && !exports_src_Dq_frLdZ_es.nodeType && exports_src_Dq_frLdZ_es;
|
|
211869
|
+
freeModule$2 = freeExports$2 && typeof module_src_Dq_frLdZ_es == "object" && module_src_Dq_frLdZ_es && !module_src_Dq_frLdZ_es.nodeType && module_src_Dq_frLdZ_es;
|
|
211853
211870
|
Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? _root_default.Buffer : undefined;
|
|
211854
211871
|
isBuffer_default = (Buffer$1 ? Buffer$1.isBuffer : undefined) || stubFalse_default;
|
|
211855
211872
|
typedArrayTags = {};
|
|
@@ -211857,8 +211874,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211857
211874
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
|
|
211858
211875
|
_baseIsTypedArray_default = baseIsTypedArray;
|
|
211859
211876
|
_baseUnary_default = baseUnary;
|
|
211860
|
-
freeExports$1 = typeof
|
|
211861
|
-
freeModule$1 = freeExports$1 && typeof
|
|
211877
|
+
freeExports$1 = typeof exports_src_Dq_frLdZ_es == "object" && exports_src_Dq_frLdZ_es && !exports_src_Dq_frLdZ_es.nodeType && exports_src_Dq_frLdZ_es;
|
|
211878
|
+
freeModule$1 = freeExports$1 && typeof module_src_Dq_frLdZ_es == "object" && module_src_Dq_frLdZ_es && !module_src_Dq_frLdZ_es.nodeType && module_src_Dq_frLdZ_es;
|
|
211862
211879
|
freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && _freeGlobal_default.process;
|
|
211863
211880
|
_nodeUtil_default = function() {
|
|
211864
211881
|
try {
|
|
@@ -211963,8 +211980,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211963
211980
|
Stack.prototype.has = _stackHas_default;
|
|
211964
211981
|
Stack.prototype.set = _stackSet_default;
|
|
211965
211982
|
_Stack_default = Stack;
|
|
211966
|
-
freeExports = typeof
|
|
211967
|
-
freeModule = freeExports && typeof
|
|
211983
|
+
freeExports = typeof exports_src_Dq_frLdZ_es == "object" && exports_src_Dq_frLdZ_es && !exports_src_Dq_frLdZ_es.nodeType && exports_src_Dq_frLdZ_es;
|
|
211984
|
+
freeModule = freeExports && typeof module_src_Dq_frLdZ_es == "object" && module_src_Dq_frLdZ_es && !module_src_Dq_frLdZ_es.nodeType && module_src_Dq_frLdZ_es;
|
|
211968
211985
|
Buffer4 = freeModule && freeModule.exports === freeExports ? _root_default.Buffer : undefined;
|
|
211969
211986
|
allocUnsafe = Buffer4 ? Buffer4.allocUnsafe : undefined;
|
|
211970
211987
|
_cloneBuffer_default = cloneBuffer;
|
|
@@ -220044,7 +220061,7 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
|
|
|
220044
220061
|
|
|
220045
220062
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
220046
220063
|
var init_super_editor_es = __esm(() => {
|
|
220047
|
-
|
|
220064
|
+
init_src_Dq_frLdZ_es();
|
|
220048
220065
|
init_SuperConverter_DLewdNXt_es();
|
|
220049
220066
|
init_jszip_ChlR43oI_es();
|
|
220050
220067
|
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.
|
|
3
|
+
"version": "0.2.0-next.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"@superdoc/
|
|
23
|
+
"@superdoc/super-editor": "0.0.1",
|
|
24
24
|
"superdoc": "1.17.0",
|
|
25
|
-
"@superdoc/
|
|
25
|
+
"@superdoc/pm-adapter": "0.0.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "src/index.ts",
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.
|
|
33
|
-
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.
|
|
34
|
-
"@superdoc-dev/cli-linux-x64": "0.2.0-next.
|
|
35
|
-
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.
|
|
36
|
-
"@superdoc-dev/cli-windows-x64": "0.2.0-next.
|
|
32
|
+
"@superdoc-dev/cli-darwin-arm64": "0.2.0-next.71",
|
|
33
|
+
"@superdoc-dev/cli-darwin-x64": "0.2.0-next.71",
|
|
34
|
+
"@superdoc-dev/cli-linux-x64": "0.2.0-next.71",
|
|
35
|
+
"@superdoc-dev/cli-linux-arm64": "0.2.0-next.71",
|
|
36
|
+
"@superdoc-dev/cli-windows-x64": "0.2.0-next.71"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"dev": "bun run src/index.ts",
|