@dialpad/dialtone 9.156.1 → 9.158.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 (132) hide show
  1. package/dist/css/dialtone-default-theme.css +7 -0
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone.css +7 -0
  4. package/dist/css/dialtone.min.css +1 -1
  5. package/dist/tokens/doc.json +76215 -76215
  6. package/dist/vue3/common/dates/index.js +4 -4
  7. package/dist/vue3/common/utils/index.js +3 -3
  8. package/dist/vue3/component-documentation.json +1 -1
  9. package/dist/vue3/dialtone-vue.cjs +1 -1
  10. package/dist/vue3/dialtone-vue.js +349 -349
  11. package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +1 -1
  12. package/dist/vue3/lib/avatar/avatar.js +10 -10
  13. package/dist/vue3/lib/badge/badge.js +5 -5
  14. package/dist/vue3/lib/banner/banner.js +1 -1
  15. package/dist/vue3/lib/breadcrumbs/breadcrumb-item.js +2 -2
  16. package/dist/vue3/lib/breadcrumbs/breadcrumbs.js +1 -1
  17. package/dist/vue3/lib/button/button.js +14 -14
  18. package/dist/vue3/lib/button-group/button-group.js +2 -2
  19. package/dist/vue3/lib/button-group/buttons-decorator.js +2 -2
  20. package/dist/vue3/lib/callbar-button/callbar-button.js +2 -2
  21. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  22. package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +9 -9
  23. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  24. package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js +9 -9
  25. package/dist/vue3/lib/callbox/callbox.js +1 -1
  26. package/dist/vue3/lib/card/card.js +4 -4
  27. package/dist/vue3/lib/checkbox/checkbox.js +5 -5
  28. package/dist/vue3/lib/checkbox-group/checkboxes-decorator.js +1 -1
  29. package/dist/vue3/lib/chip/chip.js +7 -7
  30. package/dist/vue3/lib/codeblock/codeblock.js +2 -2
  31. package/dist/vue3/lib/collapsible/collapsible-lazy-show.js +3 -3
  32. package/dist/vue3/lib/collapsible/collapsible.js +8 -8
  33. package/dist/vue3/lib/combobox/combobox-empty-list.js +2 -2
  34. package/dist/vue3/lib/combobox/combobox-loading-list.js +3 -3
  35. package/dist/vue3/lib/combobox/combobox.cjs +1 -1
  36. package/dist/vue3/lib/combobox/combobox.js +8 -8
  37. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +1 -1
  38. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  39. package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js +10 -10
  40. package/dist/vue3/lib/contact-centers-row/contact-centers-row.js +7 -7
  41. package/dist/vue3/lib/contact-info/contact-info.js +1 -1
  42. package/dist/vue3/lib/contact-row/contact-row.js +1 -1
  43. package/dist/vue3/lib/datepicker/datepicker.js +1 -1
  44. package/dist/vue3/lib/datepicker/utils.js +4 -4
  45. package/dist/vue3/lib/description-list/description-list.js +3 -3
  46. package/dist/vue3/lib/dropdown/dropdown-list.js +4 -4
  47. package/dist/vue3/lib/dropdown/dropdown-separator.js +2 -2
  48. package/dist/vue3/lib/dropdown/dropdown.js +2 -2
  49. package/dist/vue3/lib/editor/editor.cjs +1 -1
  50. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  51. package/dist/vue3/lib/editor/editor.js +59 -51
  52. package/dist/vue3/lib/editor/editor.js.map +1 -1
  53. package/dist/vue3/lib/emoji/emoji.js +2 -2
  54. package/dist/vue3/lib/emoji-picker/emoji-picker.js +1 -1
  55. package/dist/vue3/lib/emoji-row/emoji-row.js +6 -6
  56. package/dist/vue3/lib/empty-state/empty-state.js +7 -7
  57. package/dist/vue3/lib/feed-item-pill/feed-item-pill.js +1 -1
  58. package/dist/vue3/lib/feed-item-row/feed-item-row.js +15 -15
  59. package/dist/vue3/lib/general-row/general-row.js +13 -13
  60. package/dist/vue3/lib/general-row/leftbar-general-row-icon.js +5 -5
  61. package/dist/vue3/lib/group-row/group-row.js +2 -2
  62. package/dist/vue3/lib/grouped-chip/grouped-chip.js +14 -14
  63. package/dist/vue3/lib/hovercard/hovercard.js +2 -2
  64. package/dist/vue3/lib/icon/icon.js +3 -3
  65. package/dist/vue3/lib/illustration/illustration.js +3 -3
  66. package/dist/vue3/lib/image-viewer/image-viewer.js +12 -12
  67. package/dist/vue3/lib/input/input.js +10 -10
  68. package/dist/vue3/lib/input-group/input-group.js +8 -8
  69. package/dist/vue3/lib/item-layout/item-layout.js +13 -13
  70. package/dist/vue3/lib/ivr-node/ivr-node.js +9 -9
  71. package/dist/vue3/lib/keyboard-shortcut/keyboard-shortcut.js +3 -3
  72. package/dist/vue3/lib/lazy-show/lazy-show.js +2 -2
  73. package/dist/vue3/lib/link/link.js +2 -2
  74. package/dist/vue3/lib/list-item/list-item.js +3 -3
  75. package/dist/vue3/lib/list-item-group/list-item-group.js +5 -5
  76. package/dist/vue3/lib/loader/loader.js +2 -2
  77. package/dist/vue3/lib/message-input/message-input-button.js +5 -5
  78. package/dist/vue3/lib/message-input/message-input-link.js +2 -2
  79. package/dist/vue3/lib/message-input/message-input-topbar.js +2 -2
  80. package/dist/vue3/lib/message-input/message-input.js +1 -1
  81. package/dist/vue3/lib/modal/modal.js +1 -1
  82. package/dist/vue3/lib/motion-text/motion-text.js +5 -5
  83. package/dist/vue3/lib/notice/notice-action.js +1 -1
  84. package/dist/vue3/lib/notice/notice-content.js +6 -6
  85. package/dist/vue3/lib/notice/notice-icon.js +4 -4
  86. package/dist/vue3/lib/notice/notice.js +1 -1
  87. package/dist/vue3/lib/pagination/pagination.js +1 -1
  88. package/dist/vue3/lib/popover/popover-constants.js +3 -3
  89. package/dist/vue3/lib/popover/popover-header-footer.js +6 -6
  90. package/dist/vue3/lib/popover/popover.js +7 -7
  91. package/dist/vue3/lib/presence/presence.js +4 -4
  92. package/dist/vue3/lib/radio/radio.js +10 -10
  93. package/dist/vue3/lib/radio-group/radios-decorator.js +1 -1
  94. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  95. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  96. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +161 -149
  97. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  98. package/dist/vue3/lib/root-layout/root-layout.js +3 -3
  99. package/dist/vue3/lib/scroller/scroller.js +1 -1
  100. package/dist/vue3/lib/select-menu/select-menu.js +12 -12
  101. package/dist/vue3/lib/settings-menu-button/settings-menu-button.js +3 -3
  102. package/dist/vue3/lib/skeleton/skeleton-list-item.js +2 -2
  103. package/dist/vue3/lib/skeleton/skeleton-paragraph.js +1 -1
  104. package/dist/vue3/lib/skeleton/skeleton-shape.js +2 -2
  105. package/dist/vue3/lib/skeleton/skeleton-text.js +4 -4
  106. package/dist/vue3/lib/skeleton/skeleton.js +1 -1
  107. package/dist/vue3/lib/split-button/split-button-alpha.js +2 -2
  108. package/dist/vue3/lib/split-button/split-button-omega.js +2 -2
  109. package/dist/vue3/lib/split-button/split-button.js +13 -13
  110. package/dist/vue3/lib/stack/stack.js +2 -2
  111. package/dist/vue3/lib/stack/utils.js +5 -5
  112. package/dist/vue3/lib/stack/validators.js +7 -7
  113. package/dist/vue3/lib/tab/tab-group.js +2 -2
  114. package/dist/vue3/lib/tab/tab-panel.js +2 -2
  115. package/dist/vue3/lib/tab/tab.js +2 -2
  116. package/dist/vue3/lib/time-pill/time-pill.js +2 -2
  117. package/dist/vue3/lib/toast/toast.js +1 -1
  118. package/dist/vue3/lib/toggle/toggle.js +7 -7
  119. package/dist/vue3/lib/tooltip/tooltip.js +5 -5
  120. package/dist/vue3/lib/top-banner-info/top-banner-info.js +2 -2
  121. package/dist/vue3/lib/unread-pill/unread-pill.js +1 -1
  122. package/dist/vue3/lib/validation-messages/validation-messages.js +6 -6
  123. package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
  124. package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
  125. package/dist/vue3/shared/sr_only_close_button.js +2 -2
  126. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +9 -0
  127. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  128. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +18 -0
  129. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  130. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +9 -0
  131. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  132. package/package.json +9 -15
