@dialpad/dialtone-vue 3.145.0 → 3.146.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/dist/chunks/{dropdown-oA-_Gotg.js → dropdown-6HXkh24e.js} +40 -45
  2. package/dist/chunks/{dropdown-oA-_Gotg.js.map → dropdown-6HXkh24e.js.map} +1 -1
  3. package/dist/chunks/{dropdown-p-Azgwov.js → dropdown-QNvAb160.js} +40 -45
  4. package/dist/chunks/{dropdown-p-Azgwov.js.map → dropdown-QNvAb160.js.map} +1 -1
  5. package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -1
  6. package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -1
  7. package/dist/chunks/{icon_constants-QYpmdE0R.js → icon_constants-bvhFNOPu.js} +3 -2
  8. package/dist/chunks/icon_constants-bvhFNOPu.js.map +1 -0
  9. package/dist/chunks/{icon_constants-Dy4MEUJL.js → icon_constants-gIQj4mf7.js} +3 -2
  10. package/dist/chunks/icon_constants-gIQj4mf7.js.map +1 -0
  11. package/dist/chunks/{index-b_MgDylR.js → index-T15rAIdX.js} +71 -84
  12. package/dist/chunks/{index-4qgKeErp.js.map → index-T15rAIdX.js.map} +1 -1
  13. package/dist/chunks/{index-GVD15GIB.js → index-dfdrE-3M.js} +3 -12
  14. package/dist/chunks/{index-GVD15GIB.js.map → index-dfdrE-3M.js.map} +1 -1
  15. package/dist/chunks/{index-lu2o2f4r.js → index-fEp0B-5Z.js} +3 -12
  16. package/dist/chunks/{index-lu2o2f4r.js.map → index-fEp0B-5Z.js.map} +1 -1
  17. package/dist/chunks/{index-4qgKeErp.js → index-ouh7Bvm-.js} +71 -84
  18. package/dist/chunks/{index-b_MgDylR.js.map → index-ouh7Bvm-.js.map} +1 -1
  19. package/dist/chunks/{input-NmYDD5bn.js → input-HIysg24t.js} +3 -9
  20. package/dist/chunks/{input-ttnte8zB.js.map → input-HIysg24t.js.map} +1 -1
  21. package/dist/chunks/{input-ttnte8zB.js → input-dLLo3Wtg.js} +3 -9
  22. package/dist/chunks/{input-NmYDD5bn.js.map → input-dLLo3Wtg.js.map} +1 -1
  23. package/dist/chunks/{input_group-jWnq2DJT.js → input_group-hV1WT2it.js} +4 -2
  24. package/dist/chunks/{input_group-M-D25pOJ.js.map → input_group-hV1WT2it.js.map} +1 -1
  25. package/dist/chunks/{input_group-M-D25pOJ.js → input_group-rE6nhye8.js} +4 -2
  26. package/dist/chunks/{input_group-jWnq2DJT.js.map → input_group-rE6nhye8.js.map} +1 -1
  27. package/dist/chunks/{keyboard_list_navigation-ScXhrxya.js → keyboard_list_navigation-YIqTuw1W.js} +6 -5
  28. package/dist/chunks/{keyboard_list_navigation-fJnl_Iox.js.map → keyboard_list_navigation-YIqTuw1W.js.map} +1 -1
  29. package/dist/chunks/{keyboard_list_navigation-fJnl_Iox.js → keyboard_list_navigation-x3D6RcC7.js} +6 -5
  30. package/dist/chunks/{keyboard_list_navigation-ScXhrxya.js.map → keyboard_list_navigation-x3D6RcC7.js.map} +1 -1
  31. package/dist/chunks/link_constants-AfTWrr-n.js.map +1 -1
  32. package/dist/chunks/link_constants-x8NwdqmA.js.map +1 -1
  33. package/dist/chunks/list_item_constants-EiqkqZvP.js.map +1 -1
  34. package/dist/chunks/list_item_constants-u1xcN9Dd.js.map +1 -1
  35. package/dist/chunks/{modal-XOr4kiNZ.js → modal-8X6poIZW.js} +4 -2
  36. package/dist/chunks/{modal-XOr4kiNZ.js.map → modal-8X6poIZW.js.map} +1 -1
  37. package/dist/chunks/{modal-VgxXAQFP.js → modal-OaWxzqNt.js} +4 -2
  38. package/dist/chunks/{modal-VgxXAQFP.js.map → modal-OaWxzqNt.js.map} +1 -1
  39. package/dist/chunks/{notice_action-WTucGhvr.js → notice_action-3ed0uIMN.js} +40 -61
  40. package/dist/chunks/{notice_action-p-ePanW_.js.map → notice_action-3ed0uIMN.js.map} +1 -1
  41. package/dist/chunks/{notice_action-p-ePanW_.js → notice_action-e08Lw5W6.js} +40 -61
  42. package/dist/chunks/{notice_action-WTucGhvr.js.map → notice_action-e08Lw5W6.js.map} +1 -1
  43. package/dist/chunks/notice_constants-7Qt2CQEY.js.map +1 -1
  44. package/dist/chunks/notice_constants-UXo9e3bS.js.map +1 -1
  45. package/dist/chunks/{popover_constants-WsOUIY-m.js → popover_constants-6YkPPbnk.js} +26 -47
  46. package/dist/chunks/{popover_constants-XnGWXaxX.js.map → popover_constants-6YkPPbnk.js.map} +1 -1
  47. package/dist/chunks/{popover_constants-XnGWXaxX.js → popover_constants-h9MD6WUt.js} +26 -47
  48. package/dist/chunks/{popover_constants-WsOUIY-m.js.map → popover_constants-h9MD6WUt.js.map} +1 -1
  49. package/dist/chunks/{sr_only_close_button-3EdsV-dH.js → sr_only_close_button-Ji3Zlts6.js} +4 -4
  50. package/dist/chunks/{sr_only_close_button-3EdsV-dH.js.map → sr_only_close_button-Ji3Zlts6.js.map} +1 -1
  51. package/dist/chunks/{sr_only_close_button-xGrHFjwA.js → sr_only_close_button-gKr0Vlbz.js} +4 -4
  52. package/dist/chunks/{sr_only_close_button-xGrHFjwA.js.map → sr_only_close_button-gKr0Vlbz.js.map} +1 -1
  53. package/dist/chunks/stack_constants-HraCekPm.js.map +1 -1
  54. package/dist/chunks/stack_constants-SMzMWnAQ.js.map +1 -1
  55. package/dist/chunks/{tab-qc3f42Yp.js → tab-X7IvNGTl.js} +46 -49
  56. package/dist/chunks/{tab-qc3f42Yp.js.map → tab-X7IvNGTl.js.map} +1 -1
  57. package/dist/chunks/{tab-RTDgnD9-.js → tab-aD6t0MNo.js} +46 -49
  58. package/dist/chunks/{tab-RTDgnD9-.js.map → tab-aD6t0MNo.js.map} +1 -1
  59. package/dist/common/constants.cjs.map +1 -1
  60. package/dist/common/constants.js.map +1 -1
  61. package/dist/common/dates.cjs +3 -1
  62. package/dist/common/dates.cjs.map +1 -1
  63. package/dist/common/dates.js +3 -1
  64. package/dist/common/dates.js.map +1 -1
  65. package/dist/common/emoji.cjs +1 -1
  66. package/dist/common/emoji.js +1 -1
  67. package/dist/common/mixins.cjs +3 -3
  68. package/dist/common/mixins.js +3 -3
  69. package/dist/common/utils.cjs +11 -45
  70. package/dist/common/utils.cjs.map +1 -1
  71. package/dist/common/utils.js +11 -45
  72. package/dist/common/utils.js.map +1 -1
  73. package/dist/common/validators.cjs.map +1 -1
  74. package/dist/common/validators.js.map +1 -1
  75. package/dist/component-documentation.json +1 -1
  76. package/dist/dialtone-vue.cjs +12 -12
  77. package/dist/dialtone-vue.js +12 -12
  78. package/dist/lib/attachment-carousel.cjs +87 -108
  79. package/dist/lib/attachment-carousel.cjs.map +1 -1
  80. package/dist/lib/attachment-carousel.js +87 -108
  81. package/dist/lib/attachment-carousel.js.map +1 -1
  82. package/dist/lib/avatar.cjs +56 -88
  83. package/dist/lib/avatar.cjs.map +1 -1
  84. package/dist/lib/avatar.js +56 -88
  85. package/dist/lib/avatar.js.map +1 -1
  86. package/dist/lib/badge.cjs +15 -31
  87. package/dist/lib/badge.cjs.map +1 -1
  88. package/dist/lib/badge.js +15 -31
  89. package/dist/lib/badge.js.map +1 -1
  90. package/dist/lib/banner.cjs +38 -56
  91. package/dist/lib/banner.cjs.map +1 -1
  92. package/dist/lib/banner.js +38 -56
  93. package/dist/lib/banner.js.map +1 -1
  94. package/dist/lib/breadcrumbs.cjs +25 -36
  95. package/dist/lib/breadcrumbs.cjs.map +1 -1
  96. package/dist/lib/breadcrumbs.js +25 -36
  97. package/dist/lib/breadcrumbs.js.map +1 -1
  98. package/dist/lib/button-group.cjs +2 -7
  99. package/dist/lib/button-group.cjs.map +1 -1
  100. package/dist/lib/button-group.js +2 -7
  101. package/dist/lib/button-group.js.map +1 -1
  102. package/dist/lib/button.cjs +44 -69
  103. package/dist/lib/button.cjs.map +1 -1
  104. package/dist/lib/button.js +44 -69
  105. package/dist/lib/button.js.map +1 -1
  106. package/dist/lib/callbar-button-with-popover.cjs +68 -81
  107. package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
  108. package/dist/lib/callbar-button-with-popover.js +68 -81
  109. package/dist/lib/callbar-button-with-popover.js.map +1 -1
  110. package/dist/lib/callbar-button.cjs +32 -45
  111. package/dist/lib/callbar-button.cjs.map +1 -1
  112. package/dist/lib/callbar-button.js +32 -45
  113. package/dist/lib/callbar-button.js.map +1 -1
  114. package/dist/lib/callbox.cjs +38 -57
  115. package/dist/lib/callbox.cjs.map +1 -1
  116. package/dist/lib/callbox.js +38 -57
  117. package/dist/lib/callbox.js.map +1 -1
  118. package/dist/lib/card.cjs +13 -33
  119. package/dist/lib/card.cjs.map +1 -1
  120. package/dist/lib/card.js +13 -33
  121. package/dist/lib/card.js.map +1 -1
  122. package/dist/lib/checkbox-group.cjs +2 -5
  123. package/dist/lib/checkbox-group.cjs.map +1 -1
  124. package/dist/lib/checkbox-group.js +2 -5
  125. package/dist/lib/checkbox-group.js.map +1 -1
  126. package/dist/lib/checkbox.cjs +41 -45
  127. package/dist/lib/checkbox.cjs.map +1 -1
  128. package/dist/lib/checkbox.js +41 -45
  129. package/dist/lib/checkbox.js.map +1 -1
  130. package/dist/lib/chip.cjs +38 -53
  131. package/dist/lib/chip.cjs.map +1 -1
  132. package/dist/lib/chip.js +38 -53
  133. package/dist/lib/chip.js.map +1 -1
  134. package/dist/lib/codeblock.cjs +4 -6
  135. package/dist/lib/codeblock.cjs.map +1 -1
  136. package/dist/lib/codeblock.js +4 -6
  137. package/dist/lib/codeblock.js.map +1 -1
  138. package/dist/lib/collapsible.cjs +62 -76
  139. package/dist/lib/collapsible.cjs.map +1 -1
  140. package/dist/lib/collapsible.js +62 -76
  141. package/dist/lib/collapsible.js.map +1 -1
  142. package/dist/lib/combobox-multi-select.cjs +75 -88
  143. package/dist/lib/combobox-multi-select.cjs.map +1 -1
  144. package/dist/lib/combobox-multi-select.js +75 -88
  145. package/dist/lib/combobox-multi-select.js.map +1 -1
  146. package/dist/lib/combobox-with-popover.cjs +77 -85
  147. package/dist/lib/combobox-with-popover.cjs.map +1 -1
  148. package/dist/lib/combobox-with-popover.js +77 -85
  149. package/dist/lib/combobox-with-popover.js.map +1 -1
  150. package/dist/lib/combobox.cjs +3 -3
  151. package/dist/lib/combobox.js +3 -3
  152. package/dist/lib/contact-centers-row.cjs +65 -89
  153. package/dist/lib/contact-centers-row.cjs.map +1 -1
  154. package/dist/lib/contact-centers-row.js +65 -89
  155. package/dist/lib/contact-centers-row.js.map +1 -1
  156. package/dist/lib/contact-info.cjs +58 -73
  157. package/dist/lib/contact-info.cjs.map +1 -1
  158. package/dist/lib/contact-info.js +58 -73
  159. package/dist/lib/contact-info.js.map +1 -1
  160. package/dist/lib/contact-row.cjs +37 -47
  161. package/dist/lib/contact-row.cjs.map +1 -1
  162. package/dist/lib/contact-row.js +37 -47
  163. package/dist/lib/contact-row.js.map +1 -1
  164. package/dist/lib/datepicker.cjs +267 -263
  165. package/dist/lib/datepicker.cjs.map +1 -1
  166. package/dist/lib/datepicker.js +267 -263
  167. package/dist/lib/datepicker.js.map +1 -1
  168. package/dist/lib/description-list.cjs +9 -14
  169. package/dist/lib/description-list.cjs.map +1 -1
  170. package/dist/lib/description-list.js +9 -14
  171. package/dist/lib/description-list.js.map +1 -1
  172. package/dist/lib/dropdown.cjs +6 -6
  173. package/dist/lib/dropdown.cjs.map +1 -1
  174. package/dist/lib/dropdown.js +6 -6
  175. package/dist/lib/dropdown.js.map +1 -1
  176. package/dist/lib/editor.cjs +312 -249
  177. package/dist/lib/editor.cjs.map +1 -1
  178. package/dist/lib/editor.js +312 -249
  179. package/dist/lib/editor.js.map +1 -1
  180. package/dist/lib/emoji-picker.cjs +387 -419
  181. package/dist/lib/emoji-picker.cjs.map +1 -1
  182. package/dist/lib/emoji-picker.js +387 -419
  183. package/dist/lib/emoji-picker.js.map +1 -1
  184. package/dist/lib/emoji-row.cjs +59 -69
  185. package/dist/lib/emoji-row.cjs.map +1 -1
  186. package/dist/lib/emoji-row.js +59 -69
  187. package/dist/lib/emoji-row.js.map +1 -1
  188. package/dist/lib/emoji-text-wrapper.cjs +13 -12
  189. package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
  190. package/dist/lib/emoji-text-wrapper.js +13 -12
  191. package/dist/lib/emoji-text-wrapper.js.map +1 -1
  192. package/dist/lib/emoji.cjs +19 -23
  193. package/dist/lib/emoji.cjs.map +1 -1
  194. package/dist/lib/emoji.js +19 -23
  195. package/dist/lib/emoji.js.map +1 -1
  196. package/dist/lib/empty-state.cjs +20 -30
  197. package/dist/lib/empty-state.cjs.map +1 -1
  198. package/dist/lib/empty-state.js +20 -30
  199. package/dist/lib/empty-state.js.map +1 -1
  200. package/dist/lib/feed-item-row.cjs +43 -74
  201. package/dist/lib/feed-item-row.cjs.map +1 -1
  202. package/dist/lib/feed-item-row.js +43 -74
  203. package/dist/lib/feed-item-row.js.map +1 -1
  204. package/dist/lib/feed-pill.cjs +45 -55
  205. package/dist/lib/feed-pill.cjs.map +1 -1
  206. package/dist/lib/feed-pill.js +45 -55
  207. package/dist/lib/feed-pill.js.map +1 -1
  208. package/dist/lib/general-row.cjs +115 -165
  209. package/dist/lib/general-row.cjs.map +1 -1
  210. package/dist/lib/general-row.js +115 -165
  211. package/dist/lib/general-row.js.map +1 -1
  212. package/dist/lib/group-row.cjs +7 -9
  213. package/dist/lib/group-row.cjs.map +1 -1
  214. package/dist/lib/group-row.js +7 -9
  215. package/dist/lib/group-row.js.map +1 -1
  216. package/dist/lib/grouped-chip.cjs +27 -48
  217. package/dist/lib/grouped-chip.cjs.map +1 -1
  218. package/dist/lib/grouped-chip.js +27 -48
  219. package/dist/lib/grouped-chip.js.map +1 -1
  220. package/dist/lib/hovercard.cjs +25 -33
  221. package/dist/lib/hovercard.cjs.map +1 -1
  222. package/dist/lib/hovercard.js +25 -33
  223. package/dist/lib/hovercard.js.map +1 -1
  224. package/dist/lib/icon.cjs +1 -1
  225. package/dist/lib/icon.cjs.map +1 -1
  226. package/dist/lib/icon.js +1 -1
  227. package/dist/lib/icon.js.map +1 -1
  228. package/dist/lib/illustration.cjs +2 -1
  229. package/dist/lib/illustration.cjs.map +1 -1
  230. package/dist/lib/illustration.js +2 -1
  231. package/dist/lib/illustration.js.map +1 -1
  232. package/dist/lib/image-viewer.cjs +62 -66
  233. package/dist/lib/image-viewer.cjs.map +1 -1
  234. package/dist/lib/image-viewer.js +62 -66
  235. package/dist/lib/image-viewer.js.map +1 -1
  236. package/dist/lib/input-group.cjs +15 -19
  237. package/dist/lib/input-group.cjs.map +1 -1
  238. package/dist/lib/input-group.js +15 -19
  239. package/dist/lib/input-group.js.map +1 -1
  240. package/dist/lib/input.cjs +76 -104
  241. package/dist/lib/input.cjs.map +1 -1
  242. package/dist/lib/input.js +76 -104
  243. package/dist/lib/input.js.map +1 -1
  244. package/dist/lib/item-layout.cjs +10 -27
  245. package/dist/lib/item-layout.cjs.map +1 -1
  246. package/dist/lib/item-layout.js +10 -27
  247. package/dist/lib/item-layout.js.map +1 -1
  248. package/dist/lib/ivr-node.cjs +80 -89
  249. package/dist/lib/ivr-node.cjs.map +1 -1
  250. package/dist/lib/ivr-node.js +80 -89
  251. package/dist/lib/ivr-node.js.map +1 -1
  252. package/dist/lib/keyboard-shortcut.cjs +26 -31
  253. package/dist/lib/keyboard-shortcut.cjs.map +1 -1
  254. package/dist/lib/keyboard-shortcut.js +26 -31
  255. package/dist/lib/keyboard-shortcut.js.map +1 -1
  256. package/dist/lib/lazy-show.cjs +6 -8
  257. package/dist/lib/lazy-show.cjs.map +1 -1
  258. package/dist/lib/lazy-show.js +6 -8
  259. package/dist/lib/lazy-show.js.map +1 -1
  260. package/dist/lib/link.cjs +2 -7
  261. package/dist/lib/link.cjs.map +1 -1
  262. package/dist/lib/link.js +2 -7
  263. package/dist/lib/link.js.map +1 -1
  264. package/dist/lib/list-item-group.cjs +7 -14
  265. package/dist/lib/list-item-group.cjs.map +1 -1
  266. package/dist/lib/list-item-group.js +7 -14
  267. package/dist/lib/list-item-group.js.map +1 -1
  268. package/dist/lib/list-item.cjs +24 -25
  269. package/dist/lib/list-item.cjs.map +1 -1
  270. package/dist/lib/list-item.js +24 -25
  271. package/dist/lib/list-item.js.map +1 -1
  272. package/dist/lib/message-input.cjs +239 -277
  273. package/dist/lib/message-input.cjs.map +1 -1
  274. package/dist/lib/message-input.js +240 -278
  275. package/dist/lib/message-input.js.map +1 -1
  276. package/dist/lib/modal.cjs +59 -99
  277. package/dist/lib/modal.cjs.map +1 -1
  278. package/dist/lib/modal.js +59 -99
  279. package/dist/lib/modal.js.map +1 -1
  280. package/dist/lib/notice.cjs +33 -46
  281. package/dist/lib/notice.cjs.map +1 -1
  282. package/dist/lib/notice.js +33 -46
  283. package/dist/lib/notice.js.map +1 -1
  284. package/dist/lib/pagination.cjs +49 -61
  285. package/dist/lib/pagination.cjs.map +1 -1
  286. package/dist/lib/pagination.js +49 -61
  287. package/dist/lib/pagination.js.map +1 -1
  288. package/dist/lib/popover.cjs +133 -156
  289. package/dist/lib/popover.cjs.map +1 -1
  290. package/dist/lib/popover.js +134 -157
  291. package/dist/lib/popover.js.map +1 -1
  292. package/dist/lib/presence.cjs +9 -17
  293. package/dist/lib/presence.cjs.map +1 -1
  294. package/dist/lib/presence.js +9 -17
  295. package/dist/lib/presence.js.map +1 -1
  296. package/dist/lib/radio-group.cjs +1 -1
  297. package/dist/lib/radio-group.cjs.map +1 -1
  298. package/dist/lib/radio-group.js +1 -1
  299. package/dist/lib/radio-group.js.map +1 -1
  300. package/dist/lib/radio.cjs +34 -41
  301. package/dist/lib/radio.cjs.map +1 -1
  302. package/dist/lib/radio.js +34 -41
  303. package/dist/lib/radio.js.map +1 -1
  304. package/dist/lib/rich-text-editor.cjs +297 -298
  305. package/dist/lib/rich-text-editor.cjs.map +1 -1
  306. package/dist/lib/rich-text-editor.js +297 -298
  307. package/dist/lib/rich-text-editor.js.map +1 -1
  308. package/dist/lib/root-layout.cjs +24 -39
  309. package/dist/lib/root-layout.cjs.map +1 -1
  310. package/dist/lib/root-layout.js +24 -39
  311. package/dist/lib/root-layout.js.map +1 -1
  312. package/dist/lib/scrollbar-directive.cjs.map +1 -1
  313. package/dist/lib/scrollbar-directive.js.map +1 -1
  314. package/dist/lib/scroller.cjs +100 -83
  315. package/dist/lib/scroller.cjs.map +1 -1
  316. package/dist/lib/scroller.js +100 -83
  317. package/dist/lib/scroller.js.map +1 -1
  318. package/dist/lib/select-menu.cjs +40 -67
  319. package/dist/lib/select-menu.cjs.map +1 -1
  320. package/dist/lib/select-menu.js +40 -67
  321. package/dist/lib/select-menu.js.map +1 -1
  322. package/dist/lib/settings-menu-button.cjs +10 -16
  323. package/dist/lib/settings-menu-button.cjs.map +1 -1
  324. package/dist/lib/settings-menu-button.js +10 -16
  325. package/dist/lib/settings-menu-button.js.map +1 -1
  326. package/dist/lib/skeleton.cjs +74 -93
  327. package/dist/lib/skeleton.cjs.map +1 -1
  328. package/dist/lib/skeleton.js +74 -93
  329. package/dist/lib/skeleton.js.map +1 -1
  330. package/dist/lib/split-button.cjs +68 -74
  331. package/dist/lib/split-button.cjs.map +1 -1
  332. package/dist/lib/split-button.js +68 -74
  333. package/dist/lib/split-button.js.map +1 -1
  334. package/dist/lib/stack.cjs +18 -26
  335. package/dist/lib/stack.cjs.map +1 -1
  336. package/dist/lib/stack.js +18 -26
  337. package/dist/lib/stack.js.map +1 -1
  338. package/dist/lib/tabs.cjs +3 -7
  339. package/dist/lib/tabs.cjs.map +1 -1
  340. package/dist/lib/tabs.js +3 -7
  341. package/dist/lib/tabs.js.map +1 -1
  342. package/dist/lib/time-pill.cjs.map +1 -1
  343. package/dist/lib/time-pill.js.map +1 -1
  344. package/dist/lib/toast.cjs +35 -51
  345. package/dist/lib/toast.cjs.map +1 -1
  346. package/dist/lib/toast.js +35 -51
  347. package/dist/lib/toast.js.map +1 -1
  348. package/dist/lib/toggle.cjs +24 -34
  349. package/dist/lib/toggle.cjs.map +1 -1
  350. package/dist/lib/toggle.js +24 -34
  351. package/dist/lib/toggle.js.map +1 -1
  352. package/dist/lib/tooltip-directive.cjs +26 -19
  353. package/dist/lib/tooltip-directive.cjs.map +1 -1
  354. package/dist/lib/tooltip-directive.js +26 -19
  355. package/dist/lib/tooltip-directive.js.map +1 -1
  356. package/dist/lib/tooltip.cjs +21 -32
  357. package/dist/lib/tooltip.cjs.map +1 -1
  358. package/dist/lib/tooltip.js +22 -33
  359. package/dist/lib/tooltip.js.map +1 -1
  360. package/dist/lib/top-banner-info.cjs +8 -23
  361. package/dist/lib/top-banner-info.cjs.map +1 -1
  362. package/dist/lib/top-banner-info.js +8 -23
  363. package/dist/lib/top-banner-info.js.map +1 -1
  364. package/dist/lib/unread-pill.cjs +8 -11
  365. package/dist/lib/unread-pill.cjs.map +1 -1
  366. package/dist/lib/unread-pill.js +8 -11
  367. package/dist/lib/unread-pill.js.map +1 -1
  368. package/dist/lib/validation-messages.cjs +14 -17
  369. package/dist/lib/validation-messages.cjs.map +1 -1
  370. package/dist/lib/validation-messages.js +14 -17
  371. package/dist/lib/validation-messages.js.map +1 -1
  372. package/dist/style.css +5 -0
  373. package/dist/types/components/button/button.vue.d.ts +1 -1
  374. package/dist/types/components/chip/chip.vue.d.ts +1 -1
  375. package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
  376. package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -1
  377. package/dist/types/components/icon/icon.vue.d.ts +2 -2
  378. package/dist/types/components/icon/icon_constants.d.ts +1 -1
  379. package/dist/types/components/icon/icon_constants.d.ts.map +1 -1
  380. package/dist/types/components/illustration/illustration_constants.d.ts +1 -1
  381. package/dist/types/components/illustration/illustration_constants.d.ts.map +1 -1
  382. package/dist/types/components/image_viewer/image_viewer.vue.d.ts +21 -0
  383. package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  384. package/dist/types/components/input/input.vue.d.ts +1 -1
  385. package/dist/types/components/modal/modal.vue.d.ts +1 -1
  386. package/dist/types/components/notice/notice.vue.d.ts +1 -1
  387. package/dist/types/components/radio/radio.vue.d.ts +1 -1
  388. package/dist/types/components/rich_text_editor/extensions/custom_link/custom_link.d.ts.map +1 -1
  389. package/dist/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
  390. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -3
  391. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  392. package/dist/types/components/scroller/modules/scroller_item.vue.d.ts +1 -1
  393. package/dist/types/components/split_button/split_button-alpha.vue.d.ts +1 -1
  394. package/dist/types/components/tabs/tab.vue.d.ts +1 -1
  395. package/dist/types/components/toast/toast.vue.d.ts +2 -2
  396. package/dist/types/components/tooltip/tooltip.vue.d.ts +1 -1
  397. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
  398. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +1 -1
  399. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
  400. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -1
  401. package/package.json +5 -4
  402. package/dist/chunks/icon_constants-Dy4MEUJL.js.map +0 -1
  403. package/dist/chunks/icon_constants-QYpmdE0R.js.map +0 -1
