@dialpad/dialtone 9.124.0 → 9.125.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 (333) hide show
  1. package/README.md +9 -2
  2. package/dist/tokens/doc.json +24416 -24416
  3. package/dist/vue2/common/mixins/index.cjs +1 -1
  4. package/dist/vue2/common/mixins/index.js +10 -10
  5. package/dist/vue2/common/mixins/localization.cjs +2 -0
  6. package/dist/vue2/common/mixins/localization.cjs.map +1 -0
  7. package/dist/vue2/common/mixins/localization.js +10 -0
  8. package/dist/vue2/common/mixins/localization.js.map +1 -0
  9. package/dist/vue2/common/utils/index.cjs +1 -1
  10. package/dist/vue2/common/utils/index.cjs.map +1 -1
  11. package/dist/vue2/common/utils/index.js +43 -39
  12. package/dist/vue2/common/utils/index.js.map +1 -1
  13. package/dist/vue2/component-documentation.json +1 -1
  14. package/dist/vue2/dialtone-vue.cjs +1 -1
  15. package/dist/vue2/dialtone-vue.js +341 -340
  16. package/dist/vue2/dialtone-vue.js.map +1 -1
  17. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  18. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  19. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +61 -86
  20. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  21. package/dist/vue2/lib/banner/banner.cjs +2 -2
  22. package/dist/vue2/lib/banner/banner.cjs.map +1 -1
  23. package/dist/vue2/lib/banner/banner.js +25 -33
  24. package/dist/vue2/lib/banner/banner.js.map +1 -1
  25. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  26. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  27. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +14 -12
  28. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  29. package/dist/vue2/lib/button/button.cjs +1 -1
  30. package/dist/vue2/lib/button/button.cjs.map +1 -1
  31. package/dist/vue2/lib/button/button.js +11 -9
  32. package/dist/vue2/lib/button/button.js.map +1 -1
  33. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  34. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  35. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +19 -25
  36. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  37. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  38. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  39. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +18 -21
  40. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  41. package/dist/vue2/lib/chip/chip.cjs +1 -1
  42. package/dist/vue2/lib/chip/chip.cjs.map +1 -1
  43. package/dist/vue2/lib/chip/chip.js +24 -29
  44. package/dist/vue2/lib/chip/chip.js.map +1 -1
  45. package/dist/vue2/lib/combobox/combobox-constants.cjs +1 -1
  46. package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
  47. package/dist/vue2/lib/combobox/combobox-constants.js +2 -2
  48. package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
  49. package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
  50. package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
  51. package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
  52. package/dist/vue2/lib/combobox/combobox-loading-list.js.map +1 -1
  53. package/dist/vue2/lib/combobox/combobox.cjs +2 -2
  54. package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
  55. package/dist/vue2/lib/combobox/combobox.js +12 -12
  56. package/dist/vue2/lib/combobox/combobox.js.map +1 -1
  57. package/dist/vue2/lib/combobox/index.cjs +1 -1
  58. package/dist/vue2/lib/combobox/index.js +3 -3
  59. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  60. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  61. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +16 -18
  62. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  63. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  64. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  65. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +22 -24
  66. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
  67. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  68. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  69. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +40 -36
  70. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  71. package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
  72. package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
  73. package/dist/vue2/lib/contact-row/contact-row.js +11 -25
  74. package/dist/vue2/lib/contact-row/contact-row.js.map +1 -1
  75. package/dist/vue2/lib/datepicker/datepicker-constants.cjs +1 -1
  76. package/dist/vue2/lib/datepicker/datepicker-constants.cjs.map +1 -1
  77. package/dist/vue2/lib/datepicker/datepicker-constants.js +2 -3
  78. package/dist/vue2/lib/datepicker/datepicker-constants.js.map +1 -1
  79. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  80. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  81. package/dist/vue2/lib/datepicker/datepicker.js +143 -229
  82. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  83. package/dist/vue2/lib/datepicker/utils.cjs +1 -1
  84. package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
  85. package/dist/vue2/lib/datepicker/utils.js +12 -11
  86. package/dist/vue2/lib/datepicker/utils.js.map +1 -1
  87. package/dist/vue2/lib/description-list/description-list.cjs +1 -1
  88. package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
  89. package/dist/vue2/lib/description-list/description-list.js +8 -8
  90. package/dist/vue2/lib/description-list/description-list.js.map +1 -1
  91. package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
  92. package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
  93. package/dist/vue2/lib/dropdown/dropdown.js +48 -50
  94. package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
  95. package/dist/vue2/lib/editor/editor.cjs +1 -1
  96. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  97. package/dist/vue2/lib/editor/editor.js +78 -87
  98. package/dist/vue2/lib/editor/editor.js.map +1 -1
  99. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
  100. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  101. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js +6 -19
  102. package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  103. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  104. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  105. package/dist/vue2/lib/emoji-picker/emoji-picker.js +106 -145
  106. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  107. package/dist/vue2/lib/emoji-picker/index.cjs +1 -1
  108. package/dist/vue2/lib/emoji-picker/index.js +6 -7
  109. package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs +1 -1
  110. package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  111. package/dist/vue2/lib/emoji-row/emoji-row-constants.js +5 -7
  112. package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
  113. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  114. package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
  115. package/dist/vue2/lib/emoji-row/emoji-row.js +31 -22
  116. package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
  117. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  118. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  119. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +20 -22
  120. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  121. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  122. package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
  123. package/dist/vue2/lib/general-row/general-row.js +63 -52
  124. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  125. package/dist/vue2/lib/group-row/group-row.cjs +1 -1
  126. package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
  127. package/dist/vue2/lib/group-row/group-row.js +43 -32
  128. package/dist/vue2/lib/group-row/group-row.js.map +1 -1
  129. package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
  130. package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
  131. package/dist/vue2/lib/icon/icon.cjs +1 -1
  132. package/dist/vue2/lib/icon/icon.cjs.map +1 -1
  133. package/dist/vue2/lib/icon/icon.js +12 -8
  134. package/dist/vue2/lib/icon/icon.js.map +1 -1
  135. package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
  136. package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
  137. package/dist/vue2/lib/image-viewer/image-viewer.js +30 -31
  138. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  139. package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs +1 -1
  140. package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  141. package/dist/vue2/lib/ivr-node/ivr-node-constants.js +24 -24
  142. package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
  143. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  144. package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
  145. package/dist/vue2/lib/ivr-node/ivr-node.js +38 -36
  146. package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
  147. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  148. package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
  149. package/dist/vue2/lib/message-input/message-input-link.js +48 -23
  150. package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
  151. package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
  152. package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
  153. package/dist/vue2/lib/message-input/message-input-topbar.js +50 -22
  154. package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
  155. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  156. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  157. package/dist/vue2/lib/message-input/message-input.js +112 -143
  158. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  159. package/dist/vue2/lib/modal/modal.cjs +1 -2
  160. package/dist/vue2/lib/modal/modal.cjs.map +1 -1
  161. package/dist/vue2/lib/modal/modal.js +25 -42
  162. package/dist/vue2/lib/modal/modal.js.map +1 -1
  163. package/dist/vue2/lib/notice/notice-action.cjs +1 -1
  164. package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
  165. package/dist/vue2/lib/notice/notice-action.js +19 -26
  166. package/dist/vue2/lib/notice/notice-action.js.map +1 -1
  167. package/dist/vue2/lib/notice/notice.cjs +1 -1
  168. package/dist/vue2/lib/notice/notice.cjs.map +1 -1
  169. package/dist/vue2/lib/notice/notice.js +18 -27
  170. package/dist/vue2/lib/notice/notice.js.map +1 -1
  171. package/dist/vue2/lib/pagination/pagination.cjs +1 -1
  172. package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
  173. package/dist/vue2/lib/pagination/pagination.js +49 -58
  174. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  175. package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
  176. package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
  177. package/dist/vue2/lib/popover/popover-header-footer.js +24 -26
  178. package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
  179. package/dist/vue2/lib/popover/popover.cjs +1 -1
  180. package/dist/vue2/lib/popover/popover.cjs.map +1 -1
  181. package/dist/vue2/lib/popover/popover.js +26 -35
  182. package/dist/vue2/lib/popover/popover.js.map +1 -1
  183. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +5 -5
  184. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  185. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +330 -320
  186. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  187. package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  188. package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  189. package/dist/vue2/lib/time-pill/time-pill.cjs.map +1 -1
  190. package/dist/vue2/lib/time-pill/time-pill.js.map +1 -1
  191. package/dist/vue2/lib/toast/toast.cjs +1 -1
  192. package/dist/vue2/lib/toast/toast.cjs.map +1 -1
  193. package/dist/vue2/lib/toast/toast.js +64 -97
  194. package/dist/vue2/lib/toast/toast.js.map +1 -1
  195. package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
  196. package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
  197. package/dist/vue2/lib/unread-pill/unread-pill.js +27 -18
  198. package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
  199. package/dist/vue2/localization/en-US.cjs +185 -0
  200. package/dist/vue2/localization/en-US.cjs.map +1 -0
  201. package/dist/vue2/localization/en-US.js +188 -0
  202. package/dist/vue2/localization/en-US.js.map +1 -0
  203. package/dist/vue2/localization/es-LA.cjs +169 -0
  204. package/dist/vue2/localization/es-LA.cjs.map +1 -0
  205. package/dist/vue2/localization/es-LA.js +172 -0
  206. package/dist/vue2/localization/es-LA.js.map +1 -0
  207. package/dist/vue2/localization/index.cjs +1176 -0
  208. package/dist/vue2/localization/index.cjs.map +1 -0
  209. package/dist/vue2/localization/index.js +1239 -0
  210. package/dist/vue2/localization/index.js.map +1 -0
  211. package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
  212. package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
  213. package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
  214. package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
  215. package/dist/vue2/shared/sr_only_close_button.js +19 -22
  216. package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
  217. package/dist/vue2/types/common/mixins/index.d.ts +1 -1
  218. package/dist/vue2/types/common/mixins/localization.d.ts +8 -0
  219. package/dist/vue2/types/common/mixins/localization.d.ts.map +1 -0
  220. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +7 -13
  221. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  222. package/dist/vue2/types/common/utils/index.d.ts +1 -0
  223. package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
  224. package/dist/vue2/types/components/banner/banner.vue.d.ts +0 -33
  225. package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
  226. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +5 -1
  227. package/dist/vue2/types/components/button/button.vue.d.ts +6 -2
  228. package/dist/vue2/types/components/chip/chip.vue.d.ts +8 -18
  229. package/dist/vue2/types/components/combobox/combobox_constants.d.ts +2 -2
  230. package/dist/vue2/types/components/combobox/index.d.ts +1 -1
  231. package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
  232. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts +0 -1
  233. package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  234. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +5 -17
  235. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +8 -48
  236. package/dist/vue2/types/components/datepicker/utils.d.ts +1 -0
  237. package/dist/vue2/types/components/datepicker/utils.d.ts.map +1 -1
  238. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +0 -24
  239. package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  240. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +5 -1
  241. package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
  242. package/dist/vue2/types/components/icon/icon.vue.d.ts +1 -0
  243. package/dist/vue2/types/components/icon/icon_constants.d.ts.map +1 -1
  244. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +5 -8
  245. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  246. package/dist/vue2/types/components/modal/modal.vue.d.ts +3 -33
  247. package/dist/vue2/types/components/notice/notice.vue.d.ts +1 -34
  248. package/dist/vue2/types/components/notice/notice.vue.d.ts.map +1 -1
  249. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +3 -31
  250. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  251. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +9 -26
  252. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  253. package/dist/vue2/types/components/popover/popover.vue.d.ts +0 -33
  254. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  255. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +8 -11
  256. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  257. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -2
  258. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  259. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -43
  260. package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  261. package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
  262. package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
  263. package/dist/vue2/types/components/toast/toast.vue.d.ts +3 -111
  264. package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
  265. package/dist/vue2/types/index.d.ts +1 -0
  266. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -13
  267. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +7 -12
  268. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +8 -10
  269. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  270. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
  271. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  272. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -25
  273. package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
  274. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
  275. package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  276. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +5 -41
  277. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  278. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +8 -26
  279. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
  280. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +20 -61
  281. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  282. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -1
  283. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
  284. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +9 -12
  285. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  286. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +8 -2
  287. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  288. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -90
  289. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  290. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +14 -2
  291. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +14 -1
  292. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  293. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +10 -11
  294. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  295. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
  296. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  297. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +21 -37
  298. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  299. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +9 -18
  300. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  301. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +7 -1
  302. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  303. package/package.json +4 -3
  304. package/dist/vue2/common/mixins/sr-only-close-button.cjs +0 -3
  305. package/dist/vue2/common/mixins/sr-only-close-button.cjs.map +0 -1
  306. package/dist/vue2/common/mixins/sr-only-close-button.js +0 -44
  307. package/dist/vue2/common/mixins/sr-only-close-button.js.map +0 -1
  308. package/dist/vue2/lib/contact-row/contact-row-constants.cjs +0 -2
  309. package/dist/vue2/lib/contact-row/contact-row-constants.cjs.map +0 -1
  310. package/dist/vue2/lib/contact-row/contact-row-constants.js +0 -5
  311. package/dist/vue2/lib/contact-row/contact-row-constants.js.map +0 -1
  312. package/dist/vue2/lib/emoji/emoji-constants.cjs +0 -2
  313. package/dist/vue2/lib/emoji/emoji-constants.cjs.map +0 -1
  314. package/dist/vue2/lib/emoji/emoji-constants.js +0 -5
  315. package/dist/vue2/lib/emoji/emoji-constants.js.map +0 -1
  316. package/dist/vue2/lib/group-row/group-row-constants.cjs +0 -2
  317. package/dist/vue2/lib/group-row/group-row-constants.cjs.map +0 -1
  318. package/dist/vue2/lib/group-row/group-row-constants.js +0 -8
  319. package/dist/vue2/lib/group-row/group-row-constants.js.map +0 -1
  320. package/dist/vue2/lib/time-pill/time-pill-constants.cjs +0 -2
  321. package/dist/vue2/lib/time-pill/time-pill-constants.cjs.map +0 -1
  322. package/dist/vue2/lib/time-pill/time-pill-constants.js +0 -8
  323. package/dist/vue2/lib/time-pill/time-pill-constants.js.map +0 -1
  324. package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts +0 -30
  325. package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
  326. package/dist/vue2/types/components/emoji/emoji_constants.d.ts +0 -3
  327. package/dist/vue2/types/components/emoji/emoji_constants.d.ts.map +0 -1
  328. package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
  329. package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
  330. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
  331. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
  332. package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
  333. package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
