@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
@@ -22,7 +22,7 @@ const core = require("@tiptap/core");
22
22
  const vue = require("vue");
23
23
  const _pluginVue_exportHelper = require("../chunks/_plugin-vue_export-helper-fhnQq0tA.js");
24
24
  const lib_emoji = require("./emoji.cjs");
25
- const common_emoji = require("../chunks/index-lu2o2f4r.js");
25
+ const common_emoji = require("../chunks/index-fEp0B-5Z.js");
26
26
  const state = require("@tiptap/pm/state");
27
27
  const Suggestion = require("@tiptap/suggestion");
28
28
  const dialtoneEmojis = require("@dialpad/dialtone-emojis");
@@ -36,7 +36,7 @@ const lib_avatar = require("./avatar.cjs");
36
36
  const DtIconHash = require("@dialpad/dialtone-icons/vue3/hash");
37
37
  const DtIconLock = require("@dialpad/dialtone-icons/vue3/lock");
38
38
  require("./skeleton.cjs");
39
- require("../chunks/icon_constants-QYpmdE0R.js");
39
+ require("../chunks/icon_constants-bvhFNOPu.js");
40
40
  require("@dialpad/dialtone-icons/icons.json");
41
41
  require("../chunks/list_item_constants-EiqkqZvP.js");
42
42
  require("./item-layout.cjs");
@@ -57,13 +57,13 @@ const _sfc_main$9 = {
57
57
  function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
58
58
  const _component_dt_emoji = vue.resolveComponent("dt-emoji");
59
59
  const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
60
- return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
61
- default: vue.withCtx(() => [
62
- vue.createVNode(_component_dt_emoji, {
63
- size: "500",
64
- code: _ctx.node.attrs.code
65
- }, null, 8, ["code"])
66
- ]),
60
+ return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
61
+ class: "d-d-inline-block d-va-bottom d-lh0"
62
+ }, {
63
+ default: vue.withCtx(() => [vue.createVNode(_component_dt_emoji, {
64
+ size: "500",
65
+ code: _ctx.node.attrs.code
66
+ }, null, 8, ["code"])]),
67
67
  _: 1
68
68
  });
69
69
  }
@@ -102,7 +102,9 @@ const _sfc_main$8 = {
102
102
  }
103
103
  },
104
104
  methods: {
105
- onKeyDown({ event }) {
105
+ onKeyDown({
106
+ event
107
+ }) {
106
108
  if (event.key === "ArrowUp") {
107
109
  this.upHandler();
108
110
  return true;
@@ -145,48 +147,52 @@ const _sfc_main$8 = {
145
147
  this.command(item);
146
148
  return;
147
149
  case "mention":
148
- this.command({ name: item.name, id: item.id, avatarSrc: item.avatarSrc });
150
+ this.command({
151
+ name: item.name,
152
+ id: item.id,
153
+ avatarSrc: item.avatarSrc
154
+ });
149
155
  break;
150
156
  case "channel":
151
- this.command({ name: item.name, id: item.id });
157
+ this.command({
158
+ name: item.name,
159
+ id: item.id
160
+ });
152
161
  break;
153
162
  case "slash-command":
154
- this.command({ command: item.command });
163
+ this.command({
164
+ command: item.command
165
+ });
155
166
  break;
156
167
  }
157
168
  }
158
169
  }
159
170
  };
160
- const _hoisted_1$1 = { class: "d-popover__dialog dt-suggestion-list__container" };
171
+ const _hoisted_1$2 = {
172
+ class: "d-popover__dialog dt-suggestion-list__container"
173
+ };
161
174
  const _hoisted_2$1 = {
162
175
  ref: "suggestionList",
163
176
  class: "dt-suggestion-list"
164
177
  };
165
178
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
166
179
  const _component_dt_list_item = vue.resolveComponent("dt-list-item");
167
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
168
- vue.withDirectives(vue.createElementVNode("ul", _hoisted_2$1, [
169
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.items, (item, index) => {
170
- return vue.openBlock(), vue.createBlock(_component_dt_list_item, {
171
- key: item.id,
172
- class: vue.normalizeClass([
173
- "dt-suggestion-list--item",
174
- { "dt-list-item--highlighted": index === $data.selectedIndex }
175
- ]),
176
- "navigation-type": "arrow-keys",
177
- onClick: ($event) => $options.selectItem(index),
178
- onKeydown: vue.withModifiers($options.onKeyDown, ["prevent"])
179
- }, {
180
- default: vue.withCtx(() => [
181
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.itemComponent), { item }, null, 8, ["item"]))
182
- ]),
183
- _: 2
184
- }, 1032, ["class", "onClick", "onKeydown"]);
185
- }), 128))
186
- ], 512), [
187
- [vue.vShow, $props.items.length]
188
- ])
189
- ]);
180
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [vue.withDirectives(vue.createElementVNode("ul", _hoisted_2$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.items, (item, index) => {
181
+ return vue.openBlock(), vue.createBlock(_component_dt_list_item, {
182
+ key: item.id,
183
+ class: vue.normalizeClass(["dt-suggestion-list--item", {
184
+ "dt-list-item--highlighted": index === $data.selectedIndex
185
+ }]),
186
+ "navigation-type": "arrow-keys",
187
+ onClick: ($event) => $options.selectItem(index),
188
+ onKeydown: vue.withModifiers($options.onKeyDown, ["prevent"])
189
+ }, {
190
+ default: vue.withCtx(() => [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.itemComponent), {
191
+ item
192
+ }, null, 8, ["item"]))]),
193
+ _: 2
194
+ }, 1032, ["class", "onClick", "onKeydown"]);
195
+ }), 128))], 512), [[vue.vShow, $props.items.length]])]);
190
196
  }
