@dialpad/dialtone-vue 3.145.1 → 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 +227 -264
- package/dist/lib/message-input.cjs.map +1 -1
- package/dist/lib/message-input.js +227 -264
- 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 +292 -288
- package/dist/lib/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor.js +292 -288
- 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/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/rich_text_editor.vue.d.ts +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/package.json +3 -2
- package/dist/chunks/icon_constants-Dy4MEUJL.js.map +0 -1
- package/dist/chunks/icon_constants-QYpmdE0R.js.map +0 -1
|
@@ -22,7 +22,7 @@ const core = require("@tiptap/core");
|
|
|
22
22
|
const vue = require("vue");
|
|
23
23
|
const _pluginVue_exportHelper = require("../chunks/_plugin-vue_export-helper-fhnQq0tA.js");
|
|
24
24
|
const lib_emoji = require("./emoji.cjs");
|
|
25
|
-
const common_emoji = require("../chunks/index-
|
|
25
|
+
const common_emoji = require("../chunks/index-fEp0B-5Z.js");
|
|
26
26
|
const state = require("@tiptap/pm/state");
|
|
27
27
|
const Suggestion = require("@tiptap/suggestion");
|
|
28
28
|
const dialtoneEmojis = require("@dialpad/dialtone-emojis");
|
|
@@ -36,7 +36,7 @@ const lib_avatar = require("./avatar.cjs");
|
|
|
36
36
|
const DtIconHash = require("@dialpad/dialtone-icons/vue3/hash");
|
|
37
37
|
const DtIconLock = require("@dialpad/dialtone-icons/vue3/lock");
|
|
38
38
|
require("./skeleton.cjs");
|
|
39
|
-
require("../chunks/icon_constants-
|
|
39
|
+
require("../chunks/icon_constants-bvhFNOPu.js");
|
|
40
40
|
require("@dialpad/dialtone-icons/icons.json");
|
|
41
41
|
require("../chunks/list_item_constants-EiqkqZvP.js");
|
|
42
42
|
require("./item-layout.cjs");
|
|
@@ -57,13 +57,13 @@ const _sfc_main$9 = {
|
|
|
57
57
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
58
|
const _component_dt_emoji = vue.resolveComponent("dt-emoji");
|
|
59
59
|
const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
|
|
60
|
-
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
]),
|
|
60
|
+
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
61
|
+
class: "d-d-inline-block d-va-bottom d-lh0"
|
|
62
|
+
}, {
|
|
63
|
+
default: vue.withCtx(() => [vue.createVNode(_component_dt_emoji, {
|
|
64
|
+
size: "500",
|
|
65
|
+
code: _ctx.node.attrs.code
|
|
66
|
+
}, null, 8, ["code"])]),
|
|
67
67
|
_: 1
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -102,7 +102,9 @@ const _sfc_main$8 = {
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
methods: {
|
|
105
|
-
onKeyDown({
|
|
105
|
+
onKeyDown({
|
|
106
|
+
event
|
|
107
|
+
}) {
|
|
106
108
|
if (event.key === "ArrowUp") {
|
|
107
109
|
this.upHandler();
|
|
108
110
|
return true;
|
|
@@ -145,48 +147,52 @@ const _sfc_main$8 = {
|
|
|
145
147
|
this.command(item);
|
|
146
148
|
return;
|
|
147
149
|
case "mention":
|
|
148
|
-
this.command({
|
|
150
|
+
this.command({
|
|
151
|
+
name: item.name,
|
|
152
|
+
id: item.id,
|
|
153
|
+
avatarSrc: item.avatarSrc
|
|
154
|
+
});
|
|
149
155
|
break;
|
|
150
156
|
case "channel":
|
|
151
|
-
this.command({
|
|
157
|
+
this.command({
|
|
158
|
+
name: item.name,
|
|
159
|
+
id: item.id
|
|
160
|
+
});
|
|
152
161
|
break;
|
|
153
162
|
case "slash-command":
|
|
154
|
-
this.command({
|
|
163
|
+
this.command({
|
|
164
|
+
command: item.command
|
|
165
|
+
});
|
|
155
166
|
break;
|
|
156
167
|
}
|
|
157
168
|
}
|
|
158
169
|
}
|
|
159
170
|
};
|
|
160
|
-
const _hoisted_1$2 = {
|
|
171
|
+
const _hoisted_1$2 = {
|
|
172
|
+
class: "d-popover__dialog dt-suggestion-list__container"
|
|
173
|
+
};
|
|
161
174
|
const _hoisted_2$1 = {
|
|
162
175
|
ref: "suggestionList",
|
|
163
176
|
class: "dt-suggestion-list"
|
|
164
177
|
};
|
|
165
178
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
166
179
|
const _component_dt_list_item = vue.resolveComponent("dt-list-item");
|
|
167
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
|
|
168
|
-
vue.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
_: 2
|
|
184
|
-
}, 1032, ["class", "onClick", "onKeydown"]);
|
|
185
|
-
}), 128))
|
|
186
|
-
], 512), [
|
|
187
|
-
[vue.vShow, $props.items.length]
|
|
188
|
-
])
|
|
189
|
-
]);
|
|
180
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [vue.withDirectives(vue.createElementVNode("ul", _hoisted_2$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.items, (item, index) => {
|
|
181
|
+
return vue.openBlock(), vue.createBlock(_component_dt_list_item, {
|
|
182
|
+
key: item.id,
|
|
183
|
+
class: vue.normalizeClass(["dt-suggestion-list--item", {
|
|
184
|
+
"dt-list-item--highlighted": index === $data.selectedIndex
|
|
185
|
+
}]),
|
|
186
|
+
"navigation-type": "arrow-keys",
|
|
187
|
+
onClick: ($event) => $options.selectItem(index),
|
|
188
|
+
onKeydown: vue.withModifiers($options.onKeyDown, ["prevent"])
|
|
189
|
+
}, {
|
|
190
|
+
default: vue.withCtx(() => [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.itemComponent), {
|
|
191
|
+
item
|
|
192
|
+
}, null, 8, ["item"]))]),
|
|
193
|
+
_: 2
|
|
194
|
+
}, 1032, ["class", "onClick", "onKeydown"]);
|
|
195
|
+
}), 128))], 512), [[vue.vShow, $props.items.length]])]);
|
|
190
196
|
}
|
|
191
197
|
const SuggestionList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
|
|
192
198
|
const _sfc_main$7 = {
|
|
@@ -209,13 +215,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
215
|
direction: "row",
|
|
210
216
|
gap: "400"
|
|
211
217
|
}, {
|
|
212
|
-
default: vue.withCtx(() => [
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}, null, 8, ["code"]),
|
|
217
|
-
vue.createTextVNode(" " + vue.toDisplayString($props.item.code), 1)
|
|
218
|
-
]),
|
|
218
|
+
default: vue.withCtx(() => [vue.createVNode(_component_dt_emoji, {
|
|
219
|
+
size: "200",
|
|
220
|
+
code: $props.item.code
|
|
221
|
+
}, null, 8, ["code"]), vue.createTextVNode(" " + vue.toDisplayString($props.item.code), 1)]),
|
|
219
222
|
_: 1
|
|
220
223
|
});
|
|
221
224
|
}
|
|
@@ -223,7 +226,9 @@ const EmojiSuggestion = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc
|
|
|
223
226
|
const hideOnEsc = {
|
|
224
227
|
name: "hideOnEsc",
|
|
225
228
|
defaultValue: true,
|
|
226
|
-
fn({
|
|
229
|
+
fn({
|
|
230
|
+
hide
|
|
231
|
+
}) {
|
|
227
232
|
function onKeyDown(event) {
|
|
228
233
|
if (event.keyCode === 27) {
|
|
229
234
|
hide();
|
|
@@ -240,7 +245,9 @@ const hideOnEsc = {
|
|
|
240
245
|
}
|
|
241
246
|
};
|
|
242
247
|
const suggestionOptions = {
|
|
243
|
-
items: ({
|
|
248
|
+
items: ({
|
|
249
|
+
query
|
|
250
|
+
}) => {
|
|
244
251
|
if (query.length < 2) {
|
|
245
252
|
return [];
|
|
246
253
|
}
|
|
@@ -252,26 +259,29 @@ const suggestionOptions = {
|
|
|
252
259
|
return false;
|
|
253
260
|
});
|
|
254
261
|
return filteredEmoji.map((item) => {
|
|
255
|
-
return {
|
|
262
|
+
return {
|
|
263
|
+
code: item.shortname
|
|
264
|
+
};
|
|
256
265
|
});
|
|
257
266
|
},
|
|
258
|
-
command: ({
|
|
267
|
+
command: ({
|
|
268
|
+
editor,
|
|
269
|
+
range,
|
|
270
|
+
props
|
|
271
|
+
}) => {
|
|
259
272
|
var _a, _b;
|
|
260
273
|
const nodeAfter = editor.view.state.selection.$to.nodeAfter;
|
|
261
274
|
const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");
|
|
262
275
|
if (overrideSpace) {
|
|
263
276
|
range.to += 1;
|
|
264
277
|
}
|
|
265
|
-
editor.chain().focus().insertContentAt(range, [
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
text: " "
|
|
273
|
-
}
|
|
274
|
-
]).run();
|
|
278
|
+
editor.chain().focus().insertContentAt(range, [{
|
|
279
|
+
type: "emoji",
|
|
280
|
+
attrs: props
|
|
281
|
+
}, {
|
|
282
|
+
type: "text",
|
|
283
|
+
text: " "
|
|
284
|
+
}]).run();
|
|
275
285
|
(_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
|
|
276
286
|
},
|
|
277
287
|
render: () => {
|
|
@@ -384,17 +394,19 @@ const Emoji = core.Node.create({
|
|
|
384
394
|
};
|
|
385
395
|
},
|
|
386
396
|
parseHTML() {
|
|
387
|
-
return [
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
];
|
|
397
|
+
return [{
|
|
398
|
+
tag: "emoji-component"
|
|
399
|
+
}];
|
|
392
400
|
},
|
|
393
|
-
renderText({
|
|
401
|
+
renderText({
|
|
402
|
+
node
|
|
403
|
+
}) {
|
|
394
404
|
const unicodeEmoji = common_emoji.stringToUnicode(common_emoji.codeToEmojiData(node.attrs.code).unicode_output);
|
|
395
405
|
return unicodeEmoji;
|
|
396
406
|
},
|
|
397
|
-
renderHTML({
|
|
407
|
+
renderHTML({
|
|
408
|
+
HTMLAttributes
|
|
409
|
+
}) {
|
|
398
410
|
return ["emoji-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
399
411
|
},
|
|
400
412
|
addInputRules() {
|
|
@@ -432,35 +444,30 @@ const Emoji = core.Node.create({
|
|
|
432
444
|
];
|
|
433
445
|
},
|
|
434
446
|
addPasteRules() {
|
|
435
|
-
return [
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
})
|
|
454
|
-
];
|
|
447
|
+
return [core.nodePasteRule({
|
|
448
|
+
find: shortCodePasteMatch,
|
|
449
|
+
type: this.type,
|
|
450
|
+
getAttributes(attrs) {
|
|
451
|
+
return {
|
|
452
|
+
code: attrs[0]
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
}), core.nodePasteRule({
|
|
456
|
+
find: common_emoji.emojiRegex,
|
|
457
|
+
type: this.type,
|
|
458
|
+
getAttributes(attrs) {
|
|
459
|
+
return {
|
|
460
|
+
code: attrs[0]
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
})];
|
|
455
464
|
},
|
|
456
465
|
addProseMirrorPlugins() {
|
|
457
|
-
return [
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
})
|
|
463
|
-
];
|
|
466
|
+
return [Suggestion({
|
|
467
|
+
editor: this.editor,
|
|
468
|
+
...this.options.suggestion,
|
|
469
|
+
...suggestionOptions
|
|
470
|
+
})];
|
|
464
471
|
}
|
|
465
472
|
});
|
|
466
473
|
function getRegexMatches(text, regex, validator = () => true) {
|
|
@@ -478,13 +485,7 @@ function hasValidPrefix(text, match) {
|
|
|
478
485
|
return !["#", "@"].includes(text.charAt(match.index)) && !["#", "@"].includes(text.charAt(match.index - 1));
|
|
479
486
|
}
|
|
480
487
|
function trimEndPunctiation(string) {
|
|
481
|
-
const endPunctuationRegex = new RegExp(
|
|
482
|
-
"(?:" + [
|
|
483
|
-
`[!?.,:;'"]`,
|
|
484
|
-
"(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"
|
|
485
|
-
].join("|"),
|
|
486
|
-
"g"
|
|
487
|
-
);
|
|
488
|
+
const endPunctuationRegex = new RegExp("(?:" + [`[!?.,:;'"]`, "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
488
489
|
return string.replace(endPunctuationRegex, "");
|
|
489
490
|
}
|
|
490
491
|
function getWordAt(text, index) {
|
|
@@ -535,18 +536,8 @@ function addMarks(text, pos, from, to, tr, type) {
|
|
|
535
536
|
let rangeFrom = from - pos - 1;
|
|
536
537
|
rangeFrom = rangeFrom < 0 ? 0 : rangeFrom;
|
|
537
538
|
const rangeTo = to - pos;
|
|
538
|
-
const firstWordInRange = getWordAtUntil(
|
|
539
|
-
|
|
540
|
-
rangeFrom,
|
|
541
|
-
"left",
|
|
542
|
-
partialPhoneNumberRegex
|
|
543
|
-
);
|
|
544
|
-
const lastWordInRange = getWordAtUntil(
|
|
545
|
-
text,
|
|
546
|
-
rangeTo,
|
|
547
|
-
"right",
|
|
548
|
-
partialPhoneNumberRegex
|
|
549
|
-
);
|
|
539
|
+
const firstWordInRange = getWordAtUntil(text, rangeFrom, "left", partialPhoneNumberRegex);
|
|
540
|
+
const lastWordInRange = getWordAtUntil(text, rangeTo, "right", partialPhoneNumberRegex);
|
|
550
541
|
const wordsInRange = text.slice(firstWordInRange.from, lastWordInRange.to);
|
|
551
542
|
const matches = getRegexMatches(wordsInRange, common_utils.linkRegex, hasValidPrefix);
|
|
552
543
|
matches.forEach((match) => {
|
|
@@ -565,33 +556,29 @@ function autolink(options) {
|
|
|
565
556
|
if (hasInitialized && !contentChanged) {
|
|
566
557
|
return;
|
|
567
558
|
}
|
|
568
|
-
const {
|
|
569
|
-
|
|
559
|
+
const {
|
|
560
|
+
tr
|
|
561
|
+
} = newState;
|
|
562
|
+
const {
|
|
563
|
+
textContent
|
|
564
|
+
} = newState.doc;
|
|
570
565
|
if (!hasInitialized) {
|
|
571
566
|
addMarks(textContent, 0, 0, textContent.length, tr, options.type);
|
|
572
567
|
}
|
|
573
568
|
hasInitialized = true;
|
|
574
|
-
const transform = core.combineTransactionSteps(
|
|
575
|
-
oldState.doc,
|
|
576
|
-
[...transactions]
|
|
577
|
-
);
|
|
569
|
+
const transform = core.combineTransactionSteps(oldState.doc, [...transactions]);
|
|
578
570
|
const changes = core.getChangedRanges(transform);
|
|
579
|
-
changes.forEach(({
|
|
571
|
+
changes.forEach(({
|
|
572
|
+
oldRange,
|
|
573
|
+
newRange
|
|
574
|
+
}) => {
|
|
580
575
|
removeMarks(newRange, newState.doc, tr, options.type);
|
|
581
|
-
const paragraphs = core.findChildrenInRange(
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
)
|
|
586
|
-
|
|
587
|
-
addMarks(
|
|
588
|
-
node.textContent,
|
|
589
|
-
pos,
|
|
590
|
-
oldRange.from,
|
|
591
|
-
newRange.to,
|
|
592
|
-
tr,
|
|
593
|
-
options.type
|
|
594
|
-
);
|
|
576
|
+
const paragraphs = core.findChildrenInRange(newState.doc, newRange, (node) => node.isTextblock);
|
|
577
|
+
paragraphs.forEach(({
|
|
578
|
+
node,
|
|
579
|
+
pos
|
|
580
|
+
}) => {
|
|
581
|
+
addMarks(node.textContent, pos, oldRange.from, newRange.to, tr, options.type);
|
|
595
582
|
});
|
|
596
583
|
});
|
|
597
584
|
return tr;
|
|
@@ -604,23 +591,20 @@ const defaultAttributes = {
|
|
|
604
591
|
};
|
|
605
592
|
const CustomLink = core.Mark.create({
|
|
606
593
|
name: "CustomLink",
|
|
607
|
-
renderHTML({
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
this.options.HTMLAttributes,
|
|
612
|
-
HTMLAttributes,
|
|
613
|
-
defaultAttributes
|
|
614
|
-
)
|
|
615
|
-
];
|
|
594
|
+
renderHTML({
|
|
595
|
+
HTMLAttributes
|
|
596
|
+
}) {
|
|
597
|
+
return ["a", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, defaultAttributes)];
|
|
616
598
|
},
|
|
617
|
-
renderText({
|
|
599
|
+
renderText({
|
|
600
|
+
node
|
|
601
|
+
}) {
|
|
618
602
|
return node.attrs.text;
|
|
619
603
|
},
|
|
620
604
|
addProseMirrorPlugins() {
|
|
621
|
-
return [
|
|
622
|
-
|
|
623
|
-
];
|
|
605
|
+
return [autolink({
|
|
606
|
+
type: this.type
|
|
607
|
+
})];
|
|
624
608
|
}
|
|
625
609
|
});
|
|
626
610
|
const _sfc_main$6 = {
|
|
@@ -639,15 +623,15 @@ const _sfc_main$6 = {
|
|
|
639
623
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
640
624
|
const _component_dt_link = vue.resolveComponent("dt-link");
|
|
641
625
|
const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
|
|
642
|
-
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
]),
|
|
626
|
+
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
627
|
+
class: "d-d-inline-block"
|
|
628
|
+
}, {
|
|
629
|
+
default: vue.withCtx(() => [vue.createVNode(_component_dt_link, {
|
|
630
|
+
kind: "mention"
|
|
631
|
+
}, {
|
|
632
|
+
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString($options.text), 1)]),
|
|
633
|
+
_: 1
|
|
634
|
+
})]),
|
|
651
635
|
_: 1
|
|
652
636
|
});
|
|
653
637
|
}
|
|
@@ -657,11 +641,9 @@ const MentionPlugin = Mention.extend({
|
|
|
657
641
|
return vue3.VueNodeViewRenderer(MentionComponent);
|
|
658
642
|
},
|
|
659
643
|
parseHTML() {
|
|
660
|
-
return [
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
];
|
|
644
|
+
return [{
|
|
645
|
+
tag: "mention-component"
|
|
646
|
+
}];
|
|
665
647
|
},
|
|
666
648
|
addAttributes() {
|
|
667
649
|
return {
|
|
@@ -676,10 +658,14 @@ const MentionPlugin = Mention.extend({
|
|
|
676
658
|
}
|
|
677
659
|
};
|
|
678
660
|
},
|
|
679
|
-
renderText({
|
|
661
|
+
renderText({
|
|
662
|
+
node
|
|
663
|
+
}) {
|
|
680
664
|
return `@${node.attrs.id}`;
|
|
681
665
|
},
|
|
682
|
-
renderHTML({
|
|
666
|
+
renderHTML({
|
|
667
|
+
HTMLAttributes
|
|
668
|
+
}) {
|
|
683
669
|
return ["mention-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
684
670
|
}
|
|
685
671
|
}).configure({
|
|
@@ -704,15 +690,15 @@ const _sfc_main$5 = {
|
|
|
704
690
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
705
691
|
const _component_dt_link = vue.resolveComponent("dt-link");
|
|
706
692
|
const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
|
|
707
|
-
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
]),
|
|
693
|
+
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
694
|
+
class: "d-d-inline-block"
|
|
695
|
+
}, {
|
|
696
|
+
default: vue.withCtx(() => [vue.createVNode(_component_dt_link, {
|
|
697
|
+
kind: "mention"
|
|
698
|
+
}, {
|
|
699
|
+
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString($options.text), 1)]),
|
|
700
|
+
_: 1
|
|
701
|
+
})]),
|
|
716
702
|
_: 1
|
|
717
703
|
});
|
|
718
704
|
}
|
|
@@ -723,11 +709,9 @@ const ChannelPlugin = Mention.extend({
|
|
|
723
709
|
return vue3.VueNodeViewRenderer(ChannelComponent);
|
|
724
710
|
},
|
|
725
711
|
parseHTML() {
|
|
726
|
-
return [
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
}
|
|
730
|
-
];
|
|
712
|
+
return [{
|
|
713
|
+
tag: "channel-component"
|
|
714
|
+
}];
|
|
731
715
|
},
|
|
732
716
|
addAttributes() {
|
|
733
717
|
return {
|
|
@@ -742,10 +726,14 @@ const ChannelPlugin = Mention.extend({
|
|
|
742
726
|
}
|
|
743
727
|
};
|
|
744
728
|
},
|
|
745
|
-
renderText({
|
|
729
|
+
renderText({
|
|
730
|
+
node
|
|
731
|
+
}) {
|
|
746
732
|
return `#${node.attrs.id}`;
|
|
747
733
|
},
|
|
748
|
-
renderHTML({
|
|
734
|
+
renderHTML({
|
|
735
|
+
HTMLAttributes
|
|
736
|
+
}) {
|
|
749
737
|
return ["channel-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
750
738
|
}
|
|
751
739
|
}).configure({
|
|
@@ -772,10 +760,10 @@ const _sfc_main$4 = {
|
|
|
772
760
|
};
|
|
773
761
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
774
762
|
const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper");
|
|
775
|
-
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
]),
|
|
763
|
+
return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, {
|
|
764
|
+
class: "d-d-inline-block"
|
|
765
|
+
}, {
|
|
766
|
+
default: vue.withCtx(() => [vue.createTextVNode(vue.toDisplayString($options.text), 1)]),
|
|
779
767
|
_: 1
|
|
780
768
|
});
|
|
781
769
|
}
|
|
@@ -801,11 +789,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
801
789
|
return vue3.VueNodeViewRenderer(SlashCommandComponent);
|
|
802
790
|
},
|
|
803
791
|
parseHTML() {
|
|
804
|
-
return [
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
808
|
-
];
|
|
792
|
+
return [{
|
|
793
|
+
tag: "command-component"
|
|
794
|
+
}];
|
|
809
795
|
},
|
|
810
796
|
addAttributes() {
|
|
811
797
|
return {
|
|
@@ -820,39 +806,47 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
820
806
|
}
|
|
821
807
|
};
|
|
822
808
|
},
|
|
823
|
-
renderText({
|
|
809
|
+
renderText({
|
|
810
|
+
node
|
|
811
|
+
}) {
|
|
824
812
|
return `/${node.attrs.command}`;
|
|
825
813
|
},
|
|
826
|
-
renderHTML({
|
|
814
|
+
renderHTML({
|
|
815
|
+
HTMLAttributes
|
|
816
|
+
}) {
|
|
827
817
|
return ["command-component", core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
|
|
828
818
|
},
|
|
829
819
|
addInputRules() {
|
|
830
820
|
var _a;
|
|
831
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
821
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
822
|
+
query: ""
|
|
823
|
+
}).map((suggestion) => suggestion.command);
|
|
832
824
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) $`);
|
|
833
|
-
return [
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
];
|
|
825
|
+
return [core.nodeInputRule({
|
|
826
|
+
find: slashCommandRegex,
|
|
827
|
+
type: this.type,
|
|
828
|
+
getAttributes(attrs) {
|
|
829
|
+
return {
|
|
830
|
+
command: attrs[2]
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
})];
|
|
842
834
|
},
|
|
843
835
|
addPasteRules() {
|
|
844
836
|
var _a;
|
|
845
|
-
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
837
|
+
const suggestions = (_a = this.options.suggestion) == null ? void 0 : _a.items({
|
|
838
|
+
query: ""
|
|
839
|
+
}).map((suggestion) => suggestion.command);
|
|
846
840
|
const slashCommandRegex = new RegExp(`^((?:\\/)(${suggestions.join("|")})) ?$`, "g");
|
|
847
|
-
return [
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
];
|
|
841
|
+
return [core.nodePasteRule({
|
|
842
|
+
find: (text) => slashCommandPasteMatch(text, slashCommandRegex),
|
|
843
|
+
type: this.type,
|
|
844
|
+
getAttributes(attrs) {
|
|
845
|
+
return {
|
|
846
|
+
command: attrs[0].trim()
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
})];
|
|
856
850
|
}
|
|
857
851
|
}).configure({
|
|
858
852
|
suggestion: {
|
|
@@ -860,24 +854,9 @@ const SlashCommandPlugin = Mention.extend({
|
|
|
860
854
|
pluginKey: new state.PluginKey("slashCommandSuggestion")
|
|
861
855
|
}
|
|
862
856
|
});
|
|
863
|
-
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = [
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
"html"
|
|
867
|
-
];
|
|
868
|
-
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = [
|
|
869
|
-
"start",
|
|
870
|
-
"end",
|
|
871
|
-
"all"
|
|
872
|
-
];
|
|
873
|
-
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = [
|
|
874
|
-
"https",
|
|
875
|
-
"http",
|
|
876
|
-
"ftp",
|
|
877
|
-
"ftps",
|
|
878
|
-
"sftp",
|
|
879
|
-
"mailto"
|
|
880
|
-
];
|
|
857
|
+
const RICH_TEXT_EDITOR_OUTPUT_FORMATS = ["text", "json", "html"];
|
|
858
|
+
const RICH_TEXT_EDITOR_AUTOFOCUS_TYPES = ["start", "end", "all"];
|
|
859
|
+
const RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS = ["https", "http", "ftp", "ftps", "sftp", "mailto"];
|
|
881
860
|
const _sfc_main$3 = {
|
|
882
861
|
name: "MentionSuggestion",
|
|
883
862
|
components: {
|
|
@@ -899,7 +878,9 @@ const _sfc_main$3 = {
|
|
|
899
878
|
}
|
|
900
879
|
}
|
|
901
880
|
};
|
|
902
|
-
const _hoisted_1$1 = {
|
|
881
|
+
const _hoisted_1$1 = {
|
|
882
|
+
class: "mention-suggestion-name"
|
|
883
|
+
};
|
|
903
884
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
904
885
|
const _component_dt_avatar = vue.resolveComponent("dt-avatar");
|
|
905
886
|
const _component_dt_stack = vue.resolveComponent("dt-stack");
|
|
@@ -907,15 +888,12 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
907
888
|
direction: "row",
|
|
908
889
|
gap: "400"
|
|
909
890
|
}, {
|
|
910
|
-
default: vue.withCtx(() => [
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
}, null, 8, ["full-name", "image-src", "image-alt"]),
|
|
917
|
-
vue.createElementVNode("span", _hoisted_1$1, vue.toDisplayString($options.name), 1)
|
|
918
|
-
]),
|
|
891
|
+
default: vue.withCtx(() => [vue.createVNode(_component_dt_avatar, {
|
|
892
|
+
"full-name": $options.name,
|
|
893
|
+
"image-src": $options.avatarSrc,
|
|
894
|
+
"image-alt": $options.name,
|
|
895
|
+
size: "xs"
|
|
896
|
+
}, null, 8, ["full-name", "image-src", "image-alt"]), vue.createElementVNode("span", _hoisted_1$1, vue.toDisplayString($options.name), 1)]),
|
|
919
897
|
_: 1
|
|
920
898
|
});
|
|
921
899
|
}
|
|
@@ -1019,16 +997,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1019
997
|
direction: "row",
|
|
1020
998
|
gap: "400"
|
|
1021
999
|
}, {
|
|
1022
|
-
default: vue.withCtx(() => [
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
})),
|
|
1030
|
-
vue.createElementVNode("span", null, vue.toDisplayString($options.name), 1)
|
|
1031
|
-
]),
|
|
1000
|
+
default: vue.withCtx(() => [!$props.item.locked ? (vue.openBlock(), vue.createBlock(_component_dt_icon_hash, {
|
|
1001
|
+
key: 0,
|
|
1002
|
+
size: "300"
|
|
1003
|
+
})) : (vue.openBlock(), vue.createBlock(_component_dt_icon_lock, {
|
|
1004
|
+
key: 1,
|
|
1005
|
+
size: "300"
|
|
1006
|
+
})), vue.createElementVNode("span", null, vue.toDisplayString($options.name), 1)]),
|
|
1032
1007
|
_: 1
|
|
1033
1008
|
});
|
|
1034
1009
|
}
|
|
@@ -1125,17 +1100,17 @@ const _sfc_main$1 = {
|
|
|
1125
1100
|
}
|
|
1126
1101
|
}
|
|
1127
1102
|
};
|
|
1128
|
-
const _hoisted_1 = {
|
|
1129
|
-
|
|
1130
|
-
|
|
1103
|
+
const _hoisted_1 = {
|
|
1104
|
+
class: "d-body--md-compact"
|
|
1105
|
+
};
|
|
1106
|
+
const _hoisted_2 = {
|
|
1107
|
+
key: 0
|
|
1108
|
+
};
|
|
1109
|
+
const _hoisted_3 = {
|
|
1110
|
+
class: "d-body--sm d-fc-tertiary"
|
|
1111
|
+
};
|
|
1131
1112
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1132
|
-
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
1133
|
-
vue.createElementVNode("div", _hoisted_1, [
|
|
1134
|
-
vue.createElementVNode("span", null, "/" + vue.toDisplayString($options.command), 1),
|
|
1135
|
-
$options.parametersExample ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString($options.parametersExample), 1)) : vue.createCommentVNode("", true)
|
|
1136
|
-
]),
|
|
1137
|
-
vue.createElementVNode("div", _hoisted_3, vue.toDisplayString($options.description), 1)
|
|
1138
|
-
]);
|
|
1113
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [vue.createElementVNode("div", _hoisted_1, [vue.createElementVNode("span", null, "/" + vue.toDisplayString($options.command), 1), $options.parametersExample ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString($options.parametersExample), 1)) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_3, vue.toDisplayString($options.description), 1)]);
|
|
1139
1114
|
}
|
|
1140
1115
|
const SlashCommandSuggestion = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
1141
1116
|
const slashCommandSuggestion = {
|
|
@@ -1487,7 +1462,9 @@ const _sfc_main = {
|
|
|
1487
1462
|
extensions() {
|
|
1488
1463
|
const extensions = [Document, Paragraph, Text, History];
|
|
1489
1464
|
if (this.link) {
|
|
1490
|
-
extensions.push(TipTapLink.extend({
|
|
1465
|
+
extensions.push(TipTapLink.extend({
|
|
1466
|
+
inclusive: false
|
|
1467
|
+
}).configure({
|
|
1491
1468
|
HTMLAttributes: {
|
|
1492
1469
|
class: "d-link d-wb-break-all"
|
|
1493
1470
|
},
|
|
@@ -1519,42 +1496,55 @@ const _sfc_main = {
|
|
|
1519
1496
|
extensions.push(Underline);
|
|
1520
1497
|
}
|
|
1521
1498
|
if (this.placeholder) {
|
|
1522
|
-
extensions.push(
|
|
1523
|
-
|
|
1524
|
-
);
|
|
1499
|
+
extensions.push(Placeholder.configure({
|
|
1500
|
+
placeholder: this.placeholder
|
|
1501
|
+
}));
|
|
1525
1502
|
}
|
|
1526
1503
|
if (!this.allowLineBreaks) {
|
|
1527
1504
|
const self = this;
|
|
1528
|
-
extensions.push(
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
})
|
|
1543
|
-
);
|
|
1505
|
+
extensions.push(HardBreak.extend({
|
|
1506
|
+
addKeyboardShortcuts() {
|
|
1507
|
+
return {
|
|
1508
|
+
Enter: () => {
|
|
1509
|
+
self.$emit("enter");
|
|
1510
|
+
return true;
|
|
1511
|
+
},
|
|
1512
|
+
"Shift-Enter": () => {
|
|
1513
|
+
this.editor.commands.setHardBreak();
|
|
1514
|
+
return true;
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
}));
|
|
1544
1519
|
} else {
|
|
1545
1520
|
extensions.push(HardBreak);
|
|
1546
1521
|
}
|
|
1547
1522
|
if (this.mentionSuggestion) {
|
|
1548
|
-
const suggestionObject = {
|
|
1549
|
-
|
|
1523
|
+
const suggestionObject = {
|
|
1524
|
+
...this.mentionSuggestion,
|
|
1525
|
+
...mentionSuggestion
|
|
1526
|
+
};
|
|
1527
|
+
extensions.push(MentionPlugin.configure({
|
|
1528
|
+
suggestion: suggestionObject
|
|
1529
|
+
}));
|
|
1550
1530
|
}
|
|
1551
1531
|
if (this.channelSuggestion) {
|
|
1552
|
-
const suggestionObject = {
|
|
1553
|
-
|
|
1532
|
+
const suggestionObject = {
|
|
1533
|
+
...this.channelSuggestion,
|
|
1534
|
+
...channelSuggestion
|
|
1535
|
+
};
|
|
1536
|
+
extensions.push(ChannelPlugin.configure({
|
|
1537
|
+
suggestion: suggestionObject
|
|
1538
|
+
}));
|
|
1554
1539
|
}
|
|
1555
1540
|
if (this.slashCommandSuggestion) {
|
|
1556
|
-
const suggestionObject = {
|
|
1557
|
-
|
|
1541
|
+
const suggestionObject = {
|
|
1542
|
+
...this.slashCommandSuggestion,
|
|
1543
|
+
...slashCommandSuggestion
|
|
1544
|
+
};
|
|
1545
|
+
extensions.push(SlashCommandPlugin.configure({
|
|
1546
|
+
suggestion: suggestionObject
|
|
1547
|
+
}));
|
|
1558
1548
|
}
|
|
1559
1549
|
extensions.push(Emoji);
|
|
1560
1550
|
extensions.push(TextAlign.configure({
|
|
@@ -1593,13 +1583,19 @@ const _sfc_main = {
|
|
|
1593
1583
|
watch: {
|
|
1594
1584
|
editable(isEditable) {
|
|
1595
1585
|
this.editor.setEditable(isEditable);
|
|
1596
|
-
this.updateEditorAttributes({
|
|
1586
|
+
this.updateEditorAttributes({
|
|
1587
|
+
"aria-readonly": !isEditable
|
|
1588
|
+
});
|
|
1597
1589
|
},
|
|
1598
1590
|
inputClass(newClass) {
|
|
1599
|
-
this.updateEditorAttributes({
|
|
1591
|
+
this.updateEditorAttributes({
|
|
1592
|
+
class: newClass
|
|
1593
|
+
});
|
|
1600
1594
|
},
|
|
1601
1595
|
inputAriaLabel(newLabel) {
|
|
1602
|
-
this.updateEditorAttributes({
|
|
1596
|
+
this.updateEditorAttributes({
|
|
1597
|
+
"aria-label": newLabel
|
|
1598
|
+
});
|
|
1603
1599
|
},
|
|
1604
1600
|
extensions() {
|
|
1605
1601
|
this.destroyEditor();
|
|
@@ -1657,10 +1653,14 @@ const _sfc_main = {
|
|
|
1657
1653
|
this.$emit("input", value);
|
|
1658
1654
|
this.$emit("update:modelValue", value);
|
|
1659
1655
|
});
|
|
1660
|
-
this.editor.on("focus", ({
|
|
1656
|
+
this.editor.on("focus", ({
|
|
1657
|
+
event
|
|
1658
|
+
}) => {
|
|
1661
1659
|
this.$emit("focus", event);
|
|
1662
1660
|
});
|
|
1663
|
-
this.editor.on("blur", ({
|
|
1661
|
+
this.editor.on("blur", ({
|
|
1662
|
+
event
|
|
1663
|
+
}) => {
|
|
1664
1664
|
this.$emit("blur", event);
|
|
1665
1665
|
});
|
|
1666
1666
|
},
|
|
@@ -1683,7 +1683,11 @@ const _sfc_main = {
|
|
|
1683
1683
|
return (_a = extension.configure) == null ? void 0 : _a.call(extension, options);
|
|
1684
1684
|
},
|
|
1685
1685
|
updateEditorAttributes(attributes) {
|
|
1686
|
-
this.editor.setOptions({
|
|
1686
|
+
this.editor.setOptions({
|
|
1687
|
+
editorProps: {
|
|
1688
|
+
attributes
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1687
1691
|
},
|
|
1688
1692
|
focusEditor() {
|
|
1689
1693
|
this.editor.commands.focus();
|