@dialpad/dialtone-vue 2.195.3 → 2.195.5

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 (494) hide show
  1. package/dist/common/constants/index.cjs.map +1 -1
  2. package/dist/common/constants/index.js.map +1 -1
  3. package/dist/common/dates/index.cjs.map +1 -1
  4. package/dist/common/dates/index.js +3 -3
  5. package/dist/common/dates/index.js.map +1 -1
  6. package/dist/common/emoji/index.cjs +1 -1
  7. package/dist/common/emoji/index.cjs.map +1 -1
  8. package/dist/common/emoji/index.js +17 -19
  9. package/dist/common/emoji/index.js.map +1 -1
  10. package/dist/common/mixins/dom.cjs.map +1 -1
  11. package/dist/common/mixins/dom.js.map +1 -1
  12. package/dist/common/mixins/input-group.cjs.map +1 -1
  13. package/dist/common/mixins/input-group.js +5 -5
  14. package/dist/common/mixins/input-group.js.map +1 -1
  15. package/dist/common/mixins/input.cjs.map +1 -1
  16. package/dist/common/mixins/input.js.map +1 -1
  17. package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
  18. package/dist/common/mixins/keyboard-list-navigation.js.map +1 -1
  19. package/dist/common/mixins/modal.cjs.map +1 -1
  20. package/dist/common/mixins/modal.js.map +1 -1
  21. package/dist/common/mixins/skeleton.cjs.map +1 -1
  22. package/dist/common/mixins/skeleton.js.map +1 -1
  23. package/dist/common/utils/index.cjs.map +1 -1
  24. package/dist/common/utils/index.js +0 -1
  25. package/dist/common/utils/index.js.map +1 -1
  26. package/dist/common/validators/index.cjs.map +1 -1
  27. package/dist/common/validators/index.js.map +1 -1
  28. package/dist/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  29. package/dist/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  30. package/dist/lib/attachment-carousel/attachment-carousel.js +4 -4
  31. package/dist/lib/avatar/avatar-constants.cjs.map +1 -1
  32. package/dist/lib/avatar/avatar-constants.js.map +1 -1
  33. package/dist/lib/avatar/avatar.cjs.map +1 -1
  34. package/dist/lib/avatar/avatar.js +11 -11
  35. package/dist/lib/avatar/avatar.js.map +1 -1
  36. package/dist/lib/avatar/utils.cjs.map +1 -1
  37. package/dist/lib/avatar/utils.js.map +1 -1
  38. package/dist/lib/badge/badge.cjs.map +1 -1
  39. package/dist/lib/badge/badge.js +7 -7
  40. package/dist/lib/badge/badge.js.map +1 -1
  41. package/dist/lib/banner/banner.cjs +1 -1
  42. package/dist/lib/banner/banner.cjs.map +1 -1
  43. package/dist/lib/banner/banner.js +4 -4
  44. package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
  45. package/dist/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  46. package/dist/lib/button/button-constants.cjs.map +1 -1
  47. package/dist/lib/button/button-constants.js.map +1 -1
  48. package/dist/lib/button/button.cjs +1 -1
  49. package/dist/lib/button/button.cjs.map +1 -1
  50. package/dist/lib/button/button.js +14 -14
  51. package/dist/lib/button/button.js.map +1 -1
  52. package/dist/lib/button-group/button-group.cjs.map +1 -1
  53. package/dist/lib/button-group/buttons-decorator.cjs.map +1 -1
  54. package/dist/lib/callbar-button/callbar-button-constants.cjs.map +1 -1
  55. package/dist/lib/callbar-button/callbar-button-constants.js.map +1 -1
  56. package/dist/lib/callbar-button/callbar-button.cjs +1 -1
  57. package/dist/lib/callbar-button/callbar-button.cjs.map +1 -1
  58. package/dist/lib/callbar-button/callbar-button.js +3 -3
  59. package/dist/lib/callbar-button/callbar-button.js.map +1 -1
  60. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  61. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  62. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +6 -6
  63. package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  64. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  65. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  66. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +6 -6
  67. package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  68. package/dist/lib/callbox/callbox-constants.cjs.map +1 -1
  69. package/dist/lib/callbox/callbox-constants.js.map +1 -1
  70. package/dist/lib/callbox/callbox.cjs.map +1 -1
  71. package/dist/lib/callbox/callbox.js +5 -5
  72. package/dist/lib/checkbox/checkbox-constants.cjs.map +1 -1
  73. package/dist/lib/checkbox/checkbox-constants.js.map +1 -1
  74. package/dist/lib/checkbox/checkbox.cjs.map +1 -1
  75. package/dist/lib/checkbox-group/checkbox-group.cjs.map +1 -1
  76. package/dist/lib/checkbox-group/checkbox-group.js.map +1 -1
  77. package/dist/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
  78. package/dist/lib/chip/chip-constants.cjs.map +1 -1
  79. package/dist/lib/chip/chip-constants.js.map +1 -1
  80. package/dist/lib/chip/chip.cjs.map +1 -1
  81. package/dist/lib/chip/chip.js +3 -3
  82. package/dist/lib/collapsible/collapsible.cjs +1 -1
  83. package/dist/lib/collapsible/collapsible.cjs.map +1 -1
  84. package/dist/lib/collapsible/collapsible.js +7 -7
  85. package/dist/lib/combobox/combobox-constants.cjs.map +1 -1
  86. package/dist/lib/combobox/combobox-constants.js.map +1 -1
  87. package/dist/lib/combobox/combobox-empty-list.cjs.map +1 -1
  88. package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
  89. package/dist/lib/combobox/combobox-loading-list.cjs.map +1 -1
  90. package/dist/lib/combobox/combobox-loading-list.js +3 -3
  91. package/dist/lib/combobox/combobox.cjs +1 -1
  92. package/dist/lib/combobox/combobox.cjs.map +1 -1
  93. package/dist/lib/combobox/combobox.js +1 -1
  94. package/dist/lib/combobox/combobox.js.map +1 -1
  95. package/dist/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
  96. package/dist/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
  97. package/dist/lib/combobox-multi-select/combobox-multi-select-story-constants.cjs.map +1 -1
  98. package/dist/lib/combobox-multi-select/combobox-multi-select-story-constants.js.map +1 -1
  99. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  100. package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
  101. package/dist/lib/combobox-multi-select/combobox-multi-select.js +4 -4
  102. package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  103. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  104. package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
  105. package/dist/lib/combobox-with-popover/combobox-with-popover.js +9 -9
  106. package/dist/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  107. package/dist/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  108. package/dist/lib/contact-centers-row/contact-centers-row.js +7 -7
  109. package/dist/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  110. package/dist/lib/contact-info/contact-info.cjs.map +1 -1
  111. package/dist/lib/contact-row/contact-row.cjs +1 -1
  112. package/dist/lib/contact-row/contact-row.cjs.map +1 -1
  113. package/dist/lib/contact-row/contact-row.js +4 -4
  114. package/dist/lib/datepicker/datepicker.cjs +1 -1
  115. package/dist/lib/datepicker/datepicker.cjs.map +1 -1
  116. package/dist/lib/datepicker/datepicker.js +83 -83
  117. package/dist/lib/datepicker/datepicker.js.map +1 -1
  118. package/dist/lib/datepicker/formatUtils.cjs.map +1 -1
  119. package/dist/lib/datepicker/formatUtils.js.map +1 -1
  120. package/dist/lib/datepicker/utils.cjs.map +1 -1
  121. package/dist/lib/datepicker/utils.js.map +1 -1
  122. package/dist/lib/description-list/description-list.cjs.map +1 -1
  123. package/dist/lib/dropdown/dropdown-constants.cjs.map +1 -1
  124. package/dist/lib/dropdown/dropdown-constants.js.map +1 -1
  125. package/dist/lib/dropdown/dropdown-story-constants.cjs.map +1 -1
  126. package/dist/lib/dropdown/dropdown-story-constants.js.map +1 -1
  127. package/dist/lib/dropdown/dropdown.cjs +1 -1
  128. package/dist/lib/dropdown/dropdown.cjs.map +1 -1
  129. package/dist/lib/dropdown/dropdown.js +1 -1
  130. package/dist/lib/dropdown/dropdown.js.map +1 -1
  131. package/dist/lib/editor/editor-constants.cjs.map +1 -1
  132. package/dist/lib/editor/editor-constants.js.map +1 -1
  133. package/dist/lib/editor/editor.cjs +1 -1
  134. package/dist/lib/editor/editor.cjs.map +1 -1
  135. package/dist/lib/editor/editor.js +44 -44
  136. package/dist/lib/editor/editor.js.map +1 -1
  137. package/dist/lib/emoji/emoji.cjs.map +1 -1
  138. package/dist/lib/emoji/emoji.js +4 -4
  139. package/dist/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  140. package/dist/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  141. package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
  142. package/dist/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  143. package/dist/lib/emoji-picker/emoji-picker.js +9 -9
  144. package/dist/lib/emoji-picker/emoji-picker.js.map +1 -1
  145. package/dist/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
  146. package/dist/lib/emoji-row/emoji-row-constants.js.map +1 -1
  147. package/dist/lib/emoji-row/emoji-row.cjs +1 -1
  148. package/dist/lib/emoji-row/emoji-row.cjs.map +1 -1
  149. package/dist/lib/emoji-row/emoji-row.js +5 -5
  150. package/dist/lib/emoji-row/emoji-row.js.map +1 -1
  151. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  152. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
  153. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.js +1 -1
  154. package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
  155. package/dist/lib/empty-state/empty-state-constants.cjs.map +1 -1
  156. package/dist/lib/empty-state/empty-state-constants.js.map +1 -1
  157. package/dist/lib/empty-state/empty-state.cjs.map +1 -1
  158. package/dist/lib/empty-state/empty-state.js +3 -3
  159. package/dist/lib/empty-state/empty-state.js.map +1 -1
  160. package/dist/lib/feed-item-pill/feed-item-pill-constants.cjs.map +1 -1
  161. package/dist/lib/feed-item-pill/feed-item-pill-constants.js.map +1 -1
  162. package/dist/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  163. package/dist/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  164. package/dist/lib/feed-item-pill/feed-item-pill.js +3 -3
  165. package/dist/lib/feed-item-row/feed-item-row-constants.cjs.map +1 -1
  166. package/dist/lib/feed-item-row/feed-item-row-constants.js.map +1 -1
  167. package/dist/lib/feed-item-row/feed-item-row.cjs +1 -1
  168. package/dist/lib/feed-item-row/feed-item-row.cjs.map +1 -1
  169. package/dist/lib/feed-item-row/feed-item-row.js +9 -9
  170. package/dist/lib/feed-item-row/feed-item-row.js.map +1 -1
  171. package/dist/lib/general-row/general-row-constants.cjs.map +1 -1
  172. package/dist/lib/general-row/general-row-constants.js.map +1 -1
  173. package/dist/lib/general-row/general-row.cjs +1 -1
  174. package/dist/lib/general-row/general-row.cjs.map +1 -1
  175. package/dist/lib/general-row/general-row.js +14 -14
  176. package/dist/lib/general-row/general-row.js.map +1 -1
  177. package/dist/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
  178. package/dist/lib/general-row/leftbar-general-row-icon.js +30 -30
  179. package/dist/lib/group-row/group-row.cjs.map +1 -1
  180. package/dist/lib/grouped-chip/grouped-chip.cjs.map +1 -1
  181. package/dist/lib/hovercard/hovercard.cjs +1 -1
  182. package/dist/lib/hovercard/hovercard.cjs.map +1 -1
  183. package/dist/lib/hovercard/hovercard.js +7 -7
  184. package/dist/lib/hovercard/hovercard.js.map +1 -1
  185. package/dist/lib/icon/icon-constants.cjs.map +1 -1
  186. package/dist/lib/icon/icon-constants.js.map +1 -1
  187. package/dist/lib/icon/icon.js +3 -3
  188. package/dist/lib/illustration/illustration-constants.cjs.map +1 -1
  189. package/dist/lib/illustration/illustration-constants.js.map +1 -1
  190. package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
  191. package/dist/lib/image-viewer/image-viewer.js.map +1 -1
  192. package/dist/lib/input/input-constants.cjs.map +1 -1
  193. package/dist/lib/input/input-constants.js.map +1 -1
  194. package/dist/lib/input/input.cjs.map +1 -1
  195. package/dist/lib/input/input.js +8 -8
  196. package/dist/lib/input/input.js.map +1 -1
  197. package/dist/lib/input-group/input-group.cjs.map +1 -1
  198. package/dist/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
  199. package/dist/lib/ivr-node/ivr-node-constants.js.map +1 -1
  200. package/dist/lib/ivr-node/ivr-node.cjs +1 -1
  201. package/dist/lib/ivr-node/ivr-node.cjs.map +1 -1
  202. package/dist/lib/ivr-node/ivr-node.js +27 -27
  203. package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
  204. package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +13 -13
  205. package/dist/lib/link/link-constants.cjs.map +1 -1
  206. package/dist/lib/link/link-constants.js.map +1 -1
  207. package/dist/lib/link/link.cjs.map +1 -1
  208. package/dist/lib/link/link.js +3 -3
  209. package/dist/lib/list-item/list-item-constants.cjs.map +1 -1
  210. package/dist/lib/list-item/list-item-constants.js.map +1 -1
  211. package/dist/lib/list-item/list-item.cjs.map +1 -1
  212. package/dist/lib/list-item/list-item.js +1 -1
  213. package/dist/lib/list-item/list-item.js.map +1 -1
  214. package/dist/lib/list-item-group/list-item-group-constants.cjs.map +1 -1
  215. package/dist/lib/list-item-group/list-item-group-constants.js.map +1 -1
  216. package/dist/lib/list-item-group/list-item-group.cjs.map +1 -1
  217. package/dist/lib/loader/loader.cjs.map +1 -1
  218. package/dist/lib/message-input/last-active-nodes.cjs +1 -1
  219. package/dist/lib/message-input/last-active-nodes.cjs.map +1 -1
  220. package/dist/lib/message-input/last-active-nodes.js +22 -22
  221. package/dist/lib/message-input/last-active-nodes.js.map +1 -1
  222. package/dist/lib/message-input/message-input-button.cjs +1 -1
  223. package/dist/lib/message-input/message-input-button.cjs.map +1 -1
  224. package/dist/lib/message-input/message-input-button.js +8 -8
  225. package/dist/lib/message-input/message-input-constants.cjs.map +1 -1
  226. package/dist/lib/message-input/message-input-constants.js.map +1 -1
  227. package/dist/lib/message-input/message-input-link.cjs +1 -1
  228. package/dist/lib/message-input/message-input-link.cjs.map +1 -1
  229. package/dist/lib/message-input/message-input-link.js +8 -8
  230. package/dist/lib/message-input/message-input-topbar.cjs.map +1 -1
  231. package/dist/lib/message-input/message-input-topbar.js +9 -9
  232. package/dist/lib/message-input/message-input.cjs +1 -1
  233. package/dist/lib/message-input/message-input.cjs.map +1 -1
  234. package/dist/lib/message-input/message-input.js +31 -29
  235. package/dist/lib/message-input/message-input.js.map +1 -1
  236. package/dist/lib/modal/modal.cjs +1 -1
  237. package/dist/lib/modal/modal.cjs.map +1 -1
  238. package/dist/lib/modal/modal.js +12 -12
  239. package/dist/lib/modal/modal.js.map +1 -1
  240. package/dist/lib/notice/notice-action.cjs.map +1 -1
  241. package/dist/lib/notice/notice-constants.cjs.map +1 -1
  242. package/dist/lib/notice/notice-constants.js.map +1 -1
  243. package/dist/lib/notice/notice-icon.cjs.map +1 -1
  244. package/dist/lib/notice/notice-icon.js +9 -9
  245. package/dist/lib/notice/notice.cjs.map +1 -1
  246. package/dist/lib/notice/notice.js +3 -3
  247. package/dist/lib/pagination/pagination.cjs.map +1 -1
  248. package/dist/lib/pagination/pagination.js +3 -3
  249. package/dist/lib/pagination/pagination.js.map +1 -1
  250. package/dist/lib/popover/popover-constants.cjs.map +1 -1
  251. package/dist/lib/popover/popover-constants.js.map +1 -1
  252. package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
  253. package/dist/lib/popover/popover.cjs +1 -1
  254. package/dist/lib/popover/popover.cjs.map +1 -1
  255. package/dist/lib/popover/popover.js +16 -16
  256. package/dist/lib/popover/popover.js.map +1 -1
  257. package/dist/lib/popover/tippy-utils.cjs +1 -1
  258. package/dist/lib/popover/tippy-utils.cjs.map +1 -1
  259. package/dist/lib/popover/tippy-utils.js +16 -18
  260. package/dist/lib/popover/tippy-utils.js.map +1 -1
  261. package/dist/lib/presence/presence.cjs.map +1 -1
  262. package/dist/lib/radio/radio-constants.cjs.map +1 -1
  263. package/dist/lib/radio/radio-constants.js.map +1 -1
  264. package/dist/lib/radio/radio.cjs.map +1 -1
  265. package/dist/lib/radio-group/radio-group.cjs.map +1 -1
  266. package/dist/lib/radio-group/radios-decorator.cjs.map +1 -1
  267. package/dist/lib/recipes/eslint.config.cjs +2 -0
  268. package/dist/lib/recipes/eslint.config.cjs.map +1 -0
  269. package/dist/lib/recipes/eslint.config.js +12 -0
  270. package/dist/lib/recipes/eslint.config.js.map +1 -0
  271. package/dist/lib/rich-text-editor/channel-suggestion.cjs.map +1 -1
  272. package/dist/lib/rich-text-editor/channel-suggestion.js.map +1 -1
  273. package/dist/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  274. package/dist/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  275. package/dist/lib/rich-text-editor/rich-text-editor-constants.cjs.map +1 -1
  276. package/dist/lib/rich-text-editor/rich-text-editor-constants.js.map +1 -1
  277. package/dist/lib/rich-text-editor/rich-text-editor.cjs +7 -7
  278. package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  279. package/dist/lib/rich-text-editor/rich-text-editor.js +434 -396
  280. package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  281. package/dist/lib/rich-text-editor/slash-command-suggestion.cjs.map +1 -1
  282. package/dist/lib/rich-text-editor/slash-command-suggestion.js.map +1 -1
  283. package/dist/lib/root-layout/root-layout-constants.cjs.map +1 -1
  284. package/dist/lib/root-layout/root-layout-constants.js.map +1 -1
  285. package/dist/lib/root-layout/root-layout.cjs.map +1 -1
  286. package/dist/lib/root-layout/root-layout.js +1 -1
  287. package/dist/lib/scrollbar-directive/scrollbar.cjs.map +1 -1
  288. package/dist/lib/scrollbar-directive/scrollbar.js.map +1 -1
  289. package/dist/lib/select-menu/select-menu-constants.cjs.map +1 -1
  290. package/dist/lib/select-menu/select-menu-constants.js.map +1 -1
  291. package/dist/lib/select-menu/select-menu.cjs.map +1 -1
  292. package/dist/lib/select-menu/select-menu.js +7 -7
  293. package/dist/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
  294. package/dist/lib/skeleton/skeleton-constants.cjs.map +1 -1
  295. package/dist/lib/skeleton/skeleton-constants.js.map +1 -1
  296. package/dist/lib/skeleton/skeleton-list-item.cjs.map +1 -1
  297. package/dist/lib/skeleton/skeleton-paragraph.cjs.map +1 -1
  298. package/dist/lib/skeleton/skeleton-paragraph.js.map +1 -1
  299. package/dist/lib/skeleton/skeleton-shape.cjs.map +1 -1
  300. package/dist/lib/skeleton/skeleton-shape.js +1 -1
  301. package/dist/lib/skeleton/skeleton-text.cjs.map +1 -1
  302. package/dist/lib/skeleton/skeleton.cjs +1 -1
  303. package/dist/lib/skeleton/skeleton.cjs.map +1 -1
  304. package/dist/lib/skeleton/skeleton.js +1 -1
  305. package/dist/lib/skeleton/skeleton.js.map +1 -1
  306. package/dist/lib/split-button/split-button-alpha.cjs.map +1 -1
  307. package/dist/lib/split-button/split-button-constants.cjs.map +1 -1
  308. package/dist/lib/split-button/split-button-constants.js.map +1 -1
  309. package/dist/lib/split-button/split-button-omega.cjs.map +1 -1
  310. package/dist/lib/split-button/split-button.cjs.map +1 -1
  311. package/dist/lib/split-button/split-button.js +5 -5
  312. package/dist/lib/split-button/split-button.js.map +1 -1
  313. package/dist/lib/stack/stack-constants.cjs.map +1 -1
  314. package/dist/lib/stack/stack-constants.js.map +1 -1
  315. package/dist/lib/stack/stack.cjs.map +1 -1
  316. package/dist/lib/stack/stack.js +9 -9
  317. package/dist/lib/stack/utils.cjs.map +1 -1
  318. package/dist/lib/stack/utils.js.map +1 -1
  319. package/dist/lib/stack/validators.cjs.map +1 -1
  320. package/dist/lib/stack/validators.js.map +1 -1
  321. package/dist/lib/tab/tab-group.cjs.map +1 -1
  322. package/dist/lib/tab/tab-group.js +5 -5
  323. package/dist/lib/tab/tab-group.js.map +1 -1
  324. package/dist/lib/tab/tab.cjs.map +1 -1
  325. package/dist/lib/toast/toast-constants.cjs.map +1 -1
  326. package/dist/lib/toast/toast-constants.js.map +1 -1
  327. package/dist/lib/toast/toast.cjs +1 -1
  328. package/dist/lib/toast/toast.cjs.map +1 -1
  329. package/dist/lib/toast/toast.js +11 -11
  330. package/dist/lib/toggle/toggle-constants.cjs.map +1 -1
  331. package/dist/lib/toggle/toggle-constants.js.map +1 -1
  332. package/dist/lib/toggle/toggle.cjs +1 -1
  333. package/dist/lib/toggle/toggle.cjs.map +1 -1
  334. package/dist/lib/toggle/toggle.js +1 -1
  335. package/dist/lib/toggle/toggle.js.map +1 -1
  336. package/dist/lib/tooltip/tooltip-constants.cjs.map +1 -1
  337. package/dist/lib/tooltip/tooltip-constants.js.map +1 -1
  338. package/dist/lib/tooltip/tooltip.cjs +1 -1
  339. package/dist/lib/tooltip/tooltip.cjs.map +1 -1
  340. package/dist/lib/tooltip/tooltip.js +63 -64
  341. package/dist/lib/tooltip/tooltip.js.map +1 -1
  342. package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
  343. package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
  344. package/dist/lib/top-banner-info/top-banner-info-constants.cjs.map +1 -1
  345. package/dist/lib/top-banner-info/top-banner-info-constants.js.map +1 -1
  346. package/dist/lib/top-banner-info/top-banner-info.cjs.map +1 -1
  347. package/dist/lib/unread-pill/unread-pill-constants.cjs.map +1 -1
  348. package/dist/lib/unread-pill/unread-pill-constants.js.map +1 -1
  349. package/dist/lib/unread-pill/unread-pill.cjs.map +1 -1
  350. package/dist/lib/unread-pill/unread-pill.js +6 -6
  351. package/dist/lib/validation-messages/validation-messages.cjs.map +1 -1
  352. package/dist/lib/validation-messages/validation-messages.js +3 -3
  353. package/dist/localization/de-DE.cjs.map +1 -1
  354. package/dist/localization/de-DE.js.map +1 -1
  355. package/dist/localization/en-US.cjs.map +1 -1
  356. package/dist/localization/en-US.js.map +1 -1
  357. package/dist/localization/es-LA.cjs.map +1 -1
  358. package/dist/localization/es-LA.js.map +1 -1
  359. package/dist/localization/fr-FR.cjs.map +1 -1
  360. package/dist/localization/fr-FR.js.map +1 -1
  361. package/dist/localization/index.cjs.map +1 -1
  362. package/dist/localization/index.js.map +1 -1
  363. package/dist/localization/it-IT.cjs.map +1 -1
  364. package/dist/localization/it-IT.js.map +1 -1
  365. package/dist/localization/ja-JP.cjs.map +1 -1
  366. package/dist/localization/ja-JP.js.map +1 -1
  367. package/dist/localization/nl-NL.cjs.map +1 -1
  368. package/dist/localization/nl-NL.js.map +1 -1
  369. package/dist/localization/pt-BR.cjs.map +1 -1
  370. package/dist/localization/pt-BR.js.map +1 -1
  371. package/dist/localization/ru-RU.cjs.map +1 -1
  372. package/dist/localization/ru-RU.js.map +1 -1
  373. package/dist/localization/zh-CN.cjs.map +1 -1
  374. package/dist/localization/zh-CN.js.map +1 -1
  375. package/dist/node_modules/@linusborg/vue-simple-portal.cjs.map +1 -1
  376. package/dist/node_modules/@linusborg/vue-simple-portal.js.map +1 -1
  377. package/dist/node_modules/@tiptap/vue-2.cjs.map +1 -1
  378. package/dist/node_modules/@tiptap/vue-2.js.map +1 -1
  379. package/dist/shared/sr_only_close_button.cjs.map +1 -1
  380. package/dist/types/common/constants/index.d.ts.map +1 -1
  381. package/dist/types/common/dates/index.d.ts.map +1 -1
  382. package/dist/types/common/emoji/index.d.ts.map +1 -1
  383. package/dist/types/common/mixins/dom.d.ts.map +1 -1
  384. package/dist/types/common/mixins/input.d.ts +7 -7
  385. package/dist/types/common/mixins/input.d.ts.map +1 -1
  386. package/dist/types/common/mixins/input_group.d.ts +3 -3
  387. package/dist/types/common/mixins/modal.d.ts.map +1 -1
  388. package/dist/types/common/utils/index.d.ts.map +1 -1
  389. package/dist/types/components/avatar/avatar.vue.d.ts +8 -8
  390. package/dist/types/components/badge/badge.vue.d.ts +3 -3
  391. package/dist/types/components/banner/banner.vue.d.ts +2 -2
  392. package/dist/types/components/banner/banner.vue.d.ts.map +1 -1
  393. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -1
  394. package/dist/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +1 -1
  395. package/dist/types/components/button/button.vue.d.ts +2 -2
  396. package/dist/types/components/button/button_constants.d.ts.map +1 -1
  397. package/dist/types/components/card/card.vue.d.ts +8 -8
  398. package/dist/types/components/checkbox/checkbox.vue.d.ts +7 -7
  399. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +3 -3
  400. package/dist/types/components/chip/chip.vue.d.ts +5 -5
  401. package/dist/types/components/collapsible/collapsible.vue.d.ts +4 -4
  402. package/dist/types/components/combobox/combobox.vue.d.ts +3 -3
  403. package/dist/types/components/combobox/combobox_empty-list.vue.d.ts +2 -2
  404. package/dist/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
  405. package/dist/types/components/datepicker/formatUtils.d.ts +5 -5
  406. package/dist/types/components/datepicker/formatUtils.d.ts.map +1 -1
  407. package/dist/types/components/datepicker/modules/calendar.vue.d.ts +1 -1
  408. package/dist/types/components/description_list/description_list.vue.d.ts +4 -4
  409. package/dist/types/components/dropdown/dropdown.vue.d.ts +8 -8
  410. package/dist/types/components/emoji/emoji.vue.d.ts +2 -2
  411. package/dist/types/components/emoji_picker/emoji_picker_constants.d.ts.map +1 -1
  412. package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +1 -1
  413. package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  414. package/dist/types/components/eslint.config.d.ts +8 -0
  415. package/dist/types/components/eslint.config.d.ts.map +1 -0
  416. package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  417. package/dist/types/components/input/input.vue.d.ts +7 -7
  418. package/dist/types/components/input_group/input_group.vue.d.ts +3 -3
  419. package/dist/types/components/item_layout/item_layout.vue.d.ts +1 -1
  420. package/dist/types/components/link/link_constants.d.ts.map +1 -1
  421. package/dist/types/components/list_item/list_item.vue.d.ts +2 -2
  422. package/dist/types/components/list_item_group/list_item_group.vue.d.ts +4 -4
  423. package/dist/types/components/modal/modal.vue.d.ts +13 -13
  424. package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
  425. package/dist/types/components/notice/notice.vue.d.ts +2 -2
  426. package/dist/types/components/popover/popover.vue.d.ts +22 -22
  427. package/dist/types/components/popover/popover.vue.d.ts.map +1 -1
  428. package/dist/types/components/popover/popover_header_footer.vue.d.ts +2 -2
  429. package/dist/types/components/popover/tippy_utils.d.ts +2 -3
  430. package/dist/types/components/popover/tippy_utils.d.ts.map +1 -1
  431. package/dist/types/components/radio/radio.vue.d.ts +7 -7
  432. package/dist/types/components/radio_group/radio_group.vue.d.ts +3 -3
  433. package/dist/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +1 -1
  434. package/dist/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts +1 -1
  435. package/dist/types/components/rich_text_editor/extensions/slash_command/slash_command.d.ts.map +1 -1
  436. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +12 -17
  437. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  438. package/dist/types/components/root_layout/root_layout.vue.d.ts +8 -8
  439. package/dist/types/components/select_menu/select_menu.vue.d.ts +10 -10
  440. package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  441. package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +1 -1
  442. package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +3 -3
  443. package/dist/types/components/skeleton/skeleton-text.vue.d.ts +1 -1
  444. package/dist/types/components/skeleton/skeleton.vue.d.ts +7 -7
  445. package/dist/types/components/skeleton/skeleton_constants.d.ts.map +1 -1
  446. package/dist/types/components/split_button/split_button-alpha.vue.d.ts +3 -3
  447. package/dist/types/components/split_button/split_button-omega.vue.d.ts +1 -1
  448. package/dist/types/components/split_button/split_button.vue.d.ts +2 -2
  449. package/dist/types/components/tab/tab.vue.d.ts +2 -2
  450. package/dist/types/components/tab/tab_group.vue.d.ts +2 -2
  451. package/dist/types/components/tab/tab_panel.vue.d.ts +2 -2
  452. package/dist/types/components/tab/tab_panel.vue.d.ts.map +1 -1
  453. package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +2 -2
  454. package/dist/types/components/toast/layouts/toast_layout_default.vue.d.ts +2 -2
  455. package/dist/types/components/toast/toast.vue.d.ts +7 -7
  456. package/dist/types/components/toast/toast_constants.d.ts.map +1 -1
  457. package/dist/types/components/toggle/toggle.vue.d.ts +5 -5
  458. package/dist/types/components/tooltip/tooltip.vue.d.ts +8 -8
  459. package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  460. package/dist/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  461. package/dist/types/components/validation_messages/validation_messages.vue.d.ts +0 -1
  462. package/dist/types/components/validation_messages/validation_messages.vue.d.ts.map +1 -1
  463. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  464. package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +5 -5
  465. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +6 -6
  466. package/dist/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
  467. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  468. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +7 -7
  469. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +3 -3
  470. package/dist/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -1
  471. package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +4 -4
  472. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  473. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  474. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts.map +1 -1
  475. package/dist/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -1
  476. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -15
  477. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  478. package/dist/types/recipes/eslint.config.d.ts +8 -0
  479. package/dist/types/recipes/eslint.config.d.ts.map +1 -0
  480. package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +1 -1
  481. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +1 -1
  482. package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +1 -1
  483. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  484. package/package.json +6 -6
  485. package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +0 -47
  486. package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +0 -1
  487. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +0 -45
  488. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts.map +0 -1
  489. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +0 -47
  490. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +0 -1
  491. package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +0 -47
  492. package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts.map +0 -1
  493. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +0 -52
  494. package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +0 -1
