@onereach/ui-components 2.68.0-beta.2062.0 → 2.68.0-beta.2064.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-467ac046.js} +12 -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-ee577206.js} +11 -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-8469dac4.js} +12 -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-7528eb87.js} +11 -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 +12 -0
|
@@ -36388,6 +36388,10 @@ var script = defineComponent({
|
|
|
36388
36388
|
OrMenu
|
|
36389
36389
|
},
|
|
36390
36390
|
inheritAttrs: false,
|
|
36391
|
+
model: {
|
|
36392
|
+
prop: 'modelValue',
|
|
36393
|
+
event: 'update:modelValue'
|
|
36394
|
+
},
|
|
36391
36395
|
props: {
|
|
36392
36396
|
modelValue: {
|
|
36393
36397
|
type: String,
|
|
@@ -36417,6 +36421,10 @@ var script = defineComponent({
|
|
|
36417
36421
|
markdownFormat: {
|
|
36418
36422
|
type: Boolean,
|
|
36419
36423
|
default: true
|
|
36424
|
+
},
|
|
36425
|
+
fullHeight: {
|
|
36426
|
+
type: Boolean,
|
|
36427
|
+
default: false
|
|
36420
36428
|
}
|
|
36421
36429
|
},
|
|
36422
36430
|
emits: ['update:modelValue', 'input'],
|
|
@@ -36647,10 +36655,10 @@ var script = defineComponent({
|
|
|
36647
36655
|
// Styles
|
|
36648
36656
|
const classAttribute = useClassAttribute();
|
|
36649
36657
|
const rootStyles = computed(() => {
|
|
36650
|
-
return ['or-rich-text-editor', classAttribute.value];
|
|
36658
|
+
return ['or-rich-text-editor', classAttribute.value, ...(props.fullHeight ? ['h-full'] : [])];
|
|
36651
36659
|
});
|
|
36652
36660
|
const containerStyles = computed(() => {
|
|
36653
|
-
return [...EditorContainer];
|
|
36661
|
+
return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
|
|
36654
36662
|
});
|
|
36655
36663
|
const toolbarContainerStyles = computed(() => {
|
|
36656
36664
|
return [...ToolbarContainer];
|
|
@@ -36659,7 +36667,7 @@ var script = defineComponent({
|
|
|
36659
36667
|
return [...Toolbar];
|
|
36660
36668
|
});
|
|
36661
36669
|
const editorInputStyles = computed(() => {
|
|
36662
|
-
return ['tiptap-editor', ...EditorInput];
|
|
36670
|
+
return ['tiptap-editor', ...(props.fullHeight ? ['h-full'] : []), ...EditorInput];
|
|
36663
36671
|
});
|
|
36664
36672
|
const toolbarButtonStyles = item => {
|
|
36665
36673
|
return [
|
|
@@ -36834,7 +36842,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
36834
36842
|
/* style */
|
|
36835
36843
|
const __vue_inject_styles__ = function (inject) {
|
|
36836
36844
|
if (!inject) return;
|
|
36837
|
-
inject("data-v-
|
|
36845
|
+
inject("data-v-3e00e82b_0", {
|
|
36838
36846
|
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}",
|
|
36839
36847
|
map: undefined,
|
|
36840
36848
|
media: undefined
|
|
@@ -95,7 +95,7 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-3a3d
|
|
|
95
95
|
export { O as OrTooltip } from '../OrTooltip-dfea7af2.js';
|
|
96
96
|
export { O as OrTooltipContent } from '../OrTooltipContent-f0fd5f75.js';
|
|
97
97
|
export { O as OrTooltipV3 } from '../OrTooltip-d1764f37.js';
|
|
98
|
-
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-
|
|
98
|
+
export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-467ac046.js';
|
|
99
99
|
import '../index-fa6eb4ca.js';
|
|
100
100
|
import 'vue';
|
|
101
101
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
@@ -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;
|