@dialpad/dialtone 9.122.0 → 9.123.1
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/dist/css/dialtone-default-theme.css +28 -28
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone-docs.json +1 -1
- package/dist/css/dialtone.css +28 -28
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/doc.json +30809 -30809
- package/dist/vue2/_plugin-vue2_normalizer-CeySl7Fu.js +11 -0
- package/dist/vue2/_plugin-vue2_normalizer-CeySl7Fu.js.map +1 -0
- package/dist/vue2/_plugin-vue2_normalizer-yXi3ZRRD.cjs +2 -0
- package/dist/vue2/_plugin-vue2_normalizer-yXi3ZRRD.cjs.map +1 -0
- package/dist/vue2/component-documentation.json +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 +17 -8
- package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
- package/dist/vue2/lib/avatar/avatar.cjs +1 -1
- package/dist/vue2/lib/avatar/avatar.js +5 -2
- package/dist/vue2/lib/avatar/avatar.js.map +1 -1
- package/dist/vue2/lib/badge/badge.cjs +1 -1
- package/dist/vue2/lib/badge/badge.js +7 -4
- package/dist/vue2/lib/badge/badge.js.map +1 -1
- package/dist/vue2/lib/banner/banner.cjs +2 -2
- package/dist/vue2/lib/banner/banner.js +9 -6
- package/dist/vue2/lib/banner/banner.js.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumb-item.js +7 -4
- package/dist/vue2/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +5 -2
- 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.js +5 -2
- package/dist/vue2/lib/button/button.js.map +1 -1
- package/dist/vue2/lib/button-group/button-group.cjs +1 -1
- package/dist/vue2/lib/button-group/button-group.js +11 -8
- package/dist/vue2/lib/button-group/button-group.js.map +1 -1
- package/dist/vue2/lib/button-group/buttons-decorator.cjs +1 -1
- package/dist/vue2/lib/button-group/buttons-decorator.js +7 -4
- package/dist/vue2/lib/button-group/buttons-decorator.js.map +1 -1
- package/dist/vue2/lib/callbar-button/callbar-button.cjs +1 -1
- package/dist/vue2/lib/callbar-button/callbar-button.js +10 -7
- package/dist/vue2/lib/callbar-button/callbar-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.js +5 -2
- 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.js +12 -9
- package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/vue2/lib/callbox/callbox.cjs +1 -1
- package/dist/vue2/lib/callbox/callbox.js +5 -2
- package/dist/vue2/lib/callbox/callbox.js.map +1 -1
- package/dist/vue2/lib/card/card.cjs +1 -1
- package/dist/vue2/lib/card/card.js +7 -4
- package/dist/vue2/lib/card/card.js.map +1 -1
- package/dist/vue2/lib/checkbox/checkbox.cjs +1 -1
- package/dist/vue2/lib/checkbox/checkbox.js +5 -2
- package/dist/vue2/lib/checkbox/checkbox.js.map +1 -1
- package/dist/vue2/lib/checkbox-group/checkbox-group.cjs +1 -1
- package/dist/vue2/lib/checkbox-group/checkbox-group.js +8 -5
- package/dist/vue2/lib/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/vue2/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
- package/dist/vue2/lib/checkbox-group/checkboxes-decorator.js +12 -9
- package/dist/vue2/lib/checkbox-group/checkboxes-decorator.js.map +1 -1
- package/dist/vue2/lib/chip/chip.cjs +1 -1
- package/dist/vue2/lib/chip/chip.js +11 -8
- package/dist/vue2/lib/chip/chip.js.map +1 -1
- package/dist/vue2/lib/codeblock/codeblock.cjs +2 -2
- package/dist/vue2/lib/codeblock/codeblock.js +11 -8
- package/dist/vue2/lib/codeblock/codeblock.js.map +1 -1
- package/dist/vue2/lib/collapsible/collapsible-lazy-show.cjs +1 -1
- package/dist/vue2/lib/collapsible/collapsible-lazy-show.js +5 -2
- package/dist/vue2/lib/collapsible/collapsible-lazy-show.js.map +1 -1
- package/dist/vue2/lib/collapsible/collapsible.cjs +1 -1
- package/dist/vue2/lib/collapsible/collapsible.js +7 -4
- package/dist/vue2/lib/collapsible/collapsible.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.cjs +1 -1
- package/dist/vue2/lib/combobox/combobox-empty-list.js +10 -7
- package/dist/vue2/lib/combobox/combobox-empty-list.js.map +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.cjs +1 -1
- package/dist/vue2/lib/combobox/combobox-loading-list.js +10 -7
- 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.js +5 -2
- package/dist/vue2/lib/combobox/combobox.js.map +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue2/lib/combobox-multi-select/combobox-multi-select.js +9 -6
- 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.js +5 -2
- 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.js +9 -6
- package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/vue2/lib/contact-info/contact-info.cjs +1 -1
- package/dist/vue2/lib/contact-info/contact-info.js +8 -5
- package/dist/vue2/lib/contact-info/contact-info.js.map +1 -1
- package/dist/vue2/lib/contact-row/contact-row.cjs +1 -1
- package/dist/vue2/lib/contact-row/contact-row.js +5 -2
- package/dist/vue2/lib/contact-row/contact-row.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 +13 -4
- package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
- package/dist/vue2/lib/description-list/description-list.cjs +1 -1
- package/dist/vue2/lib/description-list/description-list.js +13 -10
- package/dist/vue2/lib/description-list/description-list.js.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/vue2/lib/dropdown/dropdown-list.js +8 -5
- package/dist/vue2/lib/dropdown/dropdown-list.js.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown-separator.cjs +1 -1
- package/dist/vue2/lib/dropdown/dropdown-separator.js +7 -4
- package/dist/vue2/lib/dropdown/dropdown-separator.js.map +1 -1
- package/dist/vue2/lib/dropdown/dropdown.cjs +1 -1
- package/dist/vue2/lib/dropdown/dropdown.js +5 -2
- 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.js +49 -46
- package/dist/vue2/lib/editor/editor.js.map +1 -1
- package/dist/vue2/lib/emoji/emoji.cjs +1 -1
- package/dist/vue2/lib/emoji/emoji.js +10 -7
- package/dist/vue2/lib/emoji/emoji.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 +34 -13
- package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/vue2/lib/emoji-row/emoji-row.js +6 -3
- package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
- package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.js +9 -6
- package/dist/vue2/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
- package/dist/vue2/lib/empty-state/empty-state.cjs +1 -1
- package/dist/vue2/lib/empty-state/empty-state.js +9 -6
- package/dist/vue2/lib/empty-state/empty-state.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.js +14 -11
- package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/vue2/lib/feed-item-row/feed-item-row.cjs +1 -1
- package/dist/vue2/lib/feed-item-row/feed-item-row.js +9 -6
- package/dist/vue2/lib/feed-item-row/feed-item-row.js.map +1 -1
- package/dist/vue2/lib/general-row/general-row.cjs +1 -1
- package/dist/vue2/lib/general-row/general-row.js +5 -2
- package/dist/vue2/lib/general-row/general-row.js.map +1 -1
- package/dist/vue2/lib/general-row/leftbar-general-row-icon.cjs +1 -1
- package/dist/vue2/lib/general-row/leftbar-general-row-icon.js +10 -7
- package/dist/vue2/lib/general-row/leftbar-general-row-icon.js.map +1 -1
- package/dist/vue2/lib/group-row/group-row.cjs +1 -1
- package/dist/vue2/lib/group-row/group-row.js +7 -4
- package/dist/vue2/lib/group-row/group-row.js.map +1 -1
- package/dist/vue2/lib/grouped-chip/grouped-chip.cjs +1 -1
- package/dist/vue2/lib/grouped-chip/grouped-chip.js +7 -4
- package/dist/vue2/lib/grouped-chip/grouped-chip.js.map +1 -1
- package/dist/vue2/lib/hovercard/hovercard.cjs +1 -1
- package/dist/vue2/lib/hovercard/hovercard.js +9 -6
- package/dist/vue2/lib/hovercard/hovercard.js.map +1 -1
- package/dist/vue2/lib/icon/icon.cjs +1 -1
- package/dist/vue2/lib/icon/icon.js +12 -9
- package/dist/vue2/lib/icon/icon.js.map +1 -1
- package/dist/vue2/lib/illustration/illustration.cjs +1 -1
- package/dist/vue2/lib/illustration/illustration.js +13 -10
- package/dist/vue2/lib/illustration/illustration.js.map +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/vue2/lib/image-viewer/image-viewer.js +9 -6
- package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/vue2/lib/input/input.cjs +1 -1
- package/dist/vue2/lib/input/input.js +5 -2
- package/dist/vue2/lib/input/input.js.map +1 -1
- package/dist/vue2/lib/input-group/input-group.cjs +1 -1
- package/dist/vue2/lib/input-group/input-group.js +9 -6
- package/dist/vue2/lib/input-group/input-group.js.map +1 -1
- package/dist/vue2/lib/item-layout/item-layout.cjs +2 -2
- package/dist/vue2/lib/item-layout/item-layout.js +7 -4
- package/dist/vue2/lib/item-layout/item-layout.js.map +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/vue2/lib/ivr-node/ivr-node.js +14 -11
- package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.js +13 -10
- package/dist/vue2/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/vue2/lib/lazy-show/lazy-show.cjs +1 -1
- package/dist/vue2/lib/lazy-show/lazy-show.js +5 -2
- package/dist/vue2/lib/lazy-show/lazy-show.js.map +1 -1
- package/dist/vue2/lib/link/link.cjs +1 -1
- package/dist/vue2/lib/link/link.js +9 -6
- package/dist/vue2/lib/link/link.js.map +1 -1
- package/dist/vue2/lib/list-item/list-item.cjs +1 -1
- package/dist/vue2/lib/list-item/list-item.js +25 -22
- package/dist/vue2/lib/list-item/list-item.js.map +1 -1
- package/dist/vue2/lib/list-item-group/list-item-group.cjs +1 -1
- package/dist/vue2/lib/list-item-group/list-item-group.js +11 -8
- package/dist/vue2/lib/list-item-group/list-item-group.js.map +1 -1
- package/dist/vue2/lib/message-input/message-input-button.cjs +1 -1
- package/dist/vue2/lib/message-input/message-input-button.js +7 -4
- package/dist/vue2/lib/message-input/message-input-button.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.js +5 -2
- 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.js +5 -2
- 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 +23 -9
- package/dist/vue2/lib/message-input/message-input.js.map +1 -1
- package/dist/vue2/lib/modal/modal.cjs +2 -2
- package/dist/vue2/lib/modal/modal.js +5 -2
- 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.js +7 -4
- package/dist/vue2/lib/notice/notice-action.js.map +1 -1
- package/dist/vue2/lib/notice/notice-content.cjs +1 -1
- package/dist/vue2/lib/notice/notice-content.js +5 -2
- package/dist/vue2/lib/notice/notice-content.js.map +1 -1
- package/dist/vue2/lib/notice/notice-icon.cjs +1 -1
- package/dist/vue2/lib/notice/notice-icon.js +16 -13
- package/dist/vue2/lib/notice/notice-icon.js.map +1 -1
- package/dist/vue2/lib/notice/notice.cjs +1 -1
- package/dist/vue2/lib/notice/notice.js +10 -7
- 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.js +9 -6
- 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.js +8 -5
- 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.js +5 -2
- package/dist/vue2/lib/popover/popover.js.map +1 -1
- package/dist/vue2/lib/presence/presence.cjs +1 -1
- package/dist/vue2/lib/presence/presence.js +7 -4
- package/dist/vue2/lib/presence/presence.js.map +1 -1
- package/dist/vue2/lib/radio/radio.cjs +1 -1
- package/dist/vue2/lib/radio/radio.js +8 -5
- package/dist/vue2/lib/radio/radio.js.map +1 -1
- package/dist/vue2/lib/radio-group/radio-group.cjs +1 -1
- package/dist/vue2/lib/radio-group/radio-group.js +5 -2
- package/dist/vue2/lib/radio-group/radio-group.js.map +1 -1
- package/dist/vue2/lib/radio-group/radios-decorator.cjs +1 -1
- package/dist/vue2/lib/radio-group/radios-decorator.js +9 -6
- package/dist/vue2/lib/radio-group/radios-decorator.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/mention-suggestion.cjs +1 -1
- package/dist/vue2/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/mention-suggestion.js +33 -14
- package/dist/vue2/lib/rich-text-editor/mention-suggestion.js.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +4 -4
- 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 +364 -315
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/lib/root-layout/root-layout.cjs +1 -1
- package/dist/vue2/lib/root-layout/root-layout.js +8 -5
- package/dist/vue2/lib/root-layout/root-layout.js.map +1 -1
- package/dist/vue2/lib/select-menu/select-menu.cjs +1 -1
- package/dist/vue2/lib/select-menu/select-menu.js +5 -2
- package/dist/vue2/lib/select-menu/select-menu.js.map +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.cjs +1 -1
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.js +7 -4
- package/dist/vue2/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/vue2/lib/skeleton/skeleton-list-item.cjs +1 -1
- package/dist/vue2/lib/skeleton/skeleton-list-item.js +5 -2
- package/dist/vue2/lib/skeleton/skeleton-list-item.js.map +1 -1
- package/dist/vue2/lib/skeleton/skeleton-paragraph.cjs +1 -1
- package/dist/vue2/lib/skeleton/skeleton-paragraph.js +8 -5
- package/dist/vue2/lib/skeleton/skeleton-paragraph.js.map +1 -1
- package/dist/vue2/lib/skeleton/skeleton-shape.cjs +1 -1
- package/dist/vue2/lib/skeleton/skeleton-shape.js +7 -4
- package/dist/vue2/lib/skeleton/skeleton-shape.js.map +1 -1
- package/dist/vue2/lib/skeleton/skeleton-text.cjs +1 -1
- package/dist/vue2/lib/skeleton/skeleton-text.js +14 -11
- package/dist/vue2/lib/skeleton/skeleton-text.js.map +1 -1
- package/dist/vue2/lib/skeleton/skeleton.cjs +1 -1
- package/dist/vue2/lib/skeleton/skeleton.js +9 -6
- package/dist/vue2/lib/skeleton/skeleton.js.map +1 -1
- package/dist/vue2/lib/split-button/split-button-alpha.cjs +1 -1
- package/dist/vue2/lib/split-button/split-button-alpha.js +12 -9
- package/dist/vue2/lib/split-button/split-button-alpha.js.map +1 -1
- package/dist/vue2/lib/split-button/split-button-omega.cjs +1 -1
- package/dist/vue2/lib/split-button/split-button-omega.js +9 -6
- package/dist/vue2/lib/split-button/split-button-omega.js.map +1 -1
- package/dist/vue2/lib/split-button/split-button.cjs +1 -1
- package/dist/vue2/lib/split-button/split-button.js +9 -6
- package/dist/vue2/lib/split-button/split-button.js.map +1 -1
- package/dist/vue2/lib/stack/stack.cjs +1 -1
- package/dist/vue2/lib/stack/stack.js +15 -12
- package/dist/vue2/lib/stack/stack.js.map +1 -1
- package/dist/vue2/lib/tab/tab-group.cjs +1 -1
- package/dist/vue2/lib/tab/tab-group.js +5 -2
- package/dist/vue2/lib/tab/tab-group.js.map +1 -1
- package/dist/vue2/lib/tab/tab-panel.cjs +1 -1
- package/dist/vue2/lib/tab/tab-panel.js +11 -8
- package/dist/vue2/lib/tab/tab-panel.js.map +1 -1
- package/dist/vue2/lib/tab/tab.cjs +1 -1
- package/dist/vue2/lib/tab/tab.js +10 -7
- package/dist/vue2/lib/tab/tab.js.map +1 -1
- package/dist/vue2/lib/time-pill/time-pill.cjs +1 -1
- package/dist/vue2/lib/time-pill/time-pill.js +8 -5
- 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 +17 -5
- package/dist/vue2/lib/toast/toast.js.map +1 -1
- package/dist/vue2/lib/toggle/toggle.cjs +1 -1
- package/dist/vue2/lib/toggle/toggle.js +5 -2
- package/dist/vue2/lib/toggle/toggle.js.map +1 -1
- package/dist/vue2/lib/tooltip/tooltip.cjs +1 -1
- package/dist/vue2/lib/tooltip/tooltip.js +9 -6
- package/dist/vue2/lib/tooltip/tooltip.js.map +1 -1
- package/dist/vue2/lib/top-banner-info/top-banner-info.cjs +1 -1
- package/dist/vue2/lib/top-banner-info/top-banner-info.js +5 -2
- package/dist/vue2/lib/top-banner-info/top-banner-info.js.map +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/vue2/lib/unread-pill/unread-pill.js +8 -5
- package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/vue2/lib/validation-messages/validation-messages.cjs +1 -1
- package/dist/vue2/lib/validation-messages/validation-messages.js +10 -7
- package/dist/vue2/lib/validation-messages/validation-messages.js.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.cjs +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.cjs.map +1 -1
- package/dist/vue2/node_modules/@tiptap/vue-2.js +191 -149
- 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.js +12 -9
- package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
- package/dist/vue2/style.css +1 -0
- package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +16 -16
- package/dist/vue2/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +16 -16
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +16 -16
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +5 -0
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +16 -16
- package/dist/vue2/types/components/rich_text_editor/mention_suggestion.d.ts +23 -3
- package/dist/vue2/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +16 -16
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- 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 +4 -3
- 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 +518 -415
- package/dist/vue3/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs +1 -1
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.js +34 -15
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +3 -3
- 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 +264 -212
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue3/node_modules/@tiptap/vue-3.cjs +1 -1
- package/dist/vue3/node_modules/@tiptap/vue-3.cjs.map +1 -1
- package/dist/vue3/node_modules/@tiptap/vue-3.js +165 -115
- package/dist/vue3/node_modules/@tiptap/vue-3.js.map +1 -1
- package/dist/vue3/style.css +1 -0
- package/dist/vue3/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -1
- package/dist/vue3/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/emoji_picker/emoji_picker_constants.d.ts +1 -0
- package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +1 -1
- package/dist/vue3/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +26 -2
- package/dist/vue3/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +26 -2
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +26 -2
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +5 -0
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/slash_command/SlashCommandComponent.vue.d.ts +26 -2
- package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts +23 -3
- package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +26 -2
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
- package/package.json +32 -32
- package/dist/vue2/_plugin-vue2_normalizer-DSLOjnn3.js +0 -11
- package/dist/vue2/_plugin-vue2_normalizer-DSLOjnn3.js.map +0 -1
- package/dist/vue2/_plugin-vue2_normalizer-e_CkxkSV.cjs +0 -2
- package/dist/vue2/_plugin-vue2_normalizer-e_CkxkSV.cjs.map +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { NodeViewWrapper as
|
|
2
|
-
import { Node as
|
|
3
|
-
import
|
|
1
|
+
import { NodeViewWrapper as R, nodeViewProps as L, VueRenderer as v, VueNodeViewRenderer as $, EditorContent as G, BubbleMenu as Q, Editor as Z } from "../../node_modules/@tiptap/vue-3.js";
|
|
2
|
+
import { Node as ee, mergeAttributes as x, InputRule as te, nodePasteRule as B, getMarksBetween as ne, combineTransactionSteps as oe, getChangedRanges as ie, findChildrenInRange as re, Mark as se, nodeInputRule as ae, Extension as le } from "@tiptap/core";
|
|
3
|
+
import ce from "@tiptap/extension-blockquote";
|
|
4
4
|
import de from "@tiptap/extension-code-block";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
5
|
+
import ue from "@tiptap/extension-code";
|
|
6
|
+
import me from "@tiptap/extension-document";
|
|
7
|
+
import he from "@tiptap/extension-hard-break";
|
|
8
|
+
import U from "@tiptap/extension-paragraph";
|
|
9
|
+
import fe from "@tiptap/extension-placeholder";
|
|
10
|
+
import pe from "@tiptap/extension-bold";
|
|
11
|
+
import ge from "@tiptap/extension-bullet-list";
|
|
12
|
+
import _e from "@tiptap/extension-italic";
|
|
13
|
+
import we from "@tiptap/extension-link";
|
|
14
14
|
import ye from "@tiptap/extension-list-item";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { PluginKey as
|
|
15
|
+
import ke from "@tiptap/extension-ordered-list";
|
|
16
|
+
import be from "@tiptap/extension-strike";
|
|
17
|
+
import xe from "@tiptap/extension-underline";
|
|
18
|
+
import Ce from "@tiptap/extension-text";
|
|
19
|
+
import Ee from "@tiptap/extension-text-align";
|
|
20
|
+
import Se from "@tiptap/extension-history";
|
|
21
|
+
import Te from "@tiptap/extension-text-style";
|
|
22
|
+
import Re from "@tiptap/extension-color";
|
|
23
|
+
import Le from "@tiptap/extension-font-family";
|
|
24
|
+
import { PluginKey as E, Plugin as ve } from "@tiptap/pm/state";
|
|
25
25
|
import $e from "@tiptap/suggestion";
|
|
26
|
-
import { emojiPattern as
|
|
27
|
-
import { resolveComponent as d, openBlock as
|
|
28
|
-
import { _ as
|
|
29
|
-
import
|
|
30
|
-
import { stringToUnicode as Pe, codeToEmojiData as
|
|
31
|
-
import { emojisIndexed as
|
|
26
|
+
import { emojiPattern as z } from "regex-combined-emojis";
|
|
27
|
+
import { resolveComponent as d, openBlock as l, createBlock as m, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Ie, createElementVNode as y, Fragment as Me, renderList as Oe, normalizeClass as W, withModifiers as Ae, resolveDynamicComponent as De, vShow as je, createTextVNode as k, toDisplayString as p, markRaw as I, createCommentVNode as b, mergeProps as Be } from "vue";
|
|
28
|
+
import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
29
|
+
import X from "../emoji/emoji.js";
|
|
30
|
+
import { stringToUnicode as Pe, codeToEmojiData as H, emojiRegex as He, emojiShortCodeRegex as Fe } from "../../common/emoji/index.js";
|
|
31
|
+
import { emojisIndexed as Ve } from "@dialpad/dialtone-emojis";
|
|
32
32
|
import Ke from "../list-item/list-item.js";
|
|
33
|
-
import
|
|
34
|
-
import
|
|
33
|
+
import M from "../stack/stack.js";
|
|
34
|
+
import O from "tippy.js";
|
|
35
35
|
import { linkRegex as qe, getPhoneNumberRegex as Ne, returnFirstEl as V, warnIfUnmounted as Ue } from "../../common/utils/index.js";
|
|
36
36
|
import ze from "@tiptap/extension-image";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as We, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Xe, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as
|
|
37
|
+
import F from "@tiptap/extension-mention";
|
|
38
|
+
import J from "../link/link.js";
|
|
39
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as We, 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";
|
|
@@ -46,14 +46,14 @@ const et = {
|
|
|
46
46
|
compatConfig: { MODE: 3 },
|
|
47
47
|
name: "EmojiComponent",
|
|
48
48
|
components: {
|
|
49
|
-
NodeViewWrapper:
|
|
50
|
-
DtEmoji:
|
|
49
|
+
NodeViewWrapper: R,
|
|
50
|
+
DtEmoji: X
|
|
51
51
|
},
|
|
52
|
-
props:
|
|
52
|
+
props: L
|
|
53
53
|
};
|
|
54
54
|
function tt(e, t, o, n, i, r) {
|
|
55
55
|
const s = d("dt-emoji"), a = d("node-view-wrapper");
|
|
56
|
-
return
|
|
56
|
+
return l(), m(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
57
57
|
default: u(() => [
|
|
58
58
|
f(s, {
|
|
59
59
|
size: "500",
|
|
@@ -63,7 +63,7 @@ function tt(e, t, o, n, i, r) {
|
|
|
63
63
|
_: 1
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const nt = /* @__PURE__ */
|
|
66
|
+
const nt = /* @__PURE__ */ g(et, [["render", tt]]), ot = {
|
|
67
67
|
compatConfig: { MODE: 3 },
|
|
68
68
|
name: "SuggestionList",
|
|
69
69
|
components: {
|
|
@@ -142,34 +142,34 @@ const nt = /* @__PURE__ */ p(et, [["render", tt]]), ot = {
|
|
|
142
142
|
};
|
|
143
143
|
function st(e, t, o, n, i, r) {
|
|
144
144
|
const s = d("dt-list-item");
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
(
|
|
145
|
+
return l(), _("div", it, [
|
|
146
|
+
Ie(y("ul", rt, [
|
|
147
|
+
(l(!0), _(Me, null, Oe(o.items, (a, c) => (l(), m(s, {
|
|
148
148
|
key: a.id,
|
|
149
|
-
class:
|
|
149
|
+
class: W([
|
|
150
150
|
"d-suggestion-list__item",
|
|
151
|
-
{ "d-list-item--highlighted":
|
|
151
|
+
{ "d-list-item--highlighted": c === i.selectedIndex }
|
|
152
152
|
]),
|
|
153
153
|
"navigation-type": "arrow-keys",
|
|
154
|
-
onClick: (h) => r.selectItem(
|
|
154
|
+
onClick: (h) => r.selectItem(c),
|
|
155
155
|
onKeydown: Ae(r.onKeyDown, ["prevent"])
|
|
156
156
|
}, {
|
|
157
157
|
default: u(() => [
|
|
158
|
-
(
|
|
158
|
+
(l(), m(De(o.itemComponent), { item: a }, null, 8, ["item"]))
|
|
159
159
|
]),
|
|
160
160
|
_: 2
|
|
161
161
|
}, 1032, ["class", "onClick", "onKeydown"]))), 128))
|
|
162
162
|
], 512), [
|
|
163
|
-
[
|
|
163
|
+
[je, o.items.length]
|
|
164
164
|
])
|
|
165
165
|
]);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const A = /* @__PURE__ */ g(ot, [["render", st]]), at = {
|
|
168
168
|
compatConfig: { MODE: 3 },
|
|
169
169
|
name: "EmojiSuggestion",
|
|
170
170
|
components: {
|
|
171
|
-
DtEmoji:
|
|
172
|
-
DtStack:
|
|
171
|
+
DtEmoji: X,
|
|
172
|
+
DtStack: M
|
|
173
173
|
},
|
|
174
174
|
props: {
|
|
175
175
|
item: {
|
|
@@ -180,7 +180,7 @@ const O = /* @__PURE__ */ p(ot, [["render", st]]), at = {
|
|
|
180
180
|
};
|
|
181
181
|
function lt(e, t, o, n, i, r) {
|
|
182
182
|
const s = d("dt-emoji"), a = d("dt-stack");
|
|
183
|
-
return
|
|
183
|
+
return l(), m(a, {
|
|
184
184
|
direction: "row",
|
|
185
185
|
gap: "400"
|
|
186
186
|
}, {
|
|
@@ -189,12 +189,12 @@ function lt(e, t, o, n, i, r) {
|
|
|
189
189
|
size: "200",
|
|
190
190
|
code: o.item.code
|
|
191
191
|
}, null, 8, ["code"]),
|
|
192
|
-
|
|
192
|
+
k(" " + p(o.item.code), 1)
|
|
193
193
|
]),
|
|
194
194
|
_: 1
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const ct = /* @__PURE__ */ g(at, [["render", lt]]), D = {
|
|
198
198
|
name: "hideOnEsc",
|
|
199
199
|
defaultValue: !0,
|
|
200
200
|
fn({ hide: e }) {
|
|
@@ -210,18 +210,18 @@ const dt = /* @__PURE__ */ p(at, [["render", lt]]), A = {
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, dt = 20, ut = {
|
|
214
214
|
items: ({ query: e }) => {
|
|
215
215
|
if (e.length < 2)
|
|
216
216
|
return [];
|
|
217
|
-
const t = Object.values(
|
|
217
|
+
const t = Object.values(Ve);
|
|
218
218
|
return e = e.toLowerCase(), t.filter(
|
|
219
219
|
(n) => [
|
|
220
220
|
n.name,
|
|
221
221
|
n.shortname.replaceAll(":", ""),
|
|
222
222
|
...n.keywords
|
|
223
223
|
].some((i) => i.startsWith(e))
|
|
224
|
-
).splice(0,
|
|
224
|
+
).splice(0, dt).map((n) => ({ code: n.shortname }));
|
|
225
225
|
},
|
|
226
226
|
command: ({ editor: e, range: t, props: o }) => {
|
|
227
227
|
var r, s;
|
|
@@ -237,14 +237,14 @@ const dt = /* @__PURE__ */ p(at, [["render", lt]]), A = {
|
|
|
237
237
|
let e, t, o = !1;
|
|
238
238
|
return {
|
|
239
239
|
onStart: (n) => {
|
|
240
|
-
e = new
|
|
240
|
+
e = new v(A, {
|
|
241
241
|
props: {
|
|
242
|
-
itemComponent:
|
|
242
|
+
itemComponent: I(ct),
|
|
243
243
|
itemType: "emoji",
|
|
244
244
|
...n
|
|
245
245
|
},
|
|
246
246
|
editor: n.editor
|
|
247
|
-
}), n.clientRect && (t =
|
|
247
|
+
}), n.clientRect && (t = O("body", {
|
|
248
248
|
getReferenceClientRect: n.clientRect,
|
|
249
249
|
appendTo: () => document.body,
|
|
250
250
|
content: e.element,
|
|
@@ -259,7 +259,7 @@ const dt = /* @__PURE__ */ p(at, [["render", lt]]), A = {
|
|
|
259
259
|
trigger: "manual",
|
|
260
260
|
placement: "top-start",
|
|
261
261
|
zIndex: 650,
|
|
262
|
-
plugins: [
|
|
262
|
+
plugins: [D]
|
|
263
263
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
264
264
|
},
|
|
265
265
|
onUpdate(n) {
|
|
@@ -277,14 +277,14 @@ const dt = /* @__PURE__ */ p(at, [["render", lt]]), A = {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
}, mt = /(:\w+:)$/, ht = new RegExp(
|
|
281
|
-
if (e &&
|
|
280
|
+
}, mt = /(:\w+:)$/, ht = new RegExp(z + "$"), ft = (e) => {
|
|
281
|
+
if (e && H(e[0]))
|
|
282
282
|
return { text: e[2] || e[0] };
|
|
283
|
-
}, pt = (e) => [...e.matchAll(
|
|
283
|
+
}, pt = (e) => [...e.matchAll(Fe)].filter((o) => H(o[0])).map((o) => ({
|
|
284
284
|
index: o.index,
|
|
285
285
|
text: o[0],
|
|
286
286
|
match: o
|
|
287
|
-
})), gt =
|
|
287
|
+
})), gt = ee.create({
|
|
288
288
|
name: "emoji",
|
|
289
289
|
addOptions() {
|
|
290
290
|
return {
|
|
@@ -313,22 +313,22 @@ const dt = /* @__PURE__ */ p(at, [["render", lt]]), A = {
|
|
|
313
313
|
];
|
|
314
314
|
},
|
|
315
315
|
renderText({ node: e }) {
|
|
316
|
-
return Pe(
|
|
316
|
+
return Pe(H(e.attrs.code).unicode_output);
|
|
317
317
|
},
|
|
318
318
|
renderHTML({ HTMLAttributes: e }) {
|
|
319
|
-
return ["emoji-component",
|
|
319
|
+
return ["emoji-component", x(this.options.HTMLAttributes, e)];
|
|
320
320
|
},
|
|
321
321
|
addInputRules() {
|
|
322
322
|
return [
|
|
323
|
-
new
|
|
323
|
+
new te({
|
|
324
324
|
find: (e) => {
|
|
325
325
|
const t = e.match(mt) || e.match(ht);
|
|
326
326
|
if (t)
|
|
327
327
|
return ft(t);
|
|
328
328
|
},
|
|
329
329
|
handler: ({ state: e, range: t, match: o, commands: n, chain: i, can: r }) => {
|
|
330
|
-
const { tr: s } = e, a = t.from,
|
|
331
|
-
s.replaceWith(a,
|
|
330
|
+
const { tr: s } = e, a = t.from, c = t.to;
|
|
331
|
+
s.replaceWith(a, c, this.type.create({ code: o[0] }));
|
|
332
332
|
}
|
|
333
333
|
})
|
|
334
334
|
];
|
|
@@ -359,7 +359,7 @@ const dt = /* @__PURE__ */ p(at, [["render", lt]]), A = {
|
|
|
359
359
|
return [
|
|
360
360
|
$e({
|
|
361
361
|
char: ":",
|
|
362
|
-
pluginKey: new
|
|
362
|
+
pluginKey: new E("emoji"),
|
|
363
363
|
editor: this.editor,
|
|
364
364
|
...this.options.suggestion,
|
|
365
365
|
...ut
|
|
@@ -387,10 +387,10 @@ function _t(e, t, o = () => !0) {
|
|
|
387
387
|
o(e, i) && n.push(i);
|
|
388
388
|
return n;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function wt(e, t) {
|
|
391
391
|
return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function yt(e) {
|
|
394
394
|
const t = new RegExp(
|
|
395
395
|
"(?:" + [
|
|
396
396
|
`[!?.,:;'"]`,
|
|
@@ -416,65 +416,65 @@ function kt(e, t) {
|
|
|
416
416
|
to: n + t
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function P(e, t, o, n) {
|
|
420
420
|
const i = kt(e, t);
|
|
421
421
|
if (n.lastIndex = 0, !n.test(i.text))
|
|
422
422
|
return i;
|
|
423
423
|
const r = o === "left" ? i.from - 1 : i.to + 1;
|
|
424
|
-
return r <= 0 || r >= e.length || r === t ? i :
|
|
424
|
+
return r <= 0 || r >= e.length || r === t ? i : P(e, r, o, n);
|
|
425
425
|
}
|
|
426
426
|
function bt(e, t, o, n) {
|
|
427
|
-
const i = Math.max(e.from - 1, 0), r = Math.min(e.to + 1, t.content.size), s =
|
|
427
|
+
const i = Math.max(e.from - 1, 0), r = Math.min(e.to + 1, t.content.size), s = ne(i, r, t);
|
|
428
428
|
for (const a of s)
|
|
429
429
|
a.mark.type === n && o.removeMark(a.from, a.to, n);
|
|
430
430
|
}
|
|
431
|
-
const
|
|
432
|
-
function
|
|
431
|
+
const q = Ne(1, 15);
|
|
432
|
+
function N(e, t, o, n, i, r) {
|
|
433
433
|
if (!e)
|
|
434
434
|
return;
|
|
435
435
|
let s = o - t - 1;
|
|
436
436
|
s = s < 0 ? 0 : s;
|
|
437
|
-
const a = n - t,
|
|
437
|
+
const a = n - t, c = P(
|
|
438
438
|
e,
|
|
439
439
|
s,
|
|
440
440
|
"left",
|
|
441
|
-
|
|
442
|
-
), h =
|
|
441
|
+
q
|
|
442
|
+
), h = P(
|
|
443
443
|
e,
|
|
444
444
|
a,
|
|
445
445
|
"right",
|
|
446
|
-
|
|
447
|
-
),
|
|
448
|
-
_t(
|
|
449
|
-
const
|
|
450
|
-
i.addMark(
|
|
446
|
+
q
|
|
447
|
+
), w = e.slice(c.from, h.to);
|
|
448
|
+
_t(w, qe, wt).forEach((j) => {
|
|
449
|
+
const C = yt(j[0]), T = t + c.from + j.index + 1, Y = T + C.length;
|
|
450
|
+
i.addMark(T, Y, r.create());
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
function xt(e) {
|
|
454
454
|
let t = !1;
|
|
455
|
-
return new
|
|
456
|
-
key: new
|
|
455
|
+
return new ve({
|
|
456
|
+
key: new E("autolink"),
|
|
457
457
|
appendTransaction: (o, n, i) => {
|
|
458
|
-
const r = o.some((
|
|
458
|
+
const r = o.some((w) => w.docChanged) && !n.doc.eq(i.doc);
|
|
459
459
|
if (t && !r)
|
|
460
460
|
return;
|
|
461
461
|
const { tr: s } = i, { textContent: a } = i.doc;
|
|
462
|
-
t ||
|
|
463
|
-
const
|
|
462
|
+
t || N(a, 0, 0, a.length, s, e.type), t = !0;
|
|
463
|
+
const c = oe(
|
|
464
464
|
n.doc,
|
|
465
465
|
[...o]
|
|
466
466
|
);
|
|
467
|
-
return
|
|
468
|
-
bt(
|
|
467
|
+
return ie(c).forEach(({ oldRange: w, newRange: S }) => {
|
|
468
|
+
bt(S, i.doc, s, e.type), re(
|
|
469
469
|
i.doc,
|
|
470
|
-
|
|
471
|
-
(
|
|
472
|
-
).forEach(({ node:
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
470
|
+
S,
|
|
471
|
+
(C) => C.isTextblock
|
|
472
|
+
).forEach(({ node: C, pos: T }) => {
|
|
473
|
+
N(
|
|
474
|
+
C.textContent,
|
|
475
|
+
T,
|
|
476
|
+
w.from,
|
|
477
|
+
S.to,
|
|
478
478
|
s,
|
|
479
479
|
e.type
|
|
480
480
|
);
|
|
@@ -486,12 +486,12 @@ function xt(e) {
|
|
|
486
486
|
const Ct = {
|
|
487
487
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
488
488
|
rel: "noopener noreferrer nofollow"
|
|
489
|
-
}, Et =
|
|
489
|
+
}, Et = se.create({
|
|
490
490
|
name: "CustomLink",
|
|
491
491
|
renderHTML({ HTMLAttributes: e }) {
|
|
492
492
|
return [
|
|
493
493
|
"a",
|
|
494
|
-
|
|
494
|
+
x(
|
|
495
495
|
this.options.HTMLAttributes,
|
|
496
496
|
e,
|
|
497
497
|
Ct
|
|
@@ -530,21 +530,21 @@ const Ct = {
|
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
|
-
}).configure({ inline: !0, allowBase64: !0 }), Tt =
|
|
533
|
+
}).configure({ inline: !0, allowBase64: !0 }), Tt = U.extend({
|
|
534
534
|
parseHTML() {
|
|
535
535
|
return [{ tag: "div" }];
|
|
536
536
|
},
|
|
537
537
|
renderHTML({ HTMLAttributes: e }) {
|
|
538
|
-
return ["div",
|
|
538
|
+
return ["div", x(this.options.HTMLAttributes, e), 0];
|
|
539
539
|
}
|
|
540
540
|
}), Rt = {
|
|
541
541
|
compatConfig: { MODE: 3 },
|
|
542
542
|
name: "MentionComponent",
|
|
543
543
|
components: {
|
|
544
|
-
NodeViewWrapper:
|
|
545
|
-
DtLink:
|
|
544
|
+
NodeViewWrapper: R,
|
|
545
|
+
DtLink: J
|
|
546
546
|
},
|
|
547
|
-
props:
|
|
547
|
+
props: L,
|
|
548
548
|
computed: {
|
|
549
549
|
text() {
|
|
550
550
|
return "@" + this.$props.node.attrs.name;
|
|
@@ -553,11 +553,11 @@ const Ct = {
|
|
|
553
553
|
};
|
|
554
554
|
function Lt(e, t, o, n, i, r) {
|
|
555
555
|
const s = d("dt-link"), a = d("node-view-wrapper");
|
|
556
|
-
return
|
|
556
|
+
return l(), m(a, { class: "d-d-inline-block" }, {
|
|
557
557
|
default: u(() => [
|
|
558
558
|
f(s, { kind: "mention" }, {
|
|
559
559
|
default: u(() => [
|
|
560
|
-
|
|
560
|
+
k(p(r.text), 1)
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
563
563
|
})
|
|
@@ -565,9 +565,9 @@ function Lt(e, t, o, n, i, r) {
|
|
|
565
565
|
_: 1
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
const
|
|
568
|
+
const vt = /* @__PURE__ */ g(Rt, [["render", Lt]]), $t = F.extend({
|
|
569
569
|
addNodeView() {
|
|
570
|
-
return $(
|
|
570
|
+
return $(vt);
|
|
571
571
|
},
|
|
572
572
|
parseHTML() {
|
|
573
573
|
return [
|
|
@@ -593,21 +593,21 @@ const $t = /* @__PURE__ */ p(Rt, [["render", Lt]]), vt = H.extend({
|
|
|
593
593
|
return `@${e.attrs.id}`;
|
|
594
594
|
},
|
|
595
595
|
renderHTML({ HTMLAttributes: e }) {
|
|
596
|
-
return ["mention-component",
|
|
596
|
+
return ["mention-component", x(this.options.HTMLAttributes, e)];
|
|
597
597
|
}
|
|
598
598
|
}).configure({
|
|
599
599
|
suggestion: {
|
|
600
600
|
char: "@",
|
|
601
|
-
pluginKey: new
|
|
601
|
+
pluginKey: new E("mentionSuggestion")
|
|
602
602
|
}
|
|
603
603
|
}), It = {
|
|
604
604
|
compatConfig: { MODE: 3 },
|
|
605
605
|
name: "ChannelComponent",
|
|
606
606
|
components: {
|
|
607
|
-
NodeViewWrapper:
|
|
608
|
-
DtLink:
|
|
607
|
+
NodeViewWrapper: R,
|
|
608
|
+
DtLink: J
|
|
609
609
|
},
|
|
610
|
-
props:
|
|
610
|
+
props: L,
|
|
611
611
|
computed: {
|
|
612
612
|
text() {
|
|
613
613
|
return "#" + this.$props.node.attrs.name;
|
|
@@ -616,11 +616,11 @@ const $t = /* @__PURE__ */ p(Rt, [["render", Lt]]), vt = H.extend({
|
|
|
616
616
|
};
|
|
617
617
|
function Mt(e, t, o, n, i, r) {
|
|
618
618
|
const s = d("dt-link"), a = d("node-view-wrapper");
|
|
619
|
-
return
|
|
619
|
+
return l(), m(a, { class: "d-d-inline-block" }, {
|
|
620
620
|
default: u(() => [
|
|
621
621
|
f(s, { kind: "mention" }, {
|
|
622
622
|
default: u(() => [
|
|
623
|
-
|
|
623
|
+
k(p(r.text), 1)
|
|
624
624
|
]),
|
|
625
625
|
_: 1
|
|
626
626
|
})
|
|
@@ -628,7 +628,7 @@ function Mt(e, t, o, n, i, r) {
|
|
|
628
628
|
_: 1
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
const Ot = /* @__PURE__ */
|
|
631
|
+
const Ot = /* @__PURE__ */ g(It, [["render", Mt]]), At = F.extend({
|
|
632
632
|
name: "channel",
|
|
633
633
|
addNodeView() {
|
|
634
634
|
return $(Ot);
|
|
@@ -657,20 +657,20 @@ const Ot = /* @__PURE__ */ p(It, [["render", Mt]]), At = H.extend({
|
|
|
657
657
|
return `#${e.attrs.id}`;
|
|
658
658
|
},
|
|
659
659
|
renderHTML({ HTMLAttributes: e }) {
|
|
660
|
-
return ["channel-component",
|
|
660
|
+
return ["channel-component", x(this.options.HTMLAttributes, e)];
|
|
661
661
|
}
|
|
662
662
|
}).configure({
|
|
663
663
|
suggestion: {
|
|
664
664
|
char: "#",
|
|
665
|
-
pluginKey: new
|
|
665
|
+
pluginKey: new E("channelSuggestion")
|
|
666
666
|
}
|
|
667
|
-
}),
|
|
667
|
+
}), Dt = {
|
|
668
668
|
compatConfig: { MODE: 3 },
|
|
669
669
|
name: "SlashCommandsComponent",
|
|
670
670
|
components: {
|
|
671
|
-
NodeViewWrapper:
|
|
671
|
+
NodeViewWrapper: R
|
|
672
672
|
},
|
|
673
|
-
props:
|
|
673
|
+
props: L,
|
|
674
674
|
emits: ["selected-command"],
|
|
675
675
|
computed: {
|
|
676
676
|
text() {
|
|
@@ -681,28 +681,28 @@ const Ot = /* @__PURE__ */ p(It, [["render", Mt]]), At = H.extend({
|
|
|
681
681
|
this.$parent.$emit("selected-command", this.$props.node.attrs.command);
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
|
-
function
|
|
684
|
+
function jt(e, t, o, n, i, r) {
|
|
685
685
|
const s = d("node-view-wrapper");
|
|
686
|
-
return
|
|
686
|
+
return l(), m(s, { class: "d-d-inline-block" }, {
|
|
687
687
|
default: u(() => [
|
|
688
|
-
|
|
688
|
+
k(p(r.text), 1)
|
|
689
689
|
]),
|
|
690
690
|
_: 1
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
-
const
|
|
693
|
+
const Bt = /* @__PURE__ */ g(Dt, [["render", jt]]), Pt = (e, t) => [...e.matchAll(t)].map((n) => {
|
|
694
694
|
let i = n[2];
|
|
695
695
|
return i.endsWith(" ") || (i += " "), {
|
|
696
696
|
index: n.index,
|
|
697
697
|
text: i,
|
|
698
698
|
match: n
|
|
699
699
|
};
|
|
700
|
-
}), Ht =
|
|
700
|
+
}), Ht = F.extend({
|
|
701
701
|
name: "slash-commands",
|
|
702
702
|
group: "inline",
|
|
703
703
|
inline: !0,
|
|
704
704
|
addNodeView() {
|
|
705
|
-
return $(
|
|
705
|
+
return $(Bt);
|
|
706
706
|
},
|
|
707
707
|
parseHTML() {
|
|
708
708
|
return [
|
|
@@ -728,13 +728,13 @@ const Dt = /* @__PURE__ */ p(jt, [["render", Bt]]), Pt = (e, t) => [...e.matchAl
|
|
|
728
728
|
return `/${e.attrs.command}`;
|
|
729
729
|
},
|
|
730
730
|
renderHTML({ HTMLAttributes: e }) {
|
|
731
|
-
return ["command-component",
|
|
731
|
+
return ["command-component", x(this.options.HTMLAttributes, e)];
|
|
732
732
|
},
|
|
733
733
|
addInputRules() {
|
|
734
734
|
var o;
|
|
735
735
|
const e = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) $`);
|
|
736
736
|
return [
|
|
737
|
-
|
|
737
|
+
ae({
|
|
738
738
|
find: t,
|
|
739
739
|
type: this.type,
|
|
740
740
|
getAttributes(n) {
|
|
@@ -759,14 +759,14 @@ const Dt = /* @__PURE__ */ p(jt, [["render", Bt]]), Pt = (e, t) => [...e.matchAl
|
|
|
759
759
|
}).configure({
|
|
760
760
|
suggestion: {
|
|
761
761
|
char: "/",
|
|
762
|
-
pluginKey: new
|
|
762
|
+
pluginKey: new E("slashCommandSuggestion")
|
|
763
763
|
}
|
|
764
|
-
}),
|
|
764
|
+
}), Ft = {
|
|
765
765
|
compatConfig: { MODE: 3 },
|
|
766
766
|
name: "MentionSuggestion",
|
|
767
767
|
components: {
|
|
768
768
|
DtAvatar: Je,
|
|
769
|
-
DtStack:
|
|
769
|
+
DtStack: M
|
|
770
770
|
},
|
|
771
771
|
props: {
|
|
772
772
|
item: {
|
|
@@ -780,13 +780,40 @@ const Dt = /* @__PURE__ */ p(jt, [["render", Bt]]), Pt = (e, t) => [...e.matchAl
|
|
|
780
780
|
},
|
|
781
781
|
avatarSrc() {
|
|
782
782
|
return this.item.avatarSrc;
|
|
783
|
+
},
|
|
784
|
+
presence() {
|
|
785
|
+
return this.item.presence;
|
|
786
|
+
},
|
|
787
|
+
status() {
|
|
788
|
+
return this.item.status;
|
|
789
|
+
},
|
|
790
|
+
presenceText() {
|
|
791
|
+
return this.item.presenceText;
|
|
792
|
+
},
|
|
793
|
+
presenceFontColorClass() {
|
|
794
|
+
return {
|
|
795
|
+
active: "d-recipe-contact-row--active",
|
|
796
|
+
busy: "d-recipe-contact-row--busy",
|
|
797
|
+
away: "d-recipe-contact-row--away",
|
|
798
|
+
offline: "d-recipe-contact-row--busy"
|
|
799
|
+
}[this.presence];
|
|
800
|
+
},
|
|
801
|
+
showDetails() {
|
|
802
|
+
return this.item.showDetails;
|
|
783
803
|
}
|
|
784
804
|
}
|
|
785
|
-
},
|
|
786
|
-
|
|
805
|
+
}, Vt = { class: "d-mention-suggestion__name" }, Kt = {
|
|
806
|
+
key: 1,
|
|
807
|
+
class: "d-mention-suggestion__divider"
|
|
808
|
+
}, qt = {
|
|
809
|
+
key: 2,
|
|
810
|
+
class: "d-mention-suggestion__status"
|
|
811
|
+
};
|
|
812
|
+
function Nt(e, t, o, n, i, r) {
|
|
787
813
|
const s = d("dt-avatar"), a = d("dt-stack");
|
|
788
|
-
return
|
|
814
|
+
return l(), m(a, {
|
|
789
815
|
direction: "row",
|
|
816
|
+
class: "d-mention-suggestion__container",
|
|
790
817
|
gap: "400"
|
|
791
818
|
}, {
|
|
792
819
|
default: u(() => [
|
|
@@ -794,14 +821,40 @@ function Kt(e, t, o, n, i, r) {
|
|
|
794
821
|
"full-name": r.name,
|
|
795
822
|
"image-src": r.avatarSrc,
|
|
796
823
|
"image-alt": r.name,
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
824
|
+
"show-presence": r.showDetails,
|
|
825
|
+
presence: r.presence,
|
|
826
|
+
size: "sm"
|
|
827
|
+
}, null, 8, ["full-name", "image-src", "image-alt", "show-presence", "presence"]),
|
|
828
|
+
f(a, {
|
|
829
|
+
class: "d-mention-suggestion__details-container",
|
|
830
|
+
gap: "100"
|
|
831
|
+
}, {
|
|
832
|
+
default: u(() => [
|
|
833
|
+
y("span", Vt, p(r.name), 1),
|
|
834
|
+
r.showDetails ? (l(), m(a, {
|
|
835
|
+
key: 0,
|
|
836
|
+
direction: "row",
|
|
837
|
+
gap: "300",
|
|
838
|
+
class: "d-label--sm-plain"
|
|
839
|
+
}, {
|
|
840
|
+
default: u(() => [
|
|
841
|
+
r.presenceText ? (l(), _("span", {
|
|
842
|
+
key: 0,
|
|
843
|
+
class: W(["d-mention-suggestion__presence", [r.presenceFontColorClass]])
|
|
844
|
+
}, p(r.presenceText), 3)) : b("", !0),
|
|
845
|
+
r.status && r.presenceText ? (l(), _("div", Kt, " • ")) : b("", !0),
|
|
846
|
+
r.status ? (l(), _("div", qt, p(r.status), 1)) : b("", !0)
|
|
847
|
+
]),
|
|
848
|
+
_: 1
|
|
849
|
+
})) : b("", !0)
|
|
850
|
+
]),
|
|
851
|
+
_: 1
|
|
852
|
+
})
|
|
800
853
|
]),
|
|
801
854
|
_: 1
|
|
802
855
|
});
|
|
803
856
|
}
|
|
804
|
-
const
|
|
857
|
+
const Ut = /* @__PURE__ */ g(Ft, [["render", Nt], ["__scopeId", "data-v-19e00c7c"]]), zt = {
|
|
805
858
|
// This function comes from the user and passed to the editor directly.
|
|
806
859
|
// This will also activate the mention plugin on the editor
|
|
807
860
|
// items: ({ query }) => { return [] },
|
|
@@ -810,14 +863,14 @@ const qt = /* @__PURE__ */ p(Vt, [["render", Kt]]), Nt = {
|
|
|
810
863
|
let e, t, o = !1;
|
|
811
864
|
return {
|
|
812
865
|
onStart: (n) => {
|
|
813
|
-
e = new
|
|
866
|
+
e = new v(A, {
|
|
814
867
|
props: {
|
|
815
|
-
itemComponent:
|
|
868
|
+
itemComponent: I(Ut),
|
|
816
869
|
itemType: "mention",
|
|
817
870
|
...n
|
|
818
871
|
},
|
|
819
872
|
editor: n.editor
|
|
820
|
-
}), n.clientRect && (t =
|
|
873
|
+
}), n.clientRect && (t = O("body", {
|
|
821
874
|
getReferenceClientRect: n.clientRect,
|
|
822
875
|
appendTo: () => document.body,
|
|
823
876
|
content: e.element,
|
|
@@ -832,7 +885,7 @@ const qt = /* @__PURE__ */ p(Vt, [["render", Kt]]), Nt = {
|
|
|
832
885
|
trigger: "manual",
|
|
833
886
|
placement: "top-start",
|
|
834
887
|
zIndex: 650,
|
|
835
|
-
plugins: [
|
|
888
|
+
plugins: [D]
|
|
836
889
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
837
890
|
},
|
|
838
891
|
onUpdate(n) {
|
|
@@ -850,11 +903,11 @@ const qt = /* @__PURE__ */ p(Vt, [["render", Kt]]), Nt = {
|
|
|
850
903
|
}
|
|
851
904
|
};
|
|
852
905
|
}
|
|
853
|
-
},
|
|
906
|
+
}, Wt = {
|
|
854
907
|
compatConfig: { MODE: 3 },
|
|
855
908
|
name: "ChannelSuggestion",
|
|
856
909
|
components: {
|
|
857
|
-
DtStack:
|
|
910
|
+
DtStack: M,
|
|
858
911
|
DtIconHash: Ye,
|
|
859
912
|
DtIconLock: Ge
|
|
860
913
|
},
|
|
@@ -870,26 +923,26 @@ const qt = /* @__PURE__ */ p(Vt, [["render", Kt]]), Nt = {
|
|
|
870
923
|
}
|
|
871
924
|
}
|
|
872
925
|
};
|
|
873
|
-
function
|
|
874
|
-
const s = d("dt-icon-hash"), a = d("dt-icon-lock"),
|
|
875
|
-
return
|
|
926
|
+
function Xt(e, t, o, n, i, r) {
|
|
927
|
+
const s = d("dt-icon-hash"), a = d("dt-icon-lock"), c = d("dt-stack");
|
|
928
|
+
return l(), m(c, {
|
|
876
929
|
direction: "row",
|
|
877
930
|
gap: "400"
|
|
878
931
|
}, {
|
|
879
932
|
default: u(() => [
|
|
880
|
-
o.item.locked ? (
|
|
933
|
+
o.item.locked ? (l(), m(a, {
|
|
881
934
|
key: 1,
|
|
882
935
|
size: "300"
|
|
883
|
-
})) : (
|
|
936
|
+
})) : (l(), m(s, {
|
|
884
937
|
key: 0,
|
|
885
938
|
size: "300"
|
|
886
939
|
})),
|
|
887
|
-
y("span", null,
|
|
940
|
+
y("span", null, p(r.name), 1)
|
|
888
941
|
]),
|
|
889
942
|
_: 1
|
|
890
943
|
});
|
|
891
944
|
}
|
|
892
|
-
const
|
|
945
|
+
const Jt = /* @__PURE__ */ g(Wt, [["render", Xt]]), Yt = {
|
|
893
946
|
// This function comes from the user and passed to the editor directly.
|
|
894
947
|
// This will also activate the mention plugin on the editor
|
|
895
948
|
// items: ({ query }) => { return [] },
|
|
@@ -898,14 +951,14 @@ const Wt = /* @__PURE__ */ p(Ut, [["render", zt]]), Xt = {
|
|
|
898
951
|
let e, t, o = !1;
|
|
899
952
|
return {
|
|
900
953
|
onStart: (n) => {
|
|
901
|
-
e = new
|
|
954
|
+
e = new v(A, {
|
|
902
955
|
props: {
|
|
903
|
-
itemComponent:
|
|
956
|
+
itemComponent: I(Jt),
|
|
904
957
|
itemType: "channel",
|
|
905
958
|
...n
|
|
906
959
|
},
|
|
907
960
|
editor: n.editor
|
|
908
|
-
}), n.clientRect && (t =
|
|
961
|
+
}), n.clientRect && (t = O("body", {
|
|
909
962
|
getReferenceClientRect: n.clientRect,
|
|
910
963
|
appendTo: () => document.body,
|
|
911
964
|
content: e.element,
|
|
@@ -920,7 +973,7 @@ const Wt = /* @__PURE__ */ p(Ut, [["render", zt]]), Xt = {
|
|
|
920
973
|
trigger: "manual",
|
|
921
974
|
placement: "top-start",
|
|
922
975
|
zIndex: 650,
|
|
923
|
-
plugins: [
|
|
976
|
+
plugins: [D]
|
|
924
977
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
925
978
|
},
|
|
926
979
|
onUpdate(n) {
|
|
@@ -938,7 +991,7 @@ const Wt = /* @__PURE__ */ p(Ut, [["render", zt]]), Xt = {
|
|
|
938
991
|
}
|
|
939
992
|
};
|
|
940
993
|
}
|
|
941
|
-
},
|
|
994
|
+
}, Gt = {
|
|
942
995
|
compatConfig: { MODE: 3 },
|
|
943
996
|
name: "SlashCommandSuggestion",
|
|
944
997
|
props: {
|
|
@@ -958,17 +1011,17 @@ const Wt = /* @__PURE__ */ p(Ut, [["render", zt]]), Xt = {
|
|
|
958
1011
|
return this.item.parametersExample;
|
|
959
1012
|
}
|
|
960
1013
|
}
|
|
961
|
-
},
|
|
962
|
-
function
|
|
963
|
-
return
|
|
964
|
-
y("div",
|
|
965
|
-
y("span", null, "/" +
|
|
966
|
-
r.parametersExample ? (
|
|
1014
|
+
}, Qt = { class: "d-body--md-compact" }, Zt = { key: 0 }, en = { class: "d-body--sm d-fc-tertiary" };
|
|
1015
|
+
function tn(e, t, o, n, i, r) {
|
|
1016
|
+
return l(), _("div", null, [
|
|
1017
|
+
y("div", Qt, [
|
|
1018
|
+
y("span", null, "/" + p(r.command), 1),
|
|
1019
|
+
r.parametersExample ? (l(), _("span", Zt, p(r.parametersExample), 1)) : b("", !0)
|
|
967
1020
|
]),
|
|
968
|
-
y("div",
|
|
1021
|
+
y("div", en, p(r.description), 1)
|
|
969
1022
|
]);
|
|
970
1023
|
}
|
|
971
|
-
const
|
|
1024
|
+
const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
972
1025
|
// This function comes from the user and passed to the editor directly.
|
|
973
1026
|
// This will also activate the mention plugin on the editor
|
|
974
1027
|
// items: ({ query }) => { return [] },
|
|
@@ -978,15 +1031,15 @@ const en = /* @__PURE__ */ p(Jt, [["render", Zt]]), tn = {
|
|
|
978
1031
|
let e, t, o = !1;
|
|
979
1032
|
return {
|
|
980
1033
|
onStart: (n) => {
|
|
981
|
-
e = new
|
|
1034
|
+
e = new v(A, {
|
|
982
1035
|
parent: void 0,
|
|
983
1036
|
props: {
|
|
984
|
-
itemComponent:
|
|
1037
|
+
itemComponent: I(nn),
|
|
985
1038
|
itemType: "slash-command",
|
|
986
1039
|
...n
|
|
987
1040
|
},
|
|
988
1041
|
editor: n.editor
|
|
989
|
-
}), n.clientRect && (t =
|
|
1042
|
+
}), n.clientRect && (t = O("body", {
|
|
990
1043
|
getReferenceClientRect: n.clientRect,
|
|
991
1044
|
appendTo: () => document.body,
|
|
992
1045
|
content: e.element,
|
|
@@ -1001,7 +1054,7 @@ const en = /* @__PURE__ */ p(Jt, [["render", Zt]]), tn = {
|
|
|
1001
1054
|
trigger: "manual",
|
|
1002
1055
|
placement: "top-start",
|
|
1003
1056
|
zIndex: 650,
|
|
1004
|
-
plugins: [
|
|
1057
|
+
plugins: [D]
|
|
1005
1058
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
1006
1059
|
},
|
|
1007
1060
|
onUpdate(n) {
|
|
@@ -1019,14 +1072,14 @@ const en = /* @__PURE__ */ p(Jt, [["render", Zt]]), tn = {
|
|
|
1019
1072
|
}
|
|
1020
1073
|
};
|
|
1021
1074
|
}
|
|
1022
|
-
},
|
|
1075
|
+
}, rn = {
|
|
1023
1076
|
compatConfig: { MODE: 3 },
|
|
1024
1077
|
name: "DtRichTextEditor",
|
|
1025
1078
|
components: {
|
|
1026
|
-
EditorContent:
|
|
1027
|
-
BubbleMenu:
|
|
1079
|
+
EditorContent: G,
|
|
1080
|
+
BubbleMenu: Q,
|
|
1028
1081
|
DtButton: Ze,
|
|
1029
|
-
DtStack:
|
|
1082
|
+
DtStack: M
|
|
1030
1083
|
},
|
|
1031
1084
|
props: {
|
|
1032
1085
|
/**
|
|
@@ -1376,15 +1429,15 @@ const en = /* @__PURE__ */ p(Jt, [["render", Zt]]), tn = {
|
|
|
1376
1429
|
},
|
|
1377
1430
|
// eslint-disable-next-line complexity
|
|
1378
1431
|
extensions() {
|
|
1379
|
-
const e = [
|
|
1380
|
-
e.push(this.useDivTags ? Tt :
|
|
1432
|
+
const e = [me, Ce, Se, he];
|
|
1433
|
+
e.push(this.useDivTags ? Tt : U), this.allowBlockquote && e.push(ce), this.allowBold && e.push(pe), this.allowBulletList && (e.push(ge), e.push(ye.extend({
|
|
1381
1434
|
renderText({ node: n }) {
|
|
1382
1435
|
return n.textContent;
|
|
1383
1436
|
}
|
|
1384
|
-
})), e.push(
|
|
1385
|
-
|
|
1437
|
+
})), e.push(ke)), this.allowItalic && e.push(_e), this.allowStrike && e.push(be), this.allowUnderline && e.push(xe), this.placeholder && e.push(
|
|
1438
|
+
fe.configure({ placeholder: this.placeholder })
|
|
1386
1439
|
);
|
|
1387
|
-
const t = this, o =
|
|
1440
|
+
const t = this, o = le.create({
|
|
1388
1441
|
addKeyboardShortcuts() {
|
|
1389
1442
|
return {
|
|
1390
1443
|
"Shift-Enter": ({ editor: n }) => t.allowLineBreaks ? !1 : (n.commands.first(({ commands: i }) => [
|
|
@@ -1398,29 +1451,28 @@ const en = /* @__PURE__ */ p(Jt, [["render", Zt]]), tn = {
|
|
|
1398
1451
|
};
|
|
1399
1452
|
}
|
|
1400
1453
|
});
|
|
1401
|
-
if (e.push(o), this.link && e.push(
|
|
1454
|
+
if (e.push(o), this.link && e.push(we.extend({ inclusive: !1 }).configure({
|
|
1402
1455
|
HTMLAttributes: {
|
|
1403
1456
|
class: "d-link d-wb-break-all"
|
|
1404
1457
|
},
|
|
1405
1458
|
openOnClick: !1,
|
|
1406
1459
|
autolink: !0,
|
|
1407
|
-
protocols:
|
|
1460
|
+
protocols: K
|
|
1408
1461
|
})), this.customLink && e.push(this.getExtension(Et, this.customLink)), this.mentionSuggestion) {
|
|
1409
|
-
const n = { ...this.mentionSuggestion, ...
|
|
1410
|
-
e.push(
|
|
1462
|
+
const n = { ...this.mentionSuggestion, ...zt };
|
|
1463
|
+
e.push($t.configure({ suggestion: n }));
|
|
1411
1464
|
}
|
|
1412
1465
|
if (this.channelSuggestion) {
|
|
1413
|
-
const n = { ...this.channelSuggestion, ...
|
|
1466
|
+
const n = { ...this.channelSuggestion, ...Yt };
|
|
1414
1467
|
e.push(At.configure({ suggestion: n }));
|
|
1415
1468
|
}
|
|
1416
1469
|
if (this.slashCommandSuggestion) {
|
|
1417
|
-
const n = { ...this.slashCommandSuggestion, ...
|
|
1470
|
+
const n = { ...this.slashCommandSuggestion, ...on };
|
|
1418
1471
|
e.push(Ht.configure({ suggestion: n }));
|
|
1419
1472
|
}
|
|
1420
|
-
return e.push(gt), e.push(
|
|
1421
|
-
types: ["paragraph"]
|
|
1422
|
-
|
|
1423
|
-
})), this.allowCode && e.push(ce), this.allowCodeblock && e.push(de.extend({
|
|
1473
|
+
return e.push(gt), e.push(Ee.configure({
|
|
1474
|
+
types: ["paragraph"]
|
|
1475
|
+
})), this.allowCode && e.push(ue), this.allowCodeblock && e.push(de.extend({
|
|
1424
1476
|
renderText({ node: n }) {
|
|
1425
1477
|
return `\`\`\`
|
|
1426
1478
|
${n.textContent}
|
|
@@ -1430,7 +1482,7 @@ ${n.textContent}
|
|
|
1430
1482
|
HTMLAttributes: {
|
|
1431
1483
|
class: "d-rich-text-editor__code-block"
|
|
1432
1484
|
}
|
|
1433
|
-
})), this.allowInlineImages && e.push(St), (this.allowFontFamily || this.allowFontColor) && (e.push(
|
|
1485
|
+
})), this.allowInlineImages && e.push(St), (this.allowFontFamily || this.allowFontColor) && (e.push(Te), this.allowFontColor && e.push(Re), this.allowFontFamily && e.push(Le)), this.additionalExtensions.length && e.push(...this.additionalExtensions), e;
|
|
1434
1486
|
},
|
|
1435
1487
|
inputAttrs() {
|
|
1436
1488
|
const e = {
|
|
@@ -1474,7 +1526,7 @@ ${n.textContent}
|
|
|
1474
1526
|
},
|
|
1475
1527
|
methods: {
|
|
1476
1528
|
createEditor() {
|
|
1477
|
-
this.editor = new
|
|
1529
|
+
this.editor = new Z({
|
|
1478
1530
|
autofocus: this.autoFocus,
|
|
1479
1531
|
content: this.modelValue,
|
|
1480
1532
|
editable: this.editable,
|
|
@@ -1514,9 +1566,9 @@ ${n.textContent}
|
|
|
1514
1566
|
* @param editor the editor instance.
|
|
1515
1567
|
*/
|
|
1516
1568
|
getSelectedLinkText(e) {
|
|
1517
|
-
var a,
|
|
1569
|
+
var a, c, h;
|
|
1518
1570
|
const { view: t, state: o } = e, { from: n, to: i } = t.state.selection, r = o.doc.textBetween(n, i, ""), s = this.editor.state.doc.nodeAt(n);
|
|
1519
|
-
return s && ((h = (
|
|
1571
|
+
return s && ((h = (c = (a = s.marks) == null ? void 0 : a.at(0)) == null ? void 0 : c.type) == null ? void 0 : h.name) === "link" ? s.textContent : r;
|
|
1520
1572
|
},
|
|
1521
1573
|
editLink() {
|
|
1522
1574
|
const e = this.getSelectedLinkText(this.editor), t = {
|
|
@@ -1536,14 +1588,14 @@ ${n.textContent}
|
|
|
1536
1588
|
window.open(e, "_blank");
|
|
1537
1589
|
},
|
|
1538
1590
|
// eslint-disable-next-line complexity
|
|
1539
|
-
setLink(e, t, o, n =
|
|
1540
|
-
var a,
|
|
1591
|
+
setLink(e, t, o, n = K, i) {
|
|
1592
|
+
var a, c, h;
|
|
1541
1593
|
if (!e) {
|
|
1542
1594
|
this.removeLink();
|
|
1543
1595
|
return;
|
|
1544
1596
|
}
|
|
1545
|
-
n.find((
|
|
1546
|
-
const s = (h = (
|
|
1597
|
+
n.find((w) => w.test(e)) || (e = `${i}${e}`), this.editor.chain().focus().extendMarkRange("link").run();
|
|
1598
|
+
const s = (h = (c = (a = this.editor) == null ? void 0 : a.view) == null ? void 0 : c.state) == null ? void 0 : h.selection;
|
|
1547
1599
|
this.editor.chain().focus().insertContent(t).setTextSelection({ from: s.from, to: s.from + t.length }).setLink({ href: e, class: o.class }).run();
|
|
1548
1600
|
},
|
|
1549
1601
|
// eslint-disable-next-line complexity
|
|
@@ -1551,7 +1603,7 @@ ${n.textContent}
|
|
|
1551
1603
|
const o = this.getOutput();
|
|
1552
1604
|
if (!(t && Qe(e, o))) {
|
|
1553
1605
|
if (typeof e == "string" && this.outputFormat === "text") {
|
|
1554
|
-
const n = new RegExp(`(${
|
|
1606
|
+
const n = new RegExp(`(${z})`, "g");
|
|
1555
1607
|
e = e == null ? void 0 : e.replace(n, '<emoji-component code="$1"></emoji-component>');
|
|
1556
1608
|
}
|
|
1557
1609
|
this.editor.commands.setContent(e, !1);
|
|
@@ -1624,11 +1676,11 @@ ${n.textContent}
|
|
|
1624
1676
|
this.editor.commands.focus();
|
|
1625
1677
|
}
|
|
1626
1678
|
}
|
|
1627
|
-
},
|
|
1628
|
-
function
|
|
1629
|
-
const s = d("dt-button"), a = d("dt-stack"),
|
|
1630
|
-
return
|
|
1631
|
-
i.editor && o.link && !o.hideLinkBubbleMenu ? (
|
|
1679
|
+
}, sn = { class: "d-popover__dialog" };
|
|
1680
|
+
function an(e, t, o, n, i, r) {
|
|
1681
|
+
const s = d("dt-button"), a = d("dt-stack"), c = d("bubble-menu"), h = d("editor-content");
|
|
1682
|
+
return l(), _("div", null, [
|
|
1683
|
+
i.editor && o.link && !o.hideLinkBubbleMenu ? (l(), m(c, {
|
|
1632
1684
|
key: 0,
|
|
1633
1685
|
editor: i.editor,
|
|
1634
1686
|
"should-show": r.bubbleMenuShouldShow,
|
|
@@ -1636,7 +1688,7 @@ function rn(e, t, o, n, i, r) {
|
|
|
1636
1688
|
style: { visibility: "visible" }
|
|
1637
1689
|
}, {
|
|
1638
1690
|
default: u(() => [
|
|
1639
|
-
y("div",
|
|
1691
|
+
y("div", sn, [
|
|
1640
1692
|
f(a, {
|
|
1641
1693
|
direction: "row",
|
|
1642
1694
|
class: "d-rich-text-editor-bubble-menu__button-stack",
|
|
@@ -1649,7 +1701,7 @@ function rn(e, t, o, n, i, r) {
|
|
|
1649
1701
|
onClick: r.editLink
|
|
1650
1702
|
}, {
|
|
1651
1703
|
default: u(() => [
|
|
1652
|
-
|
|
1704
|
+
k(" Edit ")
|
|
1653
1705
|
]),
|
|
1654
1706
|
_: 1
|
|
1655
1707
|
}, 8, ["onClick"]),
|
|
@@ -1659,7 +1711,7 @@ function rn(e, t, o, n, i, r) {
|
|
|
1659
1711
|
onClick: r.openLink
|
|
1660
1712
|
}, {
|
|
1661
1713
|
default: u(() => [
|
|
1662
|
-
|
|
1714
|
+
k(" Open link ")
|
|
1663
1715
|
]),
|
|
1664
1716
|
_: 1
|
|
1665
1717
|
}, 8, ["onClick"]),
|
|
@@ -1669,7 +1721,7 @@ function rn(e, t, o, n, i, r) {
|
|
|
1669
1721
|
onClick: r.removeLink
|
|
1670
1722
|
}, {
|
|
1671
1723
|
default: u(() => [
|
|
1672
|
-
|
|
1724
|
+
k(" Remove ")
|
|
1673
1725
|
]),
|
|
1674
1726
|
_: 1
|
|
1675
1727
|
}, 8, ["onClick"])
|
|
@@ -1679,8 +1731,8 @@ function rn(e, t, o, n, i, r) {
|
|
|
1679
1731
|
])
|
|
1680
1732
|
]),
|
|
1681
1733
|
_: 1
|
|
1682
|
-
}, 8, ["editor", "should-show", "tippy-options"])) :
|
|
1683
|
-
f(h,
|
|
1734
|
+
}, 8, ["editor", "should-show", "tippy-options"])) : b("", !0),
|
|
1735
|
+
f(h, Be({
|
|
1684
1736
|
ref: "editor",
|
|
1685
1737
|
editor: i.editor,
|
|
1686
1738
|
class: "d-rich-text-editor",
|
|
@@ -1688,8 +1740,8 @@ function rn(e, t, o, n, i, r) {
|
|
|
1688
1740
|
}, r.attrs), null, 16, ["editor"])
|
|
1689
1741
|
]);
|
|
1690
1742
|
}
|
|
1691
|
-
const
|
|
1743
|
+
const Qn = /* @__PURE__ */ g(rn, [["render", an]]);
|
|
1692
1744
|
export {
|
|
1693
|
-
|
|
1745
|
+
Qn as default
|
|
1694
1746
|
};
|
|
1695
1747
|
//# sourceMappingURL=rich-text-editor.js.map
|