@dialpad/dialtone-vue 2.193.5 → 2.194.1

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 (239) hide show
  1. package/dist/common/mixins/index.cjs +1 -1
  2. package/dist/common/mixins/index.js +2 -4
  3. package/dist/common/mixins/index.js.map +1 -1
  4. package/dist/component-documentation.json +1 -1
  5. package/dist/dialtone-vue.cjs +1 -1
  6. package/dist/dialtone-vue.js +345 -347
  7. package/dist/dialtone-vue.js.map +1 -1
  8. package/dist/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  9. package/dist/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  10. package/dist/lib/attachment-carousel/attachment-carousel.js +16 -12
  11. package/dist/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  12. package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  13. package/dist/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  14. package/dist/lib/breadcrumbs/breadcrumbs.js +6 -6
  15. package/dist/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  16. package/dist/lib/button/button.cjs +1 -1
  17. package/dist/lib/button/button.cjs.map +1 -1
  18. package/dist/lib/button/button.js +6 -6
  19. package/dist/lib/button/button.js.map +1 -1
  20. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  21. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  22. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +18 -18
  23. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  24. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  25. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  26. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +14 -14
  27. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  28. package/dist/lib/chip/chip.cjs +1 -1
  29. package/dist/lib/chip/chip.cjs.map +1 -1
  30. package/dist/lib/chip/chip.js +7 -7
  31. package/dist/lib/chip/chip.js.map +1 -1
  32. package/dist/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  33. package/dist/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  34. package/dist/lib/contact-centers-row/contact-centers-row.js +13 -13
  35. package/dist/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  36. package/dist/lib/datepicker/datepicker.cjs +1 -1
  37. package/dist/lib/datepicker/datepicker.cjs.map +1 -1
  38. package/dist/lib/datepicker/datepicker.js +26 -26
  39. package/dist/lib/datepicker/datepicker.js.map +1 -1
  40. package/dist/lib/datepicker/formatUtils.cjs +1 -1
  41. package/dist/lib/datepicker/formatUtils.cjs.map +1 -1
  42. package/dist/lib/datepicker/formatUtils.js +21 -20
  43. package/dist/lib/datepicker/formatUtils.js.map +1 -1
  44. package/dist/lib/dropdown/dropdown.cjs +1 -1
  45. package/dist/lib/dropdown/dropdown.cjs.map +1 -1
  46. package/dist/lib/dropdown/dropdown.js +24 -26
  47. package/dist/lib/dropdown/dropdown.js.map +1 -1
  48. package/dist/lib/editor/editor.cjs +1 -1
  49. package/dist/lib/editor/editor.cjs.map +1 -1
  50. package/dist/lib/editor/editor.js +17 -17
  51. package/dist/lib/editor/editor.js.map +1 -1
  52. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  53. package/dist/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  54. package/dist/lib/emoji-picker/emoji-picker.js +7 -6
  55. package/dist/lib/emoji-picker/emoji-picker.js.map +1 -1
  56. package/dist/lib/emoji-row/emoji-row.cjs +1 -1
  57. package/dist/lib/emoji-row/emoji-row.cjs.map +1 -1
  58. package/dist/lib/emoji-row/emoji-row.js +24 -20
  59. package/dist/lib/emoji-row/emoji-row.js.map +1 -1
  60. package/dist/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  61. package/dist/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  62. package/dist/lib/feed-item-pill/feed-item-pill.js +8 -8
  63. package/dist/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  64. package/dist/lib/general-row/general-row.cjs +1 -1
  65. package/dist/lib/general-row/general-row.cjs.map +1 -1
  66. package/dist/lib/general-row/general-row.js +17 -17
  67. package/dist/lib/general-row/general-row.js.map +1 -1
  68. package/dist/lib/group-row/group-row.cjs +1 -1
  69. package/dist/lib/group-row/group-row.cjs.map +1 -1
  70. package/dist/lib/group-row/group-row.js +11 -7
  71. package/dist/lib/group-row/group-row.js.map +1 -1
  72. package/dist/lib/icon/icon.cjs +1 -1
  73. package/dist/lib/icon/icon.cjs.map +1 -1
  74. package/dist/lib/icon/icon.js +10 -6
  75. package/dist/lib/icon/icon.js.map +1 -1
  76. package/dist/lib/image-viewer/image-viewer.cjs +1 -1
  77. package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
  78. package/dist/lib/image-viewer/image-viewer.js +8 -7
  79. package/dist/lib/image-viewer/image-viewer.js.map +1 -1
  80. package/dist/lib/ivr-node/ivr-node.cjs +1 -1
  81. package/dist/lib/ivr-node/ivr-node.cjs.map +1 -1
  82. package/dist/lib/ivr-node/ivr-node.js +17 -17
  83. package/dist/lib/ivr-node/ivr-node.js.map +1 -1
  84. package/dist/lib/loader/loader.cjs +1 -1
  85. package/dist/lib/loader/loader.cjs.map +1 -1
  86. package/dist/lib/loader/loader.js +12 -8
  87. package/dist/lib/loader/loader.js.map +1 -1
  88. package/dist/lib/message-input/message-input-link.cjs +1 -1
  89. package/dist/lib/message-input/message-input-link.cjs.map +1 -1
  90. package/dist/lib/message-input/message-input-link.js +15 -15
  91. package/dist/lib/message-input/message-input-link.js.map +1 -1
  92. package/dist/lib/message-input/message-input-topbar.cjs +1 -1
  93. package/dist/lib/message-input/message-input-topbar.cjs.map +1 -1
  94. package/dist/lib/message-input/message-input-topbar.js +14 -10
  95. package/dist/lib/message-input/message-input-topbar.js.map +1 -1
  96. package/dist/lib/message-input/message-input.cjs +1 -1
  97. package/dist/lib/message-input/message-input.cjs.map +1 -1
  98. package/dist/lib/message-input/message-input.js +14 -10
  99. package/dist/lib/message-input/message-input.js.map +1 -1
  100. package/dist/lib/modal/modal.cjs +1 -1
  101. package/dist/lib/modal/modal.cjs.map +1 -1
  102. package/dist/lib/modal/modal.js +12 -11
  103. package/dist/lib/modal/modal.js.map +1 -1
  104. package/dist/lib/notice/notice-action.cjs +1 -1
  105. package/dist/lib/notice/notice-action.cjs.map +1 -1
  106. package/dist/lib/notice/notice-action.js +10 -6
  107. package/dist/lib/notice/notice-action.js.map +1 -1
  108. package/dist/lib/pagination/pagination.cjs +1 -1
  109. package/dist/lib/pagination/pagination.cjs.map +1 -1
  110. package/dist/lib/pagination/pagination.js +7 -7
  111. package/dist/lib/pagination/pagination.js.map +1 -1
  112. package/dist/lib/popover/popover-header-footer.cjs +1 -1
  113. package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
  114. package/dist/lib/popover/popover-header-footer.js +13 -9
  115. package/dist/lib/popover/popover-header-footer.js.map +1 -1
  116. package/dist/lib/rich-text-editor/rich-text-editor.cjs +2 -2
  117. package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  118. package/dist/lib/rich-text-editor/rich-text-editor.js +61 -57
  119. package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  120. package/dist/lib/toast/toast.cjs.map +1 -1
  121. package/dist/lib/toast/toast.js.map +1 -1
  122. package/dist/lib/unread-pill/unread-pill.cjs +1 -1
  123. package/dist/lib/unread-pill/unread-pill.cjs.map +1 -1
  124. package/dist/lib/unread-pill/unread-pill.js +15 -11
  125. package/dist/lib/unread-pill/unread-pill.js.map +1 -1
  126. package/dist/localization/de-DE.cjs +1 -13
  127. package/dist/localization/de-DE.cjs.map +1 -1
  128. package/dist/localization/de-DE.js +1 -13
  129. package/dist/localization/de-DE.js.map +1 -1
  130. package/dist/localization/es-LA.cjs +1 -13
  131. package/dist/localization/es-LA.cjs.map +1 -1
  132. package/dist/localization/es-LA.js +1 -13
  133. package/dist/localization/es-LA.js.map +1 -1
  134. package/dist/localization/fr-FR.cjs +1 -13
  135. package/dist/localization/fr-FR.cjs.map +1 -1
  136. package/dist/localization/fr-FR.js +1 -13
  137. package/dist/localization/fr-FR.js.map +1 -1
  138. package/dist/localization/index.cjs +1 -1
  139. package/dist/localization/index.cjs.map +1 -1
  140. package/dist/localization/index.js +59 -53
  141. package/dist/localization/index.js.map +1 -1
  142. package/dist/localization/it-IT.cjs +1 -13
  143. package/dist/localization/it-IT.cjs.map +1 -1
  144. package/dist/localization/it-IT.js +1 -13
  145. package/dist/localization/it-IT.js.map +1 -1
  146. package/dist/localization/ja-JP.cjs +1 -8
  147. package/dist/localization/ja-JP.cjs.map +1 -1
  148. package/dist/localization/ja-JP.js +1 -8
  149. package/dist/localization/ja-JP.js.map +1 -1
  150. package/dist/localization/nl-NL.cjs +1 -13
  151. package/dist/localization/nl-NL.cjs.map +1 -1
  152. package/dist/localization/nl-NL.js +1 -13
  153. package/dist/localization/nl-NL.js.map +1 -1
  154. package/dist/localization/pt-BR.cjs +1 -13
  155. package/dist/localization/pt-BR.cjs.map +1 -1
  156. package/dist/localization/pt-BR.js +1 -13
  157. package/dist/localization/pt-BR.js.map +1 -1
  158. package/dist/localization/ru-RU.cjs +1 -23
  159. package/dist/localization/ru-RU.cjs.map +1 -1
  160. package/dist/localization/ru-RU.js +1 -23
  161. package/dist/localization/ru-RU.js.map +1 -1
  162. package/dist/localization/zh-CN.cjs +1 -8
  163. package/dist/localization/zh-CN.cjs.map +1 -1
  164. package/dist/localization/zh-CN.js +1 -8
  165. package/dist/localization/zh-CN.js.map +1 -1
  166. package/dist/shared/sr_only_close_button.cjs +1 -1
  167. package/dist/shared/sr_only_close_button.cjs.map +1 -1
  168. package/dist/shared/sr_only_close_button.js +14 -10
  169. package/dist/shared/sr_only_close_button.js.map +1 -1
  170. package/dist/types/common/mixins/index.d.ts +0 -1
  171. package/dist/types/common/sr_only_close_button.vue.d.ts +5 -8
  172. package/dist/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  173. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +3 -5
  174. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  175. package/dist/types/components/button/button.vue.d.ts +4 -6
  176. package/dist/types/components/button/button.vue.d.ts.map +1 -1
  177. package/dist/types/components/chip/chip.vue.d.ts +6 -8
  178. package/dist/types/components/chip/chip.vue.d.ts.map +1 -1
  179. package/dist/types/components/datepicker/formatUtils.d.ts.map +1 -1
  180. package/dist/types/components/datepicker/modules/calendar.vue.d.ts +3 -5
  181. package/dist/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  182. package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +3 -5
  183. package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  184. package/dist/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  185. package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -5
  186. package/dist/types/components/image_viewer/image_viewer.vue.d.ts +2 -4
  187. package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  188. package/dist/types/components/loader/loader.vue.d.ts +5 -6
  189. package/dist/types/components/loader/loader.vue.d.ts.map +1 -1
  190. package/dist/types/components/modal/modal.vue.d.ts +2 -4
  191. package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
  192. package/dist/types/components/notice/notice_action.vue.d.ts +5 -6
  193. package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
  194. package/dist/types/components/pagination/pagination.vue.d.ts +4 -6
  195. package/dist/types/components/pagination/pagination.vue.d.ts.map +1 -1
  196. package/dist/types/components/popover/popover_header_footer.vue.d.ts +5 -6
  197. package/dist/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  198. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -7
  199. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  200. package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  201. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +5 -7
  202. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  203. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +5 -7
  204. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  205. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +4 -6
  206. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  207. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +3 -5
  208. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  209. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +5 -6
  210. package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  211. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -16
  212. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  213. package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +5 -6
  214. package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  215. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +6 -8
  216. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  217. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +5 -6
  218. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  219. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -7
  220. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  221. package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +3 -5
  222. package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  223. package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +5 -6
  224. package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  225. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +5 -7
  226. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  227. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +17 -19
  228. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  229. package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +8 -9
  230. package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  231. package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +5 -6
  232. package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  233. package/package.json +2 -3
  234. package/dist/common/mixins/localization.cjs +0 -2
  235. package/dist/common/mixins/localization.cjs.map +0 -1
  236. package/dist/common/mixins/localization.js +0 -10
  237. package/dist/common/mixins/localization.js.map +0 -1
  238. package/dist/types/common/mixins/localization.d.ts +0 -8
  239. package/dist/types/common/mixins/localization.d.ts.map +0 -1