@@ -4,46 +4,51 @@ import de from "@tiptap/extension-blockquote";
4
4
  import ue from "@tiptap/extension-code-block";
5
5
  import me from "@tiptap/extension-code";
6
6
  import he from "@tiptap/extension-document";
7
- import pe from "@tiptap/extension-hard-break";
7
+ import pe from "@tiptap/extension-gapcursor";
8
+ import fe from "@tiptap/extension-hard-break";
8
9
  import W from "@tiptap/extension-paragraph";
9
- import fe from "@tiptap/extension-placeholder";
10
- import ge from "@tiptap/extension-bold";
11
- import _e from "@tiptap/extension-bullet-list";
12
- import ke from "@tiptap/extension-italic";
13
- import ye from "@tiptap/extension-link";
14
- import we from "@tiptap/extension-list-item";
15
- import Ce from "@tiptap/extension-ordered-list";
16
- import be from "@tiptap/extension-strike";
17
- import xe from "@tiptap/extension-underline";
18
- import Te from "@tiptap/extension-text";
19
- import Ee from "@tiptap/extension-text-align";
20
- import Se from "@tiptap/extension-history";
21
- import Le from "@tiptap/extension-text-style";
22
- import $e from "@tiptap/extension-color";
23
- import ve from "@tiptap/extension-font-family";
24
- import { PluginKey as T, Plugin as Re } from "@tiptap/pm/state";
25
- import Ie from "@tiptap/suggestion";
10
+ import ge from "@tiptap/extension-placeholder";
11
+ import _e from "@tiptap/extension-bold";
12
+ import ke from "@tiptap/extension-bullet-list";
13
+ import ye from "@tiptap/extension-italic";
14
+ import we from "@tiptap/extension-link";
15
+ import Ce from "@tiptap/extension-list-item";
16
+ import be from "@tiptap/extension-ordered-list";
17
+ import xe from "@tiptap/extension-strike";
18
+ import Te from "@tiptap/extension-underline";
19
+ import Ee from "@tiptap/extension-text";
20
+ import Se from "@tiptap/extension-text-align";
21
+ import Le from "@tiptap/extension-history";
22
+ import $e from "@tiptap/extension-table";
23
+ import ve from "@tiptap/extension-table-cell";
24
+ import Re from "@tiptap/extension-table-header";
25
+ import Ie from "@tiptap/extension-table-row";
26
+ import Me from "@tiptap/extension-text-style";
27
+ import Be from "@tiptap/extension-color";
28
+ import Ne from "@tiptap/extension-font-family";
29
+ import { PluginKey as T, Plugin as Oe } from "@tiptap/pm/state";
30
+ import De from "@tiptap/suggestion";
26
31
  import { emojiPattern as z } from "regex-combined-emojis";
27
- import { resolveComponent as d, createBlock as m, openBlock as l, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Me, createElementVNode as k, Fragment as Be, renderList as Ne, withModifiers as j, normalizeClass as X, resolveDynamicComponent as Oe, vShow as De, createTextVNode as C, toDisplayString as h, markRaw as M, createCommentVNode as w, mergeProps as Ae } from "vue";
32
+ import { resolveComponent as d, openBlock as l, createBlock as m, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Ae, createElementVNode as k, Fragment as Pe, renderList as je, withModifiers as j, normalizeClass as X, resolveDynamicComponent as He, vShow as Ke, createTextVNode as C, toDisplayString as h, markRaw as M, createCommentVNode as w, mergeProps as Fe } from "vue";
28
33
  import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
