@dialpad/dialtone 9.151.0 → 9.153.9

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 (188) hide show
  1. package/README.md +1 -34
  2. package/dist/css/dialtone-default-theme.css +8 -2
  3. package/dist/css/dialtone-default-theme.min.css +1 -1
  4. package/dist/css/dialtone.css +8 -2
  5. package/dist/css/dialtone.min.css +1 -1
  6. package/dist/tokens/css/tokens-botany-dark.css +1 -1
  7. package/dist/tokens/css/tokens-buttercream-dark.css +1 -1
  8. package/dist/tokens/css/tokens-deca-light.css +3 -3
  9. package/dist/tokens/css/tokens-dp-dark.css +1 -1
  10. package/dist/tokens/css/tokens-expressive-dark.css +1 -1
  11. package/dist/tokens/css/tokens-expressive-sm-dark.css +1 -1
  12. package/dist/tokens/css/tokens-high-desert-dark.css +1 -1
  13. package/dist/tokens/css/tokens-plum-dark.css +1 -1
  14. package/dist/tokens/css/tokens-sunflower-dark.css +1 -1
  15. package/dist/tokens/css/tokens-tmo-dark.css +2 -2
  16. package/dist/tokens/doc.json +78308 -78308
  17. package/dist/tokens/themes/botany-dark.cjs +1 -1
  18. package/dist/tokens/themes/botany-dark.js +1 -1
  19. package/dist/tokens/themes/buttercream-dark.cjs +1 -1
  20. package/dist/tokens/themes/buttercream-dark.js +1 -1
  21. package/dist/tokens/themes/dp-dark.cjs +1 -1
  22. package/dist/tokens/themes/dp-dark.js +1 -1
  23. package/dist/tokens/themes/dp-deca-light.cjs +1 -1
  24. package/dist/tokens/themes/dp-deca-light.js +1 -1
  25. package/dist/tokens/themes/expressive-dark.cjs +1 -1
  26. package/dist/tokens/themes/expressive-dark.js +1 -1
  27. package/dist/tokens/themes/high-desert-dark.cjs +1 -1
  28. package/dist/tokens/themes/high-desert-dark.js +1 -1
  29. package/dist/tokens/themes/plum-dark.cjs +1 -1
  30. package/dist/tokens/themes/plum-dark.js +1 -1
  31. package/dist/tokens/themes/sunflower-dark.cjs +1 -1
  32. package/dist/tokens/themes/sunflower-dark.js +1 -1
  33. package/dist/tokens/themes/tmo-dark.cjs +1 -1
  34. package/dist/tokens/themes/tmo-dark.js +1 -1
  35. package/dist/vue2/lib/tab/tab-group.cjs +1 -1
  36. package/dist/vue2/lib/tab/tab-group.cjs.map +1 -1
  37. package/dist/vue2/lib/tab/tab-group.js +4 -4
  38. package/dist/vue2/lib/tab/tab-group.js.map +1 -1
  39. package/dist/vue2/localization/index.cjs +1 -1
  40. package/dist/vue2/localization/index.cjs.map +1 -1
  41. package/dist/vue2/localization/index.js +46 -42
  42. package/dist/vue2/localization/index.js.map +1 -1
  43. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +2 -3
  44. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  45. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
  46. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  47. package/dist/vue2/types/components/button/button.vue.d.ts +1 -2
  48. package/dist/vue2/types/components/button/button.vue.d.ts.map +1 -1
  49. package/dist/vue2/types/components/chip/chip.vue.d.ts +2 -3
  50. package/dist/vue2/types/components/chip/chip.vue.d.ts.map +1 -1
  51. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +1 -2
  52. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  53. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -2
  54. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  55. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
  56. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  57. package/dist/vue2/types/components/loader/loader.vue.d.ts +1 -2
  58. package/dist/vue2/types/components/loader/loader.vue.d.ts.map +1 -1
  59. package/dist/vue2/types/components/modal/modal.vue.d.ts +2 -3
  60. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  61. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +2 -3
  62. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  63. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +3 -4
  64. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  65. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +2 -3
  66. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  67. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -2
  68. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  69. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
  70. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  71. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
  72. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  73. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
  74. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  75. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
  76. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  77. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
  78. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  79. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
  80. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  81. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
  82. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  83. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
  84. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  85. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
  86. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  87. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
  88. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  89. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
  90. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  91. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
  92. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  93. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
  94. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  95. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
  96. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  97. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
  98. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  99. package/dist/vue3/component-documentation.json +1 -1
  100. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  101. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  102. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +100 -93
  103. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  104. package/dist/vue3/lib/radio/radio.cjs +1 -1
  105. package/dist/vue3/lib/radio/radio.cjs.map +1 -1
  106. package/dist/vue3/lib/radio/radio.js +7 -14
  107. package/dist/vue3/lib/radio/radio.js.map +1 -1
  108. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs +1 -1
  109. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  110. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js +12 -2
  111. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  112. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  113. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  114. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +95 -73
  115. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  116. package/dist/vue3/lib/tab/tab-group.cjs +1 -1
  117. package/dist/vue3/lib/tab/tab-group.cjs.map +1 -1
  118. package/dist/vue3/lib/tab/tab-group.js +1 -1
  119. package/dist/vue3/lib/tab/tab-group.js.map +1 -1
  120. package/dist/vue3/lib/tooltip-directive/tooltip.cjs +1 -1
  121. package/dist/vue3/lib/tooltip-directive/tooltip.cjs.map +1 -1
  122. package/dist/vue3/lib/tooltip-directive/tooltip.js +21 -21
  123. package/dist/vue3/lib/tooltip-directive/tooltip.js.map +1 -1
  124. package/dist/vue3/localization/index.cjs +1 -1
  125. package/dist/vue3/localization/index.cjs.map +1 -1
  126. package/dist/vue3/localization/index.js +48 -46
  127. package/dist/vue3/localization/index.js.map +1 -1
  128. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +2 -3
  129. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  130. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
  131. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  132. package/dist/vue3/types/components/button/button.vue.d.ts +1 -2
  133. package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
  134. package/dist/vue3/types/components/chip/chip.vue.d.ts +2 -3
  135. package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
  136. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
  137. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  138. package/dist/vue3/types/components/modal/modal.vue.d.ts +2 -3
  139. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  140. package/dist/vue3/types/components/notice/notice_action.vue.d.ts +2 -3
  141. package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
  142. package/dist/vue3/types/components/pagination/pagination.vue.d.ts +3 -4
  143. package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
  144. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +2 -3
  145. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  146. package/dist/vue3/types/components/radio/radio.vue.d.ts +1 -2
  147. package/dist/vue3/types/components/radio/radio.vue.d.ts.map +1 -1
  148. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +3 -1
  149. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
  150. package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts +3 -0
  151. package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
  152. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +3 -3
  153. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  154. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
  155. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  156. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
  157. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  158. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
  159. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  160. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
  161. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  162. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
  163. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  164. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
  165. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  166. package/dist/vue3/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts +2 -0
  167. package/dist/vue3/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts.map +1 -0
  168. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
  169. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  170. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
  171. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  172. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +2 -3
  173. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  174. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
  175. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  176. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
  177. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  178. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
  179. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  180. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
  181. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  182. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
  183. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  184. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
  185. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  186. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
  187. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  188. package/package.json +4 -4
