@dialpad/dialtone 9.164.0 → 9.166.0

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.
Files changed (56) hide show
  1. package/dist/tokens/doc.json +124660 -124660
  2. package/dist/vue3/component-documentation.json +1 -1
  3. package/dist/vue3/lib/editor/EditorToolbarButton.cjs +1 -1
  4. package/dist/vue3/lib/editor/EditorToolbarButton.cjs.map +1 -1
  5. package/dist/vue3/lib/editor/EditorToolbarButton.js +14 -13
  6. package/dist/vue3/lib/editor/EditorToolbarButton.js.map +1 -1
  7. package/dist/vue3/lib/editor/editor.cjs +1 -1
  8. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  9. package/dist/vue3/lib/editor/editor.js +209 -191
  10. package/dist/vue3/lib/editor/editor.js.map +1 -1
  11. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  12. package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
  13. package/dist/vue3/lib/message-input/message-input.js +19 -18
  14. package/dist/vue3/lib/message-input/message-input.js.map +1 -1
  15. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
  16. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  17. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +161 -131
  18. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  19. package/dist/vue3/localization/de-DE.cjs +4 -0
  20. package/dist/vue3/localization/de-DE.cjs.map +1 -1
  21. package/dist/vue3/localization/de-DE.js +4 -0
  22. package/dist/vue3/localization/de-DE.js.map +1 -1
  23. package/dist/vue3/localization/es-LA.cjs +4 -0
  24. package/dist/vue3/localization/es-LA.cjs.map +1 -1
  25. package/dist/vue3/localization/es-LA.js +4 -0
  26. package/dist/vue3/localization/es-LA.js.map +1 -1
  27. package/dist/vue3/localization/fr-FR.cjs +4 -0
  28. package/dist/vue3/localization/fr-FR.cjs.map +1 -1
  29. package/dist/vue3/localization/fr-FR.js +4 -0
  30. package/dist/vue3/localization/fr-FR.js.map +1 -1
  31. package/dist/vue3/localization/it-IT.cjs +4 -0
  32. package/dist/vue3/localization/it-IT.cjs.map +1 -1
  33. package/dist/vue3/localization/it-IT.js +4 -0
  34. package/dist/vue3/localization/it-IT.js.map +1 -1
  35. package/dist/vue3/localization/nl-NL.cjs +4 -0
  36. package/dist/vue3/localization/nl-NL.cjs.map +1 -1
  37. package/dist/vue3/localization/nl-NL.js +4 -0
  38. package/dist/vue3/localization/nl-NL.js.map +1 -1
  39. package/dist/vue3/localization/pt-BR.cjs +4 -0
  40. package/dist/vue3/localization/pt-BR.cjs.map +1 -1
  41. package/dist/vue3/localization/pt-BR.js +4 -0
  42. package/dist/vue3/localization/pt-BR.js.map +1 -1
  43. package/dist/vue3/localization/ru-RU.cjs +4 -0
  44. package/dist/vue3/localization/ru-RU.cjs.map +1 -1
  45. package/dist/vue3/localization/ru-RU.js +4 -0
  46. package/dist/vue3/localization/ru-RU.js.map +1 -1
  47. package/dist/vue3/localization/zh-CN.cjs +4 -0
  48. package/dist/vue3/localization/zh-CN.cjs.map +1 -1
  49. package/dist/vue3/localization/zh-CN.js +4 -0
  50. package/dist/vue3/localization/zh-CN.js.map +1 -1
  51. package/dist/vue3/style.css +1 -1
  52. package/dist/vue3/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +1 -0
  53. package/dist/vue3/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -1
  54. package/dist/vue3/types/components/rich_text_editor/extensions/variable/variable.d.ts.map +1 -1
  55. package/dist/vue3/types/recipes/conversation_view/editor/EditorToolbarButton.vue.d.ts.map +1 -1
  56. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
- import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeViewRenderer as mt, EditorContent as Fe, Editor as ze } from "../../node_modules/@tiptap/vue-3.js";
1
+ import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeViewRenderer as mt, EditorContent as ze, Editor as Fe } from "../../node_modules/@tiptap/vue-3.js";
2
2
  import { isTextSelection as Ke, posToDOMRect as re, getText as We, getTextSerializersFromSchema as qe, Node as ae, nodePasteRule as Et, InputRule as Xe, mergeAttributes as st, getMarksBetween as Ye, combineTransactionSteps as Ge, getChangedRanges as Je, findChildrenInRange as Ze, Mark as Qe, nodeInputRule as tn, Extension as en } from "@tiptap/core";
3
3
  import { Plugin as It, PluginKey as rt, NodeSelection as nn } from "@tiptap/pm/state";
4
4
  import { CellSelection as on } from "@tiptap/pm/tables";
5
- import { defineComponent as le, ref as ce, onMounted as de, nextTick as sn, onBeforeUnmount as ue, h as he, resolveComponent as T, openBlock as k, createBlock as M, withCtx as C, createVNode as I, createElementBlock as et, withDirectives as rn, createElementVNode as nt, Fragment as an, renderList as ln, withModifiers as Dt, normalizeClass as fe, resolveDynamicComponent as cn, vShow as dn, markRaw as un, createTextVNode as at, toDisplayString as $, createCommentVNode as it, withKeys as hn, mergeProps as pe } from "vue";
5
+ import { defineComponent as le, ref as ce, onMounted as de, nextTick as sn, onBeforeUnmount as ue, h as he, resolveComponent as T, openBlock as _, createBlock as I, withCtx as C, createVNode as M, createElementBlock as et, withDirectives as rn, createElementVNode as nt, Fragment as an, renderList as ln, withModifiers as At, normalizeClass as fe, resolveDynamicComponent as cn, vShow as dn, markRaw as un, createTextVNode as at, toDisplayString as $, createCommentVNode as it, withKeys as hn, mergeProps as pe } from "vue";
6
6
  import fn from "@tiptap/extension-blockquote";
7
7
  import pn from "@tiptap/extension-code-block";
8
8
  import mn from "@tiptap/extension-code";
@@ -18,16 +18,16 @@ import En from "@tiptap/extension-strike";
18
18
  import Sn from "@tiptap/extension-underline";
19
19
  import Ln from "@tiptap/extension-text";
20
20
  import In from "@tiptap/extension-text-align";
21
- import { Table as Dn, TableRow as An, TableHeader as Rn, TableCell as Mn } from "@tiptap/extension-table";
21
+ import { Table as An, TableRow as Dn, TableHeader as Rn, TableCell as Mn } from "@tiptap/extension-table";
22
22
  import { TextStyleKit as Hn } from "@tiptap/extension-text-style";
