@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
|
@@ -1746,7 +1746,7 @@ var script = defineComponent({
|
|
|
1746
1746
|
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
1747
1747
|
break;
|
|
1748
1748
|
case 'blockquote':
|
|
1749
|
-
editor === null || editor === void 0 ? void 0 : editor.chain().
|
|
1749
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().toggleBlockquote().run();
|
|
1750
1750
|
break;
|
|
1751
1751
|
case 'codeBlock':
|
|
1752
1752
|
if (!isActive.value['codeBlock']) {
|
|
@@ -1767,7 +1767,6 @@ var script = defineComponent({
|
|
|
1767
1767
|
level: level
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
|
-
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
1771
1770
|
break;
|
|
1772
1771
|
case 'undo':
|
|
1773
1772
|
case 'redo':
|
|
@@ -1777,7 +1776,7 @@ var script = defineComponent({
|
|
|
1777
1776
|
context.emit('file-upload');
|
|
1778
1777
|
break;
|
|
1779
1778
|
default:
|
|
1780
|
-
editor === null || editor === void 0 ? void 0 : editor.chain().
|
|
1779
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().toggleMark(item).run();
|
|
1781
1780
|
break;
|
|
1782
1781
|
}
|
|
1783
1782
|
};
|
|
@@ -1896,7 +1895,8 @@ var script = defineComponent({
|
|
|
1896
1895
|
handleInput,
|
|
1897
1896
|
proxyModelValue,
|
|
1898
1897
|
disableMarkdown,
|
|
1899
|
-
sourceValue
|
|
1898
|
+
sourceValue,
|
|
1899
|
+
activeHeadingLevel
|
|
1900
1900
|
};
|
|
1901
1901
|
}
|
|
1902
1902
|
});
|
|
@@ -1955,7 +1955,7 @@ var __vue_render__ = function () {
|
|
|
1955
1955
|
},
|
|
1956
1956
|
on: {
|
|
1957
1957
|
"click": function ($event) {
|
|
1958
|
-
return _vm.menuRef.
|
|
1958
|
+
return _vm.menuRef.toggle();
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
}) : _vm.isVisible(item) ? _c('or-icon-button', {
|
|
@@ -2076,6 +2076,9 @@ var __vue_render__ = function () {
|
|
|
2076
2076
|
}, [_vm._l(_vm.headingLevels, function (heading) {
|
|
2077
2077
|
return _c('or-menu-item', {
|
|
2078
2078
|
key: heading,
|
|
2079
|
+
class: {
|
|
2080
|
+
'bg-surface-1': _vm.activeHeadingLevel === heading
|
|
2081
|
+
},
|
|
2079
2082
|
on: {
|
|
2080
2083
|
"click": function ($event) {
|
|
2081
2084
|
return _vm.handleToolbarClick('heading', heading);
|
|
@@ -2083,6 +2086,9 @@ var __vue_render__ = function () {
|
|
|
2083
2086
|
}
|
|
2084
2087
|
}, [_vm._v("\n Heading " + _vm._s(heading) + "\n ")]);
|
|
2085
2088
|
}), _vm._v(" "), _c('or-menu-item', {
|
|
2089
|
+
class: {
|
|
2090
|
+
'bg-surface-1': !_vm.activeHeadingLevel
|
|
2091
|
+
},
|
|
2086
2092
|
on: {
|
|
2087
2093
|
"click": function ($event) {
|
|
2088
2094
|
return _vm.handleToolbarClick('heading');
|
|
@@ -53,6 +53,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
53
53
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
54
54
|
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
55
55
|
sourceValue: import("@vue/composition-api").Ref<string>;
|
|
56
|
+
activeHeadingLevel: import("@vue/composition-api").Ref<number>;
|
|
56
57
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
57
58
|
modelValue: {
|
|
58
59
|
type: StringConstructor;
|
|
@@ -172,6 +173,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
172
173
|
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
|
|
173
174
|
disableMarkdown: import("@vue/composition-api").Ref<boolean>;
|
|
174
175
|
sourceValue: import("@vue/composition-api").Ref<string>;
|
|
176
|
+
activeHeadingLevel: import("@vue/composition-api").Ref<number>;
|
|
175
177
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
176
178
|
modelValue: string;
|
|
177
179
|
toolbar: Tools;
|