@onereach/ui-components 8.18.1 → 8.18.2-beta.3932.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/components/OrRichTextEditorV3/OrRichTextEditor.js +11 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +2 -0
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +1 -1
- package/dist/bundled/v3/components/{OrRichTextEditorV3-9076aee9.js → OrRichTextEditorV3-76db5a6a.js} +13 -8
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +2 -2
- package/dist/esm/v2/{OrRichTextEditor-9721714a.js → OrRichTextEditor-da7c4f1a.js} +11 -5
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +2 -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-0043ce3c.js → OrRichTextEditor-336a15a7.js} +13 -8
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +1 -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 +2 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrRichTextEditorV3-
|
|
1
|
+
export { s as default } from '../OrRichTextEditorV3-76db5a6a.js';
|
|
@@ -74,6 +74,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
74
74
|
proxyModelValue: import("vue-demi").WritableComputedRef<string | undefined>;
|
|
75
75
|
disableMarkdown: import("vue-demi").Ref<boolean>;
|
|
76
76
|
sourceValue: import("vue-demi").Ref<string>;
|
|
77
|
+
activeHeadingLevel: import("vue-demi").Ref<number>;
|
|
77
78
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("update:modelValue" | "input" | "file-upload")[], "update:modelValue" | "input" | "file-upload", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
78
79
|
modelValue: {
|
|
79
80
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditorV3-
|
|
1
|
+
export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditorV3-76db5a6a.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Formats } from '../OrRichTextEditorV3-
|
|
1
|
+
export { F as Formats } from '../OrRichTextEditorV3-76db5a6a.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { E as EditorContainer, f as EditorInput, b as Toolbar, c as ToolbarButton, e as ToolbarButtonFocused, T as ToolbarContainer } from '../OrRichTextEditorV3-
|
|
1
|
+
export { E as EditorContainer, f as EditorInput, b as Toolbar, c as ToolbarButton, e as ToolbarButtonFocused, T as ToolbarContainer } from '../OrRichTextEditorV3-76db5a6a.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { i as default } from '../../../OrRichTextEditorV3-
|
|
1
|
+
export { i as default } from '../../../OrRichTextEditorV3-76db5a6a.js';
|
|
2
2
|
import '../../../OrCode-46b1b8aa.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as default } from '../../../OrRichTextEditorV3-
|
|
1
|
+
export { C as default } from '../../../OrRichTextEditorV3-76db5a6a.js';
|
|
2
2
|
import '../../../OrCode-46b1b8aa.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CodeMirrorView } from '../../../OrRichTextEditorV3-
|
|
1
|
+
export { C as CodeMirrorView } from '../../../OrRichTextEditorV3-76db5a6a.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../../../OrCode-46b1b8aa.js';
|
|
2
2
|
import '../../../../hooks/useTheme.js';
|
|
3
|
-
export { g as color, t as default, h as orCodeHighlightStyle, o as orCodeTheme } from '../../../OrRichTextEditorV3-
|
|
3
|
+
export { g as color, t as default, h as orCodeHighlightStyle, o as orCodeTheme } from '../../../OrRichTextEditorV3-76db5a6a.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { d as deserialize, a as serialize } from '../../OrRichTextEditorV3-
|
|
1
|
+
export { d as deserialize, a as serialize } from '../../OrRichTextEditorV3-76db5a6a.js';
|
package/dist/bundled/v3/components/{OrRichTextEditorV3-9076aee9.js → OrRichTextEditorV3-76db5a6a.js}
RENAMED
|
@@ -27313,7 +27313,7 @@ var script = defineComponent({
|
|
|
27313
27313
|
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
27314
27314
|
break;
|
|
27315
27315
|
case 'blockquote':
|
|
27316
|
-
editor === null || editor === void 0 ? void 0 : editor.chain().
|
|
27316
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().toggleBlockquote().run();
|
|
27317
27317
|
break;
|
|
27318
27318
|
case 'codeBlock':
|
|
27319
27319
|
if (!isActive.value['codeBlock']) {
|
|
@@ -27334,7 +27334,6 @@ var script = defineComponent({
|
|
|
27334
27334
|
level: level
|
|
27335
27335
|
});
|
|
27336
27336
|
}
|
|
27337
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
27338
27337
|
break;
|
|
27339
27338
|
case 'undo':
|
|
27340
27339
|
case 'redo':
|
|
@@ -27344,7 +27343,7 @@ var script = defineComponent({
|
|
|
27344
27343
|
context.emit('file-upload');
|
|
27345
27344
|
break;
|
|
27346
27345
|
default:
|
|
27347
|
-
editor === null || editor === void 0 ? void 0 : editor.chain().
|
|
27346
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().toggleMark(item).run();
|
|
27348
27347
|
break;
|
|
27349
27348
|
}
|
|
27350
27349
|
};
|
|
@@ -27463,7 +27462,8 @@ var script = defineComponent({
|
|
|
27463
27462
|
handleInput,
|
|
27464
27463
|
proxyModelValue,
|
|
27465
27464
|
disableMarkdown,
|
|
27466
|
-
sourceValue
|
|
27465
|
+
sourceValue,
|
|
27466
|
+
activeHeadingLevel
|
|
27467
27467
|
};
|
|
27468
27468
|
}
|
|
27469
27469
|
});
|
|
@@ -27531,7 +27531,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27531
27531
|
variant: 'inherit',
|
|
27532
27532
|
size: 'm'
|
|
27533
27533
|
},
|
|
27534
|
-
onClick: _cache[0] || (_cache[0] = $event => _ctx.menuRef.
|
|
27534
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.menuRef.toggle())
|
|
27535
27535
|
}, null, 8 /* PROPS */, ["selected", "disabled", "tooltip", "icon"])) : _ctx.isVisible(item) ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
27536
27536
|
key: 1,
|
|
27537
27537
|
tooltip: {
|
|
@@ -27609,19 +27609,24 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27609
27609
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.headingLevels, heading => {
|
|
27610
27610
|
return openBlock(), createBlock(_component_or_menu_item, {
|
|
27611
27611
|
key: heading,
|
|
27612
|
+
class: normalizeClass({
|
|
27613
|
+
'bg-surface-1': _ctx.activeHeadingLevel === heading
|
|
27614
|
+
}),
|
|
27612
27615
|
onClick: $event => _ctx.handleToolbarClick('heading', heading)
|
|
27613
27616
|
}, {
|
|
27614
27617
|
default: withCtx(() => [createTextVNode(" Heading " + toDisplayString(heading), 1 /* TEXT */)]),
|
|
27615
27618
|
|
|
27616
27619
|
_: 2 /* DYNAMIC */
|
|
27617
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
27620
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "onClick"]);
|
|
27618
27621
|
}), 128 /* KEYED_FRAGMENT */)), createVNode(_component_or_menu_item, {
|
|
27622
|
+
class: normalizeClass({
|
|
27623
|
+
'bg-surface-1': !_ctx.activeHeadingLevel
|
|
27624
|
+
}),
|
|
27619
27625
|
onClick: _cache[5] || (_cache[5] = $event => _ctx.handleToolbarClick('heading'))
|
|
27620
27626
|
}, {
|
|
27621
27627
|
default: withCtx(() => [createTextVNode(" None ")]),
|
|
27622
27628
|
_: 1 /* STABLE */
|
|
27623
|
-
})]),
|
|
27624
|
-
|
|
27629
|
+
}, 8 /* PROPS */, ["class"])]),
|
|
27625
27630
|
_: 1 /* STABLE */
|
|
27626
27631
|
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), createVNode(_component_or_modal, {
|
|
27627
27632
|
"is-open": _ctx.isOpenLinkModal,
|
|
@@ -80,7 +80,7 @@ export { s as OrRangeSliderV3 } from './OrRangeSliderV3-9d36a0c5.js';
|
|
|
80
80
|
export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSliderV3-f0ac9b94.js';
|
|
81
81
|
export { s as OrRatingV3 } from './OrRatingV3-b6b47938.js';
|
|
82
82
|
export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanelV3-c24490f4.js';
|
|
83
|
-
export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditorV3-
|
|
83
|
+
export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditorV3-76db5a6a.js';
|
|
84
84
|
export { default as OrSearch } from './OrSearch/OrSearch.js';
|
|
85
85
|
export { OrSearchV3 } from './OrSearchV3/index.js';
|
|
86
86
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControlV3-56862f95.js';
|