superdoc 2.24.0 → 2.25.0-next.2
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/chunks/{FindReplaceSurface-BUw19rV8.cjs → FindReplaceSurface-8V8AjgR4.cjs} +1 -1
- package/dist/chunks/{FindReplaceSurface-B5dzB2sG.es.js → FindReplaceSurface-RUiTFDt3.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-DaIztq50.cjs → PasswordPromptSurface-B5DHV6qr.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-Ciu8aSmK.es.js → PasswordPromptSurface-BDpxqdzp.es.js} +1 -1
- package/dist/chunks/{PdfViewer-B8y_9or_.es.js → PdfViewer-DjdsIh6n.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DRzLH3eS.cjs → PdfViewer-omriDChK.cjs} +1 -1
- package/dist/chunks/{_plugin-vue_export-helper-DHiJKCsy.es.js → _plugin-vue_export-helper-7ZiLY07t.es.js} +4 -1
- package/dist/chunks/{_plugin-vue_export-helper-CYxINHh_.cjs → _plugin-vue_export-helper-BUdjGKyl.cjs} +9 -0
- package/dist/chunks/{create-super-doc-ui-8UTu16Lw.es.js → create-super-doc-ui-3habU4hL.es.js} +37 -5
- package/dist/chunks/{create-super-doc-ui-bTFGKVRb.cjs → create-super-doc-ui-D8ss5E0J.cjs} +37 -5
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/selection/selection.types.d.ts +3 -2
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +65 -65
- package/dist/style.layered.css +65 -65
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -0
- package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +1 -0
- package/dist/superdoc.cjs +113 -88
- package/dist/superdoc.es.js +113 -88
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +2 -2
package/dist/superdoc.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as __toESM$2 } from "./chunks/rolldown-runtime-0pSA04fp.es.js";
|
|
2
2
|
import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
3
|
-
import { c as createImageFilePicker, d as DOM_CLASS_NAMES, f as closeInteractionHistory, g as recordInteraction, h as isWorkflowRecordingEnabled, i as registerFirstPartyCommandMutation, l as resolveImageSrc, m as getWorkflowRecording, n as executeFirstPartyCommandAsync, o as applyV2CommentInvalidationFromMutation, p as createInteractionHistory, r as readFirstPartyPageNumbers, s as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-
|
|
3
|
+
import { c as createImageFilePicker, d as DOM_CLASS_NAMES, f as closeInteractionHistory, g as recordInteraction, h as isWorkflowRecordingEnabled, i as registerFirstPartyCommandMutation, l as resolveImageSrc, m as getWorkflowRecording, n as executeFirstPartyCommandAsync, o as applyV2CommentInvalidationFromMutation, p as createInteractionHistory, r as readFirstPartyPageNumbers, s as getV2TrackedChangeMutationImpact, t as createSuperDocUI } from "./chunks/create-super-doc-ui-3habU4hL.es.js";
|
|
4
4
|
import { t as import_eventemitter3 } from "./chunks/eventemitter3-DEIiXiH2.es.js";
|
|
5
5
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
6
|
-
import { $ as
|
|
6
|
+
import { $ as vModelText, A as onActivated, B as renderSlot, C as isRef$1, D as normalizeClass, E as nextTick, F as openBlock, G as toRaw$2, H as resolveDynamicComponent, I as provide$1, J as unref, K as toRef, L as reactive, M as onDeactivated, N as onMounted, O as normalizeProps, P as onScopeDispose$1, Q as vModelSelect, R as ref, S as isReactive$1, T as mergeProps, U as shallowRef$1, V as resolveDirective, W as toDisplayString, X as useSlots, Y as useAttrs, Z as vModelCheckbox, _ as getCurrentInstance, a as computed$1, b as hasInjectionContext, c as createCommentVNode, d as createStaticVNode, et as watch$1, f as createTextVNode, g as effectScope, h as defineComponent, i as Transition, it as withModifiers, j as onBeforeUnmount, k as normalizeStyle, l as createElementBlock, m as defineAsyncComponent, n as Fragment, nt as withDirectives, o as createApp, p as createVNode, q as toRefs, r as Teleport, rt as withKeys, s as createBlock, t as _plugin_vue_export_helper_default, tt as withCtx, u as createElementVNode, v as getCurrentScope, w as markRaw, x as inject$1, y as h, z as renderList } from "./chunks/_plugin-vue_export-helper-7ZiLY07t.es.js";
|
|
7
7
|
import { a as init_dist$1, i as global, n as init_dist$2, o as Buffer, r as process$1, s as init_dist, t as require_jszip_min } from "./chunks/jszip-BzJ3CyxR.es.js";
|
|
8
8
|
import { t as PDF_TO_CSS_UNITS } from "./chunks/constants-B6VBlmKp.es.js";
|
|
9
9
|
import * as Vue from "vue";
|
|
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
302
302
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
303
303
|
function getSuperdocVersion() {
|
|
304
304
|
try {
|
|
305
|
-
return "2.
|
|
305
|
+
return "2.25.0-next.2";
|
|
306
306
|
} catch {
|
|
307
307
|
return "unknown";
|
|
308
308
|
}
|
|
@@ -12200,14 +12200,14 @@ function useUiFontFamily() {
|
|
|
12200
12200
|
}
|
|
12201
12201
|
//#endregion
|
|
12202
12202
|
//#region src/components/CommentsLayer/CommentsDropdown.vue
|
|
12203
|
-
var _hoisted_1$
|
|
12203
|
+
var _hoisted_1$32 = { class: "comments-dropdown" };
|
|
12204
12204
|
var _hoisted_2$25 = ["onClick"];
|
|
12205
12205
|
var _hoisted_3$21 = {
|
|
12206
12206
|
key: 0,
|
|
12207
12207
|
class: "comments-dropdown__option-icon"
|
|
12208
12208
|
};
|
|
12209
|
-
var _hoisted_4$
|
|
12210
|
-
var _hoisted_5$
|
|
12209
|
+
var _hoisted_4$14 = ["innerHTML"];
|
|
12210
|
+
var _hoisted_5$11 = { class: "comments-dropdown__option-label" };
|
|
12211
12211
|
var CommentsDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
12212
12212
|
__name: "CommentsDropdown",
|
|
12213
12213
|
props: {
|
|
@@ -12331,7 +12331,7 @@ var CommentsDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12331
12331
|
window.removeEventListener("scroll", updateMenuPosition, true);
|
|
12332
12332
|
});
|
|
12333
12333
|
return (_ctx, _cache) => {
|
|
12334
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12334
|
+
return openBlock(), createElementBlock("div", _hoisted_1$32, [createElementVNode("div", {
|
|
12335
12335
|
ref_key: "triggerRef",
|
|
12336
12336
|
ref: triggerRef,
|
|
12337
12337
|
class: "comments-dropdown__trigger",
|
|
@@ -12350,20 +12350,20 @@ var CommentsDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12350
12350
|
}, [hasIcon(option) ? (openBlock(), createElementBlock("span", _hoisted_3$21, [option.iconString ? (openBlock(), createElementBlock("span", {
|
|
12351
12351
|
key: 0,
|
|
12352
12352
|
innerHTML: option.iconString
|
|
12353
|
-
}, null, 8, _hoisted_4$
|
|
12353
|
+
}, null, 8, _hoisted_4$14)) : (openBlock(), createBlock(unref(OptionIcon), {
|
|
12354
12354
|
key: 1,
|
|
12355
12355
|
option
|
|
12356
|
-
}, null, 8, ["option"]))])) : createCommentVNode("", true), createElementVNode("span", _hoisted_5$
|
|
12356
|
+
}, null, 8, ["option"]))])) : createCommentVNode("", true), createElementVNode("span", _hoisted_5$11, toDisplayString(option.label), 1)], 10, _hoisted_2$25);
|
|
12357
12357
|
}), 128))], 4)) : createCommentVNode("", true)]))]);
|
|
12358
12358
|
};
|
|
12359
12359
|
}
|
|
12360
12360
|
}, [["__scopeId", "data-v-7eced80a"]]);
|
|
12361
12361
|
//#endregion
|
|
12362
12362
|
//#region src/components/CommentsLayer/InternalDropdown.vue
|
|
12363
|
-
var _hoisted_1$
|
|
12363
|
+
var _hoisted_1$31 = { class: "sd-comment-option" };
|
|
12364
12364
|
var _hoisted_2$24 = ["innerHTML"];
|
|
12365
12365
|
var _hoisted_3$20 = { class: "sd-option-state" };
|
|
12366
|
-
var _hoisted_4$
|
|
12366
|
+
var _hoisted_4$13 = ["innerHTML"];
|
|
12367
12367
|
var InternalDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
12368
12368
|
__name: "InternalDropdown",
|
|
12369
12369
|
props: {
|
|
@@ -12431,7 +12431,7 @@ var InternalDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12431
12431
|
disabled: __props.isDisabled,
|
|
12432
12432
|
"content-style": { fontFamily: unref(uiFontFamily) }
|
|
12433
12433
|
}, {
|
|
12434
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
12434
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$31, [
|
|
12435
12435
|
createElementVNode("div", {
|
|
12436
12436
|
class: "sd-active-icon",
|
|
12437
12437
|
innerHTML: activeIcon.value
|
|
@@ -12440,7 +12440,7 @@ var InternalDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12440
12440
|
createElementVNode("div", {
|
|
12441
12441
|
class: "sd-dropdown-caret",
|
|
12442
12442
|
innerHTML: unref(superdocIcons).caretDown
|
|
12443
|
-
}, null, 8, _hoisted_4$
|
|
12443
|
+
}, null, 8, _hoisted_4$13)
|
|
12444
12444
|
])]),
|
|
12445
12445
|
_: 1
|
|
12446
12446
|
}, 8, ["disabled", "content-style"])], 4);
|
|
@@ -12596,7 +12596,7 @@ var isAllowed = (permission, role, isInternal, context = {}) => {
|
|
|
12596
12596
|
};
|
|
12597
12597
|
//#endregion
|
|
12598
12598
|
//#region src/components/general/Avatar.vue
|
|
12599
|
-
var _hoisted_1$
|
|
12599
|
+
var _hoisted_1$30 = { class: "user-container" };
|
|
12600
12600
|
var _hoisted_2$23 = ["src"];
|
|
12601
12601
|
var _hoisted_3$19 = {
|
|
12602
12602
|
key: 1,
|
|
@@ -12619,7 +12619,7 @@ var Avatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12619
12619
|
return email?.substring(0, 1)?.toUpperCase() || null;
|
|
12620
12620
|
};
|
|
12621
12621
|
return (_ctx, _cache) => {
|
|
12622
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12622
|
+
return openBlock(), createElementBlock("div", _hoisted_1$30, [__props.user.image ? (openBlock(), createElementBlock("img", {
|
|
12623
12623
|
key: 0,
|
|
12624
12624
|
class: "user-bg",
|
|
12625
12625
|
src: __props.user.image.startsWith("http") ? __props.user.image : `data:image/png;base64,${__props.user.image}`
|
|
@@ -12629,11 +12629,11 @@ var Avatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12629
12629
|
}, [["__scopeId", "data-v-c95b2073"]]);
|
|
12630
12630
|
//#endregion
|
|
12631
12631
|
//#region src/components/CommentsLayer/CommentHeader.vue
|
|
12632
|
-
var _hoisted_1$
|
|
12632
|
+
var _hoisted_1$29 = { class: "card-section comment-header" };
|
|
12633
12633
|
var _hoisted_2$22 = { class: "comment-header-left" };
|
|
12634
12634
|
var _hoisted_3$18 = { class: "user-info" };
|
|
12635
|
-
var _hoisted_4$
|
|
12636
|
-
var _hoisted_5$
|
|
12635
|
+
var _hoisted_4$12 = { class: "user-name" };
|
|
12636
|
+
var _hoisted_5$10 = {
|
|
12637
12637
|
key: 0,
|
|
12638
12638
|
class: "imported-tag"
|
|
12639
12639
|
};
|
|
@@ -12889,10 +12889,10 @@ var CommentHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12889
12889
|
return user;
|
|
12890
12890
|
});
|
|
12891
12891
|
return (_ctx, _cache) => {
|
|
12892
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12892
|
+
return openBlock(), createElementBlock("div", _hoisted_1$29, [createElementVNode("div", _hoisted_2$22, [createVNode(Avatar_default, {
|
|
12893
12893
|
user: getCurrentUser.value,
|
|
12894
12894
|
class: "avatar"
|
|
12895
|
-
}, null, 8, ["user"]), createElementVNode("div", _hoisted_3$18, [createElementVNode("div", _hoisted_4$
|
|
12895
|
+
}, null, 8, ["user"]), createElementVNode("div", _hoisted_3$18, [createElementVNode("div", _hoisted_4$12, [createTextVNode(toDisplayString(getCurrentUser.value.name), 1), isImported.value ? (openBlock(), createElementBlock("span", _hoisted_5$10, "IMPORTED")) : createCommentVNode("", true)]), props.comment.createdTime ? (openBlock(), createElementBlock("div", _hoisted_6$8, toDisplayString(unref(formatDate)(props.comment.createdTime)), 1)) : createCommentVNode("", true)])]), createElementVNode("div", { class: normalizeClass(["overflow-menu", { "is-visible": props.isActive }]) }, [
|
|
12896
12896
|
allowResolve.value ? (openBlock(), createElementBlock("div", {
|
|
12897
12897
|
key: 0,
|
|
12898
12898
|
class: normalizeClass(["overflow-menu__icon", { "sd-is-disabled": Boolean(__props.resolveDisabledReason) }]),
|
|
@@ -12940,20 +12940,20 @@ var CommentHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12940
12940
|
}, [["__scopeId", "data-v-f2f11c96"]]);
|
|
12941
12941
|
//#endregion
|
|
12942
12942
|
//#region src/components/CommentsLayer/CommentInput.vue
|
|
12943
|
-
var _hoisted_1$
|
|
12943
|
+
var _hoisted_1$28 = { class: "input-section" };
|
|
12944
12944
|
var _hoisted_2$21 = { class: "comment-composer" };
|
|
12945
12945
|
var _hoisted_3$17 = [
|
|
12946
12946
|
"aria-expanded",
|
|
12947
12947
|
"aria-controls",
|
|
12948
12948
|
"aria-activedescendant"
|
|
12949
12949
|
];
|
|
12950
|
-
var _hoisted_4$
|
|
12950
|
+
var _hoisted_4$11 = [
|
|
12951
12951
|
"id",
|
|
12952
12952
|
"aria-selected",
|
|
12953
12953
|
"data-sd-comment-mention-option",
|
|
12954
12954
|
"onMousedown"
|
|
12955
12955
|
];
|
|
12956
|
-
var _hoisted_5$
|
|
12956
|
+
var _hoisted_5$9 = { class: "comment-mention-option__name" };
|
|
12957
12957
|
var _hoisted_6$7 = {
|
|
12958
12958
|
key: 0,
|
|
12959
12959
|
class: "comment-mention-option__email"
|
|
@@ -13114,7 +13114,7 @@ var CommentInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
13114
13114
|
watch$1(currentCommentText, scheduleInputHeightSync);
|
|
13115
13115
|
__expose({ focus });
|
|
13116
13116
|
return (_ctx, _cache) => {
|
|
13117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13117
|
+
return openBlock(), createElementBlock("div", _hoisted_1$28, [__props.includeHeader ? (openBlock(), createBlock(CommentHeader_default, {
|
|
13118
13118
|
key: 0,
|
|
13119
13119
|
config: __props.config,
|
|
13120
13120
|
comment: __props.comment,
|
|
@@ -13153,7 +13153,7 @@ var CommentInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
13153
13153
|
"aria-selected": index === highlightedMentionIndex.value,
|
|
13154
13154
|
"data-sd-comment-mention-option": userKey(user),
|
|
13155
13155
|
onMousedown: withModifiers(($event) => selectMention(user), ["prevent"])
|
|
13156
|
-
}, [createElementVNode("span", _hoisted_5$
|
|
13156
|
+
}, [createElementVNode("span", _hoisted_5$9, toDisplayString(displayName(user)), 1), user.email ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(user.email), 1)) : createCommentVNode("", true)], 42, _hoisted_4$11);
|
|
13157
13157
|
}), 128))])) : createCommentVNode("", true)])], 2)]);
|
|
13158
13158
|
};
|
|
13159
13159
|
}
|
|
@@ -13268,7 +13268,7 @@ function renderCommentHtml(value) {
|
|
|
13268
13268
|
}
|
|
13269
13269
|
//#endregion
|
|
13270
13270
|
//#region src/components/CommentsLayer/CommentDialog.vue
|
|
13271
|
-
var _hoisted_1$
|
|
13271
|
+
var _hoisted_1$27 = [
|
|
13272
13272
|
"aria-label",
|
|
13273
13273
|
"data-comment-instance-id",
|
|
13274
13274
|
"data-comment-thread-id",
|
|
@@ -13280,8 +13280,8 @@ var _hoisted_2$20 = {
|
|
|
13280
13280
|
class: "existing-internal-input"
|
|
13281
13281
|
};
|
|
13282
13282
|
var _hoisted_3$16 = { class: "new-comment-input-wrapper" };
|
|
13283
|
-
var _hoisted_4$
|
|
13284
|
-
var _hoisted_5$
|
|
13283
|
+
var _hoisted_4$10 = { class: "reply-actions" };
|
|
13284
|
+
var _hoisted_5$8 = ["disabled"];
|
|
13285
13285
|
var _hoisted_6$6 = {
|
|
13286
13286
|
key: 0,
|
|
13287
13287
|
class: "resolved-badge"
|
|
@@ -14349,14 +14349,14 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14349
14349
|
"config",
|
|
14350
14350
|
"comment"
|
|
14351
14351
|
])]),
|
|
14352
|
-
createElementVNode("div", _hoisted_4$
|
|
14352
|
+
createElementVNode("div", _hoisted_4$10, [createElementVNode("button", {
|
|
14353
14353
|
class: "sd-button reply-btn-cancel",
|
|
14354
14354
|
onClick: withModifiers(handleCancel, ["stop", "prevent"])
|
|
14355
14355
|
}, "Cancel"), createElementVNode("button", {
|
|
14356
14356
|
class: normalizeClass(["sd-button primary reply-btn-primary", { "sd-is-disabled": !hasTextContent.value || isSubmittingNewComment.value }]),
|
|
14357
14357
|
onClick: withModifiers(handleAddComment, ["stop", "prevent"]),
|
|
14358
14358
|
disabled: !hasTextContent.value || isSubmittingNewComment.value
|
|
14359
|
-
}, " Comment ", 10, _hoisted_5$
|
|
14359
|
+
}, " Comment ", 10, _hoisted_5$8)])
|
|
14360
14360
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14361
14361
|
resolvedBadgeLabel.value ? (openBlock(), createElementBlock("div", _hoisted_6$6, [createElementVNode("span", {
|
|
14362
14362
|
class: "resolved-badge__icon",
|
|
@@ -14522,13 +14522,13 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14522
14522
|
disabled: !hasTextContent.value || isV2WriteDisabled.value || isSubmittingReply.value,
|
|
14523
14523
|
"data-disabled-reason": v2ReplyDisabledReason.value
|
|
14524
14524
|
}, " Reply ", 10, _hoisted_53)])]))], 64)) : createCommentVNode("", true)
|
|
14525
|
-
], 64))], 14, _hoisted_1$
|
|
14525
|
+
], 64))], 14, _hoisted_1$27)), [[_directive_click_outside, handleClickOutside]]);
|
|
14526
14526
|
};
|
|
14527
14527
|
}
|
|
14528
14528
|
}, [["__scopeId", "data-v-5ace8cef"]]);
|
|
14529
14529
|
//#endregion
|
|
14530
14530
|
//#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
|
|
14531
|
-
var _hoisted_1$
|
|
14531
|
+
var _hoisted_1$26 = [
|
|
14532
14532
|
"tabindex",
|
|
14533
14533
|
"aria-posinset",
|
|
14534
14534
|
"aria-setsize",
|
|
@@ -14666,13 +14666,13 @@ var ReviewDirectoryListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
14666
14666
|
"floating-page-index",
|
|
14667
14667
|
"floating-position-entry",
|
|
14668
14668
|
"is-floating-instance-active"
|
|
14669
|
-
])) : createCommentVNode("", true)], 44, _hoisted_1$
|
|
14669
|
+
])) : createCommentVNode("", true)], 44, _hoisted_1$26);
|
|
14670
14670
|
};
|
|
14671
14671
|
}
|
|
14672
14672
|
}, [["__scopeId", "data-v-29650a06"]]);
|
|
14673
14673
|
//#endregion
|
|
14674
14674
|
//#region src/components/CommentsLayer/commentsList/commentsList.vue
|
|
14675
|
-
var _hoisted_1$
|
|
14675
|
+
var _hoisted_1$25 = ["aria-busy"];
|
|
14676
14676
|
var _hoisted_2$19 = { key: 0 };
|
|
14677
14677
|
var _hoisted_3$15 = { key: 1 };
|
|
14678
14678
|
var REPEATED_HEADER_FOOTER_STORY_TYPE = "headerFooterPart";
|
|
@@ -14833,7 +14833,7 @@ var commentsList_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14833
14833
|
"total",
|
|
14834
14834
|
"tab-index"
|
|
14835
14835
|
]);
|
|
14836
|
-
}), 128))])) : createCommentVNode("", true)], 8, _hoisted_1$
|
|
14836
|
+
}), 128))])) : createCommentVNode("", true)], 8, _hoisted_1$25);
|
|
14837
14837
|
};
|
|
14838
14838
|
}
|
|
14839
14839
|
}, [["__scopeId", "data-v-89244745"]]);
|
|
@@ -15248,6 +15248,18 @@ var composeAuthorColorResolver = (config) => {
|
|
|
15248
15248
|
};
|
|
15249
15249
|
};
|
|
15250
15250
|
//#endregion
|
|
15251
|
+
//#region src/core/superdoc-ui-owner.js
|
|
15252
|
+
var ownerIds = /* @__PURE__ */ new WeakMap();
|
|
15253
|
+
function getSuperDocUiOwnerId(superdoc) {
|
|
15254
|
+
if (!superdoc || typeof superdoc !== "object") return null;
|
|
15255
|
+
let ownerId = ownerIds.get(superdoc);
|
|
15256
|
+
if (!ownerId) {
|
|
15257
|
+
ownerId = v4();
|
|
15258
|
+
ownerIds.set(superdoc, ownerId);
|
|
15259
|
+
}
|
|
15260
|
+
return ownerId;
|
|
15261
|
+
}
|
|
15262
|
+
//#endregion
|
|
15251
15263
|
//#region src/components/CommentsLayer/floating-comment-positioning.js
|
|
15252
15264
|
var normalizeFloatingAnchorTop = (top) => {
|
|
15253
15265
|
return top;
|
|
@@ -15302,7 +15314,7 @@ var resolveRemovedReviewCardContinuityTarget = ({ previousIds, currentIds, remov
|
|
|
15302
15314
|
};
|
|
15303
15315
|
//#endregion
|
|
15304
15316
|
//#region src/components/CommentsLayer/FloatingComments.vue
|
|
15305
|
-
var _hoisted_1$
|
|
15317
|
+
var _hoisted_1$24 = [
|
|
15306
15318
|
"data-comment-id",
|
|
15307
15319
|
"data-comment-instance-id",
|
|
15308
15320
|
"data-comment-thread-id",
|
|
@@ -16172,14 +16184,14 @@ var FloatingComments_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
16172
16184
|
"floating-page-index",
|
|
16173
16185
|
"floating-position-entry",
|
|
16174
16186
|
"is-floating-instance-active"
|
|
16175
|
-
])) : createCommentVNode("", true)], 14, _hoisted_1$
|
|
16187
|
+
])) : createCommentVNode("", true)], 14, _hoisted_1$24);
|
|
16176
16188
|
}), 128))], 4)], 36);
|
|
16177
16189
|
};
|
|
16178
16190
|
}
|
|
16179
16191
|
}, [["__scopeId", "data-v-15b59a51"]]);
|
|
16180
16192
|
//#endregion
|
|
16181
16193
|
//#region src/components/CommentsLayer/PdfCommentsLayer.vue
|
|
16182
|
-
var _hoisted_1$
|
|
16194
|
+
var _hoisted_1$23 = {
|
|
16183
16195
|
class: "superdoc__pdf-comments-layer pdf-comments-layer",
|
|
16184
16196
|
"aria-hidden": "false"
|
|
16185
16197
|
};
|
|
@@ -16285,7 +16297,7 @@ var PdfCommentsLayer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
16285
16297
|
emit("anchor-activate", anchor.commentId);
|
|
16286
16298
|
};
|
|
16287
16299
|
return (_ctx, _cache) => {
|
|
16288
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16300
|
+
return openBlock(), createElementBlock("div", _hoisted_1$23, [(openBlock(true), createElementBlock(Fragment, null, renderList(pdfCommentAnchors.value, (anchor) => {
|
|
16289
16301
|
return openBlock(), createElementBlock("div", {
|
|
16290
16302
|
key: anchor.commentId,
|
|
16291
16303
|
class: "sd-comment-anchor sd-highlight",
|
|
@@ -16454,7 +16466,7 @@ var useWhiteboard = ({ proxy, layers, documents, modules }) => {
|
|
|
16454
16466
|
};
|
|
16455
16467
|
//#endregion
|
|
16456
16468
|
//#region src/components/Whiteboard/WhiteboardPage.vue
|
|
16457
|
-
var _hoisted_1$
|
|
16469
|
+
var _hoisted_1$22 = ["data-page-index"];
|
|
16458
16470
|
var WhiteboardPage_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
16459
16471
|
__name: "WhiteboardPage",
|
|
16460
16472
|
props: {
|
|
@@ -16586,7 +16598,7 @@ var WhiteboardPage_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
16586
16598
|
height: (__props.pageSize?.height ?? __props.page.size?.height) + "px",
|
|
16587
16599
|
transform: `translate(${__props.pageOffset?.left ?? 0}px, ${__props.pageOffset?.top ?? 0}px)`
|
|
16588
16600
|
})
|
|
16589
|
-
}, null, 44, _hoisted_1$
|
|
16601
|
+
}, null, 44, _hoisted_1$22);
|
|
16590
16602
|
};
|
|
16591
16603
|
}
|
|
16592
16604
|
}, [["__scopeId", "data-v-c876c9b5"]]);
|
|
@@ -16661,7 +16673,7 @@ var WhiteboardLayer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
16661
16673
|
}, [["__scopeId", "data-v-54546c3d"]]);
|
|
16662
16674
|
//#endregion
|
|
16663
16675
|
//#region src/components/HtmlViewer/HtmlViewer.vue
|
|
16664
|
-
var _hoisted_1$
|
|
16676
|
+
var _hoisted_1$21 = { class: "superdoc-html-viewer" };
|
|
16665
16677
|
var _hoisted_2$17 = { class: "superdoc-html-viewer__document" };
|
|
16666
16678
|
var _hoisted_3$14 = ["innerHTML"];
|
|
16667
16679
|
var HtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
@@ -16711,7 +16723,7 @@ var HtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
16711
16723
|
initViewer();
|
|
16712
16724
|
});
|
|
16713
16725
|
return (_ctx, _cache) => {
|
|
16714
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16726
|
+
return openBlock(), createElementBlock("div", _hoisted_1$21, [createElementVNode("div", _hoisted_2$17, [createElementVNode("div", {
|
|
16715
16727
|
class: "superdoc-html-viewer__content",
|
|
16716
16728
|
innerHTML: documentContent.value,
|
|
16717
16729
|
onMouseup: handleSelectionChange
|
|
@@ -17760,7 +17772,7 @@ function usePasswordPrompt({ getSurfaceManager, getPasswordPromptConfig, onUnhan
|
|
|
17760
17772
|
})
|
|
17761
17773
|
});
|
|
17762
17774
|
} else {
|
|
17763
|
-
const PasswordPromptSurface = (await import("./chunks/PasswordPromptSurface-
|
|
17775
|
+
const PasswordPromptSurface = (await import("./chunks/PasswordPromptSurface-BDpxqdzp.es.js")).default;
|
|
17764
17776
|
const surfaceId = `password-prompt-${doc.id}`;
|
|
17765
17777
|
handle = manager.open({
|
|
17766
17778
|
id: surfaceId,
|
|
@@ -18618,7 +18630,7 @@ function useFindReplace({ getSurfaceManager, getActiveEditor, activeEditorRef, g
|
|
|
18618
18630
|
/** @type {object | undefined} */
|
|
18619
18631
|
let FindReplaceSurface;
|
|
18620
18632
|
try {
|
|
18621
|
-
FindReplaceSurface = (await import("./chunks/FindReplaceSurface-
|
|
18633
|
+
FindReplaceSurface = (await import("./chunks/FindReplaceSurface-RUiTFDt3.es.js")).default;
|
|
18622
18634
|
} catch {
|
|
18623
18635
|
opening = false;
|
|
18624
18636
|
return;
|
|
@@ -18973,7 +18985,7 @@ var toolbarIcons = {
|
|
|
18973
18985
|
};
|
|
18974
18986
|
//#endregion
|
|
18975
18987
|
//#region src/internal/toolbar/built-in/LinkInput.vue
|
|
18976
|
-
var _hoisted_1$
|
|
18988
|
+
var _hoisted_1$20 = {
|
|
18977
18989
|
key: 0,
|
|
18978
18990
|
class: "link-title"
|
|
18979
18991
|
};
|
|
@@ -18985,11 +18997,11 @@ var _hoisted_3$13 = {
|
|
|
18985
18997
|
key: 2,
|
|
18986
18998
|
class: "link-title"
|
|
18987
18999
|
};
|
|
18988
|
-
var _hoisted_4$
|
|
19000
|
+
var _hoisted_4$9 = {
|
|
18989
19001
|
key: 3,
|
|
18990
19002
|
class: "link-title"
|
|
18991
19003
|
};
|
|
18992
|
-
var _hoisted_5$
|
|
19004
|
+
var _hoisted_5$7 = {
|
|
18993
19005
|
key: 4,
|
|
18994
19006
|
class: "link-input-wrapper"
|
|
18995
19007
|
};
|
|
@@ -19228,8 +19240,8 @@ var LinkInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
19228
19240
|
};
|
|
19229
19241
|
return (_ctx, _cache) => {
|
|
19230
19242
|
return openBlock(), createElementBlock("div", { class: normalizeClass(["link-input-ctn", { "high-contrast": unref(isHighContrastMode) }]) }, [
|
|
19231
|
-
isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19232
|
-
__props.showInput && !isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19243
|
+
isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_1$20, "Page anchor")) : isViewingMode.value ? (openBlock(), createElementBlock("div", _hoisted_2$16, "Link details")) : isEditing.value ? (openBlock(), createElementBlock("div", _hoisted_3$13, "Edit link")) : (openBlock(), createElementBlock("div", _hoisted_4$9, "Add link")),
|
|
19244
|
+
__props.showInput && !isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
19233
19245
|
createElementVNode("div", _hoisted_6$5, [_cache[5] || (_cache[5] = createElementVNode("div", { class: "input-icon text-input-icon" }, "T", -1)), withDirectives(createElementVNode("input", {
|
|
19234
19246
|
type: "text",
|
|
19235
19247
|
name: "text",
|
|
@@ -21646,7 +21658,7 @@ var FOCUSABLE_SELECTOR = [
|
|
|
21646
21658
|
].join(", ");
|
|
21647
21659
|
//#endregion
|
|
21648
21660
|
//#region src/components/surfaces/SurfaceDialog.vue
|
|
21649
|
-
var _hoisted_1$
|
|
21661
|
+
var _hoisted_1$19 = ["aria-labelledby", "aria-label"];
|
|
21650
21662
|
var _hoisted_2$15 = ["id"];
|
|
21651
21663
|
var _hoisted_3$12 = { class: "sd-surface-dialog__content" };
|
|
21652
21664
|
var SurfaceDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
@@ -21794,13 +21806,13 @@ var SurfaceDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
21794
21806
|
"render",
|
|
21795
21807
|
"resolve",
|
|
21796
21808
|
"close"
|
|
21797
|
-
])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 12, _hoisted_1$
|
|
21809
|
+
])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 12, _hoisted_1$19)], 32);
|
|
21798
21810
|
};
|
|
21799
21811
|
}
|
|
21800
21812
|
}, [["__scopeId", "data-v-5cee3b11"]]);
|
|
21801
21813
|
//#endregion
|
|
21802
21814
|
//#region src/components/surfaces/SurfaceFloating.vue
|
|
21803
|
-
var _hoisted_1$
|
|
21815
|
+
var _hoisted_1$18 = ["aria-labelledby", "aria-label"];
|
|
21804
21816
|
var _hoisted_2$14 = ["id"];
|
|
21805
21817
|
var _hoisted_3$11 = { class: "sd-surface-floating__content" };
|
|
21806
21818
|
var SurfaceFloating_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
@@ -21948,7 +21960,7 @@ var SurfaceFloating_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
21948
21960
|
"render",
|
|
21949
21961
|
"resolve",
|
|
21950
21962
|
"close"
|
|
21951
|
-
])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 14, _hoisted_1$
|
|
21963
|
+
])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 14, _hoisted_1$18);
|
|
21952
21964
|
};
|
|
21953
21965
|
}
|
|
21954
21966
|
}, [["__scopeId", "data-v-cd2be5db"]]);
|
|
@@ -22176,9 +22188,10 @@ var SurfaceHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
22176
22188
|
}, [["__scopeId", "data-v-dad99b67"]]);
|
|
22177
22189
|
//#endregion
|
|
22178
22190
|
//#region src/SuperDoc.vue
|
|
22179
|
-
var _hoisted_1$
|
|
22180
|
-
var _hoisted_2$13 =
|
|
22181
|
-
var _hoisted_3$10 = { class: "
|
|
22191
|
+
var _hoisted_1$17 = ["data-superdoc-ui-owner"];
|
|
22192
|
+
var _hoisted_2$13 = ["innerHTML"];
|
|
22193
|
+
var _hoisted_3$10 = { class: "superdoc__document document" };
|
|
22194
|
+
var _hoisted_4$8 = { class: "floating-comments" };
|
|
22182
22195
|
var TRACKED_CHANGE_CARRIERS_RESTAMPED_EVENT = "superdoc:v2-tracked-change-carriers-restamped";
|
|
22183
22196
|
var UNAVAILABLE_COMMAND_RESULT = false;
|
|
22184
22197
|
var V2_SELECTION_TOOLBAR_SYNC_RETRY_FRAMES = 3;
|
|
@@ -22186,7 +22199,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
22186
22199
|
__name: "SuperDoc",
|
|
22187
22200
|
emits: ["selection-update"],
|
|
22188
22201
|
setup(__props, { emit: __emit }) {
|
|
22189
|
-
const PdfViewer = defineAsyncComponent(() => import("./chunks/PdfViewer-
|
|
22202
|
+
const PdfViewer = defineAsyncComponent(() => import("./chunks/PdfViewer-DjdsIh6n.es.js"));
|
|
22190
22203
|
const getDocumentLoadPassword = (doc) => doc.password ?? proxy.$superdoc.config.password;
|
|
22191
22204
|
const resolveDocumentV2Collaboration = (doc) => {
|
|
22192
22205
|
const rawConfig = doc?.v2Collaboration;
|
|
@@ -24607,6 +24620,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
24607
24620
|
"superdoc--contained": unref(proxy).$superdoc.config.contained,
|
|
24608
24621
|
"high-contrast": unref(isHighContrastMode)
|
|
24609
24622
|
}]),
|
|
24623
|
+
"data-superdoc-ui-owner": unref(getSuperDocUiOwnerId)(unref(proxy).$superdoc),
|
|
24610
24624
|
style: normalizeStyle(superdocStyleVars.value),
|
|
24611
24625
|
onKeydown: handleContainerKeydown
|
|
24612
24626
|
}, [
|
|
@@ -24626,7 +24640,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
24626
24640
|
}, [createElementVNode("div", {
|
|
24627
24641
|
class: "superdoc__tools-icon",
|
|
24628
24642
|
innerHTML: unref(superdocIcons).comment
|
|
24629
|
-
}, null, 8,
|
|
24643
|
+
}, null, 8, _hoisted_2$13)], 32)], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_3$10, [
|
|
24630
24644
|
isCommentsEnabled.value ? (openBlock(), createElementBlock("div", {
|
|
24631
24645
|
key: 0,
|
|
24632
24646
|
class: "superdoc__selection-layer selection-layer",
|
|
@@ -24761,7 +24775,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
24761
24775
|
ref_key: "rightSidebarRef",
|
|
24762
24776
|
ref: rightSidebarRef,
|
|
24763
24777
|
class: "superdoc__right-sidebar right-sidebar"
|
|
24764
|
-
}, [createElementVNode("div",
|
|
24778
|
+
}, [createElementVNode("div", _hoisted_4$8, [unref(hasInitializedLocations) && (floatingComments.value.length > 0 || unref(pendingComment)) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(documentsWithConverations), (doc) => {
|
|
24765
24779
|
return openBlock(), createBlock(FloatingComments_default, {
|
|
24766
24780
|
parent: layers.value,
|
|
24767
24781
|
"current-document": doc
|
|
@@ -24776,10 +24790,10 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
24776
24790
|
parent: layers.value
|
|
24777
24791
|
}, null, 8, ["comment", "parent"])], 4)) : createCommentVNode("", true),
|
|
24778
24792
|
createVNode(SurfaceHost_default, { "geometry-target": layers.value }, null, 8, ["geometry-target"])
|
|
24779
|
-
],
|
|
24793
|
+
], 46, _hoisted_1$17);
|
|
24780
24794
|
};
|
|
24781
24795
|
}
|
|
24782
|
-
}, [["__scopeId", "data-v-
|
|
24796
|
+
}, [["__scopeId", "data-v-e8f59dd7"]]);
|
|
24783
24797
|
//#endregion
|
|
24784
24798
|
//#region src/core/create-app.js
|
|
24785
24799
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
@@ -39322,7 +39336,7 @@ var throttle = (func, wait, options) => {
|
|
|
39322
39336
|
};
|
|
39323
39337
|
//#endregion
|
|
39324
39338
|
//#region src/internal/toolbar/built-in/ToolbarButtonIcon.vue
|
|
39325
|
-
var _hoisted_1$
|
|
39339
|
+
var _hoisted_1$16 = { class: "sd-toolbar-icon" };
|
|
39326
39340
|
var _hoisted_2$12 = ["innerHTML"];
|
|
39327
39341
|
var ToolbarButtonIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
39328
39342
|
__name: "ToolbarButtonIcon",
|
|
@@ -39350,7 +39364,7 @@ var ToolbarButtonIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
39350
39364
|
return ["color", "highlight"].includes(props.name);
|
|
39351
39365
|
});
|
|
39352
39366
|
return (_ctx, _cache) => {
|
|
39353
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
39367
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [createElementVNode("div", {
|
|
39354
39368
|
class: normalizeClass(["sd-toolbar-icon__icon", [`sd-toolbar-icon__icon--${props.name}`]]),
|
|
39355
39369
|
innerHTML: __props.icon
|
|
39356
39370
|
}, null, 10, _hoisted_2$12), hasColorBar.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -39363,7 +39377,7 @@ var ToolbarButtonIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
39363
39377
|
}, [["__scopeId", "data-v-65ecd5b1"]]);
|
|
39364
39378
|
//#endregion
|
|
39365
39379
|
//#region src/internal/toolbar/built-in/ToolbarButton.vue
|
|
39366
|
-
var _hoisted_1$
|
|
39380
|
+
var _hoisted_1$15 = [
|
|
39367
39381
|
"role",
|
|
39368
39382
|
"aria-label",
|
|
39369
39383
|
"aria-disabled"
|
|
@@ -39374,7 +39388,7 @@ var _hoisted_4$7 = {
|
|
|
39374
39388
|
key: 1,
|
|
39375
39389
|
class: "sd-button-label"
|
|
39376
39390
|
};
|
|
39377
|
-
var _hoisted_5$
|
|
39391
|
+
var _hoisted_5$6 = ["data-item", "aria-label"];
|
|
39378
39392
|
var _hoisted_6$4 = ["innerHTML"];
|
|
39379
39393
|
var _hoisted_7$2 = { key: 2 };
|
|
39380
39394
|
var _hoisted_8$2 = ["onKeydown", "id"];
|
|
@@ -39602,7 +39616,7 @@ var ToolbarButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39602
39616
|
class: "sd-dropdown-caret",
|
|
39603
39617
|
innerHTML: caretIcon.value,
|
|
39604
39618
|
style: normalizeStyle({ opacity: unref(disabled) ? .6 : 1 })
|
|
39605
|
-
}, null, 12, _hoisted_6$4)], 8, _hoisted_5$
|
|
39619
|
+
}, null, 12, _hoisted_6$4)], 8, _hoisted_5$6)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
39606
39620
|
unref(icon) ? (openBlock(), createBlock(ToolbarButtonIcon_default, {
|
|
39607
39621
|
key: 0,
|
|
39608
39622
|
color: unref(iconColor),
|
|
@@ -39657,13 +39671,13 @@ var ToolbarButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39657
39671
|
}, null, 12, _hoisted_10$1)) : createCommentVNode("", true)
|
|
39658
39672
|
], 64)),
|
|
39659
39673
|
createElementVNode("div", _hoisted_11$1, toDisplayString(`${unref(attributes).ariaLabel} ${unref(active) ? "selected" : "unset"}`), 1)
|
|
39660
|
-
], 10, _hoisted_2$11)], 46, _hoisted_1$
|
|
39674
|
+
], 10, _hoisted_2$11)], 46, _hoisted_1$15);
|
|
39661
39675
|
};
|
|
39662
39676
|
}
|
|
39663
39677
|
}, [["__scopeId", "data-v-96796456"]]);
|
|
39664
39678
|
//#endregion
|
|
39665
39679
|
//#region src/internal/toolbar/built-in/ToolbarSeparator.vue
|
|
39666
|
-
var _hoisted_1$
|
|
39680
|
+
var _hoisted_1$14 = {
|
|
39667
39681
|
class: "toolbar-separator",
|
|
39668
39682
|
role: "separator",
|
|
39669
39683
|
"aria-label": "Toolbar separator"
|
|
@@ -39682,7 +39696,7 @@ var ToolbarSeparator_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39682
39696
|
return "var(--sd-ui-border, #dbdbdb)";
|
|
39683
39697
|
};
|
|
39684
39698
|
return (_ctx, _cache) => {
|
|
39685
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
39699
|
+
return openBlock(), createElementBlock("div", _hoisted_1$14, [createElementVNode("div", {
|
|
39686
39700
|
class: "separator-inner",
|
|
39687
39701
|
style: normalizeStyle({ backgroundColor: getSeparatorColor() })
|
|
39688
39702
|
}, null, 4)]);
|
|
@@ -39691,13 +39705,14 @@ var ToolbarSeparator_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39691
39705
|
}, [["__scopeId", "data-v-cb82253a"]]);
|
|
39692
39706
|
//#endregion
|
|
39693
39707
|
//#region src/internal/toolbar/built-in/ToolbarDropdown.vue
|
|
39694
|
-
var _hoisted_1$
|
|
39695
|
-
var _hoisted_2$10 = ["
|
|
39696
|
-
var _hoisted_3$8 =
|
|
39708
|
+
var _hoisted_1$13 = { class: "toolbar-dropdown" };
|
|
39709
|
+
var _hoisted_2$10 = ["data-superdoc-ui-owner"];
|
|
39710
|
+
var _hoisted_3$8 = ["onClick"];
|
|
39711
|
+
var _hoisted_4$6 = {
|
|
39697
39712
|
key: 0,
|
|
39698
39713
|
class: "toolbar-dropdown-option__icon"
|
|
39699
39714
|
};
|
|
39700
|
-
var
|
|
39715
|
+
var _hoisted_5$5 = { class: "toolbar-dropdown-option__label" };
|
|
39701
39716
|
var TRIGGER_FOCUS_SELECTOR = "button, [href], input, select, textarea, [role=\"button\"], [tabindex]:not([tabindex=\"-1\"])";
|
|
39702
39717
|
var ToolbarDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
39703
39718
|
__name: "ToolbarDropdown",
|
|
@@ -39744,6 +39759,7 @@ var ToolbarDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
39744
39759
|
const props = __props;
|
|
39745
39760
|
const emit = __emit;
|
|
39746
39761
|
const slots = useSlots();
|
|
39762
|
+
const toolbarOwnerId = inject$1("sdToolbarOwnerId", null);
|
|
39747
39763
|
const triggerRef = ref(null);
|
|
39748
39764
|
const menuRef = ref(null);
|
|
39749
39765
|
const menuPosition = ref({
|
|
@@ -40046,7 +40062,7 @@ var ToolbarDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40046
40062
|
window.removeEventListener("scroll", updateMenuPosition, true);
|
|
40047
40063
|
});
|
|
40048
40064
|
return (_ctx, _cache) => {
|
|
40049
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
40065
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [createElementVNode("div", {
|
|
40050
40066
|
ref_key: "triggerRef",
|
|
40051
40067
|
ref: triggerRef,
|
|
40052
40068
|
class: "toolbar-dropdown-trigger",
|
|
@@ -40060,7 +40076,7 @@ var ToolbarDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40060
40076
|
"data-sd-part": "dropdown-menu",
|
|
40061
40077
|
class: mergedMenuClass.value,
|
|
40062
40078
|
style: menuStyle.value
|
|
40063
|
-
}, computedMenuAttrs.value), [hasCustomMenu.value ? renderSlot(_ctx.$slots, "menu", { key: 0 }, void 0, true) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(hasCustomMenu.value ? [] : __props.options, (option, index) => {
|
|
40079
|
+
}, computedMenuAttrs.value, { "data-superdoc-ui-owner": unref(toolbarOwnerId) }), [hasCustomMenu.value ? renderSlot(_ctx.$slots, "menu", { key: 0 }, void 0, true) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(hasCustomMenu.value ? [] : __props.options, (option, index) => {
|
|
40064
40080
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
40065
40081
|
key: option.key,
|
|
40066
40082
|
ref_for: true,
|
|
@@ -40081,13 +40097,13 @@ var ToolbarDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40081
40097
|
}), [isRenderOption(option) ? (openBlock(), createBlock(unref(RenderOption), {
|
|
40082
40098
|
key: 0,
|
|
40083
40099
|
option
|
|
40084
|
-
}, null, 8, ["option"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [hasIcon(option) ? (openBlock(), createElementBlock("span",
|
|
40085
|
-
}), 128))], 16)) : createCommentVNode("", true)]),
|
|
40100
|
+
}, null, 8, ["option"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [hasIcon(option) ? (openBlock(), createElementBlock("span", _hoisted_4$6, [createVNode(unref(OptionIcon), { option }, null, 8, ["option"])])) : createCommentVNode("", true), createElementVNode("span", _hoisted_5$5, toDisplayString(option.label), 1)], 64))], 16, _hoisted_3$8);
|
|
40101
|
+
}), 128))], 16, _hoisted_2$10)) : createCommentVNode("", true)]),
|
|
40086
40102
|
_: 3
|
|
40087
40103
|
})], 8, ["to"]))]);
|
|
40088
40104
|
};
|
|
40089
40105
|
}
|
|
40090
|
-
}, [["__scopeId", "data-v-
|
|
40106
|
+
}, [["__scopeId", "data-v-e6f71d76"]]);
|
|
40091
40107
|
//#endregion
|
|
40092
40108
|
//#region src/internal/toolbar/built-in/toolbar-focus-helpers.js
|
|
40093
40109
|
var preventEditorFocusTransfer = (event) => {
|
|
@@ -40309,7 +40325,7 @@ var normalizeCustomFontSize = (value) => {
|
|
|
40309
40325
|
};
|
|
40310
40326
|
//#endregion
|
|
40311
40327
|
//#region src/internal/toolbar/built-in/ToolbarComboBox.vue
|
|
40312
|
-
var _hoisted_1$
|
|
40328
|
+
var _hoisted_1$12 = ["data-item"];
|
|
40313
40329
|
var _hoisted_2$9 = [
|
|
40314
40330
|
"id",
|
|
40315
40331
|
"value",
|
|
@@ -40326,7 +40342,11 @@ var _hoisted_3$7 = [
|
|
|
40326
40342
|
"disabled"
|
|
40327
40343
|
];
|
|
40328
40344
|
var _hoisted_4$5 = ["innerHTML"];
|
|
40329
|
-
var _hoisted_5$4 = [
|
|
40345
|
+
var _hoisted_5$4 = [
|
|
40346
|
+
"data-superdoc-ui-owner",
|
|
40347
|
+
"id",
|
|
40348
|
+
"aria-label"
|
|
40349
|
+
];
|
|
40330
40350
|
var _hoisted_6$3 = [
|
|
40331
40351
|
"id",
|
|
40332
40352
|
"aria-selected",
|
|
@@ -40369,6 +40389,7 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40369
40389
|
const props = __props;
|
|
40370
40390
|
const emit = __emit;
|
|
40371
40391
|
const { isHighContrastMode } = useHighContrastMode();
|
|
40392
|
+
const toolbarOwnerId = inject$1("sdToolbarOwnerId", null);
|
|
40372
40393
|
const inputRef = ref(null);
|
|
40373
40394
|
const rootRef = ref(null);
|
|
40374
40395
|
const popupRef = ref(null);
|
|
@@ -40795,6 +40816,7 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40795
40816
|
ref: popupRef,
|
|
40796
40817
|
role: "listbox",
|
|
40797
40818
|
"data-sd-part": "dropdown-menu",
|
|
40819
|
+
"data-superdoc-ui-owner": unref(toolbarOwnerId),
|
|
40798
40820
|
id: listboxId.value,
|
|
40799
40821
|
"aria-label": ariaLabel.value,
|
|
40800
40822
|
class: normalizeClass(["sd-font-combobox__listbox", { "high-contrast": unref(isHighContrastMode) }]),
|
|
@@ -40820,10 +40842,10 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40820
40842
|
}), [createElementVNode("span", _hoisted_7$1, toDisplayString(option.label), 1)], 16, _hoisted_6$3);
|
|
40821
40843
|
}), 128))], 14, _hoisted_5$4)) : createCommentVNode("", true)])),
|
|
40822
40844
|
createElementVNode("span", _hoisted_8$1, toDisplayString(appliedLabel.value), 1)
|
|
40823
|
-
], 14, _hoisted_1$
|
|
40845
|
+
], 14, _hoisted_1$12);
|
|
40824
40846
|
};
|
|
40825
40847
|
}
|
|
40826
|
-
}, [["__scopeId", "data-v-
|
|
40848
|
+
}, [["__scopeId", "data-v-eb442535"]]);
|
|
40827
40849
|
//#endregion
|
|
40828
40850
|
//#region src/internal/toolbar/built-in/FontFamilyCombobox.vue
|
|
40829
40851
|
var _sfc_main$14 = {
|
|
@@ -41126,7 +41148,7 @@ var SdTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
41126
41148
|
}), [["__scopeId", "data-v-71c6de4c"]]);
|
|
41127
41149
|
//#endregion
|
|
41128
41150
|
//#region src/internal/toolbar/built-in/ButtonGroup.vue
|
|
41129
|
-
var _hoisted_1$
|
|
41151
|
+
var _hoisted_1$11 = [
|
|
41130
41152
|
"onKeydown",
|
|
41131
41153
|
"tabindex",
|
|
41132
41154
|
"data-item-id"
|
|
@@ -41622,7 +41644,7 @@ var ButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41622
41644
|
"onButtonClick",
|
|
41623
41645
|
"overflow-items"
|
|
41624
41646
|
])) : createCommentVNode("", true)
|
|
41625
|
-
], 42, _hoisted_1$
|
|
41647
|
+
], 42, _hoisted_1$11);
|
|
41626
41648
|
}), 128))], 36);
|
|
41627
41649
|
};
|
|
41628
41650
|
}
|
|
@@ -41811,6 +41833,7 @@ var NON_HEADLESS_EXECUTE_ITEM_NAMES = /* @__PURE__ */ new Set(["link"]);
|
|
|
41811
41833
|
new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
|
|
41812
41834
|
//#endregion
|
|
41813
41835
|
//#region src/internal/toolbar/built-in/Toolbar.vue
|
|
41836
|
+
var _hoisted_1$10 = ["data-superdoc-ui-owner"];
|
|
41814
41837
|
/**
|
|
41815
41838
|
* The default font-family to use for toolbar UI surfaces when no custom font is configured.
|
|
41816
41839
|
* This constant ensures consistency across the toolbar application.
|
|
@@ -41826,6 +41849,7 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41826
41849
|
],
|
|
41827
41850
|
setup(__props, { emit: __emit }) {
|
|
41828
41851
|
const { proxy } = getCurrentInstance();
|
|
41852
|
+
provide$1("sdToolbarOwnerId", getSuperDocUiOwnerId(proxy.$toolbar.superdoc));
|
|
41829
41853
|
let toolbarKey = ref(1);
|
|
41830
41854
|
const toolbarRoot = ref(null);
|
|
41831
41855
|
const toolbarStateVersion = ref(0);
|
|
@@ -41970,6 +41994,7 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41970
41994
|
"aria-label": "Toolbar",
|
|
41971
41995
|
"data-sd-part": "toolbar",
|
|
41972
41996
|
"data-editor-ui-surface": "",
|
|
41997
|
+
"data-superdoc-ui-owner": unref(getSuperDocUiOwnerId)(unref(proxy).$toolbar.superdoc),
|
|
41973
41998
|
onMousedown: handleToolbarMousedown
|
|
41974
41999
|
}, [
|
|
41975
42000
|
unref(showLeftSide) ? (openBlock(), createBlock(ButtonGroup_default, {
|
|
@@ -42018,10 +42043,10 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
42018
42043
|
"compact-side-groups",
|
|
42019
42044
|
"ui-font-family"
|
|
42020
42045
|
])) : createCommentVNode("", true)
|
|
42021
|
-
],
|
|
42046
|
+
], 40, _hoisted_1$10);
|
|
42022
42047
|
};
|
|
42023
42048
|
}
|
|
42024
|
-
}, [["__scopeId", "data-v-
|
|
42049
|
+
}, [["__scopeId", "data-v-0790fc37"]]);
|
|
42025
42050
|
//#endregion
|
|
42026
42051
|
//#region src/internal/toolbar/built-in/font-options.js
|
|
42027
42052
|
/**
|
|
@@ -46553,7 +46578,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46553
46578
|
}
|
|
46554
46579
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46555
46580
|
this.colorIndex = 0;
|
|
46556
|
-
this.version = "2.
|
|
46581
|
+
this.version = "2.25.0-next.2";
|
|
46557
46582
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46558
46583
|
this.superdocId = config.superdocId || v4();
|
|
46559
46584
|
this.colors = this.config.colors ?? [];
|