@@ -1,10 +1,10 @@
1
- import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as b, EditorContent as P, BubbleMenu as H, Editor as F } from "../../node_modules/@tiptap/vue-2.js";
2
- import { Node as q, mergeAttributes as m, InputRule as K, nodePasteRule as T, getMarksBetween as U, combineTransactionSteps as N, getChangedRanges as V, findChildrenInRange as z, Mark as W, 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 P, Editor as F } from "../../node_modules/@tiptap/vue-2.js";
2
+ import { Node as N, mergeAttributes as m, InputRule as U, nodePasteRule as E, getMarksBetween as q, combineTransactionSteps as K, getChangedRanges as V, findChildrenInRange as z, Mark as W, 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 j from "@tiptap/extension-paragraph";
7
+ import A 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,41 +23,42 @@ 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 M } from "regex-combined-emojis";
26
+ import { emojiPattern as D } from "regex-combined-emojis";
27
27
  import { n as c } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
28
- import O from "../emoji/emoji.js";
29
- import { stringToUnicode as ye, codeToEmojiData as E, emojiRegex as we, emojiShortCodeRegex as be } from "../../common/emoji/index.js";
30
- import { emojisIndexed as ve } from "@dialpad/dialtone-emojis";
28
+ import B from "../emoji/emoji.js";
29
+ import { stringToUnicode as ye, codeToEmojiData as S, emojiRegex as we, emojiShortCodeRegex as ve } from "../../common/emoji/index.js";
30
+ import { emojisIndexed as be } from "@dialpad/dialtone-emojis";
31
31
  import xe from "../list-item/list-item.js";
32
- import v from "../stack/stack.js";
32
+ import b from "../stack/stack.js";
33
33
  import x from "tippy.js";
34
- import { linkRegex as Ce, getPhoneNumberRegex as ke, warnIfUnmounted as Se } from "../../common/utils/index.js";
35
- import Te from "@tiptap/extension-image";
36
- import $ from "@tiptap/extension-mention";
37
- import D from "../link/link.js";
38
- import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Re, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Ee, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as L } from "./rich-text-editor-constants.js";
39
- import $e from "../avatar/avatar.js";
40
- import Le from "@dialpad/dialtone-icons/vue2/hash";
34
+ import { linkRegex as Ce, getPhoneNumberRegex as ke, warnIfUnmounted as Te } from "../../common/utils/index.js";
35
+ import Ee from "@tiptap/extension-image";
36
+ import L from "@tiptap/extension-mention";
37
+ import M from "../link/link.js";
38
+ import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Re, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Se, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as $ } from "./rich-text-editor-constants.js";
39
+ import Le from "../avatar/avatar.js";
40
+ import $e from "@dialpad/dialtone-icons/vue2/hash";
41
41
  import Ie from "@dialpad/dialtone-icons/vue2/lock";