@@ -1,10 +1,10 @@
1
- import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as x, EditorContent as H, BubbleMenu as j, Editor as F } from "../../node_modules/@tiptap/vue-2.js";
2
- import { Node as N, mergeAttributes as m, InputRule as q, nodePasteRule as E, getMarksBetween as U, combineTransactionSteps as K, getChangedRanges as W, findChildrenInRange as V, Mark as z, nodeInputRule as X, Extension as J } from "@tiptap/core";
1
+ import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as v, EditorContent as H, BubbleMenu as j, Editor as F } from "../../node_modules/@tiptap/vue-2.js";
2
+ import { Node as N, mergeAttributes as m, InputRule as K, nodePasteRule as E, getMarksBetween as q, combineTransactionSteps as U, getChangedRanges as W, findChildrenInRange as V, Mark as z, nodeInputRule as X, Extension as J } from "@tiptap/core";
3
3
  import Y from "@tiptap/extension-blockquote";
4
4
  import G from "@tiptap/extension-code-block";
5
5
  import Q from "@tiptap/extension-code";
6
6
  import Z from "@tiptap/extension-document";
7
- import O from "@tiptap/extension-paragraph";
7
+ import B from "@tiptap/extension-paragraph";
8
8
  import ee from "@tiptap/extension-placeholder";
