@dialpad/dialtone 9.151.0 → 9.154.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 (217) hide show
  1. package/README.md +1 -34
  2. package/dist/css/dialtone-default-theme.css +32 -15
  3. package/dist/css/dialtone-default-theme.min.css +1 -1
  4. package/dist/css/dialtone.css +32 -15
  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 +91886 -91886
  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/component-documentation.json +1 -1
  36. package/dist/vue2/lib/stack/stack-constants.cjs +1 -1
  37. package/dist/vue2/lib/stack/stack-constants.cjs.map +1 -1
  38. package/dist/vue2/lib/stack/stack-constants.js +8 -8
  39. package/dist/vue2/lib/stack/stack-constants.js.map +1 -1
  40. package/dist/vue2/lib/stack/stack.cjs.map +1 -1
  41. package/dist/vue2/lib/stack/stack.js +1 -1
  42. package/dist/vue2/lib/stack/stack.js.map +1 -1
  43. package/dist/vue2/lib/stack/utils.cjs +1 -1
  44. package/dist/vue2/lib/stack/utils.cjs.map +1 -1
  45. package/dist/vue2/lib/stack/utils.js +56 -44
  46. package/dist/vue2/lib/stack/utils.js.map +1 -1
  47. package/dist/vue2/lib/tab/tab-group.cjs +1 -1
  48. package/dist/vue2/lib/tab/tab-group.cjs.map +1 -1
  49. package/dist/vue2/lib/tab/tab-group.js +4 -4
  50. package/dist/vue2/lib/tab/tab-group.js.map +1 -1
  51. package/dist/vue2/localization/index.cjs +1 -1
  52. package/dist/vue2/localization/index.cjs.map +1 -1
  53. package/dist/vue2/localization/index.js +46 -42
  54. package/dist/vue2/localization/index.js.map +1 -1
  55. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +2 -3
  56. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  57. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
  58. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  59. package/dist/vue2/types/components/button/button.vue.d.ts +1 -2
  60. package/dist/vue2/types/components/button/button.vue.d.ts.map +1 -1
  61. package/dist/vue2/types/components/chip/chip.vue.d.ts +2 -3
  62. package/dist/vue2/types/components/chip/chip.vue.d.ts.map +1 -1
  63. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +1 -2
  64. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  65. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -2
  66. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  67. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
  68. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  69. package/dist/vue2/types/components/loader/loader.vue.d.ts +1 -2
  70. package/dist/vue2/types/components/loader/loader.vue.d.ts.map +1 -1
  71. package/dist/vue2/types/components/modal/modal.vue.d.ts +2 -3
  72. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  73. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +2 -3
  74. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  75. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +3 -4
  76. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  77. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +2 -3
  78. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  79. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -2
  80. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  81. package/dist/vue2/types/components/stack/stack_constants.d.ts.map +1 -1
  82. package/dist/vue2/types/components/stack/utils.d.ts.map +1 -1
  83. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
  84. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  85. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
  86. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  87. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
  88. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  89. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
  90. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  91. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
  92. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  93. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
  94. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  95. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
  96. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  97. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
  98. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  99. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
  100. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  101. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
  102. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  103. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
  104. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  105. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
  106. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  107. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
  108. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  109. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
  110. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  111. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
  112. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  113. package/dist/vue3/component-documentation.json +1 -1
  114. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  115. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  116. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +100 -93
  117. package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  118. package/dist/vue3/lib/radio/radio.cjs +1 -1
  119. package/dist/vue3/lib/radio/radio.cjs.map +1 -1
  120. package/dist/vue3/lib/radio/radio.js +7 -14
  121. package/dist/vue3/lib/radio/radio.js.map +1 -1
  122. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs +1 -1
  123. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  124. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js +12 -2
  125. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  126. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  127. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  128. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +141 -98
  129. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  130. package/dist/vue3/lib/stack/stack-constants.cjs +1 -1
  131. package/dist/vue3/lib/stack/stack-constants.cjs.map +1 -1
  132. package/dist/vue3/lib/stack/stack-constants.js +8 -8
  133. package/dist/vue3/lib/stack/stack-constants.js.map +1 -1
  134. package/dist/vue3/lib/stack/stack.cjs.map +1 -1
  135. package/dist/vue3/lib/stack/stack.js +1 -1
  136. package/dist/vue3/lib/stack/stack.js.map +1 -1
  137. package/dist/vue3/lib/stack/utils.cjs +1 -1
  138. package/dist/vue3/lib/stack/utils.cjs.map +1 -1
  139. package/dist/vue3/lib/stack/utils.js +56 -44
  140. package/dist/vue3/lib/stack/utils.js.map +1 -1
  141. package/dist/vue3/lib/tab/tab-group.cjs +1 -1
  142. package/dist/vue3/lib/tab/tab-group.cjs.map +1 -1
  143. package/dist/vue3/lib/tab/tab-group.js +1 -1
  144. package/dist/vue3/lib/tab/tab-group.js.map +1 -1
  145. package/dist/vue3/lib/tooltip-directive/tooltip.cjs +1 -1
  146. package/dist/vue3/lib/tooltip-directive/tooltip.cjs.map +1 -1
  147. package/dist/vue3/lib/tooltip-directive/tooltip.js +21 -21
  148. package/dist/vue3/lib/tooltip-directive/tooltip.js.map +1 -1
  149. package/dist/vue3/localization/index.cjs +1 -1
  150. package/dist/vue3/localization/index.cjs.map +1 -1
  151. package/dist/vue3/localization/index.js +48 -46
  152. package/dist/vue3/localization/index.js.map +1 -1
  153. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +2 -3
  154. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  155. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
  156. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  157. package/dist/vue3/types/components/button/button.vue.d.ts +1 -2
  158. package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
  159. package/dist/vue3/types/components/chip/chip.vue.d.ts +2 -3
  160. package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
  161. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
  162. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  163. package/dist/vue3/types/components/modal/modal.vue.d.ts +2 -3
  164. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  165. package/dist/vue3/types/components/notice/notice_action.vue.d.ts +2 -3
  166. package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
  167. package/dist/vue3/types/components/pagination/pagination.vue.d.ts +3 -4
  168. package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
  169. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +2 -3
  170. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  171. package/dist/vue3/types/components/radio/radio.vue.d.ts +1 -2
  172. package/dist/vue3/types/components/radio/radio.vue.d.ts.map +1 -1
  173. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +3 -1
  174. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
  175. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +3 -1
  176. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
  177. package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts +3 -0
  178. package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
  179. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +4 -3
  180. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  181. package/dist/vue3/types/components/stack/stack_constants.d.ts.map +1 -1
  182. package/dist/vue3/types/components/stack/utils.d.ts.map +1 -1
  183. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
  184. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  185. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
  186. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  187. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
  188. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  189. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
  190. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  191. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
  192. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  193. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
  194. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  195. package/dist/vue3/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts +2 -0
  196. package/dist/vue3/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts.map +1 -0
  197. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
  198. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  199. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
  200. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  201. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +2 -3
  202. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  203. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
  204. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  205. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
  206. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  207. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
  208. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  209. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
  210. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  211. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
  212. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  213. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
  214. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  215. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
  216. package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  217. package/package.json +4 -4
