@superdoc-dev/mcp 0.10.0-next.7 → 0.10.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 +43 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -211378,7 +211378,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
211378
211378
|
init_remark_gfm_BhnWr3yf_es();
|
|
211379
211379
|
});
|
|
211380
211380
|
|
|
211381
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
211381
|
+
// ../../packages/superdoc/dist/chunks/src-DQ_lu_9z.es.js
|
|
211382
211382
|
function deleteProps(obj, propOrProps) {
|
|
211383
211383
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
211384
211384
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -308429,7 +308429,7 @@ menclose::after {
|
|
|
308429
308429
|
return;
|
|
308430
308430
|
console.log(...args$1);
|
|
308431
308431
|
}, 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, TRACKED_MARK_NAMES;
|
|
308432
|
-
var
|
|
308432
|
+
var init_src_DQ_lu_9z_es = __esm(() => {
|
|
308433
308433
|
init_rolldown_runtime_Bg48TavK_es();
|
|
308434
308434
|
init_SuperConverter_C6hKp29w_es();
|
|
308435
308435
|
init_jszip_C49i9kUs_es();
|
|
@@ -338417,6 +338417,43 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338417
338417
|
}
|
|
338418
338418
|
return this.scrollToPosition(pos, options);
|
|
338419
338419
|
}
|
|
338420
|
+
async scrollContentControlIntoView(entityId, options = {}) {
|
|
338421
|
+
const editor = this.#editor;
|
|
338422
|
+
if (!editor || typeof entityId !== "string" || entityId.length === 0)
|
|
338423
|
+
return false;
|
|
338424
|
+
let found2 = null;
|
|
338425
|
+
editor.state.doc.descendants((node2, pos) => {
|
|
338426
|
+
if (found2)
|
|
338427
|
+
return false;
|
|
338428
|
+
const name = node2.type?.name;
|
|
338429
|
+
if ((name === "structuredContent" || name === "structuredContentBlock") && String(node2.attrs?.id) === entityId) {
|
|
338430
|
+
found2 = {
|
|
338431
|
+
pos,
|
|
338432
|
+
node: node2
|
|
338433
|
+
};
|
|
338434
|
+
return false;
|
|
338435
|
+
}
|
|
338436
|
+
return true;
|
|
338437
|
+
});
|
|
338438
|
+
if (!found2)
|
|
338439
|
+
return false;
|
|
338440
|
+
let contentPos = found2.pos + 1;
|
|
338441
|
+
let textFound = false;
|
|
338442
|
+
found2.node?.descendants((child, rel) => {
|
|
338443
|
+
if (textFound)
|
|
338444
|
+
return false;
|
|
338445
|
+
if (child.isText) {
|
|
338446
|
+
contentPos = found2.pos + 1 + rel;
|
|
338447
|
+
textFound = true;
|
|
338448
|
+
return false;
|
|
338449
|
+
}
|
|
338450
|
+
return true;
|
|
338451
|
+
});
|
|
338452
|
+
return this.scrollToPositionAsync(contentPos, {
|
|
338453
|
+
behavior: options.behavior ?? "smooth",
|
|
338454
|
+
block: options.block ?? "center"
|
|
338455
|
+
});
|
|
338456
|
+
}
|
|
338420
338457
|
async scrollToPage(pageNumber, scrollBehavior = "smooth") {
|
|
338421
338458
|
const layout = this.#layoutState.layout;
|
|
338422
338459
|
if (!layout)
|
|
@@ -342731,9 +342768,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342731
342768
|
]);
|
|
342732
342769
|
});
|
|
342733
342770
|
|
|
342734
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
342771
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-6F7aRTzy.es.js
|
|
342735
342772
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
342736
|
-
var
|
|
342773
|
+
var init_create_super_doc_ui_6F7aRTzy_es = __esm(() => {
|
|
342737
342774
|
init_SuperConverter_C6hKp29w_es();
|
|
342738
342775
|
init_create_headless_toolbar_ISx0N5AS_es();
|
|
342739
342776
|
MOD_ALIASES = new Set([
|
|
@@ -342777,7 +342814,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
342777
342814
|
|
|
342778
342815
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342779
342816
|
var init_super_editor_es = __esm(() => {
|
|
342780
|
-
|
|
342817
|
+
init_src_DQ_lu_9z_es();
|
|
342781
342818
|
init_SuperConverter_C6hKp29w_es();
|
|
342782
342819
|
init_jszip_C49i9kUs_es();
|
|
342783
342820
|
init_xml_js_CqGKpaft_es();
|
|
@@ -342786,7 +342823,7 @@ var init_super_editor_es = __esm(() => {
|
|
|
342786
342823
|
init_dist_B8HfvhaK_es();
|
|
342787
342824
|
init_unified_Dsuw2be5_es();
|
|
342788
342825
|
init_DocxZipper_nv_KfOqb_es();
|
|
342789
|
-
|
|
342826
|
+
init_create_super_doc_ui_6F7aRTzy_es();
|
|
342790
342827
|
init_ui_C5PAS9hY_es();
|
|
342791
342828
|
init_eventemitter3_BnGqBE_Q_es();
|
|
342792
342829
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.10.0-next.
|
|
3
|
+
"version": "0.10.0-next.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@superdoc/document-api": "0.0.1",
|
|
23
22
|
"@superdoc/super-editor": "0.0.1",
|
|
23
|
+
"@superdoc/document-api": "0.0.1",
|
|
24
24
|
"superdoc": "1.37.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|