@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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/package.json +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/twig-DxwbdmvQ.js
DELETED
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
const t = {
|
|
2
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
3
|
-
comments: {
|
|
4
|
-
blockComment: ["{#", "#}"]
|
|
5
|
-
},
|
|
6
|
-
brackets: [
|
|
7
|
-
["{#", "#}"],
|
|
8
|
-
["{%", "%}"],
|
|
9
|
-
["{{", "}}"],
|
|
10
|
-
["(", ")"],
|
|
11
|
-
["[", "]"],
|
|
12
|
-
// HTML
|
|
13
|
-
["<!--", "-->"],
|
|
14
|
-
["<", ">"]
|
|
15
|
-
],
|
|
16
|
-
autoClosingPairs: [
|
|
17
|
-
{ open: "{# ", close: " #}" },
|
|
18
|
-
{ open: "{% ", close: " %}" },
|
|
19
|
-
{ open: "{{ ", close: " }}" },
|
|
20
|
-
{ open: "[", close: "]" },
|
|
21
|
-
{ open: "(", close: ")" },
|
|
22
|
-
{ open: '"', close: '"' },
|
|
23
|
-
{ open: "'", close: "'" }
|
|
24
|
-
],
|
|
25
|
-
surroundingPairs: [
|
|
26
|
-
{ open: '"', close: '"' },
|
|
27
|
-
{ open: "'", close: "'" },
|
|
28
|
-
// HTML
|
|
29
|
-
{ open: "<", close: ">" }
|
|
30
|
-
]
|
|
31
|
-
}, e = {
|
|
32
|
-
defaultToken: "",
|
|
33
|
-
tokenPostfix: "",
|
|
34
|
-
ignoreCase: !0,
|
|
35
|
-
keywords: [
|
|
36
|
-
// (opening) tags
|
|
37
|
-
"apply",
|
|
38
|
-
"autoescape",
|
|
39
|
-
"block",
|
|
40
|
-
"deprecated",
|
|
41
|
-
"do",
|
|
42
|
-
"embed",
|
|
43
|
-
"extends",
|
|
44
|
-
"flush",
|
|
45
|
-
"for",
|
|
46
|
-
"from",
|
|
47
|
-
"if",
|
|
48
|
-
"import",
|
|
49
|
-
"include",
|
|
50
|
-
"macro",
|
|
51
|
-
"sandbox",
|
|
52
|
-
"set",
|
|
53
|
-
"use",
|
|
54
|
-
"verbatim",
|
|
55
|
-
"with",
|
|
56
|
-
// closing tags
|
|
57
|
-
"endapply",
|
|
58
|
-
"endautoescape",
|
|
59
|
-
"endblock",
|
|
60
|
-
"endembed",
|
|
61
|
-
"endfor",
|
|
62
|
-
"endif",
|
|
63
|
-
"endmacro",
|
|
64
|
-
"endsandbox",
|
|
65
|
-
"endset",
|
|
66
|
-
"endwith",
|
|
67
|
-
// literals
|
|
68
|
-
"true",
|
|
69
|
-
"false"
|
|
70
|
-
],
|
|
71
|
-
tokenizer: {
|
|
72
|
-
root: [
|
|
73
|
-
// whitespace
|
|
74
|
-
[/\s+/],
|
|
75
|
-
// Twig Tag Delimiters
|
|
76
|
-
[/{#/, "comment.twig", "@commentState"],
|
|
77
|
-
[/{%[-~]?/, "delimiter.twig", "@blockState"],
|
|
78
|
-
[/{{[-~]?/, "delimiter.twig", "@variableState"],
|
|
79
|
-
// HTML
|
|
80
|
-
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
81
|
-
[/<!--/, "comment.html", "@comment"],
|
|
82
|
-
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
|
|
83
|
-
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
84
|
-
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
85
|
-
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
86
|
-
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
87
|
-
[/</, "delimiter.html"],
|
|
88
|
-
[/[^<{]+/]
|
|
89
|
-
// text
|
|
90
|
-
],
|
|
91
|
-
/**
|
|
92
|
-
* Comment Tag Handling
|
|
93
|
-
*/
|
|
94
|
-
commentState: [
|
|
95
|
-
[/#}/, "comment.twig", "@pop"],
|
|
96
|
-
[/./, "comment.twig"]
|
|
97
|
-
],
|
|
98
|
-
/**
|
|
99
|
-
* Block Tag Handling
|
|
100
|
-
*/
|
|
101
|
-
blockState: [
|
|
102
|
-
[/[-~]?%}/, "delimiter.twig", "@pop"],
|
|
103
|
-
// whitespace
|
|
104
|
-
[/\s+/],
|
|
105
|
-
// verbatim
|
|
106
|
-
// Unlike other blocks, verbatim ehas its own state
|
|
107
|
-
// transition to ensure we mark its contents as strings.
|
|
108
|
-
[
|
|
109
|
-
/(verbatim)(\s*)([-~]?%})/,
|
|
110
|
-
["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
|
|
111
|
-
],
|
|
112
|
-
{ include: "expression" }
|
|
113
|
-
],
|
|
114
|
-
rawDataState: [
|
|
115
|
-
// endverbatim
|
|
116
|
-
[
|
|
117
|
-
/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
|
|
118
|
-
["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
|
|
119
|
-
],
|
|
120
|
-
[/./, "string.twig"]
|
|
121
|
-
],
|
|
122
|
-
/**
|
|
123
|
-
* Variable Tag Handling
|
|
124
|
-
*/
|
|
125
|
-
variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
|
|
126
|
-
stringState: [
|
|
127
|
-
// closing double quoted string
|
|
128
|
-
[/"/, "string.twig", "@pop"],
|
|
129
|
-
// interpolation start
|
|
130
|
-
[/#{\s*/, "string.twig", "@interpolationState"],
|
|
131
|
-
// string part
|
|
132
|
-
[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
|
|
133
|
-
],
|
|
134
|
-
interpolationState: [
|
|
135
|
-
// interpolation end
|
|
136
|
-
[/}/, "string.twig", "@pop"],
|
|
137
|
-
{ include: "expression" }
|
|
138
|
-
],
|
|
139
|
-
/**
|
|
140
|
-
* Expression Handling
|
|
141
|
-
*/
|
|
142
|
-
expression: [
|
|
143
|
-
// whitespace
|
|
144
|
-
[/\s+/],
|
|
145
|
-
// operators - math
|
|
146
|
-
[/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
|
|
147
|
-
// operators - logic
|
|
148
|
-
[/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
|
|
149
|
-
// operators - comparison (symbols)
|
|
150
|
-
[/==|!=|<|>|>=|<=/, "operators.twig"],
|
|
151
|
-
// operators - comparison (words)
|
|
152
|
-
[/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
|
|
153
|
-
// operators - containment
|
|
154
|
-
[/(in)(\s+)/, ["operators.twig", ""]],
|
|
155
|
-
// operators - test
|
|
156
|
-
[/(is)(\s+)/, ["operators.twig", ""]],
|
|
157
|
-
// operators - misc
|
|
158
|
-
[/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
|
|
159
|
-
// names
|
|
160
|
-
[
|
|
161
|
-
/[^\W\d][\w]*/,
|
|
162
|
-
{
|
|
163
|
-
cases: {
|
|
164
|
-
"@keywords": "keyword.twig",
|
|
165
|
-
"@default": "variable.twig"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
// numbers
|
|
170
|
-
[/\d+(\.\d+)?/, "number.twig"],
|
|
171
|
-
// punctuation
|
|
172
|
-
[/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
|
|
173
|
-
// strings
|
|
174
|
-
[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
|
|
175
|
-
// opening double quoted string
|
|
176
|
-
[/"/, "string.twig", "@stringState"],
|
|
177
|
-
// misc syntactic constructs
|
|
178
|
-
// These are not operators per se, but for the purposes of lexical analysis we
|
|
179
|
-
// can treat them as such.
|
|
180
|
-
// arrow functions
|
|
181
|
-
[/=>/, "operators.twig"],
|
|
182
|
-
// assignment
|
|
183
|
-
[/=/, "operators.twig"]
|
|
184
|
-
],
|
|
185
|
-
/**
|
|
186
|
-
* HTML
|
|
187
|
-
*/
|
|
188
|
-
doctype: [
|
|
189
|
-
[/[^>]+/, "metatag.content.html"],
|
|
190
|
-
[/>/, "metatag.html", "@pop"]
|
|
191
|
-
],
|
|
192
|
-
comment: [
|
|
193
|
-
[/-->/, "comment.html", "@pop"],
|
|
194
|
-
[/[^-]+/, "comment.content.html"],
|
|
195
|
-
[/./, "comment.content.html"]
|
|
196
|
-
],
|
|
197
|
-
otherTag: [
|
|
198
|
-
[/\/?>/, "delimiter.html", "@pop"],
|
|
199
|
-
[/"([^"]*)"/, "attribute.value.html"],
|
|
200
|
-
[/'([^']*)'/, "attribute.value.html"],
|
|
201
|
-
[/[\w\-]+/, "attribute.name.html"],
|
|
202
|
-
[/=/, "delimiter.html"],
|
|
203
|
-
[/[ \t\r\n]+/]
|
|
204
|
-
// whitespace
|
|
205
|
-
],
|
|
206
|
-
// -- BEGIN <script> tags handling
|
|
207
|
-
// After <script
|
|
208
|
-
script: [
|
|
209
|
-
[/type/, "attribute.name.html", "@scriptAfterType"],
|
|
210
|
-
[/"([^"]*)"/, "attribute.value.html"],
|
|
211
|
-
[/'([^']*)'/, "attribute.value.html"],
|
|
212
|
-
[/[\w\-]+/, "attribute.name.html"],
|
|
213
|
-
[/=/, "delimiter.html"],
|
|
214
|
-
[
|
|
215
|
-
/>/,
|
|
216
|
-
{
|
|
217
|
-
token: "delimiter.html",
|
|
218
|
-
next: "@scriptEmbedded",
|
|
219
|
-
nextEmbedded: "text/javascript"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
[/[ \t\r\n]+/],
|
|
223
|
-
// whitespace
|
|
224
|
-
[
|
|
225
|
-
/(<\/)(script\s*)(>)/,
|
|
226
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
227
|
-
]
|
|
228
|
-
],
|
|
229
|
-
// After <script ... type
|
|
230
|
-
scriptAfterType: [
|
|
231
|
-
[/=/, "delimiter.html", "@scriptAfterTypeEquals"],
|
|
232
|
-
[
|
|
233
|
-
/>/,
|
|
234
|
-
{
|
|
235
|
-
token: "delimiter.html",
|
|
236
|
-
next: "@scriptEmbedded",
|
|
237
|
-
nextEmbedded: "text/javascript"
|
|
238
|
-
}
|
|
239
|
-
],
|
|
240
|
-
// cover invalid e.g. <script type>
|
|
241
|
-
[/[ \t\r\n]+/],
|
|
242
|
-
// whitespace
|
|
243
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
244
|
-
],
|
|
245
|
-
// After <script ... type =
|
|
246
|
-
scriptAfterTypeEquals: [
|
|
247
|
-
[
|
|
248
|
-
/"([^"]*)"/,
|
|
249
|
-
{
|
|
250
|
-
token: "attribute.value.html",
|
|
251
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
252
|
-
}
|
|
253
|
-
],
|
|
254
|
-
[
|
|
255
|
-
/'([^']*)'/,
|
|
256
|
-
{
|
|
257
|
-
token: "attribute.value.html",
|
|
258
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
259
|
-
}
|
|
260
|
-
],
|
|
261
|
-
[
|
|
262
|
-
/>/,
|
|
263
|
-
{
|
|
264
|
-
token: "delimiter.html",
|
|
265
|
-
next: "@scriptEmbedded",
|
|
266
|
-
nextEmbedded: "text/javascript"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
// cover invalid e.g. <script type=>
|
|
270
|
-
[/[ \t\r\n]+/],
|
|
271
|
-
// whitespace
|
|
272
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
273
|
-
],
|
|
274
|
-
// After <script ... type = $S2
|
|
275
|
-
scriptWithCustomType: [
|
|
276
|
-
[
|
|
277
|
-
/>/,
|
|
278
|
-
{
|
|
279
|
-
token: "delimiter.html",
|
|
280
|
-
next: "@scriptEmbedded.$S2",
|
|
281
|
-
nextEmbedded: "$S2"
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
[/"([^"]*)"/, "attribute.value.html"],
|
|
285
|
-
[/'([^']*)'/, "attribute.value.html"],
|
|
286
|
-
[/[\w\-]+/, "attribute.name.html"],
|
|
287
|
-
[/=/, "delimiter.html"],
|
|
288
|
-
[/[ \t\r\n]+/],
|
|
289
|
-
// whitespace
|
|
290
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
291
|
-
],
|
|
292
|
-
scriptEmbedded: [
|
|
293
|
-
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
294
|
-
[/[^<]+/, ""]
|
|
295
|
-
],
|
|
296
|
-
// -- END <script> tags handling
|
|
297
|
-
// -- BEGIN <style> tags handling
|
|
298
|
-
// After <style
|
|
299
|
-
style: [
|
|
300
|
-
[/type/, "attribute.name.html", "@styleAfterType"],
|
|
301
|
-
[/"([^"]*)"/, "attribute.value.html"],
|
|
302
|
-
[/'([^']*)'/, "attribute.value.html"],
|
|
303
|
-
[/[\w\-]+/, "attribute.name.html"],
|
|
304
|
-
[/=/, "delimiter.html"],
|
|
305
|
-
[
|
|
306
|
-
/>/,
|
|
307
|
-
{
|
|
308
|
-
token: "delimiter.html",
|
|
309
|
-
next: "@styleEmbedded",
|
|
310
|
-
nextEmbedded: "text/css"
|
|
311
|
-
}
|
|
312
|
-
],
|
|
313
|
-
[/[ \t\r\n]+/],
|
|
314
|
-
// whitespace
|
|
315
|
-
[
|
|
316
|
-
/(<\/)(style\s*)(>)/,
|
|
317
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
318
|
-
]
|
|
319
|
-
],
|
|
320
|
-
// After <style ... type
|
|
321
|
-
styleAfterType: [
|
|
322
|
-
[/=/, "delimiter.html", "@styleAfterTypeEquals"],
|
|
323
|
-
[
|
|
324
|
-
/>/,
|
|
325
|
-
{
|
|
326
|
-
token: "delimiter.html",
|
|
327
|
-
next: "@styleEmbedded",
|
|
328
|
-
nextEmbedded: "text/css"
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
// cover invalid e.g. <style type>
|
|
332
|
-
[/[ \t\r\n]+/],
|
|
333
|
-
// whitespace
|
|
334
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
335
|
-
],
|
|
336
|
-
// After <style ... type =
|
|
337
|
-
styleAfterTypeEquals: [
|
|
338
|
-
[
|
|
339
|
-
/"([^"]*)"/,
|
|
340
|
-
{
|
|
341
|
-
token: "attribute.value.html",
|
|
342
|
-
switchTo: "@styleWithCustomType.$1"
|
|
343
|
-
}
|
|
344
|
-
],
|
|
345
|
-
[
|
|
346
|
-
/'([^']*)'/,
|
|
347
|
-
{
|
|
348
|
-
token: "attribute.value.html",
|
|
349
|
-
switchTo: "@styleWithCustomType.$1"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
[
|
|
353
|
-
/>/,
|
|
354
|
-
{
|
|
355
|
-
token: "delimiter.html",
|
|
356
|
-
next: "@styleEmbedded",
|
|
357
|
-
nextEmbedded: "text/css"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
// cover invalid e.g. <style type=>
|
|
361
|
-
[/[ \t\r\n]+/],
|
|
362
|
-
// whitespace
|
|
363
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
364
|
-
],
|
|
365
|
-
// After <style ... type = $S2
|
|
366
|
-
styleWithCustomType: [
|
|
367
|
-
[
|
|
368
|
-
/>/,
|
|
369
|
-
{
|
|
370
|
-
token: "delimiter.html",
|
|
371
|
-
next: "@styleEmbedded.$S2",
|
|
372
|
-
nextEmbedded: "$S2"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
[/"([^"]*)"/, "attribute.value.html"],
|
|
376
|
-
[/'([^']*)'/, "attribute.value.html"],
|
|
377
|
-
[/[\w\-]+/, "attribute.name.html"],
|
|
378
|
-
[/=/, "delimiter.html"],
|
|
379
|
-
[/[ \t\r\n]+/],
|
|
380
|
-
// whitespace
|
|
381
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
382
|
-
],
|
|
383
|
-
styleEmbedded: [
|
|
384
|
-
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
385
|
-
[/[^<]+/, ""]
|
|
386
|
-
]
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
export {
|
|
390
|
-
t as conf,
|
|
391
|
-
e as language
|
|
392
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { editor } from 'monaco-editor';
|
|
2
|
-
import type { EditorThemes } from '../types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/**
|
|
5
|
-
* The theme of the Monaco Editor instance.
|
|
6
|
-
* @default 'light'
|
|
7
|
-
*/
|
|
8
|
-
theme?: EditorThemes;
|
|
9
|
-
/**
|
|
10
|
-
* The programming language for syntax highlighting.
|
|
11
|
-
* @default 'markdown'
|
|
12
|
-
*/
|
|
13
|
-
language?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Additional Monaco Editor options to customize the editor further.
|
|
16
|
-
* @default undefined
|
|
17
|
-
*/
|
|
18
|
-
options?: Partial<editor.IStandaloneEditorConstructionOptions> | undefined;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* The model content for the Monaco Editor.
|
|
22
|
-
*/
|
|
23
|
-
declare const model: import("vue").ModelRef<string, string, string, string>;
|
|
24
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
25
|
-
/**
|
|
26
|
-
* The model content for the Monaco Editor.
|
|
27
|
-
*/
|
|
28
|
-
modelValue: typeof model['value'];
|
|
29
|
-
};
|
|
30
|
-
declare var __VLS_1: {
|
|
31
|
-
isLoading: boolean;
|
|
32
|
-
}, __VLS_12: {
|
|
33
|
-
isEmpty: boolean;
|
|
34
|
-
};
|
|
35
|
-
type __VLS_Slots = {} & {
|
|
36
|
-
'state-loading'?: (props: typeof __VLS_1) => any;
|
|
37
|
-
} & {
|
|
38
|
-
'state-empty'?: (props: typeof __VLS_12) => any;
|
|
39
|
-
};
|
|
40
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
-
"update:modelValue": (value: string) => any;
|
|
42
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
43
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
44
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
|
-
export default _default;
|
|
47
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
-
new (): {
|
|
49
|
-
$slots: S;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=MonacoEditor.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MonacoEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/MonacoEditor.vue"],"names":[],"mappings":"AAkTA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;MAGE;IACF,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,oCAAoC,CAAC,GAAG,SAAS,CAAA;CAC3E,CAAC;AAOF;;GAEG;AACH,QAAA,MAAM,KAAK,wDAGT,CAAA;AA4BF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC;;OAEG;IACH,UAAU,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CACjC,CAAC;AAiJF,QAAA,IAAI,OAAO;;CAAU,EAAE,QAAQ;;CAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA2BtD,QAAA,MAAM,eAAe;;;;kFAKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/**
|
|
4
|
-
* The title to display in the empty state.
|
|
5
|
-
*/
|
|
6
|
-
title: string;
|
|
7
|
-
/**
|
|
8
|
-
* The message to display in the empty state.
|
|
9
|
-
*/
|
|
10
|
-
message: string;
|
|
11
|
-
/**
|
|
12
|
-
* The icon component to display in the empty state.
|
|
13
|
-
* @default undefined
|
|
14
|
-
*/
|
|
15
|
-
icon?: Component;
|
|
16
|
-
};
|
|
17
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
export default _default;
|
|
19
|
-
//# sourceMappingURL=MonacoEditorStatusOverlay.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MonacoEditorStatusOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/MonacoEditorStatusOverlay.vue"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB,CAAC;;AA6EF,wBAIG"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
-
import english from '../locales/en.json';
|
|
3
|
-
interface UseI18nReturn {
|
|
4
|
-
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
-
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
-
}
|
|
7
|
-
export default function useI18n(): UseI18nReturn;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as monaco from 'monaco-editor';
|
|
2
|
-
import type { MaybeComputedElementRef, MaybeElement } from '@vueuse/core';
|
|
3
|
-
import type { UseMonacoEditorOptions } from '../types';
|
|
4
|
-
/**
|
|
5
|
-
* Composable for integrating the Monaco Editor into Vue components.
|
|
6
|
-
* @param {MaybeComputedElementRef} target - The target DOM element or Vue component ref where the editor will be mounted.
|
|
7
|
-
* @param {UseMonacoEditorOptions} options - Configuration options for the Monaco editor.
|
|
8
|
-
* @returns {object} An object containing the editor instance and utility methods.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useMonacoEditor<T extends MaybeElement>(target: MaybeComputedElementRef<T>, options: UseMonacoEditorOptions): {
|
|
11
|
-
editor: monaco.editor.IStandaloneCodeEditor | undefined;
|
|
12
|
-
editorStates: {
|
|
13
|
-
editorStatus: import("..").EditorStatus;
|
|
14
|
-
searchBoxIsRevealed: boolean;
|
|
15
|
-
hasContent: boolean;
|
|
16
|
-
theme: import("..").EditorThemes;
|
|
17
|
-
};
|
|
18
|
-
setContent: (content: string) => void;
|
|
19
|
-
setReadOnly: (readOnly: boolean) => void;
|
|
20
|
-
focus: () => void;
|
|
21
|
-
remeasureFonts: import("@vueuse/core").UseDebounceFnReturn<() => void | undefined>;
|
|
22
|
-
toggleSearchWidget: () => void;
|
|
23
|
-
triggerKeyboardCommand: (id: string) => void;
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=useMonacoEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMonacoEditor.d.ts","sourceRoot":"","sources":["../../../src/composables/useMonacoEditor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAUvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACzE,OAAO,KAAK,EAAsB,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAmD1E;;;;;EAKE;AACF,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EACpD,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,EAClC,OAAO,EAAE,sBAAsB;;;;;;;;0BAqBF,MAAM,KAAG,IAAI;4BAOX,OAAO,KAAG,IAAI;iBAG3B,IAAI;;8BAkBS,IAAI;iCAXC,MAAM,KAAG,IAAI;EAmIlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,eAAO,MAAM,sBAAsB,gEA0CjC,CAAA"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,+BAA+B,CAAA;AAExD,OAAO,EAAE,YAAY,EAAE,CAAA;AAEvB,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-editor-api.d.ts","sourceRoot":"","sources":["../../../../src/tests/mocks/monaco-editor-api.ts"],"names":[],"mappings":""}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { editor } from 'monaco-editor';
|
|
2
|
-
import type { Ref } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* Options for the Monaco editor composable
|
|
5
|
-
*/
|
|
6
|
-
export interface UseMonacoEditorOptions {
|
|
7
|
-
/**
|
|
8
|
-
* The initial content of the editor
|
|
9
|
-
*/
|
|
10
|
-
code: Ref<string>;
|
|
11
|
-
/**
|
|
12
|
-
* The programming language for syntax highlighting
|
|
13
|
-
*/
|
|
14
|
-
language: string;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the editor is read-only
|
|
17
|
-
*/
|
|
18
|
-
readOnly?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The theme of the editor
|
|
21
|
-
*/
|
|
22
|
-
theme?: EditorThemes;
|
|
23
|
-
/**
|
|
24
|
-
* Callback function triggered when the content changes
|
|
25
|
-
*/
|
|
26
|
-
onChanged?: (content: string) => void;
|
|
27
|
-
/**
|
|
28
|
-
* Callback function triggered when the editor is created
|
|
29
|
-
*/
|
|
30
|
-
onCreated?: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* Additional actions to be added to the editor
|
|
33
|
-
*/
|
|
34
|
-
actions?: any;
|
|
35
|
-
/**
|
|
36
|
-
* Additional Monaco editor settings
|
|
37
|
-
* @see https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IStandaloneEditorConstructionOptions.html
|
|
38
|
-
*/
|
|
39
|
-
monacoOptions?: Partial<editor.IStandaloneEditorConstructionOptions>;
|
|
40
|
-
}
|
|
41
|
-
/** The themes available for the Monaco editor */
|
|
42
|
-
export type EditorThemes = 'light' | 'dark';
|
|
43
|
-
/** The status of the Monaco editor */
|
|
44
|
-
export type EditorStatus = 'loading' | 'ready';
|
|
45
|
-
export interface MonacoEditorStates {
|
|
46
|
-
/**
|
|
47
|
-
* The current status of the editor instance.
|
|
48
|
-
* @type {'loading' | 'ready'}
|
|
49
|
-
* @default 'loading'
|
|
50
|
-
*/
|
|
51
|
-
editorStatus: EditorStatus;
|
|
52
|
-
/**
|
|
53
|
-
* Indicates whether the search box is currently visible.
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
searchBoxIsRevealed: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Whether the editor currently contains any content.
|
|
59
|
-
* @default false
|
|
60
|
-
*/
|
|
61
|
-
hasContent: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* The current theme of the editor.
|
|
64
|
-
* @type {'light' | 'dark'}
|
|
65
|
-
* @default 'light'
|
|
66
|
-
*/
|
|
67
|
-
theme: EditorThemes;
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;MAEE;IACF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAA;IACb;;;MAGE;IACF,aAAa,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAA;CACrE;AAED,iDAAiD;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,CAAA;AAE3C,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAG9C,MAAM,WAAW,kBAAkB;IACjC;;;;QAII;IACJ,YAAY,EAAE,YAAY,CAAA;IAE1B;;;QAGI;IACJ,mBAAmB,EAAE,OAAO,CAAA;IAE5B;;;QAGI;IACJ,UAAU,EAAE,OAAO,CAAA;IAEnB;;;;QAII;IACJ,KAAK,EAAE,YAAY,CAAA;CACpB"}
|