@@ -20,7 +20,7 @@ import { Node, mergeAttributes, nodeInputRule, nodePasteRule, getMarksBetween, c
20
20
  import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, withDirectives, createElementVNode, Fragment, renderList, normalizeClass, withModifiers, resolveDynamicComponent, vShow, createTextVNode, toDisplayString, markRaw, createCommentVNode, mergeProps } from "vue";
21
21
  import { _export_sfc } from "../chunks/_plugin-vue_export-helper-caHeSgYY.js";
22
22
  import { DtEmoji } from "./emoji.js";
23
- import { stringToUnicode, codeToEmojiData, emojiRegex, emojiPattern, emojiShortCodeRegex } from "../chunks/index-GVD15GIB.js";
23
+ import { stringToUnicode, codeToEmojiData, emojiRegex, emojiPattern, emojiShortCodeRegex } from "../chunks/index-dfdrE-3M.js";
24
24
  import { PluginKey, Plugin } from "@tiptap/pm/state";
25
25
  import Suggestion from "@tiptap/suggestion";
26
26
  import { emojisIndexed } from "@dialpad/dialtone-emojis";
@@ -34,7 +34,7 @@ import { DtAvatar } from "./avatar.js";
34
34
  import DtIconHash from "@dialpad/dialtone-icons/vue3/hash";
