@superdoc-dev/mcp 0.3.0-next.2 → 0.3.0-next.3
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 +1 -1
package/dist/index.js
CHANGED
|
@@ -350464,7 +350464,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
350464
350464
|
init_remark_gfm_BhnWr3yf_es();
|
|
350465
350465
|
});
|
|
350466
350466
|
|
|
350467
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
350467
|
+
// ../../packages/superdoc/dist/chunks/src-BNgFLixt.es.js
|
|
350468
350468
|
function deleteProps(obj, propOrProps) {
|
|
350469
350469
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
350470
350470
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -434706,6 +434706,16 @@ menclose::after {
|
|
|
434706
434706
|
#handlePointerDown(event) {
|
|
434707
434707
|
if (!this.#deps)
|
|
434708
434708
|
return;
|
|
434709
|
+
const bodyEditor = this.#deps.getEditor();
|
|
434710
|
+
bodyEditor.emit?.("pointerDown", {
|
|
434711
|
+
editor: bodyEditor,
|
|
434712
|
+
event
|
|
434713
|
+
});
|
|
434714
|
+
if (event.button === 2 || event.ctrlKey && navigator.platform.includes("Mac"))
|
|
434715
|
+
bodyEditor.emit?.("rightClick", {
|
|
434716
|
+
editor: bodyEditor,
|
|
434717
|
+
event
|
|
434718
|
+
});
|
|
434709
434719
|
if (event.button !== 0)
|
|
434710
434720
|
return;
|
|
434711
434721
|
if (event.ctrlKey && navigator.platform.includes("Mac"))
|
|
@@ -434726,7 +434736,6 @@ menclose::after {
|
|
|
434726
434736
|
this.#handleAnnotationClick(event, annotationEl);
|
|
434727
434737
|
return;
|
|
434728
434738
|
}
|
|
434729
|
-
const bodyEditor = this.#deps.getEditor();
|
|
434730
434739
|
const layoutState = this.#deps.getLayoutState();
|
|
434731
434740
|
const clickedNoteTarget = this.#resolveRenderedNoteTargetAtPointer(target, event.clientX, event.clientY);
|
|
434732
434741
|
const sessionMode = this.#deps.getHeaderFooterSession()?.session?.mode ?? "body";
|
|
@@ -435006,6 +435015,11 @@ menclose::after {
|
|
|
435006
435015
|
#handlePointerUp(event) {
|
|
435007
435016
|
if (!this.#deps)
|
|
435008
435017
|
return;
|
|
435018
|
+
const editor = this.#deps.getEditor();
|
|
435019
|
+
editor.emit?.("pointerUp", {
|
|
435020
|
+
editor,
|
|
435021
|
+
event
|
|
435022
|
+
});
|
|
435009
435023
|
this.#suppressFocusInFromDraggable = false;
|
|
435010
435024
|
if (!this.#isDragging) {
|
|
435011
435025
|
this.#stopAutoScroll();
|
|
@@ -438717,7 +438731,7 @@ menclose::after {
|
|
|
438717
438731
|
return;
|
|
438718
438732
|
console.log(...args$1);
|
|
438719
438733
|
}, 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;
|
|
438720
|
-
var
|
|
438734
|
+
var init_src_BNgFLixt_es = __esm(() => {
|
|
438721
438735
|
init_rolldown_runtime_Bg48TavK_es();
|
|
438722
438736
|
init_SuperConverter_2Pu0hMB1_es();
|
|
438723
438737
|
init_jszip_C49i9kUs_es();
|
|
@@ -462442,6 +462456,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
462442
462456
|
onCommentsLoaded: () => null,
|
|
462443
462457
|
onCommentClicked: () => null,
|
|
462444
462458
|
onCommentLocationsUpdate: () => null,
|
|
462459
|
+
onPointerDown: () => null,
|
|
462460
|
+
onPointerUp: () => null,
|
|
462461
|
+
onRightClick: () => null,
|
|
462445
462462
|
onDocumentLocked: () => null,
|
|
462446
462463
|
onFirstRender: () => null,
|
|
462447
462464
|
onCollaborationReady: () => null,
|
|
@@ -462592,6 +462609,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
462592
462609
|
this.on("list-definitions-change", this.options.onListDefinitionsChange);
|
|
462593
462610
|
this.on("fonts-resolved", this.options.onFontsResolved);
|
|
462594
462611
|
this.on("exception", this.options.onException);
|
|
462612
|
+
this.on("pointerDown", this.options.onPointerDown);
|
|
462613
|
+
this.on("pointerUp", this.options.onPointerUp);
|
|
462614
|
+
this.on("rightClick", this.options.onRightClick);
|
|
462595
462615
|
}
|
|
462596
462616
|
async#loadDocument(source, options) {
|
|
462597
462617
|
try {
|
|
@@ -462798,6 +462818,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
462798
462818
|
this.on("list-definitions-change", this.options.onListDefinitionsChange);
|
|
462799
462819
|
this.on("fonts-resolved", this.options.onFontsResolved);
|
|
462800
462820
|
this.on("exception", this.options.onException);
|
|
462821
|
+
this.on("pointerDown", this.options.onPointerDown);
|
|
462822
|
+
this.on("pointerUp", this.options.onPointerUp);
|
|
462823
|
+
this.on("rightClick", this.options.onRightClick);
|
|
462801
462824
|
if (!shouldMountRenderer)
|
|
462802
462825
|
this.#emitCreateAsync();
|
|
462803
462826
|
this.initializeCollaborationData();
|
|
@@ -462843,6 +462866,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
462843
462866
|
this.on("commentClick", this.options.onCommentClicked);
|
|
462844
462867
|
this.on("locked", this.options.onDocumentLocked);
|
|
462845
462868
|
this.on("list-definitions-change", this.options.onListDefinitionsChange);
|
|
462869
|
+
this.on("pointerDown", this.options.onPointerDown);
|
|
462870
|
+
this.on("pointerUp", this.options.onPointerUp);
|
|
462871
|
+
this.on("rightClick", this.options.onRightClick);
|
|
462846
462872
|
if (!shouldMountRenderer)
|
|
462847
462873
|
this.#emitCreateAsync();
|
|
462848
462874
|
}
|
|
@@ -475583,7 +475609,7 @@ var init_zipper_DbkgrypV_es = __esm(() => {
|
|
|
475583
475609
|
|
|
475584
475610
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
475585
475611
|
var init_super_editor_es = __esm(() => {
|
|
475586
|
-
|
|
475612
|
+
init_src_BNgFLixt_es();
|
|
475587
475613
|
init_SuperConverter_2Pu0hMB1_es();
|
|
475588
475614
|
init_jszip_C49i9kUs_es();
|
|
475589
475615
|
init_xml_js_CqGKpaft_es();
|