@dialpad/dialtone-vue 3.220.0-next.4 → 3.220.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/dist/attachment_carousel-BHxR7A76.cjs +2 -0
- package/dist/attachment_carousel-BHxR7A76.cjs.map +1 -0
- package/dist/{attachment_carousel-1qxTI-NN.js → attachment_carousel-CouFqFMw.js} +5 -5
- package/dist/attachment_carousel-CouFqFMw.js.map +1 -0
- package/dist/{combobox-BQBKrDTW.js → combobox-DgClbLOg.js} +35 -36
- package/dist/combobox-DgClbLOg.js.map +1 -0
- package/dist/combobox-DhjZxfUw.cjs +3 -0
- package/dist/combobox-DhjZxfUw.cjs.map +1 -0
- package/dist/common/constants/index.cjs +1 -1
- package/dist/common/constants/index.cjs.map +1 -1
- package/dist/common/constants/index.d.ts +21 -27
- package/dist/common/constants/index.d.ts.map +1 -1
- package/dist/common/constants/index.js +14 -25
- package/dist/common/constants/index.js.map +1 -1
- package/dist/common/mixins/index.cjs +1 -1
- package/dist/common/mixins/index.d.ts +0 -1
- package/dist/common/mixins/index.js +1 -2
- package/dist/common/mixins/input-group.cjs +1 -1
- package/dist/common/mixins/input-group.cjs.map +1 -1
- package/dist/common/mixins/input-group.js +2 -2
- package/dist/common/mixins/input-group.js.map +1 -1
- package/dist/common/mixins/input.cjs +1 -1
- package/dist/common/mixins/input.cjs.map +1 -1
- package/dist/common/mixins/input.d.ts +33 -27
- package/dist/common/mixins/input.d.ts.map +1 -1
- package/dist/common/mixins/input.js +8 -0
- package/dist/common/mixins/input.js.map +1 -1
- package/dist/common/sr_only_close_button.vue.d.ts +7 -98
- package/dist/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/common/utils/index.cjs +1 -1
- package/dist/common/utils/index.cjs.map +1 -1
- package/dist/common/utils/index.d.ts +8 -2
- package/dist/common/utils/index.d.ts.map +1 -1
- package/dist/common/utils/index.js +88 -79
- package/dist/common/utils/index.js.map +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/components/avatar/avatar.vue.d.ts +27 -85
- package/dist/components/avatar/avatar.vue.d.ts.map +1 -1
- package/dist/components/avatar/avatar_constants.d.ts +29 -86
- package/dist/components/avatar/avatar_constants.d.ts.map +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/badge/badge.vue.d.ts +1 -19
- package/dist/components/badge/badge.vue.d.ts.map +1 -1
- package/dist/components/badge/badge_constants.d.ts +1 -1
- package/dist/components/banner/banner.vue.d.ts +50 -447
- package/dist/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumb_item.vue.d.ts +17 -27
- package/dist/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.vue.d.ts +16 -35
- package/dist/components/button/button.vue.d.ts +7 -98
- package/dist/components/button/button.vue.d.ts.map +1 -1
- package/dist/components/button/button_constants.d.ts +20 -29
- package/dist/components/button/button_constants.d.ts.map +1 -1
- package/dist/components/card/card.vue.d.ts +11 -2
- package/dist/components/card/card.vue.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +11 -183
- package/dist/components/checkbox/checkbox.vue.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox_constants.d.ts +2 -2
- package/dist/components/checkbox_group/checkbox_group.vue.d.ts +15 -145
- package/dist/components/chip/chip.vue.d.ts +16 -125
- package/dist/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/components/chip/chip_constants.d.ts +21 -24
- package/dist/components/chip/chip_constants.d.ts.map +1 -1
- package/dist/components/codeblock/codeblock.vue.d.ts +2 -25
- package/dist/components/codeblock/codeblock.vue.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.vue.d.ts +11 -102
- package/dist/components/collapsible/collapsible.vue.d.ts.map +1 -1
- package/dist/components/combobox/combobox.vue.d.ts +85 -160
- package/dist/components/combobox/combobox.vue.d.ts.map +1 -1
- package/dist/components/combobox/combobox_empty-list.vue.d.ts +28 -61
- package/dist/components/combobox/combobox_empty-list.vue.d.ts.map +1 -1
- package/dist/components/combobox/combobox_loading-list.vue.d.ts +48 -90
- package/dist/components/combobox/combobox_loading-list.vue.d.ts.map +1 -1
- package/dist/components/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
- package/dist/components/combobox_multi_select/combobox_multi_select_constants.d.ts +13 -16
- package/dist/components/combobox_multi_select/combobox_multi_select_constants.d.ts.map +1 -1
- package/dist/components/combobox_with_popover/combobox_with_popover.vue.d.ts +196 -610
- package/dist/components/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.vue.d.ts +28 -292
- package/dist/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/components/emoji/emoji.vue.d.ts +20 -29
- package/dist/components/emoji_picker/emoji_picker.vue.d.ts +25 -225
- package/dist/components/emoji_picker/modules/emoji_search.vue.d.ts +25 -225
- package/dist/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
- package/dist/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
- package/dist/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +20 -29
- package/dist/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
- package/dist/components/empty_state/empty_state.vue.d.ts.map +1 -1
- package/dist/components/empty_state/empty_state_constants.d.ts +31 -52
- package/dist/components/empty_state/empty_state_constants.d.ts.map +1 -1
- package/dist/components/hovercard/hovercard.vue.d.ts +57 -596
- package/dist/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/components/image_viewer/image_viewer.vue.d.ts +17 -224
- package/dist/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/components/input/input.vue.d.ts +21 -214
- package/dist/components/input/input.vue.d.ts.map +1 -1
- package/dist/components/input/input_constants.d.ts +48 -46
- package/dist/components/input/input_constants.d.ts.map +1 -1
- package/dist/components/input_group/input_group.vue.d.ts +0 -142
- package/dist/components/input_group/input_group.vue.d.ts.map +1 -1
- package/dist/components/item_layout/item_layout.vue.d.ts +27 -58
- package/dist/components/item_layout/item_layout.vue.d.ts.map +1 -1
- package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +0 -142
- package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/link.vue.d.ts +6 -26
- package/dist/components/link/link_constants.d.ts +4 -6
- package/dist/components/link/link_constants.d.ts.map +1 -1
- package/dist/components/list_item/list_item.vue.d.ts +28 -61
- package/dist/components/list_item/list_item.vue.d.ts.map +1 -1
- package/dist/components/modal/modal.vue.d.ts +108 -411
- package/dist/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/components/modal/modal_constants.d.ts +6 -7
- package/dist/components/motion_text/motion_text_constants.d.ts +23 -27
- package/dist/components/motion_text/motion_text_constants.d.ts.map +1 -1
- package/dist/components/notice/notice.vue.d.ts +50 -447
- package/dist/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/components/notice/notice_action.vue.d.ts +20 -211
- package/dist/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/components/notice/notice_constants.d.ts.map +1 -1
- package/dist/components/notice/notice_content.vue.d.ts +9 -170
- package/dist/components/notice/notice_content.vue.d.ts.map +1 -1
- package/dist/components/notice/notice_icon.vue.d.ts +2 -11
- package/dist/components/notice/notice_icon.vue.d.ts.map +1 -1
- package/dist/components/pagination/pagination.vue.d.ts +10 -101
- package/dist/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/components/popover/popover.vue.d.ts +23 -267
- package/dist/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/components/popover/popover_header_footer.vue.d.ts +7 -107
- package/dist/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/components/radio/radio.vue.d.ts +8 -179
- package/dist/components/radio/radio.vue.d.ts.map +1 -1
- package/dist/components/radio/radio_constants.d.ts +2 -2
- package/dist/components/radio_group/radio_group.vue.d.ts +2 -143
- package/dist/components/resizable/resizable_constants.d.ts.map +1 -1
- package/dist/components/resizable/resizable_panel.vue.d.ts +0 -2
- package/dist/components/resizable/resizable_panel.vue.d.ts.map +1 -1
- package/dist/components/resizable/resizable_utils.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +6 -26
- package/dist/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +20 -29
- package/dist/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +20 -29
- package/dist/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +6 -26
- package/dist/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +27 -227
- package/dist/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +1 -144
- package/dist/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +28 -61
- package/dist/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +51 -597
- package/dist/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/rich_text_editor.vue.d.ts +15 -105
- package/dist/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/components/root_layout/root_layout.vue.d.ts +2 -2
- package/dist/components/root_layout/root_layout_constants.d.ts +0 -2
- package/dist/components/root_layout/root_layout_constants.d.ts.map +1 -1
- package/dist/components/scroller/modules/core_scroller.vue.d.ts +4 -4
- package/dist/components/scroller/modules/dynamic_scroller.vue.d.ts +24 -24
- package/dist/components/scroller/scroller.vue.d.ts +34 -34
- package/dist/components/select_menu/select_menu.vue.d.ts +34 -190
- package/dist/components/select_menu/select_menu.vue.d.ts.map +1 -1
- package/dist/components/select_menu/select_menu_constants.d.ts +9 -14
- package/dist/components/select_menu/select_menu_constants.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton-list-item.vue.d.ts +12 -15
- package/dist/components/skeleton/skeleton-paragraph.vue.d.ts +2 -5
- package/dist/components/skeleton/skeleton-shape.vue.d.ts +5 -5
- package/dist/components/skeleton/skeleton-text.vue.d.ts +1 -4
- package/dist/components/skeleton/skeleton.vue.d.ts +20 -29
- package/dist/components/skeleton/skeleton_constants.d.ts +13 -18
- package/dist/components/skeleton/skeleton_constants.d.ts.map +1 -1
- package/dist/components/split_button/{split_button-start.vue.d.ts → split_button-alpha.vue.d.ts} +11 -170
- package/dist/components/split_button/split_button-alpha.vue.d.ts.map +1 -0
- package/dist/components/split_button/{split_button-end.vue.d.ts → split_button-omega.vue.d.ts} +13 -109
- package/dist/components/split_button/split_button-omega.vue.d.ts.map +1 -0
- package/dist/components/split_button/split_button.vue.d.ts +87 -809
- package/dist/components/split_button/split_button.vue.d.ts.map +1 -1
- package/dist/components/split_button/split_button_constants.d.ts +7 -12
- package/dist/components/split_button/split_button_constants.d.ts.map +1 -1
- package/dist/components/stack/stack_constants.d.ts.map +1 -1
- package/dist/components/tab/index.d.ts +1 -1
- package/dist/components/tab/tab.vue.d.ts +11 -131
- package/dist/components/tab/tab.vue.d.ts.map +1 -1
- package/dist/components/tab/tab_group.vue.d.ts +13 -139
- package/dist/components/tab/tab_group.vue.d.ts.map +1 -1
- package/dist/components/tab/tabs_constants.d.ts +5 -23
- package/dist/components/tab/tabs_constants.d.ts.map +1 -1
- package/dist/components/toast/layouts/toast_layout_alternate.vue.d.ts +45 -442
- package/dist/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/components/toast/layouts/toast_layout_alternate_icon.vue.d.ts +2 -11
- package/dist/components/toast/layouts/toast_layout_alternate_icon.vue.d.ts.map +1 -1
- package/dist/components/toast/layouts/toast_layout_default.vue.d.ts +48 -445
- package/dist/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/components/toast/toast.vue.d.ts +212 -1836
- package/dist/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +21 -20
- package/dist/components/toggle/toggle.vue.d.ts.map +1 -1
- package/dist/components/toggle/toggle_constants.d.ts +4 -6
- package/dist/components/toggle/toggle_constants.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +8 -43
- package/dist/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/datepicker-DprRX9AH.cjs +2 -0
- package/dist/datepicker-DprRX9AH.cjs.map +1 -0
- package/dist/{datepicker-B2nhxiCg.js → datepicker-LVDRC6Lf.js} +24 -20
- package/dist/datepicker-LVDRC6Lf.js.map +1 -0
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.css +1 -1
- package/dist/dialtone-vue.js +151 -174
- package/dist/directives/tooltip_directive/tooltip.d.ts.map +1 -1
- package/dist/emoji_picker-Cl-T4BXK.cjs +2 -0
- package/dist/emoji_picker-Cl-T4BXK.cjs.map +1 -0
- package/dist/{emoji_picker-BjgAohQy.js → emoji_picker-tVHfpHDk.js} +8 -9
- package/dist/emoji_picker-tVHfpHDk.js.map +1 -0
- package/dist/index.d.ts +0 -9
- package/dist/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/lib/attachment-carousel/attachment-carousel.js +1 -1
- package/dist/lib/attachment-carousel/index.cjs +1 -1
- package/dist/lib/attachment-carousel/index.js +1 -1
- package/dist/lib/avatar/avatar-constants.cjs +1 -1
- package/dist/lib/avatar/avatar-constants.cjs.map +1 -1
- package/dist/lib/avatar/avatar-constants.js +24 -111
- package/dist/lib/avatar/avatar-constants.js.map +1 -1
- package/dist/lib/avatar/avatar.cjs +1 -1
- package/dist/lib/avatar/avatar.cjs.map +1 -1
- package/dist/lib/avatar/avatar.js +84 -145
- package/dist/lib/avatar/avatar.js.map +1 -1
- package/dist/lib/avatar/index.cjs +1 -1
- package/dist/lib/avatar/index.js +3 -3
- package/dist/lib/badge/badge-constants.cjs +1 -1
- package/dist/lib/badge/badge-constants.cjs.map +1 -1
- package/dist/lib/badge/badge-constants.js +1 -1
- package/dist/lib/badge/badge-constants.js.map +1 -1
- package/dist/lib/badge/badge.cjs +1 -1
- package/dist/lib/badge/badge.cjs.map +1 -1
- package/dist/lib/badge/badge.js +23 -51
- package/dist/lib/badge/badge.js.map +1 -1
- package/dist/lib/banner/banner.cjs +2 -2
- package/dist/lib/banner/banner.cjs.map +1 -1
- package/dist/lib/banner/banner.js +24 -71
- package/dist/lib/banner/banner.js.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.js +38 -29
- package/dist/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.js +2 -10
- package/dist/lib/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/lib/button/button-constants.cjs +1 -1
- package/dist/lib/button/button-constants.cjs.map +1 -1
- package/dist/lib/button/button-constants.js +3 -17
- package/dist/lib/button/button-constants.js.map +1 -1
- package/dist/lib/button/button.cjs +1 -1
- package/dist/lib/button/button.cjs.map +1 -1
- package/dist/lib/button/button.js +19 -162
- package/dist/lib/button/button.js.map +1 -1
- package/dist/lib/button-group/button-group.cjs.map +1 -1
- package/dist/lib/button-group/button-group.js.map +1 -1
- package/dist/lib/callbar-button/callbar-button.cjs +1 -1
- package/dist/lib/callbar-button/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button/callbar-button.js +27 -26
- package/dist/lib/callbar-button/callbar-button.js.map +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +36 -45
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +38 -47
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbox/callbox.cjs +1 -1
- package/dist/lib/callbox/callbox.cjs.map +1 -1
- package/dist/lib/callbox/callbox.js +8 -8
- package/dist/lib/callbox/callbox.js.map +1 -1
- package/dist/lib/card/card.cjs +1 -1
- package/dist/lib/card/card.cjs.map +1 -1
- package/dist/lib/card/card.js +18 -10
- package/dist/lib/card/card.js.map +1 -1
- package/dist/lib/checkbox/checkbox-constants.cjs +1 -1
- package/dist/lib/checkbox/checkbox-constants.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox-constants.js +2 -2
- package/dist/lib/checkbox/checkbox-constants.js.map +1 -1
- package/dist/lib/checkbox/checkbox.cjs +1 -1
- package/dist/lib/checkbox/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox.js +30 -80
- package/dist/lib/checkbox/checkbox.js.map +1 -1
- package/dist/lib/checkbox-group/checkbox-group.cjs +1 -1
- package/dist/lib/checkbox-group/checkbox-group.cjs.map +1 -1
- package/dist/lib/checkbox-group/checkbox-group.js +12 -6
- package/dist/lib/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -0
- package/dist/lib/checkbox-group/checkboxes-decorator.js.map +1 -1
- package/dist/lib/chip/chip-constants.cjs +1 -1
- package/dist/lib/chip/chip-constants.cjs.map +1 -1
- package/dist/lib/chip/chip-constants.js +0 -9
- package/dist/lib/chip/chip-constants.js.map +1 -1
- package/dist/lib/chip/chip.cjs +1 -1
- package/dist/lib/chip/chip.cjs.map +1 -1
- package/dist/lib/chip/chip.js +26 -43
- package/dist/lib/chip/chip.js.map +1 -1
- package/dist/lib/codeblock/codeblock.cjs +2 -1
- package/dist/lib/codeblock/codeblock.cjs.map +1 -1
- package/dist/lib/codeblock/codeblock.js +14 -25
- package/dist/lib/codeblock/codeblock.js.map +1 -1
- package/dist/lib/collapsible/collapsible.cjs +1 -1
- package/dist/lib/collapsible/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible/collapsible.js +2 -2
- package/dist/lib/collapsible/collapsible.js.map +1 -1
- package/dist/lib/combobox/combobox.cjs +1 -1
- package/dist/lib/combobox/combobox.js +1 -1
- package/dist/lib/combobox/index.cjs +1 -1
- package/dist/lib/combobox/index.js +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.js +0 -6
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +48 -69
- package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +47 -64
- package/dist/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
- package/dist/lib/contact-centers-row/contact-centers-row.cjs +1 -1
- package/dist/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
- package/dist/lib/contact-centers-row/contact-centers-row.js +45 -51
- package/dist/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/lib/contact-info/contact-info.cjs +1 -1
- package/dist/lib/contact-info/contact-info.cjs.map +1 -1
- package/dist/lib/contact-info/contact-info.js +8 -8
- package/dist/lib/contact-info/contact-info.js.map +1 -1
- package/dist/lib/contact-row/contact-row.cjs +1 -1
- package/dist/lib/contact-row/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row/contact-row.js +3 -3
- package/dist/lib/contact-row/contact-row.js.map +1 -1
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.js +1 -1
- package/dist/lib/datepicker/index.cjs +1 -1
- package/dist/lib/datepicker/index.js +1 -1
- package/dist/lib/description-list/description-list.cjs +1 -1
- package/dist/lib/description-list/description-list.cjs.map +1 -1
- package/dist/lib/description-list/description-list.js +1 -1
- package/dist/lib/description-list/description-list.js.map +1 -1
- package/dist/lib/dropdown/dropdown-constants.cjs +1 -1
- package/dist/lib/dropdown/dropdown-constants.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown-constants.js +2 -2
- package/dist/lib/dropdown/dropdown-constants.js.map +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown-list.js +16 -28
- package/dist/lib/dropdown/dropdown-list.js.map +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +29 -43
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/editor/EditorToolbarButton.cjs +1 -1
- package/dist/lib/editor/EditorToolbarButton.cjs.map +1 -1
- package/dist/lib/editor/EditorToolbarButton.js +1 -1
- package/dist/lib/editor/EditorToolbarButton.js.map +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.cjs +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.cjs.map +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.js +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.js.map +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.cjs +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.cjs.map +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.js +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.js.map +1 -1
- package/dist/lib/editor/editor.cjs +1 -1
- package/dist/lib/editor/editor.cjs.map +1 -1
- package/dist/lib/editor/editor.js +143 -142
- package/dist/lib/editor/editor.js.map +1 -1
- package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +1 -1
- package/dist/lib/emoji-picker/index.cjs +1 -1
- package/dist/lib/emoji-picker/index.js +1 -1
- package/dist/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/lib/emoji-row/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row/emoji-row.js +1 -1
- package/dist/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
- package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/empty-state/empty-state-constants.cjs +1 -1
- package/dist/lib/empty-state/empty-state-constants.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state-constants.js +9 -37
- package/dist/lib/empty-state/empty-state-constants.js.map +1 -1
- package/dist/lib/empty-state/empty-state.cjs +1 -1
- package/dist/lib/empty-state/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state.js +30 -77
- package/dist/lib/empty-state/empty-state.js.map +1 -1
- package/dist/lib/feed-item-pill/feed-item-pill.cjs +1 -1
- package/dist/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
- package/dist/lib/feed-item-pill/feed-item-pill.js +42 -40
- package/dist/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/lib/feed-item-row/feed-item-row.cjs +1 -1
- package/dist/lib/feed-item-row/feed-item-row.cjs.map +1 -1
- package/dist/lib/feed-item-row/feed-item-row.js +3 -3
- package/dist/lib/feed-item-row/feed-item-row.js.map +1 -1
- package/dist/lib/general-row/general-row.cjs +1 -1
- package/dist/lib/general-row/general-row.cjs.map +1 -1
- package/dist/lib/general-row/general-row.js +61 -105
- package/dist/lib/general-row/general-row.js.map +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.cjs +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.js +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.js.map +1 -1
- package/dist/lib/group-row/group-row.cjs +1 -1
- package/dist/lib/group-row/group-row.cjs.map +1 -1
- package/dist/lib/group-row/group-row.js +2 -2
- package/dist/lib/group-row/group-row.js.map +1 -1
- package/dist/lib/grouped-chip/grouped-chip.cjs +1 -1
- package/dist/lib/grouped-chip/grouped-chip.cjs.map +1 -1
- package/dist/lib/grouped-chip/grouped-chip.js +9 -9
- package/dist/lib/grouped-chip/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard/hovercard.cjs +1 -1
- package/dist/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard/hovercard.js +24 -38
- package/dist/lib/hovercard/hovercard.js.map +1 -1
- package/dist/lib/icon/icon.cjs +1 -1
- package/dist/lib/icon/icon.cjs.map +1 -1
- package/dist/lib/icon/icon.js +1 -1
- package/dist/lib/icon/icon.js.map +1 -1
- package/dist/lib/illustration/illustration.cjs +1 -1
- package/dist/lib/illustration/illustration.cjs.map +1 -1
- package/dist/lib/illustration/illustration.js +1 -1
- package/dist/lib/illustration/illustration.js.map +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer/image-viewer.js +32 -33
- package/dist/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/lib/input/input-constants.cjs +1 -1
- package/dist/lib/input/input-constants.cjs.map +1 -1
- package/dist/lib/input/input-constants.js +11 -25
- package/dist/lib/input/input-constants.js.map +1 -1
- package/dist/lib/input/input.cjs +1 -1
- package/dist/lib/input/input.cjs.map +1 -1
- package/dist/lib/input/input.js +85 -190
- package/dist/lib/input/input.js.map +1 -1
- package/dist/lib/input-group/input-group.cjs +1 -1
- package/dist/lib/input-group/input-group.cjs.map +1 -1
- package/dist/lib/input-group/input-group.js +15 -25
- package/dist/lib/input-group/input-group.js.map +1 -1
- package/dist/lib/item-layout/item-layout.cjs +3 -3
- package/dist/lib/item-layout/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout/item-layout.js +19 -82
- package/dist/lib/item-layout/item-layout.js.map +1 -1
- package/dist/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/lib/ivr-node/ivr-node.cjs.map +1 -1
- package/dist/lib/ivr-node/ivr-node.js +1 -1
- package/dist/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +38 -48
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/lib/link/index.cjs +1 -1
- package/dist/lib/link/index.js +2 -2
- package/dist/lib/link/link-constants.cjs +1 -1
- package/dist/lib/link/link-constants.cjs.map +1 -1
- package/dist/lib/link/link-constants.js +14 -17
- package/dist/lib/link/link-constants.js.map +1 -1
- package/dist/lib/link/link.cjs +1 -1
- package/dist/lib/link/link.cjs.map +1 -1
- package/dist/lib/link/link.js +2 -17
- package/dist/lib/link/link.js.map +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +5 -9
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/list-item-group/list-item-group.cjs +1 -1
- package/dist/lib/list-item-group/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group/list-item-group.js +1 -1
- package/dist/lib/list-item-group/list-item-group.js.map +1 -1
- package/dist/lib/message-input/index.cjs +1 -1
- package/dist/lib/message-input/index.js +1 -1
- package/dist/lib/message-input/message-input-button.cjs +1 -1
- package/dist/lib/message-input/message-input-button.cjs.map +1 -1
- package/dist/lib/message-input/message-input-button.js +1 -1
- package/dist/lib/message-input/message-input-button.js.map +1 -1
- package/dist/lib/message-input/message-input-link.cjs +1 -1
- package/dist/lib/message-input/message-input-link.cjs.map +1 -1
- package/dist/lib/message-input/message-input-link.js +9 -9
- package/dist/lib/message-input/message-input-link.js.map +1 -1
- package/dist/lib/message-input/message-input-topbar.cjs +1 -1
- package/dist/lib/message-input/message-input-topbar.cjs.map +1 -1
- package/dist/lib/message-input/message-input-topbar.js +2 -2
- package/dist/lib/message-input/message-input-topbar.js.map +1 -1
- package/dist/lib/message-input/message-input.cjs +1 -1
- package/dist/lib/message-input/message-input.js +1 -1
- package/dist/lib/modal/modal-constants.cjs +1 -1
- package/dist/lib/modal/modal-constants.cjs.map +1 -1
- package/dist/lib/modal/modal-constants.js +3 -3
- package/dist/lib/modal/modal-constants.js.map +1 -1
- package/dist/lib/modal/modal.cjs +1 -1
- package/dist/lib/modal/modal.cjs.map +1 -1
- package/dist/lib/modal/modal.js +164 -181
- package/dist/lib/modal/modal.js.map +1 -1
- package/dist/lib/motion-text/motion-text-constants.cjs +1 -1
- package/dist/lib/motion-text/motion-text-constants.cjs.map +1 -1
- package/dist/lib/motion-text/motion-text-constants.js +6 -18
- package/dist/lib/motion-text/motion-text-constants.js.map +1 -1
- package/dist/lib/motion-text/motion-text.cjs +1 -1
- package/dist/lib/motion-text/motion-text.cjs.map +1 -1
- package/dist/lib/motion-text/motion-text.js +7 -5
- package/dist/lib/motion-text/motion-text.js.map +1 -1
- package/dist/lib/notice/notice-action.cjs +1 -1
- package/dist/lib/notice/notice-action.cjs.map +1 -1
- package/dist/lib/notice/notice-action.js +26 -34
- package/dist/lib/notice/notice-action.js.map +1 -1
- package/dist/lib/notice/notice-constants.cjs +1 -1
- package/dist/lib/notice/notice-constants.cjs.map +1 -1
- package/dist/lib/notice/notice-constants.js +2 -2
- package/dist/lib/notice/notice-constants.js.map +1 -1
- package/dist/lib/notice/notice-content.cjs +1 -1
- package/dist/lib/notice/notice-content.cjs.map +1 -1
- package/dist/lib/notice/notice-content.js +18 -51
- package/dist/lib/notice/notice-content.js.map +1 -1
- package/dist/lib/notice/notice-icon.cjs +1 -1
- package/dist/lib/notice/notice-icon.cjs.map +1 -1
- package/dist/lib/notice/notice-icon.js +28 -38
- package/dist/lib/notice/notice-icon.js.map +1 -1
- package/dist/lib/notice/notice.cjs +1 -1
- package/dist/lib/notice/notice.cjs.map +1 -1
- package/dist/lib/notice/notice.js +23 -70
- package/dist/lib/notice/notice.js.map +1 -1
- package/dist/lib/pagination/pagination.cjs +1 -1
- package/dist/lib/pagination/pagination.cjs.map +1 -1
- package/dist/lib/pagination/pagination.js +12 -13
- package/dist/lib/pagination/pagination.js.map +1 -1
- package/dist/lib/popover/popover-constants.cjs +1 -1
- package/dist/lib/popover/popover-constants.cjs.map +1 -1
- package/dist/lib/popover/popover-constants.js +6 -6
- package/dist/lib/popover/popover-constants.js.map +1 -1
- package/dist/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/lib/popover/popover-header-footer.js +3 -11
- package/dist/lib/popover/popover-header-footer.js.map +1 -1
- package/dist/lib/popover/popover.cjs +1 -1
- package/dist/lib/popover/popover.cjs.map +1 -1
- package/dist/lib/popover/popover.js +59 -88
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/radio/radio-constants.cjs +1 -1
- package/dist/lib/radio/radio-constants.cjs.map +1 -1
- package/dist/lib/radio/radio-constants.js +2 -2
- package/dist/lib/radio/radio-constants.js.map +1 -1
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +33 -95
- package/dist/lib/radio/radio.js.map +1 -1
- package/dist/lib/radio-group/radio-group.cjs +1 -1
- package/dist/lib/radio-group/radio-group.cjs.map +1 -1
- package/dist/lib/radio-group/radio-group.js +2 -2
- package/dist/lib/radio-group/radio-group.js.map +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.js +3 -3
- package/dist/lib/resizable/resizable-handle.cjs +1 -1
- package/dist/lib/resizable/resizable-handle.js +1 -1
- package/dist/lib/resizable/resizable-panel.cjs +1 -1
- package/dist/lib/resizable/resizable-panel.cjs.map +1 -1
- package/dist/lib/resizable/resizable-panel.js +3 -11
- package/dist/lib/resizable/resizable-panel.js.map +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdownRenderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdownRenderer.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/lib/root-layout/root-layout-constants.cjs +1 -1
- package/dist/lib/root-layout/root-layout-constants.cjs.map +1 -1
- package/dist/lib/root-layout/root-layout-constants.js +0 -2
- package/dist/lib/root-layout/root-layout-constants.js.map +1 -1
- package/dist/lib/root-layout/root-layout.cjs +1 -1
- package/dist/lib/root-layout/root-layout.cjs.map +1 -1
- package/dist/lib/root-layout/root-layout.js +2 -2
- package/dist/lib/root-layout/root-layout.js.map +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.js +1 -1
- package/dist/lib/scroller/scroller.cjs +1 -1
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/select-menu/select-menu-constants.cjs +1 -1
- package/dist/lib/select-menu/select-menu-constants.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu-constants.js +2 -7
- package/dist/lib/select-menu/select-menu-constants.js.map +1 -1
- package/dist/lib/select-menu/select-menu.cjs +1 -1
- package/dist/lib/select-menu/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu.js +64 -119
- package/dist/lib/select-menu/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button/settings-menu-button.cjs +1 -1
- package/dist/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
- package/dist/lib/settings-menu-button/settings-menu-button.js +5 -5
- package/dist/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton/skeleton-constants.cjs +1 -1
- package/dist/lib/skeleton/skeleton-constants.cjs.map +1 -1
- package/dist/lib/skeleton/skeleton-constants.js +4 -12
- package/dist/lib/skeleton/skeleton-constants.js.map +1 -1
- package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
- package/dist/lib/skeleton/skeleton-list-item.cjs.map +1 -1
- package/dist/lib/skeleton/skeleton-list-item.js +2 -2
- package/dist/lib/skeleton/skeleton-list-item.js.map +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs.map +1 -1
- package/dist/lib/skeleton/skeleton-shape.js +3 -3
- package/dist/lib/skeleton/skeleton-shape.js.map +1 -1
- package/dist/lib/split-button/split-button-alpha.cjs +2 -0
- package/dist/lib/split-button/split-button-alpha.cjs.map +1 -0
- package/dist/lib/split-button/split-button-alpha.js +107 -0
- package/dist/lib/split-button/split-button-alpha.js.map +1 -0
- package/dist/lib/split-button/split-button-constants.cjs +1 -1
- package/dist/lib/split-button/split-button-constants.cjs.map +1 -1
- package/dist/lib/split-button/split-button-constants.js +0 -5
- package/dist/lib/split-button/split-button-constants.js.map +1 -1
- package/dist/lib/split-button/split-button-omega.cjs +2 -0
- package/dist/lib/split-button/split-button-omega.cjs.map +1 -0
- package/dist/lib/split-button/{split-button-end.js → split-button-omega.js} +9 -9
- package/dist/lib/split-button/split-button-omega.js.map +1 -0
- package/dist/lib/split-button/split-button.cjs +1 -1
- package/dist/lib/split-button/split-button.cjs.map +1 -1
- package/dist/lib/split-button/split-button.js +71 -246
- package/dist/lib/split-button/split-button.js.map +1 -1
- package/dist/lib/stack/stack-constants.cjs +1 -1
- package/dist/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/lib/stack/stack-constants.js +2 -10
- package/dist/lib/stack/stack-constants.js.map +1 -1
- package/dist/lib/stack/stack.cjs.map +1 -1
- package/dist/lib/stack/stack.js.map +1 -1
- package/dist/lib/tab/index.cjs +1 -1
- package/dist/lib/tab/index.js +5 -5
- package/dist/lib/tab/tab-group.cjs +1 -1
- package/dist/lib/tab/tab-group.cjs.map +1 -1
- package/dist/lib/tab/tab-group.js +52 -186
- package/dist/lib/tab/tab-group.js.map +1 -1
- package/dist/lib/tab/tab.cjs +1 -1
- package/dist/lib/tab/tab.cjs.map +1 -1
- package/dist/lib/tab/tab.js +23 -108
- package/dist/lib/tab/tab.js.map +1 -1
- package/dist/lib/tab/tabs-constants.cjs +1 -1
- package/dist/lib/tab/tabs-constants.cjs.map +1 -1
- package/dist/lib/tab/tabs-constants.js +2 -33
- package/dist/lib/tab/tabs-constants.js.map +1 -1
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.js +1 -1
- package/dist/lib/toggle/toggle-constants.cjs +1 -1
- package/dist/lib/toggle/toggle-constants.cjs.map +1 -1
- package/dist/lib/toggle/toggle-constants.js +0 -2
- package/dist/lib/toggle/toggle-constants.js.map +1 -1
- package/dist/lib/toggle/toggle.cjs +1 -1
- package/dist/lib/toggle/toggle.cjs.map +1 -1
- package/dist/lib/toggle/toggle.js +31 -26
- package/dist/lib/toggle/toggle.js.map +1 -1
- package/dist/lib/tooltip/tooltip.cjs +4 -1
- package/dist/lib/tooltip/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip/tooltip.js +32 -46
- package/dist/lib/tooltip/tooltip.js.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +35 -36
- package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info/top-banner-info.cjs +1 -1
- package/dist/lib/top-banner-info/top-banner-info.cjs.map +1 -1
- package/dist/lib/top-banner-info/top-banner-info.js +4 -4
- package/dist/lib/top-banner-info/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/lib/unread-pill/unread-pill.cjs.map +1 -1
- package/dist/lib/unread-pill/unread-pill.js +1 -1
- package/dist/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages/validation-messages.cjs +1 -1
- package/dist/lib/validation-messages/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages/validation-messages.js +2 -2
- package/dist/lib/validation-messages/validation-messages.js.map +1 -1
- package/dist/localization/en-US.cjs +0 -5
- package/dist/localization/en-US.cjs.map +1 -1
- package/dist/localization/en-US.js +1 -1
- package/dist/localization/en-US.js.map +1 -1
- package/dist/{markdownRenderer-Dsq-CiH9.cjs → markdownRenderer-DCgGQseq.cjs} +1 -1
- package/dist/{markdownRenderer-Dsq-CiH9.cjs.map → markdownRenderer-DCgGQseq.cjs.map} +1 -1
- package/dist/{markdownRenderer-k7_rQkox.js → markdownRenderer-D_P94RyM.js} +1 -1
- package/dist/{markdownRenderer-k7_rQkox.js.map → markdownRenderer-D_P94RyM.js.map} +1 -1
- package/dist/message_input-BiCHkV9g.cjs +2 -0
- package/dist/message_input-BiCHkV9g.cjs.map +1 -0
- package/dist/{message_input-rXsWKem_.js → message_input-DO6pV_GG.js} +132 -131
- package/dist/message_input-DO6pV_GG.js.map +1 -0
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.d.ts +17 -142
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
- package/dist/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +53 -532
- package/dist/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +49 -508
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/recipes/cards/ivr_node/ivr_node.vue.d.ts +46 -392
- package/dist/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +16 -125
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +31 -420
- package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +24 -322
- package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/editor/EditorToolbarButton.vue.d.ts +7 -98
- package/dist/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts +35 -390
- package/dist/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts +30 -365
- package/dist/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/editor/editor.vue.d.ts +284 -1824
- package/dist/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +55 -199
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +48 -161
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +56 -165
- package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +34 -156
- package/dist/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input.vue.d.ts +188 -2104
- package/dist/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_button.vue.d.ts +15 -283
- package/dist/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_link.vue.d.ts +85 -881
- package/dist/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +15 -283
- package/dist/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +7 -98
- package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
- package/dist/recipes/item_layout/contact_info/contact_info.vue.d.ts +54 -143
- package/dist/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/callbox/callbox.vue.d.ts +34 -110
- package/dist/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +33 -150
- package/dist/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/contact_row/contact_row.vue.d.ts +85 -673
- package/dist/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/general_row/general_row.vue.d.ts +39 -560
- package/dist/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/group_row/group_row.vue.d.ts +38 -559
- package/dist/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/dist/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +1 -1
- package/dist/{resizable-CcxS3dH7.js → resizable-D4-peBOl.js} +3 -3
- package/dist/{resizable-CcxS3dH7.js.map → resizable-D4-peBOl.js.map} +1 -1
- package/dist/{resizable-DdPrpKvD.cjs → resizable-aOVGO_Os.cjs} +2 -2
- package/dist/{resizable-DdPrpKvD.cjs.map → resizable-aOVGO_Os.cjs.map} +1 -1
- package/dist/{resizable_handle-vqI5i9u6.js → resizable_handle-BlKBiWnx.js} +3 -3
- package/dist/{resizable_handle-vqI5i9u6.js.map → resizable_handle-BlKBiWnx.js.map} +1 -1
- package/dist/{resizable_handle-g45rLu_2.cjs → resizable_handle-RIKS8frB.cjs} +2 -2
- package/dist/{resizable_handle-g45rLu_2.cjs.map → resizable_handle-RIKS8frB.cjs.map} +1 -1
- package/dist/{resizable_utils-CQscchW4.js → resizable_utils-BComtrMV.js} +47 -29
- package/dist/resizable_utils-BComtrMV.js.map +1 -0
- package/dist/resizable_utils-DhuzXRdP.cjs +2 -0
- package/dist/resizable_utils-DhuzXRdP.cjs.map +1 -0
- package/dist/{rich_text_editor-DRwU4mUa.js → rich_text_editor-DYu2R0kw.js} +602 -640
- package/dist/{rich_text_editor-DRwU4mUa.js.map → rich_text_editor-DYu2R0kw.js.map} +1 -1
- package/dist/rich_text_editor-FduHYl-G.cjs +12 -0
- package/dist/{rich_text_editor-TolFmwK_.cjs.map → rich_text_editor-FduHYl-G.cjs.map} +1 -1
- package/dist/{scroller-DPqcc_Wl.js → scroller-BGVDh3sq.js} +6 -6
- package/dist/scroller-BGVDh3sq.js.map +1 -0
- package/dist/scroller-CjAsgjl9.cjs +2 -0
- package/dist/scroller-CjAsgjl9.cjs.map +1 -0
- package/dist/shared/sr_only_close_button.cjs +1 -1
- package/dist/shared/sr_only_close_button.cjs.map +1 -1
- package/dist/shared/sr_only_close_button.js +1 -1
- package/dist/shared/sr_only_close_button.js.map +1 -1
- package/dist/{toast-DqbTiHVx.js → toast-DvPN-bCi.js} +89 -222
- package/dist/toast-DvPN-bCi.js.map +1 -0
- package/dist/toast-d8_zmgkL.cjs +2 -0
- package/dist/toast-d8_zmgkL.cjs.map +1 -0
- package/dist/{useResizableCalculations-CoVtK_0B.cjs → useResizableCalculations-BDITle3Q.cjs} +2 -2
- package/dist/{useResizableCalculations-CoVtK_0B.cjs.map → useResizableCalculations-BDITle3Q.cjs.map} +1 -1
- package/dist/{useResizableCalculations-YI08W37g.js → useResizableCalculations-DAajatT4.js} +2 -2
- package/dist/{useResizableCalculations-YI08W37g.js.map → useResizableCalculations-DAajatT4.js.map} +1 -1
- package/package.json +5 -7
- package/dist/attachment_carousel-1qxTI-NN.js.map +0 -1
- package/dist/attachment_carousel-wnZS3vEt.cjs +0 -2
- package/dist/attachment_carousel-wnZS3vEt.cjs.map +0 -1
- package/dist/combobox-BQBKrDTW.js.map +0 -1
- package/dist/combobox-Da7wBh3G.cjs +0 -3
- package/dist/combobox-Da7wBh3G.cjs.map +0 -1
- package/dist/common/composables/useIndicatorAnimation.cjs +0 -2
- package/dist/common/composables/useIndicatorAnimation.cjs.map +0 -1
- package/dist/common/composables/useIndicatorAnimation.d.ts +0 -18
- package/dist/common/composables/useIndicatorAnimation.d.ts.map +0 -1
- package/dist/common/composables/useIndicatorAnimation.js +0 -78
- package/dist/common/composables/useIndicatorAnimation.js.map +0 -1
- package/dist/common/constants/sizes.cjs +0 -2
- package/dist/common/constants/sizes.cjs.map +0 -1
- package/dist/common/constants/sizes.d.ts +0 -22
- package/dist/common/constants/sizes.d.ts.map +0 -1
- package/dist/common/constants/sizes.js +0 -19
- package/dist/common/constants/sizes.js.map +0 -1
- package/dist/common/mixins/mode.cjs +0 -2
- package/dist/common/mixins/mode.cjs.map +0 -1
- package/dist/common/mixins/mode.d.ts +0 -25
- package/dist/common/mixins/mode.d.ts.map +0 -1
- package/dist/common/mixins/mode.js +0 -62
- package/dist/common/mixins/mode.js.map +0 -1
- package/dist/common/mode_constants.d.ts +0 -37
- package/dist/common/mode_constants.d.ts.map +0 -1
- package/dist/components/box/box.vue.d.ts +0 -75
- package/dist/components/box/box.vue.d.ts.map +0 -1
- package/dist/components/box/box_constants.d.ts +0 -11
- package/dist/components/box/box_constants.d.ts.map +0 -1
- package/dist/components/box/index.d.ts +0 -3
- package/dist/components/box/index.d.ts.map +0 -1
- package/dist/components/box/validators.d.ts +0 -11
- package/dist/components/box/validators.d.ts.map +0 -1
- package/dist/components/codeblock/codeblock_constants.d.ts +0 -9
- package/dist/components/codeblock/codeblock_constants.d.ts.map +0 -1
- package/dist/components/filter_pill/filter_pill.vue.d.ts +0 -4739
- package/dist/components/filter_pill/filter_pill.vue.d.ts.map +0 -1
- package/dist/components/filter_pill/index.d.ts +0 -2
- package/dist/components/filter_pill/index.d.ts.map +0 -1
- package/dist/components/mode_island/index.d.ts +0 -3
- package/dist/components/mode_island/index.d.ts.map +0 -1
- package/dist/components/mode_island/mode_island.vue.d.ts +0 -3
- package/dist/components/mode_island/mode_island.vue.d.ts.map +0 -1
- package/dist/components/mode_island/mode_island_constants.d.ts +0 -10
- package/dist/components/mode_island/mode_island_constants.d.ts.map +0 -1
- package/dist/components/mode_island/utils.d.ts +0 -12
- package/dist/components/mode_island/utils.d.ts.map +0 -1
- package/dist/components/mode_island/validators.d.ts +0 -6
- package/dist/components/mode_island/validators.d.ts.map +0 -1
- package/dist/components/prose/index.d.ts +0 -3
- package/dist/components/prose/index.d.ts.map +0 -1
- package/dist/components/prose/prose.vue.d.ts +0 -26
- package/dist/components/prose/prose.vue.d.ts.map +0 -1
- package/dist/components/prose/prose_constants.d.ts +0 -34
- package/dist/components/prose/prose_constants.d.ts.map +0 -1
- package/dist/components/segmented_control/index.d.ts +0 -4
- package/dist/components/segmented_control/index.d.ts.map +0 -1
- package/dist/components/segmented_control/segmented_control.vue.d.ts +0 -226
- package/dist/components/segmented_control/segmented_control.vue.d.ts.map +0 -1
- package/dist/components/segmented_control/segmented_control_constants.d.ts +0 -41
- package/dist/components/segmented_control/segmented_control_constants.d.ts.map +0 -1
- package/dist/components/segmented_control/segmented_control_item.vue.d.ts +0 -35
- package/dist/components/segmented_control/segmented_control_item.vue.d.ts.map +0 -1
- package/dist/components/split_button/split_button-end.vue.d.ts.map +0 -1
- package/dist/components/split_button/split_button-start.vue.d.ts.map +0 -1
- package/dist/components/text/index.d.ts +0 -3
- package/dist/components/text/index.d.ts.map +0 -1
- package/dist/components/text/text.vue.d.ts +0 -145
- package/dist/components/text/text.vue.d.ts.map +0 -1
- package/dist/components/text/text_constants.d.ts +0 -95
- package/dist/components/text/text_constants.d.ts.map +0 -1
- package/dist/datepicker-B2nhxiCg.js.map +0 -1
- package/dist/datepicker-CZrNL0Yn.cjs +0 -2
- package/dist/datepicker-CZrNL0Yn.cjs.map +0 -1
- package/dist/directives/focusgroup_directive/focusgroup.d.ts +0 -6
- package/dist/directives/focusgroup_directive/focusgroup.d.ts.map +0 -1
- package/dist/directives/focusgroup_directive/focusgroup_constants.d.ts +0 -74
- package/dist/directives/focusgroup_directive/focusgroup_constants.d.ts.map +0 -1
- package/dist/directives/focusgroup_directive/focusgroup_utils.d.ts +0 -15
- package/dist/directives/focusgroup_directive/focusgroup_utils.d.ts.map +0 -1
- package/dist/directives/focusgroup_directive/index.d.ts +0 -2
- package/dist/directives/focusgroup_directive/index.d.ts.map +0 -1
- package/dist/directives/focustrap_directive/focustrap.d.ts +0 -6
- package/dist/directives/focustrap_directive/focustrap.d.ts.map +0 -1
- package/dist/directives/focustrap_directive/focustrap_constants.d.ts +0 -7
- package/dist/directives/focustrap_directive/focustrap_constants.d.ts.map +0 -1
- package/dist/directives/focustrap_directive/focustrap_utils.d.ts +0 -5
- package/dist/directives/focustrap_directive/focustrap_utils.d.ts.map +0 -1
- package/dist/directives/focustrap_directive/index.d.ts +0 -2
- package/dist/directives/focustrap_directive/index.d.ts.map +0 -1
- package/dist/directives/mode_directive/index.d.ts +0 -2
- package/dist/directives/mode_directive/index.d.ts.map +0 -1
- package/dist/directives/mode_directive/mode.d.ts +0 -6
- package/dist/directives/mode_directive/mode.d.ts.map +0 -1
- package/dist/emoji_picker-BQW4qRFg.cjs +0 -2
- package/dist/emoji_picker-BQW4qRFg.cjs.map +0 -1
- package/dist/emoji_picker-BjgAohQy.js.map +0 -1
- package/dist/lib/box/box-constants.cjs +0 -2
- package/dist/lib/box/box-constants.cjs.map +0 -1
- package/dist/lib/box/box-constants.js +0 -107
- package/dist/lib/box/box-constants.js.map +0 -1
- package/dist/lib/box/box.cjs +0 -2
- package/dist/lib/box/box.cjs.map +0 -1
- package/dist/lib/box/box.js +0 -237
- package/dist/lib/box/box.js.map +0 -1
- package/dist/lib/box/index.cjs +0 -1
- package/dist/lib/box/index.js +0 -3
- package/dist/lib/box/validators.cjs +0 -2
- package/dist/lib/box/validators.cjs.map +0 -1
- package/dist/lib/box/validators.js +0 -17
- package/dist/lib/box/validators.js.map +0 -1
- package/dist/lib/codeblock/codeblock-constants.cjs +0 -2
- package/dist/lib/codeblock/codeblock-constants.cjs.map +0 -1
- package/dist/lib/codeblock/codeblock-constants.js +0 -20
- package/dist/lib/codeblock/codeblock-constants.js.map +0 -1
- package/dist/lib/filter-pill/filter-pill.cjs +0 -2
- package/dist/lib/filter-pill/filter-pill.cjs.map +0 -1
- package/dist/lib/filter-pill/filter-pill.js +0 -441
- package/dist/lib/filter-pill/filter-pill.js.map +0 -1
- package/dist/lib/filter-pill/index.cjs +0 -1
- package/dist/lib/filter-pill/index.js +0 -2
- package/dist/lib/focusgroup-directive/focusgroup-constants.cjs +0 -2
- package/dist/lib/focusgroup-directive/focusgroup-constants.cjs.map +0 -1
- package/dist/lib/focusgroup-directive/focusgroup-constants.js +0 -77
- package/dist/lib/focusgroup-directive/focusgroup-constants.js.map +0 -1
- package/dist/lib/focusgroup-directive/focusgroup-utils.cjs +0 -2
- package/dist/lib/focusgroup-directive/focusgroup-utils.cjs.map +0 -1
- package/dist/lib/focusgroup-directive/focusgroup-utils.js +0 -33
- package/dist/lib/focusgroup-directive/focusgroup-utils.js.map +0 -1
- package/dist/lib/focusgroup-directive/focusgroup.cjs +0 -2
- package/dist/lib/focusgroup-directive/focusgroup.cjs.map +0 -1
- package/dist/lib/focusgroup-directive/focusgroup.js +0 -143
- package/dist/lib/focusgroup-directive/focusgroup.js.map +0 -1
- package/dist/lib/focusgroup-directive/index.cjs +0 -1
- package/dist/lib/focusgroup-directive/index.js +0 -2
- package/dist/lib/focustrap-directive/focustrap-constants.cjs +0 -2
- package/dist/lib/focustrap-directive/focustrap-constants.cjs.map +0 -1
- package/dist/lib/focustrap-directive/focustrap-constants.js +0 -10
- package/dist/lib/focustrap-directive/focustrap-constants.js.map +0 -1
- package/dist/lib/focustrap-directive/focustrap-utils.cjs +0 -2
- package/dist/lib/focustrap-directive/focustrap-utils.cjs.map +0 -1
- package/dist/lib/focustrap-directive/focustrap-utils.js +0 -19
- package/dist/lib/focustrap-directive/focustrap-utils.js.map +0 -1
- package/dist/lib/focustrap-directive/focustrap.cjs +0 -2
- package/dist/lib/focustrap-directive/focustrap.cjs.map +0 -1
- package/dist/lib/focustrap-directive/focustrap.js +0 -96
- package/dist/lib/focustrap-directive/focustrap.js.map +0 -1
- package/dist/lib/focustrap-directive/index.cjs +0 -1
- package/dist/lib/focustrap-directive/index.js +0 -2
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +0 -2
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs.map +0 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.js +0 -205
- package/dist/lib/kitchen-sink/kitchen-sink-view.js.map +0 -1
- package/dist/lib/mode-directive/index.cjs +0 -1
- package/dist/lib/mode-directive/index.js +0 -2
- package/dist/lib/mode-directive/mode.cjs +0 -2
- package/dist/lib/mode-directive/mode.cjs.map +0 -1
- package/dist/lib/mode-directive/mode.js +0 -67
- package/dist/lib/mode-directive/mode.js.map +0 -1
- package/dist/lib/mode-island/index.cjs +0 -1
- package/dist/lib/mode-island/index.js +0 -3
- package/dist/lib/mode-island/mode-island-constants.cjs +0 -2
- package/dist/lib/mode-island/mode-island-constants.cjs.map +0 -1
- package/dist/lib/mode-island/mode-island-constants.js +0 -10
- package/dist/lib/mode-island/mode-island-constants.js.map +0 -1
- package/dist/lib/mode-island/mode-island.cjs +0 -2
- package/dist/lib/mode-island/mode-island.cjs.map +0 -1
- package/dist/lib/mode-island/mode-island.js +0 -102
- package/dist/lib/mode-island/mode-island.js.map +0 -1
- package/dist/lib/mode-island/utils.cjs +0 -2
- package/dist/lib/mode-island/utils.cjs.map +0 -1
- package/dist/lib/mode-island/utils.js +0 -28
- package/dist/lib/mode-island/utils.js.map +0 -1
- package/dist/lib/mode-island/validators.cjs +0 -2
- package/dist/lib/mode-island/validators.cjs.map +0 -1
- package/dist/lib/mode-island/validators.js +0 -10
- package/dist/lib/mode-island/validators.js.map +0 -1
- package/dist/lib/prose/index.cjs +0 -1
- package/dist/lib/prose/index.js +0 -3
- package/dist/lib/prose/prose-constants.cjs +0 -2
- package/dist/lib/prose/prose-constants.cjs.map +0 -1
- package/dist/lib/prose/prose-constants.js +0 -89
- package/dist/lib/prose/prose-constants.js.map +0 -1
- package/dist/lib/prose/prose.cjs +0 -2
- package/dist/lib/prose/prose.cjs.map +0 -1
- package/dist/lib/prose/prose.js +0 -68
- package/dist/lib/prose/prose.js.map +0 -1
- package/dist/lib/segmented-control/index.cjs +0 -1
- package/dist/lib/segmented-control/index.js +0 -4
- package/dist/lib/segmented-control/segmented-control-constants.cjs +0 -2
- package/dist/lib/segmented-control/segmented-control-constants.cjs.map +0 -1
- package/dist/lib/segmented-control/segmented-control-constants.js +0 -41
- package/dist/lib/segmented-control/segmented-control-constants.js.map +0 -1
- package/dist/lib/segmented-control/segmented-control-item.cjs +0 -2
- package/dist/lib/segmented-control/segmented-control-item.cjs.map +0 -1
- package/dist/lib/segmented-control/segmented-control-item.js +0 -104
- package/dist/lib/segmented-control/segmented-control-item.js.map +0 -1
- package/dist/lib/segmented-control/segmented-control.cjs +0 -2
- package/dist/lib/segmented-control/segmented-control.cjs.map +0 -1
- package/dist/lib/segmented-control/segmented-control.js +0 -204
- package/dist/lib/segmented-control/segmented-control.js.map +0 -1
- package/dist/lib/split-button/split-button-end.cjs +0 -2
- package/dist/lib/split-button/split-button-end.cjs.map +0 -1
- package/dist/lib/split-button/split-button-end.js.map +0 -1
- package/dist/lib/split-button/split-button-start.cjs +0 -2
- package/dist/lib/split-button/split-button-start.cjs.map +0 -1
- package/dist/lib/split-button/split-button-start.js +0 -182
- package/dist/lib/split-button/split-button-start.js.map +0 -1
- package/dist/lib/text/index.cjs +0 -1
- package/dist/lib/text/index.js +0 -3
- package/dist/lib/text/text-constants.cjs +0 -2
- package/dist/lib/text/text-constants.cjs.map +0 -1
- package/dist/lib/text/text-constants.js +0 -128
- package/dist/lib/text/text-constants.js.map +0 -1
- package/dist/lib/text/text.cjs +0 -2
- package/dist/lib/text/text.cjs.map +0 -1
- package/dist/lib/text/text.js +0 -150
- package/dist/lib/text/text.js.map +0 -1
- package/dist/message_input-DktL-f28.cjs +0 -2
- package/dist/message_input-DktL-f28.cjs.map +0 -1
- package/dist/message_input-rXsWKem_.js.map +0 -1
- package/dist/mode_constants-CzYJW9ua.cjs +0 -2
- package/dist/mode_constants-CzYJW9ua.cjs.map +0 -1
- package/dist/mode_constants-tb7TL85q.js +0 -14
- package/dist/mode_constants-tb7TL85q.js.map +0 -1
- package/dist/resizable_utils-CQscchW4.js.map +0 -1
- package/dist/resizable_utils-DabS08OL.cjs +0 -2
- package/dist/resizable_utils-DabS08OL.cjs.map +0 -1
- package/dist/rich_text_editor-TolFmwK_.cjs +0 -12
- package/dist/scroller-C15VLKNK.cjs +0 -2
- package/dist/scroller-C15VLKNK.cjs.map +0 -1
- package/dist/scroller-DPqcc_Wl.js.map +0 -1
- package/dist/toast-BuNWsrhy.cjs +0 -2
- package/dist/toast-BuNWsrhy.cjs.map +0 -1
- package/dist/toast-DqbTiHVx.js.map +0 -1
|
@@ -3,122 +3,121 @@ import { t as i } from "./_plugin-vue_export-helper-BTgDAbhb.js";
|
|
|
3
3
|
import { codeToEmojiData as a, emojiRegex as o, emojiShortCodeRegex as s, getEmojiData as c, stringToUnicode as l } from "./common/emoji/index.js";
|
|
4
4
|
import u from "./lib/avatar/avatar.js";
|
|
5
5
|
import d from "./lib/badge/badge.js";
|
|
6
|
-
import f from "./lib/
|
|
7
|
-
import p from "./
|
|
8
|
-
import
|
|
9
|
-
import h from "./lib/
|
|
10
|
-
import g from "./lib/
|
|
11
|
-
import _ from "./lib/
|
|
12
|
-
import v from "./lib/
|
|
13
|
-
import y from "./lib/
|
|
14
|
-
import b from "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import We from "@tiptap/
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import Xe from "@tiptap/extension-
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import at from "@tiptap/extension-
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import _t from "deep-equal";
|
|
6
|
+
import f from "./lib/link/link.js";
|
|
7
|
+
import { DialtoneLocalization as p } from "./localization/index.js";
|
|
8
|
+
import m from "./lib/button/button.js";
|
|
9
|
+
import h from "./lib/list-item/list-item.js";
|
|
10
|
+
import g from "./lib/stack/stack.js";
|
|
11
|
+
import _ from "./lib/popover/popover.js";
|
|
12
|
+
import v from "./lib/emoji/emoji.js";
|
|
13
|
+
import y from "./lib/input/input.js";
|
|
14
|
+
import { Editor as b, EditorContent as x, NodeViewWrapper as S, VueNodeViewRenderer as C, VueRenderer as w, nodeViewProps as T } from "./node_modules/@tiptap/vue-3.js";
|
|
15
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as ee, RICH_TEXT_EDITOR_OUTPUT_FORMATS as te, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as E } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
16
|
+
import { t as ne } from "./markdownRenderer-D_P94RyM.js";
|
|
17
|
+
import { Fragment as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as re, createVNode as M, defineComponent as ie, h as ae, markRaw as oe, mergeProps as se, nextTick as ce, normalizeClass as le, onBeforeUnmount as ue, onMounted as de, openBlock as N, ref as fe, renderList as pe, resolveComponent as P, resolveDynamicComponent as me, toDisplayString as F, vShow as he, withCtx as I, withDirectives as ge, withKeys as _e, withModifiers as ve } from "vue";
|
|
18
|
+
import { emojiPattern as ye } from "regex-combined-emojis";
|
|
19
|
+
import { DtIconLock as be } from "@dialpad/dialtone-icons/vue3";
|
|
20
|
+
import { Extension as xe, InputRule as Se, Mark as Ce, Node as we, combineTransactionSteps as Te, findChildrenInRange as Ee, getChangedRanges as De, getMarksBetween as Oe, getText as ke, getTextSerializersFromSchema as Ae, isTextSelection as je, mergeAttributes as L, nodeInputRule as Me, nodePasteRule as Ne, posToDOMRect as Pe } from "@tiptap/core";
|
|
21
|
+
import { NodeSelection as Fe, Plugin as Ie, PluginKey as R } from "@tiptap/pm/state";
|
|
22
|
+
import { CellSelection as Le } from "@tiptap/pm/tables";
|
|
23
|
+
import Re from "@tiptap/extension-blockquote";
|
|
24
|
+
import ze from "@tiptap/extension-code-block";
|
|
25
|
+
import Be from "@tiptap/extension-code";
|
|
26
|
+
import Ve from "@tiptap/extension-document";
|
|
27
|
+
import { Gapcursor as He, Placeholder as Ue, UndoRedo as We } from "@tiptap/extensions";
|
|
28
|
+
import Ge from "@tiptap/extension-hard-break";
|
|
29
|
+
import Ke from "@tiptap/extension-paragraph";
|
|
30
|
+
import qe from "@tiptap/extension-bold";
|
|
31
|
+
import { BulletList as Je, ListItem as Ye, OrderedList as Xe } from "@tiptap/extension-list";
|
|
32
|
+
import Ze from "@tiptap/extension-italic";
|
|
33
|
+
import Qe from "@tiptap/extension-link";
|
|
34
|
+
import $e from "@tiptap/extension-strike";
|
|
35
|
+
import et from "@tiptap/extension-underline";
|
|
36
|
+
import tt from "@tiptap/extension-text";
|
|
37
|
+
import nt from "@tiptap/extension-text-align";
|
|
38
|
+
import { Table as rt, TableCell as it, TableHeader as at, TableRow as ot } from "@tiptap/extension-table";
|
|
39
|
+
import { TextStyle as st, TextStyleKit as ct } from "@tiptap/extension-text-style";
|
|
40
|
+
import lt from "@tiptap/suggestion";
|
|
41
|
+
import ut from "@tiptap/extension-image";
|
|
42
|
+
import dt from "@tiptap/extension-mention";
|
|
43
|
+
import ft from "@dialpad/dialtone-icons/vue3/hash";
|
|
44
|
+
import pt from "@dialpad/dialtone-icons/vue3/lock";
|
|
45
|
+
import mt from "deep-equal";
|
|
47
46
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
48
|
-
var
|
|
47
|
+
var ht = [
|
|
49
48
|
"top",
|
|
50
49
|
"right",
|
|
51
50
|
"bottom",
|
|
52
51
|
"left"
|
|
53
|
-
],
|
|
52
|
+
], gt = ["start", "end"], _t = /* @__PURE__ */ ht.reduce((e, t) => e.concat(t, t + "-" + gt[0], t + "-" + gt[1]), []), z = Math.min, B = Math.max, vt = Math.round, V = (e) => ({
|
|
54
53
|
x: e,
|
|
55
54
|
y: e
|
|
56
|
-
}),
|
|
55
|
+
}), yt = {
|
|
57
56
|
left: "right",
|
|
58
57
|
right: "left",
|
|
59
58
|
bottom: "top",
|
|
60
59
|
top: "bottom"
|
|
61
60
|
};
|
|
62
|
-
function
|
|
63
|
-
return
|
|
61
|
+
function bt(e, t, n) {
|
|
62
|
+
return B(e, z(t, n));
|
|
64
63
|
}
|
|
65
|
-
function
|
|
64
|
+
function H(e, t) {
|
|
66
65
|
return typeof e == "function" ? e(t) : e;
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function U(e) {
|
|
69
68
|
return e.split("-")[0];
|
|
70
69
|
}
|
|
71
|
-
function
|
|
70
|
+
function W(e) {
|
|
72
71
|
return e.split("-")[1];
|
|
73
72
|
}
|
|
74
|
-
function
|
|
73
|
+
function xt(e) {
|
|
75
74
|
return e === "x" ? "y" : "x";
|
|
76
75
|
}
|
|
77
|
-
function
|
|
76
|
+
function St(e) {
|
|
78
77
|
return e === "y" ? "height" : "width";
|
|
79
78
|
}
|
|
80
|
-
function
|
|
79
|
+
function G(e) {
|
|
81
80
|
let t = e[0];
|
|
82
81
|
return t === "t" || t === "b" ? "y" : "x";
|
|
83
82
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
83
|
+
function Ct(e) {
|
|
84
|
+
return xt(G(e));
|
|
86
85
|
}
|
|
87
|
-
function
|
|
86
|
+
function wt(e, t, n) {
|
|
88
87
|
n === void 0 && (n = !1);
|
|
89
|
-
let r =
|
|
90
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
88
|
+
let r = W(e), i = Ct(e), a = St(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
89
|
+
return t.reference[a] > t.floating[a] && (o = Nt(o)), [o, Nt(o)];
|
|
91
90
|
}
|
|
92
|
-
function
|
|
93
|
-
let t =
|
|
91
|
+
function Tt(e) {
|
|
92
|
+
let t = Nt(e);
|
|
94
93
|
return [
|
|
95
|
-
|
|
94
|
+
Et(e),
|
|
96
95
|
t,
|
|
97
|
-
|
|
96
|
+
Et(t)
|
|
98
97
|
];
|
|
99
98
|
}
|
|
100
|
-
function
|
|
99
|
+
function Et(e) {
|
|
101
100
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
102
101
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
102
|
+
var Dt = ["left", "right"], Ot = ["right", "left"], kt = ["top", "bottom"], At = ["bottom", "top"];
|
|
103
|
+
function jt(e, t, n) {
|
|
105
104
|
switch (e) {
|
|
106
105
|
case "top":
|
|
107
|
-
case "bottom": return n ? t ?
|
|
106
|
+
case "bottom": return n ? t ? Ot : Dt : t ? Dt : Ot;
|
|
108
107
|
case "left":
|
|
109
|
-
case "right": return t ?
|
|
108
|
+
case "right": return t ? kt : At;
|
|
110
109
|
default: return [];
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
|
-
function
|
|
114
|
-
let i =
|
|
115
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
112
|
+
function Mt(e, t, n, r) {
|
|
113
|
+
let i = W(e), a = jt(U(e), n === "start", r);
|
|
114
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Et)))), a;
|
|
116
115
|
}
|
|
117
|
-
function
|
|
118
|
-
let t =
|
|
119
|
-
return
|
|
116
|
+
function Nt(e) {
|
|
117
|
+
let t = U(e);
|
|
118
|
+
return yt[t] + e.slice(t.length);
|
|
120
119
|
}
|
|
121
|
-
function
|
|
120
|
+
function Pt(e) {
|
|
122
121
|
return {
|
|
123
122
|
top: 0,
|
|
124
123
|
right: 0,
|
|
@@ -127,15 +126,15 @@ function Lt(e) {
|
|
|
127
126
|
...e
|
|
128
127
|
};
|
|
129
128
|
}
|
|
130
|
-
function
|
|
129
|
+
function Ft(e) {
|
|
131
130
|
return typeof e == "number" ? {
|
|
132
131
|
top: e,
|
|
133
132
|
right: e,
|
|
134
133
|
bottom: e,
|
|
135
134
|
left: e
|
|
136
|
-
} :
|
|
135
|
+
} : Pt(e);
|
|
137
136
|
}
|
|
138
|
-
function
|
|
137
|
+
function It(e) {
|
|
139
138
|
let { x: t, y: n, width: r, height: i } = e;
|
|
140
139
|
return {
|
|
141
140
|
width: r,
|
|
@@ -150,8 +149,8 @@ function W(e) {
|
|
|
150
149
|
}
|
|
151
150
|
//#endregion
|
|
152
151
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
153
|
-
function
|
|
154
|
-
let { reference: r, floating: i } = e, a =
|
|
152
|
+
function Lt(e, t, n) {
|
|
153
|
+
let { reference: r, floating: i } = e, a = G(t), o = Ct(t), s = St(o), c = U(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
155
154
|
switch (c) {
|
|
156
155
|
case "top":
|
|
157
156
|
p = {
|
|
@@ -182,7 +181,7 @@ function zt(e, t, n) {
|
|
|
182
181
|
y: r.y
|
|
183
182
|
};
|
|
184
183
|
}
|
|
185
|
-
switch (
|
|
184
|
+
switch (W(t)) {
|
|
186
185
|
case "start":
|
|
187
186
|
p[o] -= f * (n && l ? -1 : 1);
|
|
188
187
|
break;
|
|
@@ -192,9 +191,9 @@ function zt(e, t, n) {
|
|
|
192
191
|
}
|
|
193
192
|
return p;
|
|
194
193
|
}
|
|
195
|
-
async function
|
|
194
|
+
async function Rt(e, t) {
|
|
196
195
|
t === void 0 && (t = {});
|
|
197
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
196
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = H(t, e), p = Ft(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = It(await i.getClippingRect({
|
|
198
197
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
199
198
|
boundary: c,
|
|
200
199
|
rootBoundary: l,
|
|
@@ -207,7 +206,7 @@ async function Bt(e, t) {
|
|
|
207
206
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
208
207
|
x: 1,
|
|
209
208
|
y: 1
|
|
210
|
-
}, y =
|
|
209
|
+
}, y = It(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
211
210
|
elements: o,
|
|
212
211
|
rect: g,
|
|
213
212
|
offsetParent: _,
|
|
@@ -220,15 +219,15 @@ async function Bt(e, t) {
|
|
|
220
219
|
right: (y.right - h.right + p.right) / v.x
|
|
221
220
|
};
|
|
222
221
|
}
|
|
223
|
-
var
|
|
222
|
+
var zt = 50, Bt = async (e, t, n) => {
|
|
224
223
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
225
224
|
...o,
|
|
226
|
-
detectOverflow:
|
|
225
|
+
detectOverflow: Rt
|
|
227
226
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
228
227
|
reference: e,
|
|
229
228
|
floating: t,
|
|
230
229
|
strategy: i
|
|
231
|
-
}), { x: u, y: d } =
|
|
230
|
+
}), { x: u, y: d } = Lt(l, r, c), f = r, p = 0, m = {};
|
|
232
231
|
for (let n = 0; n < a.length; n++) {
|
|
233
232
|
let h = a[n];
|
|
234
233
|
if (!h) continue;
|
|
@@ -249,11 +248,11 @@ var Vt = 50, Ht = async (e, t, n) => {
|
|
|
249
248
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
250
249
|
...m[g],
|
|
251
250
|
...b
|
|
252
|
-
}, x && p <
|
|
251
|
+
}, x && p < zt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
253
252
|
reference: e,
|
|
254
253
|
floating: t,
|
|
255
254
|
strategy: i
|
|
256
|
-
}) : x.rects), {x: u, y: d} =
|
|
255
|
+
}) : x.rects), {x: u, y: d} = Lt(l, f, c)), n = -1);
|
|
257
256
|
}
|
|
258
257
|
return {
|
|
259
258
|
x: u,
|
|
@@ -262,43 +261,43 @@ var Vt = 50, Ht = async (e, t, n) => {
|
|
|
262
261
|
strategy: i,
|
|
263
262
|
middlewareData: m
|
|
264
263
|
};
|
|
265
|
-
},
|
|
264
|
+
}, Vt = (e) => ({
|
|
266
265
|
name: "arrow",
|
|
267
266
|
options: e,
|
|
268
267
|
async fn(t) {
|
|
269
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
268
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = H(e, t) || {};
|
|
270
269
|
if (l == null) return {};
|
|
271
|
-
let d =
|
|
270
|
+
let d = Ft(u), f = {
|
|
272
271
|
x: n,
|
|
273
272
|
y: r
|
|
274
|
-
}, p =
|
|
275
|
-
(!
|
|
276
|
-
let
|
|
273
|
+
}, p = Ct(i), m = St(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
274
|
+
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
275
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = z(d[_], T), te = z(d[v], T), E = ee, ne = C - h[m] - te, D = C / 2 - h[m] / 2 + w, O = bt(E, D, ne), k = !c.arrow && W(i) != null && D !== O && a.reference[m] / 2 - (D < E ? ee : te) - h[m] / 2 < 0, A = k ? D < E ? D - E : D - ne : 0;
|
|
277
276
|
return {
|
|
278
|
-
[p]: f[p] +
|
|
277
|
+
[p]: f[p] + A,
|
|
279
278
|
data: {
|
|
280
|
-
[p]:
|
|
281
|
-
centerOffset:
|
|
282
|
-
...
|
|
279
|
+
[p]: O,
|
|
280
|
+
centerOffset: D - O - A,
|
|
281
|
+
...k && { alignmentOffset: A }
|
|
283
282
|
},
|
|
284
|
-
reset:
|
|
283
|
+
reset: k
|
|
285
284
|
};
|
|
286
285
|
}
|
|
287
286
|
});
|
|
288
|
-
function
|
|
289
|
-
return (e ? [...n.filter((t) =>
|
|
287
|
+
function Ht(e, t, n) {
|
|
288
|
+
return (e ? [...n.filter((t) => W(t) === e), ...n.filter((t) => W(t) !== e)] : n.filter((e) => U(e) === e)).filter((n) => e ? W(n) === e || (t ? Et(n) !== n : !1) : !0);
|
|
290
289
|
}
|
|
291
|
-
var
|
|
290
|
+
var Ut = function(e) {
|
|
292
291
|
return e === void 0 && (e = {}), {
|
|
293
292
|
name: "autoPlacement",
|
|
294
293
|
options: e,
|
|
295
294
|
async fn(t) {
|
|
296
|
-
let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l =
|
|
295
|
+
let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l = _t, autoAlignment: u = !0, ...d } = H(e, t), f = c !== void 0 || l === _t ? Ht(c || null, u, l) : l, p = await a.detectOverflow(t, d), m = r.autoPlacement?.index || 0, h = f[m];
|
|
297
296
|
if (h == null) return {};
|
|
298
|
-
let g =
|
|
297
|
+
let g = wt(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
|
|
299
298
|
if (i !== h) return { reset: { placement: f[0] } };
|
|
300
299
|
let _ = [
|
|
301
|
-
p[
|
|
300
|
+
p[U(h)],
|
|
302
301
|
p[g[0]],
|
|
303
302
|
p[g[1]]
|
|
304
303
|
], v = [...r.autoPlacement?.overflows || [], {
|
|
@@ -313,13 +312,13 @@ var Gt = function(e) {
|
|
|
313
312
|
reset: { placement: y }
|
|
314
313
|
};
|
|
315
314
|
let b = v.map((e) => {
|
|
316
|
-
let t =
|
|
315
|
+
let t = W(e.placement);
|
|
317
316
|
return [
|
|
318
317
|
e.placement,
|
|
319
318
|
t && s ? e.overflows.slice(0, 2).reduce((e, t) => e + t, 0) : e.overflows[0],
|
|
320
319
|
e.overflows
|
|
321
320
|
];
|
|
322
|
-
}).sort((e, t) => e[1] - t[1]), x = b.filter((e) => e[2].slice(0,
|
|
321
|
+
}).sort((e, t) => e[1] - t[1]), x = b.filter((e) => e[2].slice(0, W(e[0]) ? 2 : 3).every((e) => e <= 0))[0]?.[0] || b[0][0];
|
|
323
322
|
return x === i ? {} : {
|
|
324
323
|
data: {
|
|
325
324
|
index: m + 1,
|
|
@@ -329,39 +328,39 @@ var Gt = function(e) {
|
|
|
329
328
|
};
|
|
330
329
|
}
|
|
331
330
|
};
|
|
332
|
-
},
|
|
331
|
+
}, Wt = function(e) {
|
|
333
332
|
return e === void 0 && (e = {}), {
|
|
334
333
|
name: "flip",
|
|
335
334
|
options: e,
|
|
336
335
|
async fn(t) {
|
|
337
336
|
var n;
|
|
338
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
337
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = H(e, t);
|
|
339
338
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
340
|
-
let g =
|
|
341
|
-
!d && x && b.push(...
|
|
342
|
-
let
|
|
343
|
-
if (l &&
|
|
344
|
-
let e =
|
|
345
|
-
|
|
339
|
+
let g = U(r), _ = G(o), v = U(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Nt(o)] : Tt(o)), x = p !== "none";
|
|
340
|
+
!d && x && b.push(...Mt(o, m, p, y));
|
|
341
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
342
|
+
if (l && w.push(C[g]), u) {
|
|
343
|
+
let e = wt(r, a, y);
|
|
344
|
+
w.push(C[e[0]], C[e[1]]);
|
|
346
345
|
}
|
|
347
|
-
if (
|
|
346
|
+
if (T = [...T, {
|
|
348
347
|
placement: r,
|
|
349
|
-
overflows:
|
|
350
|
-
}], !
|
|
351
|
-
let e = (i.flip?.index || 0) + 1, t =
|
|
352
|
-
if (t && (!(u === "alignment" && _ !==
|
|
348
|
+
overflows: w
|
|
349
|
+
}], !w.every((e) => e <= 0)) {
|
|
350
|
+
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
351
|
+
if (t && (!(u === "alignment" && _ !== G(t)) || T.every((e) => G(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
353
352
|
data: {
|
|
354
353
|
index: e,
|
|
355
|
-
overflows:
|
|
354
|
+
overflows: T
|
|
356
355
|
},
|
|
357
356
|
reset: { placement: t }
|
|
358
357
|
};
|
|
359
|
-
let n =
|
|
358
|
+
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
360
359
|
if (!n) switch (f) {
|
|
361
360
|
case "bestFit": {
|
|
362
|
-
let e =
|
|
361
|
+
let e = T.filter((e) => {
|
|
363
362
|
if (x) {
|
|
364
|
-
let t =
|
|
363
|
+
let t = G(e.placement);
|
|
365
364
|
return t === _ || t === "y";
|
|
366
365
|
}
|
|
367
366
|
return !0;
|
|
@@ -379,7 +378,7 @@ var Gt = function(e) {
|
|
|
379
378
|
}
|
|
380
379
|
};
|
|
381
380
|
};
|
|
382
|
-
function
|
|
381
|
+
function Gt(e, t) {
|
|
383
382
|
return {
|
|
384
383
|
top: e.top - t.height,
|
|
385
384
|
right: e.right - t.width,
|
|
@@ -387,34 +386,34 @@ function qt(e, t) {
|
|
|
387
386
|
left: e.left - t.width
|
|
388
387
|
};
|
|
389
388
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
389
|
+
function Kt(e) {
|
|
390
|
+
return ht.some((t) => e[t] >= 0);
|
|
392
391
|
}
|
|
393
|
-
var
|
|
392
|
+
var qt = function(e) {
|
|
394
393
|
return e === void 0 && (e = {}), {
|
|
395
394
|
name: "hide",
|
|
396
395
|
options: e,
|
|
397
396
|
async fn(t) {
|
|
398
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
397
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = H(e, t);
|
|
399
398
|
switch (i) {
|
|
400
399
|
case "referenceHidden": {
|
|
401
|
-
let e =
|
|
400
|
+
let e = Gt(await r.detectOverflow(t, {
|
|
402
401
|
...a,
|
|
403
402
|
elementContext: "reference"
|
|
404
403
|
}), n.reference);
|
|
405
404
|
return { data: {
|
|
406
405
|
referenceHiddenOffsets: e,
|
|
407
|
-
referenceHidden:
|
|
406
|
+
referenceHidden: Kt(e)
|
|
408
407
|
} };
|
|
409
408
|
}
|
|
410
409
|
case "escaped": {
|
|
411
|
-
let e =
|
|
410
|
+
let e = Gt(await r.detectOverflow(t, {
|
|
412
411
|
...a,
|
|
413
412
|
altBoundary: !0
|
|
414
413
|
}), n.floating);
|
|
415
414
|
return { data: {
|
|
416
415
|
escapedOffsets: e,
|
|
417
|
-
escaped:
|
|
416
|
+
escaped: Kt(e)
|
|
418
417
|
} };
|
|
419
418
|
}
|
|
420
419
|
default: return {};
|
|
@@ -422,8 +421,8 @@ var Yt = function(e) {
|
|
|
422
421
|
}
|
|
423
422
|
};
|
|
424
423
|
};
|
|
425
|
-
function
|
|
426
|
-
let t =
|
|
424
|
+
function Jt(e) {
|
|
425
|
+
let t = z(...e.map((e) => e.left)), n = z(...e.map((e) => e.top)), r = B(...e.map((e) => e.right)), i = B(...e.map((e) => e.bottom));
|
|
427
426
|
return {
|
|
428
427
|
x: t,
|
|
429
428
|
y: n,
|
|
@@ -431,25 +430,25 @@ function Xt(e) {
|
|
|
431
430
|
height: i - n
|
|
432
431
|
};
|
|
433
432
|
}
|
|
434
|
-
function
|
|
433
|
+
function Yt(e) {
|
|
435
434
|
let t = e.slice().sort((e, t) => e.y - t.y), n = [], r = null;
|
|
436
435
|
for (let e = 0; e < t.length; e++) {
|
|
437
436
|
let i = t[e];
|
|
438
437
|
!r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
|
|
439
438
|
}
|
|
440
|
-
return n.map((e) =>
|
|
439
|
+
return n.map((e) => It(Jt(e)));
|
|
441
440
|
}
|
|
442
|
-
var
|
|
441
|
+
var Xt = function(e) {
|
|
443
442
|
return e === void 0 && (e = {}), {
|
|
444
443
|
name: "inline",
|
|
445
444
|
options: e,
|
|
446
445
|
async fn(t) {
|
|
447
|
-
let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } =
|
|
446
|
+
let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } = H(e, t), u = Array.from(await (a.getClientRects == null ? void 0 : a.getClientRects(r.reference)) || []), d = Yt(u), f = It(Jt(u)), p = Ft(s);
|
|
448
447
|
function m() {
|
|
449
448
|
if (d.length === 2 && d[0].left > d[1].right && c != null && l != null) return d.find((e) => c > e.left - p.left && c < e.right + p.right && l > e.top - p.top && l < e.bottom + p.bottom) || f;
|
|
450
449
|
if (d.length >= 2) {
|
|
451
|
-
if (
|
|
452
|
-
let e = d[0], t = d[d.length - 1], r =
|
|
450
|
+
if (G(n) === "y") {
|
|
451
|
+
let e = d[0], t = d[d.length - 1], r = U(n) === "top", i = e.top, a = t.bottom, o = r ? e.left : t.left, s = r ? e.right : t.right;
|
|
453
452
|
return {
|
|
454
453
|
top: i,
|
|
455
454
|
bottom: a,
|
|
@@ -461,7 +460,7 @@ var Qt = function(e) {
|
|
|
461
460
|
y: i
|
|
462
461
|
};
|
|
463
462
|
}
|
|
464
|
-
let e =
|
|
463
|
+
let e = U(n) === "left", t = B(...d.map((e) => e.right)), r = z(...d.map((e) => e.left)), i = d.filter((n) => e ? n.left === r : n.right === t), a = i[0].top, o = i[i.length - 1].bottom, s = r, c = t;
|
|
465
464
|
return {
|
|
466
465
|
top: a,
|
|
467
466
|
bottom: o,
|
|
@@ -483,9 +482,9 @@ var Qt = function(e) {
|
|
|
483
482
|
return i.reference.x !== h.reference.x || i.reference.y !== h.reference.y || i.reference.width !== h.reference.width || i.reference.height !== h.reference.height ? { reset: { rects: h } } : {};
|
|
484
483
|
}
|
|
485
484
|
};
|
|
486
|
-
},
|
|
487
|
-
async function
|
|
488
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
485
|
+
}, Zt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
486
|
+
async function Qt(e, t) {
|
|
487
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = U(n), s = W(n), c = G(n) === "y", l = Zt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = H(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
489
488
|
mainAxis: d,
|
|
490
489
|
crossAxis: 0,
|
|
491
490
|
alignmentAxis: null
|
|
@@ -502,13 +501,13 @@ async function en(e, t) {
|
|
|
502
501
|
y: p * u
|
|
503
502
|
};
|
|
504
503
|
}
|
|
505
|
-
var
|
|
504
|
+
var $t = function(e) {
|
|
506
505
|
return e === void 0 && (e = 0), {
|
|
507
506
|
name: "offset",
|
|
508
507
|
options: e,
|
|
509
508
|
async fn(t) {
|
|
510
509
|
var n;
|
|
511
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
510
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Qt(t, e);
|
|
512
511
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
513
512
|
x: r + s.x,
|
|
514
513
|
y: i + s.y,
|
|
@@ -519,7 +518,7 @@ var tn = function(e) {
|
|
|
519
518
|
};
|
|
520
519
|
}
|
|
521
520
|
};
|
|
522
|
-
},
|
|
521
|
+
}, en = function(e) {
|
|
523
522
|
return e === void 0 && (e = {}), {
|
|
524
523
|
name: "shift",
|
|
525
524
|
options: e,
|
|
@@ -530,17 +529,17 @@ var tn = function(e) {
|
|
|
530
529
|
x: t,
|
|
531
530
|
y: n
|
|
532
531
|
};
|
|
533
|
-
} }, ...l } =
|
|
532
|
+
} }, ...l } = H(e, t), u = {
|
|
534
533
|
x: n,
|
|
535
534
|
y: r
|
|
536
|
-
}, d = await a.detectOverflow(t, l), f = U(
|
|
535
|
+
}, d = await a.detectOverflow(t, l), f = G(U(i)), p = xt(f), m = u[p], h = u[f];
|
|
537
536
|
if (o) {
|
|
538
537
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
539
|
-
m =
|
|
538
|
+
m = bt(n, m, r);
|
|
540
539
|
}
|
|
541
540
|
if (s) {
|
|
542
541
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
543
|
-
h =
|
|
542
|
+
h = bt(n, h, r);
|
|
544
543
|
}
|
|
545
544
|
let g = c.fn({
|
|
546
545
|
...t,
|
|
@@ -560,64 +559,64 @@ var tn = function(e) {
|
|
|
560
559
|
};
|
|
561
560
|
}
|
|
562
561
|
};
|
|
563
|
-
},
|
|
562
|
+
}, tn = function(e) {
|
|
564
563
|
return e === void 0 && (e = {}), {
|
|
565
564
|
name: "size",
|
|
566
565
|
options: e,
|
|
567
566
|
async fn(t) {
|
|
568
567
|
var n, r;
|
|
569
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
568
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = H(e, t), u = await o.detectOverflow(t, l), d = U(i), f = W(i), p = G(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
570
569
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
571
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
572
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
573
|
-
let e =
|
|
574
|
-
p ?
|
|
570
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = z(h - u[g], v), x = z(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
571
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
572
|
+
let e = B(u.left, 0), t = B(u.right, 0), n = B(u.top, 0), r = B(u.bottom, 0);
|
|
573
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : B(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : B(u.top, u.bottom));
|
|
575
574
|
}
|
|
576
575
|
await c({
|
|
577
576
|
...t,
|
|
578
|
-
availableWidth:
|
|
579
|
-
availableHeight:
|
|
577
|
+
availableWidth: w,
|
|
578
|
+
availableHeight: C
|
|
580
579
|
});
|
|
581
|
-
let
|
|
582
|
-
return m !==
|
|
580
|
+
let T = await o.getDimensions(s.floating);
|
|
581
|
+
return m !== T.width || h !== T.height ? { reset: { rects: !0 } } : {};
|
|
583
582
|
}
|
|
584
583
|
};
|
|
585
584
|
};
|
|
586
585
|
//#endregion
|
|
587
586
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
588
|
-
function
|
|
587
|
+
function nn() {
|
|
589
588
|
return typeof window < "u";
|
|
590
589
|
}
|
|
591
|
-
function
|
|
592
|
-
return
|
|
590
|
+
function rn(e) {
|
|
591
|
+
return an(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
593
592
|
}
|
|
594
593
|
function K(e) {
|
|
595
594
|
var t;
|
|
596
595
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
597
596
|
}
|
|
598
597
|
function q(e) {
|
|
599
|
-
return ((
|
|
598
|
+
return ((an(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
600
599
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
600
|
+
function an(e) {
|
|
601
|
+
return nn() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
603
602
|
}
|
|
604
603
|
function J(e) {
|
|
605
|
-
return
|
|
604
|
+
return nn() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
606
605
|
}
|
|
607
606
|
function Y(e) {
|
|
608
|
-
return
|
|
607
|
+
return nn() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
|
|
609
608
|
}
|
|
610
|
-
function
|
|
611
|
-
return !
|
|
609
|
+
function on(e) {
|
|
610
|
+
return !nn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
612
611
|
}
|
|
613
|
-
function
|
|
612
|
+
function sn(e) {
|
|
614
613
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
|
|
615
614
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
616
615
|
}
|
|
617
|
-
function
|
|
618
|
-
return /^(table|td|th)$/.test(
|
|
616
|
+
function cn(e) {
|
|
617
|
+
return /^(table|td|th)$/.test(rn(e));
|
|
619
618
|
}
|
|
620
|
-
function
|
|
619
|
+
function ln(e) {
|
|
621
620
|
try {
|
|
622
621
|
if (e.matches(":popover-open")) return !0;
|
|
623
622
|
} catch {}
|
|
@@ -627,30 +626,30 @@ function un(e) {
|
|
|
627
626
|
return !1;
|
|
628
627
|
}
|
|
629
628
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
629
|
+
var un = /transform|translate|scale|rotate|perspective|filter/, dn = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", fn;
|
|
630
|
+
function pn(e) {
|
|
632
631
|
let t = J(e) ? Z(e) : e;
|
|
633
|
-
return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !
|
|
632
|
+
return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !hn() && (X(t.backdropFilter) || X(t.filter)) || un.test(t.willChange || "") || dn.test(t.contain || "");
|
|
634
633
|
}
|
|
635
|
-
function
|
|
634
|
+
function mn(e) {
|
|
636
635
|
let t = Q(e);
|
|
637
|
-
for (; Y(t) && !
|
|
638
|
-
if (
|
|
639
|
-
if (
|
|
636
|
+
for (; Y(t) && !gn(t);) {
|
|
637
|
+
if (pn(t)) return t;
|
|
638
|
+
if (ln(t)) return null;
|
|
640
639
|
t = Q(t);
|
|
641
640
|
}
|
|
642
641
|
return null;
|
|
643
642
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
643
|
+
function hn() {
|
|
644
|
+
return fn ?? (fn = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), fn;
|
|
646
645
|
}
|
|
647
|
-
function
|
|
648
|
-
return /^(html|body|#document)$/.test(
|
|
646
|
+
function gn(e) {
|
|
647
|
+
return /^(html|body|#document)$/.test(rn(e));
|
|
649
648
|
}
|
|
650
649
|
function Z(e) {
|
|
651
650
|
return K(e).getComputedStyle(e);
|
|
652
651
|
}
|
|
653
|
-
function
|
|
652
|
+
function _n(e) {
|
|
654
653
|
return J(e) ? {
|
|
655
654
|
scrollLeft: e.scrollLeft,
|
|
656
655
|
scrollTop: e.scrollTop
|
|
@@ -660,100 +659,100 @@ function vn(e) {
|
|
|
660
659
|
};
|
|
661
660
|
}
|
|
662
661
|
function Q(e) {
|
|
663
|
-
if (
|
|
664
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
665
|
-
return
|
|
662
|
+
if (rn(e) === "html") return e;
|
|
663
|
+
let t = e.assignedSlot || e.parentNode || on(e) && e.host || q(e);
|
|
664
|
+
return on(t) ? t.host : t;
|
|
666
665
|
}
|
|
667
|
-
function
|
|
666
|
+
function vn(e) {
|
|
668
667
|
let t = Q(e);
|
|
669
|
-
return
|
|
668
|
+
return gn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && sn(t) ? t : vn(t);
|
|
670
669
|
}
|
|
671
|
-
function
|
|
670
|
+
function yn(e, t, n) {
|
|
672
671
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
673
|
-
let r =
|
|
672
|
+
let r = vn(e), i = r === e.ownerDocument?.body, a = K(r);
|
|
674
673
|
if (i) {
|
|
675
|
-
let e =
|
|
676
|
-
return t.concat(a, a.visualViewport || [],
|
|
677
|
-
} else return t.concat(r,
|
|
674
|
+
let e = bn(a);
|
|
675
|
+
return t.concat(a, a.visualViewport || [], sn(r) ? r : [], e && n ? yn(e) : []);
|
|
676
|
+
} else return t.concat(r, yn(r, [], n));
|
|
678
677
|
}
|
|
679
|
-
function
|
|
678
|
+
function bn(e) {
|
|
680
679
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
681
680
|
}
|
|
682
681
|
//#endregion
|
|
683
682
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
684
|
-
function
|
|
685
|
-
let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
683
|
+
function xn(e) {
|
|
684
|
+
let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = vt(n) !== a || vt(r) !== o;
|
|
686
685
|
return s && (n = a, r = o), {
|
|
687
686
|
width: n,
|
|
688
687
|
height: r,
|
|
689
688
|
$: s
|
|
690
689
|
};
|
|
691
690
|
}
|
|
692
|
-
function
|
|
691
|
+
function Sn(e) {
|
|
693
692
|
return J(e) ? e : e.contextElement;
|
|
694
693
|
}
|
|
695
|
-
function
|
|
696
|
-
let t =
|
|
697
|
-
if (!Y(t)) return
|
|
698
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
694
|
+
function Cn(e) {
|
|
695
|
+
let t = Sn(e);
|
|
696
|
+
if (!Y(t)) return V(1);
|
|
697
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = xn(t), o = (a ? vt(n.width) : n.width) / r, s = (a ? vt(n.height) : n.height) / i;
|
|
699
698
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
700
699
|
x: o,
|
|
701
700
|
y: s
|
|
702
701
|
};
|
|
703
702
|
}
|
|
704
|
-
var
|
|
705
|
-
function
|
|
703
|
+
var wn = /* @__PURE__ */ V(0);
|
|
704
|
+
function Tn(e) {
|
|
706
705
|
let t = K(e);
|
|
707
|
-
return !
|
|
706
|
+
return !hn() || !t.visualViewport ? wn : {
|
|
708
707
|
x: t.visualViewport.offsetLeft,
|
|
709
708
|
y: t.visualViewport.offsetTop
|
|
710
709
|
};
|
|
711
710
|
}
|
|
712
|
-
function
|
|
711
|
+
function En(e, t, n) {
|
|
713
712
|
return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
|
|
714
713
|
}
|
|
715
|
-
function
|
|
714
|
+
function Dn(e, t, n, r) {
|
|
716
715
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
717
|
-
let i = e.getBoundingClientRect(), a =
|
|
718
|
-
t && (r ? J(r) && (o =
|
|
719
|
-
let s =
|
|
716
|
+
let i = e.getBoundingClientRect(), a = Sn(e), o = V(1);
|
|
717
|
+
t && (r ? J(r) && (o = Cn(r)) : o = Cn(e));
|
|
718
|
+
let s = En(a, n, r) ? Tn(a) : V(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
720
719
|
if (a) {
|
|
721
|
-
let e = K(a), t = r && J(r) ? K(r) : r, n = e, i =
|
|
720
|
+
let e = K(a), t = r && J(r) ? K(r) : r, n = e, i = bn(n);
|
|
722
721
|
for (; i && r && t !== n;) {
|
|
723
|
-
let e =
|
|
724
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i =
|
|
722
|
+
let e = Cn(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
723
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = bn(n);
|
|
725
724
|
}
|
|
726
725
|
}
|
|
727
|
-
return
|
|
726
|
+
return It({
|
|
728
727
|
width: u,
|
|
729
728
|
height: d,
|
|
730
729
|
x: c,
|
|
731
730
|
y: l
|
|
732
731
|
});
|
|
733
732
|
}
|
|
734
|
-
function
|
|
735
|
-
let n =
|
|
736
|
-
return t ? t.left + n :
|
|
733
|
+
function On(e, t) {
|
|
734
|
+
let n = _n(e).scrollLeft;
|
|
735
|
+
return t ? t.left + n : Dn(q(e)).left + n;
|
|
737
736
|
}
|
|
738
|
-
function
|
|
737
|
+
function kn(e, t) {
|
|
739
738
|
let n = e.getBoundingClientRect();
|
|
740
739
|
return {
|
|
741
|
-
x: n.left + t.scrollLeft -
|
|
740
|
+
x: n.left + t.scrollLeft - On(e, n),
|
|
742
741
|
y: n.top + t.scrollTop
|
|
743
742
|
};
|
|
744
743
|
}
|
|
745
|
-
function
|
|
746
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ?
|
|
744
|
+
function An(e) {
|
|
745
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? ln(t.floating) : !1;
|
|
747
746
|
if (r === o || s && a) return n;
|
|
748
747
|
let c = {
|
|
749
748
|
scrollLeft: 0,
|
|
750
749
|
scrollTop: 0
|
|
751
|
-
}, l =
|
|
752
|
-
if ((d || !d && !a) && ((
|
|
753
|
-
let e =
|
|
754
|
-
l =
|
|
750
|
+
}, l = V(1), u = V(0), d = Y(r);
|
|
751
|
+
if ((d || !d && !a) && ((rn(r) !== "body" || sn(o)) && (c = _n(r)), d)) {
|
|
752
|
+
let e = Dn(r);
|
|
753
|
+
l = Cn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
755
754
|
}
|
|
756
|
-
let f = o && !d && !a ?
|
|
755
|
+
let f = o && !d && !a ? kn(o, c) : V(0);
|
|
757
756
|
return {
|
|
758
757
|
width: n.width * l.x,
|
|
759
758
|
height: n.height * l.y,
|
|
@@ -761,31 +760,31 @@ function jn(e) {
|
|
|
761
760
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
762
761
|
};
|
|
763
762
|
}
|
|
764
|
-
function
|
|
763
|
+
function jn(e) {
|
|
765
764
|
return Array.from(e.getClientRects());
|
|
766
765
|
}
|
|
767
|
-
function
|
|
768
|
-
let t = q(e), n =
|
|
769
|
-
return Z(r).direction === "rtl" && (o +=
|
|
766
|
+
function Mn(e) {
|
|
767
|
+
let t = q(e), n = _n(e), r = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + On(e), s = -n.scrollTop;
|
|
768
|
+
return Z(r).direction === "rtl" && (o += B(t.clientWidth, r.clientWidth) - i), {
|
|
770
769
|
width: i,
|
|
771
770
|
height: a,
|
|
772
771
|
x: o,
|
|
773
772
|
y: s
|
|
774
773
|
};
|
|
775
774
|
}
|
|
776
|
-
var
|
|
777
|
-
function
|
|
775
|
+
var Nn = 25;
|
|
776
|
+
function Pn(e, t) {
|
|
778
777
|
let n = K(e), r = q(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
779
778
|
if (i) {
|
|
780
779
|
a = i.width, o = i.height;
|
|
781
|
-
let e =
|
|
780
|
+
let e = hn();
|
|
782
781
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
783
782
|
}
|
|
784
|
-
let l =
|
|
783
|
+
let l = On(r);
|
|
785
784
|
if (l <= 0) {
|
|
786
785
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
787
|
-
o <=
|
|
788
|
-
} else l <=
|
|
786
|
+
o <= Nn && (a -= o);
|
|
787
|
+
} else l <= Nn && (a += l);
|
|
789
788
|
return {
|
|
790
789
|
width: a,
|
|
791
790
|
height: o,
|
|
@@ -793,8 +792,8 @@ function Fn(e, t) {
|
|
|
793
792
|
y: c
|
|
794
793
|
};
|
|
795
794
|
}
|
|
796
|
-
function
|
|
797
|
-
let n =
|
|
795
|
+
function Fn(e, t) {
|
|
796
|
+
let n = Dn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? Cn(e) : V(1);
|
|
798
797
|
return {
|
|
799
798
|
width: e.clientWidth * a.x,
|
|
800
799
|
height: e.clientHeight * a.y,
|
|
@@ -802,13 +801,13 @@ function In(e, t) {
|
|
|
802
801
|
y: r * a.y
|
|
803
802
|
};
|
|
804
803
|
}
|
|
805
|
-
function
|
|
804
|
+
function In(e, t, n) {
|
|
806
805
|
let r;
|
|
807
|
-
if (t === "viewport") r =
|
|
808
|
-
else if (t === "document") r =
|
|
809
|
-
else if (J(t)) r =
|
|
806
|
+
if (t === "viewport") r = Pn(e, n);
|
|
807
|
+
else if (t === "document") r = Mn(q(e));
|
|
808
|
+
else if (J(t)) r = Fn(t, n);
|
|
810
809
|
else {
|
|
811
|
-
let n =
|
|
810
|
+
let n = Tn(e);
|
|
812
811
|
r = {
|
|
813
812
|
x: t.x - n.x,
|
|
814
813
|
y: t.y - n.y,
|
|
@@ -816,27 +815,27 @@ function Ln(e, t, n) {
|
|
|
816
815
|
height: t.height
|
|
817
816
|
};
|
|
818
817
|
}
|
|
819
|
-
return
|
|
818
|
+
return It(r);
|
|
820
819
|
}
|
|
821
|
-
function
|
|
820
|
+
function Ln(e, t) {
|
|
822
821
|
let n = Q(e);
|
|
823
|
-
return n === t || !J(n) ||
|
|
822
|
+
return n === t || !J(n) || gn(n) ? !1 : Z(n).position === "fixed" || Ln(n, t);
|
|
824
823
|
}
|
|
825
|
-
function
|
|
824
|
+
function Rn(e, t) {
|
|
826
825
|
let n = t.get(e);
|
|
827
826
|
if (n) return n;
|
|
828
|
-
let r =
|
|
829
|
-
for (; J(o) && !
|
|
830
|
-
let t = Z(o), n =
|
|
831
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
827
|
+
let r = yn(e, [], !1).filter((e) => J(e) && rn(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
|
|
828
|
+
for (; J(o) && !gn(o);) {
|
|
829
|
+
let t = Z(o), n = pn(o);
|
|
830
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || sn(o) && !n && Ln(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Q(o);
|
|
832
831
|
}
|
|
833
832
|
return t.set(e, r), r;
|
|
834
833
|
}
|
|
835
|
-
function
|
|
836
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
834
|
+
function zn(e) {
|
|
835
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ln(t) ? [] : Rn(t, this._c) : [].concat(n), r], o = In(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
837
836
|
for (let e = 1; e < a.length; e++) {
|
|
838
|
-
let n =
|
|
839
|
-
s =
|
|
837
|
+
let n = In(t, a[e], i);
|
|
838
|
+
s = B(n.top, s), c = z(n.right, c), l = z(n.bottom, l), u = B(n.left, u);
|
|
840
839
|
}
|
|
841
840
|
return {
|
|
842
841
|
width: c - u,
|
|
@@ -845,27 +844,27 @@ function Bn(e) {
|
|
|
845
844
|
y: s
|
|
846
845
|
};
|
|
847
846
|
}
|
|
848
|
-
function
|
|
849
|
-
let { width: t, height: n } =
|
|
847
|
+
function Bn(e) {
|
|
848
|
+
let { width: t, height: n } = xn(e);
|
|
850
849
|
return {
|
|
851
850
|
width: t,
|
|
852
851
|
height: n
|
|
853
852
|
};
|
|
854
853
|
}
|
|
855
|
-
function
|
|
856
|
-
let r = Y(t), i = q(t), a = n === "fixed", o =
|
|
854
|
+
function Vn(e, t, n) {
|
|
855
|
+
let r = Y(t), i = q(t), a = n === "fixed", o = Dn(e, !0, a, t), s = {
|
|
857
856
|
scrollLeft: 0,
|
|
858
857
|
scrollTop: 0
|
|
859
|
-
}, c =
|
|
858
|
+
}, c = V(0);
|
|
860
859
|
function l() {
|
|
861
|
-
c.x =
|
|
860
|
+
c.x = On(i);
|
|
862
861
|
}
|
|
863
|
-
if (r || !r && !a) if ((
|
|
864
|
-
let e =
|
|
862
|
+
if (r || !r && !a) if ((rn(t) !== "body" || sn(i)) && (s = _n(t)), r) {
|
|
863
|
+
let e = Dn(t, !0, a, t);
|
|
865
864
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
866
865
|
} else i && l();
|
|
867
866
|
a && !r && i && l();
|
|
868
|
-
let u = i && !r && !a ?
|
|
867
|
+
let u = i && !r && !a ? kn(i, s) : V(0);
|
|
869
868
|
return {
|
|
870
869
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
871
870
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -873,34 +872,34 @@ function Hn(e, t, n) {
|
|
|
873
872
|
height: o.height
|
|
874
873
|
};
|
|
875
874
|
}
|
|
876
|
-
function
|
|
875
|
+
function Hn(e) {
|
|
877
876
|
return Z(e).position === "static";
|
|
878
877
|
}
|
|
879
|
-
function
|
|
878
|
+
function Un(e, t) {
|
|
880
879
|
if (!Y(e) || Z(e).position === "fixed") return null;
|
|
881
880
|
if (t) return t(e);
|
|
882
881
|
let n = e.offsetParent;
|
|
883
882
|
return q(e) === n && (n = n.ownerDocument.body), n;
|
|
884
883
|
}
|
|
885
|
-
function
|
|
884
|
+
function Wn(e, t) {
|
|
886
885
|
let n = K(e);
|
|
887
|
-
if (
|
|
886
|
+
if (ln(e)) return n;
|
|
888
887
|
if (!Y(e)) {
|
|
889
888
|
let t = Q(e);
|
|
890
|
-
for (; t && !
|
|
891
|
-
if (J(t) && !
|
|
889
|
+
for (; t && !gn(t);) {
|
|
890
|
+
if (J(t) && !Hn(t)) return t;
|
|
892
891
|
t = Q(t);
|
|
893
892
|
}
|
|
894
893
|
return n;
|
|
895
894
|
}
|
|
896
|
-
let r =
|
|
897
|
-
for (; r &&
|
|
898
|
-
return r &&
|
|
895
|
+
let r = Un(e, t);
|
|
896
|
+
for (; r && cn(r) && Hn(r);) r = Un(r, t);
|
|
897
|
+
return r && gn(r) && Hn(r) && !pn(r) ? n : r || mn(e) || n;
|
|
899
898
|
}
|
|
900
|
-
var
|
|
901
|
-
let t = this.getOffsetParent ||
|
|
899
|
+
var Gn = async function(e) {
|
|
900
|
+
let t = this.getOffsetParent || Wn, n = this.getDimensions, r = await n(e.floating);
|
|
902
901
|
return {
|
|
903
|
-
reference:
|
|
902
|
+
reference: Vn(e.reference, await t(e.floating), e.strategy),
|
|
904
903
|
floating: {
|
|
905
904
|
x: 0,
|
|
906
905
|
y: 0,
|
|
@@ -909,40 +908,40 @@ var Kn = async function(e) {
|
|
|
909
908
|
}
|
|
910
909
|
};
|
|
911
910
|
};
|
|
912
|
-
function
|
|
911
|
+
function Kn(e) {
|
|
913
912
|
return Z(e).direction === "rtl";
|
|
914
913
|
}
|
|
915
|
-
var
|
|
916
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
914
|
+
var qn = {
|
|
915
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: An,
|
|
917
916
|
getDocumentElement: q,
|
|
918
|
-
getClippingRect:
|
|
919
|
-
getOffsetParent:
|
|
920
|
-
getElementRects:
|
|
921
|
-
getClientRects:
|
|
922
|
-
getDimensions:
|
|
923
|
-
getScale:
|
|
917
|
+
getClippingRect: zn,
|
|
918
|
+
getOffsetParent: Wn,
|
|
919
|
+
getElementRects: Gn,
|
|
920
|
+
getClientRects: jn,
|
|
921
|
+
getDimensions: Bn,
|
|
922
|
+
getScale: Cn,
|
|
924
923
|
isElement: J,
|
|
925
|
-
isRTL:
|
|
926
|
-
}, Yn =
|
|
924
|
+
isRTL: Kn
|
|
925
|
+
}, Jn = $t, Yn = Ut, Xn = en, Zn = Wt, Qn = tn, $n = qt, er = Vt, tr = Xt, nr = (e, t, n) => {
|
|
927
926
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
928
|
-
platform:
|
|
927
|
+
platform: qn,
|
|
929
928
|
...n
|
|
930
929
|
}, a = {
|
|
931
930
|
...i.platform,
|
|
932
931
|
_c: r
|
|
933
932
|
};
|
|
934
|
-
return
|
|
933
|
+
return Bt(e, t, {
|
|
935
934
|
...i,
|
|
936
935
|
platform: a
|
|
937
936
|
});
|
|
938
937
|
};
|
|
939
938
|
//#endregion
|
|
940
939
|
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=hlk524tqy4svh2bbayevihx324_@floating-ui+dom@1.7.6_@tiptap+cor_kpexihlfm3sl2tcft5dydpfypm/node_modules/@tiptap/vue-3/dist/menus/index.js
|
|
941
|
-
function
|
|
940
|
+
function rr(e, t) {
|
|
942
941
|
let n = Math.min(e.top, t.top), r = Math.max(e.bottom, t.bottom), i = Math.min(e.left, t.left), a = Math.max(e.right, t.right) - i, o = r - n;
|
|
943
942
|
return new DOMRect(i, n, a, o);
|
|
944
943
|
}
|
|
945
|
-
var
|
|
944
|
+
var ir = class {
|
|
946
945
|
constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, shouldShow: a, appendTo: o, getReferencedVirtualElement: s, options: c }) {
|
|
947
946
|
this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.floatingUIOptions = {
|
|
948
947
|
strategy: "absolute",
|
|
@@ -960,7 +959,7 @@ var ar = class {
|
|
|
960
959
|
onUpdate: void 0,
|
|
961
960
|
onDestroy: void 0
|
|
962
961
|
}, this.shouldShow = ({ view: e, state: t, from: n, to: r }) => {
|
|
963
|
-
let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length &&
|
|
962
|
+
let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length && je(t.selection), c = this.element.contains(document.activeElement);
|
|
964
963
|
return !(!(e.hasFocus() || c) || o || s || !this.editor.isEditable);
|
|
965
964
|
}, this.mousedownHandler = () => {
|
|
966
965
|
this.preventHide = !0;
|
|
@@ -1006,27 +1005,27 @@ var ar = class {
|
|
|
1006
1005
|
}
|
|
1007
1006
|
get middlewares() {
|
|
1008
1007
|
let e = [];
|
|
1009
|
-
return this.floatingUIOptions.flip && e.push(
|
|
1008
|
+
return this.floatingUIOptions.flip && e.push(Zn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Xn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Jn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(er(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Qn(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Yn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push($n(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(tr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
|
|
1010
1009
|
}
|
|
1011
1010
|
get virtualElement() {
|
|
1012
1011
|
let { selection: e } = this.editor.state, t = this.getReferencedVirtualElement?.call(this);
|
|
1013
1012
|
if (t) return t;
|
|
1014
1013
|
if (!this.view?.dom?.parentNode) return;
|
|
1015
|
-
let n =
|
|
1014
|
+
let n = Pe(this.view, e.from, e.to), r = {
|
|
1016
1015
|
getBoundingClientRect: () => n,
|
|
1017
1016
|
getClientRects: () => [n]
|
|
1018
1017
|
};
|
|
1019
|
-
if (e instanceof
|
|
1018
|
+
if (e instanceof Fe) {
|
|
1020
1019
|
let t = this.view.nodeDOM(e.from), n = t.dataset.nodeViewWrapper ? t : t.querySelector("[data-node-view-wrapper]");
|
|
1021
1020
|
n && (t = n), t && (r = {
|
|
1022
1021
|
getBoundingClientRect: () => t.getBoundingClientRect(),
|
|
1023
1022
|
getClientRects: () => [t.getBoundingClientRect()]
|
|
1024
1023
|
});
|
|
1025
1024
|
}
|
|
1026
|
-
if (e instanceof
|
|
1025
|
+
if (e instanceof Le) {
|
|
1027
1026
|
let { $anchorCell: t, $headCell: n } = e, i = t ? t.pos : n.pos, a = n ? n.pos : t.pos, o = this.view.nodeDOM(i), s = this.view.nodeDOM(a);
|
|
1028
1027
|
if (!o || !s) return;
|
|
1029
|
-
let c = o === s ? o.getBoundingClientRect() :
|
|
1028
|
+
let c = o === s ? o.getBoundingClientRect() : rr(o.getBoundingClientRect(), s.getBoundingClientRect());
|
|
1030
1029
|
r = {
|
|
1031
1030
|
getBoundingClientRect: () => c,
|
|
1032
1031
|
getClientRects: () => [c]
|
|
@@ -1036,7 +1035,7 @@ var ar = class {
|
|
|
1036
1035
|
}
|
|
1037
1036
|
updatePosition() {
|
|
1038
1037
|
let e = this.virtualElement;
|
|
1039
|
-
e &&
|
|
1038
|
+
e && nr(e, this.element, {
|
|
1040
1039
|
placement: this.floatingUIOptions.placement,
|
|
1041
1040
|
strategy: this.floatingUIOptions.strategy,
|
|
1042
1041
|
middleware: this.middlewares
|
|
@@ -1088,13 +1087,13 @@ var ar = class {
|
|
|
1088
1087
|
destroy() {
|
|
1089
1088
|
this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
|
|
1090
1089
|
}
|
|
1091
|
-
},
|
|
1092
|
-
key: typeof e.pluginKey == "string" ? new
|
|
1093
|
-
view: (t) => new
|
|
1090
|
+
}, ar = (e) => new Ie({
|
|
1091
|
+
key: typeof e.pluginKey == "string" ? new R(e.pluginKey) : e.pluginKey,
|
|
1092
|
+
view: (t) => new ir({
|
|
1094
1093
|
view: t,
|
|
1095
1094
|
...e
|
|
1096
1095
|
})
|
|
1097
|
-
}),
|
|
1096
|
+
}), or = ie({
|
|
1098
1097
|
name: "BubbleMenu",
|
|
1099
1098
|
inheritAttrs: !1,
|
|
1100
1099
|
props: {
|
|
@@ -1132,11 +1131,11 @@ var ar = class {
|
|
|
1132
1131
|
}
|
|
1133
1132
|
},
|
|
1134
1133
|
setup(e, { slots: t, attrs: n }) {
|
|
1135
|
-
let r =
|
|
1136
|
-
return
|
|
1134
|
+
let r = fe(null);
|
|
1135
|
+
return de(() => {
|
|
1137
1136
|
let { editor: t, options: n, pluginKey: i, resizeDelay: a, appendTo: o, shouldShow: s, getReferencedVirtualElement: c, updateDelay: l } = e, u = r.value;
|
|
1138
|
-
u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(),
|
|
1139
|
-
t.registerPlugin(
|
|
1137
|
+
u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(), ce(() => {
|
|
1138
|
+
t.registerPlugin(ar({
|
|
1140
1139
|
editor: t,
|
|
1141
1140
|
element: u,
|
|
1142
1141
|
options: n,
|
|
@@ -1148,15 +1147,15 @@ var ar = class {
|
|
|
1148
1147
|
updateDelay: l
|
|
1149
1148
|
}));
|
|
1150
1149
|
}));
|
|
1151
|
-
}),
|
|
1150
|
+
}), ue(() => {
|
|
1152
1151
|
let { pluginKey: t, editor: n } = e;
|
|
1153
1152
|
n.unregisterPlugin(t);
|
|
1154
|
-
}), () =>
|
|
1153
|
+
}), () => ae("div", {
|
|
1155
1154
|
ref: r,
|
|
1156
1155
|
...n
|
|
1157
1156
|
}, t.default?.call(t));
|
|
1158
1157
|
}
|
|
1159
|
-
}),
|
|
1158
|
+
}), sr = class {
|
|
1160
1159
|
constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, options: a, appendTo: o, shouldShow: s }) {
|
|
1161
1160
|
this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: e, state: t }) => {
|
|
1162
1161
|
let { selection: n } = t, { $anchor: r, empty: i } = n, a = r.depth === 1, o = r.parent.isTextblock && !r.parent.type.spec.code && !r.parent.textContent && r.parent.childCount === 0 && !this.getTextContent(r.parent);
|
|
@@ -1204,11 +1203,11 @@ var ar = class {
|
|
|
1204
1203
|
}, this.element.tabIndex = 0, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.editor.on("transaction", this.transactionHandler), window.addEventListener("resize", this.resizeHandler), this.scrollTarget.addEventListener("scroll", this.resizeHandler), this.update(n, n.state), this.getShouldShow() && (this.show(), this.updatePosition());
|
|
1205
1204
|
}
|
|
1206
1205
|
getTextContent(e) {
|
|
1207
|
-
return
|
|
1206
|
+
return ke(e, { textSerializers: Ae(this.editor.schema) });
|
|
1208
1207
|
}
|
|
1209
1208
|
get middlewares() {
|
|
1210
1209
|
let e = [];
|
|
1211
|
-
return this.floatingUIOptions.flip && e.push(
|
|
1210
|
+
return this.floatingUIOptions.flip && e.push(Zn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Xn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Jn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(er(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(Qn(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Yn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push($n(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(tr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
|
|
1212
1211
|
}
|
|
1213
1212
|
getShouldShow(e) {
|
|
1214
1213
|
let { state: t } = this.view, { selection: n } = t, { ranges: r } = n, i = Math.min(...r.map((e) => e.$from.pos)), a = Math.max(...r.map((e) => e.$to.pos));
|
|
@@ -1231,8 +1230,8 @@ var ar = class {
|
|
|
1231
1230
|
}
|
|
1232
1231
|
}
|
|
1233
1232
|
updatePosition() {
|
|
1234
|
-
let { selection: e } = this.editor.state, t =
|
|
1235
|
-
|
|
1233
|
+
let { selection: e } = this.editor.state, t = Pe(this.view, e.from, e.to);
|
|
1234
|
+
nr({
|
|
1236
1235
|
getBoundingClientRect: () => t,
|
|
1237
1236
|
getClientRects: () => [t]
|
|
1238
1237
|
}, this.element, {
|
|
@@ -1261,14 +1260,14 @@ var ar = class {
|
|
|
1261
1260
|
destroy() {
|
|
1262
1261
|
this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
|
|
1263
1262
|
}
|
|
1264
|
-
},
|
|
1265
|
-
key: typeof e.pluginKey == "string" ? new
|
|
1266
|
-
view: (t) => new
|
|
1263
|
+
}, cr = (e) => new Ie({
|
|
1264
|
+
key: typeof e.pluginKey == "string" ? new R(e.pluginKey) : e.pluginKey,
|
|
1265
|
+
view: (t) => new sr({
|
|
1267
1266
|
view: t,
|
|
1268
1267
|
...e
|
|
1269
1268
|
})
|
|
1270
1269
|
});
|
|
1271
|
-
|
|
1270
|
+
ie({
|
|
1272
1271
|
name: "FloatingMenu",
|
|
1273
1272
|
inheritAttrs: !1,
|
|
1274
1273
|
props: {
|
|
@@ -1302,10 +1301,10 @@ se({
|
|
|
1302
1301
|
}
|
|
1303
1302
|
},
|
|
1304
1303
|
setup(e, { slots: t, attrs: n }) {
|
|
1305
|
-
let r =
|
|
1306
|
-
return
|
|
1304
|
+
let r = fe(null);
|
|
1305
|
+
return de(() => {
|
|
1307
1306
|
let { pluginKey: t, editor: n, updateDelay: i, resizeDelay: a, options: o, appendTo: s, shouldShow: c } = e, l = r.value;
|
|
1308
|
-
l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(
|
|
1307
|
+
l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(cr({
|
|
1309
1308
|
pluginKey: t,
|
|
1310
1309
|
editor: n,
|
|
1311
1310
|
element: l,
|
|
@@ -1315,10 +1314,10 @@ se({
|
|
|
1315
1314
|
appendTo: s,
|
|
1316
1315
|
shouldShow: c
|
|
1317
1316
|
})));
|
|
1318
|
-
}),
|
|
1317
|
+
}), ue(() => {
|
|
1319
1318
|
let { pluginKey: t, editor: n } = e;
|
|
1320
1319
|
n.unregisterPlugin(t);
|
|
1321
|
-
}), () =>
|
|
1320
|
+
}), () => ae("div", {
|
|
1322
1321
|
ref: r,
|
|
1323
1322
|
...n
|
|
1324
1323
|
}, t.default?.call(t));
|
|
@@ -1330,50 +1329,50 @@ var $ = (e) => ({
|
|
|
1330
1329
|
default: null,
|
|
1331
1330
|
parseHTML: (t) => t.getAttribute(e),
|
|
1332
1331
|
renderHTML: (t) => t[e] ? { [e]: t[e] } : {}
|
|
1333
|
-
}),
|
|
1332
|
+
}), lr = () => {
|
|
1334
1333
|
let e = $("style");
|
|
1335
|
-
return e.renderHTML = (e) => e.style ? { style:
|
|
1334
|
+
return e.renderHTML = (e) => e.style ? { style: ur(e.style) } : {}, e;
|
|
1336
1335
|
};
|
|
1337
|
-
function
|
|
1336
|
+
function ur(e) {
|
|
1338
1337
|
return e.replace(/(?<![a-z-])width\s*:\s*([^;]+);?/gi, (e, t) => /^\s*0\s*[a-z%]*\s*(!important)?\s*$/i.test(t) ? "width: 100%;" : e);
|
|
1339
1338
|
}
|
|
1340
|
-
var
|
|
1339
|
+
var dr = rt.extend({
|
|
1341
1340
|
addAttributes() {
|
|
1342
1341
|
return {
|
|
1343
1342
|
...this.parent?.(),
|
|
1344
1343
|
border: $("border"),
|
|
1345
1344
|
cellpadding: $("cellpadding"),
|
|
1346
1345
|
cellspacing: $("cellspacing"),
|
|
1347
|
-
style:
|
|
1346
|
+
style: lr()
|
|
1348
1347
|
};
|
|
1349
1348
|
},
|
|
1350
1349
|
renderHTML({ HTMLAttributes: e }) {
|
|
1351
1350
|
return [
|
|
1352
1351
|
"table",
|
|
1353
|
-
|
|
1352
|
+
L(this.options.HTMLAttributes, e),
|
|
1354
1353
|
["tbody", 0]
|
|
1355
1354
|
];
|
|
1356
1355
|
}
|
|
1357
|
-
}),
|
|
1356
|
+
}), fr = ot.extend({ addAttributes() {
|
|
1358
1357
|
return {
|
|
1359
1358
|
...this.parent?.(),
|
|
1360
1359
|
style: $("style")
|
|
1361
1360
|
};
|
|
1362
|
-
} }),
|
|
1361
|
+
} }), pr = {
|
|
1363
1362
|
style: $("style"),
|
|
1364
1363
|
valign: $("valign"),
|
|
1365
1364
|
width: $("width")
|
|
1366
|
-
},
|
|
1365
|
+
}, mr = it.extend({ addAttributes() {
|
|
1367
1366
|
return {
|
|
1368
1367
|
...this.parent?.(),
|
|
1369
|
-
...
|
|
1368
|
+
...pr
|
|
1370
1369
|
};
|
|
1371
|
-
} }),
|
|
1370
|
+
} }), hr = at.extend({ addAttributes() {
|
|
1372
1371
|
return {
|
|
1373
1372
|
...this.parent?.(),
|
|
1374
|
-
...
|
|
1373
|
+
...pr
|
|
1375
1374
|
};
|
|
1376
|
-
} }),
|
|
1375
|
+
} }), gr = st.extend({ parseHTML() {
|
|
1377
1376
|
return [
|
|
1378
1377
|
...this.parent?.() || [],
|
|
1379
1378
|
{
|
|
@@ -1387,29 +1386,29 @@ var fr = ot.extend({
|
|
|
1387
1386
|
getAttrs: (e) => e.hasAttribute("style") ? {} : !1
|
|
1388
1387
|
}
|
|
1389
1388
|
];
|
|
1390
|
-
} }),
|
|
1389
|
+
} }), _r = {
|
|
1391
1390
|
compatConfig: { MODE: 3 },
|
|
1392
1391
|
name: "EmojiComponent",
|
|
1393
1392
|
components: {
|
|
1394
1393
|
NodeViewWrapper: S,
|
|
1395
|
-
DtEmoji:
|
|
1394
|
+
DtEmoji: v
|
|
1396
1395
|
},
|
|
1397
1396
|
props: T
|
|
1398
1397
|
};
|
|
1399
|
-
function
|
|
1400
|
-
let o =
|
|
1401
|
-
return
|
|
1402
|
-
default:
|
|
1398
|
+
function vr(e, t, n, r, i, a) {
|
|
1399
|
+
let o = P("dt-emoji"), s = P("node-view-wrapper");
|
|
1400
|
+
return N(), O(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
1401
|
+
default: I(() => [M(o, {
|
|
1403
1402
|
size: "500",
|
|
1404
1403
|
code: e.node.attrs.code
|
|
1405
1404
|
}, null, 8, ["code"])]),
|
|
1406
1405
|
_: 1
|
|
1407
1406
|
});
|
|
1408
1407
|
}
|
|
1409
|
-
var
|
|
1408
|
+
var yr = /* @__PURE__ */ i(_r, [["render", vr]]), br = {
|
|
1410
1409
|
compatConfig: { MODE: 3 },
|
|
1411
1410
|
name: "SuggestionList",
|
|
1412
|
-
components: { DtListItem:
|
|
1411
|
+
components: { DtListItem: h },
|
|
1413
1412
|
props: {
|
|
1414
1413
|
items: {
|
|
1415
1414
|
type: Array,
|
|
@@ -1483,29 +1482,29 @@ var br = /* @__PURE__ */ i(vr, [["render", yr]]), xr = {
|
|
|
1483
1482
|
}
|
|
1484
1483
|
}
|
|
1485
1484
|
}
|
|
1486
|
-
},
|
|
1485
|
+
}, xr = { class: "d-popover__dialog d-suggestion-list__container" }, Sr = {
|
|
1487
1486
|
ref: "suggestionList",
|
|
1488
1487
|
class: "d-suggestion-list"
|
|
1489
1488
|
};
|
|
1490
|
-
function
|
|
1491
|
-
let o =
|
|
1492
|
-
return
|
|
1489
|
+
function Cr(e, t, n, r, i, a) {
|
|
1490
|
+
let o = P("dt-list-item");
|
|
1491
|
+
return N(), A("div", xr, [ge(j("ul", Sr, [(N(!0), A(D, null, pe(n.items, (e, t) => (N(), O(o, {
|
|
1493
1492
|
key: e.id,
|
|
1494
|
-
class:
|
|
1493
|
+
class: le(["d-suggestion-list__item", { "d-list-item--highlighted": t === i.selectedIndex }]),
|
|
1495
1494
|
"navigation-type": "arrow-keys",
|
|
1496
1495
|
onClick: (e) => a.selectItem(t),
|
|
1497
|
-
onKeydown:
|
|
1496
|
+
onKeydown: ve(a.onKeyDown, ["prevent"])
|
|
1498
1497
|
}, {
|
|
1499
|
-
default:
|
|
1498
|
+
default: I(() => [(N(), O(me(n.itemComponent), { item: e }, null, 8, ["item"]))]),
|
|
1500
1499
|
_: 2
|
|
1501
1500
|
}, 1032, [
|
|
1502
1501
|
"class",
|
|
1503
1502
|
"onClick",
|
|
1504
1503
|
"onKeydown"
|
|
1505
|
-
]))), 128))], 512), [[
|
|
1504
|
+
]))), 128))], 512), [[he, n.items.length]])]);
|
|
1506
1505
|
}
|
|
1507
|
-
var
|
|
1508
|
-
function
|
|
1506
|
+
var wr = /* @__PURE__ */ i(br, [["render", Cr]]), Tr = "top-start";
|
|
1507
|
+
function Er() {
|
|
1509
1508
|
return { getBoundingClientRect: () => ({
|
|
1510
1509
|
width: 0,
|
|
1511
1510
|
height: 0,
|
|
@@ -1517,16 +1516,16 @@ function Dr() {
|
|
|
1517
1516
|
bottom: 0
|
|
1518
1517
|
}) };
|
|
1519
1518
|
}
|
|
1520
|
-
function
|
|
1519
|
+
function Dr(e) {
|
|
1521
1520
|
return { getBoundingClientRect: e };
|
|
1522
1521
|
}
|
|
1523
|
-
async function
|
|
1522
|
+
async function Or(e, t, n = {}) {
|
|
1524
1523
|
if (!e || !t?.getBoundingClientRect) return;
|
|
1525
|
-
let { placement: r =
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
] } = n, { x: a, y: o } = await
|
|
1524
|
+
let { placement: r = Tr, middleware: i = [
|
|
1525
|
+
Jn(0),
|
|
1526
|
+
Zn(),
|
|
1527
|
+
Xn({ padding: 8 })
|
|
1528
|
+
] } = n, { x: a, y: o } = await nr(t, e, {
|
|
1530
1529
|
placement: r,
|
|
1531
1530
|
middleware: i
|
|
1532
1531
|
});
|
|
@@ -1535,65 +1534,65 @@ async function kr(e, t, n = {}) {
|
|
|
1535
1534
|
top: `${o}px`
|
|
1536
1535
|
});
|
|
1537
1536
|
}
|
|
1538
|
-
function
|
|
1537
|
+
function kr(e, t = {}) {
|
|
1539
1538
|
let { zIndex: n = "650" } = t;
|
|
1540
1539
|
e.style.position = "absolute", e.style.zIndex = n, e.style.display = "none";
|
|
1541
1540
|
}
|
|
1542
|
-
function
|
|
1541
|
+
function Ar(e) {
|
|
1543
1542
|
e && (e.style.display = "block");
|
|
1544
1543
|
}
|
|
1545
|
-
function
|
|
1544
|
+
function jr(e) {
|
|
1546
1545
|
e && (e.style.display = "none");
|
|
1547
1546
|
}
|
|
1548
|
-
function
|
|
1547
|
+
function Mr(e, t) {
|
|
1549
1548
|
return (n) => {
|
|
1550
1549
|
n.key === "Escape" && t() && e();
|
|
1551
1550
|
};
|
|
1552
1551
|
}
|
|
1553
|
-
function
|
|
1552
|
+
function Nr(e) {
|
|
1554
1553
|
document.addEventListener("keydown", e);
|
|
1555
1554
|
}
|
|
1556
|
-
function
|
|
1555
|
+
function Pr(e) {
|
|
1557
1556
|
document.removeEventListener("keydown", e);
|
|
1558
1557
|
}
|
|
1559
|
-
function
|
|
1558
|
+
function Fr(e, t, n, r) {
|
|
1560
1559
|
return new w(e, {
|
|
1561
1560
|
props: {
|
|
1562
|
-
itemComponent:
|
|
1561
|
+
itemComponent: oe(t),
|
|
1563
1562
|
itemType: n,
|
|
1564
1563
|
...r
|
|
1565
1564
|
},
|
|
1566
1565
|
editor: r.editor
|
|
1567
1566
|
});
|
|
1568
1567
|
}
|
|
1569
|
-
function
|
|
1570
|
-
e.escHandler &&
|
|
1568
|
+
function Ir(e) {
|
|
1569
|
+
e.escHandler && Pr(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
|
|
1571
1570
|
}
|
|
1572
|
-
function
|
|
1573
|
-
let { listComponent: r =
|
|
1571
|
+
function Lr(e, t, n = {}) {
|
|
1572
|
+
let { listComponent: r = wr, placement: i = Tr, zIndex: a = "650" } = n;
|
|
1574
1573
|
return () => {
|
|
1575
|
-
let n = null, o = null, s = !1, c =
|
|
1574
|
+
let n = null, o = null, s = !1, c = Er(), l = null;
|
|
1576
1575
|
function u() {
|
|
1577
|
-
|
|
1576
|
+
Or(o, c, { placement: i });
|
|
1578
1577
|
}
|
|
1579
1578
|
function d() {
|
|
1580
|
-
o && (
|
|
1579
|
+
o && (Ar(o), s = !0, u());
|
|
1581
1580
|
}
|
|
1582
1581
|
function f() {
|
|
1583
|
-
o && (
|
|
1582
|
+
o && (jr(o), s = !1);
|
|
1584
1583
|
}
|
|
1585
1584
|
return {
|
|
1586
1585
|
onStart: (i) => {
|
|
1587
|
-
n =
|
|
1586
|
+
n = Fr(r, e, t, i), i.clientRect && (o = n.element, kr(o, { zIndex: a }), document.body.appendChild(o), c = Dr(i.clientRect), l = Mr(f, () => s), Nr(l), i.items.length > 0 && d());
|
|
1588
1587
|
},
|
|
1589
1588
|
onUpdate(e) {
|
|
1590
|
-
n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c =
|
|
1589
|
+
n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Dr(e.clientRect), u());
|
|
1591
1590
|
},
|
|
1592
1591
|
onKeyDown(e) {
|
|
1593
1592
|
if (s) return n?.ref?.onKeyDown(e);
|
|
1594
1593
|
},
|
|
1595
1594
|
onExit() {
|
|
1596
|
-
|
|
1595
|
+
Ir({
|
|
1597
1596
|
escHandler: l,
|
|
1598
1597
|
floatingEl: o,
|
|
1599
1598
|
component: n
|
|
@@ -1604,35 +1603,35 @@ function Rr(e, t, n = {}) {
|
|
|
1604
1603
|
}
|
|
1605
1604
|
//#endregion
|
|
1606
1605
|
//#region components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue
|
|
1607
|
-
var
|
|
1606
|
+
var Rr = {
|
|
1608
1607
|
compatConfig: { MODE: 3 },
|
|
1609
1608
|
name: "EmojiSuggestion",
|
|
1610
1609
|
components: {
|
|
1611
|
-
DtEmoji:
|
|
1612
|
-
DtStack:
|
|
1610
|
+
DtEmoji: v,
|
|
1611
|
+
DtStack: g
|
|
1613
1612
|
},
|
|
1614
1613
|
props: { item: {
|
|
1615
1614
|
type: Object,
|
|
1616
1615
|
required: !0
|
|
1617
1616
|
} }
|
|
1618
1617
|
};
|
|
1619
|
-
function
|
|
1620
|
-
let o =
|
|
1621
|
-
return
|
|
1618
|
+
function zr(e, t, n, r, i, a) {
|
|
1619
|
+
let o = P("dt-emoji"), s = P("dt-stack");
|
|
1620
|
+
return N(), O(s, {
|
|
1622
1621
|
direction: "row",
|
|
1623
|
-
gap: "
|
|
1622
|
+
gap: "400"
|
|
1624
1623
|
}, {
|
|
1625
|
-
default:
|
|
1624
|
+
default: I(() => [M(o, {
|
|
1626
1625
|
size: "200",
|
|
1627
1626
|
code: n.item.code
|
|
1628
|
-
}, null, 8, ["code"]),
|
|
1627
|
+
}, null, 8, ["code"]), re(" " + F(n.item.code), 1)]),
|
|
1629
1628
|
_: 1
|
|
1630
1629
|
});
|
|
1631
1630
|
}
|
|
1632
|
-
var
|
|
1631
|
+
var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
1633
1632
|
let r = e.shortname?.replaceAll(":", ""), i = t.shortname?.replaceAll(":", ""), a = r.startsWith(n), o = i.startsWith(n);
|
|
1634
1633
|
return a && !o ? -1 : !a && o ? 1 : r.localeCompare(i);
|
|
1635
|
-
},
|
|
1634
|
+
}, Ur = {
|
|
1636
1635
|
items: ({ query: e }) => {
|
|
1637
1636
|
if (e.length < 2) return [];
|
|
1638
1637
|
let t = Object.values(c());
|
|
@@ -1640,7 +1639,7 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1640
1639
|
t.name,
|
|
1641
1640
|
t.shortname?.replaceAll(":", ""),
|
|
1642
1641
|
...t.keywords || []
|
|
1643
|
-
].some((t) => t && t.startsWith(e))).splice(0,
|
|
1642
|
+
].some((t) => t && t.startsWith(e))).splice(0, Vr).sort((t, n) => Hr(t, n, e)).map((e) => ({ code: e.shortname }));
|
|
1644
1643
|
},
|
|
1645
1644
|
command: ({ editor: e, range: t, props: n }) => {
|
|
1646
1645
|
e.view.state.selection.$to.nodeAfter?.text?.startsWith(" ") && (t.to += 1), e.chain().focus().insertContentAt(t, [{
|
|
@@ -1648,14 +1647,14 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1648
1647
|
attrs: n
|
|
1649
1648
|
}]).run(), window.getSelection()?.collapseToEnd();
|
|
1650
1649
|
},
|
|
1651
|
-
render:
|
|
1652
|
-
},
|
|
1650
|
+
render: Lr(Br, "emoji")
|
|
1651
|
+
}, Wr = /(:\w+:)$/, Gr = RegExp(ye + "$"), Kr = (e) => {
|
|
1653
1652
|
if (e && a(e[0])) return { text: e[2] || e[0] };
|
|
1654
|
-
},
|
|
1653
|
+
}, qr = (e) => [...e.matchAll(s)].filter((e) => a(e[0])).map((e) => ({
|
|
1655
1654
|
index: e.index,
|
|
1656
1655
|
text: e[0],
|
|
1657
1656
|
match: e
|
|
1658
|
-
})),
|
|
1657
|
+
})), Jr = we.create({
|
|
1659
1658
|
name: "emoji",
|
|
1660
1659
|
addOptions() {
|
|
1661
1660
|
return { HTMLAttributes: {} };
|
|
@@ -1665,7 +1664,7 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1665
1664
|
selectable: !1,
|
|
1666
1665
|
atom: !0,
|
|
1667
1666
|
addNodeView() {
|
|
1668
|
-
return C(
|
|
1667
|
+
return C(yr);
|
|
1669
1668
|
},
|
|
1670
1669
|
addAttributes() {
|
|
1671
1670
|
return { code: { default: null } };
|
|
@@ -1677,13 +1676,13 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1677
1676
|
return l(a(e.attrs.code).unicode_output);
|
|
1678
1677
|
},
|
|
1679
1678
|
renderHTML({ HTMLAttributes: e }) {
|
|
1680
|
-
return ["emoji-component",
|
|
1679
|
+
return ["emoji-component", L(this.options.HTMLAttributes, e)];
|
|
1681
1680
|
},
|
|
1682
1681
|
addInputRules() {
|
|
1683
|
-
return [new
|
|
1682
|
+
return [new Se({
|
|
1684
1683
|
find: (e) => {
|
|
1685
|
-
let t = e.match(
|
|
1686
|
-
if (t) return
|
|
1684
|
+
let t = e.match(Wr) || e.match(Gr);
|
|
1685
|
+
if (t) return Kr(t);
|
|
1687
1686
|
},
|
|
1688
1687
|
handler: ({ state: e, range: t, match: n }) => {
|
|
1689
1688
|
let { tr: r } = e, i = t.from, a = t.to;
|
|
@@ -1692,13 +1691,13 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1692
1691
|
})];
|
|
1693
1692
|
},
|
|
1694
1693
|
addPasteRules() {
|
|
1695
|
-
return [
|
|
1696
|
-
find:
|
|
1694
|
+
return [Ne({
|
|
1695
|
+
find: qr,
|
|
1697
1696
|
type: this.type,
|
|
1698
1697
|
getAttributes(e) {
|
|
1699
1698
|
return { code: e[0] };
|
|
1700
1699
|
}
|
|
1701
|
-
}),
|
|
1700
|
+
}), Ne({
|
|
1702
1701
|
find: o,
|
|
1703
1702
|
type: this.type,
|
|
1704
1703
|
getAttributes(e) {
|
|
@@ -1707,12 +1706,12 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1707
1706
|
})];
|
|
1708
1707
|
},
|
|
1709
1708
|
addProseMirrorPlugins() {
|
|
1710
|
-
return [
|
|
1709
|
+
return [lt({
|
|
1711
1710
|
char: ":",
|
|
1712
|
-
pluginKey: new
|
|
1711
|
+
pluginKey: new R("emoji"),
|
|
1713
1712
|
editor: this.editor,
|
|
1714
1713
|
...this.options.suggestion,
|
|
1715
|
-
...
|
|
1714
|
+
...Ur
|
|
1716
1715
|
})];
|
|
1717
1716
|
},
|
|
1718
1717
|
addKeyboardShortcuts() {
|
|
@@ -1726,21 +1725,21 @@ var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
|
1726
1725
|
});
|
|
1727
1726
|
//#endregion
|
|
1728
1727
|
//#region components/rich_text_editor/extensions/custom_link/utils.js
|
|
1729
|
-
function
|
|
1728
|
+
function Yr(e, t, n = () => !0) {
|
|
1730
1729
|
let r = [];
|
|
1731
1730
|
t.lastIndex = 0;
|
|
1732
1731
|
let i;
|
|
1733
1732
|
for (; i = t.exec(e);) n(e, i) && r.push(i);
|
|
1734
1733
|
return r;
|
|
1735
1734
|
}
|
|
1736
|
-
function
|
|
1735
|
+
function Xr(e, t) {
|
|
1737
1736
|
return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
|
|
1738
1737
|
}
|
|
1739
|
-
function
|
|
1738
|
+
function Zr(e) {
|
|
1740
1739
|
let t = RegExp("(?:" + ["[!?.,:;'\"]", "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
1741
1740
|
return e.replace(t, "");
|
|
1742
1741
|
}
|
|
1743
|
-
function
|
|
1742
|
+
function Qr(e, t) {
|
|
1744
1743
|
let n = e.slice(0, t + 1).search(/\S+\s*$/), r = e.slice(t).search(/\s/);
|
|
1745
1744
|
if (r < 0) {
|
|
1746
1745
|
let t = e.slice(n);
|
|
@@ -1756,40 +1755,40 @@ function $r(e, t) {
|
|
|
1756
1755
|
to: r + t
|
|
1757
1756
|
};
|
|
1758
1757
|
}
|
|
1759
|
-
function
|
|
1760
|
-
let i =
|
|
1758
|
+
function $r(e, t, n, r) {
|
|
1759
|
+
let i = Qr(e, t);
|
|
1761
1760
|
if (r.lastIndex = 0, !r.test(i.text)) return i;
|
|
1762
1761
|
let a = n === "left" ? i.from - 1 : i.to + 1;
|
|
1763
|
-
return a <= 0 || a >= e.length || a === t ? i :
|
|
1762
|
+
return a <= 0 || a >= e.length || a === t ? i : $r(e, a, n, r);
|
|
1764
1763
|
}
|
|
1765
|
-
function
|
|
1766
|
-
let i =
|
|
1764
|
+
function ei(e, t, n, r) {
|
|
1765
|
+
let i = Oe(Math.max(e.from - 1, 0), Math.min(e.to + 1, t.content.size), t);
|
|
1767
1766
|
for (let e of i) e.mark.type === r && n.removeMark(e.from, e.to, r);
|
|
1768
1767
|
}
|
|
1769
|
-
var
|
|
1770
|
-
function
|
|
1768
|
+
var ti = e(1, 15);
|
|
1769
|
+
function ni(e, n, r, i, a, o) {
|
|
1771
1770
|
if (!e) return;
|
|
1772
1771
|
let s = r - n - 1;
|
|
1773
1772
|
s = s < 0 ? 0 : s;
|
|
1774
|
-
let c = i - n, l =
|
|
1775
|
-
|
|
1776
|
-
let t =
|
|
1773
|
+
let c = i - n, l = $r(e, s, "left", ti), u = $r(e, c, "right", ti);
|
|
1774
|
+
Yr(e.slice(l.from, u.to), t, Xr).forEach((e) => {
|
|
1775
|
+
let t = Zr(e[0]), r = n + l.from + e.index + 1, i = r + t.length;
|
|
1777
1776
|
a.addMark(r, i, o.create());
|
|
1778
1777
|
});
|
|
1779
1778
|
}
|
|
1780
1779
|
//#endregion
|
|
1781
1780
|
//#region components/rich_text_editor/extensions/custom_link/autolink.js
|
|
1782
|
-
function
|
|
1781
|
+
function ri(e) {
|
|
1783
1782
|
let t = !1;
|
|
1784
|
-
return new
|
|
1785
|
-
key: new
|
|
1783
|
+
return new Ie({
|
|
1784
|
+
key: new R("autolink"),
|
|
1786
1785
|
appendTransaction: (n, r, i) => {
|
|
1787
1786
|
let a = n.some((e) => e.docChanged) && !r.doc.eq(i.doc);
|
|
1788
1787
|
if (t && !a) return;
|
|
1789
1788
|
let { tr: o } = i, { textContent: s } = i.doc;
|
|
1790
|
-
return t ||
|
|
1791
|
-
|
|
1792
|
-
|
|
1789
|
+
return t || ni(s, 0, 0, s.length, o, e.type), t = !0, De(Te(r.doc, [...n])).forEach(({ oldRange: t, newRange: n }) => {
|
|
1790
|
+
ei(n, i.doc, o, e.type), Ee(i.doc, n, (e) => e.isTextblock).forEach(({ node: r, pos: i }) => {
|
|
1791
|
+
ni(r.textContent, i, t.from, n.to, o, e.type);
|
|
1793
1792
|
});
|
|
1794
1793
|
}), o;
|
|
1795
1794
|
}
|
|
@@ -1797,21 +1796,21 @@ function ii(e) {
|
|
|
1797
1796
|
}
|
|
1798
1797
|
//#endregion
|
|
1799
1798
|
//#region components/rich_text_editor/extensions/custom_link/custom_link.js
|
|
1800
|
-
var
|
|
1799
|
+
var ii = {
|
|
1801
1800
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
1802
1801
|
rel: "noopener noreferrer nofollow"
|
|
1803
|
-
},
|
|
1802
|
+
}, ai = Ce.create({
|
|
1804
1803
|
name: "CustomLink",
|
|
1805
1804
|
renderHTML({ HTMLAttributes: e }) {
|
|
1806
|
-
return ["a",
|
|
1805
|
+
return ["a", L(this.options.HTMLAttributes, e, ii)];
|
|
1807
1806
|
},
|
|
1808
1807
|
renderText({ node: e }) {
|
|
1809
1808
|
return e.attrs.text;
|
|
1810
1809
|
},
|
|
1811
1810
|
addProseMirrorPlugins() {
|
|
1812
|
-
return [
|
|
1811
|
+
return [ri({ type: this.type })];
|
|
1813
1812
|
}
|
|
1814
|
-
}),
|
|
1813
|
+
}), oi = ut.extend({
|
|
1815
1814
|
name: "ConfigurableImage",
|
|
1816
1815
|
addAttributes() {
|
|
1817
1816
|
return {
|
|
@@ -1826,12 +1825,12 @@ var ai = {
|
|
|
1826
1825
|
}).configure({
|
|
1827
1826
|
inline: !0,
|
|
1828
1827
|
allowBase64: !0
|
|
1829
|
-
}),
|
|
1828
|
+
}), si = new Set(/* @__PURE__ */ "address.article.aside.blockquote.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.ol.p.pre.section.table.ul".split(".")), ci = Ke.extend({
|
|
1830
1829
|
parseHTML() {
|
|
1831
1830
|
return [{
|
|
1832
1831
|
tag: "div",
|
|
1833
1832
|
getAttrs: (e) => {
|
|
1834
|
-
for (let t of e.children) if (
|
|
1833
|
+
for (let t of e.children) if (si.has(t.tagName.toLowerCase())) return !1;
|
|
1835
1834
|
return null;
|
|
1836
1835
|
}
|
|
1837
1836
|
}];
|
|
@@ -1839,16 +1838,16 @@ var ai = {
|
|
|
1839
1838
|
renderHTML({ HTMLAttributes: e }) {
|
|
1840
1839
|
return [
|
|
1841
1840
|
"div",
|
|
1842
|
-
|
|
1841
|
+
L(this.options.HTMLAttributes, e),
|
|
1843
1842
|
0
|
|
1844
1843
|
];
|
|
1845
1844
|
}
|
|
1846
|
-
}),
|
|
1845
|
+
}), li = {
|
|
1847
1846
|
compatConfig: { MODE: 3 },
|
|
1848
1847
|
name: "MentionComponent",
|
|
1849
1848
|
components: {
|
|
1850
1849
|
NodeViewWrapper: S,
|
|
1851
|
-
DtLink:
|
|
1850
|
+
DtLink: f
|
|
1852
1851
|
},
|
|
1853
1852
|
props: T,
|
|
1854
1853
|
computed: { text() {
|
|
@@ -1880,18 +1879,18 @@ var ai = {
|
|
|
1880
1879
|
}
|
|
1881
1880
|
}
|
|
1882
1881
|
};
|
|
1883
|
-
function
|
|
1884
|
-
let o =
|
|
1885
|
-
return
|
|
1886
|
-
default:
|
|
1882
|
+
function ui(e, t, n, r, i, a) {
|
|
1883
|
+
let o = P("dt-link"), s = P("node-view-wrapper");
|
|
1884
|
+
return N(), O(s, { class: "d-d-inline-block" }, {
|
|
1885
|
+
default: I(() => [M(o, {
|
|
1887
1886
|
kind: "mention",
|
|
1888
|
-
onClick:
|
|
1887
|
+
onClick: ve(a.handleClick, ["prevent"]),
|
|
1889
1888
|
onMouseenter: a.handleMouseEnter,
|
|
1890
1889
|
onMouseleave: a.handleMouseLeave,
|
|
1891
1890
|
onFocusin: a.handleMouseEnter,
|
|
1892
1891
|
onFocusout: a.handleMouseLeave
|
|
1893
1892
|
}, {
|
|
1894
|
-
default:
|
|
1893
|
+
default: I(() => [re(F(a.text), 1)]),
|
|
1895
1894
|
_: 1
|
|
1896
1895
|
}, 8, [
|
|
1897
1896
|
"onClick",
|
|
@@ -1903,9 +1902,9 @@ function di(e, t, n, r, i, a) {
|
|
|
1903
1902
|
_: 1
|
|
1904
1903
|
});
|
|
1905
1904
|
}
|
|
1906
|
-
var
|
|
1905
|
+
var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
|
|
1907
1906
|
addNodeView() {
|
|
1908
|
-
return C(
|
|
1907
|
+
return C(di);
|
|
1909
1908
|
},
|
|
1910
1909
|
parseHTML() {
|
|
1911
1910
|
return [{ tag: "mention-component" }];
|
|
@@ -1922,19 +1921,19 @@ var fi = /* @__PURE__ */ i(ui, [["render", di]]), pi = mt.extend({
|
|
|
1922
1921
|
return `@${e.attrs.id}`;
|
|
1923
1922
|
},
|
|
1924
1923
|
renderHTML({ HTMLAttributes: e }) {
|
|
1925
|
-
return ["mention-component",
|
|
1924
|
+
return ["mention-component", L(this.options.HTMLAttributes, e)];
|
|
1926
1925
|
}
|
|
1927
1926
|
}).configure({ suggestion: {
|
|
1928
1927
|
char: "@",
|
|
1929
|
-
pluginKey: new
|
|
1930
|
-
} }),
|
|
1928
|
+
pluginKey: new R("mentionSuggestion")
|
|
1929
|
+
} }), pi = {
|
|
1931
1930
|
compatConfig: { MODE: 3 },
|
|
1932
1931
|
name: "ChannelComponent",
|
|
1933
1932
|
components: {
|
|
1934
1933
|
NodeViewWrapper: S,
|
|
1935
|
-
DtLink:
|
|
1936
|
-
DtIconLock:
|
|
1937
|
-
DtStack:
|
|
1934
|
+
DtLink: f,
|
|
1935
|
+
DtIconLock: be,
|
|
1936
|
+
DtStack: g
|
|
1938
1937
|
},
|
|
1939
1938
|
props: T,
|
|
1940
1939
|
computed: { text() {
|
|
@@ -1950,21 +1949,21 @@ var fi = /* @__PURE__ */ i(ui, [["render", di]]), pi = mt.extend({
|
|
|
1950
1949
|
this.$props.editor.emit("channel-click", e);
|
|
1951
1950
|
} }
|
|
1952
1951
|
};
|
|
1953
|
-
function
|
|
1954
|
-
let o =
|
|
1955
|
-
return
|
|
1956
|
-
default:
|
|
1952
|
+
function mi(e, t, n, r, i, a) {
|
|
1953
|
+
let o = P("dt-icon-lock"), s = P("dt-stack"), c = P("dt-link"), l = P("node-view-wrapper");
|
|
1954
|
+
return N(), O(l, { class: "d-d-inline-block" }, {
|
|
1955
|
+
default: I(() => [M(c, {
|
|
1957
1956
|
kind: "mention",
|
|
1958
|
-
onClick:
|
|
1957
|
+
onClick: ve(a.handleClick, ["prevent"])
|
|
1959
1958
|
}, {
|
|
1960
|
-
default:
|
|
1959
|
+
default: I(() => [M(s, {
|
|
1961
1960
|
direction: "row",
|
|
1962
1961
|
gap: "0"
|
|
1963
1962
|
}, {
|
|
1964
|
-
default:
|
|
1963
|
+
default: I(() => [e.$props.node.attrs.locked ? (N(), O(o, {
|
|
1965
1964
|
key: 0,
|
|
1966
1965
|
size: "200"
|
|
1967
|
-
})) :
|
|
1966
|
+
})) : k("", !0), j("span", null, F(a.text), 1)]),
|
|
1968
1967
|
_: 1
|
|
1969
1968
|
})]),
|
|
1970
1969
|
_: 1
|
|
@@ -1972,10 +1971,10 @@ function hi(e, t, n, r, i, a) {
|
|
|
1972
1971
|
_: 1
|
|
1973
1972
|
});
|
|
1974
1973
|
}
|
|
1975
|
-
var
|
|
1974
|
+
var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
|
|
1976
1975
|
name: "channel",
|
|
1977
1976
|
addNodeView() {
|
|
1978
|
-
return C(
|
|
1977
|
+
return C(hi);
|
|
1979
1978
|
},
|
|
1980
1979
|
parseHTML() {
|
|
1981
1980
|
return [{ tag: "channel-component" }];
|
|
@@ -1992,12 +1991,12 @@ var gi = /* @__PURE__ */ i(mi, [["render", hi]]), _i = mt.extend({
|
|
|
1992
1991
|
return `#${e.attrs.id}`;
|
|
1993
1992
|
},
|
|
1994
1993
|
renderHTML({ HTMLAttributes: e }) {
|
|
1995
|
-
return ["channel-component",
|
|
1994
|
+
return ["channel-component", L(this.options.HTMLAttributes, e)];
|
|
1996
1995
|
}
|
|
1997
1996
|
}).configure({ suggestion: {
|
|
1998
1997
|
char: "#",
|
|
1999
|
-
pluginKey: new
|
|
2000
|
-
} }),
|
|
1998
|
+
pluginKey: new R("channelSuggestion")
|
|
1999
|
+
} }), _i = {
|
|
2001
2000
|
compatConfig: { MODE: 3 },
|
|
2002
2001
|
name: "SlashCommandsComponent",
|
|
2003
2002
|
components: { NodeViewWrapper: S },
|
|
@@ -2013,21 +2012,21 @@ var gi = /* @__PURE__ */ i(mi, [["render", hi]]), _i = mt.extend({
|
|
|
2013
2012
|
t && typeof t == "function" && t(e);
|
|
2014
2013
|
}
|
|
2015
2014
|
};
|
|
2016
|
-
function
|
|
2017
|
-
let o =
|
|
2018
|
-
return
|
|
2019
|
-
default:
|
|
2015
|
+
function vi(e, t, n, r, i, a) {
|
|
2016
|
+
let o = P("node-view-wrapper");
|
|
2017
|
+
return N(), O(o, { class: "d-d-inline-block" }, {
|
|
2018
|
+
default: I(() => [re(F(a.text), 1)]),
|
|
2020
2019
|
_: 1
|
|
2021
2020
|
});
|
|
2022
2021
|
}
|
|
2023
|
-
var
|
|
2022
|
+
var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(t)].map((e) => {
|
|
2024
2023
|
let t = e[2];
|
|
2025
2024
|
return t.endsWith(" ") || (t += " "), {
|
|
2026
2025
|
index: e.index,
|
|
2027
2026
|
text: t,
|
|
2028
2027
|
match: e
|
|
2029
2028
|
};
|
|
2030
|
-
}),
|
|
2029
|
+
}), xi = dt.extend({
|
|
2031
2030
|
name: "slash-commands",
|
|
2032
2031
|
group: "inline",
|
|
2033
2032
|
inline: !0,
|
|
@@ -2041,7 +2040,7 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = (e, t) => [...e.matchAll(
|
|
|
2041
2040
|
return { onSelectedCommand: this.options.onSelectedCommand };
|
|
2042
2041
|
},
|
|
2043
2042
|
addNodeView() {
|
|
2044
|
-
return C(
|
|
2043
|
+
return C(yi);
|
|
2045
2044
|
},
|
|
2046
2045
|
parseHTML() {
|
|
2047
2046
|
return [{ tag: "command-component" }];
|
|
@@ -2057,11 +2056,11 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = (e, t) => [...e.matchAll(
|
|
|
2057
2056
|
return `/${e.attrs.command}`;
|
|
2058
2057
|
},
|
|
2059
2058
|
renderHTML({ HTMLAttributes: e }) {
|
|
2060
|
-
return ["command-component",
|
|
2059
|
+
return ["command-component", L(this.options.HTMLAttributes, e)];
|
|
2061
2060
|
},
|
|
2062
2061
|
addInputRules() {
|
|
2063
2062
|
let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command);
|
|
2064
|
-
return [
|
|
2063
|
+
return [Me({
|
|
2065
2064
|
find: RegExp(`^((?:\\/)(${e.join("|")})) $`),
|
|
2066
2065
|
type: this.type,
|
|
2067
2066
|
getAttributes(e) {
|
|
@@ -2071,8 +2070,8 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = (e, t) => [...e.matchAll(
|
|
|
2071
2070
|
},
|
|
2072
2071
|
addPasteRules() {
|
|
2073
2072
|
let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command), t = RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
|
|
2074
|
-
return [
|
|
2075
|
-
find: (e) =>
|
|
2073
|
+
return [Ne({
|
|
2074
|
+
find: (e) => bi(e, t),
|
|
2076
2075
|
type: this.type,
|
|
2077
2076
|
getAttributes(e) {
|
|
2078
2077
|
return { command: e[0].trim() };
|
|
@@ -2081,21 +2080,21 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = (e, t) => [...e.matchAll(
|
|
|
2081
2080
|
}
|
|
2082
2081
|
}).configure({ suggestion: {
|
|
2083
2082
|
char: "/",
|
|
2084
|
-
pluginKey: new
|
|
2085
|
-
} }),
|
|
2083
|
+
pluginKey: new R("slashCommandSuggestion")
|
|
2084
|
+
} }), Si = 100, Ci = {
|
|
2086
2085
|
name: "VariableComponent",
|
|
2087
2086
|
components: {
|
|
2088
2087
|
DtBadge: d,
|
|
2089
|
-
DtButton:
|
|
2090
|
-
DtPopover:
|
|
2091
|
-
DtInput:
|
|
2088
|
+
DtButton: m,
|
|
2089
|
+
DtPopover: _,
|
|
2090
|
+
DtInput: y,
|
|
2092
2091
|
NodeViewWrapper: S
|
|
2093
2092
|
},
|
|
2094
2093
|
props: T,
|
|
2095
2094
|
data() {
|
|
2096
2095
|
return {
|
|
2097
|
-
i18n: new
|
|
2098
|
-
MAX_VARIABLE_ALT_LENGTH:
|
|
2096
|
+
i18n: new p(),
|
|
2097
|
+
MAX_VARIABLE_ALT_LENGTH: Si
|
|
2099
2098
|
};
|
|
2100
2099
|
},
|
|
2101
2100
|
computed: {
|
|
@@ -2130,27 +2129,27 @@ var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = (e, t) => [...e.matchAll(
|
|
|
2130
2129
|
}
|
|
2131
2130
|
}
|
|
2132
2131
|
};
|
|
2133
|
-
function
|
|
2134
|
-
let o =
|
|
2135
|
-
return
|
|
2136
|
-
default:
|
|
2132
|
+
function wi(e, t, n, r, i, a) {
|
|
2133
|
+
let o = P("dt-badge"), s = P("dt-button"), c = P("dt-input"), l = P("dt-popover"), u = P("node-view-wrapper");
|
|
2134
|
+
return N(), O(u, { class: "d-d-inline-block" }, {
|
|
2135
|
+
default: I(() => [a.enableAltText ? (N(), O(l, {
|
|
2137
2136
|
key: 0,
|
|
2138
2137
|
padding: "small",
|
|
2139
2138
|
"navigation-type": "arrow-keys",
|
|
2140
2139
|
placement: "top-start",
|
|
2141
2140
|
modal: !1
|
|
2142
2141
|
}, {
|
|
2143
|
-
anchor:
|
|
2144
|
-
default:
|
|
2142
|
+
anchor: I(({ attrs: e }) => [M(s, se(e, { kind: "unstyled" }), {
|
|
2143
|
+
default: I(() => [M(o, {
|
|
2145
2144
|
text: a.badgeLabel,
|
|
2146
2145
|
contenteditable: "false"
|
|
2147
2146
|
}, null, 8, ["text"])]),
|
|
2148
2147
|
_: 1
|
|
2149
2148
|
}, 16)]),
|
|
2150
|
-
content:
|
|
2149
|
+
content: I(({ close: e }) => [M(c, {
|
|
2151
2150
|
modelValue: a.altText,
|
|
2152
2151
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.altText = e),
|
|
2153
|
-
class: "d-
|
|
2152
|
+
"root-class": "d-p8 d-w332",
|
|
2154
2153
|
label: i.i18n.$t("DIALTONE_EDITOR_VARIABLE_LABEL"),
|
|
2155
2154
|
placeholder: a.placeholderText,
|
|
2156
2155
|
validate: { length: {
|
|
@@ -2160,7 +2159,7 @@ function Ti(e, t, n, r, i, a) {
|
|
|
2160
2159
|
warn: i.MAX_VARIABLE_ALT_LENGTH,
|
|
2161
2160
|
limitMaxLength: !0
|
|
2162
2161
|
} },
|
|
2163
|
-
onKeyup:
|
|
2162
|
+
onKeyup: _e((t) => e(), ["enter"])
|
|
2164
2163
|
}, null, 8, [
|
|
2165
2164
|
"modelValue",
|
|
2166
2165
|
"label",
|
|
@@ -2169,7 +2168,7 @@ function Ti(e, t, n, r, i, a) {
|
|
|
2169
2168
|
"onKeyup"
|
|
2170
2169
|
])]),
|
|
2171
2170
|
_: 1
|
|
2172
|
-
})) : (
|
|
2171
|
+
})) : (N(), O(o, {
|
|
2173
2172
|
key: 1,
|
|
2174
2173
|
text: a.badgeLabel,
|
|
2175
2174
|
contenteditable: "false"
|
|
@@ -2177,7 +2176,7 @@ function Ti(e, t, n, r, i, a) {
|
|
|
2177
2176
|
_: 1
|
|
2178
2177
|
});
|
|
2179
2178
|
}
|
|
2180
|
-
var
|
|
2179
|
+
var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
|
|
2181
2180
|
name: "variable",
|
|
2182
2181
|
group: "inline",
|
|
2183
2182
|
inline: !0,
|
|
@@ -2190,7 +2189,7 @@ var Ei = /* @__PURE__ */ i(wi, [["render", Ti]]), Di = De.create({
|
|
|
2190
2189
|
};
|
|
2191
2190
|
},
|
|
2192
2191
|
addNodeView() {
|
|
2193
|
-
return C(
|
|
2192
|
+
return C(Ti);
|
|
2194
2193
|
},
|
|
2195
2194
|
addAttributes() {
|
|
2196
2195
|
return {
|
|
@@ -2218,7 +2217,7 @@ var Ei = /* @__PURE__ */ i(wi, [["render", Ti]]), Di = De.create({
|
|
|
2218
2217
|
return e.attrs.altText;
|
|
2219
2218
|
},
|
|
2220
2219
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
2221
|
-
return ["variable",
|
|
2220
|
+
return ["variable", L(this.options.HTMLAttributes, t, {
|
|
2222
2221
|
"data-variable-id": e.attrs.id,
|
|
2223
2222
|
"data-alt-text": e.attrs.altText,
|
|
2224
2223
|
"data-enable-alt-text": String(e.attrs.enableAltText)
|
|
@@ -2234,13 +2233,12 @@ var Ei = /* @__PURE__ */ i(wi, [["render", Ti]]), Di = De.create({
|
|
|
2234
2233
|
}
|
|
2235
2234
|
}) };
|
|
2236
2235
|
}
|
|
2237
|
-
}),
|
|
2236
|
+
}), Di = {
|
|
2238
2237
|
compatConfig: { MODE: 3 },
|
|
2239
2238
|
name: "MentionSuggestion",
|
|
2240
2239
|
components: {
|
|
2241
2240
|
DtAvatar: u,
|
|
2242
|
-
DtStack:
|
|
2243
|
-
DtText: f
|
|
2241
|
+
DtStack: g
|
|
2244
2242
|
},
|
|
2245
2243
|
props: { item: {
|
|
2246
2244
|
type: Object,
|
|
@@ -2274,72 +2272,53 @@ var Ei = /* @__PURE__ */ i(wi, [["render", Ti]]), Di = De.create({
|
|
|
2274
2272
|
return this.item.showDetails;
|
|
2275
2273
|
}
|
|
2276
2274
|
}
|
|
2277
|
-
},
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2275
|
+
}, Oi = { class: "d-mention-suggestion__name" }, ki = {
|
|
2276
|
+
key: 1,
|
|
2277
|
+
class: "d-mention-suggestion__divider"
|
|
2278
|
+
}, Ai = {
|
|
2279
|
+
key: 2,
|
|
2280
|
+
class: "d-mention-suggestion__status"
|
|
2281
|
+
};
|
|
2282
|
+
function ji(e, t, n, r, i, a) {
|
|
2283
|
+
let o = P("dt-avatar"), s = P("dt-stack");
|
|
2284
|
+
return N(), O(s, {
|
|
2281
2285
|
direction: "row",
|
|
2282
2286
|
class: "d-mention-suggestion__container",
|
|
2283
|
-
gap: "
|
|
2287
|
+
gap: "400"
|
|
2284
2288
|
}, {
|
|
2285
|
-
default:
|
|
2289
|
+
default: I(() => [M(o, {
|
|
2286
2290
|
"full-name": a.name,
|
|
2287
2291
|
"image-src": a.avatarSrc,
|
|
2288
2292
|
"image-alt": a.name,
|
|
2289
2293
|
"show-presence": a.showDetails,
|
|
2290
2294
|
presence: a.presence,
|
|
2291
|
-
size:
|
|
2295
|
+
size: "sm"
|
|
2292
2296
|
}, null, 8, [
|
|
2293
2297
|
"full-name",
|
|
2294
2298
|
"image-src",
|
|
2295
2299
|
"image-alt",
|
|
2296
2300
|
"show-presence",
|
|
2297
2301
|
"presence"
|
|
2298
|
-
]),
|
|
2302
|
+
]), M(s, {
|
|
2299
2303
|
class: "d-mention-suggestion__details-container",
|
|
2300
|
-
gap: "
|
|
2304
|
+
gap: "100"
|
|
2301
2305
|
}, {
|
|
2302
|
-
default:
|
|
2306
|
+
default: I(() => [j("span", Oi, F(a.name), 1), a.showDetails ? (N(), O(s, {
|
|
2303
2307
|
key: 0,
|
|
2304
2308
|
direction: "row",
|
|
2305
|
-
gap: "
|
|
2309
|
+
gap: "300",
|
|
2310
|
+
class: "d-label--sm-plain"
|
|
2306
2311
|
}, {
|
|
2307
|
-
default:
|
|
2308
|
-
a.presenceText ? (
|
|
2312
|
+
default: I(() => [
|
|
2313
|
+
a.presenceText ? (N(), A("span", {
|
|
2309
2314
|
key: 0,
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
}, {
|
|
2315
|
-
default: P(() => [k(N(a.presenceText), 1)]),
|
|
2316
|
-
_: 1
|
|
2317
|
-
}, 8, ["class"])) : O("", !0),
|
|
2318
|
-
a.status && a.presenceText ? (j(), D(s, {
|
|
2319
|
-
key: 1,
|
|
2320
|
-
kind: "label",
|
|
2321
|
-
size: 200,
|
|
2322
|
-
strength: "normal",
|
|
2323
|
-
as: "div",
|
|
2324
|
-
class: "d-mention-suggestion__divider"
|
|
2325
|
-
}, {
|
|
2326
|
-
default: P(() => [...t[0] || (t[0] = [k(" • ", -1)])]),
|
|
2327
|
-
_: 1
|
|
2328
|
-
})) : O("", !0),
|
|
2329
|
-
a.status ? (j(), D(s, {
|
|
2330
|
-
key: 2,
|
|
2331
|
-
kind: "label",
|
|
2332
|
-
size: 200,
|
|
2333
|
-
strength: "normal",
|
|
2334
|
-
as: "div",
|
|
2335
|
-
class: "d-mention-suggestion__status"
|
|
2336
|
-
}, {
|
|
2337
|
-
default: P(() => [k(N(a.status), 1)]),
|
|
2338
|
-
_: 1
|
|
2339
|
-
})) : O("", !0)
|
|
2315
|
+
class: le(["d-mention-suggestion__presence", [a.presenceFontColorClass]])
|
|
2316
|
+
}, F(a.presenceText), 3)) : k("", !0),
|
|
2317
|
+
a.status && a.presenceText ? (N(), A("div", ki, " • ")) : k("", !0),
|
|
2318
|
+
a.status ? (N(), A("div", Ai, F(a.status), 1)) : k("", !0)
|
|
2340
2319
|
]),
|
|
2341
2320
|
_: 1
|
|
2342
|
-
})) :
|
|
2321
|
+
})) : k("", !0)]),
|
|
2343
2322
|
_: 1
|
|
2344
2323
|
})]),
|
|
2345
2324
|
_: 1
|
|
@@ -2347,16 +2326,16 @@ function Ai(e, t, n, r, i, a) {
|
|
|
2347
2326
|
}
|
|
2348
2327
|
//#endregion
|
|
2349
2328
|
//#region components/rich_text_editor/extensions/mentions/suggestion.js
|
|
2350
|
-
var
|
|
2329
|
+
var Mi = {
|
|
2351
2330
|
allowSpaces: !0,
|
|
2352
|
-
render:
|
|
2353
|
-
},
|
|
2331
|
+
render: Lr(/* @__PURE__ */ i(Di, [["render", ji]]), "mention")
|
|
2332
|
+
}, Ni = {
|
|
2354
2333
|
compatConfig: { MODE: 3 },
|
|
2355
2334
|
name: "ChannelSuggestion",
|
|
2356
2335
|
components: {
|
|
2357
|
-
DtStack:
|
|
2358
|
-
DtIconHash:
|
|
2359
|
-
DtIconLock:
|
|
2336
|
+
DtStack: g,
|
|
2337
|
+
DtIconHash: ft,
|
|
2338
|
+
DtIconLock: pt
|
|
2360
2339
|
},
|
|
2361
2340
|
props: { item: {
|
|
2362
2341
|
type: Object,
|
|
@@ -2366,31 +2345,30 @@ var ji = {
|
|
|
2366
2345
|
return this.item.name;
|
|
2367
2346
|
} }
|
|
2368
2347
|
};
|
|
2369
|
-
function
|
|
2370
|
-
let o =
|
|
2371
|
-
return
|
|
2348
|
+
function Pi(e, t, n, r, i, a) {
|
|
2349
|
+
let o = P("dt-icon-hash"), s = P("dt-icon-lock"), c = P("dt-stack");
|
|
2350
|
+
return N(), O(c, {
|
|
2372
2351
|
direction: "row",
|
|
2373
2352
|
gap: "400"
|
|
2374
2353
|
}, {
|
|
2375
|
-
default:
|
|
2354
|
+
default: I(() => [n.item.locked ? (N(), O(s, {
|
|
2376
2355
|
key: 1,
|
|
2377
2356
|
size: "300"
|
|
2378
|
-
})) : (
|
|
2357
|
+
})) : (N(), O(o, {
|
|
2379
2358
|
key: 0,
|
|
2380
2359
|
size: "300"
|
|
2381
|
-
})),
|
|
2360
|
+
})), j("span", null, F(a.name), 1)]),
|
|
2382
2361
|
_: 1
|
|
2383
2362
|
});
|
|
2384
2363
|
}
|
|
2385
2364
|
//#endregion
|
|
2386
2365
|
//#region components/rich_text_editor/extensions/channels/suggestion.js
|
|
2387
|
-
var
|
|
2366
|
+
var Fi = {
|
|
2388
2367
|
allowSpaces: !0,
|
|
2389
|
-
render:
|
|
2390
|
-
},
|
|
2368
|
+
render: Lr(/* @__PURE__ */ i(Ni, [["render", Pi]]), "channel")
|
|
2369
|
+
}, Ii = {
|
|
2391
2370
|
compatConfig: { MODE: 3 },
|
|
2392
2371
|
name: "SlashCommandSuggestion",
|
|
2393
|
-
components: { DtText: f },
|
|
2394
2372
|
props: { item: {
|
|
2395
2373
|
type: Object,
|
|
2396
2374
|
required: !0
|
|
@@ -2406,41 +2384,24 @@ var Pi = {
|
|
|
2406
2384
|
return this.item.parametersExample;
|
|
2407
2385
|
}
|
|
2408
2386
|
}
|
|
2409
|
-
},
|
|
2410
|
-
function
|
|
2411
|
-
|
|
2412
|
-
return j(), ae("div", null, [A(o, {
|
|
2413
|
-
kind: "body",
|
|
2414
|
-
size: 300,
|
|
2415
|
-
density: 300,
|
|
2416
|
-
as: "div"
|
|
2417
|
-
}, {
|
|
2418
|
-
default: P(() => [oe("span", null, "/" + N(a.command), 1), a.parametersExample ? (j(), ae("span", Ii, N(a.parametersExample), 1)) : O("", !0)]),
|
|
2419
|
-
_: 1
|
|
2420
|
-
}), A(o, {
|
|
2421
|
-
kind: "body",
|
|
2422
|
-
size: 200,
|
|
2423
|
-
tone: "tertiary",
|
|
2424
|
-
as: "div"
|
|
2425
|
-
}, {
|
|
2426
|
-
default: P(() => [k(N(a.description), 1)]),
|
|
2427
|
-
_: 1
|
|
2428
|
-
})]);
|
|
2387
|
+
}, Li = { class: "d-body--md-compact" }, Ri = { key: 0 }, zi = { class: "d-body--sm d-fc-tertiary" };
|
|
2388
|
+
function Bi(e, t, n, r, i, a) {
|
|
2389
|
+
return N(), A("div", null, [j("div", Li, [j("span", null, "/" + F(a.command), 1), a.parametersExample ? (N(), A("span", Ri, F(a.parametersExample), 1)) : k("", !0)]), j("div", zi, F(a.description), 1)]);
|
|
2429
2390
|
}
|
|
2430
2391
|
//#endregion
|
|
2431
2392
|
//#region components/rich_text_editor/extensions/slash_command/suggestion.js
|
|
2432
|
-
var
|
|
2393
|
+
var Vi = {
|
|
2433
2394
|
allowSpaces: !0,
|
|
2434
2395
|
startOfLine: !0,
|
|
2435
|
-
render:
|
|
2436
|
-
},
|
|
2396
|
+
render: Lr(/* @__PURE__ */ i(Ii, [["render", Bi]]), "slash-command")
|
|
2397
|
+
}, Hi = {
|
|
2437
2398
|
compatConfig: { MODE: 3 },
|
|
2438
2399
|
name: "DtRichTextEditor",
|
|
2439
2400
|
components: {
|
|
2440
|
-
EditorContent:
|
|
2441
|
-
BubbleMenu:
|
|
2442
|
-
DtButton:
|
|
2443
|
-
DtStack:
|
|
2401
|
+
EditorContent: x,
|
|
2402
|
+
BubbleMenu: or,
|
|
2403
|
+
DtButton: m,
|
|
2404
|
+
DtStack: g
|
|
2444
2405
|
},
|
|
2445
2406
|
props: {
|
|
2446
2407
|
modelValue: {
|
|
@@ -2451,9 +2412,9 @@ var Ri = {
|
|
|
2451
2412
|
type: Boolean,
|
|
2452
2413
|
default: !0
|
|
2453
2414
|
},
|
|
2454
|
-
|
|
2415
|
+
preventTyping: {
|
|
2455
2416
|
type: Boolean,
|
|
2456
|
-
default: !
|
|
2417
|
+
default: !1
|
|
2457
2418
|
},
|
|
2458
2419
|
pasteRichText: {
|
|
2459
2420
|
type: Boolean,
|
|
@@ -2479,14 +2440,14 @@ var Ri = {
|
|
|
2479
2440
|
],
|
|
2480
2441
|
default: !1,
|
|
2481
2442
|
validator(e) {
|
|
2482
|
-
return typeof e == "string" ?
|
|
2443
|
+
return typeof e == "string" ? ee.includes(e) : !0;
|
|
2483
2444
|
}
|
|
2484
2445
|
},
|
|
2485
2446
|
outputFormat: {
|
|
2486
2447
|
type: String,
|
|
2487
2448
|
default: "html",
|
|
2488
2449
|
validator(e) {
|
|
2489
|
-
return
|
|
2450
|
+
return te.includes(e);
|
|
2490
2451
|
}
|
|
2491
2452
|
},
|
|
2492
2453
|
placeholder: {
|
|
@@ -2581,9 +2542,9 @@ var Ri = {
|
|
|
2581
2542
|
type: Array,
|
|
2582
2543
|
default: () => []
|
|
2583
2544
|
},
|
|
2584
|
-
|
|
2545
|
+
hideLinkBubbleMenu: {
|
|
2585
2546
|
type: Boolean,
|
|
2586
|
-
default: !
|
|
2547
|
+
default: !1
|
|
2587
2548
|
},
|
|
2588
2549
|
preserveWhitespace: {
|
|
2589
2550
|
type: [Boolean, String],
|
|
@@ -2607,11 +2568,12 @@ var Ri = {
|
|
|
2607
2568
|
}
|
|
2608
2569
|
},
|
|
2609
2570
|
emits: [
|
|
2610
|
-
"
|
|
2571
|
+
"input",
|
|
2611
2572
|
"json-input",
|
|
2612
2573
|
"html-input",
|
|
2613
2574
|
"text-input",
|
|
2614
2575
|
"markdown-input",
|
|
2576
|
+
"update:modelValue",
|
|
2615
2577
|
"blur",
|
|
2616
2578
|
"focus",
|
|
2617
2579
|
"enter",
|
|
@@ -2628,7 +2590,7 @@ var Ri = {
|
|
|
2628
2590
|
editor: null,
|
|
2629
2591
|
appendTo: () => n(this.$refs.editor.$el).getRootNode()?.querySelector("body"),
|
|
2630
2592
|
floatingOptions: { placement: "top-start" },
|
|
2631
|
-
i18n: new
|
|
2593
|
+
i18n: new p()
|
|
2632
2594
|
};
|
|
2633
2595
|
},
|
|
2634
2596
|
computed: {
|
|
@@ -2642,15 +2604,15 @@ var Ri = {
|
|
|
2642
2604
|
},
|
|
2643
2605
|
extensions() {
|
|
2644
2606
|
let e = [
|
|
2607
|
+
Ve,
|
|
2608
|
+
tt,
|
|
2645
2609
|
We,
|
|
2646
|
-
|
|
2647
|
-
qe,
|
|
2648
|
-
Je
|
|
2610
|
+
Ge
|
|
2649
2611
|
];
|
|
2650
|
-
e.push(this.useDivTags ?
|
|
2612
|
+
e.push(this.useDivTags ? ci : Ke), this.allowBold && e.push(qe), this.allowBlockquote && e.push(Re), this.allowBulletList && (e.push(Je), e.push(Ye.extend({ renderText({ node: e }) {
|
|
2651
2613
|
return e.textContent;
|
|
2652
|
-
} })), e.push(
|
|
2653
|
-
let t = this, n =
|
|
2614
|
+
} })), e.push(Xe)), this.allowItalic && e.push(Ze), this.allowStrike && e.push($e), this.allowUnderline && e.push(et), this.placeholder && e.push(Ue.configure({ placeholder: this.placeholder }));
|
|
2615
|
+
let t = this, n = xe.create({ addKeyboardShortcuts() {
|
|
2654
2616
|
return {
|
|
2655
2617
|
"Shift-Enter": ({ editor: e }) => t.allowLineBreaks ? !1 : (e.commands.first(({ commands: e }) => [
|
|
2656
2618
|
() => e.newlineInCode(),
|
|
@@ -2662,7 +2624,7 @@ var Ri = {
|
|
|
2662
2624
|
Enter: () => t.allowLineBreaks ? !1 : (t.$emit("enter"), !0)
|
|
2663
2625
|
};
|
|
2664
2626
|
} });
|
|
2665
|
-
if (e.push(n), this.link && e.push(
|
|
2627
|
+
if (e.push(n), this.link && e.push(Qe.extend({
|
|
2666
2628
|
inclusive: !1,
|
|
2667
2629
|
addKeyboardShortcuts() {
|
|
2668
2630
|
return { "Mod-k": () => (t.$emit("edit-link"), !0) };
|
|
@@ -2671,34 +2633,34 @@ var Ri = {
|
|
|
2671
2633
|
HTMLAttributes: { class: "d-link d-wb-break-all" },
|
|
2672
2634
|
openOnClick: !1,
|
|
2673
2635
|
autolink: !0,
|
|
2674
|
-
protocols:
|
|
2675
|
-
})), this.customLink && e.push(this.getExtension(
|
|
2636
|
+
protocols: E
|
|
2637
|
+
})), this.customLink && e.push(this.getExtension(ai, this.customLink)), this.mentionSuggestion) {
|
|
2676
2638
|
let t = {
|
|
2677
2639
|
...this.mentionSuggestion,
|
|
2678
|
-
...
|
|
2640
|
+
...Mi
|
|
2679
2641
|
};
|
|
2680
|
-
e.push(
|
|
2642
|
+
e.push(fi.configure({ suggestion: t }));
|
|
2681
2643
|
}
|
|
2682
2644
|
if (this.channelSuggestion) {
|
|
2683
2645
|
let t = {
|
|
2684
2646
|
...this.channelSuggestion,
|
|
2685
|
-
...
|
|
2647
|
+
...Fi
|
|
2686
2648
|
};
|
|
2687
|
-
e.push(
|
|
2649
|
+
e.push(gi.configure({ suggestion: t }));
|
|
2688
2650
|
}
|
|
2689
2651
|
if (this.slashCommandSuggestion) {
|
|
2690
2652
|
let t = {
|
|
2691
2653
|
...this.slashCommandSuggestion,
|
|
2692
|
-
...
|
|
2654
|
+
...Vi
|
|
2693
2655
|
};
|
|
2694
|
-
e.push(
|
|
2656
|
+
e.push(xi.configure({
|
|
2695
2657
|
suggestion: t,
|
|
2696
2658
|
onSelectedCommand: (e) => {
|
|
2697
2659
|
this.$emit("selected-command", e);
|
|
2698
2660
|
}
|
|
2699
2661
|
}));
|
|
2700
2662
|
}
|
|
2701
|
-
return this.allowVariable && e.push(
|
|
2663
|
+
return this.allowVariable && e.push(Ei.configure({ variableItems: this.variableItems })), e.push(Jr), this.allowTextAlign && e.push(nt.configure({ types: ["paragraph"] })), this.allowCode && e.push(Be), this.allowCodeblock && e.push(ze.extend({
|
|
2702
2664
|
renderText({ node: e, pos: t, range: n }) {
|
|
2703
2665
|
let r = n?.from ?? 0, i = n?.to ?? t + e.nodeSize;
|
|
2704
2666
|
if (r <= t && i >= t + e.nodeSize) return `\`\`\`\n${e.textContent}\n\`\`\``;
|
|
@@ -2732,16 +2694,16 @@ var Ri = {
|
|
|
2732
2694
|
}
|
|
2733
2695
|
};
|
|
2734
2696
|
}
|
|
2735
|
-
}).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(
|
|
2697
|
+
}).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(oi.configure({ resize: {
|
|
2736
2698
|
enabled: this.allowImageResize,
|
|
2737
2699
|
alwaysPreserveAspectRatio: !0
|
|
2738
|
-
} })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(
|
|
2700
|
+
} })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(ct.configure({
|
|
2739
2701
|
color: this.allowFontColor,
|
|
2740
2702
|
backgroundColor: this.allowBackgroundColor,
|
|
2741
2703
|
fontFamily: this.allowFontFamily,
|
|
2742
2704
|
fontSize: this.allowFontSize,
|
|
2743
2705
|
lineHeight: this.allowLineHeight
|
|
2744
|
-
})), e.push(
|
|
2706
|
+
})), e.push(gr)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(dr.configure({ resizable: !0 }), fr, hr, mr, He), e;
|
|
2745
2707
|
},
|
|
2746
2708
|
inputAttrs() {
|
|
2747
2709
|
let e = {
|
|
@@ -2780,7 +2742,7 @@ var Ri = {
|
|
|
2780
2742
|
},
|
|
2781
2743
|
methods: {
|
|
2782
2744
|
createEditor() {
|
|
2783
|
-
this.editor = new
|
|
2745
|
+
this.editor = new b({
|
|
2784
2746
|
autofocus: this.autoFocus,
|
|
2785
2747
|
content: this.modelValue,
|
|
2786
2748
|
editable: this.editable,
|
|
@@ -2793,7 +2755,7 @@ var Ri = {
|
|
|
2793
2755
|
class: this.inputClass
|
|
2794
2756
|
},
|
|
2795
2757
|
handleKeyDown: (e, t) => {
|
|
2796
|
-
if (this.
|
|
2758
|
+
if (!this.preventTyping) return !1;
|
|
2797
2759
|
let n = ["Backspace"];
|
|
2798
2760
|
return !this.allowLineBreaks && !t.shiftKey && n.push("Enter"), !n.includes(t.key);
|
|
2799
2761
|
},
|
|
@@ -2808,7 +2770,7 @@ var Ri = {
|
|
|
2808
2770
|
}), this.addEditorListeners();
|
|
2809
2771
|
},
|
|
2810
2772
|
bubbleMenuShouldShow({ editor: e }) {
|
|
2811
|
-
return e.isActive("link");
|
|
2773
|
+
return !this.hideLinkBubbleMenu && e.isActive("link");
|
|
2812
2774
|
},
|
|
2813
2775
|
getSelectedLinkText(e) {
|
|
2814
2776
|
let { view: t, state: n } = e, { from: r, to: i } = t.state.selection, a = n.doc.textBetween(r, i, ""), o = this.editor.state.doc.nodeAt(r);
|
|
@@ -2829,7 +2791,7 @@ var Ri = {
|
|
|
2829
2791
|
let e = this.editor.getAttributes("link").href;
|
|
2830
2792
|
window.open(e, "_blank");
|
|
2831
2793
|
},
|
|
2832
|
-
setLink(e, t, n, r =
|
|
2794
|
+
setLink(e, t, n, r = E, i) {
|
|
2833
2795
|
if (!e) {
|
|
2834
2796
|
this.removeLink();
|
|
2835
2797
|
return;
|
|
@@ -2847,9 +2809,9 @@ var Ri = {
|
|
|
2847
2809
|
processValue(e, t = !0) {
|
|
2848
2810
|
if (!this.editor) return;
|
|
2849
2811
|
let n = this.getOutput();
|
|
2850
|
-
if (!(t &&
|
|
2812
|
+
if (!(t && mt(e, n))) {
|
|
2851
2813
|
if (typeof e == "string" && this.outputFormat === "text") {
|
|
2852
|
-
let t = RegExp(`(${
|
|
2814
|
+
let t = RegExp(`(${ye})`, "g");
|
|
2853
2815
|
e = e?.replace(t, "<emoji-component code=\"$1\"></emoji-component>");
|
|
2854
2816
|
}
|
|
2855
2817
|
this.editor.commands.setContent(e, {
|
|
@@ -2913,14 +2875,14 @@ var Ri = {
|
|
|
2913
2875
|
},
|
|
2914
2876
|
triggerInputChangeEvents() {
|
|
2915
2877
|
let e = this.getOutput();
|
|
2916
|
-
this.$emit("update:modelValue", e);
|
|
2878
|
+
this.$emit("input", e), this.$emit("update:modelValue", e);
|
|
2917
2879
|
let t = this.editor.getJSON();
|
|
2918
2880
|
this.$emit("json-input", t);
|
|
2919
2881
|
let n = this.editor.getHTML();
|
|
2920
2882
|
this.$emit("html-input", n);
|
|
2921
2883
|
let r = this.editor.getText({ blockSeparator: "\n" });
|
|
2922
2884
|
this.$emit("text-input", r);
|
|
2923
|
-
let i =
|
|
2885
|
+
let i = ne(t, this.extensions);
|
|
2924
2886
|
this.$emit("markdown-input", i);
|
|
2925
2887
|
},
|
|
2926
2888
|
addEditorListeners() {
|
|
@@ -2948,7 +2910,7 @@ var Ri = {
|
|
|
2948
2910
|
switch (this.outputFormat) {
|
|
2949
2911
|
case "json": return this.editor.getJSON();
|
|
2950
2912
|
case "html": return this.editor.getHTML();
|
|
2951
|
-
case "markdown": return
|
|
2913
|
+
case "markdown": return ne(this.editor.getJSON(), this.extensions);
|
|
2952
2914
|
default: return this.editor.getText({ blockSeparator: "\n" });
|
|
2953
2915
|
}
|
|
2954
2916
|
},
|
|
@@ -2966,10 +2928,10 @@ var Ri = {
|
|
|
2966
2928
|
this.editor.commands.focus();
|
|
2967
2929
|
}
|
|
2968
2930
|
}
|
|
2969
|
-
},
|
|
2970
|
-
function
|
|
2971
|
-
let o =
|
|
2972
|
-
return
|
|
2931
|
+
}, Ui = { class: "d-popover__dialog" };
|
|
2932
|
+
function Wi(e, t, n, r, i, a) {
|
|
2933
|
+
let o = P("dt-button"), s = P("dt-stack"), c = P("bubble-menu"), l = P("editor-content");
|
|
2934
|
+
return N(), A("div", null, [i.editor && n.link ? (N(), O(c, {
|
|
2973
2935
|
key: 0,
|
|
2974
2936
|
editor: i.editor,
|
|
2975
2937
|
"should-show": a.bubbleMenuShouldShow,
|
|
@@ -2977,34 +2939,34 @@ function Vi(e, t, n, r, i, a) {
|
|
|
2977
2939
|
"append-to": i.appendTo,
|
|
2978
2940
|
style: { visibility: "visible" }
|
|
2979
2941
|
}, {
|
|
2980
|
-
default:
|
|
2942
|
+
default: I(() => [j("div", Ui, [M(s, {
|
|
2981
2943
|
direction: "row",
|
|
2982
2944
|
class: "d-rich-text-editor-bubble-menu__button-stack",
|
|
2983
2945
|
gap: "0"
|
|
2984
2946
|
}, {
|
|
2985
|
-
default:
|
|
2986
|
-
|
|
2947
|
+
default: I(() => [
|
|
2948
|
+
M(o, {
|
|
2987
2949
|
kind: "muted",
|
|
2988
2950
|
importance: "clear",
|
|
2989
2951
|
onClick: a.editLink
|
|
2990
2952
|
}, {
|
|
2991
|
-
default:
|
|
2953
|
+
default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
|
|
2992
2954
|
_: 1
|
|
2993
2955
|
}, 8, ["onClick"]),
|
|
2994
|
-
|
|
2956
|
+
M(o, {
|
|
2995
2957
|
kind: "muted",
|
|
2996
2958
|
importance: "clear",
|
|
2997
2959
|
onClick: a.openLink
|
|
2998
2960
|
}, {
|
|
2999
|
-
default:
|
|
2961
|
+
default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
|
|
3000
2962
|
_: 1
|
|
3001
2963
|
}, 8, ["onClick"]),
|
|
3002
|
-
|
|
3003
|
-
kind: "
|
|
2964
|
+
M(o, {
|
|
2965
|
+
kind: "danger",
|
|
3004
2966
|
importance: "clear",
|
|
3005
2967
|
onClick: a.removeLink
|
|
3006
2968
|
}, {
|
|
3007
|
-
default:
|
|
2969
|
+
default: I(() => [re(F(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
|
|
3008
2970
|
_: 1
|
|
3009
2971
|
}, 8, ["onClick"])
|
|
3010
2972
|
]),
|
|
@@ -3016,15 +2978,15 @@ function Vi(e, t, n, r, i, a) {
|
|
|
3016
2978
|
"should-show",
|
|
3017
2979
|
"options",
|
|
3018
2980
|
"append-to"
|
|
3019
|
-
])) :
|
|
2981
|
+
])) : k("", !0), M(l, se({
|
|
3020
2982
|
ref: "editor",
|
|
3021
2983
|
editor: i.editor,
|
|
3022
2984
|
class: "d-rich-text-editor",
|
|
3023
2985
|
"data-qa": "dt-rich-text-editor"
|
|
3024
2986
|
}, a.attrs), null, 16, ["editor"])]);
|
|
3025
2987
|
}
|
|
3026
|
-
var
|
|
2988
|
+
var Gi = /* @__PURE__ */ i(Hi, [["render", Wi]]);
|
|
3027
2989
|
//#endregion
|
|
3028
|
-
export {
|
|
2990
|
+
export { Gi as t };
|
|
3029
2991
|
|
|
3030
|
-
//# sourceMappingURL=rich_text_editor-
|
|
2992
|
+
//# sourceMappingURL=rich_text_editor-DYu2R0kw.js.map
|