superdoc 2.23.1-next.7 → 2.23.1-next.8

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.
@@ -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.23.1-next.7";
305
+ return "2.23.1-next.8";
306
306
  } catch {
307
307
  return "unknown";
308
308
  }
@@ -12200,7 +12200,7 @@ function useUiFontFamily() {
12200
12200
  }
12201
12201
  //#endregion
12202
12202
  //#region src/components/CommentsLayer/CommentsDropdown.vue
12203
- var _hoisted_1$32 = { class: "comments-dropdown" };
12203
+ var _hoisted_1$31 = { class: "comments-dropdown" };
12204
12204
  var _hoisted_2$25 = ["onClick"];
12205
12205
  var _hoisted_3$21 = {
12206
12206
  key: 0,
@@ -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$32, [createElementVNode("div", {
12334
+ return openBlock(), createElementBlock("div", _hoisted_1$31, [createElementVNode("div", {
12335
12335
  ref_key: "triggerRef",
12336
12336
  ref: triggerRef,
12337
12337
  class: "comments-dropdown__trigger",
@@ -12360,7 +12360,7 @@ var CommentsDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
12360
12360
  }, [["__scopeId", "data-v-7eced80a"]]);
12361
12361
  //#endregion
12362
12362
  //#region src/components/CommentsLayer/InternalDropdown.vue
12363
- var _hoisted_1$31 = { class: "sd-comment-option" };
12363
+ var _hoisted_1$30 = { class: "sd-comment-option" };
12364
12364
  var _hoisted_2$24 = ["innerHTML"];
12365
12365
  var _hoisted_3$20 = { class: "sd-option-state" };
12366
12366
  var _hoisted_4$12 = ["innerHTML"];
@@ -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$31, [
12434
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$30, [
12435
12435
  createElementVNode("div", {
12436
12436
  class: "sd-active-icon",
12437
12437
  innerHTML: activeIcon.value
@@ -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$30 = { class: "user-container" };
12599
+ var _hoisted_1$29 = { 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$30, [__props.user.image ? (openBlock(), createElementBlock("img", {
12622
+ return openBlock(), createElementBlock("div", _hoisted_1$29, [__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,7 +12629,7 @@ 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$29 = { class: "card-section comment-header" };
12632
+ var _hoisted_1$28 = { 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
12635
  var _hoisted_4$11 = { class: "user-name" };
@@ -12889,7 +12889,7 @@ 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$29, [createElementVNode("div", _hoisted_2$22, [createVNode(Avatar_default, {
12892
+ return openBlock(), createElementBlock("div", _hoisted_1$28, [createElementVNode("div", _hoisted_2$22, [createVNode(Avatar_default, {
12893
12893
  user: getCurrentUser.value,
12894
12894
  class: "avatar"
12895
12895
  }, null, 8, ["user"]), createElementVNode("div", _hoisted_3$18, [createElementVNode("div", _hoisted_4$11, [createTextVNode(toDisplayString(getCurrentUser.value.name), 1), isImported.value ? (openBlock(), createElementBlock("span", _hoisted_5$9, "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 }]) }, [
@@ -12940,7 +12940,7 @@ 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$28 = { class: "input-section" };
12943
+ var _hoisted_1$27 = { class: "input-section" };
12944
12944
  var _hoisted_2$21 = { class: "comment-composer" };
12945
12945
  var _hoisted_3$17 = [
12946
12946
  "aria-expanded",
@@ -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$28, [__props.includeHeader ? (openBlock(), createBlock(CommentHeader_default, {
13117
+ return openBlock(), createElementBlock("div", _hoisted_1$27, [__props.includeHeader ? (openBlock(), createBlock(CommentHeader_default, {
13118
13118
  key: 0,
13119
13119
  config: __props.config,
13120
13120
  comment: __props.comment,
@@ -13268,7 +13268,7 @@ function renderCommentHtml(value) {
13268
13268
  }
13269
13269
  //#endregion
13270
13270
  //#region src/components/CommentsLayer/CommentDialog.vue
13271
- var _hoisted_1$27 = [
13271
+ var _hoisted_1$26 = [
13272
13272
  "aria-label",
13273
13273
  "data-comment-instance-id",
13274
13274
  "data-comment-thread-id",
@@ -14492,13 +14492,13 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
14492
14492
  disabled: !hasTextContent.value || isV2WriteDisabled.value || isSubmittingReply.value,
14493
14493
  "data-disabled-reason": v2ReplyDisabledReason.value
14494
14494
  }, " Reply ", 10, _hoisted_53)])]))], 64)) : createCommentVNode("", true)
14495
- ], 64))], 14, _hoisted_1$27)), [[_directive_click_outside, handleClickOutside]]);
14495
+ ], 64))], 14, _hoisted_1$26)), [[_directive_click_outside, handleClickOutside]]);
14496
14496
  };
14497
14497
  }
14498
14498
  }, [["__scopeId", "data-v-c189ab35"]]);
14499
14499
  //#endregion
14500
14500
  //#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
14501
- var _hoisted_1$26 = [
14501
+ var _hoisted_1$25 = [
14502
14502
  "tabindex",
14503
14503
  "aria-posinset",
14504
14504
  "aria-setsize",
@@ -14636,13 +14636,13 @@ var ReviewDirectoryListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_de
14636
14636
  "floating-page-index",
14637
14637
  "floating-position-entry",
14638
14638
  "is-floating-instance-active"
14639
- ])) : createCommentVNode("", true)], 44, _hoisted_1$26);
14639
+ ])) : createCommentVNode("", true)], 44, _hoisted_1$25);
14640
14640
  };
14641
14641
  }
14642
14642
  }, [["__scopeId", "data-v-29650a06"]]);
14643
14643
  //#endregion
14644
14644
  //#region src/components/CommentsLayer/commentsList/commentsList.vue
14645
- var _hoisted_1$25 = ["aria-busy"];
14645
+ var _hoisted_1$24 = ["aria-busy"];
14646
14646
  var _hoisted_2$19 = { key: 0 };
14647
14647
  var _hoisted_3$15 = { key: 1 };
14648
14648
  var REPEATED_HEADER_FOOTER_STORY_TYPE = "headerFooterPart";
@@ -14803,7 +14803,7 @@ var commentsList_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
14803
14803
  "total",
14804
14804
  "tab-index"
14805
14805
  ]);
14806
- }), 128))])) : createCommentVNode("", true)], 8, _hoisted_1$25);
14806
+ }), 128))])) : createCommentVNode("", true)], 8, _hoisted_1$24);
14807
14807
  };