9
9
  import te from "@tiptap/extension-hard-break";
10
10
  import ne from "@tiptap/extension-bold";
@@ -23,25 +23,25 @@ import fe from "@tiptap/extension-color";
23
23
  import pe from "@tiptap/extension-font-family";
24
24
  import { PluginKey as f, Plugin as ge } from "@tiptap/pm/state";
25
25
  import _e from "@tiptap/suggestion";
26
- import { emojiPattern as B } from "regex-combined-emojis";
26
+ import { emojiPattern as O } from "regex-combined-emojis";
27
27
  import { n as c } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
28
28
  import P from "../emoji/emoji.js";
29
- import { stringToUnicode as ye, codeToEmojiData as L, emojiRegex as we, emojiShortCodeRegex as xe } from "../../common/emoji/index.js";
30
- import { emojisIndexed as ve } from "@dialpad/dialtone-emojis";
29
+ import { stringToUnicode as ye, codeToEmojiData as L, emojiRegex as we, emojiShortCodeRegex as ve } from "../../common/emoji/index.js";
30
+ import { emojisIndexed as xe } from "@dialpad/dialtone-emojis";
31
31
  import be from "../list-item/list-item.js";
32
- import v from "../stack/stack.js";
32
+ import x from "../stack/stack.js";
33
33
  import b from "tippy.js";