29
34
  import J from "../emoji/emoji.js";
30
- import { getEmojiData as Pe, emojiRegex as je, stringToUnicode as He, codeToEmojiData as H, emojiShortCodeRegex as Ke } from "../../common/emoji/index.js";
31
- import Fe from "../list-item/list-item.js";
35
+ import { getEmojiData as Ve, emojiRegex as qe, stringToUnicode as Ue, codeToEmojiData as H, emojiShortCodeRegex as We } from "../../common/emoji/index.js";
36
+ import ze from "../list-item/list-item.js";
32
37
  import E from "../stack/stack.js";
33
38
  import B from "tippy.js";
34
- import { getPhoneNumberRegex as Ve, linkRegex as qe, warnIfUnmounted as Ue, returnFirstEl as F } from "../../common/utils/index.js";
35
- import We from "@tiptap/extension-image";
39
+ import { linkRegex as Xe, getPhoneNumberRegex as Je, warnIfUnmounted as Ge, returnFirstEl as F } from "../../common/utils/index.js";
40
+ import Ye from "@tiptap/extension-image";
36
41
  import K from "@tiptap/extension-mention";
37
- import Y from "../link/link.js";
38
- import { DtIconLock as ze } from "@dialpad/dialtone-icons/vue3";
39
- import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as V, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Xe, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Je } from "./rich-text-editor-constants.js";
40
- import Ye from "../avatar/avatar.js";
41
- import Ge from "@dialpad/dialtone-icons/vue3/hash";
42
- import Qe from "@dialpad/dialtone-icons/vue3/lock";
43
- import Ze from "deep-equal";
44
- import { DialtoneLocalization as et } from "../../localization/index.js";
45
- import tt from "../button/button.js";
46
- const nt = {
42
+ import G from "../link/link.js";
43
+ import { DtIconLock as Qe } from "@dialpad/dialtone-icons/vue3";
44
+ import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as V, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Ze, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as et } from "./rich-text-editor-constants.js";
45
+ import tt from "../avatar/avatar.js";
46
+ import nt from "@dialpad/dialtone-icons/vue3/hash";
47
+ import ot from "@dialpad/dialtone-icons/vue3/lock";
48
+ import rt from "deep-equal";
49
+ import { DialtoneLocalization as st } from "../../localization/index.js";
50
+ import it from "../button/button.js";
51
+ const at = {
47
52
  compatConfig: { MODE: 3 },
48
53
  name: "EmojiComponent",
49
54
  components: {
@@ -52,7 +57,7 @@ const nt = {
52
57
  },
53
58
  props: $
54
59
  };
55
- function ot(e, t, o, n, r, s) {
60
+ function ct(e, t, o, n, r, s) {
56
61
  const i = d("dt-emoji"), a = d("node-view-wrapper");
57
62
  return l(), m(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
58
63
  default: u(() => [
@@ -64,11 +69,11 @@ function ot(e, t, o, n, r, s) {
64
69
  _: 1
65
70
  });
66
71
  }
67
- const rt = /* @__PURE__ */ g(nt, [["render", ot]]), st = {
72
+ const lt = /* @__PURE__ */ g(at, [["render", ct]]), dt = {
68
73
  compatConfig: { MODE: 3 },
69
74
  name: "SuggestionList",
70
75
  components: {
71
- DtListItem: Fe
76
+ DtListItem: ze
72
77
  },
73
78
  props: {
74
79
  items: {
@@ -137,15 +142,15 @@ const rt = /* @__PURE__ */ g(nt, [["render", ot]]), st = {
137
142
  }
138
143
  }
139
144
  }
140
- }, it = { class: "d-popover__dialog d-suggestion-list__container" }, at = {
145
+ }, ut = { class: "d-popover__dialog d-suggestion-list__container" }, mt = {
141
146
  ref: "suggestionList",
142
147
  class: "d-suggestion-list"
143
148
  };
144
- function ct(e, t, o, n, r, s) {
149
+ function ht(e, t, o, n, r, s) {
145
150
  const i = d("dt-list-item");
146
- return l(), _("div", it, [
147
- Me(k("ul", at, [
148
- (l(!0), _(Be, null, Ne(o.items, (a, c) => (l(), m(i, {
151
+ return l(), _("div", ut, [
152
+ Ae(k("ul", mt, [
153
+ (l(!0), _(Pe, null, je(o.items, (a, c) => (l(), m(i, {
149
154
  key: a.id,
150
155
  class: X([
151
156
  "d-suggestion-list__item",
@@ -156,16 +161,16 @@ function ct(e, t, o, n, r, s) {
156
161
  onKeydown: j(s.onKeyDown, ["prevent"])
157
162
  }, {
158
163
  default: u(() => [
159
- (l(), m(Oe(o.itemComponent), { item: a }, null, 8, ["item"]))
164
+ (l(), m(He(o.itemComponent), { item: a }, null, 8, ["item"]))
160
165
  ]),
161
166
  _: 2
162
167
  }, 1032, ["class", "onClick", "onKeydown"]))), 128))
163
168
  ], 512), [
164
- [De, o.items.length]
169
+ [Ke, o.items.length]
165
170
  ])
166
171
  ]);
167
172
  }
168
- const N = /* @__PURE__ */ g(st, [["render", ct]]), lt = {
173
+ const N = /* @__PURE__ */ g(dt, [["render", ht]]), pt = {
169
174
  compatConfig: { MODE: 3 },
170
175
  name: "EmojiSuggestion",
171
176
  components: {
@@ -179,7 +184,7 @@ const N = /* @__PURE__ */ g(st, [["render", ct]]), lt = {
179
184
  }
180
185
  }
181
186
  };
182
- function dt(e, t, o, n, r, s) {
187
+ function ft(e, t, o, n, r, s) {
183
188
  const i = d("dt-emoji"), a = d("dt-stack");
184
189
  return l(), m(a, {
185
190
  direction: "row",
@@ -195,7 +200,7 @@ function dt(e, t, o, n, r, s) {
195
200
  _: 1
196
201
  });
197
202
  }
198
- const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
203
+ const gt = /* @__PURE__ */ g(pt, [["render", ft]]), O = {
199
204
  name: "hideOnEsc",
200
205
  defaultValue: !0,
201
206
  fn({ hide: e }) {
@@ -211,15 +216,15 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
211
216
  }
212
217
  };
213
218
  }
214
- }, mt = 20, ht = (e, t, o) => {
219
+ }, _t = 20, kt = (e, t, o) => {
215
220
  var a, c;
216
221
  const n = (a = e.shortname) == null ? void 0 : a.replaceAll(":", ""), r = (c = t.shortname) == null ? void 0 : c.replaceAll(":", ""), s = n.startsWith(o), i = r.startsWith(o);
217
222
  return s && !i ? -1 : !s && i ? 1 : n.localeCompare(r);
218
- }, pt = {
223
+ }, yt = {
219
224
  items: ({ query: e }) => {
220
225
  if (e.length < 2)
221
226
  return [];
222
- const t = Object.values(Pe());
227
+ const t = Object.values(Ve());
223
228
  return e = e.toLowerCase(), t.filter(
224
229
  (n) => {
225
230
  var r;
@@ -229,7 +234,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
229
234
  ...n.keywords || []
230
235
  ].some((s) => s && s.startsWith(e));
231
236
  }
232
- ).splice(0, mt).sort((n, r) => ht(n, r, e)).map((n) => ({ code: n.shortname }));
237
+ ).splice(0, _t).sort((n, r) => kt(n, r, e)).map((n) => ({ code: n.shortname }));
233
238
  },
234
239
  command: ({ editor: e, range: t, props: o }) => {
235
240
  var s, i;
@@ -247,7 +252,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
247
252
  onStart: (n) => {
248
253
  e = new R(N, {
249
254
  props: {
250
- itemComponent: M(ut),
255
+ itemComponent: M(gt),
251
256
  itemType: "emoji",
252
257
  ...n
253
258
  },
@@ -285,14 +290,14 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
285
290
  }
286
291
  };
287
292
  }
288
- }, ft = /(:\w+:)$/, gt = new RegExp(z + "$"), _t = (e) => {
293
+ }, wt = /(:\w+:)$/, Ct = new RegExp(z + "$"), bt = (e) => {
289
294
  if (e && H(e[0]))
290
295
  return { text: e[2] || e[0] };
291
- }, kt = (e) => [...e.matchAll(Ke)].filter((o) => H(o[0])).map((o) => ({
296
+ }, xt = (e) => [...e.matchAll(We)].filter((o) => H(o[0])).map((o) => ({
292
297
  index: o.index,
293
298
  text: o[0],
294
299
  match: o
295
- })), yt = te.create({
300
+ })), Tt = te.create({
296
301
  name: "emoji",
297
302
  addOptions() {
298
303
  return {
@@ -304,7 +309,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
304
309
  selectable: !1,
305
310
  atom: !0,
306
311
  addNodeView() {
307
- return I(rt);
312
+ return I(lt);
308
313
  },
309
314
  addAttributes() {
310
315
  return {
@@ -321,7 +326,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
321
326
  ];
322
327
  },
323
328
  renderText({ node: e }) {
324
- return He(H(e.attrs.code).unicode_output);
329
+ return Ue(H(e.attrs.code).unicode_output);
325
330
  },
326
331
  renderHTML({ HTMLAttributes: e }) {
327
332
  return ["emoji-component", b(this.options.HTMLAttributes, e)];
@@ -330,9 +335,9 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
330
335
  return [
331
336
  new ne({
332
337
  find: (e) => {
333
- const t = e.match(ft) || e.match(gt);
338
+ const t = e.match(wt) || e.match(Ct);
334
339
  if (t)
335
- return _t(t);
340
+ return bt(t);
336
341
  },
337
342
  handler: ({ state: e, range: t, match: o }) => {
338
343
  const { tr: n } = e, r = t.from, s = t.to;
@@ -344,7 +349,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
344
349
  addPasteRules() {
345
350
  return [
346
351
  A({
347
- find: kt,
352
+ find: xt,
348
353
  type: this.type,
349
354
  getAttributes(e) {
350
355
  return {
@@ -353,7 +358,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
353
358
  }
354
359
  }),
355
360
  A({
356
- find: je,
361
+ find: qe,
357
362
  type: this.type,
358
363
  getAttributes(e) {
359
364
  return {
@@ -365,12 +370,12 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
365
370
  },
366
371
  addProseMirrorPlugins() {
367
372
  return [
368
- Ie({
373
+ De({
369
374
  char: ":",
370
375
  pluginKey: new T("emoji"),
371
376
  editor: this.editor,
372
377
  ...this.options.suggestion,
373
- ...pt
378
+ ...yt
374
379
  })
375
380
  ];
376
381
  },
@@ -387,7 +392,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", dt]]), O = {
387
392
  };
388
393
  }
389
394
  });
390
- function wt(e, t, o = () => !0) {
395
+ function Et(e, t, o = () => !0) {
391
396
  const n = [];
392
397
  t.lastIndex = 0;
393
398
  let r;
@@ -395,10 +400,10 @@ function wt(e, t, o = () => !0) {
395
400
  o(e, r) && n.push(r);
396
401
  return n;
397
402
  }
398
- function Ct(e, t) {
403
+ function St(e, t) {
399
404
  return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
400
405
  }
401
- function bt(e) {
406
+ function Lt(e) {
402
407
  const t = new RegExp(
403
408
  "(?:" + [
404
409
  `[!?.,:;'"]`,
@@ -408,7 +413,7 @@ function bt(e) {
408
413
  );
409
414
  return e.replace(t, "");
410
415
  }
411
- function xt(e, t) {
416
+ function $t(e, t) {
412
417
  const o = e.slice(0, t + 1).search(/\S+\s*$/), n = e.slice(t).search(/\s/);
413
418
  if (n < 0) {
414
419
  const r = e.slice(o);
@@ -425,18 +430,18 @@ function xt(e, t) {
425
430
  };
426
431
  }
427
432
  function P(e, t, o, n) {
428
- const r = xt(e, t);
433
+ const r = $t(e, t);
429
434
  if (n.lastIndex = 0, !n.test(r.text))
430
435
  return r;
431
436
  const s = o === "left" ? r.from - 1 : r.to + 1;
432
437
  return s <= 0 || s >= e.length || s === t ? r : P(e, s, o, n);
433
438
  }
434
- function Tt(e, t, o, n) {
439
+ function vt(e, t, o, n) {
435
440
  const r = Math.max(e.from - 1, 0), s = Math.min(e.to + 1, t.content.size), i = oe(r, s, t);
436
441
  for (const a of i)
437
442
  a.mark.type === n && o.removeMark(a.from, a.to, n);
438
443
  }
439
- const q = Ve(1, 15);
444
+ const q = Je(1, 15);
440
445
  function U(e, t, o, n, r, s) {
441
446
  if (!e)
442
447
  return;
@@ -453,14 +458,14 @@ function U(e, t, o, n, r, s) {
453
458
  "right",
454
459
  q
455
460
  ), y = e.slice(c.from, p.to);
456
- wt(y, qe, Ct).forEach((D) => {
457
- const x = bt(D[0]), L = t + c.from + D.index + 1, G = L + x.length;
458
- r.addMark(L, G, s.create());
461
+ Et(y, Xe, St).forEach((D) => {
462
+ const x = Lt(D[0]), L = t + c.from + D.index + 1, Y = L + x.length;
463
+ r.addMark(L, Y, s.create());
459
464
  });
460
465
  }
461
- function Et(e) {
466
+ function Rt(e) {
462
467
  let t = !1;
463
- return new Re({
468
+ return new Oe({
464
469
  key: new T("autolink"),
465
470
  appendTransaction: (o, n, r) => {
466
471
  const s = o.some((y) => y.docChanged) && !n.doc.eq(r.doc);
@@ -473,7 +478,7 @@ function Et(e) {
473
478
  [...o]
474
479
  );
475
480
  return se(c).forEach(({ oldRange: y, newRange: S }) => {
476
- Tt(S, r.doc, i, e.type), ie(
481
+ vt(S, r.doc, i, e.type), ie(
477
482
  r.doc,
478
483
  S,
479
484
  (x) => x.isTextblock
@@ -491,10 +496,10 @@ function Et(e) {
491
496
  }
492
497
  });
493
498
  }
494
- const St = {
499
+ const It = {
495
500
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
496
501
  rel: "noopener noreferrer nofollow"
497
- }, Lt = ae.create({
502
+ }, Mt = ae.create({
498
503
  name: "CustomLink",
499
504
  renderHTML({ HTMLAttributes: e }) {
500
505
  return [
@@ -502,7 +507,7 @@ const St = {
502
507
  b(
503
508
  this.options.HTMLAttributes,
504
509
  e,
505
- St
510
+ It
506
511
  )
507
512
  ];
508
513
  },
@@ -511,10 +516,10 @@ const St = {
511
516
  },
512
517
  addProseMirrorPlugins() {
513
518
  return [
514
- Et({ type: this.type })
519
+ Rt({ type: this.type })
515
520
  ];
516
521
  }
517
- }), $t = We.extend({
522
+ }), Bt = Ye.extend({
518
523
  name: "ConfigurableImage",
519
524
  addAttributes() {
520
525
  return {
@@ -538,19 +543,19 @@ const St = {
538
543
  }
539
544
  };
540
545
  }
541
- }).configure({ inline: !0, allowBase64: !0 }), vt = W.extend({
546
+ }).configure({ inline: !0, allowBase64: !0 }), Nt = W.extend({
542
547
  parseHTML() {
543
548
  return [{ tag: "div" }];
544
549
  },
545
550
  renderHTML({ HTMLAttributes: e }) {
546
551
  return ["div", b(this.options.HTMLAttributes, e), 0];
547
552
  }
548
- }), Rt = {
553
+ }), Ot = {
549
554
  compatConfig: { MODE: 3 },
550
555
  name: "MentionComponent",
551
556
  components: {
552
557
  NodeViewWrapper: v,
553
- DtLink: Y
558
+ DtLink: G
554
559
  },
555
560
  props: $,
556
561
  computed: {
@@ -570,7 +575,7 @@ const St = {
570
575
  }
571
576
  }
572
577
  };
573
- function It(e, t, o, n, r, s) {
578
+ function Dt(e, t, o, n, r, s) {
574
579
  const i = d("dt-link"), a = d("node-view-wrapper");
575
580
  return l(), m(a, { class: "d-d-inline-block" }, {
576
581
  default: u(() => [
@@ -587,9 +592,9 @@ function It(e, t, o, n, r, s) {
587
592
  _: 1
588
593
  });
589
594
  }
590
- const Mt = /* @__PURE__ */ g(Rt, [["render", It]]), Bt = K.extend({
595
+ const At = /* @__PURE__ */ g(Ot, [["render", Dt]]), Pt = K.extend({
591
596
  addNodeView() {
592
- return I(Mt);
597
+ return I(At);
593
598
  },
594
599
  parseHTML() {
595
600
  return [
@@ -625,13 +630,13 @@ const Mt = /* @__PURE__ */ g(Rt, [["render", It]]), Bt = K.extend({
625
630
  char: "@",
626
631
  pluginKey: new T("mentionSuggestion")
627
632
  }
628
- }), Nt = {
633
+ }), jt = {
629
634
  compatConfig: { MODE: 3 },
630
635
  name: "ChannelComponent",
631
636
  components: {
632
637
  NodeViewWrapper: v,
633
- DtLink: Y,
634
- DtIconLock: ze,
638
+ DtLink: G,
639
+ DtIconLock: Qe,
635
640
  DtStack: E
636
641
  },
637
642
  props: $,
@@ -652,7 +657,7 @@ const Mt = /* @__PURE__ */ g(Rt, [["render", It]]), Bt = K.extend({
652
657
  }
653
658
  }
654
659
  };
655
- function Ot(e, t, o, n, r, s) {
660
+ function Ht(e, t, o, n, r, s) {
656
661
  const i = d("dt-icon-lock"), a = d("dt-stack"), c = d("dt-link"), p = d("node-view-wrapper");
657
662
  return l(), m(p, { class: "d-d-inline-block" }, {
658
663
  default: u(() => [
@@ -681,10 +686,10 @@ function Ot(e, t, o, n, r, s) {
681
686
  _: 1
682
687
  });
683
688
  }
684
- const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = K.extend({
689
+ const Kt = /* @__PURE__ */ g(jt, [["render", Ht]]), Ft = K.extend({
685
690
  name: "channel",
686
691
  addNodeView() {
687
- return I(Dt);
692
+ return I(Kt);
688
693
  },
689
694
  parseHTML() {
690
695
  return [
@@ -720,7 +725,7 @@ const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = K.extend({
720
725
  char: "#",
721
726
  pluginKey: new T("channelSuggestion")
722
727
  }
723
- }), Pt = {
728
+ }), Vt = {
724
729
  compatConfig: { MODE: 3 },
725
730
  name: "SlashCommandsComponent",
726
731
  components: {
@@ -743,7 +748,7 @@ const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = K.extend({
743
748
  t && typeof t == "function" && t(e);
744
749
  }
745
750
  };
746
- function jt(e, t, o, n, r, s) {
751
+ function qt(e, t, o, n, r, s) {
747
752
  const i = d("node-view-wrapper");
748
753
  return l(), m(i, { class: "d-d-inline-block" }, {
749
754
  default: u(() => [
@@ -752,14 +757,14 @@ function jt(e, t, o, n, r, s) {
752
757
  _: 1
753
758
  });
754
759
  }
755
- const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAll(t)].map((n) => {
760
+ const Ut = /* @__PURE__ */ g(Vt, [["render", qt]]), Wt = (e, t) => [...e.matchAll(t)].map((n) => {
756
761
  let r = n[2];
757
762
  return r.endsWith(" ") || (r += " "), {
758
763
  index: n.index,
759
764
  text: r,
760
765
  match: n
761
766
  };
762
- }), Ft = K.extend({
767
+ }), zt = K.extend({
763
768
  name: "slash-commands",
764
769
  group: "inline",
765
770
  inline: !0,
@@ -776,7 +781,7 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
776
781
  };
777
782
  },
778
783
  addNodeView() {
779
- return I(Ht);
784
+ return I(Ut);
780
785
  },
781
786
  parseHTML() {
782
787
  return [
@@ -822,7 +827,7 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
822
827
  const e = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
823
828
  return [
824
829
  A({
825
- find: (n) => Kt(n, t),
830
+ find: (n) => Wt(n, t),
826
831
  type: this.type,
827
832
  getAttributes(n) {
828
833
  return { command: n[0].trim() };
@@ -835,11 +840,11 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
835
840
  char: "/",
836
841
  pluginKey: new T("slashCommandSuggestion")
837
842
  }
838
- }), Vt = {
843
+ }), Xt = {
839
844
  compatConfig: { MODE: 3 },
840
845
  name: "MentionSuggestion",
841
846
  components: {
842
- DtAvatar: Ye,
847
+ DtAvatar: tt,
843
848
  DtStack: E
844
849
  },
845
850
  props: {
@@ -876,14 +881,14 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
876
881
  return this.item.showDetails;
877
882
  }
878
883
  }
879
- }, qt = { class: "d-mention-suggestion__name" }, Ut = {
884
+ }, Jt = { class: "d-mention-suggestion__name" }, Gt = {
880
885
  key: 1,
881
886
  class: "d-mention-suggestion__divider"
882
- }, Wt = {
887
+ }, Yt = {
883
888
  key: 2,
884
889
  class: "d-mention-suggestion__status"
885
890
  };
886
- function zt(e, t, o, n, r, s) {
891
+ function Qt(e, t, o, n, r, s) {
887
892
  const i = d("dt-avatar"), a = d("dt-stack");
888
893
  return l(), m(a, {
889
894
  direction: "row",
@@ -904,7 +909,7 @@ function zt(e, t, o, n, r, s) {
904
909
  gap: "100"
905
910
  }, {
906
911
  default: u(() => [
907
- k("span", qt, h(s.name), 1),
912
+ k("span", Jt, h(s.name), 1),
908
913
  s.showDetails ? (l(), m(a, {
909
914
  key: 0,
910
915
  direction: "row",
@@ -916,8 +921,8 @@ function zt(e, t, o, n, r, s) {
916
921
  key: 0,
917
922
  class: X(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
918
923
  }, h(s.presenceText), 3)) : w("", !0),
919
- s.status && s.presenceText ? (l(), _("div", Ut, " • ")) : w("", !0),
920
- s.status ? (l(), _("div", Wt, h(s.status), 1)) : w("", !0)
924
+ s.status && s.presenceText ? (l(), _("div", Gt, " • ")) : w("", !0),
925
+ s.status ? (l(), _("div", Yt, h(s.status), 1)) : w("", !0)
921
926
  ]),
922
927
  _: 1
923
928
  })) : w("", !0)
@@ -928,7 +933,7 @@ function zt(e, t, o, n, r, s) {
928
933
  _: 1
929
934
  });
930
935
  }
931
- const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
936
+ const Zt = /* @__PURE__ */ g(Xt, [["render", Qt]]), en = {
932
937
  // This function comes from the user and passed to the editor directly.
933
938
  // This will also activate the mention plugin on the editor
934
939
  // items: ({ query }) => { return [] },
@@ -939,7 +944,7 @@ const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
939
944
  onStart: (n) => {
940
945
  e = new R(N, {
941
946
  props: {
942
- itemComponent: M(Xt),
947
+ itemComponent: M(Zt),
943
948
  itemType: "mention",
944
949
  ...n
945
950
  },
@@ -977,13 +982,13 @@ const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
977
982
  }
978
983
  };
979
984
  }
980
- }, Yt = {
985
+ }, tn = {
981
986
  compatConfig: { MODE: 3 },
982
987
  name: "ChannelSuggestion",
983
988
  components: {
984
989
  DtStack: E,
985
- DtIconHash: Ge,
986
- DtIconLock: Qe
990
+ DtIconHash: nt,
991
+ DtIconLock: ot
987
992
  },
988
993
  props: {
989
994
  item: {
@@ -997,7 +1002,7 @@ const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
997
1002
  }
998
1003
  }
999
1004
  };
1000
- function Gt(e, t, o, n, r, s) {
1005
+ function nn(e, t, o, n, r, s) {
1001
1006
  const i = d("dt-icon-hash"), a = d("dt-icon-lock"), c = d("dt-stack");
1002
1007
  return l(), m(c, {
1003
1008
  direction: "row",
@@ -1016,7 +1021,7 @@ function Gt(e, t, o, n, r, s) {
1016
1021
  _: 1
1017
1022
  });
1018
1023
  }
1019
- const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
1024
+ const on = /* @__PURE__ */ g(tn, [["render", nn]]), rn = {
1020
1025
  // This function comes from the user and passed to the editor directly.
1021
1026
  // This will also activate the mention plugin on the editor
1022
1027
  // items: ({ query }) => { return [] },
@@ -1027,7 +1032,7 @@ const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
1027
1032
  onStart: (n) => {
1028
1033
  e = new R(N, {
1029
1034
  props: {
1030
- itemComponent: M(Qt),
1035
+ itemComponent: M(on),
1031
1036
  itemType: "channel",
1032
1037
  ...n
1033
1038
  },
@@ -1065,7 +1070,7 @@ const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
1065
1070
  }
1066
1071
  };
1067
1072
  }
1068
- }, en = {
1073
+ }, sn = {
1069
1074
  compatConfig: { MODE: 3 },
1070
1075
  name: "SlashCommandSuggestion",
1071
1076
  props: {
@@ -1085,17 +1090,17 @@ const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
1085
1090
  return this.item.parametersExample;
1086
1091
  }
1087
1092
  }
1088
- }, tn = { class: "d-body--md-compact" }, nn = { key: 0 }, on = { class: "d-body--sm d-fc-tertiary" };
1089
- function rn(e, t, o, n, r, s) {
1093
+ }, an = { class: "d-body--md-compact" }, cn = { key: 0 }, ln = { class: "d-body--sm d-fc-tertiary" };
1094
+ function dn(e, t, o, n, r, s) {
1090
1095
  return l(), _("div", null, [
1091
- k("div", tn, [
1096
+ k("div", an, [
1092
1097
  k("span", null, "/" + h(s.command), 1),
1093
- s.parametersExample ? (l(), _("span", nn, h(s.parametersExample), 1)) : w("", !0)
1098
+ s.parametersExample ? (l(), _("span", cn, h(s.parametersExample), 1)) : w("", !0)
1094
1099
  ]),
1095
- k("div", on, h(s.description), 1)
1100
+ k("div", ln, h(s.description), 1)
1096
1101
  ]);
1097
1102
  }
1098
- const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1103
+ const un = /* @__PURE__ */ g(sn, [["render", dn]]), mn = {
1099
1104
  // This function comes from the user and passed to the editor directly.
1100
1105
  // This will also activate the mention plugin on the editor
1101
1106
  // items: ({ query }) => { return [] },
@@ -1108,7 +1113,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1108
1113
  e = new R(N, {
1109
1114
  parent: void 0,
1110
1115
  props: {
1111
- itemComponent: M(sn),
1116
+ itemComponent: M(un),
1112
1117
  itemType: "slash-command",
1113
1118
  ...n
1114
1119
  },
@@ -1146,13 +1151,13 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1146
1151
  }
1147
1152
  };
1148
1153
  }
1149
- }, cn = {
1154
+ }, hn = {
1150
1155
  compatConfig: { MODE: 3 },
1151
1156
  name: "DtRichTextEditor",
1152
1157
  components: {
1153
1158
  EditorContent: Z,
1154
1159
  BubbleMenu: Q,
1155
- DtButton: tt,
1160
+ DtButton: it,
1156
1161
  DtStack: E
1157
1162
  },
1158
1163
  props: {
@@ -1225,7 +1230,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1225
1230
  type: [Boolean, String, Number],
1226
1231
  default: !1,
1227
1232
  validator(e) {
1228
- return typeof e == "string" ? Je.includes(e) : !0;
1233
+ return typeof e == "string" ? et.includes(e) : !0;
1229
1234
  }
1230
1235
  },
1231
1236
  /**
@@ -1238,7 +1243,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1238
1243
  type: String,
1239
1244
  default: "html",
1240
1245
  validator(e) {
1241
- return Xe.includes(e);
1246
+ return Ze.includes(e);
1242
1247
  }
1243
1248
  },
1244
1249
  /**
@@ -1419,6 +1424,13 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1419
1424
  useDivTags: {
1420
1425
  type: Boolean,
1421
1426
  default: !1
1427
+ },
1428
+ /**
1429
+ * Allow Tables to be used in to the editor
1430
+ */
1431
+ allowTables: {
1432
+ type: Boolean,
1433
+ default: !1
1422
1434
  }
1423
1435
  },
1424
1436
  emits: [
@@ -1519,7 +1531,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1519
1531
  },
1520
1532
  placement: "top-start"
1521
1533
  },
1522
- i18n: new et(),
1534
+ i18n: new st(),
1523
1535
  // JSON-to-markdown converter
1524
1536
  jsonToMarkdownConverter: {
1525
1537
  convertToMarkdown(e) {
@@ -1653,13 +1665,13 @@ ${this.processNodeContent(e)}
1653
1665
  },
1654
1666
  // eslint-disable-next-line complexity
1655
1667
  extensions() {
1656
- const e = [he, Te, Se, pe];
1657
- e.push(this.useDivTags ? vt : W), this.allowBold && e.push(ge), this.allowBlockquote && e.push(de), this.allowBulletList && (e.push(_e), e.push(we.extend({
1668
+ const e = [he, Ee, Le, fe];
1669
+ e.push(this.useDivTags ? Nt : W), this.allowBold && e.push(_e), this.allowBlockquote && e.push(de), this.allowBulletList && (e.push(ke), e.push(Ce.extend({
1658
1670
  renderText({ node: n }) {
1659
1671
  return n.textContent;
1660
1672
  }
1661
- })), e.push(Ce)), this.allowItalic && e.push(ke), this.allowStrike && e.push(be), this.allowUnderline && e.push(xe), this.placeholder && e.push(
1662
- fe.configure({ placeholder: this.placeholder })
1673
+ })), e.push(be)), this.allowItalic && e.push(ye), this.allowStrike && e.push(xe), this.allowUnderline && e.push(Te), this.placeholder && e.push(
1674
+ ge.configure({ placeholder: this.placeholder })
1663
1675
  );
1664
1676
  const t = this, o = le.create({
1665
1677
  addKeyboardShortcuts() {
@@ -1675,7 +1687,7 @@ ${this.processNodeContent(e)}
1675
1687
  };
1676
1688
  }
1677
1689
  });
1678
- if (e.push(o), this.link && e.push(ye.extend({
1690
+ if (e.push(o), this.link && e.push(we.extend({
1679
1691
  inclusive: !1,
1680
1692
  addKeyboardShortcuts() {
1681
1693
  return {
@@ -1689,24 +1701,24 @@ ${this.processNodeContent(e)}
1689
1701
  openOnClick: !1,
1690
1702
  autolink: !0,
1691
1703
  protocols: V
1692
- })), this.customLink && e.push(this.getExtension(Lt, this.customLink)), this.mentionSuggestion) {
1693
- const n = { ...this.mentionSuggestion, ...Jt };
1694
- e.push(Bt.configure({ suggestion: n }));
1704
+ })), this.customLink && e.push(this.getExtension(Mt, this.customLink)), this.mentionSuggestion) {
1705
+ const n = { ...this.mentionSuggestion, ...en };
1706
+ e.push(Pt.configure({ suggestion: n }));
1695
1707
  }
1696
1708
  if (this.channelSuggestion) {
1697
- const n = { ...this.channelSuggestion, ...Zt };
1698
- e.push(At.configure({ suggestion: n }));
1709
+ const n = { ...this.channelSuggestion, ...rn };
1710
+ e.push(Ft.configure({ suggestion: n }));
1699
1711
  }
1700
1712
  if (this.slashCommandSuggestion) {
1701
- const n = { ...this.slashCommandSuggestion, ...an };
1702
- e.push(Ft.configure({
1713
+ const n = { ...this.slashCommandSuggestion, ...mn };
1714
+ e.push(zt.configure({
1703
1715
  suggestion: n,
1704
1716
  onSelectedCommand: (r) => {
1705
1717
  this.$emit("selected-command", r);
1706
1718
  }
1707
1719
  }));
1708
1720
  }
1709
- return e.push(yt), e.push(Ee.configure({
1721
+ return e.push(Tt), e.push(Se.configure({
1710
1722
  types: ["paragraph"]
1711
1723
  })), this.allowCode && e.push(me), this.allowCodeblock && e.push(ue.extend({
1712
1724
  renderText({ node: n }) {
@@ -1718,7 +1730,7 @@ ${n.textContent}
1718
1730
  HTMLAttributes: {
1719
1731
  class: "d-rich-text-editor__code-block"
1720
1732
  }
1721
- })), this.allowInlineImages && e.push($t), (this.allowFontFamily || this.allowFontColor) && (e.push(Le), this.allowFontColor && e.push($e), this.allowFontFamily && e.push(ve)), this.additionalExtensions.length && e.push(...this.additionalExtensions), e;
1733
+ })), this.allowInlineImages && e.push(Bt), (this.allowFontFamily || this.allowFontColor) && (e.push(Me), this.allowFontColor && e.push(Be), this.allowFontFamily && e.push(Ne)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push($e.configure({ resizable: !0 }), Ie, Re, ve, pe), e;
1722
1734
  },
1723
1735
  inputAttrs() {
1724
1736
  const e = {
@@ -1758,7 +1770,7 @@ ${n.textContent}
1758
1770
  this.destroyEditor();
1759
1771
  },
1760
1772
  mounted() {
1761
- Ue(F(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
1773
+ Ge(F(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
1762
1774
  },
1763
1775
  methods: {
1764
1776
  createEditor() {
@@ -1834,7 +1846,7 @@ ${n.textContent}
1834
1846
  },
1835
1847
  processValue(e, t = !0) {
1836
1848
  const o = this.getOutput();
1837
- if (!(t && Ze(e, o))) {
1849
+ if (!(t && rt(e, o))) {
1838
1850
  if (typeof e == "string" && this.outputFormat === "text") {
1839
1851
  const n = new RegExp(`(${z})`, "g");
1840
1852
  e = e == null ? void 0 : e.replace(n, '<emoji-component code="$1"></emoji-component>');
@@ -1975,8 +1987,8 @@ ${n.textContent}
1975
1987
  this.editor.commands.focus();
1976
1988
  }
1977
1989
  }
1978
- }, ln = { class: "d-popover__dialog" };
1979
- function dn(e, t, o, n, r, s) {
1990
+ }, pn = { class: "d-popover__dialog" };
1991
+ function fn(e, t, o, n, r, s) {
1980
1992
  const i = d("dt-button"), a = d("dt-stack"), c = d("bubble-menu"), p = d("editor-content");
1981
1993
  return l(), _("div", null, [
1982
1994
  r.editor && o.link && !o.hideLinkBubbleMenu ? (l(), m(c, {
@@ -1987,7 +1999,7 @@ function dn(e, t, o, n, r, s) {
1987
1999
  style: { visibility: "visible" }
1988
2000
  }, {
1989
2001
  default: u(() => [
1990
- k("div", ln, [
2002
+ k("div", pn, [
1991
2003
  f(a, {
1992
2004
  direction: "row",
1993
2005
  class: "d-rich-text-editor-bubble-menu__button-stack",
@@ -2031,7 +2043,7 @@ function dn(e, t, o, n, r, s) {
2031
2043
  ]),
2032
2044
  _: 1
2033
2045
  }, 8, ["editor", "should-show", "tippy-options"])) : w("", !0),
2034
- f(p, Ae({
2046
+ f(p, Fe({
2035
2047
  ref: "editor",
2036
2048
  editor: r.editor,
2037
2049
  class: "d-rich-text-editor",
@@ -2039,8 +2051,8 @@ function dn(e, t, o, n, r, s) {
2039
2051
  }, s.attrs), null, 16, ["editor"])
2040
2052
  ]);
2041
2053
  }
2042
- const no = /* @__PURE__ */ g(cn, [["render", dn]]);
2054
+ const ho = /* @__PURE__ */ g(hn, [["render", fn]]);
2043
2055
  export {
2044
- no as default
2056
+ ho as default
2045
2057
  };
2046
2058
  //# sourceMappingURL=rich-text-editor.js.map