23
23
  import $n from "@tiptap/suggestion";
24
24
  import { emojiPattern as ge } from "regex-combined-emojis";
25
25
  import { _ as q } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
26
26
  import ye from "../emoji/emoji.js";
27
- import { getEmojiData as Bn, emojiRegex as Nn, stringToUnicode as Pn, codeToEmojiData as At, emojiShortCodeRegex as Un } from "../../common/emoji/index.js";
27
+ import { getEmojiData as Bn, emojiRegex as Nn, stringToUnicode as Pn, codeToEmojiData as Dt, emojiShortCodeRegex as Un } from "../../common/emoji/index.js";
28
28
  import Vn from "../list-item/list-item.js";
29
29
  import gt from "../stack/stack.js";
30
- import { linkRegex as jn, getPhoneNumberRegex as Fn, warnIfUnmounted as zn, returnFirstEl as Ft } from "../../common/utils/index.js";
30
+ import { linkRegex as jn, getPhoneNumberRegex as zn, warnIfUnmounted as Fn, returnFirstEl as zt } from "../../common/utils/index.js";
31
31
  import Kn from "@tiptap/extension-image";
32
32
  import Rt from "@tiptap/extension-mention";
33
33
  import we from "../link/link.js";
@@ -37,7 +37,7 @@ import qn from "../input/input.js";
37
37
  import Xn from "../popover/popover.js";
38
38
  import ve from "../button/button.js";
39
39
  import Yn from "../badge/badge.js";
40
- import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as zt, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Gn, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Jn } from "./rich-text-editor-constants.js";
40
+ import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as Ft, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Gn, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Jn } from "./rich-text-editor-constants.js";
41
41
  import Zn from "../avatar/avatar.js";
42
42
  import Qn from "@dialpad/dialtone-icons/vue3/hash";
43
43
  import to from "@dialpad/dialtone-icons/vue3/lock";
@@ -63,7 +63,7 @@ function Z(t, e) {
63
63
  function j(t) {
64
64
  return t.split("-")[0];
65
65
  }
66
- function z(t) {
66
+ function F(t) {
67
67
  return t.split("-")[1];
68
68
  }
69
69
  function Te(t) {
@@ -81,7 +81,7 @@ function Ht(t) {
81
81
  }
82
82
  function _e(t, e, o) {
83
83
  o === void 0 && (o = !1);
84
- const n = z(t), i = Ht(t), s = Mt(i);
84
+ const n = F(t), i = Ht(t), s = Mt(i);
85
85
  let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
86
86
  return e.reference[s] > e.floating[s] && (r = vt(r)), [r, vt(r)];
87
87
  }
@@ -106,7 +106,7 @@ function lo(t, e, o) {
106
106
  }
107
107
  }
108
108
  function co(t, e, o, n) {
109
- const i = z(t);
109
+ const i = F(t);
110
110
  let s = lo(j(t), o === "start", n);
111
111
  return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(bt)))), s;
112
112
  }
@@ -186,7 +186,7 @@ function Yt(t, e, o) {
186
186
  y: n.y
187
187
  };
188
188
  }