34
34
  import { linkRegex as ke, getPhoneNumberRegex as Ce, warnIfUnmounted as Te } from "../../common/utils/index.js";
35
35
  import Ee from "@tiptap/extension-image";
36
36
  import R from "@tiptap/extension-mention";
37
- import M from "../link/link.js";
37
+ import D from "../link/link.js";
38
38
  import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Se, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Le, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as $ } from "./rich-text-editor-constants.js";
39
39
  import Re from "../avatar/avatar.js";
40
40
  import $e from "@dialpad/dialtone-icons/vue2/hash";
41
41
  import Ie from "@dialpad/dialtone-icons/vue2/lock";
42
42
  import Ae from "deep-equal";
43
+ import { DialtoneLocalization as Be } from "../../localization/index.js";
43
44
  import Oe from "../button/button.js";
44
- import Be from "../../common/mixins/localization.js";
45
45
  const Pe = {
46
46
  name: "EmojiComponent",
47
47
  components: {
@@ -50,13 +50,13 @@ const Pe = {
50
50
  },
51
51
  props: y
52
52
  };
53
- var Me = function() {
53
+ var De = function() {
54
54
  var t = this, n = t._self._c;
55
55
  return n("node-view-wrapper", { staticClass: "d-d-inline-block d-va-bottom d-lh0" }, [n("dt-emoji", { attrs: { size: "500", code: t.node.attrs.code } })], 1);
56
- }, De = [], He = /* @__PURE__ */ c(
56
+ }, Me = [], He = /* @__PURE__ */ c(
57
57
  Pe,
58
- Me,
59
- De
58
+ De,
59
+ Me
60
60
  );
61
61
  const je = He.exports, Fe = {
62
62
  name: "SuggestionList",
@@ -143,16 +143,16 @@ var Ne = function() {
143
143
  return o.preventDefault(), t.onKeyDown.apply(null, arguments);
144
144
  } } }, [n(t.itemComponent, { tag: "component", attrs: { item: r } })], 1);
