@superdoc-dev/mcp 0.7.0-next.4 → 0.7.0-next.6
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 +27 -15
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -144047,7 +144047,7 @@ var init_SuperConverter_UqLu6KQU_es = __esm(() => {
|
|
|
144047
144047
|
};
|
|
144048
144048
|
});
|
|
144049
144049
|
|
|
144050
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
144050
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-QcQvy-nD.es.js
|
|
144051
144051
|
function parseSizeUnit(val = "0") {
|
|
144052
144052
|
const length = val.toString() || "0";
|
|
144053
144053
|
const value = Number.parseFloat(length);
|
|
@@ -152954,6 +152954,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
152954
152954
|
const documentId = activeEditor?.options?.documentId;
|
|
152955
152955
|
if (!documentId)
|
|
152956
152956
|
return null;
|
|
152957
|
+
if (typeof superdoc.getPresentationEditorForDocument === "function")
|
|
152958
|
+
return superdoc.getPresentationEditorForDocument(documentId);
|
|
152957
152959
|
return (superdoc.superdocStore?.documents ?? []).find((doc3) => doc3.getEditor?.()?.options?.documentId === documentId)?.getPresentationEditor?.() ?? null;
|
|
152958
152960
|
}, resolveToolbarSources = (superdoc) => {
|
|
152959
152961
|
const presentationEditor = resolvePresentationEditor(superdoc);
|
|
@@ -153700,17 +153702,21 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
153700
153702
|
active: false,
|
|
153701
153703
|
disabled: isCommandDisabled(context) || !inTable
|
|
153702
153704
|
};
|
|
153705
|
+
}, lookupCommentByCommentId = (superdoc, commentId) => {
|
|
153706
|
+
if (typeof superdoc?.getComment === "function")
|
|
153707
|
+
return superdoc.getComment(commentId) ?? null;
|
|
153708
|
+
const store = superdoc?.commentsStore;
|
|
153709
|
+
if (typeof store?.getComment === "function")
|
|
153710
|
+
return store.getComment(commentId) ?? null;
|
|
153711
|
+
return null;
|
|
153703
153712
|
}, enrichTrackedChanges = (trackedChanges = [], superdoc) => {
|
|
153704
153713
|
if (!trackedChanges.length)
|
|
153705
153714
|
return trackedChanges;
|
|
153706
|
-
const store = superdoc?.commentsStore;
|
|
153707
|
-
if (!store?.getComment)
|
|
153708
|
-
return trackedChanges;
|
|
153709
153715
|
return trackedChanges.map((change) => {
|
|
153710
153716
|
const commentId = change.id;
|
|
153711
153717
|
if (!commentId)
|
|
153712
153718
|
return change;
|
|
153713
|
-
const storeComment =
|
|
153719
|
+
const storeComment = lookupCommentByCommentId(superdoc, commentId);
|
|
153714
153720
|
if (!storeComment)
|
|
153715
153721
|
return change;
|
|
153716
153722
|
const comment = typeof storeComment.getValues === "function" ? storeComment.getValues() : storeComment;
|
|
@@ -154058,7 +154064,7 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, Extension = class Extension2 {
|
|
|
154058
154064
|
}
|
|
154059
154065
|
};
|
|
154060
154066
|
};
|
|
154061
|
-
var
|
|
154067
|
+
var init_create_headless_toolbar_QcQvy_nD_es = __esm(() => {
|
|
154062
154068
|
init_SuperConverter_UqLu6KQU_es();
|
|
154063
154069
|
init_uuid_qzgm05fK_es();
|
|
154064
154070
|
init_constants_DrU4EASo_es();
|
|
@@ -208785,7 +208791,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208785
208791
|
init_remark_gfm_BhnWr3yf_es();
|
|
208786
208792
|
});
|
|
208787
208793
|
|
|
208788
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208794
|
+
// ../../packages/superdoc/dist/chunks/src-DXlYP0an.es.js
|
|
208789
208795
|
function deleteProps(obj, propOrProps) {
|
|
208790
208796
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208791
208797
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -297174,13 +297180,13 @@ menclose::after {
|
|
|
297174
297180
|
return;
|
|
297175
297181
|
console.log(...args$1);
|
|
297176
297182
|
}, 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;
|
|
297177
|
-
var
|
|
297183
|
+
var init_src_DXlYP0an_es = __esm(() => {
|
|
297178
297184
|
init_rolldown_runtime_Bg48TavK_es();
|
|
297179
297185
|
init_SuperConverter_UqLu6KQU_es();
|
|
297180
297186
|
init_jszip_C49i9kUs_es();
|
|
297181
297187
|
init_xml_js_CqGKpaft_es();
|
|
297182
297188
|
init_uuid_qzgm05fK_es();
|
|
297183
|
-
|
|
297189
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
297184
297190
|
init_constants_DrU4EASo_es();
|
|
297185
297191
|
init_dist_B8HfvhaK_es();
|
|
297186
297192
|
init_unified_Dsuw2be5_es();
|
|
@@ -319063,6 +319069,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
319063
319069
|
customButtons: [],
|
|
319064
319070
|
showFormattingMarksButton: false
|
|
319065
319071
|
};
|
|
319072
|
+
toolbarItems = [];
|
|
319073
|
+
overflowItems = [];
|
|
319074
|
+
isDev = false;
|
|
319075
|
+
role = "editor";
|
|
319076
|
+
superdoc;
|
|
319077
|
+
toolbarContainer = null;
|
|
319066
319078
|
constructor(config3) {
|
|
319067
319079
|
super();
|
|
319068
319080
|
this.config = {
|
|
@@ -334896,11 +334908,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334896
334908
|
];
|
|
334897
334909
|
});
|
|
334898
334910
|
|
|
334899
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
334911
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-BuJIur0F.es.js
|
|
334900
334912
|
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;
|
|
334901
|
-
var
|
|
334913
|
+
var init_create_super_doc_ui_BuJIur0F_es = __esm(() => {
|
|
334902
334914
|
init_SuperConverter_UqLu6KQU_es();
|
|
334903
|
-
|
|
334915
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
334904
334916
|
MOD_ALIASES = new Set([
|
|
334905
334917
|
"Mod",
|
|
334906
334918
|
"Meta",
|
|
@@ -334942,16 +334954,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
334942
334954
|
|
|
334943
334955
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
334944
334956
|
var init_super_editor_es = __esm(() => {
|
|
334945
|
-
|
|
334957
|
+
init_src_DXlYP0an_es();
|
|
334946
334958
|
init_SuperConverter_UqLu6KQU_es();
|
|
334947
334959
|
init_jszip_C49i9kUs_es();
|
|
334948
334960
|
init_xml_js_CqGKpaft_es();
|
|
334949
|
-
|
|
334961
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
334950
334962
|
init_constants_DrU4EASo_es();
|
|
334951
334963
|
init_dist_B8HfvhaK_es();
|
|
334952
334964
|
init_unified_Dsuw2be5_es();
|
|
334953
334965
|
init_DocxZipper_CZMPWpOp_es();
|
|
334954
|
-
|
|
334966
|
+
init_create_super_doc_ui_BuJIur0F_es();
|
|
334955
334967
|
init_ui_C5PAS9hY_es();
|
|
334956
334968
|
init_eventemitter3_BnGqBE_Q_es();
|
|
334957
334969
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.7.0-next.
|
|
3
|
+
"version": "0.7.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"
|
|
24
|
-
"superdoc": "
|
|
23
|
+
"superdoc": "1.34.0",
|
|
24
|
+
"@superdoc/super-editor": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|