14808
14808
  }
14809
14809
  }, [["__scopeId", "data-v-89244745"]]);
@@ -15272,7 +15272,7 @@ var resolveRemovedReviewCardContinuityTarget = ({ previousIds, currentIds, remov
15272
15272
  };
15273
15273
  //#endregion
15274
15274
  //#region src/components/CommentsLayer/FloatingComments.vue
15275
- var _hoisted_1$24 = [
15275
+ var _hoisted_1$23 = [
15276
15276
  "data-comment-id",
15277
15277
  "data-comment-instance-id",
15278
15278
  "data-comment-thread-id",
@@ -16142,14 +16142,14 @@ var FloatingComments_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
16142
16142
  "floating-page-index",
16143
16143
  "floating-position-entry",
16144
16144
  "is-floating-instance-active"
16145
- ])) : createCommentVNode("", true)], 14, _hoisted_1$24);
16145
+ ])) : createCommentVNode("", true)], 14, _hoisted_1$23);
16146
16146
  }), 128))], 4)], 36);
16147
16147
  };
16148
16148
  }
16149
16149
  }, [["__scopeId", "data-v-15b59a51"]]);
16150
16150
  //#endregion
16151
16151
  //#region src/components/CommentsLayer/PdfCommentsLayer.vue
16152
- var _hoisted_1$23 = {
16152
+ var _hoisted_1$22 = {
16153
16153
  class: "superdoc__pdf-comments-layer pdf-comments-layer",
16154
16154
  "aria-hidden": "false"
16155
16155
  };
@@ -16255,7 +16255,7 @@ var PdfCommentsLayer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
16255
16255
  emit("anchor-activate", anchor.commentId);
16256
16256
  };
