@onereach/ui-components 2.68.0-beta.2062.0 → 2.68.0-beta.2063.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/{OrRichTextEditor-1b29b6a2.js → OrRichTextEditor-eae5df51.js} +8 -4
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-4a06e9f2.js → OrRichTextEditor.vue_vue_type_script_lang-7df5d895.js} +7 -3
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +3 -3
- package/dist/esm/v2/{OrRichTextEditor-9567f61e.js → OrRichTextEditor-8db8c12d.js} +8 -4
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrRichTextEditor-e84dbfe6.js → OrRichTextEditor-2ba236c0.js} +7 -3
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +1 -1
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +4 -1
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +7 -0
|
@@ -108,6 +108,10 @@ var script = defineComponent({
|
|
|
108
108
|
markdownFormat: {
|
|
109
109
|
type: Boolean,
|
|
110
110
|
default: true
|
|
111
|
+
},
|
|
112
|
+
fullHeight: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: false
|
|
111
115
|
}
|
|
112
116
|
},
|
|
113
117
|
emits: ['update:modelValue', 'input'],
|
|
@@ -338,10 +342,10 @@ var script = defineComponent({
|
|
|
338
342
|
// Styles
|
|
339
343
|
const classAttribute = useClassAttribute();
|
|
340
344
|
const rootStyles = computed(() => {
|
|
341
|
-
return ['or-rich-text-editor', classAttribute.value];
|
|
345
|
+
return ['or-rich-text-editor', classAttribute.value, ...(props.fullHeight ? ['h-full'] : [])];
|
|
342
346
|
});
|
|
343
347
|
const containerStyles = computed(() => {
|
|
344
|
-
return [...EditorContainer];
|
|
348
|
+
return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
|
|
345
349
|
});
|
|
346
350
|
const toolbarContainerStyles = computed(() => {
|
|
347
351
|
return [...ToolbarContainer];
|
|
@@ -350,7 +354,7 @@ var script = defineComponent({
|
|
|
350
354
|
return [...Toolbar];
|
|
351
355
|
});
|
|
352
356
|
const editorInputStyles = computed(() => {
|
|
353
|
-
return ['tiptap-editor', ...EditorInput];
|
|
357
|
+
return ['tiptap-editor', ...(props.fullHeight ? ['h-full'] : []), ...EditorInput];
|
|
354
358
|
});
|
|
355
359
|
const toolbarButtonStyles = item => {
|
|
356
360
|
return [
|
|
@@ -525,7 +529,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
525
529
|
/* style */
|
|
526
530
|
const __vue_inject_styles__ = function (inject) {
|
|
527
531
|
if (!inject) return;
|
|
528
|
-
inject("data-v-
|
|
532
|
+
inject("data-v-450d44c8_0", {
|
|
529
533
|
source: ".tiptap-editor ol{margin:0 24px;list-style:decimal}.tiptap-editor ul{margin:0 24px;list-style:initial}.tiptap-editor pre{background-color:rgba(186,209,236,.3);padding:4px 8px;margin:4px 0;width:100%;border-radius:4px}.tiptap-editor blockquote{margin:8px 24px;padding:0 24px;border-left:4px solid #bad1ec}.tiptap-editor .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}",
|
|
530
534
|
map: undefined,
|
|
531
535
|
media: undefined
|
|
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665
|
|
|
95
95
|
export { _ as OrTooltip } from '../OrTooltip-614b016d.js';
|
|
96
96
|
export { _ as OrTooltipContent } from '../OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
|
|
97
97
|
export { _ as OrTooltipV3 } from '../OrTooltip-3454c2e6.js';
|
|
98
|
-
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-
|
|
98
|
+
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-8db8c12d.js';
|
|
99
99
|
import 'vue-demi';
|
|
100
100
|
import 'lodash';
|
|
101
101
|
import '../normalize-component-6e8e3d80.js';
|
|
@@ -64,6 +64,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
|
+
fullHeight: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
67
71
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
68
72
|
modelValue: {
|
|
69
73
|
type: StringConstructor;
|
|
@@ -94,6 +98,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
94
98
|
type: BooleanConstructor;
|
|
95
99
|
default: boolean;
|
|
96
100
|
};
|
|
101
|
+
fullHeight: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
97
105
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
98
106
|
modelValue: string;
|
|
99
107
|
value: string;
|
|
@@ -102,6 +110,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
102
110
|
placeholder: string;
|
|
103
111
|
autofocus: boolean;
|
|
104
112
|
markdownFormat: boolean;
|
|
113
|
+
fullHeight: boolean;
|
|
105
114
|
} & {} & {
|
|
106
115
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
107
116
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -146,6 +155,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
146
155
|
placeholder: string;
|
|
147
156
|
autofocus: boolean;
|
|
148
157
|
markdownFormat: boolean;
|
|
158
|
+
fullHeight: boolean;
|
|
149
159
|
} & {} & {
|
|
150
160
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
151
161
|
}, {
|
|
@@ -156,5 +166,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
156
166
|
placeholder: string;
|
|
157
167
|
autofocus: boolean;
|
|
158
168
|
markdownFormat: boolean;
|
|
169
|
+
fullHeight: boolean;
|
|
159
170
|
}, true>);
|
|
160
171
|
export default _default;
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-06654
|
|
|
95
95
|
export { _ as OrTooltip } from './OrTooltip-614b016d.js';
|
|
96
96
|
export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_script-63559536.js';
|
|
97
97
|
export { _ as OrTooltipV3 } from './OrTooltip-3454c2e6.js';
|
|
98
|
-
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-
|
|
98
|
+
export { _ as OrRichTextEditorV3 } from './OrRichTextEditor-8db8c12d.js';
|
|
99
99
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
100
100
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
101
101
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
@@ -108,6 +108,10 @@ var script = defineComponent({
|
|
|
108
108
|
markdownFormat: {
|
|
109
109
|
type: Boolean,
|
|
110
110
|
default: true
|
|
111
|
+
},
|
|
112
|
+
fullHeight: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: false
|
|
111
115
|
}
|
|
112
116
|
},
|
|
113
117
|
emits: ['update:modelValue', 'input'],
|
|
@@ -338,10 +342,10 @@ var script = defineComponent({
|
|
|
338
342
|
// Styles
|
|
339
343
|
const classAttribute = useClassAttribute();
|
|
340
344
|
const rootStyles = computed(() => {
|
|
341
|
-
return ['or-rich-text-editor', classAttribute.value];
|
|
345
|
+
return ['or-rich-text-editor', classAttribute.value, ...(props.fullHeight ? ['h-full'] : [])];
|
|
342
346
|
});
|
|
343
347
|
const containerStyles = computed(() => {
|
|
344
|
-
return [...EditorContainer];
|
|
348
|
+
return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
|
|
345
349
|
});
|
|
346
350
|
const toolbarContainerStyles = computed(() => {
|
|
347
351
|
return [...ToolbarContainer];
|
|
@@ -350,7 +354,7 @@ var script = defineComponent({
|
|
|
350
354
|
return [...Toolbar];
|
|
351
355
|
});
|
|
352
356
|
const editorInputStyles = computed(() => {
|
|
353
|
-
return ['tiptap-editor', ...EditorInput];
|
|
357
|
+
return ['tiptap-editor', ...(props.fullHeight ? ['h-full'] : []), ...EditorInput];
|
|
354
358
|
});
|
|
355
359
|
const toolbarButtonStyles = item => {
|
|
356
360
|
return [
|
|
@@ -89,7 +89,7 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-
|
|
|
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-
|
|
92
|
+
export { s as OrRichTextEditorV3 } from '../OrRichTextEditor-2ba236c0.js';
|
|
93
93
|
import 'vue-demi';
|
|
94
94
|
import 'lodash';
|
|
95
95
|
import 'vue';
|
|
@@ -64,6 +64,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
|
+
fullHeight: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
67
71
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
68
72
|
modelValue: {
|
|
69
73
|
type: StringConstructor;
|
|
@@ -94,6 +98,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
94
98
|
type: BooleanConstructor;
|
|
95
99
|
default: boolean;
|
|
96
100
|
};
|
|
101
|
+
fullHeight: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
97
105
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
98
106
|
modelValue: string;
|
|
99
107
|
value: string;
|
|
@@ -102,6 +110,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
102
110
|
placeholder: string;
|
|
103
111
|
autofocus: boolean;
|
|
104
112
|
markdownFormat: boolean;
|
|
113
|
+
fullHeight: boolean;
|
|
105
114
|
} & {} & {
|
|
106
115
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
107
116
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -146,6 +155,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
146
155
|
placeholder: string;
|
|
147
156
|
autofocus: boolean;
|
|
148
157
|
markdownFormat: boolean;
|
|
158
|
+
fullHeight: boolean;
|
|
149
159
|
} & {} & {
|
|
150
160
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
151
161
|
}, {
|
|
@@ -156,5 +166,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
156
166
|
placeholder: string;
|
|
157
167
|
autofocus: boolean;
|
|
158
168
|
markdownFormat: boolean;
|
|
169
|
+
fullHeight: boolean;
|
|
159
170
|
}, true>);
|
|
160
171
|
export default _default;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -89,7 +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-
|
|
92
|
+
export { s as OrRichTextEditorV3 } from './OrRichTextEditor-2ba236c0.js';
|
|
93
93
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
94
94
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
95
95
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
package/package.json
CHANGED
|
@@ -21,6 +21,9 @@ export default {
|
|
|
21
21
|
markdown: {
|
|
22
22
|
control: { type: 'boolean' },
|
|
23
23
|
},
|
|
24
|
+
fullHeight: {
|
|
25
|
+
control: { type: 'boolean' },
|
|
26
|
+
},
|
|
24
27
|
},
|
|
25
28
|
|
|
26
29
|
parameters: {
|
|
@@ -50,7 +53,7 @@ const Template: StoryFn<typeof OrRichTextEditor> = (args) => ({
|
|
|
50
53
|
},
|
|
51
54
|
|
|
52
55
|
template: `
|
|
53
|
-
<div class="p-md">
|
|
56
|
+
<div class="p-md h-screen w-full">
|
|
54
57
|
<OrRichTextEditor
|
|
55
58
|
v-bind="args"
|
|
56
59
|
v-model="text"
|
|
@@ -154,6 +154,10 @@ export default defineComponent({
|
|
|
154
154
|
type: Boolean,
|
|
155
155
|
default: true,
|
|
156
156
|
},
|
|
157
|
+
fullHeight: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: false,
|
|
160
|
+
},
|
|
157
161
|
},
|
|
158
162
|
|
|
159
163
|
emits: ['update:modelValue', 'input'],
|
|
@@ -413,12 +417,14 @@ export default defineComponent({
|
|
|
413
417
|
return [
|
|
414
418
|
'or-rich-text-editor',
|
|
415
419
|
classAttribute.value,
|
|
420
|
+
...props.fullHeight ? ['h-full'] : [],
|
|
416
421
|
];
|
|
417
422
|
});
|
|
418
423
|
|
|
419
424
|
const containerStyles = computed(() => {
|
|
420
425
|
return [
|
|
421
426
|
...EditorContainer,
|
|
427
|
+
...props.fullHeight ? ['h-full'] : [],
|
|
422
428
|
];
|
|
423
429
|
});
|
|
424
430
|
|
|
@@ -437,6 +443,7 @@ export default defineComponent({
|
|
|
437
443
|
const editorInputStyles = computed(() => {
|
|
438
444
|
return [
|
|
439
445
|
'tiptap-editor',
|
|
446
|
+
...props.fullHeight ? ['h-full'] : [],
|
|
440
447
|
...EditorInput,
|
|
441
448
|
];
|
|
442
449
|
});
|