@dialpad/dialtone 9.122.0 → 9.123.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 (376) hide show
  1. package/dist/tokens/doc.json +30685 -30685
  2. package/dist/vue2/_plugin-vue2_normalizer-CeySl7Fu.js +11 -0
  3. package/dist/vue2/_plugin-vue2_normalizer-CeySl7Fu.js.map +1 -0
  4. package/dist/vue2/_plugin-vue2_normalizer-yXi3ZRRD.cjs +2 -0
  5. package/dist/vue2/_plugin-vue2_normalizer-yXi3ZRRD.cjs.map +1 -0
  6. package/dist/vue2/component-documentation.json +1 -1
  7. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  8. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  9. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +17 -8
  10. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  11. package/dist/vue2/lib/avatar/avatar.cjs +1 -1
  12. package/dist/vue2/lib/avatar/avatar.js +5 -2
  13. package/dist/vue2/lib/avatar/avatar.js.map +1 -1
  14. package/dist/vue2/lib/badge/badge.cjs +1 -1
  15. package/dist/vue2/lib/badge/badge.js +7 -4
  16. package/dist/vue2/lib/badge/badge.js.map +1 -1
  17. package/dist/vue2/lib/banner/banner.cjs +2 -2
  18. package/dist/vue2/lib/banner/banner.js +9 -6
  19. package/dist/vue2/lib/banner/banner.js.map +1 -1
  20. package/dist/vue2/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
  21. package/dist/vue2/lib/breadcrumbs/breadcrumb-item.js +7 -4
  22. package/dist/vue2/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
  23. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  24. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +5 -2
  25. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  26. package/dist/vue2/lib/button/button.cjs +1 -1
  27. package/dist/vue2/lib/button/button.js +5 -2
  28. package/dist/vue2/lib/button/button.js.map +1 -1
  29. package/dist/vue2/lib/button-group/button-group.cjs +1 -1
  30. package/dist/vue2/lib/button-group/button-group.js +11 -8
  31. package/dist/vue2/lib/button-group/button-group.js.map +1 -1
  32. package/dist/vue2/lib/button-group/buttons-decorator.cjs +1 -1
  33. package/dist/vue2/lib/button-group/buttons-decorator.js +7 -4
  34. package/dist/vue2/lib/button-group/buttons-decorator.js.map +1 -1
  35. package/dist/vue2/lib/callbar-button/callbar-button.cjs +1 -1
  36. package/dist/vue2/lib/callbar-button/callbar-button.js +10 -7
  37. package/dist/vue2/lib/callbar-button/callbar-button.js.map +1 -1
  38. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  39. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +5 -2
  40. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  41. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  42. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +12 -9
  43. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  44. package/dist/vue2/lib/callbox/callbox.cjs +1 -1
  45. package/dist/vue2/lib/callbox/callbox.js +5 -2
  46. package/dist/vue2/lib/callbox/callbox.js.map +1 -1
  47. package/dist/vue2/lib/card/card.cjs +1 -1
  48. package/dist/vue2/lib/card/card.js +7 -4
  49. package/dist/vue2/lib/card/card.js.map +1 -1
  50. package/dist/vue2/lib/checkbox/checkbox.cjs +1 -1
  51. package/dist/vue2/lib/checkbox/checkbox.js +5 -2
  52. package/dist/vue2/lib/checkbox/checkbox.js.map +1 -1
  53. package/dist/vue2/lib/checkbox-group/checkbox-group.cjs +1 -1
  54. package/dist/vue2/lib/checkbox-group/checkbox-group.js +8 -5
  55. package/dist/vue2/lib/checkbox-group/checkbox-group.js.map +1 -1
  56. package/dist/vue2/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
  57. package/dist/vue2/lib/checkbox-group/checkboxes-decorator.js +12 -9
  58. package/dist/vue2/lib/checkbox-group/checkboxes-decorator.js.map +1 -1
  59. package/dist/vue2/lib/chip/chip.cjs +1 -1
  60. package/dist/vue2/lib/chip/chip.js +11 -8
  61. package/dist/vue2/lib/chip/chip.js.map +1 -1
  62. package/dist/vue2/lib/codeblock/codeblock.cjs +2 -2
  63. package/dist/vue2/lib/codeblock/codeblock.js +11 -8
  64. package/dist/vue2/lib/codeblock/codeblock.js.map +1 -1
  65. package/dist/vue2/lib/collapsible/collapsible-lazy-show.cjs +1 -1
  66. package/dist/vue2/lib/collapsible/collapsible-lazy-show.js +5 -2
  67. package/dist/vue2/lib/collapsible/collapsible-lazy-show.js.map +1 -1
  68. package/dist/vue2/lib/collapsible/collapsible.cjs +1 -1
  69. package/dist/vue2/lib/collapsible/collapsible.js +7 -4
  70. package/dist/vue2/lib/collapsible/collapsible.js.map +1 -1
  71. package/dist/vue2/lib/combobox/combobox-empty-list.cjs +1 -1
  72. package/dist/vue2/lib/combobox/combobox-empty-list.js +10 -7
  73. package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
  74. package/dist/vue2/lib/combobox/combobox-loading-list.cjs +1 -1
  75. package/dist/vue2/lib/combobox/combobox-loading-list.js +10 -7
  76. package/dist/vue2/lib/combobox/combobox-loading-list.js.map +1 -1
  77. package/dist/vue2/lib/combobox/combobox.cjs +2 -2
  78. package/dist/vue2/lib/combobox/combobox.js +5 -2
  79. package/dist/vue2/lib/combobox/combobox.js.map +1 -1
  80. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
  81. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +9 -6
  82. package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
  83. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
  84. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +5 -2
  85. package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
  86. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  87. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +9 -6
  88. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  89. package/dist/vue2/lib/contact-info/contact-info.cjs +1 -1
  90. package/dist/vue2/lib/contact-info/contact-info.js +8 -5
  91. package/dist/vue2/lib/contact-info/contact-info.js.map +1 -1
  92. package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
  93. package/dist/vue2/lib/contact-row/contact-row.js +5 -2
  94. package/dist/vue2/lib/contact-row/contact-row.js.map +1 -1
  95. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  96. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  97. package/dist/vue2/lib/datepicker/datepicker.js +13 -4
  98. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  99. package/dist/vue2/lib/description-list/description-list.cjs +1 -1
  100. package/dist/vue2/lib/description-list/description-list.js +13 -10
  101. package/dist/vue2/lib/description-list/description-list.js.map +1 -1
  102. package/dist/vue2/lib/dropdown/dropdown-list.cjs +1 -1
  103. package/dist/vue2/lib/dropdown/dropdown-list.js +8 -5
  104. package/dist/vue2/lib/dropdown/dropdown-list.js.map +1 -1
  105. package/dist/vue2/lib/dropdown/dropdown-separator.cjs +1 -1
  106. package/dist/vue2/lib/dropdown/dropdown-separator.js +7 -4
  107. package/dist/vue2/lib/dropdown/dropdown-separator.js.map +1 -1
  108. package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
  109. package/dist/vue2/lib/dropdown/dropdown.js +5 -2
  110. package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
  111. package/dist/vue2/lib/editor/editor.cjs +1 -1
  112. package/dist/vue2/lib/editor/editor.js +49 -46
  113. package/dist/vue2/lib/editor/editor.js.map +1 -1
  114. package/dist/vue2/lib/emoji/emoji.cjs +1 -1
  115. package/dist/vue2/lib/emoji/emoji.js +10 -7
  116. package/dist/vue2/lib/emoji/emoji.js.map +1 -1
  117. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  118. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  119. package/dist/vue2/lib/emoji-picker/emoji-picker.js +34 -13
  120. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  121. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  122. package/dist/vue2/lib/emoji-row/emoji-row.js +6 -3
  123. package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
  124. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
  125. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.js +9 -6
  126. package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
  127. package/dist/vue2/lib/empty-state/empty-state.cjs +1 -1
  128. package/dist/vue2/lib/empty-state/empty-state.js +9 -6
  129. package/dist/vue2/lib/empty-state/empty-state.js.map +1 -1
  130. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  131. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +14 -11
  132. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  133. package/dist/vue2/lib/feed-item-row/feed-item-row.cjs +1 -1
  134. package/dist/vue2/lib/feed-item-row/feed-item-row.js +9 -6
  135. package/dist/vue2/lib/feed-item-row/feed-item-row.js.map +1 -1
  136. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  137. package/dist/vue2/lib/general-row/general-row.js +5 -2
  138. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  139. package/dist/vue2/lib/general-row/leftbar-general-row-icon.cjs +1 -1
  140. package/dist/vue2/lib/general-row/leftbar-general-row-icon.js +10 -7
  141. package/dist/vue2/lib/general-row/leftbar-general-row-icon.js.map +1 -1
  142. package/dist/vue2/lib/group-row/group-row.cjs +1 -1
  143. package/dist/vue2/lib/group-row/group-row.js +7 -4
  144. package/dist/vue2/lib/group-row/group-row.js.map +1 -1
  145. package/dist/vue2/lib/grouped-chip/grouped-chip.cjs +1 -1
  146. package/dist/vue2/lib/grouped-chip/grouped-chip.js +7 -4
  147. package/dist/vue2/lib/grouped-chip/grouped-chip.js.map +1 -1
  148. package/dist/vue2/lib/hovercard/hovercard.cjs +1 -1
  149. package/dist/vue2/lib/hovercard/hovercard.js +9 -6
  150. package/dist/vue2/lib/hovercard/hovercard.js.map +1 -1
  151. package/dist/vue2/lib/icon/icon.cjs +1 -1
  152. package/dist/vue2/lib/icon/icon.js +12 -9
  153. package/dist/vue2/lib/icon/icon.js.map +1 -1
  154. package/dist/vue2/lib/illustration/illustration.cjs +1 -1
  155. package/dist/vue2/lib/illustration/illustration.js +13 -10
  156. package/dist/vue2/lib/illustration/illustration.js.map +1 -1
  157. package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
  158. package/dist/vue2/lib/image-viewer/image-viewer.js +9 -6
  159. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  160. package/dist/vue2/lib/input/input.cjs +1 -1
  161. package/dist/vue2/lib/input/input.js +5 -2
  162. package/dist/vue2/lib/input/input.js.map +1 -1
  163. package/dist/vue2/lib/input-group/input-group.cjs +1 -1
  164. package/dist/vue2/lib/input-group/input-group.js +9 -6
  165. package/dist/vue2/lib/input-group/input-group.js.map +1 -1
  166. package/dist/vue2/lib/item-layout/item-layout.cjs +2 -2
  167. package/dist/vue2/lib/item-layout/item-layout.js +7 -4
  168. package/dist/vue2/lib/item-layout/item-layout.js.map +1 -1
  169. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  170. package/dist/vue2/lib/ivr-node/ivr-node.js +14 -11
  171. package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
  172. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
  173. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.js +13 -10
  174. package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  175. package/dist/vue2/lib/lazy-show/lazy-show.cjs +1 -1
  176. package/dist/vue2/lib/lazy-show/lazy-show.js +5 -2
  177. package/dist/vue2/lib/lazy-show/lazy-show.js.map +1 -1
  178. package/dist/vue2/lib/link/link.cjs +1 -1
  179. package/dist/vue2/lib/link/link.js +9 -6
  180. package/dist/vue2/lib/link/link.js.map +1 -1
  181. package/dist/vue2/lib/list-item/list-item.cjs +1 -1
  182. package/dist/vue2/lib/list-item/list-item.js +25 -22
  183. package/dist/vue2/lib/list-item/list-item.js.map +1 -1
  184. package/dist/vue2/lib/list-item-group/list-item-group.cjs +1 -1
  185. package/dist/vue2/lib/list-item-group/list-item-group.js +11 -8
  186. package/dist/vue2/lib/list-item-group/list-item-group.js.map +1 -1
  187. package/dist/vue2/lib/message-input/message-input-button.cjs +1 -1
  188. package/dist/vue2/lib/message-input/message-input-button.js +7 -4
  189. package/dist/vue2/lib/message-input/message-input-button.js.map +1 -1
  190. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  191. package/dist/vue2/lib/message-input/message-input-link.js +5 -2
  192. package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
  193. package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
  194. package/dist/vue2/lib/message-input/message-input-topbar.js +5 -2
  195. package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
  196. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  197. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  198. package/dist/vue2/lib/message-input/message-input.js +23 -9
  199. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  200. package/dist/vue2/lib/modal/modal.cjs +2 -2
  201. package/dist/vue2/lib/modal/modal.js +5 -2
  202. package/dist/vue2/lib/modal/modal.js.map +1 -1
  203. package/dist/vue2/lib/notice/notice-action.cjs +1 -1
  204. package/dist/vue2/lib/notice/notice-action.js +7 -4
  205. package/dist/vue2/lib/notice/notice-action.js.map +1 -1
  206. package/dist/vue2/lib/notice/notice-content.cjs +1 -1
  207. package/dist/vue2/lib/notice/notice-content.js +5 -2
  208. package/dist/vue2/lib/notice/notice-content.js.map +1 -1
  209. package/dist/vue2/lib/notice/notice-icon.cjs +1 -1
  210. package/dist/vue2/lib/notice/notice-icon.js +16 -13
  211. package/dist/vue2/lib/notice/notice-icon.js.map +1 -1
  212. package/dist/vue2/lib/notice/notice.cjs +1 -1
  213. package/dist/vue2/lib/notice/notice.js +10 -7
  214. package/dist/vue2/lib/notice/notice.js.map +1 -1
  215. package/dist/vue2/lib/pagination/pagination.cjs +1 -1
  216. package/dist/vue2/lib/pagination/pagination.js +9 -6
  217. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  218. package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
  219. package/dist/vue2/lib/popover/popover-header-footer.js +8 -5
  220. package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
  221. package/dist/vue2/lib/popover/popover.cjs +1 -1
  222. package/dist/vue2/lib/popover/popover.js +5 -2
  223. package/dist/vue2/lib/popover/popover.js.map +1 -1
  224. package/dist/vue2/lib/presence/presence.cjs +1 -1
  225. package/dist/vue2/lib/presence/presence.js +7 -4
  226. package/dist/vue2/lib/presence/presence.js.map +1 -1
  227. package/dist/vue2/lib/radio/radio.cjs +1 -1
  228. package/dist/vue2/lib/radio/radio.js +8 -5
  229. package/dist/vue2/lib/radio/radio.js.map +1 -1
  230. package/dist/vue2/lib/radio-group/radio-group.cjs +1 -1
  231. package/dist/vue2/lib/radio-group/radio-group.js +5 -2
  232. package/dist/vue2/lib/radio-group/radio-group.js.map +1 -1
  233. package/dist/vue2/lib/radio-group/radios-decorator.cjs +1 -1
  234. package/dist/vue2/lib/radio-group/radios-decorator.js +9 -6
  235. package/dist/vue2/lib/radio-group/radios-decorator.js.map +1 -1
  236. package/dist/vue2/lib/rich-text-editor/mention-suggestion.cjs +1 -1
  237. package/dist/vue2/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  238. package/dist/vue2/lib/rich-text-editor/mention-suggestion.js +33 -14
  239. package/dist/vue2/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  240. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  241. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  242. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +364 -315
  243. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  244. package/dist/vue2/lib/root-layout/root-layout.cjs +1 -1
  245. package/dist/vue2/lib/root-layout/root-layout.js +8 -5
  246. package/dist/vue2/lib/root-layout/root-layout.js.map +1 -1
  247. package/dist/vue2/lib/select-menu/select-menu.cjs +1 -1
  248. package/dist/vue2/lib/select-menu/select-menu.js +5 -2
  249. package/dist/vue2/lib/select-menu/select-menu.js.map +1 -1
  250. package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs +1 -1
  251. package/dist/vue2/lib/settings-menu-button/settings-menu-button.js +7 -4
  252. package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
  253. package/dist/vue2/lib/skeleton/skeleton-list-item.cjs +1 -1
  254. package/dist/vue2/lib/skeleton/skeleton-list-item.js +5 -2
  255. package/dist/vue2/lib/skeleton/skeleton-list-item.js.map +1 -1
  256. package/dist/vue2/lib/skeleton/skeleton-paragraph.cjs +1 -1
  257. package/dist/vue2/lib/skeleton/skeleton-paragraph.js +8 -5
  258. package/dist/vue2/lib/skeleton/skeleton-paragraph.js.map +1 -1
  259. package/dist/vue2/lib/skeleton/skeleton-shape.cjs +1 -1
  260. package/dist/vue2/lib/skeleton/skeleton-shape.js +7 -4
  261. package/dist/vue2/lib/skeleton/skeleton-shape.js.map +1 -1
  262. package/dist/vue2/lib/skeleton/skeleton-text.cjs +1 -1
  263. package/dist/vue2/lib/skeleton/skeleton-text.js +14 -11
  264. package/dist/vue2/lib/skeleton/skeleton-text.js.map +1 -1
  265. package/dist/vue2/lib/skeleton/skeleton.cjs +1 -1
  266. package/dist/vue2/lib/skeleton/skeleton.js +9 -6
  267. package/dist/vue2/lib/skeleton/skeleton.js.map +1 -1
  268. package/dist/vue2/lib/split-button/split-button-alpha.cjs +1 -1
  269. package/dist/vue2/lib/split-button/split-button-alpha.js +12 -9
  270. package/dist/vue2/lib/split-button/split-button-alpha.js.map +1 -1
  271. package/dist/vue2/lib/split-button/split-button-omega.cjs +1 -1
  272. package/dist/vue2/lib/split-button/split-button-omega.js +9 -6
  273. package/dist/vue2/lib/split-button/split-button-omega.js.map +1 -1
  274. package/dist/vue2/lib/split-button/split-button.cjs +1 -1
  275. package/dist/vue2/lib/split-button/split-button.js +9 -6
  276. package/dist/vue2/lib/split-button/split-button.js.map +1 -1
  277. package/dist/vue2/lib/stack/stack.cjs +1 -1
  278. package/dist/vue2/lib/stack/stack.js +15 -12
  279. package/dist/vue2/lib/stack/stack.js.map +1 -1
  280. package/dist/vue2/lib/tab/tab-group.cjs +1 -1
  281. package/dist/vue2/lib/tab/tab-group.js +5 -2
  282. package/dist/vue2/lib/tab/tab-group.js.map +1 -1
  283. package/dist/vue2/lib/tab/tab-panel.cjs +1 -1
  284. package/dist/vue2/lib/tab/tab-panel.js +11 -8
  285. package/dist/vue2/lib/tab/tab-panel.js.map +1 -1
  286. package/dist/vue2/lib/tab/tab.cjs +1 -1
  287. package/dist/vue2/lib/tab/tab.js +10 -7
  288. package/dist/vue2/lib/tab/tab.js.map +1 -1
  289. package/dist/vue2/lib/time-pill/time-pill.cjs +1 -1
  290. package/dist/vue2/lib/time-pill/time-pill.js +8 -5
  291. package/dist/vue2/lib/time-pill/time-pill.js.map +1 -1
  292. package/dist/vue2/lib/toast/toast.cjs +1 -1
  293. package/dist/vue2/lib/toast/toast.cjs.map +1 -1
  294. package/dist/vue2/lib/toast/toast.js +17 -5
  295. package/dist/vue2/lib/toast/toast.js.map +1 -1
  296. package/dist/vue2/lib/toggle/toggle.cjs +1 -1
  297. package/dist/vue2/lib/toggle/toggle.js +5 -2
  298. package/dist/vue2/lib/toggle/toggle.js.map +1 -1
  299. package/dist/vue2/lib/tooltip/tooltip.cjs +1 -1
  300. package/dist/vue2/lib/tooltip/tooltip.js +9 -6
  301. package/dist/vue2/lib/tooltip/tooltip.js.map +1 -1
  302. package/dist/vue2/lib/top-banner-info/top-banner-info.cjs +1 -1
  303. package/dist/vue2/lib/top-banner-info/top-banner-info.js +5 -2
  304. package/dist/vue2/lib/top-banner-info/top-banner-info.js.map +1 -1
  305. package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
  306. package/dist/vue2/lib/unread-pill/unread-pill.js +8 -5
  307. package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
  308. package/dist/vue2/lib/validation-messages/validation-messages.cjs +1 -1
  309. package/dist/vue2/lib/validation-messages/validation-messages.js +10 -7
  310. package/dist/vue2/lib/validation-messages/validation-messages.js.map +1 -1
  311. package/dist/vue2/node_modules/@tiptap/vue-2.cjs +1 -1
  312. package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
  313. package/dist/vue2/node_modules/@tiptap/vue-2.js +191 -149
  314. package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
  315. package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
  316. package/dist/vue2/shared/sr_only_close_button.js +12 -9
  317. package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
  318. package/dist/vue2/style.css +1 -0
  319. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -1
  320. package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +16 -16
  321. package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +16 -16
  322. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +16 -16
  323. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +5 -0
  324. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  325. package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +16 -16
  326. package/dist/vue2/types/components/rich_text_editor/mention_suggestion.d.ts +23 -3
  327. package/dist/vue2/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
  328. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  329. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +16 -16
  330. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -1
  331. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  332. package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
  333. package/dist/vue3/component-documentation.json +1 -1
  334. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
  335. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
  336. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js +4 -3
  337. package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
  338. package/dist/vue3/lib/emoji-picker/emoji-picker.cjs +1 -1
  339. package/dist/vue3/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  340. package/dist/vue3/lib/emoji-picker/emoji-picker.js +518 -415
  341. package/dist/vue3/lib/emoji-picker/emoji-picker.js.map +1 -1
  342. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs +1 -1
  343. package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
  344. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js +34 -15
  345. package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
  346. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
  347. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  348. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +264 -212
  349. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  350. package/dist/vue3/node_modules/@tiptap/vue-3.cjs +1 -1
  351. package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
  352. package/dist/vue3/node_modules/@tiptap/vue-3.js +165 -115
  353. package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
  354. package/dist/vue3/style.css +1 -0
  355. package/dist/vue3/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -1
  356. package/dist/vue3/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -1
  357. package/dist/vue3/types/components/emoji_picker/emoji_picker_constants.d.ts +1 -0
  358. package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +1 -1
  359. package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
  360. package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
  361. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +26 -2
  362. package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +26 -2
  363. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +26 -2
  364. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +5 -0
  365. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  366. package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +26 -2
  367. package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts +23 -3
  368. package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
  369. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  370. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +26 -2
  371. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
  372. package/package.json +31 -31
  373. package/dist/vue2/_plugin-vue2_normalizer-DSLOjnn3.js +0 -11
  374. package/dist/vue2/_plugin-vue2_normalizer-DSLOjnn3.js.map +0 -1
  375. package/dist/vue2/_plugin-vue2_normalizer-e_CkxkSV.cjs +0 -2
  376. package/dist/vue2/_plugin-vue2_normalizer-e_CkxkSV.cjs.map +0 -1
