@onereach/ui-components 4.2.0-beta.2548.0 → 4.2.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/OrCheckboxGroupV3/OrCheckboxGroup.js +145 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +31 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +226 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +23 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +10 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/types.d.ts +8 -0
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +37 -39
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
- package/dist/bundled/v2/components/OrCheckboxV3/index.js +1 -0
- package/dist/bundled/v2/components/OrCode/OrCode.js +3727 -6
- package/dist/bundled/v2/components/OrCode/index.js +2 -6
- package/dist/bundled/v2/components/OrCode/lang.js +3 -3897
- package/dist/bundled/v2/components/OrCode/theme.js +1 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +0 -1
- package/dist/bundled/v2/components/OrConfirm/index.js +0 -1
- package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.js +127 -0
- package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.vue.d.ts +87 -0
- package/dist/bundled/v2/components/OrFormGroupV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrFormGroupV3/index.js +12 -0
- package/dist/bundled/v2/components/OrFormGroupV3/props.d.ts +4 -0
- package/dist/bundled/v2/components/OrFormGroupV3/props.js +7 -0
- package/dist/bundled/v2/components/OrFormGroupV3/styles.d.ts +5 -0
- package/dist/bundled/v2/components/OrFormGroupV3/styles.js +17 -0
- package/dist/bundled/v2/components/OrModal/OrModal.js +1266 -3
- package/dist/bundled/v2/components/OrModal/index.js +0 -1
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +132 -0
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/bundled/v2/components/OrRadioGroupV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRadioGroupV3/index.js +19 -0
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v2/components/OrTooltipContent/OrTooltipContent.js +2 -2
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +2 -15
- package/dist/bundled/v2/{index-f5487f12.js → index-6976c52a.js} +115 -3
- package/dist/bundled/v2/index.d.ts +1 -0
- package/dist/bundled/v2/index.js +8 -20
- package/dist/bundled/v2/{index-70ca38c5.js → lang-02d2bb2d.js} +3965 -73
- package/dist/bundled/v2/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/bundled/v2/utils/functions/flattenDeep.js +5 -0
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-29e8ad0e.js → OrAvatar.vue_vue_type_script_lang-6511e348.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-a4a16fe5.js → OrButton.vue_vue_type_script_lang-da7f7ed0.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c1d83552.js → OrCardCollection.vue_vue_type_script_lang-7a2e1332.js} +3 -3
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-0e87c56b.js → OrCarousel.vue_vue_type_script_lang-6976844a.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-6ff51af9.js → OrCheckbox.vue_vue_type_script_lang-11b16d93.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-60cefcbd.js → OrCheckbox.vue_vue_type_script_lang-b274a5ee.js} +27 -11
- package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-f9807b75.js +115 -0
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-ceebbd82.js → OrChip.vue_vue_type_script_lang-5a390853.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-94b456c7.js → OrChips.vue_vue_type_script_lang-d4bb44eb.js} +1 -1
- package/dist/bundled/{v2/index-16aee5bc.js → v3/OrCode.vue_vue_type_script_lang-5397df6a.js} +234 -14
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-36318ca2.js → OrConfirm.vue_vue_type_script_lang-89febea7.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-5c1a5d4a.js → OrDateTimePicker.vue_vue_type_script_lang-8ff54abd.js} +1 -1
- package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-1c6844d6.js +63 -0
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5d204461.js → OrIconButton.vue_vue_type_script_lang-96cb5b59.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-424e2c26.js → OrInlineTextEdit.vue_vue_type_script_lang-45987769.js} +1 -1
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-c65271b9.js → OrList.vue_vue_type_script_lang-2c7537cc.js} +3 -3
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-d3dce7b8.js → OrListOfInputs.vue_vue_type_script_lang-009f62a5.js} +3 -3
- package/dist/bundled/v3/{useFocusTrap-9567b3c8.js → OrModal.vue_vue_type_script_lang-c53617ae.js} +105 -3
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-ef4f2661.js → OrNotification.vue_vue_type_script_lang-efb05bb2.js} +2 -2
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-0c461991.js → OrOverflowMenu.vue_vue_type_script_lang-ba50133f.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-3d308fef.js → OrPassword.vue_vue_type_script_lang-37f52611.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-86f4f5c7.js → OrSearch.vue_vue_type_script_lang-bcb935c3.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-f7601423.js → OrSelect.vue_vue_type_script_lang-098ea3ab.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d2fecd97.js → OrSelect.vue_vue_type_script_lang-c82d8f58.js} +3 -3
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-900036a2.js → OrSlider.vue_vue_type_script_lang-45ecddbe.js} +1 -1
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-2821c496.js → OrStepper.vue_vue_type_script_lang-975a4df6.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-f06b54a2.js → OrTag.vue_vue_type_script_lang-621e9307.js} +1 -1
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-b8d5341b.js → OrTextbox.vue_vue_type_script_lang-812f302d.js} +1 -1
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +3 -3
- package/dist/bundled/v3/components/OrAvatar/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +3 -3
- package/dist/bundled/v3/components/OrButtonV2/index.js +4 -4
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +6 -6
- package/dist/bundled/v3/components/OrCardCollection/index.js +5 -5
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +3 -3
- package/dist/bundled/v3/components/OrCarousel/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +3 -3
- package/dist/bundled/v3/components/OrCheckbox/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +121 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +40 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +90 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +28 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +10 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +8 -0
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +12 -9
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -1
- package/dist/bundled/v3/components/OrChip/OrChip.js +3 -3
- package/dist/bundled/v3/components/OrChip/index.js +2 -2
- package/dist/bundled/v3/components/OrChips/OrChips.js +4 -4
- package/dist/bundled/v3/components/OrChips/index.js +3 -3
- package/dist/bundled/v3/components/OrCode/OrCode.js +9 -13
- package/dist/bundled/v3/components/OrCode/index.js +7 -11
- package/dist/bundled/v3/components/OrCode/lang.js +3 -3897
- package/dist/bundled/v3/components/OrCode/theme.js +1 -2
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +7 -8
- package/dist/bundled/v3/components/OrConfirm/index.js +6 -7
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +5 -5
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +4 -4
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +59 -0
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +87 -0
- package/dist/bundled/v3/components/OrFormGroupV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrFormGroupV3/index.js +15 -0
- package/dist/bundled/v3/components/OrFormGroupV3/props.d.ts +4 -0
- package/dist/bundled/v3/components/OrFormGroupV3/props.js +7 -0
- package/dist/bundled/v3/components/OrFormGroupV3/styles.d.ts +5 -0
- package/dist/bundled/v3/components/OrFormGroupV3/styles.js +17 -0
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
- package/dist/bundled/v3/components/OrIcon/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +4 -4
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +3 -3
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +5 -5
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +4 -4
- package/dist/bundled/v3/components/OrList/OrList.js +6 -6
- package/dist/bundled/v3/components/OrList/index.js +5 -5
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +7 -7
- package/dist/bundled/v3/components/OrListOfInputs/index.js +6 -6
- package/dist/bundled/v3/components/OrModal/OrModal.js +5 -6
- package/dist/bundled/v3/components/OrModal/index.js +4 -5
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +5 -5
- package/dist/bundled/v3/components/OrNotification/index.js +4 -4
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +6 -6
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +5 -5
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +5 -5
- package/dist/bundled/v3/components/OrPassword/index.js +4 -4
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +104 -0
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/bundled/v3/components/OrRadioGroupV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +24 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +5 -5
- package/dist/bundled/v3/components/OrSearch/index.js +4 -4
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +5 -5
- package/dist/bundled/v3/components/OrSelect/index.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +3 -3
- package/dist/bundled/v3/components/OrSlider/index.js +2 -2
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +4 -4
- package/dist/bundled/v3/components/OrStepper/index.js +3 -3
- package/dist/bundled/v3/components/OrTag/OrTag.js +3 -3
- package/dist/bundled/v3/components/OrTag/index.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +5 -5
- package/dist/bundled/v3/components/OrTextbox/index.js +4 -4
- package/dist/bundled/v3/components/OrToast/OrToast.js +3 -3
- package/dist/bundled/v3/components/OrToast/index.js +4 -4
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +5 -5
- package/dist/bundled/v3/components/OrToastContainer/index.js +4 -4
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +31 -45
- package/dist/bundled/v3/{index-f5487f12.js → index-6976c52a.js} +115 -3
- package/dist/bundled/v3/index.d.ts +1 -0
- package/dist/bundled/v3/index.js +39 -53
- package/dist/bundled/v3/{index-70ca38c5.js → lang-02d2bb2d.js} +3965 -73
- package/dist/bundled/v3/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/bundled/v3/utils/functions/flattenDeep.js +5 -0
- package/dist/esm/v2/{OrAvatar-da5cba16.js → OrAvatar-7c024521.js} +1 -1
- package/dist/esm/v2/{OrButton-bdddd8d4.js → OrButton-4e532ddb.js} +1 -1
- package/dist/esm/v2/{OrButton.vue_rollup-plugin-vue_styles.0-3dbd90b4.js → OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js} +2 -2
- package/dist/esm/v2/{OrCardCollection-4e014d25.js → OrCardCollection-9bf513b7.js} +5 -5
- package/dist/esm/v2/{OrCarousel-3c809a13.js → OrCarousel-e0c2e387.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-dc587ec9.js → OrCheckbox-39c94019.js} +37 -40
- package/dist/esm/v2/{OrCheckbox-bf34eb0f.js → OrCheckbox-7b98fc08.js} +1 -1
- package/dist/esm/v2/OrCheckboxTree-7b81e76c.js +220 -0
- package/dist/esm/v2/{OrChip-416e848e.js → OrChip-8a1abfc5.js} +1 -1
- package/dist/esm/v2/{OrChips-77e789e9.js → OrChips-a01d8520.js} +1 -1
- package/dist/esm/v2/{OrChips.vue_rollup-plugin-vue_styles.0-e05c5ca8.js → OrChips.vue_rollup-plugin-vue_styles.0-3cbb0871.js} +1 -1
- package/dist/esm/v2/{OrCode-dcb0132a.js → OrCode-e54e09f7.js} +4 -4
- package/dist/esm/v2/{OrConfirm-497cd260.js → OrConfirm-5d5dd9bc.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-c88ca716.js → OrDateTimePicker-6e2853ec.js} +3 -3
- package/dist/esm/v2/OrFormGroup-29a514db.js +141 -0
- package/dist/esm/v2/{OrIcon-8a6d663a.js → OrIcon-a40e60af.js} +2 -2
- package/dist/esm/v2/{OrIconButton-97bfd51d.js → OrIconButton-23972f7d.js} +1 -1
- package/dist/esm/v2/{OrIconButton.vue_rollup-plugin-vue_styles.0-e3806cef.js → OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js} +3 -3
- package/dist/esm/v2/{OrInlineTextEdit-e8414fb6.js → OrInlineTextEdit-9541b625.js} +3 -3
- package/dist/esm/v2/{OrList-a46d6306.js → OrList-61c7b8ea.js} +4 -4
- package/dist/esm/v2/{OrListOfInputs-33a7bf87.js → OrListOfInputs-e1b09290.js} +5 -5
- package/dist/esm/v2/{OrModal-6d84829c.js → OrModal-b9cfb8ec.js} +3 -3
- package/dist/esm/v2/{OrNotification-7945568d.js → OrNotification-fdb88eec.js} +4 -4
- package/dist/esm/v2/{OrOverflowMenu-5ce7171b.js → OrOverflowMenu-83540c76.js} +4 -4
- package/dist/esm/v2/{OrPassword-3597153d.js → OrPassword-022e10fd.js} +3 -3
- package/dist/esm/v2/{OrSearch-49ceaac4.js → OrSearch-620d5d76.js} +3 -3
- package/dist/esm/v2/{OrSelect-40183874.js → OrSelect-1865c781.js} +1 -1
- package/dist/esm/v2/{OrSelect-eb5cc918.js → OrSelect-d887118b.js} +4 -4
- package/dist/esm/v2/{OrSlider-32a14ca4.js → OrSlider-c0a7f9cf.js} +1 -1
- package/dist/esm/v2/{OrStepper-462bc9e6.js → OrStepper-b00f7531.js} +2 -2
- package/dist/esm/v2/{OrTag-a1fff567.js → OrTag-6349049b.js} +1 -1
- package/dist/esm/v2/{OrTextbox-0a89a533.js → OrTextbox-0373bd6a.js} +3 -3
- package/dist/esm/v2/{OrToastContainer-5ce15a5b.js → OrToastContainer-1625b803.js} +3 -3
- package/dist/esm/v2/{OrTooltip-cfb56e8f.js → OrTooltip-97a42707.js} +1 -1
- package/dist/esm/v2/{OrTooltip.vue_rollup-plugin-vue_styles.0-122f7804.js → OrTooltip.vue_rollup-plugin-vue_styles.0-a256ac18.js} +1 -1
- package/dist/esm/v2/{OrTooltipContent-c9540548.js → OrTooltipContent-d85e1071.js} +2 -2
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +34 -58
- package/dist/esm/v2/components/or-avatar/index.js +4 -4
- package/dist/esm/v2/components/or-button-v2/index.js +8 -8
- package/dist/esm/v2/components/or-card-collection/index.js +9 -9
- package/dist/esm/v2/components/or-carousel/index.js +4 -4
- package/dist/esm/v2/components/or-checkbox/index.js +4 -4
- package/dist/esm/v2/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/esm/v2/components/or-checkbox-group-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +130 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +12 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/types.d.ts +8 -0
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v2/components/or-chips/index.js +6 -6
- package/dist/esm/v2/components/or-chips/or-chip/index.js +4 -4
- package/dist/esm/v2/components/or-code/index.js +9 -9
- package/dist/esm/v2/components/or-confirm/index.js +10 -10
- package/dist/esm/v2/components/or-date-time-picker/index.js +8 -8
- package/dist/esm/v2/components/or-form-group-v3/OrFormGroup.vue.d.ts +87 -0
- package/dist/esm/v2/components/or-form-group-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-form-group-v3/index.js +6 -0
- package/dist/esm/v2/components/or-form-group-v3/props.d.ts +4 -0
- package/dist/esm/v2/components/or-form-group-v3/styles.d.ts +5 -0
- package/dist/esm/v2/components/or-icon/index.js +3 -3
- package/dist/esm/v2/components/or-icon-button-v2/index.js +6 -6
- package/dist/esm/v2/components/or-inline-text-edit/index.js +8 -8
- package/dist/esm/v2/components/or-list/index.js +9 -9
- package/dist/esm/v2/components/or-list-of-inputs/index.js +10 -10
- package/dist/esm/v2/components/or-modal/index.js +8 -8
- package/dist/esm/v2/components/or-notification/index.js +8 -8
- package/dist/esm/v2/components/or-overflow-menu/index.js +9 -9
- package/dist/esm/v2/components/or-password/index.js +8 -8
- package/dist/esm/v2/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/esm/v2/components/or-radio-group-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-radio-group-v3/index.js +124 -0
- package/dist/esm/v2/components/or-search/index.js +8 -8
- package/dist/esm/v2/components/or-select/index.js +7 -7
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-slider/index.js +4 -4
- package/dist/esm/v2/components/or-stepper/index.js +8 -8
- package/dist/esm/v2/components/or-tag/index.js +4 -4
- package/dist/esm/v2/components/or-textbox/index.js +8 -8
- package/dist/esm/v2/components/or-toast/index.js +8 -8
- package/dist/esm/v2/components/or-toast/or-toast-container/index.js +8 -8
- package/dist/esm/v2/components/or-tooltip/index.js +3 -3
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/index.js +1 -1
- package/dist/esm/v2/flattenDeep-e7a8b995.js +5 -0
- package/dist/esm/v2/index.d.ts +1 -0
- package/dist/esm/v2/index.js +35 -58
- package/dist/esm/v2/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/esm/v3/{OrAvatar-b18f2208.js → OrAvatar-14a5c5f0.js} +1 -1
- package/dist/esm/v3/{OrButton-170b493f.js → OrButton-f8b10d79.js} +2 -2
- package/dist/esm/v3/{OrCardCollection-dc158967.js → OrCardCollection-ffbb9eda.js} +4 -4
- package/dist/esm/v3/{OrCarousel-8de5d65b.js → OrCarousel-03597740.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-56f849f7.js → OrCheckbox-488b6915.js} +36 -19
- package/dist/esm/v3/{OrCheckbox-c2d9cf53.js → OrCheckbox-7efd5f26.js} +1 -1
- package/dist/esm/v3/OrCheckboxTree-87d0528b.js +182 -0
- package/dist/esm/v3/{OrChip-ccd4b331.js → OrChip-97a85e10.js} +1 -1
- package/dist/esm/v3/{OrChips-9a19aa03.js → OrChips-64b86761.js} +1 -1
- package/dist/esm/v3/{OrCode-b0b514ab.js → OrCode-6f2e4d99.js} +3 -3
- package/dist/esm/v3/{OrConfirm-1ffb7ed6.js → OrConfirm-ab04201f.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-02c6de49.js → OrDateTimePicker-014f7819.js} +2 -2
- package/dist/esm/v3/OrFormGroup-9f581536.js +122 -0
- package/dist/esm/v3/{OrIcon-9b3d24cc.js → OrIcon-925c5413.js} +2 -2
- package/dist/esm/v3/{OrIconButton-9d08aa44.js → OrIconButton-5387fd59.js} +3 -3
- package/dist/esm/v3/{OrInlineTextEdit-8cfde85c.js → OrInlineTextEdit-6f97629f.js} +2 -2
- package/dist/esm/v3/{OrList-d3e330be.js → OrList-b8799cf4.js} +3 -3
- package/dist/esm/v3/{OrListOfInputs-3c8eaf97.js → OrListOfInputs-16ba8358.js} +4 -4
- package/dist/esm/v3/{OrModal-f8ae7146.js → OrModal-e6513e8c.js} +2 -2
- package/dist/esm/v3/{OrNotification-24192897.js → OrNotification-4c56f7ea.js} +3 -3
- package/dist/esm/v3/{OrOverflowMenu-a7568f8d.js → OrOverflowMenu-fe77e22c.js} +2 -2
- package/dist/esm/v3/{OrPassword-88a67993.js → OrPassword-9c8a458d.js} +2 -2
- package/dist/esm/v3/{OrSearch-fb2dd591.js → OrSearch-c4caf04e.js} +2 -2
- package/dist/esm/v3/{OrSelect-5502d82d.js → OrSelect-35b41c3f.js} +1 -1
- package/dist/esm/v3/{OrSelect-3d923250.js → OrSelect-d8a78242.js} +4 -4
- package/dist/esm/v3/{OrSlider-ae7b8a11.js → OrSlider-80e0f2e6.js} +1 -1
- package/dist/esm/v3/{OrStepper-446007c5.js → OrStepper-3a586401.js} +2 -2
- package/dist/esm/v3/{OrTag-38d1ba92.js → OrTag-e7adb078.js} +1 -1
- package/dist/esm/v3/{OrTextbox-7de2b10c.js → OrTextbox-f7388a30.js} +2 -2
- package/dist/esm/v3/{OrToastContainer-c3ecb1c8.js → OrToastContainer-94ba2803.js} +2 -2
- package/dist/esm/v3/{OrTooltip-be7209e5.js → OrTooltip-618ce7c9.js} +1 -1
- package/dist/esm/v3/{OrTooltipContent-68c34911.js → OrTooltipContent-37a5f562.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +30 -54
- package/dist/esm/v3/components/or-avatar/index.js +4 -4
- package/dist/esm/v3/components/or-button-v2/index.js +5 -5
- package/dist/esm/v3/components/or-card-collection/index.js +7 -7
- package/dist/esm/v3/components/or-carousel/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/esm/v3/components/or-checkbox-group-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +97 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +12 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/types.d.ts +8 -0
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v3/components/or-chips/index.js +5 -5
- package/dist/esm/v3/components/or-chips/or-chip/index.js +4 -4
- package/dist/esm/v3/components/or-code/index.js +7 -7
- package/dist/esm/v3/components/or-confirm/index.js +7 -7
- package/dist/esm/v3/components/or-date-time-picker/index.js +6 -6
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +87 -0
- package/dist/esm/v3/components/or-form-group-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-form-group-v3/index.js +6 -0
- package/dist/esm/v3/components/or-form-group-v3/props.d.ts +4 -0
- package/dist/esm/v3/components/or-form-group-v3/styles.d.ts +5 -0
- package/dist/esm/v3/components/or-icon/index.js +3 -3
- package/dist/esm/v3/components/or-icon-button-v2/index.js +4 -4
- package/dist/esm/v3/components/or-inline-text-edit/index.js +6 -6
- package/dist/esm/v3/components/or-list/index.js +6 -6
- package/dist/esm/v3/components/or-list-of-inputs/index.js +7 -7
- package/dist/esm/v3/components/or-modal/index.js +6 -6
- package/dist/esm/v3/components/or-notification/index.js +6 -6
- package/dist/esm/v3/components/or-overflow-menu/index.js +6 -6
- package/dist/esm/v3/components/or-password/index.js +6 -6
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/esm/v3/components/or-radio-group-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-radio-group-v3/index.js +91 -0
- package/dist/esm/v3/components/or-search/index.js +6 -6
- package/dist/esm/v3/components/or-select/index.js +7 -7
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-slider/index.js +4 -4
- package/dist/esm/v3/components/or-stepper/index.js +6 -6
- package/dist/esm/v3/components/or-tag/index.js +4 -4
- package/dist/esm/v3/components/or-textbox/index.js +6 -6
- package/dist/esm/v3/components/or-toast/index.js +6 -6
- package/dist/esm/v3/components/or-toast/or-toast-container/index.js +6 -6
- package/dist/esm/v3/components/or-tooltip/index.js +2 -2
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/index.js +1 -1
- package/dist/esm/v3/flattenDeep-e7a8b995.js +5 -0
- package/dist/esm/v3/index.d.ts +1 -0
- package/dist/esm/v3/index.js +31 -54
- package/dist/esm/v3/utils/functions/flattenDeep.d.ts +2 -0
- package/package.json +5 -25
- package/src/components/index.ts +0 -1
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +7 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +373 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.vue +80 -0
- package/src/components/or-checkbox-group-v3/index.ts +1 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.docs.mdx +7 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.stories3.ts +112 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.vue +192 -0
- package/src/components/or-checkbox-tree-v3/index.ts +2 -0
- package/src/components/or-checkbox-tree-v3/styles.ts +15 -0
- package/src/components/or-checkbox-tree-v3/types.ts +8 -0
- package/src/components/or-checkbox-v3/OrCheckbox.vue +33 -13
- package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +114 -0
- package/src/components/or-form-group-v3/OrFormGroup.vue +116 -0
- package/src/components/or-form-group-v3/index.ts +2 -0
- package/src/components/or-form-group-v3/props.ts +4 -0
- package/src/components/or-form-group-v3/styles.ts +33 -0
- package/src/components/or-radio-group-v3/OrRadioGroup.stories3.ts +81 -0
- package/src/components/or-radio-group-v3/OrRadioGroup.vue +80 -0
- package/src/components/or-radio-group-v3/index.ts +1 -0
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue +0 -1
- package/src/index.ts +1 -0
- package/src/utils/functions/flattenDeep.ts +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -1990
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -68
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -45
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v2/index-62c3221b.js +0 -6956
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v2/markdown-516daba9.js +0 -18737
- package/dist/bundled/v2/tiptap-core.esm-f85402b1.js +0 -9360
- package/dist/bundled/v2/useFocusTrap-9567b3c8.js +0 -1268
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-f6f74339.js +0 -236
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-af0c4288.js +0 -107
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-fec87993.js +0 -1765
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -228
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -84
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -45
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v3/index-16aee5bc.js +0 -3740
- package/dist/bundled/v3/index-62c3221b.js +0 -6956
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/markdown-516daba9.js +0 -18737
- package/dist/bundled/v3/tiptap-core.esm-f85402b1.js +0 -9360
- package/dist/esm/v2/OrRichTextEditor-e19e74f4.js +0 -724
- package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -59
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v3/OrRichTextEditor-f5c54d46.js +0 -687
- package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -57
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -7
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -102
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -624
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -64
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -213
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -117
- /package/dist/bundled/v2/components/{OrRichTextEditorV3/utils/codemirror → OrCheckboxTreeV3}/types.js +0 -0
- /package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-e3152dc5.js → OrIcon.vue_vue_type_script_lang-e5349e49.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-0811fd48.js → OrToastContainer.vue_vue_type_script_lang-70cc38be.js} +0 -0
- /package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-b8594f7e.js → OrTooltip.vue_vue_type_script_lang-76a6b7f4.js} +0 -0
- /package/dist/bundled/v3/components/{OrRichTextEditorV3/utils/codemirror → OrCheckboxTreeV3}/types.js +0 -0
|
@@ -1,353 +0,0 @@
|
|
|
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 };
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { Level } from '@tiptap/extension-heading';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
editor: Editor | null;
|
|
5
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
6
|
-
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
7
|
-
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, {
|
|
8
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
9
|
-
} | string[], {} & {}, {
|
|
10
|
-
[x: number]: string;
|
|
11
|
-
} | {}, true> | undefined>;
|
|
12
|
-
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, {
|
|
13
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
14
|
-
} | string[], {} & {}, {
|
|
15
|
-
[x: number]: string;
|
|
16
|
-
} | {}, true> | undefined>;
|
|
17
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
18
|
-
[x: string]: string;
|
|
19
|
-
}>;
|
|
20
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
21
|
-
handleEditorClick: () => void;
|
|
22
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
23
|
-
[x: string]: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
26
|
-
[x: string]: string;
|
|
27
|
-
}>;
|
|
28
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
30
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
31
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
32
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
33
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
34
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
35
|
-
headingLevels: Level[];
|
|
36
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
37
|
-
attachLink: () => Promise<void>;
|
|
38
|
-
discardLink: () => void;
|
|
39
|
-
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
40
|
-
text: import("@vue/composition-api").Ref<string>;
|
|
41
|
-
link: import("@vue/composition-api").Ref<string>;
|
|
42
|
-
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
43
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
44
|
-
modelValue: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: undefined;
|
|
47
|
-
};
|
|
48
|
-
toolbar: {
|
|
49
|
-
type: ArrayConstructor;
|
|
50
|
-
default: () => never[];
|
|
51
|
-
};
|
|
52
|
-
description: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
placeholder: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
autofocus: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
markdownFormat: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
fullHeight: {
|
|
69
|
-
type: BooleanConstructor;
|
|
70
|
-
default: boolean;
|
|
71
|
-
};
|
|
72
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
73
|
-
modelValue: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
default: undefined;
|
|
76
|
-
};
|
|
77
|
-
toolbar: {
|
|
78
|
-
type: ArrayConstructor;
|
|
79
|
-
default: () => never[];
|
|
80
|
-
};
|
|
81
|
-
description: {
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
placeholder: {
|
|
86
|
-
type: StringConstructor;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
autofocus: {
|
|
90
|
-
type: BooleanConstructor;
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
markdownFormat: {
|
|
94
|
-
type: BooleanConstructor;
|
|
95
|
-
default: boolean;
|
|
96
|
-
};
|
|
97
|
-
fullHeight: {
|
|
98
|
-
type: BooleanConstructor;
|
|
99
|
-
default: boolean;
|
|
100
|
-
};
|
|
101
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
102
|
-
modelValue: string;
|
|
103
|
-
toolbar: unknown[];
|
|
104
|
-
description: string;
|
|
105
|
-
placeholder: string;
|
|
106
|
-
autofocus: boolean;
|
|
107
|
-
markdownFormat: boolean;
|
|
108
|
-
fullHeight: boolean;
|
|
109
|
-
} & {} & {
|
|
110
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
111
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
112
|
-
editor: Editor | null;
|
|
113
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
114
|
-
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
115
|
-
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, {
|
|
116
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
117
|
-
} | string[], {} & {}, {
|
|
118
|
-
[x: number]: string;
|
|
119
|
-
} | {}, true> | undefined>;
|
|
120
|
-
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, {
|
|
121
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
122
|
-
} | string[], {} & {}, {
|
|
123
|
-
[x: number]: string;
|
|
124
|
-
} | {}, true> | undefined>;
|
|
125
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
126
|
-
[x: string]: string;
|
|
127
|
-
}>;
|
|
128
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
129
|
-
handleEditorClick: () => void;
|
|
130
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
131
|
-
[x: string]: boolean;
|
|
132
|
-
}>;
|
|
133
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
134
|
-
[x: string]: string;
|
|
135
|
-
}>;
|
|
136
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
137
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
138
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
139
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
140
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
141
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
142
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
143
|
-
headingLevels: Level[];
|
|
144
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
145
|
-
attachLink: () => Promise<void>;
|
|
146
|
-
discardLink: () => void;
|
|
147
|
-
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
148
|
-
text: import("@vue/composition-api").Ref<string>;
|
|
149
|
-
link: import("@vue/composition-api").Ref<string>;
|
|
150
|
-
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
151
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
152
|
-
modelValue: string;
|
|
153
|
-
toolbar: unknown[];
|
|
154
|
-
description: string;
|
|
155
|
-
placeholder: string;
|
|
156
|
-
autofocus: boolean;
|
|
157
|
-
markdownFormat: boolean;
|
|
158
|
-
fullHeight: boolean;
|
|
159
|
-
} & {} & {
|
|
160
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
modelValue: string;
|
|
163
|
-
toolbar: unknown[];
|
|
164
|
-
description: string;
|
|
165
|
-
placeholder: string;
|
|
166
|
-
autofocus: boolean;
|
|
167
|
-
markdownFormat: boolean;
|
|
168
|
-
fullHeight: boolean;
|
|
169
|
-
}, true>);
|
|
170
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor-f5c54d46.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-786b9346.js';
|
|
22
|
-
import '../../OrIcon-62793572.js';
|
|
23
|
-
import 'vue';
|
|
24
|
-
import '../../OrTooltip-56ed42c7.js';
|
|
25
|
-
import '../../OrPopover-d6d82a06.js';
|
|
26
|
-
import '@floating-ui/dom';
|
|
27
|
-
import '../../useElevation-df91fa50.js';
|
|
28
|
-
import '../../useResponsive-a02e95b7.js';
|
|
29
|
-
import '../../OrBottomSheet-95bc694e.js';
|
|
30
|
-
import '../../OrOverlay-d63d39c3.js';
|
|
31
|
-
import '../../OrTeleport.vue3-8099178c.js';
|
|
32
|
-
import '../../OrLabel-4da56db0.js';
|
|
33
|
-
import '../../OrMenu-f8132f3e.js';
|
|
34
|
-
import '../../OrMenuItem-dbee450f.js';
|
|
35
|
-
import '../../OrModal-cb236842.js';
|
|
36
|
-
import '../../OrInput-a43b53d2.js';
|
|
37
|
-
import '../../useIdAttribute-859439f0.js';
|
|
38
|
-
import '../../useValidationAttributes-d1abbe34.js';
|
|
39
|
-
import '../../OrError-c01d0c29.js';
|
|
40
|
-
import '../../OrHint-06ab89d7.js';
|
|
41
|
-
import '../../OrInputBox-11389afd.js';
|
|
42
|
-
import '../../OrLoader-b79022da.js';
|
|
43
|
-
import '../../style-inject.es-4c6f2515.js';
|
|
44
|
-
import '../../OrButton-8558588c.js';
|
|
45
|
-
import '@tiptap/core';
|
|
46
|
-
import '@tiptap/starter-kit';
|
|
47
|
-
import '@tiptap/extension-heading';
|
|
48
|
-
import '@tiptap/extension-placeholder';
|
|
49
|
-
import '../../codemirrorView-be2c7423.js';
|
|
50
|
-
import 'prosemirror-state';
|
|
51
|
-
import 'prosemirror-commands';
|
|
52
|
-
import '@codemirror/state';
|
|
53
|
-
import '@codemirror/view';
|
|
54
|
-
import '@codemirror/language';
|
|
55
|
-
import '@lezer/highlight';
|
|
56
|
-
import 'codemirror';
|
|
57
|
-
import '@codemirror/lang-javascript';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const EditorContainer: string[];
|
|
2
|
-
export declare const ToolbarContainer: string[];
|
|
3
|
-
export declare const Toolbar: string[];
|
|
4
|
-
export declare const ToolbarButton: string[];
|
|
5
|
-
export declare const ToolbarButtonFocused: string[];
|
|
6
|
-
export declare const EditorInput: string[];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TextSelection } from 'prosemirror-state';
|
|
2
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
|
-
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
4
|
-
import { Transaction as CMTransaction } from '@codemirror/state';
|
|
5
|
-
import { Command, EditorView as CMView } from '@codemirror/view';
|
|
6
|
-
import { CodeMirrorViewOptions } from './types';
|
|
7
|
-
declare class CodeMirrorView implements NodeView {
|
|
8
|
-
name: string;
|
|
9
|
-
node: ProsemirrorNode;
|
|
10
|
-
view: EditorView;
|
|
11
|
-
dom: HTMLElement;
|
|
12
|
-
cm: CMView;
|
|
13
|
-
getPos: () => number;
|
|
14
|
-
updating: boolean;
|
|
15
|
-
constructor(options: CodeMirrorViewOptions);
|
|
16
|
-
forwardSelection(): void;
|
|
17
|
-
asProseMirrorSelection(doc: ProsemirrorNode): TextSelection;
|
|
18
|
-
dispatch(cmTr: CMTransaction): void;
|
|
19
|
-
mayBeEscape(unit: 'char' | 'line', dir: -1 | 1): Command;
|
|
20
|
-
update(node: ProsemirrorNode): boolean;
|
|
21
|
-
setSelection(anchor: number, head: number): void;
|
|
22
|
-
focus(): void;
|
|
23
|
-
selectNode(): void;
|
|
24
|
-
stopEvent(): boolean;
|
|
25
|
-
destroy(): void;
|
|
26
|
-
}
|
|
27
|
-
export default CodeMirrorView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CodeMirrorView } from './codemirrorView';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@codemirror/state';
|
|
2
|
-
import { HighlightStyle } from '@codemirror/language';
|
|
3
|
-
export declare const color: {
|
|
4
|
-
chalky: string;
|
|
5
|
-
coral: string;
|
|
6
|
-
cyan: string;
|
|
7
|
-
invalid: string;
|
|
8
|
-
ivory: string;
|
|
9
|
-
stone: string;
|
|
10
|
-
malibu: string;
|
|
11
|
-
sage: string;
|
|
12
|
-
whiskey: string;
|
|
13
|
-
violet: string;
|
|
14
|
-
darkBackground: string;
|
|
15
|
-
highlightBackground: string;
|
|
16
|
-
background: string;
|
|
17
|
-
tooltipBackground: string;
|
|
18
|
-
selection: string;
|
|
19
|
-
cursor: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const orCodeTheme: Extension;
|
|
22
|
-
export declare const orCodeHighlightStyle: HighlightStyle;
|
|
23
|
-
declare const theme: Extension;
|
|
24
|
-
export default theme;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { EditorView } from 'prosemirror-view';
|
|
2
|
-
import type { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
3
|
-
import type { Extension } from '@codemirror/state';
|
|
4
|
-
export interface ComputeChange {
|
|
5
|
-
from: number;
|
|
6
|
-
to: number;
|
|
7
|
-
text: string;
|
|
8
|
-
}
|
|
9
|
-
interface CMOptions {
|
|
10
|
-
extensions: Extension;
|
|
11
|
-
}
|
|
12
|
-
export type GetPos = () => number | undefined;
|
|
13
|
-
export interface CodeMirrorViewOptions {
|
|
14
|
-
node: ProsemirrorNode;
|
|
15
|
-
view: EditorView;
|
|
16
|
-
getPos: GetPos;
|
|
17
|
-
cmOptions?: CMOptions;
|
|
18
|
-
}
|
|
19
|
-
export {};
|