16257
16257
  return (_ctx, _cache) => {
16258
- return openBlock(), createElementBlock("div", _hoisted_1$23, [(openBlock(true), createElementBlock(Fragment, null, renderList(pdfCommentAnchors.value, (anchor) => {
16258
+ return openBlock(), createElementBlock("div", _hoisted_1$22, [(openBlock(true), createElementBlock(Fragment, null, renderList(pdfCommentAnchors.value, (anchor) => {
16259
16259
  return openBlock(), createElementBlock("div", {
16260
16260
  key: anchor.commentId,
16261
16261
  class: "sd-comment-anchor sd-highlight",
@@ -16424,7 +16424,7 @@ var useWhiteboard = ({ proxy, layers, documents, modules }) => {
16424
16424
  };
16425
16425
  //#endregion
16426
16426
  //#region src/components/Whiteboard/WhiteboardPage.vue
16427
- var _hoisted_1$22 = ["data-page-index"];
16427
+ var _hoisted_1$21 = ["data-page-index"];
16428
16428
  var WhiteboardPage_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
16429
16429
  __name: "WhiteboardPage",
16430
16430
  props: {
@@ -16556,7 +16556,7 @@ var WhiteboardPage_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
16556
16556
  height: (__props.pageSize?.height ?? __props.page.size?.height) + "px",
16557
16557
  transform: `translate(${__props.pageOffset?.left ?? 0}px, ${__props.pageOffset?.top ?? 0}px)`
16558
16558
  })
16559
- }, null, 44, _hoisted_1$22);
16559
+ }, null, 44, _hoisted_1$21);
16560
16560
  };
16561
16561
  }
16562
16562
  }, [["__scopeId", "data-v-c876c9b5"]]);
@@ -16631,7 +16631,7 @@ var WhiteboardLayer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
16631
16631
  }, [["__scopeId", "data-v-54546c3d"]]);
16632
16632
  //#endregion
16633
16633
  //#region src/components/HtmlViewer/HtmlViewer.vue
16634
- var _hoisted_1$21 = { class: "superdoc-html-viewer" };
16634
+ var _hoisted_1$20 = { class: "superdoc-html-viewer" };
16635
16635
  var _hoisted_2$17 = { class: "superdoc-html-viewer__document" };
16636
16636
  var _hoisted_3$14 = ["innerHTML"];
16637
16637
  var HtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
@@ -16681,7 +16681,7 @@ var HtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
16681
16681
  initViewer();
16682
16682
  });
16683
16683
  return (_ctx, _cache) => {
16684
- return openBlock(), createElementBlock("div", _hoisted_1$21, [createElementVNode("div", _hoisted_2$17, [createElementVNode("div", {
16684
+ return openBlock(), createElementBlock("div", _hoisted_1$20, [createElementVNode("div", _hoisted_2$17, [createElementVNode("div", {
16685
16685
  class: "superdoc-html-viewer__content",
16686
16686
  innerHTML: documentContent.value,
16687
16687
  onMouseup: handleSelectionChange
@@ -18943,7 +18943,7 @@ var toolbarIcons = {
18943
18943
  };
18944
18944
  //#endregion
18945
18945
  //#region src/internal/toolbar/built-in/LinkInput.vue
18946
- var _hoisted_1$20 = {
18946
+ var _hoisted_1$19 = {
18947
18947
  key: 0,
18948
18948
  class: "link-title"
18949
18949
  };
@@ -19186,7 +19186,7 @@ var LinkInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
19186
19186
  if (props.goToAnchor) props.goToAnchor(anchorUrl);
19187
19187
  };
19188
19188
  return (_ctx, _cache) => {
19189
- return openBlock(), createElementBlock("div", { class: normalizeClass(["link-input-ctn", { "high-contrast": unref(isHighContrastMode) }]) }, [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$8, "Add link")), __props.showInput && !isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
19189
+ return openBlock(), createElementBlock("div", { class: normalizeClass(["link-input-ctn", { "high-contrast": unref(isHighContrastMode) }]) }, [isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_1$19, "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$8, "Add link")), __props.showInput && !isAnchor.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
19190
19190
  createElementVNode("div", _hoisted_6$5, [_cache[5] || (_cache[5] = createElementVNode("div", { class: "input-icon text-input-icon" }, "T", -1)), withDirectives(createElementVNode("input", {
19191
19191
  type: "text",
19192
19192
  name: "text",
@@ -21559,7 +21559,7 @@ var FOCUSABLE_SELECTOR = [
21559
21559
  ].join(", ");
21560
21560
  //#endregion
21561
21561
  //#region src/components/surfaces/SurfaceDialog.vue
21562
- var _hoisted_1$19 = ["aria-labelledby", "aria-label"];
21562
+ var _hoisted_1$18 = ["aria-labelledby", "aria-label"];
21563
21563
  var _hoisted_2$15 = ["id"];
21564
21564
  var _hoisted_3$12 = { class: "sd-surface-dialog__content" };
21565
21565
  var SurfaceDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
@@ -21707,13 +21707,13 @@ var SurfaceDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
21707
21707
  "render",
21708
21708
  "resolve",
21709
21709
  "close"
21710
- ])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 12, _hoisted_1$19)], 32);
21710
+ ])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 12, _hoisted_1$18)], 32);
21711
21711
  };
21712
21712
  }
21713
21713
  }, [["__scopeId", "data-v-582b6534"]]);
21714
21714
  //#endregion
21715
21715
  //#region src/components/surfaces/SurfaceFloating.vue
21716
- var _hoisted_1$18 = ["aria-labelledby", "aria-label"];
21716
+ var _hoisted_1$17 = ["aria-labelledby", "aria-label"];
21717
21717
  var _hoisted_2$14 = ["id"];
21718
21718
  var _hoisted_3$11 = { class: "sd-surface-floating__content" };
21719
21719
  var SurfaceFloating_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
@@ -21861,7 +21861,7 @@ var SurfaceFloating_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
21861
21861
  "render",
21862
21862
  "resolve",
21863
21863
  "close"
21864
- ])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 14, _hoisted_1$18);
21864
+ ])) : __props.surface.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.surface.component), normalizeProps(mergeProps({ key: 1 }, mergedComponentProps.value)), null, 16)) : createCommentVNode("", true)])], 14, _hoisted_1$17);
21865
21865
  };