35
35
  import DtIconLock from "@dialpad/dialtone-icons/vue3/lock";
36
36
  import "./skeleton.js";
37
- import "../chunks/icon_constants-Dy4MEUJL.js";
37
+ import "../chunks/icon_constants-gIQj4mf7.js";
38
38
  import "@dialpad/dialtone-icons/icons.json";
39
39
  import "../chunks/list_item_constants-u1xcN9Dd.js";
40
40
  import "./item-layout.js";
@@ -55,13 +55,13 @@ const _sfc_main$9 = {
55
55
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
56
56
  const _component_dt_emoji = resolveComponent("dt-emoji");
57
57
  const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
58
- return openBlock(), createBlock(_component_node_view_wrapper, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
59
- default: withCtx(() => [
60
- createVNode(_component_dt_emoji, {
61
- size: "500",
62
- code: _ctx.node.attrs.code
63
- }, null, 8, ["code"])
64
- ]),
58
+ return openBlock(), createBlock(_component_node_view_wrapper, {
59
+ class: "d-d-inline-block d-va-bottom d-lh0"
60
+ }, {
61
+ default: withCtx(() => [createVNode(_component_dt_emoji, {
62
+ size: "500",
63
+ code: _ctx.node.attrs.code
64
+ }, null, 8, ["code"])]),
65
65
  _: 1
66
66
  });
67
67
  }
@@ -100,7 +100,9 @@ const _sfc_main$8 = {
100
100
  }
101
101
  },
