@onereach/ui-components 6.4.2 → 6.5.0-beta.3403.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/OrCode/OrCode.js +2 -2
- package/dist/bundled/v2/components/OrCode/index.js +5 -3
- package/dist/bundled/v2/components/OrCode/lang.js +5 -3
- package/dist/bundled/v2/components/OrCode/libs.js +5 -3
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +52 -30
- package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +4 -3
- package/dist/bundled/v2/components/OrCodeV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrCodeV3/index.js +5 -0
- package/dist/bundled/v2/components/OrCodeV3/libs.d.ts +6 -0
- package/dist/bundled/v2/components/OrCodeV3/libs.js +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +2 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -1
- package/dist/bundled/v2/components/index.js +6 -3
- package/dist/bundled/v2/index-317a90b7.js +361 -0
- package/dist/bundled/v2/index-5465a04e.js +825 -0
- package/dist/bundled/v2/index-5df3b1d8.js +94 -0
- package/dist/bundled/v2/index-5fa53f66.js +759 -0
- package/dist/bundled/{v3/index-ceea3e83.js → v2/index-7caa3ac5.js} +3 -3
- package/dist/bundled/v2/{index-eca317e0.js → index-bd08fe6f.js} +27 -465
- package/dist/bundled/v2/index-d017a622.js +1892 -0
- package/dist/bundled/v2/{index-62bb1bac.js → index-d4e4f8a8.js} +10 -831
- package/dist/bundled/v2/{index-3cae2d25.js → index-d5c13979.js} +1 -1
- package/dist/bundled/v2/index-f949d42c.js +1598 -0
- package/dist/bundled/v2/index.js +6 -3
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-e88b2b44.js → OrCode.vue_vue_type_script_lang-9be03ab0.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c9522cd5.js → OrCode.vue_vue_type_script_lang-f6022ce5.js} +52 -30
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/index.js +6 -4
- package/dist/bundled/v3/components/OrCode/lang.js +5 -3
- package/dist/bundled/v3/components/OrCode/libs.js +5 -3
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +3 -2
- package/dist/bundled/v3/components/OrCodeV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrCodeV3/index.js +6 -1
- package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +6 -0
- package/dist/bundled/v3/components/OrCodeV3/libs.js +5 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +2 -2
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -1
- package/dist/bundled/v3/components/index.js +9 -6
- package/dist/bundled/v3/{index-62bb1bac.js → index-16f605c7.js} +10 -831
- package/dist/bundled/v3/index-1f2974f3.js +1892 -0
- package/dist/bundled/v3/index-1fc9d52b.js +759 -0
- package/dist/bundled/v3/index-210fd8da.js +825 -0
- package/dist/bundled/{v2/index-ceea3e83.js → v3/index-71514f0d.js} +3 -3
- package/dist/bundled/v3/{index-eca317e0.js → index-766903ad.js} +27 -465
- package/dist/bundled/v3/index-a4b02e4e.js +1598 -0
- package/dist/bundled/v3/index-a8d259c3.js +361 -0
- package/dist/bundled/v3/{index-3cae2d25.js → index-e81a9bf9.js} +1 -1
- package/dist/bundled/v3/index-f6290750.js +94 -0
- package/dist/bundled/v3/index.js +9 -6
- package/dist/esm/v2/{OrCode-f5c25b63.js → OrCode-e2222cf7.js} +54 -34
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +4 -3
- package/dist/esm/v2/components/or-code-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-code-v3/index.js +9 -10
- package/dist/esm/v2/components/or-code-v3/libs.d.ts +6 -0
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v3/{OrCode-9662d0da.js → OrCode-f6a8e9f2.js} +54 -34
- package/dist/esm/v3/components/index.js +3 -3
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +3 -2
- package/dist/esm/v3/components/or-code-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-code-v3/index.js +9 -10
- package/dist/esm/v3/components/or-code-v3/libs.d.ts +6 -0
- package/dist/esm/v3/index.js +3 -3
- package/package.json +2 -3
- package/src/components/or-code-v3/OrCode.vue +70 -50
- package/src/components/or-code-v3/index.ts +1 -0
- package/src/components/or-code-v3/libs.ts +10 -0
- package/dist/bundled/v2/index-60e4eacf.js +0 -4048
- package/dist/bundled/v3/index-60e4eacf.js +0 -4048
- /package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-5a2318e5.js → OrRichTextEditor.vue_vue_type_script_lang-63edf53c.js} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { L as LRParser } from './index-f949d42c.js';
|
|
2
|
+
import { a3 as styleTags, a4 as tags, a5 as LanguageSupport, a6 as LRLanguage, a7 as indentNodeProp, a8 as continuedIndent, ab as foldNodeProp, ac as foldInside } from './index-d5c13979.js';
|
|
3
|
+
|
|
4
|
+
const jsonHighlighting = styleTags({
|
|
5
|
+
String: tags.string,
|
|
6
|
+
Number: tags.number,
|
|
7
|
+
"True False": tags.bool,
|
|
8
|
+
PropertyName: tags.propertyName,
|
|
9
|
+
Null: tags.null,
|
|
10
|
+
",": tags.separator,
|
|
11
|
+
"[ ]": tags.squareBracket,
|
|
12
|
+
"{ }": tags.brace
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
16
|
+
const parser = LRParser.deserialize({
|
|
17
|
+
version: 14,
|
|
18
|
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
|
|
19
|
+
stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
|
|
20
|
+
goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
|
21
|
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
|
|
22
|
+
maxTerm: 25,
|
|
23
|
+
nodeProps: [["openedBy", 7, "{", 12, "["], ["closedBy", 8, "}", 13, "]"]],
|
|
24
|
+
propSources: [jsonHighlighting],
|
|
25
|
+
skippedNodes: [0],
|
|
26
|
+
repeatNodeCount: 2,
|
|
27
|
+
tokenData: "(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",
|
|
28
|
+
tokenizers: [0],
|
|
29
|
+
topRules: {
|
|
30
|
+
"JsonText": [0, 1]
|
|
31
|
+
},
|
|
32
|
+
tokenPrec: 0
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
Calls
|
|
37
|
+
[`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
|
|
38
|
+
on the document and, if that throws an error, reports it as a
|
|
39
|
+
single diagnostic.
|
|
40
|
+
*/
|
|
41
|
+
const jsonParseLinter = () => view => {
|
|
42
|
+
try {
|
|
43
|
+
JSON.parse(view.state.doc.toString());
|
|
44
|
+
} catch (e) {
|
|
45
|
+
if (!(e instanceof SyntaxError)) throw e;
|
|
46
|
+
const pos = getErrorPosition(e, view.state.doc);
|
|
47
|
+
return [{
|
|
48
|
+
from: pos,
|
|
49
|
+
message: e.message,
|
|
50
|
+
severity: 'error',
|
|
51
|
+
to: pos
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
54
|
+
return [];
|
|
55
|
+
};
|
|
56
|
+
function getErrorPosition(error, doc) {
|
|
57
|
+
let m;
|
|
58
|
+
if (m = error.message.match(/at position (\d+)/)) return Math.min(+m[1], doc.length);
|
|
59
|
+
if (m = error.message.match(/at line (\d+) column (\d+)/)) return Math.min(doc.line(+m[1]).from + +m[2] - 1, doc.length);
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
A language provider that provides JSON parsing.
|
|
65
|
+
*/
|
|
66
|
+
const jsonLanguage = /*@__PURE__*/LRLanguage.define({
|
|
67
|
+
name: "json",
|
|
68
|
+
parser: /*@__PURE__*/parser.configure({
|
|
69
|
+
props: [/*@__PURE__*/indentNodeProp.add({
|
|
70
|
+
Object: /*@__PURE__*/continuedIndent({
|
|
71
|
+
except: /^\s*\}/
|
|
72
|
+
}),
|
|
73
|
+
Array: /*@__PURE__*/continuedIndent({
|
|
74
|
+
except: /^\s*\]/
|
|
75
|
+
})
|
|
76
|
+
}), /*@__PURE__*/foldNodeProp.add({
|
|
77
|
+
"Object Array": foldInside
|
|
78
|
+
})]
|
|
79
|
+
}),
|
|
80
|
+
languageData: {
|
|
81
|
+
closeBrackets: {
|
|
82
|
+
brackets: ["[", "{", '"']
|
|
83
|
+
},
|
|
84
|
+
indentOnInput: /^\s*[\}\]]$/
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
JSON language support.
|
|
89
|
+
*/
|
|
90
|
+
function json() {
|
|
91
|
+
return new LanguageSupport(jsonLanguage);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { json, jsonLanguage, jsonParseLinter };
|