@@ -1,32 +1,32 @@
1
- import { nodeViewProps as $, NodeViewWrapper as R, VueRenderer as v, VueNodeViewRenderer as I, BubbleMenu as G, EditorContent as Q, Editor as Z } from "../../node_modules/@tiptap/vue-3.js";
2
- import { Node as ee, nodePasteRule as A, InputRule as te, mergeAttributes as b, getMarksBetween as ne, combineTransactionSteps as oe, getChangedRanges as re, findChildrenInRange as se, Mark as ie, nodeInputRule as ae, Extension as ce } from "@tiptap/core";
3
- import de from "@tiptap/extension-blockquote";
4
- import le from "@tiptap/extension-code-block";
5
- import ue from "@tiptap/extension-code";
6
- import me from "@tiptap/extension-document";
7
- import he from "@tiptap/extension-hard-break";
1
+ import { nodeViewProps as $, NodeViewWrapper as v, VueRenderer as R, VueNodeViewRenderer as I, BubbleMenu as Q, EditorContent as Z, Editor as ee } from "../../node_modules/@tiptap/vue-3.js";
2
+ import { Node as te, nodePasteRule as A, InputRule as ne, mergeAttributes as b, getMarksBetween as oe, combineTransactionSteps as re, getChangedRanges as se, findChildrenInRange as ie, Mark as ae, nodeInputRule as ce, Extension as de } from "@tiptap/core";
3
+ import le from "@tiptap/extension-blockquote";
4
+ import ue from "@tiptap/extension-code-block";
5
+ import me from "@tiptap/extension-code";
6
+ import he from "@tiptap/extension-document";
7
+ import pe from "@tiptap/extension-hard-break";
8
8
  import U from "@tiptap/extension-paragraph";