@@ -1,5 +1,5 @@
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";
1
+ import { nodeViewProps as _, NodeViewWrapper as y, VueRenderer as w, VueNodeViewRenderer as v, BubbleMenu as H, EditorContent as j, Editor as N } from "../../node_modules/@tiptap/vue-2.js";
2
+ import { Node as F, nodePasteRule as E, InputRule as K, mergeAttributes as m, getMarksBetween as q, combineTransactionSteps as U, getChangedRanges as z, findChildrenInRange as W, Mark as V, 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";
@@ -14,8 +14,8 @@ import ie from "@tiptap/extension-link";
14
14
  import oe from "@tiptap/extension-list-item";
15
15
  import ae from "@tiptap/extension-ordered-list";
16
16
  import le from "@tiptap/extension-strike";
17
- import ce from "@tiptap/extension-underline";
18
- import de from "@tiptap/extension-text";
17
+ import de from "@tiptap/extension-underline";
18
+ import ce from "@tiptap/extension-text";
19
19
  import ue from "@tiptap/extension-text-align";
20
20
  import me from "@tiptap/extension-history";
21
21
  import he from "@tiptap/extension-text-style";
@@ -24,41 +24,56 @@ 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
26
  import { emojiPattern as O } from "regex-combined-emojis";
27
- import { n as c } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
27
+ import { n as d } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
28
+ import ye from "../skeleton/skeleton.js";
28
29
  import P from "../emoji/emoji.js";
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";
30
+ import { emojiRegex as we, codeToEmojiData as L, stringToUnicode as ve, emojiShortCodeRegex as xe } from "../../common/emoji/index.js";
31
+ import { emojisIndexed as ke } from "@dialpad/dialtone-emojis";
31
32
  import be from "../list-item/list-item.js";
32
33
  import x from "../stack/stack.js";
33
- import b from "tippy.js";
34
- import { linkRegex as ke, getPhoneNumberRegex as Ce, warnIfUnmounted as Te } from "../../common/utils/index.js";
35
- import Ee from "@tiptap/extension-image";
34
+ import k from "tippy.js";
35
+ import { getPhoneNumberRegex as Ce, linkRegex as Te, warnIfUnmounted as Ee } from "../../common/utils/index.js";
36
+ import Se from "@tiptap/extension-image";
36
37
  import R from "@tiptap/extension-mention";
37
38
  import D from "../link/link.js";
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
- import Re from "../avatar/avatar.js";
40
- import $e from "@dialpad/dialtone-icons/vue2/hash";
41
- import Ie from "@dialpad/dialtone-icons/vue2/lock";
42
- import Ae from "deep-equal";
43
- import { DialtoneLocalization as Be } from "../../localization/index.js";
44
- import Oe from "../button/button.js";
45
- const Pe = {
39
+ import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as $, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Le, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Re } from "./rich-text-editor-constants.js";
40
+ import $e from "../avatar/avatar.js";
41
+ import Ie from "@dialpad/dialtone-icons/vue2/hash";
42
+ import Ae from "@dialpad/dialtone-icons/vue2/lock";
43
+ import Be from "deep-equal";
44
+ import { DialtoneLocalization as Oe } from "../../localization/index.js";
45
+ import Pe from "../button/button.js";
46
+ const De = {
46
47
  name: "EmojiComponent",
47
48
  components: {
48
- NodeViewWrapper: _,
49
- DtEmoji: P
49
+ NodeViewWrapper: y,
50
+ DtEmoji: P,
51
+ DtSkeleton: ye
52
+ },
53
+ props: _,
54
+ data() {
55
+ return {
56
+ showSkeleton: !0
57
+ };
50
58
  },
51
- props: y
59
+ methods: {
60
+ handleImageLoad() {
61
+ this.showSkeleton = !1;
62
+ },
63
+ handleImageError: function(t) {
64
+ this.showSkeleton = !1, t.target.parentNode.remove();
65
+ }
66
+ }
52
67
  };
53
- var De = function() {
54
- var t = this, n = t._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: t.node.attrs.code } })], 1);
56
- }, Me = [], He = /* @__PURE__ */ c(
57
- Pe,
68
+ var Me = function() {
69
+ var e = this, n = e._self._c;
70
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block d-va-bottom d-lh0" }, [e.node.attrs.code ? n("dt-emoji", { attrs: { size: "500", code: e.node.attrs.code } }) : [e.showSkeleton ? n("dt-skeleton", { staticClass: "d-icon d-icon--size-500", attrs: { offset: 0, "shape-option": { shape: "circle", size: "100%" } } }) : e._e(), n("img", { directives: [{ name: "show", rawName: "v-show", value: !e.showSkeleton, expression: "!showSkeleton" }], staticClass: "d-icon d-icon--size-500", attrs: { alt: e.node.attrs.name, "aria-label": e.node.attrs.name, title: e.node.attrs.name, src: e.node.attrs.image }, on: { load: e.handleImageLoad, error: e.handleImageError } })]], 2);
71
+ }, He = [], je = /* @__PURE__ */ d(
58
72
  De,
59
- Me
73
+ Me,
74
+ He
60
75
  );
61
- const je = He.exports, Fe = {
76
+ const Ne = je.exports, Fe = {
62
77
  name: "SuggestionList",
63
78
  components: {
64
79
  DtListItem: be
@@ -92,8 +107,8 @@ const je = He.exports, Fe = {
92
107
  }
93
108
  },
94
109
  methods: {
95
- onKeyDown({ event: e }) {
96
- return e.key === "ArrowUp" ? (this.upHandler(), !0) : e.key === "ArrowDown" ? (this.downHandler(), !0) : e.key === "Enter" || e.key === "Tab" ? (this.selectHandler(), !0) : !1;
110
+ onKeyDown({ event: t }) {
111
+ return t.key === "ArrowUp" ? (this.upHandler(), !0) : t.key === "ArrowDown" ? (this.downHandler(), !0) : t.key === "Enter" || t.key === "Tab" ? (this.selectHandler(), !0) : !1;
97
112
  },
98
113
  upHandler() {
99
114
  this.selectedIndex = (this.selectedIndex + this.items.length - 1) % this.items.length, this.scrollActiveElementIntoView();
@@ -103,8 +118,8 @@ const je = He.exports, Fe = {
103
118
  },
104
119
  async scrollActiveElementIntoView() {
105
120
  await this.$nextTick();
106
- const e = this.$refs.suggestionList.querySelector(".d-list-item--highlighted");
107
- e && e.scrollIntoView({
121
+ const t = this.$refs.suggestionList.querySelector(".d-list-item--highlighted");
122
+ t && t.scrollIntoView({
108
123
  behaviour: "smooth",
109
124
  block: "center"
110
125
  });
@@ -112,43 +127,43 @@ const je = He.exports, Fe = {
112
127
  selectHandler() {
113
128
  this.selectItem(this.selectedIndex);
114
129
  },
115
- selectItem(e) {
116
- const t = this.items[e];
130
+ selectItem(t) {
131
+ const e = this.items[t];
117
132
  switch (this.itemType) {
118
133
  case "emoji":
119
- this.command(t);
134
+ this.command(e);
120
135
  return;
121
136
  case "mention":
122
- this.command({ name: t.name, id: t.id, avatarSrc: t.avatarSrc });
137
+ this.command({ name: e.name, id: e.id, avatarSrc: e.avatarSrc });
123
138
  break;
124
139
  case "channel":
125
- this.command({ name: t.name, id: t.id });
140
+ this.command({ name: e.name, id: e.id });
126
141
  break;
127
142
  case "slash-command":
128
- this.command({ command: t.command });
143
+ this.command({ command: e.command });
129
144
  break;
130
145
  }
131
146
  }
132
147
  }
133
148
  };
134
- var Ne = function() {
135
- var t = this, n = t._self._c;
136
- return n("div", { staticClass: "d-popover__dialog d-suggestion-list__container" }, [n("ul", { directives: [{ name: "show", rawName: "v-show", value: t.items.length, expression: "items.length" }], ref: "suggestionList", staticClass: "d-suggestion-list" }, t._l(t.items, function(r, s) {
149
+ var Ke = function() {
150
+ var e = this, n = e._self._c;
151
+ 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, s) {
137
152
  return n("dt-list-item", { key: r.id, class: [
138
153
  "d-suggestion-list__item",
139
- { "d-list-item--highlighted": s === t.selectedIndex }
154
+ { "d-list-item--highlighted": s === e.selectedIndex }
140
155
  ], attrs: { "navigation-type": "arrow-keys" }, on: { click: function(o) {
141
- return t.selectItem(s);
156
+ return e.selectItem(s);
142
157
  }, keydown: function(o) {
143
- return o.preventDefault(), t.onKeyDown.apply(null, arguments);
144
- } } }, [n(t.itemComponent, { tag: "component", attrs: { item: r } })], 1);
158
+ return o.preventDefault(), e.onKeyDown.apply(null, arguments);
159
+ } } }, [n(e.itemComponent, { tag: "component", attrs: { item: r } })], 1);
145
160
  }), 1)]);
146
- }, Ke = [], qe = /* @__PURE__ */ c(
161
+ }, qe = [], Ue = /* @__PURE__ */ d(
147
162
  Fe,
148
- Ne,
149
- Ke
163
+ Ke,
164
+ qe
150
165
  );
151
- const k = qe.exports, Ue = {
166
+ const b = Ue.exports, ze = {
152
167
  name: "EmojiSuggestion",
153
168
  components: {
154
169
  DtEmoji: P,
@@ -162,46 +177,46 @@ const k = qe.exports, Ue = {
162
177
  }
163
178
  };
164
179
  var We = function() {
165
- var t = this, n = t._self._c;
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
- }, Ve = [], ze = /* @__PURE__ */ c(
168
- Ue,
180
+ var e = this, n = e._self._c;
181
+ 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);
182
+ }, Ve = [], Xe = /* @__PURE__ */ d(
183
+ ze,
169
184
  We,
170
185
  Ve
171
186
  );
172
- const Xe = ze.exports, C = {
187
+ const Je = Xe.exports, C = {
173
188
  name: "hideOnEsc",
174
189
  defaultValue: !0,
175
- fn({ hide: e }) {
176
- function t(n) {
177
- n.keyCode === 27 && e();
190
+ fn({ hide: t }) {
191
+ function e(n) {
192
+ n.keyCode === 27 && t();
178
193
  }
179
194
  return {
180
195
  onShow() {
181
- document.addEventListener("keydown", t);
196
+ document.addEventListener("keydown", e);
182
197
  },
183
198
  onHide() {
184
- document.removeEventListener("keydown", t);
199
+ document.removeEventListener("keydown", e);
185
200
  }
186
201
  };
187
202
  }
188
- }, Je = 20, Ye = {
189
- items: ({ query: e }) => {
190
- if (e.length < 2)
203
+ }, Ye = 20, Ge = {
204
+ items: ({ query: t }) => {
205
+ if (t.length < 2)
191
206
  return [];
192
- const t = Object.values(xe);
193
- return e = e.toLowerCase(), t.filter(
207
+ const e = Object.values(ke);
208
+ return t = t.toLowerCase(), e.filter(
194
209
  (r) => [
195
210
  r.name,
196
211
  r.shortname.replaceAll(":", ""),
197
212
  ...r.keywords
198
- ].some((s) => s.startsWith(e))
199
- ).splice(0, Je).map((r) => ({ code: r.shortname }));
213
+ ].some((s) => s.startsWith(t))
214
+ ).splice(0, Ye).map((r) => ({ code: r.shortname }));
200
215
  },
201
- command: ({ editor: e, range: t, props: n }) => {
216
+ command: ({ editor: t, range: e, props: n }) => {
202
217
  var o, i;
203
- const r = e.view.state.selection.$to.nodeAfter;
204
- ((o = r == null ? void 0 : r.text) == null ? void 0 : o.startsWith(" ")) && (t.to += 1), e.chain().focus().insertContentAt(t, [
218
+ const r = t.view.state.selection.$to.nodeAfter;
219
+ ((o = r == null ? void 0 : r.text) == null ? void 0 : o.startsWith(" ")) && (e.to += 1), t.chain().focus().insertContentAt(e, [
205
220
  {
206
221
  type: "emoji",
207
222
  attrs: n
@@ -209,21 +224,21 @@ const Xe = ze.exports, C = {
209
224
  ]).run(), (i = window.getSelection()) == null || i.collapseToEnd();
210
225
  },
211
226
  render: () => {
212
- let e, t, n = !1;
227
+ let t, e, n = !1;
213
228
  return {
214
229
  onStart: (r) => {
215
- e = new w(k, {
230
+ t = new w(b, {
216
231
  parent: void 0,
217
232
  propsData: {
218
- itemComponent: Xe,
233
+ itemComponent: Je,
219
234
  itemType: "emoji",
220
235
  ...r
221
236
  },
222
237
  editor: r.editor
223
- }), r.clientRect && (t = b("body", {
238
+ }), r.clientRect && (e = k("body", {
224
239
  getReferenceClientRect: r.clientRect,
225
240
  appendTo: () => document.body,
226
- content: e.element,
241
+ content: t.element,
227
242
  showOnCreate: !1,
228
243
  onShow: () => {
229
244
  n = !0;
@@ -236,31 +251,31 @@ const Xe = ze.exports, C = {
236
251
  placement: "top-start",
237
252
  zIndex: 650,
238
253
  plugins: [C]
239
- }), r.items.length > 0 && (t == null || t[0].show()));
254
+ }), r.items.length > 0 && (e == null || e[0].show()));
240
255
  },
241
256
  onUpdate(r) {
242
- e == null || e.updateProps(r), r.items.length > 0 ? t == null || t[0].show() : t == null || t[0].hide(), t == null || t[0].setProps({
257
+ 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
258
  getReferenceClientRect: r.clientRect
244
259
  });
245
260
  },
246
261
  onKeyDown(r) {
247
262
  var s;
248
263
  if (n)
249
- return (s = e == null ? void 0 : e.ref) == null ? void 0 : s.onKeyDown(r);
264
+ return (s = t == null ? void 0 : t.ref) == null ? void 0 : s.onKeyDown(r);
250
265
  },
251
266
  onExit() {
252
- t == null || t[0].destroy(), t = null, e == null || e.destroy(), e = null;
267
+ e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
253
268
  }
254
269
  };
255
270
  }
256
- }, Ge = /(:\w+:)$/, Qe = new RegExp(O + "$"), Ze = (e) => {
257
- if (e && L(e[0]))
258
- return { text: e[2] || e[0] };
259
- }, et = (e) => [...e.matchAll(ve)].filter((n) => L(n[0])).map((n) => ({
271
+ }, Qe = /(:\w+:)$/, Ze = new RegExp(O + "$"), et = (t) => {
272
+ if (t && L(t[0]))
273
+ return { text: t[2] || t[0] };
274
+ }, tt = (t) => [...t.matchAll(xe)].filter((n) => L(n[0])).map((n) => ({
260
275
  index: n.index,
261
276
  text: n[0],
262
277
  match: n
263
- })), tt = N.create({
278
+ })), nt = F.create({
264
279
  name: "emoji",
265
280
  addOptions() {
266
281
  return {
@@ -272,12 +287,18 @@ const Xe = ze.exports, C = {
272
287
  selectable: !1,
273
288
  atom: !0,
274
289
  addNodeView() {
275
- return v(je);
290
+ return v(Ne);
276
291
  },
277
292
  addAttributes() {
278
293
  return {
279
294
  code: {
280
295
  default: null
296
+ },
297
+ image: {
298
+ default: null
299
+ },
300
+ name: {
301
+ default: null
281
302
  }
282
303
  };
283
304
  },
@@ -288,23 +309,29 @@ const Xe = ze.exports, C = {
288
309
  }
289
310
  ];
290
311
  },
291
- renderText({ node: e }) {
292
- return ye(L(e.attrs.code).unicode_output);
312
+ renderText({ node: t }) {
313
+ const { image: e, code: n } = t.attrs;
314
+ if (e !== null)
315
+ return e;
316
+ {
317
+ const r = L(n);
318
+ return ve(r.unicode_output);
319
+ }
293
320
  },
294
- renderHTML({ HTMLAttributes: e }) {
295
- return ["emoji-component", m(this.options.HTMLAttributes, e)];
321
+ renderHTML({ HTMLAttributes: t }) {
322
+ return ["emoji-component", m(this.options.HTMLAttributes, t)];
296
323
  },
297
324
  addInputRules() {
298
325
  return [
299
326
  new K({
300
- find: (e) => {
301
- const t = e.match(Ge) || e.match(Qe);
302
- if (t)
303
- return Ze(t);
327
+ find: (t) => {
328
+ const e = t.match(Qe) || t.match(Ze);
329
+ if (e)
330
+ return et(e);
304
331
  },
305
- handler: ({ state: e, range: t, match: n, commands: r, chain: s, can: o }) => {
306
- const { tr: i } = e, a = t.from, l = t.to;
307
- i.replaceWith(a, l, this.type.create({ code: n[0] }));
332
+ handler: ({ state: t, range: e, match: n }) => {
333
+ const { tr: r } = t, s = e.from, o = e.to;
334
+ r.replaceWith(s, o, this.type.create({ code: n[0] }));
308
335
  }
309
336
  })
310
337
  ];
@@ -312,20 +339,24 @@ const Xe = ze.exports, C = {
312
339
  addPasteRules() {
313
340
  return [
314
341
  E({
315
- find: et,
342
+ find: tt,
316
343
  type: this.type,
317
- getAttributes(e) {
344
+ getAttributes(t) {
318
345
  return {
319
- code: e[0]
346
+ code: t[0],
347
+ image: t[1],
348
+ name: t[2]
320
349
  };
321
350
  }
322
351
  }),
323
352
  E({
324
353
  find: we,
325
354
  type: this.type,
326
- getAttributes(e) {
355
+ getAttributes(t) {
327
356
  return {
328
- code: e[0]
357
+ code: t[0],
358
+ image: t[1],
359
+ name: t[2]
329
360
  };
330
361
  }
331
362
  })
@@ -338,48 +369,48 @@ const Xe = ze.exports, C = {
338
369
  pluginKey: new f("emoji"),
339
370
  editor: this.editor,
340
371
  ...this.options.suggestion,
341
- ...Ye
372
+ ...Ge
342
373
  })
343
374
  ];
344
375
  },
345
376
  addKeyboardShortcuts() {
346
377
  return {
347
- Backspace: () => this.editor.commands.command(({ tr: e, state: t }) => {
378
+ Backspace: () => this.editor.commands.command(({ tr: t, state: e }) => {
348
379
  let n = !1;
349
- const { selection: r } = t, { empty: s, anchor: o } = r;
350
- return s ? (t.doc.nodesBetween(o - 1, o, (i, a) => {
380
+ const { selection: r } = e, { empty: s, anchor: o } = r;
381
+ return s ? (e.doc.nodesBetween(o - 1, o, (i, a) => {
351
382
  if (i.type.name === this.name)
352
- return n = !0, e.insertText("", a, a + i.nodeSize), !1;
383
+ return n = !0, t.insertText("", a, a + i.nodeSize), !1;
353
384
  }), n) : !1;
354
385
  })
355
386
  };
356
387
  }
357
388
  });
358
- function nt(e, t, n = () => !0) {
389
+ function rt(t, e, n = () => !0) {
359
390
  const r = [];
360
- t.lastIndex = 0;
391
+ e.lastIndex = 0;
361
392
  let s;
362
- for (; s = t.exec(e); )
363
- n(e, s) && r.push(s);
393
+ for (; s = e.exec(t); )
394
+ n(t, s) && r.push(s);
364
395
  return r;
365
396
  }
366
- function rt(e, t) {
367
- return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
397
+ function st(t, e) {
398
+ return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
368
399
  }
369
- function st(e) {
370
- const t = new RegExp(
400
+ function it(t) {
401
+ const e = new RegExp(
371
402
  "(?:" + [
372
403
  `[!?.,:;'"]`,
373
404
  "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
374
405
  ].join("|"),
375
406
  "g"
376
407
  );
377
- return e.replace(t, "");
408
+ return t.replace(e, "");
378
409
  }
379
- function it(e, t) {
380
- const n = e.slice(0, t + 1).search(/\S+\s*$/), r = e.slice(t).search(/\s/);
410
+ function ot(t, e) {
411
+ const n = t.slice(0, e + 1).search(/\S+\s*$/), r = t.slice(e).search(/\s/);
381
412
  if (r < 0) {
382
- const s = e.slice(n);
413
+ const s = t.slice(n);
383
414
  return {
384
415
  text: s,
385
416
  from: n,
@@ -387,61 +418,61 @@ function it(e, t) {
387
418
  };
388
419
  }
389
420
  return {
390
- text: e.slice(n, r + t),
421
+ text: t.slice(n, r + e),
391
422
  from: n,
392
- to: r + t
423
+ to: r + e
393
424
  };
394
425
  }
395
- function S(e, t, n, r) {
396
- const s = it(e, t);
426
+ function S(t, e, n, r) {
427
+ const s = ot(t, e);
397
428
  if (r.lastIndex = 0, !r.test(s.text))
398
429
  return s;
399
430
  const o = n === "left" ? s.from - 1 : s.to + 1;
400
- return o <= 0 || o >= e.length || o === t ? s : S(e, o, n, r);
431
+ return o <= 0 || o >= t.length || o === e ? s : S(t, o, n, r);
401
432
  }
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 = q(s, o, t);
433
+ function at(t, e, n, r) {
434
+ const s = Math.max(t.from - 1, 0), o = Math.min(t.to + 1, e.content.size), i = q(s, o, e);
404
435
  for (const a of i)
405
436
  a.mark.type === r && n.removeMark(a.from, a.to, r);
406
437
  }
407
438
  const I = Ce(1, 15);
408
- function A(e, t, n, r, s, o) {
409
- if (!e)
439
+ function A(t, e, n, r, s, o) {
440
+ if (!t)
410
441
  return;
411
- let i = n - t - 1;
442
+ let i = n - e - 1;
412
443
  i = i < 0 ? 0 : i;
413
- const a = r - t, l = S(
414
- e,
444
+ const a = r - e, l = S(
445
+ t,
415
446
  i,
416
447
  "left",
417
448
  I
418
- ), d = S(
419
- e,
449
+ ), c = S(
450
+ t,
420
451
  a,
421
452
  "right",
422
453
  I
423
- ), u = e.slice(l.from, d.to);
424
- nt(u, ke, rt).forEach((T) => {
425
- const h = st(T[0]), g = t + l.from + T.index + 1, M = g + h.length;
454
+ ), u = t.slice(l.from, c.to);
455
+ rt(u, Te, st).forEach((T) => {
456
+ const h = it(T[0]), g = e + l.from + T.index + 1, M = g + h.length;
426
457
  s.addMark(g, M, o.create());
427
458
  });
428
459
  }
429
- function at(e) {
430
- let t = !1;
460
+ function lt(t) {
461
+ let e = !1;
431
462
  return new ge({
432
463
  key: new f("autolink"),
433
464
  appendTransaction: (n, r, s) => {
434
465
  const o = n.some((u) => u.docChanged) && !r.doc.eq(s.doc);
435
- if (t && !o)
466
+ if (e && !o)
436
467
  return;
437
468
  const { tr: i } = s, { textContent: a } = s.doc;
438
- t || A(a, 0, 0, a.length, i, e.type), t = !0;
469
+ e || A(a, 0, 0, a.length, i, t.type), e = !0;
439
470
  const l = U(
440
471
  r.doc,
441
472
  [...n]
442
473
  );
443
- return W(l).forEach(({ oldRange: u, newRange: p }) => {
444
- ot(p, s.doc, i, e.type), V(
474
+ return z(l).forEach(({ oldRange: u, newRange: p }) => {
475
+ at(p, s.doc, i, t.type), W(
445
476
  s.doc,
446
477
  p,
447
478
  (h) => h.isTextblock
@@ -452,37 +483,37 @@ function at(e) {
452
483
  u.from,
453
484
  p.to,
454
485
  i,
455
- e.type
486
+ t.type
456
487
  );
457
488
  });
458
489
  }), i;
459
490
  }
460
491
  });
461
492
  }
462
- const lt = {
493
+ const dt = {
463
494
  class: "d-link d-c-text d-d-inline-block d-wb-break-all",
464
495
  rel: "noopener noreferrer nofollow"
465
- }, ct = z.create({
496
+ }, ct = V.create({
466
497
  name: "CustomLink",
467
- renderHTML({ HTMLAttributes: e }) {
498
+ renderHTML({ HTMLAttributes: t }) {
468
499
  return [
469
500
  "a",
470
501
  m(
471
502
  this.options.HTMLAttributes,
472
- e,
473
- lt
503
+ t,
504
+ dt
474
505
  )
475
506
  ];
476
507
  },
477
- renderText({ node: e }) {
478
- return e.attrs.text;
508
+ renderText({ node: t }) {
509
+ return t.attrs.text;
479
510
  },
480
511
  addProseMirrorPlugins() {
481
512
  return [
482
- at({ type: this.type })
513
+ lt({ type: this.type })
483
514
  ];
484
515
  }
485
- }), dt = Ee.extend({
516
+ }), ut = Se.extend({
486
517
  name: "ConfigurableImage",
487
518
  addAttributes() {
488
519
  return {
@@ -506,37 +537,37 @@ const lt = {
506
537
  }
507
538
  };
508
539
  }
509
- }).configure({ inline: !0, allowBase64: !0 }), ut = B.extend({
540
+ }).configure({ inline: !0, allowBase64: !0 }), mt = B.extend({
510
541
  parseHTML() {
511
542
  return [{ tag: "div" }];
512
543
  },
513
- renderHTML({ HTMLAttributes: e }) {
514
- return ["div", m(this.options.HTMLAttributes, e), 0];
544
+ renderHTML({ HTMLAttributes: t }) {
545
+ return ["div", m(this.options.HTMLAttributes, t), 0];
515
546
  }
516
- }), mt = {
547
+ }), ht = {
517
548
  name: "MentionComponent",
518
549
  components: {
519
- NodeViewWrapper: _,
550
+ NodeViewWrapper: y,
520
551
  DtLink: D
521
552
  },
522
- props: y,
553
+ props: _,
523
554
  computed: {
524
555
  text() {
525
556
  return "@" + this.$props.node.attrs.name;
526
557
  }
527
558
  }
528
559
  };
529
- var ht = function() {
530
- var t = this, n = t._self._c;
531
- return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [t._v(" " + t._s(t.text) + " ")])], 1);
532
- }, ft = [], pt = /* @__PURE__ */ c(
533
- mt,
560
+ var ft = function() {
561
+ var e = this, n = e._self._c;
562
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
563
+ }, pt = [], gt = /* @__PURE__ */ d(
534
564
  ht,
535
- ft
565
+ ft,
566
+ pt
536
567
  );
537
- const gt = pt.exports, _t = R.extend({
568
+ const _t = gt.exports, yt = R.extend({
538
569
  addNodeView() {
539
- return v(gt);
570
+ return v(_t);
540
571
  },
541
572
  parseHTML() {
542
573
  return [
@@ -558,39 +589,39 @@ const gt = pt.exports, _t = R.extend({
558
589
  }
559
590
  };
560
591
  },
561
- renderText({ node: e }) {
562
- return `@${e.attrs.id}`;
592
+ renderText({ node: t }) {
593
+ return `@${t.attrs.id}`;
563
594
  },
564
- renderHTML({ HTMLAttributes: e }) {
565
- return ["mention-component", m(this.options.HTMLAttributes, e)];
595
+ renderHTML({ HTMLAttributes: t }) {
596
+ return ["mention-component", m(this.options.HTMLAttributes, t)];
566
597
  }
567
598
  }).configure({
568
599
  suggestion: {
569
600
  char: "@",
570
601
  pluginKey: new f("mentionSuggestion")
571
602
  }
572
- }), yt = {
603
+ }), wt = {
573
604
  name: "ChannelComponent",
574
605
  components: {
575
- NodeViewWrapper: _,
606
+ NodeViewWrapper: y,
576
607
  DtLink: D
577
608
  },
578
- props: y,
609
+ props: _,
579
610
  computed: {
580
611
  text() {
581
612
  return "#" + this.$props.node.attrs.name;
582
613
  }
583
614
  }
584
615
  };
585
- var wt = function() {
586
- var t = this, n = t._self._c;
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
- }, vt = [], xt = /* @__PURE__ */ c(
589
- yt,
616
+ var vt = function() {
617
+ var e = this, n = e._self._c;
618
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
619
+ }, xt = [], kt = /* @__PURE__ */ d(
590
620
  wt,
591
- vt
621
+ vt,
622
+ xt
592
623
  );
593
- const bt = xt.exports, kt = R.extend({
624
+ const bt = kt.exports, Ct = R.extend({
594
625
  name: "channel",
595
626
  addNodeView() {
596
627
  return v(bt);
@@ -615,24 +646,24 @@ const bt = xt.exports, kt = R.extend({
615
646
  }
616
647
  };
617
648
  },
618
- renderText({ node: e }) {
619
- return `#${e.attrs.id}`;
649
+ renderText({ node: t }) {
650
+ return `#${t.attrs.id}`;
620
651
  },
621
- renderHTML({ HTMLAttributes: e }) {
622
- return ["channel-component", m(this.options.HTMLAttributes, e)];
652
+ renderHTML({ HTMLAttributes: t }) {
653
+ return ["channel-component", m(this.options.HTMLAttributes, t)];
623
654
  }
624
655
  }).configure({
625
656
  suggestion: {
626
657
  char: "#",
627
658
  pluginKey: new f("channelSuggestion")
628
659
  }
629
- }), Ct = {
660
+ }), Tt = {
630
661
  name: "SlashCommandsComponent",
631
662
  components: {
632
- NodeViewWrapper: _
663
+ NodeViewWrapper: y
633
664
  },
634
665
  props: {
635
- ...y
666
+ ..._
636
667
  },
637
668
  emits: ["selected-command"],
638
669
  computed: {
@@ -642,35 +673,35 @@ const bt = xt.exports, kt = R.extend({
642
673
  },
643
674
  created() {
644
675
  var n, r, s;
645
- const e = this.$props.node.attrs.command;
646
- this.$emit("selected-command", e);
647
- const t = (s = (r = (n = this.editor) == null ? void 0 : n.storage) == null ? void 0 : r["slash-commands"]) == null ? void 0 : s.onSelectedCommand;
648
- t && typeof t == "function" && t(e);
676
+ const t = this.$props.node.attrs.command;
677
+ this.$emit("selected-command", t);
678
+ const e = (s = (r = (n = this.editor) == null ? void 0 : n.storage) == null ? void 0 : r["slash-commands"]) == null ? void 0 : s.onSelectedCommand;
679
+ e && typeof e == "function" && e(t);
649
680
  }
650
681
  };
651
- var Tt = function() {
652
- var t = this, n = t._self._c;
653
- return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [t._v(" " + t._s(t.text) + " ")]);
654
- }, Et = [], St = /* @__PURE__ */ c(
655
- Ct,
682
+ var Et = function() {
683
+ var e = this, n = e._self._c;
684
+ return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [e._v(" " + e._s(e.text) + " ")]);
685
+ }, St = [], Lt = /* @__PURE__ */ d(
656
686
  Tt,
657
- Et
687
+ Et,
688
+ St
658
689
  );
659
- const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
690
+ const Rt = Lt.exports, $t = (t, e) => [...t.matchAll(e)].map((r) => {
660
691
  let s = r[2];
661
692
  return s.endsWith(" ") || (s += " "), {
662
693
  index: r.index,
663
694
  text: s,
664
695
  match: r
665
696
  };
666
- }), $t = R.extend({
697
+ }), It = R.extend({
667
698
  name: "slash-commands",
668
699
  group: "inline",
669
700
  inline: !0,
670
701
  addOptions() {
671
- var e;
702
+ var t;
672
703
  return {
673
- ...(e = this.parent) == null ? void 0 : e.call(this),
704
+ ...(t = this.parent) == null ? void 0 : t.call(this),
674
705
  onSelectedCommand: null
675
706
  };
676
707
  },
@@ -680,7 +711,7 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
680
711
  };
681
712
  },
682
713
  addNodeView() {
683
- return v(Lt);
714
+ return v(Rt);
684
715
  },
685
716
  parseHTML() {
686
717
  return [
@@ -702,18 +733,18 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
702
733
  }
703
734
  };
704
735
  },
705
- renderText({ node: e }) {
706
- return `/${e.attrs.command}`;
736
+ renderText({ node: t }) {
737
+ return `/${t.attrs.command}`;
707
738
  },
708
- renderHTML({ HTMLAttributes: e }) {
709
- return ["command-component", m(this.options.HTMLAttributes, e)];
739
+ renderHTML({ HTMLAttributes: t }) {
740
+ return ["command-component", m(this.options.HTMLAttributes, t)];
710
741
  },
711
742
  addInputRules() {
712
743
  var n;
713
- const e = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) $`);
744
+ const t = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) $`);
714
745
  return [
715
746
  X({
716
- find: t,
747
+ find: e,
717
748
  type: this.type,
718
749
  getAttributes(r) {
719
750
  return { command: r[2] };
@@ -723,10 +754,10 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
723
754
  },
724
755
  addPasteRules() {
725
756
  var n;
726
- const e = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
757
+ const t = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) ?$`, "g");
727
758
  return [
728
759
  E({
729
- find: (r) => Rt(r, t),
760
+ find: (r) => $t(r, e),
730
761
  type: this.type,
731
762
  getAttributes(r) {
732
763
  return { command: r[0].trim() };
@@ -739,10 +770,10 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
739
770
  char: "/",
740
771
  pluginKey: new f("slashCommandSuggestion")
741
772
  }
742
- }), It = {
773
+ }), At = {
743
774
  name: "MentionSuggestion",
744
775
  components: {
745
- DtAvatar: Re,
776
+ DtAvatar: $e,
746
777
  DtStack: x
747
778
  },
748
779
  props: {
@@ -780,35 +811,35 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
780
811
  }
781
812
  }
782
813
  };
783
- var At = function() {
784
- var t = this, n = t._self._c;
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
- }, Bt = [], Ot = /* @__PURE__ */ c(
787
- It,
814
+ var Bt = function() {
815
+ var e = this, n = e._self._c;
816
+ 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);
817
+ }, Ot = [], Pt = /* @__PURE__ */ d(
788
818
  At,
789
- Bt
819
+ Bt,
820
+ Ot
790
821
  );
791
- const Pt = Ot.exports, Dt = {
822
+ const Dt = Pt.exports, Mt = {
792
823
  // This function comes from the user and passed to the editor directly.
793
824
  // This will also activate the mention plugin on the editor
794
825
  // items: ({ query }) => { return [] },
795
826
  allowSpaces: !0,
796
827
  render: () => {
797
- let e, t, n = !1;
828
+ let t, e, n = !1;
798
829
  return {
799
830
  onStart: (r) => {
800
- e = new w(k, {
831
+ t = new w(b, {
801
832
  parent: void 0,
802
833
  propsData: {
803
- itemComponent: Pt,
834
+ itemComponent: Dt,
804
835
  itemType: "mention",
805
836
  ...r
806
837
  },
807
838
  editor: r.editor
808
- }), r.clientRect && (t = b("body", {
839
+ }), r.clientRect && (e = k("body", {
809
840
  getReferenceClientRect: r.clientRect,
810
841
  appendTo: () => document.body,
811
- content: e.element,
842
+ content: t.element,
812
843
  showOnCreate: !1,
813
844
  onShow: () => {
814
845
  n = !0;
@@ -821,29 +852,29 @@ const Pt = Ot.exports, Dt = {
821
852
  placement: "top-start",
822
853
  zIndex: 650,
823
854
  plugins: [C]
824
- }), r.items.length > 0 && (t == null || t[0].show()));
855
+ }), r.items.length > 0 && (e == null || e[0].show()));
825
856
  },
826
857
  onUpdate(r) {
827
- e == null || e.updateProps(r), r.items.length > 0 ? t == null || t[0].show() : t == null || t[0].hide(), r.clientRect && (t == null || t[0].setProps({
858
+ 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({
828
859
  getReferenceClientRect: r.clientRect
829
860
  }));
830
861
  },
831
862
  onKeyDown(r) {
832
863
  var s;
833
864
  if (n)
834
- return (s = e == null ? void 0 : e.ref) == null ? void 0 : s.onKeyDown(r);
865
+ return (s = t == null ? void 0 : t.ref) == null ? void 0 : s.onKeyDown(r);
835
866
  },
836
867
  onExit() {
837
- t == null || t[0].destroy(), t = null, e == null || e.destroy(), e = null;
868
+ e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
838
869
  }
839
870
  };
840
871
  }
841
- }, Mt = {
872
+ }, Ht = {
842
873
  name: "ChannelSuggestion",
843
874
  components: {
844
875
  DtStack: x,
845
- DtIconHash: $e,
846
- DtIconLock: Ie
876
+ DtIconHash: Ie,
877
+ DtIconLock: Ae
847
878
  },
848
879
  props: {
849
880
  item: {
@@ -857,35 +888,35 @@ const Pt = Ot.exports, Dt = {
857
888
  }
858
889
  }
859
890
  };
860
- var Ht = function() {
861
- var t = this, n = t._self._c;
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
- }, jt = [], Ft = /* @__PURE__ */ c(
864
- Mt,
891
+ var jt = function() {
892
+ var e = this, n = e._self._c;
893
+ 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);
894
+ }, Nt = [], Ft = /* @__PURE__ */ d(
865
895
  Ht,
866
- jt
896
+ jt,
897
+ Nt
867
898
  );
868
- const Nt = Ft.exports, Kt = {
899
+ const Kt = Ft.exports, qt = {
869
900
  // This function comes from the user and passed to the editor directly.
870
901
  // This will also activate the mention plugin on the editor
871
902
  // items: ({ query }) => { return [] },
872
903
  allowSpaces: !0,
873
904
  render: () => {
874
- let e, t, n = !1;
905
+ let t, e, n = !1;
875
906
  return {
876
907
  onStart: (r) => {
877
- e = new w(k, {
908
+ t = new w(b, {
878
909
  parent: void 0,
879
910
  propsData: {
880
- itemComponent: Nt,
911
+ itemComponent: Kt,
881
912
  itemType: "channel",
882
913
  ...r
883
914
  },
884
915
  editor: r.editor
885
- }), r.clientRect && (t = b("body", {
916
+ }), r.clientRect && (e = k("body", {
886
917
  getReferenceClientRect: r.clientRect,
887
918
  appendTo: () => document.body,
888
- content: e.element,
919
+ content: t.element,
889
920
  showOnCreate: !1,
890
921
  onShow: () => {
891
922
  n = !0;
@@ -898,24 +929,24 @@ const Nt = Ft.exports, Kt = {
898
929
  placement: "top-start",
899
930
  zIndex: 650,
900
931
  plugins: [C]
901
- }), r.items.length > 0 && (t == null || t[0].show()));
932
+ }), r.items.length > 0 && (e == null || e[0].show()));
902
933
  },
903
934
  onUpdate(r) {
904
- e == null || e.updateProps(r), r.items.length > 0 ? t == null || t[0].show() : t == null || t[0].hide(), r.clientRect && (t == null || t[0].setProps({
935
+ 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({
905
936
  getReferenceClientRect: r.clientRect
906
937
  }));
907
938
  },
908
939
  onKeyDown(r) {
909
940
  var s;
910
941
  if (n)
911
- return (s = e == null ? void 0 : e.ref) == null ? void 0 : s.onKeyDown(r);
942
+ return (s = t == null ? void 0 : t.ref) == null ? void 0 : s.onKeyDown(r);
912
943
  },
913
944
  onExit() {
914
- t == null || t[0].destroy(), t = null, e == null || e.destroy(), e = null;
945
+ e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
915
946
  }
916
947
  };
917
948
  }
918
- }, qt = {
949
+ }, Ut = {
919
950
  name: "SlashCommandSuggestion",
920
951
  props: {
921
952
  item: {
@@ -935,36 +966,36 @@ const Nt = Ft.exports, Kt = {
935
966
  }
936
967
  }
937
968
  };
938
- var Ut = function() {
939
- var t = this, n = t._self._c;
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
- }, Wt = [], Vt = /* @__PURE__ */ c(
942
- qt,
969
+ var zt = function() {
970
+ var e = this, n = e._self._c;
971
+ 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) + " ")])]);
972
+ }, Wt = [], Vt = /* @__PURE__ */ d(
943
973
  Ut,
974
+ zt,
944
975
  Wt
945
976
  );
946
- const zt = Vt.exports, Xt = {
977
+ const Xt = Vt.exports, Jt = {
947
978
  // This function comes from the user and passed to the editor directly.
948
979
  // This will also activate the mention plugin on the editor
949
980
  // items: ({ query }) => { return [] },
950
981
  allowSpaces: !0,
951
982
  startOfLine: !0,
952
983
  render: () => {
953
- let e, t, n = !1;
984
+ let t, e, n = !1;
954
985
  return {
955
986
  onStart: (r) => {
956
- e = new w(k, {
987
+ t = new w(b, {
957
988
  parent: void 0,
958
989
  propsData: {
959
- itemComponent: zt,
990
+ itemComponent: Xt,
960
991
  itemType: "slash-command",
961
992
  ...r
962
993
  },
963
994
  editor: r.editor
964
- }), r.clientRect && (t = b("body", {
995
+ }), r.clientRect && (e = k("body", {
965
996
  getReferenceClientRect: r.clientRect,
966
997
  appendTo: () => document.body,
967
- content: e.element,
998
+ content: t.element,
968
999
  showOnCreate: !1,
969
1000
  onShow: () => {
970
1001
  n = !0;
@@ -977,29 +1008,29 @@ const zt = Vt.exports, Xt = {
977
1008
  placement: "top-start",
978
1009
  zIndex: 650,
979
1010
  plugins: [C]
980
- }), r.items.length > 0 && (t == null || t[0].show()));
1011
+ }), r.items.length > 0 && (e == null || e[0].show()));
981
1012
  },
982
1013
  onUpdate(r) {
983
- e == null || e.updateProps(r), r.items.length > 0 ? t == null || t[0].show() : t == null || t[0].hide(), r.clientRect && (t == null || t[0].setProps({
1014
+ 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({
984
1015
  getReferenceClientRect: r.clientRect
985
1016
  }));
986
1017
  },
987
1018
  onKeyDown(r) {
988
1019
  var s;
989
1020
  if (n)
990
- return (s = e == null ? void 0 : e.ref) == null ? void 0 : s.onKeyDown(r);
1021
+ return (s = t == null ? void 0 : t.ref) == null ? void 0 : s.onKeyDown(r);
991
1022
  },
992
1023
  onExit() {
993
- t == null || t[0].destroy(), t = null, e == null || e.destroy(), e = null;
1024
+ e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
994
1025
  }
995
1026
  };
996
1027
  }
997
- }, Jt = {
1028
+ }, Yt = {
998
1029
  name: "DtRichTextEditor",
999
1030
  components: {
1000
- EditorContent: H,
1001
- BubbleMenu: j,
1002
- DtButton: Oe,
1031
+ EditorContent: j,
1032
+ BubbleMenu: H,
1033
+ DtButton: Pe,
1003
1034
  DtStack: x
1004
1035
  },
1005
1036
  props: {
@@ -1071,8 +1102,8 @@ const zt = Vt.exports, Xt = {
1071
1102
  autoFocus: {
1072
1103
  type: [Boolean, String, Number],
1073
1104
  default: !1,
1074
- validator(e) {
1075
- return typeof e == "string" ? Se.includes(e) : !0;
1105
+ validator(t) {
1106
+ return typeof t == "string" ? Re.includes(t) : !0;
1076
1107
  }
1077
1108
  },
1078
1109
  /**
@@ -1084,8 +1115,8 @@ const zt = Vt.exports, Xt = {
1084
1115
  outputFormat: {
1085
1116
  type: String,
1086
1117
  default: "html",
1087
- validator(e) {
1088
- return Le.includes(e);
1118
+ validator(t) {
1119
+ return Le.includes(t);
1089
1120
  }
1090
1121
  },
1091
1122
  /**
@@ -1343,12 +1374,12 @@ const zt = Vt.exports, Xt = {
1343
1374
  editor: null,
1344
1375
  tippyOptions: {
1345
1376
  appendTo: () => {
1346
- var e;
1347
- return (e = this.$refs.editor.$el.getRootNode()) == null ? void 0 : e.querySelector("body");
1377
+ var t;
1378
+ return (t = this.$refs.editor.$el.getRootNode()) == null ? void 0 : t.querySelector("body");
1348
1379
  },
1349
1380
  placement: "top-start"
1350
1381
  },
1351
- i18n: new Be()
1382
+ i18n: new Oe()
1352
1383
  };
1353
1384
  },
1354
1385
  computed: {
@@ -1365,55 +1396,62 @@ const zt = Vt.exports, Xt = {
1365
1396
  },
1366
1397
  // eslint-disable-next-line complexity
1367
1398
  extensions() {
1368
- const e = [Z, de, me, te];
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({
1399
+ const t = [Z, ce, me, te];
1400
+ t.push(this.useDivTags ? mt : B), this.allowBold && t.push(ne), this.allowBlockquote && t.push(Y), this.allowBulletList && (t.push(re), t.push(oe.extend({
1370
1401
  renderText({ node: r }) {
1371
1402
  return r.textContent;
1372
1403
  }
1373
- })), e.push(ae)), this.allowItalic && e.push(se), this.allowStrike && e.push(le), this.allowUnderline && e.push(ce), this.placeholder && e.push(
1404
+ })), t.push(ae)), this.allowItalic && t.push(se), this.allowStrike && t.push(le), this.allowUnderline && t.push(de), this.placeholder && t.push(
1374
1405
  ee.configure({ placeholder: this.placeholder })
1375
1406
  );
1376
- const t = this, n = J.create({
1407
+ const e = this, n = J.create({
1377
1408
  addKeyboardShortcuts() {
1378
1409
  return {
1379
- "Shift-Enter": ({ editor: r }) => t.allowLineBreaks ? !1 : (r.commands.first(({ commands: s }) => [
1410
+ "Shift-Enter": ({ editor: r }) => e.allowLineBreaks ? !1 : (r.commands.first(({ commands: s }) => [
1380
1411
  () => s.newlineInCode(),
1381
- () => t.allowBulletList && s.splitListItem("listItem"),
1412
+ () => e.allowBulletList && s.splitListItem("listItem"),
1382
1413
  () => s.createParagraphNear(),
1383
1414
  () => s.liftEmptyBlock(),
1384
1415
  () => s.splitBlock()
1385
1416
  ]), !0),
1386
- Enter: () => t.allowLineBreaks ? !1 : (t.$emit("enter"), !0)
1417
+ Enter: () => e.allowLineBreaks ? !1 : (e.$emit("enter"), !0)
1387
1418
  };
1388
1419
  }
1389
1420
  });
1390
- if (e.push(n), this.link && e.push(ie.extend({ inclusive: !1 }).configure({
1421
+ if (t.push(n), this.link && t.push(ie.extend({
1422
+ inclusive: !1,
1423
+ addKeyboardShortcuts() {
1424
+ return {
1425
+ "Mod-k": () => (e.$emit("edit-link"), !0)
1426
+ };
1427
+ }
1428
+ }).configure({
1391
1429
  HTMLAttributes: {
1392
1430
  class: "d-link d-wb-break-all"
1393
1431
  },
1394
1432
  openOnClick: !1,
1395
1433
  autolink: !0,
1396
1434
  protocols: $
1397
- })), this.customLink && e.push(this.getExtension(ct, this.customLink)), this.mentionSuggestion) {
1398
- const r = { ...this.mentionSuggestion, ...Dt };
1399
- e.push(_t.configure({ suggestion: r }));
1435
+ })), this.customLink && t.push(this.getExtension(ct, this.customLink)), this.mentionSuggestion) {
1436
+ const r = { ...this.mentionSuggestion, ...Mt };
1437
+ t.push(yt.configure({ suggestion: r }));
1400
1438
  }
1401
1439
  if (this.channelSuggestion) {
1402
- const r = { ...this.channelSuggestion, ...Kt };
1403
- e.push(kt.configure({ suggestion: r }));
1440
+ const r = { ...this.channelSuggestion, ...qt };
1441
+ t.push(Ct.configure({ suggestion: r }));
1404
1442
  }
1405
1443
  if (this.slashCommandSuggestion) {
1406
- const r = { ...this.slashCommandSuggestion, ...Xt };
1407
- e.push($t.configure({
1444
+ const r = { ...this.slashCommandSuggestion, ...Jt };
1445
+ t.push(It.configure({
1408
1446
  suggestion: r,
1409
1447
  onSelectedCommand: (s) => {
1410
1448
  this.$emit("selected-command", s);
1411
1449
  }
1412
1450
  }));
1413
1451
  }
1414
- return e.push(tt), e.push(ue.configure({
1452
+ return t.push(nt), t.push(ue.configure({
1415
1453
  types: ["paragraph"]
1416
- })), this.allowCode && e.push(Q), this.allowCodeblock && e.push(G.extend({
1454
+ })), this.allowCode && t.push(Q), this.allowCodeblock && t.push(G.extend({
1417
1455
  renderText({ node: r }) {
1418
1456
  return `\`\`\`
1419
1457
  ${r.textContent}
@@ -1423,15 +1461,15 @@ ${r.textContent}
1423
1461
  HTMLAttributes: {
1424
1462
  class: "d-rich-text-editor__code-block"
1425
1463
  }
1426
- })), this.allowInlineImages && e.push(dt), (this.allowFontFamily || this.allowFontColor) && (e.push(he), this.allowFontColor && e.push(fe), this.allowFontFamily && e.push(pe)), this.additionalExtensions.length && e.push(...this.additionalExtensions), e;
1464
+ })), this.allowInlineImages && t.push(ut), (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;
1427
1465
  },
1428
1466
  inputAttrs() {
1429
- const e = {
1467
+ const t = {
1430
1468
  "aria-label": this.inputAriaLabel,
1431
1469
  "aria-multiline": !0,
1432
1470
  role: "textbox"
1433
1471
  };
1434
- return this.editable || (e["aria-readonly"] = !0), e;
1472
+ return this.editable || (t["aria-readonly"] = !0), t;
1435
1473
  }
1436
1474
  },
1437
1475
  /**
@@ -1440,20 +1478,20 @@ ${r.textContent}
1440
1478
  * to be hooked up to the Editor's own API.
1441
1479
  */
1442
1480
  watch: {
1443
- editable(e) {
1444
- this.editor.setEditable(e), this.updateEditorAttributes({ "aria-readonly": !e });
1481
+ editable(t) {
1482
+ this.editor.setEditable(t), this.updateEditorAttributes({ "aria-readonly": !t });
1445
1483
  },
1446
- inputClass(e) {
1447
- this.updateEditorAttributes({ class: e });
1484
+ inputClass(t) {
1485
+ this.updateEditorAttributes({ class: t });
1448
1486
  },
1449
- inputAriaLabel(e) {
1450
- this.updateEditorAttributes({ "aria-label": e });
1487
+ inputAriaLabel(t) {
1488
+ this.updateEditorAttributes({ "aria-label": t });
1451
1489
  },
1452
1490
  extensions() {
1453
1491
  this.destroyEditor(), this.createEditor();
1454
1492
  },
1455
- value(e) {
1456
- this.processValue(e);
1493
+ value(t) {
1494
+ this.processValue(t);
1457
1495
  }
1458
1496
  },
1459
1497
  created() {
@@ -1463,11 +1501,11 @@ ${r.textContent}
1463
1501
  this.destroyEditor();
1464
1502
  },
1465
1503
  mounted() {
1466
- Te(this.$el, this.$options.name), this.processValue(this.value, !1);
1504
+ Ee(this.$el, this.$options.name), this.processValue(this.value, !1);
1467
1505
  },
1468
1506
  methods: {
1469
1507
  createEditor() {
1470
- this.editor = new F({
1508
+ this.editor = new N({
1471
1509
  autofocus: this.autoFocus,
1472
1510
  content: this.value,
1473
1511
  editable: this.editable,
@@ -1480,147 +1518,147 @@ ${r.textContent}
1480
1518
  ...this.inputAttrs,
1481
1519
  class: this.inputClass
1482
1520
  },
1483
- handleKeyDown: (e, t) => {
1521
+ handleKeyDown: (t, e) => {
1484
1522
  if (!this.preventTyping) return !1;
1485
1523
  const n = ["Backspace"];
1486
- return !this.allowLineBreaks && !t.shiftKey && n.push("Enter"), !n.includes(t.key);
1524
+ return !this.allowLineBreaks && !e.shiftKey && n.push("Enter"), !n.includes(e.key);
1487
1525
  },
1488
- handlePaste: (e, t, n) => {
1489
- const r = t.clipboardData || window.clipboardData, s = r.getData("text/plain"), o = r.getData("text/html");
1490
- return this.processPasteData(e, s, o);
1526
+ handlePaste: (t, e) => {
1527
+ const n = e.clipboardData || window.clipboardData, r = n.getData("text/plain"), s = n.getData("text/html");
1528
+ return this.processPasteData(t, r, s);
1491
1529
  },
1492
1530
  // Moves the <br /> tags inside the previous closing tag to avoid
1493
1531
  // Prosemirror wrapping them within another </p> tag.
1494
- transformPastedHTML(e) {
1495
- return e.replace(/(<\/\w+>)((<br \/>)+)/g, "$2$3$1");
1532
+ transformPastedHTML(t) {
1533
+ return t.replace(/(<\/\w+>)((<br \/>)+)/g, "$2$3$1");
1496
1534
  }
1497
1535
  }
1498
1536
  }), this.addEditorListeners();
1499
1537
  },
1500
- bubbleMenuShouldShow({ editor: e, view: t, state: n, oldState: r, from: s, to: o }) {
1501
- return e.isActive("link");
1538
+ bubbleMenuShouldShow({ editor: t }) {
1539
+ return t.isActive("link");
1502
1540
  },
1503
1541
  /**
1504
1542
  * If the selection contains a link, return the existing link text.
1505
1543
  * Otherwise, use just the selected text.
1506
1544
  * @param editor the editor instance.
1507
1545
  */
1508
- getSelectedLinkText(e) {
1509
- var a, l, d;
1510
- const { view: t, state: n } = e, { from: r, to: s } = t.state.selection, o = n.doc.textBetween(r, s, ""), i = this.editor.state.doc.nodeAt(r);
1511
- return i && ((d = (l = (a = i.marks) == null ? void 0 : a.at(0)) == null ? void 0 : l.type) == null ? void 0 : d.name) === "link" ? i.textContent : o;
1546
+ getSelectedLinkText(t) {
1547
+ var a, l, c;
1548
+ const { view: e, state: n } = t, { from: r, to: s } = e.state.selection, o = n.doc.textBetween(r, s, ""), i = this.editor.state.doc.nodeAt(r);
1549
+ return i && ((c = (l = (a = i.marks) == null ? void 0 : a.at(0)) == null ? void 0 : l.type) == null ? void 0 : c.name) === "link" ? i.textContent : o;
1512
1550
  },
1513
1551
  editLink() {
1514
- const e = this.getSelectedLinkText(this.editor), t = {
1552
+ const t = this.getSelectedLinkText(this.editor), e = {
1515
1553
  href: this.editor.getAttributes("link").href,
1516
- text: e
1554
+ text: t
1517
1555
  };
1518
- this.$emit("edit-link", t);
1556
+ this.$emit("edit-link", e);
1519
1557
  },
1520
1558
  removeLink() {
1521
- var e, t, n, r;
1522
- (r = (n = (t = (e = this.editor) == null ? void 0 : e.chain()) == null ? void 0 : t.focus()) == null ? void 0 : n.unsetLink()) == null || r.run();
1559
+ var t, e, n, r;
1560
+ (r = (n = (e = (t = this.editor) == null ? void 0 : t.chain()) == null ? void 0 : e.focus()) == null ? void 0 : n.unsetLink()) == null || r.run();
1523
1561
  },
1524
1562
  openLink() {
1525
- var t, n;
1526
- (n = (t = this.editor) == null ? void 0 : t.chain()) == null || n.focus();
1527
- const e = this.editor.getAttributes("link").href;
1528
- window.open(e, "_blank");
1563
+ var e, n;
1564
+ (n = (e = this.editor) == null ? void 0 : e.chain()) == null || n.focus();
1565
+ const t = this.editor.getAttributes("link").href;
1566
+ window.open(t, "_blank");
1529
1567
  },
1530
1568
  // eslint-disable-next-line complexity
1531
- setLink(e, t, n, r = $, s) {
1532
- var a, l, d;
1533
- if (!e) {
1569
+ setLink(t, e, n, r = $, s) {
1570
+ var a, l, c;
1571
+ if (!t) {
1534
1572
  this.removeLink();
1535
1573
  return;
1536
1574
  }
1537
- r.find((u) => u.test(e)) || (e = `${s}${e}`), this.editor.chain().focus().extendMarkRange("link").run();
1538
- const i = (d = (l = (a = this.editor) == null ? void 0 : a.view) == null ? void 0 : l.state) == null ? void 0 : d.selection;
1539
- this.editor.chain().focus().insertContent(t).setTextSelection({ from: i.from, to: i.from + t.length }).setLink({ href: e, class: n.class }).run();
1575
+ r.find((u) => u.test(t)) || (t = `${s}${t}`), this.editor.chain().focus().extendMarkRange("link").run();
1576
+ const i = (c = (l = (a = this.editor) == null ? void 0 : a.view) == null ? void 0 : l.state) == null ? void 0 : c.selection;
1577
+ this.editor.chain().focus().insertContent(e).setTextSelection({ from: i.from, to: i.from + e.length }).setLink({ href: t, class: n.class }).run();
1540
1578
  },
1541
1579
  // eslint-disable-next-line complexity
1542
- processValue(e, t = !0) {
1580
+ processValue(t, e = !0) {
1543
1581
  const n = this.getOutput();
1544
- if (!(t && Ae(e, n))) {
1545
- if (typeof e == "string" && this.outputFormat === "text") {
1582
+ if (!(e && Be(t, n))) {
1583
+ if (typeof t == "string" && this.outputFormat === "text") {
1546
1584
  const r = new RegExp(`(${O})`, "g");
1547
- e = e == null ? void 0 : e.replace(r, '<emoji-component code="$1"></emoji-component>');
1585
+ t = t == null ? void 0 : t.replace(r, '<emoji-component code="$1"></emoji-component>');
1548
1586
  }
1549
- this.editor.commands.setContent(e, !1, { preserveWhitespace: "full" });
1587
+ this.editor.commands.setContent(t, !1, { preserveWhitespace: "full" });
1550
1588
  }
1551
1589
  },
1552
1590
  destroyEditor() {
1553
1591
  this.editor.destroy();
1554
1592
  },
1555
- insertPlainTextWithHardBreaks(e, t) {
1556
- const { tr: n } = e.state, { from: r, to: s } = e.state.selection;
1593
+ insertPlainTextWithHardBreaks(t, e) {
1594
+ const { tr: n } = t.state, { from: r, to: s } = t.state.selection;
1557
1595
  n.deleteRange(r, s);
1558
- const o = t.split(/\r?\n/);
1596
+ const o = e.split(/\r?\n/);
1559
1597
  let i = r;
1560
1598
  for (let a = 0; a < o.length; a++)
1561
- a > 0 && (n.insert(i, e.state.schema.nodes.hardBreak.create()), i++), n.insertText(o[a], i), i += o[a].length;
1562
- e.dispatch(n);
1599
+ a > 0 && (n.insert(i, t.state.schema.nodes.hardBreak.create()), i++), n.insertText(o[a], i), i += o[a].length;
1600
+ t.dispatch(n);
1563
1601
  },
1564
- shouldPreserveLineBreaks(e, t) {
1565
- return this.pasteRichText ? !t && e && this.hasBlankLines(e) : !!e;
1602
+ shouldPreserveLineBreaks(t, e) {
1603
+ return this.pasteRichText ? !e && t && this.hasBlankLines(t) : !!t;
1566
1604
  },
1567
- processPasteData(e, t, n) {
1568
- if (this.shouldPreserveLineBreaks(t, n))
1569
- return this.insertPlainTextWithHardBreaks(e, t), !0;
1605
+ processPasteData(t, e, n) {
1606
+ if (this.shouldPreserveLineBreaks(e, n))
1607
+ return this.insertPlainTextWithHardBreaks(t, e), !0;
1570
1608
  if (this.shouldHandlePreformattedHTML(n)) {
1571
1609
  const r = this.extractPreformattedText(n);
1572
1610
  if (r && r.includes(`
1573
1611
  `))
1574
- return this.insertPlainTextWithHardBreaks(e, r), !0;
1612
+ return this.insertPlainTextWithHardBreaks(t, r), !0;
1575
1613
  }
1576
1614
  return !1;
1577
1615
  },
1578
- shouldHandlePreformattedHTML(e) {
1579
- return this.pasteRichText && e && this.containsPreformattedContent(e);
1616
+ shouldHandlePreformattedHTML(t) {
1617
+ return this.pasteRichText && t && this.containsPreformattedContent(t);
1580
1618
  },
1581
- containsPreformattedContent(e) {
1582
- const t = document.createElement("div");
1583
- t.innerHTML = e;
1584
- const n = t.querySelectorAll("*");
1619
+ containsPreformattedContent(t) {
1620
+ const e = document.createElement("div");
1621
+ e.innerHTML = t;
1622
+ const n = e.querySelectorAll("*");
1585
1623
  for (const r of n)
1586
1624
  if (this.hasPreWhitespace(r) && this.hasLineBreaks(r))
1587
1625
  return !0;
1588
1626
  return !1;
1589
1627
  },
1590
- hasPreWhitespace(e) {
1591
- const t = e.getAttribute("style") || "", n = e.style.whiteSpace || "", r = n === "pre" || n === "pre-wrap", s = t.includes("white-space: pre");
1628
+ hasPreWhitespace(t) {
1629
+ const e = t.getAttribute("style") || "", n = t.style.whiteSpace || "", r = n === "pre" || n === "pre-wrap", s = e.includes("white-space: pre");
1592
1630
  return r || s;
1593
1631
  },
1594
- hasLineBreaks(e) {
1595
- return e.textContent && e.textContent.includes(`
1632
+ hasLineBreaks(t) {
1633
+ return t.textContent && t.textContent.includes(`
1596
1634
  `);
1597
1635
  },
1598
- hasBlankLines(e) {
1599
- return e.includes(`
1636
+ hasBlankLines(t) {
1637
+ return t.includes(`
1600
1638
 
1601
- `) || /\n\s*\n/.test(e);
1602
- },
1603
- extractPreformattedText(e) {
1604
- const t = document.createElement("div");
1605
- return t.innerHTML = e, this.walkAndExtractText(t);
1606
- },
1607
- walkAndExtractText(e) {
1608
- let t = "";
1609
- if (e.nodeType === Node.TEXT_NODE)
1610
- t += e.textContent;
1611
- else if (e.nodeType === Node.ELEMENT_NODE)
1612
- if (this.hasPreWhitespace(e))
1613
- t += e.textContent;
1639
+ `) || /\n\s*\n/.test(t);
1640
+ },
1641
+ extractPreformattedText(t) {
1642
+ const e = document.createElement("div");
1643
+ return e.innerHTML = t, this.walkAndExtractText(e);
1644
+ },
1645
+ walkAndExtractText(t) {
1646
+ let e = "";
1647
+ if (t.nodeType === Node.TEXT_NODE)
1648
+ e += t.textContent;
1649
+ else if (t.nodeType === Node.ELEMENT_NODE)
1650
+ if (this.hasPreWhitespace(t))
1651
+ e += t.textContent;
1614
1652
  else
1615
- for (const n of e.childNodes)
1616
- t += this.walkAndExtractText(n);
1617
- return t;
1653
+ for (const n of t.childNodes)
1654
+ e += this.walkAndExtractText(n);
1655
+ return e;
1618
1656
  },
1619
1657
  triggerInputChangeEvents() {
1620
- const e = this.getOutput();
1621
- this.$emit("input", e), this.$emit("update:value", e);
1622
- const t = this.editor.getJSON();
1623
- this.$emit("json-input", t);
1658
+ const t = this.getOutput();
1659
+ this.$emit("input", t), this.$emit("update:value", t);
1660
+ const e = this.editor.getJSON();
1661
+ this.$emit("json-input", e);
1624
1662
  const n = this.editor.getHTML();
1625
1663
  this.$emit("html-input", n);
1626
1664
  const r = this.editor.getText({ blockSeparator: `
@@ -1636,12 +1674,12 @@ ${r.textContent}
1636
1674
  this.triggerInputChangeEvents();
1637
1675
  }), this.editor.on("update", () => {
1638
1676
  this.triggerInputChangeEvents();
1639
- }), this.editor.on("selectionUpdate", ({ editor: e }) => {
1640
- this.$emit("selected", this.getSelectedLinkText(e));
1641
- }), this.editor.on("focus", ({ event: e }) => {
1642
- this.$emit("focus", e);
1643
- }), this.editor.on("blur", ({ event: e }) => {
1644
- this.$emit("blur", e);
1677
+ }), this.editor.on("selectionUpdate", ({ editor: t }) => {
1678
+ this.$emit("selected", this.getSelectedLinkText(t));
1679
+ }), this.editor.on("focus", ({ event: t }) => {
1680
+ this.$emit("focus", t);
1681
+ }), this.editor.on("blur", ({ event: t }) => {
1682
+ this.$emit("blur", t);
1645
1683
  });
1646
1684
  },
1647
1685
  getOutput() {
@@ -1656,17 +1694,17 @@ ${r.textContent}
1656
1694
  ` });
1657
1695
  }
1658
1696
  },
1659
- getExtension(e, t) {
1697
+ getExtension(t, e) {
1660
1698
  var n;
1661
- return typeof t == "boolean" ? e : (n = e.configure) == null ? void 0 : n.call(e, t);
1699
+ return typeof e == "boolean" ? t : (n = t.configure) == null ? void 0 : n.call(t, e);
1662
1700
  },
1663
- updateEditorAttributes(e) {
1701
+ updateEditorAttributes(t) {
1664
1702
  this.editor.setOptions({
1665
1703
  editorProps: {
1666
1704
  attributes: {
1667
1705
  ...this.inputAttrs,
1668
1706
  class: this.inputClass,
1669
- ...e
1707
+ ...t
1670
1708
  }
1671
1709
  }
1672
1710
  });
@@ -1676,16 +1714,16 @@ ${r.textContent}
1676
1714
  }
1677
1715
  }
1678
1716
  };
1679
- var Yt = function() {
1680
- var t = this, n = t._self._c;
1681
- return n("div", [t.editor && t.link && !t.hideLinkBubbleMenu ? n("bubble-menu", { staticStyle: { visibility: "visible" }, attrs: { editor: t.editor, "should-show": t.bubbleMenuShouldShow, "tippy-options": t.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: t.editLink } }, [t._v(" " + t._s(t.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")) + " ")]), n("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: t.openLink } }, [t._v(" " + t._s(t.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")) + " ")]), n("dt-button", { attrs: { kind: "danger", importance: "clear" }, on: { click: t.removeLink } }, [t._v(" " + t._s(t.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")) + " ")])], 1)], 1)]) : t._e(), n("editor-content", t._g({ ref: "editor", staticClass: "d-rich-text-editor", attrs: { editor: t.editor, "data-qa": "dt-rich-text-editor" } }, t.editorListeners))], 1);
1682
- }, Gt = [], Qt = /* @__PURE__ */ c(
1683
- Jt,
1717
+ var Gt = function() {
1718
+ var e = this, n = e._self._c;
1719
+ 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);
1720
+ }, Qt = [], Zt = /* @__PURE__ */ d(
1684
1721
  Yt,
1685
- Gt
1722
+ Gt,
1723
+ Qt
1686
1724
  );
1687
- const Un = Qt.exports;
1725
+ const Wn = Zt.exports;
1688
1726
  export {
1689
- Un as default
1727
+ Wn as default
1690
1728
  };
1691
1729
  //# sourceMappingURL=rich-text-editor.js.map