@onereach/ui-components 2.68.0-beta.2003.0 → 2.68.0-beta.2008.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/{OrCode-edc7a1f5.js → OrCode-b9332066.js} +2 -115
- package/dist/bundled/v2/{OrConfirm-56d01cff.js → OrConfirm-19758dae.js} +1 -1
- package/dist/bundled/v2/OrModal-71d33219.js +202 -0
- package/dist/bundled/v2/OrRichTextEditor-4a41e294.js +36832 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +7 -3
- package/dist/bundled/v2/components/or-code/index.js +4 -2
- package/dist/bundled/v2/components/or-confirm/index.js +3 -2
- package/dist/bundled/v2/components/or-modal/index.js +2 -1
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +25 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v2/index.es-3f39f316.js +115 -0
- package/dist/bundled/v2/index.js +8 -4
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js → v2/useFocusTrap-d744652a.js} +4 -126
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-5fe573eb.js} +3 -116
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f16fc67.js → OrConfirm.vue_vue_type_script_lang-4451e782.js} +2 -2
- package/dist/bundled/v3/OrMenu-08aa60de.js +29 -0
- package/dist/bundled/v3/{OrModal-868160ef.js → OrModal-bbabef06.js} +1 -1
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +128 -0
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js +36712 -0
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ca57f9d9.js → OrTabs.vue_vue_type_script_lang-2fdbd2f2.js} +10 -36
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +10 -5
- package/dist/bundled/v3/components/or-code/index.js +5 -3
- package/dist/bundled/v3/components/or-confirm/index.js +4 -3
- package/dist/bundled/v3/components/or-modal/index.js +2 -1
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +26 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/index.es-3f39f316.js +115 -0
- package/dist/bundled/v3/index.js +278 -182
- package/dist/bundled/{v2/OrModal-a5411b0d.js → v3/useFocusTrap-d21726e3.js} +3 -200
- package/dist/esm/v2/OrRichTextEditor-11967cd9.js +520 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +19 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +39 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/index.js +19 -0
- package/dist/esm/v3/OrRichTextEditor-ad5f24ba.js +490 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +19 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +38 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/index.js +19 -0
- package/package.json +19 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +62 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +526 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +65 -0
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +0 -131
- package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +0 -2
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +0 -111
- package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +0 -2
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-empty-state-v3/index.js +0 -129
- package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +0 -2
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -39
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -109
- package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-empty-state-v3/index.js +0 -111
- package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +0 -2
- package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +0 -203
- package/src/components/or-empty-state-v3/OrEmptyState.vue +0 -101
- package/src/components/or-empty-state-v3/index.ts +0 -2
- package/src/components/or-empty-state-v3/types.ts +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor-ad5f24ba.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import '../../useClassAttribute-47fdb016.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import '@vueuse/integrations/useFocusTrap';
|
|
6
|
+
import 'prosemirror-markdown';
|
|
7
|
+
import 'prosemirror-model';
|
|
8
|
+
import 'marked';
|
|
9
|
+
import '../../OrIconButton-85abafab.js';
|
|
10
|
+
import '../../OrIcon-e2fa4cf8.js';
|
|
11
|
+
import 'vue';
|
|
12
|
+
import '../../OrTooltip-1500a1cd.js';
|
|
13
|
+
import '../../OrPopover-94a8f21d.js';
|
|
14
|
+
import '@floating-ui/dom';
|
|
15
|
+
import '../../useElevation-31bfe1f6.js';
|
|
16
|
+
import '../../useResponsive-a02e95b7.js';
|
|
17
|
+
import '../../OrBottomSheet-0eb33b18.js';
|
|
18
|
+
import '../../OrOverlay-738a44d5.js';
|
|
19
|
+
import '../../OrTeleport.vue3-8099178c.js';
|
|
20
|
+
import '../../OrLabel-7d4fe80b.js';
|
|
21
|
+
import '../../OrMenu-d9e12030.js';
|
|
22
|
+
import '../../OrMenuItem-d001f0f6.js';
|
|
23
|
+
import '@tiptap/core';
|
|
24
|
+
import '@tiptap/starter-kit';
|
|
25
|
+
import '@tiptap/extension-underline';
|
|
26
|
+
import '@tiptap/extension-link';
|
|
27
|
+
import '@tiptap/extension-highlight';
|
|
28
|
+
import '@tiptap/extension-heading';
|
|
29
|
+
import '@tiptap/extension-placeholder';
|
|
30
|
+
import '@tiptap/extension-paragraph';
|
|
31
|
+
import '@tiptap/extension-bullet-list';
|
|
32
|
+
import '@tiptap/extension-list-item';
|
|
33
|
+
import '@tiptap/extension-ordered-list';
|
|
34
|
+
import '@tiptap/extension-strike';
|
|
35
|
+
import '@tiptap/extension-italic';
|
|
36
|
+
import '@tiptap/extension-hard-break';
|
|
37
|
+
import '@tiptap/extension-bold';
|
|
38
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
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 ToolbarButtonActive: string[];
|
|
6
|
+
export declare const EditorInput: string[];
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -89,6 +89,7 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-9
|
|
|
89
89
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
90
90
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
91
91
|
export { s as OrTooltipV3 } from './OrTooltip-1500a1cd.js';
|
|
92
|
+
export { s as OrRichTextEditorV3 } from './OrRichTextEditor-ad5f24ba.js';
|
|
92
93
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
93
94
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
94
95
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
@@ -116,6 +117,24 @@ import '@floating-ui/dom';
|
|
|
116
117
|
import 'uuid';
|
|
117
118
|
import 'sortablejs';
|
|
118
119
|
import '@vueuse/integrations/useFocusTrap';
|
|
120
|
+
import 'prosemirror-markdown';
|
|
121
|
+
import 'prosemirror-model';
|
|
122
|
+
import 'marked';
|
|
123
|
+
import '@tiptap/core';
|
|
124
|
+
import '@tiptap/starter-kit';
|
|
125
|
+
import '@tiptap/extension-underline';
|
|
126
|
+
import '@tiptap/extension-link';
|
|
127
|
+
import '@tiptap/extension-highlight';
|
|
128
|
+
import '@tiptap/extension-heading';
|
|
129
|
+
import '@tiptap/extension-placeholder';
|
|
130
|
+
import '@tiptap/extension-paragraph';
|
|
131
|
+
import '@tiptap/extension-bullet-list';
|
|
132
|
+
import '@tiptap/extension-list-item';
|
|
133
|
+
import '@tiptap/extension-ordered-list';
|
|
134
|
+
import '@tiptap/extension-strike';
|
|
135
|
+
import '@tiptap/extension-italic';
|
|
136
|
+
import '@tiptap/extension-hard-break';
|
|
137
|
+
import '@tiptap/extension-bold';
|
|
119
138
|
|
|
120
139
|
function getAbbreviation(text, limit) {
|
|
121
140
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.68.0-beta.
|
|
3
|
+
"version": "2.68.0-beta.2008.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -39,6 +39,21 @@
|
|
|
39
39
|
"@floating-ui/dom": "0.3.1",
|
|
40
40
|
"@onereach/styles": "^2.32.0",
|
|
41
41
|
"@splidejs/splide": "4.0.6",
|
|
42
|
+
"@tiptap/core": "2.0.0-beta.209",
|
|
43
|
+
"@tiptap/extension-bold": "2.0.0-beta.209",
|
|
44
|
+
"@tiptap/extension-bullet-list": "2.0.0-beta.209",
|
|
45
|
+
"@tiptap/extension-hard-break": "2.0.0-beta.209",
|
|
46
|
+
"@tiptap/extension-heading": "2.0.0-beta.209",
|
|
47
|
+
"@tiptap/extension-highlight": "2.0.0-beta.209",
|
|
48
|
+
"@tiptap/extension-italic": "2.0.0-beta.209",
|
|
49
|
+
"@tiptap/extension-link": "2.0.0-beta.209",
|
|
50
|
+
"@tiptap/extension-list-item": "2.0.0-beta.209",
|
|
51
|
+
"@tiptap/extension-ordered-list": "2.0.0-beta.209",
|
|
52
|
+
"@tiptap/extension-paragraph": "2.0.0-beta.209",
|
|
53
|
+
"@tiptap/extension-placeholder": "2.0.0-beta.209",
|
|
54
|
+
"@tiptap/extension-strike": "2.0.0-beta.209",
|
|
55
|
+
"@tiptap/extension-underline": "2.0.0-beta.209",
|
|
56
|
+
"@tiptap/starter-kit": "2.0.0-beta.209",
|
|
42
57
|
"@types/lodash": "4.14.173",
|
|
43
58
|
"@types/sortablejs": "1.10.7",
|
|
44
59
|
"@types/uuid": "8.3.1",
|
|
@@ -47,6 +62,8 @@
|
|
|
47
62
|
"@vueuse/math": "9.5.0",
|
|
48
63
|
"codemirror": "6.0.1",
|
|
49
64
|
"focus-trap": "7.2.0",
|
|
65
|
+
"marked": "4.2.12",
|
|
66
|
+
"prosemirror-markdown": "^1.10.1",
|
|
50
67
|
"sortablejs": "1.14.0",
|
|
51
68
|
"uuid": "8.3.2",
|
|
52
69
|
"vue-demi": "0.13.11"
|
|
@@ -61,6 +78,7 @@
|
|
|
61
78
|
"@storybook/testing-library": "^0.0.13",
|
|
62
79
|
"@storybook/vue3": "6.5.15",
|
|
63
80
|
"@types/faker": "5.5.9",
|
|
81
|
+
"@types/marked": "4.0.8",
|
|
64
82
|
"@vue/composition-api": "1.7.0",
|
|
65
83
|
"faker": "5.5.3",
|
|
66
84
|
"sass": "1.32.8",
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Title,
|
|
3
|
+
Subtitle,
|
|
4
|
+
Description,
|
|
5
|
+
Primary,
|
|
6
|
+
ArgsTable,
|
|
7
|
+
Stories,
|
|
8
|
+
PRIMARY_STORY
|
|
9
|
+
} from '@storybook/addon-docs';
|
|
10
|
+
|
|
11
|
+
<Title />
|
|
12
|
+
<Subtitle />
|
|
13
|
+
<Description />
|
|
14
|
+
<Primary />
|
|
15
|
+
<ArgsTable story={PRIMARY_STORY} />
|
|
16
|
+
<Stories />
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { ref } from 'vue-demi';
|
|
3
|
+
import OrRichTextEditorDocs from './OrRichTextEditor.docs.mdx';
|
|
4
|
+
import OrRichTextEditor from './OrRichTextEditor.vue';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Experimental/OrRichTextEditor',
|
|
8
|
+
component: OrRichTextEditor,
|
|
9
|
+
|
|
10
|
+
argTypes: {
|
|
11
|
+
// Props
|
|
12
|
+
description: {
|
|
13
|
+
control: { type: 'text' },
|
|
14
|
+
},
|
|
15
|
+
placeholder: {
|
|
16
|
+
control: { type: 'text' },
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
control: { type: 'text' },
|
|
20
|
+
},
|
|
21
|
+
markdown: {
|
|
22
|
+
control: { type: 'boolean' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
parameters: {
|
|
27
|
+
docs: {
|
|
28
|
+
page: OrRichTextEditorDocs,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
design: {
|
|
32
|
+
type: 'figma',
|
|
33
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=608%3A2926',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
} as Meta<typeof OrRichTextEditor>;
|
|
37
|
+
|
|
38
|
+
const Template: StoryFn<typeof OrRichTextEditor> = (args) => ({
|
|
39
|
+
components: {
|
|
40
|
+
OrRichTextEditor,
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
setup() {
|
|
44
|
+
// Refs
|
|
45
|
+
const text = ref('');
|
|
46
|
+
return {
|
|
47
|
+
args,
|
|
48
|
+
text,
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
template: `
|
|
53
|
+
<div class="p-md">
|
|
54
|
+
<OrRichTextEditor
|
|
55
|
+
v-bind="args"
|
|
56
|
+
v-model="text"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
`,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export const RichTextEditor = Template.bind({});
|