9
- import pe from "@tiptap/extension-placeholder";
10
- import fe from "@tiptap/extension-bold";
11
- import ge from "@tiptap/extension-bullet-list";
12
- import _e from "@tiptap/extension-italic";
13
- import ke from "@tiptap/extension-link";
14
- import ye from "@tiptap/extension-list-item";
15
- import we from "@tiptap/extension-ordered-list";
16
- import Ce from "@tiptap/extension-strike";
17
- import be from "@tiptap/extension-underline";
18
- import xe from "@tiptap/extension-text";
19
- import Te from "@tiptap/extension-text-align";
20
- import Ee from "@tiptap/extension-history";
21
- import Se from "@tiptap/extension-text-style";
22
- import Le from "@tiptap/extension-color";
23
- import $e from "@tiptap/extension-font-family";
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
24
  import { PluginKey as T, Plugin as Re } from "@tiptap/pm/state";
25
- import ve from "@tiptap/suggestion";
25
+ import Ie from "@tiptap/suggestion";
26
26
  import { emojiPattern as W } from "regex-combined-emojis";
27
- import { resolveComponent as l, createBlock as m, openBlock as d, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Ie, createElementVNode as k, Fragment as Me, renderList as Be, withModifiers as Ne, normalizeClass as z, resolveDynamicComponent as Oe, vShow as De, createTextVNode as C, toDisplayString as h, markRaw as M, createCommentVNode as w, mergeProps as Ae } from "vue";
27
+ import { resolveComponent as l, createBlock as m, openBlock as d, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Me, createElementVNode as k, Fragment as Be, renderList as Ne, withModifiers as z, 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";
28
28
  import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
29
- import X from "../emoji/emoji.js";
29
+ import J from "../emoji/emoji.js";
30
30
  import { getEmojiData as Pe, emojiRegex as je, stringToUnicode as He, codeToEmojiData as j, emojiShortCodeRegex as Ke } from "../../common/emoji/index.js";
31
31
  import Fe from "../list-item/list-item.js";
32
32
  import E from "../stack/stack.js";
@@ -34,7 +34,7 @@ import B from "tippy.js";
34
34
  import { getPhoneNumberRegex as Ve, linkRegex as qe, warnIfUnmounted as Ue, returnFirstEl as K } from "../../common/utils/index.js";
35
35
  import We from "@tiptap/extension-image";
36
36
  import H from "@tiptap/extension-mention";
37
- import J from "../link/link.js";
37
+ import Y from "../link/link.js";
38
38
  import { DtIconLock as ze } from "@dialpad/dialtone-icons/vue3";
39
39
  import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as F, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Xe, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Je } from "./rich-text-editor-constants.js";
40
40
  import Ye from "../avatar/avatar.js";
