superdoc 2.20.1-next.1 → 2.20.1-next.11
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-B4_V1haj.es.js → create-super-doc-ui-0CZTlOvl.es.js} +609 -15
- package/dist/chunks/{create-super-doc-ui-DFCfYEpW.cjs → create-super-doc-ui-yKesgn9b.cjs} +620 -14
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/content-controls/content-controls.types.d.ts +2 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +5 -5
- package/dist/document-api/src/replace/replace.d.ts +14 -5
- package/dist/document-api/src/selection-mutation.d.ts +2 -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 +111 -111
- package/dist/style.layered.css +111 -111
- package/dist/superdoc/src/internal/diagnostics/interaction-history.d.ts +7 -1
- package/dist/superdoc/src/internal/diagnostics/workflow-recording.d.ts +73 -0
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +1 -0
- package/dist/superdoc/src/public/ui/types.d.ts +11 -8
- package/dist/superdoc.cjs +76 -55
- package/dist/superdoc.es.js +76 -55
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +41 -39
- package/package.json +2 -2
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, i as registerFirstPartyCommandMutation, l as resolveImageSrc, m as
|
|
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-0CZTlOvl.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
6
|
import { $ as watch$1, A as onActivated, B as resolveDirective, C as isRef$1, D as normalizeClass, E as nextTick, F as openBlock, G as toRef, H as shallowRef$1, I as reactive, J as useAttrs, K as toRefs, L as ref, M as onDeactivated, N as onMounted, O as normalizeProps, P as onScopeDispose$1, Q as vModelText, R as renderList, S as isReactive$1, T as mergeProps, U as toDisplayString, V as resolveDynamicComponent, W as toRaw$2, X as vModelCheckbox, Y as useSlots, Z as vModelSelect, _ as getCurrentInstance, a as computed$1, b as hasInjectionContext, c as createCommentVNode, d as createStaticVNode, et as withCtx, f as createTextVNode, g as effectScope, h as defineComponent, i as Transition, j as onBeforeUnmount, k as normalizeStyle, l as createElementBlock, m as defineAsyncComponent, n as Fragment, nt as withKeys, o as createApp, p as createVNode, q as unref, r as Teleport, rt as withModifiers, s as createBlock, t as _plugin_vue_export_helper_default, tt as withDirectives, u as createElementVNode, v as getCurrentScope, w as markRaw, x as inject$1, y as h, z as renderSlot } from "./chunks/_plugin-vue_export-helper-DHiJKCsy.es.js";
|
|
@@ -314,7 +314,7 @@ var shuffleArray = (array) => {
|
|
|
314
314
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
315
315
|
function getSuperdocVersion() {
|
|
316
316
|
try {
|
|
317
|
-
return "2.20.1-next.
|
|
317
|
+
return "2.20.1-next.11";
|
|
318
318
|
} catch {
|
|
319
319
|
return "unknown";
|
|
320
320
|
}
|
|
@@ -8921,6 +8921,11 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8921
8921
|
}
|
|
8922
8922
|
superdoc?.activeEditor?.commands?.removeComment({ commentId: "pending" });
|
|
8923
8923
|
};
|
|
8924
|
+
const getV2CreatedComment = ({ outcome, reconciled, documentId }) => {
|
|
8925
|
+
const createdId = normalizeCommentId(outcome?.createdCommentId);
|
|
8926
|
+
if (!createdId) return reconciled?.added ?? null;
|
|
8927
|
+
return commentsList.value.find((row) => String(row.commentId) === createdId && (documentId == null || String(row.fileId) === String(documentId))) ?? null;
|
|
8928
|
+
};
|
|
8924
8929
|
/**
|
|
8925
8930
|
* Add a new comment to the document
|
|
8926
8931
|
*
|
|
@@ -8974,20 +8979,25 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
8974
8979
|
documentId: v2Adapter.documentId,
|
|
8975
8980
|
items: outcome.items
|
|
8976
8981
|
});
|
|
8982
|
+
const created = getV2CreatedComment({
|
|
8983
|
+
outcome,
|
|
8984
|
+
reconciled,
|
|
8985
|
+
documentId: v2Adapter.documentId
|
|
8986
|
+
});
|
|
8977
8987
|
const hadPendingComment = !!pendingComment.value;
|
|
8978
8988
|
if (hadPendingComment) removePendingComment(superdoc);
|
|
8979
|
-
const createdId =
|
|
8989
|
+
const createdId = created?.commentId ?? null;
|
|
8980
8990
|
if (hadPendingComment && createdId) {
|
|
8981
8991
|
setActiveComment(superdoc, createdId);
|
|
8982
8992
|
setActiveFloatingCommentInstance(createdId);
|
|
8983
8993
|
}
|
|
8984
8994
|
if (broadcastChanges) superdoc.emit("comments-update", {
|
|
8985
8995
|
type: COMMENT_EVENTS.ADD,
|
|
8986
|
-
comment:
|
|
8996
|
+
comment: created?.getValues?.() ?? null
|
|
8987
8997
|
});
|
|
8988
8998
|
return {
|
|
8989
8999
|
ok: true,
|
|
8990
|
-
comment:
|
|
9000
|
+
comment: created
|
|
8991
9001
|
};
|
|
8992
9002
|
});
|
|
8993
9003
|
}
|
|
@@ -9546,9 +9556,13 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
9546
9556
|
eventType: COMMENT_EVENTS.ADD,
|
|
9547
9557
|
rejectionFallbackReason: "v2-reply-failed",
|
|
9548
9558
|
rejectionEventExtras: parent ? { comment: getCommentEventPayload(parent) } : {},
|
|
9549
|
-
successEventBuilder: ({ reconciled }) => ({
|
|
9559
|
+
successEventBuilder: ({ outcome, reconciled }) => ({
|
|
9550
9560
|
type: COMMENT_EVENTS.ADD,
|
|
9551
|
-
comment:
|
|
9561
|
+
comment: getV2CreatedComment({
|
|
9562
|
+
outcome,
|
|
9563
|
+
reconciled,
|
|
9564
|
+
documentId: v2Adapter.documentId
|
|
9565
|
+
})?.getValues?.() ?? null
|
|
9552
9566
|
})
|
|
9553
9567
|
});
|
|
9554
9568
|
};
|
|
@@ -13160,51 +13174,53 @@ var _hoisted_26 = { key: 7 };
|
|
|
13160
13174
|
var _hoisted_27 = { class: "tracked-change-text is-deleted" };
|
|
13161
13175
|
var _hoisted_28 = { class: "tracked-change-text is-inserted" };
|
|
13162
13176
|
var _hoisted_29 = { key: 8 };
|
|
13163
|
-
var _hoisted_30 = {
|
|
13164
|
-
var _hoisted_31 = { key:
|
|
13165
|
-
var _hoisted_32 = { class: "tracked-change-text is-
|
|
13166
|
-
var _hoisted_33 =
|
|
13167
|
-
var _hoisted_34 =
|
|
13168
|
-
var _hoisted_35 =
|
|
13177
|
+
var _hoisted_30 = { key: 9 };
|
|
13178
|
+
var _hoisted_31 = { key: 10 };
|
|
13179
|
+
var _hoisted_32 = { class: "tracked-change-text is-deleted" };
|
|
13180
|
+
var _hoisted_33 = { key: 11 };
|
|
13181
|
+
var _hoisted_34 = { class: "tracked-change-text is-inserted" };
|
|
13182
|
+
var _hoisted_35 = ["data-track-change-image-preview-role"];
|
|
13183
|
+
var _hoisted_36 = ["src", "alt"];
|
|
13184
|
+
var _hoisted_37 = {
|
|
13169
13185
|
key: 1,
|
|
13170
13186
|
class: "card-section comment-body"
|
|
13171
13187
|
};
|
|
13172
|
-
var
|
|
13173
|
-
var
|
|
13188
|
+
var _hoisted_38 = ["innerHTML"];
|
|
13189
|
+
var _hoisted_39 = {
|
|
13174
13190
|
key: 1,
|
|
13175
13191
|
class: "comment"
|
|
13176
13192
|
};
|
|
13177
|
-
var
|
|
13193
|
+
var _hoisted_40 = {
|
|
13178
13194
|
key: 2,
|
|
13179
13195
|
class: "reply-expanded"
|
|
13180
13196
|
};
|
|
13181
|
-
var
|
|
13182
|
-
var
|
|
13183
|
-
var
|
|
13184
|
-
var
|
|
13197
|
+
var _hoisted_41 = { class: "reply-input-wrapper" };
|
|
13198
|
+
var _hoisted_42 = { class: "reply-actions" };
|
|
13199
|
+
var _hoisted_43 = ["onClick"];
|
|
13200
|
+
var _hoisted_44 = [
|
|
13185
13201
|
"onClick",
|
|
13186
13202
|
"disabled",
|
|
13187
13203
|
"data-disabled-reason"
|
|
13188
13204
|
];
|
|
13189
|
-
var
|
|
13190
|
-
var
|
|
13205
|
+
var _hoisted_45 = { class: "collapsed-avatars" };
|
|
13206
|
+
var _hoisted_46 = {
|
|
13191
13207
|
key: 3,
|
|
13192
13208
|
class: "comment-separator"
|
|
13193
13209
|
};
|
|
13194
|
-
var
|
|
13210
|
+
var _hoisted_47 = {
|
|
13195
13211
|
key: 2,
|
|
13196
13212
|
class: "tracked-change-decision-alert",
|
|
13197
13213
|
role: "alert"
|
|
13198
13214
|
};
|
|
13199
|
-
var
|
|
13200
|
-
var
|
|
13201
|
-
var
|
|
13215
|
+
var _hoisted_48 = { class: "tracked-change-decision-alert__message" };
|
|
13216
|
+
var _hoisted_49 = ["disabled", "data-disabled-reason"];
|
|
13217
|
+
var _hoisted_50 = {
|
|
13202
13218
|
key: 1,
|
|
13203
13219
|
class: "reply-expanded"
|
|
13204
13220
|
};
|
|
13205
|
-
var
|
|
13206
|
-
var
|
|
13207
|
-
var
|
|
13221
|
+
var _hoisted_51 = { class: "reply-input-wrapper" };
|
|
13222
|
+
var _hoisted_52 = { class: "reply-actions" };
|
|
13223
|
+
var _hoisted_53 = ["disabled", "data-disabled-reason"];
|
|
13208
13224
|
var CLICK_OUTSIDE_HIT_TOLERANCE_PX = 3;
|
|
13209
13225
|
var TRACKED_CHANGE_PREVIEW_MAX_PX = 90;
|
|
13210
13226
|
var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
@@ -14214,8 +14230,8 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14214
14230
|
createElementVNode("span", _hoisted_27, "\"" + toDisplayString(comment.deletedText) + "\"", 1),
|
|
14215
14231
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "change-type" }, " with ", -1)),
|
|
14216
14232
|
createElementVNode("span", _hoisted_28, "\"" + toDisplayString(comment.trackedChangeText) + "\"", 1)
|
|
14217
|
-
])) : comment.deletedText ? (openBlock(), createElementBlock("div", _hoisted_29, [_cache[10] || (_cache[10] = createElementVNode("span", { class: "change-type" }, "Deleted ", -1)), createElementVNode("span",
|
|
14218
|
-
key:
|
|
14233
|
+
])) : comment.deletedText && comment.deletedText === "\n" ? (openBlock(), createElementBlock("div", _hoisted_29, [..._cache[10] || (_cache[10] = [createElementVNode("span", { class: "change-type" }, "Deleted line break", -1)])])) : comment.trackedChangeText && comment.trackedChangeText === "\n" ? (openBlock(), createElementBlock("div", _hoisted_30, [..._cache[11] || (_cache[11] = [createElementVNode("span", { class: "change-type" }, "Added line break", -1)])])) : comment.deletedText ? (openBlock(), createElementBlock("div", _hoisted_31, [_cache[12] || (_cache[12] = createElementVNode("span", { class: "change-type" }, "Deleted ", -1)), createElementVNode("span", _hoisted_32, "\"" + toDisplayString(comment.deletedText) + "\"", 1)])) : comment.trackedChangeText ? (openBlock(), createElementBlock("div", _hoisted_33, [_cache[13] || (_cache[13] = createElementVNode("span", { class: "change-type" }, "Added ", -1)), createElementVNode("span", _hoisted_34, "\"" + toDisplayString(comment.trackedChangeText) + "\"", 1)])) : createCommentVNode("", true), comment.trackedChangeImagePreview?.src ? (openBlock(), createElementBlock("div", {
|
|
14234
|
+
key: 12,
|
|
14219
14235
|
class: "tracked-change-image-preview",
|
|
14220
14236
|
"data-track-change-image-preview-role": comment.trackedChangeImagePreview.role ?? void 0
|
|
14221
14237
|
}, [createElementVNode("img", {
|
|
@@ -14225,7 +14241,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14225
14241
|
style: normalizeStyle(trackedChangeImagePreviewStyle(comment.trackedChangeImagePreview)),
|
|
14226
14242
|
loading: "lazy",
|
|
14227
14243
|
decoding: "async"
|
|
14228
|
-
}, null, 12,
|
|
14244
|
+
}, null, 12, _hoisted_36)], 8, _hoisted_35)) : createCommentVNode("", true)], 10, _hoisted_10$3),
|
|
14229
14245
|
shouldTruncate.value && isTextOverflowing.value && index === 0 ? (openBlock(), createElementBlock("div", {
|
|
14230
14246
|
key: 0,
|
|
14231
14247
|
class: "show-more-toggle",
|
|
@@ -14237,29 +14253,29 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14237
14253
|
onClick: withModifiers(toggleTruncation, ["stop", "prevent"])
|
|
14238
14254
|
}, " Show less ")) : createCommentVNode("", true)
|
|
14239
14255
|
])) : createCommentVNode("", true),
|
|
14240
|
-
!comment.trackedChange ? (openBlock(), createElementBlock("div",
|
|
14256
|
+
!comment.trackedChange ? (openBlock(), createElementBlock("div", _hoisted_37, [
|
|
14241
14257
|
!unref(isDebugging) && !isEditingThisComment.value(comment) ? (openBlock(), createElementBlock("div", {
|
|
14242
14258
|
key: 0,
|
|
14243
14259
|
class: normalizeClass(["comment", index === 0 ? bodyOverflowClass.value : void 0]),
|
|
14244
14260
|
ref_for: true,
|
|
14245
14261
|
ref: index === 0 ? setParentBodyRef : void 0,
|
|
14246
14262
|
innerHTML: comment.commentText
|
|
14247
|
-
}, null, 10,
|
|
14263
|
+
}, null, 10, _hoisted_38)) : unref(isDebugging) && !isEditingThisComment.value(comment) ? (openBlock(), createElementBlock("div", _hoisted_39, toDisplayString(unref(editorCommentPositions)[comment.importedId !== void 0 ? comment.importedId : comment.commentId]?.bounds), 1)) : (openBlock(), createElementBlock("div", _hoisted_40, [createElementVNode("div", _hoisted_41, [createVNode(CommentInput_default, {
|
|
14248
14264
|
ref_for: true,
|
|
14249
14265
|
ref: setEditCommentInputRef(comment.commentId),
|
|
14250
14266
|
users: [],
|
|
14251
14267
|
config: unref(getConfig),
|
|
14252
14268
|
"include-header": false,
|
|
14253
14269
|
comment
|
|
14254
|
-
}, null, 8, ["config", "comment"])]), createElementVNode("div",
|
|
14270
|
+
}, null, 8, ["config", "comment"])]), createElementVNode("div", _hoisted_42, [createElementVNode("button", {
|
|
14255
14271
|
class: "sd-button reply-btn-cancel",
|
|
14256
14272
|
onClick: withModifiers(($event) => handleCancel(comment), ["stop", "prevent"])
|
|
14257
|
-
}, "Cancel", 8,
|
|
14273
|
+
}, "Cancel", 8, _hoisted_43), createElementVNode("button", {
|
|
14258
14274
|
class: normalizeClass(["sd-button primary reply-btn-primary", { "sd-is-disabled": !hasTextContent.value || isV2WriteDisabled.value }]),
|
|
14259
14275
|
onClick: withModifiers(($event) => handleCommentUpdate(comment), ["stop", "prevent"]),
|
|
14260
14276
|
disabled: !hasTextContent.value || isV2WriteDisabled.value,
|
|
14261
14277
|
"data-disabled-reason": isV2WriteDisabled.value ? v2WriteCapability.value?.reason ?? null : null
|
|
14262
|
-
}, " Update ", 10,
|
|
14278
|
+
}, " Update ", 10, _hoisted_44)])])),
|
|
14263
14279
|
shouldTruncate.value && isTextOverflowing.value && index === 0 && !isEditingThisComment.value(comment) ? (openBlock(), createElementBlock("div", {
|
|
14264
14280
|
key: 3,
|
|
14265
14281
|
class: "show-more-toggle",
|
|
@@ -14271,20 +14287,20 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14271
14287
|
onClick: withModifiers(toggleTruncation, ["stop", "prevent"])
|
|
14272
14288
|
}, " Show less ")) : createCommentVNode("", true)
|
|
14273
14289
|
])) : createCommentVNode("", true),
|
|
14274
|
-
shouldCollapseThread.value && index === 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [_cache[
|
|
14290
|
+
shouldCollapseThread.value && index === 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [_cache[14] || (_cache[14] = createElementVNode("div", { class: "comment-separator" }, null, -1)), createElementVNode("div", {
|
|
14275
14291
|
class: "collapsed-replies",
|
|
14276
14292
|
onClick: withModifiers(expandThread, ["stop", "prevent"])
|
|
14277
|
-
}, [createElementVNode("div",
|
|
14293
|
+
}, [createElementVNode("div", _hoisted_45, [(openBlock(true), createElementBlock(Fragment, null, renderList(collapsedReplyAuthors.value, (author) => {
|
|
14278
14294
|
return openBlock(), createBlock(Avatar_default, {
|
|
14279
14295
|
key: author.email || author.name,
|
|
14280
14296
|
user: author,
|
|
14281
14297
|
class: "mini-avatar"
|
|
14282
14298
|
}, null, 8, ["user"]);
|
|
14283
14299
|
}), 128))]), createElementVNode("span", null, toDisplayString(collapsedReplyCount.value) + " more " + toDisplayString(collapsedReplyCount.value === 1 ? "reply" : "replies"), 1)])], 64)) : createCommentVNode("", true),
|
|
14284
|
-
showSeparator.value(index) ? (openBlock(), createElementBlock("div",
|
|
14300
|
+
showSeparator.value(index) ? (openBlock(), createElementBlock("div", _hoisted_46)) : createCommentVNode("", true)
|
|
14285
14301
|
]);
|
|
14286
14302
|
}), 128)),
|
|
14287
|
-
trackedChangeDecisionFailure.value ? (openBlock(), createElementBlock("div",
|
|
14303
|
+
trackedChangeDecisionFailure.value ? (openBlock(), createElementBlock("div", _hoisted_47, [createElementVNode("span", _hoisted_48, toDisplayString(trackedChangeDecisionFailureMessage.value), 1), createElementVNode("button", {
|
|
14288
14304
|
type: "button",
|
|
14289
14305
|
class: "sd-button tracked-change-decision-alert__retry",
|
|
14290
14306
|
onClick: withModifiers(retryTrackedChangeDecision, ["stop", "prevent"])
|
|
@@ -14296,7 +14312,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14296
14312
|
onClick: withModifiers(startReply, ["stop", "prevent"]),
|
|
14297
14313
|
disabled: isV2WriteDisabled.value,
|
|
14298
14314
|
"data-disabled-reason": isV2WriteDisabled.value ? v2WriteCapability.value?.reason ?? null : null
|
|
14299
|
-
}, " Reply or add others with @ ", 10,
|
|
14315
|
+
}, " Reply or add others with @ ", 10, _hoisted_49)) : (openBlock(), createElementBlock("div", _hoisted_50, [createElementVNode("div", _hoisted_51, [createVNode(CommentInput_default, {
|
|
14300
14316
|
ref_key: "commentInput",
|
|
14301
14317
|
ref: commentInput,
|
|
14302
14318
|
users: usersFiltered.value,
|
|
@@ -14307,7 +14323,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14307
14323
|
"users",
|
|
14308
14324
|
"config",
|
|
14309
14325
|
"comment"
|
|
14310
|
-
])]), createElementVNode("div",
|
|
14326
|
+
])]), createElementVNode("div", _hoisted_52, [createElementVNode("button", {
|
|
14311
14327
|
class: "sd-button reply-btn-cancel",
|
|
14312
14328
|
onClick: withModifiers(handleCancel, ["stop", "prevent"])
|
|
14313
14329
|
}, "Cancel"), createElementVNode("button", {
|
|
@@ -14315,11 +14331,11 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14315
14331
|
onClick: withModifiers(handleAddComment, ["stop", "prevent"]),
|
|
14316
14332
|
disabled: !hasTextContent.value || isV2WriteDisabled.value || isSubmittingReply.value,
|
|
14317
14333
|
"data-disabled-reason": v2ReplyDisabledReason.value
|
|
14318
|
-
}, " Reply ", 10,
|
|
14334
|
+
}, " Reply ", 10, _hoisted_53)])]))], 64)) : createCommentVNode("", true)
|
|
14319
14335
|
], 64))], 14, _hoisted_1$27)), [[_directive_click_outside, handleClickOutside]]);
|
|
14320
14336
|
};
|
|
14321
14337
|
}
|
|
14322
|
-
}, [["__scopeId", "data-v-
|
|
14338
|
+
}, [["__scopeId", "data-v-eefd4750"]]);
|
|
14323
14339
|
//#endregion
|
|
14324
14340
|
//#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
|
|
14325
14341
|
var _hoisted_1$26 = [
|
|
@@ -15414,7 +15430,10 @@ var FloatingComments_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
15414
15430
|
viewportBottom: viewportRange.bottom
|
|
15415
15431
|
}) : null;
|
|
15416
15432
|
if (offscreenTop == null) collisionPositions.push(position);
|
|
15417
|
-
else
|
|
15433
|
+
else {
|
|
15434
|
+
position.top = offscreenTop;
|
|
15435
|
+
position.isOffscreenReviewCard = true;
|
|
15436
|
+
}
|
|
15418
15437
|
}
|
|
15419
15438
|
const activeIndex = activeKey ? collisionPositions.findIndex((p) => p.id === activeKey) : -1;
|
|
15420
15439
|
resolveCollisions(collisionPositions, activeIndex, 15);
|
|
@@ -15939,7 +15958,7 @@ var FloatingComments_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
15939
15958
|
"data-comment-page-index": pos.pageIndex ?? "",
|
|
15940
15959
|
class: normalizeClass([{ "is-direct-decision-continuity-target": pos.id === directDecisionContinuityTargetId.value }, "comment-placeholder"]),
|
|
15941
15960
|
style: normalizeStyle({
|
|
15942
|
-
top: pos.top + "px",
|
|
15961
|
+
top: (pos.isOffscreenReviewCard ? pos.top - sidebarOffsetY.value : pos.top) + "px",
|
|
15943
15962
|
height: pos.height + "px",
|
|
15944
15963
|
transition: disableInstantLayoutTransitions.value ? "none" : void 0
|
|
15945
15964
|
})
|
|
@@ -15966,7 +15985,7 @@ var FloatingComments_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
15966
15985
|
}), 128))], 4)], 36);
|
|
15967
15986
|
};
|
|
15968
15987
|
}
|
|
15969
|
-
}, [["__scopeId", "data-v-
|
|
15988
|
+
}, [["__scopeId", "data-v-8262096d"]]);
|
|
15970
15989
|
//#endregion
|
|
15971
15990
|
//#region src/components/CommentsLayer/PdfCommentsLayer.vue
|
|
15972
15991
|
var _hoisted_1$23 = {
|
|
@@ -23355,6 +23374,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
23355
23374
|
const v2Collaboration = collaborationResolution.state === "valid" ? collaborationResolution.config : null;
|
|
23356
23375
|
const collaborationPreflightFailure = proxy.$superdoc.config.v2CollaborationPreflightFailure ?? (collaborationResolution.state === "invalid" ? collaborationResolution.failure : null);
|
|
23357
23376
|
return {
|
|
23377
|
+
...isWorkflowRecordingEnabled(proxy.$superdoc.config) ? { isInteractionRecording: () => getWorkflowRecording(proxy.$superdoc)?.active === true } : {},
|
|
23358
23378
|
isDebug: proxy.$superdoc.config.isDebug || false,
|
|
23359
23379
|
documentId: doc.id,
|
|
23360
23380
|
user: proxy.$superdoc.user,
|
|
@@ -24480,7 +24500,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
24480
24500
|
], 38);
|
|
24481
24501
|
};
|
|
24482
24502
|
}
|
|
24483
|
-
}, [["__scopeId", "data-v-
|
|
24503
|
+
}, [["__scopeId", "data-v-0d8ce95e"]]);
|
|
24484
24504
|
//#endregion
|
|
24485
24505
|
//#region src/core/create-app.js
|
|
24486
24506
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
@@ -40495,6 +40515,7 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40495
40515
|
ref_key: "popupRef",
|
|
40496
40516
|
ref: popupRef,
|
|
40497
40517
|
role: "listbox",
|
|
40518
|
+
"data-sd-part": "dropdown-menu",
|
|
40498
40519
|
id: listboxId.value,
|
|
40499
40520
|
"aria-label": ariaLabel.value,
|
|
40500
40521
|
class: normalizeClass(["sd-font-combobox__listbox", { "high-contrast": unref(isHighContrastMode) }]),
|
|
@@ -40523,7 +40544,7 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
40523
40544
|
], 14, _hoisted_1$12);
|
|
40524
40545
|
};
|
|
40525
40546
|
}
|
|
40526
|
-
}, [["__scopeId", "data-v-
|
|
40547
|
+
}, [["__scopeId", "data-v-e288ef9f"]]);
|
|
40527
40548
|
//#endregion
|
|
40528
40549
|
//#region src/internal/toolbar/built-in/FontFamilyCombobox.vue
|
|
40529
40550
|
var _sfc_main$14 = {
|
|
@@ -41559,10 +41580,9 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41559
41580
|
});
|
|
41560
41581
|
const showLeftSide = proxy.$toolbar.config?.toolbarGroups?.includes("left");
|
|
41561
41582
|
const showRightSide = proxy.$toolbar.config?.toolbarGroups?.includes("right");
|
|
41562
|
-
const excludeButtonsList = proxy.$toolbar.config?.toolbarButtonsExclude || [];
|
|
41563
41583
|
const getFilteredItems = (position) => {
|
|
41564
41584
|
toolbarStateVersion.value;
|
|
41565
|
-
return proxy.$toolbar.getToolbarItemByGroup(position)
|
|
41585
|
+
return proxy.$toolbar.getToolbarItemByGroup(position);
|
|
41566
41586
|
};
|
|
41567
41587
|
const updateCompactSideGroups = () => {
|
|
41568
41588
|
compactSideGroups.value = proxy.$toolbar.getAvailableWidth() <= RESPONSIVE_BREAKPOINTS.lg;
|
|
@@ -41736,7 +41756,7 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41736
41756
|
], 32);
|
|
41737
41757
|
};
|
|
41738
41758
|
}
|
|
41739
|
-
}, [["__scopeId", "data-v-
|
|
41759
|
+
}, [["__scopeId", "data-v-0d00bc5b"]]);
|
|
41740
41760
|
//#endregion
|
|
41741
41761
|
//#region src/internal/toolbar/built-in/font-options.js
|
|
41742
41762
|
/**
|
|
@@ -44942,6 +44962,7 @@ var BuiltInToolbar = class extends import_eventemitter3.default {
|
|
|
44942
44962
|
responsiveToContainer: false,
|
|
44943
44963
|
mode: "docx",
|
|
44944
44964
|
excludeItems: [],
|
|
44965
|
+
toolbarButtonsExclude: [],
|
|
44945
44966
|
groups: null,
|
|
44946
44967
|
customButtons: [],
|
|
44947
44968
|
showFormattingMarksButton: false,
|
|
@@ -45107,7 +45128,7 @@ var BuiltInToolbar = class extends import_eventemitter3.default {
|
|
|
45107
45128
|
const selectedCustomOptions = new Map(this.#getAllToolbarItems().filter((item) => item.isCustomToolbarItem && item.type === "dropdown").map((item) => [item.name.value, item.selectedValue.value]));
|
|
45108
45129
|
const hasExplicitGroupComposition = this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length > 0;
|
|
45109
45130
|
const configuredItemNames = hasExplicitGroupComposition ? new Set(Object.values(this.config.groups).flatMap((items) => items)) : null;
|
|
45110
|
-
const excludedItemNames = new Set(this.config.excludeItems);
|
|
45131
|
+
const excludedItemNames = /* @__PURE__ */ new Set([...this.config.excludeItems ?? [], ...this.config.toolbarButtonsExclude ?? []]);
|
|
45111
45132
|
const customItems = this.config.customButtons || [];
|
|
45112
45133
|
const takenNames = new Set(RESERVED_TOOLBAR_ITEM_NAMES);
|
|
45113
45134
|
const customToolbarItems = customItems.map((item, index) => {
|
|
@@ -46266,7 +46287,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46266
46287
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46267
46288
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46268
46289
|
this.colorIndex = 0;
|
|
46269
|
-
this.version = "2.20.1-next.
|
|
46290
|
+
this.version = "2.20.1-next.11";
|
|
46270
46291
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46271
46292
|
this.superdocId = config.superdocId || v4();
|
|
46272
46293
|
this.colors = this.config.colors ?? [];
|