21866
21866
  }
21867
21867
  }, [["__scopeId", "data-v-cd2be5db"]]);
@@ -22089,7 +22089,7 @@ var SurfaceHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
22089
22089
  }, [["__scopeId", "data-v-dad99b67"]]);
22090
22090
  //#endregion
22091
22091
  //#region src/SuperDoc.vue
22092
- var _hoisted_1$17 = ["innerHTML"];
22092
+ var _hoisted_1$16 = ["innerHTML"];
22093
22093
  var _hoisted_2$13 = { class: "superdoc__document document" };
22094
22094
  var _hoisted_3$10 = { class: "floating-comments" };
22095
22095
  var TRACKED_CHANGE_CARRIERS_RESTAMPED_EVENT = "superdoc:v2-tracked-change-carriers-restamped";
@@ -24537,7 +24537,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
24537
24537
  }, [createElementVNode("div", {
24538
24538
  class: "superdoc__tools-icon",
24539
24539
  innerHTML: unref(superdocIcons).comment
24540
- }, null, 8, _hoisted_1$17)], 32)], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$13, [
24540
+ }, null, 8, _hoisted_1$16)], 32)], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$13, [
24541
24541
  isCommentsEnabled.value ? (openBlock(), createElementBlock("div", {
24542
24542
  key: 0,
24543
24543
  class: "superdoc__selection-layer selection-layer",
@@ -39233,7 +39233,7 @@ var throttle = (func, wait, options) => {
39233
39233
  };
39234
39234
  //#endregion
39235
39235
  //#region src/internal/toolbar/built-in/ToolbarButtonIcon.vue
39236
- var _hoisted_1$16 = { class: "sd-toolbar-icon" };
39236
+ var _hoisted_1$15 = { class: "sd-toolbar-icon" };
39237
39237
  var _hoisted_2$12 = ["innerHTML"];
39238
39238
  var ToolbarButtonIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
39239
39239
  __name: "ToolbarButtonIcon",
@@ -39261,7 +39261,7 @@ var ToolbarButtonIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
39261
39261
  return ["color", "highlight"].includes(props.name);
39262
39262
  });
39263
39263
  return (_ctx, _cache) => {
39264
- return openBlock(), createElementBlock("div", _hoisted_1$16, [createElementVNode("div", {
39264
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [createElementVNode("div", {
39265
39265
  class: normalizeClass(["sd-toolbar-icon__icon", [`sd-toolbar-icon__icon--${props.name}`]]),
39266
39266
  innerHTML: __props.icon
39267
39267
  }, null, 10, _hoisted_2$12), hasColorBar.value ? (openBlock(), createElementBlock("div", {
@@ -39274,7 +39274,7 @@ var ToolbarButtonIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
39274
39274
  }, [["__scopeId", "data-v-65ecd5b1"]]);
39275
39275
  //#endregion
39276
39276
  //#region src/internal/toolbar/built-in/ToolbarButton.vue
39277
- var _hoisted_1$15 = [
39277
+ var _hoisted_1$14 = [
39278
39278
  "role",
39279
39279
  "aria-label",
39280
39280
  "aria-disabled"
@@ -39568,13 +39568,13 @@ var ToolbarButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
39568
39568
  }, null, 12, _hoisted_10$1)) : createCommentVNode("", true)
39569
39569
  ], 64)),
39570
39570
  createElementVNode("div", _hoisted_11$1, toDisplayString(`${unref(attributes).ariaLabel} ${unref(active) ? "selected" : "unset"}`), 1)
39571
- ], 10, _hoisted_2$11)], 46, _hoisted_1$15);
39571
+ ], 10, _hoisted_2$11)], 46, _hoisted_1$14);
39572
39572
  };