@@ -1,24 +1,24 @@
1
- import { BubbleMenuPlugin as Q } from "@tiptap/extension-bubble-menu";
2
- import { Editor as U, NodeView as X } from "@tiptap/core";
1
+ import { BubbleMenuPlugin as J } from "@tiptap/extension-bubble-menu";
2
+ import { Editor as Q, NodeView as X } from "@tiptap/core";
3
3
  export * from "@tiptap/core";
4
4
  import { FloatingMenuPlugin as Y } from "@tiptap/extension-floating-menu";
5
5
  import v from "vue";
6
- var L = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, a = {}, m = {}, o = {}, p = {}, g = {};
7
- Object.defineProperty(g, "__esModule", { value: !0 });
8
- g.isInstanceOf = void 0;
6
+ var L = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = {}, h = {}, o = {}, p = {}, m = {};
7
+ Object.defineProperty(m, "__esModule", { value: !0 });
8
+ m.isInstanceOf = void 0;
9
9
  const Z = (e) => (t) => {
10
10
  if (!(t instanceof e))
11
11
  return `value should be an instance of ${e.name}`;
12
12
  };
13
- g.isInstanceOf = Z;
14
- var h = {};
15
- Object.defineProperty(h, "__esModule", { value: !0 });
16
- h.isInteger = void 0;
13
+ m.isInstanceOf = Z;
14
+ var g = {};
15
+ Object.defineProperty(g, "__esModule", { value: !0 });
16
+ g.isInteger = void 0;
17
17
  const x = (e) => {
18
18
  if (typeof e != "number" || !Number.isInteger(e))
19
19
  return "value should be an integer";
20
20
  };