42
- import Ae from "deep-equal";
43
- import je from "../button/button.js";
44
- const Me = {
42
+ import Oe from "deep-equal";
43
+ import Ae from "../button/button.js";
44
+ import De from "../../common/mixins/localization.js";
45
+ const Be = {
45
46
  name: "EmojiComponent",
46
47
  components: {
47
48
  NodeViewWrapper: _,
48
- DtEmoji: O
49
+ DtEmoji: B
49
50
  },
50
51
  props: y
51
52
  };
52
- var Oe = function() {
53
- var e = this, r = e._self._c;
54
- return r("node-view-wrapper", { staticClass: "d-d-inline-block d-va-bottom d-lh0" }, [r("dt-emoji", { attrs: { size: "500", code: e.node.attrs.code } })], 1);
55
- }, De = [], Be = /* @__PURE__ */ c(
53
+ var Me = function() {
54
+ var e = this, n = e._self._c;
55
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block d-va-bottom d-lh0" }, [n("dt-emoji", { attrs: { size: "500", code: e.node.attrs.code } })], 1);
56
+ }, je = [], He = /* @__PURE__ */ c(
57
+ Be,
56
58
  Me,
57
- Oe,
58
- De
59
+ je
59
60
  );
60
- const Pe = Be.exports, He = {
61
+ const Pe = He.exports, Fe = {
61
62
  name: "SuggestionList",
62
63
  components: {
63
64
  DtListItem: xe
@@ -130,28 +131,28 @@ const Pe = Be.exports, He = {
130
131
  }
131
132
  }
132
133
  };
133
- var Fe = function() {
134
- var e = this, r = e._self._c;
135
- return r("div", { staticClass: "d-popover__dialog d-suggestion-list__container" }, [r("ul", { directives: [{ name: "show", rawName: "v-show", value: e.items.length, expression: "items.length" }], ref: "suggestionList", staticClass: "d-suggestion-list" }, e._l(e.items, function(n, i) {
136
- return r("dt-list-item", { key: n.id, class: [
134
+ var Ne = function() {
135
+ var e = this, n = e._self._c;
136
+ return n("div", { staticClass: "d-popover__dialog d-suggestion-list__container" }, [n("ul", { directives: [{ name: "show", rawName: "v-show", value: e.items.length, expression: "items.length" }], ref: "suggestionList", staticClass: "d-suggestion-list" }, e._l(e.items, function(r, i) {
137
+ return n("dt-list-item", { key: r.id, class: [
137
138
  "d-suggestion-list__item",
138
139
  { "d-list-item--highlighted": i === e.selectedIndex }
139
140
  ], attrs: { "navigation-type": "arrow-keys" }, on: { click: function(o) {
140
141
  return e.selectItem(i);
141
142
  }, keydown: function(o) {
142
143
  return o.preventDefault(), e.onKeyDown.apply(null, arguments);
143
- } } }, [r(e.itemComponent, { tag: "component", attrs: { item: n } })], 1);
144
+ } } }, [n(e.itemComponent, { tag: "component", attrs: { item: r } })], 1);
144
145
  }), 1)]);
145
- }, qe = [], Ke = /* @__PURE__ */ c(
146
- He,
146
+ }, Ue = [], qe = /* @__PURE__ */ c(
147
147
  Fe,
148
- qe
148
+ Ne,
149
+ Ue
149
150
  );
150
- const C = Ke.exports, Ue = {
151
+ const C = qe.exports, Ke = {
151
152
  name: "EmojiSuggestion",
152
153
  components: {
153
- DtEmoji: O,
154
- DtStack: v
154
+ DtEmoji: B,
155
+ DtStack: b
155
156
  },
156
157
  props: {
157
158
  item: {
@@ -160,20 +161,20 @@ const C = Ke.exports, Ue = {
160
161
  }
161
162
  }
162
163
  };
163
- var Ne = function() {
164
- var e = this, r = e._self._c;
165
- return r("dt-stack", { attrs: { direction: "row", gap: "400" } }, [r("dt-emoji", { attrs: { size: "200", code: e.item.code } }), e._v(" " + e._s(e.item.code) + " ")], 1);
166
- }, Ve = [], ze = /* @__PURE__ */ c(
167
- Ue,
168
- Ne,
169
- Ve
164
+ var Ve = function() {
165
+ var e = this, n = e._self._c;
166
+ return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [n("dt-emoji", { attrs: { size: "200", code: e.item.code } }), e._v(" " + e._s(e.item.code) + " ")], 1);
167
+ }, ze = [], We = /* @__PURE__ */ c(
168
+ Ke,
169
+ Ve,
170
+ ze
170
171
  );
171
- const We = ze.exports, k = {
172
+ const Xe = We.exports, k = {
172
173
  name: "hideOnEsc",
173
174
  defaultValue: !0,
174
175
  fn({ hide: t }) {
175
- function e(r) {
176
- r.keyCode === 27 && t();
176
+ function e(n) {
177
+ n.keyCode === 27 && t();
177
178
  }
178
179
  return {
179
180
  onShow() {
@@ -184,82 +185,82 @@ const We = ze.exports, k = {
184
185
  }
185
186
  };
186
187
  }
187
- }, Xe = 20, Je = {
188
+ }, Je = 20, Ye = {
188
189
  items: ({ query: t }) => {
189
190
  if (t.length < 2)
190
191
  return [];
191
- const e = Object.values(ve);
192
+ const e = Object.values(be);
192
193
  return t = t.toLowerCase(), e.filter(
193
- (n) => [
194
- n.name,
195
- n.shortname.replaceAll(":", ""),
196
- ...n.keywords
194
+ (r) => [
195
+ r.name,
196
+ r.shortname.replaceAll(":", ""),
197
+ ...r.keywords
197
198
  ].some((i) => i.startsWith(t))
198
- ).splice(0, Xe).map((n) => ({ code: n.shortname }));
199
+ ).splice(0, Je).map((r) => ({ code: r.shortname }));
199
200
  },
200
- command: ({ editor: t, range: e, props: r }) => {
201
+ command: ({ editor: t, range: e, props: n }) => {
201
202
  var o, s;
202
- const n = t.view.state.selection.$to.nodeAfter;
203
- ((o = n == null ? void 0 : n.text) == null ? void 0 : o.startsWith(" ")) && (e.to += 1), t.chain().focus().insertContentAt(e, [
203
+ const r = t.view.state.selection.$to.nodeAfter;
204
+ ((o = r == null ? void 0 : r.text) == null ? void 0 : o.startsWith(" ")) && (e.to += 1), t.chain().focus().insertContentAt(e, [
204
205
  {
205
206
  type: "emoji",
206
- attrs: r
207
+ attrs: n
207
208
  }
208
209
  ]).run(), (s = window.getSelection()) == null || s.collapseToEnd();
209
210
  },
210
211
  render: () => {
211
- let t, e, r = !1;
212
+ let t, e, n = !1;
212
213
  return {
213
- onStart: (n) => {
214
+ onStart: (r) => {
214
215
  t = new w(C, {
215
216
  parent: void 0,
216
217
  propsData: {
217
- itemComponent: We,
218
+ itemComponent: Xe,
218
219
  itemType: "emoji",
219
- ...n
220
+ ...r
220
221
  },
221
- editor: n.editor
222
- }), n.clientRect && (e = x("body", {
223
- getReferenceClientRect: n.clientRect,
222
+ editor: r.editor
223
+ }), r.clientRect && (e = x("body", {
224
+ getReferenceClientRect: r.clientRect,
224
225
  appendTo: () => document.body,
225
226
  content: t.element,
226
227
  showOnCreate: !1,
227
228
  onShow: () => {
228
- r = !0;
229
+ n = !0;
229
230
  },
230
231
  onHidden: () => {
231
- r = !1;
232
+ n = !1;
232
233
  },
233
234
  interactive: !0,
234
235
  trigger: "manual",
235
236
  placement: "top-start",
236
237
  zIndex: 650,
237
238
  plugins: [k]
238
- }), n.items.length > 0 && (e == null || e[0].show()));
239
+ }), r.items.length > 0 && (e == null || e[0].show()));
239
240
  },
240
- onUpdate(n) {
241
- t == null || t.updateProps(n), n.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), e == null || e[0].setProps({
242
- getReferenceClientRect: n.clientRect
241
+ onUpdate(r) {
242
+ t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), e == null || e[0].setProps({
243
+ getReferenceClientRect: r.clientRect
243
244
  });
244
245
  },
245
- onKeyDown(n) {
246
+ onKeyDown(r) {
246
247
  var i;
247
- if (r)
248
- return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(n);
248
+ if (n)
249
+ return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
249
250
  },
250
251
  onExit() {
251
252
  e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
252
253
  }
253
254
  };
254
255
  }
255
- }, Ye = /(:\w+:)$/, Ge = new RegExp(M + "$"), Qe = (t) => {
256
- if (t && E(t[0]))
256
+ }, Ge = /(:\w+:)$/, Qe = new RegExp(D + "$"), Ze = (t) => {
257
+ if (t && S(t[0]))
257
258
  return { text: t[2] || t[0] };
258
- }, Ze = (t) => [...t.matchAll(be)].filter((r) => E(r[0])).map((r) => ({
259
- index: r.index,
260
- text: r[0],
261
- match: r
262
- })), et = q.create({
259
+ }, et = (t) => [...t.matchAll(ve)].filter((n) => S(n[0])).map((n) => ({
260
+ index: n.index,
261
+ text: n[0],
262
+ match: n
263
+ })), tt = N.create({
263
264
  name: "emoji",
264
265
  addOptions() {
265
266
  return {
@@ -271,7 +272,7 @@ const We = ze.exports, k = {
271
272
  selectable: !1,
272
273
  atom: !0,
273
274
  addNodeView() {
274
- return b(Pe);
275
+ return v(Pe);
275
276
  },
276
277
  addAttributes() {
277
278
  return {
@@ -288,30 +289,30 @@ const We = ze.exports, k = {
288
289
  ];
289
290
  },
290
291
  renderText({ node: t }) {
291
- return ye(E(t.attrs.code).unicode_output);
292
+ return ye(S(t.attrs.code).unicode_output);
292
293
  },
293
294
  renderHTML({ HTMLAttributes: t }) {
294
295
  return ["emoji-component", m(this.options.HTMLAttributes, t)];
295
296
  },
296
297
  addInputRules() {
297
298
  return [
298
- new K({
299
+ new U({
299
300
  find: (t) => {
300
- const e = t.match(Ye) || t.match(Ge);
301
+ const e = t.match(Ge) || t.match(Qe);
301
302
  if (e)
302
- return Qe(e);
303
+ return Ze(e);
303
304
  },
304
- handler: ({ state: t, range: e, match: r, commands: n, chain: i, can: o }) => {
305
+ handler: ({ state: t, range: e, match: n, commands: r, chain: i, can: o }) => {
305
306
  const { tr: s } = t, a = e.from, l = e.to;
306
- s.replaceWith(a, l, this.type.create({ code: r[0] }));
307
+ s.replaceWith(a, l, this.type.create({ code: n[0] }));
307
308
  }
308
309
  })
309
310
  ];
310
311
  },
311
312
  addPasteRules() {
312
313
  return [
313
- T({
314
- find: Ze,
314
+ E({
315
+ find: et,
315
316
  type: this.type,
316
317
  getAttributes(t) {
317
318
  return {
@@ -319,7 +320,7 @@ const We = ze.exports, k = {
319
320
  };
320
321
  }
321
322
  }),
322
- T({
323
+ E({
323
324
  find: we,
324
325
  type: this.type,
325
326
  getAttributes(t) {
@@ -337,35 +338,35 @@ const We = ze.exports, k = {
337
338
  pluginKey: new f("emoji"),
338
339
  editor: this.editor,
339
340
  ...this.options.suggestion,
340
- ...Je
341
+ ...Ye
341
342
  })
342
343
  ];
343
344
  },
344
345
  addKeyboardShortcuts() {
345
346
  return {
346
347
  Backspace: () => this.editor.commands.command(({ tr: t, state: e }) => {
347
- let r = !1;
348
- const { selection: n } = e, { empty: i, anchor: o } = n;
348
+ let n = !1;
349
+ const { selection: r } = e, { empty: i, anchor: o } = r;
349
350
  return i ? (e.doc.nodesBetween(o - 1, o, (s, a) => {
350
351
  if (s.type.name === this.name)
351
- return r = !0, t.insertText("", a, a + s.nodeSize), !1;
352
- }), r) : !1;
352
+ return n = !0, t.insertText("", a, a + s.nodeSize), !1;
353
+ }), n) : !1;
353
354
  })
354
355
  };
355
356
  }
356
357
  });
357
- function tt(t, e, r = () => !0) {
358
- const n = [];
358
+ function nt(t, e, n = () => !0) {
359
+ const r = [];
359
360
  e.lastIndex = 0;
360
361
  let i;
361
362
  for (; i = e.exec(t); )
362
- r(t, i) && n.push(i);
363
- return n;
363
+ n(t, i) && r.push(i);
364
+ return r;
364
365
  }
365
- function nt(t, e) {
366
+ function rt(t, e) {
366
367
  return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
367
368
  }
368
- function rt(t) {
369
+ function it(t) {
369
370
  const e = new RegExp(
370
371
  "(?:" + [
371
372
  `[!?.,:;'"]`,
@@ -375,41 +376,41 @@ function rt(t) {
375
376
  );
376
377
  return t.replace(e, "");
377
378
  }
378
- function it(t, e) {
379
- const r = t.slice(0, e + 1).search(/\S+\s*$/), n = t.slice(e).search(/\s/);
380
- if (n < 0) {
381
- const i = t.slice(r);
379
+ function st(t, e) {
380
+ const n = t.slice(0, e + 1).search(/\S+\s*$/), r = t.slice(e).search(/\s/);
381
+ if (r < 0) {
382
+ const i = t.slice(n);
382
383
  return {
383
384
  text: i,
384
- from: r,
385
- to: r + i.length
385
+ from: n,
386
+ to: n + i.length
386
387
  };
387
388
  }
388
389
  return {
389
- text: t.slice(r, n + e),
390
- from: r,
391
- to: n + e
390
+ text: t.slice(n, r + e),
391
+ from: n,
392
+ to: r + e
392
393
  };
393
394
  }
394
- function R(t, e, r, n) {
395
- const i = it(t, e);
396
- if (n.lastIndex = 0, !n.test(i.text))
395
+ function R(t, e, n, r) {
396
+ const i = st(t, e);
397
+ if (r.lastIndex = 0, !r.test(i.text))
397
398
  return i;
398
- const o = r === "left" ? i.from - 1 : i.to + 1;
399
- return o <= 0 || o >= t.length || o === e ? i : R(t, o, r, n);
399
+ const o = n === "left" ? i.from - 1 : i.to + 1;
400
+ return o <= 0 || o >= t.length || o === e ? i : R(t, o, n, r);
400
401
  }
401
- function st(t, e, r, n) {
402
- const i = Math.max(t.from - 1, 0), o = Math.min(t.to + 1, e.content.size), s = U(i, o, e);
402
+ function ot(t, e, n, r) {
403
+ const i = Math.max(t.from - 1, 0), o = Math.min(t.to + 1, e.content.size), s = q(i, o, e);
403
404
  for (const a of s)
404
- a.mark.type === n && r.removeMark(a.from, a.to, n);
405
+ a.mark.type === r && n.removeMark(a.from, a.to, r);
405
406
  }
406
407
  const I = ke(1, 15);
407
- function A(t, e, r, n, i, o) {
408
+ function O(t, e, n, r, i, o) {
408
409
  if (!t)
409
410
  return;
410
- let s = r - e - 1;
411
+ let s = n - e - 1;
411
412
  s = s < 0 ? 0 : s;
412
- const a = n - e, l = R(
413
+ const a = r - e, l = R(
413
414
  t,
414
415
  s,
415
416
  "left",
@@ -420,32 +421,32 @@ function A(t, e, r, n, i, o) {
420
421
  "right",
421
422
  I
422
423
  ), u = t.slice(l.from, d.to);
423
- tt(u, Ce, nt).forEach((S) => {
424
- const h = rt(S[0]), g = e + l.from + S.index + 1, B = g + h.length;
425
- i.addMark(g, B, o.create());
424
+ nt(u, Ce, rt).forEach((T) => {
425
+ const h = it(T[0]), g = e + l.from + T.index + 1, j = g + h.length;
426
+ i.addMark(g, j, o.create());
426
427
  });
427
428
  }
428
- function ot(t) {
429
+ function at(t) {
429
430
  let e = !1;
430
431
  return new ge({
431
432
  key: new f("autolink"),
432
- appendTransaction: (r, n, i) => {
433
- const o = r.some((u) => u.docChanged) && !n.doc.eq(i.doc);
433
+ appendTransaction: (n, r, i) => {
434
+ const o = n.some((u) => u.docChanged) && !r.doc.eq(i.doc);
434
435
  if (e && !o)
435
436
  return;
436
437
  const { tr: s } = i, { textContent: a } = i.doc;
437
- e || A(a, 0, 0, a.length, s, t.type), e = !0;
438
- const l = N(
439
- n.doc,
440
- [...r]
438
+ e || O(a, 0, 0, a.length, s, t.type), e = !0;
439
+ const l = K(
440
+ r.doc,
441
+ [...n]
441
442
  );
442
443
  return V(l).forEach(({ oldRange: u, newRange: p }) => {
443
- st(p, i.doc, s, t.type), z(
444
+ ot(p, i.doc, s, t.type), z(
444
445
  i.doc,
445
446
  p,
446
447
  (h) => h.isTextblock
447
448
  ).forEach(({ node: h, pos: g }) => {
448
- A(
449
+ O(
449
450
  h.textContent,
450
451
  g,
451
452
  u.from,
@@ -458,10 +459,10 @@ function ot(t) {
458
459
  }
459
460
  });
460
461
  }
461
- const at = {
462
+ const lt = {
462
463
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
463
464
  rel: "noopener noreferrer nofollow"
464
- }, lt = W.create({
465
+ }, ct = W.create({
465
466
  name: "CustomLink",
466
467
  renderHTML({ HTMLAttributes: t }) {
467
468
  return [
@@ -469,7 +470,7 @@ const at = {
469
470
  m(
470
471
  this.options.HTMLAttributes,
471
472
  t,
472
- at
473
+ lt
473
474
  )
474
475
  ];
475
476
  },
@@ -478,10 +479,10 @@ const at = {
478
479
  },
479
480
  addProseMirrorPlugins() {
480
481
  return [
481
- ot({ type: this.type })
482
+ at({ type: this.type })
482
483
  ];
483
484
  }
484
- }), ct = Te.extend({
485
+ }), dt = Ee.extend({
485
486
  name: "ConfigurableImage",
486
487
  addAttributes() {
487
488
  return {
@@ -505,18 +506,18 @@ const at = {
505
506
  }
506
507
  };
507
508
  }
508
- }).configure({ inline: !0, allowBase64: !0 }), dt = j.extend({
509
+ }).configure({ inline: !0, allowBase64: !0 }), ut = A.extend({
509
510
  parseHTML() {
510
511
  return [{ tag: "div" }];
511
512
  },
512
513
  renderHTML({ HTMLAttributes: t }) {
513
514
  return ["div", m(this.options.HTMLAttributes, t), 0];
514
515
  }
515
- }), ut = {
516
+ }), mt = {
516
517
  name: "MentionComponent",
517
518
  components: {
518
519
  NodeViewWrapper: _,
519
- DtLink: D
520
+ DtLink: M
520
521
  },
521
522
  props: y,
522
523
  computed: {
@@ -525,17 +526,17 @@ const at = {
525
526
  }
526
527
  }
527
528
  };
528
- var mt = function() {
529
- var e = this, r = e._self._c;
530
- return r("node-view-wrapper", { staticClass: "d-d-inline-block" }, [r("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
531
- }, ht = [], ft = /* @__PURE__ */ c(
532
- ut,
529
+ var ht = function() {
530
+ var e = this, n = e._self._c;
531
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
532
+ }, ft = [], pt = /* @__PURE__ */ c(
533
533
  mt,
534
- ht
534
+ ht,
535
+ ft
535
536
  );
536
- const pt = ft.exports, gt = $.extend({
537
+ const gt = pt.exports, _t = L.extend({
537
538
  addNodeView() {
538
- return b(pt);
539
+ return v(gt);
539
540
  },
540
541
  parseHTML() {
541
542
  return [
@@ -568,11 +569,11 @@ const pt = ft.exports, gt = $.extend({
568
569
  char: "@",
569
570
  pluginKey: new f("mentionSuggestion")
570
571
  }
571
- }), _t = {
572
+ }), yt = {
572
573
  name: "ChannelComponent",
573
574
  components: {
574
575
  NodeViewWrapper: _,
575
- DtLink: D
576
+ DtLink: M
576
577
  },
577
578
  props: y,
578
579
  computed: {
@@ -581,18 +582,18 @@ const pt = ft.exports, gt = $.extend({
581
582
  }
582
583
  }
583
584
  };
584
- var yt = function() {
585
- var e = this, r = e._self._c;
586
- return r("node-view-wrapper", { staticClass: "d-d-inline-block" }, [r("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
587
- }, wt = [], bt = /* @__PURE__ */ c(
588
- _t,
585
+ var wt = function() {
586
+ var e = this, n = e._self._c;
587
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
588
+ }, vt = [], bt = /* @__PURE__ */ c(
589
589
  yt,
590
- wt
590
+ wt,
591
+ vt
591
592
  );
592
- const vt = bt.exports, xt = $.extend({
593
+ const xt = bt.exports, Ct = L.extend({
593
594
  name: "channel",
594
595
  addNodeView() {
595
- return b(vt);
596
+ return v(xt);
596
597
  },
597
598
  parseHTML() {
598
599
  return [
@@ -625,7 +626,7 @@ const vt = bt.exports, xt = $.extend({
625
626
  char: "#",
626
627
  pluginKey: new f("channelSuggestion")
627
628
  }
628
- }), Ct = {
629
+ }), kt = {
629
630
  name: "SlashCommandsComponent",
630
631
  components: {
631
632
  NodeViewWrapper: _
@@ -641,27 +642,27 @@ const vt = bt.exports, xt = $.extend({
641
642
  this.$parent.$emit("selected-command", this.$props.node.attrs.command);
642
643
  }
643
644
  };
644
- var kt = function() {
645
- var e = this, r = e._self._c;
646
- return r("node-view-wrapper", { staticClass: "d-d-inline-block" }, [e._v(" " + e._s(e.text) + " ")]);
647
- }, St = [], Tt = /* @__PURE__ */ c(
648
- Ct,
645
+ var Tt = function() {
646
+ var e = this, n = e._self._c;
647
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [e._v(" " + e._s(e.text) + " ")]);
648
+ }, Et = [], Rt = /* @__PURE__ */ c(
649
649
  kt,
650
- St
650
+ Tt,
651
+ Et
651
652
  );
652
- const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
653
- let i = n[2];
653
+ const St = Rt.exports, Lt = (t, e) => [...t.matchAll(e)].map((r) => {
654
+ let i = r[2];
654
655
  return i.endsWith(" ") || (i += " "), {
655
- index: n.index,
656
+ index: r.index,
656
657
  text: i,
657
- match: n
658
+ match: r
658
659
  };
659
- }), $t = $.extend({
660
+ }), $t = L.extend({
660
661
  name: "slash-commands",
661
662
  group: "inline",
662
663
  inline: !0,
663
664
  addNodeView() {
664
- return b(Rt);
665
+ return v(St);
665
666
  },
666
667
  parseHTML() {
667
668
  return [
@@ -690,27 +691,27 @@ const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
690
691
  return ["command-component", m(this.options.HTMLAttributes, t)];
691
692
  },
692
693
  addInputRules() {
693
- var r;
694
- const t = (r = this.options.suggestion) == null ? void 0 : r.items({ query: "" }).map((n) => n.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) $`);
694
+ var n;
695
+ const t = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) $`);
695
696
  return [
696
697
  X({
697
698
  find: e,
698
699
  type: this.type,
699
- getAttributes(n) {
700
- return { command: n[2] };
700
+ getAttributes(r) {
701
+ return { command: r[2] };
701
702
  }
702
703
  })
703
704
  ];
704
705
  },
705
706
  addPasteRules() {
706
- var r;
707
- const t = (r = this.options.suggestion) == null ? void 0 : r.items({ query: "" }).map((n) => n.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) ?$`, "g");
707
+ var n;
708
+ const t = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) ?$`, "g");
708
709
  return [
709
- T({
710
- find: (n) => Et(n, e),
710
+ E({
711
+ find: (r) => Lt(r, e),
711
712
  type: this.type,
712
- getAttributes(n) {
713
- return { command: n[0].trim() };
713
+ getAttributes(r) {
714
+ return { command: r[0].trim() };
714
715
  }
715
716
  })
716
717
  ];
@@ -720,11 +721,11 @@ const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
720
721
  char: "/",
721
722
  pluginKey: new f("slashCommandSuggestion")
722
723
  }
723
- }), Lt = {
724
+ }), It = {
724
725
  name: "MentionSuggestion",
725
726
  components: {
726
- DtAvatar: $e,
727
- DtStack: v
727
+ DtAvatar: Le,
728
+ DtStack: b
728
729
  },
729
730
  props: {
730
731
  item: {
@@ -761,69 +762,69 @@ const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
761
762
  }
762
763
  }
763
764
  };
764
- var It = function() {
765
- var e = this, r = e._self._c;
766
- return r("dt-stack", { staticClass: "d-mention-suggestion__container", attrs: { direction: "row", gap: "400" } }, [r("dt-avatar", { attrs: { "full-name": e.name, "image-src": e.avatarSrc, "image-alt": e.name, "show-presence": e.showDetails, presence: e.presence, size: "sm" } }), r("dt-stack", { staticClass: "d-mention-suggestion__details-container", attrs: { gap: "100" } }, [r("span", { staticClass: "d-mention-suggestion__name" }, [e._v(" " + e._s(e.name) + " ")]), e.showDetails ? r("dt-stack", { staticClass: "d-label--sm-plain", attrs: { direction: "row", gap: "300" } }, [e.presenceText ? r("span", { staticClass: "d-mention-suggestion__presence", class: [e.presenceFontColorClass] }, [e._v(" " + e._s(e.presenceText) + " ")]) : e._e(), e.status && e.presenceText ? r("div", { staticClass: "d-mention-suggestion__divider" }, [e._v(" • ")]) : e._e(), e.status ? r("div", { staticClass: "d-mention-suggestion__status" }, [e._v(" " + e._s(e.status) + " ")]) : e._e()]) : e._e()], 1)], 1);
767
- }, At = [], jt = /* @__PURE__ */ c(
768
- Lt,
765
+ var Ot = function() {
766
+ var e = this, n = e._self._c;
767
+ return n("dt-stack", { staticClass: "d-mention-suggestion__container", attrs: { direction: "row", gap: "400" } }, [n("dt-avatar", { attrs: { "full-name": e.name, "image-src": e.avatarSrc, "image-alt": e.name, "show-presence": e.showDetails, presence: e.presence, size: "sm" } }), n("dt-stack", { staticClass: "d-mention-suggestion__details-container", attrs: { gap: "100" } }, [n("span", { staticClass: "d-mention-suggestion__name" }, [e._v(" " + e._s(e.name) + " ")]), e.showDetails ? n("dt-stack", { staticClass: "d-label--sm-plain", attrs: { direction: "row", gap: "300" } }, [e.presenceText ? n("span", { staticClass: "d-mention-suggestion__presence", class: [e.presenceFontColorClass] }, [e._v(" " + e._s(e.presenceText) + " ")]) : e._e(), e.status && e.presenceText ? n("div", { staticClass: "d-mention-suggestion__divider" }, [e._v(" • ")]) : e._e(), e.status ? n("div", { staticClass: "d-mention-suggestion__status" }, [e._v(" " + e._s(e.status) + " ")]) : e._e()]) : e._e()], 1)], 1);
768
+ }, At = [], Dt = /* @__PURE__ */ c(
769
769
  It,
770
+ Ot,
770
771
  At
771
772
  );
772
- const Mt = jt.exports, Ot = {
773
+ const Bt = Dt.exports, Mt = {
773
774
  // This function comes from the user and passed to the editor directly.
774
775
  // This will also activate the mention plugin on the editor
775
776
  // items: ({ query }) => { return [] },
776
777
  allowSpaces: !0,
777
778
  render: () => {
778
- let t, e, r = !1;
779
+ let t, e, n = !1;
779
780
  return {
780
- onStart: (n) => {
781
+ onStart: (r) => {
781
782
  t = new w(C, {
782
783
  parent: void 0,
783
784
  propsData: {
784
- itemComponent: Mt,
785
+ itemComponent: Bt,
785
786
  itemType: "mention",
786
- ...n
787
+ ...r
787
788
  },
788
- editor: n.editor
789
- }), n.clientRect && (e = x("body", {
790
- getReferenceClientRect: n.clientRect,
789
+ editor: r.editor
790
+ }), r.clientRect && (e = x("body", {
791
+ getReferenceClientRect: r.clientRect,
791
792
  appendTo: () => document.body,
792
793
  content: t.element,
793
794
  showOnCreate: !1,
794
795
  onShow: () => {
795
- r = !0;
796
+ n = !0;
796
797
  },
797
798
  onHidden: () => {
798
- r = !1;
799
+ n = !1;
799
800
  },
800
801
  interactive: !0,
801
802
  trigger: "manual",
802
803
  placement: "top-start",
803
804
  zIndex: 650,
804
805
  plugins: [k]
805
- }), n.items.length > 0 && (e == null || e[0].show()));
806
+ }), r.items.length > 0 && (e == null || e[0].show()));
806
807
  },
807
- onUpdate(n) {
808
- t == null || t.updateProps(n), n.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), n.clientRect && (e == null || e[0].setProps({
809
- getReferenceClientRect: n.clientRect
808
+ onUpdate(r) {
809
+ t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), r.clientRect && (e == null || e[0].setProps({
810
+ getReferenceClientRect: r.clientRect
810
811
  }));
811
812
  },
812
- onKeyDown(n) {
813
+ onKeyDown(r) {
813
814
  var i;
814
- if (r)
815
- return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(n);
815
+ if (n)
816
+ return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
816
817
  },
817
818
  onExit() {
818
819
  e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
819
820
  }
820
821
  };
821
822
  }
822
- }, Dt = {
823
+ }, jt = {
823
824
  name: "ChannelSuggestion",
824
825
  components: {
825
- DtStack: v,
826
- DtIconHash: Le,
826
+ DtStack: b,
827
+ DtIconHash: $e,
827
828
  DtIconLock: Ie
828
829
  },
829
830
  props: {
@@ -838,65 +839,65 @@ const Mt = jt.exports, Ot = {
838
839
  }
839
840
  }
840
841
  };
841
- var Bt = function() {
842
- var e = this, r = e._self._c;
843
- return r("dt-stack", { attrs: { direction: "row", gap: "400" } }, [e.item.locked ? r("dt-icon-lock", { attrs: { size: "300" } }) : r("dt-icon-hash", { attrs: { size: "300" } }), r("span", [e._v(e._s(e.name))])], 1);
844
- }, Pt = [], Ht = /* @__PURE__ */ c(
845
- Dt,
846
- Bt,
842
+ var Ht = function() {
843
+ var e = this, n = e._self._c;
844
+ return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [e.item.locked ? n("dt-icon-lock", { attrs: { size: "300" } }) : n("dt-icon-hash", { attrs: { size: "300" } }), n("span", [e._v(e._s(e.name))])], 1);
845
+ }, Pt = [], Ft = /* @__PURE__ */ c(
846
+ jt,
847
+ Ht,
847
848
  Pt
848
849
  );
849
- const Ft = Ht.exports, qt = {
850
+ const Nt = Ft.exports, Ut = {
850
851
  // This function comes from the user and passed to the editor directly.
851
852
  // This will also activate the mention plugin on the editor
852
853
  // items: ({ query }) => { return [] },
853
854
  allowSpaces: !0,
854
855
  render: () => {
855
- let t, e, r = !1;
856
+ let t, e, n = !1;
856
857
  return {
857
- onStart: (n) => {
858
+ onStart: (r) => {
858
859
  t = new w(C, {
859
860
  parent: void 0,
860
861
  propsData: {
861
- itemComponent: Ft,
862
+ itemComponent: Nt,
862
863
  itemType: "channel",
863
- ...n
864
+ ...r
864
865
  },
865
- editor: n.editor
866
- }), n.clientRect && (e = x("body", {
867
- getReferenceClientRect: n.clientRect,
866
+ editor: r.editor
867
+ }), r.clientRect && (e = x("body", {
868
+ getReferenceClientRect: r.clientRect,
868
869
  appendTo: () => document.body,
869
870
  content: t.element,
870
871
  showOnCreate: !1,
871
872
  onShow: () => {
872
- r = !0;
873
+ n = !0;
873
874
  },
874
875
  onHidden: () => {
875
- r = !1;
876
+ n = !1;
876
877
  },
877
878
  interactive: !0,
878
879
  trigger: "manual",
879
880
  placement: "top-start",
880
881
  zIndex: 650,
881
882
  plugins: [k]
882
- }), n.items.length > 0 && (e == null || e[0].show()));
883
+ }), r.items.length > 0 && (e == null || e[0].show()));
883
884
  },
884
- onUpdate(n) {
885
- t == null || t.updateProps(n), n.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), n.clientRect && (e == null || e[0].setProps({
886
- getReferenceClientRect: n.clientRect
885
+ onUpdate(r) {
886
+ t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), r.clientRect && (e == null || e[0].setProps({
887
+ getReferenceClientRect: r.clientRect
887
888
  }));
888
889
  },
889
- onKeyDown(n) {
890
+ onKeyDown(r) {
890
891
  var i;
891
- if (r)
892
- return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(n);
892
+ if (n)
893
+ return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
893
894
  },
894
895
  onExit() {
895
896
  e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
896
897
  }
897
898
  };
898
899
  }
899
- }, Kt = {
900
+ }, qt = {
900
901
  name: "SlashCommandSuggestion",
901
902
  props: {
902
903
  item: {
@@ -916,73 +917,74 @@ const Ft = Ht.exports, qt = {
916
917
  }
917
918
  }
918
919
  };
919
- var Ut = function() {
920
- var e = this, r = e._self._c;
921
- return r("div", [r("div", { staticClass: "d-body--md-compact" }, [r("span", [e._v("/" + e._s(e.command))]), e.parametersExample ? r("span", [e._v(" " + e._s(e.parametersExample))]) : e._e()]), r("div", { staticClass: "d-body--sm d-fc-tertiary" }, [e._v(" " + e._s(e.description) + " ")])]);
922
- }, Nt = [], Vt = /* @__PURE__ */ c(
920
+ var Kt = function() {
921
+ var e = this, n = e._self._c;
922
+ return n("div", [n("div", { staticClass: "d-body--md-compact" }, [n("span", [e._v("/" + e._s(e.command))]), e.parametersExample ? n("span", [e._v(" " + e._s(e.parametersExample))]) : e._e()]), n("div", { staticClass: "d-body--sm d-fc-tertiary" }, [e._v(" " + e._s(e.description) + " ")])]);
923
+ }, Vt = [], zt = /* @__PURE__ */ c(
924
+ qt,
923
925
  Kt,
924
- Ut,
925
- Nt
926
+ Vt
926
927
  );
927
- const zt = Vt.exports, Wt = {
928
+ const Wt = zt.exports, Xt = {
928
929
  // This function comes from the user and passed to the editor directly.
929
930
  // This will also activate the mention plugin on the editor
930
931
  // items: ({ query }) => { return [] },
931
932
  allowSpaces: !0,
932
933
  startOfLine: !0,
933
934
  render: () => {
934
- let t, e, r = !1;
935
+ let t, e, n = !1;
935
936
  return {
936
- onStart: (n) => {
937
+ onStart: (r) => {
937
938
  t = new w(C, {
938
939
  parent: void 0,
939
940
  propsData: {
940
- itemComponent: zt,
941
+ itemComponent: Wt,
941
942
  itemType: "slash-command",
942
- ...n
943
+ ...r
943
944
  },
944
- editor: n.editor
945
- }), n.clientRect && (e = x("body", {
946
- getReferenceClientRect: n.clientRect,
945
+ editor: r.editor
946
+ }), r.clientRect && (e = x("body", {
947
+ getReferenceClientRect: r.clientRect,
947
948
  appendTo: () => document.body,
948
949
  content: t.element,
949
950
  showOnCreate: !1,
950
951
  onShow: () => {
951
- r = !0;
952
+ n = !0;
952
953
  },
953
954
  onHidden: () => {
954
- r = !1;
955
+ n = !1;
955
956
  },
956
957
  interactive: !0,
957
958
  trigger: "manual",
958
959
  placement: "top-start",
959
960
  zIndex: 650,
960
961
  plugins: [k]
961
- }), n.items.length > 0 && (e == null || e[0].show()));
962
+ }), r.items.length > 0 && (e == null || e[0].show()));
962
963
  },
963
- onUpdate(n) {
964
- t == null || t.updateProps(n), n.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), n.clientRect && (e == null || e[0].setProps({
965
- getReferenceClientRect: n.clientRect
964
+ onUpdate(r) {
965
+ t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), r.clientRect && (e == null || e[0].setProps({
966
+ getReferenceClientRect: r.clientRect
966
967
  }));
967
968
  },
968
- onKeyDown(n) {
969
+ onKeyDown(r) {
969
970
  var i;
970
- if (r)
971
- return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(n);
971
+ if (n)
972
+ return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
972
973
  },
973
974
  onExit() {
974
975
  e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
975
976
  }
976
977
  };
977
978
  }
978
- }, Xt = {
979
+ }, Jt = {
979
980
  name: "DtRichTextEditor",
980
981
  components: {
981
- EditorContent: P,
982
- BubbleMenu: H,
983
- DtButton: je,
984
- DtStack: v
982
+ EditorContent: H,
983
+ BubbleMenu: P,
984
+ DtButton: Ae,
985
+ DtStack: b
985
986
  },
987
+ mixins: [De],
986
988
  props: {
987
989
  /**
988
990
  * Value of the input. The object format should match TipTap's JSON
@@ -1006,6 +1008,14 @@ const zt = Vt.exports, Wt = {
1006
1008
  type: Boolean,
1007
1009
  default: !1
1008
1010
  },
1011
+ /**
1012
+ * When this option is false the editor will only ever paste plain text, no rich text formatting will be applied,
1013
+ * and any HTML will be rendered as text.
1014
+ */
1015
+ pasteRichText: {
1016
+ type: Boolean,
1017
+ default: !0
1018
+ },
1009
1019
  /**
1010
1020
  * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
1011
1021
  * line breaks can still be entered by pressing shift+enter.
@@ -1058,7 +1068,7 @@ const zt = Vt.exports, Wt = {
1058
1068
  type: String,
1059
1069
  default: "html",
1060
1070
  validator(t) {
1061
- return Ee.includes(t);
1071
+ return Se.includes(t);
1062
1072
  }
1063
1073
  },
1064
1074
  /**
@@ -1332,17 +1342,17 @@ const zt = Vt.exports, Wt = {
1332
1342
  // eslint-disable-next-line complexity
1333
1343
  extensions() {
1334
1344
  const t = [Z, de, me, te];
1335
- t.push(this.useDivTags ? dt : j), this.allowBlockquote && t.push(Y), this.allowBold && t.push(ne), this.allowBulletList && (t.push(re), t.push(oe.extend({
1336
- renderText({ node: n }) {
1337
- return n.textContent;
1345
+ t.push(this.useDivTags ? ut : A), this.allowBlockquote && t.push(Y), this.allowBold && t.push(ne), this.allowBulletList && (t.push(re), t.push(oe.extend({
1346
+ renderText({ node: r }) {
1347
+ return r.textContent;
1338
1348
  }
1339
1349
  })), t.push(ae)), this.allowItalic && t.push(ie), this.allowStrike && t.push(le), this.allowUnderline && t.push(ce), this.placeholder && t.push(
1340
1350
  ee.configure({ placeholder: this.placeholder })
1341
1351
  );
1342
- const e = this, r = J.create({
1352
+ const e = this, n = J.create({
1343
1353
  addKeyboardShortcuts() {
1344
1354
  return {
1345
- "Shift-Enter": ({ editor: n }) => e.allowLineBreaks ? !1 : (n.commands.first(({ commands: i }) => [
1355
+ "Shift-Enter": ({ editor: r }) => e.allowLineBreaks ? !1 : (r.commands.first(({ commands: i }) => [
1346
1356
  () => i.newlineInCode(),
1347
1357
  () => e.allowBulletList && i.splitListItem("listItem"),
1348
1358
  () => i.createParagraphNear(),
@@ -1353,38 +1363,38 @@ const zt = Vt.exports, Wt = {
1353
1363
  };
1354
1364
  }
1355
1365
  });
1356
- if (t.push(r), this.link && t.push(se.extend({ inclusive: !1 }).configure({
1366
+ if (t.push(n), this.link && t.push(se.extend({ inclusive: !1 }).configure({
1357
1367
  HTMLAttributes: {
1358
1368
  class: "d-link d-wb-break-all"
1359
1369
  },
1360
1370
  openOnClick: !1,
1361
1371
  autolink: !0,
1362
- protocols: L
1363
- })), this.customLink && t.push(this.getExtension(lt, this.customLink)), this.mentionSuggestion) {
1364
- const n = { ...this.mentionSuggestion, ...Ot };
1365
- t.push(gt.configure({ suggestion: n }));
1372
+ protocols: $
1373
+ })), this.customLink && t.push(this.getExtension(ct, this.customLink)), this.mentionSuggestion) {
1374
+ const r = { ...this.mentionSuggestion, ...Mt };
1375
+ t.push(_t.configure({ suggestion: r }));
1366
1376
  }
1367
1377
  if (this.channelSuggestion) {
1368
- const n = { ...this.channelSuggestion, ...qt };
1369
- t.push(xt.configure({ suggestion: n }));
1378
+ const r = { ...this.channelSuggestion, ...Ut };
1379
+ t.push(Ct.configure({ suggestion: r }));
1370
1380
  }
1371
1381
  if (this.slashCommandSuggestion) {
1372
- const n = { ...this.slashCommandSuggestion, ...Wt };
1373
- t.push($t.configure({ suggestion: n }));
1382
+ const r = { ...this.slashCommandSuggestion, ...Xt };
1383
+ t.push($t.configure({ suggestion: r }));
1374
1384
  }
1375
- return t.push(et), t.push(ue.configure({
1385
+ return t.push(tt), t.push(ue.configure({
1376
1386
  types: ["paragraph"]
1377
1387
  })), this.allowCode && t.push(Q), this.allowCodeblock && t.push(G.extend({
1378
- renderText({ node: n }) {
1388
+ renderText({ node: r }) {
1379
1389
  return `\`\`\`
1380
- ${n.textContent}
1390
+ ${r.textContent}
1381
1391
  \`\`\``;
1382
1392
  }
1383
1393
  }).configure({
1384
1394
  HTMLAttributes: {
1385
1395
  class: "d-rich-text-editor__code-block"
1386
1396
  }
1387
- })), this.allowInlineImages && t.push(ct), (this.allowFontFamily || this.allowFontColor) && (t.push(he), this.allowFontColor && t.push(fe), this.allowFontFamily && t.push(pe)), this.additionalExtensions.length && t.push(...this.additionalExtensions), t;
1397
+ })), this.allowInlineImages && t.push(dt), (this.allowFontFamily || this.allowFontColor) && (t.push(he), this.allowFontColor && t.push(fe), this.allowFontFamily && t.push(pe)), this.additionalExtensions.length && t.push(...this.additionalExtensions), t;
1388
1398
  },
1389
1399
  inputAttrs() {
1390
1400
  const t = {
@@ -1424,7 +1434,7 @@ ${n.textContent}
1424
1434
  this.destroyEditor();
1425
1435
  },
1426
1436
  mounted() {
1427
- Se(this.$el, this.$options.name), this.processValue(this.value, !1);
1437
+ Te(this.$el, this.$options.name), this.processValue(this.value, !1);
1428
1438
  },
1429
1439
  methods: {
1430
1440
  createEditor() {
@@ -1433,33 +1443,33 @@ ${n.textContent}
1433
1443
  content: this.value,
1434
1444
  editable: this.editable,
1435
1445
  extensions: this.extensions,
1446
+ parseOptions: {
1447
+ preserveWhitespace: "full"
1448
+ },
1436
1449
  editorProps: {
1437
1450
  attributes: {
1438
1451
  ...this.inputAttrs,
1439
1452
  class: this.inputClass
1440
1453
  },
1441
- handlePaste: (t, e) => {
1442
- if (!this.link && !this.customLink) {
1443
- const r = /^https?:\/\//;
1444
- if (!(e != null && e.clipboardData))
1445
- return !1;
1446
- const n = e.clipboardData.getData("text");
1447
- if (!r.test(n) || !e.clipboardData.getData("text/html"))
1448
- return !1;
1449
- const i = n.replace(/\n/g, "<br>").replace(/ {2}/g, "&nbsp;&nbsp;");
1450
- return this.editor.chain().focus().insertContent(i).run(), !0;
1454
+ handlePaste: (t, e, n) => {
1455
+ if (!this.pasteRichText) {
1456
+ const i = (e.clipboardData || window.clipboardData).getData("text/plain");
1457
+ if (i) {
1458
+ const { tr: o } = t.state, { from: s, to: a } = t.state.selection;
1459
+ return o.insertText(i, s, a), t.dispatch(o), !0;
1460
+ }
1451
1461
  }
1452
1462
  return !1;
1453
1463
  },
1454
1464
  // Moves the <br /> tags inside the previous closing tag to avoid
1455
1465
  // Prosemirror wrapping them within another </p> tag.
1456
1466
  transformPastedHTML(t) {
1457
- return t.replace(/(<\/\w+>)((<br \/>)+)/g, "$2$3$1");
1467
+ return t.replace(/<br\s*\/?>/gi, "<br />").replace(/(<\/(?:p|div)>)\s*\n/gi, "$1<br />").replace(/\n(?=\S)/g, "<br />").replace(/(<\/\w+>)((<br \/>)+)/g, "$2$3$1");
1458
1468
  }
1459
1469
  }
1460
1470
  }), this.addEditorListeners();
1461
1471
  },
1462
- bubbleMenuShouldShow({ editor: t, view: e, state: r, oldState: n, from: i, to: o }) {
1472
+ bubbleMenuShouldShow({ editor: t, view: e, state: n, oldState: r, from: i, to: o }) {
1463
1473
  return t.isActive("link");
1464
1474
  },
1465
1475
  /**
@@ -1469,7 +1479,7 @@ ${n.textContent}
1469
1479
  */
1470
1480
  getSelectedLinkText(t) {
1471
1481
  var a, l, d;
1472
- const { view: e, state: r } = t, { from: n, to: i } = e.state.selection, o = r.doc.textBetween(n, i, ""), s = this.editor.state.doc.nodeAt(n);
1482
+ const { view: e, state: n } = t, { from: r, to: i } = e.state.selection, o = n.doc.textBetween(r, i, ""), s = this.editor.state.doc.nodeAt(r);
1473
1483
  return s && ((d = (l = (a = s.marks) == null ? void 0 : a.at(0)) == null ? void 0 : l.type) == null ? void 0 : d.name) === "link" ? s.textContent : o;
1474
1484
  },
1475
1485
  editLink() {
@@ -1480,33 +1490,33 @@ ${n.textContent}
1480
1490
  this.$emit("edit-link", e);
1481
1491
  },
1482
1492
  removeLink() {
1483
- var t, e, r, n;
1484
- (n = (r = (e = (t = this.editor) == null ? void 0 : t.chain()) == null ? void 0 : e.focus()) == null ? void 0 : r.unsetLink()) == null || n.run();
1493
+ var t, e, n, r;
1494
+ (r = (n = (e = (t = this.editor) == null ? void 0 : t.chain()) == null ? void 0 : e.focus()) == null ? void 0 : n.unsetLink()) == null || r.run();
1485
1495
  },
1486
1496
  openLink() {
1487
- var e, r;
1488
- (r = (e = this.editor) == null ? void 0 : e.chain()) == null || r.focus();
1497
+ var e, n;
1498
+ (n = (e = this.editor) == null ? void 0 : e.chain()) == null || n.focus();
1489
1499
  const t = this.editor.getAttributes("link").href;
1490
1500
  window.open(t, "_blank");
1491
1501
  },
1492
1502
  // eslint-disable-next-line complexity
1493
- setLink(t, e, r, n = L, i) {
1503
+ setLink(t, e, n, r = $, i) {
1494
1504
  var a, l, d;
1495
1505
  if (!t) {
1496
1506
  this.removeLink();
1497
1507
  return;
1498
1508
  }
1499
- n.find((u) => u.test(t)) || (t = `${i}${t}`), this.editor.chain().focus().extendMarkRange("link").run();
1509
+ r.find((u) => u.test(t)) || (t = `${i}${t}`), this.editor.chain().focus().extendMarkRange("link").run();
1500
1510
  const s = (d = (l = (a = this.editor) == null ? void 0 : a.view) == null ? void 0 : l.state) == null ? void 0 : d.selection;
1501
- this.editor.chain().focus().insertContent(e).setTextSelection({ from: s.from, to: s.from + e.length }).setLink({ href: t, class: r.class }).run();
1511
+ this.editor.chain().focus().insertContent(e).setTextSelection({ from: s.from, to: s.from + e.length }).setLink({ href: t, class: n.class }).run();
1502
1512
  },
1503
1513
  // eslint-disable-next-line complexity
1504
1514
  processValue(t, e = !0) {
1505
- const r = this.getOutput();
1506
- if (!(e && Ae(t, r))) {
1515
+ const n = this.getOutput();
1516
+ if (!(e && Oe(t, n))) {
1507
1517
  if (typeof t == "string" && this.outputFormat === "text") {
1508
- const n = new RegExp(`(${M})`, "g");
1509
- t = t == null ? void 0 : t.replace(n, '<emoji-component code="$1"></emoji-component>');
1518
+ const r = new RegExp(`(${D})`, "g");
1519
+ t = t == null ? void 0 : t.replace(r, '<emoji-component code="$1"></emoji-component>');
1510
1520
  }
1511
1521
  this.editor.commands.setContent(t, !1);
1512
1522
  }
@@ -1519,11 +1529,11 @@ ${n.textContent}
1519
1529
  this.$emit("input", t), this.$emit("update:value", t);
1520
1530
  const e = this.editor.getJSON();
1521
1531
  this.$emit("json-input", e);
1522
- const r = this.editor.getHTML();
1523
- this.$emit("html-input", r);
1524
- const n = this.editor.getText({ blockSeparator: `
1532
+ const n = this.editor.getHTML();
1533
+ this.$emit("html-input", n);
1534
+ const r = this.editor.getText({ blockSeparator: `
1525
1535
  ` });
1526
- this.$emit("text-input", n);
1536
+ this.$emit("text-input", r);
1527
1537
  },
1528
1538
  /**
1529
1539
  * The Editor exposes event hooks that we have to map our emits into. See
@@ -1560,8 +1570,8 @@ ${n.textContent}
1560
1570
  }
1561
1571
  },
1562
1572
  getExtension(t, e) {
1563
- var r;
1564
- return typeof e == "boolean" ? t : (r = t.configure) == null ? void 0 : r.call(t, e);
1573
+ var n;
1574
+ return typeof e == "boolean" ? t : (n = t.configure) == null ? void 0 : n.call(t, e);
1565
1575
  },
1566
1576
  updateEditorAttributes(t) {
1567
1577
  this.editor.setOptions({
@@ -1579,15 +1589,15 @@ ${n.textContent}
1579
1589
  }
1580
1590
  }
1581
1591
  };
1582
- var Jt = function() {
1583
- var e = this, r = e._self._c;
1584
- return r("div", [e.editor && e.link && !e.hideLinkBubbleMenu ? r("bubble-menu", { staticStyle: { visibility: "visible" }, attrs: { editor: e.editor, "should-show": e.bubbleMenuShouldShow, "tippy-options": e.tippyOptions } }, [r("div", { staticClass: "d-popover__dialog" }, [r("dt-stack", { staticClass: "d-rich-text-editor-bubble-menu__button-stack", attrs: { direction: "row", gap: "0" } }, [r("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: e.editLink } }, [e._v(" Edit ")]), r("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: e.openLink } }, [e._v(" Open link ")]), r("dt-button", { attrs: { kind: "danger", importance: "clear" }, on: { click: e.removeLink } }, [e._v(" Remove ")])], 1)], 1)]) : e._e(), r("editor-content", e._g({ ref: "editor", staticClass: "d-rich-text-editor", attrs: { editor: e.editor, "data-qa": "dt-rich-text-editor" } }, e.editorListeners))], 1);
1585
- }, Yt = [], Gt = /* @__PURE__ */ c(
1586
- Xt,
1592
+ var Yt = function() {
1593
+ var e = this, n = e._self._c;
1594
+ return n("div", [e.editor && e.link && !e.hideLinkBubbleMenu ? n("bubble-menu", { staticStyle: { visibility: "visible" }, attrs: { editor: e.editor, "should-show": e.bubbleMenuShouldShow, "tippy-options": e.tippyOptions } }, [n("div", { staticClass: "d-popover__dialog" }, [n("dt-stack", { staticClass: "d-rich-text-editor-bubble-menu__button-stack", attrs: { direction: "row", gap: "0" } }, [n("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: e.editLink } }, [e._v(" " + e._s(e.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")) + " ")]), n("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: e.openLink } }, [e._v(" " + e._s(e.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")) + " ")]), n("dt-button", { attrs: { kind: "danger", importance: "clear" }, on: { click: e.removeLink } }, [e._v(" " + e._s(e.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")) + " ")])], 1)], 1)]) : e._e(), n("editor-content", e._g({ ref: "editor", staticClass: "d-rich-text-editor", attrs: { editor: e.editor, "data-qa": "dt-rich-text-editor" } }, e.editorListeners))], 1);
1595
+ }, Gt = [], Qt = /* @__PURE__ */ c(
1587
1596
  Jt,
1588
- Yt
1597
+ Yt,
1598
+ Gt
1589
1599
  );
1590
- const Kn = Gt.exports;
1600
+ const Kn = Qt.exports;
1591
1601
  export {
1592
1602
  Kn as default
1593
1603
  };