102
102
  methods: {
103
- onKeyDown({ event }) {
103
+ onKeyDown({
104
+ event
105
+ }) {
104
106
  if (event.key === "ArrowUp") {
105
107
  this.upHandler();
106
108
  return true;
@@ -143,48 +145,52 @@ const _sfc_main$8 = {
143
145
  this.command(item);
144
146
  return;
145
147
  case "mention":
146
- this.command({ name: item.name, id: item.id, avatarSrc: item.avatarSrc });
148
+ this.command({
149
+ name: item.name,
150
+ id: item.id,
151
+ avatarSrc: item.avatarSrc
152
+ });
147
153
  break;
148
154
  case "channel":
149
- this.command({ name: item.name, id: item.id });
155
+ this.command({
156
+ name: item.name,
157
+ id: item.id
158
+ });
150
159
  break;
151
160
  case "slash-command":
152
- this.command({ command: item.command });
161
+ this.command({
162
+ command: item.command
163
+ });
153
164
  break;
154
165
  }
155
166
  }
156
167
  }
157
168
  };
158
- const _hoisted_1$1 = { class: "d-popover__dialog dt-suggestion-list__container" };
169
+ const _hoisted_1$2 = {
170
+ class: "d-popover__dialog dt-suggestion-list__container"
171
+ };
159
172
  const _hoisted_2$1 = {
160
173
  ref: "suggestionList",
161
174
  class: "dt-suggestion-list"
162
175
  };
163
176
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
164
177
  const _component_dt_list_item = resolveComponent("dt-list-item");
165
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
166
- withDirectives(createElementVNode("ul", _hoisted_2$1, [
167
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.items, (item, index) => {
168
- return openBlock(), createBlock(_component_dt_list_item, {
169
- key: item.id,
170
- class: normalizeClass([
171
- "dt-suggestion-list--item",
172
- { "dt-list-item--highlighted": index === $data.selectedIndex }
173
- ]),
174
- "navigation-type": "arrow-keys",
175
- onClick: ($event) => $options.selectItem(index),
176
- onKeydown: withModifiers($options.onKeyDown, ["prevent"])
177
- }, {
178
- default: withCtx(() => [
179
- (openBlock(), createBlock(resolveDynamicComponent($props.itemComponent), { item }, null, 8, ["item"]))
180
- ]),
181
- _: 2
182
- }, 1032, ["class", "onClick", "onKeydown"]);
183
- }), 128))
184
- ], 512), [
185
- [vShow, $props.items.length]
186
- ])
187
- ]);
178
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [withDirectives(createElementVNode("ul", _hoisted_2$1, [(openBlock(true), createElementBlock(Fragment, null, renderList($props.items, (item, index) => {
179
+ return openBlock(), createBlock(_component_dt_list_item, {
180
+ key: item.id,
181
+ class: normalizeClass(["dt-suggestion-list--item", {
182
+ "dt-list-item--highlighted": index === $data.selectedIndex
183
+ }]),
184
+ "navigation-type": "arrow-keys",
185
+ onClick: ($event) => $options.selectItem(index),
186
+ onKeydown: withModifiers($options.onKeyDown, ["prevent"])
187
+ }, {
188
+ default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent($props.itemComponent), {
189
+ item
190
+ }, null, 8, ["item"]))]),
191
+ _: 2
192
+ }, 1032, ["class", "onClick", "onKeydown"]);
193
+ }), 128))], 512), [[vShow, $props.items.length]])]);
188
194
  }
