@dialpad/dialtone 9.124.0 → 9.125.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 +9 -2
- package/dist/tokens/doc.json +24416 -24416
- package/dist/vue2/common/mixins/index.cjs +1 -1
- package/dist/vue2/common/mixins/index.js +10 -10
- package/dist/vue2/common/mixins/localization.cjs +2 -0
- package/dist/vue2/common/mixins/localization.cjs.map +1 -0
- package/dist/vue2/common/mixins/localization.js +10 -0
- package/dist/vue2/common/mixins/localization.js.map +1 -0
- package/dist/vue2/common/utils/index.cjs +1 -1
- package/dist/vue2/common/utils/index.cjs.map +1 -1
- package/dist/vue2/common/utils/index.js +43 -39
- package/dist/vue2/common/utils/index.js.map +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +341 -340
- package/dist/vue2/dialtone-vue.js.map +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +61 -86
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
- package/dist/vue2/lib/banner/banner.cjs +2 -2
- package/dist/vue2/lib/banner/banner.cjs.map +1 -1
- package/dist/vue2/lib/banner/banner.js +25 -33
- package/dist/vue2/lib/banner/banner.js.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +14 -12
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/vue2/lib/button/button.cjs +1 -1
- package/dist/vue2/lib/button/button.cjs.map +1 -1
- package/dist/vue2/lib/button/button.js +11 -9
- package/dist/vue2/lib/button/button.js.map +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +19 -25
- package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +18 -21
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/vue2/lib/chip/chip.cjs +1 -1
- package/dist/vue2/lib/chip/chip.cjs.map +1 -1
- package/dist/vue2/lib/chip/chip.js +24 -29
- package/dist/vue2/lib/chip/chip.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.cjs +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-constants.js +2 -2
- package/dist/vue2/lib/combobox/combobox-constants.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox.cjs +2 -2
- package/dist/vue2/lib/combobox/combobox.cjs.map +1 -1
- package/dist/vue2/lib/combobox/combobox.js +12 -12
- package/dist/vue2/lib/combobox/combobox.js.map +1 -1
- package/dist/vue2/lib/combobox/index.cjs +1 -1
- package/dist/vue2/lib/combobox/index.js +3 -3
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +16 -18
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js +22 -24
- package/dist/vue2/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +40 -36
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.js +11 -25
- package/dist/vue2/lib/contact-row/contact-row.js.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.cjs +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker-constants.js +2 -3
- package/dist/vue2/lib/datepicker/datepicker-constants.js.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
- package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/datepicker.js +143 -229
- package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
- package/dist/vue2/lib/datepicker/utils.cjs +1 -1
- package/dist/vue2/lib/datepicker/utils.cjs.map +1 -1
- package/dist/vue2/lib/datepicker/utils.js +12 -11
- package/dist/vue2/lib/datepicker/utils.js.map +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs.map +1 -1
- package/dist/vue2/lib/description-list/description-list.js +8 -8
- package/dist/vue2/lib/description-list/description-list.js.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.js +48 -50
- package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
- package/dist/vue2/lib/editor/editor.cjs +1 -1
- package/dist/vue2/lib/editor/editor.cjs.map +1 -1
- package/dist/vue2/lib/editor/editor.js +78 -87
- package/dist/vue2/lib/editor/editor.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js +6 -19
- package/dist/vue2/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.js +106 -145
- package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/index.cjs +1 -1
- package/dist/vue2/lib/emoji-picker/index.js +6 -7
- package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row-constants.js +5 -7
- package/dist/vue2/lib/emoji-row/emoji-row-constants.js.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.js +31 -22
- package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +20 -22
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
- package/dist/vue2/lib/general-row/general-row.js +63 -52
- package/dist/vue2/lib/general-row/general-row.js.map +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
- package/dist/vue2/lib/group-row/group-row.js +43 -32
- package/dist/vue2/lib/group-row/group-row.js.map +1 -1
- package/dist/vue2/lib/icon/icon-constants.cjs.map +1 -1
- package/dist/vue2/lib/icon/icon-constants.js.map +1 -1
- package/dist/vue2/lib/icon/icon.cjs +1 -1
- package/dist/vue2/lib/icon/icon.cjs.map +1 -1
- package/dist/vue2/lib/icon/icon.js +12 -8
- package/dist/vue2/lib/icon/icon.js.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.js +30 -31
- package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node-constants.js +24 -24
- package/dist/vue2/lib/ivr-node/ivr-node-constants.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.js +38 -36
- package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input-link.js +48 -23
- package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input-topbar.js +50 -22
- package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
- package/dist/vue2/lib/message-input/message-input.js +112 -143
- package/dist/vue2/lib/message-input/message-input.js.map +1 -1
- package/dist/vue2/lib/modal/modal.cjs +1 -2
- package/dist/vue2/lib/modal/modal.cjs.map +1 -1
- package/dist/vue2/lib/modal/modal.js +25 -42
- package/dist/vue2/lib/modal/modal.js.map +1 -1
- package/dist/vue2/lib/notice/notice-action.cjs +1 -1
- package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
- package/dist/vue2/lib/notice/notice-action.js +19 -26
- package/dist/vue2/lib/notice/notice-action.js.map +1 -1
- package/dist/vue2/lib/notice/notice.cjs +1 -1
- package/dist/vue2/lib/notice/notice.cjs.map +1 -1
- package/dist/vue2/lib/notice/notice.js +18 -27
- package/dist/vue2/lib/notice/notice.js.map +1 -1
- package/dist/vue2/lib/pagination/pagination.cjs +1 -1
- package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
- package/dist/vue2/lib/pagination/pagination.js +49 -58
- package/dist/vue2/lib/pagination/pagination.js.map +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/vue2/lib/popover/popover-header-footer.js +24 -26
- package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
- package/dist/vue2/lib/popover/popover.cjs +1 -1
- package/dist/vue2/lib/popover/popover.cjs.map +1 -1
- package/dist/vue2/lib/popover/popover.js +26 -35
- package/dist/vue2/lib/popover/popover.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +5 -5
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +330 -320
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.cjs.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.js.map +1 -1
- package/dist/vue2/lib/toast/toast.cjs +1 -1
- package/dist/vue2/lib/toast/toast.cjs.map +1 -1
- package/dist/vue2/lib/toast/toast.js +64 -97
- package/dist/vue2/lib/toast/toast.js.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.js +27 -18
- package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/vue2/localization/en-US.cjs +185 -0
- package/dist/vue2/localization/en-US.cjs.map +1 -0
- package/dist/vue2/localization/en-US.js +188 -0
- package/dist/vue2/localization/en-US.js.map +1 -0
- package/dist/vue2/localization/es-LA.cjs +169 -0
- package/dist/vue2/localization/es-LA.cjs.map +1 -0
- package/dist/vue2/localization/es-LA.js +172 -0
- package/dist/vue2/localization/es-LA.js.map +1 -0
- package/dist/vue2/localization/index.cjs +1176 -0
- package/dist/vue2/localization/index.cjs.map +1 -0
- package/dist/vue2/localization/index.js +1239 -0
- package/dist/vue2/localization/index.js.map +1 -0
- package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.js.map +1 -1
- package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
- package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
- package/dist/vue2/shared/sr_only_close_button.js +19 -22
- package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
- package/dist/vue2/types/common/mixins/index.d.ts +1 -1
- package/dist/vue2/types/common/mixins/localization.d.ts +8 -0
- package/dist/vue2/types/common/mixins/localization.d.ts.map +1 -0
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +7 -13
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/vue2/types/common/utils/index.d.ts +1 -0
- package/dist/vue2/types/common/utils/index.d.ts.map +1 -1
- package/dist/vue2/types/components/banner/banner.vue.d.ts +0 -33
- package/dist/vue2/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +5 -1
- package/dist/vue2/types/components/button/button.vue.d.ts +6 -2
- package/dist/vue2/types/components/chip/chip.vue.d.ts +8 -18
- package/dist/vue2/types/components/combobox/combobox_constants.d.ts +2 -2
- package/dist/vue2/types/components/combobox/index.d.ts +1 -1
- package/dist/vue2/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts +0 -1
- package/dist/vue2/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +5 -17
- package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +8 -48
- package/dist/vue2/types/components/datepicker/utils.d.ts +1 -0
- package/dist/vue2/types/components/datepicker/utils.d.ts.map +1 -1
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts +0 -24
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +5 -1
- package/dist/vue2/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
- package/dist/vue2/types/components/icon/icon.vue.d.ts +1 -0
- package/dist/vue2/types/components/icon/icon_constants.d.ts.map +1 -1
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +5 -8
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/modal/modal.vue.d.ts +3 -33
- package/dist/vue2/types/components/notice/notice.vue.d.ts +1 -34
- package/dist/vue2/types/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts +3 -31
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts +9 -26
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover.vue.d.ts +0 -33
- package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +8 -11
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -2
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +1 -43
- package/dist/vue2/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
- package/dist/vue2/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/toast/toast.vue.d.ts +3 -111
- package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +1 -0
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +7 -13
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +7 -12
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +8 -10
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -25
- package/dist/vue2/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
- package/dist/vue2/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +5 -41
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +8 -26
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +20 -61
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +9 -12
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +8 -2
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +15 -90
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +14 -2
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +14 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +10 -11
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +21 -37
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +9 -18
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +7 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/vue2/common/mixins/sr-only-close-button.cjs +0 -3
- package/dist/vue2/common/mixins/sr-only-close-button.cjs.map +0 -1
- package/dist/vue2/common/mixins/sr-only-close-button.js +0 -44
- package/dist/vue2/common/mixins/sr-only-close-button.js.map +0 -1
- package/dist/vue2/lib/contact-row/contact-row-constants.cjs +0 -2
- package/dist/vue2/lib/contact-row/contact-row-constants.cjs.map +0 -1
- package/dist/vue2/lib/contact-row/contact-row-constants.js +0 -5
- package/dist/vue2/lib/contact-row/contact-row-constants.js.map +0 -1
- package/dist/vue2/lib/emoji/emoji-constants.cjs +0 -2
- package/dist/vue2/lib/emoji/emoji-constants.cjs.map +0 -1
- package/dist/vue2/lib/emoji/emoji-constants.js +0 -5
- package/dist/vue2/lib/emoji/emoji-constants.js.map +0 -1
- package/dist/vue2/lib/group-row/group-row-constants.cjs +0 -2
- package/dist/vue2/lib/group-row/group-row-constants.cjs.map +0 -1
- package/dist/vue2/lib/group-row/group-row-constants.js +0 -8
- package/dist/vue2/lib/group-row/group-row-constants.js.map +0 -1
- package/dist/vue2/lib/time-pill/time-pill-constants.cjs +0 -2
- package/dist/vue2/lib/time-pill/time-pill-constants.cjs.map +0 -1
- package/dist/vue2/lib/time-pill/time-pill-constants.js +0 -8
- package/dist/vue2/lib/time-pill/time-pill-constants.js.map +0 -1
- package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts +0 -30
- package/dist/vue2/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
- package/dist/vue2/types/components/emoji/emoji_constants.d.ts +0 -3
- package/dist/vue2/types/components/emoji/emoji_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
- package/dist/vue2/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
- package/dist/vue2/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as
|
|
2
|
-
import { Node as
|
|
1
|
+
import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as v, EditorContent as H, BubbleMenu as P, Editor as F } from "../../node_modules/@tiptap/vue-2.js";
|
|
2
|
+
import { Node as N, mergeAttributes as m, InputRule as U, nodePasteRule as E, getMarksBetween as q, combineTransactionSteps as K, getChangedRanges as V, findChildrenInRange as z, Mark as W, nodeInputRule as X, Extension as J } from "@tiptap/core";
|
|
3
3
|
import Y from "@tiptap/extension-blockquote";
|
|
4
4
|
import G from "@tiptap/extension-code-block";
|
|
5
5
|
import Q from "@tiptap/extension-code";
|
|
6
6
|
import Z from "@tiptap/extension-document";
|
|
7
|
-
import
|
|
7
|
+
import A from "@tiptap/extension-paragraph";
|
|
8
8
|
import ee from "@tiptap/extension-placeholder";
|
|
9
9
|
import te from "@tiptap/extension-hard-break";
|
|
10
10
|
import ne from "@tiptap/extension-bold";
|
|
@@ -23,41 +23,42 @@ import fe from "@tiptap/extension-color";
|
|
|
23
23
|
import pe from "@tiptap/extension-font-family";
|
|
24
24
|
import { PluginKey as f, Plugin as ge } from "@tiptap/pm/state";
|
|
25
25
|
import _e from "@tiptap/suggestion";
|
|
26
|
-
import { emojiPattern as
|
|
26
|
+
import { emojiPattern as D } from "regex-combined-emojis";
|
|
27
27
|
import { n as c } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
|
|
28
|
-
import
|
|
29
|
-
import { stringToUnicode as ye, codeToEmojiData as
|
|
30
|
-
import { emojisIndexed as
|
|
28
|
+
import B from "../emoji/emoji.js";
|
|
29
|
+
import { stringToUnicode as ye, codeToEmojiData as S, emojiRegex as we, emojiShortCodeRegex as ve } from "../../common/emoji/index.js";
|
|
30
|
+
import { emojisIndexed as be } from "@dialpad/dialtone-emojis";
|
|
31
31
|
import xe from "../list-item/list-item.js";
|
|
32
|
-
import
|
|
32
|
+
import b from "../stack/stack.js";
|
|
33
33
|
import x from "tippy.js";
|
|
34
|
-
import { linkRegex as Ce, getPhoneNumberRegex as ke, warnIfUnmounted as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Re, RICH_TEXT_EDITOR_OUTPUT_FORMATS as
|
|
39
|
-
import
|
|
40
|
-
import
|
|
34
|
+
import { linkRegex as Ce, getPhoneNumberRegex as ke, warnIfUnmounted as Te } from "../../common/utils/index.js";
|
|
35
|
+
import Ee from "@tiptap/extension-image";
|
|
36
|
+
import L from "@tiptap/extension-mention";
|
|
37
|
+
import M from "../link/link.js";
|
|
38
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Re, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Se, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as $ } from "./rich-text-editor-constants.js";
|
|
39
|
+
import Le from "../avatar/avatar.js";
|
|
40
|
+
import $e from "@dialpad/dialtone-icons/vue2/hash";
|
|
41
41
|
import Ie from "@dialpad/dialtone-icons/vue2/lock";
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
|
|
42
|
+
import Oe from "deep-equal";
|
|
43
|
+
import Ae from "../button/button.js";
|
|
44
|
+
import De from "../../common/mixins/localization.js";
|
|
45
|
+
const Be = {
|
|
45
46
|
name: "EmojiComponent",
|
|
46
47
|
components: {
|
|
47
48
|
NodeViewWrapper: _,
|
|
48
|
-
DtEmoji:
|
|
49
|
+
DtEmoji: B
|
|
49
50
|
},
|
|
50
51
|
props: y
|
|
51
52
|
};
|
|
52
|
-
var
|
|
53
|
-
var e = this,
|
|
54
|
-
return
|
|
55
|
-
},
|
|
53
|
+
var Me = function() {
|
|
54
|
+
var e = this, n = e._self._c;
|
|
55
|
+
return n("node-view-wrapper", { staticClass: "d-d-inline-block d-va-bottom d-lh0" }, [n("dt-emoji", { attrs: { size: "500", code: e.node.attrs.code } })], 1);
|
|
56
|
+
}, je = [], He = /* @__PURE__ */ c(
|
|
57
|
+
Be,
|
|
56
58
|
Me,
|
|
57
|
-
|
|
58
|
-
De
|
|
59
|
+
je
|
|
59
60
|
);
|
|
60
|
-
const Pe =
|
|
61
|
+
const Pe = He.exports, Fe = {
|
|
61
62
|
name: "SuggestionList",
|
|
62
63
|
components: {
|
|
63
64
|
DtListItem: xe
|
|
@@ -130,28 +131,28 @@ const Pe = Be.exports, He = {
|
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
};
|
|
133
|
-
var
|
|
134
|
-
var e = this,
|
|
135
|
-
return
|
|
136
|
-
return
|
|
134
|
+
var Ne = function() {
|
|
135
|
+
var e = this, n = e._self._c;
|
|
136
|
+
return n("div", { staticClass: "d-popover__dialog d-suggestion-list__container" }, [n("ul", { directives: [{ name: "show", rawName: "v-show", value: e.items.length, expression: "items.length" }], ref: "suggestionList", staticClass: "d-suggestion-list" }, e._l(e.items, function(r, i) {
|
|
137
|
+
return n("dt-list-item", { key: r.id, class: [
|
|
137
138
|
"d-suggestion-list__item",
|
|
138
139
|
{ "d-list-item--highlighted": i === e.selectedIndex }
|
|
139
140
|
], attrs: { "navigation-type": "arrow-keys" }, on: { click: function(o) {
|
|
140
141
|
return e.selectItem(i);
|
|
141
142
|
}, keydown: function(o) {
|
|
142
143
|
return o.preventDefault(), e.onKeyDown.apply(null, arguments);
|
|
143
|
-
} } }, [
|
|
144
|
+
} } }, [n(e.itemComponent, { tag: "component", attrs: { item: r } })], 1);
|
|
144
145
|
}), 1)]);
|
|
145
|
-
},
|
|
146
|
-
He,
|
|
146
|
+
}, Ue = [], qe = /* @__PURE__ */ c(
|
|
147
147
|
Fe,
|
|
148
|
-
|
|
148
|
+
Ne,
|
|
149
|
+
Ue
|
|
149
150
|
);
|
|
150
|
-
const C =
|
|
151
|
+
const C = qe.exports, Ke = {
|
|
151
152
|
name: "EmojiSuggestion",
|
|
152
153
|
components: {
|
|
153
|
-
DtEmoji:
|
|
154
|
-
DtStack:
|
|
154
|
+
DtEmoji: B,
|
|
155
|
+
DtStack: b
|
|
155
156
|
},
|
|
156
157
|
props: {
|
|
157
158
|
item: {
|
|
@@ -160,20 +161,20 @@ const C = Ke.exports, Ue = {
|
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
};
|
|
163
|
-
var
|
|
164
|
-
var e = this,
|
|
165
|
-
return
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
var Ve = function() {
|
|
165
|
+
var e = this, n = e._self._c;
|
|
166
|
+
return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [n("dt-emoji", { attrs: { size: "200", code: e.item.code } }), e._v(" " + e._s(e.item.code) + " ")], 1);
|
|
167
|
+
}, ze = [], We = /* @__PURE__ */ c(
|
|
168
|
+
Ke,
|
|
169
|
+
Ve,
|
|
170
|
+
ze
|
|
170
171
|
);
|
|
171
|
-
const
|
|
172
|
+
const Xe = We.exports, k = {
|
|
172
173
|
name: "hideOnEsc",
|
|
173
174
|
defaultValue: !0,
|
|
174
175
|
fn({ hide: t }) {
|
|
175
|
-
function e(
|
|
176
|
-
|
|
176
|
+
function e(n) {
|
|
177
|
+
n.keyCode === 27 && t();
|
|
177
178
|
}
|
|
178
179
|
return {
|
|
179
180
|
onShow() {
|
|
@@ -184,82 +185,82 @@ const We = ze.exports, k = {
|
|
|
184
185
|
}
|
|
185
186
|
};
|
|
186
187
|
}
|
|
187
|
-
},
|
|
188
|
+
}, Je = 20, Ye = {
|
|
188
189
|
items: ({ query: t }) => {
|
|
189
190
|
if (t.length < 2)
|
|
190
191
|
return [];
|
|
191
|
-
const e = Object.values(
|
|
192
|
+
const e = Object.values(be);
|
|
192
193
|
return t = t.toLowerCase(), e.filter(
|
|
193
|
-
(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
...
|
|
194
|
+
(r) => [
|
|
195
|
+
r.name,
|
|
196
|
+
r.shortname.replaceAll(":", ""),
|
|
197
|
+
...r.keywords
|
|
197
198
|
].some((i) => i.startsWith(t))
|
|
198
|
-
).splice(0,
|
|
199
|
+
).splice(0, Je).map((r) => ({ code: r.shortname }));
|
|
199
200
|
},
|
|
200
|
-
command: ({ editor: t, range: e, props:
|
|
201
|
+
command: ({ editor: t, range: e, props: n }) => {
|
|
201
202
|
var o, s;
|
|
202
|
-
const
|
|
203
|
-
((o =
|
|
203
|
+
const r = t.view.state.selection.$to.nodeAfter;
|
|
204
|
+
((o = r == null ? void 0 : r.text) == null ? void 0 : o.startsWith(" ")) && (e.to += 1), t.chain().focus().insertContentAt(e, [
|
|
204
205
|
{
|
|
205
206
|
type: "emoji",
|
|
206
|
-
attrs:
|
|
207
|
+
attrs: n
|
|
207
208
|
}
|
|
208
209
|
]).run(), (s = window.getSelection()) == null || s.collapseToEnd();
|
|
209
210
|
},
|
|
210
211
|
render: () => {
|
|
211
|
-
let t, e,
|
|
212
|
+
let t, e, n = !1;
|
|
212
213
|
return {
|
|
213
|
-
onStart: (
|
|
214
|
+
onStart: (r) => {
|
|
214
215
|
t = new w(C, {
|
|
215
216
|
parent: void 0,
|
|
216
217
|
propsData: {
|
|
217
|
-
itemComponent:
|
|
218
|
+
itemComponent: Xe,
|
|
218
219
|
itemType: "emoji",
|
|
219
|
-
...
|
|
220
|
+
...r
|
|
220
221
|
},
|
|
221
|
-
editor:
|
|
222
|
-
}),
|
|
223
|
-
getReferenceClientRect:
|
|
222
|
+
editor: r.editor
|
|
223
|
+
}), r.clientRect && (e = x("body", {
|
|
224
|
+
getReferenceClientRect: r.clientRect,
|
|
224
225
|
appendTo: () => document.body,
|
|
225
226
|
content: t.element,
|
|
226
227
|
showOnCreate: !1,
|
|
227
228
|
onShow: () => {
|
|
228
|
-
|
|
229
|
+
n = !0;
|
|
229
230
|
},
|
|
230
231
|
onHidden: () => {
|
|
231
|
-
|
|
232
|
+
n = !1;
|
|
232
233
|
},
|
|
233
234
|
interactive: !0,
|
|
234
235
|
trigger: "manual",
|
|
235
236
|
placement: "top-start",
|
|
236
237
|
zIndex: 650,
|
|
237
238
|
plugins: [k]
|
|
238
|
-
}),
|
|
239
|
+
}), r.items.length > 0 && (e == null || e[0].show()));
|
|
239
240
|
},
|
|
240
|
-
onUpdate(
|
|
241
|
-
t == null || t.updateProps(
|
|
242
|
-
getReferenceClientRect:
|
|
241
|
+
onUpdate(r) {
|
|
242
|
+
t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), e == null || e[0].setProps({
|
|
243
|
+
getReferenceClientRect: r.clientRect
|
|
243
244
|
});
|
|
244
245
|
},
|
|
245
|
-
onKeyDown(
|
|
246
|
+
onKeyDown(r) {
|
|
246
247
|
var i;
|
|
247
|
-
if (
|
|
248
|
-
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(
|
|
248
|
+
if (n)
|
|
249
|
+
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
|
|
249
250
|
},
|
|
250
251
|
onExit() {
|
|
251
252
|
e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
|
|
252
253
|
}
|
|
253
254
|
};
|
|
254
255
|
}
|
|
255
|
-
},
|
|
256
|
-
if (t &&
|
|
256
|
+
}, Ge = /(:\w+:)$/, Qe = new RegExp(D + "$"), Ze = (t) => {
|
|
257
|
+
if (t && S(t[0]))
|
|
257
258
|
return { text: t[2] || t[0] };
|
|
258
|
-
},
|
|
259
|
-
index:
|
|
260
|
-
text:
|
|
261
|
-
match:
|
|
262
|
-
})),
|
|
259
|
+
}, et = (t) => [...t.matchAll(ve)].filter((n) => S(n[0])).map((n) => ({
|
|
260
|
+
index: n.index,
|
|
261
|
+
text: n[0],
|
|
262
|
+
match: n
|
|
263
|
+
})), tt = N.create({
|
|
263
264
|
name: "emoji",
|
|
264
265
|
addOptions() {
|
|
265
266
|
return {
|
|
@@ -271,7 +272,7 @@ const We = ze.exports, k = {
|
|
|
271
272
|
selectable: !1,
|
|
272
273
|
atom: !0,
|
|
273
274
|
addNodeView() {
|
|
274
|
-
return
|
|
275
|
+
return v(Pe);
|
|
275
276
|
},
|
|
276
277
|
addAttributes() {
|
|
277
278
|
return {
|
|
@@ -288,30 +289,30 @@ const We = ze.exports, k = {
|
|
|
288
289
|
];
|
|
289
290
|
},
|
|
290
291
|
renderText({ node: t }) {
|
|
291
|
-
return ye(
|
|
292
|
+
return ye(S(t.attrs.code).unicode_output);
|
|
292
293
|
},
|
|
293
294
|
renderHTML({ HTMLAttributes: t }) {
|
|
294
295
|
return ["emoji-component", m(this.options.HTMLAttributes, t)];
|
|
295
296
|
},
|
|
296
297
|
addInputRules() {
|
|
297
298
|
return [
|
|
298
|
-
new
|
|
299
|
+
new U({
|
|
299
300
|
find: (t) => {
|
|
300
|
-
const e = t.match(
|
|
301
|
+
const e = t.match(Ge) || t.match(Qe);
|
|
301
302
|
if (e)
|
|
302
|
-
return
|
|
303
|
+
return Ze(e);
|
|
303
304
|
},
|
|
304
|
-
handler: ({ state: t, range: e, match:
|
|
305
|
+
handler: ({ state: t, range: e, match: n, commands: r, chain: i, can: o }) => {
|
|
305
306
|
const { tr: s } = t, a = e.from, l = e.to;
|
|
306
|
-
s.replaceWith(a, l, this.type.create({ code:
|
|
307
|
+
s.replaceWith(a, l, this.type.create({ code: n[0] }));
|
|
307
308
|
}
|
|
308
309
|
})
|
|
309
310
|
];
|
|
310
311
|
},
|
|
311
312
|
addPasteRules() {
|
|
312
313
|
return [
|
|
313
|
-
|
|
314
|
-
find:
|
|
314
|
+
E({
|
|
315
|
+
find: et,
|
|
315
316
|
type: this.type,
|
|
316
317
|
getAttributes(t) {
|
|
317
318
|
return {
|
|
@@ -319,7 +320,7 @@ const We = ze.exports, k = {
|
|
|
319
320
|
};
|
|
320
321
|
}
|
|
321
322
|
}),
|
|
322
|
-
|
|
323
|
+
E({
|
|
323
324
|
find: we,
|
|
324
325
|
type: this.type,
|
|
325
326
|
getAttributes(t) {
|
|
@@ -337,35 +338,35 @@ const We = ze.exports, k = {
|
|
|
337
338
|
pluginKey: new f("emoji"),
|
|
338
339
|
editor: this.editor,
|
|
339
340
|
...this.options.suggestion,
|
|
340
|
-
...
|
|
341
|
+
...Ye
|
|
341
342
|
})
|
|
342
343
|
];
|
|
343
344
|
},
|
|
344
345
|
addKeyboardShortcuts() {
|
|
345
346
|
return {
|
|
346
347
|
Backspace: () => this.editor.commands.command(({ tr: t, state: e }) => {
|
|
347
|
-
let
|
|
348
|
-
const { selection:
|
|
348
|
+
let n = !1;
|
|
349
|
+
const { selection: r } = e, { empty: i, anchor: o } = r;
|
|
349
350
|
return i ? (e.doc.nodesBetween(o - 1, o, (s, a) => {
|
|
350
351
|
if (s.type.name === this.name)
|
|
351
|
-
return
|
|
352
|
-
}),
|
|
352
|
+
return n = !0, t.insertText("", a, a + s.nodeSize), !1;
|
|
353
|
+
}), n) : !1;
|
|
353
354
|
})
|
|
354
355
|
};
|
|
355
356
|
}
|
|
356
357
|
});
|
|
357
|
-
function
|
|
358
|
-
const
|
|
358
|
+
function nt(t, e, n = () => !0) {
|
|
359
|
+
const r = [];
|
|
359
360
|
e.lastIndex = 0;
|
|
360
361
|
let i;
|
|
361
362
|
for (; i = e.exec(t); )
|
|
362
|
-
|
|
363
|
-
return
|
|
363
|
+
n(t, i) && r.push(i);
|
|
364
|
+
return r;
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function rt(t, e) {
|
|
366
367
|
return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
+
function it(t) {
|
|
369
370
|
const e = new RegExp(
|
|
370
371
|
"(?:" + [
|
|
371
372
|
`[!?.,:;'"]`,
|
|
@@ -375,41 +376,41 @@ function rt(t) {
|
|
|
375
376
|
);
|
|
376
377
|
return t.replace(e, "");
|
|
377
378
|
}
|
|
378
|
-
function
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
381
|
-
const i = t.slice(
|
|
379
|
+
function st(t, e) {
|
|
380
|
+
const n = t.slice(0, e + 1).search(/\S+\s*$/), r = t.slice(e).search(/\s/);
|
|
381
|
+
if (r < 0) {
|
|
382
|
+
const i = t.slice(n);
|
|
382
383
|
return {
|
|
383
384
|
text: i,
|
|
384
|
-
from:
|
|
385
|
-
to:
|
|
385
|
+
from: n,
|
|
386
|
+
to: n + i.length
|
|
386
387
|
};
|
|
387
388
|
}
|
|
388
389
|
return {
|
|
389
|
-
text: t.slice(
|
|
390
|
-
from:
|
|
391
|
-
to:
|
|
390
|
+
text: t.slice(n, r + e),
|
|
391
|
+
from: n,
|
|
392
|
+
to: r + e
|
|
392
393
|
};
|
|
393
394
|
}
|
|
394
|
-
function R(t, e,
|
|
395
|
-
const i =
|
|
396
|
-
if (
|
|
395
|
+
function R(t, e, n, r) {
|
|
396
|
+
const i = st(t, e);
|
|
397
|
+
if (r.lastIndex = 0, !r.test(i.text))
|
|
397
398
|
return i;
|
|
398
|
-
const o =
|
|
399
|
-
return o <= 0 || o >= t.length || o === e ? i : R(t, o,
|
|
399
|
+
const o = n === "left" ? i.from - 1 : i.to + 1;
|
|
400
|
+
return o <= 0 || o >= t.length || o === e ? i : R(t, o, n, r);
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
const i = Math.max(t.from - 1, 0), o = Math.min(t.to + 1, e.content.size), s =
|
|
402
|
+
function ot(t, e, n, r) {
|
|
403
|
+
const i = Math.max(t.from - 1, 0), o = Math.min(t.to + 1, e.content.size), s = q(i, o, e);
|
|
403
404
|
for (const a of s)
|
|
404
|
-
a.mark.type ===
|
|
405
|
+
a.mark.type === r && n.removeMark(a.from, a.to, r);
|
|
405
406
|
}
|
|
406
407
|
const I = ke(1, 15);
|
|
407
|
-
function
|
|
408
|
+
function O(t, e, n, r, i, o) {
|
|
408
409
|
if (!t)
|
|
409
410
|
return;
|
|
410
|
-
let s =
|
|
411
|
+
let s = n - e - 1;
|
|
411
412
|
s = s < 0 ? 0 : s;
|
|
412
|
-
const a =
|
|
413
|
+
const a = r - e, l = R(
|
|
413
414
|
t,
|
|
414
415
|
s,
|
|
415
416
|
"left",
|
|
@@ -420,32 +421,32 @@ function A(t, e, r, n, i, o) {
|
|
|
420
421
|
"right",
|
|
421
422
|
I
|
|
422
423
|
), u = t.slice(l.from, d.to);
|
|
423
|
-
|
|
424
|
-
const h =
|
|
425
|
-
i.addMark(g,
|
|
424
|
+
nt(u, Ce, rt).forEach((T) => {
|
|
425
|
+
const h = it(T[0]), g = e + l.from + T.index + 1, j = g + h.length;
|
|
426
|
+
i.addMark(g, j, o.create());
|
|
426
427
|
});
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function at(t) {
|
|
429
430
|
let e = !1;
|
|
430
431
|
return new ge({
|
|
431
432
|
key: new f("autolink"),
|
|
432
|
-
appendTransaction: (
|
|
433
|
-
const o =
|
|
433
|
+
appendTransaction: (n, r, i) => {
|
|
434
|
+
const o = n.some((u) => u.docChanged) && !r.doc.eq(i.doc);
|
|
434
435
|
if (e && !o)
|
|
435
436
|
return;
|
|
436
437
|
const { tr: s } = i, { textContent: a } = i.doc;
|
|
437
|
-
e ||
|
|
438
|
-
const l =
|
|
439
|
-
|
|
440
|
-
[...
|
|
438
|
+
e || O(a, 0, 0, a.length, s, t.type), e = !0;
|
|
439
|
+
const l = K(
|
|
440
|
+
r.doc,
|
|
441
|
+
[...n]
|
|
441
442
|
);
|
|
442
443
|
return V(l).forEach(({ oldRange: u, newRange: p }) => {
|
|
443
|
-
|
|
444
|
+
ot(p, i.doc, s, t.type), z(
|
|
444
445
|
i.doc,
|
|
445
446
|
p,
|
|
446
447
|
(h) => h.isTextblock
|
|
447
448
|
).forEach(({ node: h, pos: g }) => {
|
|
448
|
-
|
|
449
|
+
O(
|
|
449
450
|
h.textContent,
|
|
450
451
|
g,
|
|
451
452
|
u.from,
|
|
@@ -458,10 +459,10 @@ function ot(t) {
|
|
|
458
459
|
}
|
|
459
460
|
});
|
|
460
461
|
}
|
|
461
|
-
const
|
|
462
|
+
const lt = {
|
|
462
463
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
463
464
|
rel: "noopener noreferrer nofollow"
|
|
464
|
-
},
|
|
465
|
+
}, ct = W.create({
|
|
465
466
|
name: "CustomLink",
|
|
466
467
|
renderHTML({ HTMLAttributes: t }) {
|
|
467
468
|
return [
|
|
@@ -469,7 +470,7 @@ const at = {
|
|
|
469
470
|
m(
|
|
470
471
|
this.options.HTMLAttributes,
|
|
471
472
|
t,
|
|
472
|
-
|
|
473
|
+
lt
|
|
473
474
|
)
|
|
474
475
|
];
|
|
475
476
|
},
|
|
@@ -478,10 +479,10 @@ const at = {
|
|
|
478
479
|
},
|
|
479
480
|
addProseMirrorPlugins() {
|
|
480
481
|
return [
|
|
481
|
-
|
|
482
|
+
at({ type: this.type })
|
|
482
483
|
];
|
|
483
484
|
}
|
|
484
|
-
}),
|
|
485
|
+
}), dt = Ee.extend({
|
|
485
486
|
name: "ConfigurableImage",
|
|
486
487
|
addAttributes() {
|
|
487
488
|
return {
|
|
@@ -505,18 +506,18 @@ const at = {
|
|
|
505
506
|
}
|
|
506
507
|
};
|
|
507
508
|
}
|
|
508
|
-
}).configure({ inline: !0, allowBase64: !0 }),
|
|
509
|
+
}).configure({ inline: !0, allowBase64: !0 }), ut = A.extend({
|
|
509
510
|
parseHTML() {
|
|
510
511
|
return [{ tag: "div" }];
|
|
511
512
|
},
|
|
512
513
|
renderHTML({ HTMLAttributes: t }) {
|
|
513
514
|
return ["div", m(this.options.HTMLAttributes, t), 0];
|
|
514
515
|
}
|
|
515
|
-
}),
|
|
516
|
+
}), mt = {
|
|
516
517
|
name: "MentionComponent",
|
|
517
518
|
components: {
|
|
518
519
|
NodeViewWrapper: _,
|
|
519
|
-
DtLink:
|
|
520
|
+
DtLink: M
|
|
520
521
|
},
|
|
521
522
|
props: y,
|
|
522
523
|
computed: {
|
|
@@ -525,17 +526,17 @@ const at = {
|
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
528
|
};
|
|
528
|
-
var
|
|
529
|
-
var e = this,
|
|
530
|
-
return
|
|
531
|
-
},
|
|
532
|
-
ut,
|
|
529
|
+
var ht = function() {
|
|
530
|
+
var e = this, n = e._self._c;
|
|
531
|
+
return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
|
|
532
|
+
}, ft = [], pt = /* @__PURE__ */ c(
|
|
533
533
|
mt,
|
|
534
|
-
ht
|
|
534
|
+
ht,
|
|
535
|
+
ft
|
|
535
536
|
);
|
|
536
|
-
const
|
|
537
|
+
const gt = pt.exports, _t = L.extend({
|
|
537
538
|
addNodeView() {
|
|
538
|
-
return
|
|
539
|
+
return v(gt);
|
|
539
540
|
},
|
|
540
541
|
parseHTML() {
|
|
541
542
|
return [
|
|
@@ -568,11 +569,11 @@ const pt = ft.exports, gt = $.extend({
|
|
|
568
569
|
char: "@",
|
|
569
570
|
pluginKey: new f("mentionSuggestion")
|
|
570
571
|
}
|
|
571
|
-
}),
|
|
572
|
+
}), yt = {
|
|
572
573
|
name: "ChannelComponent",
|
|
573
574
|
components: {
|
|
574
575
|
NodeViewWrapper: _,
|
|
575
|
-
DtLink:
|
|
576
|
+
DtLink: M
|
|
576
577
|
},
|
|
577
578
|
props: y,
|
|
578
579
|
computed: {
|
|
@@ -581,18 +582,18 @@ const pt = ft.exports, gt = $.extend({
|
|
|
581
582
|
}
|
|
582
583
|
}
|
|
583
584
|
};
|
|
584
|
-
var
|
|
585
|
-
var e = this,
|
|
586
|
-
return
|
|
587
|
-
},
|
|
588
|
-
_t,
|
|
585
|
+
var wt = function() {
|
|
586
|
+
var e = this, n = e._self._c;
|
|
587
|
+
return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [e._v(" " + e._s(e.text) + " ")])], 1);
|
|
588
|
+
}, vt = [], bt = /* @__PURE__ */ c(
|
|
589
589
|
yt,
|
|
590
|
-
wt
|
|
590
|
+
wt,
|
|
591
|
+
vt
|
|
591
592
|
);
|
|
592
|
-
const
|
|
593
|
+
const xt = bt.exports, Ct = L.extend({
|
|
593
594
|
name: "channel",
|
|
594
595
|
addNodeView() {
|
|
595
|
-
return
|
|
596
|
+
return v(xt);
|
|
596
597
|
},
|
|
597
598
|
parseHTML() {
|
|
598
599
|
return [
|
|
@@ -625,7 +626,7 @@ const vt = bt.exports, xt = $.extend({
|
|
|
625
626
|
char: "#",
|
|
626
627
|
pluginKey: new f("channelSuggestion")
|
|
627
628
|
}
|
|
628
|
-
}),
|
|
629
|
+
}), kt = {
|
|
629
630
|
name: "SlashCommandsComponent",
|
|
630
631
|
components: {
|
|
631
632
|
NodeViewWrapper: _
|
|
@@ -641,27 +642,27 @@ const vt = bt.exports, xt = $.extend({
|
|
|
641
642
|
this.$parent.$emit("selected-command", this.$props.node.attrs.command);
|
|
642
643
|
}
|
|
643
644
|
};
|
|
644
|
-
var
|
|
645
|
-
var e = this,
|
|
646
|
-
return
|
|
647
|
-
},
|
|
648
|
-
Ct,
|
|
645
|
+
var Tt = function() {
|
|
646
|
+
var e = this, n = e._self._c;
|
|
647
|
+
return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [e._v(" " + e._s(e.text) + " ")]);
|
|
648
|
+
}, Et = [], Rt = /* @__PURE__ */ c(
|
|
649
649
|
kt,
|
|
650
|
-
|
|
650
|
+
Tt,
|
|
651
|
+
Et
|
|
651
652
|
);
|
|
652
|
-
const
|
|
653
|
-
let i =
|
|
653
|
+
const St = Rt.exports, Lt = (t, e) => [...t.matchAll(e)].map((r) => {
|
|
654
|
+
let i = r[2];
|
|
654
655
|
return i.endsWith(" ") || (i += " "), {
|
|
655
|
-
index:
|
|
656
|
+
index: r.index,
|
|
656
657
|
text: i,
|
|
657
|
-
match:
|
|
658
|
+
match: r
|
|
658
659
|
};
|
|
659
|
-
}), $t =
|
|
660
|
+
}), $t = L.extend({
|
|
660
661
|
name: "slash-commands",
|
|
661
662
|
group: "inline",
|
|
662
663
|
inline: !0,
|
|
663
664
|
addNodeView() {
|
|
664
|
-
return
|
|
665
|
+
return v(St);
|
|
665
666
|
},
|
|
666
667
|
parseHTML() {
|
|
667
668
|
return [
|
|
@@ -690,27 +691,27 @@ const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
|
|
|
690
691
|
return ["command-component", m(this.options.HTMLAttributes, t)];
|
|
691
692
|
},
|
|
692
693
|
addInputRules() {
|
|
693
|
-
var
|
|
694
|
-
const t = (
|
|
694
|
+
var n;
|
|
695
|
+
const t = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) $`);
|
|
695
696
|
return [
|
|
696
697
|
X({
|
|
697
698
|
find: e,
|
|
698
699
|
type: this.type,
|
|
699
|
-
getAttributes(
|
|
700
|
-
return { command:
|
|
700
|
+
getAttributes(r) {
|
|
701
|
+
return { command: r[2] };
|
|
701
702
|
}
|
|
702
703
|
})
|
|
703
704
|
];
|
|
704
705
|
},
|
|
705
706
|
addPasteRules() {
|
|
706
|
-
var
|
|
707
|
-
const t = (
|
|
707
|
+
var n;
|
|
708
|
+
const t = (n = this.options.suggestion) == null ? void 0 : n.items({ query: "" }).map((r) => r.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) ?$`, "g");
|
|
708
709
|
return [
|
|
709
|
-
|
|
710
|
-
find: (
|
|
710
|
+
E({
|
|
711
|
+
find: (r) => Lt(r, e),
|
|
711
712
|
type: this.type,
|
|
712
|
-
getAttributes(
|
|
713
|
-
return { command:
|
|
713
|
+
getAttributes(r) {
|
|
714
|
+
return { command: r[0].trim() };
|
|
714
715
|
}
|
|
715
716
|
})
|
|
716
717
|
];
|
|
@@ -720,11 +721,11 @@ const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
|
|
|
720
721
|
char: "/",
|
|
721
722
|
pluginKey: new f("slashCommandSuggestion")
|
|
722
723
|
}
|
|
723
|
-
}),
|
|
724
|
+
}), It = {
|
|
724
725
|
name: "MentionSuggestion",
|
|
725
726
|
components: {
|
|
726
|
-
DtAvatar:
|
|
727
|
-
DtStack:
|
|
727
|
+
DtAvatar: Le,
|
|
728
|
+
DtStack: b
|
|
728
729
|
},
|
|
729
730
|
props: {
|
|
730
731
|
item: {
|
|
@@ -761,69 +762,69 @@ const Rt = Tt.exports, Et = (t, e) => [...t.matchAll(e)].map((n) => {
|
|
|
761
762
|
}
|
|
762
763
|
}
|
|
763
764
|
};
|
|
764
|
-
var
|
|
765
|
-
var e = this,
|
|
766
|
-
return
|
|
767
|
-
}, At = [],
|
|
768
|
-
Lt,
|
|
765
|
+
var Ot = function() {
|
|
766
|
+
var e = this, n = e._self._c;
|
|
767
|
+
return n("dt-stack", { staticClass: "d-mention-suggestion__container", attrs: { direction: "row", gap: "400" } }, [n("dt-avatar", { attrs: { "full-name": e.name, "image-src": e.avatarSrc, "image-alt": e.name, "show-presence": e.showDetails, presence: e.presence, size: "sm" } }), n("dt-stack", { staticClass: "d-mention-suggestion__details-container", attrs: { gap: "100" } }, [n("span", { staticClass: "d-mention-suggestion__name" }, [e._v(" " + e._s(e.name) + " ")]), e.showDetails ? n("dt-stack", { staticClass: "d-label--sm-plain", attrs: { direction: "row", gap: "300" } }, [e.presenceText ? n("span", { staticClass: "d-mention-suggestion__presence", class: [e.presenceFontColorClass] }, [e._v(" " + e._s(e.presenceText) + " ")]) : e._e(), e.status && e.presenceText ? n("div", { staticClass: "d-mention-suggestion__divider" }, [e._v(" • ")]) : e._e(), e.status ? n("div", { staticClass: "d-mention-suggestion__status" }, [e._v(" " + e._s(e.status) + " ")]) : e._e()]) : e._e()], 1)], 1);
|
|
768
|
+
}, At = [], Dt = /* @__PURE__ */ c(
|
|
769
769
|
It,
|
|
770
|
+
Ot,
|
|
770
771
|
At
|
|
771
772
|
);
|
|
772
|
-
const
|
|
773
|
+
const Bt = Dt.exports, Mt = {
|
|
773
774
|
// This function comes from the user and passed to the editor directly.
|
|
774
775
|
// This will also activate the mention plugin on the editor
|
|
775
776
|
// items: ({ query }) => { return [] },
|
|
776
777
|
allowSpaces: !0,
|
|
777
778
|
render: () => {
|
|
778
|
-
let t, e,
|
|
779
|
+
let t, e, n = !1;
|
|
779
780
|
return {
|
|
780
|
-
onStart: (
|
|
781
|
+
onStart: (r) => {
|
|
781
782
|
t = new w(C, {
|
|
782
783
|
parent: void 0,
|
|
783
784
|
propsData: {
|
|
784
|
-
itemComponent:
|
|
785
|
+
itemComponent: Bt,
|
|
785
786
|
itemType: "mention",
|
|
786
|
-
...
|
|
787
|
+
...r
|
|
787
788
|
},
|
|
788
|
-
editor:
|
|
789
|
-
}),
|
|
790
|
-
getReferenceClientRect:
|
|
789
|
+
editor: r.editor
|
|
790
|
+
}), r.clientRect && (e = x("body", {
|
|
791
|
+
getReferenceClientRect: r.clientRect,
|
|
791
792
|
appendTo: () => document.body,
|
|
792
793
|
content: t.element,
|
|
793
794
|
showOnCreate: !1,
|
|
794
795
|
onShow: () => {
|
|
795
|
-
|
|
796
|
+
n = !0;
|
|
796
797
|
},
|
|
797
798
|
onHidden: () => {
|
|
798
|
-
|
|
799
|
+
n = !1;
|
|
799
800
|
},
|
|
800
801
|
interactive: !0,
|
|
801
802
|
trigger: "manual",
|
|
802
803
|
placement: "top-start",
|
|
803
804
|
zIndex: 650,
|
|
804
805
|
plugins: [k]
|
|
805
|
-
}),
|
|
806
|
+
}), r.items.length > 0 && (e == null || e[0].show()));
|
|
806
807
|
},
|
|
807
|
-
onUpdate(
|
|
808
|
-
t == null || t.updateProps(
|
|
809
|
-
getReferenceClientRect:
|
|
808
|
+
onUpdate(r) {
|
|
809
|
+
t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), r.clientRect && (e == null || e[0].setProps({
|
|
810
|
+
getReferenceClientRect: r.clientRect
|
|
810
811
|
}));
|
|
811
812
|
},
|
|
812
|
-
onKeyDown(
|
|
813
|
+
onKeyDown(r) {
|
|
813
814
|
var i;
|
|
814
|
-
if (
|
|
815
|
-
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(
|
|
815
|
+
if (n)
|
|
816
|
+
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
|
|
816
817
|
},
|
|
817
818
|
onExit() {
|
|
818
819
|
e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
|
|
819
820
|
}
|
|
820
821
|
};
|
|
821
822
|
}
|
|
822
|
-
},
|
|
823
|
+
}, jt = {
|
|
823
824
|
name: "ChannelSuggestion",
|
|
824
825
|
components: {
|
|
825
|
-
DtStack:
|
|
826
|
-
DtIconHash:
|
|
826
|
+
DtStack: b,
|
|
827
|
+
DtIconHash: $e,
|
|
827
828
|
DtIconLock: Ie
|
|
828
829
|
},
|
|
829
830
|
props: {
|
|
@@ -838,65 +839,65 @@ const Mt = jt.exports, Ot = {
|
|
|
838
839
|
}
|
|
839
840
|
}
|
|
840
841
|
};
|
|
841
|
-
var
|
|
842
|
-
var e = this,
|
|
843
|
-
return
|
|
844
|
-
}, Pt = [],
|
|
845
|
-
|
|
846
|
-
|
|
842
|
+
var Ht = function() {
|
|
843
|
+
var e = this, n = e._self._c;
|
|
844
|
+
return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [e.item.locked ? n("dt-icon-lock", { attrs: { size: "300" } }) : n("dt-icon-hash", { attrs: { size: "300" } }), n("span", [e._v(e._s(e.name))])], 1);
|
|
845
|
+
}, Pt = [], Ft = /* @__PURE__ */ c(
|
|
846
|
+
jt,
|
|
847
|
+
Ht,
|
|
847
848
|
Pt
|
|
848
849
|
);
|
|
849
|
-
const
|
|
850
|
+
const Nt = Ft.exports, Ut = {
|
|
850
851
|
// This function comes from the user and passed to the editor directly.
|
|
851
852
|
// This will also activate the mention plugin on the editor
|
|
852
853
|
// items: ({ query }) => { return [] },
|
|
853
854
|
allowSpaces: !0,
|
|
854
855
|
render: () => {
|
|
855
|
-
let t, e,
|
|
856
|
+
let t, e, n = !1;
|
|
856
857
|
return {
|
|
857
|
-
onStart: (
|
|
858
|
+
onStart: (r) => {
|
|
858
859
|
t = new w(C, {
|
|
859
860
|
parent: void 0,
|
|
860
861
|
propsData: {
|
|
861
|
-
itemComponent:
|
|
862
|
+
itemComponent: Nt,
|
|
862
863
|
itemType: "channel",
|
|
863
|
-
...
|
|
864
|
+
...r
|
|
864
865
|
},
|
|
865
|
-
editor:
|
|
866
|
-
}),
|
|
867
|
-
getReferenceClientRect:
|
|
866
|
+
editor: r.editor
|
|
867
|
+
}), r.clientRect && (e = x("body", {
|
|
868
|
+
getReferenceClientRect: r.clientRect,
|
|
868
869
|
appendTo: () => document.body,
|
|
869
870
|
content: t.element,
|
|
870
871
|
showOnCreate: !1,
|
|
871
872
|
onShow: () => {
|
|
872
|
-
|
|
873
|
+
n = !0;
|
|
873
874
|
},
|
|
874
875
|
onHidden: () => {
|
|
875
|
-
|
|
876
|
+
n = !1;
|
|
876
877
|
},
|
|
877
878
|
interactive: !0,
|
|
878
879
|
trigger: "manual",
|
|
879
880
|
placement: "top-start",
|
|
880
881
|
zIndex: 650,
|
|
881
882
|
plugins: [k]
|
|
882
|
-
}),
|
|
883
|
+
}), r.items.length > 0 && (e == null || e[0].show()));
|
|
883
884
|
},
|
|
884
|
-
onUpdate(
|
|
885
|
-
t == null || t.updateProps(
|
|
886
|
-
getReferenceClientRect:
|
|
885
|
+
onUpdate(r) {
|
|
886
|
+
t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), r.clientRect && (e == null || e[0].setProps({
|
|
887
|
+
getReferenceClientRect: r.clientRect
|
|
887
888
|
}));
|
|
888
889
|
},
|
|
889
|
-
onKeyDown(
|
|
890
|
+
onKeyDown(r) {
|
|
890
891
|
var i;
|
|
891
|
-
if (
|
|
892
|
-
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(
|
|
892
|
+
if (n)
|
|
893
|
+
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
|
|
893
894
|
},
|
|
894
895
|
onExit() {
|
|
895
896
|
e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
|
|
896
897
|
}
|
|
897
898
|
};
|
|
898
899
|
}
|
|
899
|
-
},
|
|
900
|
+
}, qt = {
|
|
900
901
|
name: "SlashCommandSuggestion",
|
|
901
902
|
props: {
|
|
902
903
|
item: {
|
|
@@ -916,73 +917,74 @@ const Ft = Ht.exports, qt = {
|
|
|
916
917
|
}
|
|
917
918
|
}
|
|
918
919
|
};
|
|
919
|
-
var
|
|
920
|
-
var e = this,
|
|
921
|
-
return
|
|
922
|
-
},
|
|
920
|
+
var Kt = function() {
|
|
921
|
+
var e = this, n = e._self._c;
|
|
922
|
+
return n("div", [n("div", { staticClass: "d-body--md-compact" }, [n("span", [e._v("/" + e._s(e.command))]), e.parametersExample ? n("span", [e._v(" " + e._s(e.parametersExample))]) : e._e()]), n("div", { staticClass: "d-body--sm d-fc-tertiary" }, [e._v(" " + e._s(e.description) + " ")])]);
|
|
923
|
+
}, Vt = [], zt = /* @__PURE__ */ c(
|
|
924
|
+
qt,
|
|
923
925
|
Kt,
|
|
924
|
-
|
|
925
|
-
Nt
|
|
926
|
+
Vt
|
|
926
927
|
);
|
|
927
|
-
const
|
|
928
|
+
const Wt = zt.exports, Xt = {
|
|
928
929
|
// This function comes from the user and passed to the editor directly.
|
|
929
930
|
// This will also activate the mention plugin on the editor
|
|
930
931
|
// items: ({ query }) => { return [] },
|
|
931
932
|
allowSpaces: !0,
|
|
932
933
|
startOfLine: !0,
|
|
933
934
|
render: () => {
|
|
934
|
-
let t, e,
|
|
935
|
+
let t, e, n = !1;
|
|
935
936
|
return {
|
|
936
|
-
onStart: (
|
|
937
|
+
onStart: (r) => {
|
|
937
938
|
t = new w(C, {
|
|
938
939
|
parent: void 0,
|
|
939
940
|
propsData: {
|
|
940
|
-
itemComponent:
|
|
941
|
+
itemComponent: Wt,
|
|
941
942
|
itemType: "slash-command",
|
|
942
|
-
...
|
|
943
|
+
...r
|
|
943
944
|
},
|
|
944
|
-
editor:
|
|
945
|
-
}),
|
|
946
|
-
getReferenceClientRect:
|
|
945
|
+
editor: r.editor
|
|
946
|
+
}), r.clientRect && (e = x("body", {
|
|
947
|
+
getReferenceClientRect: r.clientRect,
|
|
947
948
|
appendTo: () => document.body,
|
|
948
949
|
content: t.element,
|
|
949
950
|
showOnCreate: !1,
|
|
950
951
|
onShow: () => {
|
|
951
|
-
|
|
952
|
+
n = !0;
|
|
952
953
|
},
|
|
953
954
|
onHidden: () => {
|
|
954
|
-
|
|
955
|
+
n = !1;
|
|
955
956
|
},
|
|
956
957
|
interactive: !0,
|
|
957
958
|
trigger: "manual",
|
|
958
959
|
placement: "top-start",
|
|
959
960
|
zIndex: 650,
|
|
960
961
|
plugins: [k]
|
|
961
|
-
}),
|
|
962
|
+
}), r.items.length > 0 && (e == null || e[0].show()));
|
|
962
963
|
},
|
|
963
|
-
onUpdate(
|
|
964
|
-
t == null || t.updateProps(
|
|
965
|
-
getReferenceClientRect:
|
|
964
|
+
onUpdate(r) {
|
|
965
|
+
t == null || t.updateProps(r), r.items.length > 0 ? e == null || e[0].show() : e == null || e[0].hide(), r.clientRect && (e == null || e[0].setProps({
|
|
966
|
+
getReferenceClientRect: r.clientRect
|
|
966
967
|
}));
|
|
967
968
|
},
|
|
968
|
-
onKeyDown(
|
|
969
|
+
onKeyDown(r) {
|
|
969
970
|
var i;
|
|
970
|
-
if (
|
|
971
|
-
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(
|
|
971
|
+
if (n)
|
|
972
|
+
return (i = t == null ? void 0 : t.ref) == null ? void 0 : i.onKeyDown(r);
|
|
972
973
|
},
|
|
973
974
|
onExit() {
|
|
974
975
|
e == null || e[0].destroy(), e = null, t == null || t.destroy(), t = null;
|
|
975
976
|
}
|
|
976
977
|
};
|
|
977
978
|
}
|
|
978
|
-
},
|
|
979
|
+
}, Jt = {
|
|
979
980
|
name: "DtRichTextEditor",
|
|
980
981
|
components: {
|
|
981
|
-
EditorContent:
|
|
982
|
-
BubbleMenu:
|
|
983
|
-
DtButton:
|
|
984
|
-
DtStack:
|
|
982
|
+
EditorContent: H,
|
|
983
|
+
BubbleMenu: P,
|
|
984
|
+
DtButton: Ae,
|
|
985
|
+
DtStack: b
|
|
985
986
|
},
|
|
987
|
+
mixins: [De],
|
|
986
988
|
props: {
|
|
987
989
|
/**
|
|
988
990
|
* Value of the input. The object format should match TipTap's JSON
|
|
@@ -1006,6 +1008,14 @@ const zt = Vt.exports, Wt = {
|
|
|
1006
1008
|
type: Boolean,
|
|
1007
1009
|
default: !1
|
|
1008
1010
|
},
|
|
1011
|
+
/**
|
|
1012
|
+
* When this option is false the editor will only ever paste plain text, no rich text formatting will be applied,
|
|
1013
|
+
* and any HTML will be rendered as text.
|
|
1014
|
+
*/
|
|
1015
|
+
pasteRichText: {
|
|
1016
|
+
type: Boolean,
|
|
1017
|
+
default: !0
|
|
1018
|
+
},
|
|
1009
1019
|
/**
|
|
1010
1020
|
* Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
|
|
1011
1021
|
* line breaks can still be entered by pressing shift+enter.
|
|
@@ -1058,7 +1068,7 @@ const zt = Vt.exports, Wt = {
|
|
|
1058
1068
|
type: String,
|
|
1059
1069
|
default: "html",
|
|
1060
1070
|
validator(t) {
|
|
1061
|
-
return
|
|
1071
|
+
return Se.includes(t);
|
|
1062
1072
|
}
|
|
1063
1073
|
},
|
|
1064
1074
|
/**
|
|
@@ -1332,17 +1342,17 @@ const zt = Vt.exports, Wt = {
|
|
|
1332
1342
|
// eslint-disable-next-line complexity
|
|
1333
1343
|
extensions() {
|
|
1334
1344
|
const t = [Z, de, me, te];
|
|
1335
|
-
t.push(this.useDivTags ?
|
|
1336
|
-
renderText({ node:
|
|
1337
|
-
return
|
|
1345
|
+
t.push(this.useDivTags ? ut : A), this.allowBlockquote && t.push(Y), this.allowBold && t.push(ne), this.allowBulletList && (t.push(re), t.push(oe.extend({
|
|
1346
|
+
renderText({ node: r }) {
|
|
1347
|
+
return r.textContent;
|
|
1338
1348
|
}
|
|
1339
1349
|
})), t.push(ae)), this.allowItalic && t.push(ie), this.allowStrike && t.push(le), this.allowUnderline && t.push(ce), this.placeholder && t.push(
|
|
1340
1350
|
ee.configure({ placeholder: this.placeholder })
|
|
1341
1351
|
);
|
|
1342
|
-
const e = this,
|
|
1352
|
+
const e = this, n = J.create({
|
|
1343
1353
|
addKeyboardShortcuts() {
|
|
1344
1354
|
return {
|
|
1345
|
-
"Shift-Enter": ({ editor:
|
|
1355
|
+
"Shift-Enter": ({ editor: r }) => e.allowLineBreaks ? !1 : (r.commands.first(({ commands: i }) => [
|
|
1346
1356
|
() => i.newlineInCode(),
|
|
1347
1357
|
() => e.allowBulletList && i.splitListItem("listItem"),
|
|
1348
1358
|
() => i.createParagraphNear(),
|
|
@@ -1353,38 +1363,38 @@ const zt = Vt.exports, Wt = {
|
|
|
1353
1363
|
};
|
|
1354
1364
|
}
|
|
1355
1365
|
});
|
|
1356
|
-
if (t.push(
|
|
1366
|
+
if (t.push(n), this.link && t.push(se.extend({ inclusive: !1 }).configure({
|
|
1357
1367
|
HTMLAttributes: {
|
|
1358
1368
|
class: "d-link d-wb-break-all"
|
|
1359
1369
|
},
|
|
1360
1370
|
openOnClick: !1,
|
|
1361
1371
|
autolink: !0,
|
|
1362
|
-
protocols:
|
|
1363
|
-
})), this.customLink && t.push(this.getExtension(
|
|
1364
|
-
const
|
|
1365
|
-
t.push(
|
|
1372
|
+
protocols: $
|
|
1373
|
+
})), this.customLink && t.push(this.getExtension(ct, this.customLink)), this.mentionSuggestion) {
|
|
1374
|
+
const r = { ...this.mentionSuggestion, ...Mt };
|
|
1375
|
+
t.push(_t.configure({ suggestion: r }));
|
|
1366
1376
|
}
|
|
1367
1377
|
if (this.channelSuggestion) {
|
|
1368
|
-
const
|
|
1369
|
-
t.push(
|
|
1378
|
+
const r = { ...this.channelSuggestion, ...Ut };
|
|
1379
|
+
t.push(Ct.configure({ suggestion: r }));
|
|
1370
1380
|
}
|
|
1371
1381
|
if (this.slashCommandSuggestion) {
|
|
1372
|
-
const
|
|
1373
|
-
t.push($t.configure({ suggestion:
|
|
1382
|
+
const r = { ...this.slashCommandSuggestion, ...Xt };
|
|
1383
|
+
t.push($t.configure({ suggestion: r }));
|
|
1374
1384
|
}
|
|
1375
|
-
return t.push(
|
|
1385
|
+
return t.push(tt), t.push(ue.configure({
|
|
1376
1386
|
types: ["paragraph"]
|
|
1377
1387
|
})), this.allowCode && t.push(Q), this.allowCodeblock && t.push(G.extend({
|
|
1378
|
-
renderText({ node:
|
|
1388
|
+
renderText({ node: r }) {
|
|
1379
1389
|
return `\`\`\`
|
|
1380
|
-
${
|
|
1390
|
+
${r.textContent}
|
|
1381
1391
|
\`\`\``;
|
|
1382
1392
|
}
|
|
1383
1393
|
}).configure({
|
|
1384
1394
|
HTMLAttributes: {
|
|
1385
1395
|
class: "d-rich-text-editor__code-block"
|
|
1386
1396
|
}
|
|
1387
|
-
})), this.allowInlineImages && t.push(
|
|
1397
|
+
})), this.allowInlineImages && t.push(dt), (this.allowFontFamily || this.allowFontColor) && (t.push(he), this.allowFontColor && t.push(fe), this.allowFontFamily && t.push(pe)), this.additionalExtensions.length && t.push(...this.additionalExtensions), t;
|
|
1388
1398
|
},
|
|
1389
1399
|
inputAttrs() {
|
|
1390
1400
|
const t = {
|
|
@@ -1424,7 +1434,7 @@ ${n.textContent}
|
|
|
1424
1434
|
this.destroyEditor();
|
|
1425
1435
|
},
|
|
1426
1436
|
mounted() {
|
|
1427
|
-
|
|
1437
|
+
Te(this.$el, this.$options.name), this.processValue(this.value, !1);
|
|
1428
1438
|
},
|
|
1429
1439
|
methods: {
|
|
1430
1440
|
createEditor() {
|
|
@@ -1433,33 +1443,33 @@ ${n.textContent}
|
|
|
1433
1443
|
content: this.value,
|
|
1434
1444
|
editable: this.editable,
|
|
1435
1445
|
extensions: this.extensions,
|
|
1446
|
+
parseOptions: {
|
|
1447
|
+
preserveWhitespace: "full"
|
|
1448
|
+
},
|
|
1436
1449
|
editorProps: {
|
|
1437
1450
|
attributes: {
|
|
1438
1451
|
...this.inputAttrs,
|
|
1439
1452
|
class: this.inputClass
|
|
1440
1453
|
},
|
|
1441
|
-
handlePaste: (t, e) => {
|
|
1442
|
-
if (!this.
|
|
1443
|
-
const
|
|
1444
|
-
if (
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
return !1;
|
|
1449
|
-
const i = n.replace(/\n/g, "<br>").replace(/ {2}/g, " ");
|
|
1450
|
-
return this.editor.chain().focus().insertContent(i).run(), !0;
|
|
1454
|
+
handlePaste: (t, e, n) => {
|
|
1455
|
+
if (!this.pasteRichText) {
|
|
1456
|
+
const i = (e.clipboardData || window.clipboardData).getData("text/plain");
|
|
1457
|
+
if (i) {
|
|
1458
|
+
const { tr: o } = t.state, { from: s, to: a } = t.state.selection;
|
|
1459
|
+
return o.insertText(i, s, a), t.dispatch(o), !0;
|
|
1460
|
+
}
|
|
1451
1461
|
}
|
|
1452
1462
|
return !1;
|
|
1453
1463
|
},
|
|
1454
1464
|
// Moves the <br /> tags inside the previous closing tag to avoid
|
|
1455
1465
|
// Prosemirror wrapping them within another </p> tag.
|
|
1456
1466
|
transformPastedHTML(t) {
|
|
1457
|
-
return t.replace(/(<\/\w+>)((<br \/>)+)/g, "$2$3$1");
|
|
1467
|
+
return t.replace(/<br\s*\/?>/gi, "<br />").replace(/(<\/(?:p|div)>)\s*\n/gi, "$1<br />").replace(/\n(?=\S)/g, "<br />").replace(/(<\/\w+>)((<br \/>)+)/g, "$2$3$1");
|
|
1458
1468
|
}
|
|
1459
1469
|
}
|
|
1460
1470
|
}), this.addEditorListeners();
|
|
1461
1471
|
},
|
|
1462
|
-
bubbleMenuShouldShow({ editor: t, view: e, state:
|
|
1472
|
+
bubbleMenuShouldShow({ editor: t, view: e, state: n, oldState: r, from: i, to: o }) {
|
|
1463
1473
|
return t.isActive("link");
|
|
1464
1474
|
},
|
|
1465
1475
|
/**
|
|
@@ -1469,7 +1479,7 @@ ${n.textContent}
|
|
|
1469
1479
|
*/
|
|
1470
1480
|
getSelectedLinkText(t) {
|
|
1471
1481
|
var a, l, d;
|
|
1472
|
-
const { view: e, state:
|
|
1482
|
+
const { view: e, state: n } = t, { from: r, to: i } = e.state.selection, o = n.doc.textBetween(r, i, ""), s = this.editor.state.doc.nodeAt(r);
|
|
1473
1483
|
return s && ((d = (l = (a = s.marks) == null ? void 0 : a.at(0)) == null ? void 0 : l.type) == null ? void 0 : d.name) === "link" ? s.textContent : o;
|
|
1474
1484
|
},
|
|
1475
1485
|
editLink() {
|
|
@@ -1480,33 +1490,33 @@ ${n.textContent}
|
|
|
1480
1490
|
this.$emit("edit-link", e);
|
|
1481
1491
|
},
|
|
1482
1492
|
removeLink() {
|
|
1483
|
-
var t, e,
|
|
1484
|
-
(
|
|
1493
|
+
var t, e, n, r;
|
|
1494
|
+
(r = (n = (e = (t = this.editor) == null ? void 0 : t.chain()) == null ? void 0 : e.focus()) == null ? void 0 : n.unsetLink()) == null || r.run();
|
|
1485
1495
|
},
|
|
1486
1496
|
openLink() {
|
|
1487
|
-
var e,
|
|
1488
|
-
(
|
|
1497
|
+
var e, n;
|
|
1498
|
+
(n = (e = this.editor) == null ? void 0 : e.chain()) == null || n.focus();
|
|
1489
1499
|
const t = this.editor.getAttributes("link").href;
|
|
1490
1500
|
window.open(t, "_blank");
|
|
1491
1501
|
},
|
|
1492
1502
|
// eslint-disable-next-line complexity
|
|
1493
|
-
setLink(t, e,
|
|
1503
|
+
setLink(t, e, n, r = $, i) {
|
|
1494
1504
|
var a, l, d;
|
|
1495
1505
|
if (!t) {
|
|
1496
1506
|
this.removeLink();
|
|
1497
1507
|
return;
|
|
1498
1508
|
}
|
|
1499
|
-
|
|
1509
|
+
r.find((u) => u.test(t)) || (t = `${i}${t}`), this.editor.chain().focus().extendMarkRange("link").run();
|
|
1500
1510
|
const s = (d = (l = (a = this.editor) == null ? void 0 : a.view) == null ? void 0 : l.state) == null ? void 0 : d.selection;
|
|
1501
|
-
this.editor.chain().focus().insertContent(e).setTextSelection({ from: s.from, to: s.from + e.length }).setLink({ href: t, class:
|
|
1511
|
+
this.editor.chain().focus().insertContent(e).setTextSelection({ from: s.from, to: s.from + e.length }).setLink({ href: t, class: n.class }).run();
|
|
1502
1512
|
},
|
|
1503
1513
|
// eslint-disable-next-line complexity
|
|
1504
1514
|
processValue(t, e = !0) {
|
|
1505
|
-
const
|
|
1506
|
-
if (!(e &&
|
|
1515
|
+
const n = this.getOutput();
|
|
1516
|
+
if (!(e && Oe(t, n))) {
|
|
1507
1517
|
if (typeof t == "string" && this.outputFormat === "text") {
|
|
1508
|
-
const
|
|
1509
|
-
t = t == null ? void 0 : t.replace(
|
|
1518
|
+
const r = new RegExp(`(${D})`, "g");
|
|
1519
|
+
t = t == null ? void 0 : t.replace(r, '<emoji-component code="$1"></emoji-component>');
|
|
1510
1520
|
}
|
|
1511
1521
|
this.editor.commands.setContent(t, !1);
|
|
1512
1522
|
}
|
|
@@ -1519,11 +1529,11 @@ ${n.textContent}
|
|
|
1519
1529
|
this.$emit("input", t), this.$emit("update:value", t);
|
|
1520
1530
|
const e = this.editor.getJSON();
|
|
1521
1531
|
this.$emit("json-input", e);
|
|
1522
|
-
const
|
|
1523
|
-
this.$emit("html-input",
|
|
1524
|
-
const
|
|
1532
|
+
const n = this.editor.getHTML();
|
|
1533
|
+
this.$emit("html-input", n);
|
|
1534
|
+
const r = this.editor.getText({ blockSeparator: `
|
|
1525
1535
|
` });
|
|
1526
|
-
this.$emit("text-input",
|
|
1536
|
+
this.$emit("text-input", r);
|
|
1527
1537
|
},
|
|
1528
1538
|
/**
|
|
1529
1539
|
* The Editor exposes event hooks that we have to map our emits into. See
|
|
@@ -1560,8 +1570,8 @@ ${n.textContent}
|
|
|
1560
1570
|
}
|
|
1561
1571
|
},
|
|
1562
1572
|
getExtension(t, e) {
|
|
1563
|
-
var
|
|
1564
|
-
return typeof e == "boolean" ? t : (
|
|
1573
|
+
var n;
|
|
1574
|
+
return typeof e == "boolean" ? t : (n = t.configure) == null ? void 0 : n.call(t, e);
|
|
1565
1575
|
},
|
|
1566
1576
|
updateEditorAttributes(t) {
|
|
1567
1577
|
this.editor.setOptions({
|
|
@@ -1579,15 +1589,15 @@ ${n.textContent}
|
|
|
1579
1589
|
}
|
|
1580
1590
|
}
|
|
1581
1591
|
};
|
|
1582
|
-
var
|
|
1583
|
-
var e = this,
|
|
1584
|
-
return
|
|
1585
|
-
},
|
|
1586
|
-
Xt,
|
|
1592
|
+
var Yt = function() {
|
|
1593
|
+
var e = this, n = e._self._c;
|
|
1594
|
+
return n("div", [e.editor && e.link && !e.hideLinkBubbleMenu ? n("bubble-menu", { staticStyle: { visibility: "visible" }, attrs: { editor: e.editor, "should-show": e.bubbleMenuShouldShow, "tippy-options": e.tippyOptions } }, [n("div", { staticClass: "d-popover__dialog" }, [n("dt-stack", { staticClass: "d-rich-text-editor-bubble-menu__button-stack", attrs: { direction: "row", gap: "0" } }, [n("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: e.editLink } }, [e._v(" " + e._s(e.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")) + " ")]), n("dt-button", { attrs: { kind: "muted", importance: "clear" }, on: { click: e.openLink } }, [e._v(" " + e._s(e.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")) + " ")]), n("dt-button", { attrs: { kind: "danger", importance: "clear" }, on: { click: e.removeLink } }, [e._v(" " + e._s(e.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")) + " ")])], 1)], 1)]) : e._e(), n("editor-content", e._g({ ref: "editor", staticClass: "d-rich-text-editor", attrs: { editor: e.editor, "data-qa": "dt-rich-text-editor" } }, e.editorListeners))], 1);
|
|
1595
|
+
}, Gt = [], Qt = /* @__PURE__ */ c(
|
|
1587
1596
|
Jt,
|
|
1588
|
-
Yt
|
|
1597
|
+
Yt,
|
|
1598
|
+
Gt
|
|
1589
1599
|
);
|
|
1590
|
-
const Kn =
|
|
1600
|
+
const Kn = Qt.exports;
|
|
1591
1601
|
export {
|
|
1592
1602
|
Kn as default
|
|
1593
1603
|
};
|