39573
39573
  }
39574
39574
  }, [["__scopeId", "data-v-96796456"]]);
39575
39575
  //#endregion
39576
39576
  //#region src/internal/toolbar/built-in/ToolbarSeparator.vue
39577
- var _hoisted_1$14 = {
39577
+ var _hoisted_1$13 = {
39578
39578
  class: "toolbar-separator",
39579
39579
  role: "separator",
39580
39580
  "aria-label": "Toolbar separator"
@@ -39593,7 +39593,7 @@ var ToolbarSeparator_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
39593
39593
  return "var(--sd-ui-border, #dbdbdb)";
39594
39594
  };
39595
39595
  return (_ctx, _cache) => {
39596
- return openBlock(), createElementBlock("div", _hoisted_1$14, [createElementVNode("div", {
39596
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [createElementVNode("div", {
39597
39597
  class: "separator-inner",
39598
39598
  style: normalizeStyle({ backgroundColor: getSeparatorColor() })
39599
39599
  }, null, 4)]);
@@ -39602,7 +39602,7 @@ var ToolbarSeparator_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
39602
39602
  }, [["__scopeId", "data-v-cb82253a"]]);
39603
39603
  //#endregion
39604
39604
  //#region src/internal/toolbar/built-in/ToolbarDropdown.vue
39605
- var _hoisted_1$13 = { class: "toolbar-dropdown" };
39605
+ var _hoisted_1$12 = { class: "toolbar-dropdown" };
39606
39606
  var _hoisted_2$10 = ["onClick"];
39607
39607
  var _hoisted_3$8 = {
39608
39608
  key: 0,
@@ -39957,7 +39957,7 @@ var ToolbarDropdown_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
39957
39957
  window.removeEventListener("scroll", updateMenuPosition, true);
39958
39958
  });
39959
39959
  return (_ctx, _cache) => {
39960
- return openBlock(), createElementBlock("div", _hoisted_1$13, [createElementVNode("div", {
39960
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [createElementVNode("div", {
39961
39961
  ref_key: "triggerRef",
39962
39962
  ref: triggerRef,
39963
39963
  class: "toolbar-dropdown-trigger",
@@ -40220,7 +40220,7 @@ var normalizeCustomFontSize = (value) => {
40220
40220
  };
40221
40221
  //#endregion
40222
40222
  //#region src/internal/toolbar/built-in/ToolbarComboBox.vue
40223
- var _hoisted_1$12 = ["data-item"];
40223
+ var _hoisted_1$11 = ["data-item"];
40224
40224
  var _hoisted_2$9 = [
40225
40225
  "id",
40226
40226
  "value",
@@ -40731,7 +40731,7 @@ var ToolbarComboBox_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
40731
40731
  }), [createElementVNode("span", _hoisted_7$1, toDisplayString(option.label), 1)], 16, _hoisted_6$3);
40732
40732
  }), 128))], 14, _hoisted_5$4)) : createCommentVNode("", true)])),
