@superdoc-dev/mcp 0.10.0-next.12 → 0.10.0-next.14
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 +69 -65
- package/package.json +3 -3
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-Bm0BRA0C.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) => {
|
|
@@ -271966,7 +271966,7 @@ var Node$13 = class Node$14 {
|
|
|
271966
271966
|
}, isToolbarInput = (target) => {
|
|
271967
271967
|
return !!target?.closest(".button-text-input") || target?.classList?.contains("button-text-input");
|
|
271968
271968
|
}, isToolbarButton = (target) => {
|
|
271969
|
-
return !!target?.closest(".toolbar-button") || target?.classList?.contains("toolbar-button");
|
|
271969
|
+
return !!target?.closest(".sd-toolbar-button") || !!target?.closest(".toolbar-button") || target?.classList?.contains("sd-toolbar-button") || target?.classList?.contains("toolbar-button");
|
|
271970
271970
|
}, CustomSelection, History, createUndoPlugin = () => {
|
|
271971
271971
|
return yUndoPlugin();
|
|
271972
271972
|
}, Color, FontFamily, FontSize, LetterSpacing, TextAlign, toggleMarkCascade = (markName, options = {}) => ({ state, chain, editor }) => {
|
|
@@ -285366,7 +285366,7 @@ var Node$13 = class Node$14 {
|
|
|
285366
285366
|
disabled: role !== "editor",
|
|
285367
285367
|
attributes: {
|
|
285368
285368
|
dropdownPosition: "right",
|
|
285369
|
-
className: "toolbar-item--doc-mode",
|
|
285369
|
+
className: "sd-toolbar-item--doc-mode",
|
|
285370
285370
|
ariaLabel: "Document mode"
|
|
285371
285371
|
},
|
|
285372
285372
|
options: [{
|
|
@@ -285454,7 +285454,7 @@ var Node$13 = class Node$14 {
|
|
|
285454
285454
|
suppressActiveHighlight: true,
|
|
285455
285455
|
disabled: false,
|
|
285456
285456
|
attributes: {
|
|
285457
|
-
className: "toolbar-item--linked-styles",
|
|
285457
|
+
className: "sd-toolbar-item--linked-styles",
|
|
285458
285458
|
ariaLabel: "Linked styles"
|
|
285459
285459
|
},
|
|
285460
285460
|
options: [{
|
|
@@ -285551,12 +285551,12 @@ var Node$13 = class Node$14 {
|
|
|
285551
285551
|
if (shouldUseLgCompactStyles)
|
|
285552
285552
|
documentMode.attributes.value = {
|
|
285553
285553
|
...documentMode.attributes.value,
|
|
285554
|
-
className: `${documentMode.attributes.value.className} toolbar-item--doc-mode-compact`
|
|
285554
|
+
className: `${documentMode.attributes.value.className} sd-toolbar-item--doc-mode-compact`
|
|
285555
285555
|
};
|
|
285556
285556
|
if (shouldUseLgCompactStyles)
|
|
285557
285557
|
linkedStyles.attributes.value = {
|
|
285558
285558
|
...linkedStyles.attributes.value,
|
|
285559
|
-
className: `${linkedStyles.attributes.value.className} toolbar-item--linked-styles-compact`
|
|
285559
|
+
className: `${linkedStyles.attributes.value.className} sd-toolbar-item--linked-styles-compact`
|
|
285560
285560
|
};
|
|
285561
285561
|
let toolbarItems = [
|
|
285562
285562
|
undo$2,
|
|
@@ -308415,7 +308415,7 @@ menclose::after {
|
|
|
308415
308415
|
return;
|
|
308416
308416
|
console.log(...args$1);
|
|
308417
308417
|
}, 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;
|
|
308418
|
-
var
|
|
308418
|
+
var init_src_Bm0BRA0C_es = __esm(() => {
|
|
308419
308419
|
init_rolldown_runtime_Bg48TavK_es();
|
|
308420
308420
|
init_SuperConverter_C6hKp29w_es();
|
|
308421
308421
|
init_jszip_C49i9kUs_es();
|
|
@@ -326160,12 +326160,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
326160
326160
|
onMouseenter: ($event) => activeUserIndex.value = index2,
|
|
326161
326161
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => activeUserIndex.value = null),
|
|
326162
326162
|
key: user.email,
|
|
326163
|
-
class: exports_vue.normalizeClass(["user-row", { selected: activeUserIndex.value === index2 }])
|
|
326163
|
+
class: exports_vue.normalizeClass(["user-row", { "sd-selected": activeUserIndex.value === index2 }])
|
|
326164
326164
|
}, [user.name ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_2$17, [user.name ? (exports_vue.openBlock(), exports_vue.createElementBlock("span", _hoisted_3$13, exports_vue.toDisplayString(user.name), 1)) : exports_vue.createCommentVNode("", true), user.name && user.email ? (exports_vue.openBlock(), exports_vue.createElementBlock("span", _hoisted_4$9, " (" + exports_vue.toDisplayString(user.email) + ")", 1)) : exports_vue.createCommentVNode("", true)])) : (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_5$7, [exports_vue.createElementVNode("span", null, exports_vue.toDisplayString(user.email), 1)]))], 42, _hoisted_1$22);
|
|
326165
326165
|
}), 128))], 544);
|
|
326166
326166
|
};
|
|
326167
326167
|
}
|
|
326168
|
-
}, [["__scopeId", "data-v-
|
|
326168
|
+
}, [["__scopeId", "data-v-b9684aad"]]);
|
|
326169
326169
|
popoverPluginKey = new PluginKey("popoverPlugin");
|
|
326170
326170
|
PopoverPlugin = Extension.create({
|
|
326171
326171
|
name: "popoverPlugin",
|
|
@@ -327632,7 +327632,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327632
327632
|
}, null, 8, _hoisted_5$6)) : exports_vue.createCommentVNode("", true)])], 544);
|
|
327633
327633
|
};
|
|
327634
327634
|
}
|
|
327635
|
-
}, [["__scopeId", "data-v-
|
|
327635
|
+
}, [["__scopeId", "data-v-5444b0c8"]]);
|
|
327636
327636
|
isHighContrastMode = exports_vue.ref(false);
|
|
327637
327637
|
toolbarIcons = {
|
|
327638
327638
|
undo: rotate_left_solid_default,
|
|
@@ -327796,7 +327796,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327796
327796
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", { class: exports_vue.normalizeClass(["alignment-buttons", { "high-contrast": exports_vue.unref(isHighContrastMode$1) }]) }, [(exports_vue.openBlock(), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(alignmentButtons, (button, index2) => {
|
|
327797
327797
|
return exports_vue.createElementVNode("div", {
|
|
327798
327798
|
key: button.key,
|
|
327799
|
-
class: "button-icon",
|
|
327799
|
+
class: "sd-button-icon",
|
|
327800
327800
|
onClick: ($event) => select2(button.key),
|
|
327801
327801
|
innerHTML: button.icon,
|
|
327802
327802
|
"data-item": "btn-textAlign-option",
|
|
@@ -327810,7 +327810,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327810
327810
|
}), 64))], 2);
|
|
327811
327811
|
};
|
|
327812
327812
|
}
|
|
327813
|
-
}, [["__scopeId", "data-v-
|
|
327813
|
+
}, [["__scopeId", "data-v-ceb338e0"]]);
|
|
327814
327814
|
_hoisted_1$19 = [
|
|
327815
327815
|
"onClick",
|
|
327816
327816
|
"innerHTML",
|
|
@@ -327890,7 +327890,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327890
327890
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", { class: exports_vue.normalizeClass(["style-buttons-list", { "high-contrast": exports_vue.unref(isHighContrastMode$1) }]) }, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(props.buttons, (button, index2) => {
|
|
327891
327891
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
327892
327892
|
key: button.key,
|
|
327893
|
-
class: exports_vue.normalizeClass(["button-icon", { selected: props.selectedStyle === button.key }]),
|
|
327893
|
+
class: exports_vue.normalizeClass(["sd-button-icon", { "sd-selected": props.selectedStyle === button.key }]),
|
|
327894
327894
|
style: exports_vue.normalizeStyle(iconStyle.value),
|
|
327895
327895
|
onClick: ($event) => select2(button.key),
|
|
327896
327896
|
innerHTML: button.icon,
|
|
@@ -327904,7 +327904,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327904
327904
|
}), 128))], 2);
|
|
327905
327905
|
};
|
|
327906
327906
|
}
|
|
327907
|
-
}, [["__scopeId", "data-v-
|
|
327907
|
+
}, [["__scopeId", "data-v-701c1d54"]]);
|
|
327908
327908
|
bulletStyleButtons = [
|
|
327909
327909
|
{
|
|
327910
327910
|
key: "disc",
|
|
@@ -328022,7 +328022,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328022
328022
|
return (_ctx, _cache) => {
|
|
328023
328023
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", { class: exports_vue.normalizeClass(["document-mode", { "high-contrast": exports_vue.unref(isHighContrastMode$1) }]) }, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.options, (option, index2) => {
|
|
328024
328024
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328025
|
-
class: exports_vue.normalizeClass(["option-item", { disabled: option.disabled }]),
|
|
328025
|
+
class: exports_vue.normalizeClass(["sd-option-item", { "sd-disabled": option.disabled }]),
|
|
328026
328026
|
onClick: ($event) => handleClick$1(option),
|
|
328027
328027
|
"data-item": "btn-documentMode-option",
|
|
328028
328028
|
role: "menuitem",
|
|
@@ -328037,7 +328037,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328037
328037
|
}), 256))], 2);
|
|
328038
328038
|
};
|
|
328039
328039
|
}
|
|
328040
|
-
}, [["__scopeId", "data-v-
|
|
328040
|
+
}, [["__scopeId", "data-v-abd514d9"]]);
|
|
328041
328041
|
_hoisted_1$17 = {
|
|
328042
328042
|
key: 0,
|
|
328043
328043
|
class: "linked-style-buttons",
|
|
@@ -328339,13 +328339,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328339
328339
|
type: "text",
|
|
328340
328340
|
name: "link",
|
|
328341
328341
|
placeholder: "Type or paste a link",
|
|
328342
|
-
class: exports_vue.normalizeClass({ error: urlError.value }),
|
|
328342
|
+
class: exports_vue.normalizeClass({ "sd-error": urlError.value }),
|
|
328343
328343
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rawUrl.value = $event),
|
|
328344
328344
|
readonly: isViewingMode.value,
|
|
328345
328345
|
onKeydown: [exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"]), _cache[3] || (_cache[3] = ($event) => urlError.value = false)]
|
|
328346
328346
|
}, null, 42, _hoisted_10$1), [[exports_vue.vModelText, rawUrl.value]]),
|
|
328347
328347
|
exports_vue.createElementVNode("div", {
|
|
328348
|
-
class: exports_vue.normalizeClass(["open-link-icon", { disabled: !validUrl.value }]),
|
|
328348
|
+
class: exports_vue.normalizeClass(["open-link-icon", { "sd-disabled": !validUrl.value }]),
|
|
328349
328349
|
innerHTML: exports_vue.unref(toolbarIcons).openLink,
|
|
328350
328350
|
onClick: openLink,
|
|
328351
328351
|
"data-item": "btn-link-open"
|
|
@@ -328360,14 +328360,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328360
328360
|
class: "remove-btn__icon",
|
|
328361
328361
|
innerHTML: exports_vue.unref(toolbarIcons).removeLink
|
|
328362
328362
|
}, null, 8, _hoisted_13), _cache[6] || (_cache[6] = exports_vue.createTextVNode(" Remove ", -1))])) : exports_vue.createCommentVNode("", true), exports_vue.createElementVNode("button", {
|
|
328363
|
-
class: exports_vue.normalizeClass(["submit-btn", { "disable-btn": isDisabled.value }]),
|
|
328363
|
+
class: exports_vue.normalizeClass(["sd-submit-btn", { "disable-btn": isDisabled.value }]),
|
|
328364
328364
|
onClick: handleSubmit,
|
|
328365
328365
|
"data-item": "btn-link-apply"
|
|
328366
328366
|
}, " Apply ", 2)])) : exports_vue.createCommentVNode("", true)
|
|
328367
328367
|
])) : isAnchor.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_14, [exports_vue.createElementVNode("a", { onClick: _cache[4] || (_cache[4] = exports_vue.withModifiers(($event) => navigateToAnchor(rawUrl.value), ["stop", "prevent"])) }, "Go to " + exports_vue.toDisplayString(rawUrl.value.startsWith("#_") ? rawUrl.value.substring(2) : rawUrl.value), 1)])) : exports_vue.createCommentVNode("", true)], 2);
|
|
328368
328368
|
};
|
|
328369
328369
|
}
|
|
328370
|
-
}, [["__scopeId", "data-v-
|
|
328370
|
+
}, [["__scopeId", "data-v-c490d677"]]);
|
|
328371
328371
|
_hoisted_1$15 = [
|
|
328372
328372
|
"aria-label",
|
|
328373
328373
|
"onClick",
|
|
@@ -328474,7 +328474,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328474
328474
|
return (_ctx, _cache) => {
|
|
328475
328475
|
return exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.icons, (row2, rowIndex) => {
|
|
328476
328476
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328477
|
-
class: "option-row",
|
|
328477
|
+
class: "sd-option-row",
|
|
328478
328478
|
key: rowIndex,
|
|
328479
328479
|
role: "group",
|
|
328480
328480
|
ref_for: true,
|
|
@@ -328482,7 +328482,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328482
328482
|
ref: rowRefs
|
|
328483
328483
|
}, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(row2, (option, optionIndex) => {
|
|
328484
328484
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328485
|
-
class: "option",
|
|
328485
|
+
class: "sd-option",
|
|
328486
328486
|
key: optionIndex,
|
|
328487
328487
|
"aria-label": option.label,
|
|
328488
328488
|
role: "menuitem",
|
|
@@ -328492,12 +328492,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328492
328492
|
onClick: exports_vue.withModifiers(($event) => handleClick$1(option), ["stop", "prevent"]),
|
|
328493
328493
|
onKeydown: exports_vue.withModifiers((event) => handleKeyDown$1(event, rowIndex, optionIndex, option), ["prevent"])
|
|
328494
328494
|
}, [exports_vue.createElementVNode("div", {
|
|
328495
|
-
class: "option__icon",
|
|
328495
|
+
class: "sd-option__icon",
|
|
328496
328496
|
innerHTML: option.icon,
|
|
328497
328497
|
style: exports_vue.normalizeStyle(option.style)
|
|
328498
328498
|
}, null, 12, _hoisted_2$12), isActive$1.value(option) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328499
328499
|
key: 0,
|
|
328500
|
-
class: "option__check",
|
|
328500
|
+
class: "sd-option__check",
|
|
328501
328501
|
innerHTML: exports_vue.unref(toolbarIcons).colorOptionCheck,
|
|
328502
328502
|
style: exports_vue.normalizeStyle(getCheckStyle(option.value, optionIndex))
|
|
328503
328503
|
}, null, 12, _hoisted_3$9)) : exports_vue.createCommentVNode("", true)], 40, _hoisted_1$15);
|
|
@@ -328505,7 +328505,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328505
328505
|
}), 128);
|
|
328506
328506
|
};
|
|
328507
328507
|
}
|
|
328508
|
-
}, [["__scopeId", "data-v-
|
|
328508
|
+
}, [["__scopeId", "data-v-30cad300"]]);
|
|
328509
328509
|
_hoisted_1$14 = { class: "options-grid-wrap" };
|
|
328510
328510
|
_hoisted_2$11 = ["innerHTML"];
|
|
328511
328511
|
_hoisted_3$8 = { class: "option-grid-ctn" };
|
|
@@ -328661,9 +328661,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328661
328661
|
let itemsCols = parseInt(item.dataset.cols, 10);
|
|
328662
328662
|
let itemsRows = parseInt(item.dataset.rows, 10);
|
|
328663
328663
|
if (itemsCols <= cols && itemsRows <= rows)
|
|
328664
|
-
item.classList.add("selected");
|
|
328664
|
+
item.classList.add("sd-selected");
|
|
328665
328665
|
else
|
|
328666
|
-
item.classList.remove("selected");
|
|
328666
|
+
item.classList.remove("sd-selected");
|
|
328667
328667
|
}
|
|
328668
328668
|
};
|
|
328669
328669
|
const handleClick$1 = ({ cols, rows }) => {
|
|
@@ -328756,7 +328756,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328756
328756
|
}, exports_vue.toDisplayString(selectedRows.value) + " x " + exports_vue.toDisplayString(selectedCols.value), 9, _hoisted_2$10)], 2);
|
|
328757
328757
|
};
|
|
328758
328758
|
}
|
|
328759
|
-
}, [["__scopeId", "data-v-
|
|
328759
|
+
}, [["__scopeId", "data-v-168b91ce"]]);
|
|
328760
328760
|
_hoisted_1$12 = { class: "toolbar-table-actions" };
|
|
328761
328761
|
_hoisted_2$9 = [
|
|
328762
328762
|
"onClick",
|
|
@@ -328792,7 +328792,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328792
328792
|
}
|
|
328793
328793
|
}, [["__scopeId", "data-v-652015c8"]]);
|
|
328794
328794
|
_hoisted_1$11 = { class: "search-input-ctn" };
|
|
328795
|
-
_hoisted_2$8 = { class: "row" };
|
|
328795
|
+
_hoisted_2$8 = { class: "sd-row" };
|
|
328796
328796
|
_hoisted_3$6 = ["onKeydown"];
|
|
328797
328797
|
SearchInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
328798
328798
|
__name: "SearchInput",
|
|
@@ -328813,13 +328813,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328813
328813
|
name: "search",
|
|
328814
328814
|
placeholder: "Type search string",
|
|
328815
328815
|
onKeydown: exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"])
|
|
328816
|
-
}, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "row submit" }, [exports_vue.createElementVNode("button", {
|
|
328817
|
-
class: "submit-btn",
|
|
328816
|
+
}, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "sd-row sd-submit" }, [exports_vue.createElementVNode("button", {
|
|
328817
|
+
class: "sd-submit-btn",
|
|
328818
328818
|
onClick: handleSubmit
|
|
328819
328819
|
}, "Apply")])]);
|
|
328820
328820
|
};
|
|
328821
328821
|
}
|
|
328822
|
-
}, [["__scopeId", "data-v-
|
|
328822
|
+
}, [["__scopeId", "data-v-d25821a5"]]);
|
|
328823
328823
|
TOOLBAR_FONTS = [
|
|
328824
328824
|
{
|
|
328825
328825
|
label: "Georgia",
|
|
@@ -328986,7 +328986,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328986
328986
|
HEADLESS_TOOLBAR_COMMANDS = [...new Set([...Object.values(HEADLESS_ITEM_MAP), ...TABLE_ACTION_COMMAND_IDS])];
|
|
328987
328987
|
NON_HEADLESS_EXECUTE_ITEM_NAMES = new Set(["link"]);
|
|
328988
328988
|
HEADLESS_EXECUTE_ITEMS = new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
|
|
328989
|
-
_hoisted_1$10 = { class: "toolbar-icon" };
|
|
328989
|
+
_hoisted_1$10 = { class: "sd-toolbar-icon" };
|
|
328990
328990
|
_hoisted_2$7 = ["innerHTML"];
|
|
328991
328991
|
ToolbarButtonIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
328992
328992
|
__name: "ToolbarButtonIcon",
|
|
@@ -329017,7 +329017,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329017
329017
|
});
|
|
329018
329018
|
return (_ctx, _cache) => {
|
|
329019
329019
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_1$10, [exports_vue.createElementVNode("div", {
|
|
329020
|
-
class: exports_vue.normalizeClass(["toolbar-icon__icon", [`toolbar-icon__icon--${props.name}`]]),
|
|
329020
|
+
class: exports_vue.normalizeClass(["sd-toolbar-icon__icon", [`sd-toolbar-icon__icon--${props.name}`]]),
|
|
329021
329021
|
innerHTML: __props.icon
|
|
329022
329022
|
}, null, 10, _hoisted_2$7), hasColorBar.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329023
329023
|
key: 0,
|
|
@@ -329026,19 +329026,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329026
329026
|
}, null, 4)) : exports_vue.createCommentVNode("", true)]);
|
|
329027
329027
|
};
|
|
329028
329028
|
}
|
|
329029
|
-
}, [["__scopeId", "data-v-
|
|
329029
|
+
}, [["__scopeId", "data-v-521c3d93"]]);
|
|
329030
329030
|
_hoisted_1$9 = ["role", "aria-label"];
|
|
329031
329031
|
_hoisted_2$6 = ["data-item"];
|
|
329032
329032
|
_hoisted_3$5 = ["data-item"];
|
|
329033
329033
|
_hoisted_4$4 = {
|
|
329034
329034
|
key: 1,
|
|
329035
|
-
class: "button-label"
|
|
329035
|
+
class: "sd-button-label"
|
|
329036
329036
|
};
|
|
329037
329037
|
_hoisted_5$2 = ["data-item", "aria-label"];
|
|
329038
329038
|
_hoisted_6$1 = ["innerHTML"];
|
|
329039
329039
|
_hoisted_7$1 = {
|
|
329040
329040
|
key: 1,
|
|
329041
|
-
class: "button-label"
|
|
329041
|
+
class: "sd-button-label"
|
|
329042
329042
|
};
|
|
329043
329043
|
_hoisted_8 = { key: 2 };
|
|
329044
329044
|
_hoisted_9 = ["onKeydown", "id"];
|
|
@@ -329050,7 +329050,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329050
329050
|
_hoisted_11 = ["innerHTML"];
|
|
329051
329051
|
_hoisted_12 = {
|
|
329052
329052
|
"aria-live": "polite",
|
|
329053
|
-
class: "visually-hidden"
|
|
329053
|
+
class: "sd-visually-hidden"
|
|
329054
329054
|
};
|
|
329055
329055
|
ToolbarButton_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
329056
329056
|
__name: "ToolbarButton",
|
|
@@ -329148,17 +329148,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329148
329148
|
});
|
|
329149
329149
|
return (_ctx, _cache) => {
|
|
329150
329150
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329151
|
-
class: exports_vue.normalizeClass(["toolbar-item", exports_vue.unref(attributes).className]),
|
|
329151
|
+
class: exports_vue.normalizeClass(["sd-toolbar-item", exports_vue.unref(attributes).className]),
|
|
329152
329152
|
style: exports_vue.normalizeStyle(getStyle.value),
|
|
329153
329153
|
role: __props.isOverflowItem ? "menuitem" : "button",
|
|
329154
329154
|
"aria-label": exports_vue.unref(attributes).ariaLabel,
|
|
329155
|
+
"data-sd-part": "toolbar-item",
|
|
329155
329156
|
onClick: handleOuterClick,
|
|
329156
329157
|
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(($event) => onEnterKeydown($event), ["enter"])),
|
|
329157
329158
|
tabindex: "0"
|
|
329158
329159
|
}, [exports_vue.createElementVNode("div", {
|
|
329159
|
-
class: exports_vue.normalizeClass(["toolbar-button", {
|
|
329160
|
-
active: exports_vue.unref(active),
|
|
329161
|
-
disabled: exports_vue.unref(disabled),
|
|
329160
|
+
class: exports_vue.normalizeClass(["sd-toolbar-button", {
|
|
329161
|
+
"sd-active": exports_vue.unref(active),
|
|
329162
|
+
"sd-disabled": exports_vue.unref(disabled),
|
|
329162
329163
|
narrow: __props.isNarrow,
|
|
329163
329164
|
wide: __props.isWide,
|
|
329164
329165
|
split: isSplit.value,
|
|
@@ -329169,13 +329170,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329169
329170
|
}, [
|
|
329170
329171
|
isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329171
329172
|
key: 0,
|
|
329172
|
-
class: "toolbar-button__main",
|
|
329173
|
+
class: "sd-toolbar-button__main",
|
|
329173
329174
|
"data-item": `btn-${exports_vue.unref(name) || ""}-main`,
|
|
329174
329175
|
onClick: _cache[0] || (_cache[0] = ($event) => handleSplitMainClick($event))
|
|
329175
329176
|
}, [exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
|
|
329176
329177
|
key: 0,
|
|
329177
329178
|
color: exports_vue.unref(iconColor),
|
|
329178
|
-
class: "toolbar-icon",
|
|
329179
|
+
class: "sd-toolbar-icon",
|
|
329179
329180
|
icon: exports_vue.unref(icon),
|
|
329180
329181
|
name: exports_vue.unref(name)
|
|
329181
329182
|
}, null, 8, [
|
|
@@ -329185,19 +329186,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329185
329186
|
])) : exports_vue.createCommentVNode("", true), exports_vue.unref(label) && !exports_vue.unref(hideLabel) && !exports_vue.unref(inlineTextInputVisible) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_4$4, exports_vue.toDisplayString(exports_vue.unref(label)), 1)) : exports_vue.createCommentVNode("", true)], 8, _hoisted_3$5)) : exports_vue.createCommentVNode("", true),
|
|
329186
329187
|
isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329187
329188
|
key: 1,
|
|
329188
|
-
class: "toolbar-button__caret",
|
|
329189
|
+
class: "sd-toolbar-button__caret",
|
|
329189
329190
|
"data-item": `btn-${exports_vue.unref(name) || ""}-caret`,
|
|
329190
329191
|
"aria-label": `${exports_vue.unref(attributes).ariaLabel} options`,
|
|
329191
329192
|
role: "button"
|
|
329192
329193
|
}, [exports_vue.createElementVNode("div", {
|
|
329193
|
-
class: "dropdown-caret",
|
|
329194
|
+
class: "sd-dropdown-caret",
|
|
329194
329195
|
innerHTML: caretIcon.value,
|
|
329195
329196
|
style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
|
|
329196
329197
|
}, null, 12, _hoisted_6$1)], 8, _hoisted_5$2)) : (exports_vue.openBlock(), exports_vue.createElementBlock(exports_vue.Fragment, { key: 2 }, [
|
|
329197
329198
|
exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
|
|
329198
329199
|
key: 0,
|
|
329199
329200
|
color: exports_vue.unref(iconColor),
|
|
329200
|
-
class: "toolbar-icon",
|
|
329201
|
+
class: "sd-toolbar-icon",
|
|
329201
329202
|
icon: exports_vue.unref(icon),
|
|
329202
329203
|
name: exports_vue.unref(name)
|
|
329203
329204
|
}, null, 8, [
|
|
@@ -329230,7 +329231,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329230
329231
|
}, null, 40, _hoisted_10)), [[exports_vue.vModelText, inlineTextInput.value]])])) : exports_vue.createCommentVNode("", true),
|
|
329231
329232
|
exports_vue.unref(hasCaret) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329232
329233
|
key: 3,
|
|
329233
|
-
class: "dropdown-caret",
|
|
329234
|
+
class: "sd-dropdown-caret",
|
|
329234
329235
|
innerHTML: caretIcon.value,
|
|
329235
329236
|
style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
|
|
329236
329237
|
}, null, 12, _hoisted_11)) : exports_vue.createCommentVNode("", true)
|
|
@@ -329239,7 +329240,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329239
329240
|
], 10, _hoisted_2$6)], 46, _hoisted_1$9);
|
|
329240
329241
|
};
|
|
329241
329242
|
}
|
|
329242
|
-
}, [["__scopeId", "data-v-
|
|
329243
|
+
}, [["__scopeId", "data-v-360f6a95"]]);
|
|
329243
329244
|
_hoisted_1$8 = {
|
|
329244
329245
|
class: "toolbar-separator",
|
|
329245
329246
|
role: "separator",
|
|
@@ -329476,11 +329477,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329476
329477
|
if (!value)
|
|
329477
329478
|
return false;
|
|
329478
329479
|
if (typeof value === "string")
|
|
329479
|
-
return value.split(/\s+/).includes("selected");
|
|
329480
|
+
return value.split(/\s+/).includes("sd-selected");
|
|
329480
329481
|
if (Array.isArray(value))
|
|
329481
329482
|
return value.some(classHasSelected);
|
|
329482
329483
|
if (typeof value === "object")
|
|
329483
|
-
return Boolean(value
|
|
329484
|
+
return Boolean(value["sd-selected"]);
|
|
329484
329485
|
return false;
|
|
329485
329486
|
};
|
|
329486
329487
|
const isOptionSelected = (option) => {
|
|
@@ -329671,12 +329672,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329671
329672
|
ref_key: "triggerRef",
|
|
329672
329673
|
ref: triggerRef,
|
|
329673
329674
|
class: "toolbar-dropdown-trigger",
|
|
329675
|
+
"data-sd-part": "dropdown-trigger",
|
|
329674
329676
|
onClick: onTriggerClick
|
|
329675
329677
|
}, [exports_vue.renderSlot(_ctx.$slots, "trigger", {}, undefined, true)], 512), (exports_vue.openBlock(), exports_vue.createBlock(exports_vue.Teleport, { to: "body" }, [exports_vue.createVNode(exports_vue.Transition, { name: "fade-in-scale-up-transition" }, {
|
|
329676
329678
|
default: exports_vue.withCtx(() => [isOpen.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", exports_vue.mergeProps({
|
|
329677
329679
|
key: 0,
|
|
329678
329680
|
ref_key: "menuRef",
|
|
329679
329681
|
ref: menuRef,
|
|
329682
|
+
"data-sd-part": "dropdown-menu",
|
|
329680
329683
|
class: mergedMenuClass.value,
|
|
329681
329684
|
style: menuStyle.value
|
|
329682
329685
|
}, computedMenuAttrs.value), [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.options, (option, index2) => {
|
|
@@ -329688,8 +329691,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329688
329691
|
option.class,
|
|
329689
329692
|
option.props?.class,
|
|
329690
329693
|
{
|
|
329691
|
-
disabled: option.disabled,
|
|
329692
|
-
render: isRenderOption(option)
|
|
329694
|
+
"sd-disabled": option.disabled,
|
|
329695
|
+
"sd-render": isRenderOption(option)
|
|
329693
329696
|
}
|
|
329694
329697
|
]],
|
|
329695
329698
|
tabindex: "-1",
|
|
@@ -329706,7 +329709,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329706
329709
|
})]))]);
|
|
329707
329710
|
};
|
|
329708
329711
|
}
|
|
329709
|
-
}, [["__scopeId", "data-v-
|
|
329712
|
+
}, [["__scopeId", "data-v-302f7d86"]]);
|
|
329710
329713
|
SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
329711
329714
|
__name: "SdTooltip",
|
|
329712
329715
|
props: {
|
|
@@ -330057,7 +330060,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330057
330060
|
...option,
|
|
330058
330061
|
props: {
|
|
330059
330062
|
...option.props,
|
|
330060
|
-
class: isSelected ? "selected" : ""
|
|
330063
|
+
class: isSelected ? "sd-selected" : ""
|
|
330061
330064
|
}
|
|
330062
330065
|
};
|
|
330063
330066
|
});
|
|
@@ -330070,7 +330073,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330070
330073
|
};
|
|
330071
330074
|
const moveToNextButton = (e) => {
|
|
330072
330075
|
const currentButton = e.target;
|
|
330073
|
-
const nextButton = e.target.closest(".toolbar-item-ctn").nextElementSibling;
|
|
330076
|
+
const nextButton = e.target.closest(".sd-toolbar-item-ctn").nextElementSibling;
|
|
330074
330077
|
if (nextButton) {
|
|
330075
330078
|
currentButton.setAttribute("tabindex", "-1");
|
|
330076
330079
|
nextButton.setAttribute("tabindex", "0");
|
|
@@ -330079,7 +330082,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330079
330082
|
};
|
|
330080
330083
|
const moveToPreviousButton = (e) => {
|
|
330081
330084
|
const currentButton = e.target;
|
|
330082
|
-
const previousButton = e.target.closest(".toolbar-item-ctn").previousElementSibling;
|
|
330085
|
+
const previousButton = e.target.closest(".sd-toolbar-item-ctn").previousElementSibling;
|
|
330083
330086
|
if (previousButton) {
|
|
330084
330087
|
currentButton.setAttribute("tabindex", "-1");
|
|
330085
330088
|
previousButton.setAttribute("tabindex", "0");
|
|
@@ -330157,7 +330160,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330157
330160
|
}
|
|
330158
330161
|
};
|
|
330159
330162
|
const handleFocus = (e) => {
|
|
330160
|
-
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("disabled"));
|
|
330163
|
+
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("sd-disabled"));
|
|
330161
330164
|
if (firstButton) {
|
|
330162
330165
|
firstButton.setAttribute("tabindex", "0");
|
|
330163
330166
|
firstButton.focus();
|
|
@@ -330213,8 +330216,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330213
330216
|
class: exports_vue.normalizeClass([{
|
|
330214
330217
|
narrow: item.isNarrow.value,
|
|
330215
330218
|
wide: item.isWide.value,
|
|
330216
|
-
disabled: item.disabled.value
|
|
330217
|
-
}, "toolbar-item-ctn"]),
|
|
330219
|
+
"sd-disabled": item.disabled.value
|
|
330220
|
+
}, "sd-toolbar-item-ctn"]),
|
|
330218
330221
|
onKeydown: (e) => handleKeyDown$1(e, item),
|
|
330219
330222
|
ref_for: true,
|
|
330220
330223
|
ref_key: "toolbarItemRefs",
|
|
@@ -330233,7 +330236,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330233
330236
|
show: getExpanded(item),
|
|
330234
330237
|
"content-style": { fontFamily: props.uiFontFamily },
|
|
330235
330238
|
placement: "bottom-start",
|
|
330236
|
-
class: "toolbar-button sd-editor-toolbar-dropdown",
|
|
330239
|
+
class: "sd-toolbar-button sd-editor-toolbar-dropdown",
|
|
330237
330240
|
onSelect: (key2, option) => handleSelect(item, option),
|
|
330238
330241
|
"onUpdate:show": (open) => handleDropdownUpdateShowForItem(open, item),
|
|
330239
330242
|
style: exports_vue.normalizeStyle(item.dropdownStyles.value),
|
|
@@ -330310,7 +330313,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330310
330313
|
}), 128))], 36);
|
|
330311
330314
|
};
|
|
330312
330315
|
}
|
|
330313
|
-
}, [["__scopeId", "data-v-
|
|
330316
|
+
}, [["__scopeId", "data-v-9c3524ec"]]);
|
|
330314
330317
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
330315
330318
|
__name: "Toolbar",
|
|
330316
330319
|
emits: [
|
|
@@ -330404,6 +330407,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330404
330407
|
key: exports_vue.unref(toolbarKey),
|
|
330405
330408
|
role: "toolbar",
|
|
330406
330409
|
"aria-label": "Toolbar",
|
|
330410
|
+
"data-sd-part": "toolbar",
|
|
330407
330411
|
"data-editor-ui-surface": "",
|
|
330408
330412
|
onMousedown: handleToolbarMousedown
|
|
330409
330413
|
}, [
|
|
@@ -330455,7 +330459,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330455
330459
|
], 32);
|
|
330456
330460
|
};
|
|
330457
330461
|
}
|
|
330458
|
-
}, [["__scopeId", "data-v-
|
|
330462
|
+
}, [["__scopeId", "data-v-b83d488a"]]);
|
|
330459
330463
|
toolbarTexts = {
|
|
330460
330464
|
bold: "Bold",
|
|
330461
330465
|
fontFamily: "Font",
|
|
@@ -342897,7 +342901,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
342897
342901
|
|
|
342898
342902
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342899
342903
|
var init_super_editor_es = __esm(() => {
|
|
342900
|
-
|
|
342904
|
+
init_src_Bm0BRA0C_es();
|
|
342901
342905
|
init_SuperConverter_C6hKp29w_es();
|
|
342902
342906
|
init_jszip_C49i9kUs_es();
|
|
342903
342907
|
init_xml_js_CqGKpaft_es();
|
|
@@ -464761,7 +464765,7 @@ var DEFAULT_SELECTION_STATE2, normalizeSelectionState2 = (state = {}) => ({
|
|
|
464761
464765
|
}, isToolbarInput2 = (target) => {
|
|
464762
464766
|
return !!target?.closest(".button-text-input") || target?.classList?.contains("button-text-input");
|
|
464763
464767
|
}, isToolbarButton2 = (target) => {
|
|
464764
|
-
return !!target?.closest(".toolbar-button") || target?.classList?.contains("toolbar-button");
|
|
464768
|
+
return !!target?.closest(".sd-toolbar-button") || !!target?.closest(".toolbar-button") || target?.classList?.contains("sd-toolbar-button") || target?.classList?.contains("toolbar-button");
|
|
464765
464769
|
}, CustomSelection2;
|
|
464766
464770
|
var init_custom_selection = __esm(() => {
|
|
464767
464771
|
init_Extension();
|
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.14",
|
|
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.37.0",
|
|
24
|
+
"@superdoc/super-editor": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|