145
145
  }), 1)]);
146
- }, qe = [], Ue = /* @__PURE__ */ c(
146
+ }, Ke = [], qe = /* @__PURE__ */ c(
147
147
  Fe,
148
148
  Ne,
149
- qe
149
+ Ke
150
150
  );
151
- const k = Ue.exports, Ke = {
151
+ const k = qe.exports, Ue = {
152
152
  name: "EmojiSuggestion",
153
153
  components: {
154
154
  DtEmoji: P,
155
- DtStack: v
155
+ DtStack: x
156
156
  },
157
157
  props: {
158
158
  item: {
@@ -165,7 +165,7 @@ var We = function() {
165
165
  var t = this, n = t._self._c;
166
166
  return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [n("dt-emoji", { attrs: { size: "200", code: t.item.code } }), t._v(" " + t._s(t.item.code) + " ")], 1);
167
167
  }, Ve = [], ze = /* @__PURE__ */ c(
168
- Ke,
168
+ Ue,
169
169
  We,
170
170
  Ve
171
171
  );
@@ -189,7 +189,7 @@ const Xe = ze.exports, C = {
189
189
  items: ({ query: e }) => {
190
190
  if (e.length < 2)
191
191
  return [];
192
- const t = Object.values(ve);
192
+ const t = Object.values(xe);
193
193
  return e = e.toLowerCase(), t.filter(
194
194
  (r) => [
195
195
  r.name,
@@ -253,10 +253,10 @@ const Xe = ze.exports, C = {
253
253
  }
254
254
  };
255
255
  }
256
- }, Ge = /(:\w+:)$/, Qe = new RegExp(B + "$"), Ze = (e) => {
256
+ }, Ge = /(:\w+:)$/, Qe = new RegExp(O + "$"), Ze = (e) => {
257
257
  if (e && L(e[0]))
258
258
  return { text: e[2] || e[0] };
259
- }, et = (e) => [...e.matchAll(xe)].filter((n) => L(n[0])).map((n) => ({
259
+ }, et = (e) => [...e.matchAll(ve)].filter((n) => L(n[0])).map((n) => ({
260
260
  index: n.index,
261
261
  text: n[0],
262
262
  match: n
@@ -272,7 +272,7 @@ const Xe = ze.exports, C = {
272
272
  selectable: !1,
273
273
  atom: !0,
274
274
  addNodeView() {
275
- return x(je);
275
+ return v(je);
276
276
  },
277
277
  addAttributes() {
278
278
  return {
@@ -296,7 +296,7 @@ const Xe = ze.exports, C = {
296
296
  },
297
297
  addInputRules() {
298
298
  return [
299
- new q({
299
+ new K({
300
300
  find: (e) => {
301
301
  const t = e.match(Ge) || e.match(Qe);
302
302
  if (t)
@@ -400,7 +400,7 @@ function S(e, t, n, r) {
400
400
  return o <= 0 || o >= e.length || o === t ? s : S(e, o, n, r);
401
401
  }
402
402
  function ot(e, t, n, r) {
403
- const s = Math.max(e.from - 1, 0), o = Math.min(e.to + 1, t.content.size), i = U(s, o, t);
403
+ const s = Math.max(e.from - 1, 0), o = Math.min(e.to + 1, t.content.size), i = q(s, o, t);
404
404
  for (const a of i)
405
405
  a.mark.type === r && n.removeMark(a.from, a.to, r);
406
406
  }
@@ -422,8 +422,8 @@ function A(e, t, n, r, s, o) {
422
422
  I
423
423
  ), u = e.slice(l.from, d.to);
424
424
  nt(u, ke, rt).forEach((T) => {
425
- const h = st(T[0]), g = t + l.from + T.index + 1, D = g + h.length;
426
- s.addMark(g, D, o.create());
425
+ const h = st(T[0]), g = t + l.from + T.index + 1, M = g + h.length;
426
+ s.addMark(g, M, o.create());
427
427
  });
428
428
  }
429
429
  function at(e) {
@@ -436,7 +436,7 @@ function at(e) {
436
436
  return;
437
437
  const { tr: i } = s, { textContent: a } = s.doc;
438
438
  t || A(a, 0, 0, a.length, i, e.type), t = !0;
439
- const l = K(
439
+ const l = U(
440
440
  r.doc,
441
441
  [...n]
442
442
  );
@@ -506,7 +506,7 @@ const lt = {
506
506
  }
507
507
  };
508
508
  }
509
- }).configure({ inline: !0, allowBase64: !0 }), ut = O.extend({
509
+ }).configure({ inline: !0, allowBase64: !0 }), ut = B.extend({
510
510
  parseHTML() {
511
511
  return [{ tag: "div" }];
512
512
  },
@@ -517,7 +517,7 @@ const lt = {
517
517
  name: "MentionComponent",
518
518
  components: {
519
519
  NodeViewWrapper: _,
520
- DtLink: M
520
+ DtLink: D
521
521
  },
522
522
  props: y,
523
523
  computed: {
@@ -536,7 +536,7 @@ var ht = function() {
536
536
  );
537
537
  const gt = pt.exports, _t = R.extend({
538
538
  addNodeView() {
539
- return x(gt);
539
+ return v(gt);
540
540
  },
541
541
  parseHTML() {
542
542
  return [
@@ -573,7 +573,7 @@ const gt = pt.exports, _t = R.extend({
573
573
  name: "ChannelComponent",
574
574
  components: {
575
575
  NodeViewWrapper: _,
576
- DtLink: M
576
+ DtLink: D
577
577
  },
578
578
  props: y,
579
579
  computed: {
@@ -585,15 +585,15 @@ const gt = pt.exports, _t = R.extend({
585
585
  var wt = function() {
586
586
  var t = this, n = t._self._c;
587
587
  return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [t._v(" " + t._s(t.text) + " ")])], 1);
588
- }, xt = [], vt = /* @__PURE__ */ c(
588
+ }, vt = [], xt = /* @__PURE__ */ c(
589
589
  yt,
590
590
  wt,
591
- xt
591
+ vt
592
592
  );
593
- const bt = vt.exports, kt = R.extend({
593
+ const bt = xt.exports, kt = R.extend({
594
594
  name: "channel",
595
595
  addNodeView() {
596
- return x(bt);
596
+ return v(bt);
597
597
  },
598
598
  parseHTML() {
599
599
  return [
@@ -680,7 +680,7 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
680
680
  };
681
681
  },
682
682
  addNodeView() {
683
- return x(Lt);
683
+ return v(Lt);
684
684
  },
685
685
  parseHTML() {
686
686
  return [
@@ -743,7 +743,7 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
743
743
  name: "MentionSuggestion",
744
744
  components: {
745
745
  DtAvatar: Re,
746
- DtStack: v
746
+ DtStack: x
747
747
  },
748
748
  props: {
749
749
  item: {
@@ -783,12 +783,12 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
783
783
  var At = function() {
784
784
  var t = this, n = t._self._c;
785
785
  return n("dt-stack", { staticClass: "d-mention-suggestion__container", attrs: { direction: "row", gap: "400" } }, [n("dt-avatar", { attrs: { "full-name": t.name, "image-src": t.avatarSrc, "image-alt": t.name, "show-presence": t.showDetails, presence: t.presence, size: "sm" } }), n("dt-stack", { staticClass: "d-mention-suggestion__details-container", attrs: { gap: "100" } }, [n("span", { staticClass: "d-mention-suggestion__name" }, [t._v(" " + t._s(t.name) + " ")]), t.showDetails ? n("dt-stack", { staticClass: "d-label--sm-plain", attrs: { direction: "row", gap: "300" } }, [t.presenceText ? n("span", { staticClass: "d-mention-suggestion__presence", class: [t.presenceFontColorClass] }, [t._v(" " + t._s(t.presenceText) + " ")]) : t._e(), t.status && t.presenceText ? n("div", { staticClass: "d-mention-suggestion__divider" }, [t._v(" • ")]) : t._e(), t.status ? n("div", { staticClass: "d-mention-suggestion__status" }, [t._v(" " + t._s(t.status) + " ")]) : t._e()]) : t._e()], 1)], 1);
786
- }, Ot = [], Bt = /* @__PURE__ */ c(
786
+ }, Bt = [], Ot = /* @__PURE__ */ c(
787
787
  It,
788
788
  At,
789
- Ot
789
+ Bt
790
790
  );
791
- const Pt = Bt.exports, Mt = {
791
+ const Pt = Ot.exports, Dt = {
792
792
  // This function comes from the user and passed to the editor directly.
793
793
  // This will also activate the mention plugin on the editor
794
794
  // items: ({ query }) => { return [] },
@@ -838,10 +838,10 @@ const Pt = Bt.exports, Mt = {
838
838
  }
839
839
  };
840
840
  }
841
- }, Dt = {
841
+ }, Mt = {
842
842
  name: "ChannelSuggestion",
843
843
  components: {
844
- DtStack: v,
844
+ DtStack: x,
845
845
  DtIconHash: $e,
846
846
  DtIconLock: Ie
847
847
  },
@@ -861,11 +861,11 @@ var Ht = function() {
861
861
  var t = this, n = t._self._c;
862
862
  return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [t.item.locked ? n("dt-icon-lock", { attrs: { size: "300" } }) : n("dt-icon-hash", { attrs: { size: "300" } }), n("span", [t._v(t._s(t.name))])], 1);
863
863
  }, jt = [], Ft = /* @__PURE__ */ c(
864
- Dt,
864
+ Mt,
865
865
  Ht,
866
866
  jt
867
867
  );
868
- const Nt = Ft.exports, qt = {
868
+ const Nt = Ft.exports, Kt = {
869
869
  // This function comes from the user and passed to the editor directly.
870
870
  // This will also activate the mention plugin on the editor
871
871
  // items: ({ query }) => { return [] },
@@ -915,7 +915,7 @@ const Nt = Ft.exports, qt = {
915
915
  }
916
916
  };
917
917
  }
918
- }, Ut = {
918
+ }, qt = {
919
919
  name: "SlashCommandSuggestion",
920
920
  props: {
921
921
  item: {
@@ -935,12 +935,12 @@ const Nt = Ft.exports, qt = {
935
935
  }
936
936
  }
937
937
  };
938
- var Kt = function() {
938
+ var Ut = function() {
939
939
  var t = this, n = t._self._c;
940
940
  return n("div", [n("div", { staticClass: "d-body--md-compact" }, [n("span", [t._v("/" + t._s(t.command))]), t.parametersExample ? n("span", [t._v(" " + t._s(t.parametersExample))]) : t._e()]), n("div", { staticClass: "d-body--sm d-fc-tertiary" }, [t._v(" " + t._s(t.description) + " ")])]);
941
941
  }, Wt = [], Vt = /* @__PURE__ */ c(
942
+ qt,
942
943
  Ut,
943
- Kt,
944
944
  Wt
945
945
  );
946
946
  const zt = Vt.exports, Xt = {
@@ -1000,9 +1000,8 @@ const zt = Vt.exports, Xt = {
1000
1000
  EditorContent: H,
1001
1001
  BubbleMenu: j,
1002
1002
  DtButton: Oe,
1003
- DtStack: v
1003
+ DtStack: x
1004
1004
  },
1005
- mixins: [Be],
1006
1005
  props: {
1007
1006
  /**
1008
1007
  * Value of the input. The object format should match TipTap's JSON
@@ -1348,7 +1347,8 @@ const zt = Vt.exports, Xt = {
1348
1347
  return (e = this.$refs.editor.$el.getRootNode()) == null ? void 0 : e.querySelector("body");
1349
1348
  },
1350
1349
  placement: "top-start"
1351
- }
1350
+ },
1351
+ i18n: new Be()
1352
1352
  };
1353
1353
  },
1354
1354
  computed: {
@@ -1366,7 +1366,7 @@ const zt = Vt.exports, Xt = {
1366
1366
  // eslint-disable-next-line complexity
1367
1367
  extensions() {
1368
1368
  const e = [Z, de, me, te];
1369
- e.push(this.useDivTags ? ut : O), this.allowBlockquote && e.push(Y), this.allowBold && e.push(ne), this.allowBulletList && (e.push(re), e.push(oe.extend({
1369
+ e.push(this.useDivTags ? ut : B), this.allowBlockquote && e.push(Y), this.allowBold && e.push(ne), this.allowBulletList && (e.push(re), e.push(oe.extend({
1370
1370
  renderText({ node: r }) {
1371
1371
  return r.textContent;
1372
1372
  }
@@ -1395,11 +1395,11 @@ const zt = Vt.exports, Xt = {
1395
1395
  autolink: !0,
1396
1396
  protocols: $
1397
1397
  })), this.customLink && e.push(this.getExtension(ct, this.customLink)), this.mentionSuggestion) {
1398
- const r = { ...this.mentionSuggestion, ...Mt };
1398
+ const r = { ...this.mentionSuggestion, ...Dt };
1399
1399
  e.push(_t.configure({ suggestion: r }));
1400
1400
  }
1401
1401
  if (this.channelSuggestion) {
1402
- const r = { ...this.channelSuggestion, ...qt };
1402
+ const r = { ...this.channelSuggestion, ...Kt };
1403
1403
  e.push(kt.configure({ suggestion: r }));
1404
1404
  }
1405
1405
  if (this.slashCommandSuggestion) {
@@ -1480,7 +1480,11 @@ ${r.textContent}
1480
1480
  ...this.inputAttrs,
1481
1481
  class: this.inputClass
1482
1482
  },
1483
- handleKeyDown: (e, t) => !!(this.preventTyping && t.key !== "Backspace"),
1483
+ handleKeyDown: (e, t) => {
1484
+ if (!this.preventTyping) return !1;
1485
+ const n = ["Backspace"];
1486
+ return !this.allowLineBreaks && !t.shiftKey && n.push("Enter"), !n.includes(t.key);
1487
+ },
1484
1488
  handlePaste: (e, t, n) => {
1485
1489
  const r = t.clipboardData || window.clipboardData, s = r.getData("text/plain"), o = r.getData("text/html");
1486
1490
  return this.processPasteData(e, s, o);
@@ -1539,7 +1543,7 @@ ${r.textContent}
1539
1543
  const n = this.getOutput();
1540
1544
  if (!(t && Ae(e, n))) {
1541
1545
  if (typeof e == "string" && this.outputFormat === "text") {
1542
- const r = new RegExp(`(${B})`, "g");
1546
+ const r = new RegExp(`(${O})`, "g");
1543
1547
  e = e == null ? void 0 : e.replace(r, '<emoji-component code="$1"></emoji-component>');
1544
1548
  }
1545
1549
  this.editor.commands.setContent(e, !1, { preserveWhitespace: "full" });
@@ -1680,8 +1684,8 @@ var Yt = function() {
1680
1684
  Yt,
1681
1685
  Gt
1682
1686
  );
1683
- const Kn = Qt.exports;
1687
+ const Un = Qt.exports;
1684
1688
  export {
1685
- Kn as default
1689
+ Un as default
1686
1690
  };
1687
1691
  //# sourceMappingURL=rich-text-editor.js.map