@onereach/ui-components 4.1.0-beta.2511.0 → 4.1.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/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +8 -1
- package/dist/bundled/v2/components/OrButtonV3/styles.js +3 -1
- package/dist/bundled/v2/components/OrCode/OrCode.js +3727 -5
- package/dist/bundled/v2/components/OrCode/index.js +2 -5
- package/dist/bundled/v2/components/OrCode/lang.js +3 -3897
- package/dist/bundled/v2/components/OrCode/theme.js +1 -2
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +8 -1
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +2 -14
- package/dist/bundled/v2/hooks/useElevation.js +3 -3
- package/dist/bundled/v2/{index-f5487f12.js → index-6976c52a.js} +115 -3
- package/dist/bundled/v2/index.js +5 -17
- package/dist/bundled/v2/{index-70ca38c5.js → lang-02d2bb2d.js} +3965 -73
- package/dist/bundled/v2/utils/isVisible.js +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-1489a97d.js → OrBottomSheet.vue_vue_type_script_lang-01d7c429.js} +9 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-606eede5.js → OrCardCollection.vue_vue_type_script_lang-843e396a.js} +4 -4
- package/dist/bundled/v3/{index-16aee5bc.js → OrCode.vue_vue_type_script_lang-c5a9adb7.js} +234 -14
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-7d9bcdc4.js → OrConfirm.vue_vue_type_script_lang-d069c95f.js} +3 -3
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-42a8285c.js → OrIconButton.vue_vue_type_script_lang-41f12b45.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-6b0f4112.js → OrInlineInput.vue_vue_type_script_lang-2b485aef.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-6a7a22a3.js → OrInlineTextarea.vue_vue_type_script_lang-aa848373.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-60b49ebd.js → OrInput.vue_vue_type_script_lang-fe526531.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-2676b9cc.js → OrMenu.vue_vue_type_script_lang-4772731e.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-9ed0d5c2.js → OrModal.vue_vue_type_script_lang-265f39e0.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-9bd9811a.js → OrNotification.vue_vue_type_script_lang-1b2d17a2.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b08cc71a.js → OrPagination.vue_vue_type_script_lang-ddef5272.js} +2 -2
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-a9419b58.js → OrPopover.vue_vue_type_script_lang-9d3a7c2d.js} +9 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-3613e38d.js → OrSearch.vue_vue_type_script_lang-36ad17a9.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-262351de.js → OrSelect.vue_vue_type_script_lang-410f4efc.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-198126ca.js → OrSidebar.vue_vue_type_script_lang-ed7c92fb.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-b723fa78.js → OrTabs.vue_vue_type_script_lang-4f5e0d90.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-9deddfc8.js → OrTag.vue_vue_type_script_lang-fbc19deb.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-703eaacb.js → OrTooltip.vue_vue_type_script_lang-b35199da.js} +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +3 -3
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButtonV3/styles.js +3 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +11 -11
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -10
- package/dist/bundled/v3/components/OrCode/OrCode.js +5 -8
- package/dist/bundled/v3/components/OrCode/index.js +3 -6
- package/dist/bundled/v3/components/OrCode/lang.js +3 -3897
- package/dist/bundled/v3/components/OrCode/theme.js +1 -2
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +9 -9
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -8
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +6 -6
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +7 -7
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +7 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +7 -7
- package/dist/bundled/v3/components/OrInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +5 -5
- package/dist/bundled/v3/components/OrMenuV3/index.js +4 -4
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +7 -7
- package/dist/bundled/v3/components/OrModalV3/index.js +6 -6
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +7 -7
- package/dist/bundled/v3/components/OrNotificationV3/index.js +6 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +7 -7
- package/dist/bundled/v3/components/OrPaginationV3/index.js +6 -6
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +4 -4
- package/dist/bundled/v3/components/OrPopoverV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +8 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +7 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +9 -9
- package/dist/bundled/v3/components/OrSelectV3/index.js +8 -8
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +7 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +6 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +7 -7
- package/dist/bundled/v3/components/OrTagV3/index.js +6 -6
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +7 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +6 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +5 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +5 -5
- package/dist/bundled/v3/components/OrTooltipV3/index.js +4 -4
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +24 -37
- package/dist/bundled/v3/hooks/useElevation.js +3 -3
- package/dist/bundled/v3/{index-f5487f12.js → index-6976c52a.js} +115 -3
- package/dist/bundled/v3/index.js +27 -40
- package/dist/bundled/v3/{index-70ca38c5.js → lang-02d2bb2d.js} +3965 -73
- package/dist/bundled/v3/utils/isVisible.js +1 -1
- package/dist/esm/v2/{OrBottomSheet-29df8db9.js → OrBottomSheet-2d3d8fbc.js} +9 -2
- package/dist/esm/v2/{OrButton-236d9c2e.js → OrButton-6b60a776.js} +3 -1
- package/dist/esm/v2/{OrCardCollection-97167234.js → OrCardCollection-6b43a9b2.js} +5 -5
- package/dist/esm/v2/{OrConfirm-cd41987e.js → OrConfirm-92e39afe.js} +3 -3
- package/dist/esm/v2/{OrIconButton-a9db16fa.js → OrIconButton-fbe52eb8.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-79c86e6a.js → OrInlineInput-50bf7e7c.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-3e24548d.js → OrInlineTextarea-78b8aa48.js} +1 -1
- package/dist/esm/v2/{OrInput-044a9c85.js → OrInput-6370bd94.js} +1 -1
- package/dist/esm/v2/{OrMenu-47b319a6.js → OrMenu-fce31ed4.js} +1 -1
- package/dist/esm/v2/{OrModal-fa99b102.js → OrModal-77d6cf30.js} +2 -2
- package/dist/esm/v2/{OrNotification-6411c891.js → OrNotification-2b2d81d5.js} +1 -1
- package/dist/esm/v2/{OrOverlay-2ce3cfd7.js → OrOverlay-b1609eef.js} +1 -1
- package/dist/esm/v2/{OrPagination-28ad44a3.js → OrPagination-ad0e1d23.js} +3 -3
- package/dist/esm/v2/{OrPopover-83c885d0.js → OrPopover-9df5572b.js} +10 -3
- package/dist/esm/v2/{OrSearch-83631294.js → OrSearch-a3038272.js} +1 -1
- package/dist/esm/v2/{OrSelect-affebf55.js → OrSelect-209a7a2c.js} +3 -3
- package/dist/esm/v2/{OrSidebar-9834d431.js → OrSidebar-26785a1e.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-3275b9dd.js → OrSidebarCollapseButton-9c424133.js} +1 -1
- package/dist/esm/v2/{OrTabs-f0e4db08.js → OrTabs-58881ef9.js} +2 -2
- package/dist/esm/v2/{OrTag-ca297170.js → OrTag-e9761c21.js} +1 -1
- package/dist/esm/v2/{OrTooltip-2c09dcaf.js → OrTooltip-82c59279.js} +1 -1
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +23 -47
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -11
- package/dist/esm/v2/components/or-confirm-v3/index.js +9 -9
- package/dist/esm/v2/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v2/components/or-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v2/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v2/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -7
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v2/components/or-search-v3/index.js +8 -8
- package/dist/esm/v2/components/or-select-v3/index.js +9 -9
- package/dist/esm/v2/components/or-sidebar-v3/index.js +8 -8
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +7 -7
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -7
- package/dist/esm/v2/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v2/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +7 -7
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +7 -7
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +23 -47
- package/dist/esm/v2/{types-9b09f101.js → types-707995c5.js} +1 -1
- package/dist/esm/{v3/useElevation-92fce12c.js → v2/useElevation-df91fa50.js} +4 -4
- package/dist/esm/v3/{OrBottomSheet-0f24ecae.js → OrBottomSheet-95bc694e.js} +9 -2
- package/dist/esm/v3/{OrButton-b9bab32c.js → OrButton-8558588c.js} +3 -1
- package/dist/esm/v3/{OrCardCollection-5415b71b.js → OrCardCollection-631cb8e3.js} +5 -5
- package/dist/esm/v3/{OrConfirm-d7a152ab.js → OrConfirm-b0c7f796.js} +3 -3
- package/dist/esm/v3/{OrIconButton-65e83586.js → OrIconButton-786b9346.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-2def321a.js → OrInlineInput-ca82ccc3.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-6d38a261.js → OrInlineTextarea-864f1099.js} +1 -1
- package/dist/esm/v3/{OrInput-a7cbc8b9.js → OrInput-a43b53d2.js} +1 -1
- package/dist/esm/v3/{OrMenu-053a9ab7.js → OrMenu-f8132f3e.js} +1 -1
- package/dist/esm/v3/{OrModal-81dc4dcd.js → OrModal-cb236842.js} +2 -2
- package/dist/esm/v3/{OrNotification-da37f927.js → OrNotification-45b47899.js} +1 -1
- package/dist/esm/v3/{OrOverlay-7cf03aea.js → OrOverlay-d63d39c3.js} +1 -1
- package/dist/esm/v3/{OrPagination-f54ad672.js → OrPagination-1e334ccd.js} +3 -3
- package/dist/esm/v3/{OrPopover-3ac8f589.js → OrPopover-d6d82a06.js} +10 -3
- package/dist/esm/v3/{OrSearch-06f01165.js → OrSearch-d5d46937.js} +1 -1
- package/dist/esm/v3/{OrSelect-eab4bc19.js → OrSelect-f2911b60.js} +3 -3
- package/dist/esm/v3/{OrSidebar-bb1f7ea4.js → OrSidebar-0d715029.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-f2390f52.js → OrSidebarCollapseButton-4d7497ec.js} +1 -1
- package/dist/esm/v3/{OrTabs-d9e2a07e.js → OrTabs-f667cf9f.js} +2 -2
- package/dist/esm/v3/{OrTag-e8c12288.js → OrTag-dc1b8628.js} +1 -1
- package/dist/esm/v3/{OrTooltip-d91128f4.js → OrTooltip-56ed42c7.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +23 -47
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -11
- package/dist/esm/v3/components/or-confirm-v3/index.js +9 -9
- package/dist/esm/v3/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v3/components/or-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v3/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v3/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -7
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v3/components/or-search-v3/index.js +8 -8
- package/dist/esm/v3/components/or-select-v3/index.js +9 -9
- package/dist/esm/v3/components/or-sidebar-v3/index.js +8 -8
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +7 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -7
- package/dist/esm/v3/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +7 -7
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +7 -7
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +23 -47
- package/dist/esm/v3/{types-0e3ddb0f.js → types-71d7c1df.js} +1 -1
- package/dist/esm/{v2/useElevation-92fce12c.js → v3/useElevation-df91fa50.js} +4 -4
- package/package.json +5 -25
- package/src/components/index.ts +0 -1
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +7 -1
- package/src/components/or-button-v3/styles.ts +6 -2
- package/src/components/or-popover-v3/OrPopover.vue +7 -1
- package/src/hooks/useElevation.ts +3 -2
- package/src/utils/isVisible.ts +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -2036
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -181
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -67
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -45
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v2/index-16aee5bc.js +0 -3740
- package/dist/bundled/v2/index-62c3221b.js +0 -6956
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v2/markdown-00716a39.js +0 -18683
- package/dist/bundled/v2/tiptap-core.esm-f85402b1.js +0 -9360
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-f9e835d0.js +0 -236
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-eb03c076.js +0 -1813
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -226
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -181
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -83
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -45
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v3/index-62c3221b.js +0 -6956
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/markdown-00716a39.js +0 -18683
- package/dist/bundled/v3/tiptap-core.esm-f85402b1.js +0 -9360
- package/dist/esm/v2/OrRichTextEditor-93ace5e2.js +0 -716
- package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -181
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -58
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v3/OrRichTextEditor-d99a44df.js +0 -680
- package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -181
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -56
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -7
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -79
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -622
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -64
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -213
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -110
- /package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-fe412ca5.js → OrButton.vue_vue_type_script_lang-5650b394.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-30f62546.js → OrOverlay.vue_vue_type_script_lang-47004a50.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-117ff0b8.js → OrToastContainer.vue_vue_type_script_lang-96bc2f19.js} +0 -0
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { E as EditorView, a as EditorState, k as keymap } from './index-f5487f12.js';
|
|
2
|
-
import { b as basicSetup, i as indentWithTab } from './index-16aee5bc.js';
|
|
3
|
-
import { useElementHover } from '@vueuse/core';
|
|
4
|
-
import { defineComponent, ref } from 'vue-demi';
|
|
5
|
-
import script$3 from './components/OrTeleport/OrTeleport.js';
|
|
6
|
-
import { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
7
|
-
import languages from './components/OrCode/lang.js';
|
|
8
|
-
import theme from './components/OrCode/theme.js';
|
|
9
|
-
import './components/OrIconButtonV2/OrIconButton.js';
|
|
10
|
-
import './components/OrModal/OrModal.js';
|
|
11
|
-
import { s as script$2 } from './OrModal.vue_vue_type_script_lang-d5fb0b11.js';
|
|
12
|
-
import './components/OrError/OrError.js';
|
|
13
|
-
import './components/OrHint/OrHint.js';
|
|
14
|
-
import './components/OrLabel/OrLabel.js';
|
|
15
|
-
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-5d204461.js';
|
|
16
|
-
import { s as script$4 } from './OrError.vue_vue_type_script_lang-450321b8.js';
|
|
17
|
-
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-5d628c6c.js';
|
|
18
|
-
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-95601b40.js';
|
|
19
|
-
|
|
20
|
-
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
21
|
-
var script = defineComponent({
|
|
22
|
-
name: 'OrCode',
|
|
23
|
-
components: {
|
|
24
|
-
OrIconButton: script$1,
|
|
25
|
-
OrModal: script$2,
|
|
26
|
-
OrTeleport: script$3,
|
|
27
|
-
OrError: script$4,
|
|
28
|
-
OrHint: script$5,
|
|
29
|
-
OrLabel: script$6
|
|
30
|
-
},
|
|
31
|
-
model: {
|
|
32
|
-
prop: 'modelValue',
|
|
33
|
-
event: 'update:modelValue'
|
|
34
|
-
},
|
|
35
|
-
props: {
|
|
36
|
-
label: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: '',
|
|
39
|
-
required: false
|
|
40
|
-
},
|
|
41
|
-
modelValue: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: '',
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
language: {
|
|
47
|
-
type: [Object, String],
|
|
48
|
-
required: false,
|
|
49
|
-
default: OrCodeLanguages.JS
|
|
50
|
-
},
|
|
51
|
-
isReadonly: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
required: false,
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
extensions: {
|
|
57
|
-
type: Array,
|
|
58
|
-
required: false,
|
|
59
|
-
default: () => [basicSetup]
|
|
60
|
-
},
|
|
61
|
-
phrases: {
|
|
62
|
-
type: Object,
|
|
63
|
-
required: false,
|
|
64
|
-
default: null
|
|
65
|
-
},
|
|
66
|
-
isShowingFullscreen: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: true,
|
|
69
|
-
required: false
|
|
70
|
-
},
|
|
71
|
-
isInvalid: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: false,
|
|
74
|
-
required: false
|
|
75
|
-
},
|
|
76
|
-
error: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: '',
|
|
79
|
-
required: false
|
|
80
|
-
},
|
|
81
|
-
hint: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: '',
|
|
84
|
-
required: false
|
|
85
|
-
},
|
|
86
|
-
allowPaste: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: true
|
|
89
|
-
},
|
|
90
|
-
allowDrop: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: true
|
|
93
|
-
},
|
|
94
|
-
lineWrapping: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: false
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
emits: ['update:modelValue', 'focus', 'blur'],
|
|
100
|
-
setup(props, {
|
|
101
|
-
emit
|
|
102
|
-
}) {
|
|
103
|
-
// editor config
|
|
104
|
-
const root = ref();
|
|
105
|
-
const target = ref();
|
|
106
|
-
const fullscreenTarget = ref();
|
|
107
|
-
const isHovered = useElementHover(root);
|
|
108
|
-
const editor = new EditorView({
|
|
109
|
-
state: EditorState.create({
|
|
110
|
-
doc: props.modelValue
|
|
111
|
-
}),
|
|
112
|
-
dispatch: tr => {
|
|
113
|
-
editor.update([tr]);
|
|
114
|
-
if (tr.changes.empty) return;
|
|
115
|
-
emit('update:modelValue', editor.state.doc.toString());
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
return {
|
|
119
|
-
root,
|
|
120
|
-
target,
|
|
121
|
-
fullscreenTarget,
|
|
122
|
-
editor,
|
|
123
|
-
isHovered
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
data() {
|
|
127
|
-
return {
|
|
128
|
-
isFullscreen: false
|
|
129
|
-
};
|
|
130
|
-
},
|
|
131
|
-
computed: {
|
|
132
|
-
localLanguage() {
|
|
133
|
-
if (Object.values(OrCodeLanguages).includes(this.language)) {
|
|
134
|
-
return languages[this.language];
|
|
135
|
-
} else {
|
|
136
|
-
return this.language;
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
localExtensions() {
|
|
140
|
-
const {
|
|
141
|
-
allowDrop,
|
|
142
|
-
allowPaste,
|
|
143
|
-
lineWrapping,
|
|
144
|
-
extensions
|
|
145
|
-
} = this;
|
|
146
|
-
let ext = [theme, EditorView.baseTheme({}),
|
|
147
|
-
// locale settings
|
|
148
|
-
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
149
|
-
// Parser language setting
|
|
150
|
-
this.localLanguage,
|
|
151
|
-
// Editable option
|
|
152
|
-
EditorView.editable.of(!this.isReadonly),
|
|
153
|
-
// Focus and blur listener
|
|
154
|
-
EditorView.updateListener.of(viewUpdate => {
|
|
155
|
-
if (viewUpdate.focusChanged) {
|
|
156
|
-
viewUpdate.view.hasFocus ? this.$emit('focus') : this.$emit('blur', viewUpdate.state.doc.toString());
|
|
157
|
-
}
|
|
158
|
-
}), EditorView.domEventHandlers({
|
|
159
|
-
drop(event) {
|
|
160
|
-
if (!allowDrop) {
|
|
161
|
-
event.preventDefault();
|
|
162
|
-
return true;
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
paste(event) {
|
|
166
|
-
if (!allowPaste) {
|
|
167
|
-
event.preventDefault();
|
|
168
|
-
return true;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}),
|
|
172
|
-
// line wrapping
|
|
173
|
-
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])];
|
|
174
|
-
if (Array.isArray(extensions)) {
|
|
175
|
-
ext = [...ext, ...extensions];
|
|
176
|
-
}
|
|
177
|
-
ext = ext.filter(Boolean);
|
|
178
|
-
return ext;
|
|
179
|
-
},
|
|
180
|
-
isShowingError() {
|
|
181
|
-
return !!this.error && this.isInvalid;
|
|
182
|
-
},
|
|
183
|
-
isShowingHint() {
|
|
184
|
-
return !!this.hint && !this.isShowingError;
|
|
185
|
-
},
|
|
186
|
-
isShowingHeader() {
|
|
187
|
-
var _a;
|
|
188
|
-
return this.isShowingFullscreen || this.$slots.label || this.$slots.actions || ((_a = this.$scopedSlots) === null || _a === void 0 ? void 0 : _a.actions);
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
watch: {
|
|
192
|
-
modelValue(value) {
|
|
193
|
-
if (this.editor.composing) return;
|
|
194
|
-
if (this.editor.state.doc.toString() === value) return;
|
|
195
|
-
const previous = this.editor.state.selection;
|
|
196
|
-
this.editor.setState(EditorState.create({
|
|
197
|
-
doc: value,
|
|
198
|
-
extensions: this.localExtensions,
|
|
199
|
-
selection: previous.ranges.some(range => range.to > value.length) ? {
|
|
200
|
-
anchor: value.length
|
|
201
|
-
} : previous
|
|
202
|
-
}));
|
|
203
|
-
},
|
|
204
|
-
isFullscreen(value) {
|
|
205
|
-
if (value) {
|
|
206
|
-
this.fullscreenTarget.append(this.editor.dom);
|
|
207
|
-
} else {
|
|
208
|
-
this.target.append(this.editor.dom);
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
localExtensions() {
|
|
212
|
-
this.updateEditorState();
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
mounted() {
|
|
216
|
-
this.updateEditorState();
|
|
217
|
-
this.target.append(this.editor.dom);
|
|
218
|
-
},
|
|
219
|
-
beforeUnmount() {
|
|
220
|
-
var _a;
|
|
221
|
-
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
222
|
-
},
|
|
223
|
-
methods: {
|
|
224
|
-
updateEditorState() {
|
|
225
|
-
this.editor.setState(EditorState.create({
|
|
226
|
-
doc: this.modelValue,
|
|
227
|
-
extensions: this.localExtensions
|
|
228
|
-
}));
|
|
229
|
-
},
|
|
230
|
-
toggleFullscreen(value) {
|
|
231
|
-
this.isFullscreen = value === undefined ? !this.isFullscreen : value;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
export { script as s };
|