@dialpad/dialtone 9.38.2 → 9.40.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.
- package/README.md +19 -1
- package/dist/css/dialtone.css +212 -2
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-expressive-dark.css +1 -1
- package/dist/tokens/css/variables-expressive-light.css +1 -1
- package/dist/tokens/css/variables-expressive-sm-dark.css +1 -1
- package/dist/tokens/css/variables-expressive-sm-light.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/css/variables-tmo-dark.css +1 -1
- package/dist/tokens/css/variables-tmo-light.css +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-expressive-dark.less +1 -1
- package/dist/tokens/less/variables-expressive-light.less +1 -1
- package/dist/tokens/less/variables-expressive-sm-dark.less +1 -1
- package/dist/tokens/less/variables-expressive-sm-light.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/tokens/less/variables-tmo-dark.less +1 -1
- package/dist/tokens/less/variables-tmo-light.less +1 -1
- package/dist/vue2/chunks/index-ODod4Oj_.js +175 -0
- package/dist/vue2/chunks/index-ODod4Oj_.js.map +1 -0
- package/dist/vue2/chunks/index-anN_sx1F.js +169 -0
- package/dist/vue2/chunks/index-anN_sx1F.js.map +1 -0
- package/dist/vue2/chunks/link_constants-AfTWrr-n.js +35 -0
- package/dist/vue2/chunks/link_constants-AfTWrr-n.js.map +1 -0
- package/dist/vue2/chunks/link_constants-x8NwdqmA.js +34 -0
- package/dist/vue2/chunks/link_constants-x8NwdqmA.js.map +1 -0
- package/dist/vue2/common/emoji.cjs +40 -163
- package/dist/vue2/common/emoji.cjs.map +1 -1
- package/dist/vue2/common/emoji.js +3 -146
- package/dist/vue2/common/emoji.js.map +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +10 -3
- package/dist/vue2/dialtone-vue.cjs.map +1 -1
- package/dist/vue2/dialtone-vue.js +10 -3
- package/dist/vue2/dialtone-vue.js.map +1 -1
- package/dist/vue2/lib/attachment-carousel.cjs +1 -1
- package/dist/vue2/lib/attachment-carousel.js +1 -1
- package/dist/vue2/lib/avatar.cjs.map +1 -1
- package/dist/vue2/lib/avatar.js.map +1 -1
- package/dist/vue2/lib/banner.cjs +1 -1
- package/dist/vue2/lib/banner.js +1 -1
- package/dist/vue2/lib/breadcrumbs.cjs +6 -3
- package/dist/vue2/lib/breadcrumbs.cjs.map +1 -1
- package/dist/vue2/lib/breadcrumbs.js +6 -3
- package/dist/vue2/lib/breadcrumbs.js.map +1 -1
- package/dist/vue2/lib/button.cjs +1 -1
- package/dist/vue2/lib/button.js +1 -1
- package/dist/vue2/lib/callbar-button-with-popover.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-popover.js +1 -1
- package/dist/vue2/lib/callbar-button.cjs +1 -1
- package/dist/vue2/lib/callbar-button.js +1 -1
- package/dist/vue2/lib/chip.cjs +1 -1
- package/dist/vue2/lib/chip.js +1 -1
- package/dist/vue2/lib/collapsible.cjs +1 -1
- package/dist/vue2/lib/collapsible.js +1 -1
- package/dist/vue2/lib/combobox-multi-select.cjs +1 -1
- package/dist/vue2/lib/combobox-multi-select.js +1 -1
- package/dist/vue2/lib/combobox-with-popover.cjs +1 -1
- package/dist/vue2/lib/combobox-with-popover.js +1 -1
- package/dist/vue2/lib/contact-centers-row.cjs +2 -3
- package/dist/vue2/lib/contact-centers-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-centers-row.js +2 -3
- package/dist/vue2/lib/contact-centers-row.js.map +1 -1
- package/dist/vue2/lib/contact-row.cjs +2 -3
- package/dist/vue2/lib/contact-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-row.js +2 -3
- package/dist/vue2/lib/contact-row.js.map +1 -1
- package/dist/vue2/lib/datepicker.cjs +1 -1
- package/dist/vue2/lib/datepicker.js +1 -1
- package/dist/vue2/lib/dropdown.cjs +1 -1
- package/dist/vue2/lib/dropdown.js +1 -1
- package/dist/vue2/lib/editor.cjs +2 -3
- package/dist/vue2/lib/editor.cjs.map +1 -1
- package/dist/vue2/lib/editor.js +2 -3
- package/dist/vue2/lib/editor.js.map +1 -1
- package/dist/vue2/lib/emoji-picker.cjs +1 -1
- package/dist/vue2/lib/emoji-picker.js +1 -1
- package/dist/vue2/lib/emoji-row.cjs +2 -3
- package/dist/vue2/lib/emoji-row.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row.js +2 -3
- package/dist/vue2/lib/emoji-row.js.map +1 -1
- package/dist/vue2/lib/emoji-text-wrapper.cjs +1 -2
- package/dist/vue2/lib/emoji-text-wrapper.cjs.map +1 -1
- package/dist/vue2/lib/emoji-text-wrapper.js +1 -2
- package/dist/vue2/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/vue2/lib/emoji.cjs +1 -2
- package/dist/vue2/lib/emoji.cjs.map +1 -1
- package/dist/vue2/lib/emoji.js +1 -2
- package/dist/vue2/lib/emoji.js.map +1 -1
- package/dist/vue2/lib/empty-state.cjs +142 -0
- package/dist/vue2/lib/empty-state.cjs.map +1 -0
- package/dist/vue2/lib/empty-state.js +142 -0
- package/dist/vue2/lib/empty-state.js.map +1 -0
- package/dist/vue2/lib/feed-pill.cjs +1 -1
- package/dist/vue2/lib/feed-pill.js +1 -1
- package/dist/vue2/lib/general-row.cjs +4 -5
- package/dist/vue2/lib/general-row.cjs.map +1 -1
- package/dist/vue2/lib/general-row.js +4 -5
- package/dist/vue2/lib/general-row.js.map +1 -1
- package/dist/vue2/lib/group-row.cjs +2 -3
- package/dist/vue2/lib/group-row.cjs.map +1 -1
- package/dist/vue2/lib/group-row.js +2 -3
- package/dist/vue2/lib/group-row.js.map +1 -1
- package/dist/vue2/lib/grouped-chip.cjs +1 -1
- package/dist/vue2/lib/grouped-chip.js +1 -1
- package/dist/vue2/lib/hovercard.cjs +1 -1
- package/dist/vue2/lib/hovercard.js +1 -1
- package/dist/vue2/lib/illustration.cjs +43 -0
- package/dist/vue2/lib/illustration.cjs.map +1 -0
- package/dist/vue2/lib/illustration.js +43 -0
- package/dist/vue2/lib/illustration.js.map +1 -0
- package/dist/vue2/lib/image-viewer.cjs +1 -1
- package/dist/vue2/lib/image-viewer.js +1 -1
- package/dist/vue2/lib/ivr-node.cjs +1 -1
- package/dist/vue2/lib/ivr-node.js +1 -1
- package/dist/vue2/lib/link.cjs +20 -6
- package/dist/vue2/lib/link.cjs.map +1 -1
- package/dist/vue2/lib/link.js +20 -6
- package/dist/vue2/lib/link.js.map +1 -1
- package/dist/vue2/lib/message-input.cjs +10 -4
- package/dist/vue2/lib/message-input.cjs.map +1 -1
- package/dist/vue2/lib/message-input.js +10 -4
- package/dist/vue2/lib/message-input.js.map +1 -1
- package/dist/vue2/lib/modal.cjs +1 -1
- package/dist/vue2/lib/modal.js +1 -1
- package/dist/vue2/lib/notice.cjs +1 -1
- package/dist/vue2/lib/notice.js +1 -1
- package/dist/vue2/lib/pagination.cjs +1 -1
- package/dist/vue2/lib/pagination.js +1 -1
- package/dist/vue2/lib/popover.cjs +1 -1
- package/dist/vue2/lib/popover.js +1 -1
- package/dist/vue2/lib/rich-text-editor.cjs +26 -186
- package/dist/vue2/lib/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor.js +26 -186
- package/dist/vue2/lib/rich-text-editor.js.map +1 -1
- package/dist/vue2/lib/settings-menu-button.cjs +1 -1
- package/dist/vue2/lib/settings-menu-button.js +1 -1
- package/dist/vue2/lib/tabs.cjs +1 -1
- package/dist/vue2/lib/tabs.js +1 -1
- package/dist/vue2/lib/toast.cjs +1 -1
- package/dist/vue2/lib/toast.js +1 -1
- package/dist/vue2/lib/tooltip.cjs +8 -7
- package/dist/vue2/lib/tooltip.cjs.map +1 -1
- package/dist/vue2/lib/tooltip.js +8 -7
- package/dist/vue2/lib/tooltip.js.map +1 -1
- package/dist/vue2/types/common/emoji/index.d.ts +3 -10
- package/dist/vue2/types/common/emoji/index.d.ts.map +1 -1
- package/dist/vue2/types/common/storybook_utils.d.ts +6 -0
- package/dist/vue2/types/common/storybook_utils.d.ts.map +1 -1
- package/dist/vue2/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +2 -1
- package/dist/vue2/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/empty_state/empty_state.vue.d.ts +3 -0
- package/dist/vue2/types/components/empty_state/empty_state.vue.d.ts.map +1 -0
- package/dist/vue2/types/components/empty_state/empty_state_constants.d.ts +10 -0
- package/dist/vue2/types/components/empty_state/empty_state_constants.d.ts.map +1 -0
- package/dist/vue2/types/components/empty_state/index.d.ts +3 -0
- package/dist/vue2/types/components/empty_state/index.d.ts.map +1 -0
- package/dist/vue2/types/components/illustration/illustration.vue.d.ts +23 -0
- package/dist/vue2/types/components/illustration/illustration.vue.d.ts.map +1 -0
- package/dist/vue2/types/components/illustration/illustration_constants.d.ts +6 -0
- package/dist/vue2/types/components/illustration/illustration_constants.d.ts.map +1 -0
- package/dist/vue2/types/components/illustration/index.d.ts +3 -0
- package/dist/vue2/types/components/illustration/index.d.ts.map +1 -0
- package/dist/vue2/types/components/link/link.vue.d.ts +24 -4
- package/dist/vue2/types/components/link/link.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/link/link_constants.d.ts +2 -2
- package/dist/vue2/types/components/link/link_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/channels/channel.d.ts +0 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/channels/channel.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts +0 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/mention.d.ts +0 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/mention.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/mention_suggestion.d.ts +2 -2
- package/dist/vue2/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -10
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +4 -2
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +2 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -0
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/general_row/general_row_constants.d.ts +1 -1
- package/dist/vue3/chunks/index-GVD15GIB.js +175 -0
- package/dist/vue3/chunks/index-GVD15GIB.js.map +1 -0
- package/dist/vue3/chunks/index-lu2o2f4r.js +169 -0
- package/dist/vue3/chunks/index-lu2o2f4r.js.map +1 -0
- package/dist/vue3/chunks/link_constants-AfTWrr-n.js +35 -0
- package/dist/vue3/chunks/link_constants-AfTWrr-n.js.map +1 -0
- package/dist/vue3/chunks/link_constants-x8NwdqmA.js +34 -0
- package/dist/vue3/chunks/link_constants-x8NwdqmA.js.map +1 -0
- package/dist/vue3/common/emoji.cjs +40 -163
- package/dist/vue3/common/emoji.cjs.map +1 -1
- package/dist/vue3/common/emoji.js +3 -146
- package/dist/vue3/common/emoji.js.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +10 -3
- package/dist/vue3/dialtone-vue.cjs.map +1 -1
- package/dist/vue3/dialtone-vue.js +10 -3
- package/dist/vue3/dialtone-vue.js.map +1 -1
- package/dist/vue3/lib/attachment-carousel.cjs +1 -1
- package/dist/vue3/lib/attachment-carousel.js +1 -1
- package/dist/vue3/lib/avatar.cjs.map +1 -1
- package/dist/vue3/lib/avatar.js.map +1 -1
- package/dist/vue3/lib/banner.cjs +1 -1
- package/dist/vue3/lib/banner.js +1 -1
- package/dist/vue3/lib/breadcrumbs.cjs +7 -3
- package/dist/vue3/lib/breadcrumbs.cjs.map +1 -1
- package/dist/vue3/lib/breadcrumbs.js +7 -3
- package/dist/vue3/lib/breadcrumbs.js.map +1 -1
- package/dist/vue3/lib/button.cjs +1 -1
- package/dist/vue3/lib/button.js +1 -1
- package/dist/vue3/lib/callbar-button-with-popover.cjs +1 -1
- package/dist/vue3/lib/callbar-button-with-popover.js +1 -1
- package/dist/vue3/lib/callbar-button.cjs +1 -1
- package/dist/vue3/lib/callbar-button.js +1 -1
- package/dist/vue3/lib/chip.cjs +1 -1
- package/dist/vue3/lib/chip.js +1 -1
- package/dist/vue3/lib/collapsible.cjs +1 -1
- package/dist/vue3/lib/collapsible.js +1 -1
- package/dist/vue3/lib/combobox-multi-select.cjs +1 -1
- package/dist/vue3/lib/combobox-multi-select.js +1 -1
- package/dist/vue3/lib/combobox-with-popover.cjs +1 -1
- package/dist/vue3/lib/combobox-with-popover.js +1 -1
- package/dist/vue3/lib/contact-centers-row.cjs +2 -3
- package/dist/vue3/lib/contact-centers-row.cjs.map +1 -1
- package/dist/vue3/lib/contact-centers-row.js +2 -3
- package/dist/vue3/lib/contact-centers-row.js.map +1 -1
- package/dist/vue3/lib/contact-row.cjs +2 -3
- package/dist/vue3/lib/contact-row.cjs.map +1 -1
- package/dist/vue3/lib/contact-row.js +2 -3
- package/dist/vue3/lib/contact-row.js.map +1 -1
- package/dist/vue3/lib/datepicker.cjs +1 -1
- package/dist/vue3/lib/datepicker.js +1 -1
- package/dist/vue3/lib/dropdown.cjs +1 -1
- package/dist/vue3/lib/dropdown.js +1 -1
- package/dist/vue3/lib/editor.cjs +2 -3
- package/dist/vue3/lib/editor.cjs.map +1 -1
- package/dist/vue3/lib/editor.js +2 -3
- package/dist/vue3/lib/editor.js.map +1 -1
- package/dist/vue3/lib/emoji-picker.cjs +1 -1
- package/dist/vue3/lib/emoji-picker.js +1 -1
- package/dist/vue3/lib/emoji-row.cjs +2 -3
- package/dist/vue3/lib/emoji-row.cjs.map +1 -1
- package/dist/vue3/lib/emoji-row.js +2 -3
- package/dist/vue3/lib/emoji-row.js.map +1 -1
- package/dist/vue3/lib/emoji-text-wrapper.cjs +1 -2
- package/dist/vue3/lib/emoji-text-wrapper.cjs.map +1 -1
- package/dist/vue3/lib/emoji-text-wrapper.js +1 -2
- package/dist/vue3/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/vue3/lib/emoji.cjs +1 -2
- package/dist/vue3/lib/emoji.cjs.map +1 -1
- package/dist/vue3/lib/emoji.js +1 -2
- package/dist/vue3/lib/emoji.js.map +1 -1
- package/dist/vue3/lib/empty-state.cjs +136 -0
- package/dist/vue3/lib/empty-state.cjs.map +1 -0
- package/dist/vue3/lib/empty-state.js +136 -0
- package/dist/vue3/lib/empty-state.js.map +1 -0
- package/dist/vue3/lib/feed-pill.cjs +1 -1
- package/dist/vue3/lib/feed-pill.js +1 -1
- package/dist/vue3/lib/general-row.cjs +4 -5
- package/dist/vue3/lib/general-row.cjs.map +1 -1
- package/dist/vue3/lib/general-row.js +4 -5
- package/dist/vue3/lib/general-row.js.map +1 -1
- package/dist/vue3/lib/group-row.cjs +2 -3
- package/dist/vue3/lib/group-row.cjs.map +1 -1
- package/dist/vue3/lib/group-row.js +2 -3
- package/dist/vue3/lib/group-row.js.map +1 -1
- package/dist/vue3/lib/grouped-chip.cjs +1 -1
- package/dist/vue3/lib/grouped-chip.js +1 -1
- package/dist/vue3/lib/hovercard.cjs +1 -1
- package/dist/vue3/lib/hovercard.js +1 -1
- package/dist/vue3/lib/illustration.cjs +32 -0
- package/dist/vue3/lib/illustration.cjs.map +1 -0
- package/dist/vue3/lib/illustration.js +32 -0
- package/dist/vue3/lib/illustration.js.map +1 -0
- package/dist/vue3/lib/image-viewer.cjs +1 -1
- package/dist/vue3/lib/image-viewer.js +1 -1
- package/dist/vue3/lib/ivr-node.cjs +1 -1
- package/dist/vue3/lib/ivr-node.js +1 -1
- package/dist/vue3/lib/link.cjs +20 -6
- package/dist/vue3/lib/link.cjs.map +1 -1
- package/dist/vue3/lib/link.js +20 -6
- package/dist/vue3/lib/link.js.map +1 -1
- package/dist/vue3/lib/message-input.cjs +11 -4
- package/dist/vue3/lib/message-input.cjs.map +1 -1
- package/dist/vue3/lib/message-input.js +11 -4
- package/dist/vue3/lib/message-input.js.map +1 -1
- package/dist/vue3/lib/modal.cjs +1 -1
- package/dist/vue3/lib/modal.js +1 -1
- package/dist/vue3/lib/notice.cjs +1 -1
- package/dist/vue3/lib/notice.js +1 -1
- package/dist/vue3/lib/pagination.cjs +1 -1
- package/dist/vue3/lib/pagination.js +1 -1
- package/dist/vue3/lib/popover.cjs +1 -1
- package/dist/vue3/lib/popover.js +1 -1
- package/dist/vue3/lib/rich-text-editor.cjs +26 -183
- package/dist/vue3/lib/rich-text-editor.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor.js +26 -183
- package/dist/vue3/lib/rich-text-editor.js.map +1 -1
- package/dist/vue3/lib/settings-menu-button.cjs +1 -1
- package/dist/vue3/lib/settings-menu-button.js +1 -1
- package/dist/vue3/lib/tabs.cjs +1 -1
- package/dist/vue3/lib/tabs.js +1 -1
- package/dist/vue3/lib/toast.cjs +1 -1
- package/dist/vue3/lib/toast.js +1 -1
- package/dist/vue3/lib/tooltip.cjs +12 -15
- package/dist/vue3/lib/tooltip.cjs.map +1 -1
- package/dist/vue3/lib/tooltip.js +13 -16
- package/dist/vue3/lib/tooltip.js.map +1 -1
- package/dist/vue3/types/common/emoji/index.d.ts +1 -0
- package/dist/vue3/types/common/emoji/index.d.ts.map +1 -1
- package/dist/vue3/types/common/storybook_utils.d.ts +6 -0
- package/dist/vue3/types/common/storybook_utils.d.ts.map +1 -1
- package/dist/vue3/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +2 -1
- package/dist/vue3/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts +12 -0
- package/dist/vue3/types/components/empty_state/empty_state.vue.d.ts.map +1 -0
- package/dist/vue3/types/components/empty_state/empty_state_constants.d.ts +10 -0
- package/dist/vue3/types/components/empty_state/empty_state_constants.d.ts.map +1 -0
- package/dist/vue3/types/components/empty_state/index.d.ts +3 -0
- package/dist/vue3/types/components/empty_state/index.d.ts.map +1 -0
- package/dist/vue3/types/components/illustration/illustration.vue.d.ts +8 -0
- package/dist/vue3/types/components/illustration/illustration.vue.d.ts.map +1 -0
- package/dist/vue3/types/components/illustration/illustration_constants.d.ts +6 -0
- package/dist/vue3/types/components/illustration/illustration_constants.d.ts.map +1 -0
- package/dist/vue3/types/components/illustration/index.d.ts +3 -0
- package/dist/vue3/types/components/illustration/index.d.ts.map +1 -0
- package/dist/vue3/types/components/link/link.vue.d.ts +24 -4
- package/dist/vue3/types/components/link/link.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/link/link_constants.d.ts +2 -2
- package/dist/vue3/types/components/link/link_constants.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/channels/channel.d.ts +0 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/channels/channel.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/emoji/emoji.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts +0 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/mention.d.ts +0 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/mention.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts +2 -2
- package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -10
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +3 -4
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue3/types/index.d.ts +2 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -0
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/general_row/general_row_constants.d.ts +1 -1
- package/package.json +3 -3
- package/dist/vue2/chunks/link_constants-Huj7D_hm.js +0 -22
- package/dist/vue2/chunks/link_constants-Huj7D_hm.js.map +0 -1
- package/dist/vue2/chunks/link_constants-nWVlXQBs.js +0 -23
- package/dist/vue2/chunks/link_constants-nWVlXQBs.js.map +0 -1
- package/dist/vue3/chunks/link_constants-Huj7D_hm.js +0 -22
- package/dist/vue3/chunks/link_constants-Huj7D_hm.js.map +0 -1
- package/dist/vue3/chunks/link_constants-nWVlXQBs.js +0 -23
- package/dist/vue3/chunks/link_constants-nWVlXQBs.js.map +0 -1
|
@@ -21,7 +21,7 @@ const core = require("@tiptap/core");
|
|
|
21
21
|
const vue = require("vue");
|
|
22
22
|
const _pluginVue_exportHelper = require("../chunks/_plugin-vue_export-helper-fhnQq0tA.js");
|
|
23
23
|
const lib_emoji = require("./emoji.cjs");
|
|
24
|
-
const common_emoji = require("../
|
|
24
|
+
const common_emoji = require("../chunks/index-lu2o2f4r.js");
|
|
25
25
|
const state = require("@tiptap/pm/state");
|
|
26
26
|
const Suggestion = require("@tiptap/suggestion");
|
|
27
27
|
const dialtoneEmojis = require("@dialpad/dialtone-emojis");
|
|
@@ -34,7 +34,6 @@ const lib_link = require("./link.cjs");
|
|
|
34
34
|
const lib_avatar = require("./avatar.cjs");
|
|
35
35
|
const DtIconHash = require("@dialpad/dialtone-icons/vue3/hash");
|
|
36
36
|
const DtIconLock = require("@dialpad/dialtone-icons/vue3/lock");
|
|
37
|
-
const emojiRegex = require("emoji-regex");
|
|
38
37
|
require("./skeleton.cjs");
|
|
39
38
|
require("../chunks/icon_constants-QYpmdE0R.js");
|
|
40
39
|
require("@dialpad/dialtone-icons/icons.json");
|
|
@@ -44,7 +43,7 @@ require("./icon.cjs");
|
|
|
44
43
|
require("@dialpad/dialtone-icons/vue3");
|
|
45
44
|
require("../chunks/stack_constants-SMzMWnAQ.js");
|
|
46
45
|
require("../common/constants.cjs");
|
|
47
|
-
require("../chunks/link_constants-
|
|
46
|
+
require("../chunks/link_constants-x8NwdqmA.js");
|
|
48
47
|
require("./presence.cjs");
|
|
49
48
|
const _sfc_main$9 = {
|
|
50
49
|
name: "EmojiComponent",
|
|
@@ -234,7 +233,7 @@ const suggestionOptions = {
|
|
|
234
233
|
return false;
|
|
235
234
|
});
|
|
236
235
|
return filteredEmoji.map((item) => {
|
|
237
|
-
return {
|
|
236
|
+
return { code: item.shortname };
|
|
238
237
|
});
|
|
239
238
|
},
|
|
240
239
|
command: ({ editor, range, props }) => {
|
|
@@ -280,7 +279,6 @@ const suggestionOptions = {
|
|
|
280
279
|
interactive: true,
|
|
281
280
|
trigger: "manual",
|
|
282
281
|
placement: "top-start",
|
|
283
|
-
contentElement: null,
|
|
284
282
|
zIndex: 650
|
|
285
283
|
});
|
|
286
284
|
},
|
|
@@ -310,8 +308,7 @@ const suggestionOptions = {
|
|
|
310
308
|
};
|
|
311
309
|
const EmojiPluginKey = new state.PluginKey("emoji");
|
|
312
310
|
const inputShortCodeRegex = new RegExp("(^| |(?<=:))(:\\w+:)$");
|
|
313
|
-
const inputUnicodeRegex =
|
|
314
|
-
const pasteUnicodeRegex = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g;
|
|
311
|
+
const inputUnicodeRegex = new RegExp(common_emoji.emojiPattern + "$");
|
|
315
312
|
const inputRuleMatch = (match) => {
|
|
316
313
|
if (match && common_emoji.codeToEmojiData(match[0])) {
|
|
317
314
|
const text = match[2] || match[0];
|
|
@@ -351,9 +348,6 @@ const Emoji = core.Node.create({
|
|
|
351
348
|
return {
|
|
352
349
|
code: {
|
|
353
350
|
default: null
|
|
354
|
-
},
|
|
355
|
-
id: {
|
|
356
|
-
default: null
|
|
357
351
|
}
|
|
358
352
|
};
|
|
359
353
|
},
|
|
@@ -396,11 +390,9 @@ const Emoji = core.Node.create({
|
|
|
396
390
|
},
|
|
397
391
|
type: this.type,
|
|
398
392
|
getAttributes(attrs) {
|
|
399
|
-
const
|
|
400
|
-
const emoji = String.fromCodePoint(parseInt(unicode, 16));
|
|
393
|
+
const emoji = common_emoji.codeToEmojiData(attrs[0]).shortname;
|
|
401
394
|
return {
|
|
402
|
-
code: emoji
|
|
403
|
-
label: "emoji"
|
|
395
|
+
code: emoji
|
|
404
396
|
};
|
|
405
397
|
}
|
|
406
398
|
})
|
|
@@ -418,7 +410,7 @@ const Emoji = core.Node.create({
|
|
|
418
410
|
}
|
|
419
411
|
}),
|
|
420
412
|
core.nodePasteRule({
|
|
421
|
-
find:
|
|
413
|
+
find: common_emoji.emojiRegex,
|
|
422
414
|
type: this.type,
|
|
423
415
|
getAttributes(attrs) {
|
|
424
416
|
return {
|
|
@@ -628,30 +620,6 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
628
620
|
});
|
|
629
621
|
}
|
|
630
622
|
const MentionComponent = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
631
|
-
const mentionRegex = /@([\w.-]+)[^\w.-]?/g;
|
|
632
|
-
const mentionPasteMatch = (text, suggestions) => {
|
|
633
|
-
const matches = [...text.matchAll(mentionRegex)];
|
|
634
|
-
return matches.filter((match) => suggestions.some(({ id }) => id === match[1].trim())).map((match) => {
|
|
635
|
-
let mention = match[1];
|
|
636
|
-
if (!mention.endsWith(" "))
|
|
637
|
-
mention += " ";
|
|
638
|
-
return {
|
|
639
|
-
index: match.index,
|
|
640
|
-
text: mention,
|
|
641
|
-
match
|
|
642
|
-
};
|
|
643
|
-
});
|
|
644
|
-
};
|
|
645
|
-
const mentionInputMatch = (text, suggestions) => {
|
|
646
|
-
const match = text.match(/@([\w.-]+)[^\w.-]$/);
|
|
647
|
-
if (!match || !suggestions.some(({ id }) => id === match[1]))
|
|
648
|
-
return;
|
|
649
|
-
return {
|
|
650
|
-
index: match.index,
|
|
651
|
-
text: match[0],
|
|
652
|
-
match
|
|
653
|
-
};
|
|
654
|
-
};
|
|
655
623
|
const MentionPlugin = Mention.extend({
|
|
656
624
|
addNodeView() {
|
|
657
625
|
return vue3.VueNodeViewRenderer(MentionComponent);
|
|
@@ -680,33 +648,7 @@ const MentionPlugin = Mention.extend({
|
|
|
680
648
|
return `@${node.attrs.id}`;
|
|
681
649
|
},
|
|
682
650
|
renderHTML({ HTMLAttributes }) {
|
|
683
|
-
return ["mention-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
684
|
-
},
|
|
685
|
-
addInputRules() {
|
|
686
|
-
var _a;
|
|
687
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" });
|
|
688
|
-
return [
|
|
689
|
-
core.nodeInputRule({
|
|
690
|
-
find: (text) => mentionInputMatch(text, suggestions),
|
|
691
|
-
type: this.type,
|
|
692
|
-
getAttributes(attrs) {
|
|
693
|
-
return suggestions.find(({ id }) => id === attrs[0].replace("@", "").trim());
|
|
694
|
-
}
|
|
695
|
-
})
|
|
696
|
-
];
|
|
697
|
-
},
|
|
698
|
-
addPasteRules() {
|
|
699
|
-
var _a;
|
|
700
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" });
|
|
701
|
-
return [
|
|
702
|
-
core.nodePasteRule({
|
|
703
|
-
find: (text) => mentionPasteMatch(text, suggestions),
|
|
704
|
-
type: this.type,
|
|
705
|
-
getAttributes(attrs) {
|
|
706
|
-
return suggestions.find(({ id }) => id === attrs[0].trim());
|
|
707
|
-
}
|
|
708
|
-
})
|
|
709
|
-
];
|
|
651
|
+
return ["mention-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
710
652
|
}
|
|
711
653
|
}).configure({
|
|
712
654
|
suggestion: {
|
|
@@ -743,34 +685,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
743
685
|
});
|
|
744
686
|
}
|
|
745
687
|
const ChannelComponent = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
746
|
-
const channelRegex = /#([\w-]+)[^\w-]?/g;
|
|
747
|
-
const channelPasteMatch = (text, suggestions) => {
|
|
748
|
-
const matches = [...text.matchAll(channelRegex)];
|
|
749
|
-
return matches.filter((match) => suggestions.some(({ id }) => id === match[1].trim())).map((match) => {
|
|
750
|
-
let channel = match[1];
|
|
751
|
-
if (!channel.endsWith(" "))
|
|
752
|
-
channel += " ";
|
|
753
|
-
return {
|
|
754
|
-
index: match.index,
|
|
755
|
-
text: channel,
|
|
756
|
-
match
|
|
757
|
-
};
|
|
758
|
-
});
|
|
759
|
-
};
|
|
760
|
-
const channelInputMatch = (text, suggestions) => {
|
|
761
|
-
const match = text.match(/#([\w-]+)[^\w-]$/);
|
|
762
|
-
if (!match || !suggestions.some(({ id }) => id === match[1]))
|
|
763
|
-
return;
|
|
764
|
-
return {
|
|
765
|
-
index: match.index,
|
|
766
|
-
text: match[0],
|
|
767
|
-
match
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
688
|
const ChannelPlugin = Mention.extend({
|
|
771
689
|
name: "channel",
|
|
772
|
-
group: "inline",
|
|
773
|
-
inline: true,
|
|
774
690
|
addNodeView() {
|
|
775
691
|
return vue3.VueNodeViewRenderer(ChannelComponent);
|
|
776
692
|
},
|
|
@@ -798,33 +714,7 @@ const ChannelPlugin = Mention.extend({
|
|
|
798
714
|
return `#${node.attrs.id}`;
|
|
799
715
|
},
|
|
800
716
|
renderHTML({ HTMLAttributes }) {
|
|
801
|
-
return ["channel-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
802
|
-
},
|
|
803
|
-
addInputRules() {
|
|
804
|
-
var _a;
|
|
805
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" });
|
|
806
|
-
return [
|
|
807
|
-
core.nodeInputRule({
|
|
808
|
-
find: (text) => channelInputMatch(text, suggestions),
|
|
809
|
-
type: this.type,
|
|
810
|
-
getAttributes(attrs) {
|
|
811
|
-
return suggestions.find(({ id }) => id === attrs[0].replace("#", "").trim());
|
|
812
|
-
}
|
|
813
|
-
})
|
|
814
|
-
];
|
|
815
|
-
},
|
|
816
|
-
addPasteRules() {
|
|
817
|
-
var _a;
|
|
818
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({ query: "" });
|
|
819
|
-
return [
|
|
820
|
-
core.nodePasteRule({
|
|
821
|
-
find: (text) => channelPasteMatch(text, suggestions),
|
|
822
|
-
type: this.type,
|
|
823
|
-
getAttributes(attrs) {
|
|
824
|
-
return suggestions.find(({ id }) => id === attrs[0].trim());
|
|
825
|
-
}
|
|
826
|
-
})
|
|
827
|
-
];
|
|
717
|
+
return ["channel-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
828
718
|
}
|
|
829
719
|
}).configure({
|
|
830
720
|
suggestion: {
|
|
@@ -1308,7 +1198,7 @@ const _sfc_main = {
|
|
|
1308
1198
|
*/
|
|
1309
1199
|
outputFormat: {
|
|
1310
1200
|
type: String,
|
|
1311
|
-
default: "
|
|
1201
|
+
default: "html",
|
|
1312
1202
|
validator(outputFormat) {
|
|
1313
1203
|
return RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(outputFormat);
|
|
1314
1204
|
}
|
|
@@ -1432,6 +1322,13 @@ const _sfc_main = {
|
|
|
1432
1322
|
allowUnderline: {
|
|
1433
1323
|
type: Boolean,
|
|
1434
1324
|
default: true
|
|
1325
|
+
},
|
|
1326
|
+
/**
|
|
1327
|
+
* Whether the input allows codeblock to be introduced in the text.
|
|
1328
|
+
*/
|
|
1329
|
+
allowCodeblock: {
|
|
1330
|
+
type: Boolean,
|
|
1331
|
+
default: true
|
|
1435
1332
|
}
|
|
1436
1333
|
},
|
|
1437
1334
|
emits: [
|
|
@@ -1551,11 +1448,13 @@ const _sfc_main = {
|
|
|
1551
1448
|
types: ["paragraph"],
|
|
1552
1449
|
defaultAlignment: "left"
|
|
1553
1450
|
}));
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1451
|
+
if (this.allowCodeblock) {
|
|
1452
|
+
extensions.push(CodeBlock.configure({
|
|
1453
|
+
HTMLAttributes: {
|
|
1454
|
+
class: "dt-rich-text-editor--code-block"
|
|
1455
|
+
}
|
|
1456
|
+
}));
|
|
1457
|
+
}
|
|
1559
1458
|
return extensions;
|
|
1560
1459
|
},
|
|
1561
1460
|
inputAttrs() {
|
|
@@ -1599,8 +1498,7 @@ const _sfc_main = {
|
|
|
1599
1498
|
if (newValue === currentValue) {
|
|
1600
1499
|
return;
|
|
1601
1500
|
}
|
|
1602
|
-
this.
|
|
1603
|
-
this.insertContent();
|
|
1501
|
+
this.editor.commands.setContent(newValue, false);
|
|
1604
1502
|
}
|
|
1605
1503
|
},
|
|
1606
1504
|
created() {
|
|
@@ -1616,6 +1514,7 @@ const _sfc_main = {
|
|
|
1616
1514
|
createEditor() {
|
|
1617
1515
|
this.editor = new vue3.Editor({
|
|
1618
1516
|
autofocus: this.autoFocus,
|
|
1517
|
+
content: this.modelValue,
|
|
1619
1518
|
editable: this.editable,
|
|
1620
1519
|
extensions: this.extensions,
|
|
1621
1520
|
editorProps: {
|
|
@@ -1625,64 +1524,8 @@ const _sfc_main = {
|
|
|
1625
1524
|
}
|
|
1626
1525
|
}
|
|
1627
1526
|
});
|
|
1628
|
-
this.insertContent();
|
|
1629
1527
|
this.addEditorListeners();
|
|
1630
1528
|
},
|
|
1631
|
-
/**
|
|
1632
|
-
* This function is necessary as tiptap doesn't render the content passed
|
|
1633
|
-
* directly through `editor.commands.setContent` the content passed down to it
|
|
1634
|
-
* should be already parsed. So We're parsing the elements into it's corresponding
|
|
1635
|
-
* HTML version before setting it.
|
|
1636
|
-
*/
|
|
1637
|
-
insertContent() {
|
|
1638
|
-
this.parseMentions();
|
|
1639
|
-
this.parseChannels();
|
|
1640
|
-
this.parseEmojis();
|
|
1641
|
-
this.editor.commands.setContent(this.internalValue, true);
|
|
1642
|
-
},
|
|
1643
|
-
parseEmojis() {
|
|
1644
|
-
const matches = new Set(
|
|
1645
|
-
[...this.modelValue.matchAll(emojiRegex()), ...this.modelValue.matchAll(common_emoji.emojiShortCodeRegex)].map((match) => match[0].trim())
|
|
1646
|
-
);
|
|
1647
|
-
if (!matches)
|
|
1648
|
-
return;
|
|
1649
|
-
matches.forEach((match) => {
|
|
1650
|
-
const emoji = common_emoji.codeToEmojiData(match);
|
|
1651
|
-
if (!emoji)
|
|
1652
|
-
return;
|
|
1653
|
-
this.internalValue = this.internalValue.replace(new RegExp(`${match}`, "g"), `<emoji-component code="${emoji.shortname}"></emoji-component>`);
|
|
1654
|
-
});
|
|
1655
|
-
},
|
|
1656
|
-
parseChannels() {
|
|
1657
|
-
if (!this.channelSuggestion)
|
|
1658
|
-
return;
|
|
1659
|
-
const suggestions = this.channelSuggestion.items({ query: "" });
|
|
1660
|
-
const matches = [...this.modelValue.matchAll(channelRegex)].filter((match) => suggestions.some(({ id }) => id === match[1]));
|
|
1661
|
-
if (!matches)
|
|
1662
|
-
return;
|
|
1663
|
-
matches.forEach((match) => {
|
|
1664
|
-
const channel = suggestions.find(({ id }) => id === match[1]);
|
|
1665
|
-
this.internalValue = this.internalValue.replace(
|
|
1666
|
-
`#${match[1]}`,
|
|
1667
|
-
/** The space at the beginning is important as tiptap removes that while rendering.
|
|
1668
|
-
* So if multiple mentions, channels or emojis are next to each other it will fail
|
|
1669
|
-
*/
|
|
1670
|
-
` <channel-component name="${channel.name}" id="${channel.id}"></channel-component>`
|
|
1671
|
-
);
|
|
1672
|
-
});
|
|
1673
|
-
},
|
|
1674
|
-
parseMentions() {
|
|
1675
|
-
if (!this.mentionSuggestion)
|
|
1676
|
-
return;
|
|
1677
|
-
const suggestions = this.mentionSuggestion.items({ query: "" });
|
|
1678
|
-
const matches = [...this.modelValue.matchAll(mentionRegex)].filter((match) => suggestions.some(({ id }) => id === match[1]));
|
|
1679
|
-
if (!matches)
|
|
1680
|
-
return;
|
|
1681
|
-
matches.forEach((match) => {
|
|
1682
|
-
const mention = suggestions.find(({ id }) => id === match[1]);
|
|
1683
|
-
this.internalValue = this.internalValue.replace(`@${match[1]}`, ` <mention-component name="${mention.name}" id="${mention.id}"></mention-component>`);
|
|
1684
|
-
});
|
|
1685
|
-
},
|
|
1686
1529
|
destroyEditor() {
|
|
1687
1530
|
this.editor.destroy();
|
|
1688
1531
|
},
|