@@ -1,42 +1,42 @@
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";
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";
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
+ 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
24
  import { PluginKey as T, Plugin as Re } from "@tiptap/pm/state";
25
- import ve from "@tiptap/suggestion";
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";
25
+ import Ie from "@tiptap/suggestion";
26
+ import { emojiPattern as z } 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 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";
28
28
  import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
29
- import X from "../emoji/emoji.js";
30
- import { getEmojiData as Pe, emojiRegex as je, stringToUnicode as He, codeToEmojiData as j, emojiShortCodeRegex as Ke } from "../../common/emoji/index.js";
29
+ 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
31
  import Fe from "../list-item/list-item.js";
32
32
  import E from "../stack/stack.js";
33
33
  import B from "tippy.js";
34
- import { getPhoneNumberRegex as Ve, linkRegex as qe, warnIfUnmounted as Ue, returnFirstEl as K } from "../../common/utils/index.js";
34
+ import { getPhoneNumberRegex as Ve, linkRegex as qe, warnIfUnmounted as Ue, returnFirstEl as F } from "../../common/utils/index.js";
35
35
  import We from "@tiptap/extension-image";
36
- import H from "@tiptap/extension-mention";
37
- import J from "../link/link.js";
36
+ import K from "@tiptap/extension-mention";
37
+ import Y from "../link/link.js";
38
38
  import { DtIconLock as ze } from "@dialpad/dialtone-icons/vue3";
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";
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
40
  import Ye from "../avatar/avatar.js";
