@dialpad/dialtone-vue 4.11.0 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combobox-BKj61IcR.js → Combobox-8vN7Njqe.js} +3 -3
- package/dist/{Combobox-BKj61IcR.js.map → Combobox-8vN7Njqe.js.map} +1 -1
- package/dist/{Combobox-BOGcBq-6.cjs → Combobox-CmASo310.cjs} +2 -2
- package/dist/{Combobox-BOGcBq-6.cjs.map → Combobox-CmASo310.cjs.map} +1 -1
- package/dist/{Datepicker-DOSIyo8a.js → Datepicker-BeNUNF5U.js} +2 -2
- package/dist/{Datepicker-DOSIyo8a.js.map → Datepicker-BeNUNF5U.js.map} +1 -1
- package/dist/{Datepicker-DfdVsVb9.cjs → Datepicker-C-aExL3M.cjs} +2 -2
- package/dist/{Datepicker-DfdVsVb9.cjs.map → Datepicker-C-aExL3M.cjs.map} +1 -1
- package/dist/{EmojiPicker-B_ZVTdOY.js → EmojiPicker-Bondna8R.js} +2 -2
- package/dist/{EmojiPicker-B_ZVTdOY.js.map → EmojiPicker-Bondna8R.js.map} +1 -1
- package/dist/{EmojiPicker-DS8XmAHV.cjs → EmojiPicker-DDtsv-Ix.cjs} +2 -2
- package/dist/{EmojiPicker-DS8XmAHV.cjs.map → EmojiPicker-DDtsv-Ix.cjs.map} +1 -1
- package/dist/{FilterPill-C4TXD8Tl.js → FilterPill-BUAdXhR-.js} +5 -5
- package/dist/{FilterPill-C4TXD8Tl.js.map → FilterPill-BUAdXhR-.js.map} +1 -1
- package/dist/{FilterPill-BmYe_SsY.cjs → FilterPill-CgM4bCLl.cjs} +2 -2
- package/dist/{FilterPill-BmYe_SsY.cjs.map → FilterPill-CgM4bCLl.cjs.map} +1 -1
- package/dist/{ForceLinkify-BMmlUc8Q.cjs → ForceLinkify-5mUtF-wp.cjs} +2 -2
- package/dist/{ForceLinkify-BMmlUc8Q.cjs.map → ForceLinkify-5mUtF-wp.cjs.map} +1 -1
- package/dist/{ForceLinkify-Cw3Q1Nn7.js → ForceLinkify-W4glPHzT.js} +1 -1
- package/dist/{ForceLinkify-Cw3Q1Nn7.js.map → ForceLinkify-W4glPHzT.js.map} +1 -1
- package/dist/{MarkdownRenderer-CH4L8Evn.cjs → MarkdownRenderer-DHZjuYwF.cjs} +2 -2
- package/dist/{MarkdownRenderer-CH4L8Evn.cjs.map → MarkdownRenderer-DHZjuYwF.cjs.map} +1 -1
- package/dist/{MarkdownRenderer-BR-fbldH.js → MarkdownRenderer-uO19k9XV.js} +1 -1
- package/dist/{MarkdownRenderer-BR-fbldH.js.map → MarkdownRenderer-uO19k9XV.js.map} +1 -1
- package/dist/{Presence-DG9Kvu5J.cjs → Presence-CgrPxxCh.cjs} +2 -2
- package/dist/{Presence-DG9Kvu5J.cjs.map → Presence-CgrPxxCh.cjs.map} +1 -1
- package/dist/{Presence-BkPCvddH.js → Presence-Cvkwr3-o.js} +2 -2
- package/dist/{Presence-BkPCvddH.js.map → Presence-Cvkwr3-o.js.map} +1 -1
- package/dist/{ProgressBar-BMycZBZE.cjs → ProgressBar-B3sKagEm.cjs} +2 -2
- package/dist/{ProgressBar-BMycZBZE.cjs.map → ProgressBar-B3sKagEm.cjs.map} +1 -1
- package/dist/{ProgressBar-Cj8xqPc0.js → ProgressBar-BR6u1SYw.js} +1 -1
- package/dist/{ProgressBar-Cj8xqPc0.js.map → ProgressBar-BR6u1SYw.js.map} +1 -1
- package/dist/{Resizable-DQoUk81S.cjs → Resizable-DNRQ89ei.cjs} +2 -2
- package/dist/{Resizable-DQoUk81S.cjs.map → Resizable-DNRQ89ei.cjs.map} +1 -1
- package/dist/{Resizable-BkijqucD.js → Resizable-ZMxRRIiG.js} +3 -3
- package/dist/{Resizable-BkijqucD.js.map → Resizable-ZMxRRIiG.js.map} +1 -1
- package/dist/{ResizableHandle-D2gZ6dg5.cjs → ResizableHandle-Dj5cqVLM.cjs} +2 -2
- package/dist/{ResizableHandle-D2gZ6dg5.cjs.map → ResizableHandle-Dj5cqVLM.cjs.map} +1 -1
- package/dist/{ResizableHandle-MDdaNR_t.js → ResizableHandle-Py6b-ZRJ.js} +3 -3
- package/dist/{ResizableHandle-MDdaNR_t.js.map → ResizableHandle-Py6b-ZRJ.js.map} +1 -1
- package/dist/{ResizableUtils-ChIk3Blc.js → ResizableUtils-D8f1CrnP.js} +1 -1
- package/dist/{ResizableUtils-ChIk3Blc.js.map → ResizableUtils-D8f1CrnP.js.map} +1 -1
- package/dist/RichTextEditor-D5n9tM7A.cjs +11 -0
- package/dist/{RichTextEditor-D6kCBnLJ.cjs.map → RichTextEditor-D5n9tM7A.cjs.map} +1 -1
- package/dist/{RichTextEditor-BIcaFJQp.js → RichTextEditor-Dit5pXhR.js} +318 -318
- package/dist/{RichTextEditor-BIcaFJQp.js.map → RichTextEditor-Dit5pXhR.js.map} +1 -1
- package/dist/{Scroller-eXc7l23J.cjs → Scroller-B1jRO70r.cjs} +2 -2
- package/dist/{Scroller-eXc7l23J.cjs.map → Scroller-B1jRO70r.cjs.map} +1 -1
- package/dist/{Scroller-D6LZtmkL.js → Scroller-sUpsRoYR.js} +3 -3
- package/dist/{Scroller-D6LZtmkL.js.map → Scroller-sUpsRoYR.js.map} +1 -1
- package/dist/{Slider-oJROUIMS.js → Slider-DCHze-Pg.js} +4 -4
- package/dist/{Slider-oJROUIMS.js.map → Slider-DCHze-Pg.js.map} +1 -1
- package/dist/{Slider-B7O2M5_S.cjs → Slider-DJNR095B.cjs} +2 -2
- package/dist/{Slider-B7O2M5_S.cjs.map → Slider-DJNR095B.cjs.map} +1 -1
- package/dist/{Text-CfiPqjL0.js → Text-B6HaId2l.js} +2 -2
- package/dist/{Text-CfiPqjL0.js.map → Text-B6HaId2l.js.map} +1 -1
- package/dist/{Text-BDgOWPw7.cjs → Text-BosPFEHO.cjs} +2 -2
- package/dist/{Text-BDgOWPw7.cjs.map → Text-BosPFEHO.cjs.map} +1 -1
- package/dist/{TextList-DXEov7Ls.js → TextList-BsE0G1zC.js} +1 -1
- package/dist/{TextList-DXEov7Ls.js.map → TextList-BsE0G1zC.js.map} +1 -1
- package/dist/{TextList-D3HHK2DW.cjs → TextList-DvuP7qmJ.cjs} +2 -2
- package/dist/{TextList-D3HHK2DW.cjs.map → TextList-DvuP7qmJ.cjs.map} +1 -1
- package/dist/{TextListItem-CaFTtZ3G.js → TextListItem-Cm_gTXMN.js} +2 -2
- package/dist/{TextListItem-CaFTtZ3G.js.map → TextListItem-Cm_gTXMN.js.map} +1 -1
- package/dist/{TextListItem-C2Vc8Gnu.cjs → TextListItem-Dd7Ht3T9.cjs} +2 -2
- package/dist/{TextListItem-C2Vc8Gnu.cjs.map → TextListItem-Dd7Ht3T9.cjs.map} +1 -1
- package/dist/{Toast-DImJ0PkZ.cjs → Toast-B2Pf0Xwa.cjs} +2 -2
- package/dist/{Toast-DImJ0PkZ.cjs.map → Toast-B2Pf0Xwa.cjs.map} +1 -1
- package/dist/{Toast-AGiQccuG.js → Toast-DtUEXL_6.js} +3 -3
- package/dist/{Toast-AGiQccuG.js.map → Toast-DtUEXL_6.js.map} +1 -1
- package/dist/{UseResizableCalculations-DTxD7NKO.js → UseResizableCalculations-BG_DFstC.js} +2 -2
- package/dist/{UseResizableCalculations-DTxD7NKO.js.map → UseResizableCalculations-BG_DFstC.js.map} +1 -1
- package/dist/chunk-BK-Lzi7j.cjs +1 -0
- package/dist/common/composables/use-accessible-name-warning.cjs +1 -1
- package/dist/common/composables/use-indicator-animation.cjs +1 -1
- package/dist/common/dates/index.cjs +1 -1
- package/dist/common/dates/index.cjs.map +1 -1
- package/dist/common/dates/index.d.ts +1 -1
- package/dist/common/dates/index.d.ts.map +1 -1
- package/dist/common/dates/index.js +1 -1
- package/dist/common/dates/index.js.map +1 -1
- package/dist/common/emoji/index.cjs +1 -1
- package/dist/common/mixins/input-group.cjs +1 -1
- package/dist/common/mixins/input-group.js +1 -1
- package/dist/common/mixins/input.cjs +1 -1
- package/dist/common/mixins/input.js +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
- package/dist/common/mixins/keyboard-list-navigation.js +1 -1
- package/dist/common/mixins/modal.cjs +1 -1
- package/dist/common/mixins/modal.cjs.map +1 -1
- package/dist/common/mixins/modal.d.ts +1 -1
- package/dist/common/mixins/modal.d.ts.map +1 -1
- package/dist/common/mixins/modal.js +1 -1
- package/dist/common/mixins/modal.js.map +1 -1
- package/dist/common/mixins/mode.js +1 -1
- package/dist/common/phone/index.cjs +1 -1
- package/dist/common/sr_only_close_button.vue.d.ts +6 -5
- 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.js +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/components/Avatar/Avatar.vue.d.ts +4 -4
- package/dist/components/Banner/Banner.vue.d.ts +12 -16
- package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
- package/dist/components/Box/Box.vue.d.ts +6 -10
- package/dist/components/Box/Box.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +2 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +4 -3
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +2 -6
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -6
- package/dist/components/Chip/Chip.vue.d.ts +6 -5
- package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.vue.d.ts +3 -3
- package/dist/components/Combobox/ComboboxLoadingList.vue.d.ts.map +1 -1
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts +11 -11
- package/dist/components/ComboboxWithPopover/ComboboxWithPopover.vue.d.ts.map +1 -1
- package/dist/components/Datepicker/Datepicker.vue.d.ts +1 -66
- package/dist/components/Datepicker/Modules/Calendar.vue.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +11 -11
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts +1 -904
- package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/Modules/EmojiDescription.vue.d.ts +1 -1
- package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts +1 -810
- package/dist/components/EmojiPicker/Modules/EmojiSearch.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts +1 -4
- package/dist/components/EmojiPicker/Modules/EmojiSelector.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts +1 -3
- package/dist/components/EmojiPicker/Modules/EmojiSkinSelector.vue.d.ts.map +1 -1
- package/dist/components/EmojiPicker/Modules/EmojiTabset.vue.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.vue.d.ts +11 -3
- package/dist/components/EmptyState/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/FilterPill.vue.d.ts +42 -52
- package/dist/components/FilterPill/FilterPill.vue.d.ts.map +1 -1
- package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts +7 -11
- package/dist/components/FilterPill/modules/FilterPillOptionGroup.vue.d.ts.map +1 -1
- package/dist/components/Hovercard/Hovercard.vue.d.ts +11 -3264
- package/dist/components/Hovercard/Hovercard.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/ImageViewer.vue.d.ts +11 -10
- package/dist/components/ImageViewer/ImageViewer.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +2 -6
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.vue.d.ts +2 -6
- package/dist/components/InputGroup/InputGroup.vue.d.ts.map +1 -1
- package/dist/components/KeyboardShortcut/KeyboardShortcut.vue.d.ts +2 -6
- package/dist/components/Loader/Loader.vue.d.ts +3 -2
- package/dist/components/Loader/Loader.vue.d.ts.map +1 -1
- package/dist/components/Modal/Modal.vue.d.ts +13 -16
- package/dist/components/Modal/Modal.vue.d.ts.map +1 -1
- package/dist/components/Notice/Notice.vue.d.ts +12 -16
- package/dist/components/Notice/Notice.vue.d.ts.map +1 -1
- package/dist/components/Notice/NoticeAction.vue.d.ts +11 -10
- package/dist/components/Notice/NoticeAction.vue.d.ts.map +1 -1
- package/dist/components/Notice/NoticeContent.vue.d.ts +2 -6
- package/dist/components/Notice/NoticeContent.vue.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +7 -6
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +11 -11
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts +6 -5
- package/dist/components/Popover/PopoverHeaderFooter.vue.d.ts.map +1 -1
- package/dist/components/Presence/Presence.vue.d.ts +4 -4
- package/dist/components/Presence/modules/presence_active_icon.vue.d.ts +1 -1
- package/dist/components/Presence/modules/presence_active_icon.vue.d.ts.map +1 -1
- package/dist/components/Presence/modules/presence_away_icon.vue.d.ts +1 -1
- package/dist/components/Presence/modules/presence_away_icon.vue.d.ts.map +1 -1
- package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts +1 -1
- package/dist/components/Presence/modules/presence_busy_icon.vue.d.ts.map +1 -1
- package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts +1 -1
- package/dist/components/Presence/modules/presence_dnd_icon.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/Prose/Prose.vue.d.ts +5 -14
- package/dist/components/Prose/Prose.vue.d.ts.map +1 -1
- package/dist/components/Radio/Radio.vue.d.ts +2 -6
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts +2 -6
- package/dist/components/Resizable/Resizable.vue.d.ts +16 -23
- package/dist/components/Resizable/Resizable.vue.d.ts.map +1 -1
- package/dist/components/Resizable/ResizableHandle.vue.d.ts +1 -3
- package/dist/components/Resizable/ResizablePanel.vue.d.ts +9 -14
- package/dist/components/Resizable/ResizablePanel.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Channels/ChannelSuggestion.vue.d.ts.map +1 -1
- package/dist/components/RichTextEditor/Extensions/Mentions/MentionSuggestion.vue.d.ts +6 -10
- package/dist/components/RichTextEditor/Extensions/SlashCommand/SlashCommandSuggestion.vue.d.ts +2 -6
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts +18 -21
- package/dist/components/RichTextEditor/Extensions/Variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts +15 -27
- package/dist/components/Scroller/Modules/CoreScroller.vue.d.ts.map +1 -1
- package/dist/components/Scroller/Modules/DynamicScroller.vue.d.ts +18 -22
- package/dist/components/Scroller/Scroller.vue.d.ts +15 -772
- package/dist/components/Scroller/Scroller.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +5 -233
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts +24 -23
- package/dist/components/SegmentedControl/SegmentedControlItem.vue.d.ts.map +1 -1
- package/dist/components/SelectMenu/SelectMenu.vue.d.ts +2 -6
- package/dist/components/SelectMenu/SelectMenu.vue.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +12 -23
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +17 -17
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButtonEnd.vue.d.ts +3 -3
- package/dist/components/SplitButton/SplitButtonStart.vue.d.ts +3 -3
- package/dist/components/Tab/Tab.vue.d.ts +3 -3
- package/dist/components/Tab/TabPanel.vue.d.ts +1 -1
- package/dist/components/Tab/TabPanel.vue.d.ts.map +1 -1
- package/dist/components/Text/Text.vue.d.ts +2 -6
- package/dist/components/Text/modules/SlideViewport.vue.d.ts +6 -19
- package/dist/components/Text/modules/SlideViewport.vue.d.ts.map +1 -1
- package/dist/components/TextList/TextList.vue.d.ts +6 -15
- package/dist/components/TextList/TextList.vue.d.ts.map +1 -1
- package/dist/components/TextList/TextListItem.vue.d.ts +8 -12
- package/dist/components/TextList/TextListItem.vue.d.ts.map +1 -1
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts +12 -16
- package/dist/components/Toast/Layouts/ToastLayoutAlternate.vue.d.ts.map +1 -1
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts +12 -16
- package/dist/components/Toast/Layouts/ToastLayoutDefault.vue.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +48 -64
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +17 -17
- package/dist/dist-3sDwkm0K.js +382 -0
- package/dist/dist-3sDwkm0K.js.map +1 -0
- package/dist/dist-DzjXnVZt.cjs +2 -0
- package/dist/dist-DzjXnVZt.cjs.map +1 -0
- package/dist/{floating-ui.dom-CuL5LTgX.js → floating-ui.dom-B8Mp8J0T.js} +1 -1
- package/dist/{floating-ui.dom-CuL5LTgX.js.map → floating-ui.dom-B8Mp8J0T.js.map} +1 -1
- package/dist/{floating-ui.dom-S7QIcAlj.cjs → floating-ui.dom-C23Y4xMx.cjs} +1 -1
- package/dist/{floating-ui.dom-S7QIcAlj.cjs.map → floating-ui.dom-C23Y4xMx.cjs.map} +1 -1
- package/dist/lib/avatar/avatar.cjs +1 -1
- package/dist/lib/avatar/avatar.js +3 -3
- package/dist/lib/avatar/index.d.ts +1 -0
- package/dist/lib/badge/badge.cjs +1 -1
- package/dist/lib/badge/badge.js +2 -2
- package/dist/lib/badge/index.d.ts +1 -0
- package/dist/lib/banner/banner.cjs +1 -1
- package/dist/lib/banner/banner.js +2 -2
- package/dist/lib/banner/index.d.ts +1 -0
- package/dist/lib/box/box.cjs +1 -1
- package/dist/lib/box/index.d.ts +1 -0
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.js +2 -2
- package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/lib/breadcrumbs/index.d.ts +1 -0
- package/dist/lib/button/button.cjs +1 -1
- package/dist/lib/button/button.js +2 -2
- package/dist/lib/button/index.d.ts +1 -0
- package/dist/lib/button-group/button-group.cjs +1 -1
- package/dist/lib/button-group/button-group.js +1 -1
- package/dist/lib/button-group/buttons-decorator.cjs +1 -1
- package/dist/lib/button-group/buttons-decorator.js +1 -1
- package/dist/lib/button-group/index.d.ts +1 -0
- package/dist/lib/card/card.cjs +1 -1
- package/dist/lib/card/card.js +2 -2
- package/dist/lib/card/index.d.ts +1 -0
- package/dist/lib/checkbox/checkbox.cjs +1 -1
- package/dist/lib/checkbox/checkbox.js +3 -3
- package/dist/lib/checkbox/index.d.ts +1 -0
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.js +1 -1
- package/dist/lib/checkbox-group/index.d.ts +1 -0
- package/dist/lib/chip/chip.cjs +1 -1
- package/dist/lib/chip/chip.js +2 -2
- package/dist/lib/chip/index.d.ts +1 -0
- package/dist/lib/codeblock/codeblock.cjs +1 -1
- package/dist/lib/codeblock/codeblock.js +1 -1
- package/dist/lib/codeblock/index.d.ts +1 -0
- package/dist/lib/collapsible/collapsible-lazy-show.cjs +1 -1
- package/dist/lib/collapsible/collapsible-lazy-show.js +1 -1
- package/dist/lib/collapsible/collapsible.cjs +1 -1
- package/dist/lib/collapsible/collapsible.js +2 -2
- package/dist/lib/collapsible/index.d.ts +1 -0
- package/dist/lib/combobox/combobox-empty-list.cjs +1 -1
- package/dist/lib/combobox/combobox-empty-list.js +1 -1
- package/dist/lib/combobox/combobox-loading-list.cjs +1 -1
- package/dist/lib/combobox/combobox-loading-list.js +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.d.ts +1 -0
- package/dist/lib/combobox/index.js +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +2 -2
- package/dist/lib/combobox-multi-select/index.d.ts +1 -0
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +4 -4
- package/dist/lib/combobox-with-popover/index.d.ts +1 -0
- 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.d.ts +1 -0
- package/dist/lib/datepicker/index.js +1 -1
- package/dist/lib/datepicker/utils.cjs +1 -1
- package/dist/lib/description-list/description-list.cjs +1 -1
- package/dist/lib/description-list/description-list.js +1 -1
- package/dist/lib/description-list/index.d.ts +1 -0
- package/dist/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/lib/dropdown/dropdown-list.js +2 -2
- package/dist/lib/dropdown/dropdown-separator.cjs +1 -1
- package/dist/lib/dropdown/dropdown-separator.js +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.js +3 -3
- package/dist/lib/dropdown/index.d.ts +1 -0
- package/dist/lib/emoji/emoji.cjs +1 -1
- package/dist/lib/emoji/emoji.js +1 -1
- package/dist/lib/emoji/index.d.ts +1 -0
- 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.d.ts +1 -0
- package/dist/lib/emoji-picker/index.js +1 -1
- package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs +1 -1
- package/dist/lib/emoji-text-wrapper/index.d.ts +1 -0
- package/dist/lib/empty-state/empty-state.cjs +1 -1
- package/dist/lib/empty-state/empty-state.js +2 -2
- package/dist/lib/empty-state/index.d.ts +1 -0
- package/dist/lib/filter-pill/filter-pill-controlled.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill-controlled.js +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs +1 -1
- package/dist/lib/filter-pill/filter-pill.js +1 -1
- package/dist/lib/filter-pill/index.cjs +1 -1
- package/dist/lib/filter-pill/index.d.ts +1 -0
- package/dist/lib/filter-pill/index.js +1 -1
- package/dist/lib/focusgroup-directive/index.d.ts +1 -0
- package/dist/lib/focustrap-directive/index.d.ts +1 -0
- package/dist/lib/hovercard/hovercard.cjs +1 -1
- package/dist/lib/hovercard/hovercard.js +2 -2
- package/dist/lib/hovercard/index.d.ts +1 -0
- package/dist/lib/icon/icon-constants.cjs +1 -1
- package/dist/lib/icon/icon.cjs +1 -1
- package/dist/lib/icon/icon.js +1 -1
- package/dist/lib/icon/index.d.ts +1 -0
- package/dist/lib/illustration/illustration-constants.cjs +1 -1
- package/dist/lib/illustration/illustration.cjs +1 -1
- package/dist/lib/illustration/index.d.ts +1 -0
- package/dist/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/lib/image-viewer/image-viewer.js +2 -2
- package/dist/lib/image-viewer/index.d.ts +1 -0
- package/dist/lib/input/index.d.ts +1 -0
- package/dist/lib/input/input.cjs +1 -1
- package/dist/lib/input/input.js +3 -3
- package/dist/lib/input-group/index.d.ts +1 -0
- package/dist/lib/input-group/input-group.cjs +1 -1
- package/dist/lib/input-group/input-group.js +3 -3
- package/dist/lib/item-layout/index.d.ts +1 -0
- package/dist/lib/item-layout/item-layout.cjs +1 -1
- package/dist/lib/item-layout/item-layout.js +2 -2
- package/dist/lib/keyboard-shortcut/index.d.ts +1 -0
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +2 -2
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.js +2 -2
- package/dist/lib/lazy-show/index.d.ts +1 -0
- package/dist/lib/lazy-show/lazy-show.cjs +1 -1
- package/dist/lib/lazy-show/lazy-show.js +1 -1
- package/dist/lib/link/index.d.ts +1 -0
- package/dist/lib/link/link.cjs +1 -1
- package/dist/lib/link/link.js +1 -1
- package/dist/lib/list-item/index.d.ts +1 -0
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.js +2 -2
- package/dist/lib/list-item-group/index.d.ts +1 -0
- package/dist/lib/list-item-group/list-item-group.cjs +1 -1
- package/dist/lib/list-item-group/list-item-group.js +2 -2
- package/dist/lib/loader/index.d.ts +1 -0
- package/dist/lib/loader/loader.cjs +1 -1
- package/dist/lib/loader/loader.js +1 -1
- package/dist/lib/modal/index.d.ts +1 -0
- package/dist/lib/modal/modal.cjs +1 -1
- package/dist/lib/modal/modal.js +3 -3
- package/dist/lib/mode-directive/index.d.ts +1 -0
- package/dist/lib/mode-directive/mode.js +1 -1
- package/dist/lib/mode-island/index.d.ts +1 -0
- package/dist/lib/mode-island/mode-island.cjs +1 -1
- package/dist/lib/mode-island/mode-island.js +1 -1
- package/dist/lib/motion-text/index.d.ts +1 -0
- package/dist/lib/motion-text/motion-text.cjs +1 -1
- package/dist/lib/motion-text/motion-text.js +1 -1
- package/dist/lib/notice/index.d.ts +1 -0
- package/dist/lib/notice/notice-action.cjs +1 -1
- package/dist/lib/notice/notice-action.js +1 -1
- package/dist/lib/notice/notice-content.cjs +1 -1
- package/dist/lib/notice/notice-content.js +3 -3
- package/dist/lib/notice/notice-icon.cjs +1 -1
- package/dist/lib/notice/notice-icon.js +2 -2
- package/dist/lib/notice/notice.cjs +1 -1
- package/dist/lib/notice/notice.js +1 -1
- package/dist/lib/pagination/index.d.ts +1 -0
- package/dist/lib/pagination/pagination.cjs +1 -1
- package/dist/lib/pagination/pagination.js +1 -1
- package/dist/lib/popover/index.d.ts +1 -0
- package/dist/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/lib/popover/popover-header-footer.js +2 -2
- package/dist/lib/popover/popover.cjs +1 -1
- package/dist/lib/popover/popover.js +2 -2
- package/dist/lib/popover/tippy-utils.cjs +1 -1
- package/dist/lib/presence/index.cjs +1 -1
- package/dist/lib/presence/index.d.ts +1 -0
- package/dist/lib/presence/index.js +1 -1
- package/dist/lib/presence/presence.cjs +1 -1
- package/dist/lib/presence/presence.js +1 -1
- package/dist/lib/progress-bar/index.cjs +1 -1
- package/dist/lib/progress-bar/index.d.ts +1 -0
- package/dist/lib/progress-bar/index.js +1 -1
- package/dist/lib/progress-bar/progress-bar.cjs +1 -1
- package/dist/lib/progress-bar/progress-bar.js +1 -1
- package/dist/lib/progress-circle/index.d.ts +1 -0
- package/dist/lib/progress-circle/progress-circle.cjs +1 -1
- package/dist/lib/progress-circle/progress-circle.js +1 -1
- package/dist/lib/prose/index.d.ts +1 -0
- package/dist/lib/prose/prose.cjs +1 -1
- package/dist/lib/radio/index.d.ts +1 -0
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.js +3 -3
- package/dist/lib/radio-group/index.d.ts +1 -0
- package/dist/lib/radio-group/radios-decorator.cjs +1 -1
- package/dist/lib/radio-group/radios-decorator.js +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.d.ts +1 -0
- 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.js +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/force-linkify.cjs +1 -1
- package/dist/lib/rich-text-editor/force-linkify.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.d.ts +1 -0
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdown-renderer.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/index.d.ts +1 -0
- package/dist/lib/root-layout/root-layout.cjs +1 -1
- package/dist/lib/root-layout/root-layout.js +1 -1
- package/dist/lib/scrollbar-directive/index.d.ts +1 -0
- package/dist/lib/scrollbar-directive/scrollbar.cjs +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.d.ts +1 -0
- 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/segmented-control/index.d.ts +1 -0
- package/dist/lib/segmented-control/segmented-control-item.cjs +1 -1
- package/dist/lib/segmented-control/segmented-control.cjs +1 -1
- package/dist/lib/segmented-control/segmented-control.js +1 -1
- package/dist/lib/select-menu/index.d.ts +1 -0
- package/dist/lib/select-menu/select-menu.cjs +1 -1
- package/dist/lib/select-menu/select-menu.js +3 -3
- package/dist/lib/skeleton/index.d.ts +1 -0
- package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
- package/dist/lib/skeleton/skeleton-list-item.js +1 -1
- package/dist/lib/skeleton/skeleton-paragraph.cjs +1 -1
- package/dist/lib/skeleton/skeleton-paragraph.js +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
- package/dist/lib/skeleton/skeleton-shape.js +1 -1
- package/dist/lib/skeleton/skeleton-text.cjs +1 -1
- package/dist/lib/skeleton/skeleton-text.js +1 -1
- package/dist/lib/skeleton/skeleton.cjs +1 -1
- package/dist/lib/skeleton/skeleton.js +1 -1
- package/dist/lib/slider/index.cjs +1 -1
- package/dist/lib/slider/index.d.ts +1 -0
- package/dist/lib/slider/index.js +1 -1
- package/dist/lib/slider/slider.cjs +1 -1
- package/dist/lib/slider/slider.js +1 -1
- package/dist/lib/split-button/index.d.ts +1 -0
- package/dist/lib/split-button/split-button-end.cjs +1 -1
- package/dist/lib/split-button/split-button-end.js +2 -2
- package/dist/lib/split-button/split-button-start.cjs +1 -1
- package/dist/lib/split-button/split-button-start.js +1 -1
- package/dist/lib/split-button/split-button.cjs +1 -1
- package/dist/lib/split-button/split-button.js +2 -2
- package/dist/lib/stack/index.d.ts +1 -0
- package/dist/lib/stack/stack.cjs +1 -1
- package/dist/lib/stack/stack.js +1 -1
- package/dist/lib/tab/index.d.ts +1 -0
- package/dist/lib/tab/tab-group.cjs +1 -1
- package/dist/lib/tab/tab-group.js +1 -1
- package/dist/lib/tab/tab-panel.cjs +1 -1
- package/dist/lib/tab/tab-panel.js +2 -2
- package/dist/lib/tab/tab.cjs +1 -1
- package/dist/lib/tab/tab.js +1 -1
- package/dist/lib/text/index.cjs +1 -1
- package/dist/lib/text/index.d.ts +1 -0
- package/dist/lib/text/index.js +1 -1
- package/dist/lib/text/text.cjs +1 -1
- package/dist/lib/text/text.js +1 -1
- package/dist/lib/text-list/index.cjs +1 -1
- package/dist/lib/text-list/index.d.ts +1 -0
- package/dist/lib/text-list/index.js +2 -2
- package/dist/lib/text-list/text-list-item.cjs +1 -1
- package/dist/lib/text-list/text-list-item.js +1 -1
- package/dist/lib/text-list/text-list.cjs +1 -1
- package/dist/lib/text-list/text-list.js +1 -1
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.d.ts +1 -0
- 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/index.d.ts +1 -0
- package/dist/lib/toggle/toggle.cjs +1 -1
- package/dist/lib/toggle/toggle.js +2 -2
- package/dist/lib/tooltip/index.d.ts +1 -0
- package/dist/lib/tooltip/tooltip.cjs +1 -1
- package/dist/lib/tooltip/tooltip.js +2 -2
- package/dist/lib/tooltip-directive/index.d.ts +1 -0
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +2 -2
- package/dist/lib/validation-messages/index.d.ts +1 -0
- package/dist/lib/validation-messages/validation-messages.cjs +1 -1
- package/dist/lib/validation-messages/validation-messages.js +2 -2
- package/dist/localization/index.cjs +1 -1
- package/dist/localization/index.cjs.map +1 -1
- package/dist/localization/index.d.ts +25 -0
- package/dist/localization/index.d.ts.map +1 -0
- package/dist/localization/index.js.map +1 -1
- package/dist/localization/sync-icons.d.ts +3 -0
- package/dist/localization/sync-icons.d.ts.map +1 -0
- package/dist/{mode_constants-B8_1b5T8.js → mode_constants-CC73P7d-.js} +1 -1
- package/dist/{mode_constants-B8_1b5T8.js.map → mode_constants-CC73P7d-.js.map} +1 -1
- package/dist/node_modules/@tiptap/vue-3.cjs +1 -1
- package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
- package/dist/node_modules/@tiptap/vue-3.js +2 -363
- package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
- package/dist/shared/sr_only_close_button.cjs +1 -1
- package/dist/shared/sr_only_close_button.js +1 -1
- package/dist/{utils-BL_SrwnF.js → utils-CXaaZqVu.js} +1 -1
- package/dist/{utils-BL_SrwnF.js.map → utils-CXaaZqVu.js.map} +1 -1
- package/dist/{utils-GofHWJKi.cjs → utils-Db-kV6Sr.cjs} +2 -2
- package/dist/{utils-GofHWJKi.cjs.map → utils-Db-kV6Sr.cjs.map} +1 -1
- package/package.json +7 -6
- package/dist/RichTextEditor-D6kCBnLJ.cjs +0 -11
- package/dist/chunk-Bmb41Sf3.cjs +0 -1
- /package/dist/{_plugin-vue_export-helper-BecorN_g.js → _plugin-vue_export-helper-B52Kst-M.js} +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { a as e, c as t, d as n, l as r, n as i, t as a } from "./dist-3sDwkm0K.js";
|
|
2
|
+
import { M as o, O as s, T as c, d as l } from "./utils-CXaaZqVu.js";
|
|
3
|
+
import { t as u } from "./_plugin-vue_export-helper-B52Kst-M.js";
|
|
4
|
+
import { codeToEmojiData as d, emojiRegex as f, emojiShortCodeRegex as ee, getEmojiData as te, stringToUnicode as ne } from "./common/emoji/index.js";
|
|
5
|
+
import re from "./lib/avatar/avatar.js";
|
|
6
|
+
import ie from "./lib/badge/badge.js";
|
|
7
|
+
import { t as ae } from "./Text-B6HaId2l.js";
|
|
8
|
+
import { DialtoneLocalization as p } from "./localization/index.js";
|
|
9
|
+
import oe from "./lib/link/link.js";
|
|
10
|
+
import se from "./lib/button/button.js";
|
|
11
|
+
import ce from "./lib/list-item/list-item.js";
|
|
11
12
|
import m from "./lib/stack/stack.js";
|
|
12
|
-
import
|
|
13
|
+
import le from "./lib/popover/popover.js";
|
|
13
14
|
import h from "./lib/emoji/emoji.js";
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { Extension as De, InputRule as Oe, Mark as H, Node as U, combineTransactionSteps as ke, findChildrenInRange as Ae, getChangedRanges as je, getMarkRange as Me, getMarksBetween as Ne, getText as Pe, getTextSerializersFromSchema as Fe, isTextSelection as Ie, mergeAttributes as W, nodeInputRule as Le, nodePasteRule as G, posToDOMRect as Re } from "@tiptap/core";
|
|
15
|
+
import ue from "./lib/input/input.js";
|
|
16
|
+
import { a as g, c as _, i as v, l as y, n as de, o as b, s as x, t as S, u as C } from "./floating-ui.dom-B8Mp8J0T.js";
|
|
17
|
+
import { t as fe } from "./ForceLinkify-W4glPHzT.js";
|
|
18
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as pe, RICH_TEXT_EDITOR_OUTPUT_FORMATS as me, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as w } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
19
|
+
import { t as T } from "./MarkdownRenderer-uO19k9XV.js";
|
|
20
|
+
import { Fragment as he, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createTextVNode as A, createVNode as j, defineComponent as ge, h as _e, markRaw as ve, mergeProps as ye, nextTick as be, normalizeClass as xe, onBeforeUnmount as M, onMounted as N, openBlock as P, ref as F, renderList as Se, resolveComponent as I, resolveDynamicComponent as Ce, toDisplayString as L, vShow as we, withCtx as R, withDirectives as Te, withKeys as Ee, withModifiers as z } from "vue";
|
|
21
|
+
import { DtIconLock as De } from "@dialpad/dialtone-icons/vue";
|
|
22
|
+
import { emojiPattern as B } from "regex-combined-emojis";
|
|
23
|
+
import { Extension as Oe, InputRule as ke, Mark as V, Node as H, combineTransactionSteps as Ae, findChildrenInRange as je, getChangedRanges as Me, getMarkRange as Ne, getMarksBetween as Pe, getText as Fe, getTextSerializersFromSchema as Ie, isTextSelection as Le, mergeAttributes as U, nodeInputRule as Re, nodePasteRule as W, posToDOMRect as G } from "@tiptap/core";
|
|
24
24
|
import { NodeSelection as ze, Plugin as K, PluginKey as q } from "@tiptap/pm/state";
|
|
25
25
|
import { CellSelection as Be } from "@tiptap/pm/tables";
|
|
26
26
|
import Ve from "@tiptap/extension-blockquote";
|
|
@@ -29,29 +29,29 @@ import Ue from "@tiptap/extension-code";
|
|
|
29
29
|
import We from "@tiptap/extension-document";
|
|
30
30
|
import { Gapcursor as Ge, Placeholder as Ke, UndoRedo as qe } from "@tiptap/extensions";
|
|
31
31
|
import Je from "@tiptap/extension-hard-break";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { BulletList as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import { Table as
|
|
42
|
-
import { TextStyle as
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
32
|
+
import Ye from "@tiptap/extension-paragraph";
|
|
33
|
+
import Xe from "@tiptap/extension-bold";
|
|
34
|
+
import { BulletList as Ze, ListItem as Qe, OrderedList as $e } from "@tiptap/extension-list";
|
|
35
|
+
import et from "@tiptap/extension-italic";
|
|
36
|
+
import tt from "@tiptap/extension-link";
|
|
37
|
+
import nt from "@tiptap/extension-strike";
|
|
38
|
+
import rt from "@tiptap/extension-underline";
|
|
39
|
+
import it from "@tiptap/extension-text";
|
|
40
|
+
import at from "@tiptap/extension-text-align";
|
|
41
|
+
import { Table as ot, TableCell as st, TableHeader as ct, TableRow as lt } from "@tiptap/extension-table";
|
|
42
|
+
import { TextStyle as ut, TextStyleKit as dt } from "@tiptap/extension-text-style";
|
|
43
|
+
import ft from "@tiptap/suggestion";
|
|
44
|
+
import pt from "@tiptap/extension-image";
|
|
45
|
+
import J from "@tiptap/extension-mention";
|
|
46
|
+
import mt from "@dialpad/dialtone-icons/vue/hash";
|
|
47
|
+
import ht from "@dialpad/dialtone-icons/vue/lock";
|
|
48
|
+
import gt from "deep-equal";
|
|
49
49
|
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=65d98f737afae097542c692b176a81069e1b7b8d577d1d7e222a944_23bfa7b5fde667bfc96216774c3ce084/node_modules/@tiptap/vue-3/dist/menus/index.js
|
|
50
|
-
function
|
|
50
|
+
function _t(e, t) {
|
|
51
51
|
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;
|
|
52
52
|
return new DOMRect(i, n, a, o);
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var vt = class {
|
|
55
55
|
constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, shouldShow: a, appendTo: o, getReferencedVirtualElement: s, options: c }) {
|
|
56
56
|
this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.floatingUIOptions = {
|
|
57
57
|
strategy: "absolute",
|
|
@@ -69,7 +69,7 @@ var _t = class {
|
|
|
69
69
|
onUpdate: void 0,
|
|
70
70
|
onDestroy: void 0
|
|
71
71
|
}, this.shouldShow = ({ view: e, state: t, from: n, to: r }) => {
|
|
72
|
-
let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length &&
|
|
72
|
+
let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length && Le(t.selection), c = this.element.contains(document.activeElement);
|
|
73
73
|
return !(!(e.hasFocus() || c) || o || s || !this.editor.isEditable);
|
|
74
74
|
}, this.mousedownHandler = () => {
|
|
75
75
|
this.preventHide = !0;
|
|
@@ -115,13 +115,13 @@ var _t = class {
|
|
|
115
115
|
}
|
|
116
116
|
get middlewares() {
|
|
117
117
|
let e = [];
|
|
118
|
-
return this.floatingUIOptions.flip && e.push(
|
|
118
|
+
return this.floatingUIOptions.flip && e.push(g(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(y(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(_(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(S(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(C(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(de(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(b(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(x(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
|
|
119
119
|
}
|
|
120
120
|
get virtualElement() {
|
|
121
121
|
let { selection: e } = this.editor.state, t = this.getReferencedVirtualElement?.call(this);
|
|
122
122
|
if (t) return t;
|
|
123
123
|
if (!this.view?.dom?.parentNode) return;
|
|
124
|
-
let n =
|
|
124
|
+
let n = G(this.view, e.from, e.to), r = {
|
|
125
125
|
getBoundingClientRect: () => n,
|
|
126
126
|
getClientRects: () => [n]
|
|
127
127
|
};
|
|
@@ -135,7 +135,7 @@ var _t = class {
|
|
|
135
135
|
if (e instanceof Be) {
|
|
136
136
|
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);
|
|
137
137
|
if (!o || !s) return;
|
|
138
|
-
let c = o === s ? o.getBoundingClientRect() :
|
|
138
|
+
let c = o === s ? o.getBoundingClientRect() : _t(o.getBoundingClientRect(), s.getBoundingClientRect());
|
|
139
139
|
r = {
|
|
140
140
|
getBoundingClientRect: () => c,
|
|
141
141
|
getClientRects: () => [c]
|
|
@@ -145,7 +145,7 @@ var _t = class {
|
|
|
145
145
|
}
|
|
146
146
|
updatePosition() {
|
|
147
147
|
let e = this.virtualElement;
|
|
148
|
-
e &&
|
|
148
|
+
e && v(e, this.element, {
|
|
149
149
|
placement: this.floatingUIOptions.placement,
|
|
150
150
|
strategy: this.floatingUIOptions.strategy,
|
|
151
151
|
middleware: this.middlewares
|
|
@@ -197,13 +197,13 @@ var _t = class {
|
|
|
197
197
|
destroy() {
|
|
198
198
|
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();
|
|
199
199
|
}
|
|
200
|
-
},
|
|
200
|
+
}, yt = (e) => new K({
|
|
201
201
|
key: typeof e.pluginKey == "string" ? new q(e.pluginKey) : e.pluginKey,
|
|
202
|
-
view: (t) => new
|
|
202
|
+
view: (t) => new vt({
|
|
203
203
|
view: t,
|
|
204
204
|
...e
|
|
205
205
|
})
|
|
206
|
-
}),
|
|
206
|
+
}), bt = ge({
|
|
207
207
|
name: "BubbleMenu",
|
|
208
208
|
inheritAttrs: !1,
|
|
209
209
|
props: {
|
|
@@ -241,11 +241,11 @@ var _t = class {
|
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
setup(e, { slots: t, attrs: n }) {
|
|
244
|
-
let r =
|
|
245
|
-
return
|
|
244
|
+
let r = F(null);
|
|
245
|
+
return N(() => {
|
|
246
246
|
let { editor: t, options: n, pluginKey: i, resizeDelay: a, appendTo: o, shouldShow: s, getReferencedVirtualElement: c, updateDelay: l } = e, u = r.value;
|
|
247
|
-
u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(),
|
|
248
|
-
t.registerPlugin(
|
|
247
|
+
u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(), be(() => {
|
|
248
|
+
t.registerPlugin(yt({
|
|
249
249
|
editor: t,
|
|
250
250
|
element: u,
|
|
251
251
|
options: n,
|
|
@@ -257,15 +257,15 @@ var _t = class {
|
|
|
257
257
|
updateDelay: l
|
|
258
258
|
}));
|
|
259
259
|
}));
|
|
260
|
-
}),
|
|
260
|
+
}), M(() => {
|
|
261
261
|
let { pluginKey: t, editor: n } = e;
|
|
262
262
|
n.unregisterPlugin(t);
|
|
263
|
-
}), () =>
|
|
263
|
+
}), () => _e("div", {
|
|
264
264
|
ref: r,
|
|
265
265
|
...n
|
|
266
266
|
}, t.default?.call(t));
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), xt = class {
|
|
269
269
|
constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, options: a, appendTo: o, shouldShow: s }) {
|
|
270
270
|
this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: e, state: t }) => {
|
|
271
271
|
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);
|
|
@@ -313,11 +313,11 @@ var _t = class {
|
|
|
313
313
|
}, 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());
|
|
314
314
|
}
|
|
315
315
|
getTextContent(e) {
|
|
316
|
-
return
|
|
316
|
+
return Fe(e, { textSerializers: Ie(this.editor.schema) });
|
|
317
317
|
}
|
|
318
318
|
get middlewares() {
|
|
319
319
|
let e = [];
|
|
320
|
-
return this.floatingUIOptions.flip && e.push(
|
|
320
|
+
return this.floatingUIOptions.flip && e.push(g(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(y(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(_(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(S(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push(C(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(de(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(b(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(x(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
|
|
321
321
|
}
|
|
322
322
|
getShouldShow(e) {
|
|
323
323
|
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));
|
|
@@ -340,8 +340,8 @@ var _t = class {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
updatePosition() {
|
|
343
|
-
let { selection: e } = this.editor.state, t =
|
|
344
|
-
|
|
343
|
+
let { selection: e } = this.editor.state, t = G(this.view, e.from, e.to);
|
|
344
|
+
v({
|
|
345
345
|
getBoundingClientRect: () => t,
|
|
346
346
|
getClientRects: () => [t]
|
|
347
347
|
}, this.element, {
|
|
@@ -370,14 +370,14 @@ var _t = class {
|
|
|
370
370
|
destroy() {
|
|
371
371
|
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();
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, St = (e) => new K({
|
|
374
374
|
key: typeof e.pluginKey == "string" ? new q(e.pluginKey) : e.pluginKey,
|
|
375
|
-
view: (t) => new
|
|
375
|
+
view: (t) => new xt({
|
|
376
376
|
view: t,
|
|
377
377
|
...e
|
|
378
378
|
})
|
|
379
379
|
});
|
|
380
|
-
|
|
380
|
+
ge({
|
|
381
381
|
name: "FloatingMenu",
|
|
382
382
|
inheritAttrs: !1,
|
|
383
383
|
props: {
|
|
@@ -411,10 +411,10 @@ me({
|
|
|
411
411
|
}
|
|
412
412
|
},
|
|
413
413
|
setup(e, { slots: t, attrs: n }) {
|
|
414
|
-
let r =
|
|
415
|
-
return
|
|
414
|
+
let r = F(null);
|
|
415
|
+
return N(() => {
|
|
416
416
|
let { pluginKey: t, editor: n, updateDelay: i, resizeDelay: a, options: o, appendTo: s, shouldShow: c } = e, l = r.value;
|
|
417
|
-
l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(
|
|
417
|
+
l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(St({
|
|
418
418
|
pluginKey: t,
|
|
419
419
|
editor: n,
|
|
420
420
|
element: l,
|
|
@@ -424,10 +424,10 @@ me({
|
|
|
424
424
|
appendTo: s,
|
|
425
425
|
shouldShow: c
|
|
426
426
|
})));
|
|
427
|
-
}),
|
|
427
|
+
}), M(() => {
|
|
428
428
|
let { pluginKey: t, editor: n } = e;
|
|
429
429
|
n.unregisterPlugin(t);
|
|
430
|
-
}), () =>
|
|
430
|
+
}), () => _e("div", {
|
|
431
431
|
ref: r,
|
|
432
432
|
...n
|
|
433
433
|
}, t.default?.call(t));
|
|
@@ -435,54 +435,54 @@ me({
|
|
|
435
435
|
});
|
|
436
436
|
//#endregion
|
|
437
437
|
//#region components/RichTextEditor/Extensions/Table/Table.js
|
|
438
|
-
var
|
|
438
|
+
var Y = (e) => ({
|
|
439
439
|
default: null,
|
|
440
440
|
parseHTML: (t) => t.getAttribute(e),
|
|
441
441
|
renderHTML: (t) => t[e] ? { [e]: t[e] } : {}
|
|
442
|
-
}),
|
|
443
|
-
let e =
|
|
444
|
-
return e.renderHTML = (e) => e.style ? { style:
|
|
442
|
+
}), Ct = () => {
|
|
443
|
+
let e = Y("style");
|
|
444
|
+
return e.renderHTML = (e) => e.style ? { style: wt(e.style) } : {}, e;
|
|
445
445
|
};
|
|
446
|
-
function
|
|
446
|
+
function wt(e) {
|
|
447
447
|
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);
|
|
448
448
|
}
|
|
449
|
-
var
|
|
449
|
+
var Tt = ot.extend({
|
|
450
450
|
addAttributes() {
|
|
451
451
|
return {
|
|
452
452
|
...this.parent?.(),
|
|
453
|
-
border:
|
|
454
|
-
cellpadding:
|
|
455
|
-
cellspacing:
|
|
456
|
-
style:
|
|
453
|
+
border: Y("border"),
|
|
454
|
+
cellpadding: Y("cellpadding"),
|
|
455
|
+
cellspacing: Y("cellspacing"),
|
|
456
|
+
style: Ct()
|
|
457
457
|
};
|
|
458
458
|
},
|
|
459
459
|
renderHTML({ HTMLAttributes: e }) {
|
|
460
460
|
return [
|
|
461
461
|
"table",
|
|
462
|
-
|
|
462
|
+
U(this.options.HTMLAttributes, e),
|
|
463
463
|
["tbody", 0]
|
|
464
464
|
];
|
|
465
465
|
}
|
|
466
|
-
}),
|
|
466
|
+
}), Et = lt.extend({ addAttributes() {
|
|
467
467
|
return {
|
|
468
468
|
...this.parent?.(),
|
|
469
|
-
style:
|
|
469
|
+
style: Y("style")
|
|
470
470
|
};
|
|
471
|
-
} }),
|
|
472
|
-
style:
|
|
473
|
-
valign:
|
|
474
|
-
width:
|
|
475
|
-
},
|
|
471
|
+
} }), Dt = {
|
|
472
|
+
style: Y("style"),
|
|
473
|
+
valign: Y("valign"),
|
|
474
|
+
width: Y("width")
|
|
475
|
+
}, Ot = st.extend({ addAttributes() {
|
|
476
476
|
return {
|
|
477
477
|
...this.parent?.(),
|
|
478
|
-
...
|
|
478
|
+
...Dt
|
|
479
479
|
};
|
|
480
|
-
} }),
|
|
480
|
+
} }), kt = ct.extend({ addAttributes() {
|
|
481
481
|
return {
|
|
482
482
|
...this.parent?.(),
|
|
483
|
-
...
|
|
483
|
+
...Dt
|
|
484
484
|
};
|
|
485
|
-
} }),
|
|
485
|
+
} }), At = ut.extend({ parseHTML() {
|
|
486
486
|
return [
|
|
487
487
|
...this.parent?.() || [],
|
|
488
488
|
{
|
|
@@ -496,27 +496,27 @@ var wt = at.extend({
|
|
|
496
496
|
getAttrs: (e) => e.hasAttribute("style") ? {} : !1
|
|
497
497
|
}
|
|
498
498
|
];
|
|
499
|
-
} }),
|
|
499
|
+
} }), jt = {
|
|
500
500
|
name: "EmojiComponent",
|
|
501
501
|
components: {
|
|
502
|
-
NodeViewWrapper:
|
|
502
|
+
NodeViewWrapper: e,
|
|
503
503
|
DtEmoji: h
|
|
504
504
|
},
|
|
505
|
-
props:
|
|
505
|
+
props: n
|
|
506
506
|
};
|
|
507
|
-
function
|
|
508
|
-
let o =
|
|
509
|
-
return
|
|
510
|
-
default:
|
|
507
|
+
function Mt(e, t, n, r, i, a) {
|
|
508
|
+
let o = I("dt-emoji"), s = I("node-view-wrapper");
|
|
509
|
+
return P(), E(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
510
|
+
default: R(() => [j(o, {
|
|
511
511
|
size: "500",
|
|
512
512
|
code: e.node.attrs.code
|
|
513
513
|
}, null, 8, ["code"])]),
|
|
514
514
|
_: 1
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
var
|
|
517
|
+
var Nt = /* @__PURE__ */ u(jt, [["render", Mt]]), Pt = {
|
|
518
518
|
name: "SuggestionList",
|
|
519
|
-
components: { DtListItem:
|
|
519
|
+
components: { DtListItem: ce },
|
|
520
520
|
props: {
|
|
521
521
|
items: {
|
|
522
522
|
type: Array,
|
|
@@ -590,29 +590,29 @@ var Mt = /* @__PURE__ */ i(At, [["render", jt]]), Nt = {
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
},
|
|
593
|
+
}, Ft = { class: "d-popover__dialog d-suggestion-list__container" }, It = {
|
|
594
594
|
ref: "suggestionList",
|
|
595
595
|
class: "d-suggestion-list"
|
|
596
596
|
};
|
|
597
|
-
function
|
|
598
|
-
let o =
|
|
599
|
-
return
|
|
597
|
+
function Lt(e, t, n, r, i, a) {
|
|
598
|
+
let o = I("dt-list-item");
|
|
599
|
+
return P(), O("div", Ft, [Te(k("ul", It, [(P(!0), O(he, null, Se(n.items, (e, t) => (P(), E(o, {
|
|
600
600
|
key: e.id,
|
|
601
|
-
class:
|
|
601
|
+
class: xe(["d-suggestion-list__item", { "d-list-item--highlighted": t === i.selectedIndex }]),
|
|
602
602
|
"navigation-type": "arrow-keys",
|
|
603
603
|
onClick: (e) => a.selectItem(t),
|
|
604
|
-
onKeydown:
|
|
604
|
+
onKeydown: z(a.onKeyDown, ["prevent"])
|
|
605
605
|
}, {
|
|
606
|
-
default:
|
|
606
|
+
default: R(() => [(P(), E(Ce(n.itemComponent), { item: e }, null, 8, ["item"]))]),
|
|
607
607
|
_: 2
|
|
608
608
|
}, 1032, [
|
|
609
609
|
"class",
|
|
610
610
|
"onClick",
|
|
611
611
|
"onKeydown"
|
|
612
|
-
]))), 128))], 512), [[
|
|
612
|
+
]))), 128))], 512), [[we, n.items.length]])]);
|
|
613
613
|
}
|
|
614
|
-
var
|
|
615
|
-
function
|
|
614
|
+
var Rt = /* @__PURE__ */ u(Pt, [["render", Lt]]), zt = "top-start";
|
|
615
|
+
function Bt() {
|
|
616
616
|
return { getBoundingClientRect: () => ({
|
|
617
617
|
width: 0,
|
|
618
618
|
height: 0,
|
|
@@ -624,16 +624,16 @@ function zt() {
|
|
|
624
624
|
bottom: 0
|
|
625
625
|
}) };
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Vt(e) {
|
|
628
628
|
return { getBoundingClientRect: e };
|
|
629
629
|
}
|
|
630
|
-
async function
|
|
630
|
+
async function Ht(e, t, n = {}) {
|
|
631
631
|
if (!e || !t?.getBoundingClientRect) return;
|
|
632
|
-
let { placement: r =
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
] } = n, { x: a, y: o } = await
|
|
632
|
+
let { placement: r = zt, middleware: i = [
|
|
633
|
+
_(0),
|
|
634
|
+
g(),
|
|
635
|
+
y({ padding: 8 })
|
|
636
|
+
] } = n, { x: a, y: o } = await v(t, e, {
|
|
637
637
|
placement: r,
|
|
638
638
|
middleware: i
|
|
639
639
|
});
|
|
@@ -642,65 +642,65 @@ async function Vt(e, t, n = {}) {
|
|
|
642
642
|
top: `${o}px`
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Ut(e, t = {}) {
|
|
646
646
|
let { zIndex: n = "650" } = t;
|
|
647
647
|
e.style.position = "absolute", e.style.zIndex = n, e.style.display = "none";
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Wt(e) {
|
|
650
650
|
e && (e.style.display = "block");
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Gt(e) {
|
|
653
653
|
e && (e.style.display = "none");
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Kt(e, t) {
|
|
656
656
|
return (n) => {
|
|
657
657
|
n.key === "Escape" && t() && e();
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function qt(e) {
|
|
661
661
|
document.addEventListener("keydown", e);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Jt(e) {
|
|
664
664
|
document.removeEventListener("keydown", e);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
return new
|
|
666
|
+
function Yt(e, t, n, i) {
|
|
667
|
+
return new r(e, {
|
|
668
668
|
props: {
|
|
669
|
-
itemComponent:
|
|
669
|
+
itemComponent: ve(t),
|
|
670
670
|
itemType: n,
|
|
671
|
-
...
|
|
671
|
+
...i
|
|
672
672
|
},
|
|
673
|
-
editor:
|
|
673
|
+
editor: i.editor
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
e.escHandler &&
|
|
676
|
+
function Xt(e) {
|
|
677
|
+
e.escHandler && Jt(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
let { listComponent: r =
|
|
679
|
+
function X(e, t, n = {}) {
|
|
680
|
+
let { listComponent: r = Rt, placement: i = zt, zIndex: a = "650" } = n;
|
|
681
681
|
return () => {
|
|
682
|
-
let n = null, o = null, s = !1, c =
|
|
682
|
+
let n = null, o = null, s = !1, c = Bt(), l = null;
|
|
683
683
|
function u() {
|
|
684
|
-
|
|
684
|
+
Ht(o, c, { placement: i });
|
|
685
685
|
}
|
|
686
686
|
function d() {
|
|
687
|
-
o && (
|
|
687
|
+
o && (Wt(o), s = !0, u());
|
|
688
688
|
}
|
|
689
689
|
function f() {
|
|
690
|
-
o && (
|
|
690
|
+
o && (Gt(o), s = !1);
|
|
691
691
|
}
|
|
692
692
|
return {
|
|
693
693
|
onStart: (i) => {
|
|
694
|
-
n =
|
|
694
|
+
n = Yt(r, e, t, i), i.clientRect && (o = n.element, Ut(o, { zIndex: a }), document.body.appendChild(o), c = Vt(i.clientRect), l = Kt(f, () => s), qt(l), i.items.length > 0 && d());
|
|
695
695
|
},
|
|
696
696
|
onUpdate(e) {
|
|
697
|
-
n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c =
|
|
697
|
+
n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Vt(e.clientRect), u());
|
|
698
698
|
},
|
|
699
699
|
onKeyDown(e) {
|
|
700
700
|
if (s) return n?.ref?.onKeyDown(e);
|
|
701
701
|
},
|
|
702
702
|
onExit() {
|
|
703
|
-
|
|
703
|
+
Xt({
|
|
704
704
|
escHandler: l,
|
|
705
705
|
floatingEl: o,
|
|
706
706
|
component: n
|
|
@@ -711,7 +711,7 @@ function Z(e, t, n = {}) {
|
|
|
711
711
|
}
|
|
712
712
|
//#endregion
|
|
713
713
|
//#region components/RichTextEditor/Extensions/Emoji/EmojiSuggestion.vue
|
|
714
|
-
var
|
|
714
|
+
var Zt = {
|
|
715
715
|
name: "EmojiSuggestion",
|
|
716
716
|
components: {
|
|
717
717
|
DtEmoji: h,
|
|
@@ -722,31 +722,31 @@ var Xt = {
|
|
|
722
722
|
required: !0
|
|
723
723
|
} }
|
|
724
724
|
};
|
|
725
|
-
function
|
|
726
|
-
let o =
|
|
727
|
-
return
|
|
725
|
+
function Qt(e, t, n, r, i, a) {
|
|
726
|
+
let o = I("dt-emoji"), s = I("dt-stack");
|
|
727
|
+
return P(), E(s, {
|
|
728
728
|
direction: "row",
|
|
729
729
|
gap: "100"
|
|
730
730
|
}, {
|
|
731
|
-
default:
|
|
731
|
+
default: R(() => [j(o, {
|
|
732
732
|
size: "200",
|
|
733
733
|
code: n.item.code
|
|
734
|
-
}, null, 8, ["code"]),
|
|
734
|
+
}, null, 8, ["code"]), A(" " + L(n.item.code), 1)]),
|
|
735
735
|
_: 1
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
var
|
|
738
|
+
var $t = /* @__PURE__ */ u(Zt, [["render", Qt]]), en = 20, tn = (e, t, n) => {
|
|
739
739
|
let r = e.shortname?.replaceAll(":", ""), i = t.shortname?.replaceAll(":", ""), a = r.startsWith(n), o = i.startsWith(n);
|
|
740
740
|
return a && !o ? -1 : !a && o ? 1 : r.localeCompare(i);
|
|
741
|
-
},
|
|
741
|
+
}, nn = {
|
|
742
742
|
items: ({ query: e }) => {
|
|
743
743
|
if (e.length < 2) return [];
|
|
744
|
-
let t = Object.values(
|
|
744
|
+
let t = Object.values(te());
|
|
745
745
|
return e = e.toLowerCase(), t.filter((t) => [
|
|
746
746
|
t.name,
|
|
747
747
|
t.shortname?.replaceAll(":", ""),
|
|
748
748
|
...t.keywords || []
|
|
749
|
-
].some((t) => t && t.startsWith(e))).splice(0,
|
|
749
|
+
].some((t) => t && t.startsWith(e))).splice(0, en).sort((t, n) => tn(t, n, e)).map((e) => ({ code: e.shortname }));
|
|
750
750
|
},
|
|
751
751
|
command: ({ editor: e, range: t, props: n }) => {
|
|
752
752
|
e.view.state.selection.$to.nodeAfter?.text?.startsWith(" ") && (t.to += 1), e.chain().focus().insertContentAt(t, [{
|
|
@@ -754,14 +754,14 @@ var Qt = /* @__PURE__ */ i(Xt, [["render", Zt]]), $t = 20, en = (e, t, n) => {
|
|
|
754
754
|
attrs: n
|
|
755
755
|
}]).run(), window.getSelection()?.collapseToEnd();
|
|
756
756
|
},
|
|
757
|
-
render:
|
|
758
|
-
},
|
|
759
|
-
if (e &&
|
|
760
|
-
},
|
|
757
|
+
render: X($t, "emoji")
|
|
758
|
+
}, rn = /(:\w+:)$/, an = RegExp(B + "$"), on = (e) => {
|
|
759
|
+
if (e && d(e[0])) return { text: e[2] || e[0] };
|
|
760
|
+
}, sn = (e) => [...e.matchAll(ee)].filter((e) => d(e[0])).map((e) => ({
|
|
761
761
|
index: e.index,
|
|
762
762
|
text: e[0],
|
|
763
763
|
match: e
|
|
764
|
-
})),
|
|
764
|
+
})), cn = H.create({
|
|
765
765
|
name: "emoji",
|
|
766
766
|
addOptions() {
|
|
767
767
|
return { HTMLAttributes: {} };
|
|
@@ -771,7 +771,7 @@ var Qt = /* @__PURE__ */ i(Xt, [["render", Zt]]), $t = 20, en = (e, t, n) => {
|
|
|
771
771
|
selectable: !1,
|
|
772
772
|
atom: !0,
|
|
773
773
|
addNodeView() {
|
|
774
|
-
return
|
|
774
|
+
return t(Nt);
|
|
775
775
|
},
|
|
776
776
|
addAttributes() {
|
|
777
777
|
return { code: { default: null } };
|
|
@@ -780,17 +780,17 @@ var Qt = /* @__PURE__ */ i(Xt, [["render", Zt]]), $t = 20, en = (e, t, n) => {
|
|
|
780
780
|
return [{ tag: "emoji-component" }];
|
|
781
781
|
},
|
|
782
782
|
renderText({ node: e }) {
|
|
783
|
-
let t = e.attrs.code ?? "", n = t ?
|
|
784
|
-
return n ?
|
|
783
|
+
let t = e.attrs.code ?? "", n = t ? d(t) : void 0;
|
|
784
|
+
return n ? ne(n.unicode_output) : t;
|
|
785
785
|
},
|
|
786
786
|
renderHTML({ HTMLAttributes: e }) {
|
|
787
|
-
return ["emoji-component",
|
|
787
|
+
return ["emoji-component", U(this.options.HTMLAttributes, e)];
|
|
788
788
|
},
|
|
789
789
|
addInputRules() {
|
|
790
|
-
return [new
|
|
790
|
+
return [new ke({
|
|
791
791
|
find: (e) => {
|
|
792
|
-
let t = e.match(
|
|
793
|
-
if (t) return
|
|
792
|
+
let t = e.match(rn) || e.match(an);
|
|
793
|
+
if (t) return on(t);
|
|
794
794
|
},
|
|
795
795
|
handler: ({ state: e, range: t, match: n }) => {
|
|
796
796
|
let { tr: r } = e, i = t.from, a = t.to;
|
|
@@ -799,14 +799,14 @@ var Qt = /* @__PURE__ */ i(Xt, [["render", Zt]]), $t = 20, en = (e, t, n) => {
|
|
|
799
799
|
})];
|
|
800
800
|
},
|
|
801
801
|
addPasteRules() {
|
|
802
|
-
return [
|
|
803
|
-
find:
|
|
802
|
+
return [W({
|
|
803
|
+
find: sn,
|
|
804
804
|
type: this.type,
|
|
805
805
|
getAttributes(e) {
|
|
806
806
|
return { code: e[0] };
|
|
807
807
|
}
|
|
808
|
-
}),
|
|
809
|
-
find:
|
|
808
|
+
}), W({
|
|
809
|
+
find: f,
|
|
810
810
|
type: this.type,
|
|
811
811
|
getAttributes(e) {
|
|
812
812
|
return { code: e[0] };
|
|
@@ -814,12 +814,12 @@ var Qt = /* @__PURE__ */ i(Xt, [["render", Zt]]), $t = 20, en = (e, t, n) => {
|
|
|
814
814
|
})];
|
|
815
815
|
},
|
|
816
816
|
addProseMirrorPlugins() {
|
|
817
|
-
return [
|
|
817
|
+
return [ft({
|
|
818
818
|
char: ":",
|
|
819
819
|
pluginKey: new q("emoji"),
|
|
820
820
|
editor: this.editor,
|
|
821
821
|
...this.options.suggestion,
|
|
822
|
-
...
|
|
822
|
+
...nn
|
|
823
823
|
})];
|
|
824
824
|
},
|
|
825
825
|
addKeyboardShortcuts() {
|
|
@@ -833,21 +833,21 @@ var Qt = /* @__PURE__ */ i(Xt, [["render", Zt]]), $t = 20, en = (e, t, n) => {
|
|
|
833
833
|
});
|
|
834
834
|
//#endregion
|
|
835
835
|
//#region components/RichTextEditor/Extensions/CustomLink/Utils.js
|
|
836
|
-
function
|
|
836
|
+
function ln(e, t, n = () => !0) {
|
|
837
837
|
let r = [];
|
|
838
838
|
t.lastIndex = 0;
|
|
839
839
|
let i;
|
|
840
840
|
for (; i = t.exec(e);) n(e, i) && r.push(i);
|
|
841
841
|
return r;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function un(e, t) {
|
|
844
844
|
return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function dn(e) {
|
|
847
847
|
let t = RegExp("(?:" + ["[!?.,:;'\"]", "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
848
848
|
return e.replace(t, "");
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function fn(e, t) {
|
|
851
851
|
let n = e.slice(0, t + 1).search(/\S+\s*$/), r = e.slice(t).search(/\s/);
|
|
852
852
|
if (r < 0) {
|
|
853
853
|
let t = e.slice(n);
|
|
@@ -863,25 +863,25 @@ function dn(e, t) {
|
|
|
863
863
|
to: r + t
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
function
|
|
867
|
-
let i =
|
|
866
|
+
function Z(e, t, n, r) {
|
|
867
|
+
let i = fn(e, t);
|
|
868
868
|
if (r.lastIndex = 0, !r.test(i.text)) return i;
|
|
869
869
|
let a = n === "left" ? i.from - 1 : i.to + 1;
|
|
870
|
-
return a <= 0 || a >= e.length || a === t ? i :
|
|
870
|
+
return a <= 0 || a >= e.length || a === t ? i : Z(e, a, n, r);
|
|
871
871
|
}
|
|
872
|
-
function
|
|
873
|
-
let i =
|
|
872
|
+
function pn(e, t, n, r) {
|
|
873
|
+
let i = Pe(Math.max(e.from - 1, 0), Math.min(e.to + 1, t.content.size), t);
|
|
874
874
|
for (let e of i) e.mark.type === r && n.removeMark(e.from, e.to, r);
|
|
875
875
|
}
|
|
876
|
-
var
|
|
877
|
-
function $(e, t, r, i, a
|
|
876
|
+
var Q = l(1, 15);
|
|
877
|
+
function $(e, t, n, r, i, a) {
|
|
878
878
|
if (!e) return;
|
|
879
|
-
let
|
|
880
|
-
|
|
881
|
-
let
|
|
882
|
-
|
|
883
|
-
let n =
|
|
884
|
-
|
|
879
|
+
let o = n - t - 1;
|
|
880
|
+
o = o < 0 ? 0 : o;
|
|
881
|
+
let s = r - t, l = Z(e, o, "left", Q), u = Z(e, s, "right", Q);
|
|
882
|
+
ln(e.slice(l.from, u.to), c, un).forEach((e) => {
|
|
883
|
+
let n = dn(e[0]), r = t + l.from + e.index + 1, o = r + n.length;
|
|
884
|
+
i.addMark(r, o, a.create());
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
//#endregion
|
|
@@ -896,13 +896,13 @@ function mn(e) {
|
|
|
896
896
|
let { tr: o } = i, { textContent: s } = i.doc;
|
|
897
897
|
if (!t || !r.doc.textContent) return $(s, 0, 0, s.length, o, e.type), t = !0, o;
|
|
898
898
|
t = !0;
|
|
899
|
-
let c =
|
|
899
|
+
let c = Me(Ae(r.doc, [...n]));
|
|
900
900
|
return c.length ? (c.forEach(({ oldRange: t, newRange: n }) => {
|
|
901
901
|
if (n.from === n.to) {
|
|
902
902
|
$(s, 0, 0, s.length, o, e.type);
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
pn(n, i.doc, o, e.type), je(i.doc, n, (e) => e.isTextblock).forEach(({ node: r, pos: i }) => {
|
|
906
906
|
$(r.textContent, i, t.from, n.to, o, e.type);
|
|
907
907
|
});
|
|
908
908
|
}), o) : ($(s, 0, 0, s.length, o, e.type), o);
|
|
@@ -914,10 +914,10 @@ function mn(e) {
|
|
|
914
914
|
var hn = {
|
|
915
915
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
916
916
|
rel: "noopener noreferrer nofollow"
|
|
917
|
-
}, gn =
|
|
917
|
+
}, gn = V.create({
|
|
918
918
|
name: "CustomLink",
|
|
919
919
|
renderHTML({ HTMLAttributes: e }) {
|
|
920
|
-
return ["a",
|
|
920
|
+
return ["a", U(this.options.HTMLAttributes, e, hn)];
|
|
921
921
|
},
|
|
922
922
|
renderText({ node: e }) {
|
|
923
923
|
return e.attrs.text;
|
|
@@ -925,10 +925,10 @@ var hn = {
|
|
|
925
925
|
addProseMirrorPlugins() {
|
|
926
926
|
return [mn({ type: this.type })];
|
|
927
927
|
}
|
|
928
|
-
}), _n =
|
|
928
|
+
}), _n = V.create({
|
|
929
929
|
name: "LinkPhoneNumbers",
|
|
930
930
|
renderHTML({ HTMLAttributes: e }) {
|
|
931
|
-
return ["a",
|
|
931
|
+
return ["a", U(e, {
|
|
932
932
|
class: "d-link d-c-pointer d-d-inline-block d-wb-break-all",
|
|
933
933
|
rel: "noopener noreferrer nofollow"
|
|
934
934
|
})];
|
|
@@ -940,12 +940,12 @@ var hn = {
|
|
|
940
940
|
props: { handleClick(n, r, i) {
|
|
941
941
|
let { state: a } = n, o = a.doc.resolve(r);
|
|
942
942
|
if (!o.marks().some((e) => e.type === t)) return !1;
|
|
943
|
-
let s =
|
|
943
|
+
let s = Ne(o, t), c = s ? a.doc.textBetween(s.from, s.to) : "";
|
|
944
944
|
return i.preventDefault(), e.emit("phone-click", { phoneNumber: c }), !0;
|
|
945
945
|
} }
|
|
946
946
|
})];
|
|
947
947
|
}
|
|
948
|
-
}), vn =
|
|
948
|
+
}), vn = pt.extend({
|
|
949
949
|
name: "ConfigurableImage",
|
|
950
950
|
addAttributes() {
|
|
951
951
|
return {
|
|
@@ -960,7 +960,7 @@ var hn = {
|
|
|
960
960
|
}).configure({
|
|
961
961
|
inline: !0,
|
|
962
962
|
allowBase64: !0
|
|
963
|
-
}), yn = 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(".")), bn =
|
|
963
|
+
}), yn = 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(".")), bn = Ye.extend({
|
|
964
964
|
parseHTML() {
|
|
965
965
|
return [{
|
|
966
966
|
tag: "div",
|
|
@@ -973,17 +973,17 @@ var hn = {
|
|
|
973
973
|
renderHTML({ HTMLAttributes: e }) {
|
|
974
974
|
return [
|
|
975
975
|
"div",
|
|
976
|
-
|
|
976
|
+
U(this.options.HTMLAttributes, e),
|
|
977
977
|
0
|
|
978
978
|
];
|
|
979
979
|
}
|
|
980
980
|
}), xn = {
|
|
981
981
|
name: "MentionComponent",
|
|
982
982
|
components: {
|
|
983
|
-
NodeViewWrapper:
|
|
984
|
-
DtLink:
|
|
983
|
+
NodeViewWrapper: e,
|
|
984
|
+
DtLink: oe
|
|
985
985
|
},
|
|
986
|
-
props:
|
|
986
|
+
props: n,
|
|
987
987
|
computed: { text() {
|
|
988
988
|
return "@" + this.$props.node.attrs.name;
|
|
989
989
|
} },
|
|
@@ -1014,17 +1014,17 @@ var hn = {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
};
|
|
1016
1016
|
function Sn(e, t, n, r, i, a) {
|
|
1017
|
-
let o =
|
|
1018
|
-
return
|
|
1019
|
-
default:
|
|
1017
|
+
let o = I("dt-link"), s = I("node-view-wrapper");
|
|
1018
|
+
return P(), E(s, { class: "d-d-inline-block" }, {
|
|
1019
|
+
default: R(() => [j(o, {
|
|
1020
1020
|
tone: "mention",
|
|
1021
|
-
onClick:
|
|
1021
|
+
onClick: z(a.handleClick, ["prevent"]),
|
|
1022
1022
|
onMouseenter: a.handleMouseEnter,
|
|
1023
1023
|
onMouseleave: a.handleMouseLeave,
|
|
1024
1024
|
onFocusin: a.handleMouseEnter,
|
|
1025
1025
|
onFocusout: a.handleMouseLeave
|
|
1026
1026
|
}, {
|
|
1027
|
-
default:
|
|
1027
|
+
default: R(() => [A(L(a.text), 1)]),
|
|
1028
1028
|
_: 1
|
|
1029
1029
|
}, 8, [
|
|
1030
1030
|
"onClick",
|
|
@@ -1036,9 +1036,9 @@ function Sn(e, t, n, r, i, a) {
|
|
|
1036
1036
|
_: 1
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
|
-
var Cn = /* @__PURE__ */
|
|
1039
|
+
var Cn = /* @__PURE__ */ u(xn, [["render", Sn]]), wn = J.extend({
|
|
1040
1040
|
addNodeView() {
|
|
1041
|
-
return
|
|
1041
|
+
return t(Cn);
|
|
1042
1042
|
},
|
|
1043
1043
|
parseHTML() {
|
|
1044
1044
|
return [{ tag: "mention-component" }];
|
|
@@ -1055,7 +1055,7 @@ var Cn = /* @__PURE__ */ i(xn, [["render", Sn]]), wn = Y.extend({
|
|
|
1055
1055
|
return `@${e.attrs.id}`;
|
|
1056
1056
|
},
|
|
1057
1057
|
renderHTML({ HTMLAttributes: e }) {
|
|
1058
|
-
return ["mention-component",
|
|
1058
|
+
return ["mention-component", U(this.options.HTMLAttributes, e)];
|
|
1059
1059
|
}
|
|
1060
1060
|
}).configure({ suggestion: {
|
|
1061
1061
|
char: "@",
|
|
@@ -1063,12 +1063,12 @@ var Cn = /* @__PURE__ */ i(xn, [["render", Sn]]), wn = Y.extend({
|
|
|
1063
1063
|
} }), Tn = {
|
|
1064
1064
|
name: "ChannelComponent",
|
|
1065
1065
|
components: {
|
|
1066
|
-
NodeViewWrapper:
|
|
1067
|
-
DtLink:
|
|
1068
|
-
DtIconLock:
|
|
1066
|
+
NodeViewWrapper: e,
|
|
1067
|
+
DtLink: oe,
|
|
1068
|
+
DtIconLock: De,
|
|
1069
1069
|
DtStack: m
|
|
1070
1070
|
},
|
|
1071
|
-
props:
|
|
1071
|
+
props: n,
|
|
1072
1072
|
computed: { text() {
|
|
1073
1073
|
return this.$props.node.attrs.locked ? this.$props.node.attrs.name : "#" + this.$props.node.attrs.name;
|
|
1074
1074
|
} },
|
|
@@ -1083,20 +1083,20 @@ var Cn = /* @__PURE__ */ i(xn, [["render", Sn]]), wn = Y.extend({
|
|
|
1083
1083
|
} }
|
|
1084
1084
|
};
|
|
1085
1085
|
function En(e, t, n, r, i, a) {
|
|
1086
|
-
let o =
|
|
1087
|
-
return
|
|
1088
|
-
default:
|
|
1086
|
+
let o = I("dt-icon-lock"), s = I("dt-stack"), c = I("dt-link"), l = I("node-view-wrapper");
|
|
1087
|
+
return P(), E(l, { class: "d-d-inline-block" }, {
|
|
1088
|
+
default: R(() => [j(c, {
|
|
1089
1089
|
tone: "mention",
|
|
1090
|
-
onClick:
|
|
1090
|
+
onClick: z(a.handleClick, ["prevent"])
|
|
1091
1091
|
}, {
|
|
1092
|
-
default:
|
|
1092
|
+
default: R(() => [j(s, {
|
|
1093
1093
|
direction: "row",
|
|
1094
1094
|
gap: "0"
|
|
1095
1095
|
}, {
|
|
1096
|
-
default:
|
|
1096
|
+
default: R(() => [e.$props.node.attrs.locked ? (P(), E(o, {
|
|
1097
1097
|
key: 0,
|
|
1098
1098
|
size: "200"
|
|
1099
|
-
})) :
|
|
1099
|
+
})) : D("", !0), k("span", null, L(a.text), 1)]),
|
|
1100
1100
|
_: 1
|
|
1101
1101
|
})]),
|
|
1102
1102
|
_: 1
|
|
@@ -1104,10 +1104,10 @@ function En(e, t, n, r, i, a) {
|
|
|
1104
1104
|
_: 1
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
|
-
var Dn = /* @__PURE__ */
|
|
1107
|
+
var Dn = /* @__PURE__ */ u(Tn, [["render", En]]), On = J.extend({
|
|
1108
1108
|
name: "channel",
|
|
1109
1109
|
addNodeView() {
|
|
1110
|
-
return
|
|
1110
|
+
return t(Dn);
|
|
1111
1111
|
},
|
|
1112
1112
|
parseHTML() {
|
|
1113
1113
|
return [{ tag: "channel-component" }];
|
|
@@ -1124,15 +1124,15 @@ var Dn = /* @__PURE__ */ i(Tn, [["render", En]]), On = Y.extend({
|
|
|
1124
1124
|
return `#${e.attrs.id}`;
|
|
1125
1125
|
},
|
|
1126
1126
|
renderHTML({ HTMLAttributes: e }) {
|
|
1127
|
-
return ["channel-component",
|
|
1127
|
+
return ["channel-component", U(this.options.HTMLAttributes, e)];
|
|
1128
1128
|
}
|
|
1129
1129
|
}).configure({ suggestion: {
|
|
1130
1130
|
char: "#",
|
|
1131
1131
|
pluginKey: new q("channelSuggestion")
|
|
1132
1132
|
} }), kn = {
|
|
1133
1133
|
name: "SlashCommandsComponent",
|
|
1134
|
-
components: { NodeViewWrapper:
|
|
1135
|
-
props: { ...
|
|
1134
|
+
components: { NodeViewWrapper: e },
|
|
1135
|
+
props: { ...n },
|
|
1136
1136
|
emits: ["selected-command"],
|
|
1137
1137
|
computed: { text() {
|
|
1138
1138
|
return "/" + this.$props.node.attrs.command;
|
|
@@ -1145,20 +1145,20 @@ var Dn = /* @__PURE__ */ i(Tn, [["render", En]]), On = Y.extend({
|
|
|
1145
1145
|
}
|
|
1146
1146
|
};
|
|
1147
1147
|
function An(e, t, n, r, i, a) {
|
|
1148
|
-
let o =
|
|
1149
|
-
return
|
|
1150
|
-
default:
|
|
1148
|
+
let o = I("node-view-wrapper");
|
|
1149
|
+
return P(), E(o, { class: "d-d-inline-block" }, {
|
|
1150
|
+
default: R(() => [A(L(a.text), 1)]),
|
|
1151
1151
|
_: 1
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
|
-
var jn = /* @__PURE__ */
|
|
1154
|
+
var jn = /* @__PURE__ */ u(kn, [["render", An]]), Mn = (e, t) => [...e.matchAll(t)].map((e) => {
|
|
1155
1155
|
let t = e[2];
|
|
1156
1156
|
return t.endsWith(" ") || (t += " "), {
|
|
1157
1157
|
index: e.index,
|
|
1158
1158
|
text: t,
|
|
1159
1159
|
match: e
|
|
1160
1160
|
};
|
|
1161
|
-
}), Nn =
|
|
1161
|
+
}), Nn = J.extend({
|
|
1162
1162
|
name: "slash-commands",
|
|
1163
1163
|
group: "inline",
|
|
1164
1164
|
inline: !0,
|
|
@@ -1172,7 +1172,7 @@ var jn = /* @__PURE__ */ i(kn, [["render", An]]), Mn = (e, t) => [...e.matchAll(
|
|
|
1172
1172
|
return { onSelectedCommand: this.options.onSelectedCommand };
|
|
1173
1173
|
},
|
|
1174
1174
|
addNodeView() {
|
|
1175
|
-
return
|
|
1175
|
+
return t(jn);
|
|
1176
1176
|
},
|
|
1177
1177
|
parseHTML() {
|
|
1178
1178
|
return [{ tag: "command-component" }];
|
|
@@ -1188,11 +1188,11 @@ var jn = /* @__PURE__ */ i(kn, [["render", An]]), Mn = (e, t) => [...e.matchAll(
|
|
|
1188
1188
|
return `/${e.attrs.command}`;
|
|
1189
1189
|
},
|
|
1190
1190
|
renderHTML({ HTMLAttributes: e }) {
|
|
1191
|
-
return ["command-component",
|
|
1191
|
+
return ["command-component", U(this.options.HTMLAttributes, e)];
|
|
1192
1192
|
},
|
|
1193
1193
|
addInputRules() {
|
|
1194
1194
|
let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command);
|
|
1195
|
-
return [
|
|
1195
|
+
return [Re({
|
|
1196
1196
|
find: RegExp(`^((?:\\/)(${e.join("|")})) $`),
|
|
1197
1197
|
type: this.type,
|
|
1198
1198
|
getAttributes(e) {
|
|
@@ -1202,7 +1202,7 @@ var jn = /* @__PURE__ */ i(kn, [["render", An]]), Mn = (e, t) => [...e.matchAll(
|
|
|
1202
1202
|
},
|
|
1203
1203
|
addPasteRules() {
|
|
1204
1204
|
let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command), t = RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
|
|
1205
|
-
return [
|
|
1205
|
+
return [W({
|
|
1206
1206
|
find: (e) => Mn(e, t),
|
|
1207
1207
|
type: this.type,
|
|
1208
1208
|
getAttributes(e) {
|
|
@@ -1216,16 +1216,16 @@ var jn = /* @__PURE__ */ i(kn, [["render", An]]), Mn = (e, t) => [...e.matchAll(
|
|
|
1216
1216
|
} }), Pn = 100, Fn = {
|
|
1217
1217
|
name: "VariableComponent",
|
|
1218
1218
|
components: {
|
|
1219
|
-
DtBadge:
|
|
1220
|
-
DtButton:
|
|
1221
|
-
DtPopover:
|
|
1222
|
-
DtInput:
|
|
1223
|
-
NodeViewWrapper:
|
|
1219
|
+
DtBadge: ie,
|
|
1220
|
+
DtButton: se,
|
|
1221
|
+
DtPopover: le,
|
|
1222
|
+
DtInput: ue,
|
|
1223
|
+
NodeViewWrapper: e
|
|
1224
1224
|
},
|
|
1225
|
-
props:
|
|
1225
|
+
props: n,
|
|
1226
1226
|
data() {
|
|
1227
1227
|
return {
|
|
1228
|
-
i18n: new
|
|
1228
|
+
i18n: new p(),
|
|
1229
1229
|
MAX_VARIABLE_ALT_LENGTH: Pn
|
|
1230
1230
|
};
|
|
1231
1231
|
},
|
|
@@ -1262,23 +1262,23 @@ var jn = /* @__PURE__ */ i(kn, [["render", An]]), Mn = (e, t) => [...e.matchAll(
|
|
|
1262
1262
|
}
|
|
1263
1263
|
};
|
|
1264
1264
|
function In(e, t, n, r, i, a) {
|
|
1265
|
-
let o =
|
|
1266
|
-
return
|
|
1267
|
-
default:
|
|
1265
|
+
let o = I("dt-badge"), s = I("dt-button"), c = I("dt-input"), l = I("dt-popover"), u = I("node-view-wrapper");
|
|
1266
|
+
return P(), E(u, { class: "d-d-inline-block" }, {
|
|
1267
|
+
default: R(() => [a.enableAltText ? (P(), E(l, {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
padding: "small",
|
|
1270
1270
|
"navigation-type": "arrow-keys",
|
|
1271
1271
|
placement: "top-start",
|
|
1272
1272
|
modal: !1
|
|
1273
1273
|
}, {
|
|
1274
|
-
anchor:
|
|
1275
|
-
default:
|
|
1274
|
+
anchor: R(({ attrs: e }) => [j(s, ye(e, { kind: "unstyled" }), {
|
|
1275
|
+
default: R(() => [j(o, {
|
|
1276
1276
|
text: a.badgeLabel,
|
|
1277
1277
|
contenteditable: "false"
|
|
1278
1278
|
}, null, 8, ["text"])]),
|
|
1279
1279
|
_: 1
|
|
1280
1280
|
}, 16)]),
|
|
1281
|
-
content:
|
|
1281
|
+
content: R(({ close: e }) => [j(c, {
|
|
1282
1282
|
modelValue: a.altText,
|
|
1283
1283
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.altText = e),
|
|
1284
1284
|
class: "d-p-100 d-w332",
|
|
@@ -1291,7 +1291,7 @@ function In(e, t, n, r, i, a) {
|
|
|
1291
1291
|
warn: i.MAX_VARIABLE_ALT_LENGTH,
|
|
1292
1292
|
limitMaxLength: !0
|
|
1293
1293
|
} },
|
|
1294
|
-
onKeyup:
|
|
1294
|
+
onKeyup: Ee((t) => e(), ["enter"])
|
|
1295
1295
|
}, null, 8, [
|
|
1296
1296
|
"modelValue",
|
|
1297
1297
|
"label",
|
|
@@ -1300,7 +1300,7 @@ function In(e, t, n, r, i, a) {
|
|
|
1300
1300
|
"onKeyup"
|
|
1301
1301
|
])]),
|
|
1302
1302
|
_: 1
|
|
1303
|
-
})) : (
|
|
1303
|
+
})) : (P(), E(o, {
|
|
1304
1304
|
key: 1,
|
|
1305
1305
|
text: a.badgeLabel,
|
|
1306
1306
|
contenteditable: "false"
|
|
@@ -1308,7 +1308,7 @@ function In(e, t, n, r, i, a) {
|
|
|
1308
1308
|
_: 1
|
|
1309
1309
|
});
|
|
1310
1310
|
}
|
|
1311
|
-
var Ln = /* @__PURE__ */
|
|
1311
|
+
var Ln = /* @__PURE__ */ u(Fn, [["render", In]]), Rn = H.create({
|
|
1312
1312
|
name: "variable",
|
|
1313
1313
|
group: "inline",
|
|
1314
1314
|
inline: !0,
|
|
@@ -1321,7 +1321,7 @@ var Ln = /* @__PURE__ */ i(Fn, [["render", In]]), Rn = U.create({
|
|
|
1321
1321
|
};
|
|
1322
1322
|
},
|
|
1323
1323
|
addNodeView() {
|
|
1324
|
-
return
|
|
1324
|
+
return t(Ln);
|
|
1325
1325
|
},
|
|
1326
1326
|
addAttributes() {
|
|
1327
1327
|
return {
|
|
@@ -1349,7 +1349,7 @@ var Ln = /* @__PURE__ */ i(Fn, [["render", In]]), Rn = U.create({
|
|
|
1349
1349
|
return e.attrs.altText;
|
|
1350
1350
|
},
|
|
1351
1351
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
1352
|
-
return ["variable",
|
|
1352
|
+
return ["variable", U(this.options.HTMLAttributes, t, {
|
|
1353
1353
|
"data-variable-id": e.attrs.id,
|
|
1354
1354
|
"data-alt-text": e.attrs.altText,
|
|
1355
1355
|
"data-enable-alt-text": String(e.attrs.enableAltText)
|
|
@@ -1368,9 +1368,9 @@ var Ln = /* @__PURE__ */ i(Fn, [["render", In]]), Rn = U.create({
|
|
|
1368
1368
|
}), zn = {
|
|
1369
1369
|
name: "MentionSuggestion",
|
|
1370
1370
|
components: {
|
|
1371
|
-
DtAvatar:
|
|
1371
|
+
DtAvatar: re,
|
|
1372
1372
|
DtStack: m,
|
|
1373
|
-
DtText:
|
|
1373
|
+
DtText: ae
|
|
1374
1374
|
},
|
|
1375
1375
|
props: { item: {
|
|
1376
1376
|
type: Object,
|
|
@@ -1406,13 +1406,13 @@ var Ln = /* @__PURE__ */ i(Fn, [["render", In]]), Rn = U.create({
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}, Bn = { class: "d-mention-suggestion__name" };
|
|
1408
1408
|
function Vn(e, t, n, r, i, a) {
|
|
1409
|
-
let o =
|
|
1410
|
-
return
|
|
1409
|
+
let o = I("dt-avatar"), s = I("dt-text"), c = I("dt-stack");
|
|
1410
|
+
return P(), E(c, {
|
|
1411
1411
|
direction: "row",
|
|
1412
1412
|
class: "d-mention-suggestion__container",
|
|
1413
1413
|
gap: "100"
|
|
1414
1414
|
}, {
|
|
1415
|
-
default:
|
|
1415
|
+
default: R(() => [j(o, {
|
|
1416
1416
|
"full-name": a.name,
|
|
1417
1417
|
"image-src": a.avatarSrc,
|
|
1418
1418
|
"image-alt": a.name,
|
|
@@ -1425,27 +1425,27 @@ function Vn(e, t, n, r, i, a) {
|
|
|
1425
1425
|
"image-alt",
|
|
1426
1426
|
"show-presence",
|
|
1427
1427
|
"presence"
|
|
1428
|
-
]),
|
|
1428
|
+
]), j(c, {
|
|
1429
1429
|
class: "d-mention-suggestion__details-container",
|
|
1430
1430
|
gap: "1"
|
|
1431
1431
|
}, {
|
|
1432
|
-
default:
|
|
1432
|
+
default: R(() => [k("span", Bn, L(a.name), 1), a.showDetails ? (P(), E(c, {
|
|
1433
1433
|
key: 0,
|
|
1434
1434
|
direction: "row",
|
|
1435
1435
|
gap: "50"
|
|
1436
1436
|
}, {
|
|
1437
|
-
default:
|
|
1438
|
-
a.presenceText ? (
|
|
1437
|
+
default: R(() => [
|
|
1438
|
+
a.presenceText ? (P(), E(s, {
|
|
1439
1439
|
key: 0,
|
|
1440
1440
|
kind: "label",
|
|
1441
1441
|
size: 200,
|
|
1442
1442
|
strength: "normal",
|
|
1443
|
-
class:
|
|
1443
|
+
class: xe(["d-mention-suggestion__presence", [a.presenceFontColorClass]])
|
|
1444
1444
|
}, {
|
|
1445
|
-
default:
|
|
1445
|
+
default: R(() => [A(L(a.presenceText), 1)]),
|
|
1446
1446
|
_: 1
|
|
1447
|
-
}, 8, ["class"])) :
|
|
1448
|
-
a.status && a.presenceText ? (
|
|
1447
|
+
}, 8, ["class"])) : D("", !0),
|
|
1448
|
+
a.status && a.presenceText ? (P(), E(s, {
|
|
1449
1449
|
key: 1,
|
|
1450
1450
|
kind: "label",
|
|
1451
1451
|
size: 200,
|
|
@@ -1453,10 +1453,10 @@ function Vn(e, t, n, r, i, a) {
|
|
|
1453
1453
|
as: "div",
|
|
1454
1454
|
class: "d-mention-suggestion__divider"
|
|
1455
1455
|
}, {
|
|
1456
|
-
default:
|
|
1456
|
+
default: R(() => [...t[0] || (t[0] = [A(" • ", -1)])]),
|
|
1457
1457
|
_: 1
|
|
1458
|
-
})) :
|
|
1459
|
-
a.status ? (
|
|
1458
|
+
})) : D("", !0),
|
|
1459
|
+
a.status ? (P(), E(s, {
|
|
1460
1460
|
key: 2,
|
|
1461
1461
|
kind: "label",
|
|
1462
1462
|
size: 200,
|
|
@@ -1464,12 +1464,12 @@ function Vn(e, t, n, r, i, a) {
|
|
|
1464
1464
|
as: "div",
|
|
1465
1465
|
class: "d-mention-suggestion__status"
|
|
1466
1466
|
}, {
|
|
1467
|
-
default:
|
|
1467
|
+
default: R(() => [A(L(a.status), 1)]),
|
|
1468
1468
|
_: 1
|
|
1469
|
-
})) :
|
|
1469
|
+
})) : D("", !0)
|
|
1470
1470
|
]),
|
|
1471
1471
|
_: 1
|
|
1472
|
-
})) :
|
|
1472
|
+
})) : D("", !0)]),
|
|
1473
1473
|
_: 1
|
|
1474
1474
|
})]),
|
|
1475
1475
|
_: 1
|
|
@@ -1479,13 +1479,13 @@ function Vn(e, t, n, r, i, a) {
|
|
|
1479
1479
|
//#region components/RichTextEditor/Extensions/Mentions/Suggestion.js
|
|
1480
1480
|
var Hn = {
|
|
1481
1481
|
allowSpaces: !0,
|
|
1482
|
-
render:
|
|
1482
|
+
render: X(/* @__PURE__ */ u(zn, [["render", Vn]]), "mention")
|
|
1483
1483
|
}, Un = {
|
|
1484
1484
|
name: "ChannelSuggestion",
|
|
1485
1485
|
components: {
|
|
1486
1486
|
DtStack: m,
|
|
1487
|
-
DtIconHash:
|
|
1488
|
-
DtIconLock:
|
|
1487
|
+
DtIconHash: mt,
|
|
1488
|
+
DtIconLock: ht
|
|
1489
1489
|
},
|
|
1490
1490
|
props: { item: {
|
|
1491
1491
|
type: Object,
|
|
@@ -1496,18 +1496,18 @@ var Hn = {
|
|
|
1496
1496
|
} }
|
|
1497
1497
|
};
|
|
1498
1498
|
function Wn(e, t, n, r, i, a) {
|
|
1499
|
-
let o =
|
|
1500
|
-
return
|
|
1499
|
+
let o = I("dt-icon-hash"), s = I("dt-icon-lock"), c = I("dt-stack");
|
|
1500
|
+
return P(), E(c, {
|
|
1501
1501
|
direction: "row",
|
|
1502
1502
|
gap: "100"
|
|
1503
1503
|
}, {
|
|
1504
|
-
default:
|
|
1504
|
+
default: R(() => [n.item.locked ? (P(), E(s, {
|
|
1505
1505
|
key: 1,
|
|
1506
1506
|
size: "300"
|
|
1507
|
-
})) : (
|
|
1507
|
+
})) : (P(), E(o, {
|
|
1508
1508
|
key: 0,
|
|
1509
1509
|
size: "300"
|
|
1510
|
-
})),
|
|
1510
|
+
})), k("span", null, L(a.name), 1)]),
|
|
1511
1511
|
_: 1
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
@@ -1515,10 +1515,10 @@ function Wn(e, t, n, r, i, a) {
|
|
|
1515
1515
|
//#region components/RichTextEditor/Extensions/Channels/Suggestion.js
|
|
1516
1516
|
var Gn = {
|
|
1517
1517
|
allowSpaces: !0,
|
|
1518
|
-
render:
|
|
1518
|
+
render: X(/* @__PURE__ */ u(Un, [["render", Wn]]), "channel")
|
|
1519
1519
|
}, Kn = {
|
|
1520
1520
|
name: "SlashCommandSuggestion",
|
|
1521
|
-
components: { DtText:
|
|
1521
|
+
components: { DtText: ae },
|
|
1522
1522
|
props: { item: {
|
|
1523
1523
|
type: Object,
|
|
1524
1524
|
required: !0
|
|
@@ -1536,22 +1536,22 @@ var Gn = {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
}, qn = { key: 0 };
|
|
1538
1538
|
function Jn(e, t, n, r, i, a) {
|
|
1539
|
-
let o =
|
|
1540
|
-
return
|
|
1539
|
+
let o = I("dt-text");
|
|
1540
|
+
return P(), O("div", null, [j(o, {
|
|
1541
1541
|
kind: "body",
|
|
1542
1542
|
size: 300,
|
|
1543
1543
|
density: 300,
|
|
1544
1544
|
as: "div"
|
|
1545
1545
|
}, {
|
|
1546
|
-
default:
|
|
1546
|
+
default: R(() => [k("span", null, "/" + L(a.command), 1), a.parametersExample ? (P(), O("span", qn, L(a.parametersExample), 1)) : D("", !0)]),
|
|
1547
1547
|
_: 1
|
|
1548
|
-
}),
|
|
1548
|
+
}), j(o, {
|
|
1549
1549
|
kind: "body",
|
|
1550
1550
|
size: 200,
|
|
1551
1551
|
tone: "tertiary",
|
|
1552
1552
|
as: "div"
|
|
1553
1553
|
}, {
|
|
1554
|
-
default:
|
|
1554
|
+
default: R(() => [A(L(a.description), 1)]),
|
|
1555
1555
|
_: 1
|
|
1556
1556
|
})]);
|
|
1557
1557
|
}
|
|
@@ -1560,13 +1560,13 @@ function Jn(e, t, n, r, i, a) {
|
|
|
1560
1560
|
var Yn = {
|
|
1561
1561
|
allowSpaces: !0,
|
|
1562
1562
|
startOfLine: !0,
|
|
1563
|
-
render:
|
|
1563
|
+
render: X(/* @__PURE__ */ u(Kn, [["render", Jn]]), "slash-command")
|
|
1564
1564
|
}, Xn = {
|
|
1565
1565
|
name: "DtRichTextEditor",
|
|
1566
1566
|
components: {
|
|
1567
|
-
EditorContent:
|
|
1568
|
-
BubbleMenu:
|
|
1569
|
-
DtButton:
|
|
1567
|
+
EditorContent: i,
|
|
1568
|
+
BubbleMenu: bt,
|
|
1569
|
+
DtButton: se,
|
|
1570
1570
|
DtStack: m
|
|
1571
1571
|
},
|
|
1572
1572
|
props: {
|
|
@@ -1606,14 +1606,14 @@ var Yn = {
|
|
|
1606
1606
|
],
|
|
1607
1607
|
default: !1,
|
|
1608
1608
|
validator(e) {
|
|
1609
|
-
return typeof e == "string" ?
|
|
1609
|
+
return typeof e == "string" ? pe.includes(e) : !0;
|
|
1610
1610
|
}
|
|
1611
1611
|
},
|
|
1612
1612
|
outputFormat: {
|
|
1613
1613
|
type: String,
|
|
1614
1614
|
default: "html",
|
|
1615
1615
|
validator(e) {
|
|
1616
|
-
return
|
|
1616
|
+
return me.includes(e);
|
|
1617
1617
|
}
|
|
1618
1618
|
},
|
|
1619
1619
|
placeholder: {
|
|
@@ -1759,9 +1759,9 @@ var Yn = {
|
|
|
1759
1759
|
data() {
|
|
1760
1760
|
return {
|
|
1761
1761
|
editor: null,
|
|
1762
|
-
appendTo: () =>
|
|
1762
|
+
appendTo: () => s(this.$refs.editor.$el).getRootNode()?.querySelector?.("body"),
|
|
1763
1763
|
floatingOptions: { placement: "top-start" },
|
|
1764
|
-
i18n: new
|
|
1764
|
+
i18n: new p()
|
|
1765
1765
|
};
|
|
1766
1766
|
},
|
|
1767
1767
|
computed: {
|
|
@@ -1776,14 +1776,14 @@ var Yn = {
|
|
|
1776
1776
|
extensions() {
|
|
1777
1777
|
let e = [
|
|
1778
1778
|
We,
|
|
1779
|
-
|
|
1779
|
+
it,
|
|
1780
1780
|
qe,
|
|
1781
1781
|
Je
|
|
1782
1782
|
];
|
|
1783
|
-
e.push(this.useDivTags ? bn :
|
|
1783
|
+
e.push(this.useDivTags ? bn : Ye), this.allowBold && e.push(Xe), this.allowBlockquote && e.push(Ve), this.allowBulletList && (e.push(Ze), e.push(Qe.extend({ renderText({ node: e }) {
|
|
1784
1784
|
return e.textContent;
|
|
1785
|
-
} })), e.push(
|
|
1786
|
-
let t = this, n =
|
|
1785
|
+
} })), e.push($e)), this.allowItalic && e.push(et), this.allowStrike && e.push(nt), this.allowUnderline && e.push(rt), this.placeholder && e.push(Ke.configure({ placeholder: this.placeholder }));
|
|
1786
|
+
let t = this, n = Oe.create({ addKeyboardShortcuts() {
|
|
1787
1787
|
return {
|
|
1788
1788
|
"Shift-Enter": ({ editor: e }) => t.allowLineBreaks ? !1 : (e.commands.first(({ commands: e }) => [
|
|
1789
1789
|
() => e.newlineInCode(),
|
|
@@ -1795,7 +1795,7 @@ var Yn = {
|
|
|
1795
1795
|
Enter: () => t.allowLineBreaks ? !1 : (t.$emit("enter"), !0)
|
|
1796
1796
|
};
|
|
1797
1797
|
} });
|
|
1798
|
-
if (e.push(n), this.link && e.push(
|
|
1798
|
+
if (e.push(n), this.link && e.push(tt.extend({
|
|
1799
1799
|
inclusive: !1,
|
|
1800
1800
|
addKeyboardShortcuts() {
|
|
1801
1801
|
return { "Mod-k": () => (t.$emit("edit-link"), !0) };
|
|
@@ -1804,7 +1804,7 @@ var Yn = {
|
|
|
1804
1804
|
HTMLAttributes: { class: "d-link d-wb-break-all" },
|
|
1805
1805
|
openOnClick: !1,
|
|
1806
1806
|
autolink: !this.customLink,
|
|
1807
|
-
protocols:
|
|
1807
|
+
protocols: w
|
|
1808
1808
|
})), this.customLink && e.push(this.getExtension(gn, this.customLink)), this.linkPhoneNumbers !== null && e.push(_n), this.mentionSuggestion) {
|
|
1809
1809
|
let t = {
|
|
1810
1810
|
...this.mentionSuggestion,
|
|
@@ -1831,7 +1831,7 @@ var Yn = {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
}));
|
|
1833
1833
|
}
|
|
1834
|
-
return this.allowVariable && e.push(Rn.configure({ variableItems: this.variableItems })), e.push(
|
|
1834
|
+
return this.allowVariable && e.push(Rn.configure({ variableItems: this.variableItems })), e.push(cn), this.allowTextAlign && e.push(at.configure({ types: ["paragraph"] })), this.allowCode && e.push(Ue), this.allowCodeblock && e.push(He.extend({
|
|
1835
1835
|
renderText({ node: e, pos: t, range: n }) {
|
|
1836
1836
|
let r = n?.from ?? 0, i = n?.to ?? t + e.nodeSize;
|
|
1837
1837
|
if (r <= t && i >= t + e.nodeSize) return `\`\`\`\n${e.textContent}\n\`\`\``;
|
|
@@ -1861,14 +1861,14 @@ var Yn = {
|
|
|
1861
1861
|
}).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(vn.configure({ resize: {
|
|
1862
1862
|
enabled: this.allowImageResize,
|
|
1863
1863
|
alwaysPreserveAspectRatio: !0
|
|
1864
|
-
} })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(
|
|
1864
|
+
} })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(dt.configure({
|
|
1865
1865
|
textStyle: !1,
|
|
1866
1866
|
color: this.allowFontColor,
|
|
1867
1867
|
backgroundColor: this.allowBackgroundColor,
|
|
1868
1868
|
fontFamily: this.allowFontFamily,
|
|
1869
1869
|
fontSize: this.allowFontSize,
|
|
1870
1870
|
lineHeight: this.allowLineHeight
|
|
1871
|
-
})), e.push(
|
|
1871
|
+
})), e.push(At)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(Tt.configure({ resizable: !0 }), Et, kt, Ot, Ge), e;
|
|
1872
1872
|
},
|
|
1873
1873
|
inputAttrs() {
|
|
1874
1874
|
let e = {
|
|
@@ -1906,11 +1906,11 @@ var Yn = {
|
|
|
1906
1906
|
this.destroyEditor();
|
|
1907
1907
|
},
|
|
1908
1908
|
mounted() {
|
|
1909
|
-
|
|
1909
|
+
o(s(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
|
|
1910
1910
|
},
|
|
1911
1911
|
methods: {
|
|
1912
1912
|
createEditor() {
|
|
1913
|
-
this.editor = new
|
|
1913
|
+
this.editor = new a({
|
|
1914
1914
|
autofocus: this.autoFocus,
|
|
1915
1915
|
content: this.modelValue,
|
|
1916
1916
|
editable: this.editable,
|
|
@@ -1969,9 +1969,9 @@ var Yn = {
|
|
|
1969
1969
|
window.open(e, "_blank");
|
|
1970
1970
|
},
|
|
1971
1971
|
forceLinkifyPendingText() {
|
|
1972
|
-
!this.editor || !this.link || this.customLink ||
|
|
1972
|
+
!this.editor || !this.link || this.customLink || fe(this.editor);
|
|
1973
1973
|
},
|
|
1974
|
-
setLink(e, t, n, r =
|
|
1974
|
+
setLink(e, t, n, r = w, i) {
|
|
1975
1975
|
if (!e) {
|
|
1976
1976
|
this.removeLink();
|
|
1977
1977
|
return;
|
|
@@ -1989,9 +1989,9 @@ var Yn = {
|
|
|
1989
1989
|
processValue(e, t = !0) {
|
|
1990
1990
|
if (!this.editor) return;
|
|
1991
1991
|
let n = this.getOutput();
|
|
1992
|
-
if (!(t &&
|
|
1992
|
+
if (!(t && gt(e, n))) {
|
|
1993
1993
|
if (typeof e == "string" && this.outputFormat === "text") {
|
|
1994
|
-
let t = RegExp(`(${
|
|
1994
|
+
let t = RegExp(`(${B})`, "g");
|
|
1995
1995
|
e = e?.replace(t, "<emoji-component code=\"$1\"></emoji-component>");
|
|
1996
1996
|
}
|
|
1997
1997
|
this.editor.commands.setContent(e, {
|
|
@@ -2074,7 +2074,7 @@ var Yn = {
|
|
|
2074
2074
|
this.$emit("html-input", n);
|
|
2075
2075
|
let r = this.editor.getText({ blockSeparator: "\n" });
|
|
2076
2076
|
this.$emit("text-input", r);
|
|
2077
|
-
let i =
|
|
2077
|
+
let i = T(t, this.extensions);
|
|
2078
2078
|
this.$emit("markdown-input", i);
|
|
2079
2079
|
},
|
|
2080
2080
|
addEditorListeners() {
|
|
@@ -2106,7 +2106,7 @@ var Yn = {
|
|
|
2106
2106
|
switch (this.outputFormat) {
|
|
2107
2107
|
case "json": return this.editor.getJSON();
|
|
2108
2108
|
case "html": return this.editor.getHTML();
|
|
2109
|
-
case "markdown": return
|
|
2109
|
+
case "markdown": return T(this.editor.getJSON(), this.extensions);
|
|
2110
2110
|
default: return this.editor.getText({ blockSeparator: "\n" });
|
|
2111
2111
|
}
|
|
2112
2112
|
},
|
|
@@ -2126,8 +2126,8 @@ var Yn = {
|
|
|
2126
2126
|
}
|
|
2127
2127
|
}, Zn = { class: "d-popover__dialog" };
|
|
2128
2128
|
function Qn(e, t, n, r, i, a) {
|
|
2129
|
-
let o =
|
|
2130
|
-
return
|
|
2129
|
+
let o = I("dt-button"), s = I("dt-stack"), c = I("bubble-menu"), l = I("editor-content");
|
|
2130
|
+
return P(), O("div", null, [i.editor && n.link ? (P(), E(c, {
|
|
2131
2131
|
key: 0,
|
|
2132
2132
|
editor: i.editor,
|
|
2133
2133
|
"should-show": a.bubbleMenuShouldShow,
|
|
@@ -2135,34 +2135,34 @@ function Qn(e, t, n, r, i, a) {
|
|
|
2135
2135
|
"append-to": i.appendTo,
|
|
2136
2136
|
style: { visibility: "visible" }
|
|
2137
2137
|
}, {
|
|
2138
|
-
default:
|
|
2138
|
+
default: R(() => [k("div", Zn, [j(s, {
|
|
2139
2139
|
direction: "row",
|
|
2140
2140
|
class: "d-rich-text-editor-bubble-menu__button-stack",
|
|
2141
2141
|
gap: "0"
|
|
2142
2142
|
}, {
|
|
2143
|
-
default:
|
|
2144
|
-
|
|
2143
|
+
default: R(() => [
|
|
2144
|
+
j(o, {
|
|
2145
2145
|
kind: "muted",
|
|
2146
2146
|
importance: "clear",
|
|
2147
2147
|
onClick: a.editLink
|
|
2148
2148
|
}, {
|
|
2149
|
-
default:
|
|
2149
|
+
default: R(() => [A(L(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
|
|
2150
2150
|
_: 1
|
|
2151
2151
|
}, 8, ["onClick"]),
|
|
2152
|
-
|
|
2152
|
+
j(o, {
|
|
2153
2153
|
kind: "muted",
|
|
2154
2154
|
importance: "clear",
|
|
2155
2155
|
onClick: a.openLink
|
|
2156
2156
|
}, {
|
|
2157
|
-
default:
|
|
2157
|
+
default: R(() => [A(L(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
|
|
2158
2158
|
_: 1
|
|
2159
2159
|
}, 8, ["onClick"]),
|
|
2160
|
-
|
|
2160
|
+
j(o, {
|
|
2161
2161
|
kind: "critical",
|
|
2162
2162
|
importance: "clear",
|
|
2163
2163
|
onClick: a.removeLink
|
|
2164
2164
|
}, {
|
|
2165
|
-
default:
|
|
2165
|
+
default: R(() => [A(L(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
|
|
2166
2166
|
_: 1
|
|
2167
2167
|
}, 8, ["onClick"])
|
|
2168
2168
|
]),
|
|
@@ -2174,15 +2174,15 @@ function Qn(e, t, n, r, i, a) {
|
|
|
2174
2174
|
"should-show",
|
|
2175
2175
|
"options",
|
|
2176
2176
|
"append-to"
|
|
2177
|
-
])) :
|
|
2177
|
+
])) : D("", !0), j(l, ye({
|
|
2178
2178
|
ref: "editor",
|
|
2179
2179
|
editor: i.editor,
|
|
2180
2180
|
class: "d-rich-text-editor",
|
|
2181
2181
|
"data-qa": "dt-rich-text-editor"
|
|
2182
2182
|
}, a.attrs), null, 16, ["editor"])]);
|
|
2183
2183
|
}
|
|
2184
|
-
var $n = /* @__PURE__ */
|
|
2184
|
+
var $n = /* @__PURE__ */ u(Xn, [["render", Qn]]);
|
|
2185
2185
|
//#endregion
|
|
2186
2186
|
export { $n as t };
|
|
2187
2187
|
|
|
2188
|
-
//# sourceMappingURL=RichTextEditor-
|
|
2188
|
+
//# sourceMappingURL=RichTextEditor-Dit5pXhR.js.map
|