@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
|
@@ -19,7 +19,7 @@ import History from "@tiptap/extension-history";
|
|
|
19
19
|
import { Node, mergeAttributes, nodeInputRule, nodePasteRule, getMarksBetween, combineTransactionSteps, getChangedRanges, findChildrenInRange, Mark } from "@tiptap/core";
|
|
20
20
|
import { normalizeComponent } from "../chunks/_plugin-vue2_normalizer-sOSkiPF3.js";
|
|
21
21
|
import { DtEmoji } from "./emoji.js";
|
|
22
|
-
import { stringToUnicode, codeToEmojiData, emojiRegex, emojiPattern, emojiShortCodeRegex } from "../chunks/index-
|
|
22
|
+
import { stringToUnicode, codeToEmojiData, emojiRegex, emojiPattern, emojiShortCodeRegex } from "../chunks/index-i65YVk-U.js";
|
|
23
23
|
import { PluginKey, Plugin } from "@tiptap/pm/state";
|
|
24
24
|
import Suggestion from "@tiptap/suggestion";
|
|
25
25
|
import { emojisIndexed } from "@dialpad/dialtone-emojis";
|
|
@@ -33,7 +33,7 @@ import { DtAvatar } from "./avatar.js";
|
|
|
33
33
|
import DtIconHash from "@dialpad/dialtone-icons/vue2/hash";
|
|
34
34
|
import DtIconLock from "@dialpad/dialtone-icons/vue2/lock";
|
|
35
35
|
import "./skeleton.js";
|
|
36
|
-
import "../chunks/icon_constants-
|
|
36
|
+
import "../chunks/icon_constants-TdxqLsS2.js";
|
|
37
37
|
import "@dialpad/dialtone-icons/icons.json";
|
|
38
38
|
import "emoji-toolkit/emoji_strategy.json";
|
|
39
39
|
import "../chunks/list_item_constants-u1xcN9Dd.js";
|
|
@@ -55,19 +55,17 @@ const _sfc_main$9 = {
|
|
|
55
55
|
};
|
|
56
56
|
var _sfc_render$9 = function render() {
|
|
57
57
|
var _vm = this, _c = _vm._self._c;
|
|
58
|
-
return _c("node-view-wrapper", {
|
|
58
|
+
return _c("node-view-wrapper", {
|
|
59
|
+
staticClass: "d-d-inline-block d-va-bottom d-lh0"
|
|
60
|
+
}, [_c("dt-emoji", {
|
|
61
|
+
attrs: {
|
|
62
|
+
"size": "500",
|
|
63
|
+
"code": _vm.node.attrs.code
|
|
64
|
+
}
|
|
65
|
+
})], 1);
|
|
59
66
|
};
|
|
60
67
|
var _sfc_staticRenderFns$9 = [];
|
|
61
|
-
var __component__$9 = /* @__PURE__ */ normalizeComponent(
|
|
62
|
-
_sfc_main$9,
|
|
63
|
-
_sfc_render$9,
|
|
64
|
-
_sfc_staticRenderFns$9,
|
|
65
|
-
false,
|
|
66
|
-
null,
|
|
67
|
-
null,
|
|
68
|
-
null,
|
|
69
|
-
null
|
|
70
|
-
);
|
|
68
|
+
var __component__$9 = /* @__PURE__ */ normalizeComponent(_sfc_main$9, _sfc_render$9, _sfc_staticRenderFns$9, false, null, null, null, null);
|
|
71
69
|
const EmojiComponent = __component__$9.exports;
|
|
72
70
|
const _sfc_main$8 = {
|
|
73
71
|
name: "SuggestionList",
|
|
@@ -103,7 +101,9 @@ const _sfc_main$8 = {
|
|
|
103
101
|
}
|
|
104
102
|
},
|
|
105
103
|
methods: {
|
|
106
|
-
onKeyDown({
|
|
104
|
+
onKeyDown({
|
|
105
|
+
event
|
|
106
|
+
}) {
|
|
107
107
|
if (event.key === "ArrowUp") {
|
|
108
108
|
this.upHandler();
|
|
109
109
|
return true;
|
|
@@ -146,13 +146,22 @@ const _sfc_main$8 = {
|
|
|
146
146
|
this.command(item);
|
|
147
147
|
return;
|
|
148
148
|
case "mention":
|
|
149
|
-
this.command({
|
|
149
|
+
this.command({
|
|
150
|
+
name: item.name,
|
|
151
|
+
id: item.id,
|
|
152
|
+
avatarSrc: item.avatarSrc
|
|
153
|
+
});
|
|
150
154
|
break;
|
|
151
155
|
case "channel":
|
|
152
|
-
this.command({
|
|
156
|
+
this.command({
|
|
157
|
+
name: item.name,
|
|
158
|
+
id: item.id
|
|
159
|
+
});
|
|
153
160
|
break;
|
|
154
161
|
case "slash-command":
|
|
155
|
-
this.command({
|
|
162
|
+
this.command({
|
|
163
|
+
command: item.command
|
|
164
|
+
});
|
|
156
165
|
break;
|
|
157
166
|
}
|
|
158
167
|
}
|
|
@@ -160,29 +169,45 @@ const _sfc_main$8 = {
|
|
|
160
169
|
};
|
|
161
170
|
var _sfc_render$8 = function render2() {
|
|
162
171
|
var _vm = this, _c = _vm._self._c;
|
|
163
|
-
return _c("div", {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
return _c("div", {
|
|
173
|
+
staticClass: "d-popover__dialog dt-suggestion-list__container"
|
|
174
|
+
}, [_c("ul", {
|
|
175
|
+
directives: [{
|
|
176
|
+
name: "show",
|
|
177
|
+
rawName: "v-show",
|
|
178
|
+
value: _vm.items.length,
|
|
179
|
+
expression: "items.length"
|
|
180
|
+
}],
|
|
181
|
+
ref: "suggestionList",
|
|
182
|
+
staticClass: "dt-suggestion-list"
|
|
183
|
+
}, _vm._l(_vm.items, function(item, index) {
|
|
184
|
+
return _c("dt-list-item", {
|
|
185
|
+
key: item.id,
|
|
186
|
+
class: ["dt-suggestion-list--item", {
|
|
187
|
+
"dt-list-item--highlighted": index === _vm.selectedIndex
|
|
188
|
+
}],
|
|
189
|
+
attrs: {
|
|
190
|
+
"navigation-type": "arrow-keys"
|
|
191
|
+
},
|
|
192
|
+
on: {
|
|
193
|
+
"click": function($event) {
|
|
194
|
+
return _vm.selectItem(index);
|
|
195
|
+
},
|
|
196
|
+
"keydown": function($event) {
|
|
197
|
+
$event.preventDefault();
|
|
198
|
+
return _vm.onKeyDown.apply(null, arguments);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}, [_c(_vm.itemComponent, {
|
|
202
|
+
tag: "component",
|
|
203
|
+
attrs: {
|
|
204
|
+
"item": item
|
|
205
|
+
}
|
|
206
|
+
})], 1);
|
|
173
207
|
}), 1)]);
|
|
174
208
|
};
|
|
175
209
|
var _sfc_staticRenderFns$8 = [];
|
|
176
|
-
var __component__$8 = /* @__PURE__ */ normalizeComponent(
|
|
177
|
-
_sfc_main$8,
|
|
178
|
-
_sfc_render$8,
|
|
179
|
-
_sfc_staticRenderFns$8,
|
|
180
|
-
false,
|
|
181
|
-
null,
|
|
182
|
-
null,
|
|
183
|
-
null,
|
|
184
|
-
null
|
|
185
|
-
);
|
|
210
|
+
var __component__$8 = /* @__PURE__ */ normalizeComponent(_sfc_main$8, _sfc_render$8, _sfc_staticRenderFns$8, false, null, null, null, null);
|
|
186
211
|
const SuggestionList = __component__$8.exports;
|
|
187
212
|
const _sfc_main$7 = {
|
|
188
213
|
name: "EmojiSuggestion",
|
|
@@ -199,24 +224,27 @@ const _sfc_main$7 = {
|
|
|
199
224
|
};
|
|
200
225
|
var _sfc_render$7 = function render3() {
|
|
201
226
|
var _vm = this, _c = _vm._self._c;
|
|
202
|
-
return _c("dt-stack", {
|
|
227
|
+
return _c("dt-stack", {
|
|
228
|
+
attrs: {
|
|
229
|
+
"direction": "row",
|
|
230
|
+
"gap": "400"
|
|
231
|
+
}
|
|
232
|
+
}, [_c("dt-emoji", {
|
|
233
|
+
attrs: {
|
|
234
|
+
"size": "200",
|
|
235
|
+
"code": _vm.item.code
|
|
236
|
+
}
|
|
237
|
+
}), _vm._v(" " + _vm._s(_vm.item.code) + " ")], 1);
|
|
203
238
|
};
|
|
204
239
|
var _sfc_staticRenderFns$7 = [];
|
|
205
|
-
var __component__$7 = /* @__PURE__ */ normalizeComponent(
|
|
206
|
-
_sfc_main$7,
|
|
207
|
-
_sfc_render$7,
|
|
208
|
-
_sfc_staticRenderFns$7,
|
|
209
|
-
false,
|
|
210
|
-
null,
|
|
211
|
-
null,
|
|
212
|
-
null,
|
|
213
|
-
null
|
|
214
|
-
);
|
|
240
|
+
var __component__$7 = /* @__PURE__ */ normalizeComponent(_sfc_main$7, _sfc_render$7, _sfc_staticRenderFns$7, false, null, null, null, null);
|
|
215
241
|
const EmojiSuggestion = __component__$7.exports;
|
|
216
242
|
const hideOnEsc = {
|
|
217
243
|
name: "hideOnEsc",
|
|
218
244
|
defaultValue: true,
|
|
219
|
-
fn({
|
|
245
|
+
fn({
|
|
246
|
+
hide
|
|
247
|
+
}) {
|
|
220
248
|
function onKeyDown(event) {
|
|
221
249
|
if (event.keyCode === 27) {
|
|
222
250
|
hide();
|
|
@@ -233,7 +261,9 @@ const hideOnEsc = {
|
|
|
233
261
|
}
|
|
234
262
|
};
|
|
235
263
|
const suggestionOptions = {
|
|
236
|
-
items: ({
|
|
264
|
+
items: ({
|
|
265
|
+
query
|
|
266
|
+
}) => {
|
|
237
267
|
if (query.length < 2) {
|
|
238
268
|
return [];
|
|
239
269
|
}
|
|
@@ -245,26 +275,29 @@ const suggestionOptions = {
|
|
|
245
275
|
return false;
|
|
246
276
|
});
|
|
247
277
|
return filteredEmoji.map((item) => {
|
|
248
|
-
return {
|
|
278
|
+
return {
|
|
279
|
+
code: item.shortname
|
|
280
|
+
};
|
|
249
281
|
});
|
|
250
282
|
},
|
|
251
|
-
command: ({
|
|
283
|
+
command: ({
|
|
284
|
+
editor,
|
|
285
|
+
range,
|
|
286
|
+
props
|
|
287
|
+
}) => {
|
|
252
288
|
var _a, _b;
|
|
253
289
|
const nodeAfter = editor.view.state.selection.$to.nodeAfter;
|
|
254
290
|
const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");
|
|
255
291
|
if (overrideSpace) {
|
|
256
292
|
range.to += 1;
|
|
257
293
|
}
|
|
258
|
-
editor.chain().focus().insertContentAt(range, [
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
text: " "
|
|
266
|
-
}
|
|
267
|
-
]).run();
|
|
294
|
+
editor.chain().focus().insertContentAt(range, [{
|
|
295
|
+
type: "emoji",
|
|
296
|
+
attrs: props
|
|
297
|
+
}, {
|
|
298
|
+
type: "text",
|
|
299
|
+
text: " "
|
|
300
|
+
}]).run();
|
|
268
301
|
(_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
|
|
269
302
|
},
|
|
270
303
|
render: () => {
|
|
@@ -378,17 +411,19 @@ const Emoji = Node.create({
|
|
|
378
411
|
};
|
|
379
412
|
},
|
|
380
413
|
parseHTML() {
|
|
381
|
-
return [
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}
|
|
385
|
-
];
|
|
414
|
+
return [{
|
|
415
|
+
tag: "emoji-component"
|
|
416
|
+
}];
|
|
386
417
|
},
|
|
387
|
-
renderText({
|
|
418
|
+
renderText({
|
|
419
|
+
node
|
|
420
|
+
}) {
|
|
388
421
|
const unicodeEmoji = stringToUnicode(codeToEmojiData(node.attrs.code).unicode_output);
|
|
389
422
|
return unicodeEmoji;
|
|
390
423
|
},
|
|
391
|
-
renderHTML({
|
|
424
|
+
renderHTML({
|
|
425
|
+
HTMLAttributes
|
|
426
|
+
}) {
|
|
392
427
|
return ["emoji-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
393
428
|
},
|
|
394
429
|
addInputRules() {
|
|
@@ -426,35 +461,30 @@ const Emoji = Node.create({
|
|
|
426
461
|
];
|
|
427
462
|
},
|
|
428
463
|
addPasteRules() {
|
|
429
|
-
return [
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
})
|
|
448
|
-
];
|
|
464
|
+
return [nodePasteRule({
|
|
465
|
+
find: shortCodePasteMatch,
|
|
466
|
+
type: this.type,
|
|
467
|
+
getAttributes(attrs) {
|
|
468
|
+
return {
|
|
469
|
+
code: attrs[0]
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
}), nodePasteRule({
|
|
473
|
+
find: emojiRegex,
|
|
474
|
+
type: this.type,
|
|
475
|
+
getAttributes(attrs) {
|
|
476
|
+
return {
|
|
477
|
+
code: attrs[0]
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
})];
|
|
449
481
|
},
|
|
450
482
|
addProseMirrorPlugins() {
|
|
451
|
-
return [
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
})
|
|
457
|
-
];
|
|
483
|
+
return [Suggestion({
|
|
484
|
+
editor: this.editor,
|
|
485
|
+
...this.options.suggestion,
|
|
486
|
+
...suggestionOptions
|
|
487
|
+
})];
|
|
458
488
|
}
|
|
459
489
|
});
|
|
460
490
|
function getRegexMatches(text, regex, validator = () => true) {
|
|
@@ -472,13 +502,7 @@ function hasValidPrefix(text, match) {
|
|
|
472
502
|
return !["#", "@"].includes(text.charAt(match.index)) && !["#", "@"].includes(text.charAt(match.index - 1));
|
|
473
503
|
}
|
|
474
504
|
function trimEndPunctiation(string) {
|
|
475
|
-
const endPunctuationRegex = new RegExp(
|
|
476
|
-
"(?:" + [
|
|
477
|
-
`[!?.,:;'"]`,
|
|
478
|
-
"(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
|
|
479
|
-
].join("|"),
|
|
480
|
-
"g"
|
|
481
|
-
);
|
|
505
|
+
const endPunctuationRegex = new RegExp("(?:" + [`[!?.,:;'"]`, "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
482
506
|
return string.replace(endPunctuationRegex, "");
|
|
483
507
|
}
|
|
484
508
|
function getWordAt(text, index) {
|
|
@@ -529,18 +553,8 @@ function addMarks(text, pos, from, to, tr, type) {
|
|
|
529
553
|
let rangeFrom = from - pos - 1;
|
|
530
554
|
rangeFrom = rangeFrom < 0 ? 0 : rangeFrom;
|
|
531
555
|
const rangeTo = to - pos;
|
|
532
|
-
const firstWordInRange = getWordAtUntil(
|
|
533
|
-
|
|
534
|
-
rangeFrom,
|
|
535
|
-
"left",
|
|
536
|
-
partialPhoneNumberRegex
|
|
537
|
-
);
|
|
538
|
-
const lastWordInRange = getWordAtUntil(
|
|
539
|
-
text,
|
|
540
|
-
rangeTo,
|
|
541
|
-
"right",
|
|
542
|
-
partialPhoneNumberRegex
|
|
543
|
-
);
|
|
556
|
+
const firstWordInRange = getWordAtUntil(text, rangeFrom, "left", partialPhoneNumberRegex);
|
|
557
|
+
const lastWordInRange = getWordAtUntil(text, rangeTo, "right", partialPhoneNumberRegex);
|
|
544
558
|
const wordsInRange = text.slice(firstWordInRange.from, lastWordInRange.to);
|
|
545
559
|
const matches = getRegexMatches(wordsInRange, linkRegex, hasValidPrefix);
|
|
546
560
|
matches.forEach((match) => {
|
|
@@ -559,33 +573,29 @@ function autolink(options) {
|
|
|
559
573
|
if (hasInitialized && !contentChanged) {
|
|
560
574
|
return;
|
|
561
575
|
}
|
|
562
|
-
const {
|
|
563
|
-
|
|
576
|
+
const {
|
|
577
|
+
tr
|
|
578
|
+
} = newState;
|
|
579
|
+
const {
|
|
580
|
+
textContent
|
|
581
|
+
} = newState.doc;
|
|
564
582
|
if (!hasInitialized) {
|
|
565
583
|
addMarks(textContent, 0, 0, textContent.length, tr, options.type);
|
|
566
584
|
}
|
|
567
585
|
hasInitialized = true;
|
|
568
|
-
const transform = combineTransactionSteps(
|
|
569
|
-
oldState.doc,
|
|
570
|
-
[...transactions]
|
|
571
|
-
);
|
|
586
|
+
const transform = combineTransactionSteps(oldState.doc, [...transactions]);
|
|
572
587
|
const changes = getChangedRanges(transform);
|
|
573
|
-
changes.forEach(({
|
|
588
|
+
changes.forEach(({
|
|
589
|
+
oldRange,
|
|
590
|
+
newRange
|
|
591
|
+
}) => {
|
|
574
592
|
removeMarks(newRange, newState.doc, tr, options.type);
|
|
575
|
-
const paragraphs = findChildrenInRange(
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
)
|
|
580
|
-
|
|
581
|
-
addMarks(
|
|
582
|
-
node.textContent,
|
|
583
|
-
pos,
|
|
584
|
-
oldRange.from,
|
|
585
|
-
newRange.to,
|
|
586
|
-
tr,
|
|
587
|
-
options.type
|
|
588
|
-
);
|
|
593
|
+
const paragraphs = findChildrenInRange(newState.doc, newRange, (node) => node.isTextblock);
|
|
594
|
+
paragraphs.forEach(({
|
|
595
|
+
node,
|
|
596
|
+
pos
|
|
597
|
+
}) => {
|
|
598
|
+
addMarks(node.textContent, pos, oldRange.from, newRange.to, tr, options.type);
|
|
589
599
|
});
|
|
590
600
|
});
|
|
591
601
|
return tr;
|
|
@@ -598,24 +608,20 @@ const defaultAttributes = {
|
|
|
598
608
|
};
|
|
599
609
|
const CustomLink = Mark.create({
|
|
600
610
|
name: "CustomLink",
|
|
601
|
-
renderHTML({
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
this.options.HTMLAttributes,
|
|
606
|
-
HTMLAttributes,
|
|
607
|
-
defaultAttributes
|
|
608
|
-
),
|
|
609
|
-
0
|
|
610
|
-
];
|
|
611
|
+
renderHTML({
|
|
612
|
+
HTMLAttributes
|
|
613
|
+
}) {
|
|
614
|
+
return ["a", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, defaultAttributes)];
|
|
611
615
|
},
|
|
612
|
-
renderText({
|
|
616
|
+
renderText({
|
|
617
|
+
node
|
|
618
|
+
}) {
|
|
613
619
|
return node.attrs.text;
|
|
614
620
|
},
|
|
615
621
|
addProseMirrorPlugins() {
|
|
616
|
-
return [
|
|
617
|
-
|
|
618
|
-
];
|
|
622
|
+
return [autolink({
|
|
623
|
+
type: this.type
|
|
624
|
+
})];
|
|
619
625
|
}
|
|
620
626
|
});
|
|
621
627
|
const _sfc_main$6 = {
|
|
@@ -633,30 +639,25 @@ const _sfc_main$6 = {
|
|
|
633
639
|
};
|
|
634
640
|
var _sfc_render$6 = function render4() {
|
|
635
641
|
var _vm = this, _c = _vm._self._c;
|
|
636
|
-
return _c("node-view-wrapper", {
|
|
642
|
+
return _c("node-view-wrapper", {
|
|
643
|
+
staticClass: "d-d-inline-block"
|
|
644
|
+
}, [_c("dt-link", {
|
|
645
|
+
attrs: {
|
|
646
|
+
"kind": "mention"
|
|
647
|
+
}
|
|
648
|
+
}, [_vm._v(" " + _vm._s(_vm.text) + " ")])], 1);
|
|
637
649
|
};
|
|
638
650
|
var _sfc_staticRenderFns$6 = [];
|
|
639
|
-
var __component__$6 = /* @__PURE__ */ normalizeComponent(
|
|
640
|
-
_sfc_main$6,
|
|
641
|
-
_sfc_render$6,
|
|
642
|
-
_sfc_staticRenderFns$6,
|
|
643
|
-
false,
|
|
644
|
-
null,
|
|
645
|
-
null,
|
|
646
|
-
null,
|
|
647
|
-
null
|
|
648
|
-
);
|
|
651
|
+
var __component__$6 = /* @__PURE__ */ normalizeComponent(_sfc_main$6, _sfc_render$6, _sfc_staticRenderFns$6, false, null, null, null, null);
|
|
649
652
|
const MentionComponent = __component__$6.exports;
|
|
650
653
|
const MentionPlugin = Mention.extend({
|
|
651
654
|
addNodeView() {
|
|
652
655
|
return VueNodeViewRenderer(MentionComponent);
|
|
653
656
|
},
|
|
654
657
|
parseHTML() {
|
|
655
|
-
return [
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}
|
|
659
|
-
];
|
|
658
|
+
return [{
|
|
659
|
+
tag: "mention-component"
|
|
660
|
+
}];
|
|
660
661
|
},
|
|
661
662
|
addAttributes() {
|
|
662
663
|
return {
|
|
@@ -671,11 +672,15 @@ const MentionPlugin = Mention.extend({
|
|
|
671
672
|
}
|
|
672
673
|
};
|
|
673
674
|
},
|
|
674
|
-
renderText({
|
|
675
|
+
renderText({
|
|
676
|
+
node
|
|
677
|
+
}) {
|
|
675
678
|
return `@${node.attrs.id}`;
|
|
676
679
|
},
|
|
677
|
-
renderHTML({
|
|
678
|
-
|
|
680
|
+
renderHTML({
|
|
681
|
+
HTMLAttributes
|
|
682
|
+
}) {
|
|
683
|
+
return ["mention-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
679
684
|
}
|
|
680
685
|
}).configure({
|
|
681
686
|
suggestion: {
|
|
@@ -698,19 +703,16 @@ const _sfc_main$5 = {
|
|
|
698
703
|
};
|
|
699
704
|
var _sfc_render$5 = function render5() {
|
|
700
705
|
var _vm = this, _c = _vm._self._c;
|
|
701
|
-
return _c("node-view-wrapper", {
|
|
706
|
+
return _c("node-view-wrapper", {
|
|
707
|
+
staticClass: "d-d-inline-block"
|
|
708
|
+
}, [_c("dt-link", {
|
|
709
|
+
attrs: {
|
|
710
|
+
"kind": "mention"
|
|
711
|
+
}
|
|
712
|
+
}, [_vm._v(" " + _vm._s(_vm.text) + " ")])], 1);
|
|
702
713
|
};
|
|
703
714
|
var _sfc_staticRenderFns$5 = [];
|
|
704
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(
|
|
705
|
-
_sfc_main$5,
|
|
706
|
-
_sfc_render$5,
|
|
707
|
-
_sfc_staticRenderFns$5,
|
|
708
|
-
false,
|
|
709
|
-
null,
|
|
710
|
-
null,
|
|
711
|
-
null,
|
|
712
|
-
null
|
|
713
|
-
);
|
|
715
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(_sfc_main$5, _sfc_render$5, _sfc_staticRenderFns$5, false, null, null, null, null);
|
|
714
716
|
const ChannelComponent = __component__$5.exports;
|
|
715
717
|
const ChannelPlugin = Mention.extend({
|
|
716
718
|
name: "channel",
|
|
@@ -718,11 +720,9 @@ const ChannelPlugin = Mention.extend({
|
|
|
718
720
|
return VueNodeViewRenderer(ChannelComponent);
|
|
719
721
|
},
|
|
720
722
|
parseHTML() {
|
|
721
|
-
return [
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}
|
|
725
|
-
];
|
|
723
|
+
return [{
|
|
724
|
+
tag: "channel-component"
|
|
725
|
+
}];
|
|
726
726
|
},
|
|
727
727
|
addAttributes() {
|
|
728
728
|
return {
|
|
@@ -737,11 +737,15 @@ const ChannelPlugin = Mention.extend({
|
|
|
737
737
|
}
|
|
738
738
|
};
|
|
739
739
|
},
|
|
740
|
-
renderText({
|
|
740
|
+
renderText({
|
|
741
|
+
node
|
|
742
|
+
}) {
|
|
741
743
|
return `#${node.attrs.id}`;
|
|
742
744
|
},
|
|
743
|
-
renderHTML({
|
|
744
|
-
|
|
745
|
+
renderHTML({
|
|
746
|
+
HTMLAttributes
|
|
747
|
+
}) {
|
|
748
|
+
return ["channel-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
745
749
|
}
|
|
746
750
|
}).configure({
|
|
747
751
|
suggestion: {
|
|
@@ -767,19 +771,12 @@ const _sfc_main$4 = {
|
|
|
767
771
|
};
|
|
768
772
|
var _sfc_render$4 = function render6() {
|
|
769
773
|
var _vm = this, _c = _vm._self._c;
|
|
770
|
-
return _c("node-view-wrapper", {
|
|
774
|
+
return _c("node-view-wrapper", {
|
|
775
|
+
staticClass: "d-d-inline-block"
|
|
776
|
+
}, [_vm._v(" " + _vm._s(_vm.text) + " ")]);
|
|
771
777
|
};
|
|
772
778
|
var _sfc_staticRenderFns$4 = [];
|
|
773
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(
|
|
774
|
-
_sfc_main$4,
|
|
775
|
-
_sfc_render$4,
|
|
776
|
-
_sfc_staticRenderFns$4,
|
|
777
|
-
false,
|
|
778
|
-
null,
|
|
779
|
-
null,
|
|
780
|
-
null,
|
|
781
|
-
null
|
|
782
|
-
);
|
|
779
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(_sfc_main$4, _sfc_render$4, _sfc_staticRenderFns$4, false, null, null, null, null);
|
|
783
780
|
const SlashCommandComponent = __component__$4.exports;
|
|
784
781
|
const slashCommandPasteMatch = (text, slashCommandRegex) => {
|
|
785
782
|
const matches = [...text.matchAll(slashCommandRegex)];
|
|
@@ -802,11 +799,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
802
799
|
return VueNodeViewRenderer(SlashCommandComponent);
|
|
803
800
|
},
|
|
804
801
|
parseHTML() {
|
|
805
|
-
return [
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}
|
|
809
|
-
];
|
|
802
|
+
return [{
|
|
803
|
+
tag: "command-component"
|
|
804
|
+
}];
|
|
810
805
|
},
|
|
811
806
|
addAttributes() {
|
|
812
807
|
return {
|
|
@@ -821,39 +816,47 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
821
816
|
}
|
|
822
817
|
};
|
|
823
818
|
},
|
|
824
|
-
renderText({
|
|
819
|
+
renderText({
|
|
820
|
+
node
|
|
821
|
+
}) {
|
|
825
822
|
return `/${node.attrs.command}`;
|
|
826
823
|
},
|
|
827
|
-
renderHTML({
|
|
824
|
+
renderHTML({
|
|
825
|
+
HTMLAttributes
|
|
826
|
+
}) {
|
|
828
827
|
return ["command-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
829
828
|
},
|
|
830
829
|
addInputRules() {
|
|
831
830
|
var _a;
|
|
832
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
831
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
832
|
+
query: ""
|
|
833
|
+
}).map((suggestion) => suggestion.command);
|
|
833
834
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) $`);
|
|
834
|
-
return [
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
];
|
|
835
|
+
return [nodeInputRule({
|
|
836
|
+
find: slashCommandRegex,
|
|
837
|
+
type: this.type,
|
|
838
|
+
getAttributes(attrs) {
|
|
839
|
+
return {
|
|
840
|
+
command: attrs[2]
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
})];
|
|
843
844
|
},
|
|
844
845
|
addPasteRules() {
|
|
845
846
|
var _a;
|
|
846
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
847
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
848
|
+
query: ""
|
|
849
|
+
}).map((suggestion) => suggestion.command);
|
|
847
850
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) ?$`, "g");
|
|
848
|
-
return [
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
];
|
|
851
|
+
return [nodePasteRule({
|
|
852
|
+
find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
|
|
853
|
+
type: this.type,
|
|
854
|
+
getAttributes(attrs) {
|
|
855
|
+
return {
|
|
856
|
+
command: attrs[0].trim()
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
})];
|
|
857
860
|
}
|
|
858
861
|
}).configure({
|
|
859
862
|
suggestion: {
|
|
@@ -861,24 +864,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
861
864
|
pluginKey: new PluginKey("slashCommandSuggestion")
|
|
862
865
|
}
|
|
863
866
|
});
|
|
864
|
-
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = [
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
"html"
|
|
868
|
-
];
|
|
869
|
-
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = [
|
|
870
|
-
"start",
|
|
871
|
-
"end",
|
|
872
|
-
"all"
|
|
873
|
-
];
|
|
874
|
-
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = [
|
|
875
|
-
"https",
|
|
876
|
-
"http",
|
|
877
|
-
"ftp",
|
|
878
|
-
"ftps",
|
|
879
|
-
"sftp",
|
|
880
|
-
"mailto"
|
|
881
|
-
];
|
|
867
|
+
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = ["text", "json", "html"];
|
|
868
|
+
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = ["start", "end", "all"];
|
|
869
|
+
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = ["https", "http", "ftp", "ftps", "sftp", "mailto"];
|
|
882
870
|
const _sfc_main$3 = {
|
|
883
871
|
name: "MentionSuggestion",
|
|
884
872
|
components: {
|
|
@@ -902,19 +890,24 @@ const _sfc_main$3 = {
|
|
|
902
890
|
};
|
|
903
891
|
var _sfc_render$3 = function render7() {
|
|
904
892
|
var _vm = this, _c = _vm._self._c;
|
|
905
|
-
return _c("dt-stack", {
|
|
893
|
+
return _c("dt-stack", {
|
|
894
|
+
attrs: {
|
|
895
|
+
"direction": "row",
|
|
896
|
+
"gap": "400"
|
|
897
|
+
}
|
|
898
|
+
}, [_c("dt-avatar", {
|
|
899
|
+
attrs: {
|
|
900
|
+
"full-name": _vm.name,
|
|
901
|
+
"image-src": _vm.avatarSrc,
|
|
902
|
+
"image-alt": _vm.name,
|
|
903
|
+
"size": "xs"
|
|
904
|
+
}
|
|
905
|
+
}), _c("span", {
|
|
906
|
+
staticClass: "mention-suggestion-name"
|
|
907
|
+
}, [_vm._v(" " + _vm._s(_vm.name) + " ")])], 1);
|
|
906
908
|
};
|
|
907
909
|
var _sfc_staticRenderFns$3 = [];
|
|
908
|
-
var __component__$3 = /* @__PURE__ */ normalizeComponent(
|
|
909
|
-
_sfc_main$3,
|
|
910
|
-
_sfc_render$3,
|
|
911
|
-
_sfc_staticRenderFns$3,
|
|
912
|
-
false,
|
|
913
|
-
null,
|
|
914
|
-
null,
|
|
915
|
-
null,
|
|
916
|
-
null
|
|
917
|
-
);
|
|
910
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(_sfc_main$3, _sfc_render$3, _sfc_staticRenderFns$3, false, null, "65bcbd51", null, null);
|
|
918
911
|
const MentionSuggestion = __component__$3.exports;
|
|
919
912
|
const mentionSuggestion = {
|
|
920
913
|
// This function comes from the user and passed to the editor directly.
|
|
@@ -1010,19 +1003,23 @@ const _sfc_main$2 = {
|
|
|
1010
1003
|
};
|
|
1011
1004
|
var _sfc_render$2 = function render8() {
|
|
1012
1005
|
var _vm = this, _c = _vm._self._c;
|
|
1013
|
-
return _c("dt-stack", {
|
|
1006
|
+
return _c("dt-stack", {
|
|
1007
|
+
attrs: {
|
|
1008
|
+
"direction": "row",
|
|
1009
|
+
"gap": "400"
|
|
1010
|
+
}
|
|
1011
|
+
}, [!_vm.item.locked ? _c("dt-icon-hash", {
|
|
1012
|
+
attrs: {
|
|
1013
|
+
"size": "300"
|
|
1014
|
+
}
|
|
1015
|
+
}) : _c("dt-icon-lock", {
|
|
1016
|
+
attrs: {
|
|
1017
|
+
"size": "300"
|
|
1018
|
+
}
|
|
1019
|
+
}), _c("span", [_vm._v(_vm._s(_vm.name))])], 1);
|
|
1014
1020
|
};
|
|
1015
1021
|
var _sfc_staticRenderFns$2 = [];
|
|
1016
|
-
var __component__$2 = /* @__PURE__ */ normalizeComponent(
|
|
1017
|
-
_sfc_main$2,
|
|
1018
|
-
_sfc_render$2,
|
|
1019
|
-
_sfc_staticRenderFns$2,
|
|
1020
|
-
false,
|
|
1021
|
-
null,
|
|
1022
|
-
null,
|
|
1023
|
-
null,
|
|
1024
|
-
null
|
|
1025
|
-
);
|
|
1022
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(_sfc_main$2, _sfc_render$2, _sfc_staticRenderFns$2, false, null, null, null, null);
|
|
1026
1023
|
const ChannelSuggestion = __component__$2.exports;
|
|
1027
1024
|
const channelSuggestion = {
|
|
1028
1025
|
// This function comes from the user and passed to the editor directly.
|
|
@@ -1119,19 +1116,14 @@ const _sfc_main$1 = {
|
|
|
1119
1116
|
};
|
|
1120
1117
|
var _sfc_render$1 = function render9() {
|
|
1121
1118
|
var _vm = this, _c = _vm._self._c;
|
|
1122
|
-
return _c("div", [_c("div", {
|
|
1119
|
+
return _c("div", [_c("div", {
|
|
1120
|
+
staticClass: "d-body--md-compact"
|
|
1121
|
+
}, [_c("span", [_vm._v("/" + _vm._s(_vm.command))]), _vm.parametersExample ? _c("span", [_vm._v(" " + _vm._s(_vm.parametersExample))]) : _vm._e()]), _c("div", {
|
|
1122
|
+
staticClass: "d-body--sm d-fc-tertiary"
|
|
1123
|
+
}, [_vm._v(" " + _vm._s(_vm.description) + " ")])]);
|
|
1123
1124
|
};
|
|
1124
1125
|
var _sfc_staticRenderFns$1 = [];
|
|
1125
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
1126
|
-
_sfc_main$1,
|
|
1127
|
-
_sfc_render$1,
|
|
1128
|
-
_sfc_staticRenderFns$1,
|
|
1129
|
-
false,
|
|
1130
|
-
null,
|
|
1131
|
-
null,
|
|
1132
|
-
null,
|
|
1133
|
-
null
|
|
1134
|
-
);
|
|
1126
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
|
|
1135
1127
|
const SlashCommandSuggestion = __component__$1.exports;
|
|
1136
1128
|
const slashCommandSuggestion = {
|
|
1137
1129
|
// This function comes from the user and passed to the editor directly.
|
|
@@ -1236,7 +1228,8 @@ const _sfc_main = {
|
|
|
1236
1228
|
default: false
|
|
1237
1229
|
},
|
|
1238
1230
|
/**
|
|
1239
|
-
* Whether the input allows for line breaks to be introduced in the text.
|
|
1231
|
+
* Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
|
|
1232
|
+
* line breaks can still be entered by pressing shift+enter.
|
|
1240
1233
|
*/
|
|
1241
1234
|
allowLineBreaks: {
|
|
1242
1235
|
type: Boolean,
|
|
@@ -1481,7 +1474,9 @@ const _sfc_main = {
|
|
|
1481
1474
|
extensions() {
|
|
1482
1475
|
const extensions = [Document, Paragraph, Text, History];
|
|
1483
1476
|
if (this.link) {
|
|
1484
|
-
extensions.push(TipTapLink.extend({
|
|
1477
|
+
extensions.push(TipTapLink.extend({
|
|
1478
|
+
inclusive: false
|
|
1479
|
+
}).configure({
|
|
1485
1480
|
HTMLAttributes: {
|
|
1486
1481
|
class: "d-link d-wb-break-all"
|
|
1487
1482
|
},
|
|
@@ -1513,48 +1508,55 @@ const _sfc_main = {
|
|
|
1513
1508
|
extensions.push(Underline);
|
|
1514
1509
|
}
|
|
1515
1510
|
if (this.placeholder) {
|
|
1516
|
-
extensions.push(
|
|
1517
|
-
|
|
1518
|
-
);
|
|
1511
|
+
extensions.push(Placeholder.configure({
|
|
1512
|
+
placeholder: this.placeholder
|
|
1513
|
+
}));
|
|
1519
1514
|
}
|
|
1520
1515
|
if (!this.allowLineBreaks) {
|
|
1521
1516
|
const self = this;
|
|
1522
|
-
extensions.push(
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
() => commands.splitBlock()
|
|
1537
|
-
]);
|
|
1538
|
-
return true;
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1541
|
-
}
|
|
1542
|
-
})
|
|
1543
|
-
);
|
|
1517
|
+
extensions.push(HardBreak.extend({
|
|
1518
|
+
addKeyboardShortcuts() {
|
|
1519
|
+
return {
|
|
1520
|
+
Enter: () => {
|
|
1521
|
+
self.$emit("enter");
|
|
1522
|
+
return true;
|
|
1523
|
+
},
|
|
1524
|
+
"Shift-Enter": () => {
|
|
1525
|
+
this.editor.commands.setHardBreak();
|
|
1526
|
+
return true;
|
|
1527
|
+
}
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
}));
|
|
1544
1531
|
} else {
|
|
1545
1532
|
extensions.push(HardBreak);
|
|
1546
1533
|
}
|
|
1547
1534
|
if (this.mentionSuggestion) {
|
|
1548
|
-
const suggestionObject = {
|
|
1549
|
-
|
|
1535
|
+
const suggestionObject = {
|
|
1536
|
+
...this.mentionSuggestion,
|
|
1537
|
+
...mentionSuggestion
|
|
1538
|
+
};
|
|
1539
|
+
extensions.push(MentionPlugin.configure({
|
|
1540
|
+
suggestion: suggestionObject
|
|
1541
|
+
}));
|
|
1550
1542
|
}
|
|
1551
1543
|
if (this.channelSuggestion) {
|
|
1552
|
-
const suggestionObject = {
|
|
1553
|
-
|
|
1544
|
+
const suggestionObject = {
|
|
1545
|
+
...this.channelSuggestion,
|
|
1546
|
+
...channelSuggestion
|
|
1547
|
+
};
|
|
1548
|
+
extensions.push(ChannelPlugin.configure({
|
|
1549
|
+
suggestion: suggestionObject
|
|
1550
|
+
}));
|
|
1554
1551
|
}
|
|
1555
1552
|
if (this.slashCommandSuggestion) {
|
|
1556
|
-
const suggestionObject = {
|
|
1557
|
-
|
|
1553
|
+
const suggestionObject = {
|
|
1554
|
+
...this.slashCommandSuggestion,
|
|
1555
|
+
...slashCommandSuggestion
|
|
1556
|
+
};
|
|
1557
|
+
extensions.push(SlashCommandPlugin.configure({
|
|
1558
|
+
suggestion: suggestionObject
|
|
1559
|
+
}));
|
|
1558
1560
|
}
|
|
1559
1561
|
extensions.push(Emoji);
|
|
1560
1562
|
extensions.push(TextAlign.configure({
|
|
@@ -1593,13 +1595,19 @@ const _sfc_main = {
|
|
|
1593
1595
|
watch: {
|
|
1594
1596
|
editable(isEditable) {
|
|
1595
1597
|
this.editor.setEditable(isEditable);
|
|
1596
|
-
this.updateEditorAttributes({
|
|
1598
|
+
this.updateEditorAttributes({
|
|
1599
|
+
"aria-readonly": !isEditable
|
|
1600
|
+
});
|
|
1597
1601
|
},
|
|
1598
1602
|
inputClass(newClass) {
|
|
1599
|
-
this.updateEditorAttributes({
|
|
1603
|
+
this.updateEditorAttributes({
|
|
1604
|
+
class: newClass
|
|
1605
|
+
});
|
|
1600
1606
|
},
|
|
1601
1607
|
inputAriaLabel(newLabel) {
|
|
1602
|
-
this.updateEditorAttributes({
|
|
1608
|
+
this.updateEditorAttributes({
|
|
1609
|
+
"aria-label": newLabel
|
|
1610
|
+
});
|
|
1603
1611
|
},
|
|
1604
1612
|
extensions() {
|
|
1605
1613
|
this.destroyEditor();
|
|
@@ -1657,10 +1665,14 @@ const _sfc_main = {
|
|
|
1657
1665
|
this.$emit("input", value);
|
|
1658
1666
|
this.$emit("update:value", value);
|
|
1659
1667
|
});
|
|
1660
|
-
this.editor.on("focus", ({
|
|
1668
|
+
this.editor.on("focus", ({
|
|
1669
|
+
event
|
|
1670
|
+
}) => {
|
|
1661
1671
|
this.$emit("focus", event);
|
|
1662
1672
|
});
|
|
1663
|
-
this.editor.on("blur", ({
|
|
1673
|
+
this.editor.on("blur", ({
|
|
1674
|
+
event
|
|
1675
|
+
}) => {
|
|
1664
1676
|
this.$emit("blur", event);
|
|
1665
1677
|
});
|
|
1666
1678
|
},
|
|
@@ -1683,7 +1695,11 @@ const _sfc_main = {
|
|
|
1683
1695
|
return (_a = extension.configure) == null ? void 0 : _a.call(extension, options);
|
|
1684
1696
|
},
|
|
1685
1697
|
updateEditorAttributes(attributes) {
|
|
1686
|
-
this.editor.setOptions({
|
|
1698
|
+
this.editor.setOptions({
|
|
1699
|
+
editorProps: {
|
|
1700
|
+
attributes
|
|
1701
|
+
}
|
|
1702
|
+
});
|
|
1687
1703
|
},
|
|
1688
1704
|
focusEditor() {
|
|
1689
1705
|
this.editor.commands.focus();
|
|
@@ -1692,19 +1708,16 @@ const _sfc_main = {
|
|
|
1692
1708
|
};
|
|
1693
1709
|
var _sfc_render = function render10() {
|
|
1694
1710
|
var _vm = this, _c = _vm._self._c;
|
|
1695
|
-
return _c("editor-content", _vm._g({
|
|
1711
|
+
return _c("editor-content", _vm._g({
|
|
1712
|
+
staticClass: "dt-rich-text-editor",
|
|
1713
|
+
attrs: {
|
|
1714
|
+
"editor": _vm.editor,
|
|
1715
|
+
"data-qa": "dt-rich-text-editor"
|
|
1716
|
+
}
|
|
1717
|
+
}, _vm.editorListeners));
|
|
1696
1718
|
};
|
|
1697
1719
|
var _sfc_staticRenderFns = [];
|
|
1698
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
1699
|
-
_sfc_main,
|
|
1700
|
-
_sfc_render,
|
|
1701
|
-
_sfc_staticRenderFns,
|
|
1702
|
-
false,
|
|
1703
|
-
null,
|
|
1704
|
-
null,
|
|
1705
|
-
null,
|
|
1706
|
-
null
|
|
1707
|
-
);
|
|
1720
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
1708
1721
|
const DtRichTextEditor = __component__.exports;
|
|
1709
1722
|
export {
|
|
1710
1723
|
DtRichTextEditor,
|