@dialpad/dialtone-vue 3.145.0 → 3.146.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-oA-_Gotg.js → dropdown-6HXkh24e.js} +40 -45
- package/dist/chunks/{dropdown-oA-_Gotg.js.map → dropdown-6HXkh24e.js.map} +1 -1
- package/dist/chunks/{dropdown-p-Azgwov.js → dropdown-QNvAb160.js} +40 -45
- package/dist/chunks/{dropdown-p-Azgwov.js.map → dropdown-QNvAb160.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-QYpmdE0R.js → icon_constants-bvhFNOPu.js} +3 -2
- package/dist/chunks/icon_constants-bvhFNOPu.js.map +1 -0
- package/dist/chunks/{icon_constants-Dy4MEUJL.js → icon_constants-gIQj4mf7.js} +3 -2
- package/dist/chunks/icon_constants-gIQj4mf7.js.map +1 -0
- package/dist/chunks/{index-b_MgDylR.js → index-T15rAIdX.js} +71 -84
- package/dist/chunks/{index-4qgKeErp.js.map → index-T15rAIdX.js.map} +1 -1
- package/dist/chunks/{index-GVD15GIB.js → index-dfdrE-3M.js} +3 -12
- package/dist/chunks/{index-GVD15GIB.js.map → index-dfdrE-3M.js.map} +1 -1
- package/dist/chunks/{index-lu2o2f4r.js → index-fEp0B-5Z.js} +3 -12
- package/dist/chunks/{index-lu2o2f4r.js.map → index-fEp0B-5Z.js.map} +1 -1
- package/dist/chunks/{index-4qgKeErp.js → index-ouh7Bvm-.js} +71 -84
- package/dist/chunks/{index-b_MgDylR.js.map → index-ouh7Bvm-.js.map} +1 -1
- package/dist/chunks/{input-NmYDD5bn.js → input-HIysg24t.js} +3 -9
- package/dist/chunks/{input-ttnte8zB.js.map → input-HIysg24t.js.map} +1 -1
- package/dist/chunks/{input-ttnte8zB.js → input-dLLo3Wtg.js} +3 -9
- package/dist/chunks/{input-NmYDD5bn.js.map → input-dLLo3Wtg.js.map} +1 -1
- package/dist/chunks/{input_group-jWnq2DJT.js → input_group-hV1WT2it.js} +4 -2
- package/dist/chunks/{input_group-M-D25pOJ.js.map → input_group-hV1WT2it.js.map} +1 -1
- package/dist/chunks/{input_group-M-D25pOJ.js → input_group-rE6nhye8.js} +4 -2
- package/dist/chunks/{input_group-jWnq2DJT.js.map → input_group-rE6nhye8.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-WTucGhvr.js → notice_action-3ed0uIMN.js} +40 -61
- package/dist/chunks/{notice_action-p-ePanW_.js.map → notice_action-3ed0uIMN.js.map} +1 -1
- package/dist/chunks/{notice_action-p-ePanW_.js → notice_action-e08Lw5W6.js} +40 -61
- package/dist/chunks/{notice_action-WTucGhvr.js.map → notice_action-e08Lw5W6.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-XnGWXaxX.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-WsOUIY-m.js.map → popover_constants-h9MD6WUt.js.map} +1 -1
- package/dist/chunks/{sr_only_close_button-3EdsV-dH.js → sr_only_close_button-Ji3Zlts6.js} +4 -4
- package/dist/chunks/{sr_only_close_button-3EdsV-dH.js.map → sr_only_close_button-Ji3Zlts6.js.map} +1 -1
- package/dist/chunks/{sr_only_close_button-xGrHFjwA.js → sr_only_close_button-gKr0Vlbz.js} +4 -4
- package/dist/chunks/{sr_only_close_button-xGrHFjwA.js.map → sr_only_close_button-gKr0Vlbz.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-qc3f42Yp.js → tab-X7IvNGTl.js} +46 -49
- package/dist/chunks/{tab-qc3f42Yp.js.map → tab-X7IvNGTl.js.map} +1 -1
- package/dist/chunks/{tab-RTDgnD9-.js → tab-aD6t0MNo.js} +46 -49
- package/dist/chunks/{tab-RTDgnD9-.js.map → tab-aD6t0MNo.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 +11 -45
- package/dist/common/utils.cjs.map +1 -1
- package/dist/common/utils.js +11 -45
- 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 +87 -108
- package/dist/lib/attachment-carousel.cjs.map +1 -1
- package/dist/lib/attachment-carousel.js +87 -108
- package/dist/lib/attachment-carousel.js.map +1 -1
- package/dist/lib/avatar.cjs +56 -88
- package/dist/lib/avatar.cjs.map +1 -1
- package/dist/lib/avatar.js +56 -88
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/badge.cjs +15 -31
- package/dist/lib/badge.cjs.map +1 -1
- package/dist/lib/badge.js +15 -31
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/banner.cjs +38 -56
- package/dist/lib/banner.cjs.map +1 -1
- package/dist/lib/banner.js +38 -56
- package/dist/lib/banner.js.map +1 -1
- package/dist/lib/breadcrumbs.cjs +25 -36
- package/dist/lib/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs.js +25 -36
- package/dist/lib/breadcrumbs.js.map +1 -1
- package/dist/lib/button-group.cjs +2 -7
- package/dist/lib/button-group.cjs.map +1 -1
- package/dist/lib/button-group.js +2 -7
- package/dist/lib/button-group.js.map +1 -1
- package/dist/lib/button.cjs +44 -69
- package/dist/lib/button.cjs.map +1 -1
- package/dist/lib/button.js +44 -69
- package/dist/lib/button.js.map +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +68 -81
- package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover.js +68 -81
- package/dist/lib/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbar-button.cjs +32 -45
- package/dist/lib/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button.js +32 -45
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/callbox.cjs +38 -57
- package/dist/lib/callbox.cjs.map +1 -1
- package/dist/lib/callbox.js +38 -57
- package/dist/lib/callbox.js.map +1 -1
- package/dist/lib/card.cjs +13 -33
- package/dist/lib/card.cjs.map +1 -1
- package/dist/lib/card.js +13 -33
- package/dist/lib/card.js.map +1 -1
- package/dist/lib/checkbox-group.cjs +2 -5
- package/dist/lib/checkbox-group.cjs.map +1 -1
- package/dist/lib/checkbox-group.js +2 -5
- package/dist/lib/checkbox-group.js.map +1 -1
- package/dist/lib/checkbox.cjs +41 -45
- package/dist/lib/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox.js +41 -45
- package/dist/lib/checkbox.js.map +1 -1
- package/dist/lib/chip.cjs +38 -53
- package/dist/lib/chip.cjs.map +1 -1
- package/dist/lib/chip.js +38 -53
- package/dist/lib/chip.js.map +1 -1
- package/dist/lib/codeblock.cjs +4 -6
- package/dist/lib/codeblock.cjs.map +1 -1
- package/dist/lib/codeblock.js +4 -6
- package/dist/lib/codeblock.js.map +1 -1
- package/dist/lib/collapsible.cjs +62 -76
- package/dist/lib/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible.js +62 -76
- package/dist/lib/collapsible.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +75 -88
- package/dist/lib/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select.js +75 -88
- package/dist/lib/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover.cjs +77 -85
- package/dist/lib/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover.js +77 -85
- 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 +65 -89
- package/dist/lib/contact-centers-row.cjs.map +1 -1
- package/dist/lib/contact-centers-row.js +65 -89
- package/dist/lib/contact-centers-row.js.map +1 -1
- package/dist/lib/contact-info.cjs +58 -73
- package/dist/lib/contact-info.cjs.map +1 -1
- package/dist/lib/contact-info.js +58 -73
- package/dist/lib/contact-info.js.map +1 -1
- package/dist/lib/contact-row.cjs +37 -47
- package/dist/lib/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row.js +37 -47
- package/dist/lib/contact-row.js.map +1 -1
- package/dist/lib/datepicker.cjs +267 -263
- package/dist/lib/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker.js +267 -263
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/description-list.cjs +9 -14
- package/dist/lib/description-list.cjs.map +1 -1
- package/dist/lib/description-list.js +9 -14
- package/dist/lib/description-list.js.map +1 -1
- package/dist/lib/dropdown.cjs +6 -6
- package/dist/lib/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown.js +6 -6
- package/dist/lib/dropdown.js.map +1 -1
- package/dist/lib/editor.cjs +312 -249
- package/dist/lib/editor.cjs.map +1 -1
- package/dist/lib/editor.js +312 -249
- package/dist/lib/editor.js.map +1 -1
- package/dist/lib/emoji-picker.cjs +387 -419
- package/dist/lib/emoji-picker.cjs.map +1 -1
- package/dist/lib/emoji-picker.js +387 -419
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +59 -69
- package/dist/lib/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row.js +59 -69
- package/dist/lib/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper.cjs +13 -12
- package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
- package/dist/lib/emoji-text-wrapper.js +13 -12
- package/dist/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/emoji.cjs +19 -23
- package/dist/lib/emoji.cjs.map +1 -1
- package/dist/lib/emoji.js +19 -23
- package/dist/lib/emoji.js.map +1 -1
- package/dist/lib/empty-state.cjs +20 -30
- package/dist/lib/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state.js +20 -30
- package/dist/lib/empty-state.js.map +1 -1
- package/dist/lib/feed-item-row.cjs +43 -74
- package/dist/lib/feed-item-row.cjs.map +1 -1
- package/dist/lib/feed-item-row.js +43 -74
- package/dist/lib/feed-item-row.js.map +1 -1
- package/dist/lib/feed-pill.cjs +45 -55
- package/dist/lib/feed-pill.cjs.map +1 -1
- package/dist/lib/feed-pill.js +45 -55
- package/dist/lib/feed-pill.js.map +1 -1
- package/dist/lib/general-row.cjs +115 -165
- package/dist/lib/general-row.cjs.map +1 -1
- package/dist/lib/general-row.js +115 -165
- package/dist/lib/general-row.js.map +1 -1
- package/dist/lib/group-row.cjs +7 -9
- package/dist/lib/group-row.cjs.map +1 -1
- package/dist/lib/group-row.js +7 -9
- package/dist/lib/group-row.js.map +1 -1
- package/dist/lib/grouped-chip.cjs +27 -48
- package/dist/lib/grouped-chip.cjs.map +1 -1
- package/dist/lib/grouped-chip.js +27 -48
- package/dist/lib/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard.cjs +25 -33
- package/dist/lib/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard.js +25 -33
- package/dist/lib/hovercard.js.map +1 -1
- package/dist/lib/icon.cjs +1 -1
- package/dist/lib/icon.cjs.map +1 -1
- package/dist/lib/icon.js +1 -1
- package/dist/lib/icon.js.map +1 -1
- package/dist/lib/illustration.cjs +2 -1
- package/dist/lib/illustration.cjs.map +1 -1
- package/dist/lib/illustration.js +2 -1
- package/dist/lib/illustration.js.map +1 -1
- package/dist/lib/image-viewer.cjs +62 -66
- package/dist/lib/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer.js +62 -66
- package/dist/lib/image-viewer.js.map +1 -1
- package/dist/lib/input-group.cjs +15 -19
- package/dist/lib/input-group.cjs.map +1 -1
- package/dist/lib/input-group.js +15 -19
- package/dist/lib/input-group.js.map +1 -1
- package/dist/lib/input.cjs +76 -104
- package/dist/lib/input.cjs.map +1 -1
- package/dist/lib/input.js +76 -104
- package/dist/lib/input.js.map +1 -1
- package/dist/lib/item-layout.cjs +10 -27
- package/dist/lib/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout.js +10 -27
- package/dist/lib/item-layout.js.map +1 -1
- package/dist/lib/ivr-node.cjs +80 -89
- package/dist/lib/ivr-node.cjs.map +1 -1
- package/dist/lib/ivr-node.js +80 -89
- package/dist/lib/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut.cjs +26 -31
- package/dist/lib/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut.js +26 -31
- package/dist/lib/keyboard-shortcut.js.map +1 -1
- package/dist/lib/lazy-show.cjs +6 -8
- package/dist/lib/lazy-show.cjs.map +1 -1
- package/dist/lib/lazy-show.js +6 -8
- package/dist/lib/lazy-show.js.map +1 -1
- package/dist/lib/link.cjs +2 -7
- package/dist/lib/link.cjs.map +1 -1
- package/dist/lib/link.js +2 -7
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/list-item-group.cjs +7 -14
- package/dist/lib/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group.js +7 -14
- package/dist/lib/list-item-group.js.map +1 -1
- package/dist/lib/list-item.cjs +24 -25
- package/dist/lib/list-item.cjs.map +1 -1
- package/dist/lib/list-item.js +24 -25
- package/dist/lib/list-item.js.map +1 -1
- package/dist/lib/message-input.cjs +239 -277
- package/dist/lib/message-input.cjs.map +1 -1
- package/dist/lib/message-input.js +240 -278
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/modal.cjs +59 -99
- package/dist/lib/modal.cjs.map +1 -1
- package/dist/lib/modal.js +59 -99
- package/dist/lib/modal.js.map +1 -1
- package/dist/lib/notice.cjs +33 -46
- package/dist/lib/notice.cjs.map +1 -1
- package/dist/lib/notice.js +33 -46
- package/dist/lib/notice.js.map +1 -1
- package/dist/lib/pagination.cjs +49 -61
- package/dist/lib/pagination.cjs.map +1 -1
- package/dist/lib/pagination.js +49 -61
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/popover.cjs +133 -156
- package/dist/lib/popover.cjs.map +1 -1
- package/dist/lib/popover.js +134 -157
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/presence.cjs +9 -17
- package/dist/lib/presence.cjs.map +1 -1
- package/dist/lib/presence.js +9 -17
- package/dist/lib/presence.js.map +1 -1
- package/dist/lib/radio-group.cjs +1 -1
- package/dist/lib/radio-group.cjs.map +1 -1
- package/dist/lib/radio-group.js +1 -1
- package/dist/lib/radio-group.js.map +1 -1
- package/dist/lib/radio.cjs +34 -41
- package/dist/lib/radio.cjs.map +1 -1
- package/dist/lib/radio.js +34 -41
- package/dist/lib/radio.js.map +1 -1
- package/dist/lib/rich-text-editor.cjs +297 -298
- package/dist/lib/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor.js +297 -298
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/root-layout.cjs +24 -39
- package/dist/lib/root-layout.cjs.map +1 -1
- package/dist/lib/root-layout.js +24 -39
- 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/scroller.cjs +100 -83
- package/dist/lib/scroller.cjs.map +1 -1
- package/dist/lib/scroller.js +100 -83
- package/dist/lib/scroller.js.map +1 -1
- package/dist/lib/select-menu.cjs +40 -67
- package/dist/lib/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu.js +40 -67
- package/dist/lib/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button.cjs +10 -16
- package/dist/lib/settings-menu-button.cjs.map +1 -1
- package/dist/lib/settings-menu-button.js +10 -16
- package/dist/lib/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton.cjs +74 -93
- package/dist/lib/skeleton.cjs.map +1 -1
- package/dist/lib/skeleton.js +74 -93
- package/dist/lib/skeleton.js.map +1 -1
- package/dist/lib/split-button.cjs +68 -74
- package/dist/lib/split-button.cjs.map +1 -1
- package/dist/lib/split-button.js +68 -74
- package/dist/lib/split-button.js.map +1 -1
- package/dist/lib/stack.cjs +18 -26
- package/dist/lib/stack.cjs.map +1 -1
- package/dist/lib/stack.js +18 -26
- package/dist/lib/stack.js.map +1 -1
- package/dist/lib/tabs.cjs +3 -7
- package/dist/lib/tabs.cjs.map +1 -1
- package/dist/lib/tabs.js +3 -7
- package/dist/lib/tabs.js.map +1 -1
- package/dist/lib/time-pill.cjs.map +1 -1
- package/dist/lib/time-pill.js.map +1 -1
- package/dist/lib/toast.cjs +35 -51
- package/dist/lib/toast.cjs.map +1 -1
- package/dist/lib/toast.js +35 -51
- package/dist/lib/toast.js.map +1 -1
- package/dist/lib/toggle.cjs +24 -34
- package/dist/lib/toggle.cjs.map +1 -1
- package/dist/lib/toggle.js +24 -34
- package/dist/lib/toggle.js.map +1 -1
- package/dist/lib/tooltip-directive.cjs +26 -19
- package/dist/lib/tooltip-directive.cjs.map +1 -1
- package/dist/lib/tooltip-directive.js +26 -19
- package/dist/lib/tooltip-directive.js.map +1 -1
- package/dist/lib/tooltip.cjs +21 -32
- package/dist/lib/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip.js +22 -33
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info.cjs +8 -23
- package/dist/lib/top-banner-info.cjs.map +1 -1
- package/dist/lib/top-banner-info.js +8 -23
- package/dist/lib/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill.cjs +8 -11
- package/dist/lib/unread-pill.cjs.map +1 -1
- package/dist/lib/unread-pill.js +8 -11
- package/dist/lib/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages.cjs +14 -17
- package/dist/lib/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages.js +14 -17
- package/dist/lib/validation-messages.js.map +1 -1
- package/dist/style.css +5 -0
- 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/datepicker/modules/month-year-picker.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_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/notice/notice.vue.d.ts +1 -1
- package/dist/types/components/radio/radio.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/scroller/modules/scroller_item.vue.d.ts +1 -1
- package/dist/types/components/split_button/split_button-alpha.vue.d.ts +1 -1
- package/dist/types/components/tabs/tab.vue.d.ts +1 -1
- package/dist/types/components/toast/toast.vue.d.ts +2 -2
- 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
|
@@ -20,7 +20,7 @@ import { Node, mergeAttributes, nodeInputRule, nodePasteRule, getMarksBetween, c
|
|
|
20
20
|
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, withDirectives, createElementVNode, Fragment, renderList, normalizeClass, withModifiers, resolveDynamicComponent, vShow, createTextVNode, toDisplayString, markRaw, createCommentVNode, mergeProps } from "vue";
|
|
21
21
|
import { _export_sfc } from "../chunks/_plugin-vue_export-helper-caHeSgYY.js";
|
|
22
22
|
import { DtEmoji } from "./emoji.js";
|
|
23
|
-
import { stringToUnicode, codeToEmojiData, emojiRegex, emojiPattern, emojiShortCodeRegex } from "../chunks/index-
|
|
23
|
+
import { stringToUnicode, codeToEmojiData, emojiRegex, emojiPattern, emojiShortCodeRegex } from "../chunks/index-dfdrE-3M.js";
|
|
24
24
|
import { PluginKey, Plugin } from "@tiptap/pm/state";
|
|
25
25
|
import Suggestion from "@tiptap/suggestion";
|
|
26
26
|
import { emojisIndexed } from "@dialpad/dialtone-emojis";
|
|
@@ -34,7 +34,7 @@ import { DtAvatar } from "./avatar.js";
|
|
|
34
34
|
import DtIconHash from "@dialpad/dialtone-icons/vue3/hash";
|
|
35
35
|
import DtIconLock from "@dialpad/dialtone-icons/vue3/lock";
|
|
36
36
|
import "./skeleton.js";
|
|
37
|
-
import "../chunks/icon_constants-
|
|
37
|
+
import "../chunks/icon_constants-gIQj4mf7.js";
|
|
38
38
|
import "@dialpad/dialtone-icons/icons.json";
|
|
39
39
|
import "../chunks/list_item_constants-u1xcN9Dd.js";
|
|
40
40
|
import "./item-layout.js";
|
|
@@ -55,13 +55,13 @@ const _sfc_main$9 = {
|
|
|
55
55
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
56
56
|
const _component_dt_emoji = resolveComponent("dt-emoji");
|
|
57
57
|
const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
|
|
58
|
-
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
]),
|
|
58
|
+
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
59
|
+
class: "d-d-inline-block d-va-bottom d-lh0"
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [createVNode(_component_dt_emoji, {
|
|
62
|
+
size: "500",
|
|
63
|
+
code: _ctx.node.attrs.code
|
|
64
|
+
}, null, 8, ["code"])]),
|
|
65
65
|
_: 1
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -100,7 +100,9 @@ const _sfc_main$8 = {
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
methods: {
|
|
103
|
-
onKeyDown({
|
|
103
|
+
onKeyDown({
|
|
104
|
+
event
|
|
105
|
+
}) {
|
|
104
106
|
if (event.key === "ArrowUp") {
|
|
105
107
|
this.upHandler();
|
|
106
108
|
return true;
|
|
@@ -143,48 +145,52 @@ const _sfc_main$8 = {
|
|
|
143
145
|
this.command(item);
|
|
144
146
|
return;
|
|
145
147
|
case "mention":
|
|
146
|
-
this.command({
|
|
148
|
+
this.command({
|
|
149
|
+
name: item.name,
|
|
150
|
+
id: item.id,
|
|
151
|
+
avatarSrc: item.avatarSrc
|
|
152
|
+
});
|
|
147
153
|
break;
|
|
148
154
|
case "channel":
|
|
149
|
-
this.command({
|
|
155
|
+
this.command({
|
|
156
|
+
name: item.name,
|
|
157
|
+
id: item.id
|
|
158
|
+
});
|
|
150
159
|
break;
|
|
151
160
|
case "slash-command":
|
|
152
|
-
this.command({
|
|
161
|
+
this.command({
|
|
162
|
+
command: item.command
|
|
163
|
+
});
|
|
153
164
|
break;
|
|
154
165
|
}
|
|
155
166
|
}
|
|
156
167
|
}
|
|
157
168
|
};
|
|
158
|
-
const _hoisted_1$
|
|
169
|
+
const _hoisted_1$2 = {
|
|
170
|
+
class: "d-popover__dialog dt-suggestion-list__container"
|
|
171
|
+
};
|
|
159
172
|
const _hoisted_2$1 = {
|
|
160
173
|
ref: "suggestionList",
|
|
161
174
|
class: "dt-suggestion-list"
|
|
162
175
|
};
|
|
163
176
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
164
177
|
const _component_dt_list_item = resolveComponent("dt-list-item");
|
|
165
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
_: 2
|
|
182
|
-
}, 1032, ["class", "onClick", "onKeydown"]);
|
|
183
|
-
}), 128))
|
|
184
|
-
], 512), [
|
|
185
|
-
[vShow, $props.items.length]
|
|
186
|
-
])
|
|
187
|
-
]);
|
|
178
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [withDirectives(createElementVNode("ul", _hoisted_2$1, [(openBlock(true), createElementBlock(Fragment, null, renderList($props.items, (item, index) => {
|
|
179
|
+
return openBlock(), createBlock(_component_dt_list_item, {
|
|
180
|
+
key: item.id,
|
|
181
|
+
class: normalizeClass(["dt-suggestion-list--item", {
|
|
182
|
+
"dt-list-item--highlighted": index === $data.selectedIndex
|
|
183
|
+
}]),
|
|
184
|
+
"navigation-type": "arrow-keys",
|
|
185
|
+
onClick: ($event) => $options.selectItem(index),
|
|
186
|
+
onKeydown: withModifiers($options.onKeyDown, ["prevent"])
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent($props.itemComponent), {
|
|
189
|
+
item
|
|
190
|
+
}, null, 8, ["item"]))]),
|
|
191
|
+
_: 2
|
|
192
|
+
}, 1032, ["class", "onClick", "onKeydown"]);
|
|
193
|
+
}), 128))], 512), [[vShow, $props.items.length]])]);
|
|
188
194
|
}
|
|
189
195
|
const SuggestionList = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
|
|
190
196
|
const _sfc_main$7 = {
|
|
@@ -207,13 +213,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
213
|
direction: "row",
|
|
208
214
|
gap: "400"
|
|
209
215
|
}, {
|
|
210
|
-
default: withCtx(() => [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}, null, 8, ["code"]),
|
|
215
|
-
createTextVNode(" " + toDisplayString($props.item.code), 1)
|
|
216
|
-
]),
|
|
216
|
+
default: withCtx(() => [createVNode(_component_dt_emoji, {
|
|
217
|
+
size: "200",
|
|
218
|
+
code: $props.item.code
|
|
219
|
+
}, null, 8, ["code"]), createTextVNode(" " + toDisplayString($props.item.code), 1)]),
|
|
217
220
|
_: 1
|
|
218
221
|
});
|
|
219
222
|
}
|
|
@@ -221,7 +224,9 @@ const EmojiSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sf
|
|
|
221
224
|
const hideOnEsc = {
|
|
222
225
|
name: "hideOnEsc",
|
|
223
226
|
defaultValue: true,
|
|
224
|
-
fn({
|
|
227
|
+
fn({
|
|
228
|
+
hide
|
|
229
|
+
}) {
|
|
225
230
|
function onKeyDown(event) {
|
|
226
231
|
if (event.keyCode === 27) {
|
|
227
232
|
hide();
|
|
@@ -238,7 +243,9 @@ const hideOnEsc = {
|
|
|
238
243
|
}
|
|
239
244
|
};
|
|
240
245
|
const suggestionOptions = {
|
|
241
|
-
items: ({
|
|
246
|
+
items: ({
|
|
247
|
+
query
|
|
248
|
+
}) => {
|
|
242
249
|
if (query.length < 2) {
|
|
243
250
|
return [];
|
|
244
251
|
}
|
|
@@ -250,26 +257,29 @@ const suggestionOptions = {
|
|
|
250
257
|
return false;
|
|
251
258
|
});
|
|
252
259
|
return filteredEmoji.map((item) => {
|
|
253
|
-
return {
|
|
260
|
+
return {
|
|
261
|
+
code: item.shortname
|
|
262
|
+
};
|
|
254
263
|
});
|
|
255
264
|
},
|
|
256
|
-
command: ({
|
|
265
|
+
command: ({
|
|
266
|
+
editor,
|
|
267
|
+
range,
|
|
268
|
+
props
|
|
269
|
+
}) => {
|
|
257
270
|
var _a, _b;
|
|
258
271
|
const nodeAfter = editor.view.state.selection.$to.nodeAfter;
|
|
259
272
|
const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");
|
|
260
273
|
if (overrideSpace) {
|
|
261
274
|
range.to += 1;
|
|
262
275
|
}
|
|
263
|
-
editor.chain().focus().insertContentAt(range, [
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
text: " "
|
|
271
|
-
}
|
|
272
|
-
]).run();
|
|
276
|
+
editor.chain().focus().insertContentAt(range, [{
|
|
277
|
+
type: "emoji",
|
|
278
|
+
attrs: props
|
|
279
|
+
}, {
|
|
280
|
+
type: "text",
|
|
281
|
+
text: " "
|
|
282
|
+
}]).run();
|
|
273
283
|
(_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
|
|
274
284
|
},
|
|
275
285
|
render: () => {
|
|
@@ -382,17 +392,19 @@ const Emoji = Node.create({
|
|
|
382
392
|
};
|
|
383
393
|
},
|
|
384
394
|
parseHTML() {
|
|
385
|
-
return [
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}
|
|
389
|
-
];
|
|
395
|
+
return [{
|
|
396
|
+
tag: "emoji-component"
|
|
397
|
+
}];
|
|
390
398
|
},
|
|
391
|
-
renderText({
|
|
399
|
+
renderText({
|
|
400
|
+
node
|
|
401
|
+
}) {
|
|
392
402
|
const unicodeEmoji = stringToUnicode(codeToEmojiData(node.attrs.code).unicode_output);
|
|
393
403
|
return unicodeEmoji;
|
|
394
404
|
},
|
|
395
|
-
renderHTML({
|
|
405
|
+
renderHTML({
|
|
406
|
+
HTMLAttributes
|
|
407
|
+
}) {
|
|
396
408
|
return ["emoji-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
397
409
|
},
|
|
398
410
|
addInputRules() {
|
|
@@ -430,35 +442,30 @@ const Emoji = Node.create({
|
|
|
430
442
|
];
|
|
431
443
|
},
|
|
432
444
|
addPasteRules() {
|
|
433
|
-
return [
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
})
|
|
452
|
-
];
|
|
445
|
+
return [nodePasteRule({
|
|
446
|
+
find: shortCodePasteMatch,
|
|
447
|
+
type: this.type,
|
|
448
|
+
getAttributes(attrs) {
|
|
449
|
+
return {
|
|
450
|
+
code: attrs[0]
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
}), nodePasteRule({
|
|
454
|
+
find: emojiRegex,
|
|
455
|
+
type: this.type,
|
|
456
|
+
getAttributes(attrs) {
|
|
457
|
+
return {
|
|
458
|
+
code: attrs[0]
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
})];
|
|
453
462
|
},
|
|
454
463
|
addProseMirrorPlugins() {
|
|
455
|
-
return [
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
})
|
|
461
|
-
];
|
|
464
|
+
return [Suggestion({
|
|
465
|
+
editor: this.editor,
|
|
466
|
+
...this.options.suggestion,
|
|
467
|
+
...suggestionOptions
|
|
468
|
+
})];
|
|
462
469
|
}
|
|
463
470
|
});
|
|
464
471
|
function getRegexMatches(text, regex, validator = () => true) {
|
|
@@ -476,13 +483,7 @@ function hasValidPrefix(text, match) {
|
|
|
476
483
|
return !["#", "@"].includes(text.charAt(match.index)) && !["#", "@"].includes(text.charAt(match.index - 1));
|
|
477
484
|
}
|
|
478
485
|
function trimEndPunctiation(string) {
|
|
479
|
-
const endPunctuationRegex = new RegExp(
|
|
480
|
-
"(?:" + [
|
|
481
|
-
`[!?.,:;'"]`,
|
|
482
|
-
"(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
|
|
483
|
-
].join("|"),
|
|
484
|
-
"g"
|
|
485
|
-
);
|
|
486
|
+
const endPunctuationRegex = new RegExp("(?:" + [`[!?.,:;'"]`, "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
486
487
|
return string.replace(endPunctuationRegex, "");
|
|
487
488
|
}
|
|
488
489
|
function getWordAt(text, index) {
|
|
@@ -533,18 +534,8 @@ function addMarks(text, pos, from, to, tr, type) {
|
|
|
533
534
|
let rangeFrom = from - pos - 1;
|
|
534
535
|
rangeFrom = rangeFrom < 0 ? 0 : rangeFrom;
|
|
535
536
|
const rangeTo = to - pos;
|
|
536
|
-
const firstWordInRange = getWordAtUntil(
|
|
537
|
-
|
|
538
|
-
rangeFrom,
|
|
539
|
-
"left",
|
|
540
|
-
partialPhoneNumberRegex
|
|
541
|
-
);
|
|
542
|
-
const lastWordInRange = getWordAtUntil(
|
|
543
|
-
text,
|
|
544
|
-
rangeTo,
|
|
545
|
-
"right",
|
|
546
|
-
partialPhoneNumberRegex
|
|
547
|
-
);
|
|
537
|
+
const firstWordInRange = getWordAtUntil(text, rangeFrom, "left", partialPhoneNumberRegex);
|
|
538
|
+
const lastWordInRange = getWordAtUntil(text, rangeTo, "right", partialPhoneNumberRegex);
|
|
548
539
|
const wordsInRange = text.slice(firstWordInRange.from, lastWordInRange.to);
|
|
549
540
|
const matches = getRegexMatches(wordsInRange, linkRegex, hasValidPrefix);
|
|
550
541
|
matches.forEach((match) => {
|
|
@@ -563,33 +554,29 @@ function autolink(options) {
|
|
|
563
554
|
if (hasInitialized && !contentChanged) {
|
|
564
555
|
return;
|
|
565
556
|
}
|
|
566
|
-
const {
|
|
567
|
-
|
|
557
|
+
const {
|
|
558
|
+
tr
|
|
559
|
+
} = newState;
|
|
560
|
+
const {
|
|
561
|
+
textContent
|
|
562
|
+
} = newState.doc;
|
|
568
563
|
if (!hasInitialized) {
|
|
569
564
|
addMarks(textContent, 0, 0, textContent.length, tr, options.type);
|
|
570
565
|
}
|
|
571
566
|
hasInitialized = true;
|
|
572
|
-
const transform = combineTransactionSteps(
|
|
573
|
-
oldState.doc,
|
|
574
|
-
[...transactions]
|
|
575
|
-
);
|
|
567
|
+
const transform = combineTransactionSteps(oldState.doc, [...transactions]);
|
|
576
568
|
const changes = getChangedRanges(transform);
|
|
577
|
-
changes.forEach(({
|
|
569
|
+
changes.forEach(({
|
|
570
|
+
oldRange,
|
|
571
|
+
newRange
|
|
572
|
+
}) => {
|
|
578
573
|
removeMarks(newRange, newState.doc, tr, options.type);
|
|
579
|
-
const paragraphs = findChildrenInRange(
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
)
|
|
584
|
-
|
|
585
|
-
addMarks(
|
|
586
|
-
node.textContent,
|
|
587
|
-
pos,
|
|
588
|
-
oldRange.from,
|
|
589
|
-
newRange.to,
|
|
590
|
-
tr,
|
|
591
|
-
options.type
|
|
592
|
-
);
|
|
574
|
+
const paragraphs = findChildrenInRange(newState.doc, newRange, (node) => node.isTextblock);
|
|
575
|
+
paragraphs.forEach(({
|
|
576
|
+
node,
|
|
577
|
+
pos
|
|
578
|
+
}) => {
|
|
579
|
+
addMarks(node.textContent, pos, oldRange.from, newRange.to, tr, options.type);
|
|
593
580
|
});
|
|
594
581
|
});
|
|
595
582
|
return tr;
|
|
@@ -602,24 +589,20 @@ const defaultAttributes = {
|
|
|
602
589
|
};
|
|
603
590
|
const CustomLink = Mark.create({
|
|
604
591
|
name: "CustomLink",
|
|
605
|
-
renderHTML({
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
this.options.HTMLAttributes,
|
|
610
|
-
HTMLAttributes,
|
|
611
|
-
defaultAttributes
|
|
612
|
-
),
|
|
613
|
-
0
|
|
614
|
-
];
|
|
592
|
+
renderHTML({
|
|
593
|
+
HTMLAttributes
|
|
594
|
+
}) {
|
|
595
|
+
return ["a", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, defaultAttributes)];
|
|
615
596
|
},
|
|
616
|
-
renderText({
|
|
597
|
+
renderText({
|
|
598
|
+
node
|
|
599
|
+
}) {
|
|
617
600
|
return node.attrs.text;
|
|
618
601
|
},
|
|
619
602
|
addProseMirrorPlugins() {
|
|
620
|
-
return [
|
|
621
|
-
|
|
622
|
-
];
|
|
603
|
+
return [autolink({
|
|
604
|
+
type: this.type
|
|
605
|
+
})];
|
|
623
606
|
}
|
|
624
607
|
});
|
|
625
608
|
const _sfc_main$6 = {
|
|
@@ -638,15 +621,15 @@ const _sfc_main$6 = {
|
|
|
638
621
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
639
622
|
const _component_dt_link = resolveComponent("dt-link");
|
|
640
623
|
const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
|
|
641
|
-
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
]),
|
|
624
|
+
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
625
|
+
class: "d-d-inline-block"
|
|
626
|
+
}, {
|
|
627
|
+
default: withCtx(() => [createVNode(_component_dt_link, {
|
|
628
|
+
kind: "mention"
|
|
629
|
+
}, {
|
|
630
|
+
default: withCtx(() => [createTextVNode(toDisplayString($options.text), 1)]),
|
|
631
|
+
_: 1
|
|
632
|
+
})]),
|
|
650
633
|
_: 1
|
|
651
634
|
});
|
|
652
635
|
}
|
|
@@ -656,11 +639,9 @@ const MentionPlugin = Mention.extend({
|
|
|
656
639
|
return VueNodeViewRenderer(MentionComponent);
|
|
657
640
|
},
|
|
658
641
|
parseHTML() {
|
|
659
|
-
return [
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
663
|
-
];
|
|
642
|
+
return [{
|
|
643
|
+
tag: "mention-component"
|
|
644
|
+
}];
|
|
664
645
|
},
|
|
665
646
|
addAttributes() {
|
|
666
647
|
return {
|
|
@@ -675,11 +656,15 @@ const MentionPlugin = Mention.extend({
|
|
|
675
656
|
}
|
|
676
657
|
};
|
|
677
658
|
},
|
|
678
|
-
renderText({
|
|
659
|
+
renderText({
|
|
660
|
+
node
|
|
661
|
+
}) {
|
|
679
662
|
return `@${node.attrs.id}`;
|
|
680
663
|
},
|
|
681
|
-
renderHTML({
|
|
682
|
-
|
|
664
|
+
renderHTML({
|
|
665
|
+
HTMLAttributes
|
|
666
|
+
}) {
|
|
667
|
+
return ["mention-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
683
668
|
}
|
|
684
669
|
}).configure({
|
|
685
670
|
suggestion: {
|
|
@@ -703,15 +688,15 @@ const _sfc_main$5 = {
|
|
|
703
688
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
704
689
|
const _component_dt_link = resolveComponent("dt-link");
|
|
705
690
|
const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
|
|
706
|
-
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
]),
|
|
691
|
+
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
692
|
+
class: "d-d-inline-block"
|
|
693
|
+
}, {
|
|
694
|
+
default: withCtx(() => [createVNode(_component_dt_link, {
|
|
695
|
+
kind: "mention"
|
|
696
|
+
}, {
|
|
697
|
+
default: withCtx(() => [createTextVNode(toDisplayString($options.text), 1)]),
|
|
698
|
+
_: 1
|
|
699
|
+
})]),
|
|
715
700
|
_: 1
|
|
716
701
|
});
|
|
717
702
|
}
|
|
@@ -722,11 +707,9 @@ const ChannelPlugin = Mention.extend({
|
|
|
722
707
|
return VueNodeViewRenderer(ChannelComponent);
|
|
723
708
|
},
|
|
724
709
|
parseHTML() {
|
|
725
|
-
return [
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
}
|
|
729
|
-
];
|
|
710
|
+
return [{
|
|
711
|
+
tag: "channel-component"
|
|
712
|
+
}];
|
|
730
713
|
},
|
|
731
714
|
addAttributes() {
|
|
732
715
|
return {
|
|
@@ -741,11 +724,15 @@ const ChannelPlugin = Mention.extend({
|
|
|
741
724
|
}
|
|
742
725
|
};
|
|
743
726
|
},
|
|
744
|
-
renderText({
|
|
727
|
+
renderText({
|
|
728
|
+
node
|
|
729
|
+
}) {
|
|
745
730
|
return `#${node.attrs.id}`;
|
|
746
731
|
},
|
|
747
|
-
renderHTML({
|
|
748
|
-
|
|
732
|
+
renderHTML({
|
|
733
|
+
HTMLAttributes
|
|
734
|
+
}) {
|
|
735
|
+
return ["channel-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
749
736
|
}
|
|
750
737
|
}).configure({
|
|
751
738
|
suggestion: {
|
|
@@ -771,10 +758,10 @@ const _sfc_main$4 = {
|
|
|
771
758
|
};
|
|
772
759
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
773
760
|
const _component_node_view_wrapper = resolveComponent("node-view-wrapper");
|
|
774
|
-
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
]),
|
|
761
|
+
return openBlock(), createBlock(_component_node_view_wrapper, {
|
|
762
|
+
class: "d-d-inline-block"
|
|
763
|
+
}, {
|
|
764
|
+
default: withCtx(() => [createTextVNode(toDisplayString($options.text), 1)]),
|
|
778
765
|
_: 1
|
|
779
766
|
});
|
|
780
767
|
}
|
|
@@ -800,11 +787,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
800
787
|
return VueNodeViewRenderer(SlashCommandComponent);
|
|
801
788
|
},
|
|
802
789
|
parseHTML() {
|
|
803
|
-
return [
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
807
|
-
];
|
|
790
|
+
return [{
|
|
791
|
+
tag: "command-component"
|
|
792
|
+
}];
|
|
808
793
|
},
|
|
809
794
|
addAttributes() {
|
|
810
795
|
return {
|
|
@@ -819,39 +804,47 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
819
804
|
}
|
|
820
805
|
};
|
|
821
806
|
},
|
|
822
|
-
renderText({
|
|
807
|
+
renderText({
|
|
808
|
+
node
|
|
809
|
+
}) {
|
|
823
810
|
return `/${node.attrs.command}`;
|
|
824
811
|
},
|
|
825
|
-
renderHTML({
|
|
812
|
+
renderHTML({
|
|
813
|
+
HTMLAttributes
|
|
814
|
+
}) {
|
|
826
815
|
return ["command-component", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
827
816
|
},
|
|
828
817
|
addInputRules() {
|
|
829
818
|
var _a;
|
|
830
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
819
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
820
|
+
query: ""
|
|
821
|
+
}).map((suggestion) => suggestion.command);
|
|
831
822
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) $`);
|
|
832
|
-
return [
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
];
|
|
823
|
+
return [nodeInputRule({
|
|
824
|
+
find: slashCommandRegex,
|
|
825
|
+
type: this.type,
|
|
826
|
+
getAttributes(attrs) {
|
|
827
|
+
return {
|
|
828
|
+
command: attrs[2]
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
})];
|
|
841
832
|
},
|
|
842
833
|
addPasteRules() {
|
|
843
834
|
var _a;
|
|
844
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
835
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
836
|
+
query: ""
|
|
837
|
+
}).map((suggestion) => suggestion.command);
|
|
845
838
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) ?$`, "g");
|
|
846
|
-
return [
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
];
|
|
839
|
+
return [nodePasteRule({
|
|
840
|
+
find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
|
|
841
|
+
type: this.type,
|
|
842
|
+
getAttributes(attrs) {
|
|
843
|
+
return {
|
|
844
|
+
command: attrs[0].trim()
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
})];
|
|
855
848
|
}
|
|
856
849
|
}).configure({
|
|
857
850
|
suggestion: {
|
|
@@ -859,24 +852,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
859
852
|
pluginKey: new PluginKey("slashCommandSuggestion")
|
|
860
853
|
}
|
|
861
854
|
});
|
|
862
|
-
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = [
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
"html"
|
|
866
|
-
];
|
|
867
|
-
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = [
|
|
868
|
-
"start",
|
|
869
|
-
"end",
|
|
870
|
-
"all"
|
|
871
|
-
];
|
|
872
|
-
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = [
|
|
873
|
-
"https",
|
|
874
|
-
"http",
|
|
875
|
-
"ftp",
|
|
876
|
-
"ftps",
|
|
877
|
-
"sftp",
|
|
878
|
-
"mailto"
|
|
879
|
-
];
|
|
855
|
+
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = ["text", "json", "html"];
|
|
856
|
+
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = ["start", "end", "all"];
|
|
857
|
+
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = ["https", "http", "ftp", "ftps", "sftp", "mailto"];
|
|
880
858
|
const _sfc_main$3 = {
|
|
881
859
|
name: "MentionSuggestion",
|
|
882
860
|
components: {
|
|
@@ -898,6 +876,9 @@ const _sfc_main$3 = {
|
|
|
898
876
|
}
|
|
899
877
|
}
|
|
900
878
|
};
|
|
879
|
+
const _hoisted_1$1 = {
|
|
880
|
+
class: "mention-suggestion-name"
|
|
881
|
+
};
|
|
901
882
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
902
883
|
const _component_dt_avatar = resolveComponent("dt-avatar");
|
|
903
884
|
const _component_dt_stack = resolveComponent("dt-stack");
|
|
@@ -905,19 +886,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
905
886
|
direction: "row",
|
|
906
887
|
gap: "400"
|
|
907
888
|
}, {
|
|
908
|
-
default: withCtx(() => [
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}, null, 8, ["full-name", "image-src", "image-alt"]),
|
|
915
|
-
createTextVNode(" " + toDisplayString($options.name), 1)
|
|
916
|
-
]),
|
|
889
|
+
default: withCtx(() => [createVNode(_component_dt_avatar, {
|
|
890
|
+
"full-name": $options.name,
|
|
891
|
+
"image-src": $options.avatarSrc,
|
|
892
|
+
"image-alt": $options.name,
|
|
893
|
+
size: "xs"
|
|
894
|
+
}, null, 8, ["full-name", "image-src", "image-alt"]), createElementVNode("span", _hoisted_1$1, toDisplayString($options.name), 1)]),
|
|
917
895
|
_: 1
|
|
918
896
|
});
|
|
919
897
|
}
|
|
920
|
-
const MentionSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
898
|
+
const MentionSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-65bcbd51"]]);
|
|
921
899
|
const mentionSuggestion = {
|
|
922
900
|
// This function comes from the user and passed to the editor directly.
|
|
923
901
|
// This will also activate the mention plugin on the editor
|
|
@@ -1017,16 +995,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1017
995
|
direction: "row",
|
|
1018
996
|
gap: "400"
|
|
1019
997
|
}, {
|
|
1020
|
-
default: withCtx(() => [
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
})),
|
|
1028
|
-
createElementVNode("span", null, toDisplayString($options.name), 1)
|
|
1029
|
-
]),
|
|
998
|
+
default: withCtx(() => [!$props.item.locked ? (openBlock(), createBlock(_component_dt_icon_hash, {
|
|
999
|
+
key: 0,
|
|
1000
|
+
size: "300"
|
|
1001
|
+
})) : (openBlock(), createBlock(_component_dt_icon_lock, {
|
|
1002
|
+
key: 1,
|
|
1003
|
+
size: "300"
|
|
1004
|
+
})), createElementVNode("span", null, toDisplayString($options.name), 1)]),
|
|
1030
1005
|
_: 1
|
|
1031
1006
|
});
|
|
1032
1007
|
}
|
|
@@ -1123,17 +1098,17 @@ const _sfc_main$1 = {
|
|
|
1123
1098
|
}
|
|
1124
1099
|
}
|
|
1125
1100
|
};
|
|
1126
|
-
const _hoisted_1 = {
|
|
1127
|
-
|
|
1128
|
-
|
|
1101
|
+
const _hoisted_1 = {
|
|
1102
|
+
class: "d-body--md-compact"
|
|
1103
|
+
};
|
|
1104
|
+
const _hoisted_2 = {
|
|
1105
|
+
key: 0
|
|
1106
|
+
};
|
|
1107
|
+
const _hoisted_3 = {
|
|
1108
|
+
class: "d-body--sm d-fc-tertiary"
|
|
1109
|
+
};
|
|
1129
1110
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1130
|
-
return openBlock(), createElementBlock("div", null, [
|
|
1131
|
-
createElementVNode("div", _hoisted_1, [
|
|
1132
|
-
createElementVNode("span", null, "/" + toDisplayString($options.command), 1),
|
|
1133
|
-
$options.parametersExample ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString($options.parametersExample), 1)) : createCommentVNode("", true)
|
|
1134
|
-
]),
|
|
1135
|
-
createElementVNode("div", _hoisted_3, toDisplayString($options.description), 1)
|
|
1136
|
-
]);
|
|
1111
|
+
return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [createElementVNode("span", null, "/" + toDisplayString($options.command), 1), $options.parametersExample ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString($options.parametersExample), 1)) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_3, toDisplayString($options.description), 1)]);
|
|
1137
1112
|
}
|
|
1138
1113
|
const SlashCommandSuggestion = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
1139
1114
|
const slashCommandSuggestion = {
|
|
@@ -1239,7 +1214,8 @@ const _sfc_main = {
|
|
|
1239
1214
|
default: false
|
|
1240
1215
|
},
|
|
1241
1216
|
/**
|
|
1242
|
-
* Whether the input allows for line breaks to be introduced in the text.
|
|
1217
|
+
* Whether the input allows for line breaks to be introduced in the text by pressing enter. If this is disabled,
|
|
1218
|
+
* line breaks can still be entered by pressing shift+enter.
|
|
1243
1219
|
*/
|
|
1244
1220
|
allowLineBreaks: {
|
|
1245
1221
|
type: Boolean,
|
|
@@ -1484,7 +1460,9 @@ const _sfc_main = {
|
|
|
1484
1460
|
extensions() {
|
|
1485
1461
|
const extensions = [Document, Paragraph, Text, History];
|
|
1486
1462
|
if (this.link) {
|
|
1487
|
-
extensions.push(TipTapLink.extend({
|
|
1463
|
+
extensions.push(TipTapLink.extend({
|
|
1464
|
+
inclusive: false
|
|
1465
|
+
}).configure({
|
|
1488
1466
|
HTMLAttributes: {
|
|
1489
1467
|
class: "d-link d-wb-break-all"
|
|
1490
1468
|
},
|
|
@@ -1516,48 +1494,55 @@ const _sfc_main = {
|
|
|
1516
1494
|
extensions.push(Underline);
|
|
1517
1495
|
}
|
|
1518
1496
|
if (this.placeholder) {
|
|
1519
|
-
extensions.push(
|
|
1520
|
-
|
|
1521
|
-
);
|
|
1497
|
+
extensions.push(Placeholder.configure({
|
|
1498
|
+
placeholder: this.placeholder
|
|
1499
|
+
}));
|
|
1522
1500
|
}
|
|
1523
1501
|
if (!this.allowLineBreaks) {
|
|
1524
1502
|
const self = this;
|
|
1525
|
-
extensions.push(
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
() => commands.splitBlock()
|
|
1540
|
-
]);
|
|
1541
|
-
return true;
|
|
1542
|
-
}
|
|
1543
|
-
};
|
|
1544
|
-
}
|
|
1545
|
-
})
|
|
1546
|
-
);
|
|
1503
|
+
extensions.push(HardBreak.extend({
|
|
1504
|
+
addKeyboardShortcuts() {
|
|
1505
|
+
return {
|
|
1506
|
+
Enter: () => {
|
|
1507
|
+
self.$emit("enter");
|
|
1508
|
+
return true;
|
|
1509
|
+
},
|
|
1510
|
+
"Shift-Enter": () => {
|
|
1511
|
+
this.editor.commands.setHardBreak();
|
|
1512
|
+
return true;
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
}
|
|
1516
|
+
}));
|
|
1547
1517
|
} else {
|
|
1548
1518
|
extensions.push(HardBreak);
|
|
1549
1519
|
}
|
|
1550
1520
|
if (this.mentionSuggestion) {
|
|
1551
|
-
const suggestionObject = {
|
|
1552
|
-
|
|
1521
|
+
const suggestionObject = {
|
|
1522
|
+
...this.mentionSuggestion,
|
|
1523
|
+
...mentionSuggestion
|
|
1524
|
+
};
|
|
1525
|
+
extensions.push(MentionPlugin.configure({
|
|
1526
|
+
suggestion: suggestionObject
|
|
1527
|
+
}));
|
|
1553
1528
|
}
|
|
1554
1529
|
if (this.channelSuggestion) {
|
|
1555
|
-
const suggestionObject = {
|
|
1556
|
-
|
|
1530
|
+
const suggestionObject = {
|
|
1531
|
+
...this.channelSuggestion,
|
|
1532
|
+
...channelSuggestion
|
|
1533
|
+
};
|
|
1534
|
+
extensions.push(ChannelPlugin.configure({
|
|
1535
|
+
suggestion: suggestionObject
|
|
1536
|
+
}));
|
|
1557
1537
|
}
|
|
1558
1538
|
if (this.slashCommandSuggestion) {
|
|
1559
|
-
const suggestionObject = {
|
|
1560
|
-
|
|
1539
|
+
const suggestionObject = {
|
|
1540
|
+
...this.slashCommandSuggestion,
|
|
1541
|
+
...slashCommandSuggestion
|
|
1542
|
+
};
|
|
1543
|
+
extensions.push(SlashCommandPlugin.configure({
|
|
1544
|
+
suggestion: suggestionObject
|
|
1545
|
+
}));
|
|
1561
1546
|
}
|
|
1562
1547
|
extensions.push(Emoji);
|
|
1563
1548
|
extensions.push(TextAlign.configure({
|
|
@@ -1596,13 +1581,19 @@ const _sfc_main = {
|
|
|
1596
1581
|
watch: {
|
|
1597
1582
|
editable(isEditable) {
|
|
1598
1583
|
this.editor.setEditable(isEditable);
|
|
1599
|
-
this.updateEditorAttributes({
|
|
1584
|
+
this.updateEditorAttributes({
|
|
1585
|
+
"aria-readonly": !isEditable
|
|
1586
|
+
});
|
|
1600
1587
|
},
|
|
1601
1588
|
inputClass(newClass) {
|
|
1602
|
-
this.updateEditorAttributes({
|
|
1589
|
+
this.updateEditorAttributes({
|
|
1590
|
+
class: newClass
|
|
1591
|
+
});
|
|
1603
1592
|
},
|
|
1604
1593
|
inputAriaLabel(newLabel) {
|
|
1605
|
-
this.updateEditorAttributes({
|
|
1594
|
+
this.updateEditorAttributes({
|
|
1595
|
+
"aria-label": newLabel
|
|
1596
|
+
});
|
|
1606
1597
|
},
|
|
1607
1598
|
extensions() {
|
|
1608
1599
|
this.destroyEditor();
|
|
@@ -1660,10 +1651,14 @@ const _sfc_main = {
|
|
|
1660
1651
|
this.$emit("input", value);
|
|
1661
1652
|
this.$emit("update:modelValue", value);
|
|
1662
1653
|
});
|
|
1663
|
-
this.editor.on("focus", ({
|
|
1654
|
+
this.editor.on("focus", ({
|
|
1655
|
+
event
|
|
1656
|
+
}) => {
|
|
1664
1657
|
this.$emit("focus", event);
|
|
1665
1658
|
});
|
|
1666
|
-
this.editor.on("blur", ({
|
|
1659
|
+
this.editor.on("blur", ({
|
|
1660
|
+
event
|
|
1661
|
+
}) => {
|
|
1667
1662
|
this.$emit("blur", event);
|
|
1668
1663
|
});
|
|
1669
1664
|
},
|
|
@@ -1686,7 +1681,11 @@ const _sfc_main = {
|
|
|
1686
1681
|
return (_a = extension.configure) == null ? void 0 : _a.call(extension, options);
|
|
1687
1682
|
},
|
|
1688
1683
|
updateEditorAttributes(attributes) {
|
|
1689
|
-
this.editor.setOptions({
|
|
1684
|
+
this.editor.setOptions({
|
|
1685
|
+
editorProps: {
|
|
1686
|
+
attributes
|
|
1687
|
+
}
|
|
1688
|
+
});
|
|
1690
1689
|
},
|
|
1691
1690
|
focusEditor() {
|
|
1692
1691
|
this.editor.commands.focus();
|