21
- h.isInteger = x;
21
+ g.isInteger = x;
22
22
  var _ = {};
23
23
  Object.defineProperty(_, "__esModule", { value: !0 });
24
24
  _.isOneOf = void 0;
@@ -36,73 +36,73 @@ const te = (e) => {
36
36
  };
37
37
  j.isSymbol = te;
38
38
  (function(e) {
39
- var t = L && L.__importDefault || function(s) {
40
- return s && s.__esModule ? s : { default: s };
39
+ var t = L && L.__importDefault || function(u) {
40
+ return u && u.__esModule ? u : { default: u };
41
41
  };
42
42
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isSymbol = e.isOneOf = e.isInteger = e.isInstanceOf = e.vuePropValidator = void 0;
43
- const r = t(v);
44
- function n(s, ...P) {
45
- const y = s ? [...P, s] : P;
43
+ const n = t(v);
44
+ function r(u, ...P) {
45
+ const y = u ? [...P, u] : P;
46
46
  if (y.length !== 0)
47
47
  return (c) => {
48
- for (const A of y) {
49
- const f = A(c);
48
+ for (const U of y) {
49
+ const f = U(c);
50
50
  if (f)
51
- return typeof r.default == "object" && "util" in r.default ? r.default.util.warn(`${f} (received: '${String(c)}')`) : console.warn(`${f} (received: '${String(c)}')`), !1;
51
+ return typeof n.default == "object" && "util" in n.default ? n.default.util.warn(`${f} (received: '${String(c)}')`) : console.warn(`${f} (received: '${String(c)}')`), !1;
52
52
  }
53
53
  return !0;
54
54
  };
55
55
  }
56
- e.vuePropValidator = n;
57
- var i = g;
56
+ e.vuePropValidator = r;
57
+ var i = m;
58
58
  Object.defineProperty(e, "isInstanceOf", { enumerable: !0, get: function() {
59
59
  return i.isInstanceOf;
60
60
  } });
61
- var u = h;
61
+ var s = g;
62
62
  Object.defineProperty(e, "isInteger", { enumerable: !0, get: function() {
63
- return u.isInteger;
63
+ return s.isInteger;
64
64
  } });
65
- var d = _;
65
+ var a = _;
66
66
  Object.defineProperty(e, "isOneOf", { enumerable: !0, get: function() {
67
- return d.isOneOf;
67
+ return a.isOneOf;
68
68
  } });
69
- var l = j;
69
+ var d = j;
70
70
  Object.defineProperty(e, "isSymbol", { enumerable: !0, get: function() {
71
- return l.isSymbol;
71
+ return d.isSymbol;
72
72
  } });
73
73
  })(p);
74
74
  Object.defineProperty(o, "__esModule", { value: !0 });
75
75
  o.propOptionsGenerator = void 0;
76
- const O = p, re = (e, t, ...r) => ({
76
+ const O = p, ne = (e, t, ...n) => ({
77
77
  optional: {
78
78
  type: e,
79
79
  required: !1,
80
80
  default: void 0,
81
- validator: (0, O.vuePropValidator)(t, ...r)
81
+ validator: (0, O.vuePropValidator)(t, ...n)
82
82
  },
83
83
  nullable: {
84
84
  type: e,
85
85
  required: !1,
86
86
  default: null,
87
- validator: (0, O.vuePropValidator)(t, ...r)
87
+ validator: (0, O.vuePropValidator)(t, ...n)
88
88
  },
89
- withDefault: (n) => ({
89
+ withDefault: (r) => ({
90
90
  type: e,
91
91
  required: !1,
92
- default: n,
93
- validator: (0, O.vuePropValidator)(t, ...r)
92
+ default: r,
93
+ validator: (0, O.vuePropValidator)(t, ...n)
94
94
  }),
95
95
  required: {
96
96
  type: e,
97
97
  required: !0,
98
- validator: (0, O.vuePropValidator)(t, ...r)
98
+ validator: (0, O.vuePropValidator)(t, ...n)
99
99
  }
100
100
  });
101
- o.propOptionsGenerator = re;
102
- Object.defineProperty(m, "__esModule", { value: !0 });
103
- m.stringProp = void 0;
104
- const ne = o, oe = (e) => (0, ne.propOptionsGenerator)(String, e);
105
- m.stringProp = oe;
101
+ o.propOptionsGenerator = ne;
102
+ Object.defineProperty(h, "__esModule", { value: !0 });
103
+ h.stringProp = void 0;
104
+ const re = o, oe = (e) => (0, re.propOptionsGenerator)(String, e);
105
+ h.stringProp = oe;
106
106
  var N = {};
107
107
  Object.defineProperty(N, "__esModule", { value: !0 });
108
108
  N.booleanProp = void 0;
@@ -123,46 +123,46 @@ Object.defineProperty(M, "__esModule", { value: !0 });
123
123
  M.symbolProp = void 0;
124
124
  const ce = o, fe = p, ve = (e) => (0, ce.propOptionsGenerator)(void 0, e, fe.isSymbol);
125
125
  M.symbolProp = ve;
126
- var C = {};
127
- Object.defineProperty(C, "__esModule", { value: !0 });
128
- C.vueComponentProp = void 0;
129
- const be = o, Pe = (e) => (0, be.propOptionsGenerator)([Object, String], e);
130
- C.vueComponentProp = Pe;
131
126
  var S = {};
132
127
  Object.defineProperty(S, "__esModule", { value: !0 });
133
- S.anyProp = void 0;
128
+ S.vueComponentProp = void 0;
129
+ const be = o, Pe = (e) => (0, be.propOptionsGenerator)([Object, String], e);
130
+ S.vueComponentProp = Pe;
131
+ var C = {};
132
+ Object.defineProperty(C, "__esModule", { value: !0 });
133
+ C.anyProp = void 0;
134
134
  const ye = o, Oe = (e) => (0, ye.propOptionsGenerator)(void 0, e);
135
- S.anyProp = Oe;
135
+ C.anyProp = Oe;
136
136
  var D = {};
137
137
  Object.defineProperty(D, "__esModule", { value: !0 });
138
138
  D.arrayProp = void 0;
139
- const me = o, ge = (e) => (0, me.propOptionsGenerator)(Array, e);
140
- D.arrayProp = ge;
139
+ const he = o, me = (e) => (0, he.propOptionsGenerator)(Array, e);
140
+ D.arrayProp = me;
141
141
  var q = {};
142
142
  Object.defineProperty(q, "__esModule", { value: !0 });
143
143
  q.objectProp = void 0;
144
- const he = o, _e = (e) => (0, he.propOptionsGenerator)(Object, e);
144
+ const ge = o, _e = (e) => (0, ge.propOptionsGenerator)(Object, e);
145
145
  q.objectProp = _e;
146
146
  var I = {};
147
147
  Object.defineProperty(I, "__esModule", { value: !0 });
148
148
  I.functionProp = void 0;
149
- const B = p, je = (e) => ({
149
+ const k = p, je = (e) => ({
150
150
  optional: {
151
151
  type: Function,
152
152
  required: !1,
153
153
  default: void 0,
154
- validator: (0, B.vuePropValidator)(e)
154
+ validator: (0, k.vuePropValidator)(e)
155
155
  },
156
156
  nullable: {
157
157
  type: Function,
158
158
  required: !1,
159
159
  default: null,
160
- validator: (0, B.vuePropValidator)(e)
160
+ validator: (0, k.vuePropValidator)(e)
161
161
  },
162
162
  required: {
163
163
  type: Function,
164
164
  required: !0,
165
- validator: (0, B.vuePropValidator)(e)
165
+ validator: (0, k.vuePropValidator)(e)
166
166
  }
167
167
  });
168
168
  I.functionProp = je;
@@ -171,11 +171,11 @@ Object.defineProperty(b, "__esModule", { value: !0 });
171
171
  b.oneOfProp = void 0;
172
172
  const Ne = o, $e = p, we = (e) => {
173
173
  const t = [
174
- ...new Set(e.flatMap((r) => {
175
- var n;
176
- return r == null ? [] : (
174
+ ...new Set(e.flatMap((n) => {
175
+ var r;
176
+ return n == null ? [] : (
177
177
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
178
- (n = r.constructor) !== null && n !== void 0 ? n : []
178
+ (r = n.constructor) !== null && r !== void 0 ? r : []
179
179
  );
180
180
  }))
181
181
  ];
@@ -183,29 +183,29 @@ const Ne = o, $e = p, we = (e) => {
183
183
  return t.length === 1 ? t[0] : t;
184
184
  }, Me = (e, t) => (0, Ne.propOptionsGenerator)(we(e), t, (0, $e.isOneOf)(e));
185
185
  b.oneOfProp = Me;
186
+ var T = {};
187
+ Object.defineProperty(T, "__esModule", { value: !0 });
188
+ T.oneOfObjectKeysProp = void 0;
189
+ const Se = b, Ce = (e, t) => (0, Se.oneOfProp)(Object.keys(e), t);
190
+ T.oneOfObjectKeysProp = Ce;
186
191
  var G = {};
187
192
  Object.defineProperty(G, "__esModule", { value: !0 });
188
- G.oneOfObjectKeysProp = void 0;
189
- const Ce = b, Se = (e, t) => (0, Ce.oneOfProp)(Object.keys(e), t);
190
- G.oneOfObjectKeysProp = Se;
193
+ G.oneOfTypesProp = void 0;
194
+ const De = o, qe = (e, t) => (0, De.propOptionsGenerator)(e, t);
195
+ G.oneOfTypesProp = qe;
191
196
  var K = {};
192
197
  Object.defineProperty(K, "__esModule", { value: !0 });
193
- K.oneOfTypesProp = void 0;
194
- const De = o, qe = (e, t) => (0, De.propOptionsGenerator)(e, t);
195
- K.oneOfTypesProp = qe;
196
- var T = {};
197
- Object.defineProperty(T, "__esModule", { value: !0 });
198
- T.instanceOfProp = void 0;
199
- const Ie = o, Ge = p, Ke = (e, t) => (0, Ie.propOptionsGenerator)(e, t, (0, Ge.isInstanceOf)(e));
200
- T.instanceOfProp = Ke;
198
+ K.instanceOfProp = void 0;
199
+ const Ie = o, Te = p, Ge = (e, t) => (0, Ie.propOptionsGenerator)(e, t, (0, Te.isInstanceOf)(e));
200
+ K.instanceOfProp = Ge;
201
201
  var V = {};
202
202
  Object.defineProperty(V, "__esModule", { value: !0 });
203
203
  V.isNegative = void 0;
204
- const Te = (e) => {
204
+ const Ke = (e) => {
205
205
  if (typeof e != "number" || e >= 0 || Number.isNaN(e))
206
206
  return "value should be a negative number";
207
207
  };
208
- V.isNegative = Te;
208
+ V.isNegative = Ke;
209
209
  var E = {};
210
210
  Object.defineProperty(E, "__esModule", { value: !0 });
211
211
  E.isPositive = void 0;
@@ -222,47 +222,47 @@ const Ee = (e) => {
222
222
  return "value should be a non-negative number";
223
223
  };
224
224
  F.isNonNegative = Ee;
225
- var k = {};
226
- Object.defineProperty(k, "__esModule", { value: !0 });
227
- k.isNonPositive = void 0;
225
+ var A = {};
226
+ Object.defineProperty(A, "__esModule", { value: !0 });
227
+ A.isNonPositive = void 0;
228
228
  const Fe = (e) => {
229
229
  if (typeof e != "number" || e > 0 || Number.isNaN(e))
230
230
  return "value should be a non-positive number";
231
231
  };
232
- k.isNonPositive = Fe;
232
+ A.isNonPositive = Fe;
233
233
  (function(e) {
234
234
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isNonPositive = e.isNonNegative = e.isPositive = e.isNegative = e.instanceOfProp = e.oneOfTypesProp = e.oneOfObjectKeysProp = e.oneOfProp = e.functionProp = e.objectProp = e.arrayProp = e.anyProp = e.vueComponentProp = e.symbolProp = e.integerProp = e.numberProp = e.booleanProp = e.stringProp = void 0;
235
- var t = m;
235
+ var t = h;
236
236
  Object.defineProperty(e, "stringProp", { enumerable: !0, get: function() {
237
237
  return t.stringProp;
238
238
  } });
239
- var r = N;
239
+ var n = N;
240
240
  Object.defineProperty(e, "booleanProp", { enumerable: !0, get: function() {
241
- return r.booleanProp;
241
+ return n.booleanProp;
242
242
  } });
243
- var n = $;
243
+ var r = $;
244
244
  Object.defineProperty(e, "numberProp", { enumerable: !0, get: function() {
245
- return n.numberProp;
245
+ return r.numberProp;
246
246
  } });
247
247
  var i = w;
248
248
  Object.defineProperty(e, "integerProp", { enumerable: !0, get: function() {
249
249
  return i.integerProp;
250
250
  } });
251
- var u = M;
251
+ var s = M;
252
252
  Object.defineProperty(e, "symbolProp", { enumerable: !0, get: function() {
253
- return u.symbolProp;
253
+ return s.symbolProp;
254
254
  } });
255
- var d = C;
255
+ var a = S;
256
256
  Object.defineProperty(e, "vueComponentProp", { enumerable: !0, get: function() {
257
- return d.vueComponentProp;
257
+ return a.vueComponentProp;
258
258
  } });
259
- var l = S;
259
+ var d = C;
260
260
  Object.defineProperty(e, "anyProp", { enumerable: !0, get: function() {
261
- return l.anyProp;
261
+ return d.anyProp;
262
262
  } });
263
- var s = D;
263
+ var u = D;
264
264
  Object.defineProperty(e, "arrayProp", { enumerable: !0, get: function() {
265
- return s.arrayProp;
265
+ return u.arrayProp;
266
266
  } });
267
267
  var P = q;
268
268
  Object.defineProperty(e, "objectProp", { enumerable: !0, get: function() {
@@ -276,36 +276,36 @@ k.isNonPositive = Fe;
276
276
  Object.defineProperty(e, "oneOfProp", { enumerable: !0, get: function() {
277
277
  return c.oneOfProp;
278
278
  } });
279
- var A = G;
279
+ var U = T;
280
280
  Object.defineProperty(e, "oneOfObjectKeysProp", { enumerable: !0, get: function() {
281
- return A.oneOfObjectKeysProp;
281
+ return U.oneOfObjectKeysProp;
282
282
  } });
283
- var f = K;
283
+ var f = G;
284
284
  Object.defineProperty(e, "oneOfTypesProp", { enumerable: !0, get: function() {
285
285
  return f.oneOfTypesProp;
286
286
  } });
287
- var R = T;
287
+ var B = K;
288
288
  Object.defineProperty(e, "instanceOfProp", { enumerable: !0, get: function() {
289
- return R.instanceOfProp;
289
+ return B.instanceOfProp;
290
290
  } });
291
- var W = V;
291
+ var H = V;
292
292
  Object.defineProperty(e, "isNegative", { enumerable: !0, get: function() {
293
- return W.isNegative;
293
+ return H.isNegative;
294
294
  } });
295
- var z = E;
295
+ var R = E;
296
296
  Object.defineProperty(e, "isPositive", { enumerable: !0, get: function() {
297
- return z.isPositive;
297
+ return R.isPositive;
298
298
  } });
299
- var H = F;
299
+ var W = F;
300
300
  Object.defineProperty(e, "isNonNegative", { enumerable: !0, get: function() {
301
- return H.isNonNegative;
301
+ return W.isNonNegative;
302
302
  } });
303
- var J = k;
303
+ var z = A;
304
304
  Object.defineProperty(e, "isNonPositive", { enumerable: !0, get: function() {
305
- return J.isNonPositive;
305
+ return z.isNonPositive;
306
306
  } });
307
- })(a);
308
- const ze = {
307
+ })(l);
308
+ const Re = {
309
309
  name: "BubbleMenu",
310
310
  props: {
311
311
  pluginKey: {
@@ -333,7 +333,7 @@ const ze = {
333
333
  immediate: !0,
334
334
  handler(e) {
335
335
  e && this.$nextTick(() => {
336
- e.registerPlugin(Q({
336
+ e.registerPlugin(J({
337
337
  updateDelay: this.updateDelay,
338
338
  editor: e,
339
339
  element: this.$el,
@@ -352,12 +352,12 @@ const ze = {
352
352
  this.editor.unregisterPlugin(this.pluginKey);
353
353
  }
354
354
  };
355
- class He extends U {
355
+ class We extends Q {
356
356
  constructor() {
357
357
  super(...arguments), this.contentComponent = null;
358
358
  }
359
359
  }
360
- const Je = {
360
+ const ze = {
361
361
  name: "EditorContent",
362
362
  props: {
363
363
  editor: {
@@ -392,7 +392,7 @@ const Je = {
392
392
  element: t
393
393
  });
394
394
  }
395
- }, Qe = {
395
+ }, Je = {
396
396
  name: "FloatingMenu",
397
397
  props: {
398
398
  pluginKey: {
@@ -434,7 +434,7 @@ const Je = {
434
434
  beforeDestroy() {
435
435
  this.editor.unregisterPlugin(this.pluginKey);
436
436
  }
437
- }, Ue = {
437
+ }, Qe = {
438
438
  props: {
439
439
  as: {
440
440
  type: String,
@@ -474,94 +474,136 @@ const Je = {
474
474
  }, this.$slots.default);
475
475
  }
476
476
  };
477
- class ke {
478
- constructor(t, r) {
479
- const n = typeof t == "function" ? t : v.extend(t);
480
- this.ref = new n(r).$mount();
477
+ class Ae {
478
+ constructor(t, n) {
479
+ const r = typeof t == "function" ? t : v.extend(t);
480
+ this.ref = new r(n).$mount();
481
481
  }
482
482
  get element() {
483
483
  return this.ref.$el;
484
484
  }
485
485
  updateProps(t = {}) {
486
- var r, n, i;
486
+ var n, r, i;
487
487
  if (!this.ref.$props)
488
488
  return;
489
- const u = (i = (n = (r = this.ref.$props.editor) === null || r === void 0 ? void 0 : r.contentComponent) === null || n === void 0 ? void 0 : n.$options._base) !== null && i !== void 0 ? i : v, d = u.config.silent;
490
- u.config.silent = !0, Object.entries(t).forEach(([l, s]) => {
491
- this.ref.$props[l] = s;
492
- }), u.config.silent = d;
489
+ const s = (i = (r = (n = this.ref.$props.editor) === null || n === void 0 ? void 0 : n.contentComponent) === null || r === void 0 ? void 0 : r.$options._base) !== null && i !== void 0 ? i : v, a = s.config.silent;
490
+ s.config.silent = !0, Object.entries(t).forEach(([d, u]) => {
491
+ this.ref.$props[d] = u;
492
+ }), s.config.silent = a;
493
493
  }
494
494
  destroy() {
495
495
  this.ref.$destroy();
496
496
  }
497
497
  }
498
498
  const Ye = {
499
- editor: a.objectProp().required,
500
- node: a.objectProp().required,
501
- decorations: a.objectProp().required,
502
- selected: a.booleanProp().required,
503
- extension: a.objectProp().required,
504
- getPos: a.functionProp().required,
505
- updateAttributes: a.functionProp().required,
506
- deleteNode: a.functionProp().required
499
+ editor: l.objectProp().required,
500
+ node: l.objectProp().required,
501
+ decorations: l.objectProp().required,
502
+ selected: l.booleanProp().required,
503
+ extension: l.objectProp().required,
504
+ getPos: l.functionProp().required,
505
+ updateAttributes: l.functionProp().required,
506
+ deleteNode: l.functionProp().required
507
507
  };
508
- class Ae extends X {
508
+ class Ue extends X {
509
509
  mount() {
510
- var t, r;
511
- const n = {
510
+ var t, n;
511
+ const r = {
512
512
  editor: this.editor,
513
513
  node: this.node,
514
514
  decorations: this.decorations,
515
+ innerDecorations: this.innerDecorations,
516
+ view: this.view,
515
517
  selected: !1,
516
518
  extension: this.extension,
519
+ HTMLAttributes: this.HTMLAttributes,
517
520
  getPos: () => this.getPos(),
518
- updateAttributes: (l = {}) => this.updateAttributes(l),
521
+ updateAttributes: (d = {}) => this.updateAttributes(d),
519
522
  deleteNode: () => this.deleteNode()
520
523
  }, i = this.onDragStart.bind(this);
521
524
  this.decorationClasses = v.observable({
522
525
  value: this.getDecorationClasses()
523
526
  });
524
- const d = ((r = (t = this.editor.contentComponent) === null || t === void 0 ? void 0 : t.$options._base) !== null && r !== void 0 ? r : v).extend(this.component).extend({
525
- props: Object.keys(n),
527
+ const a = ((n = (t = this.editor.contentComponent) === null || t === void 0 ? void 0 : t.$options._base) !== null && n !== void 0 ? n : v).extend(this.component).extend({
528
+ props: Object.keys(r),
526
529
  provide: () => ({
527
530
  onDragStart: i,
528
531
  decorationClasses: this.decorationClasses
529
532
  })
530
533
  });
531
- this.renderer = new ke(d, {
534
+ this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.renderer = new Ae(a, {
532
535
  parent: this.editor.contentComponent,
533
- propsData: n
536
+ propsData: r
534
537
  });
535
538
  }
539
+ /**
540
+ * Return the DOM element.
541
+ * This is the element that will be used to display the node view.
542
+ */
536
543
  get dom() {
537
544
  if (!this.renderer.element.hasAttribute("data-node-view-wrapper"))
538
545
  throw Error("Please use the NodeViewWrapper component for your node view.");
539
546
  return this.renderer.element;
540
547
  }
548
+ /**
549
+ * Return the content DOM element.
550
+ * This is the element that will be used to display the rich-text content of the node.
551
+ */
541
552
  get contentDOM() {
542
553
  return this.node.isLeaf ? null : this.dom.querySelector("[data-node-view-content]") || this.dom;
543
554
  }
544
- update(t, r) {
545
- const n = (i) => {
546
- this.decorationClasses.value = this.getDecorationClasses(), this.renderer.updateProps(i);
555
+ /**
556
+ * On editor selection update, check if the node is selected.
557
+ * If it is, call `selectNode`, otherwise call `deselectNode`.
558
+ */
559
+ handleSelectionUpdate() {
560
+ const { from: t, to: n } = this.editor.state.selection, r = this.getPos();
561
+ if (typeof r == "number")
562
+ if (t <= r && n >= r + this.node.nodeSize) {
563
+ if (this.renderer.ref.$props.selected)
564
+ return;
565
+ this.selectNode();
566
+ } else {
567
+ if (!this.renderer.ref.$props.selected)
568
+ return;
569
+ this.deselectNode();
570
+ }
571
+ }
572
+ /**
573
+ * On update, update the React component.
574
+ * To prevent unnecessary updates, the `update` option can be used.
575
+ */
576
+ update(t, n, r) {
577
+ const i = (s) => {
578
+ this.decorationClasses.value = this.getDecorationClasses(), this.renderer.updateProps(s);
547
579
  };
548
580
  if (typeof this.options.update == "function") {
549
- const i = this.node, u = this.decorations;
550
- return this.node = t, this.decorations = r, this.options.update({
551
- oldNode: i,
552
- oldDecorations: u,
581
+ const s = this.node, a = this.decorations, d = this.innerDecorations;
582
+ return this.node = t, this.decorations = n, this.innerDecorations = r, this.options.update({
583
+ oldNode: s,
584
+ oldDecorations: a,
553
585
  newNode: t,
554
- newDecorations: r,
555
- updateProps: () => n({ node: t, decorations: r })
586
+ newDecorations: n,
587
+ oldInnerDecorations: d,
588
+ innerDecorations: r,
589
+ updateProps: () => i({ node: t, decorations: n, innerDecorations: r })
556
590
  });
557
591
  }
558
- return t.type !== this.node.type ? !1 : (t === this.node && this.decorations === r || (this.node = t, this.decorations = r, n({ node: t, decorations: r })), !0);
592
+ return t.type !== this.node.type ? !1 : (t === this.node && this.decorations === n && this.innerDecorations === r || (this.node = t, this.decorations = n, this.innerDecorations = r, i({ node: t, decorations: n, innerDecorations: r })), !0);
559
593
  }
594
+ /**
595
+ * Select the node.
596
+ * Add the `selected` prop and the `ProseMirror-selectednode` class.
597
+ */
560
598
  selectNode() {
561
599
  this.renderer.updateProps({
562
600
  selected: !0
563
601
  }), this.renderer.element.classList.add("ProseMirror-selectednode");
564
602
  }
603
+ /**
604
+ * Deselect the node.
605
+ * Remove the `selected` prop and the `ProseMirror-selectednode` class.
606
+ */
565
607
  deselectNode() {
566
608
  this.renderer.updateProps({
567
609
  selected: !1
@@ -571,21 +613,21 @@ class Ae extends X {
571
613
  return this.decorations.map((t) => t.type.attrs.class).flat().join(" ");
572
614
  }
573
615
  destroy() {
574
- this.renderer.destroy();
616
+ this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate);
575
617
  }
576
618
  }
577
619
  function Ze(e, t) {
578
- return (r) => r.editor.contentComponent ? new Ae(e, r, t) : {};
620
+ return (n) => n.editor.contentComponent ? new Ue(e, n, t) : {};
579
621
  }
580
622
  export {
581
- ze as BubbleMenu,
582
- He as Editor,
583
- Je as EditorContent,
584
- Qe as FloatingMenu,
585
- Ue as NodeViewContent,
623
+ Re as BubbleMenu,
624
+ We as Editor,
625
+ ze as EditorContent,
626
+ Je as FloatingMenu,
627
+ Qe as NodeViewContent,
586
628
  Xe as NodeViewWrapper,
587
629
  Ze as VueNodeViewRenderer,
588
- ke as VueRenderer,
630
+ Ae as VueRenderer,
589
631
  Ye as nodeViewProps
590
632
  };
591
633
  //# sourceMappingURL=vue-2.js.map