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