40733
40733
  createElementVNode("span", _hoisted_8$1, toDisplayString(appliedLabel.value), 1)
40734
- ], 14, _hoisted_1$12);
40734
+ ], 14, _hoisted_1$11);
40735
40735
  };
40736
40736
  }
40737
40737
  }, [["__scopeId", "data-v-e288ef9f"]]);
@@ -40819,7 +40819,6 @@ var _sfc_main$13 = {
40819
40819
  };
40820
40820
  //#endregion
40821
40821
  //#region src/internal/toolbar/built-in/SdTooltip.vue
40822
- var _hoisted_1$11 = ["data-placement"];
40823
40822
  var AUTO_HIDE_DELAY = 2500;
40824
40823
  var SdTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
40825
40824
  __name: "SdTooltip",
@@ -40855,7 +40854,6 @@ var SdTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
40855
40854
  top: "0px",
40856
40855
  left: "0px"
40857
40856
  });
40858
- const placement = ref("top");
40859
40857
  let closeTimeout = null;
40860
40858
  let openTimeout = null;
40861
40859
  let autoHideTimeout = null;
@@ -40893,48 +40891,17 @@ var SdTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
40893
40891
  close();
40894
40892
  }, AUTO_HIDE_DELAY);
40895
40893
  };
40896
- const getElementSize = (element, dimension) => {
40897
- const styles = window.getComputedStyle(element);
40898
- const size = parseFloat(styles[dimension]);
40899
- if (!Number.isFinite(size)) return dimension === "width" ? element.offsetWidth : element.offsetHeight;
40900
- if (styles.boxSizing === "border-box") return size;
40901
- return (dimension === "width" ? [
40902
- "paddingLeft",
40903
- "paddingRight",
40904
- "borderLeftWidth",
40905
- "borderRightWidth"
40906
- ] : [
40907
- "paddingTop",
40908
- "paddingBottom",
40909
- "borderTopWidth",
40910
- "borderBottomWidth"
40911
- ]).reduce((total, property) => total + (parseFloat(styles[property]) || 0), size);
40912
- };
40913
40894
  const updatePosition = () => {
40914
40895
  if (!triggerRef.value || !contentRef.value) return;
40915
40896
  const triggerRect = triggerRef.value.getBoundingClientRect();
40916
- const contentWidth = getElementSize(contentRef.value, "width");
40917
- const contentHeight = getElementSize(contentRef.value, "height");
40897
+ const contentWidth = contentRef.value.offsetWidth;
40898
+ const contentHeight = contentRef.value.offsetHeight;
40918
40899
  const viewportWidth = window.innerWidth || document.documentElement.clientWidth || 0;
40919
- const viewportHeight = document.documentElement.clientHeight || window.innerHeight || 0;
40920
40900
  const gutter = 8;
40921
- const offset = 10;
40922
40901
  let left = triggerRect.left + triggerRect.width / 2 - contentWidth / 2;
40923
40902
  left = Math.max(gutter, Math.min(left, viewportWidth - contentWidth - gutter));
40924
- const topAbove = triggerRect.top - contentHeight - offset;
40925
- const topBelow = triggerRect.bottom + offset;
40926
- const fitsAbove = topAbove >= gutter;
40927
- const fitsBelow = topBelow + contentHeight <= viewportHeight - gutter;
40928
- const availableAbove = triggerRect.top - offset;
40929
- const availableBelow = viewportHeight - triggerRect.bottom - offset;
40930
- if (fitsAbove) placement.value = "top";
40931
- else if (fitsBelow) placement.value = "bottom";
40932
- else placement.value = availableAbove >= availableBelow ? "top" : "bottom";
40933
- const desiredTop = placement.value === "top" ? topAbove : topBelow;
40934
- const minTop = Math.min(gutter, Math.max(0, viewportHeight - contentHeight));
40935
- const maxTop = Math.max(minTop, viewportHeight - contentHeight - gutter);
40936
40903
  position.value = {
40937
- top: `${Math.max(minTop, Math.min(desiredTop, maxTop))}px`,
40904
+ top: `${triggerRect.top - contentHeight - 10}px`,
40938
40905
  left: `${left}px`
40939
40906
  };
40940
40907
  };