@@ -47,8 +47,8 @@ const nt = {
47
47
  compatConfig: { MODE: 3 },
48
48
  name: "EmojiComponent",
49
49
  components: {
50
- NodeViewWrapper: R,
51
- DtEmoji: X
50
+ NodeViewWrapper: v,
51
+ DtEmoji: J
52
52
  },
53
53
  props: $
54
54
  };
@@ -126,7 +126,7 @@ const rt = /* @__PURE__ */ g(nt, [["render", ot]]), st = {
126
126
  this.command(t);
127
127
  return;
128
128
  case "mention":
129
- this.command({ name: t.name, id: t.id, avatarSrc: t.avatarSrc });
129
+ this.command({ name: t.name, id: t.id, avatarSrc: t.avatarSrc, contactKey: t.contactKey });
130
130
  break;
131
131
  case "channel":
132
132
  this.command({ name: t.name, id: t.id, locked: t.locked });
@@ -144,16 +144,16 @@ const rt = /* @__PURE__ */ g(nt, [["render", ot]]), st = {
144
144
  function ct(e, t, o, n, r, s) {
145
145
  const i = l("dt-list-item");
146
146
  return d(), _("div", it, [
147
- Ie(k("ul", at, [
148
- (d(!0), _(Me, null, Be(o.items, (a, c) => (d(), m(i, {
147
+ Me(k("ul", at, [
148
+ (d(!0), _(Be, null, Ne(o.items, (a, c) => (d(), m(i, {
149
149
  key: a.id,
150
- class: z([
150
+ class: X([
151
151
  "d-suggestion-list__item",
152
152
  { "d-list-item--highlighted": c === r.selectedIndex }
153
153
  ]),
154
154
  "navigation-type": "arrow-keys",
155
155
  onClick: (p) => s.selectItem(c),
156
- onKeydown: Ne(s.onKeyDown, ["prevent"])
156
+ onKeydown: z(s.onKeyDown, ["prevent"])
157
157
  }, {
158
158
  default: u(() => [
159
159
  (d(), m(Oe(o.itemComponent), { item: a }, null, 8, ["item"]))
@@ -169,7 +169,7 @@ const N = /* @__PURE__ */ g(st, [["render", ct]]), dt = {
169
169
  compatConfig: { MODE: 3 },
170
170
  name: "EmojiSuggestion",
171
171
  components: {
172
- DtEmoji: X,
172
+ DtEmoji: J,
173
173
  DtStack: E
174
174
  },
175
175
  props: {
@@ -245,7 +245,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
245
245
  let e, t, o = !1;
246
246
  return {
247
247
  onStart: (n) => {
248
- e = new v(N, {
248
+ e = new R(N, {
249
249
  props: {
250
250
  itemComponent: M(ut),
251
251
  itemType: "emoji",
@@ -292,7 +292,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
292
292
  index: o.index,
293
293
  text: o[0],
294
294
  match: o
295
- })), yt = ee.create({
295
+ })), yt = te.create({
296
296
  name: "emoji",
297
297
  addOptions() {
298
298
  return {
@@ -328,7 +328,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
328
328
  },
329
329
  addInputRules() {
330
330
  return [
331
- new te({
331
+ new ne({
332
332
  find: (e) => {
333
333
  const t = e.match(ft) || e.match(gt);
334
334
  if (t)
@@ -365,7 +365,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
365
365
  },
366
366
  addProseMirrorPlugins() {
367
367
  return [
368
- ve({
368
+ Ie({
369
369
  char: ":",
370
370
  pluginKey: new T("emoji"),
371
371
  editor: this.editor,
@@ -432,7 +432,7 @@ function P(e, t, o, n) {
432
432
  return s <= 0 || s >= e.length || s === t ? r : P(e, s, o, n);
433
433
  }
434
434
  function Tt(e, t, o, n) {
435
- const r = Math.max(e.from - 1, 0), s = Math.min(e.to + 1, t.content.size), i = ne(r, s, t);
435
+ const r = Math.max(e.from - 1, 0), s = Math.min(e.to + 1, t.content.size), i = oe(r, s, t);
436
436
  for (const a of i)
437
437
  a.mark.type === n && o.removeMark(a.from, a.to, n);
438
438
  }
@@ -454,8 +454,8 @@ function q(e, t, o, n, r, s) {
454
454
  V
455
455
  ), y = e.slice(c.from, p.to);
456
456
  wt(y, qe, Ct).forEach((D) => {
457
- const x = bt(D[0]), L = t + c.from + D.index + 1, Y = L + x.length;
458
- r.addMark(L, Y, s.create());
457
+ const x = bt(D[0]), L = t + c.from + D.index + 1, G = L + x.length;
458
+ r.addMark(L, G, s.create());
459
459
  });
460
460
  }
461
461
  function Et(e) {
@@ -468,12 +468,12 @@ function Et(e) {
468
468
  return;
469
469
  const { tr: i } = r, { textContent: a } = r.doc;
470
470
  t || q(a, 0, 0, a.length, i, e.type), t = !0;
471
- const c = oe(
471
+ const c = re(
472
472
  n.doc,
473
473
  [...o]
474
474
  );
475
- return re(c).forEach(({ oldRange: y, newRange: S }) => {
476
- Tt(S, r.doc, i, e.type), se(
475
+ return se(c).forEach(({ oldRange: y, newRange: S }) => {
476
+ Tt(S, r.doc, i, e.type), ie(
477
477
  r.doc,
478
478
  S,
479
479
  (x) => x.isTextblock
@@ -494,7 +494,7 @@ function Et(e) {
494
494
  const St = {
495
495
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
496
496
  rel: "noopener noreferrer nofollow"
497
- }, Lt = ie.create({
497
+ }, Lt = ae.create({
498
498
  name: "CustomLink",
499
499
  renderHTML({ HTMLAttributes: e }) {
500
500
  return [
@@ -538,42 +538,56 @@ const St = {
538
538
  }
539
539
  };
540
540
  }
541
- }).configure({ inline: !0, allowBase64: !0 }), Rt = U.extend({
541
+ }).configure({ inline: !0, allowBase64: !0 }), vt = U.extend({
542
542
  parseHTML() {
543
543
  return [{ tag: "div" }];
544
544
  },
545
545
  renderHTML({ HTMLAttributes: e }) {
546
546
  return ["div", b(this.options.HTMLAttributes, e), 0];
547
547
  }
548
- }), vt = {
548
+ }), Rt = {
549
549
  compatConfig: { MODE: 3 },
550
550
  name: "MentionComponent",
551
551
  components: {
552
- NodeViewWrapper: R,
553
- DtLink: J
552
+ NodeViewWrapper: v,
553
+ DtLink: Y
554
554
  },
555
555
  props: $,
556
556
  computed: {
557
557
  text() {
558
558
  return "@" + this.$props.node.attrs.name;
559
559
  }
560
+ },
561
+ methods: {
562
+ handleClick() {
563
+ const e = {
564
+ name: this.$props.node.attrs.name,
565
+ id: this.$props.node.attrs.id,
566
+ avatarSrc: this.$props.node.attrs.avatarSrc,
567
+ contactKey: this.$props.node.attrs.contactKey
568
+ };
569
+ this.$props.editor.emit("mention-click", e);
570
+ }
560
571
  }
561
572
  };
562
573
  function It(e, t, o, n, r, s) {
563
574
  const i = l("dt-link"), a = l("node-view-wrapper");
564
575
  return d(), m(a, { class: "d-d-inline-block" }, {
565
576
  default: u(() => [
566
- f(i, { kind: "mention" }, {
577
+ f(i, {
578
+ kind: "mention",
579
+ onClick: z(s.handleClick, ["prevent"])
580
+ }, {
567
581
  default: u(() => [
568
582
  C(h(s.text), 1)
569
583
  ]),
570
584
  _: 1
571
- })
585
+ }, 8, ["onClick"])
572
586
  ]),
573
587
  _: 1
574
588
  });
575
589
  }
576
- const Mt = /* @__PURE__ */ g(vt, [["render", It]]), Bt = H.extend({
590
+ const Mt = /* @__PURE__ */ g(Rt, [["render", It]]), Bt = H.extend({
577
591
  addNodeView() {
578
592
  return I(Mt);
579
593
  },
@@ -615,8 +629,8 @@ const Mt = /* @__PURE__ */ g(vt, [["render", It]]), Bt = H.extend({
615
629
  compatConfig: { MODE: 3 },
616
630
  name: "ChannelComponent",
617
631
  components: {
618
- NodeViewWrapper: R,
619
- DtLink: J,
632
+ NodeViewWrapper: v,
633
+ DtLink: Y,
620
634
  DtIconLock: ze,
621
635
  DtStack: E
622
636
  },
@@ -693,7 +707,7 @@ const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = H.extend({
693
707
  compatConfig: { MODE: 3 },
694
708
  name: "SlashCommandsComponent",
695
709
  components: {
696
- NodeViewWrapper: R
710
+ NodeViewWrapper: v
697
711
  },
698
712
  props: {
699
713
  ...$
@@ -777,7 +791,7 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
777
791
  var o;
778
792
  const e = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) $`);
779
793
  return [
780
- ae({
794
+ ce({
781
795
  find: t,
782
796
  type: this.type,
783
797
  getAttributes(n) {
@@ -883,7 +897,7 @@ function zt(e, t, o, n, r, s) {
883
897
  default: u(() => [
884
898
  s.presenceText ? (d(), _("span", {
885
899
  key: 0,
886
- class: z(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
900
+ class: X(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
887
901
  }, h(s.presenceText), 3)) : w("", !0),
888
902
  s.status && s.presenceText ? (d(), _("div", Ut, " • ")) : w("", !0),
889
903
  s.status ? (d(), _("div", Wt, h(s.status), 1)) : w("", !0)
@@ -906,7 +920,7 @@ const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
906
920
  let e, t, o = !1;
907
921
  return {
908
922
  onStart: (n) => {
909
- e = new v(N, {
923
+ e = new R(N, {
910
924
  props: {
911
925
  itemComponent: M(Xt),
912
926
  itemType: "mention",
@@ -994,7 +1008,7 @@ const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
994
1008
  let e, t, o = !1;
995
1009
  return {
996
1010
  onStart: (n) => {
997
- e = new v(N, {
1011
+ e = new R(N, {
998
1012
  props: {
999
1013
  itemComponent: M(Qt),
1000
1014
  itemType: "channel",
@@ -1074,7 +1088,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1074
1088
  let e, t, o = !1;
1075
1089
  return {
1076
1090
  onStart: (n) => {
1077
- e = new v(N, {
1091
+ e = new R(N, {
1078
1092
  parent: void 0,
1079
1093
  props: {
1080
1094
  itemComponent: M(sn),
@@ -1119,8 +1133,8 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1119
1133
  compatConfig: { MODE: 3 },
1120
1134
  name: "DtRichTextEditor",
1121
1135
  components: {
1122
- EditorContent: Q,
1123
- BubbleMenu: G,
1136
+ EditorContent: Z,
1137
+ BubbleMenu: Q,
1124
1138
  DtButton: tt,
1125
1139
  DtStack: E
1126
1140
  },
@@ -1464,7 +1478,13 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1464
1478
  * @event selected-command
1465
1479
  * @type {String}
1466
1480
  */
1467
- "selected-command"
1481
+ "selected-command",
1482
+ /**
1483
+ * Event fired when a mention is clicked
1484
+ * @event mention-click
1485
+ * @type {Object}
1486
+ */
1487
+ "mention-click"
1468
1488
  ],
1469
1489
  data() {
1470
1490
  return {
@@ -1610,15 +1630,15 @@ ${this.processNodeContent(e)}
1610
1630
  },
1611
1631
  // eslint-disable-next-line complexity
1612
1632
  extensions() {
1613
- const e = [me, xe, Ee, he];
1614
- e.push(this.useDivTags ? Rt : U), this.allowBold && e.push(fe), this.allowBlockquote && e.push(de), this.allowBulletList && (e.push(ge), e.push(ye.extend({
1633
+ const e = [he, Te, Se, pe];
1634
+ e.push(this.useDivTags ? vt : U), this.allowBold && e.push(ge), this.allowBlockquote && e.push(le), this.allowBulletList && (e.push(_e), e.push(we.extend({
1615
1635
  renderText({ node: n }) {
1616
1636
  return n.textContent;
1617
1637
  }
1618
- })), e.push(we)), this.allowItalic && e.push(_e), this.allowStrike && e.push(Ce), this.allowUnderline && e.push(be), this.placeholder && e.push(
1619
- pe.configure({ placeholder: this.placeholder })
1638
+ })), e.push(Ce)), this.allowItalic && e.push(ke), this.allowStrike && e.push(be), this.allowUnderline && e.push(xe), this.placeholder && e.push(
1639
+ fe.configure({ placeholder: this.placeholder })
1620
1640
  );
1621
- const t = this, o = ce.create({
1641
+ const t = this, o = de.create({
1622
1642
  addKeyboardShortcuts() {
1623
1643
  return {
1624
1644
  "Shift-Enter": ({ editor: n }) => t.allowLineBreaks ? !1 : (n.commands.first(({ commands: r }) => [
@@ -1632,7 +1652,7 @@ ${this.processNodeContent(e)}
1632
1652
  };
1633
1653
  }
1634
1654
  });
1635
- if (e.push(o), this.link && e.push(ke.extend({
1655
+ if (e.push(o), this.link && e.push(ye.extend({
1636
1656
  inclusive: !1,
1637
1657
  addKeyboardShortcuts() {
1638
1658
  return {
@@ -1663,9 +1683,9 @@ ${this.processNodeContent(e)}
1663
1683
  }
1664
1684
  }));
1665
1685
  }
1666
- return e.push(yt), e.push(Te.configure({
1686
+ return e.push(yt), e.push(Ee.configure({
1667
1687
  types: ["paragraph"]
1668
- })), this.allowCode && e.push(ue), this.allowCodeblock && e.push(le.extend({
1688
+ })), this.allowCode && e.push(me), this.allowCodeblock && e.push(ue.extend({
1669
1689
  renderText({ node: n }) {
1670
1690
  return `\`\`\`
1671
1691
  ${n.textContent}
@@ -1675,7 +1695,7 @@ ${n.textContent}
1675
1695
  HTMLAttributes: {
1676
1696
  class: "d-rich-text-editor__code-block"
1677
1697
  }
1678
- })), this.allowInlineImages && e.push($t), (this.allowFontFamily || this.allowFontColor) && (e.push(Se), this.allowFontColor && e.push(Le), this.allowFontFamily && e.push($e)), this.additionalExtensions.length && e.push(...this.additionalExtensions), e;
1698
+ })), 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;
1679
1699
  },
1680
1700
  inputAttrs() {
1681
1701
  const e = {
@@ -1719,7 +1739,7 @@ ${n.textContent}
1719
1739
  },
1720
1740
  methods: {
1721
1741
  createEditor() {
1722
- this.editor = new Z({
1742
+ this.editor = new ee({
1723
1743
  autofocus: this.autoFocus,
1724
1744
  content: this.modelValue,
1725
1745
  editable: this.editable,
@@ -1894,6 +1914,8 @@ ${n.textContent}
1894
1914
  this.$emit("focus", e);
1895
1915
  }), this.editor.on("blur", ({ event: e }) => {
1896
1916
  this.$emit("blur", e);
1917
+ }), this.editor.on("mention-click", (e) => {
1918
+ this.$emit("mention-click", e);
1897
1919
  });
1898
1920
  },
1899
1921
  getOutput() {