@superdoc-dev/mcp 0.7.0-next.4 → 0.7.0-next.5
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 +21 -15
- package/package.json +1 -1
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-BJQRcFsD.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_BJQRcFsD_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();
|
|
@@ -334896,11 +334902,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
334896
334902
|
];
|
|
334897
334903
|
});
|
|
334898
334904
|
|
|
334899
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
334905
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-FWAQonYc.es.js
|
|
334900
334906
|
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
|
|
334907
|
+
var init_create_super_doc_ui_FWAQonYc_es = __esm(() => {
|
|
334902
334908
|
init_SuperConverter_UqLu6KQU_es();
|
|
334903
|
-
|
|
334909
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
334904
334910
|
MOD_ALIASES = new Set([
|
|
334905
334911
|
"Mod",
|
|
334906
334912
|
"Meta",
|
|
@@ -334942,16 +334948,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
334942
334948
|
|
|
334943
334949
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
334944
334950
|
var init_super_editor_es = __esm(() => {
|
|
334945
|
-
|
|
334951
|
+
init_src_BJQRcFsD_es();
|
|
334946
334952
|
init_SuperConverter_UqLu6KQU_es();
|
|
334947
334953
|
init_jszip_C49i9kUs_es();
|
|
334948
334954
|
init_xml_js_CqGKpaft_es();
|
|
334949
|
-
|
|
334955
|
+
init_create_headless_toolbar_QcQvy_nD_es();
|
|
334950
334956
|
init_constants_DrU4EASo_es();
|
|
334951
334957
|
init_dist_B8HfvhaK_es();
|
|
334952
334958
|
init_unified_Dsuw2be5_es();
|
|
334953
334959
|
init_DocxZipper_CZMPWpOp_es();
|
|
334954
|
-
|
|
334960
|
+
init_create_super_doc_ui_FWAQonYc_es();
|
|
334955
334961
|
init_ui_C5PAS9hY_es();
|
|
334956
334962
|
init_eventemitter3_BnGqBE_Q_es();
|
|
334957
334963
|
init_errors_CNaD6vcg_es();
|