@dialpad/dialtone-vue 2.152.0 → 2.153.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{dropdown-6UoczdUY.js → dropdown-YdCyJ5Dq.js} +77 -41
- package/dist/chunks/{dropdown-6UoczdUY.js.map → dropdown-YdCyJ5Dq.js.map} +1 -1
- package/dist/chunks/{dropdown-pHxnQPzT.js → dropdown-mjrYu_mK.js} +77 -41
- package/dist/chunks/{dropdown-pHxnQPzT.js.map → dropdown-mjrYu_mK.js.map} +1 -1
- package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -1
- package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -1
- package/dist/chunks/{icon_constants-Dy4MEUJL.js → icon_constants-TdxqLsS2.js} +3 -2
- package/dist/chunks/icon_constants-TdxqLsS2.js.map +1 -0
- package/dist/chunks/{icon_constants-QYpmdE0R.js → icon_constants-VEA0wI5C.js} +3 -2
- package/dist/chunks/icon_constants-VEA0wI5C.js.map +1 -0
- package/dist/chunks/{index-gj1jEXP4.js → index-DyqUqjvI.js} +122 -87
- package/dist/chunks/{index-gj1jEXP4.js.map → index-DyqUqjvI.js.map} +1 -1
- package/dist/chunks/{index-anN_sx1F.js → index-NYFNZeHH.js} +5 -13
- package/dist/chunks/{index-anN_sx1F.js.map → index-NYFNZeHH.js.map} +1 -1
- package/dist/chunks/{index-ODod4Oj_.js → index-i65YVk-U.js} +5 -13
- package/dist/chunks/{index-ODod4Oj_.js.map → index-i65YVk-U.js.map} +1 -1
- package/dist/chunks/{index-eJ-WWRdf.js → index-mBWay1Qb.js} +122 -87
- package/dist/chunks/{index-eJ-WWRdf.js.map → index-mBWay1Qb.js.map} +1 -1
- package/dist/chunks/{input-Axw-wFj2.js → input-Hqw33WBe.js} +3 -9
- package/dist/chunks/{input-Axw-wFj2.js.map → input-Hqw33WBe.js.map} +1 -1
- package/dist/chunks/{input-6kbd8Pju.js → input-PhJeBN6r.js} +3 -9
- package/dist/chunks/{input-6kbd8Pju.js.map → input-PhJeBN6r.js.map} +1 -1
- package/dist/chunks/{input_group-qVZaS5Bb.js → input_group-ZI7aVGEp.js} +4 -2
- package/dist/chunks/{input_group-m3cWYUfI.js.map → input_group-ZI7aVGEp.js.map} +1 -1
- package/dist/chunks/{input_group-m3cWYUfI.js → input_group-pE6ec9R3.js} +4 -2
- package/dist/chunks/{input_group-qVZaS5Bb.js.map → input_group-pE6ec9R3.js.map} +1 -1
- package/dist/chunks/{keyboard_list_navigation-ScXhrxya.js → keyboard_list_navigation-YIqTuw1W.js} +6 -5
- package/dist/chunks/{keyboard_list_navigation-fJnl_Iox.js.map → keyboard_list_navigation-YIqTuw1W.js.map} +1 -1
- package/dist/chunks/{keyboard_list_navigation-fJnl_Iox.js → keyboard_list_navigation-x3D6RcC7.js} +6 -5
- package/dist/chunks/{keyboard_list_navigation-ScXhrxya.js.map → keyboard_list_navigation-x3D6RcC7.js.map} +1 -1
- package/dist/chunks/link_constants-AfTWrr-n.js.map +1 -1
- package/dist/chunks/link_constants-x8NwdqmA.js.map +1 -1
- package/dist/chunks/list_item_constants-EiqkqZvP.js.map +1 -1
- package/dist/chunks/list_item_constants-u1xcN9Dd.js.map +1 -1
- package/dist/chunks/{modal-XOr4kiNZ.js → modal-8X6poIZW.js} +4 -2
- package/dist/chunks/{modal-XOr4kiNZ.js.map → modal-8X6poIZW.js.map} +1 -1
- package/dist/chunks/{modal-VgxXAQFP.js → modal-OaWxzqNt.js} +4 -2
- package/dist/chunks/{modal-VgxXAQFP.js.map → modal-OaWxzqNt.js.map} +1 -1
- package/dist/chunks/{notice_action-IRUoLX2d.js → notice_action-qQr3K2TC.js} +71 -46
- package/dist/chunks/{notice_action-IRUoLX2d.js.map → notice_action-qQr3K2TC.js.map} +1 -1
- package/dist/chunks/{notice_action-P6uDyE9x.js → notice_action-tEvvMg7Q.js} +71 -46
- package/dist/chunks/{notice_action-P6uDyE9x.js.map → notice_action-tEvvMg7Q.js.map} +1 -1
- package/dist/chunks/notice_constants-7Qt2CQEY.js.map +1 -1
- package/dist/chunks/notice_constants-UXo9e3bS.js.map +1 -1
- package/dist/chunks/{popover_constants-WsOUIY-m.js → popover_constants-6YkPPbnk.js} +26 -47
- package/dist/chunks/{popover_constants-WsOUIY-m.js.map → popover_constants-6YkPPbnk.js.map} +1 -1
- package/dist/chunks/{popover_constants-XnGWXaxX.js → popover_constants-h9MD6WUt.js} +26 -47
- package/dist/chunks/{popover_constants-XnGWXaxX.js.map → popover_constants-h9MD6WUt.js.map} +1 -1
- package/dist/chunks/{sr_only_close_button-ZaGdAHz7.js → sr_only_close_button-2Q9Ny1Nc.js} +24 -18
- package/dist/chunks/{sr_only_close_button-ZaGdAHz7.js.map → sr_only_close_button-2Q9Ny1Nc.js.map} +1 -1
- package/dist/chunks/{sr_only_close_button-81bHIpPu.js → sr_only_close_button-IjMVfBDE.js} +24 -18
- package/dist/chunks/{sr_only_close_button-81bHIpPu.js.map → sr_only_close_button-IjMVfBDE.js.map} +1 -1
- package/dist/chunks/stack_constants-HraCekPm.js.map +1 -1
- package/dist/chunks/stack_constants-SMzMWnAQ.js.map +1 -1
- package/dist/chunks/{tab-FcsV5VmK.js → tab-79yMX6m6.js} +86 -68
- package/dist/chunks/{tab-V4cb44Ry.js.map → tab-79yMX6m6.js.map} +1 -1
- package/dist/chunks/{tab-V4cb44Ry.js → tab-muPOS7JE.js} +86 -68
- package/dist/chunks/{tab-FcsV5VmK.js.map → tab-muPOS7JE.js.map} +1 -1
- package/dist/common/constants.cjs.map +1 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/dates.cjs +3 -1
- package/dist/common/dates.cjs.map +1 -1
- package/dist/common/dates.js +3 -1
- package/dist/common/dates.js.map +1 -1
- package/dist/common/emoji.cjs +1 -1
- package/dist/common/emoji.js +1 -1
- package/dist/common/mixins.cjs +3 -3
- package/dist/common/mixins.js +3 -3
- package/dist/common/utils.cjs +8 -44
- package/dist/common/utils.cjs.map +1 -1
- package/dist/common/utils.js +8 -44
- package/dist/common/utils.js.map +1 -1
- package/dist/common/validators.cjs.map +1 -1
- package/dist/common/validators.js.map +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +12 -12
- package/dist/dialtone-vue.js +12 -12
- package/dist/lib/attachment-carousel.cjs +172 -48
- package/dist/lib/attachment-carousel.cjs.map +1 -1
- package/dist/lib/attachment-carousel.js +172 -48
- package/dist/lib/attachment-carousel.js.map +1 -1
- package/dist/lib/avatar.cjs +75 -58
- package/dist/lib/avatar.cjs.map +1 -1
- package/dist/lib/avatar.js +75 -58
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/badge.cjs +31 -20
- package/dist/lib/badge.cjs.map +1 -1
- package/dist/lib/badge.js +31 -20
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/banner.cjs +53 -29
- package/dist/lib/banner.cjs.map +1 -1
- package/dist/lib/banner.js +53 -29
- package/dist/lib/banner.js.map +1 -1
- package/dist/lib/breadcrumbs.cjs +36 -30
- package/dist/lib/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs.js +36 -30
- package/dist/lib/breadcrumbs.js.map +1 -1
- package/dist/lib/button-group.cjs +7 -14
- package/dist/lib/button-group.cjs.map +1 -1
- package/dist/lib/button-group.js +7 -14
- package/dist/lib/button-group.js.map +1 -1
- package/dist/lib/button.cjs +55 -62
- package/dist/lib/button.cjs.map +1 -1
- package/dist/lib/button.js +55 -62
- package/dist/lib/button.js.map +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +91 -23
- package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover.js +91 -23
- package/dist/lib/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbar-button.cjs +49 -33
- package/dist/lib/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button.js +49 -33
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/callbox.cjs +78 -15
- package/dist/lib/callbox.cjs.map +1 -1
- package/dist/lib/callbox.js +78 -15
- package/dist/lib/callbox.js.map +1 -1
- package/dist/lib/card.cjs +16 -23
- package/dist/lib/card.cjs.map +1 -1
- package/dist/lib/card.js +16 -23
- package/dist/lib/card.js.map +1 -1
- package/dist/lib/checkbox-group.cjs +3 -15
- package/dist/lib/checkbox-group.cjs.map +1 -1
- package/dist/lib/checkbox-group.js +3 -15
- package/dist/lib/checkbox-group.js.map +1 -1
- package/dist/lib/checkbox.cjs +52 -16
- package/dist/lib/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox.js +52 -16
- package/dist/lib/checkbox.js.map +1 -1
- package/dist/lib/chip.cjs +58 -26
- package/dist/lib/chip.cjs.map +1 -1
- package/dist/lib/chip.js +58 -26
- package/dist/lib/chip.js.map +1 -1
- package/dist/lib/codeblock.cjs +4 -11
- package/dist/lib/codeblock.cjs.map +1 -1
- package/dist/lib/codeblock.js +4 -11
- package/dist/lib/codeblock.js.map +1 -1
- package/dist/lib/collapsible.cjs +91 -34
- package/dist/lib/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible.js +91 -34
- package/dist/lib/collapsible.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +131 -38
- package/dist/lib/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select.js +131 -38
- package/dist/lib/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover.cjs +130 -39
- package/dist/lib/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover.js +130 -39
- package/dist/lib/combobox-with-popover.js.map +1 -1
- package/dist/lib/combobox.cjs +3 -3
- package/dist/lib/combobox.js +3 -3
- package/dist/lib/contact-centers-row.cjs +86 -29
- package/dist/lib/contact-centers-row.cjs.map +1 -1
- package/dist/lib/contact-centers-row.js +86 -29
- package/dist/lib/contact-centers-row.js.map +1 -1
- package/dist/lib/contact-info.cjs +95 -24
- package/dist/lib/contact-info.cjs.map +1 -1
- package/dist/lib/contact-info.js +95 -24
- package/dist/lib/contact-info.js.map +1 -1
- package/dist/lib/contact-row.cjs +61 -18
- package/dist/lib/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row.js +61 -18
- package/dist/lib/contact-row.js.map +1 -1
- package/dist/lib/datepicker.cjs +361 -102
- package/dist/lib/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker.js +361 -102
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/description-list.cjs +11 -12
- package/dist/lib/description-list.cjs.map +1 -1
- package/dist/lib/description-list.js +11 -12
- package/dist/lib/description-list.js.map +1 -1
- package/dist/lib/dropdown.cjs +13 -17
- package/dist/lib/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown.js +13 -17
- package/dist/lib/dropdown.js.map +1 -1
- package/dist/lib/editor.cjs +409 -109
- package/dist/lib/editor.cjs.map +1 -1
- package/dist/lib/editor.js +409 -109
- package/dist/lib/editor.js.map +1 -1
- package/dist/lib/emoji-picker.cjs +512 -234
- package/dist/lib/emoji-picker.cjs.map +1 -1
- package/dist/lib/emoji-picker.js +512 -234
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +69 -31
- package/dist/lib/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row.js +69 -31
- package/dist/lib/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper.cjs +14 -22
- package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
- package/dist/lib/emoji-text-wrapper.js +14 -22
- package/dist/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/emoji.cjs +40 -13
- package/dist/lib/emoji.cjs.map +1 -1
- package/dist/lib/emoji.js +40 -13
- package/dist/lib/emoji.js.map +1 -1
- package/dist/lib/empty-state.cjs +27 -12
- package/dist/lib/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state.js +27 -12
- package/dist/lib/empty-state.js.map +1 -1
- package/dist/lib/feed-item-row.cjs +106 -27
- package/dist/lib/feed-item-row.cjs.map +1 -1
- package/dist/lib/feed-item-row.js +106 -27
- package/dist/lib/feed-item-row.js.map +1 -1
- package/dist/lib/feed-pill.cjs +90 -35
- package/dist/lib/feed-pill.cjs.map +1 -1
- package/dist/lib/feed-pill.js +90 -35
- package/dist/lib/feed-pill.js.map +1 -1
- package/dist/lib/general-row.cjs +184 -75
- package/dist/lib/general-row.cjs.map +1 -1
- package/dist/lib/general-row.js +184 -75
- package/dist/lib/general-row.js.map +1 -1
- package/dist/lib/group-row.cjs +27 -16
- package/dist/lib/group-row.cjs.map +1 -1
- package/dist/lib/group-row.js +27 -16
- package/dist/lib/group-row.js.map +1 -1
- package/dist/lib/grouped-chip.cjs +68 -20
- package/dist/lib/grouped-chip.cjs.map +1 -1
- package/dist/lib/grouped-chip.js +68 -20
- package/dist/lib/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard.cjs +71 -41
- package/dist/lib/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard.js +71 -41
- package/dist/lib/hovercard.js.map +1 -1
- package/dist/lib/icon.cjs +10 -12
- package/dist/lib/icon.cjs.map +1 -1
- package/dist/lib/icon.js +10 -12
- package/dist/lib/icon.js.map +1 -1
- package/dist/lib/illustration.cjs +9 -12
- package/dist/lib/illustration.cjs.map +1 -1
- package/dist/lib/illustration.js +9 -12
- package/dist/lib/illustration.js.map +1 -1
- package/dist/lib/image-viewer.cjs +98 -23
- package/dist/lib/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer.js +98 -23
- package/dist/lib/image-viewer.js.map +1 -1
- package/dist/lib/input-group.cjs +24 -14
- package/dist/lib/input-group.cjs.map +1 -1
- package/dist/lib/input-group.js +24 -14
- package/dist/lib/input-group.js.map +1 -1
- package/dist/lib/input.cjs +108 -40
- package/dist/lib/input.cjs.map +1 -1
- package/dist/lib/input.js +108 -40
- package/dist/lib/input.js.map +1 -1
- package/dist/lib/item-layout.cjs +42 -11
- package/dist/lib/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout.js +42 -11
- package/dist/lib/item-layout.js.map +1 -1
- package/dist/lib/ivr-node.cjs +135 -47
- package/dist/lib/ivr-node.cjs.map +1 -1
- package/dist/lib/ivr-node.js +135 -47
- package/dist/lib/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut.cjs +35 -23
- package/dist/lib/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut.js +35 -23
- package/dist/lib/keyboard-shortcut.js.map +1 -1
- package/dist/lib/lazy-show.cjs +15 -11
- package/dist/lib/lazy-show.cjs.map +1 -1
- package/dist/lib/lazy-show.js +15 -11
- package/dist/lib/lazy-show.js.map +1 -1
- package/dist/lib/link.cjs +9 -15
- package/dist/lib/link.cjs.map +1 -1
- package/dist/lib/link.js +9 -15
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/list-item-group.cjs +17 -11
- package/dist/lib/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group.js +17 -11
- package/dist/lib/list-item-group.js.map +1 -1
- package/dist/lib/list-item.cjs +42 -23
- package/dist/lib/list-item.cjs.map +1 -1
- package/dist/lib/list-item.js +42 -23
- package/dist/lib/list-item.js.map +1 -1
- package/dist/lib/message-input.cjs +367 -97
- package/dist/lib/message-input.cjs.map +1 -1
- package/dist/lib/message-input.js +367 -97
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/modal.cjs +94 -36
- package/dist/lib/modal.cjs.map +1 -1
- package/dist/lib/modal.js +94 -36
- package/dist/lib/modal.js.map +1 -1
- package/dist/lib/notice.cjs +40 -21
- package/dist/lib/notice.cjs.map +1 -1
- package/dist/lib/notice.js +40 -21
- package/dist/lib/notice.js.map +1 -1
- package/dist/lib/pagination.cjs +81 -20
- package/dist/lib/pagination.cjs.map +1 -1
- package/dist/lib/pagination.js +81 -20
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/popover.cjs +194 -75
- package/dist/lib/popover.cjs.map +1 -1
- package/dist/lib/popover.js +195 -76
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/presence.cjs +23 -22
- package/dist/lib/presence.cjs.map +1 -1
- package/dist/lib/presence.js +23 -22
- package/dist/lib/presence.js.map +1 -1
- package/dist/lib/radio-group.cjs +2 -11
- package/dist/lib/radio-group.cjs.map +1 -1
- package/dist/lib/radio-group.js +2 -11
- package/dist/lib/radio-group.js.map +1 -1
- package/dist/lib/radio.cjs +47 -15
- package/dist/lib/radio.cjs.map +1 -1
- package/dist/lib/radio.js +47 -15
- package/dist/lib/radio.js.map +1 -1
- package/dist/lib/rich-text-editor.cjs +340 -327
- package/dist/lib/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor.js +340 -327
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/root-layout.cjs +33 -15
- package/dist/lib/root-layout.cjs.map +1 -1
- package/dist/lib/root-layout.js +33 -15
- package/dist/lib/root-layout.js.map +1 -1
- package/dist/lib/scrollbar-directive.cjs.map +1 -1
- package/dist/lib/scrollbar-directive.js.map +1 -1
- package/dist/lib/select-menu.cjs +52 -33
- package/dist/lib/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu.js +52 -33
- package/dist/lib/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button.cjs +42 -16
- package/dist/lib/settings-menu-button.cjs.map +1 -1
- package/dist/lib/settings-menu-button.js +42 -16
- package/dist/lib/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton.cjs +118 -93
- package/dist/lib/skeleton.cjs.map +1 -1
- package/dist/lib/skeleton.js +118 -93
- package/dist/lib/skeleton.js.map +1 -1
- package/dist/lib/split-button.cjs +164 -64
- package/dist/lib/split-button.cjs.map +1 -1
- package/dist/lib/split-button.js +164 -64
- package/dist/lib/split-button.js.map +1 -1
- package/dist/lib/stack.cjs +21 -33
- package/dist/lib/stack.cjs.map +1 -1
- package/dist/lib/stack.js +21 -33
- package/dist/lib/stack.js.map +1 -1
- package/dist/lib/tabs.cjs +20 -13
- package/dist/lib/tabs.cjs.map +1 -1
- package/dist/lib/tabs.js +20 -13
- package/dist/lib/tabs.js.map +1 -1
- package/dist/lib/time-pill.cjs +8 -11
- package/dist/lib/time-pill.cjs.map +1 -1
- package/dist/lib/time-pill.js +8 -11
- package/dist/lib/time-pill.js.map +1 -1
- package/dist/lib/toast.cjs +42 -21
- package/dist/lib/toast.cjs.map +1 -1
- package/dist/lib/toast.js +42 -21
- package/dist/lib/toast.js.map +1 -1
- package/dist/lib/toggle.cjs +28 -24
- package/dist/lib/toggle.cjs.map +1 -1
- package/dist/lib/toggle.js +28 -24
- package/dist/lib/toggle.js.map +1 -1
- package/dist/lib/tooltip-directive.cjs +32 -26
- package/dist/lib/tooltip-directive.cjs.map +1 -1
- package/dist/lib/tooltip-directive.js +32 -26
- package/dist/lib/tooltip-directive.js.map +1 -1
- package/dist/lib/tooltip.cjs +31 -21
- package/dist/lib/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip.js +32 -22
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info.cjs +18 -21
- package/dist/lib/top-banner-info.cjs.map +1 -1
- package/dist/lib/top-banner-info.js +18 -21
- package/dist/lib/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill.cjs +18 -12
- package/dist/lib/unread-pill.cjs.map +1 -1
- package/dist/lib/unread-pill.js +18 -12
- package/dist/lib/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages.cjs +23 -16
- package/dist/lib/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages.js +23 -16
- package/dist/lib/validation-messages.js.map +1 -1
- package/dist/style.css +5 -0
- package/dist/types/common/emoji/index.d.ts +2 -59236
- package/dist/types/common/emoji/index.d.ts.map +1 -1
- package/dist/types/components/button/button.vue.d.ts +1 -1
- package/dist/types/components/chip/chip.vue.d.ts +1 -1
- package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/types/components/icon/icon.vue.d.ts +2 -2
- package/dist/types/components/icon/icon_constants.d.ts +1 -1
- package/dist/types/components/icon/icon_constants.d.ts.map +1 -1
- package/dist/types/components/illustration/illustration.vue.d.ts +2 -2
- package/dist/types/components/illustration/illustration_constants.d.ts +1 -1
- package/dist/types/components/illustration/illustration_constants.d.ts.map +1 -1
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts +21 -0
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/types/components/input/input.vue.d.ts +1 -1
- package/dist/types/components/modal/modal.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/extensions/custom_link/custom_link.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -3
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/split_button/split_button-alpha.vue.d.ts +1 -1
- package/dist/types/components/toast/toast.vue.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -1
- package/package.json +5 -4
- package/dist/chunks/icon_constants-Dy4MEUJL.js.map +0 -1
- package/dist/chunks/icon_constants-QYpmdE0R.js.map +0 -1
|
@@ -21,7 +21,7 @@ const History = require("@tiptap/extension-history");
|
|
|
21
21
|
const core = require("@tiptap/core");
|
|
22
22
|
const _pluginVue2_normalizer = require("../chunks/_plugin-vue2_normalizer-1aBeR4AK.js");
|
|
23
23
|
const lib_emoji = require("./emoji.cjs");
|
|
24
|
-
const common_emoji = require("../chunks/index-
|
|
24
|
+
const common_emoji = require("../chunks/index-NYFNZeHH.js");
|
|
25
25
|
const state = require("@tiptap/pm/state");
|
|
26
26
|
const Suggestion = require("@tiptap/suggestion");
|
|
27
27
|
const dialtoneEmojis = require("@dialpad/dialtone-emojis");
|
|
@@ -35,7 +35,7 @@ const lib_avatar = require("./avatar.cjs");
|
|
|
35
35
|
const DtIconHash = require("@dialpad/dialtone-icons/vue2/hash");
|
|
36
36
|
const DtIconLock = require("@dialpad/dialtone-icons/vue2/lock");
|
|
37
37
|
require("./skeleton.cjs");
|
|
38
|
-
require("../chunks/icon_constants-
|
|
38
|
+
require("../chunks/icon_constants-VEA0wI5C.js");
|
|
39
39
|
require("@dialpad/dialtone-icons/icons.json");
|
|
40
40
|
require("emoji-toolkit/emoji_strategy.json");
|
|
41
41
|
require("../chunks/list_item_constants-EiqkqZvP.js");
|
|
@@ -57,19 +57,17 @@ const _sfc_main$9 = {
|
|
|
57
57
|
};
|
|
58
58
|
var _sfc_render$9 = function render() {
|
|
59
59
|
var _vm = this, _c = _vm._self._c;
|
|
60
|
-
return _c("node-view-wrapper", {
|
|
60
|
+
return _c("node-view-wrapper", {
|
|
61
|
+
staticClass: "d-d-inline-block d-va-bottom d-lh0"
|
|
62
|
+
}, [_c("dt-emoji", {
|
|
63
|
+
attrs: {
|
|
64
|
+
"size": "500",
|
|
65
|
+
"code": _vm.node.attrs.code
|
|
66
|
+
}
|
|
67
|
+
})], 1);
|
|
61
68
|
};
|
|
62
69
|
var _sfc_staticRenderFns$9 = [];
|
|
63
|
-
var __component__$9 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
64
|
-
_sfc_main$9,
|
|
65
|
-
_sfc_render$9,
|
|
66
|
-
_sfc_staticRenderFns$9,
|
|
67
|
-
false,
|
|
68
|
-
null,
|
|
69
|
-
null,
|
|
70
|
-
null,
|
|
71
|
-
null
|
|
72
|
-
);
|
|
70
|
+
var __component__$9 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$9, _sfc_render$9, _sfc_staticRenderFns$9, false, null, null, null, null);
|
|
73
71
|
const EmojiComponent = __component__$9.exports;
|
|
74
72
|
const _sfc_main$8 = {
|
|
75
73
|
name: "SuggestionList",
|
|
@@ -105,7 +103,9 @@ const _sfc_main$8 = {
|
|
|
105
103
|
}
|
|
106
104
|
},
|
|
107
105
|
methods: {
|
|
108
|
-
onKeyDown({
|
|
106
|
+
onKeyDown({
|
|
107
|
+
event
|
|
108
|
+
}) {
|
|
109
109
|
if (event.key === "ArrowUp") {
|
|
110
110
|
this.upHandler();
|
|
111
111
|
return true;
|
|
@@ -148,13 +148,22 @@ const _sfc_main$8 = {
|
|
|
148
148
|
this.command(item);
|
|
149
149
|
return;
|
|
150
150
|
case "mention":
|
|
151
|
-
this.command({
|
|
151
|
+
this.command({
|
|
152
|
+
name: item.name,
|
|
153
|
+
id: item.id,
|
|
154
|
+
avatarSrc: item.avatarSrc
|
|
155
|
+
});
|
|
152
156
|
break;
|
|
153
157
|
case "channel":
|
|
154
|
-
this.command({
|
|
158
|
+
this.command({
|
|
159
|
+
name: item.name,
|
|
160
|
+
id: item.id
|
|
161
|
+
});
|
|
155
162
|
break;
|
|
156
163
|
case "slash-command":
|
|
157
|
-
this.command({
|
|
164
|
+
this.command({
|
|
165
|
+
command: item.command
|
|
166
|
+
});
|
|
158
167
|
break;
|
|
159
168
|
}
|
|
160
169
|
}
|
|
@@ -162,29 +171,45 @@ const _sfc_main$8 = {
|
|
|
162
171
|
};
|
|
163
172
|
var _sfc_render$8 = function render2() {
|
|
164
173
|
var _vm = this, _c = _vm._self._c;
|
|
165
|
-
return _c("div", {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
return _c("div", {
|
|
175
|
+
staticClass: "d-popover__dialog dt-suggestion-list__container"
|
|
176
|
+
}, [_c("ul", {
|
|
177
|
+
directives: [{
|
|
178
|
+
name: "show",
|
|
179
|
+
rawName: "v-show",
|
|
180
|
+
value: _vm.items.length,
|
|
181
|
+
expression: "items.length"
|
|
182
|
+
}],
|
|
183
|
+
ref: "suggestionList",
|
|
184
|
+
staticClass: "dt-suggestion-list"
|
|
185
|
+
}, _vm._l(_vm.items, function(item, index) {
|
|
186
|
+
return _c("dt-list-item", {
|
|
187
|
+
key: item.id,
|
|
188
|
+
class: ["dt-suggestion-list--item", {
|
|
189
|
+
"dt-list-item--highlighted": index === _vm.selectedIndex
|
|
190
|
+
}],
|
|
191
|
+
attrs: {
|
|
192
|
+
"navigation-type": "arrow-keys"
|
|
193
|
+
},
|
|
194
|
+
on: {
|
|
195
|
+
"click": function($event) {
|
|
196
|
+
return _vm.selectItem(index);
|
|
197
|
+
},
|
|
198
|
+
"keydown": function($event) {
|
|
199
|
+
$event.preventDefault();
|
|
200
|
+
return _vm.onKeyDown.apply(null, arguments);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}, [_c(_vm.itemComponent, {
|
|
204
|
+
tag: "component",
|
|
205
|
+
attrs: {
|
|
206
|
+
"item": item
|
|
207
|
+
}
|
|
208
|
+
})], 1);
|
|
175
209
|
}), 1)]);
|
|
176
210
|
};
|
|
177
211
|
var _sfc_staticRenderFns$8 = [];
|
|
178
|
-
var __component__$8 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
179
|
-
_sfc_main$8,
|
|
180
|
-
_sfc_render$8,
|
|
181
|
-
_sfc_staticRenderFns$8,
|
|
182
|
-
false,
|
|
183
|
-
null,
|
|
184
|
-
null,
|
|
185
|
-
null,
|
|
186
|
-
null
|
|
187
|
-
);
|
|
212
|
+
var __component__$8 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$8, _sfc_render$8, _sfc_staticRenderFns$8, false, null, null, null, null);
|
|
188
213
|
const SuggestionList = __component__$8.exports;
|
|
189
214
|
const _sfc_main$7 = {
|
|
190
215
|
name: "EmojiSuggestion",
|
|
@@ -201,24 +226,27 @@ const _sfc_main$7 = {
|
|
|
201
226
|
};
|
|
202
227
|
var _sfc_render$7 = function render3() {
|
|
203
228
|
var _vm = this, _c = _vm._self._c;
|
|
204
|
-
return _c("dt-stack", {
|
|
229
|
+
return _c("dt-stack", {
|
|
230
|
+
attrs: {
|
|
231
|
+
"direction": "row",
|
|
232
|
+
"gap": "400"
|
|
233
|
+
}
|
|
234
|
+
}, [_c("dt-emoji", {
|
|
235
|
+
attrs: {
|
|
236
|
+
"size": "200",
|
|
237
|
+
"code": _vm.item.code
|
|
238
|
+
}
|
|
239
|
+
}), _vm._v(" " + _vm._s(_vm.item.code) + " ")], 1);
|
|
205
240
|
};
|
|
206
241
|
var _sfc_staticRenderFns$7 = [];
|
|
207
|
-
var __component__$7 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
208
|
-
_sfc_main$7,
|
|
209
|
-
_sfc_render$7,
|
|
210
|
-
_sfc_staticRenderFns$7,
|
|
211
|
-
false,
|
|
212
|
-
null,
|
|
213
|
-
null,
|
|
214
|
-
null,
|
|
215
|
-
null
|
|
216
|
-
);
|
|
242
|
+
var __component__$7 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$7, _sfc_render$7, _sfc_staticRenderFns$7, false, null, null, null, null);
|
|
217
243
|
const EmojiSuggestion = __component__$7.exports;
|
|
218
244
|
const hideOnEsc = {
|
|
219
245
|
name: "hideOnEsc",
|
|
220
246
|
defaultValue: true,
|
|
221
|
-
fn({
|
|
247
|
+
fn({
|
|
248
|
+
hide
|
|
249
|
+
}) {
|
|
222
250
|
function onKeyDown(event) {
|
|
223
251
|
if (event.keyCode === 27) {
|
|
224
252
|
hide();
|
|
@@ -235,7 +263,9 @@ const hideOnEsc = {
|
|
|
235
263
|
}
|
|
236
264
|
};
|
|
237
265
|
const suggestionOptions = {
|
|
238
|
-
items: ({
|
|
266
|
+
items: ({
|
|
267
|
+
query
|
|
268
|
+
}) => {
|
|
239
269
|
if (query.length < 2) {
|
|
240
270
|
return [];
|
|
241
271
|
}
|
|
@@ -247,26 +277,29 @@ const suggestionOptions = {
|
|
|
247
277
|
return false;
|
|
248
278
|
});
|
|
249
279
|
return filteredEmoji.map((item) => {
|
|
250
|
-
return {
|
|
280
|
+
return {
|
|
281
|
+
code: item.shortname
|
|
282
|
+
};
|
|
251
283
|
});
|
|
252
284
|
},
|
|
253
|
-
command: ({
|
|
285
|
+
command: ({
|
|
286
|
+
editor,
|
|
287
|
+
range,
|
|
288
|
+
props
|
|
289
|
+
}) => {
|
|
254
290
|
var _a, _b;
|
|
255
291
|
const nodeAfter = editor.view.state.selection.$to.nodeAfter;
|
|
256
292
|
const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");
|
|
257
293
|
if (overrideSpace) {
|
|
258
294
|
range.to += 1;
|
|
259
295
|
}
|
|
260
|
-
editor.chain().focus().insertContentAt(range, [
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
text: " "
|
|
268
|
-
}
|
|
269
|
-
]).run();
|
|
296
|
+
editor.chain().focus().insertContentAt(range, [{
|
|
297
|
+
type: "emoji",
|
|
298
|
+
attrs: props
|
|
299
|
+
}, {
|
|
300
|
+
type: "text",
|
|
301
|
+
text: " "
|
|
302
|
+
}]).run();
|
|
270
303
|
(_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
|
|
271
304
|
},
|
|
272
305
|
render: () => {
|
|
@@ -380,17 +413,19 @@ const Emoji = core.Node.create({
|
|
|
380
413
|
};
|
|
381
414
|
},
|
|
382
415
|
parseHTML() {
|
|
383
|
-
return [
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
387
|
-
];
|
|
416
|
+
return [{
|
|
417
|
+
tag: "emoji-component"
|
|
418
|
+
}];
|
|
388
419
|
},
|
|
389
|
-
renderText({
|
|
420
|
+
renderText({
|
|
421
|
+
node
|
|
422
|
+
}) {
|
|
390
423
|
const unicodeEmoji = common_emoji.stringToUnicode(common_emoji.codeToEmojiData(node.attrs.code).unicode_output);
|
|
391
424
|
return unicodeEmoji;
|
|
392
425
|
},
|
|
393
|
-
renderHTML({
|
|
426
|
+
renderHTML({
|
|
427
|
+
HTMLAttributes
|
|
428
|
+
}) {
|
|
394
429
|
return ["emoji-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
395
430
|
},
|
|
396
431
|
addInputRules() {
|
|
@@ -428,35 +463,30 @@ const Emoji = core.Node.create({
|
|
|
428
463
|
];
|
|
429
464
|
},
|
|
430
465
|
addPasteRules() {
|
|
431
|
-
return [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}
|
|
449
|
-
})
|
|
450
|
-
];
|
|
466
|
+
return [core.nodePasteRule({
|
|
467
|
+
find: shortCodePasteMatch,
|
|
468
|
+
type: this.type,
|
|
469
|
+
getAttributes(attrs) {
|
|
470
|
+
return {
|
|
471
|
+
code: attrs[0]
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
}), core.nodePasteRule({
|
|
475
|
+
find: common_emoji.emojiRegex,
|
|
476
|
+
type: this.type,
|
|
477
|
+
getAttributes(attrs) {
|
|
478
|
+
return {
|
|
479
|
+
code: attrs[0]
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
})];
|
|
451
483
|
},
|
|
452
484
|
addProseMirrorPlugins() {
|
|
453
|
-
return [
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
})
|
|
459
|
-
];
|
|
485
|
+
return [Suggestion({
|
|
486
|
+
editor: this.editor,
|
|
487
|
+
...this.options.suggestion,
|
|
488
|
+
...suggestionOptions
|
|
489
|
+
})];
|
|
460
490
|
}
|
|
461
491
|
});
|
|
462
492
|
function getRegexMatches(text, regex, validator = () => true) {
|
|
@@ -474,13 +504,7 @@ function hasValidPrefix(text, match) {
|
|
|
474
504
|
return !["#", "@"].includes(text.charAt(match.index)) && !["#", "@"].includes(text.charAt(match.index - 1));
|
|
475
505
|
}
|
|
476
506
|
function trimEndPunctiation(string) {
|
|
477
|
-
const endPunctuationRegex = new RegExp(
|
|
478
|
-
"(?:" + [
|
|
479
|
-
`[!?.,:;'"]`,
|
|
480
|
-
"(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
|
|
481
|
-
].join("|"),
|
|
482
|
-
"g"
|
|
483
|
-
);
|
|
507
|
+
const endPunctuationRegex = new RegExp("(?:" + [`[!?.,:;'"]`, "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
484
508
|
return string.replace(endPunctuationRegex, "");
|
|
485
509
|
}
|
|
486
510
|
function getWordAt(text, index) {
|
|
@@ -531,18 +555,8 @@ function addMarks(text, pos, from, to, tr, type) {
|
|
|
531
555
|
let rangeFrom = from - pos - 1;
|
|
532
556
|
rangeFrom = rangeFrom < 0 ? 0 : rangeFrom;
|
|
533
557
|
const rangeTo = to - pos;
|
|
534
|
-
const firstWordInRange = getWordAtUntil(
|
|
535
|
-
|
|
536
|
-
rangeFrom,
|
|
537
|
-
"left",
|
|
538
|
-
partialPhoneNumberRegex
|
|
539
|
-
);
|
|
540
|
-
const lastWordInRange = getWordAtUntil(
|
|
541
|
-
text,
|
|
542
|
-
rangeTo,
|
|
543
|
-
"right",
|
|
544
|
-
partialPhoneNumberRegex
|
|
545
|
-
);
|
|
558
|
+
const firstWordInRange = getWordAtUntil(text, rangeFrom, "left", partialPhoneNumberRegex);
|
|
559
|
+
const lastWordInRange = getWordAtUntil(text, rangeTo, "right", partialPhoneNumberRegex);
|
|
546
560
|
const wordsInRange = text.slice(firstWordInRange.from, lastWordInRange.to);
|
|
547
561
|
const matches = getRegexMatches(wordsInRange, common_utils.linkRegex, hasValidPrefix);
|
|
548
562
|
matches.forEach((match) => {
|
|
@@ -561,33 +575,29 @@ function autolink(options) {
|
|
|
561
575
|
if (hasInitialized && !contentChanged) {
|
|
562
576
|
return;
|
|
563
577
|
}
|
|
564
|
-
const {
|
|
565
|
-
|
|
578
|
+
const {
|
|
579
|
+
tr
|
|
580
|
+
} = newState;
|
|
581
|
+
const {
|
|
582
|
+
textContent
|
|
583
|
+
} = newState.doc;
|
|
566
584
|
if (!hasInitialized) {
|
|
567
585
|
addMarks(textContent, 0, 0, textContent.length, tr, options.type);
|
|
568
586
|
}
|
|
569
587
|
hasInitialized = true;
|
|
570
|
-
const transform = core.combineTransactionSteps(
|
|
571
|
-
oldState.doc,
|
|
572
|
-
[...transactions]
|
|
573
|
-
);
|
|
588
|
+
const transform = core.combineTransactionSteps(oldState.doc, [...transactions]);
|
|
574
589
|
const changes = core.getChangedRanges(transform);
|
|
575
|
-
changes.forEach(({
|
|
590
|
+
changes.forEach(({
|
|
591
|
+
oldRange,
|
|
592
|
+
newRange
|
|
593
|
+
}) => {
|
|
576
594
|
removeMarks(newRange, newState.doc, tr, options.type);
|
|
577
|
-
const paragraphs = core.findChildrenInRange(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
)
|
|
582
|
-
|
|
583
|
-
addMarks(
|
|
584
|
-
node.textContent,
|
|
585
|
-
pos,
|
|
586
|
-
oldRange.from,
|
|
587
|
-
newRange.to,
|
|
588
|
-
tr,
|
|
589
|
-
options.type
|
|
590
|
-
);
|
|
595
|
+
const paragraphs = core.findChildrenInRange(newState.doc, newRange, (node) => node.isTextblock);
|
|
596
|
+
paragraphs.forEach(({
|
|
597
|
+
node,
|
|
598
|
+
pos
|
|
599
|
+
}) => {
|
|
600
|
+
addMarks(node.textContent, pos, oldRange.from, newRange.to, tr, options.type);
|
|
591
601
|
});
|
|
592
602
|
});
|
|
593
603
|
return tr;
|
|
@@ -600,24 +610,20 @@ const defaultAttributes = {
|
|
|
600
610
|
};
|
|
601
611
|
const CustomLink = core.Mark.create({
|
|
602
612
|
name: "CustomLink",
|
|
603
|
-
renderHTML({
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
this.options.HTMLAttributes,
|
|
608
|
-
HTMLAttributes,
|
|
609
|
-
defaultAttributes
|
|
610
|
-
),
|
|
611
|
-
0
|
|
612
|
-
];
|
|
613
|
+
renderHTML({
|
|
614
|
+
HTMLAttributes
|
|
615
|
+
}) {
|
|
616
|
+
return ["a", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, defaultAttributes)];
|
|
613
617
|
},
|
|
614
|
-
renderText({
|
|
618
|
+
renderText({
|
|
619
|
+
node
|
|
620
|
+
}) {
|
|
615
621
|
return node.attrs.text;
|
|
616
622
|
},
|
|
617
623
|
addProseMirrorPlugins() {
|
|
618
|
-
return [
|
|
619
|
-
|
|
620
|
-
];
|
|
624
|
+
return [autolink({
|
|
625
|
+
type: this.type
|
|
626
|
+
})];
|
|
621
627
|
}
|
|
622
628
|
});
|
|
623
629
|
const _sfc_main$6 = {
|
|
@@ -635,30 +641,25 @@ const _sfc_main$6 = {
|
|
|
635
641
|
};
|
|
636
642
|
var _sfc_render$6 = function render4() {
|
|
637
643
|
var _vm = this, _c = _vm._self._c;
|
|
638
|
-
return _c("node-view-wrapper", {
|
|
644
|
+
return _c("node-view-wrapper", {
|
|
645
|
+
staticClass: "d-d-inline-block"
|
|
646
|
+
}, [_c("dt-link", {
|
|
647
|
+
attrs: {
|
|
648
|
+
"kind": "mention"
|
|
649
|
+
}
|
|
650
|
+
}, [_vm._v(" " + _vm._s(_vm.text) + " ")])], 1);
|
|
639
651
|
};
|
|
640
652
|
var _sfc_staticRenderFns$6 = [];
|
|
641
|
-
var __component__$6 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
642
|
-
_sfc_main$6,
|
|
643
|
-
_sfc_render$6,
|
|
644
|
-
_sfc_staticRenderFns$6,
|
|
645
|
-
false,
|
|
646
|
-
null,
|
|
647
|
-
null,
|
|
648
|
-
null,
|
|
649
|
-
null
|
|
650
|
-
);
|
|
653
|
+
var __component__$6 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$6, _sfc_render$6, _sfc_staticRenderFns$6, false, null, null, null, null);
|
|
651
654
|
const MentionComponent = __component__$6.exports;
|
|
652
655
|
const MentionPlugin = Mention.extend({
|
|
653
656
|
addNodeView() {
|
|
654
657
|
return vue2.VueNodeViewRenderer(MentionComponent);
|
|
655
658
|
},
|
|
656
659
|
parseHTML() {
|
|
657
|
-
return [
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
661
|
-
];
|
|
660
|
+
return [{
|
|
661
|
+
tag: "mention-component"
|
|
662
|
+
}];
|
|
662
663
|
},
|
|
663
664
|
addAttributes() {
|
|
664
665
|
return {
|
|
@@ -673,11 +674,15 @@ const MentionPlugin = Mention.extend({
|
|
|
673
674
|
}
|
|
674
675
|
};
|
|
675
676
|
},
|
|
676
|
-
renderText({
|
|
677
|
+
renderText({
|
|
678
|
+
node
|
|
679
|
+
}) {
|
|
677
680
|
return `@${node.attrs.id}`;
|
|
678
681
|
},
|
|
679
|
-
renderHTML({
|
|
680
|
-
|
|
682
|
+
renderHTML({
|
|
683
|
+
HTMLAttributes
|
|
684
|
+
}) {
|
|
685
|
+
return ["mention-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
681
686
|
}
|
|
682
687
|
}).configure({
|
|
683
688
|
suggestion: {
|
|
@@ -700,19 +705,16 @@ const _sfc_main$5 = {
|
|
|
700
705
|
};
|
|
701
706
|
var _sfc_render$5 = function render5() {
|
|
702
707
|
var _vm = this, _c = _vm._self._c;
|
|
703
|
-
return _c("node-view-wrapper", {
|
|
708
|
+
return _c("node-view-wrapper", {
|
|
709
|
+
staticClass: "d-d-inline-block"
|
|
710
|
+
}, [_c("dt-link", {
|
|
711
|
+
attrs: {
|
|
712
|
+
"kind": "mention"
|
|
713
|
+
}
|
|
714
|
+
}, [_vm._v(" " + _vm._s(_vm.text) + " ")])], 1);
|
|
704
715
|
};
|
|
705
716
|
var _sfc_staticRenderFns$5 = [];
|
|
706
|
-
var __component__$5 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
707
|
-
_sfc_main$5,
|
|
708
|
-
_sfc_render$5,
|
|
709
|
-
_sfc_staticRenderFns$5,
|
|
710
|
-
false,
|
|
711
|
-
null,
|
|
712
|
-
null,
|
|
713
|
-
null,
|
|
714
|
-
null
|
|
715
|
-
);
|
|
717
|
+
var __component__$5 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$5, _sfc_render$5, _sfc_staticRenderFns$5, false, null, null, null, null);
|
|
716
718
|
const ChannelComponent = __component__$5.exports;
|
|
717
719
|
const ChannelPlugin = Mention.extend({
|
|
718
720
|
name: "channel",
|
|
@@ -720,11 +722,9 @@ const ChannelPlugin = Mention.extend({
|
|
|
720
722
|
return vue2.VueNodeViewRenderer(ChannelComponent);
|
|
721
723
|
},
|
|
722
724
|
parseHTML() {
|
|
723
|
-
return [
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
];
|
|
725
|
+
return [{
|
|
726
|
+
tag: "channel-component"
|
|
727
|
+
}];
|
|
728
728
|
},
|
|
729
729
|
addAttributes() {
|
|
730
730
|
return {
|
|
@@ -739,11 +739,15 @@ const ChannelPlugin = Mention.extend({
|
|
|
739
739
|
}
|
|
740
740
|
};
|
|
741
741
|
},
|
|
742
|
-
renderText({
|
|
742
|
+
renderText({
|
|
743
|
+
node
|
|
744
|
+
}) {
|
|
743
745
|
return `#${node.attrs.id}`;
|
|
744
746
|
},
|
|
745
|
-
renderHTML({
|
|
746
|
-
|
|
747
|
+
renderHTML({
|
|
748
|
+
HTMLAttributes
|
|
749
|
+
}) {
|
|
750
|
+
return ["channel-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
747
751
|
}
|
|
748
752
|
}).configure({
|
|
749
753
|
suggestion: {
|
|
@@ -769,19 +773,12 @@ const _sfc_main$4 = {
|
|
|
769
773
|
};
|
|
770
774
|
var _sfc_render$4 = function render6() {
|
|
771
775
|
var _vm = this, _c = _vm._self._c;
|
|
772
|
-
return _c("node-view-wrapper", {
|
|
776
|
+
return _c("node-view-wrapper", {
|
|
777
|
+
staticClass: "d-d-inline-block"
|
|
778
|
+
}, [_vm._v(" " + _vm._s(_vm.text) + " ")]);
|
|
773
779
|
};
|
|
774
780
|
var _sfc_staticRenderFns$4 = [];
|
|
775
|
-
var __component__$4 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
776
|
-
_sfc_main$4,
|
|
777
|
-
_sfc_render$4,
|
|
778
|
-
_sfc_staticRenderFns$4,
|
|
779
|
-
false,
|
|
780
|
-
null,
|
|
781
|
-
null,
|
|
782
|
-
null,
|
|
783
|
-
null
|
|
784
|
-
);
|
|
781
|
+
var __component__$4 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$4, _sfc_render$4, _sfc_staticRenderFns$4, false, null, null, null, null);
|
|
785
782
|
const SlashCommandComponent = __component__$4.exports;
|
|
786
783
|
const slashCommandPasteMatch = (text, slashCommandRegex) => {
|
|
787
784
|
const matches = [...text.matchAll(slashCommandRegex)];
|
|
@@ -804,11 +801,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
804
801
|
return vue2.VueNodeViewRenderer(SlashCommandComponent);
|
|
805
802
|
},
|
|
806
803
|
parseHTML() {
|
|
807
|
-
return [
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
];
|
|
804
|
+
return [{
|
|
805
|
+
tag: "command-component"
|
|
806
|
+
}];
|
|
812
807
|
},
|
|
813
808
|
addAttributes() {
|
|
814
809
|
return {
|
|
@@ -823,39 +818,47 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
823
818
|
}
|
|
824
819
|
};
|
|
825
820
|
},
|
|
826
|
-
renderText({
|
|
821
|
+
renderText({
|
|
822
|
+
node
|
|
823
|
+
}) {
|
|
827
824
|
return `/${node.attrs.command}`;
|
|
828
825
|
},
|
|
829
|
-
renderHTML({
|
|
826
|
+
renderHTML({
|
|
827
|
+
HTMLAttributes
|
|
828
|
+
}) {
|
|
830
829
|
return ["command-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
831
830
|
},
|
|
832
831
|
addInputRules() {
|
|
833
832
|
var _a;
|
|
834
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
833
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
834
|
+
query: ""
|
|
835
|
+
}).map((suggestion) => suggestion.command);
|
|
835
836
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) $`);
|
|
836
|
-
return [
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
];
|
|
837
|
+
return [core.nodeInputRule({
|
|
838
|
+
find: slashCommandRegex,
|
|
839
|
+
type: this.type,
|
|
840
|
+
getAttributes(attrs) {
|
|
841
|
+
return {
|
|
842
|
+
command: attrs[2]
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
})];
|
|
845
846
|
},
|
|
846
847
|
addPasteRules() {
|
|
847
848
|
var _a;
|
|
848
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
849
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
850
|
+
query: ""
|
|
851
|
+
}).map((suggestion) => suggestion.command);
|
|
849
852
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) ?$`, "g");
|
|
850
|
-
return [
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
];
|
|
853
|
+
return [core.nodePasteRule({
|
|
854
|
+
find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
|
|
855
|
+
type: this.type,
|
|
856
|
+
getAttributes(attrs) {
|
|
857
|
+
return {
|
|
858
|
+
command: attrs[0].trim()
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
})];
|
|
859
862
|
}
|
|
860
863
|
}).configure({
|
|
861
864
|
suggestion: {
|
|
@@ -863,24 +866,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
863
866
|
pluginKey: new state.PluginKey("slashCommandSuggestion")
|
|
864
867
|
}
|
|
865
868
|
});
|
|
866
|
-
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = [
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
"html"
|
|
870
|
-
];
|
|
871
|
-
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = [
|
|
872
|
-
"start",
|
|
873
|
-
"end",
|
|
874
|
-
"all"
|
|
875
|
-
];
|
|
876
|
-
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = [
|
|
877
|
-
"https",
|
|
878
|
-
"http",
|
|
879
|
-
"ftp",
|
|
880
|
-
"ftps",
|
|
881
|
-
"sftp",
|
|
882
|
-
"mailto"
|
|
883
|
-
];
|
|
869
|
+
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = ["text", "json", "html"];
|
|
870
|
+
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = ["start", "end", "all"];
|
|
871
|
+
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = ["https", "http", "ftp", "ftps", "sftp", "mailto"];
|
|
884
872
|
const _sfc_main$3 = {
|
|
885
873
|
name: "MentionSuggestion",
|
|
886
874
|
components: {
|
|
@@ -904,19 +892,24 @@ const _sfc_main$3 = {
|
|
|
904
892
|
};
|
|
905
893
|
var _sfc_render$3 = function render7() {
|
|
906
894
|
var _vm = this, _c = _vm._self._c;
|
|
907
|
-
return _c("dt-stack", {
|
|
895
|
+
return _c("dt-stack", {
|
|
896
|
+
attrs: {
|
|
897
|
+
"direction": "row",
|
|
898
|
+
"gap": "400"
|
|
899
|
+
}
|
|
900
|
+
}, [_c("dt-avatar", {
|
|
901
|
+
attrs: {
|
|
902
|
+
"full-name": _vm.name,
|
|
903
|
+
"image-src": _vm.avatarSrc,
|
|
904
|
+
"image-alt": _vm.name,
|
|
905
|
+
"size": "xs"
|
|
906
|
+
}
|
|
907
|
+
}), _c("span", {
|
|
908
|
+
staticClass: "mention-suggestion-name"
|
|
909
|
+
}, [_vm._v(" " + _vm._s(_vm.name) + " ")])], 1);
|
|
908
910
|
};
|
|
909
911
|
var _sfc_staticRenderFns$3 = [];
|
|
910
|
-
var __component__$3 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
911
|
-
_sfc_main$3,
|
|
912
|
-
_sfc_render$3,
|
|
913
|
-
_sfc_staticRenderFns$3,
|
|
914
|
-
false,
|
|
915
|
-
null,
|
|
916
|
-
null,
|
|
917
|
-
null,
|
|
918
|
-
null
|
|
919
|
-
);
|
|
912
|
+
var __component__$3 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$3, _sfc_render$3, _sfc_staticRenderFns$3, false, null, "65bcbd51", null, null);
|
|
920
913
|
const MentionSuggestion = __component__$3.exports;
|
|
921
914
|
const mentionSuggestion = {
|
|
922
915
|
// This function comes from the user and passed to the editor directly.
|
|
@@ -1012,19 +1005,23 @@ const _sfc_main$2 = {
|
|
|
1012
1005
|
};
|
|
1013
1006
|
var _sfc_render$2 = function render8() {
|
|
1014
1007
|
var _vm = this, _c = _vm._self._c;
|
|
1015
|
-
return _c("dt-stack", {
|
|
1008
|
+
return _c("dt-stack", {
|
|
1009
|
+
attrs: {
|
|
1010
|
+
"direction": "row",
|
|
1011
|
+
"gap": "400"
|
|
1012
|
+
}
|
|
1013
|
+
}, [!_vm.item.locked ? _c("dt-icon-hash", {
|
|
1014
|
+
attrs: {
|
|
1015
|
+
"size": "300"
|
|
1016
|
+
}
|
|
1017
|
+
}) : _c("dt-icon-lock", {
|
|
1018
|
+
attrs: {
|
|
1019
|
+
"size": "300"
|
|
1020
|
+
}
|
|
1021
|
+
}), _c("span", [_vm._v(_vm._s(_vm.name))])], 1);
|
|
1016
1022
|
};
|
|
1017
1023
|
var _sfc_staticRenderFns$2 = [];
|
|
1018
|
-
var __component__$2 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
1019
|
-
_sfc_main$2,
|
|
1020
|
-
_sfc_render$2,
|
|
1021
|
-
_sfc_staticRenderFns$2,
|
|
1022
|
-
false,
|
|
1023
|
-
null,
|
|
1024
|
-
null,
|
|
1025
|
-
null,
|
|
1026
|
-
null
|
|
1027
|
-
);
|
|
1024
|
+
var __component__$2 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$2, _sfc_render$2, _sfc_staticRenderFns$2, false, null, null, null, null);
|
|
1028
1025
|
const ChannelSuggestion = __component__$2.exports;
|
|
1029
1026
|
const channelSuggestion = {
|
|
1030
1027
|
// This function comes from the user and passed to the editor directly.
|
|
@@ -1121,19 +1118,14 @@ const _sfc_main$1 = {
|
|
|
1121
1118
|
};
|
|
1122
1119
|
var _sfc_render$1 = function render9() {
|
|
1123
1120
|
var _vm = this, _c = _vm._self._c;
|
|
1124
|
-
return _c("div", [_c("div", {
|
|
1121
|
+
return _c("div", [_c("div", {
|
|
1122
|
+
staticClass: "d-body--md-compact"
|
|
1123
|
+
}, [_c("span", [_vm._v("/" + _vm._s(_vm.command))]), _vm.parametersExample ? _c("span", [_vm._v(" " + _vm._s(_vm.parametersExample))]) : _vm._e()]), _c("div", {
|
|
1124
|
+
staticClass: "d-body--sm d-fc-tertiary"
|
|
1125
|
+
}, [_vm._v(" " + _vm._s(_vm.description) + " ")])]);
|
|
1125
1126
|
};
|
|
1126
1127
|
var _sfc_staticRenderFns$1 = [];
|
|
1127
|
-
var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
1128
|
-
_sfc_main$1,
|
|
1129
|
-
_sfc_render$1,
|
|
1130
|
-
_sfc_staticRenderFns$1,
|
|
1131
|
-
false,
|
|
1132
|
-
null,
|
|
1133
|
-
null,
|
|
1134
|
-
null,
|
|
1135
|
-
null
|
|
1136
|
-
);
|
|
1128
|
+
var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
|
|
1137
1129
|
const SlashCommandSuggestion = __component__$1.exports;
|
|
1138
1130
|
const slashCommandSuggestion = {
|
|
1139
1131
|
// This function comes from the user and passed to the editor directly.
|
|
@@ -1238,7 +1230,8 @@ const _sfc_main = {
|
|
|
1238
1230
|
default: false
|
|
1239
1231
|
},
|
|
1240
1232
|
/**
|
|
1241
|
-
* Whether the input allows for line breaks to be introduced in the text.
|
|
1233
|
+
* Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
|
|
1234
|
+
* line breaks can still be entered by pressing shift+enter.
|
|
1242
1235
|
*/
|
|
1243
1236
|
allowLineBreaks: {
|
|
1244
1237
|
type: Boolean,
|
|
@@ -1483,7 +1476,9 @@ const _sfc_main = {
|
|
|
1483
1476
|
extensions() {
|
|
1484
1477
|
const extensions = [Document, Paragraph, Text, History];
|
|
1485
1478
|
if (this.link) {
|
|
1486
|
-
extensions.push(TipTapLink.extend({
|
|
1479
|
+
extensions.push(TipTapLink.extend({
|
|
1480
|
+
inclusive: false
|
|
1481
|
+
}).configure({
|
|
1487
1482
|
HTMLAttributes: {
|
|
1488
1483
|
class: "d-link d-wb-break-all"
|
|
1489
1484
|
},
|
|
@@ -1515,48 +1510,55 @@ const _sfc_main = {
|
|
|
1515
1510
|
extensions.push(Underline);
|
|
1516
1511
|
}
|
|
1517
1512
|
if (this.placeholder) {
|
|
1518
|
-
extensions.push(
|
|
1519
|
-
|
|
1520
|
-
);
|
|
1513
|
+
extensions.push(Placeholder.configure({
|
|
1514
|
+
placeholder: this.placeholder
|
|
1515
|
+
}));
|
|
1521
1516
|
}
|
|
1522
1517
|
if (!this.allowLineBreaks) {
|
|
1523
1518
|
const self = this;
|
|
1524
|
-
extensions.push(
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
() => commands.splitBlock()
|
|
1539
|
-
]);
|
|
1540
|
-
return true;
|
|
1541
|
-
}
|
|
1542
|
-
};
|
|
1543
|
-
}
|
|
1544
|
-
})
|
|
1545
|
-
);
|
|
1519
|
+
extensions.push(HardBreak.extend({
|
|
1520
|
+
addKeyboardShortcuts() {
|
|
1521
|
+
return {
|
|
1522
|
+
Enter: () => {
|
|
1523
|
+
self.$emit("enter");
|
|
1524
|
+
return true;
|
|
1525
|
+
},
|
|
1526
|
+
"Shift-Enter": () => {
|
|
1527
|
+
this.editor.commands.setHardBreak();
|
|
1528
|
+
return true;
|
|
1529
|
+
}
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
}));
|
|
1546
1533
|
} else {
|
|
1547
1534
|
extensions.push(HardBreak);
|
|
1548
1535
|
}
|
|
1549
1536
|
if (this.mentionSuggestion) {
|
|
1550
|
-
const suggestionObject = {
|
|
1551
|
-
|
|
1537
|
+
const suggestionObject = {
|
|
1538
|
+
...this.mentionSuggestion,
|
|
1539
|
+
...mentionSuggestion
|
|
1540
|
+
};
|
|
1541
|
+
extensions.push(MentionPlugin.configure({
|
|
1542
|
+
suggestion: suggestionObject
|
|
1543
|
+
}));
|
|
1552
1544
|
}
|
|
1553
1545
|
if (this.channelSuggestion) {
|
|
1554
|
-
const suggestionObject = {
|
|
1555
|
-
|
|
1546
|
+
const suggestionObject = {
|
|
1547
|
+
...this.channelSuggestion,
|
|
1548
|
+
...channelSuggestion
|
|
1549
|
+
};
|
|
1550
|
+
extensions.push(ChannelPlugin.configure({
|
|
1551
|
+
suggestion: suggestionObject
|
|
1552
|
+
}));
|
|
1556
1553
|
}
|
|
1557
1554
|
if (this.slashCommandSuggestion) {
|
|
1558
|
-
const suggestionObject = {
|
|
1559
|
-
|
|
1555
|
+
const suggestionObject = {
|
|
1556
|
+
...this.slashCommandSuggestion,
|
|
1557
|
+
...slashCommandSuggestion
|
|
1558
|
+
};
|
|
1559
|
+
extensions.push(SlashCommandPlugin.configure({
|
|
1560
|
+
suggestion: suggestionObject
|
|
1561
|
+
}));
|
|
1560
1562
|
}
|
|
1561
1563
|
extensions.push(Emoji);
|
|
1562
1564
|
extensions.push(TextAlign.configure({
|
|
@@ -1595,13 +1597,19 @@ const _sfc_main = {
|
|
|
1595
1597
|
watch: {
|
|
1596
1598
|
editable(isEditable) {
|
|
1597
1599
|
this.editor.setEditable(isEditable);
|
|
1598
|
-
this.updateEditorAttributes({
|
|
1600
|
+
this.updateEditorAttributes({
|
|
1601
|
+
"aria-readonly": !isEditable
|
|
1602
|
+
});
|
|
1599
1603
|
},
|
|
1600
1604
|
inputClass(newClass) {
|
|
1601
|
-
this.updateEditorAttributes({
|
|
1605
|
+
this.updateEditorAttributes({
|
|
1606
|
+
class: newClass
|
|
1607
|
+
});
|
|
1602
1608
|
},
|
|
1603
1609
|
inputAriaLabel(newLabel) {
|
|
1604
|
-
this.updateEditorAttributes({
|
|
1610
|
+
this.updateEditorAttributes({
|
|
1611
|
+
"aria-label": newLabel
|
|
1612
|
+
});
|
|
1605
1613
|
},
|
|
1606
1614
|
extensions() {
|
|
1607
1615
|
this.destroyEditor();
|
|
@@ -1659,10 +1667,14 @@ const _sfc_main = {
|
|
|
1659
1667
|
this.$emit("input", value);
|
|
1660
1668
|
this.$emit("update:value", value);
|
|
1661
1669
|
});
|
|
1662
|
-
this.editor.on("focus", ({
|
|
1670
|
+
this.editor.on("focus", ({
|
|
1671
|
+
event
|
|
1672
|
+
}) => {
|
|
1663
1673
|
this.$emit("focus", event);
|
|
1664
1674
|
});
|
|
1665
|
-
this.editor.on("blur", ({
|
|
1675
|
+
this.editor.on("blur", ({
|
|
1676
|
+
event
|
|
1677
|
+
}) => {
|
|
1666
1678
|
this.$emit("blur", event);
|
|
1667
1679
|
});
|
|
1668
1680
|
},
|
|
@@ -1685,7 +1697,11 @@ const _sfc_main = {
|
|
|
1685
1697
|
return (_a = extension.configure) == null ? void 0 : _a.call(extension, options);
|
|
1686
1698
|
},
|
|
1687
1699
|
updateEditorAttributes(attributes) {
|
|
1688
|
-
this.editor.setOptions({
|
|
1700
|
+
this.editor.setOptions({
|
|
1701
|
+
editorProps: {
|
|
1702
|
+
attributes
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1689
1705
|
},
|
|
1690
1706
|
focusEditor() {
|
|
1691
1707
|
this.editor.commands.focus();
|
|
@@ -1694,19 +1710,16 @@ const _sfc_main = {
|
|
|
1694
1710
|
};
|
|
1695
1711
|
var _sfc_render = function render10() {
|
|
1696
1712
|
var _vm = this, _c = _vm._self._c;
|
|
1697
|
-
return _c("editor-content", _vm._g({
|
|
1713
|
+
return _c("editor-content", _vm._g({
|
|
1714
|
+
staticClass: "dt-rich-text-editor",
|
|
1715
|
+
attrs: {
|
|
1716
|
+
"editor": _vm.editor,
|
|
1717
|
+
"data-qa": "dt-rich-text-editor"
|
|
1718
|
+
}
|
|
1719
|
+
}, _vm.editorListeners));
|
|
1698
1720
|
};
|
|
1699
1721
|
var _sfc_staticRenderFns = [];
|
|
1700
|
-
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
1701
|
-
_sfc_main,
|
|
1702
|
-
_sfc_render,
|
|
1703
|
-
_sfc_staticRenderFns,
|
|
1704
|
-
false,
|
|
1705
|
-
null,
|
|
1706
|
-
null,
|
|
1707
|
-
null,
|
|
1708
|
-
null
|
|
1709
|
-
);
|
|
1722
|
+
var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
1710
1723
|
const DtRichTextEditor = __component__.exports;
|
|
1711
1724
|
exports.DtRichTextEditor = DtRichTextEditor;
|
|
1712
1725
|
exports.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = RICH_TEXT_EDITOR_AUTOFOCUS_TYPES;
|