@onereach/ui-components 2.68.0-beta.2034.0 → 2.68.0-beta.2049.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-99131fc7.js +36843 -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-18daa6a2.js +36723 -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-dd129ce6.js +533 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +21 -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 +41 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/index.js +21 -0
- package/dist/esm/v3/OrRichTextEditor-3f24fee0.js +503 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +21 -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 +40 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/index.js +21 -0
- package/package.json +21 -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 +555 -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 -24
- package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
- package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +0 -3
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +0 -162
- package/dist/bundled/v2/components/or-empty-state-v3/props.d.ts +0 -4
- package/dist/bundled/v2/components/or-empty-state-v3/styles.d.ts +0 -10
- 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 -24
- package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
- package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +0 -3
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +0 -134
- package/dist/bundled/v3/components/or-empty-state-v3/props.d.ts +0 -4
- package/dist/bundled/v3/components/or-empty-state-v3/styles.d.ts +0 -10
- 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 -24
- package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
- package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +0 -3
- package/dist/esm/v2/components/or-empty-state-v3/index.js +0 -159
- package/dist/esm/v2/components/or-empty-state-v3/props.d.ts +0 -4
- package/dist/esm/v2/components/or-empty-state-v3/styles.d.ts +0 -10
- 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 -24
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
- package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +0 -3
- package/dist/esm/v3/components/or-empty-state-v3/index.js +0 -135
- package/dist/esm/v3/components/or-empty-state-v3/props.d.ts +0 -4
- package/dist/esm/v3/components/or-empty-state-v3/styles.d.ts +0 -10
- 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 -87
- package/src/components/or-empty-state-v3/OrEmptyState.vue +0 -121
- package/src/components/or-empty-state-v3/index.ts +0 -3
- package/src/components/or-empty-state-v3/props.ts +0 -4
- package/src/components/or-empty-state-v3/styles.ts +0 -76
- package/src/components/or-empty-state-v3/types.ts +0 -3
|
@@ -0,0 +1,149 @@
|
|
|
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 | undefined) => 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 | undefined)[]>;
|
|
32
|
+
toolbarButtonStyles: (item: string) => string[];
|
|
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
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
toolbar: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: () => string[][];
|
|
46
|
+
};
|
|
47
|
+
description: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
placeholder: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
autofocus: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
markdownFormat: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
64
|
+
modelValue: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
required: false;
|
|
68
|
+
};
|
|
69
|
+
toolbar: {
|
|
70
|
+
type: ArrayConstructor;
|
|
71
|
+
default: () => string[][];
|
|
72
|
+
};
|
|
73
|
+
description: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
placeholder: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
autofocus: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
markdownFormat: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
90
|
+
modelValue: string;
|
|
91
|
+
toolbar: unknown[];
|
|
92
|
+
description: string;
|
|
93
|
+
placeholder: string;
|
|
94
|
+
autofocus: boolean;
|
|
95
|
+
markdownFormat: boolean;
|
|
96
|
+
} & {} & {
|
|
97
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
98
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
99
|
+
editor: Editor | null;
|
|
100
|
+
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
101
|
+
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
102
|
+
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, {
|
|
103
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
104
|
+
} | string[], {} & {}, {
|
|
105
|
+
[x: number]: string;
|
|
106
|
+
} | {}, true> | undefined>;
|
|
107
|
+
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, {
|
|
108
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
109
|
+
} | string[], {} & {}, {
|
|
110
|
+
[x: number]: string;
|
|
111
|
+
} | {}, true> | undefined>;
|
|
112
|
+
iconsEnum: import("@vue/composition-api").Ref<{
|
|
113
|
+
[x: string]: string;
|
|
114
|
+
}>;
|
|
115
|
+
handleToolbarClick: (item: string, level?: number | undefined) => void;
|
|
116
|
+
handleEditorClick: () => void;
|
|
117
|
+
isActive: import("@vue/composition-api").Ref<{
|
|
118
|
+
[x: string]: boolean;
|
|
119
|
+
}>;
|
|
120
|
+
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
121
|
+
[x: string]: string;
|
|
122
|
+
}>;
|
|
123
|
+
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
+
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
125
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
126
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
127
|
+
toolbarButtonStyles: (item: string) => string[];
|
|
128
|
+
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
129
|
+
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
130
|
+
headingLevels: Level[];
|
|
131
|
+
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
132
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
133
|
+
modelValue: string;
|
|
134
|
+
toolbar: unknown[];
|
|
135
|
+
description: string;
|
|
136
|
+
placeholder: string;
|
|
137
|
+
autofocus: boolean;
|
|
138
|
+
markdownFormat: boolean;
|
|
139
|
+
} & {} & {
|
|
140
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
modelValue: string;
|
|
143
|
+
toolbar: unknown[];
|
|
144
|
+
description: string;
|
|
145
|
+
placeholder: string;
|
|
146
|
+
autofocus: boolean;
|
|
147
|
+
markdownFormat: boolean;
|
|
148
|
+
}, true>);
|
|
149
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { s as OrRichTextEditorV3 } from '../../OrRichTextEditor-3f24fee0.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 '@tiptap/extension-code-block';
|
|
39
|
+
import '@tiptap/extension-blockquote';
|
|
40
|
+
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-3f24fee0.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,26 @@ 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';
|
|
138
|
+
import '@tiptap/extension-code-block';
|
|
139
|
+
import '@tiptap/extension-blockquote';
|
|
119
140
|
|
|
120
141
|
function getAbbreviation(text, limit) {
|
|
121
142
|
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.2049.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -39,6 +39,23 @@
|
|
|
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-blockquote": "2.0.0-beta.209",
|
|
44
|
+
"@tiptap/extension-bold": "2.0.0-beta.209",
|
|
45
|
+
"@tiptap/extension-bullet-list": "2.0.0-beta.209",
|
|
46
|
+
"@tiptap/extension-code-block": "2.0.0-beta.209",
|
|
47
|
+
"@tiptap/extension-hard-break": "2.0.0-beta.209",
|
|
48
|
+
"@tiptap/extension-heading": "2.0.0-beta.209",
|
|
49
|
+
"@tiptap/extension-highlight": "2.0.0-beta.209",
|
|
50
|
+
"@tiptap/extension-italic": "2.0.0-beta.209",
|
|
51
|
+
"@tiptap/extension-link": "2.0.0-beta.209",
|
|
52
|
+
"@tiptap/extension-list-item": "2.0.0-beta.209",
|
|
53
|
+
"@tiptap/extension-ordered-list": "2.0.0-beta.209",
|
|
54
|
+
"@tiptap/extension-paragraph": "2.0.0-beta.209",
|
|
55
|
+
"@tiptap/extension-placeholder": "2.0.0-beta.209",
|
|
56
|
+
"@tiptap/extension-strike": "2.0.0-beta.209",
|
|
57
|
+
"@tiptap/extension-underline": "2.0.0-beta.209",
|
|
58
|
+
"@tiptap/starter-kit": "2.0.0-beta.209",
|
|
42
59
|
"@types/lodash": "4.14.173",
|
|
43
60
|
"@types/sortablejs": "1.10.7",
|
|
44
61
|
"@types/uuid": "8.3.1",
|
|
@@ -47,6 +64,8 @@
|
|
|
47
64
|
"@vueuse/math": "9.5.0",
|
|
48
65
|
"codemirror": "6.0.1",
|
|
49
66
|
"focus-trap": "7.2.0",
|
|
67
|
+
"marked": "4.2.12",
|
|
68
|
+
"prosemirror-markdown": "^1.10.1",
|
|
50
69
|
"sortablejs": "1.14.0",
|
|
51
70
|
"uuid": "8.3.2",
|
|
52
71
|
"vue-demi": "0.13.11"
|
|
@@ -61,6 +80,7 @@
|
|
|
61
80
|
"@storybook/testing-library": "^0.0.13",
|
|
62
81
|
"@storybook/vue3": "6.5.15",
|
|
63
82
|
"@types/faker": "5.5.9",
|
|
83
|
+
"@types/marked": "4.0.8",
|
|
64
84
|
"@vue/composition-api": "1.7.0",
|
|
65
85
|
"faker": "5.5.3",
|
|
66
86
|
"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({});
|