@onereach/ui-components 10.2.0 → 10.2.1-beta.4272.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 +382 -252
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +21 -68
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +5 -4
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +2 -2
- package/dist/bundled/v2/{index-02a897ac.js → index-0e9c2b43.js} +1 -1
- package/dist/bundled/v2/{index-7516cf60.js → index-f379c836.js} +258 -173
- package/dist/bundled/v2/{markdown-fe3bfb01.js → markdown-2d22cf16.js} +66 -113
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +14 -18
- 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.d.ts +1 -0
- 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-358d7df2.js → OrRichTextEditorV3-45e64a85.js} +673 -531
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/{OrRichTextEditor-734b8b27.js → OrRichTextEditor-fbcc33fd.js} +353 -244
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +21 -68
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +7 -7
- package/dist/esm/v2/components/or-rich-text-editor-v3/partials/EditorToolbar.vue.d.ts +160 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +1 -0
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrRichTextEditor-b5684aab.js → OrRichTextEditor-cdd9e3e4.js} +325 -242
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +14 -18
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +6 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/partials/EditorToolbar.vue.d.ts +89 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +1 -0
- package/dist/esm/v3/index.js +1 -1
- package/package.json +19 -20
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +48 -203
- package/src/components/or-rich-text-editor-v3/partials/EditorToolbar.vue +238 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +13 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as Schema, e as Mark, P as Plugin, a as PluginKey, T as TextSelection, D as DOMParser$1 } from './index-
|
|
1
|
+
import { c as Schema, e as Mark, P as Plugin, a as PluginKey, T as TextSelection, D as DOMParser$1 } from './index-0e9c2b43.js';
|
|
2
2
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-1789f0cf.js';
|
|
3
|
-
import { N as Node, m as mergeAttributes, M as Mark$1, f as getMarkAttributes, w as wrappingInputRule, b as markInputRule, c as markPasteRule, t as textblockTypeInputRule, h as combineTransactionSteps,
|
|
3
|
+
import { N as Node, m as mergeAttributes, M as Mark$1, f as getMarkAttributes, w as wrappingInputRule, i as isMacOS, b as markInputRule, c as markPasteRule, t as textblockTypeInputRule, h as combineTransactionSteps, j as getChangedRanges, l as findChildrenInRange, o as getMarksBetween, p as getAttributes } from './index-f379c836.js';
|
|
4
4
|
|
|
5
5
|
var markdownIt_minExports = {};
|
|
6
6
|
var markdownIt_min = {
|
|
@@ -5102,7 +5102,9 @@ const ListItem$2 = Node.create({
|
|
|
5102
5102
|
name: 'listItem',
|
|
5103
5103
|
addOptions() {
|
|
5104
5104
|
return {
|
|
5105
|
-
HTMLAttributes: {}
|
|
5105
|
+
HTMLAttributes: {},
|
|
5106
|
+
bulletListTypeName: 'bulletList',
|
|
5107
|
+
orderedListTypeName: 'orderedList'
|
|
5106
5108
|
};
|
|
5107
5109
|
},
|
|
5108
5110
|
content: 'paragraph block*',
|
|
@@ -5241,7 +5243,9 @@ const ListItem$1 = Node.create({
|
|
|
5241
5243
|
name: 'listItem',
|
|
5242
5244
|
addOptions() {
|
|
5243
5245
|
return {
|
|
5244
|
-
HTMLAttributes: {}
|
|
5246
|
+
HTMLAttributes: {},
|
|
5247
|
+
bulletListTypeName: 'bulletList',
|
|
5248
|
+
orderedListTypeName: 'orderedList'
|
|
5245
5249
|
};
|
|
5246
5250
|
},
|
|
5247
5251
|
content: 'paragraph block*',
|
|
@@ -5270,7 +5274,9 @@ const ListItem = Node.create({
|
|
|
5270
5274
|
name: 'listItem',
|
|
5271
5275
|
addOptions() {
|
|
5272
5276
|
return {
|
|
5273
|
-
HTMLAttributes: {}
|
|
5277
|
+
HTMLAttributes: {},
|
|
5278
|
+
bulletListTypeName: 'bulletList',
|
|
5279
|
+
orderedListTypeName: 'orderedList'
|
|
5274
5280
|
};
|
|
5275
5281
|
},
|
|
5276
5282
|
content: 'paragraph block*',
|
|
@@ -5476,9 +5482,13 @@ const Strike = Mark$1.create({
|
|
|
5476
5482
|
};
|
|
5477
5483
|
},
|
|
5478
5484
|
addKeyboardShortcuts() {
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5485
|
+
const shortcuts = {};
|
|
5486
|
+
if (isMacOS()) {
|
|
5487
|
+
shortcuts['Mod-Shift-s'] = () => this.editor.commands.toggleStrike();
|
|
5488
|
+
} else {
|
|
5489
|
+
shortcuts['Ctrl-Shift-s'] = () => this.editor.commands.toggleStrike();
|
|
5490
|
+
}
|
|
5491
|
+
return shortcuts;
|
|
5482
5492
|
},
|
|
5483
5493
|
addInputRules() {
|
|
5484
5494
|
return [markInputRule({
|
|
@@ -7733,30 +7743,6 @@ function find(str, type, opts) {
|
|
|
7733
7743
|
return filtered;
|
|
7734
7744
|
}
|
|
7735
7745
|
|
|
7736
|
-
/**
|
|
7737
|
-
* Is the given string valid linkable text of some sort. Note that this does not
|
|
7738
|
-
* trim the text for you.
|
|
7739
|
-
*
|
|
7740
|
-
* Optionally pass in a second `type` param, which is the type of link to test
|
|
7741
|
-
* for.
|
|
7742
|
-
*
|
|
7743
|
-
* For example,
|
|
7744
|
-
*
|
|
7745
|
-
* linkify.test(str, 'email');
|
|
7746
|
-
*
|
|
7747
|
-
* Returns `true` if str is a valid email.
|
|
7748
|
-
* @param {string} str string to test for links
|
|
7749
|
-
* @param {string} [type] optional specific link type to look for
|
|
7750
|
-
* @returns boolean true/false
|
|
7751
|
-
*/
|
|
7752
|
-
function test(str, type) {
|
|
7753
|
-
if (type === void 0) {
|
|
7754
|
-
type = null;
|
|
7755
|
-
}
|
|
7756
|
-
const tokens = tokenize(str);
|
|
7757
|
-
return tokens.length === 1 && tokens[0].isLink && (!type || tokens[0].t === type);
|
|
7758
|
-
}
|
|
7759
|
-
|
|
7760
7746
|
function autolink(options) {
|
|
7761
7747
|
return new Plugin({
|
|
7762
7748
|
key: new PluginKey('autolink'),
|
|
@@ -7770,44 +7756,21 @@ function autolink(options) {
|
|
|
7770
7756
|
tr
|
|
7771
7757
|
} = newState;
|
|
7772
7758
|
const transform = combineTransactionSteps(oldState.doc, [...transactions]);
|
|
7773
|
-
const {
|
|
7774
|
-
mapping
|
|
7775
|
-
} = transform;
|
|
7776
7759
|
const changes = getChangedRanges(transform);
|
|
7777
7760
|
changes.forEach(_ref => {
|
|
7778
7761
|
let {
|
|
7779
|
-
oldRange,
|
|
7780
7762
|
newRange
|
|
7781
7763
|
} = _ref;
|
|
7782
|
-
//
|
|
7783
|
-
getMarksBetween(oldRange.from, oldRange.to, oldState.doc).filter(item => item.mark.type === options.type).forEach(oldMark => {
|
|
7784
|
-
const newFrom = mapping.map(oldMark.from);
|
|
7785
|
-
const newTo = mapping.map(oldMark.to);
|
|
7786
|
-
const newMarks = getMarksBetween(newFrom, newTo, newState.doc).filter(item => item.mark.type === options.type);
|
|
7787
|
-
if (!newMarks.length) {
|
|
7788
|
-
return;
|
|
7789
|
-
}
|
|
7790
|
-
const newMark = newMarks[0];
|
|
7791
|
-
const oldLinkText = oldState.doc.textBetween(oldMark.from, oldMark.to, undefined, ' ');
|
|
7792
|
-
const newLinkText = newState.doc.textBetween(newMark.from, newMark.to, undefined, ' ');
|
|
7793
|
-
const wasLink = test(oldLinkText);
|
|
7794
|
-
const isLink = test(newLinkText);
|
|
7795
|
-
// remove only the link, if it was a link before too
|
|
7796
|
-
// because we don’t want to remove links that were set manually
|
|
7797
|
-
if (wasLink && !isLink) {
|
|
7798
|
-
tr.removeMark(newMark.from, newMark.to, options.type);
|
|
7799
|
-
}
|
|
7800
|
-
});
|
|
7801
|
-
// now let’s see if we can add new links
|
|
7764
|
+
// Now let’s see if we can add new links.
|
|
7802
7765
|
const nodesInChangedRanges = findChildrenInRange(newState.doc, newRange, node => node.isTextblock);
|
|
7803
7766
|
let textBlock;
|
|
7804
7767
|
let textBeforeWhitespace;
|
|
7805
7768
|
if (nodesInChangedRanges.length > 1) {
|
|
7806
|
-
// Grab the first node within the changed ranges (ex. the first of two paragraphs when hitting enter)
|
|
7769
|
+
// Grab the first node within the changed ranges (ex. the first of two paragraphs when hitting enter).
|
|
7807
7770
|
textBlock = nodesInChangedRanges[0];
|
|
7808
7771
|
textBeforeWhitespace = newState.doc.textBetween(textBlock.pos, textBlock.pos + textBlock.node.nodeSize, undefined, ' ');
|
|
7809
7772
|
} else if (nodesInChangedRanges.length
|
|
7810
|
-
// We want to make sure to include the block seperator argument to treat hard breaks like spaces
|
|
7773
|
+
// We want to make sure to include the block seperator argument to treat hard breaks like spaces.
|
|
7811
7774
|
&& newState.doc.textBetween(newRange.from, newRange.to, ' ', ' ').endsWith(' ')) {
|
|
7812
7775
|
textBlock = nodesInChangedRanges[0];
|
|
7813
7776
|
textBeforeWhitespace = newState.doc.textBetween(textBlock.pos, newRange.to, undefined, ' ');
|
|
@@ -7822,20 +7785,32 @@ function autolink(options) {
|
|
|
7822
7785
|
if (!lastWordBeforeSpace) {
|
|
7823
7786
|
return false;
|
|
7824
7787
|
}
|
|
7825
|
-
find(lastWordBeforeSpace).filter(link => link.isLink)
|
|
7826
|
-
|
|
7827
|
-
return options.validate(link.value);
|
|
7828
|
-
}
|
|
7829
|
-
return true;
|
|
7830
|
-
})
|
|
7831
|
-
// calculate link position
|
|
7788
|
+
find(lastWordBeforeSpace).filter(link => link.isLink)
|
|
7789
|
+
// Calculate link position.
|
|
7832
7790
|
.map(link => ({
|
|
7833
7791
|
...link,
|
|
7834
7792
|
from: lastWordAndBlockOffset + link.start + 1,
|
|
7835
7793
|
to: lastWordAndBlockOffset + link.end + 1
|
|
7836
7794
|
}))
|
|
7837
|
-
//
|
|
7795
|
+
// ignore link inside code mark
|
|
7796
|
+
.filter(link => {
|
|
7797
|
+
if (!newState.schema.marks.code) {
|
|
7798
|
+
return true;
|
|
7799
|
+
}
|
|
7800
|
+
return !newState.doc.rangeHasMark(link.from, link.to, newState.schema.marks.code);
|
|
7801
|
+
})
|
|
7802
|
+
// validate link
|
|
7803
|
+
.filter(link => {
|
|
7804
|
+
if (options.validate) {
|
|
7805
|
+
return options.validate(link.value);
|
|
7806
|
+
}
|
|
7807
|
+
return true;
|
|
7808
|
+
})
|
|
7809
|
+
// Add link mark.
|
|
7838
7810
|
.forEach(link => {
|
|
7811
|
+
if (getMarksBetween(link.from, link.to, newState.doc).some(item => item.mark.type === options.type)) {
|
|
7812
|
+
return;
|
|
7813
|
+
}
|
|
7839
7814
|
tr.addMark(link.from, link.to, options.type.create({
|
|
7840
7815
|
href: link.href
|
|
7841
7816
|
}));
|
|
@@ -7854,16 +7829,22 @@ function clickHandler(options) {
|
|
|
7854
7829
|
key: new PluginKey('handleClickLink'),
|
|
7855
7830
|
props: {
|
|
7856
7831
|
handleClick: (view, pos, event) => {
|
|
7857
|
-
var _a, _b
|
|
7832
|
+
var _a, _b;
|
|
7858
7833
|
if (event.button !== 0) {
|
|
7859
7834
|
return false;
|
|
7860
7835
|
}
|
|
7836
|
+
const eventTarget = event.target;
|
|
7837
|
+
if (eventTarget.nodeName !== 'A') {
|
|
7838
|
+
return false;
|
|
7839
|
+
}
|
|
7861
7840
|
const attrs = getAttributes(view.state, options.type.name);
|
|
7862
|
-
const link =
|
|
7863
|
-
const href = (
|
|
7864
|
-
const target = (
|
|
7841
|
+
const link = event.target;
|
|
7842
|
+
const href = (_a = link === null || link === void 0 ? void 0 : link.href) !== null && _a !== void 0 ? _a : attrs.href;
|
|
7843
|
+
const target = (_b = link === null || link === void 0 ? void 0 : link.target) !== null && _b !== void 0 ? _b : attrs.target;
|
|
7865
7844
|
if (link && href) {
|
|
7866
|
-
|
|
7845
|
+
if (view.editable) {
|
|
7846
|
+
window.open(href, target);
|
|
7847
|
+
}
|
|
7867
7848
|
return true;
|
|
7868
7849
|
}
|
|
7869
7850
|
return false;
|
|
@@ -7871,39 +7852,6 @@ function clickHandler(options) {
|
|
|
7871
7852
|
}
|
|
7872
7853
|
});
|
|
7873
7854
|
}
|
|
7874
|
-
function pasteHandler(options) {
|
|
7875
|
-
return new Plugin({
|
|
7876
|
-
key: new PluginKey('handlePasteLink'),
|
|
7877
|
-
props: {
|
|
7878
|
-
handlePaste: (view, event, slice) => {
|
|
7879
|
-
const {
|
|
7880
|
-
state
|
|
7881
|
-
} = view;
|
|
7882
|
-
const {
|
|
7883
|
-
selection
|
|
7884
|
-
} = state;
|
|
7885
|
-
const {
|
|
7886
|
-
empty
|
|
7887
|
-
} = selection;
|
|
7888
|
-
if (empty) {
|
|
7889
|
-
return false;
|
|
7890
|
-
}
|
|
7891
|
-
let textContent = '';
|
|
7892
|
-
slice.content.forEach(node => {
|
|
7893
|
-
textContent += node.textContent;
|
|
7894
|
-
});
|
|
7895
|
-
const link = find(textContent).find(item => item.isLink && item.value === textContent);
|
|
7896
|
-
if (!textContent || !link) {
|
|
7897
|
-
return false;
|
|
7898
|
-
}
|
|
7899
|
-
options.editor.commands.setMark(options.type, {
|
|
7900
|
-
href: link.href
|
|
7901
|
-
});
|
|
7902
|
-
return true;
|
|
7903
|
-
}
|
|
7904
|
-
}
|
|
7905
|
-
});
|
|
7906
|
-
}
|
|
7907
7855
|
const Link = Mark$1.create({
|
|
7908
7856
|
name: 'link',
|
|
7909
7857
|
priority: 1000,
|
|
@@ -7945,6 +7893,9 @@ const Link = Mark$1.create({
|
|
|
7945
7893
|
target: {
|
|
7946
7894
|
default: this.options.HTMLAttributes.target
|
|
7947
7895
|
},
|
|
7896
|
+
rel: {
|
|
7897
|
+
default: this.options.HTMLAttributes.rel
|
|
7898
|
+
},
|
|
7948
7899
|
class: {
|
|
7949
7900
|
default: this.options.HTMLAttributes.class
|
|
7950
7901
|
}
|
|
@@ -8000,10 +7951,18 @@ const Link = Mark$1.create({
|
|
|
8000
7951
|
data: link
|
|
8001
7952
|
})),
|
|
8002
7953
|
type: this.type,
|
|
8003
|
-
getAttributes: match => {
|
|
8004
|
-
var _a;
|
|
7954
|
+
getAttributes: (match, pasteEvent) => {
|
|
7955
|
+
var _a, _b;
|
|
7956
|
+
const html = (_a = pasteEvent.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text/html');
|
|
7957
|
+
const hrefRegex = /href="([^"]*)"/;
|
|
7958
|
+
const existingLink = html === null || html === void 0 ? void 0 : html.match(hrefRegex);
|
|
7959
|
+
if (existingLink) {
|
|
7960
|
+
return {
|
|
7961
|
+
href: existingLink[1]
|
|
7962
|
+
};
|
|
7963
|
+
}
|
|
8005
7964
|
return {
|
|
8006
|
-
href: (
|
|
7965
|
+
href: (_b = match.data) === null || _b === void 0 ? void 0 : _b.href
|
|
8007
7966
|
};
|
|
8008
7967
|
}
|
|
8009
7968
|
})];
|
|
@@ -8021,12 +7980,6 @@ const Link = Mark$1.create({
|
|
|
8021
7980
|
type: this.type
|
|
8022
7981
|
}));
|
|
8023
7982
|
}
|
|
8024
|
-
if (this.options.linkOnPaste) {
|
|
8025
|
-
plugins.push(pasteHandler({
|
|
8026
|
-
editor: this.editor,
|
|
8027
|
-
type: this.type
|
|
8028
|
-
}));
|
|
8029
|
-
}
|
|
8030
7983
|
return plugins;
|
|
8031
7984
|
}
|
|
8032
7985
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrRichTextEditorV3-
|
|
1
|
+
export { s as default } from '../OrRichTextEditorV3-45e64a85.js';
|
|
@@ -43,45 +43,36 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
43
43
|
type: (BooleanConstructor | StringConstructor)[];
|
|
44
44
|
default: undefined;
|
|
45
45
|
};
|
|
46
|
+
readonly: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
46
50
|
}, {
|
|
47
51
|
editor: Editor | null;
|
|
48
52
|
editorRef: import("vue-demi").Ref<HTMLDivElement | undefined>;
|
|
49
|
-
|
|
53
|
+
toolbarContainerRef: import("vue-demi").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false, import("vue-demi").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | undefined>;
|
|
50
54
|
containerRef: import("vue-demi").Ref<ComponentPublicInstance<HTMLInputElement, {}, {}, {}, {}, {}, HTMLInputElement, {}, false, import("vue-demi").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | undefined>;
|
|
51
|
-
toolbarButtonRef: import("vue-demi").Ref<any>;
|
|
52
|
-
moreButtonRef: import("vue-demi").Ref<any>;
|
|
53
55
|
textareaRef: import("vue-demi").Ref<HTMLTextAreaElement | undefined>;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}>;
|
|
59
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
56
|
+
handleToolbarClick: ({ item, level }: {
|
|
57
|
+
item: string;
|
|
58
|
+
level?: number | undefined;
|
|
59
|
+
}) => void;
|
|
60
60
|
handleEditorClick: () => void;
|
|
61
61
|
isActive: import("vue-demi").Ref<{
|
|
62
62
|
[key: string]: boolean;
|
|
63
63
|
}>;
|
|
64
|
-
iconTooltipsEnum: import("vue-demi").Ref<{
|
|
65
|
-
[key: string]: string;
|
|
66
|
-
}>;
|
|
67
64
|
containerStyles: import("vue-demi").ComputedRef<string[]>;
|
|
68
|
-
toolbarContainerStyles: import("vue-demi").ComputedRef<string[]>;
|
|
69
|
-
toolbarStyles: import("vue-demi").ComputedRef<string[]>;
|
|
70
65
|
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
71
66
|
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
72
67
|
editorInputStyles: import("vue-demi").ComputedRef<string[]>;
|
|
73
|
-
getIndexOfHeading: import("vue-demi").ComputedRef<number>;
|
|
74
68
|
headingLevels: Level[];
|
|
75
|
-
headingIcon: import("vue-demi").ComputedRef<string>;
|
|
76
69
|
attachLink: () => Promise<void>;
|
|
77
70
|
discardLink: () => void;
|
|
78
71
|
isOpenLinkModal: import("vue-demi").Ref<boolean>;
|
|
79
72
|
text: import("vue-demi").Ref<string>;
|
|
80
73
|
link: import("vue-demi").Ref<string>;
|
|
81
74
|
isFocused: import("vue-demi").Ref<boolean>;
|
|
82
|
-
isVisible: (value: string | Array<string>) => boolean;
|
|
83
75
|
countOfNotVisibleTools: import("vue-demi").Ref<number>;
|
|
84
|
-
notVisibleTools: import("vue-demi").ComputedRef<Set<string>>;
|
|
85
76
|
handleInput: (event: InputEvent) => void;
|
|
86
77
|
proxyModelValue: import("vue-demi").WritableComputedRef<string | undefined>;
|
|
87
78
|
disableMarkdown: import("vue-demi").Ref<boolean>;
|
|
@@ -128,6 +119,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
128
119
|
type: (BooleanConstructor | StringConstructor)[];
|
|
129
120
|
default: undefined;
|
|
130
121
|
};
|
|
122
|
+
readonly: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
131
126
|
}>> & {
|
|
132
127
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
133
128
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
@@ -143,5 +138,6 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
143
138
|
hint: string;
|
|
144
139
|
disabled: boolean;
|
|
145
140
|
error: string | boolean;
|
|
141
|
+
readonly: boolean;
|
|
146
142
|
}>;
|
|
147
143
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditorV3-
|
|
1
|
+
export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditorV3-45e64a85.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Formats } from '../OrRichTextEditorV3-
|
|
1
|
+
export { F as Formats } from '../OrRichTextEditorV3-45e64a85.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const OrRichTextEditor: string[];
|
|
2
2
|
export declare const EditorContainer: string[];
|
|
3
|
+
export declare const EditorContainerFocus: string[];
|
|
3
4
|
export declare const ToolbarContainer: string[];
|
|
4
5
|
export declare const Toolbar: string[];
|
|
5
6
|
export declare const ToolbarButton: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { E as EditorContainer,
|
|
1
|
+
export { E as EditorContainer, b as EditorContainerFocus, g as EditorInput, O as OrRichTextEditor, c as Toolbar, e as ToolbarButton, f as ToolbarButtonFocused, T as ToolbarContainer } from '../OrRichTextEditorV3-45e64a85.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { j as default } from '../../../OrRichTextEditorV3-45e64a85.js';
|
|
2
2
|
import '../../../OrCode-d9b43205.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as default } from '../../../OrRichTextEditorV3-
|
|
1
|
+
export { C as default } from '../../../OrRichTextEditorV3-45e64a85.js';
|
|
2
2
|
import '../../../OrCode-d9b43205.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CodeMirrorView } from '../../../OrRichTextEditorV3-
|
|
1
|
+
export { C as CodeMirrorView } from '../../../OrRichTextEditorV3-45e64a85.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../../../OrCode-d9b43205.js';
|
|
2
2
|
import '../../../../hooks/useTheme.js';
|
|
3
|
-
export {
|
|
3
|
+
export { h as color, t as default, i as orCodeHighlightStyle, o as orCodeTheme } from '../../../OrRichTextEditorV3-45e64a85.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { d as deserialize, a as serialize } from '../../OrRichTextEditorV3-
|
|
1
|
+
export { d as deserialize, a as serialize } from '../../OrRichTextEditorV3-45e64a85.js';
|