41
41
  import Ge from "@dialpad/dialtone-icons/vue3/hash";
42
42
  import Qe from "@dialpad/dialtone-icons/vue3/lock";
@@ -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: j(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",
@@ -285,14 +285,14 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
285
285
  }
286
286
  };
287
287
  }
288
- }, ft = /(:\w+:)$/, gt = new RegExp(W + "$"), _t = (e) => {
289
- if (e && j(e[0]))
288
+ }, ft = /(:\w+:)$/, gt = new RegExp(z + "$"), _t = (e) => {
289
+ if (e && H(e[0]))
290
290
  return { text: e[2] || e[0] };
291
- }, kt = (e) => [...e.matchAll(Ke)].filter((o) => j(o[0])).map((o) => ({
291
+ }, kt = (e) => [...e.matchAll(Ke)].filter((o) => H(o[0])).map((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 {
@@ -321,14 +321,14 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
321
321
  ];
322
322
  },
323
323
  renderText({ node: e }) {
324
- return He(j(e.attrs.code).unicode_output);
324
+ return He(H(e.attrs.code).unicode_output);
325
325
  },
326
326
  renderHTML({ HTMLAttributes: e }) {
327
327
  return ["emoji-component", b(this.options.HTMLAttributes, e)];
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,12 +432,12 @@ 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
  }
439
- const V = Ve(1, 15);
440
- function q(e, t, o, n, r, s) {
439
+ const q = Ve(1, 15);
440
+ function U(e, t, o, n, r, s) {
441
441
  if (!e)
442
442
  return;
443
443
  let i = o - t - 1;
@@ -446,16 +446,16 @@ function q(e, t, o, n, r, s) {
446
446
  e,
447
447
  i,
448
448
  "left",
449
- V
449
+ q
450
450
  ), p = P(
451
451
  e,
452
452
  a,
453
453
  "right",
454
- V
454
+ q
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) {
@@ -467,18 +467,18 @@ function Et(e) {
467
467
  if (t && !s)
468
468
  return;
469
469
  const { tr: i } = r, { textContent: a } = r.doc;
470
- t || q(a, 0, 0, a.length, i, e.type), t = !0;
471
- const c = oe(
470
+ t || U(a, 0, 0, a.length, i, e.type), t = !0;
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
480
480
  ).forEach(({ node: x, pos: L }) => {
481
- q(
481
+ U(
482
482
  x.textContent,
483
483
  L,
484
484
  y.from,
@@ -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 = W.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: j(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 = K.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
  },
@@ -625,13 +639,26 @@ const Mt = /* @__PURE__ */ g(vt, [["render", It]]), Bt = H.extend({
625
639
  text() {
626
640
  return this.$props.node.attrs.locked ? this.$props.node.attrs.name : "#" + this.$props.node.attrs.name;
627
641
  }
642
+ },
643
+ methods: {
644
+ handleClick() {
645
+ const e = {
646
+ name: this.$props.node.attrs.name,
647
+ id: this.$props.node.attrs.id,
648
+ locked: this.$props.node.attrs.locked
649
+ };
650
+ this.$props.editor.emit("channel-click", e);
651
+ }
628
652
  }
629
653
  };
630
654
  function Ot(e, t, o, n, r, s) {
631
655
  const i = l("dt-icon-lock"), a = l("dt-stack"), c = l("dt-link"), p = l("node-view-wrapper");
632
656
  return d(), m(p, { class: "d-d-inline-block" }, {
633
657
  default: u(() => [
634
- f(c, { kind: "mention" }, {
658
+ f(c, {
659
+ kind: "mention",
660
+ onClick: j(s.handleClick, ["prevent"])
661
+ }, {
635
662
  default: u(() => [
636
663
  f(a, {
637
664
  direction: "row",
@@ -648,12 +675,12 @@ function Ot(e, t, o, n, r, s) {
648
675
  })
649
676
  ]),
650
677
  _: 1
651
- })
678
+ }, 8, ["onClick"])
652
679
  ]),
653
680
  _: 1
654
681
  });
655
682
  }
656
- const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = H.extend({
683
+ const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = K.extend({
657
684
  name: "channel",
658
685
  addNodeView() {
659
686
  return I(Dt);
@@ -693,7 +720,7 @@ const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = H.extend({
693
720
  compatConfig: { MODE: 3 },
694
721
  name: "SlashCommandsComponent",
695
722
  components: {
696
- NodeViewWrapper: R
723
+ NodeViewWrapper: v
697
724
  },
698
725
  props: {
699
726
  ...$
@@ -728,7 +755,7 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
728
755
  text: r,
729
756
  match: n
730
757
  };
731
- }), Ft = H.extend({
758
+ }), Ft = K.extend({
732
759
  name: "slash-commands",
733
760
  group: "inline",
734
761
  inline: !0,
@@ -777,7 +804,7 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
777
804
  var o;
778
805
  const e = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) $`);
779
806
  return [
780
- ae({
807
+ ce({
781
808
  find: t,
782
809
  type: this.type,
783
810
  getAttributes(n) {
@@ -883,7 +910,7 @@ function zt(e, t, o, n, r, s) {
883
910
  default: u(() => [
884
911
  s.presenceText ? (d(), _("span", {
885
912
  key: 0,
886
- class: z(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
913
+ class: X(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
887
914
  }, h(s.presenceText), 3)) : w("", !0),
888
915
  s.status && s.presenceText ? (d(), _("div", Ut, " • ")) : w("", !0),
889
916
  s.status ? (d(), _("div", Wt, h(s.status), 1)) : w("", !0)
@@ -906,7 +933,7 @@ const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
906
933
  let e, t, o = !1;
907
934
  return {
908
935
  onStart: (n) => {
909
- e = new v(N, {
936
+ e = new R(N, {
910
937
  props: {
911
938
  itemComponent: M(Xt),
912
939
  itemType: "mention",
@@ -994,7 +1021,7 @@ const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
994
1021
  let e, t, o = !1;
995
1022
  return {
996
1023
  onStart: (n) => {
997
- e = new v(N, {
1024
+ e = new R(N, {
998
1025
  props: {
999
1026
  itemComponent: M(Qt),
1000
1027
  itemType: "channel",
@@ -1074,7 +1101,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1074
1101
  let e, t, o = !1;
1075
1102
  return {
1076
1103
  onStart: (n) => {
1077
- e = new v(N, {
1104
+ e = new R(N, {
1078
1105
  parent: void 0,
1079
1106
  props: {
1080
1107
  itemComponent: M(sn),
@@ -1119,8 +1146,8 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1119
1146
  compatConfig: { MODE: 3 },
1120
1147
  name: "DtRichTextEditor",
1121
1148
  components: {
1122
- EditorContent: Q,
1123
- BubbleMenu: G,
1149
+ EditorContent: Z,
1150
+ BubbleMenu: Q,
1124
1151
  DtButton: tt,
1125
1152
  DtStack: E
1126
1153
  },
@@ -1464,7 +1491,19 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1464
1491
  * @event selected-command
1465
1492
  * @type {String}
1466
1493
  */
1467
- "selected-command"
1494
+ "selected-command",
1495
+ /**
1496
+ * Event fired when a mention is clicked
1497
+ * @event mention-click
1498
+ * @type {Object}
1499
+ */
1500
+ "mention-click",
1501
+ /**
1502
+ * Event fired when a channel is clicked
1503
+ * @event channel-click
1504
+ * @type {Object}
1505
+ */
1506
+ "channel-click"
1468
1507
  ],
1469
1508
  data() {
1470
1509
  return {
@@ -1472,7 +1511,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
1472
1511
  tippyOptions: {
1473
1512
  appendTo: () => {
1474
1513
  var e;
1475
- return (e = K(this.$refs.editor.$el).getRootNode()) == null ? void 0 : e.querySelector("body");
1514
+ return (e = F(this.$refs.editor.$el).getRootNode()) == null ? void 0 : e.querySelector("body");
1476
1515
  },
1477
1516
  placement: "top-start"
1478
1517
  },
@@ -1610,15 +1649,15 @@ ${this.processNodeContent(e)}
1610
1649
  },
1611
1650
  // eslint-disable-next-line complexity
1612
1651
  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({
1652
+ const e = [he, Te, Se, pe];
1653
+ e.push(this.useDivTags ? vt : W), this.allowBold && e.push(ge), this.allowBlockquote && e.push(le), this.allowBulletList && (e.push(_e), e.push(we.extend({
1615
1654
  renderText({ node: n }) {
1616
1655
  return n.textContent;
1617
1656
  }
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 })
1657
+ })), e.push(Ce)), this.allowItalic && e.push(ke), this.allowStrike && e.push(be), this.allowUnderline && e.push(xe), this.placeholder && e.push(
1658
+ fe.configure({ placeholder: this.placeholder })
1620
1659
  );
1621
- const t = this, o = ce.create({
1660
+ const t = this, o = de.create({
1622
1661
  addKeyboardShortcuts() {
1623
1662
  return {
1624
1663
  "Shift-Enter": ({ editor: n }) => t.allowLineBreaks ? !1 : (n.commands.first(({ commands: r }) => [
@@ -1632,7 +1671,7 @@ ${this.processNodeContent(e)}
1632
1671
  };
1633
1672
  }
1634
1673
  });
1635
- if (e.push(o), this.link && e.push(ke.extend({
1674
+ if (e.push(o), this.link && e.push(ye.extend({
1636
1675
  inclusive: !1,
1637
1676
  addKeyboardShortcuts() {
1638
1677
  return {
@@ -1645,7 +1684,7 @@ ${this.processNodeContent(e)}
1645
1684
  },
1646
1685
  openOnClick: !1,
1647
1686
  autolink: !0,
1648
- protocols: F
1687
+ protocols: V
1649
1688
  })), this.customLink && e.push(this.getExtension(Lt, this.customLink)), this.mentionSuggestion) {
1650
1689
  const n = { ...this.mentionSuggestion, ...Jt };
1651
1690
  e.push(Bt.configure({ suggestion: n }));
@@ -1663,9 +1702,9 @@ ${this.processNodeContent(e)}
1663
1702
  }
1664
1703
  }));
1665
1704
  }
1666
- return e.push(yt), e.push(Te.configure({
1705
+ return e.push(yt), e.push(Ee.configure({
1667
1706
  types: ["paragraph"]
1668
- })), this.allowCode && e.push(ue), this.allowCodeblock && e.push(le.extend({
1707
+ })), this.allowCode && e.push(me), this.allowCodeblock && e.push(ue.extend({
1669
1708
  renderText({ node: n }) {
1670
1709
  return `\`\`\`
1671
1710
  ${n.textContent}
@@ -1675,7 +1714,7 @@ ${n.textContent}
1675
1714
  HTMLAttributes: {
1676
1715
  class: "d-rich-text-editor__code-block"
1677
1716
  }
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;
1717
+ })), 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
1718
  },
1680
1719
  inputAttrs() {
1681
1720
  const e = {
@@ -1715,11 +1754,11 @@ ${n.textContent}
1715
1754
  this.destroyEditor();
1716
1755
  },
1717
1756
  mounted() {
1718
- Ue(K(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
1757
+ Ue(F(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
1719
1758
  },
1720
1759
  methods: {
1721
1760
  createEditor() {
1722
- this.editor = new Z({
1761
+ this.editor = new ee({
1723
1762
  autofocus: this.autoFocus,
1724
1763
  content: this.modelValue,
1725
1764
  editable: this.editable,
@@ -1779,7 +1818,7 @@ ${n.textContent}
1779
1818
  const e = this.editor.getAttributes("link").href;
1780
1819
  window.open(e, "_blank");
1781
1820
  },
1782
- setLink(e, t, o, n = F, r) {
1821
+ setLink(e, t, o, n = V, r) {
1783
1822
  var a, c, p;
1784
1823
  if (!e) {
1785
1824
  this.removeLink();
@@ -1793,7 +1832,7 @@ ${n.textContent}
1793
1832
  const o = this.getOutput();
1794
1833
  if (!(t && Ze(e, o))) {
1795
1834
  if (typeof e == "string" && this.outputFormat === "text") {
1796
- const n = new RegExp(`(${W})`, "g");
1835
+ const n = new RegExp(`(${z})`, "g");
1797
1836
  e = e == null ? void 0 : e.replace(n, '<emoji-component code="$1"></emoji-component>');
1798
1837
  }
1799
1838
  this.editor.commands.setContent(e, !1, { preserveWhitespace: "full" });
@@ -1894,6 +1933,10 @@ ${n.textContent}
1894
1933
  this.$emit("focus", e);
1895
1934
  }), this.editor.on("blur", ({ event: e }) => {
1896
1935
  this.$emit("blur", e);
1936
+ }), this.editor.on("mention-click", (e) => {
1937
+ this.$emit("mention-click", e);
1938
+ }), this.editor.on("channel-click", (e) => {
1939
+ this.$emit("channel-click", e);
1897
1940
  });
1898
1941
  },
1899
1942
  getOutput() {