@superdoc-dev/cli 0.8.0-next.20 → 0.8.0-next.21
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 +30 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -206629,7 +206629,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
206629
206629
|
init_remark_gfm_BhnWr3yf_es();
|
|
206630
206630
|
});
|
|
206631
206631
|
|
|
206632
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
206632
|
+
// ../../packages/superdoc/dist/chunks/src-BNgFLixt.es.js
|
|
206633
206633
|
function deleteProps(obj, propOrProps) {
|
|
206634
206634
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
206635
206635
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -290871,6 +290871,16 @@ menclose::after {
|
|
|
290871
290871
|
#handlePointerDown(event) {
|
|
290872
290872
|
if (!this.#deps)
|
|
290873
290873
|
return;
|
|
290874
|
+
const bodyEditor = this.#deps.getEditor();
|
|
290875
|
+
bodyEditor.emit?.("pointerDown", {
|
|
290876
|
+
editor: bodyEditor,
|
|
290877
|
+
event
|
|
290878
|
+
});
|
|
290879
|
+
if (event.button === 2 || event.ctrlKey && navigator.platform.includes("Mac"))
|
|
290880
|
+
bodyEditor.emit?.("rightClick", {
|
|
290881
|
+
editor: bodyEditor,
|
|
290882
|
+
event
|
|
290883
|
+
});
|
|
290874
290884
|
if (event.button !== 0)
|
|
290875
290885
|
return;
|
|
290876
290886
|
if (event.ctrlKey && navigator.platform.includes("Mac"))
|
|
@@ -290891,7 +290901,6 @@ menclose::after {
|
|
|
290891
290901
|
this.#handleAnnotationClick(event, annotationEl);
|
|
290892
290902
|
return;
|
|
290893
290903
|
}
|
|
290894
|
-
const bodyEditor = this.#deps.getEditor();
|
|
290895
290904
|
const layoutState = this.#deps.getLayoutState();
|
|
290896
290905
|
const clickedNoteTarget = this.#resolveRenderedNoteTargetAtPointer(target, event.clientX, event.clientY);
|
|
290897
290906
|
const sessionMode = this.#deps.getHeaderFooterSession()?.session?.mode ?? "body";
|
|
@@ -291171,6 +291180,11 @@ menclose::after {
|
|
|
291171
291180
|
#handlePointerUp(event) {
|
|
291172
291181
|
if (!this.#deps)
|
|
291173
291182
|
return;
|
|
291183
|
+
const editor = this.#deps.getEditor();
|
|
291184
|
+
editor.emit?.("pointerUp", {
|
|
291185
|
+
editor,
|
|
291186
|
+
event
|
|
291187
|
+
});
|
|
291174
291188
|
this.#suppressFocusInFromDraggable = false;
|
|
291175
291189
|
if (!this.#isDragging) {
|
|
291176
291190
|
this.#stopAutoScroll();
|
|
@@ -294882,7 +294896,7 @@ menclose::after {
|
|
|
294882
294896
|
return;
|
|
294883
294897
|
console.log(...args$1);
|
|
294884
294898
|
}, 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;
|
|
294885
|
-
var
|
|
294899
|
+
var init_src_BNgFLixt_es = __esm(() => {
|
|
294886
294900
|
init_rolldown_runtime_Bg48TavK_es();
|
|
294887
294901
|
init_SuperConverter_2Pu0hMB1_es();
|
|
294888
294902
|
init_jszip_C49i9kUs_es();
|
|
@@ -318607,6 +318621,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
318607
318621
|
onCommentsLoaded: () => null,
|
|
318608
318622
|
onCommentClicked: () => null,
|
|
318609
318623
|
onCommentLocationsUpdate: () => null,
|
|
318624
|
+
onPointerDown: () => null,
|
|
318625
|
+
onPointerUp: () => null,
|
|
318626
|
+
onRightClick: () => null,
|
|
318610
318627
|
onDocumentLocked: () => null,
|
|
318611
318628
|
onFirstRender: () => null,
|
|
318612
318629
|
onCollaborationReady: () => null,
|
|
@@ -318757,6 +318774,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
318757
318774
|
this.on("list-definitions-change", this.options.onListDefinitionsChange);
|
|
318758
318775
|
this.on("fonts-resolved", this.options.onFontsResolved);
|
|
318759
318776
|
this.on("exception", this.options.onException);
|
|
318777
|
+
this.on("pointerDown", this.options.onPointerDown);
|
|
318778
|
+
this.on("pointerUp", this.options.onPointerUp);
|
|
318779
|
+
this.on("rightClick", this.options.onRightClick);
|
|
318760
318780
|
}
|
|
318761
318781
|
async#loadDocument(source, options) {
|
|
318762
318782
|
try {
|
|
@@ -318963,6 +318983,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
318963
318983
|
this.on("list-definitions-change", this.options.onListDefinitionsChange);
|
|
318964
318984
|
this.on("fonts-resolved", this.options.onFontsResolved);
|
|
318965
318985
|
this.on("exception", this.options.onException);
|
|
318986
|
+
this.on("pointerDown", this.options.onPointerDown);
|
|
318987
|
+
this.on("pointerUp", this.options.onPointerUp);
|
|
318988
|
+
this.on("rightClick", this.options.onRightClick);
|
|
318966
318989
|
if (!shouldMountRenderer)
|
|
318967
318990
|
this.#emitCreateAsync();
|
|
318968
318991
|
this.initializeCollaborationData();
|
|
@@ -319008,6 +319031,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
319008
319031
|
this.on("commentClick", this.options.onCommentClicked);
|
|
319009
319032
|
this.on("locked", this.options.onDocumentLocked);
|
|
319010
319033
|
this.on("list-definitions-change", this.options.onListDefinitionsChange);
|
|
319034
|
+
this.on("pointerDown", this.options.onPointerDown);
|
|
319035
|
+
this.on("pointerUp", this.options.onPointerUp);
|
|
319036
|
+
this.on("rightClick", this.options.onRightClick);
|
|
319011
319037
|
if (!shouldMountRenderer)
|
|
319012
319038
|
this.#emitCreateAsync();
|
|
319013
319039
|
}
|
|
@@ -331748,7 +331774,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
|
|
|
331748
331774
|
|
|
331749
331775
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
331750
331776
|
var init_super_editor_es = __esm(() => {
|
|
331751
|
-
|
|
331777
|
+
init_src_BNgFLixt_es();
|
|
331752
331778
|
init_SuperConverter_2Pu0hMB1_es();
|
|
331753
331779
|
init_jszip_C49i9kUs_es();
|
|
331754
331780
|
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.
|
|
3
|
+
"version": "0.8.0-next.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
+
"@superdoc/document-api": "0.0.1",
|
|
27
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"@superdoc/document-api": "0.0.1",
|
|
30
30
|
"superdoc": "1.29.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.
|
|
38
|
-
"@superdoc-dev/cli-linux-x64": "0.8.0-next.
|
|
39
|
-
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.
|
|
40
|
-
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.8.0-next.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.21",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.21",
|
|
39
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.21",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.21",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.21"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|