@superdoc-dev/mcp 0.10.0-next.11 → 0.10.0-next.13
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 +98 -88
- 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 }) => {
|
|
@@ -281070,7 +281070,7 @@ var Node$13 = class Node$14 {
|
|
|
281070
281070
|
}
|
|
281071
281071
|
});
|
|
281072
281072
|
}
|
|
281073
|
-
}, COMPOSITION_INPUT_TYPES, COMBINING_MARK_REGEX, graphemeSegmenter, DEAD_KEY_PLACEHOLDER_MARKS, getTextNodeAtPos = ({ doc: doc$12, pos }) => {
|
|
281073
|
+
}, COMPOSITION_INPUT_TYPES, COMBINING_MARK_REGEX, graphemeSegmenter, DEAD_KEY_PLACEHOLDER_MARKS, TRACKABLE_META_KEYS, PASSTHROUGH_META_KEYS, ALLOWED_META_KEYS, getTextNodeAtPos = ({ doc: doc$12, pos }) => {
|
|
281074
281074
|
let found2 = null;
|
|
281075
281075
|
doc$12.nodesBetween(Math.max(0, pos - 1), Math.min(doc$12.content.size, pos + 1), (node2, nodePos) => {
|
|
281076
281076
|
if (found2 || !node2.isText || !node2.text)
|
|
@@ -281261,6 +281261,12 @@ var Node$13 = class Node$14 {
|
|
|
281261
281261
|
...existingMeta,
|
|
281262
281262
|
...extraMeta
|
|
281263
281263
|
});
|
|
281264
|
+
}, copyPassthroughMeta = (sourceTr, targetTr) => {
|
|
281265
|
+
PASSTHROUGH_META_KEYS.forEach((key2) => {
|
|
281266
|
+
const value = sourceTr.getMeta(key2);
|
|
281267
|
+
if (value !== undefined)
|
|
281268
|
+
targetTr.setMeta(key2, value);
|
|
281269
|
+
});
|
|
281264
281270
|
}, getPendingDeadKeyPlaceholder = ({ tr, newTr, user }) => {
|
|
281265
281271
|
if (!isCompositionTransaction(tr) || tr.steps.length !== 1)
|
|
281266
281272
|
return null;
|
|
@@ -281290,13 +281296,6 @@ var Node$13 = class Node$14 {
|
|
|
281290
281296
|
authorEmail: user.email
|
|
281291
281297
|
};
|
|
281292
281298
|
}, trackedTransaction = ({ tr, state, user, replacements = "paired" }) => {
|
|
281293
|
-
const onlyInputTypeMeta = [
|
|
281294
|
-
"inputType",
|
|
281295
|
-
"uiEvent",
|
|
281296
|
-
"paste",
|
|
281297
|
-
"pointer",
|
|
281298
|
-
"composition"
|
|
281299
|
-
];
|
|
281300
281299
|
const notAllowedMeta = [
|
|
281301
281300
|
"historyUndo",
|
|
281302
281301
|
"historyRedo",
|
|
@@ -281305,13 +281304,7 @@ var Node$13 = class Node$14 {
|
|
|
281305
281304
|
const isProgrammaticInput = tr.getMeta("inputType") === "programmatic";
|
|
281306
281305
|
const ySyncMeta = tr.getMeta(ySyncPluginKey);
|
|
281307
281306
|
const pendingDeadKeyPlaceholder = TrackChangesBasePluginKey.getState(state)?.pendingDeadKeyPlaceholder ?? null;
|
|
281308
|
-
const
|
|
281309
|
-
...onlyInputTypeMeta,
|
|
281310
|
-
ySyncPluginKey.key,
|
|
281311
|
-
"forceTrackChanges",
|
|
281312
|
-
"protectTrackedReviewState"
|
|
281313
|
-
]);
|
|
281314
|
-
const hasDisallowedMeta = tr.meta && Object.keys(tr.meta).some((meta4) => !allowedMeta.has(meta4));
|
|
281307
|
+
const hasDisallowedMeta = tr.meta && Object.keys(tr.meta).some((meta4) => !ALLOWED_META_KEYS.has(meta4));
|
|
281315
281308
|
if (ySyncMeta?.isChangeOrigin || !tr.steps.length || hasDisallowedMeta && !isProgrammaticInput || notAllowedMeta.includes(tr.getMeta("inputType")) || tr.getMeta(CommentsPluginKey)) {
|
|
281316
281309
|
if (pendingDeadKeyPlaceholder && !isCompositionTransaction(tr))
|
|
281317
281310
|
mergeTrackChangesMeta(tr, { pendingDeadKeyPlaceholder: null });
|
|
@@ -281386,14 +281379,7 @@ var Node$13 = class Node$14 {
|
|
|
281386
281379
|
else
|
|
281387
281380
|
newTr.step(step2);
|
|
281388
281381
|
});
|
|
281389
|
-
|
|
281390
|
-
newTr.setMeta("inputType", tr.getMeta("inputType"));
|
|
281391
|
-
if (tr.getMeta("uiEvent"))
|
|
281392
|
-
newTr.setMeta("uiEvent", tr.getMeta("uiEvent"));
|
|
281393
|
-
if (tr.getMeta("composition") !== undefined)
|
|
281394
|
-
newTr.setMeta("composition", tr.getMeta("composition"));
|
|
281395
|
-
if (tr.getMeta("addToHistory") !== undefined)
|
|
281396
|
-
newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
|
|
281382
|
+
copyPassthroughMeta(tr, newTr);
|
|
281397
281383
|
mergeTrackChangesMeta(newTr, { pendingDeadKeyPlaceholder: getPendingDeadKeyPlaceholder({
|
|
281398
281384
|
tr,
|
|
281399
281385
|
newTr,
|
|
@@ -285380,7 +285366,7 @@ var Node$13 = class Node$14 {
|
|
|
285380
285366
|
disabled: role !== "editor",
|
|
285381
285367
|
attributes: {
|
|
285382
285368
|
dropdownPosition: "right",
|
|
285383
|
-
className: "toolbar-item--doc-mode",
|
|
285369
|
+
className: "sd-toolbar-item--doc-mode",
|
|
285384
285370
|
ariaLabel: "Document mode"
|
|
285385
285371
|
},
|
|
285386
285372
|
options: [{
|
|
@@ -285468,7 +285454,7 @@ var Node$13 = class Node$14 {
|
|
|
285468
285454
|
suppressActiveHighlight: true,
|
|
285469
285455
|
disabled: false,
|
|
285470
285456
|
attributes: {
|
|
285471
|
-
className: "toolbar-item--linked-styles",
|
|
285457
|
+
className: "sd-toolbar-item--linked-styles",
|
|
285472
285458
|
ariaLabel: "Linked styles"
|
|
285473
285459
|
},
|
|
285474
285460
|
options: [{
|
|
@@ -285565,12 +285551,12 @@ var Node$13 = class Node$14 {
|
|
|
285565
285551
|
if (shouldUseLgCompactStyles)
|
|
285566
285552
|
documentMode.attributes.value = {
|
|
285567
285553
|
...documentMode.attributes.value,
|
|
285568
|
-
className: `${documentMode.attributes.value.className} toolbar-item--doc-mode-compact`
|
|
285554
|
+
className: `${documentMode.attributes.value.className} sd-toolbar-item--doc-mode-compact`
|
|
285569
285555
|
};
|
|
285570
285556
|
if (shouldUseLgCompactStyles)
|
|
285571
285557
|
linkedStyles.attributes.value = {
|
|
285572
285558
|
...linkedStyles.attributes.value,
|
|
285573
|
-
className: `${linkedStyles.attributes.value.className} toolbar-item--linked-styles-compact`
|
|
285559
|
+
className: `${linkedStyles.attributes.value.className} sd-toolbar-item--linked-styles-compact`
|
|
285574
285560
|
};
|
|
285575
285561
|
let toolbarItems = [
|
|
285576
285562
|
undo$2,
|
|
@@ -308429,7 +308415,7 @@ menclose::after {
|
|
|
308429
308415
|
return;
|
|
308430
308416
|
console.log(...args$1);
|
|
308431
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;
|
|
308432
|
-
var
|
|
308418
|
+
var init_src_Bm0BRA0C_es = __esm(() => {
|
|
308433
308419
|
init_rolldown_runtime_Bg48TavK_es();
|
|
308434
308420
|
init_SuperConverter_C6hKp29w_es();
|
|
308435
308421
|
init_jszip_C49i9kUs_es();
|
|
@@ -325420,6 +325406,26 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325420
325406
|
["~", "̃"],
|
|
325421
325407
|
["¨", "̈"]
|
|
325422
325408
|
]);
|
|
325409
|
+
TRACKABLE_META_KEYS = [
|
|
325410
|
+
"inputType",
|
|
325411
|
+
"uiEvent",
|
|
325412
|
+
"paste",
|
|
325413
|
+
"pointer",
|
|
325414
|
+
"composition",
|
|
325415
|
+
"superdocSlicePaste",
|
|
325416
|
+
"forceTrackChanges",
|
|
325417
|
+
"protectTrackedReviewState"
|
|
325418
|
+
];
|
|
325419
|
+
PASSTHROUGH_META_KEYS = [
|
|
325420
|
+
"inputType",
|
|
325421
|
+
"uiEvent",
|
|
325422
|
+
"paste",
|
|
325423
|
+
"pointer",
|
|
325424
|
+
"composition",
|
|
325425
|
+
"addToHistory",
|
|
325426
|
+
"superdocSlicePaste"
|
|
325427
|
+
];
|
|
325428
|
+
ALLOWED_META_KEYS = new Set([...TRACKABLE_META_KEYS, ySyncPluginKey.key]);
|
|
325423
325429
|
TrackFormat = Mark3.create({
|
|
325424
325430
|
name: TrackFormatMarkName,
|
|
325425
325431
|
group: "track",
|
|
@@ -326154,12 +326160,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
326154
326160
|
onMouseenter: ($event) => activeUserIndex.value = index2,
|
|
326155
326161
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => activeUserIndex.value = null),
|
|
326156
326162
|
key: user.email,
|
|
326157
|
-
class: exports_vue.normalizeClass(["user-row", { selected: activeUserIndex.value === index2 }])
|
|
326163
|
+
class: exports_vue.normalizeClass(["user-row", { "sd-selected": activeUserIndex.value === index2 }])
|
|
326158
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);
|
|
326159
326165
|
}), 128))], 544);
|
|
326160
326166
|
};
|
|
326161
326167
|
}
|
|
326162
|
-
}, [["__scopeId", "data-v-
|
|
326168
|
+
}, [["__scopeId", "data-v-b9684aad"]]);
|
|
326163
326169
|
popoverPluginKey = new PluginKey("popoverPlugin");
|
|
326164
326170
|
PopoverPlugin = Extension.create({
|
|
326165
326171
|
name: "popoverPlugin",
|
|
@@ -327626,7 +327632,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327626
327632
|
}, null, 8, _hoisted_5$6)) : exports_vue.createCommentVNode("", true)])], 544);
|
|
327627
327633
|
};
|
|
327628
327634
|
}
|
|
327629
|
-
}, [["__scopeId", "data-v-
|
|
327635
|
+
}, [["__scopeId", "data-v-5444b0c8"]]);
|
|
327630
327636
|
isHighContrastMode = exports_vue.ref(false);
|
|
327631
327637
|
toolbarIcons = {
|
|
327632
327638
|
undo: rotate_left_solid_default,
|
|
@@ -327790,7 +327796,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327790
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) => {
|
|
327791
327797
|
return exports_vue.createElementVNode("div", {
|
|
327792
327798
|
key: button.key,
|
|
327793
|
-
class: "button-icon",
|
|
327799
|
+
class: "sd-button-icon",
|
|
327794
327800
|
onClick: ($event) => select2(button.key),
|
|
327795
327801
|
innerHTML: button.icon,
|
|
327796
327802
|
"data-item": "btn-textAlign-option",
|
|
@@ -327804,7 +327810,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327804
327810
|
}), 64))], 2);
|
|
327805
327811
|
};
|
|
327806
327812
|
}
|
|
327807
|
-
}, [["__scopeId", "data-v-
|
|
327813
|
+
}, [["__scopeId", "data-v-ceb338e0"]]);
|
|
327808
327814
|
_hoisted_1$19 = [
|
|
327809
327815
|
"onClick",
|
|
327810
327816
|
"innerHTML",
|
|
@@ -327884,7 +327890,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327884
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) => {
|
|
327885
327891
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
327886
327892
|
key: button.key,
|
|
327887
|
-
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 }]),
|
|
327888
327894
|
style: exports_vue.normalizeStyle(iconStyle.value),
|
|
327889
327895
|
onClick: ($event) => select2(button.key),
|
|
327890
327896
|
innerHTML: button.icon,
|
|
@@ -327898,7 +327904,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327898
327904
|
}), 128))], 2);
|
|
327899
327905
|
};
|
|
327900
327906
|
}
|
|
327901
|
-
}, [["__scopeId", "data-v-
|
|
327907
|
+
}, [["__scopeId", "data-v-701c1d54"]]);
|
|
327902
327908
|
bulletStyleButtons = [
|
|
327903
327909
|
{
|
|
327904
327910
|
key: "disc",
|
|
@@ -328016,7 +328022,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328016
328022
|
return (_ctx, _cache) => {
|
|
328017
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) => {
|
|
328018
328024
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328019
|
-
class: exports_vue.normalizeClass(["option-item", { disabled: option.disabled }]),
|
|
328025
|
+
class: exports_vue.normalizeClass(["sd-option-item", { "sd-disabled": option.disabled }]),
|
|
328020
328026
|
onClick: ($event) => handleClick$1(option),
|
|
328021
328027
|
"data-item": "btn-documentMode-option",
|
|
328022
328028
|
role: "menuitem",
|
|
@@ -328031,7 +328037,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328031
328037
|
}), 256))], 2);
|
|
328032
328038
|
};
|
|
328033
328039
|
}
|
|
328034
|
-
}, [["__scopeId", "data-v-
|
|
328040
|
+
}, [["__scopeId", "data-v-abd514d9"]]);
|
|
328035
328041
|
_hoisted_1$17 = {
|
|
328036
328042
|
key: 0,
|
|
328037
328043
|
class: "linked-style-buttons",
|
|
@@ -328333,13 +328339,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328333
328339
|
type: "text",
|
|
328334
328340
|
name: "link",
|
|
328335
328341
|
placeholder: "Type or paste a link",
|
|
328336
|
-
class: exports_vue.normalizeClass({ error: urlError.value }),
|
|
328342
|
+
class: exports_vue.normalizeClass({ "sd-error": urlError.value }),
|
|
328337
328343
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rawUrl.value = $event),
|
|
328338
328344
|
readonly: isViewingMode.value,
|
|
328339
328345
|
onKeydown: [exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"]), _cache[3] || (_cache[3] = ($event) => urlError.value = false)]
|
|
328340
328346
|
}, null, 42, _hoisted_10$1), [[exports_vue.vModelText, rawUrl.value]]),
|
|
328341
328347
|
exports_vue.createElementVNode("div", {
|
|
328342
|
-
class: exports_vue.normalizeClass(["open-link-icon", { disabled: !validUrl.value }]),
|
|
328348
|
+
class: exports_vue.normalizeClass(["open-link-icon", { "sd-disabled": !validUrl.value }]),
|
|
328343
328349
|
innerHTML: exports_vue.unref(toolbarIcons).openLink,
|
|
328344
328350
|
onClick: openLink,
|
|
328345
328351
|
"data-item": "btn-link-open"
|
|
@@ -328354,14 +328360,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328354
328360
|
class: "remove-btn__icon",
|
|
328355
328361
|
innerHTML: exports_vue.unref(toolbarIcons).removeLink
|
|
328356
328362
|
}, null, 8, _hoisted_13), _cache[6] || (_cache[6] = exports_vue.createTextVNode(" Remove ", -1))])) : exports_vue.createCommentVNode("", true), exports_vue.createElementVNode("button", {
|
|
328357
|
-
class: exports_vue.normalizeClass(["submit-btn", { "disable-btn": isDisabled.value }]),
|
|
328363
|
+
class: exports_vue.normalizeClass(["sd-submit-btn", { "disable-btn": isDisabled.value }]),
|
|
328358
328364
|
onClick: handleSubmit,
|
|
328359
328365
|
"data-item": "btn-link-apply"
|
|
328360
328366
|
}, " Apply ", 2)])) : exports_vue.createCommentVNode("", true)
|
|
328361
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);
|
|
328362
328368
|
};
|
|
328363
328369
|
}
|
|
328364
|
-
}, [["__scopeId", "data-v-
|
|
328370
|
+
}, [["__scopeId", "data-v-c490d677"]]);
|
|
328365
328371
|
_hoisted_1$15 = [
|
|
328366
328372
|
"aria-label",
|
|
328367
328373
|
"onClick",
|
|
@@ -328468,7 +328474,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328468
328474
|
return (_ctx, _cache) => {
|
|
328469
328475
|
return exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.icons, (row2, rowIndex) => {
|
|
328470
328476
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328471
|
-
class: "option-row",
|
|
328477
|
+
class: "sd-option-row",
|
|
328472
328478
|
key: rowIndex,
|
|
328473
328479
|
role: "group",
|
|
328474
328480
|
ref_for: true,
|
|
@@ -328476,7 +328482,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328476
328482
|
ref: rowRefs
|
|
328477
328483
|
}, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(row2, (option, optionIndex) => {
|
|
328478
328484
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328479
|
-
class: "option",
|
|
328485
|
+
class: "sd-option",
|
|
328480
328486
|
key: optionIndex,
|
|
328481
328487
|
"aria-label": option.label,
|
|
328482
328488
|
role: "menuitem",
|
|
@@ -328486,12 +328492,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328486
328492
|
onClick: exports_vue.withModifiers(($event) => handleClick$1(option), ["stop", "prevent"]),
|
|
328487
328493
|
onKeydown: exports_vue.withModifiers((event) => handleKeyDown$1(event, rowIndex, optionIndex, option), ["prevent"])
|
|
328488
328494
|
}, [exports_vue.createElementVNode("div", {
|
|
328489
|
-
class: "option__icon",
|
|
328495
|
+
class: "sd-option__icon",
|
|
328490
328496
|
innerHTML: option.icon,
|
|
328491
328497
|
style: exports_vue.normalizeStyle(option.style)
|
|
328492
328498
|
}, null, 12, _hoisted_2$12), isActive$1.value(option) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
328493
328499
|
key: 0,
|
|
328494
|
-
class: "option__check",
|
|
328500
|
+
class: "sd-option__check",
|
|
328495
328501
|
innerHTML: exports_vue.unref(toolbarIcons).colorOptionCheck,
|
|
328496
328502
|
style: exports_vue.normalizeStyle(getCheckStyle(option.value, optionIndex))
|
|
328497
328503
|
}, null, 12, _hoisted_3$9)) : exports_vue.createCommentVNode("", true)], 40, _hoisted_1$15);
|
|
@@ -328499,7 +328505,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328499
328505
|
}), 128);
|
|
328500
328506
|
};
|
|
328501
328507
|
}
|
|
328502
|
-
}, [["__scopeId", "data-v-
|
|
328508
|
+
}, [["__scopeId", "data-v-30cad300"]]);
|
|
328503
328509
|
_hoisted_1$14 = { class: "options-grid-wrap" };
|
|
328504
328510
|
_hoisted_2$11 = ["innerHTML"];
|
|
328505
328511
|
_hoisted_3$8 = { class: "option-grid-ctn" };
|
|
@@ -328655,9 +328661,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328655
328661
|
let itemsCols = parseInt(item.dataset.cols, 10);
|
|
328656
328662
|
let itemsRows = parseInt(item.dataset.rows, 10);
|
|
328657
328663
|
if (itemsCols <= cols && itemsRows <= rows)
|
|
328658
|
-
item.classList.add("selected");
|
|
328664
|
+
item.classList.add("sd-selected");
|
|
328659
328665
|
else
|
|
328660
|
-
item.classList.remove("selected");
|
|
328666
|
+
item.classList.remove("sd-selected");
|
|
328661
328667
|
}
|
|
328662
328668
|
};
|
|
328663
328669
|
const handleClick$1 = ({ cols, rows }) => {
|
|
@@ -328750,7 +328756,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328750
328756
|
}, exports_vue.toDisplayString(selectedRows.value) + " x " + exports_vue.toDisplayString(selectedCols.value), 9, _hoisted_2$10)], 2);
|
|
328751
328757
|
};
|
|
328752
328758
|
}
|
|
328753
|
-
}, [["__scopeId", "data-v-
|
|
328759
|
+
}, [["__scopeId", "data-v-168b91ce"]]);
|
|
328754
328760
|
_hoisted_1$12 = { class: "toolbar-table-actions" };
|
|
328755
328761
|
_hoisted_2$9 = [
|
|
328756
328762
|
"onClick",
|
|
@@ -328786,7 +328792,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328786
328792
|
}
|
|
328787
328793
|
}, [["__scopeId", "data-v-652015c8"]]);
|
|
328788
328794
|
_hoisted_1$11 = { class: "search-input-ctn" };
|
|
328789
|
-
_hoisted_2$8 = { class: "row" };
|
|
328795
|
+
_hoisted_2$8 = { class: "sd-row" };
|
|
328790
328796
|
_hoisted_3$6 = ["onKeydown"];
|
|
328791
328797
|
SearchInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
328792
328798
|
__name: "SearchInput",
|
|
@@ -328807,13 +328813,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328807
328813
|
name: "search",
|
|
328808
328814
|
placeholder: "Type search string",
|
|
328809
328815
|
onKeydown: exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"])
|
|
328810
|
-
}, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "row submit" }, [exports_vue.createElementVNode("button", {
|
|
328811
|
-
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",
|
|
328812
328818
|
onClick: handleSubmit
|
|
328813
328819
|
}, "Apply")])]);
|
|
328814
328820
|
};
|
|
328815
328821
|
}
|
|
328816
|
-
}, [["__scopeId", "data-v-
|
|
328822
|
+
}, [["__scopeId", "data-v-d25821a5"]]);
|
|
328817
328823
|
TOOLBAR_FONTS = [
|
|
328818
328824
|
{
|
|
328819
328825
|
label: "Georgia",
|
|
@@ -328980,7 +328986,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
328980
328986
|
HEADLESS_TOOLBAR_COMMANDS = [...new Set([...Object.values(HEADLESS_ITEM_MAP), ...TABLE_ACTION_COMMAND_IDS])];
|
|
328981
328987
|
NON_HEADLESS_EXECUTE_ITEM_NAMES = new Set(["link"]);
|
|
328982
328988
|
HEADLESS_EXECUTE_ITEMS = new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
|
|
328983
|
-
_hoisted_1$10 = { class: "toolbar-icon" };
|
|
328989
|
+
_hoisted_1$10 = { class: "sd-toolbar-icon" };
|
|
328984
328990
|
_hoisted_2$7 = ["innerHTML"];
|
|
328985
328991
|
ToolbarButtonIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
328986
328992
|
__name: "ToolbarButtonIcon",
|
|
@@ -329011,7 +329017,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329011
329017
|
});
|
|
329012
329018
|
return (_ctx, _cache) => {
|
|
329013
329019
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_1$10, [exports_vue.createElementVNode("div", {
|
|
329014
|
-
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}`]]),
|
|
329015
329021
|
innerHTML: __props.icon
|
|
329016
329022
|
}, null, 10, _hoisted_2$7), hasColorBar.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329017
329023
|
key: 0,
|
|
@@ -329020,19 +329026,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329020
329026
|
}, null, 4)) : exports_vue.createCommentVNode("", true)]);
|
|
329021
329027
|
};
|
|
329022
329028
|
}
|
|
329023
|
-
}, [["__scopeId", "data-v-
|
|
329029
|
+
}, [["__scopeId", "data-v-521c3d93"]]);
|
|
329024
329030
|
_hoisted_1$9 = ["role", "aria-label"];
|
|
329025
329031
|
_hoisted_2$6 = ["data-item"];
|
|
329026
329032
|
_hoisted_3$5 = ["data-item"];
|
|
329027
329033
|
_hoisted_4$4 = {
|
|
329028
329034
|
key: 1,
|
|
329029
|
-
class: "button-label"
|
|
329035
|
+
class: "sd-button-label"
|
|
329030
329036
|
};
|
|
329031
329037
|
_hoisted_5$2 = ["data-item", "aria-label"];
|
|
329032
329038
|
_hoisted_6$1 = ["innerHTML"];
|
|
329033
329039
|
_hoisted_7$1 = {
|
|
329034
329040
|
key: 1,
|
|
329035
|
-
class: "button-label"
|
|
329041
|
+
class: "sd-button-label"
|
|
329036
329042
|
};
|
|
329037
329043
|
_hoisted_8 = { key: 2 };
|
|
329038
329044
|
_hoisted_9 = ["onKeydown", "id"];
|
|
@@ -329044,7 +329050,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329044
329050
|
_hoisted_11 = ["innerHTML"];
|
|
329045
329051
|
_hoisted_12 = {
|
|
329046
329052
|
"aria-live": "polite",
|
|
329047
|
-
class: "visually-hidden"
|
|
329053
|
+
class: "sd-visually-hidden"
|
|
329048
329054
|
};
|
|
329049
329055
|
ToolbarButton_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
329050
329056
|
__name: "ToolbarButton",
|
|
@@ -329142,17 +329148,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329142
329148
|
});
|
|
329143
329149
|
return (_ctx, _cache) => {
|
|
329144
329150
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329145
|
-
class: exports_vue.normalizeClass(["toolbar-item", exports_vue.unref(attributes).className]),
|
|
329151
|
+
class: exports_vue.normalizeClass(["sd-toolbar-item", exports_vue.unref(attributes).className]),
|
|
329146
329152
|
style: exports_vue.normalizeStyle(getStyle.value),
|
|
329147
329153
|
role: __props.isOverflowItem ? "menuitem" : "button",
|
|
329148
329154
|
"aria-label": exports_vue.unref(attributes).ariaLabel,
|
|
329155
|
+
"data-sd-part": "toolbar-item",
|
|
329149
329156
|
onClick: handleOuterClick,
|
|
329150
329157
|
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(($event) => onEnterKeydown($event), ["enter"])),
|
|
329151
329158
|
tabindex: "0"
|
|
329152
329159
|
}, [exports_vue.createElementVNode("div", {
|
|
329153
|
-
class: exports_vue.normalizeClass(["toolbar-button", {
|
|
329154
|
-
active: exports_vue.unref(active),
|
|
329155
|
-
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),
|
|
329156
329163
|
narrow: __props.isNarrow,
|
|
329157
329164
|
wide: __props.isWide,
|
|
329158
329165
|
split: isSplit.value,
|
|
@@ -329163,13 +329170,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329163
329170
|
}, [
|
|
329164
329171
|
isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329165
329172
|
key: 0,
|
|
329166
|
-
class: "toolbar-button__main",
|
|
329173
|
+
class: "sd-toolbar-button__main",
|
|
329167
329174
|
"data-item": `btn-${exports_vue.unref(name) || ""}-main`,
|
|
329168
329175
|
onClick: _cache[0] || (_cache[0] = ($event) => handleSplitMainClick($event))
|
|
329169
329176
|
}, [exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
|
|
329170
329177
|
key: 0,
|
|
329171
329178
|
color: exports_vue.unref(iconColor),
|
|
329172
|
-
class: "toolbar-icon",
|
|
329179
|
+
class: "sd-toolbar-icon",
|
|
329173
329180
|
icon: exports_vue.unref(icon),
|
|
329174
329181
|
name: exports_vue.unref(name)
|
|
329175
329182
|
}, null, 8, [
|
|
@@ -329179,19 +329186,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329179
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),
|
|
329180
329187
|
isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329181
329188
|
key: 1,
|
|
329182
|
-
class: "toolbar-button__caret",
|
|
329189
|
+
class: "sd-toolbar-button__caret",
|
|
329183
329190
|
"data-item": `btn-${exports_vue.unref(name) || ""}-caret`,
|
|
329184
329191
|
"aria-label": `${exports_vue.unref(attributes).ariaLabel} options`,
|
|
329185
329192
|
role: "button"
|
|
329186
329193
|
}, [exports_vue.createElementVNode("div", {
|
|
329187
|
-
class: "dropdown-caret",
|
|
329194
|
+
class: "sd-dropdown-caret",
|
|
329188
329195
|
innerHTML: caretIcon.value,
|
|
329189
329196
|
style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
|
|
329190
329197
|
}, null, 12, _hoisted_6$1)], 8, _hoisted_5$2)) : (exports_vue.openBlock(), exports_vue.createElementBlock(exports_vue.Fragment, { key: 2 }, [
|
|
329191
329198
|
exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
|
|
329192
329199
|
key: 0,
|
|
329193
329200
|
color: exports_vue.unref(iconColor),
|
|
329194
|
-
class: "toolbar-icon",
|
|
329201
|
+
class: "sd-toolbar-icon",
|
|
329195
329202
|
icon: exports_vue.unref(icon),
|
|
329196
329203
|
name: exports_vue.unref(name)
|
|
329197
329204
|
}, null, 8, [
|
|
@@ -329224,7 +329231,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329224
329231
|
}, null, 40, _hoisted_10)), [[exports_vue.vModelText, inlineTextInput.value]])])) : exports_vue.createCommentVNode("", true),
|
|
329225
329232
|
exports_vue.unref(hasCaret) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
329226
329233
|
key: 3,
|
|
329227
|
-
class: "dropdown-caret",
|
|
329234
|
+
class: "sd-dropdown-caret",
|
|
329228
329235
|
innerHTML: caretIcon.value,
|
|
329229
329236
|
style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
|
|
329230
329237
|
}, null, 12, _hoisted_11)) : exports_vue.createCommentVNode("", true)
|
|
@@ -329233,7 +329240,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329233
329240
|
], 10, _hoisted_2$6)], 46, _hoisted_1$9);
|
|
329234
329241
|
};
|
|
329235
329242
|
}
|
|
329236
|
-
}, [["__scopeId", "data-v-
|
|
329243
|
+
}, [["__scopeId", "data-v-360f6a95"]]);
|
|
329237
329244
|
_hoisted_1$8 = {
|
|
329238
329245
|
class: "toolbar-separator",
|
|
329239
329246
|
role: "separator",
|
|
@@ -329470,11 +329477,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329470
329477
|
if (!value)
|
|
329471
329478
|
return false;
|
|
329472
329479
|
if (typeof value === "string")
|
|
329473
|
-
return value.split(/\s+/).includes("selected");
|
|
329480
|
+
return value.split(/\s+/).includes("sd-selected");
|
|
329474
329481
|
if (Array.isArray(value))
|
|
329475
329482
|
return value.some(classHasSelected);
|
|
329476
329483
|
if (typeof value === "object")
|
|
329477
|
-
return Boolean(value
|
|
329484
|
+
return Boolean(value["sd-selected"]);
|
|
329478
329485
|
return false;
|
|
329479
329486
|
};
|
|
329480
329487
|
const isOptionSelected = (option) => {
|
|
@@ -329665,12 +329672,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329665
329672
|
ref_key: "triggerRef",
|
|
329666
329673
|
ref: triggerRef,
|
|
329667
329674
|
class: "toolbar-dropdown-trigger",
|
|
329675
|
+
"data-sd-part": "dropdown-trigger",
|
|
329668
329676
|
onClick: onTriggerClick
|
|
329669
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" }, {
|
|
329670
329678
|
default: exports_vue.withCtx(() => [isOpen.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", exports_vue.mergeProps({
|
|
329671
329679
|
key: 0,
|
|
329672
329680
|
ref_key: "menuRef",
|
|
329673
329681
|
ref: menuRef,
|
|
329682
|
+
"data-sd-part": "dropdown-menu",
|
|
329674
329683
|
class: mergedMenuClass.value,
|
|
329675
329684
|
style: menuStyle.value
|
|
329676
329685
|
}, computedMenuAttrs.value), [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.options, (option, index2) => {
|
|
@@ -329682,8 +329691,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329682
329691
|
option.class,
|
|
329683
329692
|
option.props?.class,
|
|
329684
329693
|
{
|
|
329685
|
-
disabled: option.disabled,
|
|
329686
|
-
render: isRenderOption(option)
|
|
329694
|
+
"sd-disabled": option.disabled,
|
|
329695
|
+
"sd-render": isRenderOption(option)
|
|
329687
329696
|
}
|
|
329688
329697
|
]],
|
|
329689
329698
|
tabindex: "-1",
|
|
@@ -329700,7 +329709,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
329700
329709
|
})]))]);
|
|
329701
329710
|
};
|
|
329702
329711
|
}
|
|
329703
|
-
}, [["__scopeId", "data-v-
|
|
329712
|
+
}, [["__scopeId", "data-v-302f7d86"]]);
|
|
329704
329713
|
SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
329705
329714
|
__name: "SdTooltip",
|
|
329706
329715
|
props: {
|
|
@@ -330051,7 +330060,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330051
330060
|
...option,
|
|
330052
330061
|
props: {
|
|
330053
330062
|
...option.props,
|
|
330054
|
-
class: isSelected ? "selected" : ""
|
|
330063
|
+
class: isSelected ? "sd-selected" : ""
|
|
330055
330064
|
}
|
|
330056
330065
|
};
|
|
330057
330066
|
});
|
|
@@ -330064,7 +330073,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330064
330073
|
};
|
|
330065
330074
|
const moveToNextButton = (e) => {
|
|
330066
330075
|
const currentButton = e.target;
|
|
330067
|
-
const nextButton = e.target.closest(".toolbar-item-ctn").nextElementSibling;
|
|
330076
|
+
const nextButton = e.target.closest(".sd-toolbar-item-ctn").nextElementSibling;
|
|
330068
330077
|
if (nextButton) {
|
|
330069
330078
|
currentButton.setAttribute("tabindex", "-1");
|
|
330070
330079
|
nextButton.setAttribute("tabindex", "0");
|
|
@@ -330073,7 +330082,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330073
330082
|
};
|
|
330074
330083
|
const moveToPreviousButton = (e) => {
|
|
330075
330084
|
const currentButton = e.target;
|
|
330076
|
-
const previousButton = e.target.closest(".toolbar-item-ctn").previousElementSibling;
|
|
330085
|
+
const previousButton = e.target.closest(".sd-toolbar-item-ctn").previousElementSibling;
|
|
330077
330086
|
if (previousButton) {
|
|
330078
330087
|
currentButton.setAttribute("tabindex", "-1");
|
|
330079
330088
|
previousButton.setAttribute("tabindex", "0");
|
|
@@ -330151,7 +330160,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330151
330160
|
}
|
|
330152
330161
|
};
|
|
330153
330162
|
const handleFocus = (e) => {
|
|
330154
|
-
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("disabled"));
|
|
330163
|
+
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("sd-disabled"));
|
|
330155
330164
|
if (firstButton) {
|
|
330156
330165
|
firstButton.setAttribute("tabindex", "0");
|
|
330157
330166
|
firstButton.focus();
|
|
@@ -330207,8 +330216,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330207
330216
|
class: exports_vue.normalizeClass([{
|
|
330208
330217
|
narrow: item.isNarrow.value,
|
|
330209
330218
|
wide: item.isWide.value,
|
|
330210
|
-
disabled: item.disabled.value
|
|
330211
|
-
}, "toolbar-item-ctn"]),
|
|
330219
|
+
"sd-disabled": item.disabled.value
|
|
330220
|
+
}, "sd-toolbar-item-ctn"]),
|
|
330212
330221
|
onKeydown: (e) => handleKeyDown$1(e, item),
|
|
330213
330222
|
ref_for: true,
|
|
330214
330223
|
ref_key: "toolbarItemRefs",
|
|
@@ -330227,7 +330236,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330227
330236
|
show: getExpanded(item),
|
|
330228
330237
|
"content-style": { fontFamily: props.uiFontFamily },
|
|
330229
330238
|
placement: "bottom-start",
|
|
330230
|
-
class: "toolbar-button sd-editor-toolbar-dropdown",
|
|
330239
|
+
class: "sd-toolbar-button sd-editor-toolbar-dropdown",
|
|
330231
330240
|
onSelect: (key2, option) => handleSelect(item, option),
|
|
330232
330241
|
"onUpdate:show": (open) => handleDropdownUpdateShowForItem(open, item),
|
|
330233
330242
|
style: exports_vue.normalizeStyle(item.dropdownStyles.value),
|
|
@@ -330304,7 +330313,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330304
330313
|
}), 128))], 36);
|
|
330305
330314
|
};
|
|
330306
330315
|
}
|
|
330307
|
-
}, [["__scopeId", "data-v-
|
|
330316
|
+
}, [["__scopeId", "data-v-9c3524ec"]]);
|
|
330308
330317
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
330309
330318
|
__name: "Toolbar",
|
|
330310
330319
|
emits: [
|
|
@@ -330398,6 +330407,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330398
330407
|
key: exports_vue.unref(toolbarKey),
|
|
330399
330408
|
role: "toolbar",
|
|
330400
330409
|
"aria-label": "Toolbar",
|
|
330410
|
+
"data-sd-part": "toolbar",
|
|
330401
330411
|
"data-editor-ui-surface": "",
|
|
330402
330412
|
onMousedown: handleToolbarMousedown
|
|
330403
330413
|
}, [
|
|
@@ -330449,7 +330459,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
330449
330459
|
], 32);
|
|
330450
330460
|
};
|
|
330451
330461
|
}
|
|
330452
|
-
}, [["__scopeId", "data-v-
|
|
330462
|
+
}, [["__scopeId", "data-v-b83d488a"]]);
|
|
330453
330463
|
toolbarTexts = {
|
|
330454
330464
|
bold: "Bold",
|
|
330455
330465
|
fontFamily: "Font",
|
|
@@ -342891,7 +342901,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
342891
342901
|
|
|
342892
342902
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342893
342903
|
var init_super_editor_es = __esm(() => {
|
|
342894
|
-
|
|
342904
|
+
init_src_Bm0BRA0C_es();
|
|
342895
342905
|
init_SuperConverter_C6hKp29w_es();
|
|
342896
342906
|
init_jszip_C49i9kUs_es();
|
|
342897
342907
|
init_xml_js_CqGKpaft_es();
|
|
@@ -464755,7 +464765,7 @@ var DEFAULT_SELECTION_STATE2, normalizeSelectionState2 = (state = {}) => ({
|
|
|
464755
464765
|
}, isToolbarInput2 = (target) => {
|
|
464756
464766
|
return !!target?.closest(".button-text-input") || target?.classList?.contains("button-text-input");
|
|
464757
464767
|
}, isToolbarButton2 = (target) => {
|
|
464758
|
-
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");
|
|
464759
464769
|
}, CustomSelection2;
|
|
464760
464770
|
var init_custom_selection = __esm(() => {
|
|
464761
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.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -19,9 +19,9 @@
|
|
|
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",
|
|
24
|
-
"superdoc": "1.37.0"
|
|
23
|
+
"superdoc": "1.37.0",
|
|
24
|
+
"@superdoc/document-api": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|