superdoc 2.27.0-next.9 → 2.28.0-next.1
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/{create-super-doc-ui-cHUUipYM.es.js → create-super-doc-ui-B29zw5qD.es.js} +155 -2
- package/dist/chunks/{create-super-doc-ui-DpVh2nQH.cjs → create-super-doc-ui-D1eOhAjv.cjs} +155 -2
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/index.d.ts +3 -3
- package/dist/document-api/src/styles/apply.d.ts +26 -2
- package/dist/document-api/src/styles/index.d.ts +3 -3
- package/dist/document-api/src/styles/schema.d.ts +3 -1
- package/dist/document-api/src/styles/validation.d.ts +10 -9
- package/dist/document-api/src/types/mutation-plan.types.d.ts +11 -4
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/layout-engine/contracts/src/index.d.ts +1 -1
- package/dist/layout-engine/contracts/src/run-helpers.d.ts +7 -0
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +1 -0
- package/dist/layout-engine/painters/dom/src/review-markers.d.ts +3 -0
- package/dist/layout-engine/painters/dom/src/table/renderTableCell.d.ts +1 -0
- 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 +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +3 -1
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +1 -0
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +1 -0
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +7 -0
- package/dist/superdoc/src/public/ui/types.d.ts +5 -1
- package/dist/superdoc/src/public/ui.d.cts +4 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc.cjs +118 -62
- package/dist/superdoc.es.js +115 -61
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -38
- package/package.json +2 -2
|
@@ -18,5 +18,5 @@ export { createSuperDocUI } from './ui/create-super-doc-ui.js';
|
|
|
18
18
|
export { getDocumentApiRejectionReason } from './ui/rejection-reasons.js';
|
|
19
19
|
export { shallowEqual } from './ui/equality.js';
|
|
20
20
|
export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
|
|
21
|
-
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, } from './ui/types.js';
|
|
21
|
+
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, StylesUpdateToMatchSelectionInput, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, } from './ui/types.js';
|
|
22
22
|
export type { PageMetricsHandle, PageMetricsSnapshot, PageMetricsPage, PageBodyTarget } from './ui/page-metrics.js';
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./chunks/rolldown-runtime-74VwNCz7.cjs");
|
|
3
3
|
const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
4
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
4
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-D1eOhAjv.cjs");
|
|
5
5
|
const require_eventemitter3 = require("./chunks/eventemitter3-C_TAnXOl.cjs");
|
|
6
6
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
7
7
|
const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-BUdjGKyl.cjs");
|
|
@@ -260,7 +260,7 @@ var v_click_outside_default = {
|
|
|
260
260
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
261
261
|
function getSuperdocVersion() {
|
|
262
262
|
try {
|
|
263
|
-
return "2.
|
|
263
|
+
return "2.28.0-next.1";
|
|
264
264
|
} catch {
|
|
265
265
|
return "unknown";
|
|
266
266
|
}
|
|
@@ -12255,11 +12255,11 @@ function useUiFontFamily() {
|
|
|
12255
12255
|
//#region src/components/CommentsLayer/CommentsDropdown.vue
|
|
12256
12256
|
var _hoisted_1$31 = { class: "comments-dropdown" };
|
|
12257
12257
|
var _hoisted_2$24 = ["onClick"];
|
|
12258
|
-
var _hoisted_3$
|
|
12258
|
+
var _hoisted_3$21 = {
|
|
12259
12259
|
key: 0,
|
|
12260
12260
|
class: "comments-dropdown__option-icon"
|
|
12261
12261
|
};
|
|
12262
|
-
var _hoisted_4$
|
|
12262
|
+
var _hoisted_4$15 = ["innerHTML"];
|
|
12263
12263
|
var _hoisted_5$11 = { class: "comments-dropdown__option-label" };
|
|
12264
12264
|
var _sfc_main$38 = {
|
|
12265
12265
|
__name: "CommentsDropdown",
|
|
@@ -12400,10 +12400,10 @@ var _sfc_main$38 = {
|
|
|
12400
12400
|
key: option.key,
|
|
12401
12401
|
class: require__plugin_vue_export_helper.normalizeClass(["comments-dropdown__option", { "sd-disabled": option.disabled }]),
|
|
12402
12402
|
onClick: ($event) => onOptionClick(option)
|
|
12403
|
-
}, [hasIcon(option) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_3$
|
|
12403
|
+
}, [hasIcon(option) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_3$21, [option.iconString ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", {
|
|
12404
12404
|
key: 0,
|
|
12405
12405
|
innerHTML: option.iconString
|
|
12406
|
-
}, null, 8, _hoisted_4$
|
|
12406
|
+
}, null, 8, _hoisted_4$15)) : (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(require__plugin_vue_export_helper.unref(OptionIcon), {
|
|
12407
12407
|
key: 1,
|
|
12408
12408
|
option
|
|
12409
12409
|
}, null, 8, ["option"]))])) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("span", _hoisted_5$11, require__plugin_vue_export_helper.toDisplayString(option.label), 1)], 10, _hoisted_2$24);
|
|
@@ -12416,8 +12416,8 @@ var CommentsDropdown_default = /*#__PURE__*/ require__plugin_vue_export_helper._
|
|
|
12416
12416
|
//#region src/components/CommentsLayer/InternalDropdown.vue
|
|
12417
12417
|
var _hoisted_1$30 = { class: "sd-comment-option" };
|
|
12418
12418
|
var _hoisted_2$23 = ["innerHTML"];
|
|
12419
|
-
var _hoisted_3$
|
|
12420
|
-
var _hoisted_4$
|
|
12419
|
+
var _hoisted_3$20 = { class: "sd-option-state" };
|
|
12420
|
+
var _hoisted_4$14 = ["innerHTML"];
|
|
12421
12421
|
var _sfc_main$37 = {
|
|
12422
12422
|
__name: "InternalDropdown",
|
|
12423
12423
|
props: {
|
|
@@ -12490,11 +12490,11 @@ var _sfc_main$37 = {
|
|
|
12490
12490
|
class: "sd-active-icon",
|
|
12491
12491
|
innerHTML: activeIcon.value
|
|
12492
12492
|
}, null, 8, _hoisted_2$23),
|
|
12493
|
-
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$
|
|
12493
|
+
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$20, require__plugin_vue_export_helper.toDisplayString(getState.value), 1),
|
|
12494
12494
|
require__plugin_vue_export_helper.createElementVNode("div", {
|
|
12495
12495
|
class: "sd-dropdown-caret",
|
|
12496
12496
|
innerHTML: require__plugin_vue_export_helper.unref(superdocIcons).caretDown
|
|
12497
|
-
}, null, 8, _hoisted_4$
|
|
12497
|
+
}, null, 8, _hoisted_4$14)
|
|
12498
12498
|
])]),
|
|
12499
12499
|
_: 1
|
|
12500
12500
|
}, 8, ["disabled", "content-style"])], 4);
|
|
@@ -12653,7 +12653,7 @@ var isAllowed = (permission, role, isInternal, context = {}) => {
|
|
|
12653
12653
|
//#region src/components/general/Avatar.vue
|
|
12654
12654
|
var _hoisted_1$29 = { class: "user-container" };
|
|
12655
12655
|
var _hoisted_2$22 = ["src"];
|
|
12656
|
-
var _hoisted_3$
|
|
12656
|
+
var _hoisted_3$19 = {
|
|
12657
12657
|
key: 1,
|
|
12658
12658
|
class: "user-bg"
|
|
12659
12659
|
};
|
|
@@ -12678,7 +12678,7 @@ var _sfc_main$36 = {
|
|
|
12678
12678
|
key: 0,
|
|
12679
12679
|
class: "user-bg",
|
|
12680
12680
|
src: __props.user.image.startsWith("http") ? __props.user.image : `data:image/png;base64,${__props.user.image}`
|
|
12681
|
-
}, null, 8, _hoisted_2$22)) : (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_3$
|
|
12681
|
+
}, null, 8, _hoisted_2$22)) : (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_3$19, require__plugin_vue_export_helper.toDisplayString(getInitials(__props.user.name, __props.user.email)), 1))]);
|
|
12682
12682
|
};
|
|
12683
12683
|
}
|
|
12684
12684
|
};
|
|
@@ -12687,8 +12687,8 @@ var Avatar_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue
|
|
|
12687
12687
|
//#region src/components/CommentsLayer/CommentHeader.vue
|
|
12688
12688
|
var _hoisted_1$28 = { class: "card-section comment-header" };
|
|
12689
12689
|
var _hoisted_2$21 = { class: "comment-header-left" };
|
|
12690
|
-
var _hoisted_3$
|
|
12691
|
-
var _hoisted_4$
|
|
12690
|
+
var _hoisted_3$18 = { class: "user-info" };
|
|
12691
|
+
var _hoisted_4$13 = { class: "user-name" };
|
|
12692
12692
|
var _hoisted_5$10 = {
|
|
12693
12693
|
key: 0,
|
|
12694
12694
|
class: "imported-tag"
|
|
@@ -12948,7 +12948,7 @@ var _sfc_main$35 = {
|
|
|
12948
12948
|
return require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_1$28, [require__plugin_vue_export_helper.createElementVNode("div", _hoisted_2$21, [require__plugin_vue_export_helper.createVNode(Avatar_default, {
|
|
12949
12949
|
user: getCurrentUser.value,
|
|
12950
12950
|
class: "avatar"
|
|
12951
|
-
}, null, 8, ["user"]), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$
|
|
12951
|
+
}, null, 8, ["user"]), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$18, [require__plugin_vue_export_helper.createElementVNode("div", _hoisted_4$13, [require__plugin_vue_export_helper.createTextVNode(require__plugin_vue_export_helper.toDisplayString(getCurrentUser.value.name), 1), isImported.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_5$10, "IMPORTED")) : require__plugin_vue_export_helper.createCommentVNode("", true)]), props.comment.createdTime ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_6$8, require__plugin_vue_export_helper.toDisplayString(require__plugin_vue_export_helper.unref(formatDate)(props.comment.createdTime)), 1)) : require__plugin_vue_export_helper.createCommentVNode("", true)])]), require__plugin_vue_export_helper.createElementVNode("div", { class: require__plugin_vue_export_helper.normalizeClass(["overflow-menu", { "is-visible": props.isActive }]) }, [
|
|
12952
12952
|
allowResolve.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", {
|
|
12953
12953
|
key: 0,
|
|
12954
12954
|
class: require__plugin_vue_export_helper.normalizeClass(["overflow-menu__icon", { "sd-is-disabled": Boolean(__props.resolveDisabledReason) }]),
|
|
@@ -12999,12 +12999,12 @@ var CommentHeader_default = /*#__PURE__*/ require__plugin_vue_export_helper._plu
|
|
|
12999
12999
|
//#region src/components/CommentsLayer/CommentInput.vue
|
|
13000
13000
|
var _hoisted_1$27 = { class: "input-section" };
|
|
13001
13001
|
var _hoisted_2$20 = { class: "comment-composer" };
|
|
13002
|
-
var _hoisted_3$
|
|
13002
|
+
var _hoisted_3$17 = [
|
|
13003
13003
|
"aria-expanded",
|
|
13004
13004
|
"aria-controls",
|
|
13005
13005
|
"aria-activedescendant"
|
|
13006
13006
|
];
|
|
13007
|
-
var _hoisted_4$
|
|
13007
|
+
var _hoisted_4$12 = [
|
|
13008
13008
|
"id",
|
|
13009
13009
|
"aria-selected",
|
|
13010
13010
|
"data-sd-comment-mention-option",
|
|
@@ -13194,7 +13194,7 @@ var _sfc_main$34 = {
|
|
|
13194
13194
|
onKeydown,
|
|
13195
13195
|
onFocus: _cache[1] || (_cache[1] = ($event) => handleFocusChange(true)),
|
|
13196
13196
|
onBlur: _cache[2] || (_cache[2] = ($event) => handleFocusChange(false))
|
|
13197
|
-
}, null, 40, _hoisted_3$
|
|
13197
|
+
}, null, 40, _hoisted_3$17), [[require__plugin_vue_export_helper.vModelText, commentDraft.value]]), mentionListOpen.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", {
|
|
13198
13198
|
key: 0,
|
|
13199
13199
|
id: mentionListId,
|
|
13200
13200
|
class: "comment-mention-list",
|
|
@@ -13210,7 +13210,7 @@ var _sfc_main$34 = {
|
|
|
13210
13210
|
"aria-selected": index === highlightedMentionIndex.value,
|
|
13211
13211
|
"data-sd-comment-mention-option": userKey(user),
|
|
13212
13212
|
onMousedown: require__plugin_vue_export_helper.withModifiers(($event) => selectMention(user), ["prevent"])
|
|
13213
|
-
}, [require__plugin_vue_export_helper.createElementVNode("span", _hoisted_5$9, require__plugin_vue_export_helper.toDisplayString(displayName(user)), 1), user.email ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_6$7, require__plugin_vue_export_helper.toDisplayString(user.email), 1)) : require__plugin_vue_export_helper.createCommentVNode("", true)], 42, _hoisted_4$
|
|
13213
|
+
}, [require__plugin_vue_export_helper.createElementVNode("span", _hoisted_5$9, require__plugin_vue_export_helper.toDisplayString(displayName(user)), 1), user.email ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_6$7, require__plugin_vue_export_helper.toDisplayString(user.email), 1)) : require__plugin_vue_export_helper.createCommentVNode("", true)], 42, _hoisted_4$12);
|
|
13214
13214
|
}), 128))])) : require__plugin_vue_export_helper.createCommentVNode("", true)])], 2)]);
|
|
13215
13215
|
};
|
|
13216
13216
|
}
|
|
@@ -13337,8 +13337,8 @@ var _hoisted_2$19 = {
|
|
|
13337
13337
|
key: 0,
|
|
13338
13338
|
class: "existing-internal-input"
|
|
13339
13339
|
};
|
|
13340
|
-
var _hoisted_3$
|
|
13341
|
-
var _hoisted_4$
|
|
13340
|
+
var _hoisted_3$16 = { class: "new-comment-input-wrapper" };
|
|
13341
|
+
var _hoisted_4$11 = { class: "reply-actions" };
|
|
13342
13342
|
var _hoisted_5$8 = ["disabled"];
|
|
13343
13343
|
var _hoisted_6$6 = {
|
|
13344
13344
|
key: 0,
|
|
@@ -14417,7 +14417,7 @@ var _sfc_main$33 = {
|
|
|
14417
14417
|
comment: props.comment,
|
|
14418
14418
|
"is-pending-input": true
|
|
14419
14419
|
}, null, 8, ["config", "comment"]),
|
|
14420
|
-
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$
|
|
14420
|
+
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$16, [require__plugin_vue_export_helper.createVNode(CommentInput_default, {
|
|
14421
14421
|
ref_key: "commentInput",
|
|
14422
14422
|
ref: commentInput,
|
|
14423
14423
|
users: usersFiltered.value,
|
|
@@ -14429,7 +14429,7 @@ var _sfc_main$33 = {
|
|
|
14429
14429
|
"config",
|
|
14430
14430
|
"comment"
|
|
14431
14431
|
])]),
|
|
14432
|
-
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_4$
|
|
14432
|
+
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_4$11, [require__plugin_vue_export_helper.createElementVNode("button", {
|
|
14433
14433
|
class: "sd-button reply-btn-cancel",
|
|
14434
14434
|
onClick: require__plugin_vue_export_helper.withModifiers(handleCancel, ["stop", "prevent"])
|
|
14435
14435
|
}, "Cancel"), require__plugin_vue_export_helper.createElementVNode("button", {
|
|
@@ -14756,7 +14756,7 @@ var ReviewDirectoryListItem_default = /*#__PURE__*/ require__plugin_vue_export_h
|
|
|
14756
14756
|
//#region src/components/CommentsLayer/commentsList/commentsList.vue
|
|
14757
14757
|
var _hoisted_1$24 = ["aria-busy"];
|
|
14758
14758
|
var _hoisted_2$18 = { key: 0 };
|
|
14759
|
-
var _hoisted_3$
|
|
14759
|
+
var _hoisted_3$15 = { key: 1 };
|
|
14760
14760
|
var REPEATED_HEADER_FOOTER_STORY_TYPE = "headerFooterPart";
|
|
14761
14761
|
var _sfc_main$31 = {
|
|
14762
14762
|
__name: "commentsList",
|
|
@@ -14900,7 +14900,7 @@ var _sfc_main$31 = {
|
|
|
14900
14900
|
"total",
|
|
14901
14901
|
"tab-index"
|
|
14902
14902
|
]);
|
|
14903
|
-
}), 128))])) : require__plugin_vue_export_helper.createCommentVNode("", true), shouldShowResolvedComments.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_3$
|
|
14903
|
+
}), 128))])) : require__plugin_vue_export_helper.createCommentVNode("", true), shouldShowResolvedComments.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_3$15, [_cache[2] || (_cache[2] = require__plugin_vue_export_helper.createElementVNode("div", { class: "comment-title" }, "Resolved", -1)), (require__plugin_vue_export_helper.openBlock(true), require__plugin_vue_export_helper.createElementBlock(require__plugin_vue_export_helper.Fragment, null, require__plugin_vue_export_helper.renderList(resolvedCommentDisplayItems.value, (item, index) => {
|
|
14904
14904
|
return require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(ReviewDirectoryListItem_default, {
|
|
14905
14905
|
key: item.id,
|
|
14906
14906
|
item,
|
|
@@ -19026,11 +19026,11 @@ var _hoisted_2$16 = {
|
|
|
19026
19026
|
key: 1,
|
|
19027
19027
|
class: "link-title"
|
|
19028
19028
|
};
|
|
19029
|
-
var _hoisted_3$
|
|
19029
|
+
var _hoisted_3$14 = {
|
|
19030
19030
|
key: 2,
|
|
19031
19031
|
class: "link-title"
|
|
19032
19032
|
};
|
|
19033
|
-
var _hoisted_4$
|
|
19033
|
+
var _hoisted_4$10 = {
|
|
19034
19034
|
key: 3,
|
|
19035
19035
|
class: "link-title"
|
|
19036
19036
|
};
|
|
@@ -19289,7 +19289,7 @@ var _sfc_main$26 = {
|
|
|
19289
19289
|
};
|
|
19290
19290
|
return (_ctx, _cache) => {
|
|
19291
19291
|
return require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", { class: require__plugin_vue_export_helper.normalizeClass(["link-input-ctn", { "high-contrast": require__plugin_vue_export_helper.unref(isHighContrastMode) }]) }, [
|
|
19292
|
-
isAnchor.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_1$20, "Page anchor")) : isViewingMode.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_2$16, "Link details")) : isEditing.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_3$
|
|
19292
|
+
isAnchor.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_1$20, "Page anchor")) : isViewingMode.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_2$16, "Link details")) : isEditing.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_3$14, "Edit link")) : (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_4$10, "Add link")),
|
|
19293
19293
|
__props.showInput && !isAnchor.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_5$7, [
|
|
19294
19294
|
require__plugin_vue_export_helper.createElementVNode("div", _hoisted_6$5, [_cache[5] || (_cache[5] = require__plugin_vue_export_helper.createElementVNode("div", { class: "input-icon text-input-icon" }, "T", -1)), require__plugin_vue_export_helper.withDirectives(require__plugin_vue_export_helper.createElementVNode("input", {
|
|
19295
19295
|
type: "text",
|
|
@@ -21390,7 +21390,7 @@ var FOCUSABLE_SELECTOR = [
|
|
|
21390
21390
|
//#region src/components/surfaces/SurfaceDialog.vue
|
|
21391
21391
|
var _hoisted_1$19 = ["aria-labelledby", "aria-label"];
|
|
21392
21392
|
var _hoisted_2$15 = ["id"];
|
|
21393
|
-
var _hoisted_3$
|
|
21393
|
+
var _hoisted_3$13 = { class: "sd-surface-dialog__content" };
|
|
21394
21394
|
var _sfc_main$24 = {
|
|
21395
21395
|
__name: "SurfaceDialog",
|
|
21396
21396
|
props: {
|
|
@@ -21522,7 +21522,7 @@ var _sfc_main$24 = {
|
|
|
21522
21522
|
key: 0,
|
|
21523
21523
|
id: titleId.value,
|
|
21524
21524
|
class: "sd-surface-dialog__title"
|
|
21525
|
-
}, require__plugin_vue_export_helper.toDisplayString(__props.surface.request.title), 9, _hoisted_2$15)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$
|
|
21525
|
+
}, require__plugin_vue_export_helper.toDisplayString(__props.surface.request.title), 9, _hoisted_2$15)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$13, [__props.surface.render ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(SurfaceExternalMount_default, {
|
|
21526
21526
|
key: 0,
|
|
21527
21527
|
"surface-id": __props.surface.id,
|
|
21528
21528
|
mode: "dialog",
|
|
@@ -21545,7 +21545,7 @@ var SurfaceDialog_default = /*#__PURE__*/ require__plugin_vue_export_helper._plu
|
|
|
21545
21545
|
//#region src/components/surfaces/SurfaceFloating.vue
|
|
21546
21546
|
var _hoisted_1$18 = ["aria-labelledby", "aria-label"];
|
|
21547
21547
|
var _hoisted_2$14 = ["id"];
|
|
21548
|
-
var _hoisted_3$
|
|
21548
|
+
var _hoisted_3$12 = { class: "sd-surface-floating__content" };
|
|
21549
21549
|
var _sfc_main$23 = {
|
|
21550
21550
|
__name: "SurfaceFloating",
|
|
21551
21551
|
props: { surface: {
|
|
@@ -21677,7 +21677,7 @@ var _sfc_main$23 = {
|
|
|
21677
21677
|
key: 0,
|
|
21678
21678
|
id: titleId.value,
|
|
21679
21679
|
class: "sd-surface-floating__title"
|
|
21680
|
-
}, require__plugin_vue_export_helper.toDisplayString(__props.surface.request.title), 9, _hoisted_2$14)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$
|
|
21680
|
+
}, require__plugin_vue_export_helper.toDisplayString(__props.surface.request.title), 9, _hoisted_2$14)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$12, [__props.surface.render ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(SurfaceExternalMount_default, {
|
|
21681
21681
|
key: 0,
|
|
21682
21682
|
"surface-id": __props.surface.id,
|
|
21683
21683
|
mode: "floating",
|
|
@@ -21925,8 +21925,8 @@ var SurfaceHost_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugi
|
|
|
21925
21925
|
//#region src/SuperDoc.vue
|
|
21926
21926
|
var _hoisted_1$17 = ["data-superdoc-ui-owner"];
|
|
21927
21927
|
var _hoisted_2$13 = ["innerHTML"];
|
|
21928
|
-
var _hoisted_3$
|
|
21929
|
-
var _hoisted_4$
|
|
21928
|
+
var _hoisted_3$11 = { class: "superdoc__document document" };
|
|
21929
|
+
var _hoisted_4$9 = { class: "floating-comments" };
|
|
21930
21930
|
var TRACKED_CHANGE_CARRIERS_RESTAMPED_EVENT = "superdoc:v2-tracked-change-carriers-restamped";
|
|
21931
21931
|
var UNAVAILABLE_COMMAND_RESULT = false;
|
|
21932
21932
|
var V2_SELECTION_TOOLBAR_SYNC_RETRY_FRAMES = 3;
|
|
@@ -24405,7 +24405,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
|
|
|
24405
24405
|
}, [require__plugin_vue_export_helper.createElementVNode("div", {
|
|
24406
24406
|
class: "superdoc__tools-icon",
|
|
24407
24407
|
innerHTML: require__plugin_vue_export_helper.unref(superdocIcons).comment
|
|
24408
|
-
}, null, 8, _hoisted_2$13)], 32)], 4)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$
|
|
24408
|
+
}, null, 8, _hoisted_2$13)], 32)], 4)) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_3$11, [
|
|
24409
24409
|
isCommentsEnabled.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", {
|
|
24410
24410
|
key: 0,
|
|
24411
24411
|
class: "superdoc__selection-layer selection-layer",
|
|
@@ -24533,7 +24533,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
|
|
|
24533
24533
|
ref_key: "rightSidebarRef",
|
|
24534
24534
|
ref: rightSidebarRef,
|
|
24535
24535
|
class: "superdoc__right-sidebar right-sidebar"
|
|
24536
|
-
}, [require__plugin_vue_export_helper.createElementVNode("div", _hoisted_4$
|
|
24536
|
+
}, [require__plugin_vue_export_helper.createElementVNode("div", _hoisted_4$9, [require__plugin_vue_export_helper.unref(hasInitializedLocations) && (floatingComments.value.length > 0 || require__plugin_vue_export_helper.unref(pendingComment)) ? (require__plugin_vue_export_helper.openBlock(true), require__plugin_vue_export_helper.createElementBlock(require__plugin_vue_export_helper.Fragment, { key: 0 }, require__plugin_vue_export_helper.renderList(require__plugin_vue_export_helper.unref(documentsWithConverations), (doc) => {
|
|
24537
24537
|
return require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(FloatingComments_default, {
|
|
24538
24538
|
parent: layers.value,
|
|
24539
24539
|
"current-document": doc
|
|
@@ -39038,8 +39038,8 @@ var _hoisted_1$15 = [
|
|
|
39038
39038
|
"aria-disabled"
|
|
39039
39039
|
];
|
|
39040
39040
|
var _hoisted_2$11 = ["data-item"];
|
|
39041
|
-
var _hoisted_3$
|
|
39042
|
-
var _hoisted_4$
|
|
39041
|
+
var _hoisted_3$10 = ["data-item"];
|
|
39042
|
+
var _hoisted_4$8 = {
|
|
39043
39043
|
key: 1,
|
|
39044
39044
|
class: "sd-button-label"
|
|
39045
39045
|
};
|
|
@@ -39260,7 +39260,7 @@ var _sfc_main$19 = {
|
|
|
39260
39260
|
"color",
|
|
39261
39261
|
"icon",
|
|
39262
39262
|
"name"
|
|
39263
|
-
])) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.unref(label) && !require__plugin_vue_export_helper.unref(hideLabel) && !require__plugin_vue_export_helper.unref(inlineTextInputVisible) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_4$
|
|
39263
|
+
])) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.unref(label) && !require__plugin_vue_export_helper.unref(hideLabel) && !require__plugin_vue_export_helper.unref(inlineTextInputVisible) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", _hoisted_4$8, require__plugin_vue_export_helper.toDisplayString(require__plugin_vue_export_helper.unref(label)), 1)) : require__plugin_vue_export_helper.createCommentVNode("", true)], 8, _hoisted_3$10)) : require__plugin_vue_export_helper.createCommentVNode("", true),
|
|
39264
39264
|
isSplit.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", {
|
|
39265
39265
|
key: 1,
|
|
39266
39266
|
class: "sd-toolbar-button__caret",
|
|
@@ -39364,8 +39364,8 @@ var ToolbarSeparator_default = /*#__PURE__*/ require__plugin_vue_export_helper._
|
|
|
39364
39364
|
//#region src/internal/toolbar/built-in/ToolbarDropdown.vue
|
|
39365
39365
|
var _hoisted_1$13 = { class: "toolbar-dropdown" };
|
|
39366
39366
|
var _hoisted_2$10 = ["data-superdoc-ui-owner"];
|
|
39367
|
-
var _hoisted_3$
|
|
39368
|
-
var _hoisted_4$
|
|
39367
|
+
var _hoisted_3$9 = ["onClick"];
|
|
39368
|
+
var _hoisted_4$7 = {
|
|
39369
39369
|
key: 0,
|
|
39370
39370
|
class: "toolbar-dropdown-option__icon"
|
|
39371
39371
|
};
|
|
@@ -39754,7 +39754,7 @@ var _sfc_main$17 = {
|
|
|
39754
39754
|
}), [isRenderOption(option) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(require__plugin_vue_export_helper.unref(RenderOption), {
|
|
39755
39755
|
key: 0,
|
|
39756
39756
|
option
|
|
39757
|
-
}, null, 8, ["option"])) : (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock(require__plugin_vue_export_helper.Fragment, { key: 1 }, [hasIcon(option) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_4$
|
|
39757
|
+
}, null, 8, ["option"])) : (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock(require__plugin_vue_export_helper.Fragment, { key: 1 }, [hasIcon(option) ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_4$7, [require__plugin_vue_export_helper.createVNode(require__plugin_vue_export_helper.unref(OptionIcon), { option }, null, 8, ["option"])])) : require__plugin_vue_export_helper.createCommentVNode("", true), require__plugin_vue_export_helper.createElementVNode("span", _hoisted_5$5, require__plugin_vue_export_helper.toDisplayString(option.label), 1)], 64))], 16, _hoisted_3$9);
|
|
39758
39758
|
}), 128))], 16, _hoisted_2$10)) : require__plugin_vue_export_helper.createCommentVNode("", true)]),
|
|
39759
39759
|
_: 3
|
|
39760
39760
|
})], 8, ["to"]))]);
|
|
@@ -39997,12 +39997,12 @@ var _hoisted_2$9 = [
|
|
|
39997
39997
|
"aria-activedescendant",
|
|
39998
39998
|
"data-item"
|
|
39999
39999
|
];
|
|
40000
|
-
var _hoisted_3$
|
|
40000
|
+
var _hoisted_3$8 = [
|
|
40001
40001
|
"data-item",
|
|
40002
40002
|
"aria-label",
|
|
40003
40003
|
"disabled"
|
|
40004
40004
|
];
|
|
40005
|
-
var _hoisted_4$
|
|
40005
|
+
var _hoisted_4$6 = ["innerHTML"];
|
|
40006
40006
|
var _hoisted_5$4 = [
|
|
40007
40007
|
"data-superdoc-ui-owner",
|
|
40008
40008
|
"id",
|
|
@@ -40470,7 +40470,7 @@ var _sfc_main$15 = {
|
|
|
40470
40470
|
}, [require__plugin_vue_export_helper.createElementVNode("span", {
|
|
40471
40471
|
class: "sd-dropdown-caret",
|
|
40472
40472
|
innerHTML: caretIcon.value
|
|
40473
|
-
}, null, 8, _hoisted_4$
|
|
40473
|
+
}, null, 8, _hoisted_4$6)], 40, _hoisted_3$8),
|
|
40474
40474
|
(require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(require__plugin_vue_export_helper.Teleport, { to: "body" }, [isOpen.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("div", {
|
|
40475
40475
|
key: 0,
|
|
40476
40476
|
ref_key: "popupRef",
|
|
@@ -40817,8 +40817,8 @@ var _hoisted_1$11 = [
|
|
|
40817
40817
|
"data-item-id"
|
|
40818
40818
|
];
|
|
40819
40819
|
var _hoisted_2$8 = { key: 0 };
|
|
40820
|
-
var _hoisted_3$
|
|
40821
|
-
var _hoisted_4$
|
|
40820
|
+
var _hoisted_3$7 = { key: 0 };
|
|
40821
|
+
var _hoisted_4$5 = { key: 0 };
|
|
40822
40822
|
var _hoisted_5$3 = { key: 0 };
|
|
40823
40823
|
var _hoisted_6$2 = { key: 0 };
|
|
40824
40824
|
var _sfc_main$11 = {
|
|
@@ -41222,7 +41222,7 @@ var _sfc_main$11 = {
|
|
|
41222
41222
|
onTabOut: _cache[1] || (_cache[1] = ($event) => handleFontSizeTabOut($event)),
|
|
41223
41223
|
onEditorHandoff: handleEditorHandoff
|
|
41224
41224
|
}, null, 8, ["item", "ui-font-family"])]),
|
|
41225
|
-
default: require__plugin_vue_export_helper.withCtx(() => [require__plugin_vue_export_helper.createElementVNode("div", null, [require__plugin_vue_export_helper.createTextVNode(require__plugin_vue_export_helper.toDisplayString(item.tooltip) + " ", 1), item.disabled.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_3$
|
|
41225
|
+
default: require__plugin_vue_export_helper.withCtx(() => [require__plugin_vue_export_helper.createElementVNode("div", null, [require__plugin_vue_export_helper.createTextVNode(require__plugin_vue_export_helper.toDisplayString(item.tooltip) + " ", 1), item.disabled.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_3$7, "(disabled)")) : require__plugin_vue_export_helper.createCommentVNode("", true)])]),
|
|
41226
41226
|
_: 2
|
|
41227
41227
|
}, 1032, ["disabled", "content-style"])) : isDropdown(item) && item.nestedOptions?.value?.length ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createBlock(ToolbarDropdown_default, {
|
|
41228
41228
|
key: 3,
|
|
@@ -41259,7 +41259,7 @@ var _sfc_main$11 = {
|
|
|
41259
41259
|
"onTextSubmit",
|
|
41260
41260
|
"onMainClick"
|
|
41261
41261
|
])]),
|
|
41262
|
-
default: require__plugin_vue_export_helper.withCtx(() => [require__plugin_vue_export_helper.createElementVNode("div", null, [require__plugin_vue_export_helper.createTextVNode(require__plugin_vue_export_helper.toDisplayString(item.tooltip) + " ", 1), item.disabled.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_4$
|
|
41262
|
+
default: require__plugin_vue_export_helper.withCtx(() => [require__plugin_vue_export_helper.createElementVNode("div", null, [require__plugin_vue_export_helper.createTextVNode(require__plugin_vue_export_helper.toDisplayString(item.tooltip) + " ", 1), item.disabled.value ? (require__plugin_vue_export_helper.openBlock(), require__plugin_vue_export_helper.createElementBlock("span", _hoisted_4$5, "(disabled)")) : require__plugin_vue_export_helper.createCommentVNode("", true)])]),
|
|
41263
41263
|
_: 2
|
|
41264
41264
|
}, 1032, ["disabled", "content-style"])]),
|
|
41265
41265
|
_: 2
|
|
@@ -41627,7 +41627,13 @@ var Toolbar_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vu
|
|
|
41627
41627
|
proxy.$toolbar.pendingSelectionCapture = pendingSelectionCapture;
|
|
41628
41628
|
};
|
|
41629
41629
|
const handleCommand = ({ item, argument, option }) => {
|
|
41630
|
-
|
|
41630
|
+
const commandId = resolveToolbarCommandId(item?.name?.value);
|
|
41631
|
+
if (!(item?.type === "button" && !item.isCustomToolbarItem && [
|
|
41632
|
+
"bold",
|
|
41633
|
+
"italic",
|
|
41634
|
+
"underline",
|
|
41635
|
+
"strikethrough"
|
|
41636
|
+
].includes(commandId) && proxy.$toolbar.snapshot?.commands?.[commandId]?.source === "builtin")) restoreSelection();
|
|
41631
41637
|
proxy.$toolbar.emitCommand({
|
|
41632
41638
|
item,
|
|
41633
41639
|
argument,
|
|
@@ -41705,7 +41711,7 @@ var Toolbar_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vu
|
|
|
41705
41711
|
], 40, _hoisted_1$10);
|
|
41706
41712
|
};
|
|
41707
41713
|
}
|
|
41708
|
-
}, [["__scopeId", "data-v-
|
|
41714
|
+
}, [["__scopeId", "data-v-9554df11"]]);
|
|
41709
41715
|
//#endregion
|
|
41710
41716
|
//#region src/internal/toolbar/built-in/font-options.js
|
|
41711
41717
|
/**
|
|
@@ -42133,8 +42139,8 @@ var numberedStyleButtons = [
|
|
|
42133
42139
|
//#region src/internal/toolbar/built-in/DocumentMode.vue
|
|
42134
42140
|
var _hoisted_1$7 = ["onClick", "onKeydown"];
|
|
42135
42141
|
var _hoisted_2$7 = { class: "document-mode-column icon-column" };
|
|
42136
|
-
var _hoisted_3$
|
|
42137
|
-
var _hoisted_4$
|
|
42142
|
+
var _hoisted_3$6 = ["innerHTML"];
|
|
42143
|
+
var _hoisted_4$4 = { class: "document-mode-column text-column" };
|
|
42138
42144
|
var _hoisted_5$2 = { class: "document-mode-type" };
|
|
42139
42145
|
var _hoisted_6$1 = { class: "document-mode-description" };
|
|
42140
42146
|
var _sfc_main$7 = {
|
|
@@ -42197,7 +42203,7 @@ var _sfc_main$7 = {
|
|
|
42197
42203
|
}, [require__plugin_vue_export_helper.createElementVNode("div", _hoisted_2$7, [require__plugin_vue_export_helper.createElementVNode("div", {
|
|
42198
42204
|
class: "icon-column__icon",
|
|
42199
42205
|
innerHTML: option.icon
|
|
42200
|
-
}, null, 8, _hoisted_3$
|
|
42206
|
+
}, null, 8, _hoisted_3$6)]), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_4$4, [require__plugin_vue_export_helper.createElementVNode("div", _hoisted_5$2, require__plugin_vue_export_helper.toDisplayString(option.label), 1), require__plugin_vue_export_helper.createElementVNode("div", _hoisted_6$1, require__plugin_vue_export_helper.toDisplayString(option.description), 1)])], 42, _hoisted_1$7);
|
|
42201
42207
|
}), 256))], 2);
|
|
42202
42208
|
};
|
|
42203
42209
|
}
|
|
@@ -42214,6 +42220,12 @@ var _hoisted_2$6 = [
|
|
|
42214
42220
|
"onKeydown",
|
|
42215
42221
|
"aria-label"
|
|
42216
42222
|
];
|
|
42223
|
+
var _hoisted_3$5 = [
|
|
42224
|
+
"title",
|
|
42225
|
+
"aria-label",
|
|
42226
|
+
"onClick"
|
|
42227
|
+
];
|
|
42228
|
+
var _hoisted_4$3 = ["innerHTML"];
|
|
42217
42229
|
/**
|
|
42218
42230
|
* Built-in linked-styles (quick format) dropdown list.
|
|
42219
42231
|
*
|
|
@@ -42221,7 +42233,9 @@ var _hoisted_2$6 = [
|
|
|
42221
42233
|
* (`StyleCatalogItem`: `id`, `name`, optional `preview.css`, visibility), passed
|
|
42222
42234
|
* in via the `styles` array. Selecting a style emits the catalogue item; the
|
|
42223
42235
|
* toolbar controller normalizes it to a style id and routes the apply through
|
|
42224
|
-
* the shared `linked-style` command (`styles.paragraph.setStyle`).
|
|
42236
|
+
* the shared `linked-style` command (`styles.paragraph.setStyle`). Each row also
|
|
42237
|
+
* carries an "Update to match selection" action that emits `update` with the
|
|
42238
|
+
* item; the toolbar routes it through `ui.styles.updateToMatchSelection`. The rendered
|
|
42225
42239
|
* control stays faithful to the legacy DOM contract
|
|
42226
42240
|
* (`data-item="btn-linkedStyles-option"`, keyboard navigation) and makes no
|
|
42227
42241
|
* v1-only shape assumptions.
|
|
@@ -42236,9 +42250,13 @@ var _sfc_main$6 = {
|
|
|
42236
42250
|
selectedOption: {
|
|
42237
42251
|
type: String,
|
|
42238
42252
|
default: null
|
|
42253
|
+
},
|
|
42254
|
+
updateLabel: {
|
|
42255
|
+
type: String,
|
|
42256
|
+
default: "Update to match selection"
|
|
42239
42257
|
}
|
|
42240
42258
|
},
|
|
42241
|
-
emits: ["select"],
|
|
42259
|
+
emits: ["select", "update"],
|
|
42242
42260
|
setup(__props, { emit: __emit }) {
|
|
42243
42261
|
const emit = __emit;
|
|
42244
42262
|
const styleRefs = require__plugin_vue_export_helper.ref([]);
|
|
@@ -42246,6 +42264,9 @@ var _sfc_main$6 = {
|
|
|
42246
42264
|
const select = (style) => {
|
|
42247
42265
|
emit("select", style);
|
|
42248
42266
|
};
|
|
42267
|
+
const update = (style) => {
|
|
42268
|
+
emit("update", style);
|
|
42269
|
+
};
|
|
42249
42270
|
const moveToNextStyle = (index) => {
|
|
42250
42271
|
if (index === styleRefs.value.length - 1) return;
|
|
42251
42272
|
const nextItem = styleRefs.value[index + 1];
|
|
@@ -42305,12 +42326,23 @@ var _sfc_main$6 = {
|
|
|
42305
42326
|
class: "style-name",
|
|
42306
42327
|
"data-item": "btn-linkedStyles-option",
|
|
42307
42328
|
style: require__plugin_vue_export_helper.normalizeStyle(previewStyle(style))
|
|
42308
|
-
}, require__plugin_vue_export_helper.toDisplayString(styleLabel(style)), 5)
|
|
42329
|
+
}, require__plugin_vue_export_helper.toDisplayString(styleLabel(style)), 5), require__plugin_vue_export_helper.createElementVNode("button", {
|
|
42330
|
+
type: "button",
|
|
42331
|
+
class: "style-update",
|
|
42332
|
+
"data-item": "btn-linkedStyles-update",
|
|
42333
|
+
title: props.updateLabel,
|
|
42334
|
+
"aria-label": `${props.updateLabel}: ${styleLabel(style)}`,
|
|
42335
|
+
onClick: require__plugin_vue_export_helper.withModifiers(($event) => update(style), ["stop"]),
|
|
42336
|
+
onKeydown: _cache[0] || (_cache[0] = require__plugin_vue_export_helper.withModifiers(() => {}, ["stop"]))
|
|
42337
|
+
}, [require__plugin_vue_export_helper.createElementVNode("span", {
|
|
42338
|
+
class: "style-update-icon",
|
|
42339
|
+
innerHTML: require__plugin_vue_export_helper.unref(toolbarIcons).paintbrush
|
|
42340
|
+
}, null, 8, _hoisted_4$3)], 40, _hoisted_3$5)], 42, _hoisted_2$6);
|
|
42309
42341
|
}), 128))]);
|
|
42310
42342
|
};
|
|
42311
42343
|
}
|
|
42312
42344
|
};
|
|
42313
|
-
var LinkedStyle_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$6, [["__scopeId", "data-v-
|
|
42345
|
+
var LinkedStyle_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$6, [["__scopeId", "data-v-b5a32523"]]);
|
|
42314
42346
|
//#endregion
|
|
42315
42347
|
//#region src/internal/toolbar/built-in/AIWriter.vue
|
|
42316
42348
|
var _hoisted_1$5 = ["placeholder"];
|
|
@@ -44516,10 +44548,18 @@ var makeDefaultItems = ({ superToolbar, toolbarIcons, toolbarTexts, toolbarFonts
|
|
|
44516
44548
|
argument: styleId
|
|
44517
44549
|
});
|
|
44518
44550
|
};
|
|
44551
|
+
const handleUpdate = (style) => {
|
|
44552
|
+
closeDropdown(linkedStyles);
|
|
44553
|
+
const styleId = typeof style === "string" ? style : style?.id ?? null;
|
|
44554
|
+
if (!styleId) return;
|
|
44555
|
+
superToolbar.updateLinkedStyleToMatchSelection?.(styleId);
|
|
44556
|
+
};
|
|
44519
44557
|
const activeStyleId = superToolbar.getActiveLinkedStyleId?.() ?? null;
|
|
44520
44558
|
return require__plugin_vue_export_helper.h("div", {}, [require__plugin_vue_export_helper.h(LinkedStyle_default, {
|
|
44521
44559
|
styles: superToolbar.getLinkedStyleOptions?.() ?? [],
|
|
44522
44560
|
onSelect: handleSelect,
|
|
44561
|
+
onUpdate: handleUpdate,
|
|
44562
|
+
updateLabel: toolbarTexts.updateLinkedStyle,
|
|
44523
44563
|
selectedOption: activeStyleId
|
|
44524
44564
|
})]);
|
|
44525
44565
|
}
|
|
@@ -44778,7 +44818,8 @@ var toolbarTexts = {
|
|
|
44778
44818
|
documentEditingModeDescription: "Edit document directly",
|
|
44779
44819
|
documentSuggestingModeDescription: "Edits become suggestions",
|
|
44780
44820
|
documentViewingModeDescription: "View clean version of document only",
|
|
44781
|
-
linkedStyles: "Linked styles"
|
|
44821
|
+
linkedStyles: "Linked styles",
|
|
44822
|
+
updateLinkedStyle: "Update to match selection"
|
|
44782
44823
|
};
|
|
44783
44824
|
//#endregion
|
|
44784
44825
|
//#region src/internal/toolbar/built-in/general.js
|
|
@@ -45270,12 +45311,16 @@ var BuiltInToolbar = class extends require_eventemitter3.import_eventemitter3.de
|
|
|
45270
45311
|
return this._linkedStyleOptions.value;
|
|
45271
45312
|
}
|
|
45272
45313
|
#refreshLinkedStyleOptions() {
|
|
45273
|
-
this.ui?.styles?.getCatalog?.({ includePreview: true });
|
|
45314
|
+
const allStyles = this.ui?.styles?.getCatalog?.({ includePreview: true });
|
|
45274
45315
|
const options = (this.ui?.styles?.getCatalog?.({
|
|
45275
45316
|
view: "quickGallery",
|
|
45276
45317
|
includePreview: true
|
|
45277
45318
|
}))?.items ?? this.ui?.styles?.getQuickGallery?.() ?? [];
|
|
45278
|
-
|
|
45319
|
+
const activeStyleId = this.ui?.styles?.getActiveParagraphStyle?.()?.styleId;
|
|
45320
|
+
const activeStyle = activeStyleId && !options.some((style) => style.id === activeStyleId) ? allStyles?.styles?.find((style) => style.id === activeStyleId && (style.type === "paragraph" || style.type === "linked")) : null;
|
|
45321
|
+
const nextOptions = activeStyle ? [activeStyle, ...options] : options;
|
|
45322
|
+
const previousOptions = this._linkedStyleOptions.value;
|
|
45323
|
+
if (nextOptions.length !== previousOptions.length || nextOptions.some((style, index) => style !== previousOptions[index])) this._linkedStyleOptions.value = nextOptions;
|
|
45279
45324
|
}
|
|
45280
45325
|
/**
|
|
45281
45326
|
* The stable style id active across the current selection's paragraph(s), or
|
|
@@ -45285,6 +45330,17 @@ var BuiltInToolbar = class extends require_eventemitter3.import_eventemitter3.de
|
|
|
45285
45330
|
getActiveLinkedStyleId() {
|
|
45286
45331
|
return this.ui?.styles?.getActiveParagraphStyle?.()?.styleId ?? null;
|
|
45287
45332
|
}
|
|
45333
|
+
async updateLinkedStyleToMatchSelection(styleId) {
|
|
45334
|
+
if (!styleId || typeof this.ui?.styles?.updateToMatchSelection !== "function") return null;
|
|
45335
|
+
try {
|
|
45336
|
+
return await this.ui.styles.updateToMatchSelection({ styleId });
|
|
45337
|
+
} catch (error) {
|
|
45338
|
+
this.#emitCommandException(error, "linkedStyles");
|
|
45339
|
+
return null;
|
|
45340
|
+
} finally {
|
|
45341
|
+
this.updateToolbarState();
|
|
45342
|
+
}
|
|
45343
|
+
}
|
|
45288
45344
|
/**
|
|
45289
45345
|
* Compatibility hook: `SuperDoc` calls this when the active editor changes.
|
|
45290
45346
|
* The shared controller already tracks selection/transaction state, so this
|
|
@@ -46224,7 +46280,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46224
46280
|
}
|
|
46225
46281
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46226
46282
|
this.colorIndex = 0;
|
|
46227
|
-
this.version = "2.
|
|
46283
|
+
this.version = "2.28.0-next.1";
|
|
46228
46284
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46229
46285
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46230
46286
|
this.colors = this.config.colors ?? [];
|