@dialpad/dialtone 9.126.5 → 9.127.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 +1 -1
- package/dist/tokens/doc.json +29906 -29906
- 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 +7 -7
- 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 +5 -5
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.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 +10 -10
- package/dist/vue2/lib/datepicker/datepicker.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 +24 -26
- package/dist/vue2/lib/dropdown/dropdown.js.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
- package/dist/vue2/lib/emoji-picker/emoji-picker.js +1 -0
- package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +3 -3
- 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 +65 -65
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/lib/toast/toast.cjs.map +1 -1
- package/dist/vue2/lib/toast/toast.js.map +1 -1
- package/dist/vue2/localization/de-DE.cjs +1 -13
- package/dist/vue2/localization/de-DE.cjs.map +1 -1
- package/dist/vue2/localization/de-DE.js +1 -13
- package/dist/vue2/localization/de-DE.js.map +1 -1
- package/dist/vue2/localization/es-LA.cjs +1 -13
- package/dist/vue2/localization/es-LA.cjs.map +1 -1
- package/dist/vue2/localization/es-LA.js +1 -13
- package/dist/vue2/localization/es-LA.js.map +1 -1
- package/dist/vue2/localization/fr-FR.cjs +1 -13
- package/dist/vue2/localization/fr-FR.cjs.map +1 -1
- package/dist/vue2/localization/fr-FR.js +1 -13
- package/dist/vue2/localization/fr-FR.js.map +1 -1
- package/dist/vue2/localization/it-IT.cjs +1 -13
- package/dist/vue2/localization/it-IT.cjs.map +1 -1
- package/dist/vue2/localization/it-IT.js +1 -13
- package/dist/vue2/localization/it-IT.js.map +1 -1
- package/dist/vue2/localization/ja-JP.cjs +1 -8
- package/dist/vue2/localization/ja-JP.cjs.map +1 -1
- package/dist/vue2/localization/ja-JP.js +1 -8
- package/dist/vue2/localization/ja-JP.js.map +1 -1
- package/dist/vue2/localization/nl-NL.cjs +1 -13
- package/dist/vue2/localization/nl-NL.cjs.map +1 -1
- package/dist/vue2/localization/nl-NL.js +1 -13
- package/dist/vue2/localization/nl-NL.js.map +1 -1
- package/dist/vue2/localization/pt-BR.cjs +1 -13
- package/dist/vue2/localization/pt-BR.cjs.map +1 -1
- package/dist/vue2/localization/pt-BR.js +1 -13
- package/dist/vue2/localization/pt-BR.js.map +1 -1
- package/dist/vue2/localization/ru-RU.cjs +1 -23
- package/dist/vue2/localization/ru-RU.cjs.map +1 -1
- package/dist/vue2/localization/ru-RU.js +1 -23
- package/dist/vue2/localization/ru-RU.js.map +1 -1
- package/dist/vue2/localization/zh-CN.cjs +1 -8
- package/dist/vue2/localization/zh-CN.cjs.map +1 -1
- package/dist/vue2/localization/zh-CN.js +1 -8
- package/dist/vue2/localization/zh-CN.js.map +1 -1
- package/dist/vue2/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +1 -1
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/vue3/common/mixins/index.cjs +1 -1
- package/dist/vue3/common/mixins/index.js +8 -10
- package/dist/vue3/common/mixins/index.js.map +1 -1
- package/dist/vue3/common/utils/index.cjs +1 -1
- package/dist/vue3/common/utils/index.cjs.map +1 -1
- package/dist/vue3/common/utils/index.js +42 -38
- package/dist/vue3/common/utils/index.js.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +1 -1
- package/dist/vue3/dialtone-vue.js +298 -299
- package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/vue3/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
- package/dist/vue3/lib/attachment-carousel/attachment-carousel.js +86 -110
- package/dist/vue3/lib/attachment-carousel/attachment-carousel.js.map +1 -1
- package/dist/vue3/lib/banner/banner.cjs +2 -2
- package/dist/vue3/lib/banner/banner.cjs.map +1 -1
- package/dist/vue3/lib/banner/banner.js +27 -38
- package/dist/vue3/lib/banner/banner.js.map +1 -1
- package/dist/vue3/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/vue3/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/dist/vue3/lib/breadcrumbs/breadcrumbs.js +20 -18
- package/dist/vue3/lib/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/vue3/lib/button/button.cjs +1 -1
- package/dist/vue3/lib/button/button.cjs.map +1 -1
- package/dist/vue3/lib/button/button.js +26 -24
- package/dist/vue3/lib/button/button.js.map +1 -1
- package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +36 -41
- package/dist/vue3/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js +35 -37
- package/dist/vue3/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/vue3/lib/chip/chip.cjs +1 -1
- package/dist/vue3/lib/chip/chip.cjs.map +1 -1
- package/dist/vue3/lib/chip/chip.js +54 -57
- package/dist/vue3/lib/chip/chip.js.map +1 -1
- package/dist/vue3/lib/combobox/combobox-constants.cjs +1 -1
- package/dist/vue3/lib/combobox/combobox-constants.cjs.map +1 -1
- package/dist/vue3/lib/combobox/combobox-constants.js +2 -2
- package/dist/vue3/lib/combobox/combobox-constants.js.map +1 -1
- package/dist/vue3/lib/combobox/combobox-empty-list.cjs.map +1 -1
- package/dist/vue3/lib/combobox/combobox-empty-list.js.map +1 -1
- package/dist/vue3/lib/combobox/combobox-loading-list.cjs.map +1 -1
- package/dist/vue3/lib/combobox/combobox-loading-list.js.map +1 -1
- package/dist/vue3/lib/combobox/combobox.cjs +2 -2
- package/dist/vue3/lib/combobox/combobox.cjs.map +1 -1
- package/dist/vue3/lib/combobox/combobox.js +20 -20
- package/dist/vue3/lib/combobox/combobox.js.map +1 -1
- package/dist/vue3/lib/combobox/index.cjs +1 -1
- package/dist/vue3/lib/combobox/index.js +3 -3
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +119 -124
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js +76 -80
- package/dist/vue3/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
- package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs +1 -1
- package/dist/vue3/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
- package/dist/vue3/lib/contact-centers-row/contact-centers-row.js +68 -63
- package/dist/vue3/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/vue3/lib/contact-row/contact-row.cjs +1 -1
- package/dist/vue3/lib/contact-row/contact-row.cjs.map +1 -1
- package/dist/vue3/lib/contact-row/contact-row.js +32 -48
- package/dist/vue3/lib/contact-row/contact-row.js.map +1 -1
- package/dist/vue3/lib/datepicker/datepicker-constants.cjs +1 -1
- package/dist/vue3/lib/datepicker/datepicker-constants.cjs.map +1 -1
- package/dist/vue3/lib/datepicker/datepicker-constants.js +2 -3
- package/dist/vue3/lib/datepicker/datepicker-constants.js.map +1 -1
- package/dist/vue3/lib/datepicker/datepicker.cjs +1 -1
- package/dist/vue3/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/vue3/lib/datepicker/datepicker.js +264 -349
- package/dist/vue3/lib/datepicker/datepicker.js.map +1 -1
- package/dist/vue3/lib/datepicker/formatUtils.cjs +1 -1
- package/dist/vue3/lib/datepicker/formatUtils.cjs.map +1 -1
- package/dist/vue3/lib/datepicker/formatUtils.js +21 -20
- package/dist/vue3/lib/datepicker/formatUtils.js.map +1 -1
- package/dist/vue3/lib/datepicker/utils.cjs +1 -1
- package/dist/vue3/lib/datepicker/utils.cjs.map +1 -1
- package/dist/vue3/lib/datepicker/utils.js +12 -11
- package/dist/vue3/lib/datepicker/utils.js.map +1 -1
- package/dist/vue3/lib/description-list/description-list.cjs +1 -1
- package/dist/vue3/lib/description-list/description-list.cjs.map +1 -1
- package/dist/vue3/lib/description-list/description-list.js +10 -10
- package/dist/vue3/lib/description-list/description-list.js.map +1 -1
- package/dist/vue3/lib/dropdown/dropdown.cjs +1 -1
- package/dist/vue3/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/vue3/lib/dropdown/dropdown.js +36 -46
- package/dist/vue3/lib/dropdown/dropdown.js.map +1 -1
- package/dist/vue3/lib/editor/editor.cjs +1 -1
- package/dist/vue3/lib/editor/editor.cjs.map +1 -1
- package/dist/vue3/lib/editor/editor.js +169 -186
- package/dist/vue3/lib/editor/editor.js.map +1 -1
- package/dist/vue3/lib/editor/index.cjs +1 -1
- package/dist/vue3/lib/editor/index.js +2 -2
- package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs +1 -1
- package/dist/vue3/lib/emoji-picker/emoji-picker-constants.cjs.map +1 -1
- package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js +7 -20
- package/dist/vue3/lib/emoji-picker/emoji-picker-constants.js.map +1 -1
- package/dist/vue3/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/vue3/lib/emoji-picker/emoji-picker.cjs.map +1 -1
- package/dist/vue3/lib/emoji-picker/emoji-picker.js +419 -477
- package/dist/vue3/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue3/lib/emoji-picker/index.cjs +1 -1
- package/dist/vue3/lib/emoji-picker/index.js +3 -4
- package/dist/vue3/lib/emoji-row/emoji-row-constants.cjs +1 -1
- package/dist/vue3/lib/emoji-row/emoji-row-constants.cjs.map +1 -1
- package/dist/vue3/lib/emoji-row/emoji-row-constants.js +6 -7
- package/dist/vue3/lib/emoji-row/emoji-row-constants.js.map +1 -1
- package/dist/vue3/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/vue3/lib/emoji-row/emoji-row.cjs.map +1 -1
- package/dist/vue3/lib/emoji-row/emoji-row.js +53 -43
- package/dist/vue3/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs +1 -1
- package/dist/vue3/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
- package/dist/vue3/lib/feed-item-pill/feed-item-pill.js +52 -53
- package/dist/vue3/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/vue3/lib/general-row/general-row.cjs +1 -1
- package/dist/vue3/lib/general-row/general-row.cjs.map +1 -1
- package/dist/vue3/lib/general-row/general-row.js +133 -118
- package/dist/vue3/lib/general-row/general-row.js.map +1 -1
- package/dist/vue3/lib/group-row/group-row.cjs +1 -1
- package/dist/vue3/lib/group-row/group-row.cjs.map +1 -1
- package/dist/vue3/lib/group-row/group-row.js +53 -39
- package/dist/vue3/lib/group-row/group-row.js.map +1 -1
- package/dist/vue3/lib/icon/icon-constants.cjs.map +1 -1
- package/dist/vue3/lib/icon/icon-constants.js.map +1 -1
- package/dist/vue3/lib/icon/icon.cjs +1 -1
- package/dist/vue3/lib/icon/icon.cjs.map +1 -1
- package/dist/vue3/lib/icon/icon.js +15 -11
- package/dist/vue3/lib/icon/icon.js.map +1 -1
- package/dist/vue3/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/vue3/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/vue3/lib/image-viewer/image-viewer.js +51 -47
- package/dist/vue3/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/vue3/lib/ivr-node/ivr-node-constants.cjs +1 -1
- package/dist/vue3/lib/ivr-node/ivr-node-constants.cjs.map +1 -1
- package/dist/vue3/lib/ivr-node/ivr-node-constants.js +24 -24
- package/dist/vue3/lib/ivr-node/ivr-node-constants.js.map +1 -1
- package/dist/vue3/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/vue3/lib/ivr-node/ivr-node.cjs.map +1 -1
- package/dist/vue3/lib/ivr-node/ivr-node.js +80 -76
- package/dist/vue3/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/vue3/lib/message-input/message-input-link.cjs +1 -1
- package/dist/vue3/lib/message-input/message-input-link.cjs.map +1 -1
- package/dist/vue3/lib/message-input/message-input-link.js +100 -77
- package/dist/vue3/lib/message-input/message-input-link.js.map +1 -1
- package/dist/vue3/lib/message-input/message-input-topbar.cjs +1 -1
- package/dist/vue3/lib/message-input/message-input-topbar.cjs.map +1 -1
- package/dist/vue3/lib/message-input/message-input-topbar.js +126 -94
- package/dist/vue3/lib/message-input/message-input-topbar.js.map +1 -1
- package/dist/vue3/lib/message-input/message-input.cjs +1 -1
- package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
- package/dist/vue3/lib/message-input/message-input.js +272 -296
- package/dist/vue3/lib/message-input/message-input.js.map +1 -1
- package/dist/vue3/lib/modal/modal.cjs +1 -2
- package/dist/vue3/lib/modal/modal.cjs.map +1 -1
- package/dist/vue3/lib/modal/modal.js +64 -79
- package/dist/vue3/lib/modal/modal.js.map +1 -1
- package/dist/vue3/lib/notice/notice-action.cjs +1 -1
- package/dist/vue3/lib/notice/notice-action.cjs.map +1 -1
- package/dist/vue3/lib/notice/notice-action.js +38 -39
- package/dist/vue3/lib/notice/notice-action.js.map +1 -1
- package/dist/vue3/lib/notice/notice.cjs +1 -1
- package/dist/vue3/lib/notice/notice.cjs.map +1 -1
- package/dist/vue3/lib/notice/notice.js +37 -49
- package/dist/vue3/lib/notice/notice.js.map +1 -1
- package/dist/vue3/lib/pagination/pagination.cjs +1 -1
- package/dist/vue3/lib/pagination/pagination.cjs.map +1 -1
- package/dist/vue3/lib/pagination/pagination.js +72 -81
- package/dist/vue3/lib/pagination/pagination.js.map +1 -1
- package/dist/vue3/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/vue3/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/vue3/lib/popover/popover-header-footer.js +44 -45
- package/dist/vue3/lib/popover/popover-header-footer.js.map +1 -1
- package/dist/vue3/lib/popover/popover.cjs +1 -1
- package/dist/vue3/lib/popover/popover.cjs.map +1 -1
- package/dist/vue3/lib/popover/popover.js +26 -37
- package/dist/vue3/lib/popover/popover.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +4 -4
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +187 -185
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue3/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
- package/dist/vue3/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/vue3/lib/time-pill/time-pill.cjs.map +1 -1
- package/dist/vue3/lib/time-pill/time-pill.js.map +1 -1
- package/dist/vue3/lib/toast/toast.cjs +1 -1
- package/dist/vue3/lib/toast/toast.cjs.map +1 -1
- package/dist/vue3/lib/toast/toast.js +83 -127
- package/dist/vue3/lib/toast/toast.js.map +1 -1
- package/dist/vue3/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/vue3/lib/unread-pill/unread-pill.cjs.map +1 -1
- package/dist/vue3/lib/unread-pill/unread-pill.js +25 -14
- package/dist/vue3/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/vue3/localization/de-DE.cjs +157 -0
- package/dist/vue3/localization/de-DE.cjs.map +1 -0
- package/dist/vue3/localization/de-DE.js +160 -0
- package/dist/vue3/localization/de-DE.js.map +1 -0
- package/dist/vue3/localization/en-US.cjs +175 -0
- package/dist/vue3/localization/en-US.cjs.map +1 -0
- package/dist/vue3/localization/en-US.js +178 -0
- package/dist/vue3/localization/en-US.js.map +1 -0
- package/dist/vue3/localization/es-LA.cjs +157 -0
- package/dist/vue3/localization/es-LA.cjs.map +1 -0
- package/dist/vue3/localization/es-LA.js +160 -0
- package/dist/vue3/localization/es-LA.js.map +1 -0
- package/dist/vue3/localization/fr-FR.cjs +157 -0
- package/dist/vue3/localization/fr-FR.cjs.map +1 -0
- package/dist/vue3/localization/fr-FR.js +160 -0
- package/dist/vue3/localization/fr-FR.js.map +1 -0
- package/dist/vue3/localization/index.cjs +2 -0
- package/dist/vue3/localization/index.cjs.map +1 -0
- package/dist/vue3/localization/index.js +82 -0
- package/dist/vue3/localization/index.js.map +1 -0
- package/dist/vue3/localization/it-IT.cjs +157 -0
- package/dist/vue3/localization/it-IT.cjs.map +1 -0
- package/dist/vue3/localization/it-IT.js +160 -0
- package/dist/vue3/localization/it-IT.js.map +1 -0
- package/dist/vue3/localization/ja-JP.cjs +157 -0
- package/dist/vue3/localization/ja-JP.cjs.map +1 -0
- package/dist/vue3/localization/ja-JP.js +160 -0
- package/dist/vue3/localization/ja-JP.js.map +1 -0
- package/dist/vue3/localization/nl-NL.cjs +157 -0
- package/dist/vue3/localization/nl-NL.cjs.map +1 -0
- package/dist/vue3/localization/nl-NL.js +160 -0
- package/dist/vue3/localization/nl-NL.js.map +1 -0
- package/dist/vue3/localization/pt-BR.cjs +157 -0
- package/dist/vue3/localization/pt-BR.cjs.map +1 -0
- package/dist/vue3/localization/pt-BR.js +160 -0
- package/dist/vue3/localization/pt-BR.js.map +1 -0
- package/dist/vue3/localization/ru-RU.cjs +157 -0
- package/dist/vue3/localization/ru-RU.cjs.map +1 -0
- package/dist/vue3/localization/ru-RU.js +160 -0
- package/dist/vue3/localization/ru-RU.js.map +1 -0
- package/dist/vue3/localization/zh-CN.cjs +157 -0
- package/dist/vue3/localization/zh-CN.cjs.map +1 -0
- package/dist/vue3/localization/zh-CN.js +160 -0
- package/dist/vue3/localization/zh-CN.js.map +1 -0
- package/dist/vue3/shared/sr_only_close_button.cjs +1 -1
- package/dist/vue3/shared/sr_only_close_button.cjs.map +1 -1
- package/dist/vue3/shared/sr_only_close_button.js +27 -25
- package/dist/vue3/shared/sr_only_close_button.js.map +1 -1
- package/dist/vue3/types/common/mixins/index.d.ts +0 -1
- package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +8 -15
- package/dist/vue3/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/vue3/types/common/utils/index.d.ts +1 -0
- package/dist/vue3/types/common/utils/index.d.ts.map +1 -1
- package/dist/vue3/types/components/banner/banner.vue.d.ts +0 -33
- package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +2 -0
- package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/button/button.vue.d.ts +2 -0
- package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/chip/chip.vue.d.ts +3 -15
- package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/combobox/combobox.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/combobox/combobox_constants.d.ts +2 -2
- package/dist/vue3/types/components/combobox/index.d.ts +1 -1
- package/dist/vue3/types/components/datepicker/composables/useCalendar.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts +5 -1
- package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts +0 -1
- package/dist/vue3/types/components/datepicker/datepicker_constants.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/formatUtils.d.ts +5 -5
- package/dist/vue3/types/components/datepicker/formatUtils.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts +0 -4
- package/dist/vue3/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts +0 -12
- package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/datepicker/utils.d.ts +1 -0
- package/dist/vue3/types/components/datepicker/utils.d.ts.map +1 -1
- package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +0 -24
- package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/emoji_picker/emoji_picker_constants.d.ts +0 -13
- package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/icon/icon.vue.d.ts +1 -0
- package/dist/vue3/types/components/icon/icon_constants.d.ts.map +1 -1
- package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +3 -8
- package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/modal/modal.vue.d.ts +3 -35
- package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/notice/notice.vue.d.ts +1 -34
- package/dist/vue3/types/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/notice/notice_action.vue.d.ts +7 -35
- package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/pagination/pagination.vue.d.ts +5 -24
- package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/popover/popover.vue.d.ts +0 -33
- package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +5 -10
- package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +2 -0
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +2 -46
- package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts +1 -34
- package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/toast/toast.vue.d.ts +4 -115
- package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/vue3/types/index.d.ts +1 -0
- package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +3 -11
- package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +3 -10
- package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +4 -8
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +7 -7
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node_constants.d.ts.map +1 -1
- package/dist/vue3/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -25
- package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +3 -41
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +6 -25
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +2 -2
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +6 -49
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/index.d.ts +1 -1
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +6 -2
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row_constants.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +3 -8
- package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +6 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +12 -88
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +11 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +13 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +5 -8
- package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -18
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +9 -27
- package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +11 -21
- package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +6 -2
- package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/vue3/common/mixins/sr-only-close-button.cjs +0 -3
- package/dist/vue3/common/mixins/sr-only-close-button.cjs.map +0 -1
- package/dist/vue3/common/mixins/sr-only-close-button.js +0 -44
- package/dist/vue3/common/mixins/sr-only-close-button.js.map +0 -1
- package/dist/vue3/lib/contact-row/contact-row-constants.cjs +0 -2
- package/dist/vue3/lib/contact-row/contact-row-constants.cjs.map +0 -1
- package/dist/vue3/lib/contact-row/contact-row-constants.js +0 -5
- package/dist/vue3/lib/contact-row/contact-row-constants.js.map +0 -1
- package/dist/vue3/lib/emoji/emoji-constants.cjs +0 -2
- package/dist/vue3/lib/emoji/emoji-constants.cjs.map +0 -1
- package/dist/vue3/lib/emoji/emoji-constants.js +0 -5
- package/dist/vue3/lib/emoji/emoji-constants.js.map +0 -1
- package/dist/vue3/lib/group-row/group-row-constants.cjs +0 -2
- package/dist/vue3/lib/group-row/group-row-constants.cjs.map +0 -1
- package/dist/vue3/lib/group-row/group-row-constants.js +0 -8
- package/dist/vue3/lib/group-row/group-row-constants.js.map +0 -1
- package/dist/vue3/lib/time-pill/time-pill-constants.cjs +0 -2
- package/dist/vue3/lib/time-pill/time-pill-constants.cjs.map +0 -1
- package/dist/vue3/lib/time-pill/time-pill-constants.js +0 -8
- package/dist/vue3/lib/time-pill/time-pill-constants.js.map +0 -1
- package/dist/vue3/types/common/mixins/sr_only_close_button.d.ts +0 -30
- package/dist/vue3/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
- package/dist/vue3/types/components/emoji/emoji_constants.d.ts +0 -3
- package/dist/vue3/types/components/emoji/emoji_constants.d.ts.map +0 -1
- package/dist/vue3/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts +0 -6
- package/dist/vue3/types/recipes/conversation_view/time_pill/time_pill_constants.d.ts.map +0 -1
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row_constants.d.ts +0 -3
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row_constants.d.ts.map +0 -1
- package/dist/vue3/types/recipes/leftbar/group_row/group_row_constants.d.ts +0 -6
- package/dist/vue3/types/recipes/leftbar/group_row/group_row_constants.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { NodeViewWrapper as L, nodeViewProps as
|
|
2
|
-
import { Node as ee, mergeAttributes as b, InputRule as te, nodePasteRule as
|
|
1
|
+
import { NodeViewWrapper as L, nodeViewProps as R, VueRenderer as v, VueNodeViewRenderer as I, EditorContent as G, BubbleMenu as Q, Editor as Z } from "../../node_modules/@tiptap/vue-3.js";
|
|
2
|
+
import { Node as ee, mergeAttributes as b, InputRule as te, nodePasteRule as P, getMarksBetween as ne, combineTransactionSteps as oe, getChangedRanges as re, findChildrenInRange as ie, Mark as se, nodeInputRule as ae, Extension as le } from "@tiptap/core";
|
|
3
3
|
import ce from "@tiptap/extension-blockquote";
|
|
4
4
|
import de from "@tiptap/extension-code-block";
|
|
5
5
|
import ue from "@tiptap/extension-code";
|
|
6
6
|
import me from "@tiptap/extension-document";
|
|
7
7
|
import he from "@tiptap/extension-hard-break";
|
|
8
|
-
import
|
|
8
|
+
import q from "@tiptap/extension-paragraph";
|
|
9
9
|
import fe from "@tiptap/extension-placeholder";
|
|
10
10
|
import pe from "@tiptap/extension-bold";
|
|
11
11
|
import ge from "@tiptap/extension-bullet-list";
|
|
@@ -20,42 +20,43 @@ import Te from "@tiptap/extension-text-align";
|
|
|
20
20
|
import Ee from "@tiptap/extension-history";
|
|
21
21
|
import Se from "@tiptap/extension-text-style";
|
|
22
22
|
import Le from "@tiptap/extension-color";
|
|
23
|
-
import
|
|
24
|
-
import { PluginKey as T, Plugin as
|
|
25
|
-
import
|
|
23
|
+
import Re from "@tiptap/extension-font-family";
|
|
24
|
+
import { PluginKey as T, Plugin as ve } from "@tiptap/pm/state";
|
|
25
|
+
import Ie from "@tiptap/suggestion";
|
|
26
26
|
import { emojiPattern as W } from "regex-combined-emojis";
|
|
27
|
-
import { resolveComponent as d, openBlock as l, createBlock as
|
|
27
|
+
import { resolveComponent as d, openBlock as l, createBlock as h, withCtx as u, createVNode as p, createElementBlock as _, withDirectives as Oe, createElementVNode as w, Fragment as Be, renderList as Me, normalizeClass as z, withModifiers as $e, resolveDynamicComponent as Ae, vShow as De, createTextVNode as k, toDisplayString as m, markRaw as O, createCommentVNode as x, mergeProps as Pe } from "vue";
|
|
28
28
|
import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
29
29
|
import X from "../emoji/emoji.js";
|
|
30
30
|
import { stringToUnicode as je, codeToEmojiData as H, emojiRegex as He, emojiShortCodeRegex as Ne } from "../../common/emoji/index.js";
|
|
31
31
|
import { emojisIndexed as Fe } from "@dialpad/dialtone-emojis";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { linkRegex as
|
|
32
|
+
import Ke from "../list-item/list-item.js";
|
|
33
|
+
import B from "../stack/stack.js";
|
|
34
|
+
import M from "tippy.js";
|
|
35
|
+
import { linkRegex as Ve, getPhoneNumberRegex as Ue, returnFirstEl as F, warnIfUnmounted as qe } from "../../common/utils/index.js";
|
|
36
36
|
import We from "@tiptap/extension-image";
|
|
37
37
|
import N from "@tiptap/extension-mention";
|
|
38
38
|
import J from "../link/link.js";
|
|
39
|
-
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as ze, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Xe, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as
|
|
39
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as ze, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Xe, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as K } from "./rich-text-editor-constants.js";
|
|
40
40
|
import Je from "../avatar/avatar.js";
|
|
41
41
|
import Ye from "@dialpad/dialtone-icons/vue3/hash";
|
|
42
42
|
import Ge from "@dialpad/dialtone-icons/vue3/lock";
|
|
43
43
|
import Qe from "deep-equal";
|
|
44
|
-
import Ze from "
|
|
45
|
-
|
|
44
|
+
import { DialtoneLocalization as Ze } from "../../localization/index.js";
|
|
45
|
+
import et from "../button/button.js";
|
|
46
|
+
const tt = {
|
|
46
47
|
compatConfig: { MODE: 3 },
|
|
47
48
|
name: "EmojiComponent",
|
|
48
49
|
components: {
|
|
49
50
|
NodeViewWrapper: L,
|
|
50
51
|
DtEmoji: X
|
|
51
52
|
},
|
|
52
|
-
props:
|
|
53
|
+
props: R
|
|
53
54
|
};
|
|
54
|
-
function
|
|
55
|
+
function nt(e, t, o, n, r, i) {
|
|
55
56
|
const s = d("dt-emoji"), a = d("node-view-wrapper");
|
|
56
|
-
return l(),
|
|
57
|
+
return l(), h(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
57
58
|
default: u(() => [
|
|
58
|
-
|
|
59
|
+
p(s, {
|
|
59
60
|
size: "500",
|
|
60
61
|
code: e.node.attrs.code
|
|
61
62
|
}, null, 8, ["code"])
|
|
@@ -63,11 +64,11 @@ function tt(e, t, o, n, r, i) {
|
|
|
63
64
|
_: 1
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
const
|
|
67
|
+
const ot = /* @__PURE__ */ g(tt, [["render", nt]]), rt = {
|
|
67
68
|
compatConfig: { MODE: 3 },
|
|
68
69
|
name: "SuggestionList",
|
|
69
70
|
components: {
|
|
70
|
-
DtListItem:
|
|
71
|
+
DtListItem: Ke
|
|
71
72
|
},
|
|
72
73
|
props: {
|
|
73
74
|
items: {
|
|
@@ -136,40 +137,40 @@ const nt = /* @__PURE__ */ g(et, [["render", tt]]), ot = {
|
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
},
|
|
140
|
+
}, it = { class: "d-popover__dialog d-suggestion-list__container" }, st = {
|
|
140
141
|
ref: "suggestionList",
|
|
141
142
|
class: "d-suggestion-list"
|
|
142
143
|
};
|
|
143
|
-
function
|
|
144
|
+
function at(e, t, o, n, r, i) {
|
|
144
145
|
const s = d("dt-list-item");
|
|
145
|
-
return l(), _("div",
|
|
146
|
-
|
|
147
|
-
(l(!0), _(
|
|
146
|
+
return l(), _("div", it, [
|
|
147
|
+
Oe(w("ul", st, [
|
|
148
|
+
(l(!0), _(Be, null, Me(o.items, (a, c) => (l(), h(s, {
|
|
148
149
|
key: a.id,
|
|
149
150
|
class: z([
|
|
150
151
|
"d-suggestion-list__item",
|
|
151
152
|
{ "d-list-item--highlighted": c === r.selectedIndex }
|
|
152
153
|
]),
|
|
153
154
|
"navigation-type": "arrow-keys",
|
|
154
|
-
onClick: (
|
|
155
|
-
onKeydown:
|
|
155
|
+
onClick: (f) => i.selectItem(c),
|
|
156
|
+
onKeydown: $e(i.onKeyDown, ["prevent"])
|
|
156
157
|
}, {
|
|
157
158
|
default: u(() => [
|
|
158
|
-
(l(),
|
|
159
|
+
(l(), h(Ae(o.itemComponent), { item: a }, null, 8, ["item"]))
|
|
159
160
|
]),
|
|
160
161
|
_: 2
|
|
161
162
|
}, 1032, ["class", "onClick", "onKeydown"]))), 128))
|
|
162
163
|
], 512), [
|
|
163
|
-
[
|
|
164
|
+
[De, o.items.length]
|
|
164
165
|
])
|
|
165
166
|
]);
|
|
166
167
|
}
|
|
167
|
-
const
|
|
168
|
+
const $ = /* @__PURE__ */ g(rt, [["render", at]]), lt = {
|
|
168
169
|
compatConfig: { MODE: 3 },
|
|
169
170
|
name: "EmojiSuggestion",
|
|
170
171
|
components: {
|
|
171
172
|
DtEmoji: X,
|
|
172
|
-
DtStack:
|
|
173
|
+
DtStack: B
|
|
173
174
|
},
|
|
174
175
|
props: {
|
|
175
176
|
item: {
|
|
@@ -178,23 +179,23 @@ const P = /* @__PURE__ */ g(ot, [["render", st]]), at = {
|
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
|
-
function
|
|
182
|
+
function ct(e, t, o, n, r, i) {
|
|
182
183
|
const s = d("dt-emoji"), a = d("dt-stack");
|
|
183
|
-
return l(),
|
|
184
|
+
return l(), h(a, {
|
|
184
185
|
direction: "row",
|
|
185
186
|
gap: "400"
|
|
186
187
|
}, {
|
|
187
188
|
default: u(() => [
|
|
188
|
-
|
|
189
|
+
p(s, {
|
|
189
190
|
size: "200",
|
|
190
191
|
code: o.item.code
|
|
191
192
|
}, null, 8, ["code"]),
|
|
192
|
-
k(" " +
|
|
193
|
+
k(" " + m(o.item.code), 1)
|
|
193
194
|
]),
|
|
194
195
|
_: 1
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
|
-
const
|
|
198
|
+
const dt = /* @__PURE__ */ g(lt, [["render", ct]]), A = {
|
|
198
199
|
name: "hideOnEsc",
|
|
199
200
|
defaultValue: !0,
|
|
200
201
|
fn({ hide: e }) {
|
|
@@ -210,7 +211,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
210
211
|
}
|
|
211
212
|
};
|
|
212
213
|
}
|
|
213
|
-
},
|
|
214
|
+
}, ut = 20, mt = {
|
|
214
215
|
items: ({ query: e }) => {
|
|
215
216
|
if (e.length < 2)
|
|
216
217
|
return [];
|
|
@@ -221,7 +222,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
221
222
|
n.shortname.replaceAll(":", ""),
|
|
222
223
|
...n.keywords
|
|
223
224
|
].some((r) => r.startsWith(e))
|
|
224
|
-
).splice(0,
|
|
225
|
+
).splice(0, ut).map((n) => ({ code: n.shortname }));
|
|
225
226
|
},
|
|
226
227
|
command: ({ editor: e, range: t, props: o }) => {
|
|
227
228
|
var i, s;
|
|
@@ -237,14 +238,14 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
237
238
|
let e, t, o = !1;
|
|
238
239
|
return {
|
|
239
240
|
onStart: (n) => {
|
|
240
|
-
e = new
|
|
241
|
+
e = new v($, {
|
|
241
242
|
props: {
|
|
242
|
-
itemComponent:
|
|
243
|
+
itemComponent: O(dt),
|
|
243
244
|
itemType: "emoji",
|
|
244
245
|
...n
|
|
245
246
|
},
|
|
246
247
|
editor: n.editor
|
|
247
|
-
}), n.clientRect && (t =
|
|
248
|
+
}), n.clientRect && (t = M("body", {
|
|
248
249
|
getReferenceClientRect: n.clientRect,
|
|
249
250
|
appendTo: () => document.body,
|
|
250
251
|
content: e.element,
|
|
@@ -259,7 +260,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
259
260
|
trigger: "manual",
|
|
260
261
|
placement: "top-start",
|
|
261
262
|
zIndex: 650,
|
|
262
|
-
plugins: [
|
|
263
|
+
plugins: [A]
|
|
263
264
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
264
265
|
},
|
|
265
266
|
onUpdate(n) {
|
|
@@ -277,14 +278,14 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
277
278
|
}
|
|
278
279
|
};
|
|
279
280
|
}
|
|
280
|
-
},
|
|
281
|
+
}, ht = /(:\w+:)$/, ft = new RegExp(W + "$"), pt = (e) => {
|
|
281
282
|
if (e && H(e[0]))
|
|
282
283
|
return { text: e[2] || e[0] };
|
|
283
|
-
},
|
|
284
|
+
}, gt = (e) => [...e.matchAll(Ne)].filter((o) => H(o[0])).map((o) => ({
|
|
284
285
|
index: o.index,
|
|
285
286
|
text: o[0],
|
|
286
287
|
match: o
|
|
287
|
-
})),
|
|
288
|
+
})), _t = ee.create({
|
|
288
289
|
name: "emoji",
|
|
289
290
|
addOptions() {
|
|
290
291
|
return {
|
|
@@ -296,7 +297,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
296
297
|
selectable: !1,
|
|
297
298
|
atom: !0,
|
|
298
299
|
addNodeView() {
|
|
299
|
-
return
|
|
300
|
+
return I(ot);
|
|
300
301
|
},
|
|
301
302
|
addAttributes() {
|
|
302
303
|
return {
|
|
@@ -322,9 +323,9 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
322
323
|
return [
|
|
323
324
|
new te({
|
|
324
325
|
find: (e) => {
|
|
325
|
-
const t = e.match(
|
|
326
|
+
const t = e.match(ht) || e.match(ft);
|
|
326
327
|
if (t)
|
|
327
|
-
return
|
|
328
|
+
return pt(t);
|
|
328
329
|
},
|
|
329
330
|
handler: ({ state: e, range: t, match: o, commands: n, chain: r, can: i }) => {
|
|
330
331
|
const { tr: s } = e, a = t.from, c = t.to;
|
|
@@ -335,8 +336,8 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
335
336
|
},
|
|
336
337
|
addPasteRules() {
|
|
337
338
|
return [
|
|
338
|
-
|
|
339
|
-
find:
|
|
339
|
+
P({
|
|
340
|
+
find: gt,
|
|
340
341
|
type: this.type,
|
|
341
342
|
getAttributes(e) {
|
|
342
343
|
return {
|
|
@@ -344,7 +345,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
344
345
|
};
|
|
345
346
|
}
|
|
346
347
|
}),
|
|
347
|
-
|
|
348
|
+
P({
|
|
348
349
|
find: He,
|
|
349
350
|
type: this.type,
|
|
350
351
|
getAttributes(e) {
|
|
@@ -357,12 +358,12 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
357
358
|
},
|
|
358
359
|
addProseMirrorPlugins() {
|
|
359
360
|
return [
|
|
360
|
-
|
|
361
|
+
Ie({
|
|
361
362
|
char: ":",
|
|
362
363
|
pluginKey: new T("emoji"),
|
|
363
364
|
editor: this.editor,
|
|
364
365
|
...this.options.suggestion,
|
|
365
|
-
...
|
|
366
|
+
...mt
|
|
366
367
|
})
|
|
367
368
|
];
|
|
368
369
|
},
|
|
@@ -379,7 +380,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
379
380
|
};
|
|
380
381
|
}
|
|
381
382
|
});
|
|
382
|
-
function
|
|
383
|
+
function yt(e, t, o = () => !0) {
|
|
383
384
|
const n = [];
|
|
384
385
|
t.lastIndex = 0;
|
|
385
386
|
let r;
|
|
@@ -387,10 +388,10 @@ function _t(e, t, o = () => !0) {
|
|
|
387
388
|
o(e, r) && n.push(r);
|
|
388
389
|
return n;
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
+
function wt(e, t) {
|
|
391
392
|
return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function kt(e) {
|
|
394
395
|
const t = new RegExp(
|
|
395
396
|
"(?:" + [
|
|
396
397
|
`[!?.,:;'"]`,
|
|
@@ -400,7 +401,7 @@ function wt(e) {
|
|
|
400
401
|
);
|
|
401
402
|
return e.replace(t, "");
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function xt(e, t) {
|
|
404
405
|
const o = e.slice(0, t + 1).search(/\S+\s*$/), n = e.slice(t).search(/\s/);
|
|
405
406
|
if (n < 0) {
|
|
406
407
|
const r = e.slice(o);
|
|
@@ -417,19 +418,19 @@ function kt(e, t) {
|
|
|
417
418
|
};
|
|
418
419
|
}
|
|
419
420
|
function j(e, t, o, n) {
|
|
420
|
-
const r =
|
|
421
|
+
const r = xt(e, t);
|
|
421
422
|
if (n.lastIndex = 0, !n.test(r.text))
|
|
422
423
|
return r;
|
|
423
424
|
const i = o === "left" ? r.from - 1 : r.to + 1;
|
|
424
425
|
return i <= 0 || i >= e.length || i === t ? r : j(e, i, o, n);
|
|
425
426
|
}
|
|
426
|
-
function
|
|
427
|
+
function bt(e, t, o, n) {
|
|
427
428
|
const r = Math.max(e.from - 1, 0), i = Math.min(e.to + 1, t.content.size), s = ne(r, i, t);
|
|
428
429
|
for (const a of s)
|
|
429
430
|
a.mark.type === n && o.removeMark(a.from, a.to, n);
|
|
430
431
|
}
|
|
431
|
-
const
|
|
432
|
-
function
|
|
432
|
+
const V = Ue(1, 15);
|
|
433
|
+
function U(e, t, o, n, r, i) {
|
|
433
434
|
if (!e)
|
|
434
435
|
return;
|
|
435
436
|
let s = o - t - 1;
|
|
@@ -438,39 +439,39 @@ function K(e, t, o, n, r, i) {
|
|
|
438
439
|
e,
|
|
439
440
|
s,
|
|
440
441
|
"left",
|
|
441
|
-
|
|
442
|
-
),
|
|
442
|
+
V
|
|
443
|
+
), f = j(
|
|
443
444
|
e,
|
|
444
445
|
a,
|
|
445
446
|
"right",
|
|
446
|
-
|
|
447
|
-
), y = e.slice(c.from,
|
|
448
|
-
|
|
449
|
-
const C =
|
|
447
|
+
V
|
|
448
|
+
), y = e.slice(c.from, f.to);
|
|
449
|
+
yt(y, Ve, wt).forEach((D) => {
|
|
450
|
+
const C = kt(D[0]), S = t + c.from + D.index + 1, Y = S + C.length;
|
|
450
451
|
r.addMark(S, Y, i.create());
|
|
451
452
|
});
|
|
452
453
|
}
|
|
453
|
-
function
|
|
454
|
+
function Ct(e) {
|
|
454
455
|
let t = !1;
|
|
455
|
-
return new
|
|
456
|
+
return new ve({
|
|
456
457
|
key: new T("autolink"),
|
|
457
458
|
appendTransaction: (o, n, r) => {
|
|
458
459
|
const i = o.some((y) => y.docChanged) && !n.doc.eq(r.doc);
|
|
459
460
|
if (t && !i)
|
|
460
461
|
return;
|
|
461
462
|
const { tr: s } = r, { textContent: a } = r.doc;
|
|
462
|
-
t ||
|
|
463
|
+
t || U(a, 0, 0, a.length, s, e.type), t = !0;
|
|
463
464
|
const c = oe(
|
|
464
465
|
n.doc,
|
|
465
466
|
[...o]
|
|
466
467
|
);
|
|
467
468
|
return re(c).forEach(({ oldRange: y, newRange: E }) => {
|
|
468
|
-
|
|
469
|
+
bt(E, r.doc, s, e.type), ie(
|
|
469
470
|
r.doc,
|
|
470
471
|
E,
|
|
471
472
|
(C) => C.isTextblock
|
|
472
473
|
).forEach(({ node: C, pos: S }) => {
|
|
473
|
-
|
|
474
|
+
U(
|
|
474
475
|
C.textContent,
|
|
475
476
|
S,
|
|
476
477
|
y.from,
|
|
@@ -483,10 +484,10 @@ function bt(e) {
|
|
|
483
484
|
}
|
|
484
485
|
});
|
|
485
486
|
}
|
|
486
|
-
const
|
|
487
|
+
const Tt = {
|
|
487
488
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
488
489
|
rel: "noopener noreferrer nofollow"
|
|
489
|
-
},
|
|
490
|
+
}, Et = se.create({
|
|
490
491
|
name: "CustomLink",
|
|
491
492
|
renderHTML({ HTMLAttributes: e }) {
|
|
492
493
|
return [
|
|
@@ -494,7 +495,7 @@ const Ct = {
|
|
|
494
495
|
b(
|
|
495
496
|
this.options.HTMLAttributes,
|
|
496
497
|
e,
|
|
497
|
-
|
|
498
|
+
Tt
|
|
498
499
|
)
|
|
499
500
|
];
|
|
500
501
|
},
|
|
@@ -503,10 +504,10 @@ const Ct = {
|
|
|
503
504
|
},
|
|
504
505
|
addProseMirrorPlugins() {
|
|
505
506
|
return [
|
|
506
|
-
|
|
507
|
+
Ct({ type: this.type })
|
|
507
508
|
];
|
|
508
509
|
}
|
|
509
|
-
}),
|
|
510
|
+
}), St = We.extend({
|
|
510
511
|
name: "ConfigurableImage",
|
|
511
512
|
addAttributes() {
|
|
512
513
|
return {
|
|
@@ -530,21 +531,21 @@ const Ct = {
|
|
|
530
531
|
}
|
|
531
532
|
};
|
|
532
533
|
}
|
|
533
|
-
}).configure({ inline: !0, allowBase64: !0 }),
|
|
534
|
+
}).configure({ inline: !0, allowBase64: !0 }), Lt = q.extend({
|
|
534
535
|
parseHTML() {
|
|
535
536
|
return [{ tag: "div" }];
|
|
536
537
|
},
|
|
537
538
|
renderHTML({ HTMLAttributes: e }) {
|
|
538
539
|
return ["div", b(this.options.HTMLAttributes, e), 0];
|
|
539
540
|
}
|
|
540
|
-
}),
|
|
541
|
+
}), Rt = {
|
|
541
542
|
compatConfig: { MODE: 3 },
|
|
542
543
|
name: "MentionComponent",
|
|
543
544
|
components: {
|
|
544
545
|
NodeViewWrapper: L,
|
|
545
546
|
DtLink: J
|
|
546
547
|
},
|
|
547
|
-
props:
|
|
548
|
+
props: R,
|
|
548
549
|
computed: {
|
|
549
550
|
text() {
|
|
550
551
|
return "@" + this.$props.node.attrs.name;
|
|
@@ -553,11 +554,11 @@ const Ct = {
|
|
|
553
554
|
};
|
|
554
555
|
function vt(e, t, o, n, r, i) {
|
|
555
556
|
const s = d("dt-link"), a = d("node-view-wrapper");
|
|
556
|
-
return l(),
|
|
557
|
+
return l(), h(a, { class: "d-d-inline-block" }, {
|
|
557
558
|
default: u(() => [
|
|
558
|
-
|
|
559
|
+
p(s, { kind: "mention" }, {
|
|
559
560
|
default: u(() => [
|
|
560
|
-
k(
|
|
561
|
+
k(m(i.text), 1)
|
|
561
562
|
]),
|
|
562
563
|
_: 1
|
|
563
564
|
})
|
|
@@ -565,9 +566,9 @@ function vt(e, t, o, n, r, i) {
|
|
|
565
566
|
_: 1
|
|
566
567
|
});
|
|
567
568
|
}
|
|
568
|
-
const
|
|
569
|
+
const It = /* @__PURE__ */ g(Rt, [["render", vt]]), Ot = N.extend({
|
|
569
570
|
addNodeView() {
|
|
570
|
-
return
|
|
571
|
+
return I(It);
|
|
571
572
|
},
|
|
572
573
|
parseHTML() {
|
|
573
574
|
return [
|
|
@@ -600,27 +601,27 @@ const Rt = /* @__PURE__ */ g(Lt, [["render", vt]]), $t = N.extend({
|
|
|
600
601
|
char: "@",
|
|
601
602
|
pluginKey: new T("mentionSuggestion")
|
|
602
603
|
}
|
|
603
|
-
}),
|
|
604
|
+
}), Bt = {
|
|
604
605
|
compatConfig: { MODE: 3 },
|
|
605
606
|
name: "ChannelComponent",
|
|
606
607
|
components: {
|
|
607
608
|
NodeViewWrapper: L,
|
|
608
609
|
DtLink: J
|
|
609
610
|
},
|
|
610
|
-
props:
|
|
611
|
+
props: R,
|
|
611
612
|
computed: {
|
|
612
613
|
text() {
|
|
613
614
|
return "#" + this.$props.node.attrs.name;
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
617
|
};
|
|
617
|
-
function
|
|
618
|
+
function Mt(e, t, o, n, r, i) {
|
|
618
619
|
const s = d("dt-link"), a = d("node-view-wrapper");
|
|
619
|
-
return l(),
|
|
620
|
+
return l(), h(a, { class: "d-d-inline-block" }, {
|
|
620
621
|
default: u(() => [
|
|
621
|
-
|
|
622
|
+
p(s, { kind: "mention" }, {
|
|
622
623
|
default: u(() => [
|
|
623
|
-
k(
|
|
624
|
+
k(m(i.text), 1)
|
|
624
625
|
]),
|
|
625
626
|
_: 1
|
|
626
627
|
})
|
|
@@ -628,10 +629,10 @@ function Ot(e, t, o, n, r, i) {
|
|
|
628
629
|
_: 1
|
|
629
630
|
});
|
|
630
631
|
}
|
|
631
|
-
const
|
|
632
|
+
const $t = /* @__PURE__ */ g(Bt, [["render", Mt]]), At = N.extend({
|
|
632
633
|
name: "channel",
|
|
633
634
|
addNodeView() {
|
|
634
|
-
return $
|
|
635
|
+
return I($t);
|
|
635
636
|
},
|
|
636
637
|
parseHTML() {
|
|
637
638
|
return [
|
|
@@ -664,14 +665,14 @@ const It = /* @__PURE__ */ g(Mt, [["render", Ot]]), Pt = N.extend({
|
|
|
664
665
|
char: "#",
|
|
665
666
|
pluginKey: new T("channelSuggestion")
|
|
666
667
|
}
|
|
667
|
-
}),
|
|
668
|
+
}), Dt = {
|
|
668
669
|
compatConfig: { MODE: 3 },
|
|
669
670
|
name: "SlashCommandsComponent",
|
|
670
671
|
components: {
|
|
671
672
|
NodeViewWrapper: L
|
|
672
673
|
},
|
|
673
674
|
props: {
|
|
674
|
-
...
|
|
675
|
+
...R
|
|
675
676
|
},
|
|
676
677
|
emits: ["selected-command"],
|
|
677
678
|
computed: {
|
|
@@ -687,23 +688,23 @@ const It = /* @__PURE__ */ g(Mt, [["render", Ot]]), Pt = N.extend({
|
|
|
687
688
|
t && typeof t == "function" && t(e);
|
|
688
689
|
}
|
|
689
690
|
};
|
|
690
|
-
function
|
|
691
|
+
function Pt(e, t, o, n, r, i) {
|
|
691
692
|
const s = d("node-view-wrapper");
|
|
692
|
-
return l(),
|
|
693
|
+
return l(), h(s, { class: "d-d-inline-block" }, {
|
|
693
694
|
default: u(() => [
|
|
694
|
-
k(
|
|
695
|
+
k(m(i.text), 1)
|
|
695
696
|
]),
|
|
696
697
|
_: 1
|
|
697
698
|
});
|
|
698
699
|
}
|
|
699
|
-
const
|
|
700
|
+
const jt = /* @__PURE__ */ g(Dt, [["render", Pt]]), Ht = (e, t) => [...e.matchAll(t)].map((n) => {
|
|
700
701
|
let r = n[2];
|
|
701
702
|
return r.endsWith(" ") || (r += " "), {
|
|
702
703
|
index: n.index,
|
|
703
704
|
text: r,
|
|
704
705
|
match: n
|
|
705
706
|
};
|
|
706
|
-
}),
|
|
707
|
+
}), Nt = N.extend({
|
|
707
708
|
name: "slash-commands",
|
|
708
709
|
group: "inline",
|
|
709
710
|
inline: !0,
|
|
@@ -720,7 +721,7 @@ const Dt = /* @__PURE__ */ g(Bt, [["render", At]]), jt = (e, t) => [...e.matchAl
|
|
|
720
721
|
};
|
|
721
722
|
},
|
|
722
723
|
addNodeView() {
|
|
723
|
-
return
|
|
724
|
+
return I(jt);
|
|
724
725
|
},
|
|
725
726
|
parseHTML() {
|
|
726
727
|
return [
|
|
@@ -765,8 +766,8 @@ const Dt = /* @__PURE__ */ g(Bt, [["render", At]]), jt = (e, t) => [...e.matchAl
|
|
|
765
766
|
var o;
|
|
766
767
|
const e = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
|
|
767
768
|
return [
|
|
768
|
-
|
|
769
|
-
find: (n) =>
|
|
769
|
+
P({
|
|
770
|
+
find: (n) => Ht(n, t),
|
|
770
771
|
type: this.type,
|
|
771
772
|
getAttributes(n) {
|
|
772
773
|
return { command: n[0].trim() };
|
|
@@ -779,12 +780,12 @@ const Dt = /* @__PURE__ */ g(Bt, [["render", At]]), jt = (e, t) => [...e.matchAl
|
|
|
779
780
|
char: "/",
|
|
780
781
|
pluginKey: new T("slashCommandSuggestion")
|
|
781
782
|
}
|
|
782
|
-
}),
|
|
783
|
+
}), Ft = {
|
|
783
784
|
compatConfig: { MODE: 3 },
|
|
784
785
|
name: "MentionSuggestion",
|
|
785
786
|
components: {
|
|
786
787
|
DtAvatar: Je,
|
|
787
|
-
DtStack:
|
|
788
|
+
DtStack: B
|
|
788
789
|
},
|
|
789
790
|
props: {
|
|
790
791
|
item: {
|
|
@@ -820,22 +821,22 @@ const Dt = /* @__PURE__ */ g(Bt, [["render", At]]), jt = (e, t) => [...e.matchAl
|
|
|
820
821
|
return this.item.showDetails;
|
|
821
822
|
}
|
|
822
823
|
}
|
|
823
|
-
},
|
|
824
|
+
}, Kt = { class: "d-mention-suggestion__name" }, Vt = {
|
|
824
825
|
key: 1,
|
|
825
826
|
class: "d-mention-suggestion__divider"
|
|
826
|
-
},
|
|
827
|
+
}, Ut = {
|
|
827
828
|
key: 2,
|
|
828
829
|
class: "d-mention-suggestion__status"
|
|
829
830
|
};
|
|
830
|
-
function
|
|
831
|
+
function qt(e, t, o, n, r, i) {
|
|
831
832
|
const s = d("dt-avatar"), a = d("dt-stack");
|
|
832
|
-
return l(),
|
|
833
|
+
return l(), h(a, {
|
|
833
834
|
direction: "row",
|
|
834
835
|
class: "d-mention-suggestion__container",
|
|
835
836
|
gap: "400"
|
|
836
837
|
}, {
|
|
837
838
|
default: u(() => [
|
|
838
|
-
|
|
839
|
+
p(s, {
|
|
839
840
|
"full-name": i.name,
|
|
840
841
|
"image-src": i.avatarSrc,
|
|
841
842
|
"image-alt": i.name,
|
|
@@ -843,13 +844,13 @@ function Kt(e, t, o, n, r, i) {
|
|
|
843
844
|
presence: i.presence,
|
|
844
845
|
size: "sm"
|
|
845
846
|
}, null, 8, ["full-name", "image-src", "image-alt", "show-presence", "presence"]),
|
|
846
|
-
|
|
847
|
+
p(a, {
|
|
847
848
|
class: "d-mention-suggestion__details-container",
|
|
848
849
|
gap: "100"
|
|
849
850
|
}, {
|
|
850
851
|
default: u(() => [
|
|
851
|
-
w("span",
|
|
852
|
-
i.showDetails ? (l(),
|
|
852
|
+
w("span", Kt, m(i.name), 1),
|
|
853
|
+
i.showDetails ? (l(), h(a, {
|
|
853
854
|
key: 0,
|
|
854
855
|
direction: "row",
|
|
855
856
|
gap: "300",
|
|
@@ -859,9 +860,9 @@ function Kt(e, t, o, n, r, i) {
|
|
|
859
860
|
i.presenceText ? (l(), _("span", {
|
|
860
861
|
key: 0,
|
|
861
862
|
class: z(["d-mention-suggestion__presence", [i.presenceFontColorClass]])
|
|
862
|
-
},
|
|
863
|
+
}, m(i.presenceText), 3)) : x("", !0),
|
|
863
864
|
i.status && i.presenceText ? (l(), _("div", Vt, " • ")) : x("", !0),
|
|
864
|
-
i.status ? (l(), _("div",
|
|
865
|
+
i.status ? (l(), _("div", Ut, m(i.status), 1)) : x("", !0)
|
|
865
866
|
]),
|
|
866
867
|
_: 1
|
|
867
868
|
})) : x("", !0)
|
|
@@ -872,7 +873,7 @@ function Kt(e, t, o, n, r, i) {
|
|
|
872
873
|
_: 1
|
|
873
874
|
});
|
|
874
875
|
}
|
|
875
|
-
const
|
|
876
|
+
const Wt = /* @__PURE__ */ g(Ft, [["render", qt]]), zt = {
|
|
876
877
|
// This function comes from the user and passed to the editor directly.
|
|
877
878
|
// This will also activate the mention plugin on the editor
|
|
878
879
|
// items: ({ query }) => { return [] },
|
|
@@ -881,14 +882,14 @@ const Ut = /* @__PURE__ */ g(Nt, [["render", Kt]]), Wt = {
|
|
|
881
882
|
let e, t, o = !1;
|
|
882
883
|
return {
|
|
883
884
|
onStart: (n) => {
|
|
884
|
-
e = new
|
|
885
|
+
e = new v($, {
|
|
885
886
|
props: {
|
|
886
|
-
itemComponent:
|
|
887
|
+
itemComponent: O(Wt),
|
|
887
888
|
itemType: "mention",
|
|
888
889
|
...n
|
|
889
890
|
},
|
|
890
891
|
editor: n.editor
|
|
891
|
-
}), n.clientRect && (t =
|
|
892
|
+
}), n.clientRect && (t = M("body", {
|
|
892
893
|
getReferenceClientRect: n.clientRect,
|
|
893
894
|
appendTo: () => document.body,
|
|
894
895
|
content: e.element,
|
|
@@ -903,7 +904,7 @@ const Ut = /* @__PURE__ */ g(Nt, [["render", Kt]]), Wt = {
|
|
|
903
904
|
trigger: "manual",
|
|
904
905
|
placement: "top-start",
|
|
905
906
|
zIndex: 650,
|
|
906
|
-
plugins: [
|
|
907
|
+
plugins: [A]
|
|
907
908
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
908
909
|
},
|
|
909
910
|
onUpdate(n) {
|
|
@@ -921,11 +922,11 @@ const Ut = /* @__PURE__ */ g(Nt, [["render", Kt]]), Wt = {
|
|
|
921
922
|
}
|
|
922
923
|
};
|
|
923
924
|
}
|
|
924
|
-
},
|
|
925
|
+
}, Xt = {
|
|
925
926
|
compatConfig: { MODE: 3 },
|
|
926
927
|
name: "ChannelSuggestion",
|
|
927
928
|
components: {
|
|
928
|
-
DtStack:
|
|
929
|
+
DtStack: B,
|
|
929
930
|
DtIconHash: Ye,
|
|
930
931
|
DtIconLock: Ge
|
|
931
932
|
},
|
|
@@ -941,26 +942,26 @@ const Ut = /* @__PURE__ */ g(Nt, [["render", Kt]]), Wt = {
|
|
|
941
942
|
}
|
|
942
943
|
}
|
|
943
944
|
};
|
|
944
|
-
function
|
|
945
|
+
function Jt(e, t, o, n, r, i) {
|
|
945
946
|
const s = d("dt-icon-hash"), a = d("dt-icon-lock"), c = d("dt-stack");
|
|
946
|
-
return l(),
|
|
947
|
+
return l(), h(c, {
|
|
947
948
|
direction: "row",
|
|
948
949
|
gap: "400"
|
|
949
950
|
}, {
|
|
950
951
|
default: u(() => [
|
|
951
|
-
o.item.locked ? (l(),
|
|
952
|
+
o.item.locked ? (l(), h(a, {
|
|
952
953
|
key: 1,
|
|
953
954
|
size: "300"
|
|
954
|
-
})) : (l(),
|
|
955
|
+
})) : (l(), h(s, {
|
|
955
956
|
key: 0,
|
|
956
957
|
size: "300"
|
|
957
958
|
})),
|
|
958
|
-
w("span", null,
|
|
959
|
+
w("span", null, m(i.name), 1)
|
|
959
960
|
]),
|
|
960
961
|
_: 1
|
|
961
962
|
});
|
|
962
963
|
}
|
|
963
|
-
const
|
|
964
|
+
const Yt = /* @__PURE__ */ g(Xt, [["render", Jt]]), Gt = {
|
|
964
965
|
// This function comes from the user and passed to the editor directly.
|
|
965
966
|
// This will also activate the mention plugin on the editor
|
|
966
967
|
// items: ({ query }) => { return [] },
|
|
@@ -969,14 +970,14 @@ const Jt = /* @__PURE__ */ g(zt, [["render", Xt]]), Yt = {
|
|
|
969
970
|
let e, t, o = !1;
|
|
970
971
|
return {
|
|
971
972
|
onStart: (n) => {
|
|
972
|
-
e = new
|
|
973
|
+
e = new v($, {
|
|
973
974
|
props: {
|
|
974
|
-
itemComponent:
|
|
975
|
+
itemComponent: O(Yt),
|
|
975
976
|
itemType: "channel",
|
|
976
977
|
...n
|
|
977
978
|
},
|
|
978
979
|
editor: n.editor
|
|
979
|
-
}), n.clientRect && (t =
|
|
980
|
+
}), n.clientRect && (t = M("body", {
|
|
980
981
|
getReferenceClientRect: n.clientRect,
|
|
981
982
|
appendTo: () => document.body,
|
|
982
983
|
content: e.element,
|
|
@@ -991,7 +992,7 @@ const Jt = /* @__PURE__ */ g(zt, [["render", Xt]]), Yt = {
|
|
|
991
992
|
trigger: "manual",
|
|
992
993
|
placement: "top-start",
|
|
993
994
|
zIndex: 650,
|
|
994
|
-
plugins: [
|
|
995
|
+
plugins: [A]
|
|
995
996
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
996
997
|
},
|
|
997
998
|
onUpdate(n) {
|
|
@@ -1009,7 +1010,7 @@ const Jt = /* @__PURE__ */ g(zt, [["render", Xt]]), Yt = {
|
|
|
1009
1010
|
}
|
|
1010
1011
|
};
|
|
1011
1012
|
}
|
|
1012
|
-
},
|
|
1013
|
+
}, Qt = {
|
|
1013
1014
|
compatConfig: { MODE: 3 },
|
|
1014
1015
|
name: "SlashCommandSuggestion",
|
|
1015
1016
|
props: {
|
|
@@ -1029,17 +1030,17 @@ const Jt = /* @__PURE__ */ g(zt, [["render", Xt]]), Yt = {
|
|
|
1029
1030
|
return this.item.parametersExample;
|
|
1030
1031
|
}
|
|
1031
1032
|
}
|
|
1032
|
-
},
|
|
1033
|
-
function
|
|
1033
|
+
}, Zt = { class: "d-body--md-compact" }, en = { key: 0 }, tn = { class: "d-body--sm d-fc-tertiary" };
|
|
1034
|
+
function nn(e, t, o, n, r, i) {
|
|
1034
1035
|
return l(), _("div", null, [
|
|
1035
|
-
w("div",
|
|
1036
|
-
w("span", null, "/" +
|
|
1037
|
-
i.parametersExample ? (l(), _("span",
|
|
1036
|
+
w("div", Zt, [
|
|
1037
|
+
w("span", null, "/" + m(i.command), 1),
|
|
1038
|
+
i.parametersExample ? (l(), _("span", en, m(i.parametersExample), 1)) : x("", !0)
|
|
1038
1039
|
]),
|
|
1039
|
-
w("div",
|
|
1040
|
+
w("div", tn, m(i.description), 1)
|
|
1040
1041
|
]);
|
|
1041
1042
|
}
|
|
1042
|
-
const
|
|
1043
|
+
const on = /* @__PURE__ */ g(Qt, [["render", nn]]), rn = {
|
|
1043
1044
|
// This function comes from the user and passed to the editor directly.
|
|
1044
1045
|
// This will also activate the mention plugin on the editor
|
|
1045
1046
|
// items: ({ query }) => { return [] },
|
|
@@ -1049,15 +1050,15 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1049
1050
|
let e, t, o = !1;
|
|
1050
1051
|
return {
|
|
1051
1052
|
onStart: (n) => {
|
|
1052
|
-
e = new
|
|
1053
|
+
e = new v($, {
|
|
1053
1054
|
parent: void 0,
|
|
1054
1055
|
props: {
|
|
1055
|
-
itemComponent:
|
|
1056
|
+
itemComponent: O(on),
|
|
1056
1057
|
itemType: "slash-command",
|
|
1057
1058
|
...n
|
|
1058
1059
|
},
|
|
1059
1060
|
editor: n.editor
|
|
1060
|
-
}), n.clientRect && (t =
|
|
1061
|
+
}), n.clientRect && (t = M("body", {
|
|
1061
1062
|
getReferenceClientRect: n.clientRect,
|
|
1062
1063
|
appendTo: () => document.body,
|
|
1063
1064
|
content: e.element,
|
|
@@ -1072,7 +1073,7 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1072
1073
|
trigger: "manual",
|
|
1073
1074
|
placement: "top-start",
|
|
1074
1075
|
zIndex: 650,
|
|
1075
|
-
plugins: [
|
|
1076
|
+
plugins: [A]
|
|
1076
1077
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
1077
1078
|
},
|
|
1078
1079
|
onUpdate(n) {
|
|
@@ -1090,14 +1091,14 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1090
1091
|
}
|
|
1091
1092
|
};
|
|
1092
1093
|
}
|
|
1093
|
-
},
|
|
1094
|
+
}, sn = {
|
|
1094
1095
|
compatConfig: { MODE: 3 },
|
|
1095
1096
|
name: "DtRichTextEditor",
|
|
1096
1097
|
components: {
|
|
1097
1098
|
EditorContent: G,
|
|
1098
1099
|
BubbleMenu: Q,
|
|
1099
|
-
DtButton:
|
|
1100
|
-
DtStack:
|
|
1100
|
+
DtButton: et,
|
|
1101
|
+
DtStack: B
|
|
1101
1102
|
},
|
|
1102
1103
|
props: {
|
|
1103
1104
|
/**
|
|
@@ -1444,7 +1445,8 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1444
1445
|
return (e = F(this.$refs.editor.$el).getRootNode()) == null ? void 0 : e.querySelector("body");
|
|
1445
1446
|
},
|
|
1446
1447
|
placement: "top-start"
|
|
1447
|
-
}
|
|
1448
|
+
},
|
|
1449
|
+
i18n: new Ze()
|
|
1448
1450
|
};
|
|
1449
1451
|
},
|
|
1450
1452
|
computed: {
|
|
@@ -1462,7 +1464,7 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1462
1464
|
// eslint-disable-next-line complexity
|
|
1463
1465
|
extensions() {
|
|
1464
1466
|
const e = [me, Ce, Ee, he];
|
|
1465
|
-
e.push(this.useDivTags ?
|
|
1467
|
+
e.push(this.useDivTags ? Lt : q), this.allowBlockquote && e.push(ce), this.allowBold && e.push(pe), this.allowBulletList && (e.push(ge), e.push(we.extend({
|
|
1466
1468
|
renderText({ node: n }) {
|
|
1467
1469
|
return n.textContent;
|
|
1468
1470
|
}
|
|
@@ -1489,25 +1491,25 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1489
1491
|
},
|
|
1490
1492
|
openOnClick: !1,
|
|
1491
1493
|
autolink: !0,
|
|
1492
|
-
protocols:
|
|
1493
|
-
})), this.customLink && e.push(this.getExtension(
|
|
1494
|
-
const n = { ...this.mentionSuggestion, ...
|
|
1495
|
-
e.push(
|
|
1494
|
+
protocols: K
|
|
1495
|
+
})), this.customLink && e.push(this.getExtension(Et, this.customLink)), this.mentionSuggestion) {
|
|
1496
|
+
const n = { ...this.mentionSuggestion, ...zt };
|
|
1497
|
+
e.push(Ot.configure({ suggestion: n }));
|
|
1496
1498
|
}
|
|
1497
1499
|
if (this.channelSuggestion) {
|
|
1498
|
-
const n = { ...this.channelSuggestion, ...
|
|
1499
|
-
e.push(
|
|
1500
|
+
const n = { ...this.channelSuggestion, ...Gt };
|
|
1501
|
+
e.push(At.configure({ suggestion: n }));
|
|
1500
1502
|
}
|
|
1501
1503
|
if (this.slashCommandSuggestion) {
|
|
1502
|
-
const n = { ...this.slashCommandSuggestion, ...
|
|
1503
|
-
e.push(
|
|
1504
|
+
const n = { ...this.slashCommandSuggestion, ...rn };
|
|
1505
|
+
e.push(Nt.configure({
|
|
1504
1506
|
suggestion: n,
|
|
1505
1507
|
onSelectedCommand: (r) => {
|
|
1506
1508
|
this.$emit("selected-command", r);
|
|
1507
1509
|
}
|
|
1508
1510
|
}));
|
|
1509
1511
|
}
|
|
1510
|
-
return e.push(
|
|
1512
|
+
return e.push(_t), e.push(Te.configure({
|
|
1511
1513
|
types: ["paragraph"]
|
|
1512
1514
|
})), this.allowCode && e.push(ue), this.allowCodeblock && e.push(de.extend({
|
|
1513
1515
|
renderText({ node: n }) {
|
|
@@ -1519,7 +1521,7 @@ ${n.textContent}
|
|
|
1519
1521
|
HTMLAttributes: {
|
|
1520
1522
|
class: "d-rich-text-editor__code-block"
|
|
1521
1523
|
}
|
|
1522
|
-
})), this.allowInlineImages && e.push(
|
|
1524
|
+
})), this.allowInlineImages && e.push(St), (this.allowFontFamily || this.allowFontColor) && (e.push(Se), this.allowFontColor && e.push(Le), this.allowFontFamily && e.push(Re)), this.additionalExtensions.length && e.push(...this.additionalExtensions), e;
|
|
1523
1525
|
},
|
|
1524
1526
|
inputAttrs() {
|
|
1525
1527
|
const e = {
|
|
@@ -1559,7 +1561,7 @@ ${n.textContent}
|
|
|
1559
1561
|
this.destroyEditor();
|
|
1560
1562
|
},
|
|
1561
1563
|
mounted() {
|
|
1562
|
-
|
|
1564
|
+
qe(F(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
|
|
1563
1565
|
},
|
|
1564
1566
|
methods: {
|
|
1565
1567
|
createEditor() {
|
|
@@ -1576,6 +1578,11 @@ ${n.textContent}
|
|
|
1576
1578
|
...this.inputAttrs,
|
|
1577
1579
|
class: this.inputClass
|
|
1578
1580
|
},
|
|
1581
|
+
handleKeyDown: (e, t) => {
|
|
1582
|
+
if (!this.preventTyping) return !1;
|
|
1583
|
+
const o = ["Backspace"];
|
|
1584
|
+
return !this.allowLineBreaks && !t.shiftKey && o.push("Enter"), !o.includes(t.key);
|
|
1585
|
+
},
|
|
1579
1586
|
handlePaste: (e, t, o) => {
|
|
1580
1587
|
const n = t.clipboardData || window.clipboardData, r = n.getData("text/plain"), i = n.getData("text/html");
|
|
1581
1588
|
return this.processPasteData(e, r, i);
|
|
@@ -1597,9 +1604,9 @@ ${n.textContent}
|
|
|
1597
1604
|
* @param editor the editor instance.
|
|
1598
1605
|
*/
|
|
1599
1606
|
getSelectedLinkText(e) {
|
|
1600
|
-
var a, c,
|
|
1607
|
+
var a, c, f;
|
|
1601
1608
|
const { view: t, state: o } = e, { from: n, to: r } = t.state.selection, i = o.doc.textBetween(n, r, ""), s = this.editor.state.doc.nodeAt(n);
|
|
1602
|
-
return s && ((
|
|
1609
|
+
return s && ((f = (c = (a = s.marks) == null ? void 0 : a.at(0)) == null ? void 0 : c.type) == null ? void 0 : f.name) === "link" ? s.textContent : i;
|
|
1603
1610
|
},
|
|
1604
1611
|
editLink() {
|
|
1605
1612
|
const e = this.getSelectedLinkText(this.editor), t = {
|
|
@@ -1619,14 +1626,14 @@ ${n.textContent}
|
|
|
1619
1626
|
window.open(e, "_blank");
|
|
1620
1627
|
},
|
|
1621
1628
|
// eslint-disable-next-line complexity
|
|
1622
|
-
setLink(e, t, o, n =
|
|
1623
|
-
var a, c,
|
|
1629
|
+
setLink(e, t, o, n = K, r) {
|
|
1630
|
+
var a, c, f;
|
|
1624
1631
|
if (!e) {
|
|
1625
1632
|
this.removeLink();
|
|
1626
1633
|
return;
|
|
1627
1634
|
}
|
|
1628
1635
|
n.find((y) => y.test(e)) || (e = `${r}${e}`), this.editor.chain().focus().extendMarkRange("link").run();
|
|
1629
|
-
const s = (
|
|
1636
|
+
const s = (f = (c = (a = this.editor) == null ? void 0 : a.view) == null ? void 0 : c.state) == null ? void 0 : f.selection;
|
|
1630
1637
|
this.editor.chain().focus().insertContent(t).setTextSelection({ from: s.from, to: s.from + t.length }).setLink({ href: e, class: o.class }).run();
|
|
1631
1638
|
},
|
|
1632
1639
|
// eslint-disable-next-line complexity
|
|
@@ -1726,11 +1733,6 @@ ${n.textContent}
|
|
|
1726
1733
|
this.editor.on("create", () => {
|
|
1727
1734
|
this.triggerInputChangeEvents();
|
|
1728
1735
|
}), this.editor.on("update", () => {
|
|
1729
|
-
var e, t;
|
|
1730
|
-
if (this.preventTyping && ((t = (e = this.editor.view) == null ? void 0 : e.input) == null ? void 0 : t.lastKeyCode) !== 8) {
|
|
1731
|
-
this.editor.commands.setContent(this.modelValue, !1);
|
|
1732
|
-
return;
|
|
1733
|
-
}
|
|
1734
1736
|
this.triggerInputChangeEvents();
|
|
1735
1737
|
}), this.editor.on("selectionUpdate", ({ editor: e }) => {
|
|
1736
1738
|
this.$emit("selected", this.getSelectedLinkText(e));
|
|
@@ -1771,11 +1773,11 @@ ${n.textContent}
|
|
|
1771
1773
|
this.editor.commands.focus();
|
|
1772
1774
|
}
|
|
1773
1775
|
}
|
|
1774
|
-
},
|
|
1775
|
-
function
|
|
1776
|
-
const s = d("dt-button"), a = d("dt-stack"), c = d("bubble-menu"),
|
|
1776
|
+
}, an = { class: "d-popover__dialog" };
|
|
1777
|
+
function ln(e, t, o, n, r, i) {
|
|
1778
|
+
const s = d("dt-button"), a = d("dt-stack"), c = d("bubble-menu"), f = d("editor-content");
|
|
1777
1779
|
return l(), _("div", null, [
|
|
1778
|
-
r.editor && o.link && !o.hideLinkBubbleMenu ? (l(),
|
|
1780
|
+
r.editor && o.link && !o.hideLinkBubbleMenu ? (l(), h(c, {
|
|
1779
1781
|
key: 0,
|
|
1780
1782
|
editor: r.editor,
|
|
1781
1783
|
"should-show": i.bubbleMenuShouldShow,
|
|
@@ -1783,40 +1785,40 @@ function an(e, t, o, n, r, i) {
|
|
|
1783
1785
|
style: { visibility: "visible" }
|
|
1784
1786
|
}, {
|
|
1785
1787
|
default: u(() => [
|
|
1786
|
-
w("div",
|
|
1787
|
-
|
|
1788
|
+
w("div", an, [
|
|
1789
|
+
p(a, {
|
|
1788
1790
|
direction: "row",
|
|
1789
1791
|
class: "d-rich-text-editor-bubble-menu__button-stack",
|
|
1790
1792
|
gap: "0"
|
|
1791
1793
|
}, {
|
|
1792
1794
|
default: u(() => [
|
|
1793
|
-
|
|
1795
|
+
p(s, {
|
|
1794
1796
|
kind: "muted",
|
|
1795
1797
|
importance: "clear",
|
|
1796
1798
|
onClick: i.editLink
|
|
1797
1799
|
}, {
|
|
1798
1800
|
default: u(() => [
|
|
1799
|
-
k("
|
|
1801
|
+
k(m(r.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)
|
|
1800
1802
|
]),
|
|
1801
1803
|
_: 1
|
|
1802
1804
|
}, 8, ["onClick"]),
|
|
1803
|
-
|
|
1805
|
+
p(s, {
|
|
1804
1806
|
kind: "muted",
|
|
1805
1807
|
importance: "clear",
|
|
1806
1808
|
onClick: i.openLink
|
|
1807
1809
|
}, {
|
|
1808
1810
|
default: u(() => [
|
|
1809
|
-
k("
|
|
1811
|
+
k(m(r.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)
|
|
1810
1812
|
]),
|
|
1811
1813
|
_: 1
|
|
1812
1814
|
}, 8, ["onClick"]),
|
|
1813
|
-
|
|
1815
|
+
p(s, {
|
|
1814
1816
|
kind: "danger",
|
|
1815
1817
|
importance: "clear",
|
|
1816
1818
|
onClick: i.removeLink
|
|
1817
1819
|
}, {
|
|
1818
1820
|
default: u(() => [
|
|
1819
|
-
k("
|
|
1821
|
+
k(m(r.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)
|
|
1820
1822
|
]),
|
|
1821
1823
|
_: 1
|
|
1822
1824
|
}, 8, ["onClick"])
|
|
@@ -1827,7 +1829,7 @@ function an(e, t, o, n, r, i) {
|
|
|
1827
1829
|
]),
|
|
1828
1830
|
_: 1
|
|
1829
1831
|
}, 8, ["editor", "should-show", "tippy-options"])) : x("", !0),
|
|
1830
|
-
f
|
|
1832
|
+
p(f, Pe({
|
|
1831
1833
|
ref: "editor",
|
|
1832
1834
|
editor: r.editor,
|
|
1833
1835
|
class: "d-rich-text-editor",
|
|
@@ -1835,8 +1837,8 @@ function an(e, t, o, n, r, i) {
|
|
|
1835
1837
|
}, i.attrs), null, 16, ["editor"])
|
|
1836
1838
|
]);
|
|
1837
1839
|
}
|
|
1838
|
-
const
|
|
1840
|
+
const eo = /* @__PURE__ */ g(sn, [["render", ln]]);
|
|
1839
1841
|
export {
|
|
1840
|
-
|
|
1842
|
+
eo as default
|
|
1841
1843
|
};
|
|
1842
1844
|
//# sourceMappingURL=rich-text-editor.js.map
|