189
195
  const SuggestionList = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
190
196
  const _sfc_main$7 = {
@@ -207,13 +213,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
207
213
  direction: "row",
208
214
  gap: "400"
209
215
  }, {
210
- default: withCtx(() => [
211
- createVNode(_component_dt_emoji, {
212
- size: "200",
213
- code: $props.item.code
214
- }, null, 8, ["code"]),
215
- createTextVNode(" " + toDisplayString($props.item.code), 1)
216
- ]),
216
+ default: withCtx(() => [createVNode(_component_dt_emoji, {
217
+ size: "200",
218
+ code: $props.item.code
219
+ }, null, 8, ["code"]), createTextVNode(" " + toDisplayString($props.item.code), 1)]),
217
220
  _: 1
218
221
  });
219
222
  }
@@ -221,7 +224,9 @@ const EmojiSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sf
221
224
  const hideOnEsc = {
222
225
  name: "hideOnEsc",
223
226
  defaultValue: true,
224
- fn({ hide }) {
227
+ fn({
228
+ hide
229
+ }) {
225
230
  function onKeyDown(event) {
226
231
  if (event.keyCode === 27) {
227
232
  hide();
@@ -238,7 +243,9 @@ const hideOnEsc = {
238
243
  }
239
244
  };
240
245
  const suggestionOptions = {
241
- items: ({ query }) => {
246
+ items: ({
247
+ query
248
+ }) => {
242
249
  if (query.length < 2) {
243
250
  return [];
244
251
  }
@@ -250,26 +257,29 @@ const suggestionOptions = {
250
257
  return false;
251
258
  });
252
259
  return filteredEmoji.map((item) => {
253
- return { code: item.shortname };
260
+ return {
261
+ code: item.shortname
262
+ };
254
263
  });
255
264
  },
256
- command: ({ editor, range, props }) => {
265
+ command: ({
266
+ editor,
267
+ range,
268
+ props
269
+ }) => {
257
270
  var _a, _b;
258
271
  const nodeAfter = editor.view.state.selection.$to.nodeAfter;
259
272
  const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");
260
273
  if (overrideSpace) {
261
274
  range.to += 1;
262
275
  }
263
- editor.chain().focus().insertContentAt(range, [
264
- {
265
- type: "emoji",
266
- attrs: props
267
- },
268
- {
269
- type: "text",
270
- text: " "
271
- }
272
- ]).run();
276
+ editor.chain().focus().insertContentAt(range, [{
277
+ type: "emoji",
278
+ attrs: props
279
+ }, {
280
+ type: "text",
281
+ text: " "
282
+ }]).run();
273
283
  (_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
274
284
  },
275
285
  render: () => {
@@ -382,17 +392,19 @@ const Emoji = Node.create({
382
392
  };
383
393
  },
384
394
  parseHTML() {
385
- return [
386
- {
387
- tag: "emoji-component"
388
- }
389
- ];
395
+ return [{
396
+ tag: "emoji-component"
397
+ }];
390
398
  },
391
- renderText({ node }) {
399
+ renderText({
400
+ node
401
+ }) {
392
402
  const unicodeEmoji = stringToUnicode(codeToEmojiData(node.attrs.code).unicode_output);
393
403
  return unicodeEmoji;
394
404
  },
395
- renderHTML({ HTMLAttributes }) {
405
+ renderHTML({
406
+ HTMLAttributes
407
+ }) {
396
408
  return ["emoji-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
397
409
  },
398
410
  addInputRules() {
@@ -430,35 +442,30 @@ const Emoji = Node.create({
430
442
  ];
431
443
  },
432
444
  addPasteRules() {
433
- return [
434
- nodePasteRule({
435
- find: shortCodePasteMatch,
436
- type: this.type,
437
- getAttributes(attrs) {
438
- return {
439
- code: attrs[0]
440
- };
441
- }
442
- }),
443
- nodePasteRule({
444
- find: emojiRegex,
445
- type: this.type,
446
- getAttributes(attrs) {
447
- return {
448
- code: attrs[0]
449
- };
450
- }
451
- })
452
- ];
445
+ return [nodePasteRule({
446
+ find: shortCodePasteMatch,
447
+ type: this.type,
448
+ getAttributes(attrs) {
449
+ return {
450
+ code: attrs[0]
451
+ };
452
+ }
453
+ }), nodePasteRule({
454
+ find: emojiRegex,
455
+ type: this.type,
456
+ getAttributes(attrs) {
457
+ return {
458
+ code: attrs[0]
459
+ };
460
+ }
461
+ })];
453
462
  },
454
463
  addProseMirrorPlugins() {
455
- return [
456
- Suggestion({
457
- editor: this.editor,
458
- ...this.options.suggestion,
459
- ...suggestionOptions
460
- })
461
- ];
464
+ return [Suggestion({
465
+ editor: this.editor,
466
+ ...this.options.suggestion,
467
+ ...suggestionOptions
468
+ })];
462
469
  }
463
470
  });
464
471
  function getRegexMatches(text, regex, validator = () => true) {
@@ -476,13 +483,7 @@ function hasValidPrefix(text, match) {
476
483
  return !["#", "@"].includes(text.charAt(match.index)) && !["#", "@"].includes(text.charAt(match.index - 1));
477
484
  }
478
485
  function trimEndPunctiation(string) {
479
- const endPunctuationRegex = new RegExp(
480
- "(?:" + [
481
- `[!?.,:;'"]`,
482
- "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
483
- ].join("|"),
484
- "g"
485
- );
486
+ const endPunctuationRegex = new RegExp("(?:" + [`[!?.,:;'"]`, "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
486
487
  return string.replace(endPunctuationRegex, "");
487
488
  }
488
489
  function getWordAt(text, index) {
@@ -533,18 +534,8 @@ function addMarks(text, pos, from, to, tr, type) {
533
534
  let rangeFrom = from - pos - 1;
534
535
  rangeFrom = rangeFrom < 0 ? 0 : rangeFrom;
535
536
  const rangeTo = to - pos;
536
- const firstWordInRange = getWordAtUntil(
537
- text,
538
- rangeFrom,
539
- "left",
540
- partialPhoneNumberRegex
541
- );
542
- const lastWordInRange = getWordAtUntil(
543
- text,
544
- rangeTo,
545
- "right",
546
- partialPhoneNumberRegex
547
- );
537
+ const firstWordInRange = getWordAtUntil(text, rangeFrom, "left", partialPhoneNumberRegex);
538
+ const lastWordInRange = getWordAtUntil(text, rangeTo, "right", partialPhoneNumberRegex);
548
539
  const wordsInRange = text.slice(firstWordInRange.from, lastWordInRange.to);
549
540
  const matches = getRegexMatches(wordsInRange, linkRegex, hasValidPrefix);
550
541
  matches.forEach((match) => {
@@ -563,33 +554,29 @@ function autolink(options) {
563
554
  if (hasInitialized && !contentChanged) {
564
555
  return;
565
556
  }
566
- const { tr } = newState;
567
- const { textContent } = newState.doc;
557
+ const {
558
+ tr
559
+ } = newState;
560
+ const {
561
+ textContent
562
+ } = newState.doc;
568
563
  if (!hasInitialized) {
569
564
  addMarks(textContent, 0, 0, textContent.length, tr, options.type);
570
565
  }
571
566
  hasInitialized = true;
572
- const transform = combineTransactionSteps(
573
- oldState.doc,
574
- [...transactions]
575
- );
567
+ const transform = combineTransactionSteps(oldState.doc, [...transactions]);
576
568
  const changes = getChangedRanges(transform);
577
- changes.forEach(({ oldRange, newRange }) => {
569
+ changes.forEach(({
570
+ oldRange,
571
+ newRange
572
+ }) => {
578
573
  removeMarks(newRange, newState.doc, tr, options.type);
579
- const paragraphs = findChildrenInRange(
580
- newState.doc,
581
- newRange,
582
- (node) => node.isTextblock
583
- );
584
- paragraphs.forEach(({ node, pos }) => {
585
- addMarks(
586
- node.textContent,
587
- pos,
588
- oldRange.from,
589
- newRange.to,
590
- tr,
591
- options.type
592
- );
574
+ const paragraphs = findChildrenInRange(newState.doc, newRange, (node) => node.isTextblock);
575
+ paragraphs.forEach(({
576
+ node,
577
+ pos
578
+ }) => {
579
+ addMarks(node.textContent, pos, oldRange.from, newRange.to, tr, options.type);
593
580
  });
594
581
  });
595
582
  return tr;
@@ -602,24 +589,20 @@ const defaultAttributes = {
602
589
  };
603
590
  const CustomLink = Mark.create({
604
591
  name: "CustomLink",
605
- renderHTML({ HTMLAttributes }) {
606
- return [
607
- "a",
608
- mergeAttributes(
609
- this.options.HTMLAttributes,
610
- HTMLAttributes,
611
- defaultAttributes
612
- ),
613
- 0
614
- ];
592
+ renderHTML({
593
+ HTMLAttributes
594
+ }) {
595
+ return ["a", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, defaultAttributes)];
615
596
  },
616
- renderText({ node }) {
597
+ renderText({
598
+ node
599
+ }) {
617
600
  return node.attrs.text;
618
601
  },
619
602
  addProseMirrorPlugins() {
620
- return [
621
- autolink({ type: this.type })
622
- ];
603
+ return [autolink({
604
+ type: this.type
605
+ })];
623
606
  }
624
607
  });
625
608
  const _sfc_main$6 = {
@@ -638,15 +621,15 @@ const _sfc_main$6 = {
638
621
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
639
622
  const _component_dt_link = resolveComponent("dt-link");
640
623
  const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
641
- return openBlock(), createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, {
642
- default: withCtx(() => [
643
- createVNode(_component_dt_link, { kind: "mention" }, {
644
- default: withCtx(() => [
645
- createTextVNode(toDisplayString($options.text), 1)
646
- ]),
647
- _: 1
648
- })
649
- ]),
624
+ return openBlock(), createBlock(_component_node_view_wrapper, {
625
+ class: "d-d-inline-block"
626
+ }, {
627
+ default: withCtx(() => [createVNode(_component_dt_link, {
628
+ kind: "mention"
629
+ }, {
630
+ default: withCtx(() => [createTextVNode(toDisplayString($options.text), 1)]),
631
+ _: 1
632
+ })]),
650
633
  _: 1
651
634
  });
652
635
  }
@@ -656,11 +639,9 @@ const MentionPlugin = Mention.extend({
656
639
  return VueNodeViewRenderer(MentionComponent);
657
640
  },
658
641
  parseHTML() {
659
- return [
660
- {
661
- tag: "mention-component"
662
- }
663
- ];
642
+ return [{
643
+ tag: "mention-component"
644
+ }];
664
645
  },
665
646
  addAttributes() {
666
647
  return {
@@ -675,11 +656,15 @@ const MentionPlugin = Mention.extend({
675
656
  }
676
657
  };
677
658
  },
678
- renderText({ node }) {
659
+ renderText({
660
+ node
661
+ }) {
679
662
  return `@${node.attrs.id}`;
680
663
  },
681
- renderHTML({ HTMLAttributes }) {
682
- return ["mention-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
664
+ renderHTML({
665
+ HTMLAttributes
666
+ }) {
667
+ return ["mention-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
683
668
  }
684
669
  }).configure({
685
670
  suggestion: {
@@ -703,15 +688,15 @@ const _sfc_main$5 = {
703
688
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
704
689
  const _component_dt_link = resolveComponent("dt-link");
705
690
  const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
706
- return openBlock(), createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, {
707
- default: withCtx(() => [
708
- createVNode(_component_dt_link, { kind: "mention" }, {
709
- default: withCtx(() => [
710
- createTextVNode(toDisplayString($options.text), 1)
711
- ]),
712
- _: 1
713
- })
714
- ]),
691
+ return openBlock(), createBlock(_component_node_view_wrapper, {
692
+ class: "d-d-inline-block"
693
+ }, {
694
+ default: withCtx(() => [createVNode(_component_dt_link, {
695
+ kind: "mention"
696
+ }, {
697
+ default: withCtx(() => [createTextVNode(toDisplayString($options.text), 1)]),
698
+ _: 1
699
+ })]),
715
700
  _: 1
716
701
  });
717
702
  }
@@ -722,11 +707,9 @@ const ChannelPlugin = Mention.extend({
722
707
  return VueNodeViewRenderer(ChannelComponent);
723
708
  },
724
709
  parseHTML() {
725
- return [
726
- {
727
- tag: "channel-component"
728
- }
729
- ];
710
+ return [{
711
+ tag: "channel-component"
712
+ }];
730
713
  },
731
714
  addAttributes() {
732
715
  return {
@@ -741,11 +724,15 @@ const ChannelPlugin = Mention.extend({
741
724
  }
742
725
  };
743
726
  },
744
- renderText({ node }) {
727
+ renderText({
728
+ node
729
+ }) {
745
730
  return `#${node.attrs.id}`;
746
731
  },
747
- renderHTML({ HTMLAttributes }) {
748
- return ["channel-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
732
+ renderHTML({
733
+ HTMLAttributes
734
+ }) {
735
+ return ["channel-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
749
736
  }
750
737
  }).configure({
751
738
  suggestion: {
@@ -771,10 +758,10 @@ const _sfc_main$4 = {
771
758
  };
772
759
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
773
760
  const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
774
- return openBlock(), createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, {
775
- default: withCtx(() => [
776
- createTextVNode(toDisplayString($options.text), 1)
777
- ]),
761
+ return openBlock(), createBlock(_component_node_view_wrapper, {
762
+ class: "d-d-inline-block"
763
+ }, {
764
+ default: withCtx(() => [createTextVNode(toDisplayString($options.text), 1)]),
778
765
  _: 1
779
766
  });
780
767
  }
@@ -800,11 +787,9 @@ const SlashCommandPlugin = Mention.extend({
800
787
  return VueNodeViewRenderer(SlashCommandComponent);
801
788
  },
802
789
  parseHTML() {
803
- return [
804
- {
805
- tag: "command-component"
806
- }
807
- ];
790
+ return [{
791
+ tag: "command-component"
792
+ }];
808
793
  },
809
794
  addAttributes() {
810
795
  return {
@@ -819,39 +804,47 @@ const SlashCommandPlugin = Mention.extend({
819
804
  }
820
805
  };
821
806
  },
822
- renderText({ node }) {
807
+ renderText({
808
+ node
809
+ }) {
823
810
  return `/${node.attrs.command}`;
824
811
  },
825
- renderHTML({ HTMLAttributes }) {
812
+ renderHTML({
813
+ HTMLAttributes
814
+ }) {
826
815
  return ["command-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
827
816
  },
828
817
  addInputRules() {
829
818
  var _a;
830
- const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" }).map((suggestion) => suggestion.command);
819
+ const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
820
+ query: ""
821
+ }).map((suggestion) => suggestion.command);
831
822
  const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) $`);
832
- return [
833
- nodeInputRule({
834
- find: slashCommandRegex,
835
- type: this.type,
836
- getAttributes(attrs) {
837
- return { command: attrs[2] };
838
- }
839
- })
840
- ];
823
+ return [nodeInputRule({
824
+ find: slashCommandRegex,
825
+ type: this.type,
826
+ getAttributes(attrs) {
827
+ return {
828
+ command: attrs[2]
829
+ };
830
+ }
831
+ })];
841
832
  },
842
833
  addPasteRules() {
843
834
  var _a;
844
- const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" }).map((suggestion) => suggestion.command);
835
+ const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
836
+ query: ""
837
+ }).map((suggestion) => suggestion.command);
845
838
  const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) ?$`, "g");
846
- return [
847
- nodePasteRule({
848
- find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
849
- type: this.type,
850
- getAttributes(attrs) {
851
- return { command: attrs[0].trim() };
852
- }
853
- })
854
- ];
839
+ return [nodePasteRule({
840
+ find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
841
+ type: this.type,
842
+ getAttributes(attrs) {
843
+ return {
844
+ command: attrs[0].trim()
845
+ };
846
+ }
847
+ })];
855
848
  }
856
849
  }).configure({
857
850
  suggestion: {
@@ -859,24 +852,9 @@ const SlashCommandPlugin = Mention.extend({
859
852
  pluginKey: new PluginKey("slashCommandSuggestion")
860
853
  }
861
854
  });
862
- const RICH_TEXT_EDITOR_OUTPUT_FORMATS = [
863
- "text",
864
- "json",
865
- "html"
866
- ];
867
- const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = [
868
- "start",
869
- "end",
870
- "all"
871
- ];
872
- const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = [
873
- "https",
874
- "http",
875
- "ftp",
876
- "ftps",
877
- "sftp",
878
- "mailto"
879
- ];
855
+ const RICH_TEXT_EDITOR_OUTPUT_FORMATS = ["text", "json", "html"];
856
+ const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = ["start", "end", "all"];
857
+ const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = ["https", "http", "ftp", "ftps", "sftp", "mailto"];
880
858
  const _sfc_main$3 = {
881
859
  name: "MentionSuggestion",
882
860
  components: {
@@ -898,6 +876,9 @@ const _sfc_main$3 = {
898
876
  }
899
877
  }
900
878
  };
879
+ const _hoisted_1$1 = {
880
+ class: "mention-suggestion-name"
881
+ };
901
882
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
902
883
  const _component_dt_avatar = resolveComponent("dt-avatar");
903
884
  const _component_dt_stack = resolveComponent("dt-stack");
@@ -905,19 +886,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
905
886
  direction: "row",
906
887
  gap: "400"
907
888
  }, {
908
- default: withCtx(() => [
909
- createVNode(_component_dt_avatar, {
910
- "full-name": $options.name,
911
- "image-src": $options.avatarSrc,
912
- "image-alt": $options.name,
913
- size: "xs"
914
- }, null, 8, ["full-name", "image-src", "image-alt"]),
915
- createTextVNode(" " + toDisplayString($options.name), 1)
916
- ]),
889
+ default: withCtx(() => [createVNode(_component_dt_avatar, {
890
+ "full-name": $options.name,
891
+ "image-src": $options.avatarSrc,
892
+ "image-alt": $options.name,
893
+ size: "xs"
894
+ }, null, 8, ["full-name", "image-src", "image-alt"]), createElementVNode("span", _hoisted_1$1, toDisplayString($options.name), 1)]),
917
895
  _: 1
918
896
  });
919
897
  }
920
- const MentionSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
898
+ const MentionSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-65bcbd51"]]);
921
899
  const mentionSuggestion = {
922
900
  // This function comes from the user and passed to the editor directly.
923
901
  // This will also activate the mention plugin on the editor
@@ -1017,16 +995,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1017
995
  direction: "row",
1018
996
  gap: "400"
1019
997
  }, {
1020
- default: withCtx(() => [
1021
- !$props.item.locked ? (openBlock(), createBlock(_component_dt_icon_hash, {
1022
- key: 0,
1023
- size: "300"
1024
- })) : (openBlock(), createBlock(_component_dt_icon_lock, {
1025
- key: 1,
1026
- size: "300"
1027
- })),
1028
- createElementVNode("span", null, toDisplayString($options.name), 1)
1029
- ]),
998
+ default: withCtx(() => [!$props.item.locked ? (openBlock(), createBlock(_component_dt_icon_hash, {
999
+ key: 0,
1000
+ size: "300"
1001
+ })) : (openBlock(), createBlock(_component_dt_icon_lock, {
1002
+ key: 1,
1003
+ size: "300"
1004
+ })), createElementVNode("span", null, toDisplayString($options.name), 1)]),
1030
1005
  _: 1
1031
1006
  });
1032
1007
  }
@@ -1123,17 +1098,17 @@ const _sfc_main$1 = {
1123
1098
  }
1124
1099
  }
1125
1100
  };
1126
- const _hoisted_1 = { class: "d-body--md-compact" };
1127
- const _hoisted_2 = { key: 0 };
1128
- const _hoisted_3 = { class: "d-body--sm d-fc-tertiary" };
1101
+ const _hoisted_1 = {
1102
+ class: "d-body--md-compact"
1103
+ };
1104
+ const _hoisted_2 = {
1105
+ key: 0
1106
+ };
1107
+ const _hoisted_3 = {
1108
+ class: "d-body--sm d-fc-tertiary"
1109
+ };
1129
1110
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1130
- return openBlock(), createElementBlock("div", null, [
1131
- createElementVNode("div", _hoisted_1, [
1132
- createElementVNode("span", null, "/" + toDisplayString($options.command), 1),
1133
- $options.parametersExample ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString($options.parametersExample), 1)) : createCommentVNode("", true)
1134
- ]),
1135
- createElementVNode("div", _hoisted_3, toDisplayString($options.description), 1)
1136
- ]);
1111
+ return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [createElementVNode("span", null, "/" + toDisplayString($options.command), 1), $options.parametersExample ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString($options.parametersExample), 1)) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_3, toDisplayString($options.description), 1)]);
1137
1112
  }
1138
1113
  const SlashCommandSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
1139
1114
  const slashCommandSuggestion = {
@@ -1239,7 +1214,8 @@ const _sfc_main = {
1239
1214
  default: false
1240
1215
  },
1241
1216
  /**
1242
- * Whether the input allows for line breaks to be introduced in the text.
1217
+ * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
1218
+ * line breaks can still be entered by pressing shift+enter.
1243
1219
  */
1244
1220
  allowLineBreaks: {
1245
1221
  type: Boolean,
@@ -1484,7 +1460,9 @@ const _sfc_main = {
1484
1460
  extensions() {
1485
1461
  const extensions = [Document, Paragraph, Text, History];
1486
1462
  if (this.link) {
1487
- extensions.push(TipTapLink.extend({ inclusive: false }).configure({
1463
+ extensions.push(TipTapLink.extend({
1464
+ inclusive: false
1465
+ }).configure({
1488
1466
  HTMLAttributes: {
1489
1467
  class: "d-link d-wb-break-all"
1490
1468
  },
@@ -1516,48 +1494,55 @@ const _sfc_main = {
1516
1494
  extensions.push(Underline);
1517
1495
  }
1518
1496
  if (this.placeholder) {
1519
- extensions.push(
1520
- Placeholder.configure({ placeholder: this.placeholder })
1521
- );
1497
+ extensions.push(Placeholder.configure({
1498
+ placeholder: this.placeholder
1499
+ }));
1522
1500
  }
1523
1501
  if (!this.allowLineBreaks) {
1524
1502
  const self = this;
1525
- extensions.push(
1526
- HardBreak.extend({
1527
- addKeyboardShortcuts() {
1528
- return {
1529
- Enter: () => {
1530
- self.$emit("enter");
1531
- return true;
1532
- },
1533
- "Shift-Enter": () => {
1534
- this.editor.commands.first(({ commands }) => [
1535
- () => commands.newlineInCode(),
1536
- () => self.allowBulletList && commands.splitListItem("listItem"),
1537
- () => commands.createParagraphNear(),
1538
- () => commands.liftEmptyBlock(),
1539
- () => commands.splitBlock()
1540
- ]);
1541
- return true;
1542
- }
1543
- };
1544
- }
1545
- })
1546
- );
1503
+ extensions.push(HardBreak.extend({
1504
+ addKeyboardShortcuts() {
1505
+ return {
1506
+ Enter: () => {
1507
+ self.$emit("enter");
1508
+ return true;
1509
+ },
1510
+ "Shift-Enter": () => {
1511
+ this.editor.commands.setHardBreak();
1512
+ return true;
1513
+ }
1514
+ };
1515
+ }
1516
+ }));
1547
1517
  } else {
1548
1518
  extensions.push(HardBreak);
1549
1519
  }
1550
1520
  if (this.mentionSuggestion) {
1551
- const suggestionObject = { ...this.mentionSuggestion, ...mentionSuggestion };
1552
- extensions.push(MentionPlugin.configure({ suggestion: suggestionObject }));
1521
+ const suggestionObject = {
1522
+ ...this.mentionSuggestion,
1523
+ ...mentionSuggestion
1524
+ };
1525
+ extensions.push(MentionPlugin.configure({
1526
+ suggestion: suggestionObject
1527
+ }));
1553
1528
  }
1554
1529
  if (this.channelSuggestion) {
1555
- const suggestionObject = { ...this.channelSuggestion, ...channelSuggestion };
1556
- extensions.push(ChannelPlugin.configure({ suggestion: suggestionObject }));
1530
+ const suggestionObject = {
1531
+ ...this.channelSuggestion,
1532
+ ...channelSuggestion
1533
+ };
1534
+ extensions.push(ChannelPlugin.configure({
1535
+ suggestion: suggestionObject
1536
+ }));
1557
1537
  }
1558
1538
  if (this.slashCommandSuggestion) {
1559
- const suggestionObject = { ...this.slashCommandSuggestion, ...slashCommandSuggestion };
1560
- extensions.push(SlashCommandPlugin.configure({ suggestion: suggestionObject }));
1539
+ const suggestionObject = {
1540
+ ...this.slashCommandSuggestion,
1541
+ ...slashCommandSuggestion
1542
+ };
1543
+ extensions.push(SlashCommandPlugin.configure({
1544
+ suggestion: suggestionObject
1545
+ }));
1561
1546
  }
1562
1547
  extensions.push(Emoji);
1563
1548
  extensions.push(TextAlign.configure({
@@ -1596,13 +1581,19 @@ const _sfc_main = {
1596
1581
  watch: {
1597
1582
  editable(isEditable) {
1598
1583
  this.editor.setEditable(isEditable);
1599
- this.updateEditorAttributes({ "aria-readonly": !isEditable });
1584
+ this.updateEditorAttributes({
1585
+ "aria-readonly": !isEditable
1586
+ });
1600
1587
  },
1601
1588
  inputClass(newClass) {
1602
- this.updateEditorAttributes({ class: newClass });
1589
+ this.updateEditorAttributes({
1590
+ class: newClass
1591
+ });
1603
1592
  },
1604
1593
  inputAriaLabel(newLabel) {
1605
- this.updateEditorAttributes({ "aria-label": newLabel });
1594
+ this.updateEditorAttributes({
1595
+ "aria-label": newLabel
1596
+ });
1606
1597
  },
1607
1598
  extensions() {
1608
1599
  this.destroyEditor();
@@ -1660,10 +1651,14 @@ const _sfc_main = {
1660
1651
  this.$emit("input", value);
1661
1652
  this.$emit("update:modelValue", value);
1662
1653
  });
1663
- this.editor.on("focus", ({ event }) => {
1654
+ this.editor.on("focus", ({
1655
+ event
1656
+ }) => {
1664
1657
  this.$emit("focus", event);
1665
1658
  });
1666
- this.editor.on("blur", ({ event }) => {
1659
+ this.editor.on("blur", ({
1660
+ event
1661
+ }) => {
1667
1662
  this.$emit("blur", event);
1668
1663
  });
1669
1664
  },
@@ -1686,7 +1681,11 @@ const _sfc_main = {
1686
1681
  return (_a = extension.configure) == null ? void 0 : _a.call(extension, options);
1687
1682
  },
1688
1683
  updateEditorAttributes(attributes) {
1689
- this.editor.setOptions({ editorProps: { attributes } });
1684
+ this.editor.setOptions({
1685
+ editorProps: {
1686
+ attributes
1687
+ }
1688
+ });
1690
1689
  },
1691
1690
  focusEditor() {
1692
1691
  this.editor.commands.focus();