@onereach/ui-components 4.7.0-beta.2811.0 → 4.8.0-beta.2836.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/{v3/_baseAssignValue-22e630c1.js → v2/_baseAssignValue-008b033a.js} +1 -1
- package/dist/bundled/v2/{_baseIsEqual-a1cc156c.js → _baseIsEqual-9edac039.js} +5 -5
- package/dist/bundled/v2/_commonjsHelpers-6584e42b.js +11 -0
- package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +6 -5
- package/dist/bundled/v2/components/OrAvatar/index.js +6 -5
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v2/components/OrBottomSheetV3/index.js +2 -2
- package/dist/bundled/v2/components/OrButtonV2/OrButton.js +6 -5
- package/dist/bundled/v2/components/OrButtonV2/index.js +6 -5
- package/dist/bundled/v2/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v2/components/OrButtonV3/index.js +2 -2
- package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +7 -6
- package/dist/bundled/v2/components/OrCardCollection/index.js +7 -6
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -2
- package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +6 -5
- package/dist/bundled/v2/components/OrCarousel/index.js +6 -5
- package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +6 -5
- package/dist/bundled/v2/components/OrCheckbox/index.js +6 -5
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +2 -2
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +2 -2
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -2
- package/dist/bundled/v2/components/OrCheckboxV3/index.js +2 -2
- package/dist/bundled/v2/components/OrChip/OrChip.js +6 -5
- package/dist/bundled/v2/components/OrChip/index.js +6 -5
- package/dist/bundled/v2/components/OrChips/OrChips.js +6 -5
- package/dist/bundled/v2/components/OrChips/index.js +6 -5
- package/dist/bundled/v2/components/OrCode/OrCode.js +14 -3799
- package/dist/bundled/v2/components/OrCode/index.js +14 -9
- package/dist/bundled/v2/components/OrCode/lang.js +3941 -3
- package/dist/bundled/v2/components/OrCode/theme.js +2 -1
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +6 -5
- package/dist/bundled/v2/components/OrCollapse/index.js +6 -5
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +8 -7
- package/dist/bundled/v2/components/OrColorPicker/index.js +8 -7
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +10 -8
- package/dist/bundled/v2/components/OrConfirm/index.js +10 -8
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrConfirmV3/index.js +3 -3
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +4 -4
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +4 -4
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +10 -9
- package/dist/bundled/v2/components/OrDateTimePicker/index.js +10 -9
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +5 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +5 -5
- package/dist/bundled/v2/components/OrFloating/OrFloating.js +6 -5
- package/dist/bundled/v2/components/OrFloating/index.js +6 -5
- package/dist/bundled/v2/components/OrIcon/OrIcon.js +6 -5
- package/dist/bundled/v2/components/OrIcon/index.js +6 -5
- package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -5
- package/dist/bundled/v2/components/OrIconButtonV2/index.js +6 -5
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -2
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -2
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +8 -7
- package/dist/bundled/v2/components/OrInlineTextEdit/index.js +8 -7
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -2
- package/dist/bundled/v2/components/OrInput/OrInput.js +6 -5
- package/dist/bundled/v2/components/OrInput/index.js +6 -5
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v2/components/OrInputV3/index.js +2 -2
- package/dist/bundled/v2/components/OrList/OrList.js +10 -9
- package/dist/bundled/v2/components/OrList/index.js +10 -9
- package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +10 -9
- package/dist/bundled/v2/components/OrListOfInputs/index.js +10 -9
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +2 -2
- package/dist/bundled/v2/components/OrLoaderV3/index.js +2 -2
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v2/components/OrMenuV3/index.js +2 -2
- package/dist/bundled/v2/components/OrModal/OrModal.js +10 -1352
- package/dist/bundled/v2/components/OrModal/index.js +9 -7
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +4 -4
- package/dist/bundled/v2/components/OrModalV3/index.js +2 -2
- package/dist/bundled/v2/components/OrNotification/OrNotification.js +6 -5
- package/dist/bundled/v2/components/OrNotification/index.js +6 -5
- package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -2
- package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +6 -5
- package/dist/bundled/v2/components/OrNumberInput/index.js +6 -5
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +8 -7
- package/dist/bundled/v2/components/OrOverflowMenu/index.js +8 -7
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v2/components/OrOverlayV3/index.js +2 -2
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v2/components/OrPaginationV3/index.js +2 -2
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +8 -7
- package/dist/bundled/v2/components/OrPassword/index.js +8 -7
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v2/components/OrPopoverV3/index.js +2 -2
- package/dist/bundled/v2/components/OrProgress/OrProgress.js +6 -5
- package/dist/bundled/v2/components/OrProgress/index.js +6 -5
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +8 -7
- package/dist/bundled/v2/components/OrProgressV3/index.js +8 -7
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +8 -7
- package/dist/bundled/v2/components/OrRadio/index.js +8 -7
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +2 -2
- package/dist/bundled/v2/components/OrRadioGroupV3/index.js +2 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2201 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +220 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +73 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +4 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +6 -0
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +7 -6
- package/dist/bundled/v2/components/OrSearch/index.js +7 -6
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v2/components/OrSearchV3/index.js +2 -2
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +11 -10
- package/dist/bundled/v2/components/OrSelect/index.js +11 -10
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v2/components/OrSelectV3/index.js +2 -2
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +2 -2
- package/dist/bundled/v2/components/OrSidebar/index.js +2 -2
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v2/components/OrSidebarV3/index.js +2 -2
- package/dist/bundled/v2/components/OrSkeleton/index.js +6 -5
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +6 -5
- package/dist/bundled/v2/components/OrSkeletonText/index.js +6 -5
- package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +6 -5
- package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +6 -5
- package/dist/bundled/v2/components/OrSkeletonV3/index.js +6 -5
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +8 -7
- package/dist/bundled/v2/components/OrSlider/index.js +8 -7
- package/dist/bundled/v2/components/OrStepper/OrStepper.js +6 -5
- package/dist/bundled/v2/components/OrStepper/index.js +6 -5
- package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +2 -2
- package/dist/bundled/v2/components/OrSwitchV3/index.js +2 -2
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v2/components/OrTabsV3/index.js +2 -2
- package/dist/bundled/v2/components/OrTag/OrTag.js +6 -5
- package/dist/bundled/v2/components/OrTag/index.js +6 -5
- package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v2/components/OrTagV3/index.js +2 -2
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v2/components/OrTagsV3/index.js +2 -2
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +6 -5
- package/dist/bundled/v2/components/OrTextarea/index.js +6 -5
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +6 -5
- package/dist/bundled/v2/components/OrTextbox/index.js +6 -5
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +4 -4
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +4 -4
- package/dist/bundled/v2/components/OrToast/OrToast.js +9 -8
- package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/index.js +2 -2
- package/dist/bundled/v2/components/OrToast/composable/useToast.js +2 -2
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrToast/index.js +11 -10
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +11 -10
- package/dist/bundled/v2/components/OrToastContainer/index.js +11 -10
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v2/components/OrToastContainerV3/index.js +2 -2
- package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -2
- package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/composable/index.js +2 -2
- package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +2 -2
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrToastV3/index.js +2 -2
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +6 -5
- package/dist/bundled/v2/components/OrTooltip/index.js +6 -5
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -2
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +36 -21
- package/dist/bundled/{v3/dom-700444b4.js → v2/dom-c98dce89.js} +2 -2
- package/dist/bundled/v2/{eq-95cd2573.js → eq-037e6fce.js} +1 -1
- package/dist/bundled/{v3/get-ab1b7d93.js → v2/get-b30afe93.js} +3 -3
- package/dist/bundled/v2/hooks/index.d.ts +1 -0
- package/dist/bundled/v2/hooks/index.js +6 -2
- package/dist/bundled/v2/hooks/useOverflow.d.ts +2 -2
- package/dist/bundled/v2/hooks/useOverflow.js +2 -2
- package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/index.js +2 -2
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -2
- package/dist/bundled/v2/hooks/useTheme.d.ts +2 -0
- package/dist/bundled/v2/hooks/useTheme.js +10125 -0
- package/dist/bundled/v2/{index-8a1b5b9c.js → index-06f6bbe4.js} +1 -1
- package/dist/bundled/v2/{index-cf2c3c27.js → index-0d224ae5.js} +3 -115
- package/dist/bundled/v2/index-80a3a4f4.js +9714 -0
- package/dist/bundled/v2/index-85c2efe8.js +7122 -0
- package/dist/bundled/v2/{index-6d94f832.js → index-af414338.js} +2 -2
- package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-7af61a76.js → v2/index-d92d0b48.js} +14 -235
- package/dist/bundled/v2/{index-82718479.js → index-dac0fb7c.js} +1 -1
- package/dist/bundled/v2/{lang-0fb8f78b.js → index-e9f6b2d8.js} +73 -4009
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +42 -24
- package/dist/bundled/v2/{isArrayLike-e46b8eac.js → isArrayLike-61275a05.js} +1 -1
- package/dist/bundled/v2/{isEqual-44382965.js → isEqual-8bbb1110.js} +1 -1
- package/dist/bundled/{v3/isObject-fe8b81fd.js → v2/isObject-08fab135.js} +1 -1
- package/dist/bundled/v2/markdown-c78b4891.js +17977 -0
- package/dist/bundled/{v3/range-6f26eda4.js → v2/range-637f1361.js} +4 -4
- package/dist/bundled/{v3/round-f34440f4.js → v2/round-4a894f03.js} +4 -4
- package/dist/bundled/{v3/toFinite-74227610.js → v2/toFinite-675db18a.js} +1 -1
- package/dist/bundled/v2/{toInteger-2fd112a9.js → toInteger-27595771.js} +1 -1
- package/dist/bundled/{v3/toString-f3196832.js → v2/toString-a72d5149.js} +1 -1
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-6e26795e.js → v2/useFocusTrap-c1384da1.js} +4 -100
- package/dist/bundled/v2/utils/functions/dom.js +6 -5
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-2a494943.js → OrAvatar.vue_vue_type_script_lang-36439ec1.js} +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-2f9406a6.js → OrBottomSheet.vue_vue_type_script_lang-a4e73f9e.js} +2 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-af5ff967.js → OrButton.vue_vue_type_script_lang-d31ada75.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5ae410e5.js → OrButton.vue_vue_type_script_lang-fc3b3109.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-86c25f0f.js → OrCardCollection.vue_vue_type_script_lang-0b7357dc.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-decf25ee.js → OrCardCollection.vue_vue_type_script_lang-d1cba987.js} +4 -4
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-272cb9c9.js → OrCarousel.vue_vue_type_script_lang-cfd11d11.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-a6d72885.js → OrCheckbox.vue_vue_type_script_lang-0fcd7886.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-b1dd62bd.js → OrCheckbox.vue_vue_type_script_lang-579d41cf.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-b4421b8d.js → OrCheckboxGroup.vue_vue_type_script_lang-bf90c3cc.js} +2 -2
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-c7beacdf.js → OrCheckboxTree.vue_vue_type_script_lang-96fce5bf.js} +4 -4
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-a182e324.js → OrChip.vue_vue_type_script_lang-fcda103b.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-9e98c258.js → OrChips.vue_vue_type_script_lang-8d26707d.js} +1 -1
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-22d2a803.js +237 -0
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-2a5c0929.js → OrCollapse.vue_vue_type_script_lang-00da895c.js} +1 -1
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-6143f82f.js → OrColorPicker.vue_vue_type_script_lang-476f49f1.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ac591c04.js → OrConfirm.vue_vue_type_script_lang-39a1bd4d.js} +6 -6
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-cdd89236.js → OrConfirm.vue_vue_type_script_lang-b7cc200c.js} +6 -6
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-b9052966.js → OrDatePicker.vue_vue_type_script_lang-83dd873c.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-111a251e.js → OrDateTimePicker.vue_vue_type_script_lang-77880140.js} +7 -7
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-741b8048.js → OrDateTimePicker.vue_vue_type_script_lang-77e069a1.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-6c5e416a.js → OrDateTimePickerMonthSelect-3348fba1.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-894382f9.js → OrDateTimePickerPopoverHeader-cbe4de91.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-b04942c5.js → OrDateTimePickerTimeSelect-c2ad08b5.js} +1 -1
- package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d419627c.js → OrFloating.vue_vue_type_script_lang-8bc114e8.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-cd2da378.js → OrIcon.vue_vue_type_script_lang-52900ff4.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-d1496a81.js → OrIconButton.vue_vue_type_script_lang-416cbbd3.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-743eb1eb.js → OrIconButton.vue_vue_type_script_lang-a32f0635.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-2df002e8.js → OrInlineInput.vue_vue_type_script_lang-d34f84b1.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-1e78da3c.js → OrInlineTextEdit.vue_vue_type_script_lang-7955bdac.js} +4 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-139602f1.js → OrInlineTextarea.vue_vue_type_script_lang-2f0d13e0.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-30a2b358.js → OrInput.vue_vue_type_script_lang-2680e4e1.js} +2 -2
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-bf9fa981.js → OrInput.vue_vue_type_script_lang-f887102b.js} +2 -2
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-ccab1c75.js → OrList.vue_vue_type_script_lang-cb8806b2.js} +11 -11
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-32d935ae.js → OrListOfInputs.vue_vue_type_script_lang-14a99046.js} +4 -4
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-c1b5372a.js → OrLoader.vue_vue_type_script_lang-1e4c32ee.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-90d57815.js → OrMenu.vue_vue_type_script_lang-2958c018.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-910b80a1.js → OrModal.vue_vue_type_script_lang-a84affbb.js} +2 -2
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-b716f9f7.js +101 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-3f6dd187.js → OrNotification.vue_vue_type_script_lang-564035a6.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-f414a938.js → OrNotification.vue_vue_type_script_lang-6d6d3de9.js} +1 -1
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-1fb535e6.js → OrNumberInput.vue_vue_type_script_lang-e904d247.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-fb64f2d0.js → OrOverflowMenu.vue_vue_type_script_lang-396e26c0.js} +5 -5
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-93864f05.js → OrOverlay.vue_vue_type_script_lang-4a4c532b.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-4d9cc1c9.js → OrPagination.vue_vue_type_script_lang-d29f6b11.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-d8bfee83.js → OrPassword.vue_vue_type_script_lang-ea54f428.js} +3 -3
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-dca9481d.js → OrPopover.vue_vue_type_script_lang-00135a32.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-1c15f38e.js → OrProgress.vue_vue_type_script_lang-9c13f877.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-a99362ae.js → OrProgress.vue_vue_type_script_lang-d4cf52da.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-3a551734.js → OrRadio.vue_vue_type_script_lang-5e642c5f.js} +2 -2
- package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-5734ced2.js → OrRadioGroup.vue_vue_type_script_lang-4b4d1420.js} +1 -1
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-9bbcc18a.js +1889 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ba26f3af.js → OrSearch.vue_vue_type_script_lang-14e7fd28.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-82b7b602.js → OrSearch.vue_vue_type_script_lang-3e7729fe.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-a156c8b5.js → OrSelect.vue_vue_type_script_lang-19dc9748.js} +4 -4
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c9547f1b.js → OrSelect.vue_vue_type_script_lang-5bdf06cb.js} +11 -11
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-55b5ffb4.js → OrSidebar.vue_vue_type_script_lang-2681fb99.js} +1 -1
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-3914fce0.js → OrSidebar.vue_vue_type_script_lang-c96d5866.js} +2 -2
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js → OrSkeletonText.vue_vue_type_script_lang-36cfe2f4.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js → OrSkeletonText.vue_vue_type_script_lang-5cf21df0.js} +1 -1
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-22cc5cd5.js → OrSlider.vue_vue_type_script_lang-d933ca0c.js} +3 -3
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-67408a1a.js → OrStepper.vue_vue_type_script_lang-d4259c67.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-32427513.js → OrSwitch.vue_vue_type_script_lang-cde58199.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-4c2cecd7.js → OrTabs.vue_vue_type_script_lang-d4356af4.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-ce916e72.js → OrTag.vue_vue_type_script_lang-21f4b080.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-cbb4a16d.js → OrTag.vue_vue_type_script_lang-2e2393a5.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-1f1278ce.js → OrTags.vue_vue_type_script_lang-dea58dbe.js} +3 -3
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-1ab55f91.js → OrTextarea.vue_vue_type_script_lang-1585e4e5.js} +2 -2
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-1ec469f0.js → OrTextbox.vue_vue_type_script_lang-02b1c369.js} +3 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a03960c6.js → OrTimePicker.vue_vue_type_script_lang-77e08a6d.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-592e1632.js → OrToastContainer.vue_vue_type_script_lang-364ee300.js} +1 -1
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-9f5a5d56.js → OrToastContainer.vue_vue_type_script_lang-b1bb24ab.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-a06d73f0.js → OrTooltip.vue_vue_type_script_lang-05d89296.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-44e9f7e4.js → OrTooltip.vue_vue_type_script_lang-50478e4b.js} +1 -1
- package/dist/bundled/{v2/_baseAssignValue-22e630c1.js → v3/_baseAssignValue-008b033a.js} +1 -1
- package/dist/bundled/v3/{_baseIsEqual-a1cc156c.js → _baseIsEqual-9edac039.js} +5 -5
- package/dist/bundled/v3/_commonjsHelpers-6584e42b.js +11 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +10 -9
- package/dist/bundled/v3/components/OrAvatar/index.js +9 -8
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +5 -5
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +4 -4
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +10 -9
- package/dist/bundled/v3/components/OrButtonV2/index.js +11 -10
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +5 -5
- package/dist/bundled/v3/components/OrButtonV3/index.js +4 -4
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +16 -15
- package/dist/bundled/v3/components/OrCardCollection/index.js +15 -14
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +14 -14
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +13 -13
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +10 -9
- package/dist/bundled/v3/components/OrCarousel/index.js +9 -8
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +10 -9
- package/dist/bundled/v3/components/OrCheckbox/index.js +9 -8
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +8 -8
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +7 -7
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +7 -7
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +6 -6
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -4
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +3 -3
- package/dist/bundled/v3/components/OrChip/OrChip.js +10 -9
- package/dist/bundled/v3/components/OrChip/index.js +9 -8
- package/dist/bundled/v3/components/OrChips/OrChips.js +11 -10
- package/dist/bundled/v3/components/OrChips/index.js +10 -9
- package/dist/bundled/v3/components/OrCode/OrCode.js +22 -17
- package/dist/bundled/v3/components/OrCode/index.js +20 -15
- package/dist/bundled/v3/components/OrCode/lang.js +3941 -3
- package/dist/bundled/v3/components/OrCode/theme.js +2 -1
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +8 -7
- package/dist/bundled/v3/components/OrCollapse/index.js +7 -6
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +11 -10
- package/dist/bundled/v3/components/OrColorPicker/index.js +10 -9
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +20 -18
- package/dist/bundled/v3/components/OrConfirm/index.js +19 -17
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +13 -13
- package/dist/bundled/v3/components/OrConfirmV3/index.js +12 -12
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +14 -14
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +13 -13
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +17 -16
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +16 -15
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +15 -15
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +14 -14
- package/dist/bundled/v3/components/OrFloating/OrFloating.js +8 -7
- package/dist/bundled/v3/components/OrFloating/index.js +7 -6
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +9 -8
- package/dist/bundled/v3/components/OrIcon/index.js +8 -7
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +11 -10
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +10 -9
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -8
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -9
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -8
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +15 -14
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +14 -13
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -9
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -8
- package/dist/bundled/v3/components/OrInput/OrInput.js +9 -8
- package/dist/bundled/v3/components/OrInput/index.js +8 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +10 -10
- package/dist/bundled/v3/components/OrInputV3/index.js +9 -9
- package/dist/bundled/v3/components/OrList/OrList.js +17 -16
- package/dist/bundled/v3/components/OrList/index.js +16 -15
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +20 -19
- package/dist/bundled/v3/components/OrListOfInputs/index.js +19 -18
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +4 -4
- package/dist/bundled/v3/components/OrLoaderV3/index.js +3 -3
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +7 -7
- package/dist/bundled/v3/components/OrMenuV3/index.js +6 -6
- package/dist/bundled/v3/components/OrModal/OrModal.js +15 -13
- package/dist/bundled/v3/components/OrModal/index.js +14 -12
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +9 -9
- package/dist/bundled/v3/components/OrModalV3/index.js +8 -8
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +12 -11
- package/dist/bundled/v3/components/OrNotification/index.js +11 -10
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -9
- package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -8
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +10 -9
- package/dist/bundled/v3/components/OrNumberInput/index.js +9 -8
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +15 -14
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +14 -13
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +4 -4
- package/dist/bundled/v3/components/OrOverlayV3/index.js +3 -3
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +10 -10
- package/dist/bundled/v3/components/OrPaginationV3/index.js +9 -9
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +16 -15
- package/dist/bundled/v3/components/OrPassword/index.js +15 -14
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +6 -6
- package/dist/bundled/v3/components/OrPopoverV3/index.js +5 -5
- package/dist/bundled/v3/components/OrProgress/OrProgress.js +8 -7
- package/dist/bundled/v3/components/OrProgress/index.js +7 -6
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +10 -9
- package/dist/bundled/v3/components/OrProgressV3/index.js +9 -8
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +10 -9
- package/dist/bundled/v3/components/OrRadio/index.js +9 -8
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +4 -4
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +3 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +286 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +220 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +89 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +4 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +6 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +15 -14
- package/dist/bundled/v3/components/OrSearch/index.js +14 -13
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +11 -11
- package/dist/bundled/v3/components/OrSearchV3/index.js +10 -10
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +17 -16
- package/dist/bundled/v3/components/OrSelect/index.js +16 -15
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +13 -13
- package/dist/bundled/v3/components/OrSelectV3/index.js +12 -12
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +4 -4
- package/dist/bundled/v3/components/OrSidebar/index.js +3 -3
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +9 -9
- package/dist/bundled/v3/components/OrSidebarV3/index.js +8 -8
- package/dist/bundled/v3/components/OrSkeleton/index.js +7 -6
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +8 -7
- package/dist/bundled/v3/components/OrSkeletonText/index.js +7 -6
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +8 -7
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +7 -6
- package/dist/bundled/v3/components/OrSkeletonV3/index.js +7 -6
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +12 -11
- package/dist/bundled/v3/components/OrSlider/index.js +11 -10
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +11 -10
- package/dist/bundled/v3/components/OrStepper/index.js +10 -9
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +5 -5
- package/dist/bundled/v3/components/OrSwitchV3/index.js +4 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +8 -8
- package/dist/bundled/v3/components/OrTabsV3/index.js +7 -7
- package/dist/bundled/v3/components/OrTag/OrTag.js +10 -9
- package/dist/bundled/v3/components/OrTag/index.js +9 -8
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -9
- package/dist/bundled/v3/components/OrTagV3/index.js +8 -8
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +12 -12
- package/dist/bundled/v3/components/OrTagsV3/index.js +11 -11
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +9 -8
- package/dist/bundled/v3/components/OrTextarea/index.js +8 -7
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +13 -12
- package/dist/bundled/v3/components/OrTextbox/index.js +12 -11
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +13 -13
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +12 -12
- package/dist/bundled/v3/components/OrToast/OrToast.js +14 -13
- package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToast/composable/index.js +2 -2
- package/dist/bundled/v3/components/OrToast/composable/useToast.js +2 -2
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToast/index.js +17 -16
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +18 -17
- package/dist/bundled/v3/components/OrToastContainer/index.js +17 -16
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +10 -10
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +9 -9
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +8 -8
- package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/composable/index.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/index.js +9 -9
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +9 -8
- package/dist/bundled/v3/components/OrTooltip/index.js +8 -7
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +7 -7
- package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -6
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +107 -91
- package/dist/bundled/{v2/dom-700444b4.js → v3/dom-c98dce89.js} +2 -2
- package/dist/bundled/v3/{eq-95cd2573.js → eq-037e6fce.js} +1 -1
- package/dist/bundled/{v2/get-ab1b7d93.js → v3/get-b30afe93.js} +3 -3
- package/dist/bundled/v3/hooks/index.d.ts +1 -0
- package/dist/bundled/v3/hooks/index.js +6 -2
- package/dist/bundled/v3/hooks/useOverflow.d.ts +2 -2
- package/dist/bundled/v3/hooks/useOverflow.js +2 -2
- package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v3/hooks/useResponsive/index.js +2 -2
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +2 -2
- package/dist/bundled/v3/hooks/useTheme.d.ts +2 -0
- package/dist/bundled/v3/hooks/useTheme.js +10125 -0
- package/dist/bundled/v3/{index-cf2c3c27.js → index-0d224ae5.js} +3 -115
- package/dist/bundled/v3/{index-5e8e7a46.js → index-40b35d94.js} +1 -1
- package/dist/bundled/v3/{index-51eb57bd.js → index-749f3444.js} +1 -1
- package/dist/bundled/v3/index-80a3a4f4.js +9714 -0
- package/dist/bundled/v3/index-85c2efe8.js +7122 -0
- package/dist/bundled/v3/{index-02705c13.js → index-ae815a7e.js} +2 -2
- package/dist/bundled/v3/index-d92d0b48.js +3805 -0
- package/dist/bundled/v3/{lang-0fb8f78b.js → index-e9f6b2d8.js} +73 -4009
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +113 -94
- package/dist/bundled/v3/{isArrayLike-e46b8eac.js → isArrayLike-61275a05.js} +1 -1
- package/dist/bundled/v3/{isEqual-44382965.js → isEqual-8bbb1110.js} +1 -1
- package/dist/bundled/{v2/isObject-fe8b81fd.js → v3/isObject-08fab135.js} +1 -1
- package/dist/bundled/v3/markdown-c78b4891.js +17977 -0
- package/dist/bundled/{v2/range-6f26eda4.js → v3/range-637f1361.js} +4 -4
- package/dist/bundled/{v2/round-f34440f4.js → v3/round-4a894f03.js} +4 -4
- package/dist/bundled/{v2/toFinite-74227610.js → v3/toFinite-675db18a.js} +1 -1
- package/dist/bundled/v3/{toInteger-2fd112a9.js → toInteger-27595771.js} +1 -1
- package/dist/bundled/{v2/toString-f3196832.js → v3/toString-a72d5149.js} +1 -1
- package/dist/bundled/v3/useFocusTrap-a61a80ac.js +1349 -0
- package/dist/bundled/v3/utils/functions/dom.js +6 -5
- package/dist/esm/v2/{OrBottomSheet-0592ccb2.js → OrBottomSheet-4244ab1c.js} +3 -1
- package/dist/esm/v2/{OrCardCollection-2b9bc050.js → OrCardCollection-20e66b6e.js} +4 -4
- package/dist/esm/v2/{OrCheckbox-3a8c93ad.js → OrCheckbox-41f2822d.js} +2 -0
- package/dist/esm/v2/{OrCheckboxGroup-b0d95dd6.js → OrCheckboxGroup-97cfcbda.js} +1 -1
- package/dist/esm/v2/{OrCheckboxTree-54b0fdc1.js → OrCheckboxTree-a7dc126c.js} +1 -1
- package/dist/esm/v2/{OrConfirm-3f19c23b.js → OrConfirm-65cc835a.js} +4 -2
- package/dist/esm/v2/{OrDatePicker-e991e7b2.js → OrDatePicker-9fb8810c.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-7bbd81d1.js → OrDateTimePicker-4032b280.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-d75a849c.js → OrDateTimePickerMonthSelect-a50f9f56.js} +3 -3
- package/dist/esm/v2/{OrIconButton-75972865.js → OrIconButton-24be052f.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-cf17dbb2.js → OrInlineInput-dd95fc1b.js} +3 -1
- package/dist/esm/v2/{OrInlineTextarea-2b0e2f39.js → OrInlineTextarea-194515fa.js} +3 -1
- package/dist/esm/v2/{OrInput-1a2b8ad9.js → OrInput-bfbb6522.js} +3 -1
- package/dist/esm/v2/{OrMenu-a35caf3b.js → OrMenu-a376f4a7.js} +3 -1
- package/dist/esm/v2/{OrModal-4aaae6bc.js → OrModal-e6acc87a.js} +4 -2
- package/dist/esm/v2/{OrNotification-a773f1df.js → OrNotification-650aab04.js} +1 -1
- package/dist/esm/v2/{OrOverlay-f791976c.js → OrOverlay-948346df.js} +2 -0
- package/dist/esm/v2/{OrPagination-3513165d.js → OrPagination-7be2401b.js} +4 -2
- package/dist/esm/v2/{OrPassword-1de0dc6c.js → OrPassword-681f8c53.js} +2 -0
- package/dist/esm/v2/{OrPopover-a8950b85.js → OrPopover-fff4a3a4.js} +3 -1
- package/dist/esm/v2/{OrProgress-102e3b5d.js → OrProgress-e079e857.js} +2 -0
- package/dist/esm/v2/{OrRadio-a812088f.js → OrRadio-23810acd.js} +2 -0
- package/dist/esm/v2/{OrRadioGroup-0de37d76.js → OrRadioGroup-0e1bf22c.js} +1 -1
- package/dist/esm/v2/OrRichTextEditor-c13801ba.js +919 -0
- package/dist/esm/v2/{OrSearch-19c157b3.js → OrSearch-9027a8e2.js} +1 -1
- package/dist/esm/v2/{OrSelect-991b8be3.js → OrSelect-b7e9eaa7.js} +6 -4
- package/dist/esm/v2/{OrSidebar-bfbb8b0a.js → OrSidebar-466d8244.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-a98037d6.js → OrSidebarCollapseButton-3009ed8e.js} +1 -1
- package/dist/esm/v2/{OrSwitch-9fae0bae.js → OrSwitch-cb97f4d3.js} +2 -0
- package/dist/esm/v2/{OrTabs-abf290af.js → OrTabs-cce59ff2.js} +2 -2
- package/dist/esm/v2/{OrTag-aa46cecd.js → OrTag-6a60ef87.js} +1 -1
- package/dist/esm/v2/{OrTags-2a567e79.js → OrTags-e4d6bf08.js} +4 -2
- package/dist/esm/v2/{OrTextarea-e5c66426.js → OrTextarea-01df0715.js} +2 -0
- package/dist/esm/v2/{OrTextbox-c85d7fe6.js → OrTextbox-a937432f.js} +2 -0
- package/dist/esm/v2/{OrTimePicker-766637cb.js → OrTimePicker-7cbcc2c0.js} +2 -2
- package/dist/esm/v2/{OrTooltip-0dc63c1a.js → OrTooltip-ab6c05c5.js} +3 -1
- package/dist/esm/v2/codemirrorView-be2c7423.js +353 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +62 -36
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +4 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -9
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +5 -3
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +4 -2
- package/dist/esm/v2/components/or-checkbox-v3/index.js +3 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +9 -7
- package/dist/esm/v2/components/or-date-picker-v3/index.js +10 -8
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -8
- package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -5
- package/dist/esm/v2/components/or-inline-input-v3/index.js +8 -6
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +8 -6
- package/dist/esm/v2/components/or-input-v3/index.js +8 -6
- package/dist/esm/v2/components/or-menu-v3/index.js +6 -4
- package/dist/esm/v2/components/or-modal-v3/index.js +8 -6
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -6
- package/dist/esm/v2/components/or-overlay-v3/index.js +3 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -5
- package/dist/esm/v2/components/or-password/index.js +3 -1
- package/dist/esm/v2/components/or-popover-v3/index.js +5 -3
- package/dist/esm/v2/components/or-progress-v3/index.js +3 -1
- package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -2
- package/dist/esm/v2/components/or-radio-v3/index.js +3 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +220 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +62 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +4 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v2/components/or-search-v3/index.js +9 -7
- package/dist/esm/v2/components/or-select-v3/index.js +11 -9
- package/dist/esm/v2/components/or-sidebar-v3/index.js +9 -7
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +8 -6
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -6
- package/dist/esm/v2/components/or-switch-v3/index.js +3 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +7 -5
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -6
- package/dist/esm/v2/components/or-tags-v3/index.js +9 -7
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -1
- package/dist/esm/v2/components/or-textbox/index.js +3 -1
- package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -6
- package/dist/esm/v2/components/or-toast-v3/index.js +8 -6
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -6
- package/dist/esm/v2/components/or-tooltip-v3/index.js +6 -4
- package/dist/esm/v2/hooks/index.d.ts +1 -0
- package/dist/esm/v2/hooks/index.js +3 -0
- package/dist/esm/v2/hooks/useOverflow.d.ts +2 -2
- package/dist/esm/v2/hooks/useTheme.d.ts +2 -0
- package/dist/esm/v2/index.js +63 -36
- package/dist/esm/v2/{types-f30860ee.js → types-08ab4707.js} +3 -1
- package/dist/esm/v2/useTheme-e23d13c8.js +9 -0
- package/dist/esm/v3/{OrBottomSheet-a39fb331.js → OrBottomSheet-e9463e4d.js} +3 -1
- package/dist/esm/v3/{OrCardCollection-3d652a34.js → OrCardCollection-dbe7dac6.js} +4 -4
- package/dist/esm/v3/{OrCheckbox-7093e9c2.js → OrCheckbox-2194e473.js} +2 -0
- package/dist/esm/v3/{OrCheckboxGroup-f755d216.js → OrCheckboxGroup-6c36527f.js} +1 -1
- package/dist/esm/v3/{OrCheckboxTree-99f6eaec.js → OrCheckboxTree-1873a941.js} +1 -1
- package/dist/esm/v3/{OrConfirm-cb0b2b78.js → OrConfirm-104754d0.js} +4 -2
- package/dist/esm/v3/{OrDatePicker-6a44ad41.js → OrDatePicker-c12fab59.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-2cbcf8c7.js → OrDateTimePicker-ad360ebc.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-2f61d92f.js → OrDateTimePickerMonthSelect-16e3f5b9.js} +3 -3
- package/dist/esm/v3/{OrIconButton-e34a20eb.js → OrIconButton-c6d15a51.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-ad0d4264.js → OrInlineInput-48e936d2.js} +3 -1
- package/dist/esm/v3/{OrInlineTextarea-b5ec488d.js → OrInlineTextarea-3937421c.js} +3 -1
- package/dist/esm/v3/{OrInput-a9aeef6e.js → OrInput-14b88801.js} +3 -1
- package/dist/esm/v3/{OrMenu-f590d761.js → OrMenu-b90e6784.js} +3 -1
- package/dist/esm/v3/{OrModal-9dc09e95.js → OrModal-231fb401.js} +4 -2
- package/dist/esm/v3/{OrNotification-69031471.js → OrNotification-dde92a43.js} +1 -1
- package/dist/esm/v3/{OrOverlay-28952099.js → OrOverlay-489fdf76.js} +2 -0
- package/dist/esm/v3/{OrPagination-f3be120f.js → OrPagination-22356f86.js} +4 -2
- package/dist/esm/v3/{OrPassword-9192b9ea.js → OrPassword-cd8a3c46.js} +2 -0
- package/dist/esm/v3/{OrPopover-ebd57053.js → OrPopover-8ea2062a.js} +3 -1
- package/dist/esm/v3/{OrProgress-efa51d7b.js → OrProgress-a54a42c0.js} +2 -0
- package/dist/esm/v3/{OrRadio-a6c88f29.js → OrRadio-4f0026c9.js} +2 -0
- package/dist/esm/v3/{OrRadioGroup-5d1fe6fd.js → OrRadioGroup-d215409c.js} +1 -1
- package/dist/esm/v3/OrRichTextEditor-b7f30172.js +852 -0
- package/dist/esm/v3/{OrSearch-5576cf14.js → OrSearch-7bf5009e.js} +1 -1
- package/dist/esm/v3/{OrSelect-0b3ebce9.js → OrSelect-b7d87ded.js} +6 -4
- package/dist/esm/v3/{OrSidebar-303ef558.js → OrSidebar-84533704.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-d7f004df.js → OrSidebarCollapseButton-88a165e8.js} +1 -1
- package/dist/esm/v3/{OrSwitch-594f5a63.js → OrSwitch-ed9868db.js} +2 -0
- package/dist/esm/v3/{OrTabs-b6c8077c.js → OrTabs-ffb69679.js} +2 -2
- package/dist/esm/v3/{OrTag-4ac45254.js → OrTag-51d8f47d.js} +1 -1
- package/dist/esm/v3/{OrTags-de9f065e.js → OrTags-3ae4a908.js} +4 -2
- package/dist/esm/v3/{OrTextarea-93cf7da7.js → OrTextarea-0f9a2a27.js} +2 -0
- package/dist/esm/v3/{OrTextbox-56714f51.js → OrTextbox-8d2903db.js} +2 -0
- package/dist/esm/v3/{OrTimePicker-0fe72767.js → OrTimePicker-16a88b67.js} +2 -2
- package/dist/esm/v3/{OrTooltip-edb28095.js → OrTooltip-9a63f445.js} +3 -1
- package/dist/esm/v3/codemirrorView-be2c7423.js +353 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +62 -36
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +4 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -9
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +5 -3
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +4 -2
- package/dist/esm/v3/components/or-checkbox-v3/index.js +3 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +9 -7
- package/dist/esm/v3/components/or-date-picker-v3/index.js +10 -8
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +10 -8
- package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -5
- package/dist/esm/v3/components/or-inline-input-v3/index.js +8 -6
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +8 -6
- package/dist/esm/v3/components/or-input-v3/index.js +8 -6
- package/dist/esm/v3/components/or-menu-v3/index.js +6 -4
- package/dist/esm/v3/components/or-modal-v3/index.js +8 -6
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -6
- package/dist/esm/v3/components/or-overlay-v3/index.js +3 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -5
- package/dist/esm/v3/components/or-password/index.js +3 -1
- package/dist/esm/v3/components/or-popover-v3/index.js +5 -3
- package/dist/esm/v3/components/or-progress-v3/index.js +3 -1
- package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -2
- package/dist/esm/v3/components/or-radio-v3/index.js +3 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +220 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +60 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +4 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v3/components/or-search-v3/index.js +9 -7
- package/dist/esm/v3/components/or-select-v3/index.js +11 -9
- package/dist/esm/v3/components/or-sidebar-v3/index.js +9 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +8 -6
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -6
- package/dist/esm/v3/components/or-switch-v3/index.js +3 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +7 -5
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -6
- package/dist/esm/v3/components/or-tags-v3/index.js +9 -7
- package/dist/esm/v3/components/or-textarea-v3/index.js +3 -1
- package/dist/esm/v3/components/or-textbox/index.js +3 -1
- package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -6
- package/dist/esm/v3/components/or-toast-v3/index.js +8 -6
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -6
- package/dist/esm/v3/components/or-tooltip-v3/index.js +6 -4
- package/dist/esm/v3/hooks/index.d.ts +1 -0
- package/dist/esm/v3/hooks/index.js +3 -0
- package/dist/esm/v3/hooks/useOverflow.d.ts +2 -2
- package/dist/esm/v3/hooks/useTheme.d.ts +2 -0
- package/dist/esm/v3/index.js +63 -36
- package/dist/esm/v3/{types-60f3dd35.js → types-03758078.js} +3 -1
- package/dist/esm/v3/useTheme-e23d13c8.js +9 -0
- package/package.json +26 -4
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +761 -0
- package/src/components/or-rich-text-editor-v3/index.ts +2 -0
- package/src/components/or-rich-text-editor-v3/props.ts +4 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +53 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +213 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +120 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useElevation.ts +1 -4
- package/src/hooks/useOverflow.ts +3 -5
- package/src/hooks/useTheme.ts +7 -0
- package/src/shims-mdx.d.ts +4 -0
- package/src/shims-png.d.ts +2 -2
- package/src/shims-vue.d.ts +3 -2
- package/src/shims.d.ts +11 -2
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-769685bc.js → OrDateTimePickerMonthSelect-eb2c5c01.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-bc0df38f.js → OrDateTimePickerPopoverHeader-257ef8d8.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-e284797b.js → OrDateTimePickerTimeSelect-37dcd0a3.js} +0 -0
|
@@ -0,0 +1,852 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch, nextTick } from 'vue-demi';
|
|
2
|
+
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap';
|
|
3
|
+
import { useResizeObserver, onClickOutside } from '@vueuse/core';
|
|
4
|
+
import { defaultMarkdownSerializer, MarkdownSerializer } from 'prosemirror-markdown';
|
|
5
|
+
import { DOMParser as DOMParser$1 } from 'prosemirror-model';
|
|
6
|
+
import { marked } from 'marked';
|
|
7
|
+
import Paragraph from '@tiptap/extension-paragraph';
|
|
8
|
+
import BulletList from '@tiptap/extension-bullet-list';
|
|
9
|
+
import ListItem from '@tiptap/extension-list-item';
|
|
10
|
+
import OrderedList from '@tiptap/extension-ordered-list';
|
|
11
|
+
import Strike from '@tiptap/extension-strike';
|
|
12
|
+
import Italic from '@tiptap/extension-italic';
|
|
13
|
+
import HardBreak from '@tiptap/extension-hard-break';
|
|
14
|
+
import Bold from '@tiptap/extension-bold';
|
|
15
|
+
import CodeBlock from '@tiptap/extension-code-block';
|
|
16
|
+
import Blockquote from '@tiptap/extension-blockquote';
|
|
17
|
+
import Link from '@tiptap/extension-link';
|
|
18
|
+
import Highlight from '@tiptap/extension-highlight';
|
|
19
|
+
import Underline from '@tiptap/extension-underline';
|
|
20
|
+
import { s as script$1 } from './OrIconButton-c6d15a51.js';
|
|
21
|
+
import { s as script$2 } from './OrLabel-4da56db0.js';
|
|
22
|
+
import { s as script$4 } from './OrMenu-b90e6784.js';
|
|
23
|
+
import './OrPopover-8ea2062a.js';
|
|
24
|
+
import { s as script$3 } from './OrMenuItem-dbee450f.js';
|
|
25
|
+
import { s as script$5 } from './OrModal-231fb401.js';
|
|
26
|
+
import { s as script$6 } from './OrInput-14b88801.js';
|
|
27
|
+
import { s as script$7 } from './OrButton-c2b6aa9e.js';
|
|
28
|
+
import { Node, Editor, mergeAttributes } from '@tiptap/core';
|
|
29
|
+
import StarterKit from '@tiptap/starter-kit';
|
|
30
|
+
import Heading from '@tiptap/extension-heading';
|
|
31
|
+
import Placeholder from '@tiptap/extension-placeholder';
|
|
32
|
+
import { C as CodeMirrorView } from './codemirrorView-be2c7423.js';
|
|
33
|
+
import { minimalSetup } from 'codemirror';
|
|
34
|
+
import { javascript } from '@codemirror/lang-javascript';
|
|
35
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, withDirectives, vShow, vModelText, renderSlot } from 'vue';
|
|
36
|
+
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
37
|
+
|
|
38
|
+
const serializerNodes = {
|
|
39
|
+
...defaultMarkdownSerializer.nodes,
|
|
40
|
+
[Paragraph.name]: defaultMarkdownSerializer.nodes.paragraph,
|
|
41
|
+
[BulletList.name]: defaultMarkdownSerializer.nodes.bullet_list,
|
|
42
|
+
[ListItem.name]: defaultMarkdownSerializer.nodes.list_item,
|
|
43
|
+
[OrderedList.name]: defaultMarkdownSerializer.nodes.ordered_list,
|
|
44
|
+
[HardBreak.name]: defaultMarkdownSerializer.nodes.hard_break,
|
|
45
|
+
[CodeBlock.name]: defaultMarkdownSerializer.nodes.code_block,
|
|
46
|
+
[Blockquote.name]: defaultMarkdownSerializer.nodes.blockquote
|
|
47
|
+
};
|
|
48
|
+
const serializerMarks = {
|
|
49
|
+
...defaultMarkdownSerializer.marks,
|
|
50
|
+
[Bold.name]: defaultMarkdownSerializer.marks.strong,
|
|
51
|
+
[Strike.name]: {
|
|
52
|
+
open: '~~',
|
|
53
|
+
close: '~~',
|
|
54
|
+
mixable: true,
|
|
55
|
+
expelEnclosingWhitespace: true
|
|
56
|
+
},
|
|
57
|
+
[Italic.name]: {
|
|
58
|
+
open: ' _',
|
|
59
|
+
close: '_ ',
|
|
60
|
+
mixable: true,
|
|
61
|
+
expelEnclosingWhitespace: true
|
|
62
|
+
},
|
|
63
|
+
[Highlight.name]: {
|
|
64
|
+
open: '==',
|
|
65
|
+
close: '==',
|
|
66
|
+
mixable: true,
|
|
67
|
+
expelEnclosingWhitespace: true
|
|
68
|
+
},
|
|
69
|
+
[Underline.name]: {
|
|
70
|
+
open: '',
|
|
71
|
+
close: '',
|
|
72
|
+
mixable: true,
|
|
73
|
+
expelEnclosingWhitespace: true
|
|
74
|
+
},
|
|
75
|
+
[Link.name]: {
|
|
76
|
+
open(state, mark, parent, index) {
|
|
77
|
+
return isPlainURL(mark, parent, index, 1) ? '<' : '[';
|
|
78
|
+
},
|
|
79
|
+
close(state, mark, parent, index) {
|
|
80
|
+
const href = mark.attrs.canonicalSrc || mark.attrs.href;
|
|
81
|
+
return isPlainURL(mark, parent, index, -1) ? '>' : `](${state.esc(href)}${mark.attrs.title ? ` ${state.quote(mark.attrs.title)}` : ''})`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const isPlainURL = (link, parent, index, side) => {
|
|
86
|
+
if (link.attrs.title || !/^\w+:/.test(link.attrs.href)) return false;
|
|
87
|
+
const content = parent.child(index + (side < 0 ? -1 : 0));
|
|
88
|
+
if (!content.isText || content.text !== link.attrs.href || content.marks[content.marks.length - 1] !== link) return false;
|
|
89
|
+
if (index === (side < 0 ? 1 : parent.childCount - 1)) return true;
|
|
90
|
+
const next = parent.child(index + (side < 0 ? -2 : 1));
|
|
91
|
+
return !link.isInSet(next.marks);
|
|
92
|
+
};
|
|
93
|
+
const serialize = (schema, content) => {
|
|
94
|
+
const proseMirrorDocument = schema.nodeFromJSON(content);
|
|
95
|
+
const serializer = new MarkdownSerializer(serializerNodes, serializerMarks);
|
|
96
|
+
return serializer.serialize(proseMirrorDocument, {
|
|
97
|
+
tightLists: true
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
const deserialize = (schema, content) => {
|
|
101
|
+
if (!content) return null;
|
|
102
|
+
const html = marked(content, {
|
|
103
|
+
gfm: true,
|
|
104
|
+
breaks: true
|
|
105
|
+
});
|
|
106
|
+
if (!html) return null;
|
|
107
|
+
const parser = new DOMParser();
|
|
108
|
+
const {
|
|
109
|
+
body
|
|
110
|
+
} = parser.parseFromString(html, 'text/html');
|
|
111
|
+
// append original source as a comment that nodes can access
|
|
112
|
+
body.append(document.createComment(content));
|
|
113
|
+
const state = DOMParser$1.fromSchema(schema).parse(body);
|
|
114
|
+
return state.toJSON();
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const EditorContainer = [
|
|
118
|
+
// Colors
|
|
119
|
+
'border-outline', 'focus-within:theme-background-primary-translucent', 'focus-within:theme-border-1-primary', 'focus-within:theme-outline-2-primary',
|
|
120
|
+
// Sizing
|
|
121
|
+
'border-1', 'rounded-md', 'w-full'];
|
|
122
|
+
const ToolbarContainer = [
|
|
123
|
+
// Layout
|
|
124
|
+
'flex',
|
|
125
|
+
//Spacing
|
|
126
|
+
'py-sm',
|
|
127
|
+
//Sizing
|
|
128
|
+
'border-b-1',
|
|
129
|
+
//Colors
|
|
130
|
+
'border-b-outline'];
|
|
131
|
+
const Toolbar = [
|
|
132
|
+
// Layout
|
|
133
|
+
'flex',
|
|
134
|
+
// Spacing
|
|
135
|
+
'px-sm', 'gap-md',
|
|
136
|
+
// Sizing
|
|
137
|
+
'border-l-1',
|
|
138
|
+
//Colors
|
|
139
|
+
'border-r-disabled',
|
|
140
|
+
// Last child
|
|
141
|
+
'first-of-type:border-none'];
|
|
142
|
+
const ToolbarButton = [
|
|
143
|
+
// Typography
|
|
144
|
+
'text-on-disabled'];
|
|
145
|
+
const ToolbarButtonFocused = [
|
|
146
|
+
// Typography
|
|
147
|
+
'text-outline'];
|
|
148
|
+
const EditorInput = [
|
|
149
|
+
// Typography
|
|
150
|
+
'typography-body-2-regular',
|
|
151
|
+
// Sizing
|
|
152
|
+
'min-h-[88px]'];
|
|
153
|
+
|
|
154
|
+
var Formats;
|
|
155
|
+
(function (Formats) {
|
|
156
|
+
Formats["Markdown"] = "markdown";
|
|
157
|
+
Formats["Markup"] = "markup";
|
|
158
|
+
})(Formats || (Formats = {}));
|
|
159
|
+
|
|
160
|
+
var codemirrorNode = Node.create({
|
|
161
|
+
name: 'codeBlock',
|
|
162
|
+
content: 'text*',
|
|
163
|
+
marks: '',
|
|
164
|
+
group: 'block',
|
|
165
|
+
code: true,
|
|
166
|
+
defining: true,
|
|
167
|
+
isolating: true,
|
|
168
|
+
parseHTML() {
|
|
169
|
+
return [{
|
|
170
|
+
tag: 'pre',
|
|
171
|
+
preserveWhitespace: 'full'
|
|
172
|
+
}];
|
|
173
|
+
},
|
|
174
|
+
renderHTML() {
|
|
175
|
+
return ['pre', ['code', 0]];
|
|
176
|
+
},
|
|
177
|
+
addNodeView() {
|
|
178
|
+
return _ref => {
|
|
179
|
+
let {
|
|
180
|
+
node,
|
|
181
|
+
editor,
|
|
182
|
+
getPos
|
|
183
|
+
} = _ref;
|
|
184
|
+
return new CodeMirrorView({
|
|
185
|
+
node,
|
|
186
|
+
view: editor.view,
|
|
187
|
+
getPos: getPos,
|
|
188
|
+
cmOptions: {
|
|
189
|
+
extensions: [minimalSetup, javascript()]
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
var script = defineComponent({
|
|
197
|
+
name: 'OrRichTextEditor',
|
|
198
|
+
components: {
|
|
199
|
+
OrIconButton: script$1,
|
|
200
|
+
OrLabel: script$2,
|
|
201
|
+
OrMenuItem: script$3,
|
|
202
|
+
OrMenu: script$4,
|
|
203
|
+
OrModal: script$5,
|
|
204
|
+
OrInput: script$6,
|
|
205
|
+
OrButton: script$7
|
|
206
|
+
},
|
|
207
|
+
inheritAttrs: false,
|
|
208
|
+
model: {
|
|
209
|
+
prop: 'modelValue',
|
|
210
|
+
event: 'update:modelValue'
|
|
211
|
+
},
|
|
212
|
+
props: {
|
|
213
|
+
modelValue: {
|
|
214
|
+
type: String,
|
|
215
|
+
default: undefined
|
|
216
|
+
},
|
|
217
|
+
toolbar: {
|
|
218
|
+
type: Array,
|
|
219
|
+
default: () => []
|
|
220
|
+
},
|
|
221
|
+
description: {
|
|
222
|
+
type: String,
|
|
223
|
+
default: ''
|
|
224
|
+
},
|
|
225
|
+
placeholder: {
|
|
226
|
+
type: String,
|
|
227
|
+
default: ''
|
|
228
|
+
},
|
|
229
|
+
autofocus: {
|
|
230
|
+
type: Boolean,
|
|
231
|
+
default: false
|
|
232
|
+
},
|
|
233
|
+
format: {
|
|
234
|
+
type: String,
|
|
235
|
+
default: Formats.Markup
|
|
236
|
+
},
|
|
237
|
+
fullHeight: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
default: false
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
emits: ['update:modelValue', 'input', 'file-upload'],
|
|
243
|
+
expose: ['root'],
|
|
244
|
+
setup(props, context) {
|
|
245
|
+
// Refs
|
|
246
|
+
const root = ref();
|
|
247
|
+
let editor = null;
|
|
248
|
+
const editorRef = ref();
|
|
249
|
+
const textareaRef = ref();
|
|
250
|
+
const containerRef = ref();
|
|
251
|
+
const toolbarRef = ref();
|
|
252
|
+
const moreButtonRef = ref();
|
|
253
|
+
const moreRef = ref();
|
|
254
|
+
const toolbarButtonRef = ref();
|
|
255
|
+
const menuRef = ref();
|
|
256
|
+
// isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
|
|
257
|
+
const isActive = ref({
|
|
258
|
+
bold: false,
|
|
259
|
+
italic: false,
|
|
260
|
+
underline: false,
|
|
261
|
+
strike: false,
|
|
262
|
+
bulletList: false,
|
|
263
|
+
orderedList: false,
|
|
264
|
+
link: false,
|
|
265
|
+
highlight: false,
|
|
266
|
+
redo: false,
|
|
267
|
+
undo: false,
|
|
268
|
+
codeBlock: false,
|
|
269
|
+
blockquote: false,
|
|
270
|
+
file: false,
|
|
271
|
+
source: false
|
|
272
|
+
});
|
|
273
|
+
const isFocused = ref(props.autofocus);
|
|
274
|
+
const headingLevels = [1, 2, 3, 4];
|
|
275
|
+
const activeHeadingLevel = ref(0);
|
|
276
|
+
const markdownOutput = ref('');
|
|
277
|
+
const isOpenLinkModal = ref(false);
|
|
278
|
+
const disableMarkdown = ref(false);
|
|
279
|
+
const text = ref('');
|
|
280
|
+
const link = ref('');
|
|
281
|
+
const countOfNotVisibleTools = ref(0);
|
|
282
|
+
const sourceValue = ref('');
|
|
283
|
+
let trap = useFocusTrap(editorRef, {
|
|
284
|
+
immediate: true,
|
|
285
|
+
fallbackFocus: '.container',
|
|
286
|
+
allowOutsideClick: true
|
|
287
|
+
});
|
|
288
|
+
const iconsEnum = ref({
|
|
289
|
+
bold: 'format_bold',
|
|
290
|
+
italic: 'format_italic',
|
|
291
|
+
underline: 'format_underlined',
|
|
292
|
+
strike: 'format_strikethrough',
|
|
293
|
+
bulletList: 'format_list_bulleted',
|
|
294
|
+
orderedList: 'format_list_numbered',
|
|
295
|
+
link: 'link',
|
|
296
|
+
highlight: 'highlight',
|
|
297
|
+
redo: 'redo',
|
|
298
|
+
undo: 'undo',
|
|
299
|
+
codeBlock: 'code_blocks',
|
|
300
|
+
blockquote: 'format_quote',
|
|
301
|
+
file: 'attach_file',
|
|
302
|
+
source: 'source_notes'
|
|
303
|
+
});
|
|
304
|
+
const iconTooltipsEnum = ref({
|
|
305
|
+
bold: 'Bold',
|
|
306
|
+
italic: 'Italic',
|
|
307
|
+
underline: 'Underline',
|
|
308
|
+
strike: 'Strike',
|
|
309
|
+
bulletList: 'Bulleted List',
|
|
310
|
+
orderedList: 'Numbered List',
|
|
311
|
+
link: 'Link',
|
|
312
|
+
highlight: 'Highlight',
|
|
313
|
+
redo: 'Redo',
|
|
314
|
+
undo: 'Undo',
|
|
315
|
+
codeBlock: 'Code Block',
|
|
316
|
+
blockquote: 'Quote',
|
|
317
|
+
file: 'File',
|
|
318
|
+
source: 'Source'
|
|
319
|
+
});
|
|
320
|
+
useResizeObserver(root, entries => {
|
|
321
|
+
var _a, _b;
|
|
322
|
+
const entry = entries[0];
|
|
323
|
+
const {
|
|
324
|
+
width
|
|
325
|
+
} = entry.contentRect;
|
|
326
|
+
if (containerRef.value && toolbarRef.value && toolbarLength.value) {
|
|
327
|
+
let lengthOfItem = 0;
|
|
328
|
+
lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
|
|
329
|
+
const count = width / lengthOfItem - 2;
|
|
330
|
+
countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
onMounted(() => {
|
|
334
|
+
editor = new Editor({
|
|
335
|
+
onUpdate: _ref => {
|
|
336
|
+
let {
|
|
337
|
+
editor
|
|
338
|
+
} = _ref;
|
|
339
|
+
isFocused.value = true;
|
|
340
|
+
setActiveFormats();
|
|
341
|
+
const html = editor.getHTML();
|
|
342
|
+
const text = editor.getText();
|
|
343
|
+
if (props.format === 'markdown') {
|
|
344
|
+
markdownOutput.value = serialize(editor.schema, editor.getJSON());
|
|
345
|
+
proxyModelValue.value = markdownOutput.value;
|
|
346
|
+
} else {
|
|
347
|
+
proxyModelValue.value = text === '' ? text : html;
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
onCreate: _ref2 => {
|
|
351
|
+
let {
|
|
352
|
+
editor
|
|
353
|
+
} = _ref2;
|
|
354
|
+
if (props.format === 'markdown') {
|
|
355
|
+
const deserialized = deserialize(editor.schema, proxyModelValue.value);
|
|
356
|
+
editor.commands.setContent(deserialized);
|
|
357
|
+
} else {
|
|
358
|
+
editor.commands.setContent(proxyModelValue.value);
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
element: editorRef.value,
|
|
362
|
+
autofocus: props.autofocus,
|
|
363
|
+
enableInputRules: true,
|
|
364
|
+
enablePasteRules: true,
|
|
365
|
+
extensions: [codemirrorNode, StarterKit.configure({
|
|
366
|
+
heading: false,
|
|
367
|
+
codeBlock: false
|
|
368
|
+
}), Heading.configure({
|
|
369
|
+
levels: headingLevels
|
|
370
|
+
}).extend({
|
|
371
|
+
levels: headingLevels,
|
|
372
|
+
renderHTML(_ref3) {
|
|
373
|
+
let {
|
|
374
|
+
node,
|
|
375
|
+
HTMLAttributes
|
|
376
|
+
} = _ref3;
|
|
377
|
+
return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
|
|
378
|
+
class: `typography-headline-${node.attrs.level}`
|
|
379
|
+
}), 0];
|
|
380
|
+
}
|
|
381
|
+
}), Underline, Link.configure({
|
|
382
|
+
openOnClick: true,
|
|
383
|
+
linkOnPaste: true,
|
|
384
|
+
autolink: false,
|
|
385
|
+
protocols: ['ftp', 'mailto', 'http', 'https'],
|
|
386
|
+
validate: href => /^https?:\/\//.test(href),
|
|
387
|
+
HTMLAttributes: {
|
|
388
|
+
class: 'text-primary cursor-pointer'
|
|
389
|
+
}
|
|
390
|
+
}), Highlight, Placeholder.configure({
|
|
391
|
+
placeholder: props.placeholder,
|
|
392
|
+
emptyEditorClass: 'is-editor-empty text-outline'
|
|
393
|
+
})],
|
|
394
|
+
editorProps: {
|
|
395
|
+
attributes: {
|
|
396
|
+
class: 'flex flex-col focus:outline-none gap-xs'
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
parseOptions: {
|
|
400
|
+
preserveWhitespace: true
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
setActiveFormats();
|
|
404
|
+
trap.activate();
|
|
405
|
+
});
|
|
406
|
+
onBeforeUnmount(() => {
|
|
407
|
+
editor === null || editor === void 0 ? void 0 : editor.destroy();
|
|
408
|
+
});
|
|
409
|
+
onClickOutside(root, () => {
|
|
410
|
+
isFocused.value = false;
|
|
411
|
+
trap.deactivate();
|
|
412
|
+
});
|
|
413
|
+
// Computed
|
|
414
|
+
const proxyModelValue = computed({
|
|
415
|
+
get: () => {
|
|
416
|
+
return props.modelValue;
|
|
417
|
+
},
|
|
418
|
+
set: value => {
|
|
419
|
+
context.emit('input', value);
|
|
420
|
+
context.emit('update:modelValue', value);
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
const getIndexOfHeading = computed(() => {
|
|
424
|
+
return props.toolbar.flat().indexOf('heading');
|
|
425
|
+
});
|
|
426
|
+
const headingIcon = computed(() => {
|
|
427
|
+
if (activeHeadingLevel.value && isActive.value.heading) {
|
|
428
|
+
return `format_h${activeHeadingLevel.value}`;
|
|
429
|
+
}
|
|
430
|
+
return 'format_paragraph';
|
|
431
|
+
});
|
|
432
|
+
const toolbarLength = computed(() => {
|
|
433
|
+
return props.toolbar.flat().length;
|
|
434
|
+
});
|
|
435
|
+
const notVisibleTools = computed(() => {
|
|
436
|
+
const count = countOfNotVisibleTools.value;
|
|
437
|
+
const toolbar = props.toolbar.flat();
|
|
438
|
+
let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
|
|
439
|
+
props.toolbar.forEach(tools => {
|
|
440
|
+
if (tools.some(item => notVisible.has(item))) {
|
|
441
|
+
tools.forEach(item => notVisible.add(item));
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
return notVisible;
|
|
445
|
+
});
|
|
446
|
+
//Methods
|
|
447
|
+
const handleEditorClick = () => {
|
|
448
|
+
var _a;
|
|
449
|
+
setActiveFormats();
|
|
450
|
+
isFocused.value = true;
|
|
451
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
452
|
+
activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
|
|
453
|
+
};
|
|
454
|
+
const isVisible = value => {
|
|
455
|
+
if (Array.isArray(value)) {
|
|
456
|
+
const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
|
|
457
|
+
return isHaveNotVisibleTools;
|
|
458
|
+
}
|
|
459
|
+
return !notVisibleTools.value.has(value);
|
|
460
|
+
};
|
|
461
|
+
const handleInput = event => {
|
|
462
|
+
const target = event.target;
|
|
463
|
+
const value = target.value;
|
|
464
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
|
|
465
|
+
markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
466
|
+
proxyModelValue.value = markdownOutput.value;
|
|
467
|
+
};
|
|
468
|
+
const handleToolbarClick = (item, level) => {
|
|
469
|
+
var _a, _b;
|
|
470
|
+
switch (item) {
|
|
471
|
+
case 'source':
|
|
472
|
+
disableMarkdown.value = !disableMarkdown.value;
|
|
473
|
+
sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
474
|
+
nextTick(() => {
|
|
475
|
+
var _a;
|
|
476
|
+
return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
477
|
+
});
|
|
478
|
+
break;
|
|
479
|
+
case 'bulletList':
|
|
480
|
+
case 'orderedList':
|
|
481
|
+
item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
|
|
482
|
+
break;
|
|
483
|
+
case 'link':
|
|
484
|
+
if (editor) {
|
|
485
|
+
const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
|
|
486
|
+
const {
|
|
487
|
+
from,
|
|
488
|
+
to,
|
|
489
|
+
empty
|
|
490
|
+
} = editor.state.selection;
|
|
491
|
+
const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
|
|
492
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? ((_b = editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.text) || '' : '';
|
|
493
|
+
text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
|
|
494
|
+
link.value = editor.getAttributes('link').href || '';
|
|
495
|
+
}
|
|
496
|
+
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
497
|
+
break;
|
|
498
|
+
case 'blockquote':
|
|
499
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
|
|
500
|
+
break;
|
|
501
|
+
case 'codeBlock':
|
|
502
|
+
if (!isActive.value['codeBlock']) {
|
|
503
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
|
|
504
|
+
language: 'javascript'
|
|
505
|
+
});
|
|
506
|
+
} else {
|
|
507
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
|
|
508
|
+
}
|
|
509
|
+
break;
|
|
510
|
+
case 'heading':
|
|
511
|
+
if (!level) {
|
|
512
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
|
|
513
|
+
level: 0
|
|
514
|
+
});
|
|
515
|
+
activeHeadingLevel.value = 0;
|
|
516
|
+
} else {
|
|
517
|
+
activeHeadingLevel.value = level;
|
|
518
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
|
|
519
|
+
level: level
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
523
|
+
break;
|
|
524
|
+
case 'undo':
|
|
525
|
+
case 'redo':
|
|
526
|
+
item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
|
|
527
|
+
break;
|
|
528
|
+
case 'file':
|
|
529
|
+
context.emit('file-upload');
|
|
530
|
+
break;
|
|
531
|
+
default:
|
|
532
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
|
|
533
|
+
break;
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
const attachLink = async () => {
|
|
537
|
+
var _a, _b;
|
|
538
|
+
// empty
|
|
539
|
+
if (link.value === '') {
|
|
540
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
541
|
+
}
|
|
542
|
+
const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
|
|
543
|
+
const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
|
|
544
|
+
const isLink = (_a = editor === null || editor === void 0 ? void 0 : editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
|
|
545
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? (_b = editor === null || editor === void 0 ? void 0 : editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.text : '';
|
|
546
|
+
if (link.value && isEmptySelection && !existedText) {
|
|
547
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
|
|
548
|
+
href: link.value,
|
|
549
|
+
target: '__blank'
|
|
550
|
+
}).command(_ref4 => {
|
|
551
|
+
let {
|
|
552
|
+
tr
|
|
553
|
+
} = _ref4;
|
|
554
|
+
const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
|
|
555
|
+
tr.insertText(preparedValue);
|
|
556
|
+
return true;
|
|
557
|
+
}).run();
|
|
558
|
+
}
|
|
559
|
+
if (link.value && existedText === text.value && isEmptySelection) {
|
|
560
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
|
|
561
|
+
href: link.value
|
|
562
|
+
}).run();
|
|
563
|
+
}
|
|
564
|
+
if (link.value && !isEmptySelection) {
|
|
565
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
|
|
566
|
+
href: link.value,
|
|
567
|
+
target: '__blank'
|
|
568
|
+
}).run();
|
|
569
|
+
}
|
|
570
|
+
text.value = '';
|
|
571
|
+
link.value = '';
|
|
572
|
+
isOpenLinkModal.value = false;
|
|
573
|
+
};
|
|
574
|
+
const discardLink = () => {
|
|
575
|
+
isOpenLinkModal.value = false;
|
|
576
|
+
};
|
|
577
|
+
const setActiveFormats = () => {
|
|
578
|
+
const toolbarList = props.toolbar.flat();
|
|
579
|
+
toolbarList.forEach(item => {
|
|
580
|
+
if (item === 'source') {
|
|
581
|
+
isActive.value[item] = disableMarkdown.value;
|
|
582
|
+
} else {
|
|
583
|
+
isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
// Styles
|
|
588
|
+
const rootStyles = computed(() => {
|
|
589
|
+
return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
|
|
590
|
+
});
|
|
591
|
+
const containerStyles = computed(() => {
|
|
592
|
+
return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
|
|
593
|
+
});
|
|
594
|
+
const toolbarContainerStyles = computed(() => {
|
|
595
|
+
return [...ToolbarContainer];
|
|
596
|
+
});
|
|
597
|
+
const toolbarStyles = computed(() => {
|
|
598
|
+
return [...Toolbar,
|
|
599
|
+
// 'overflow-x-hidden',
|
|
600
|
+
...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
|
|
601
|
+
});
|
|
602
|
+
const editorInputStyles = computed(() => {
|
|
603
|
+
return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
|
|
604
|
+
});
|
|
605
|
+
//Effects
|
|
606
|
+
watch(proxyModelValue, value => {
|
|
607
|
+
if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
|
|
608
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
|
|
609
|
+
}
|
|
610
|
+
if (props.format === 'markdown' && value !== markdownOutput.value) {
|
|
611
|
+
// const deserialized = deserialize(editor?.schema, value);
|
|
612
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
return {
|
|
616
|
+
editor,
|
|
617
|
+
editorRef,
|
|
618
|
+
toolbarRef,
|
|
619
|
+
containerRef,
|
|
620
|
+
toolbarButtonRef,
|
|
621
|
+
moreButtonRef,
|
|
622
|
+
textareaRef,
|
|
623
|
+
moreRef,
|
|
624
|
+
menuRef,
|
|
625
|
+
iconsEnum,
|
|
626
|
+
handleToolbarClick,
|
|
627
|
+
handleEditorClick,
|
|
628
|
+
isActive,
|
|
629
|
+
iconTooltipsEnum,
|
|
630
|
+
containerStyles,
|
|
631
|
+
toolbarContainerStyles,
|
|
632
|
+
toolbarStyles,
|
|
633
|
+
rootStyles,
|
|
634
|
+
root,
|
|
635
|
+
editorInputStyles,
|
|
636
|
+
getIndexOfHeading,
|
|
637
|
+
headingLevels,
|
|
638
|
+
headingIcon,
|
|
639
|
+
attachLink,
|
|
640
|
+
discardLink,
|
|
641
|
+
isOpenLinkModal,
|
|
642
|
+
text,
|
|
643
|
+
link,
|
|
644
|
+
isFocused,
|
|
645
|
+
isVisible,
|
|
646
|
+
countOfNotVisibleTools,
|
|
647
|
+
notVisibleTools,
|
|
648
|
+
handleInput,
|
|
649
|
+
proxyModelValue,
|
|
650
|
+
disableMarkdown,
|
|
651
|
+
sourceValue
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
const _hoisted_1 = ["activated"];
|
|
657
|
+
const _hoisted_2 = /*#__PURE__*/createElementVNode("p", {
|
|
658
|
+
class: "text-headline-2"
|
|
659
|
+
}, " Add Link ", -1 /* HOISTED */);
|
|
660
|
+
const _hoisted_3 = {
|
|
661
|
+
class: "flex ml-auto gap-md"
|
|
662
|
+
};
|
|
663
|
+
const _hoisted_4 = /*#__PURE__*/createElementVNode("p", null, "Cancel", -1 /* HOISTED */);
|
|
664
|
+
const _hoisted_5 = /*#__PURE__*/createElementVNode("p", null, "Save", -1 /* HOISTED */);
|
|
665
|
+
|
|
666
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
667
|
+
const _component_or_label = resolveComponent("or-label");
|
|
668
|
+
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
669
|
+
const _component_or_menu_item = resolveComponent("or-menu-item");
|
|
670
|
+
const _component_or_menu = resolveComponent("or-menu");
|
|
671
|
+
const _component_or_input = resolveComponent("or-input");
|
|
672
|
+
const _component_or_button = resolveComponent("or-button");
|
|
673
|
+
const _component_or_modal = resolveComponent("or-modal");
|
|
674
|
+
return openBlock(), createElementBlock("div", {
|
|
675
|
+
ref: "root",
|
|
676
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
677
|
+
}, [createVNode(_component_or_label, null, {
|
|
678
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.description), 1 /* TEXT */)]),
|
|
679
|
+
|
|
680
|
+
_: 1 /* STABLE */
|
|
681
|
+
}), createElementVNode("div", {
|
|
682
|
+
ref: "containerRef",
|
|
683
|
+
class: normalizeClass(_ctx.containerStyles),
|
|
684
|
+
onClick: _cache[4] || (_cache[4] = $event => _ctx.handleEditorClick())
|
|
685
|
+
}, [createElementVNode("div", {
|
|
686
|
+
ref: "toolbarRef",
|
|
687
|
+
class: normalizeClass(_ctx.toolbarContainerStyles)
|
|
688
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.toolbar, (tools, index) => {
|
|
689
|
+
return openBlock(), createElementBlock("div", {
|
|
690
|
+
key: index,
|
|
691
|
+
class: normalizeClass([..._ctx.toolbarStyles, {
|
|
692
|
+
'hidden': _ctx.isVisible(tools)
|
|
693
|
+
}])
|
|
694
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(tools, item => {
|
|
695
|
+
return openBlock(), createElementBlock("div", {
|
|
696
|
+
key: item,
|
|
697
|
+
class: normalizeClass(['flex gap-md', {
|
|
698
|
+
'hidden': !_ctx.isVisible(item)
|
|
699
|
+
}])
|
|
700
|
+
}, [item === 'heading' ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
701
|
+
key: 0,
|
|
702
|
+
ref_for: true,
|
|
703
|
+
ref: "toolbarButtonRef",
|
|
704
|
+
selected: _ctx.isActive[item],
|
|
705
|
+
disabled: !_ctx.isFocused,
|
|
706
|
+
tooltip: {
|
|
707
|
+
text: item,
|
|
708
|
+
placement: 'top'
|
|
709
|
+
},
|
|
710
|
+
icon: {
|
|
711
|
+
icon: _ctx.headingIcon,
|
|
712
|
+
variant: 'inherit',
|
|
713
|
+
size: 'm'
|
|
714
|
+
},
|
|
715
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.menuRef.open())
|
|
716
|
+
}, null, 8 /* PROPS */, ["selected", "disabled", "tooltip", "icon"])) : _ctx.isVisible(item) ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
717
|
+
key: 1,
|
|
718
|
+
tooltip: {
|
|
719
|
+
text: _ctx.iconTooltipsEnum[item],
|
|
720
|
+
placement: 'top'
|
|
721
|
+
},
|
|
722
|
+
selected: _ctx.isActive[item],
|
|
723
|
+
disabled: !_ctx.isFocused,
|
|
724
|
+
icon: {
|
|
725
|
+
icon: _ctx.iconsEnum[item],
|
|
726
|
+
variant: 'inherit',
|
|
727
|
+
size: 'm'
|
|
728
|
+
},
|
|
729
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
730
|
+
}, null, 8 /* PROPS */, ["tooltip", "selected", "disabled", "icon", "onClick"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
731
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
|
|
732
|
+
}), 128 /* KEYED_FRAGMENT */)), _ctx.countOfNotVisibleTools > 0 ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
733
|
+
key: 0,
|
|
734
|
+
ref: "moreButtonRef",
|
|
735
|
+
disabled: !_ctx.isFocused,
|
|
736
|
+
icon: {
|
|
737
|
+
icon: 'more_horiz',
|
|
738
|
+
variant: 'inherit',
|
|
739
|
+
size: 'm'
|
|
740
|
+
},
|
|
741
|
+
class: "px-sm",
|
|
742
|
+
onClick: _cache[1] || (_cache[1] = $event => _ctx.moreRef.open())
|
|
743
|
+
}, null, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
|
|
744
|
+
class: normalizeClass(['p-sm', {
|
|
745
|
+
'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _ctx.fullHeight
|
|
746
|
+
}])
|
|
747
|
+
}, [withDirectives(createElementVNode("textarea", {
|
|
748
|
+
ref: "textareaRef",
|
|
749
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.sourceValue = $event),
|
|
750
|
+
"auto-focus": "",
|
|
751
|
+
activated: _ctx.disableMarkdown,
|
|
752
|
+
class: "w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
|
|
753
|
+
onInput: _cache[3] || (_cache[3] = function () {
|
|
754
|
+
return _ctx.handleInput && _ctx.handleInput(...arguments);
|
|
755
|
+
})
|
|
756
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1), [[vShow, _ctx.disableMarkdown], [vModelText, _ctx.sourceValue]]), withDirectives(createElementVNode("div", {
|
|
757
|
+
ref: "editorRef",
|
|
758
|
+
class: normalizeClass(_ctx.editorInputStyles)
|
|
759
|
+
}, null, 2 /* CLASS */), [[vShow, !_ctx.disableMarkdown]]), renderSlot(_ctx.$slots, "files")], 2 /* CLASS */)], 2 /* CLASS */), _ctx.moreButtonRef ? (openBlock(), createBlock(_component_or_menu, {
|
|
760
|
+
key: 0,
|
|
761
|
+
ref: "moreRef",
|
|
762
|
+
trigger: _ctx.moreButtonRef.root
|
|
763
|
+
}, {
|
|
764
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.notVisibleTools, item => {
|
|
765
|
+
return openBlock(), createBlock(_component_or_menu_item, {
|
|
766
|
+
key: item,
|
|
767
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
768
|
+
}, {
|
|
769
|
+
default: withCtx(() => [createVNode(_component_or_icon_button, {
|
|
770
|
+
tooltip: {
|
|
771
|
+
text: _ctx.iconTooltipsEnum[item],
|
|
772
|
+
placement: 'top'
|
|
773
|
+
},
|
|
774
|
+
selected: _ctx.isActive[item],
|
|
775
|
+
icon: {
|
|
776
|
+
icon: _ctx.iconsEnum[item],
|
|
777
|
+
variant: 'inherit',
|
|
778
|
+
size: 'm'
|
|
779
|
+
}
|
|
780
|
+
}, null, 8 /* PROPS */, ["tooltip", "selected", "icon"])]),
|
|
781
|
+
_: 2 /* DYNAMIC */
|
|
782
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
783
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
784
|
+
|
|
785
|
+
_: 1 /* STABLE */
|
|
786
|
+
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), _ctx.toolbarButtonRef ? (openBlock(), createBlock(_component_or_menu, {
|
|
787
|
+
key: 1,
|
|
788
|
+
ref: "menuRef",
|
|
789
|
+
trigger: _ctx.toolbarButtonRef[_ctx.getIndexOfHeading].root,
|
|
790
|
+
placement: "bottom-start"
|
|
791
|
+
}, {
|
|
792
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headingLevels, heading => {
|
|
793
|
+
return openBlock(), createBlock(_component_or_menu_item, {
|
|
794
|
+
key: heading,
|
|
795
|
+
onClick: $event => _ctx.handleToolbarClick('heading', heading)
|
|
796
|
+
}, {
|
|
797
|
+
default: withCtx(() => [createTextVNode(" Heading " + toDisplayString(heading), 1 /* TEXT */)]),
|
|
798
|
+
|
|
799
|
+
_: 2 /* DYNAMIC */
|
|
800
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
801
|
+
}), 128 /* KEYED_FRAGMENT */)), createVNode(_component_or_menu_item, {
|
|
802
|
+
onClick: _cache[5] || (_cache[5] = $event => _ctx.handleToolbarClick('heading'))
|
|
803
|
+
}, {
|
|
804
|
+
default: withCtx(() => [createTextVNode(" None ")]),
|
|
805
|
+
_: 1 /* STABLE */
|
|
806
|
+
})]),
|
|
807
|
+
|
|
808
|
+
_: 1 /* STABLE */
|
|
809
|
+
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), createVNode(_component_or_modal, {
|
|
810
|
+
"is-open": _ctx.isOpenLinkModal,
|
|
811
|
+
size: "s"
|
|
812
|
+
}, {
|
|
813
|
+
header: withCtx(() => [_hoisted_2]),
|
|
814
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_3, [createVNode(_component_or_button, {
|
|
815
|
+
variant: "outlined",
|
|
816
|
+
onClick: _ctx.discardLink
|
|
817
|
+
}, {
|
|
818
|
+
default: withCtx(() => [_hoisted_4]),
|
|
819
|
+
_: 1 /* STABLE */
|
|
820
|
+
}, 8 /* PROPS */, ["onClick"]), createVNode(_component_or_button, {
|
|
821
|
+
onClick: _ctx.attachLink
|
|
822
|
+
}, {
|
|
823
|
+
default: withCtx(() => [_hoisted_5]),
|
|
824
|
+
_: 1 /* STABLE */
|
|
825
|
+
}, 8 /* PROPS */, ["onClick"])])]),
|
|
826
|
+
default: withCtx(() => [createElementVNode("div", null, [createVNode(_component_or_label, null, {
|
|
827
|
+
default: withCtx(() => [createTextVNode(" Text ")]),
|
|
828
|
+
_: 1 /* STABLE */
|
|
829
|
+
}), createVNode(_component_or_input, {
|
|
830
|
+
modelValue: _ctx.text,
|
|
831
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.text = $event),
|
|
832
|
+
placeholder: "Placeholder",
|
|
833
|
+
class: "pb-md"
|
|
834
|
+
}, null, 8 /* PROPS */, ["modelValue"]), createVNode(_component_or_label, null, {
|
|
835
|
+
default: withCtx(() => [createTextVNode(" Link ")]),
|
|
836
|
+
_: 1 /* STABLE */
|
|
837
|
+
}), createVNode(_component_or_input, {
|
|
838
|
+
modelValue: _ctx.link,
|
|
839
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.link = $event),
|
|
840
|
+
placeholder: "Placeholder"
|
|
841
|
+
}, null, 8 /* PROPS */, ["modelValue"])])]),
|
|
842
|
+
_: 1 /* STABLE */
|
|
843
|
+
}, 8 /* PROPS */, ["is-open"])], 2 /* CLASS */);
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
var css_248z = ".tiptap-editor-v3 ol {\n@apply mx-lg;\n list-style: decimal;\n}\n.tiptap-editor-v3 .ProseMirror h1, .tiptap-editor-v3 .ProseMirror h2, .tiptap-editor-v3 .ProseMirror h3, .tiptap-editor-v3 .ProseMirror h4, .tiptap-editor-v3 .ProseMirror h5, .tiptap-editor-v3 .ProseMirror h6, .tiptap-editor-v3 .ProseMirror p {\n@apply m-xs;\n}\n.tiptap-editor-v3 ul {\n@apply mx-lg;\n list-style: initial;\n}\n.tiptap-editor-v3 blockquote {\n@apply mx-lg;\n@apply my-sm;\n@apply px-lg;\n border-left: 4px solid theme(\"borderColor.primary-opacity-0-16\");\n}\n.tiptap-editor-v3 .is-editor-empty::before {\n content: attr(data-placeholder);\n height: 0;\n pointer-events: none;\n float: left;\n}\n.tiptap-editor-v3 .cm-editor {\n border: none;\n@apply rounded-md;\n}\n.tiptap-editor-v3 .cm-editor .cm-scroller {\n@apply rounded-md;\n}\n.tiptap-editor-v3 .cm-editor.cm-focused {\n outline: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters {\n background-color: theme(\"backgroundColor.primary-opacity-0-12\");\n border: none;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement {\n@apply px-sm+*;\n}\n.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter {\n background-color: theme(\"backgroundColor.primary-opacity-0-16\");\n}";
|
|
847
|
+
styleInject(css_248z);
|
|
848
|
+
|
|
849
|
+
script.render = render;
|
|
850
|
+
script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
|
|
851
|
+
|
|
852
|
+
export { Formats as F, script as s };
|