@onereach/ui-components 4.3.12 → 4.4.0-beta.2673.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/components/OrCode/OrCode.js +6 -3792
- package/dist/bundled/v2/components/OrCode/index.js +6 -2
- 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/OrConfirm/OrConfirm.js +2 -1
- package/dist/bundled/v2/components/OrConfirm/index.js +2 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +3 -1346
- package/dist/bundled/v2/components/OrModal/index.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2136 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +209 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +69 -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 +5 -0
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -2
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +16 -3
- package/dist/bundled/{v3/index-cf2c3c27.js → v2/index-0d224ae5.js} +3 -115
- package/dist/bundled/v2/index-1182caa8.js +9633 -0
- package/dist/bundled/v2/index-85c2efe8.js +7122 -0
- package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-74060519.js → v2/index-d92d0b48.js} +14 -235
- package/dist/bundled/{v3/lang-0fb8f78b.js → v2/index-e9f6b2d8.js} +73 -4009
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +19 -6
- package/dist/bundled/v2/markdown-d704b3a8.js +17975 -0
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-ae842e5b.js → v2/useFocusTrap-48767a70.js} +3 -106
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-7e29b3d0.js +237 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e5a8f92a.js → OrConfirm.vue_vue_type_script_lang-4eaa8470.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-23e4ce08.js → OrConfirm.vue_vue_type_script_lang-dca252a7.js} +1 -1
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-2c009ee0.js +108 -0
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-55afeb38.js +1861 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +24 -8
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +33 -20
- package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
- package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +70 -22
- package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +676 -126
- package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
- package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
- package/dist/bundled/v3/components/OrCode/OrCode.js +10 -6
- package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrCode/index.js +8 -4
- 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.vue.d.ts +39 -17
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +5 -4
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
- package/dist/bundled/v3/components/OrConfirm/index.js +4 -3
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -29
- package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +81 -25
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +105 -31
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
- package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +35 -14
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
- package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
- package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +52 -16
- package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +85 -34
- package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +24 -9
- package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
- package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrModal/OrModal.js +3 -2
- package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
- package/dist/bundled/v3/components/OrModal/index.js +2 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +31 -15
- package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
- package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +74 -27
- package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
- package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +273 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +209 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +85 -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 +5 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +115 -37
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
- package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +25 -13
- package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
- package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
- package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
- package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +79 -25
- package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
- package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +37 -13
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +21 -7
- package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/{v2/index-cf2c3c27.js → v3/index-0d224ae5.js} +3 -115
- package/dist/bundled/v3/index-1182caa8.js +9633 -0
- package/dist/bundled/v3/index-85c2efe8.js +7122 -0
- package/dist/bundled/v3/index-d92d0b48.js +3805 -0
- package/dist/bundled/{v2/lang-0fb8f78b.js → v3/index-e9f6b2d8.js} +73 -4009
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +25 -11
- package/dist/bundled/v3/markdown-d704b3a8.js +17975 -0
- package/dist/bundled/v3/useFocusTrap-48767a70.js +1348 -0
- package/dist/esm/v2/OrRichTextEditor-3a078ea0.js +849 -0
- package/dist/esm/v2/{OrSelect-9d6b3363.js → OrSelect-9c8f96b2.js} +1 -2
- 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 +25 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +209 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +59 -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-select-v3/index.js +1 -1
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +25 -1
- package/dist/esm/v3/OrRichTextEditor-7264ad21.js +807 -0
- package/dist/esm/v3/{OrSelect-3dbddc6b.js → OrSelect-b1d7651a.js} +1 -2
- 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 +25 -1
- package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +24 -8
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +33 -20
- package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
- package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +70 -22
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +676 -126
- package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
- package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
- package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -29
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +81 -25
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +105 -31
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +11 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +37 -15
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +35 -14
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
- package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +52 -16
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
- package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +85 -34
- package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +24 -9
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
- package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +31 -15
- package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
- package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
- package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +74 -27
- package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
- package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
- package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +209 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +57 -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/OrSearch.vue.d.ts +65 -23
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
- package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
- package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +115 -37
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +25 -13
- package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
- package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
- package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
- package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
- package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
- package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
- package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +79 -25
- package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
- package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +37 -13
- package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v3/index.js +25 -1
- package/package.json +25 -5
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +7 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +123 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +722 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +55 -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 +117 -0
- package/src/components/or-select-v3/OrSelect.stories3.ts +1 -39
- package/src/components/or-select-v3/OrSelect.vue +0 -1
- /package/dist/bundled/v2/{index-968c331a.js → index-f6664cb1.js} +0 -0
- /package/dist/bundled/v3/{index-968c331a.js → index-f6664cb1.js} +0 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { TextSelection, Selection } from 'prosemirror-state';
|
|
2
|
+
import { exitCode } from 'prosemirror-commands';
|
|
3
|
+
import { EditorState } from '@codemirror/state';
|
|
4
|
+
import { EditorView, highlightActiveLine, highlightActiveLineGutter, lineNumbers, keymap } from '@codemirror/view';
|
|
5
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
6
|
+
import { tags } from '@lezer/highlight';
|
|
7
|
+
|
|
8
|
+
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
9
|
+
const chalky = 'var(--c-warning-darken-20)',
|
|
10
|
+
coral = 'var(--c-error)',
|
|
11
|
+
cyan = '#56b6c2',
|
|
12
|
+
invalid = 'var(--c-white)',
|
|
13
|
+
ivory = 'var(--c-neutral-6)',
|
|
14
|
+
stone = 'var(--c-neutral-5)',
|
|
15
|
+
// Brightened compared to original to increase contrast
|
|
16
|
+
malibu = '#61afef',
|
|
17
|
+
sage = 'var(--c-success)',
|
|
18
|
+
whiskey = 'var(--c-warning-darken-5)',
|
|
19
|
+
violet = '#c678dd',
|
|
20
|
+
darkBackground = 'var(--c-neutral-1)',
|
|
21
|
+
highlightBackground = 'var(--c-neutral-2)',
|
|
22
|
+
background = 'var(--c-neutral-1)',
|
|
23
|
+
tooltipBackground = 'var(--c-neutral-2)',
|
|
24
|
+
selection = 'var(--c-neutral-3)',
|
|
25
|
+
cursor = 'var(--c-primary)';
|
|
26
|
+
/// The editor theme styles for One Dark.
|
|
27
|
+
const orCodeTheme = EditorView.theme({
|
|
28
|
+
'&': {
|
|
29
|
+
color: ivory,
|
|
30
|
+
backgroundColor: background
|
|
31
|
+
},
|
|
32
|
+
'.cm-content': {
|
|
33
|
+
caretColor: cursor
|
|
34
|
+
},
|
|
35
|
+
'.cm-button': {
|
|
36
|
+
background: highlightBackground,
|
|
37
|
+
color: 'var(--c-neutral-6)',
|
|
38
|
+
border: 0,
|
|
39
|
+
borderRadius: 'var(--s-2)'
|
|
40
|
+
},
|
|
41
|
+
'.cm-panel.cm-search input[type=checkbox]': {
|
|
42
|
+
display: 'inline-block',
|
|
43
|
+
verticalAlign: 'middle'
|
|
44
|
+
},
|
|
45
|
+
'.cm-cursor, .cm-dropCursor': {
|
|
46
|
+
borderLeftColor: cursor
|
|
47
|
+
},
|
|
48
|
+
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
49
|
+
backgroundColor: selection
|
|
50
|
+
},
|
|
51
|
+
'.cm-panels': {
|
|
52
|
+
backgroundColor: darkBackground,
|
|
53
|
+
color: ivory
|
|
54
|
+
},
|
|
55
|
+
'.cm-panels.cm-panels-top': {
|
|
56
|
+
borderBottom: '2px solid var(--c-neutral-2)'
|
|
57
|
+
},
|
|
58
|
+
'.cm-panels.cm-panels-bottom': {
|
|
59
|
+
borderTop: '2px solid var(--c-neutral-2)'
|
|
60
|
+
},
|
|
61
|
+
'.cm-searchMatch': {
|
|
62
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
63
|
+
outline: '1px solid var(--c-neutral-2)'
|
|
64
|
+
},
|
|
65
|
+
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
66
|
+
backgroundColor: '#6199ff2f'
|
|
67
|
+
},
|
|
68
|
+
'.cm-activeLine': {
|
|
69
|
+
backgroundColor: '#6699ff0b'
|
|
70
|
+
},
|
|
71
|
+
'.cm-selectionMatch': {
|
|
72
|
+
backgroundColor: '#aafe661a'
|
|
73
|
+
},
|
|
74
|
+
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
75
|
+
backgroundColor: '#bad0f847'
|
|
76
|
+
},
|
|
77
|
+
'.cm-gutters': {
|
|
78
|
+
backgroundColor: background,
|
|
79
|
+
color: stone,
|
|
80
|
+
border: 'none'
|
|
81
|
+
},
|
|
82
|
+
'.cm-activeLineGutter': {
|
|
83
|
+
backgroundColor: highlightBackground
|
|
84
|
+
},
|
|
85
|
+
'.cm-foldPlaceholder': {
|
|
86
|
+
backgroundColor: 'transparent',
|
|
87
|
+
border: 'none',
|
|
88
|
+
color: '#ddd'
|
|
89
|
+
},
|
|
90
|
+
'.cm-tooltip': {
|
|
91
|
+
border: 'none',
|
|
92
|
+
backgroundColor: tooltipBackground
|
|
93
|
+
},
|
|
94
|
+
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
95
|
+
borderTopColor: 'transparent',
|
|
96
|
+
borderBottomColor: 'transparent'
|
|
97
|
+
},
|
|
98
|
+
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
99
|
+
borderTopColor: tooltipBackground,
|
|
100
|
+
borderBottomColor: tooltipBackground
|
|
101
|
+
},
|
|
102
|
+
'.cm-tooltip-autocomplete': {
|
|
103
|
+
'& > ul > li[aria-selected]': {
|
|
104
|
+
backgroundColor: highlightBackground,
|
|
105
|
+
color: ivory
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
'.cm-textfield': {
|
|
109
|
+
outline: 'none',
|
|
110
|
+
background: background,
|
|
111
|
+
color: 'var(--c-neutral-6)',
|
|
112
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
113
|
+
border: '1px solid var(--c-neutral-2)',
|
|
114
|
+
borderRadius: 'var(--s-2)'
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
dark: true
|
|
118
|
+
});
|
|
119
|
+
/// The highlighting style for code in the One Dark theme.
|
|
120
|
+
const orCodeHighlightStyle = HighlightStyle.define([{
|
|
121
|
+
tag: tags.keyword,
|
|
122
|
+
color: violet
|
|
123
|
+
}, {
|
|
124
|
+
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
125
|
+
color: coral
|
|
126
|
+
}, {
|
|
127
|
+
tag: [tags.function(tags.variableName), tags.labelName],
|
|
128
|
+
color: malibu
|
|
129
|
+
}, {
|
|
130
|
+
tag: [tags.color, tags.constant(tags.name), tags.standard(tags.name)],
|
|
131
|
+
color: whiskey
|
|
132
|
+
}, {
|
|
133
|
+
tag: [tags.definition(tags.name), tags.separator],
|
|
134
|
+
color: ivory
|
|
135
|
+
}, {
|
|
136
|
+
tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
137
|
+
color: chalky
|
|
138
|
+
}, {
|
|
139
|
+
tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, tags.special(tags.string)],
|
|
140
|
+
color: cyan
|
|
141
|
+
}, {
|
|
142
|
+
tag: [tags.meta, tags.comment],
|
|
143
|
+
color: stone
|
|
144
|
+
}, {
|
|
145
|
+
tag: tags.strong,
|
|
146
|
+
fontWeight: 'bold'
|
|
147
|
+
}, {
|
|
148
|
+
tag: tags.emphasis,
|
|
149
|
+
fontStyle: 'italic'
|
|
150
|
+
}, {
|
|
151
|
+
tag: tags.strikethrough,
|
|
152
|
+
textDecoration: 'line-through'
|
|
153
|
+
}, {
|
|
154
|
+
tag: tags.link,
|
|
155
|
+
color: stone,
|
|
156
|
+
textDecoration: 'underline'
|
|
157
|
+
}, {
|
|
158
|
+
tag: tags.heading,
|
|
159
|
+
fontWeight: 'bold',
|
|
160
|
+
color: coral
|
|
161
|
+
}, {
|
|
162
|
+
tag: [tags.atom, tags.bool, tags.special(tags.variableName)],
|
|
163
|
+
color: whiskey
|
|
164
|
+
}, {
|
|
165
|
+
tag: [tags.processingInstruction, tags.string, tags.inserted],
|
|
166
|
+
color: sage
|
|
167
|
+
}, {
|
|
168
|
+
tag: tags.invalid,
|
|
169
|
+
color: invalid
|
|
170
|
+
}]);
|
|
171
|
+
/// Extension to enable the One Dark theme (both the editor theme and
|
|
172
|
+
/// the highlight style).
|
|
173
|
+
const theme = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
|
|
174
|
+
|
|
175
|
+
const computeChange = (oldVal, newVal) => {
|
|
176
|
+
if (oldVal === newVal) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
let start = 0;
|
|
180
|
+
let oldEnd = oldVal.length;
|
|
181
|
+
let newEnd = newVal.length;
|
|
182
|
+
while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {
|
|
183
|
+
start += 1;
|
|
184
|
+
}
|
|
185
|
+
while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {
|
|
186
|
+
oldEnd -= 1;
|
|
187
|
+
newEnd -= 1;
|
|
188
|
+
}
|
|
189
|
+
return {
|
|
190
|
+
from: start,
|
|
191
|
+
to: oldEnd,
|
|
192
|
+
text: newVal.slice(start, newEnd)
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
class CodeMirrorView {
|
|
196
|
+
constructor(options) {
|
|
197
|
+
var _a;
|
|
198
|
+
this.updating = false;
|
|
199
|
+
// Store for later
|
|
200
|
+
this.node = options.node;
|
|
201
|
+
this.view = options.view;
|
|
202
|
+
const cmExtensions = ((_a = options.cmOptions) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
203
|
+
this.name = 'codeBlock', this.getPos = options.getPos;
|
|
204
|
+
const changeFilter = EditorState.changeFilter.of(tr => {
|
|
205
|
+
if (!tr.docChanged && !this.updating) {
|
|
206
|
+
this.forwardSelection();
|
|
207
|
+
}
|
|
208
|
+
return true;
|
|
209
|
+
});
|
|
210
|
+
// Create a CodeMirror instancew
|
|
211
|
+
this.cm = new EditorView({
|
|
212
|
+
dispatch: this.dispatch.bind(this)
|
|
213
|
+
});
|
|
214
|
+
// The editor's outer node is our DOM representation
|
|
215
|
+
this.dom = this.cm.dom;
|
|
216
|
+
const cmState = EditorState.create({
|
|
217
|
+
doc: this.node.textContent,
|
|
218
|
+
extensions: [theme, changeFilter, highlightActiveLine(), highlightActiveLineGutter(), lineNumbers(), keymap.of([{
|
|
219
|
+
key: 'ArrowUp',
|
|
220
|
+
run: this.mayBeEscape('line', -1)
|
|
221
|
+
}, {
|
|
222
|
+
key: 'ArrowLeft',
|
|
223
|
+
run: this.mayBeEscape('char', -1)
|
|
224
|
+
}, {
|
|
225
|
+
key: 'ArrowDown',
|
|
226
|
+
run: this.mayBeEscape('line', 1)
|
|
227
|
+
}, {
|
|
228
|
+
key: 'ArrowRight',
|
|
229
|
+
run: this.mayBeEscape('char', 1)
|
|
230
|
+
}, {
|
|
231
|
+
key: 'Ctrl-Enter',
|
|
232
|
+
run: () => {
|
|
233
|
+
if (exitCode(this.view.state, this.view.dispatch)) {
|
|
234
|
+
this.view.focus();
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
}]), cmExtensions]
|
|
240
|
+
});
|
|
241
|
+
this.cm.setState(cmState);
|
|
242
|
+
}
|
|
243
|
+
forwardSelection() {
|
|
244
|
+
if (!this.cm.hasFocus) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
const {
|
|
248
|
+
state
|
|
249
|
+
} = this.view;
|
|
250
|
+
const selection = this.asProseMirrorSelection(state.doc);
|
|
251
|
+
if (!selection.eq(state.selection)) {
|
|
252
|
+
this.view.dispatch(state.tr.setSelection(selection));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
asProseMirrorSelection(doc) {
|
|
256
|
+
const offset = this.getPos() + 1;
|
|
257
|
+
const {
|
|
258
|
+
anchor,
|
|
259
|
+
head
|
|
260
|
+
} = this.cm.state.selection.main;
|
|
261
|
+
return TextSelection.create(doc, anchor + offset, head + offset);
|
|
262
|
+
}
|
|
263
|
+
dispatch(cmTr) {
|
|
264
|
+
this.cm.setState(cmTr.state);
|
|
265
|
+
if (cmTr.docChanged && !this.updating) {
|
|
266
|
+
const start = this.getPos() + 1;
|
|
267
|
+
const cmValue = cmTr.state.doc.toString();
|
|
268
|
+
const change = computeChange(this.node.textContent, cmValue);
|
|
269
|
+
if (!change) {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
const content = change.text ? this.view.state.schema.text(change.text) : null;
|
|
273
|
+
const tr = this.view.state.tr.replaceWith(change.from + start, change.to + start, content);
|
|
274
|
+
this.view.dispatch(tr);
|
|
275
|
+
this.forwardSelection();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
mayBeEscape(unit, dir) {
|
|
279
|
+
return view => {
|
|
280
|
+
const {
|
|
281
|
+
state
|
|
282
|
+
} = view;
|
|
283
|
+
const {
|
|
284
|
+
selection
|
|
285
|
+
} = state;
|
|
286
|
+
const offsetToPos = () => {
|
|
287
|
+
const offset = selection.main.from;
|
|
288
|
+
const line = state.doc.lineAt(offset);
|
|
289
|
+
return {
|
|
290
|
+
line: line.number,
|
|
291
|
+
ch: offset - line.from
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
const pos = offsetToPos();
|
|
295
|
+
const hasSelection = state.selection.ranges.some(r => !r.empty);
|
|
296
|
+
const firstLine = 1;
|
|
297
|
+
const lastLine = state.doc.lineAt(state.doc.length).number;
|
|
298
|
+
if (hasSelection || pos.line !== (dir < 0 ? firstLine : lastLine) || unit === 'char' && pos.ch !== (dir < 0 ? 0 : state.doc.line(pos.line).length)) {
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
const targetPos = this.getPos() + (dir < 0 ? 0 : this.node.nodeSize);
|
|
302
|
+
const pmSelection = Selection.near(this.view.state.doc.resolve(targetPos), dir);
|
|
303
|
+
this.view.dispatch(this.view.state.tr.setSelection(pmSelection).scrollIntoView());
|
|
304
|
+
this.view.focus();
|
|
305
|
+
return true;
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
update(node) {
|
|
309
|
+
if (node.type !== this.node.type) {
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
this.node = node;
|
|
313
|
+
const change = computeChange(this.cm.state.doc.toString(), node.textContent);
|
|
314
|
+
if (change) {
|
|
315
|
+
this.updating = true;
|
|
316
|
+
this.cm.dispatch({
|
|
317
|
+
changes: {
|
|
318
|
+
from: change.from,
|
|
319
|
+
to: change.to,
|
|
320
|
+
insert: change.text
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
this.updating = false;
|
|
324
|
+
}
|
|
325
|
+
return true;
|
|
326
|
+
}
|
|
327
|
+
setSelection(anchor, head) {
|
|
328
|
+
this.focus();
|
|
329
|
+
this.updating = true;
|
|
330
|
+
this.cm.dispatch({
|
|
331
|
+
selection: {
|
|
332
|
+
anchor,
|
|
333
|
+
head
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
this.updating = false;
|
|
337
|
+
}
|
|
338
|
+
focus() {
|
|
339
|
+
this.cm.focus();
|
|
340
|
+
this.forwardSelection();
|
|
341
|
+
}
|
|
342
|
+
selectNode() {
|
|
343
|
+
this.focus();
|
|
344
|
+
}
|
|
345
|
+
stopEvent() {
|
|
346
|
+
return true;
|
|
347
|
+
}
|
|
348
|
+
destroy() {
|
|
349
|
+
this.cm.destroy();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export { CodeMirrorView as C };
|
|
@@ -73,7 +73,7 @@ export { _ as OrSearch } from '../OrSearch-330e9af0.js';
|
|
|
73
73
|
export { _ as OrSearchV3 } from '../OrSearch-7ccc1f33.js';
|
|
74
74
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-a1ea5b72.js';
|
|
75
75
|
export { _ as OrSelect } from '../OrSelect-22eea9cc.js';
|
|
76
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
76
|
+
export { _ as OrSelectV3 } from '../OrSelect-9c8f96b2.js';
|
|
77
77
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-feacf13a.js';
|
|
78
78
|
export { _ as OrSidebarV3 } from '../OrSidebar-b8387abe.js';
|
|
79
79
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-4bf3bad8.js';
|
|
@@ -110,6 +110,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-a133
|
|
|
110
110
|
export { _ as OrTooltip } from '../OrTooltip-97a42707.js';
|
|
111
111
|
export { _ as OrTooltipContent } from '../OrTooltipContent-d85e1071.js';
|
|
112
112
|
export { _ as OrTooltipV3 } from '../OrTooltip-93a3eefb.js';
|
|
113
|
+
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-3a078ea0.js';
|
|
113
114
|
import 'vue-demi';
|
|
114
115
|
import 'lodash';
|
|
115
116
|
import '../style-inject.es-4c6f2515.js';
|
|
@@ -151,3 +152,26 @@ import '../useOverflow-c856b7b7.js';
|
|
|
151
152
|
import '../styles-ed564e39.js';
|
|
152
153
|
import 'portal-vue/dist/portal-vue.esm.js';
|
|
153
154
|
import 'portal-vue';
|
|
155
|
+
import 'prosemirror-markdown';
|
|
156
|
+
import 'prosemirror-model';
|
|
157
|
+
import 'marked';
|
|
158
|
+
import '@tiptap/extension-paragraph';
|
|
159
|
+
import '@tiptap/extension-bullet-list';
|
|
160
|
+
import '@tiptap/extension-list-item';
|
|
161
|
+
import '@tiptap/extension-ordered-list';
|
|
162
|
+
import '@tiptap/extension-strike';
|
|
163
|
+
import '@tiptap/extension-italic';
|
|
164
|
+
import '@tiptap/extension-hard-break';
|
|
165
|
+
import '@tiptap/extension-bold';
|
|
166
|
+
import '@tiptap/extension-code-block';
|
|
167
|
+
import '@tiptap/extension-blockquote';
|
|
168
|
+
import '@tiptap/extension-link';
|
|
169
|
+
import '@tiptap/extension-highlight';
|
|
170
|
+
import '@tiptap/extension-underline';
|
|
171
|
+
import '@tiptap/core';
|
|
172
|
+
import '@tiptap/starter-kit';
|
|
173
|
+
import '@tiptap/extension-heading';
|
|
174
|
+
import '@tiptap/extension-placeholder';
|
|
175
|
+
import '../codemirrorView-be2c7423.js';
|
|
176
|
+
import 'prosemirror-state';
|
|
177
|
+
import 'prosemirror-commands';
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue-demi';
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
3
|
+
import { Level } from '@tiptap/extension-heading';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
7
|
+
toolbarRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
8
|
+
containerRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
9
|
+
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
10
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
11
|
+
} | string[], {} & {}, {
|
|
12
|
+
[x: number]: string;
|
|
13
|
+
} | {}, true> | undefined>;
|
|
14
|
+
moreButtonRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
15
|
+
moreRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
16
|
+
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
17
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
18
|
+
} | string[], {} & {}, {
|
|
19
|
+
[x: number]: string;
|
|
20
|
+
} | {}, true> | undefined>;
|
|
21
|
+
iconsEnum: import("@vue/composition-api").Ref<{
|
|
22
|
+
[x: string]: string;
|
|
23
|
+
}>;
|
|
24
|
+
handleToolbarClick: (item: string, level?: number) => void;
|
|
25
|
+
handleEditorClick: () => void;
|
|
26
|
+
isActive: import("@vue/composition-api").Ref<{
|
|
27
|
+
[x: string]: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
30
|
+
[x: string]: string;
|
|
31
|
+
}>;
|
|
32
|
+
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
33
|
+
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
34
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
35
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
36
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
37
|
+
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
38
|
+
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
39
|
+
headingLevels: Level[];
|
|
40
|
+
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
41
|
+
attachLink: () => Promise<void>;
|
|
42
|
+
discardLink: () => void;
|
|
43
|
+
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
44
|
+
text: import("@vue/composition-api").Ref<string>;
|
|
45
|
+
link: import("@vue/composition-api").Ref<string>;
|
|
46
|
+
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
47
|
+
isVisible: (value: string | Array<string>) => boolean;
|
|
48
|
+
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
49
|
+
notVisibleTools: import("@vue/composition-api").ComputedRef<string[]>;
|
|
50
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
toolbar: {
|
|
56
|
+
type: {
|
|
57
|
+
(arrayLength: number): string[][];
|
|
58
|
+
(...items: string[][]): string[][];
|
|
59
|
+
new (arrayLength: number): string[][];
|
|
60
|
+
new (...items: string[][]): string[][];
|
|
61
|
+
isArray(arg: any): arg is any[];
|
|
62
|
+
readonly prototype: any[];
|
|
63
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
64
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
65
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
66
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
67
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
68
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
69
|
+
};
|
|
70
|
+
default: () => never[];
|
|
71
|
+
};
|
|
72
|
+
description: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
placeholder: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
autofocus: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
format: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
fullHeight: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
93
|
+
modelValue: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
97
|
+
toolbar: {
|
|
98
|
+
type: {
|
|
99
|
+
(arrayLength: number): string[][];
|
|
100
|
+
(...items: string[][]): string[][];
|
|
101
|
+
new (arrayLength: number): string[][];
|
|
102
|
+
new (...items: string[][]): string[][];
|
|
103
|
+
isArray(arg: any): arg is any[];
|
|
104
|
+
readonly prototype: any[];
|
|
105
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
106
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
107
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
108
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
109
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
110
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
111
|
+
};
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
description: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
placeholder: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
autofocus: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
format: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
fullHeight: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
135
|
+
modelValue: string;
|
|
136
|
+
toolbar: string[][];
|
|
137
|
+
description: string;
|
|
138
|
+
placeholder: string;
|
|
139
|
+
autofocus: boolean;
|
|
140
|
+
format: string;
|
|
141
|
+
fullHeight: boolean;
|
|
142
|
+
} & {} & {
|
|
143
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
144
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
145
|
+
editor: Editor | null;
|
|
146
|
+
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
147
|
+
toolbarRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
148
|
+
containerRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
149
|
+
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
150
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
151
|
+
} | string[], {} & {}, {
|
|
152
|
+
[x: number]: string;
|
|
153
|
+
} | {}, true> | undefined>;
|
|
154
|
+
moreButtonRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
155
|
+
moreRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
156
|
+
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
157
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
158
|
+
} | string[], {} & {}, {
|
|
159
|
+
[x: number]: string;
|
|
160
|
+
} | {}, true> | undefined>;
|
|
161
|
+
iconsEnum: import("@vue/composition-api").Ref<{
|
|
162
|
+
[x: string]: string;
|
|
163
|
+
}>;
|
|
164
|
+
handleToolbarClick: (item: string, level?: number) => void;
|
|
165
|
+
handleEditorClick: () => void;
|
|
166
|
+
isActive: import("@vue/composition-api").Ref<{
|
|
167
|
+
[x: string]: boolean;
|
|
168
|
+
}>;
|
|
169
|
+
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
170
|
+
[x: string]: string;
|
|
171
|
+
}>;
|
|
172
|
+
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
173
|
+
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
174
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
175
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
176
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
177
|
+
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
178
|
+
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
179
|
+
headingLevels: Level[];
|
|
180
|
+
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
181
|
+
attachLink: () => Promise<void>;
|
|
182
|
+
discardLink: () => void;
|
|
183
|
+
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
184
|
+
text: import("@vue/composition-api").Ref<string>;
|
|
185
|
+
link: import("@vue/composition-api").Ref<string>;
|
|
186
|
+
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
187
|
+
isVisible: (value: string | Array<string>) => boolean;
|
|
188
|
+
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
189
|
+
notVisibleTools: import("@vue/composition-api").ComputedRef<string[]>;
|
|
190
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
191
|
+
modelValue: string;
|
|
192
|
+
toolbar: string[][];
|
|
193
|
+
description: string;
|
|
194
|
+
placeholder: string;
|
|
195
|
+
autofocus: boolean;
|
|
196
|
+
format: string;
|
|
197
|
+
fullHeight: boolean;
|
|
198
|
+
} & {} & {
|
|
199
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
modelValue: string;
|
|
202
|
+
toolbar: string[][];
|
|
203
|
+
description: string;
|
|
204
|
+
placeholder: string;
|
|
205
|
+
autofocus: boolean;
|
|
206
|
+
format: string;
|
|
207
|
+
fullHeight: boolean;
|
|
208
|
+
}, true>);
|
|
209
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-3a078ea0.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import '@vueuse/integrations/useFocusTrap';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import 'prosemirror-markdown';
|
|
6
|
+
import 'prosemirror-model';
|
|
7
|
+
import 'marked';
|
|
8
|
+
import '@tiptap/extension-paragraph';
|
|
9
|
+
import '@tiptap/extension-bullet-list';
|
|
10
|
+
import '@tiptap/extension-list-item';
|
|
11
|
+
import '@tiptap/extension-ordered-list';
|
|
12
|
+
import '@tiptap/extension-strike';
|
|
13
|
+
import '@tiptap/extension-italic';
|
|
14
|
+
import '@tiptap/extension-hard-break';
|
|
15
|
+
import '@tiptap/extension-bold';
|
|
16
|
+
import '@tiptap/extension-code-block';
|
|
17
|
+
import '@tiptap/extension-blockquote';
|
|
18
|
+
import '@tiptap/extension-link';
|
|
19
|
+
import '@tiptap/extension-highlight';
|
|
20
|
+
import '@tiptap/extension-underline';
|
|
21
|
+
import '../../OrIconButton-d8fc2902.js';
|
|
22
|
+
import '../../OrIcon-d35a84d8.js';
|
|
23
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
24
|
+
import '../../OrTooltip-93a3eefb.js';
|
|
25
|
+
import '../../OrPopover-50995dcf.js';
|
|
26
|
+
import '@floating-ui/dom';
|
|
27
|
+
import '../../useElevation-b5a49746.js';
|
|
28
|
+
import '../../useResponsive-a02e95b7.js';
|
|
29
|
+
import '../../OrBottomSheet-ffa029ca.js';
|
|
30
|
+
import '../../OrOverlay-4c8c11e2.js';
|
|
31
|
+
import '../../OrTeleport.vue2-424c7f33.js';
|
|
32
|
+
import 'portal-vue';
|
|
33
|
+
import '../../OrLabel-63380256.js';
|
|
34
|
+
import '../../OrMenu-63ed2235.js';
|
|
35
|
+
import '../../OrMenuItem-6f9b8a93.js';
|
|
36
|
+
import '../../OrModal-554836ab.js';
|
|
37
|
+
import '../../OrInput-61086e47.js';
|
|
38
|
+
import '../../useIdAttribute-859439f0.js';
|
|
39
|
+
import '../../useValidationAttributes-d1abbe34.js';
|
|
40
|
+
import '../../OrError-4ffc1c39.js';
|
|
41
|
+
import '../../OrHint-aa221198.js';
|
|
42
|
+
import '../../OrInputBox-d36b1323.js';
|
|
43
|
+
import '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
44
|
+
import '../../OrLoader-b0c381f9.js';
|
|
45
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
46
|
+
import '../../OrButton-9622e713.js';
|
|
47
|
+
import '@tiptap/core';
|
|
48
|
+
import '@tiptap/starter-kit';
|
|
49
|
+
import '@tiptap/extension-heading';
|
|
50
|
+
import '@tiptap/extension-placeholder';
|
|
51
|
+
import '../../codemirrorView-be2c7423.js';
|
|
52
|
+
import 'prosemirror-state';
|
|
53
|
+
import 'prosemirror-commands';
|
|
54
|
+
import '@codemirror/state';
|
|
55
|
+
import '@codemirror/view';
|
|
56
|
+
import '@codemirror/language';
|
|
57
|
+
import '@lezer/highlight';
|
|
58
|
+
import 'codemirror';
|
|
59
|
+
import '@codemirror/lang-javascript';
|