@superdoc-dev/cli 0.15.0-next.12 → 0.15.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 +68 -64
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -221759,7 +221759,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
221759
221759
|
init_remark_gfm_BhnWr3yf_es();
|
|
221760
221760
|
});
|
|
221761
221761
|
|
|
221762
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
221762
|
+
// ../../packages/superdoc/dist/chunks/src-Bm0BRA0C.es.js
|
|
221763
221763
|
function deleteProps(obj, propOrProps) {
|
|
221764
221764
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
221765
221765
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -282480,7 +282480,7 @@ var Node$13 = class Node$14 {
|
|
|
282480
282480
|
}, isToolbarInput = (target) => {
|
|
282481
282481
|
return !!target?.closest(".button-text-input") || target?.classList?.contains("button-text-input");
|
|
282482
282482
|
}, isToolbarButton = (target) => {
|
|
282483
|
-
return !!target?.closest(".toolbar-button") || target?.classList?.contains("toolbar-button");
|
|
282483
|
+
return !!target?.closest(".sd-toolbar-button") || !!target?.closest(".toolbar-button") || target?.classList?.contains("sd-toolbar-button") || target?.classList?.contains("toolbar-button");
|
|
282484
282484
|
}, CustomSelection, History, createUndoPlugin = () => {
|
|
282485
282485
|
return yUndoPlugin();
|
|
282486
282486
|
}, Color, FontFamily, FontSize, LetterSpacing, TextAlign, toggleMarkCascade = (markName, options = {}) => ({ state, chain, editor }) => {
|
|
@@ -295880,7 +295880,7 @@ var Node$13 = class Node$14 {
|
|
|
295880
295880
|
disabled: role !== "editor",
|
|
295881
295881
|
attributes: {
|
|
295882
295882
|
dropdownPosition: "right",
|
|
295883
|
-
className: "toolbar-item--doc-mode",
|
|
295883
|
+
className: "sd-toolbar-item--doc-mode",
|
|
295884
295884
|
ariaLabel: "Document mode"
|
|
295885
295885
|
},
|
|
295886
295886
|
options: [{
|
|
@@ -295968,7 +295968,7 @@ var Node$13 = class Node$14 {
|
|
|
295968
295968
|
suppressActiveHighlight: true,
|
|
295969
295969
|
disabled: false,
|
|
295970
295970
|
attributes: {
|
|
295971
|
-
className: "toolbar-item--linked-styles",
|
|
295971
|
+
className: "sd-toolbar-item--linked-styles",
|
|
295972
295972
|
ariaLabel: "Linked styles"
|
|
295973
295973
|
},
|
|
295974
295974
|
options: [{
|
|
@@ -296065,12 +296065,12 @@ var Node$13 = class Node$14 {
|
|
|
296065
296065
|
if (shouldUseLgCompactStyles)
|
|
296066
296066
|
documentMode.attributes.value = {
|
|
296067
296067
|
...documentMode.attributes.value,
|
|
296068
|
-
className: `${documentMode.attributes.value.className} toolbar-item--doc-mode-compact`
|
|
296068
|
+
className: `${documentMode.attributes.value.className} sd-toolbar-item--doc-mode-compact`
|
|
296069
296069
|
};
|
|
296070
296070
|
if (shouldUseLgCompactStyles)
|
|
296071
296071
|
linkedStyles.attributes.value = {
|
|
296072
296072
|
...linkedStyles.attributes.value,
|
|
296073
|
-
className: `${linkedStyles.attributes.value.className} toolbar-item--linked-styles-compact`
|
|
296073
|
+
className: `${linkedStyles.attributes.value.className} sd-toolbar-item--linked-styles-compact`
|
|
296074
296074
|
};
|
|
296075
296075
|
let toolbarItems = [
|
|
296076
296076
|
undo$2,
|
|
@@ -318929,7 +318929,7 @@ menclose::after {
|
|
|
318929
318929
|
return;
|
|
318930
318930
|
console.log(...args$1);
|
|
318931
318931
|
}, 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;
|
|
318932
|
-
var
|
|
318932
|
+
var init_src_Bm0BRA0C_es = __esm(() => {
|
|
318933
318933
|
init_rolldown_runtime_Bg48TavK_es();
|
|
318934
318934
|
init_SuperConverter_C6hKp29w_es();
|
|
318935
318935
|
init_jszip_C49i9kUs_es();
|
|
@@ -336674,12 +336674,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
336674
336674
|
onMouseenter: ($event) => activeUserIndex.value = index2,
|
|
336675
336675
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => activeUserIndex.value = null),
|
|
336676
336676
|
key: user.email,
|
|
336677
|
-
class: exports_vue.normalizeClass(["user-row", { selected: activeUserIndex.value === index2 }])
|
|
336677
|
+
class: exports_vue.normalizeClass(["user-row", { "sd-selected": activeUserIndex.value === index2 }])
|
|
336678
336678
|
}, [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);
|
|
336679
336679
|
}), 128))], 544);
|
|
336680
336680
|
};
|
|
336681
336681
|
}
|
|
336682
|
-
}, [["__scopeId", "data-v-
|
|
336682
|
+
}, [["__scopeId", "data-v-b9684aad"]]);
|
|
336683
336683
|
popoverPluginKey = new PluginKey("popoverPlugin");
|
|
336684
336684
|
PopoverPlugin = Extension.create({
|
|
336685
336685
|
name: "popoverPlugin",
|
|
@@ -338146,7 +338146,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338146
338146
|
}, null, 8, _hoisted_5$6)) : exports_vue.createCommentVNode("", true)])], 544);
|
|
338147
338147
|
};
|
|
338148
338148
|
}
|
|
338149
|
-
}, [["__scopeId", "data-v-
|
|
338149
|
+
}, [["__scopeId", "data-v-5444b0c8"]]);
|
|
338150
338150
|
isHighContrastMode = exports_vue.ref(false);
|
|
338151
338151
|
toolbarIcons = {
|
|
338152
338152
|
undo: rotate_left_solid_default,
|
|
@@ -338310,7 +338310,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338310
338310
|
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) => {
|
|
338311
338311
|
return exports_vue.createElementVNode("div", {
|
|
338312
338312
|
key: button.key,
|
|
338313
|
-
class: "button-icon",
|
|
338313
|
+
class: "sd-button-icon",
|
|
338314
338314
|
onClick: ($event) => select2(button.key),
|
|
338315
338315
|
innerHTML: button.icon,
|
|
338316
338316
|
"data-item": "btn-textAlign-option",
|
|
@@ -338324,7 +338324,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338324
338324
|
}), 64))], 2);
|
|
338325
338325
|
};
|
|
338326
338326
|
}
|
|
338327
|
-
}, [["__scopeId", "data-v-
|
|
338327
|
+
}, [["__scopeId", "data-v-ceb338e0"]]);
|
|
338328
338328
|
_hoisted_1$19 = [
|
|
338329
338329
|
"onClick",
|
|
338330
338330
|
"innerHTML",
|
|
@@ -338404,7 +338404,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338404
338404
|
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) => {
|
|
338405
338405
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
338406
338406
|
key: button.key,
|
|
338407
|
-
class: exports_vue.normalizeClass(["button-icon", { selected: props.selectedStyle === button.key }]),
|
|
338407
|
+
class: exports_vue.normalizeClass(["sd-button-icon", { "sd-selected": props.selectedStyle === button.key }]),
|
|
338408
338408
|
style: exports_vue.normalizeStyle(iconStyle.value),
|
|
338409
338409
|
onClick: ($event) => select2(button.key),
|
|
338410
338410
|
innerHTML: button.icon,
|
|
@@ -338418,7 +338418,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338418
338418
|
}), 128))], 2);
|
|
338419
338419
|
};
|
|
338420
338420
|
}
|
|
338421
|
-
}, [["__scopeId", "data-v-
|
|
338421
|
+
}, [["__scopeId", "data-v-701c1d54"]]);
|
|
338422
338422
|
bulletStyleButtons = [
|
|
338423
338423
|
{
|
|
338424
338424
|
key: "disc",
|
|
@@ -338536,7 +338536,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338536
338536
|
return (_ctx, _cache) => {
|
|
338537
338537
|
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) => {
|
|
338538
338538
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
338539
|
-
class: exports_vue.normalizeClass(["option-item", { disabled: option.disabled }]),
|
|
338539
|
+
class: exports_vue.normalizeClass(["sd-option-item", { "sd-disabled": option.disabled }]),
|
|
338540
338540
|
onClick: ($event) => handleClick$1(option),
|
|
338541
338541
|
"data-item": "btn-documentMode-option",
|
|
338542
338542
|
role: "menuitem",
|
|
@@ -338551,7 +338551,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338551
338551
|
}), 256))], 2);
|
|
338552
338552
|
};
|
|
338553
338553
|
}
|
|
338554
|
-
}, [["__scopeId", "data-v-
|
|
338554
|
+
}, [["__scopeId", "data-v-abd514d9"]]);
|
|
338555
338555
|
_hoisted_1$17 = {
|
|
338556
338556
|
key: 0,
|
|
338557
338557
|
class: "linked-style-buttons",
|
|
@@ -338853,13 +338853,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338853
338853
|
type: "text",
|
|
338854
338854
|
name: "link",
|
|
338855
338855
|
placeholder: "Type or paste a link",
|
|
338856
|
-
class: exports_vue.normalizeClass({ error: urlError.value }),
|
|
338856
|
+
class: exports_vue.normalizeClass({ "sd-error": urlError.value }),
|
|
338857
338857
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rawUrl.value = $event),
|
|
338858
338858
|
readonly: isViewingMode.value,
|
|
338859
338859
|
onKeydown: [exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"]), _cache[3] || (_cache[3] = ($event) => urlError.value = false)]
|
|
338860
338860
|
}, null, 42, _hoisted_10$1), [[exports_vue.vModelText, rawUrl.value]]),
|
|
338861
338861
|
exports_vue.createElementVNode("div", {
|
|
338862
|
-
class: exports_vue.normalizeClass(["open-link-icon", { disabled: !validUrl.value }]),
|
|
338862
|
+
class: exports_vue.normalizeClass(["open-link-icon", { "sd-disabled": !validUrl.value }]),
|
|
338863
338863
|
innerHTML: exports_vue.unref(toolbarIcons).openLink,
|
|
338864
338864
|
onClick: openLink,
|
|
338865
338865
|
"data-item": "btn-link-open"
|
|
@@ -338874,14 +338874,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338874
338874
|
class: "remove-btn__icon",
|
|
338875
338875
|
innerHTML: exports_vue.unref(toolbarIcons).removeLink
|
|
338876
338876
|
}, null, 8, _hoisted_13), _cache[6] || (_cache[6] = exports_vue.createTextVNode(" Remove ", -1))])) : exports_vue.createCommentVNode("", true), exports_vue.createElementVNode("button", {
|
|
338877
|
-
class: exports_vue.normalizeClass(["submit-btn", { "disable-btn": isDisabled.value }]),
|
|
338877
|
+
class: exports_vue.normalizeClass(["sd-submit-btn", { "disable-btn": isDisabled.value }]),
|
|
338878
338878
|
onClick: handleSubmit,
|
|
338879
338879
|
"data-item": "btn-link-apply"
|
|
338880
338880
|
}, " Apply ", 2)])) : exports_vue.createCommentVNode("", true)
|
|
338881
338881
|
])) : 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);
|
|
338882
338882
|
};
|
|
338883
338883
|
}
|
|
338884
|
-
}, [["__scopeId", "data-v-
|
|
338884
|
+
}, [["__scopeId", "data-v-c490d677"]]);
|
|
338885
338885
|
_hoisted_1$15 = [
|
|
338886
338886
|
"aria-label",
|
|
338887
338887
|
"onClick",
|
|
@@ -338988,7 +338988,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338988
338988
|
return (_ctx, _cache) => {
|
|
338989
338989
|
return exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.icons, (row2, rowIndex) => {
|
|
338990
338990
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
338991
|
-
class: "option-row",
|
|
338991
|
+
class: "sd-option-row",
|
|
338992
338992
|
key: rowIndex,
|
|
338993
338993
|
role: "group",
|
|
338994
338994
|
ref_for: true,
|
|
@@ -338996,7 +338996,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
338996
338996
|
ref: rowRefs
|
|
338997
338997
|
}, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(row2, (option, optionIndex) => {
|
|
338998
338998
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
338999
|
-
class: "option",
|
|
338999
|
+
class: "sd-option",
|
|
339000
339000
|
key: optionIndex,
|
|
339001
339001
|
"aria-label": option.label,
|
|
339002
339002
|
role: "menuitem",
|
|
@@ -339006,12 +339006,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339006
339006
|
onClick: exports_vue.withModifiers(($event) => handleClick$1(option), ["stop", "prevent"]),
|
|
339007
339007
|
onKeydown: exports_vue.withModifiers((event) => handleKeyDown$1(event, rowIndex, optionIndex, option), ["prevent"])
|
|
339008
339008
|
}, [exports_vue.createElementVNode("div", {
|
|
339009
|
-
class: "option__icon",
|
|
339009
|
+
class: "sd-option__icon",
|
|
339010
339010
|
innerHTML: option.icon,
|
|
339011
339011
|
style: exports_vue.normalizeStyle(option.style)
|
|
339012
339012
|
}, null, 12, _hoisted_2$12), isActive$1.value(option) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
339013
339013
|
key: 0,
|
|
339014
|
-
class: "option__check",
|
|
339014
|
+
class: "sd-option__check",
|
|
339015
339015
|
innerHTML: exports_vue.unref(toolbarIcons).colorOptionCheck,
|
|
339016
339016
|
style: exports_vue.normalizeStyle(getCheckStyle(option.value, optionIndex))
|
|
339017
339017
|
}, null, 12, _hoisted_3$9)) : exports_vue.createCommentVNode("", true)], 40, _hoisted_1$15);
|
|
@@ -339019,7 +339019,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339019
339019
|
}), 128);
|
|
339020
339020
|
};
|
|
339021
339021
|
}
|
|
339022
|
-
}, [["__scopeId", "data-v-
|
|
339022
|
+
}, [["__scopeId", "data-v-30cad300"]]);
|
|
339023
339023
|
_hoisted_1$14 = { class: "options-grid-wrap" };
|
|
339024
339024
|
_hoisted_2$11 = ["innerHTML"];
|
|
339025
339025
|
_hoisted_3$8 = { class: "option-grid-ctn" };
|
|
@@ -339175,9 +339175,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339175
339175
|
let itemsCols = parseInt(item.dataset.cols, 10);
|
|
339176
339176
|
let itemsRows = parseInt(item.dataset.rows, 10);
|
|
339177
339177
|
if (itemsCols <= cols && itemsRows <= rows)
|
|
339178
|
-
item.classList.add("selected");
|
|
339178
|
+
item.classList.add("sd-selected");
|
|
339179
339179
|
else
|
|
339180
|
-
item.classList.remove("selected");
|
|
339180
|
+
item.classList.remove("sd-selected");
|
|
339181
339181
|
}
|
|
339182
339182
|
};
|
|
339183
339183
|
const handleClick$1 = ({ cols, rows }) => {
|
|
@@ -339270,7 +339270,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339270
339270
|
}, exports_vue.toDisplayString(selectedRows.value) + " x " + exports_vue.toDisplayString(selectedCols.value), 9, _hoisted_2$10)], 2);
|
|
339271
339271
|
};
|
|
339272
339272
|
}
|
|
339273
|
-
}, [["__scopeId", "data-v-
|
|
339273
|
+
}, [["__scopeId", "data-v-168b91ce"]]);
|
|
339274
339274
|
_hoisted_1$12 = { class: "toolbar-table-actions" };
|
|
339275
339275
|
_hoisted_2$9 = [
|
|
339276
339276
|
"onClick",
|
|
@@ -339306,7 +339306,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339306
339306
|
}
|
|
339307
339307
|
}, [["__scopeId", "data-v-652015c8"]]);
|
|
339308
339308
|
_hoisted_1$11 = { class: "search-input-ctn" };
|
|
339309
|
-
_hoisted_2$8 = { class: "row" };
|
|
339309
|
+
_hoisted_2$8 = { class: "sd-row" };
|
|
339310
339310
|
_hoisted_3$6 = ["onKeydown"];
|
|
339311
339311
|
SearchInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
339312
339312
|
__name: "SearchInput",
|
|
@@ -339327,13 +339327,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339327
339327
|
name: "search",
|
|
339328
339328
|
placeholder: "Type search string",
|
|
339329
339329
|
onKeydown: exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"])
|
|
339330
|
-
}, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "row submit" }, [exports_vue.createElementVNode("button", {
|
|
339331
|
-
class: "submit-btn",
|
|
339330
|
+
}, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "sd-row sd-submit" }, [exports_vue.createElementVNode("button", {
|
|
339331
|
+
class: "sd-submit-btn",
|
|
339332
339332
|
onClick: handleSubmit
|
|
339333
339333
|
}, "Apply")])]);
|
|
339334
339334
|
};
|
|
339335
339335
|
}
|
|
339336
|
-
}, [["__scopeId", "data-v-
|
|
339336
|
+
}, [["__scopeId", "data-v-d25821a5"]]);
|
|
339337
339337
|
TOOLBAR_FONTS = [
|
|
339338
339338
|
{
|
|
339339
339339
|
label: "Georgia",
|
|
@@ -339500,7 +339500,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339500
339500
|
HEADLESS_TOOLBAR_COMMANDS = [...new Set([...Object.values(HEADLESS_ITEM_MAP), ...TABLE_ACTION_COMMAND_IDS])];
|
|
339501
339501
|
NON_HEADLESS_EXECUTE_ITEM_NAMES = new Set(["link"]);
|
|
339502
339502
|
HEADLESS_EXECUTE_ITEMS = new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
|
|
339503
|
-
_hoisted_1$10 = { class: "toolbar-icon" };
|
|
339503
|
+
_hoisted_1$10 = { class: "sd-toolbar-icon" };
|
|
339504
339504
|
_hoisted_2$7 = ["innerHTML"];
|
|
339505
339505
|
ToolbarButtonIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
339506
339506
|
__name: "ToolbarButtonIcon",
|
|
@@ -339531,7 +339531,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339531
339531
|
});
|
|
339532
339532
|
return (_ctx, _cache) => {
|
|
339533
339533
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_1$10, [exports_vue.createElementVNode("div", {
|
|
339534
|
-
class: exports_vue.normalizeClass(["toolbar-icon__icon", [`toolbar-icon__icon--${props.name}`]]),
|
|
339534
|
+
class: exports_vue.normalizeClass(["sd-toolbar-icon__icon", [`sd-toolbar-icon__icon--${props.name}`]]),
|
|
339535
339535
|
innerHTML: __props.icon
|
|
339536
339536
|
}, null, 10, _hoisted_2$7), hasColorBar.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
339537
339537
|
key: 0,
|
|
@@ -339540,19 +339540,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339540
339540
|
}, null, 4)) : exports_vue.createCommentVNode("", true)]);
|
|
339541
339541
|
};
|
|
339542
339542
|
}
|
|
339543
|
-
}, [["__scopeId", "data-v-
|
|
339543
|
+
}, [["__scopeId", "data-v-521c3d93"]]);
|
|
339544
339544
|
_hoisted_1$9 = ["role", "aria-label"];
|
|
339545
339545
|
_hoisted_2$6 = ["data-item"];
|
|
339546
339546
|
_hoisted_3$5 = ["data-item"];
|
|
339547
339547
|
_hoisted_4$4 = {
|
|
339548
339548
|
key: 1,
|
|
339549
|
-
class: "button-label"
|
|
339549
|
+
class: "sd-button-label"
|
|
339550
339550
|
};
|
|
339551
339551
|
_hoisted_5$2 = ["data-item", "aria-label"];
|
|
339552
339552
|
_hoisted_6$1 = ["innerHTML"];
|
|
339553
339553
|
_hoisted_7$1 = {
|
|
339554
339554
|
key: 1,
|
|
339555
|
-
class: "button-label"
|
|
339555
|
+
class: "sd-button-label"
|
|
339556
339556
|
};
|
|
339557
339557
|
_hoisted_8 = { key: 2 };
|
|
339558
339558
|
_hoisted_9 = ["onKeydown", "id"];
|
|
@@ -339564,7 +339564,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339564
339564
|
_hoisted_11 = ["innerHTML"];
|
|
339565
339565
|
_hoisted_12 = {
|
|
339566
339566
|
"aria-live": "polite",
|
|
339567
|
-
class: "visually-hidden"
|
|
339567
|
+
class: "sd-visually-hidden"
|
|
339568
339568
|
};
|
|
339569
339569
|
ToolbarButton_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
339570
339570
|
__name: "ToolbarButton",
|
|
@@ -339662,17 +339662,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339662
339662
|
});
|
|
339663
339663
|
return (_ctx, _cache) => {
|
|
339664
339664
|
return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
339665
|
-
class: exports_vue.normalizeClass(["toolbar-item", exports_vue.unref(attributes).className]),
|
|
339665
|
+
class: exports_vue.normalizeClass(["sd-toolbar-item", exports_vue.unref(attributes).className]),
|
|
339666
339666
|
style: exports_vue.normalizeStyle(getStyle.value),
|
|
339667
339667
|
role: __props.isOverflowItem ? "menuitem" : "button",
|
|
339668
339668
|
"aria-label": exports_vue.unref(attributes).ariaLabel,
|
|
339669
|
+
"data-sd-part": "toolbar-item",
|
|
339669
339670
|
onClick: handleOuterClick,
|
|
339670
339671
|
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(($event) => onEnterKeydown($event), ["enter"])),
|
|
339671
339672
|
tabindex: "0"
|
|
339672
339673
|
}, [exports_vue.createElementVNode("div", {
|
|
339673
|
-
class: exports_vue.normalizeClass(["toolbar-button", {
|
|
339674
|
-
active: exports_vue.unref(active),
|
|
339675
|
-
disabled: exports_vue.unref(disabled),
|
|
339674
|
+
class: exports_vue.normalizeClass(["sd-toolbar-button", {
|
|
339675
|
+
"sd-active": exports_vue.unref(active),
|
|
339676
|
+
"sd-disabled": exports_vue.unref(disabled),
|
|
339676
339677
|
narrow: __props.isNarrow,
|
|
339677
339678
|
wide: __props.isWide,
|
|
339678
339679
|
split: isSplit.value,
|
|
@@ -339683,13 +339684,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339683
339684
|
}, [
|
|
339684
339685
|
isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
339685
339686
|
key: 0,
|
|
339686
|
-
class: "toolbar-button__main",
|
|
339687
|
+
class: "sd-toolbar-button__main",
|
|
339687
339688
|
"data-item": `btn-${exports_vue.unref(name) || ""}-main`,
|
|
339688
339689
|
onClick: _cache[0] || (_cache[0] = ($event) => handleSplitMainClick($event))
|
|
339689
339690
|
}, [exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
|
|
339690
339691
|
key: 0,
|
|
339691
339692
|
color: exports_vue.unref(iconColor),
|
|
339692
|
-
class: "toolbar-icon",
|
|
339693
|
+
class: "sd-toolbar-icon",
|
|
339693
339694
|
icon: exports_vue.unref(icon),
|
|
339694
339695
|
name: exports_vue.unref(name)
|
|
339695
339696
|
}, null, 8, [
|
|
@@ -339699,19 +339700,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339699
339700
|
])) : 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),
|
|
339700
339701
|
isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
339701
339702
|
key: 1,
|
|
339702
|
-
class: "toolbar-button__caret",
|
|
339703
|
+
class: "sd-toolbar-button__caret",
|
|
339703
339704
|
"data-item": `btn-${exports_vue.unref(name) || ""}-caret`,
|
|
339704
339705
|
"aria-label": `${exports_vue.unref(attributes).ariaLabel} options`,
|
|
339705
339706
|
role: "button"
|
|
339706
339707
|
}, [exports_vue.createElementVNode("div", {
|
|
339707
|
-
class: "dropdown-caret",
|
|
339708
|
+
class: "sd-dropdown-caret",
|
|
339708
339709
|
innerHTML: caretIcon.value,
|
|
339709
339710
|
style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
|
|
339710
339711
|
}, null, 12, _hoisted_6$1)], 8, _hoisted_5$2)) : (exports_vue.openBlock(), exports_vue.createElementBlock(exports_vue.Fragment, { key: 2 }, [
|
|
339711
339712
|
exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
|
|
339712
339713
|
key: 0,
|
|
339713
339714
|
color: exports_vue.unref(iconColor),
|
|
339714
|
-
class: "toolbar-icon",
|
|
339715
|
+
class: "sd-toolbar-icon",
|
|
339715
339716
|
icon: exports_vue.unref(icon),
|
|
339716
339717
|
name: exports_vue.unref(name)
|
|
339717
339718
|
}, null, 8, [
|
|
@@ -339744,7 +339745,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339744
339745
|
}, null, 40, _hoisted_10)), [[exports_vue.vModelText, inlineTextInput.value]])])) : exports_vue.createCommentVNode("", true),
|
|
339745
339746
|
exports_vue.unref(hasCaret) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
|
|
339746
339747
|
key: 3,
|
|
339747
|
-
class: "dropdown-caret",
|
|
339748
|
+
class: "sd-dropdown-caret",
|
|
339748
339749
|
innerHTML: caretIcon.value,
|
|
339749
339750
|
style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
|
|
339750
339751
|
}, null, 12, _hoisted_11)) : exports_vue.createCommentVNode("", true)
|
|
@@ -339753,7 +339754,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339753
339754
|
], 10, _hoisted_2$6)], 46, _hoisted_1$9);
|
|
339754
339755
|
};
|
|
339755
339756
|
}
|
|
339756
|
-
}, [["__scopeId", "data-v-
|
|
339757
|
+
}, [["__scopeId", "data-v-360f6a95"]]);
|
|
339757
339758
|
_hoisted_1$8 = {
|
|
339758
339759
|
class: "toolbar-separator",
|
|
339759
339760
|
role: "separator",
|
|
@@ -339990,11 +339991,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339990
339991
|
if (!value)
|
|
339991
339992
|
return false;
|
|
339992
339993
|
if (typeof value === "string")
|
|
339993
|
-
return value.split(/\s+/).includes("selected");
|
|
339994
|
+
return value.split(/\s+/).includes("sd-selected");
|
|
339994
339995
|
if (Array.isArray(value))
|
|
339995
339996
|
return value.some(classHasSelected);
|
|
339996
339997
|
if (typeof value === "object")
|
|
339997
|
-
return Boolean(value
|
|
339998
|
+
return Boolean(value["sd-selected"]);
|
|
339998
339999
|
return false;
|
|
339999
340000
|
};
|
|
340000
340001
|
const isOptionSelected = (option) => {
|
|
@@ -340185,12 +340186,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340185
340186
|
ref_key: "triggerRef",
|
|
340186
340187
|
ref: triggerRef,
|
|
340187
340188
|
class: "toolbar-dropdown-trigger",
|
|
340189
|
+
"data-sd-part": "dropdown-trigger",
|
|
340188
340190
|
onClick: onTriggerClick
|
|
340189
340191
|
}, [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" }, {
|
|
340190
340192
|
default: exports_vue.withCtx(() => [isOpen.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", exports_vue.mergeProps({
|
|
340191
340193
|
key: 0,
|
|
340192
340194
|
ref_key: "menuRef",
|
|
340193
340195
|
ref: menuRef,
|
|
340196
|
+
"data-sd-part": "dropdown-menu",
|
|
340194
340197
|
class: mergedMenuClass.value,
|
|
340195
340198
|
style: menuStyle.value
|
|
340196
340199
|
}, computedMenuAttrs.value), [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.options, (option, index2) => {
|
|
@@ -340202,8 +340205,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340202
340205
|
option.class,
|
|
340203
340206
|
option.props?.class,
|
|
340204
340207
|
{
|
|
340205
|
-
disabled: option.disabled,
|
|
340206
|
-
render: isRenderOption(option)
|
|
340208
|
+
"sd-disabled": option.disabled,
|
|
340209
|
+
"sd-render": isRenderOption(option)
|
|
340207
340210
|
}
|
|
340208
340211
|
]],
|
|
340209
340212
|
tabindex: "-1",
|
|
@@ -340220,7 +340223,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340220
340223
|
})]))]);
|
|
340221
340224
|
};
|
|
340222
340225
|
}
|
|
340223
|
-
}, [["__scopeId", "data-v-
|
|
340226
|
+
}, [["__scopeId", "data-v-302f7d86"]]);
|
|
340224
340227
|
SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
340225
340228
|
__name: "SdTooltip",
|
|
340226
340229
|
props: {
|
|
@@ -340571,7 +340574,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340571
340574
|
...option,
|
|
340572
340575
|
props: {
|
|
340573
340576
|
...option.props,
|
|
340574
|
-
class: isSelected ? "selected" : ""
|
|
340577
|
+
class: isSelected ? "sd-selected" : ""
|
|
340575
340578
|
}
|
|
340576
340579
|
};
|
|
340577
340580
|
});
|
|
@@ -340584,7 +340587,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340584
340587
|
};
|
|
340585
340588
|
const moveToNextButton = (e) => {
|
|
340586
340589
|
const currentButton = e.target;
|
|
340587
|
-
const nextButton = e.target.closest(".toolbar-item-ctn").nextElementSibling;
|
|
340590
|
+
const nextButton = e.target.closest(".sd-toolbar-item-ctn").nextElementSibling;
|
|
340588
340591
|
if (nextButton) {
|
|
340589
340592
|
currentButton.setAttribute("tabindex", "-1");
|
|
340590
340593
|
nextButton.setAttribute("tabindex", "0");
|
|
@@ -340593,7 +340596,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340593
340596
|
};
|
|
340594
340597
|
const moveToPreviousButton = (e) => {
|
|
340595
340598
|
const currentButton = e.target;
|
|
340596
|
-
const previousButton = e.target.closest(".toolbar-item-ctn").previousElementSibling;
|
|
340599
|
+
const previousButton = e.target.closest(".sd-toolbar-item-ctn").previousElementSibling;
|
|
340597
340600
|
if (previousButton) {
|
|
340598
340601
|
currentButton.setAttribute("tabindex", "-1");
|
|
340599
340602
|
previousButton.setAttribute("tabindex", "0");
|
|
@@ -340671,7 +340674,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340671
340674
|
}
|
|
340672
340675
|
};
|
|
340673
340676
|
const handleFocus = (e) => {
|
|
340674
|
-
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("disabled"));
|
|
340677
|
+
const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("sd-disabled"));
|
|
340675
340678
|
if (firstButton) {
|
|
340676
340679
|
firstButton.setAttribute("tabindex", "0");
|
|
340677
340680
|
firstButton.focus();
|
|
@@ -340727,8 +340730,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340727
340730
|
class: exports_vue.normalizeClass([{
|
|
340728
340731
|
narrow: item.isNarrow.value,
|
|
340729
340732
|
wide: item.isWide.value,
|
|
340730
|
-
disabled: item.disabled.value
|
|
340731
|
-
}, "toolbar-item-ctn"]),
|
|
340733
|
+
"sd-disabled": item.disabled.value
|
|
340734
|
+
}, "sd-toolbar-item-ctn"]),
|
|
340732
340735
|
onKeydown: (e) => handleKeyDown$1(e, item),
|
|
340733
340736
|
ref_for: true,
|
|
340734
340737
|
ref_key: "toolbarItemRefs",
|
|
@@ -340747,7 +340750,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340747
340750
|
show: getExpanded(item),
|
|
340748
340751
|
"content-style": { fontFamily: props.uiFontFamily },
|
|
340749
340752
|
placement: "bottom-start",
|
|
340750
|
-
class: "toolbar-button sd-editor-toolbar-dropdown",
|
|
340753
|
+
class: "sd-toolbar-button sd-editor-toolbar-dropdown",
|
|
340751
340754
|
onSelect: (key2, option) => handleSelect(item, option),
|
|
340752
340755
|
"onUpdate:show": (open2) => handleDropdownUpdateShowForItem(open2, item),
|
|
340753
340756
|
style: exports_vue.normalizeStyle(item.dropdownStyles.value),
|
|
@@ -340824,7 +340827,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340824
340827
|
}), 128))], 36);
|
|
340825
340828
|
};
|
|
340826
340829
|
}
|
|
340827
|
-
}, [["__scopeId", "data-v-
|
|
340830
|
+
}, [["__scopeId", "data-v-9c3524ec"]]);
|
|
340828
340831
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
340829
340832
|
__name: "Toolbar",
|
|
340830
340833
|
emits: [
|
|
@@ -340918,6 +340921,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340918
340921
|
key: exports_vue.unref(toolbarKey),
|
|
340919
340922
|
role: "toolbar",
|
|
340920
340923
|
"aria-label": "Toolbar",
|
|
340924
|
+
"data-sd-part": "toolbar",
|
|
340921
340925
|
"data-editor-ui-surface": "",
|
|
340922
340926
|
onMousedown: handleToolbarMousedown
|
|
340923
340927
|
}, [
|
|
@@ -340969,7 +340973,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
340969
340973
|
], 32);
|
|
340970
340974
|
};
|
|
340971
340975
|
}
|
|
340972
|
-
}, [["__scopeId", "data-v-
|
|
340976
|
+
}, [["__scopeId", "data-v-b83d488a"]]);
|
|
340973
340977
|
toolbarTexts = {
|
|
340974
340978
|
bold: "Bold",
|
|
340975
340979
|
fontFamily: "Font",
|
|
@@ -353411,7 +353415,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
353411
353415
|
|
|
353412
353416
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
353413
353417
|
var init_super_editor_es = __esm(() => {
|
|
353414
|
-
|
|
353418
|
+
init_src_Bm0BRA0C_es();
|
|
353415
353419
|
init_SuperConverter_C6hKp29w_es();
|
|
353416
353420
|
init_jszip_C49i9kUs_es();
|
|
353417
353421
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.15.0-next.
|
|
3
|
+
"version": "0.15.0-next.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
+
"@superdoc/document-api": "0.0.1",
|
|
27
28
|
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"@superdoc/document-api": "0.0.1",
|
|
30
30
|
"superdoc": "1.37.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.15.0-next.
|
|
38
|
-
"@superdoc-dev/cli-darwin-x64": "0.15.0-next.
|
|
39
|
-
"@superdoc-dev/cli-linux-arm64": "0.15.0-next.
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.15.0-next.14",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.15.0-next.14",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.15.0-next.14",
|
|
40
|
+
"@superdoc-dev/cli-linux-x64": "0.15.0-next.14",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.15.0-next.14"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|