@dialpad/dialtone 9.165.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.
@@ -2,7 +2,7 @@ import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeV
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,13 +18,13 @@ 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
30
  import { linkRegex as jn, getPhoneNumberRegex as zn, warnIfUnmounted as Fn, returnFirstEl as zt } from "../../common/utils/index.js";
@@ -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,10 +326,10 @@ 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, z = St(A, S, H), V = !l.arrow && F(i) != null && S !== z && 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: {
@@ -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
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
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,19 +438,19 @@ 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;
451
+ overflows: A
452
+ }], !A.every((S) => S <= 0)) {
453
+ var E, D;
454
454
  const S = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, z = L[S];
455
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.
@@ -464,13 +464,13 @@ const go = function(t) {
464
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,7 +589,7 @@ 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, z = A ? w.left : E.left, V = A ? w.right : E.right, B = V - z, 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,
@@ -601,15 +601,15 @@ const vo = function(t) {
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
  }
@@ -757,19 +757,19 @@ const _o = function(t) {
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,9 +1050,9 @@ 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
1057
  function zo(t, e) {
1058
1058
  const o = e.get(t);
@@ -1063,7 +1063,7 @@ function zo(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
  }
@@ -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,
@@ -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) {
@@ -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,
@@ -2316,19 +2316,19 @@ const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = 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
  ]);
@@ -3478,7 +3496,7 @@ ${n.textContent}
3478
3496
  fontFamily: this.allowFontFamily,
3479
3497
  fontSize: this.allowFontSize,
3480
3498
  lineHeight: !1
3481
- })), 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;
3482
3500
  },
3483
3501
  inputAttrs() {
3484
3502
  const t = {
@@ -3744,8 +3762,8 @@ ${n.textContent}
3744
3762
  }, ks = { class: "d-popover__dialog" };
3745
3763
  function Cs(t, e, o, n, i, s) {
3746
3764
  const r = T("dt-button"), a = T("dt-stack"), l = T("bubble-menu"), u = T("editor-content");
3747
- return k(), et("div", null, [
3748
- i.editor && o.link && !o.hideLinkBubbleMenu ? (k(), M(l, {
3765
+ return _(), et("div", null, [
3766
+ i.editor && o.link && !o.hideLinkBubbleMenu ? (_(), I(l, {
3749
3767
  key: 0,
3750
3768
  editor: i.editor,
3751
3769
  "should-show": s.bubbleMenuShouldShow,
@@ -3755,13 +3773,13 @@ function Cs(t, e, o, n, i, s) {
3755
3773
  }, {
3756
3774
  default: C(() => [
3757
3775
  nt("div", ks, [
3758
- I(a, {
3776
+ M(a, {
3759
3777
  direction: "row",
3760
3778
  class: "d-rich-text-editor-bubble-menu__button-stack",
3761
3779
  gap: "0"
3762
3780
  }, {
3763
3781
  default: C(() => [
3764
- I(r, {
3782
+ M(r, {
3765
3783
  kind: "muted",
3766
3784
  importance: "clear",
3767
3785
  onClick: s.editLink
@@ -3771,7 +3789,7 @@ function Cs(t, e, o, n, i, s) {
3771
3789
  ]),
3772
3790
  _: 1
3773
3791
  }, 8, ["onClick"]),
3774
- I(r, {
3792
+ M(r, {
3775
3793
  kind: "muted",
3776
3794
  importance: "clear",
3777
3795
  onClick: s.openLink
@@ -3781,7 +3799,7 @@ function Cs(t, e, o, n, i, s) {
3781
3799
  ]),
3782
3800
  _: 1
3783
3801
  }, 8, ["onClick"]),
3784
- I(r, {
3802
+ M(r, {
3785
3803
  kind: "danger",
3786
3804
  importance: "clear",
3787
3805
  onClick: s.removeLink
@@ -3798,7 +3816,7 @@ function Cs(t, e, o, n, i, s) {
3798
3816
  ]),
3799
3817
  _: 1
3800
3818
  }, 8, ["editor", "should-show", "options", "append-to"])) : it("", !0),
3801
- I(u, pe({
3819
+ M(u, pe({
3802
3820
  ref: "editor",
3803
3821
  editor: i.editor,
3804
3822
  class: "d-rich-text-editor",