189
- switch (z(e)) {
189
+ switch (F(e)) {
190
190
  case "start":
191
191
  f[r] -= h * (o && u ? -1 : 1);
192
192
  break;
@@ -265,7 +265,7 @@ const fo = async (t, e, o) => {
265
265
  x: v,
266
266
  y: x,
267
267
  data: O,
268
- reset: _
268
+ reset: k
269
269
  } = await b({
270
270
  x: d,
271
271
  y: c,
@@ -289,11 +289,11 @@ const fo = async (t, e, o) => {
289
289
  ...f[y],
290
290
  ...O
291
291
  }
292
- }, _ && p <= 50 && (p++, typeof _ == "object" && (_.placement && (h = _.placement), _.rects && (u = _.rects === !0 ? await r.getElementRects({
292
+ }, k && p <= 50 && (p++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (u = k.rects === !0 ? await r.getElementRects({
293
293
  reference: t,
294
294
  floating: e,
295
295
  strategy: i
296
- }) : _.rects), {
296
+ }) : k.rects), {
297
297
  x: d,
298
298
  y: c
299
299
  } = Yt(u, h, l)), g = -1);
@@ -326,15 +326,15 @@ const fo = async (t, e, o) => {
326
326
  const c = $t(d), h = {
327
327
  x: o,
328
328
  y: n
329
- }, f = Ht(i), p = Mt(f), m = await r.getDimensions(u), g = f === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", x = s.reference[p] + s.reference[f] - h[f] - s.floating[p], O = h[f] - s.reference[f], _ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
330
- let L = _ ? _[v] : 0;
331
- (!L || !await (r.isElement == null ? void 0 : r.isElement(_))) && (L = a.floating[v] || s.floating[p]);
332
- const U = x / 2 - O / 2, D = L / 2 - m[p] / 2 - 1, w = G(c[y], D), E = G(c[b], D), A = w, H = L - m[p] - E, S = L / 2 - m[p] / 2 + U, F = St(A, S, H), V = !l.arrow && z(i) != null && S !== F && s.reference[p] / 2 - (S < A ? w : E) - m[p] / 2 < 0, B = V ? S < A ? S - A : S - H : 0;
329
+ }, f = Ht(i), p = Mt(f), m = await r.getDimensions(u), g = f === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", x = s.reference[p] + s.reference[f] - h[f] - s.floating[p], O = h[f] - s.reference[f], k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
330
+ let L = k ? k[v] : 0;
331
+ (!L || !await (r.isElement == null ? void 0 : r.isElement(k))) && (L = a.floating[v] || s.floating[p]);
332
+ const U = x / 2 - O / 2, A = L / 2 - m[p] / 2 - 1, w = G(c[y], A), E = G(c[b], A), D = w, H = L - m[p] - E, S = L / 2 - m[p] / 2 + U, z = St(D, S, H), V = !l.arrow && F(i) != null && S !== z && s.reference[p] / 2 - (S < D ? w : E) - m[p] / 2 < 0, B = V ? S < D ? S - D : S - H : 0;
333
333
  return {
334
334
  [f]: h[f] + B,
335
335
  data: {
336
- [f]: F,
337
- centerOffset: S - F - B,
336
+ [f]: z,
337
+ centerOffset: S - z - B,
338
338
  ...V && {
339
339
  alignmentOffset: B
340
340
  }
@@ -344,7 +344,7 @@ const fo = async (t, e, o) => {
344
344
  }
345
345
  });
346
346
  function mo(t, e, o) {
347
- return (t ? [...o.filter((i) => z(i) === t), ...o.filter((i) => z(i) !== t)] : o.filter((i) => j(i) === i)).filter((i) => t ? z(i) === t || (e ? bt(i) !== i : !1) : !0);
347
+ return (t ? [...o.filter((i) => F(i) === t), ...o.filter((i) => F(i) !== t)] : o.filter((i) => j(i) === i)).filter((i) => t ? F(i) === t || (e ? bt(i) !== i : !1) : !0);
348
348
  }
349
349
  const go = function(t) {
350
350
  return t === void 0 && (t = {}), {
@@ -377,39 +377,39 @@ const go = function(t) {
377
377
  const x = [g[j(b)], g[v[0]], g[v[1]]], O = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
378
378
  placement: b,
379
379
  overflows: x
380
- }], _ = m[y + 1];
381
- if (_)
380
+ }], k = m[y + 1];
381
+ if (k)
382
382
  return {
383
383
  data: {
384
384
  index: y + 1,
385
385
  overflows: O
386
386
  },
387
387
  reset: {
388
- placement: _
388
+ placement: k
389
389
  }
390
390
  };
391
391
  const L = O.map((w) => {
392
- const E = z(w.placement);
392
+ const E = F(w.placement);
393
393
  return [w.placement, E && d ? (
394
394
  // Check along the mainAxis and main crossAxis side.
395
- w.overflows.slice(0, 2).reduce((A, H) => A + H, 0)
395
+ w.overflows.slice(0, 2).reduce((D, H) => D + H, 0)
396
396
  ) : (
397
397
  // Check only the mainAxis.
398
398
  w.overflows[0]
399
399
  ), w.overflows];
400
- }).sort((w, E) => w[1] - E[1]), D = ((i = L.filter((w) => w[2].slice(
400
+ }).sort((w, E) => w[1] - E[1]), A = ((i = L.filter((w) => w[2].slice(
401
401
  0,
402
402
  // Aligned placements should not check their opposite crossAxis
403
403
  // side.
404
- z(w[0]) ? 2 : 3
404
+ F(w[0]) ? 2 : 3
405
405
  ).every((E) => E <= 0))[0]) == null ? void 0 : i[0]) || L[0][0];
406
- return D !== a ? {
406
+ return A !== a ? {
407
407
  data: {
408
408
  index: y + 1,
409
409
  overflows: O
410
410
  },
411
411
  reset: {
412
- placement: D
412
+ placement: A
413
413
  }
414
414
  } : {};
415
415
  }
@@ -438,21 +438,21 @@ const go = function(t) {
438
438
  } = Z(t, e);
439
439
  if ((o = s.arrow) != null && o.alignmentOffset)
440
440
  return {};
441
- const y = j(i), b = X(a), v = j(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = h || (v || !m ? [vt(a)] : so(a)), _ = p !== "none";
442
- !h && _ && O.push(...co(a, m, p, x));
443
- const L = [a, ...O], U = await l.detectOverflow(e, g), D = [];
441
+ const y = j(i), b = X(a), v = j(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = h || (v || !m ? [vt(a)] : so(a)), k = p !== "none";
442
+ !h && k && O.push(...co(a, m, p, x));
443
+ const L = [a, ...O], U = await l.detectOverflow(e, g), A = [];
444
444
  let w = ((n = s.flip) == null ? void 0 : n.overflows) || [];
445
- if (d && D.push(U[y]), c) {
445
+ if (d && A.push(U[y]), c) {
446
446
  const S = _e(i, r, x);
447
- D.push(U[S[0]], U[S[1]]);
447
+ A.push(U[S[0]], U[S[1]]);
448
448
  }
449
449
  if (w = [...w, {
450
450
  placement: i,
451
- overflows: D
452
- }], !D.every((S) => S <= 0)) {
453
- var E, A;
454
- const S = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, F = L[S];
455
- if (F && (!(c === "alignment" ? b !== X(F) : !1) || // We leave the current main axis only if every placement on that axis
451
+ overflows: A
452
+ }], !A.every((S) => S <= 0)) {
453
+ var E, D;
454
+ const S = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, z = L[S];
455
+ if (z && (!(c === "alignment" ? b !== X(z) : !1) || // We leave the current main axis only if every placement on that axis
456
456
  // overflows the main axis.
457
457
  w.every((N) => X(N.placement) === b ? N.overflows[0] > 0 : !0)))
458
458
  return {
@@ -461,16 +461,16 @@ const go = function(t) {
461
461
  overflows: w
462
462
  },
463
463
  reset: {
464
- placement: F
464
+ placement: z
465
465
  }
466
466
  };
467
- let V = (A = w.filter((B) => B.overflows[0] <= 0).sort((B, N) => B.overflows[1] - N.overflows[1])[0]) == null ? void 0 : A.placement;
467
+ let V = (D = w.filter((B) => B.overflows[0] <= 0).sort((B, N) => B.overflows[1] - N.overflows[1])[0]) == null ? void 0 : D.placement;
468
468
  if (!V)
469
469
  switch (f) {
470
470
  case "bestFit": {
471
471
  var H;
472
472
  const B = (H = w.filter((N) => {
473
- if (_) {
473
+ if (k) {
474
474
  const tt = X(N.placement);
475
475
  return tt === b || // Create a bias to the `y` side axis due to horizontal
476
476
  // reading directions favoring greater width.
@@ -589,27 +589,27 @@ const vo = function(t) {
589
589
  return c.find((g) => l > g.left - f.left && l < g.right + f.right && u > g.top - f.top && u < g.bottom + f.bottom) || h;
590
590
  if (c.length >= 2) {
591
591
  if (X(o) === "y") {
592
- const w = c[0], E = c[c.length - 1], A = j(o) === "top", H = w.top, S = E.bottom, F = A ? w.left : E.left, V = A ? w.right : E.right, B = V - F, N = S - H;
592
+ const w = c[0], E = c[c.length - 1], D = j(o) === "top", H = w.top, S = E.bottom, z = D ? w.left : E.left, V = D ? w.right : E.right, B = V - z, N = S - H;
593
593
  return {
594
594
  top: H,
595
595
  bottom: S,
596
- left: F,
596
+ left: z,
597
597
  right: V,
598
598
  width: B,
599
599
  height: N,
600
- x: F,
600
+ x: z,
601
601
  y: H
602
602
  };
603
603
  }
604
- const g = j(o) === "left", y = R(...c.map((w) => w.right)), b = G(...c.map((w) => w.left)), v = c.filter((w) => g ? w.left === b : w.right === y), x = v[0].top, O = v[v.length - 1].bottom, _ = b, L = y, U = L - _, D = O - x;
604
+ const g = j(o) === "left", y = R(...c.map((w) => w.right)), b = G(...c.map((w) => w.left)), v = c.filter((w) => g ? w.left === b : w.right === y), x = v[0].top, O = v[v.length - 1].bottom, k = b, L = y, U = L - k, A = O - x;
605
605
  return {
606
606
  top: x,
607
607
  bottom: O,
608
- left: _,
608
+ left: k,
609
609
  right: L,
610
610
  width: U,
611
- height: D,
612
- x: _,
611
+ height: A,
612
+ x: k,
613
613
  y: x
614
614
  };
615
615
  }
@@ -635,7 +635,7 @@ async function To(t, e) {
635
635
  placement: o,
636
636
  platform: n,
637
637
  elements: i
638
- } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = j(o), a = z(o), l = X(o) === "y", u = xo.has(r) ? -1 : 1, d = s && l ? -1 : 1, c = Z(e, t);
638
+ } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = j(o), a = F(o), l = X(o) === "y", u = xo.has(r) ? -1 : 1, d = s && l ? -1 : 1, c = Z(e, t);
639
639
  let {
640
640
  mainAxis: h,
641
641
  crossAxis: f,
@@ -751,25 +751,25 @@ const _o = function(t) {
751
751
  apply: l = () => {
752
752
  },
753
753
  ...u
754
- } = Z(t, e), d = await r.detectOverflow(e, u), c = j(i), h = z(i), f = X(i) === "y", {
754
+ } = Z(t, e), d = await r.detectOverflow(e, u), c = j(i), h = F(i), f = X(i) === "y", {
755
755
  width: p,
756
756
  height: m
757
757
  } = s.floating;
758
758
  let g, y;
759
759
  c === "top" || c === "bottom" ? (g = c, y = h === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = c, g = h === "end" ? "top" : "bottom");
760
- const b = m - d.top - d.bottom, v = p - d.left - d.right, x = G(m - d[g], b), O = G(p - d[y], v), _ = !e.middlewareData.shift;
760
+ const b = m - d.top - d.bottom, v = p - d.left - d.right, x = G(m - d[g], b), O = G(p - d[y], v), k = !e.middlewareData.shift;
761
761
  let L = x, U = O;
762
- if ((o = e.middlewareData.shift) != null && o.enabled.x && (U = v), (n = e.middlewareData.shift) != null && n.enabled.y && (L = b), _ && !h) {
763
- const w = R(d.left, 0), E = R(d.right, 0), A = R(d.top, 0), H = R(d.bottom, 0);
764
- f ? U = p - 2 * (w !== 0 || E !== 0 ? w + E : R(d.left, d.right)) : L = m - 2 * (A !== 0 || H !== 0 ? A + H : R(d.top, d.bottom));
762
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && (U = v), (n = e.middlewareData.shift) != null && n.enabled.y && (L = b), k && !h) {
763
+ const w = R(d.left, 0), E = R(d.right, 0), D = R(d.top, 0), H = R(d.bottom, 0);
764
+ f ? U = p - 2 * (w !== 0 || E !== 0 ? w + E : R(d.left, d.right)) : L = m - 2 * (D !== 0 || H !== 0 ? D + H : R(d.top, d.bottom));
765
765
  }
766
766
  await l({
767
767
  ...e,
768
768
  availableWidth: U,
769
769
  availableHeight: L
770
770
  });
771
- const D = await r.getDimensions(a.floating);
772
- return p !== D.width || m !== D.height ? {
771
+ const A = await r.getDimensions(a.floating);
772
+ return p !== A.width || m !== A.height ? {
773
773
  reset: {
774
774
  rects: !0
775
775
  }
@@ -827,10 +827,10 @@ function Tt(t) {
827
827
  }
828
828
  });
829
829
  }
830
- const Io = ["transform", "translate", "scale", "rotate", "perspective"], Do = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ao = ["paint", "layout", "strict", "content"];
830
+ const Io = ["transform", "translate", "scale", "rotate", "perspective"], Ao = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Do = ["paint", "layout", "strict", "content"];
831
831
  function Bt(t) {
832
832
  const e = Nt(), o = K(t) ? W(t) : t;
833
- return Io.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || Do.some((n) => (o.willChange || "").includes(n)) || Ao.some((n) => (o.contain || "").includes(n));
833
+ return Io.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || Ao.some((n) => (o.willChange || "").includes(n)) || Do.some((n) => (o.contain || "").includes(n));
834
834
  }
835
835
  function Ro(t) {
836
836
  let e = ot(t);
@@ -952,7 +952,7 @@ function kt(t, e) {
952
952
  const o = _t(t).scrollLeft;
953
953
  return e ? e.left + o : ht(Q(t)).left + o;
954
954
  }
955
- function De(t, e) {
955
+ function Ae(t, e) {
956
956
  const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - kt(t, o), i = o.top + e.scrollTop;
957
957
  return {
958
958
  x: n,
@@ -978,7 +978,7 @@ function Bo(t) {
978
978
  const f = ht(n);
979
979
  u = lt(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
980
980
  }
981
- const h = r && !c && !s ? De(r, l) : Y(0);
981
+ const h = r && !c && !s ? Ae(r, l) : Y(0);
982
982
  return {
983
983
  width: o.width * u.x,
984
984
  height: o.height * u.y,
@@ -1050,11 +1050,11 @@ function ee(t, e, o) {
1050
1050
  }
1051
1051
  return ct(n);
1052
1052
  }
1053
- function Ae(t, e) {
1053
+ function De(t, e) {
1054
1054
  const o = ot(t);
1055
- return o === e || !K(o) || dt(o) ? !1 : W(o).position === "fixed" || Ae(o, e);
1055
+ return o === e || !K(o) || dt(o) ? !1 : W(o).position === "fixed" || De(o, e);
1056
1056
  }
1057
- function Fo(t, e) {
1057
+ function zo(t, e) {
1058
1058
  const o = e.get(t);
1059
1059
  if (o)
1060
1060
  return o;
@@ -1063,18 +1063,18 @@ function Fo(t, e) {
1063
1063
  let r = s ? ot(t) : t;
1064
1064
  for (; K(r) && !dt(r); ) {
1065
1065
  const a = W(r), l = Bt(r);
1066
- !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && Vo.has(i.position) || yt(r) && !l && Ae(t, r)) ? n = n.filter((d) => d !== r) : i = a, r = ot(r);
1066
+ !l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && Vo.has(i.position) || yt(r) && !l && De(t, r)) ? n = n.filter((d) => d !== r) : i = a, r = ot(r);
1067
1067
  }
1068
1068
  return e.set(t, n), n;
1069
1069
  }
1070
- function zo(t) {
1070
+ function Fo(t) {
1071
1071
  let {
1072
1072
  element: e,
1073
1073
  boundary: o,
1074
1074
  rootBoundary: n,
1075
1075
  strategy: i
1076
1076
  } = t;
1077
- const r = [...o === "clippingAncestors" ? Tt(e) ? [] : Fo(e, this._c) : [].concat(o), n], a = r[0], l = r.reduce((u, d) => {
1077
+ const r = [...o === "clippingAncestors" ? Tt(e) ? [] : zo(e, this._c) : [].concat(o), n], a = r[0], l = r.reduce((u, d) => {
1078
1078
  const c = ee(e, d, i);
1079
1079
  return u.top = R(c.top, u.top), u.right = G(c.right, u.right), u.bottom = G(c.bottom, u.bottom), u.left = R(c.left, u.left), u;
1080
1080
  }, ee(e, a, i));
@@ -1111,7 +1111,7 @@ function Wo(t, e, o) {
1111
1111
  l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
1112
1112
  } else i && u();
1113
1113
  s && !n && i && u();
1114
- const d = i && !n && !s ? De(i, a) : Y(0), c = r.left + a.scrollLeft - l.x - d.x, h = r.top + a.scrollTop - l.y - d.y;
1114
+ const d = i && !n && !s ? Ae(i, a) : Y(0), c = r.left + a.scrollLeft - l.x - d.x, h = r.top + a.scrollTop - l.y - d.y;
1115
1115
  return {
1116
1116
  x: c,
1117
1117
  y: h,
@@ -1166,7 +1166,7 @@ function Xo(t) {
1166
1166
  const Yo = {
1167
1167
  convertOffsetParentRelativeRectToViewportRelativeRect: Bo,
1168
1168
  getDocumentElement: Q,
1169
- getClippingRect: zo,
1169
+ getClippingRect: Fo,
1170
1170
  getOffsetParent: Re,
1171
1171
  getElementRects: qo,
1172
1172
  getClientRects: No,
@@ -1661,9 +1661,9 @@ const ni = {
1661
1661
  };
1662
1662
  function oi(t, e, o, n, i, s) {
1663
1663
  const r = T("dt-emoji"), a = T("node-view-wrapper");
1664
- return k(), M(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1664
+ return _(), I(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
1665
1665
  default: C(() => [
1666
- I(r, {
1666
+ M(r, {
1667
1667
  size: "500",
1668
1668
  code: t.node.attrs.code
1669
1669
  }, null, 8, ["code"])
@@ -1750,9 +1750,9 @@ const ii = /* @__PURE__ */ q(ni, [["render", oi]]), si = {
1750
1750
  };
1751
1751
  function li(t, e, o, n, i, s) {
1752
1752
  const r = T("dt-list-item");
1753
- return k(), et("div", ri, [
1753
+ return _(), et("div", ri, [
1754
1754
  rn(nt("ul", ai, [
1755
- (k(!0), et(an, null, ln(o.items, (a, l) => (k(), M(r, {
1755
+ (_(!0), et(an, null, ln(o.items, (a, l) => (_(), I(r, {
1756
1756
  key: a.id,
1757
1757
  class: fe([
1758
1758
  "d-suggestion-list__item",
@@ -1760,10 +1760,10 @@ function li(t, e, o, n, i, s) {
1760
1760
  ]),
1761
1761
  "navigation-type": "arrow-keys",
1762
1762
  onClick: (u) => s.selectItem(l),
1763
- onKeydown: Dt(s.onKeyDown, ["prevent"])
1763
+ onKeydown: At(s.onKeyDown, ["prevent"])
1764
1764
  }, {
1765
1765
  default: C(() => [
1766
- (k(), M(cn(o.itemComponent), { item: a }, null, 8, ["item"]))
1766
+ (_(), I(cn(o.itemComponent), { item: a }, null, 8, ["item"]))
1767
1767
  ]),
1768
1768
  _: 2
1769
1769
  }, 1032, ["class", "onClick", "onKeydown"]))), 128))
@@ -1890,12 +1890,12 @@ const vi = {
1890
1890
  };
1891
1891
  function xi(t, e, o, n, i, s) {
1892
1892
  const r = T("dt-emoji"), a = T("dt-stack");
1893
- return k(), M(a, {
1893
+ return _(), I(a, {
1894
1894
  direction: "row",
1895
1895
  gap: "400"
1896
1896
  }, {
1897
1897
  default: C(() => [
1898
- I(r, {
1898
+ M(r, {
1899
1899
  size: "200",
1900
1900
  code: o.item.code
1901
1901
  }, null, 8, ["code"]),
@@ -1936,9 +1936,9 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1936
1936
  },
1937
1937
  render: Ct(Ti, "emoji")
1938
1938
  }, Oi = /(:\w+:)$/, Ei = new RegExp(ge + "$"), Si = (t) => {
1939
- if (t && At(t[0]))
1939
+ if (t && Dt(t[0]))
1940
1940
  return { text: t[2] || t[0] };
1941
- }, Li = (t) => [...t.matchAll(Un)].filter((o) => At(o[0])).map((o) => ({
1941
+ }, Li = (t) => [...t.matchAll(Un)].filter((o) => Dt(o[0])).map((o) => ({
1942
1942
  index: o.index,
1943
1943
  text: o[0],
1944
1944
  match: o
@@ -1971,7 +1971,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
1971
1971
  ];
1972
1972
  },
1973
1973
  renderText({ node: t }) {
1974
- return Pn(At(t.attrs.code).unicode_output);
1974
+ return Pn(Dt(t.attrs.code).unicode_output);
1975
1975
  },
1976
1976
  renderHTML({ HTMLAttributes: t }) {
1977
1977
  return ["emoji-component", st(this.options.HTMLAttributes, t)];
@@ -2037,7 +2037,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
2037
2037
  };
2038
2038
  }
2039
2039
  });
2040
- function Di(t, e, o = () => !0) {
2040
+ function Ai(t, e, o = () => !0) {
2041
2041
  const n = [];
2042
2042
  e.lastIndex = 0;
2043
2043
  let i;
@@ -2045,7 +2045,7 @@ function Di(t, e, o = () => !0) {
2045
2045
  o(t, i) && n.push(i);
2046
2046
  return n;
2047
2047
  }
2048
- function Ai(t, e) {
2048
+ function Di(t, e) {
2049
2049
  return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
2050
2050
  }
2051
2051
  function Ri(t) {
@@ -2086,7 +2086,7 @@ function Hi(t, e, o, n) {
2086
2086
  for (const a of r)
2087
2087
  a.mark.type === n && o.removeMark(a.from, a.to, n);
2088
2088
  }
2089
- const ie = Fn(1, 15);
2089
+ const ie = zn(1, 15);
2090
2090
  function se(t, e, o, n, i, s) {
2091
2091
  if (!t)
2092
2092
  return;
@@ -2103,7 +2103,7 @@ function se(t, e, o, n, i, s) {
2103
2103
  "right",
2104
2104
  ie
2105
2105
  ), d = t.slice(l.from, u.to);
2106
- Di(d, jn, Ai).forEach((h) => {
2106
+ Ai(d, jn, Di).forEach((h) => {
2107
2107
  const f = Ri(h[0]), p = e + l.from + h.index + 1, m = p + f.length;
2108
2108
  i.addMark(p, m, s.create());
2109
2109
  });
@@ -2230,11 +2230,11 @@ const Bi = {
2230
2230
  };
2231
2231
  function ji(t, e, o, n, i, s) {
2232
2232
  const r = T("dt-link"), a = T("node-view-wrapper");
2233
- return k(), M(a, { class: "d-d-inline-block" }, {
2233
+ return _(), I(a, { class: "d-d-inline-block" }, {
2234
2234
  default: C(() => [
2235
- I(r, {
2235
+ M(r, {
2236
2236
  kind: "mention",
2237
- onClick: Dt(s.handleClick, ["prevent"]),
2237
+ onClick: At(s.handleClick, ["prevent"]),
2238
2238
  onMouseenter: s.handleMouseEnter,
2239
2239
  onMouseleave: s.handleMouseLeave,
2240
2240
  onFocusin: s.handleMouseEnter,
@@ -2249,9 +2249,9 @@ function ji(t, e, o, n, i, s) {
2249
2249
  _: 1
2250
2250
  });
2251
2251
  }
2252
- const Fi = /* @__PURE__ */ q(Vi, [["render", ji]]), zi = Rt.extend({
2252
+ const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = Rt.extend({
2253
2253
  addNodeView() {
2254
- return mt(Fi);
2254
+ return mt(zi);
2255
2255
  },
2256
2256
  parseHTML() {
2257
2257
  return [
@@ -2316,19 +2316,19 @@ const Fi = /* @__PURE__ */ q(Vi, [["render", ji]]), zi = Rt.extend({
2316
2316
  };
2317
2317
  function Wi(t, e, o, n, i, s) {
2318
2318
  const r = T("dt-icon-lock"), a = T("dt-stack"), l = T("dt-link"), u = T("node-view-wrapper");
2319
- return k(), M(u, { class: "d-d-inline-block" }, {
2319
+ return _(), I(u, { class: "d-d-inline-block" }, {
2320
2320
  default: C(() => [
2321
- I(l, {
2321
+ M(l, {
2322
2322
  kind: "mention",
2323
- onClick: Dt(s.handleClick, ["prevent"])
2323
+ onClick: At(s.handleClick, ["prevent"])
2324
2324
  }, {
2325
2325
  default: C(() => [
2326
- I(a, {
2326
+ M(a, {
2327
2327
  direction: "row",
2328
2328
  gap: "0"
2329
2329
  }, {
2330
2330
  default: C(() => [
2331
- t.$props.node.attrs.locked ? (k(), M(r, {
2331
+ t.$props.node.attrs.locked ? (_(), I(r, {
2332
2332
  key: 0,
2333
2333
  size: "200"
2334
2334
  })) : it("", !0),
@@ -2407,7 +2407,7 @@ const qi = /* @__PURE__ */ q(Ki, [["render", Wi]]), Xi = Rt.extend({
2407
2407
  };
2408
2408
  function Gi(t, e, o, n, i, s) {
2409
2409
  const r = T("node-view-wrapper");
2410
- return k(), M(r, { class: "d-d-inline-block" }, {
2410
+ return _(), I(r, { class: "d-d-inline-block" }, {
2411
2411
  default: C(() => [
2412
2412
  at($(s.text), 1)
2413
2413
  ]),
@@ -2538,6 +2538,10 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2538
2538
  variableData() {
2539
2539
  return this.variableItems.find((t) => t.id === this.variableId);
2540
2540
  },
2541
+ enableAltText() {
2542
+ var t, e;
2543
+ return (e = (t = this.node) == null ? void 0 : t.attrs) == null ? void 0 : e.enableAltText;
2544
+ },
2541
2545
  badgeLabel() {
2542
2546
  return `{} ${this.placeholder}`;
2543
2547
  },
@@ -2548,18 +2552,19 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
2548
2552
  };
2549
2553
  function ns(t, e, o, n, i, s) {
2550
2554
  const r = T("dt-badge"), a = T("dt-button"), l = T("dt-input"), u = T("dt-popover"), d = T("node-view-wrapper");
2551
- return k(), M(d, { class: "d-d-inline-block" }, {
2555
+ return _(), I(d, { class: "d-d-inline-block" }, {
2552
2556
  default: C(() => [
2553
- I(u, {
2557
+ s.enableAltText ? (_(), I(u, {
2558
+ key: 0,
2554
2559
  padding: "small",
2555
2560
  "navigation-type": "arrow-keys",
2556
2561
  placement: "top-start",
2557
2562
  modal: !1
2558
2563
  }, {
2559
2564
  anchor: C(({ attrs: c }) => [
2560
- I(a, pe(c, { kind: "unstyled" }), {
2565
+ M(a, pe(c, { kind: "unstyled" }), {
2561
2566
  default: C(() => [
2562
- I(r, {
2567
+ M(r, {
2563
2568
  text: s.badgeLabel,
2564
2569
  contenteditable: "false"
2565
2570
  }, null, 8, ["text"])
@@ -2568,7 +2573,7 @@ function ns(t, e, o, n, i, s) {
2568
2573
  }, 16)
2569
2574
  ]),
2570
2575
  content: C(({ close: c }) => [
2571
- I(l, {
2576
+ M(l, {
2572
2577
  modelValue: s.altText,
2573
2578
  "onUpdate:modelValue": e[0] || (e[0] = (h) => s.altText = h),
2574
2579
  "root-class": "d-p8 d-w332",
@@ -2587,7 +2592,11 @@ function ns(t, e, o, n, i, s) {
2587
2592
  }, null, 8, ["modelValue", "label", "placeholder", "validate", "onKeyup"])
2588
2593
  ]),
2589
2594
  _: 1
2590
- })
2595
+ })) : (_(), I(r, {
2596
+ key: 1,
2597
+ text: s.badgeLabel,
2598
+ contenteditable: "false"
2599
+ }, null, 8, ["text"]))
2591
2600
  ]),
2592
2601
  _: 1
2593
2602
  });
@@ -2622,6 +2631,13 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2622
2631
  renderHTML: (t) => t.altText ? {
2623
2632
  "data-alt-text": t.altText
2624
2633
  } : {}
2634
+ },
2635
+ enableAltText: {
2636
+ default: !0,
2637
+ parseHTML: (t) => t.getAttribute("data-enable-alt-text") === "true",
2638
+ renderHTML: (t) => ({
2639
+ "data-enable-alt-text": String(t.enableAltText)
2640
+ })
2625
2641
  }
2626
2642
  };
2627
2643
  },
@@ -2640,7 +2656,8 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2640
2656
  "variable",
2641
2657
  st(this.options.HTMLAttributes, e, {
2642
2658
  "data-variable-id": t.attrs.id,
2643
- "data-alt-text": t.attrs.altText
2659
+ "data-alt-text": t.attrs.altText,
2660
+ "data-enable-alt-text": String(t.attrs.enableAltText)
2644
2661
  })
2645
2662
  ];
2646
2663
  },
@@ -2650,7 +2667,8 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2650
2667
  type: this.name,
2651
2668
  attrs: {
2652
2669
  id: t.id || null,
2653
- altText: t.altText || ""
2670
+ altText: t.altText || "",
2671
+ enableAltText: t.enableAltText
2654
2672
  }
2655
2673
  })
2656
2674
  };
@@ -2705,13 +2723,13 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
2705
2723
  };
2706
2724
  function cs(t, e, o, n, i, s) {
2707
2725
  const r = T("dt-avatar"), a = T("dt-stack");
2708
- return k(), M(a, {
2726
+ return _(), I(a, {
2709
2727
  direction: "row",
2710
2728
  class: "d-mention-suggestion__container",
2711
2729
  gap: "400"
2712
2730
  }, {
2713
2731
  default: C(() => [
2714
- I(r, {
2732
+ M(r, {
2715
2733
  "full-name": s.name,
2716
2734
  "image-src": s.avatarSrc,
2717
2735
  "image-alt": s.name,
@@ -2719,25 +2737,25 @@ function cs(t, e, o, n, i, s) {
2719
2737
  presence: s.presence,
2720
2738
  size: "sm"
2721
2739
  }, null, 8, ["full-name", "image-src", "image-alt", "show-presence", "presence"]),
2722
- I(a, {
2740
+ M(a, {
2723
2741
  class: "d-mention-suggestion__details-container",
2724
2742
  gap: "100"
2725
2743
  }, {
2726
2744
  default: C(() => [
2727
2745
  nt("span", rs, $(s.name), 1),
2728
- s.showDetails ? (k(), M(a, {
2746
+ s.showDetails ? (_(), I(a, {
2729
2747
  key: 0,
2730
2748
  direction: "row",
2731
2749
  gap: "300",
2732
2750
  class: "d-label--sm-plain"
2733
2751
  }, {
2734
2752
  default: C(() => [
2735
- s.presenceText ? (k(), et("span", {
2753
+ s.presenceText ? (_(), et("span", {
2736
2754
  key: 0,
2737
2755
  class: fe(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
2738
2756
  }, $(s.presenceText), 3)) : it("", !0),
2739
- s.status && s.presenceText ? (k(), et("div", as, " • ")) : it("", !0),
2740
- s.status ? (k(), et("div", ls, $(s.status), 1)) : it("", !0)
2757
+ s.status && s.presenceText ? (_(), et("div", as, " • ")) : it("", !0),
2758
+ s.status ? (_(), et("div", ls, $(s.status), 1)) : it("", !0)
2741
2759
  ]),
2742
2760
  _: 1
2743
2761
  })) : it("", !0)
@@ -2776,15 +2794,15 @@ const ds = /* @__PURE__ */ q(ss, [["render", cs]]), us = {
2776
2794
  };
2777
2795
  function fs(t, e, o, n, i, s) {
2778
2796
  const r = T("dt-icon-hash"), a = T("dt-icon-lock"), l = T("dt-stack");
2779
- return k(), M(l, {
2797
+ return _(), I(l, {
2780
2798
  direction: "row",
2781
2799
  gap: "400"
2782
2800
  }, {
2783
2801
  default: C(() => [
2784
- o.item.locked ? (k(), M(a, {
2802
+ o.item.locked ? (_(), I(a, {
2785
2803
  key: 1,
2786
2804
  size: "300"
2787
- })) : (k(), M(r, {
2805
+ })) : (_(), I(r, {
2788
2806
  key: 0,
2789
2807
  size: "300"
2790
2808
  })),
@@ -2821,10 +2839,10 @@ const ps = /* @__PURE__ */ q(hs, [["render", fs]]), ms = {
2821
2839
  }
2822
2840
  }, ys = { class: "d-body--md-compact" }, ws = { key: 0 }, bs = { class: "d-body--sm d-fc-tertiary" };
2823
2841
  function vs(t, e, o, n, i, s) {
2824
- return k(), et("div", null, [
2842
+ return _(), et("div", null, [
2825
2843
  nt("div", ys, [
2826
2844
  nt("span", null, "/" + $(s.command), 1),
2827
- s.parametersExample ? (k(), et("span", ws, $(s.parametersExample), 1)) : it("", !0)
2845
+ s.parametersExample ? (_(), et("span", ws, $(s.parametersExample), 1)) : it("", !0)
2828
2846
  ]),
2829
2847
  nt("div", bs, $(s.description), 1)
2830
2848
  ]);
@@ -2840,7 +2858,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
2840
2858
  compatConfig: { MODE: 3 },
2841
2859
  name: "DtRichTextEditor",
2842
2860
  components: {
2843
- EditorContent: Fe,
2861
+ EditorContent: ze,
2844
2862
  BubbleMenu: Qo,
2845
2863
  DtButton: ve,
2846
2864
  DtStack: gt
@@ -3137,6 +3155,13 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
3137
3155
  allowTables: {
3138
3156
  type: Boolean,
3139
3157
  default: !1
3158
+ },
3159
+ /**
3160
+ * Whether the input allows image resize to be introduced in the text.
3161
+ */
3162
+ allowImageResize: {
3163
+ type: Boolean,
3164
+ default: !1
3140
3165
  }
3141
3166
  },
3142
3167
  emits: [
@@ -3248,7 +3273,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
3248
3273
  editor: null,
3249
3274
  appendTo: () => {
3250
3275
  var t;
3251
- return (t = Ft(this.$refs.editor.$el).getRootNode()) == null ? void 0 : t.querySelector("body");
3276
+ return (t = zt(this.$refs.editor.$el).getRootNode()) == null ? void 0 : t.querySelector("body");
3252
3277
  },
3253
3278
  floatingOptions: {
3254
3279
  placement: "top-start"
@@ -3428,10 +3453,10 @@ ${this.processNodeContent(t)}
3428
3453
  },
3429
3454
  openOnClick: !1,
3430
3455
  autolink: !0,
3431
- protocols: zt
3456
+ protocols: Ft
3432
3457
  })), this.customLink && t.push(this.getExtension(Ni, this.customLink)), this.mentionSuggestion) {
3433
3458
  const n = { ...this.mentionSuggestion, ...us };
3434
- t.push(zi.configure({ suggestion: n }));
3459
+ t.push(Fi.configure({ suggestion: n }));
3435
3460
  }
3436
3461
  if (this.channelSuggestion) {
3437
3462
  const n = { ...this.channelSuggestion, ...ms };
@@ -3460,13 +3485,18 @@ ${n.textContent}
3460
3485
  HTMLAttributes: {
3461
3486
  class: "d-rich-text-editor__code-block"
3462
3487
  }
3463
- })), this.allowInlineImages && t.push(Pi), (this.allowFontFamily || this.allowFontColor || this.allowFontSize) && t.push(Hn.configure({
3488
+ })), this.allowInlineImages && t.push(Pi.configure({
3489
+ resize: {
3490
+ enabled: this.allowImageResize,
3491
+ alwaysPreserveAspectRatio: !0
3492
+ }
3493
+ })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize) && t.push(Hn.configure({
3464
3494
  color: this.allowFontColor,
3465
3495
  backgroundColor: !1,
3466
3496
  fontFamily: this.allowFontFamily,
3467
3497
  fontSize: this.allowFontSize,
3468
3498
  lineHeight: !1
3469
- })), this.additionalExtensions.length && t.push(...this.additionalExtensions), this.allowTables && t.push(Dn.configure({ resizable: !0 }), An, Rn, Mn, bn), t;
3499
+ })), this.additionalExtensions.length && t.push(...this.additionalExtensions), this.allowTables && t.push(An.configure({ resizable: !0 }), Dn, Rn, Mn, bn), t;
3470
3500
  },
3471
3501
  inputAttrs() {
3472
3502
  const t = {
@@ -3506,11 +3536,11 @@ ${n.textContent}
3506
3536
  this.destroyEditor();
3507
3537
  },
3508
3538
  mounted() {
3509
- zn(Ft(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
3539
+ Fn(zt(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
3510
3540
  },
3511
3541
  methods: {
3512
3542
  createEditor() {
3513
- this.editor = new ze({
3543
+ this.editor = new Fe({
3514
3544
  autofocus: this.autoFocus,
3515
3545
  content: this.modelValue,
3516
3546
  editable: this.editable,
@@ -3571,7 +3601,7 @@ ${n.textContent}
3571
3601
  const t = this.editor.getAttributes("link").href;
3572
3602
  window.open(t, "_blank");
3573
3603
  },
3574
- setLink(t, e, o, n = zt, i) {
3604
+ setLink(t, e, o, n = Ft, i) {
3575
3605
  var a, l, u;
3576
3606
  if (!t) {
3577
3607
  this.removeLink();
@@ -3732,8 +3762,8 @@ ${n.textContent}
3732
3762
  }, ks = { class: "d-popover__dialog" };
3733
3763
  function Cs(t, e, o, n, i, s) {
3734
3764
  const r = T("dt-button"), a = T("dt-stack"), l = T("bubble-menu"), u = T("editor-content");
3735
- return k(), et("div", null, [
3736
- i.editor && o.link && !o.hideLinkBubbleMenu ? (k(), M(l, {
3765
+ return _(), et("div", null, [
3766
+ i.editor && o.link && !o.hideLinkBubbleMenu ? (_(), I(l, {
3737
3767
  key: 0,
3738
3768
  editor: i.editor,
3739
3769
  "should-show": s.bubbleMenuShouldShow,
@@ -3743,13 +3773,13 @@ function Cs(t, e, o, n, i, s) {
3743
3773
  }, {
3744
3774
  default: C(() => [
3745
3775
  nt("div", ks, [
3746
- I(a, {
3776
+ M(a, {
3747
3777
  direction: "row",
3748
3778
  class: "d-rich-text-editor-bubble-menu__button-stack",
3749
3779
  gap: "0"
3750
3780
  }, {
3751
3781
  default: C(() => [
3752
- I(r, {
3782
+ M(r, {
3753
3783
  kind: "muted",
3754
3784
  importance: "clear",
3755
3785
  onClick: s.editLink
@@ -3759,7 +3789,7 @@ function Cs(t, e, o, n, i, s) {
3759
3789
  ]),
3760
3790
  _: 1
3761
3791
  }, 8, ["onClick"]),
3762
- I(r, {
3792
+ M(r, {
3763
3793
  kind: "muted",
3764
3794
  importance: "clear",
3765
3795
  onClick: s.openLink
@@ -3769,7 +3799,7 @@ function Cs(t, e, o, n, i, s) {
3769
3799
  ]),
3770
3800
  _: 1
3771
3801
  }, 8, ["onClick"]),
3772
- I(r, {
3802
+ M(r, {
3773
3803
  kind: "danger",
3774
3804
  importance: "clear",
3775
3805
  onClick: s.removeLink
@@ -3786,7 +3816,7 @@ function Cs(t, e, o, n, i, s) {
3786
3816
  ]),
3787
3817
  _: 1
3788
3818
  }, 8, ["editor", "should-show", "options", "append-to"])) : it("", !0),
3789
- I(u, pe({
3819
+ M(u, pe({
3790
3820
  ref: "editor",
3791
3821
  editor: i.editor,
3792
3822
  class: "d-rich-text-editor",