@onereach/ui-components 4.5.0-beta.2726.0 → 4.5.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/{OrDateTimePickerMonthSelect-5fa6caa0.js → OrDateTimePickerMonthSelect-75089f80.js} +6 -3
- package/dist/bundled/v2/{OrDateTimePickerTimeSelect-aa60911c.js → OrDateTimePickerTimeSelect-3d0ef650.js} +6 -3
- package/dist/bundled/v2/components/OrCode/OrCode.js +3792 -6
- package/dist/bundled/v2/components/OrCode/index.js +2 -6
- package/dist/bundled/v2/components/OrCode/lang.js +3 -3941
- 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/OrDatePickerV3/OrDatePicker.js +12 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +13 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -2
- package/dist/bundled/v2/components/OrModal/OrModal.js +1346 -3
- package/dist/bundled/v2/components/OrModal/index.js +0 -1
- package/dist/bundled/v2/components/OrTabsV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +12 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +2 -1
- package/dist/bundled/v2/components/index.js +10 -22
- package/dist/bundled/v2/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
- package/dist/bundled/v2/index.js +13 -25
- package/dist/bundled/{v3/index-e9f6b2d8.js → v2/lang-0fb8f78b.js} +4009 -73
- package/dist/bundled/v3/{index-d92d0b48.js → OrCode.vue_vue_type_script_lang-74060519.js} +235 -14
- package/dist/bundled/v3/OrCombinedInput.vue_vue_type_script_lang-cb7a88f3.js +66 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ae9422fb.js → OrConfirm.vue_vue_type_script_lang-e5a8f92a.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-33719f37.js → OrDatePicker.vue_vue_type_script_lang-d071d109.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-ef95eeb6.js → OrDateTimePicker.vue_vue_type_script_lang-8aa80833.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-fe878127.js → OrDateTimePickerMonthSelect-387c2096.js} +6 -4
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-b962e4d5.js → OrDateTimePickerTimeSelect-8bdb97b7.js} +6 -4
- package/dist/bundled/{v2/useFocusTrap-104d095b.js → v3/OrModal.vue_vue_type_script_lang-ae842e5b.js} +106 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-dd7222e8.js → OrTimePicker.vue_vue_type_script_lang-c52a2a0b.js} +1 -1
- package/dist/bundled/v3/components/OrCode/OrCode.js +6 -10
- package/dist/bundled/v3/components/OrCode/index.js +4 -8
- package/dist/bundled/v3/components/OrCode/lang.js +3 -3941
- package/dist/bundled/v3/components/OrCode/theme.js +1 -2
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +11 -66
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +3 -4
- package/dist/bundled/v3/components/OrConfirm/index.js +2 -3
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +6 -6
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +7 -7
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -3
- package/dist/bundled/v3/components/OrModal/index.js +1 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +6 -6
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/index.d.ts +2 -1
- package/dist/bundled/v3/components/index.js +16 -29
- package/dist/bundled/v3/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
- package/dist/bundled/v3/index.js +25 -37
- package/dist/bundled/{v2/index-e9f6b2d8.js → v3/lang-0fb8f78b.js} +4009 -73
- package/dist/esm/v2/OrCombinedInput-5994d9fc.js +158 -0
- package/dist/esm/v2/{OrDatePicker-a8c95da8.js → OrDatePicker-b6ebf44a.js} +12 -1
- package/dist/esm/v2/{OrDateTimePicker-9271659e.js → OrDateTimePicker-85c08b90.js} +13 -2
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-a3a0fb4e.js → OrDateTimePickerMonthSelect-e35404a7.js} +6 -3
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-0b70d0df.js → OrDateTimePickerTimeSelect-aed7d33d.js} +6 -3
- package/dist/esm/v2/{OrTabs-b9908867.js → OrTabs-653258a2.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-0c6a05f1.js → OrTimePicker-696e29ed.js} +12 -1
- package/dist/esm/v2/components/index.d.ts +2 -1
- package/dist/esm/v2/components/index.js +10 -33
- package/dist/esm/v2/components/or-combined-input-v3/index.js +6 -158
- package/dist/esm/v2/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v2/index.js +10 -33
- package/dist/esm/v3/OrCombinedInput-14c23a04.js +129 -0
- package/dist/esm/v3/{OrDatePicker-759653a5.js → OrDatePicker-f144d074.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-4768a411.js → OrDateTimePicker-2214cd85.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-c07806a0.js → OrDateTimePickerMonthSelect-5a7b7b5c.js} +6 -4
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-9309c434.js → OrDateTimePickerTimeSelect-e404e826.js} +6 -4
- package/dist/esm/v3/{OrTabs-f9f0892e.js → OrTabs-a2d87627.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-ba6e6857.js → OrTimePicker-68de86d9.js} +4 -4
- package/dist/esm/v3/components/index.d.ts +2 -1
- package/dist/esm/v3/components/index.js +9 -32
- package/dist/esm/v3/components/or-combined-input-v3/index.js +6 -129
- package/dist/esm/v3/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/index.js +9 -32
- package/package.json +4 -24
- package/src/components/index.ts +2 -1
- package/src/components/or-button/OrButton.stories.ts +8 -0
- package/src/components/or-date-picker-v3/OrDatePicker.vue +2 -0
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +2 -0
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue +7 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +7 -2
- package/src/components/or-tabs-v3/styles.ts +1 -1
- package/src/components/or-time-picker-v3/OrTimePicker.vue +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -2200
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -70
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +0 -4
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +0 -7
- 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 -46
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v2/index-418d5c0d.js +0 -9633
- package/dist/bundled/v2/index-85c2efe8.js +0 -7122
- package/dist/bundled/v2/index-d92d0b48.js +0 -3805
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v2/markdown-7c7c4ca6.js +0 -17980
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-a5b8c6ca.js +0 -237
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-28541a68.js +0 -108
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-55b73340.js +0 -1890
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -284
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -145
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -86
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -4
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
- 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 -46
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v3/index-418d5c0d.js +0 -9633
- package/dist/bundled/v3/index-85c2efe8.js +0 -7122
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/markdown-7c7c4ca6.js +0 -17980
- package/dist/bundled/v3/useFocusTrap-104d095b.js +0 -1348
- package/dist/esm/v2/OrRichTextEditor-8c43bb27.js +0 -923
- package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -220
- 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/props.d.ts +0 -4
- 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-b20efab9.js +0 -856
- package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -145
- 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/props.d.ts +0 -4
- 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-bottom-sheet-v3/OrBottomSheet.docs.mdx +0 -7
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.stories3.ts +0 -110
- package/src/components/or-button-v3/OrButton.docs.mdx +0 -14
- package/src/components/or-button-v3/OrButton.stories3.ts +0 -130
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +0 -7
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +0 -378
- package/src/components/or-card-v3/OrCard.docs.mdx +0 -10
- package/src/components/or-card-v3/OrCard.stories3.ts +0 -74
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +0 -7
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +0 -399
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.docs.mdx +0 -7
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.stories3.ts +0 -112
- package/src/components/or-checkbox-v3/OrCheckbox.docs.mdx +0 -12
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +0 -155
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
- package/src/components/or-confirm-v3/OrConfirm.docs.mdx +0 -16
- package/src/components/or-confirm-v3/OrConfirm.stories3.ts +0 -252
- package/src/components/or-date-picker-v3/OrDatePicker.docs.mdx +0 -7
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +0 -174
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.docs.mdx +0 -7
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +0 -183
- package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +0 -87
- package/src/components/or-error-tag-v3/OrErrorTag.docs.mdx +0 -8
- package/src/components/or-error-tag-v3/OrErrorTag.stories3.ts +0 -56
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.docs.mdx +0 -7
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.stories3.ts +0 -137
- package/src/components/or-fab-v3/OrFab.docs.mdx +0 -7
- package/src/components/or-fab-v3/OrFab.stories3.ts +0 -81
- package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +0 -114
- package/src/components/or-icon-button-v3/OrIconButton.docs.mdx +0 -14
- package/src/components/or-icon-button-v3/OrIconButton.stories3.ts +0 -105
- package/src/components/or-icon-v3/OrIcon.docs.mdx +0 -12
- package/src/components/or-icon-v3/OrIcon.stories3.ts +0 -53
- package/src/components/or-inline-input-v3/OrInlineInput.docs.mdx +0 -7
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +0 -137
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.docs.mdx +0 -7
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +0 -126
- package/src/components/or-input-v3/OrInput.docs.mdx +0 -16
- package/src/components/or-input-v3/OrInput.stories3.ts +0 -222
- package/src/components/or-link-v3/OrLink.docs.mdx +0 -7
- package/src/components/or-link-v3/OrLink.stories3.ts +0 -163
- package/src/components/or-loader-v3/OrLoader.docs.mdx +0 -14
- package/src/components/or-loader-v3/OrLoader.stories3.ts +0 -86
- package/src/components/or-menu-item-v3/OrMenuItem.docs.mdx +0 -7
- package/src/components/or-menu-item-v3/OrMenuItem.stories3.ts +0 -90
- package/src/components/or-menu-v3/OrMenu.docs.mdx +0 -7
- package/src/components/or-menu-v3/OrMenu.stories3.ts +0 -167
- package/src/components/or-modal-v3/OrModal.docs.mdx +0 -10
- package/src/components/or-modal-v3/OrModal.stories3.ts +0 -278
- package/src/components/or-notification-v3/OrNotification.docs.mdx +0 -7
- package/src/components/or-notification-v3/OrNotification.stories3.ts +0 -122
- package/src/components/or-overlay-v3/OrOverlay.docs.mdx +0 -11
- package/src/components/or-overlay-v3/OrOverlay.stories3.ts +0 -61
- package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -81
- package/src/components/or-popover-v3/OrPopover.docs.mdx +0 -11
- package/src/components/or-popover-v3/OrPopover.stories3.ts +0 -115
- package/src/components/or-progress-v3/OrProgress.docs.mdx +0 -12
- package/src/components/or-progress-v3/OrProgress.stories3.ts +0 -220
- package/src/components/or-radio-group-v3/OrRadioGroup.stories3.ts +0 -81
- package/src/components/or-radio-v3/OrRadio.docs.mdx +0 -11
- package/src/components/or-radio-v3/OrRadio.stories3.ts +0 -151
- 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 -142
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -766
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/props.ts +0 -4
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -54
- 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 -120
- package/src/components/or-search-v3/OrSearch.docs.mdx +0 -16
- package/src/components/or-search-v3/OrSearch.stories3.ts +0 -126
- package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +0 -7
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +0 -100
- package/src/components/or-select-v3/OrSelect.docs.mdx +0 -17
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -508
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -13
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +0 -415
- package/src/components/or-skeleton-v3/OrSkeleton.docs.mdx +0 -14
- package/src/components/or-skeleton-v3/OrSkeleton.stories3.ts +0 -144
- package/src/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.docs.mdx +0 -7
- package/src/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.stories3.ts +0 -59
- package/src/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.docs.mdx +0 -6
- package/src/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.stories3.ts +0 -80
- package/src/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.docs.mdx +0 -7
- package/src/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.stories3.ts +0 -88
- package/src/components/or-switch-v3/OrSwitch.docs.mdx +0 -7
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +0 -155
- package/src/components/or-tab-v3/OrTab.docs.mdx +0 -7
- package/src/components/or-tab-v3/OrTab.stories3.ts +0 -74
- package/src/components/or-tabs-v3/OrTabs.docs.mdx +0 -7
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +0 -140
- package/src/components/or-tag-v3/OrTag.docs.mdx +0 -13
- package/src/components/or-tag-v3/OrTag.stories3.ts +0 -213
- package/src/components/or-tags-v3/OrTags.docs.mdx +0 -7
- package/src/components/or-tags-v3/OrTags.stories3.ts +0 -101
- package/src/components/or-teleport-v3/OrTeleport.docs.mdx +0 -7
- package/src/components/or-teleport-v3/OrTeleport.stories3.ts +0 -60
- package/src/components/or-text-v3/OrText.docs.mdx +0 -7
- package/src/components/or-text-v3/OrText.stories3.ts +0 -124
- package/src/components/or-textarea-v3/OrTextarea.docs.mdx +0 -14
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +0 -164
- package/src/components/or-time-picker-v3/OrTimePicker.docs.mdx +0 -7
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +0 -170
- package/src/components/or-toast-v3/OrToast.stories3.ts +0 -67
- package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.docs.mdx +0 -123
- package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.stories3.ts +0 -119
- package/src/components/or-tooltip-v3/OrTooltip.docs.mdx +0 -10
- package/src/components/or-tooltip-v3/OrTooltip.stories3.ts +0 -84
- /package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-b3f213b0.js → OrTabs.vue_vue_type_script_lang-9d4221f1.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,220 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, PropType } from 'vue-demi';
|
|
2
|
-
import { Formats } from './props';
|
|
3
|
-
import { Editor } from '@tiptap/core';
|
|
4
|
-
import { Level } from '@tiptap/extension-heading';
|
|
5
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
6
|
-
editor: Editor | null;
|
|
7
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
8
|
-
toolbarRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
9
|
-
containerRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
10
|
-
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, {
|
|
11
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
12
|
-
} | string[], {} & {}, {
|
|
13
|
-
[x: number]: string;
|
|
14
|
-
} | {}, true> | undefined>;
|
|
15
|
-
moreButtonRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
16
|
-
textareaRef: import("@vue/composition-api").Ref<HTMLTextAreaElement | undefined>;
|
|
17
|
-
moreRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
18
|
-
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, {
|
|
19
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
-
} | string[], {} & {}, {
|
|
21
|
-
[x: number]: string;
|
|
22
|
-
} | {}, true> | undefined>;
|
|
23
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
24
|
-
[x: string]: string;
|
|
25
|
-
}>;
|
|
26
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
27
|
-
handleEditorClick: () => void;
|
|
28
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
29
|
-
[x: string]: boolean;
|
|
30
|
-
}>;
|
|
31
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
32
|
-
[x: string]: string;
|
|
33
|
-
}>;
|
|
34
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
35
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
36
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
37
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
38
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
39
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
40
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
41
|
-
headingLevels: Level[];
|
|
42
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
43
|
-
attachLink: () => Promise<void>;
|
|
44
|
-
discardLink: () => void;
|
|
45
|
-
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
46
|
-
text: import("@vue/composition-api").Ref<string>;
|
|
47
|
-
link: import("@vue/composition-api").Ref<string>;
|
|
48
|
-
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
49
|
-
isVisible: (value: string | Array<string>) => boolean;
|
|
50
|
-
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
51
|
-
notVisibleTools: import("@vue/composition-api").ComputedRef<string[]>;
|
|
52
|
-
handleInput: (event: InputEvent) => void;
|
|
53
|
-
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
54
|
-
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
55
|
-
sourceValue: import("@vue/composition-api").Ref<string>;
|
|
56
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
57
|
-
modelValue: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: undefined;
|
|
60
|
-
};
|
|
61
|
-
toolbar: {
|
|
62
|
-
type: {
|
|
63
|
-
(arrayLength: number): string[][];
|
|
64
|
-
(...items: string[][]): string[][];
|
|
65
|
-
new (arrayLength: number): string[][];
|
|
66
|
-
new (...items: string[][]): string[][];
|
|
67
|
-
isArray(arg: any): arg is any[];
|
|
68
|
-
readonly prototype: any[];
|
|
69
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
70
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
71
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
72
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
73
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
74
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
75
|
-
};
|
|
76
|
-
default: () => never[];
|
|
77
|
-
};
|
|
78
|
-
description: {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
placeholder: {
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
autofocus: {
|
|
87
|
-
type: BooleanConstructor;
|
|
88
|
-
default: boolean;
|
|
89
|
-
};
|
|
90
|
-
format: {
|
|
91
|
-
type: PropType<Formats>;
|
|
92
|
-
default: Formats;
|
|
93
|
-
};
|
|
94
|
-
fullHeight: {
|
|
95
|
-
type: BooleanConstructor;
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
99
|
-
modelValue: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: undefined;
|
|
102
|
-
};
|
|
103
|
-
toolbar: {
|
|
104
|
-
type: {
|
|
105
|
-
(arrayLength: number): string[][];
|
|
106
|
-
(...items: string[][]): string[][];
|
|
107
|
-
new (arrayLength: number): string[][];
|
|
108
|
-
new (...items: string[][]): string[][];
|
|
109
|
-
isArray(arg: any): arg is any[];
|
|
110
|
-
readonly prototype: any[];
|
|
111
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
112
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
113
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
114
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
115
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
116
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
117
|
-
};
|
|
118
|
-
default: () => never[];
|
|
119
|
-
};
|
|
120
|
-
description: {
|
|
121
|
-
type: StringConstructor;
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
124
|
-
placeholder: {
|
|
125
|
-
type: StringConstructor;
|
|
126
|
-
default: string;
|
|
127
|
-
};
|
|
128
|
-
autofocus: {
|
|
129
|
-
type: BooleanConstructor;
|
|
130
|
-
default: boolean;
|
|
131
|
-
};
|
|
132
|
-
format: {
|
|
133
|
-
type: PropType<Formats>;
|
|
134
|
-
default: Formats;
|
|
135
|
-
};
|
|
136
|
-
fullHeight: {
|
|
137
|
-
type: BooleanConstructor;
|
|
138
|
-
default: boolean;
|
|
139
|
-
};
|
|
140
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
141
|
-
modelValue: string;
|
|
142
|
-
toolbar: string[][];
|
|
143
|
-
description: string;
|
|
144
|
-
placeholder: string;
|
|
145
|
-
autofocus: boolean;
|
|
146
|
-
format: Formats;
|
|
147
|
-
fullHeight: boolean;
|
|
148
|
-
} & {} & {
|
|
149
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
150
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
151
|
-
editor: Editor | null;
|
|
152
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
153
|
-
toolbarRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
154
|
-
containerRef: import("@vue/composition-api").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false> | undefined>;
|
|
155
|
-
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, {
|
|
156
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
157
|
-
} | string[], {} & {}, {
|
|
158
|
-
[x: number]: string;
|
|
159
|
-
} | {}, true> | undefined>;
|
|
160
|
-
moreButtonRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
161
|
-
textareaRef: import("@vue/composition-api").Ref<HTMLTextAreaElement | undefined>;
|
|
162
|
-
moreRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
163
|
-
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, {
|
|
164
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
165
|
-
} | string[], {} & {}, {
|
|
166
|
-
[x: number]: string;
|
|
167
|
-
} | {}, true> | undefined>;
|
|
168
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
169
|
-
[x: string]: string;
|
|
170
|
-
}>;
|
|
171
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
172
|
-
handleEditorClick: () => void;
|
|
173
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
174
|
-
[x: string]: boolean;
|
|
175
|
-
}>;
|
|
176
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
177
|
-
[x: string]: string;
|
|
178
|
-
}>;
|
|
179
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
180
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
181
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
182
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
183
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
184
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
185
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
186
|
-
headingLevels: Level[];
|
|
187
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
188
|
-
attachLink: () => Promise<void>;
|
|
189
|
-
discardLink: () => void;
|
|
190
|
-
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
191
|
-
text: import("@vue/composition-api").Ref<string>;
|
|
192
|
-
link: import("@vue/composition-api").Ref<string>;
|
|
193
|
-
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
194
|
-
isVisible: (value: string | Array<string>) => boolean;
|
|
195
|
-
countOfNotVisibleTools: import("@vue/composition-api").Ref<number>;
|
|
196
|
-
notVisibleTools: import("@vue/composition-api").ComputedRef<string[]>;
|
|
197
|
-
handleInput: (event: InputEvent) => void;
|
|
198
|
-
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
199
|
-
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
200
|
-
sourceValue: import("@vue/composition-api").Ref<string>;
|
|
201
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
202
|
-
modelValue: string;
|
|
203
|
-
toolbar: string[][];
|
|
204
|
-
description: string;
|
|
205
|
-
placeholder: string;
|
|
206
|
-
autofocus: boolean;
|
|
207
|
-
format: Formats;
|
|
208
|
-
fullHeight: boolean;
|
|
209
|
-
} & {} & {
|
|
210
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
211
|
-
}, {
|
|
212
|
-
modelValue: string;
|
|
213
|
-
toolbar: string[][];
|
|
214
|
-
description: string;
|
|
215
|
-
placeholder: string;
|
|
216
|
-
autofocus: boolean;
|
|
217
|
-
format: Formats;
|
|
218
|
-
fullHeight: boolean;
|
|
219
|
-
}, true>);
|
|
220
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { _ as OrRichTextEditorV3 } from '../../OrRichTextEditor-8c43bb27.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-ee747c71.js';
|
|
22
|
-
import '../../OrIcon-d35a84d8.js';
|
|
23
|
-
import '../../normalize-component-6e8e3d80.js';
|
|
24
|
-
import '../../OrTooltip-5a6e0f64.js';
|
|
25
|
-
import '../../OrPopover-80459663.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-8b902c22.js';
|
|
35
|
-
import '../../OrMenuItem-6f9b8a93.js';
|
|
36
|
-
import '../../OrModal-1f80d87f.js';
|
|
37
|
-
import '../../OrInput-8c7b3cce.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';
|
|
@@ -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';
|