191
197
  const SuggestionList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
192
198
  const _sfc_main$7 = {
@@ -209,13 +215,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
209
215
  direction: "row",
210
216
  gap: "400"
211
217
  }, {
212
- default: vue.withCtx(() => [
213
- vue.createVNode(_component_dt_emoji, {
214
- size: "200",
215
- code: $props.item.code
216
- }, null, 8, ["code"]),
217
- vue.createTextVNode(" " + vue.toDisplayString($props.item.code), 1)
218
- ]),
218
+ default: vue.withCtx(() => [vue.createVNode(_component_dt_emoji, {
219
+ size: "200",
220
+ code: $props.item.code
221
+ }, null, 8, ["code"]), vue.createTextVNode(" " + vue.toDisplayString($props.item.code), 1)]),
219
222
  _: 1
220
223
  });
221
224
  }
@@ -223,7 +226,9 @@ const EmojiSuggestion = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc
223
226
  const hideOnEsc = {
224
227
  name: "hideOnEsc",
225
228
  defaultValue: true,
226
- fn({ hide }) {
229
+ fn({
230
+ hide
231
+ }) {
227
232
  function onKeyDown(event) {
228
233
  if (event.keyCode === 27) {
229
234
  hide();
@@ -240,7 +245,9 @@ const hideOnEsc = {
240
245
  }
241
246
  };
242
247
  const suggestionOptions = {
243
- items: ({ query }) => {
248
+ items: ({
249
+ query
250
+ }) => {
244
251
  if (query.length < 2) {
245
252
  return [];
246
253
  }
@@ -252,26 +259,29 @@ const suggestionOptions = {
252
259
  return false;
253
260
  });
254
261
  return filteredEmoji.map((item) => {
255
- return { code: item.shortname };
262
+ return {
263
+ code: item.shortname
264
+ };
256
265
  });
257
266
  },
258
- command: ({ editor, range, props }) => {
267
+ command: ({
268
+ editor,
269
+ range,
270
+ props
271
+ }) => {
259
272
  var _a, _b;
260
273
  const nodeAfter = editor.view.state.selection.$to.nodeAfter;
261
274
  const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");
262
275
  if (overrideSpace) {
263
276
  range.to += 1;
264
277
  }
265
- editor.chain().focus().insertContentAt(range, [
266
- {
267
- type: "emoji",
268
- attrs: props
269
- },
270
- {
271
- type: "text",
272
- text: " "
273
- }
274
- ]).run();
278
+ editor.chain().focus().insertContentAt(range, [{
279
+ type: "emoji",
280
+ attrs: props
281
+ }, {
282
+ type: "text",
283
+ text: " "
284
+ }]).run();
275
285
  (_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
276
286
  },
277
287
  render: () => {
@@ -384,17 +394,19 @@ const Emoji = core.Node.create({
384
394
  };
385
395
  },
386
396
  parseHTML() {
387
- return [
388
- {
389
- tag: "emoji-component"
390
- }
391
- ];
397
+ return [{
398
+ tag: "emoji-component"
399
+ }];
392
400
  },
393
- renderText({ node }) {
401
+ renderText({
402
+ node
403
+ }) {
394
404
  const unicodeEmoji = common_emoji.stringToUnicode(common_emoji.codeToEmojiData(node.attrs.code).unicode_output);
395
405
  return unicodeEmoji;
396
406
  },
397
- renderHTML({ HTMLAttributes }) {
407
+ renderHTML({
408
+ HTMLAttributes
409
+ }) {
398
410
  return ["emoji-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
399
411
  },
400
412
  addInputRules() {
@@ -432,35 +444,30 @@ const Emoji = core.Node.create({
432
444
  ];
433
445
  },
434
446
  addPasteRules() {
435
- return [
436
- core.nodePasteRule({
437
- find: shortCodePasteMatch,
438
- type: this.type,
439
- getAttributes(attrs) {
440
- return {
441
- code: attrs[0]
442
- };
443
- }
444
- }),
445
- core.nodePasteRule({
446
- find: common_emoji.emojiRegex,
447
- type: this.type,
448
- getAttributes(attrs) {
449
- return {
450
- code: attrs[0]
451
- };
452
- }
453
- })
454
- ];
447
+ return [core.nodePasteRule({
448
+ find: shortCodePasteMatch,
449
+ type: this.type,
450
+ getAttributes(attrs) {
451
+ return {
452
+ code: attrs[0]
453
+ };
454
+ }
455
+ }), core.nodePasteRule({
456
+ find: common_emoji.emojiRegex,
457
+ type: this.type,
458
+ getAttributes(attrs) {
459
+ return {
460
+ code: attrs[0]
461
+ };
462
+ }
463
+ })];
455
464
  },
456
465
  addProseMirrorPlugins() {
457
- return [
458
- Suggestion({
459
- editor: this.editor,
460
- ...this.options.suggestion,
461
- ...suggestionOptions
462
- })
463
- ];
466
+ return [Suggestion({
467
+ editor: this.editor,
468
+ ...this.options.suggestion,
469
+ ...suggestionOptions
470
+ })];
464
471
  }
465
472
  });
466
473
  function getRegexMatches(text, regex, validator = () => true) {
@@ -478,13 +485,7 @@ function hasValidPrefix(text, match) {
478
485
  return !["#", "@"].includes(text.charAt(match.index)) && !["#", "@"].includes(text.charAt(match.index - 1));
479
486
  }
480
487
  function trimEndPunctiation(string) {
481
- const endPunctuationRegex = new RegExp(
482
- "(?:" + [
483
- `[!?.,:;'"]`,
484
- "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
485
- ].join("|"),
486
- "g"
487
- );
488
+ const endPunctuationRegex = new RegExp("(?:" + [`[!?.,:;'"]`, "(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
488
489
  return string.replace(endPunctuationRegex, "");
489
490
  }
490
491
  function getWordAt(text, index) {
@@ -535,18 +536,8 @@ function addMarks(text, pos, from, to, tr, type) {
535
536
  let rangeFrom = from - pos - 1;
536
537
  rangeFrom = rangeFrom < 0 ? 0 : rangeFrom;
537
538
  const rangeTo = to - pos;
538
- const firstWordInRange = getWordAtUntil(
539
- text,
540
- rangeFrom,
541
- "left",
542
- partialPhoneNumberRegex
543
- );
544
- const lastWordInRange = getWordAtUntil(
545
- text,
546
- rangeTo,
547
- "right",
548
- partialPhoneNumberRegex
549
- );
539
+ const firstWordInRange = getWordAtUntil(text, rangeFrom, "left", partialPhoneNumberRegex);
540
+ const lastWordInRange = getWordAtUntil(text, rangeTo, "right", partialPhoneNumberRegex);
550
541
  const wordsInRange = text.slice(firstWordInRange.from, lastWordInRange.to);
551
542
  const matches = getRegexMatches(wordsInRange, common_utils.linkRegex, hasValidPrefix);
552
543
  matches.forEach((match) => {
@@ -565,33 +556,29 @@ function autolink(options) {
565
556
  if (hasInitialized && !contentChanged) {
566
557
  return;
567
558
  }
568
- const { tr } = newState;
569
- const { textContent } = newState.doc;
559
+ const {
560
+ tr
561
+ } = newState;
562
+ const {
563
+ textContent
564
+ } = newState.doc;
570
565
  if (!hasInitialized) {
571
566
  addMarks(textContent, 0, 0, textContent.length, tr, options.type);
572
567
  }
573
568
  hasInitialized = true;
574
- const transform = core.combineTransactionSteps(
575
- oldState.doc,
576
- [...transactions]
577
- );
569
+ const transform = core.combineTransactionSteps(oldState.doc, [...transactions]);
578
570
  const changes = core.getChangedRanges(transform);
579
- changes.forEach(({ oldRange, newRange }) => {
571
+ changes.forEach(({
572
+ oldRange,
573
+ newRange
574
+ }) => {
580
575
  removeMarks(newRange, newState.doc, tr, options.type);
581
- const paragraphs = core.findChildrenInRange(
582
- newState.doc,
583
- newRange,
584
- (node) => node.isTextblock
585
- );
586
- paragraphs.forEach(({ node, pos }) => {
587
- addMarks(
588
- node.textContent,
589
- pos,
590
- oldRange.from,
591
- newRange.to,
592
- tr,
593
- options.type
594
- );
576
+ const paragraphs = core.findChildrenInRange(newState.doc, newRange, (node) => node.isTextblock);
577
+ paragraphs.forEach(({
578
+ node,
579
+ pos
580
+ }) => {
581
+ addMarks(node.textContent, pos, oldRange.from, newRange.to, tr, options.type);
595
582
  });
596
583
  });
597
584
  return tr;
@@ -604,24 +591,20 @@ const defaultAttributes = {
604
591
  };
605
592
  const CustomLink = core.Mark.create({
606
593
  name: "CustomLink",
607
- renderHTML({ HTMLAttributes }) {
608
- return [
609
- "a",
610
- core.mergeAttributes(
611
- this.options.HTMLAttributes,
612
- HTMLAttributes,
613
- defaultAttributes
614
- ),
615
- 0
616
- ];
594
+ renderHTML({
595
+ HTMLAttributes
596
+ }) {
597
+ return ["a", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, defaultAttributes)];
617
598
  },
618
- renderText({ node }) {
599
+ renderText({
600
+ node
601
+ }) {
619
602
  return node.attrs.text;
620
603
  },
621
604
  addProseMirrorPlugins() {
622
- return [
623
- autolink({ type: this.type })
624
- ];
605
+ return [autolink({
606
+ type: this.type
607
+ })];
625
608
  }
626
609
  });
627
610
  const _sfc_main$6 = {
@@ -640,15 +623,15 @@ const _sfc_main$6 = {
640
623
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
641
624
  const _component_dt_link = vue.resolveComponent("dt-link");
642
625
  const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
643
- return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, {
644
- default: vue.withCtx(() => [
645
- vue.createVNode(_component_dt_link, { kind: "mention" }, {
646
- default: vue.withCtx(() => [
647
- vue.createTextVNode(vue.toDisplayString($options.text), 1)
648
- ]),
649
- _: 1
650
- })
651
- ]),
626
+ return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
627
+ class: "d-d-inline-block"
628
+ }, {
629
+ default: vue.withCtx(() => [vue.createVNode(_component_dt_link, {
630
+ kind: "mention"
631
+ }, {
632
+ default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString($options.text), 1)]),
633
+ _: 1
634
+ })]),
652
635
  _: 1
653
636
  });
654
637
  }
@@ -658,11 +641,9 @@ const MentionPlugin = Mention.extend({
658
641
  return vue3.VueNodeViewRenderer(MentionComponent);
659
642
  },
660
643
  parseHTML() {
661
- return [
662
- {
663
- tag: "mention-component"
664
- }
665
- ];
644
+ return [{
645
+ tag: "mention-component"
646
+ }];
666
647
  },
667
648
  addAttributes() {
668
649
  return {
@@ -677,11 +658,15 @@ const MentionPlugin = Mention.extend({
677
658
  }
678
659
  };
679
660
  },
680
- renderText({ node }) {
661
+ renderText({
662
+ node
663
+ }) {
681
664
  return `@${node.attrs.id}`;
682
665
  },
683
- renderHTML({ HTMLAttributes }) {
684
- return ["mention-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
666
+ renderHTML({
667
+ HTMLAttributes
668
+ }) {
669
+ return ["mention-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
685
670
  }
686
671
  }).configure({
687
672
  suggestion: {
@@ -705,15 +690,15 @@ const _sfc_main$5 = {
705
690
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
706
691
  const _component_dt_link = vue.resolveComponent("dt-link");
707
692
  const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
708
- return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, {
709
- default: vue.withCtx(() => [
710
- vue.createVNode(_component_dt_link, { kind: "mention" }, {
711
- default: vue.withCtx(() => [
712
- vue.createTextVNode(vue.toDisplayString($options.text), 1)
713
- ]),
714
- _: 1
715
- })
716
- ]),
693
+ return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
694
+ class: "d-d-inline-block"
695
+ }, {
696
+ default: vue.withCtx(() => [vue.createVNode(_component_dt_link, {
697
+ kind: "mention"
698
+ }, {
699
+ default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString($options.text), 1)]),
700
+ _: 1
701
+ })]),
717
702
  _: 1
718
703
  });
719
704
  }
@@ -724,11 +709,9 @@ const ChannelPlugin = Mention.extend({
724
709
  return vue3.VueNodeViewRenderer(ChannelComponent);
725
710
  },
726
711
  parseHTML() {
727
- return [
728
- {
729
- tag: "channel-component"
730
- }
731
- ];
712
+ return [{
713
+ tag: "channel-component"
714
+ }];
732
715
  },
733
716
  addAttributes() {
734
717
  return {
@@ -743,11 +726,15 @@ const ChannelPlugin = Mention.extend({
743
726
  }
744
727
  };
745
728
  },
746
- renderText({ node }) {
729
+ renderText({
730
+ node
731
+ }) {
747
732
  return `#${node.attrs.id}`;
748
733
  },
749
- renderHTML({ HTMLAttributes }) {
750
- return ["channel-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
734
+ renderHTML({
735
+ HTMLAttributes
736
+ }) {
737
+ return ["channel-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
751
738
  }
752
739
  }).configure({
753
740
  suggestion: {
@@ -773,10 +760,10 @@ const _sfc_main$4 = {
773
760
  };
774
761
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
775
762
  const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
776
- return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, {
777
- default: vue.withCtx(() => [
778
- vue.createTextVNode(vue.toDisplayString($options.text), 1)
779
- ]),
763
+ return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
764
+ class: "d-d-inline-block"
765
+ }, {
766
+ default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString($options.text), 1)]),
780
767
  _: 1
781
768
  });
782
769
  }
@@ -802,11 +789,9 @@ const SlashCommandPlugin = Mention.extend({
802
789
  return vue3.VueNodeViewRenderer(SlashCommandComponent);
803
790
  },
804
791
  parseHTML() {
805
- return [
806
- {
807
- tag: "command-component"
808
- }
809
- ];
792
+ return [{
793
+ tag: "command-component"
794
+ }];
810
795
  },
811
796
  addAttributes() {
812
797
  return {
@@ -821,39 +806,47 @@ const SlashCommandPlugin = Mention.extend({
821
806
  }
822
807
  };
823
808
  },
824
- renderText({ node }) {
809
+ renderText({
810
+ node
811
+ }) {
825
812
  return `/${node.attrs.command}`;
826
813
  },
827
- renderHTML({ HTMLAttributes }) {
814
+ renderHTML({
815
+ HTMLAttributes
816
+ }) {
828
817
  return ["command-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
829
818
  },
830
819
  addInputRules() {
831
820
  var _a;
832
- const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" }).map((suggestion) => suggestion.command);
821
+ const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
822
+ query: ""
823
+ }).map((suggestion) => suggestion.command);
833
824
  const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) $`);
834
- return [
835
- core.nodeInputRule({
836
- find: slashCommandRegex,
837
- type: this.type,
838
- getAttributes(attrs) {
839
- return { command: attrs[2] };
840
- }
841
- })
842
- ];
825
+ return [core.nodeInputRule({
826
+ find: slashCommandRegex,
827
+ type: this.type,
828
+ getAttributes(attrs) {
829
+ return {
830
+ command: attrs[2]
831
+ };
832
+ }
833
+ })];
843
834
  },
844
835
  addPasteRules() {
845
836
  var _a;
846
- const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" }).map((suggestion) => suggestion.command);
837
+ const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
838
+ query: ""
839
+ }).map((suggestion) => suggestion.command);
847
840
  const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) ?$`, "g");
848
- return [
849
- core.nodePasteRule({
850
- find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
851
- type: this.type,
852
- getAttributes(attrs) {
853
- return { command: attrs[0].trim() };
854
- }
855
- })
856
- ];
841
+ return [core.nodePasteRule({
842
+ find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
843
+ type: this.type,
844
+ getAttributes(attrs) {
845
+ return {
846
+ command: attrs[0].trim()
847
+ };
848
+ }
849
+ })];
857
850
  }
858
851
  }).configure({
859
852
  suggestion: {
@@ -861,24 +854,9 @@ const SlashCommandPlugin = Mention.extend({
861
854
  pluginKey: new state.PluginKey("slashCommandSuggestion")
862
855
  }
863
856
  });
864
- const RICH_TEXT_EDITOR_OUTPUT_FORMATS = [
865
- "text",
866
- "json",
867
- "html"
868
- ];
869
- const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = [
870
- "start",
871
- "end",
872
- "all"
873
- ];
874
- const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = [
875
- "https",
876
- "http",
877
- "ftp",
878
- "ftps",
879
- "sftp",
880
- "mailto"
881
- ];
857
+ const RICH_TEXT_EDITOR_OUTPUT_FORMATS = ["text", "json", "html"];
858
+ const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = ["start", "end", "all"];
859
+ const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = ["https", "http", "ftp", "ftps", "sftp", "mailto"];
882
860
  const _sfc_main$3 = {
883
861
  name: "MentionSuggestion",
884
862
  components: {
@@ -900,6 +878,9 @@ const _sfc_main$3 = {
900
878
  }
901
879
  }
902
880
  };
881
+ const _hoisted_1$1 = {
882
+ class: "mention-suggestion-name"
883
+ };
903
884
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
904
885
  const _component_dt_avatar = vue.resolveComponent("dt-avatar");
905
886
  const _component_dt_stack = vue.resolveComponent("dt-stack");
@@ -907,19 +888,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
907
888
  direction: "row",
908
889
  gap: "400"
909
890
  }, {
910
- default: vue.withCtx(() => [
911
- vue.createVNode(_component_dt_avatar, {
912
- "full-name": $options.name,
913
- "image-src": $options.avatarSrc,
914
- "image-alt": $options.name,
915
- size: "xs"
916
- }, null, 8, ["full-name", "image-src", "image-alt"]),
917
- vue.createTextVNode(" " + vue.toDisplayString($options.name), 1)
918
- ]),
891
+ default: vue.withCtx(() => [vue.createVNode(_component_dt_avatar, {
892
+ "full-name": $options.name,
893
+ "image-src": $options.avatarSrc,
894
+ "image-alt": $options.name,
895
+ size: "xs"
896
+ }, null, 8, ["full-name", "image-src", "image-alt"]), vue.createElementVNode("span", _hoisted_1$1, vue.toDisplayString($options.name), 1)]),
919
897
  _: 1
920
898
  });
921
899
  }
922
- const MentionSuggestion = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
900
+ const MentionSuggestion = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-65bcbd51"]]);
923
901
  const mentionSuggestion = {
924
902
  // This function comes from the user and passed to the editor directly.
925
903
  // This will also activate the mention plugin on the editor
@@ -1019,16 +997,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1019
997
  direction: "row",
1020
998
  gap: "400"
1021
999
  }, {
1022
- default: vue.withCtx(() => [
1023
- !$props.item.locked ? (vue.openBlock(), vue.createBlock(_component_dt_icon_hash, {
1024
- key: 0,
1025
- size: "300"
1026
- })) : (vue.openBlock(), vue.createBlock(_component_dt_icon_lock, {
1027
- key: 1,
1028
- size: "300"
1029
- })),
1030
- vue.createElementVNode("span", null, vue.toDisplayString($options.name), 1)
1031
- ]),
1000
+ default: vue.withCtx(() => [!$props.item.locked ? (vue.openBlock(), vue.createBlock(_component_dt_icon_hash, {
1001
+ key: 0,
1002
+ size: "300"
1003
+ })) : (vue.openBlock(), vue.createBlock(_component_dt_icon_lock, {
1004
+ key: 1,
1005
+ size: "300"
1006
+ })), vue.createElementVNode("span", null, vue.toDisplayString($options.name), 1)]),
1032
1007
  _: 1
1033
1008
  });
1034
1009
  }
@@ -1125,17 +1100,17 @@ const _sfc_main$1 = {
1125
1100
  }
1126
1101
  }
1127
1102
  };
1128
- const _hoisted_1 = { class: "d-body--md-compact" };
1129
- const _hoisted_2 = { key: 0 };
1130
- const _hoisted_3 = { class: "d-body--sm d-fc-tertiary" };
1103
+ const _hoisted_1 = {
1104
+ class: "d-body--md-compact"
1105
+ };
1106
+ const _hoisted_2 = {
1107
+ key: 0
1108
+ };
1109
+ const _hoisted_3 = {
1110
+ class: "d-body--sm d-fc-tertiary"
1111
+ };
1131
1112
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1132
- return vue.openBlock(), vue.createElementBlock("div", null, [
1133
- vue.createElementVNode("div", _hoisted_1, [
1134
- vue.createElementVNode("span", null, "/" + vue.toDisplayString($options.command), 1),
1135
- $options.parametersExample ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString($options.parametersExample), 1)) : vue.createCommentVNode("", true)
1136
- ]),
1137
- vue.createElementVNode("div", _hoisted_3, vue.toDisplayString($options.description), 1)
1138
- ]);
1113
+ return vue.openBlock(), vue.createElementBlock("div", null, [vue.createElementVNode("div", _hoisted_1, [vue.createElementVNode("span", null, "/" + vue.toDisplayString($options.command), 1), $options.parametersExample ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString($options.parametersExample), 1)) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_3, vue.toDisplayString($options.description), 1)]);
1139
1114
  }
1140
1115
  const SlashCommandSuggestion = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
1141
1116
  const slashCommandSuggestion = {
@@ -1241,7 +1216,8 @@ const _sfc_main = {
1241
1216
  default: false
1242
1217
  },
1243
1218
  /**
1244
- * Whether the input allows for line breaks to be introduced in the text.
1219
+ * Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
1220
+ * line breaks can still be entered by pressing shift+enter.
1245
1221
  */
1246
1222
  allowLineBreaks: {
1247
1223
  type: Boolean,
@@ -1486,7 +1462,9 @@ const _sfc_main = {
1486
1462
  extensions() {
1487
1463
  const extensions = [Document, Paragraph, Text, History];
1488
1464
  if (this.link) {
1489
- extensions.push(TipTapLink.extend({ inclusive: false }).configure({
1465
+ extensions.push(TipTapLink.extend({
1466
+ inclusive: false
1467
+ }).configure({
1490
1468
  HTMLAttributes: {
1491
1469
  class: "d-link d-wb-break-all"
1492
1470
  },
@@ -1518,48 +1496,55 @@ const _sfc_main = {
1518
1496
  extensions.push(Underline);
1519
1497
  }
1520
1498
  if (this.placeholder) {
1521
- extensions.push(
1522
- Placeholder.configure({ placeholder: this.placeholder })
1523
- );
1499
+ extensions.push(Placeholder.configure({
1500
+ placeholder: this.placeholder
1501
+ }));
1524
1502
  }
1525
1503
  if (!this.allowLineBreaks) {
1526
1504
  const self = this;
1527
- extensions.push(
1528
- HardBreak.extend({
1529
- addKeyboardShortcuts() {
1530
- return {
1531
- Enter: () => {
1532
- self.$emit("enter");
1533
- return true;
1534
- },
1535
- "Shift-Enter": () => {
1536
- this.editor.commands.first(({ commands }) => [
1537
- () => commands.newlineInCode(),
1538
- () => self.allowBulletList && commands.splitListItem("listItem"),
1539
- () => commands.createParagraphNear(),
1540
- () => commands.liftEmptyBlock(),
1541
- () => commands.splitBlock()
1542
- ]);
1543
- return true;
1544
- }
1545
- };
1546
- }
1547
- })
1548
- );
1505
+ extensions.push(HardBreak.extend({
1506
+ addKeyboardShortcuts() {
1507
+ return {
1508
+ Enter: () => {
1509
+ self.$emit("enter");
1510
+ return true;
1511
+ },
1512
+ "Shift-Enter": () => {
1513
+ this.editor.commands.setHardBreak();
1514
+ return true;
1515
+ }
1516
+ };
1517
+ }
1518
+ }));
1549
1519
  } else {
1550
1520
  extensions.push(HardBreak);
1551
1521
  }
1552
1522
  if (this.mentionSuggestion) {
1553
- const suggestionObject = { ...this.mentionSuggestion, ...mentionSuggestion };
1554
- extensions.push(MentionPlugin.configure({ suggestion: suggestionObject }));
1523
+ const suggestionObject = {
1524
+ ...this.mentionSuggestion,
1525
+ ...mentionSuggestion
1526
+ };
1527
+ extensions.push(MentionPlugin.configure({
1528
+ suggestion: suggestionObject
1529
+ }));
1555
1530
  }
1556
1531
  if (this.channelSuggestion) {
1557
- const suggestionObject = { ...this.channelSuggestion, ...channelSuggestion };
1558
- extensions.push(ChannelPlugin.configure({ suggestion: suggestionObject }));
1532
+ const suggestionObject = {
1533
+ ...this.channelSuggestion,
1534
+ ...channelSuggestion
1535
+ };
1536
+ extensions.push(ChannelPlugin.configure({
1537
+ suggestion: suggestionObject
1538
+ }));
1559
1539
  }
1560
1540
  if (this.slashCommandSuggestion) {
1561
- const suggestionObject = { ...this.slashCommandSuggestion, ...slashCommandSuggestion };
1562
- extensions.push(SlashCommandPlugin.configure({ suggestion: suggestionObject }));
1541
+ const suggestionObject = {
1542
+ ...this.slashCommandSuggestion,
1543
+ ...slashCommandSuggestion
1544
+ };
1545
+ extensions.push(SlashCommandPlugin.configure({
1546
+ suggestion: suggestionObject
1547
+ }));
1563
1548
  }
1564
1549
  extensions.push(Emoji);
1565
1550
  extensions.push(TextAlign.configure({
@@ -1598,13 +1583,19 @@ const _sfc_main = {
1598
1583
  watch: {
1599
1584
  editable(isEditable) {
1600
1585
  this.editor.setEditable(isEditable);
1601
- this.updateEditorAttributes({ "aria-readonly": !isEditable });
1586
+ this.updateEditorAttributes({
1587
+ "aria-readonly": !isEditable
1588
+ });
1602
1589
  },
1603
1590
  inputClass(newClass) {
1604
- this.updateEditorAttributes({ class: newClass });
1591
+ this.updateEditorAttributes({
1592
+ class: newClass
1593
+ });
1605
1594
  },
1606
1595
  inputAriaLabel(newLabel) {
1607
- this.updateEditorAttributes({ "aria-label": newLabel });
1596
+ this.updateEditorAttributes({
1597
+ "aria-label": newLabel
1598
+ });
1608
1599
  },
1609
1600
  extensions() {
1610
1601
  this.destroyEditor();
@@ -1662,10 +1653,14 @@ const _sfc_main = {
1662
1653
  this.$emit("input", value);
1663
1654
  this.$emit("update:modelValue", value);
1664
1655
  });
1665
- this.editor.on("focus", ({ event }) => {
1656
+ this.editor.on("focus", ({
1657
+ event
1658
+ }) => {
1666
1659
  this.$emit("focus", event);
1667
1660
  });
1668
- this.editor.on("blur", ({ event }) => {
1661
+ this.editor.on("blur", ({
1662
+ event
1663
+ }) => {
1669
1664
  this.$emit("blur", event);
1670
1665
  });
1671
1666
  },
@@ -1688,7 +1683,11 @@ const _sfc_main = {
1688
1683
  return (_a = extension.configure) == null ? void 0 : _a.call(extension, options);
1689
1684
  },
1690
1685
  updateEditorAttributes(attributes) {
1691
- this.editor.setOptions({ editorProps: { attributes } });
1686
+ this.editor.setOptions({
1687
+ editorProps: {
1688
+ attributes
1689
+ }
1690
+ });
1692
1691
  },
1693
1692
  focusEditor() {
1694
1693
  this.editor.commands.focus();