@@ -41045,18 +41012,17 @@ var SdTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
41045
41012
  ref: contentRef,
41046
41013
  class: normalizeClass(mergedContentClass.value),
41047
41014
  style: normalizeStyle(contentStyle.value),
41048
- "data-placement": placement.value,
41049
41015
  onMouseenter: handleContentMouseEnter,
41050
41016
  onMouseleave: handleContentMouseLeave
41051
41017
  }, [_cache[0] || (_cache[0] = createElementVNode("span", {
41052
41018
  class: "sd-tooltip-arrow",
41053
41019
  "aria-hidden": "true"
41054
- }, null, -1)), renderSlot(_ctx.$slots, "default", {}, void 0, true)], 46, _hoisted_1$11)) : createCommentVNode("", true)]),
41020
+ }, null, -1)), renderSlot(_ctx.$slots, "default", {}, void 0, true)], 38)) : createCommentVNode("", true)]),
41055
41021
  _: 3
41056
41022
  }, 8, ["css"])]))], 64);
41057
41023
  };
41058
41024
  }
41059
- }), [["__scopeId", "data-v-44bd03f9"]]);
41025
+ }), [["__scopeId", "data-v-1449088a"]]);
41060
41026
  //#endregion
41061
41027
  //#region src/internal/toolbar/built-in/ButtonGroup.vue
41062
41028
  var _hoisted_1$10 = [
@@ -46486,7 +46452,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46486
46452
  }
46487
46453
  this.userColorMap = /* @__PURE__ */ new Map();
46488
46454
  this.colorIndex = 0;
46489
- this.version = "2.23.1-next.7";
46455
+ this.version = "2.23.1-next.8";
46490
46456
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46491
46457
  this.superdocId = config.superdocId || v4();
46492
46458
  this.colors = this.config.colors ?? [];