@kong-ui-public/monaco-editor 0.1.1 → 0.1.2-pr.2609.2ce4f4787.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/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-BRHW0OjB.js +1577 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/editor.main-BVWEsGeM.js +112170 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/freemarker2-DrnILGvf.js +995 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/handlebars-D2vGkdp7.js +425 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-D3HI-WFO.js +314 -0
- package/dist/htmlMode-CNpiDTvN.js +1587 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/javascript-DLZMP-Wa.js +76 -0
- package/dist/jsonMode-CEQtUpLb.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-CnqLoV0A.js +246 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/mdx-C6hXTTY6.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/monaco-editor.es.js +224 -14
- package/dist/monaco-editor.umd.js +1913 -1
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/python-CGI_fE8F.js +307 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-DNVpjohl.js +556 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/style.css +1 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-CRUDJ1Gx.js +895 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/types/composables/useMonacoEditor.d.ts +25 -0
- package/dist/types/composables/useMonacoEditor.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts +3 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +78 -0
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +68 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/typescript-C2FvJtQm.js +349 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/xml-e_XsfZP6.js +101 -0
- package/dist/yaml-DOzdDlyx.js +212 -0
- package/package.json +14 -8
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { m as s } from "./editor.main-BVWEsGeM.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
+
*-----------------------------------------------------------------------------*/
|
|
8
|
+
var d = Object.defineProperty, p = Object.getOwnPropertyDescriptor, m = Object.getOwnPropertyNames, l = Object.prototype.hasOwnProperty, c = (t, e, n, o) => {
|
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
+
for (let r of m(e))
|
|
11
|
+
!l.call(t, r) && r !== n && d(t, r, { get: () => e[r], enumerable: !(o = p(e, r)) || o.enumerable });
|
|
12
|
+
return t;
|
|
13
|
+
}, u = (t, e, n) => (c(t, e, "default"), n), i = {};
|
|
14
|
+
u(i, s);
|
|
15
|
+
var a = [
|
|
16
|
+
"area",
|
|
17
|
+
"base",
|
|
18
|
+
"br",
|
|
19
|
+
"col",
|
|
20
|
+
"embed",
|
|
21
|
+
"hr",
|
|
22
|
+
"img",
|
|
23
|
+
"input",
|
|
24
|
+
"keygen",
|
|
25
|
+
"link",
|
|
26
|
+
"menuitem",
|
|
27
|
+
"meta",
|
|
28
|
+
"param",
|
|
29
|
+
"source",
|
|
30
|
+
"track",
|
|
31
|
+
"wbr"
|
|
32
|
+
], x = {
|
|
33
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
34
|
+
comments: {
|
|
35
|
+
blockComment: ["<!--", "-->"]
|
|
36
|
+
},
|
|
37
|
+
brackets: [
|
|
38
|
+
["<!--", "-->"],
|
|
39
|
+
["<", ">"],
|
|
40
|
+
["{", "}"],
|
|
41
|
+
["(", ")"]
|
|
42
|
+
],
|
|
43
|
+
autoClosingPairs: [
|
|
44
|
+
{ open: "{", close: "}" },
|
|
45
|
+
{ open: "[", close: "]" },
|
|
46
|
+
{ open: "(", close: ")" },
|
|
47
|
+
{ open: '"', close: '"' },
|
|
48
|
+
{ open: "'", close: "'" }
|
|
49
|
+
],
|
|
50
|
+
surroundingPairs: [
|
|
51
|
+
{ open: '"', close: '"' },
|
|
52
|
+
{ open: "'", close: "'" },
|
|
53
|
+
{ open: "{", close: "}" },
|
|
54
|
+
{ open: "[", close: "]" },
|
|
55
|
+
{ open: "(", close: ")" },
|
|
56
|
+
{ open: "<", close: ">" }
|
|
57
|
+
],
|
|
58
|
+
onEnterRules: [
|
|
59
|
+
{
|
|
60
|
+
beforeText: new RegExp(
|
|
61
|
+
`<(?!(?:${a.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
62
|
+
"i"
|
|
63
|
+
),
|
|
64
|
+
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
|
65
|
+
action: {
|
|
66
|
+
indentAction: i.languages.IndentAction.IndentOutdent
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
beforeText: new RegExp(
|
|
71
|
+
`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
72
|
+
"i"
|
|
73
|
+
),
|
|
74
|
+
action: { indentAction: i.languages.IndentAction.Indent }
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
folding: {
|
|
78
|
+
markers: {
|
|
79
|
+
start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
|
|
80
|
+
end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, y = {
|
|
84
|
+
defaultToken: "",
|
|
85
|
+
tokenPostfix: ".html",
|
|
86
|
+
ignoreCase: !0,
|
|
87
|
+
// The main tokenizer for our languages
|
|
88
|
+
tokenizer: {
|
|
89
|
+
root: [
|
|
90
|
+
[/<!DOCTYPE/, "metatag", "@doctype"],
|
|
91
|
+
[/<!--/, "comment", "@comment"],
|
|
92
|
+
[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
|
|
93
|
+
[/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
|
|
94
|
+
[/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
|
|
95
|
+
[/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
|
|
96
|
+
[/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
|
|
97
|
+
[/</, "delimiter"],
|
|
98
|
+
[/[^<]+/]
|
|
99
|
+
// text
|
|
100
|
+
],
|
|
101
|
+
doctype: [
|
|
102
|
+
[/[^>]+/, "metatag.content"],
|
|
103
|
+
[/>/, "metatag", "@pop"]
|
|
104
|
+
],
|
|
105
|
+
comment: [
|
|
106
|
+
[/-->/, "comment", "@pop"],
|
|
107
|
+
[/[^-]+/, "comment.content"],
|
|
108
|
+
[/./, "comment.content"]
|
|
109
|
+
],
|
|
110
|
+
otherTag: [
|
|
111
|
+
[/\/?>/, "delimiter", "@pop"],
|
|
112
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
113
|
+
[/'([^']*)'/, "attribute.value"],
|
|
114
|
+
[/[\w\-]+/, "attribute.name"],
|
|
115
|
+
[/=/, "delimiter"],
|
|
116
|
+
[/[ \t\r\n]+/]
|
|
117
|
+
// whitespace
|
|
118
|
+
],
|
|
119
|
+
// -- BEGIN <script> tags handling
|
|
120
|
+
// After <script
|
|
121
|
+
script: [
|
|
122
|
+
[/type/, "attribute.name", "@scriptAfterType"],
|
|
123
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
124
|
+
[/'([^']*)'/, "attribute.value"],
|
|
125
|
+
[/[\w\-]+/, "attribute.name"],
|
|
126
|
+
[/=/, "delimiter"],
|
|
127
|
+
[
|
|
128
|
+
/>/,
|
|
129
|
+
{
|
|
130
|
+
token: "delimiter",
|
|
131
|
+
next: "@scriptEmbedded",
|
|
132
|
+
nextEmbedded: "text/javascript"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
[/[ \t\r\n]+/],
|
|
136
|
+
// whitespace
|
|
137
|
+
[/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
|
|
138
|
+
],
|
|
139
|
+
// After <script ... type
|
|
140
|
+
scriptAfterType: [
|
|
141
|
+
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
142
|
+
[
|
|
143
|
+
/>/,
|
|
144
|
+
{
|
|
145
|
+
token: "delimiter",
|
|
146
|
+
next: "@scriptEmbedded",
|
|
147
|
+
nextEmbedded: "text/javascript"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
// cover invalid e.g. <script type>
|
|
151
|
+
[/[ \t\r\n]+/],
|
|
152
|
+
// whitespace
|
|
153
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
154
|
+
],
|
|
155
|
+
// After <script ... type =
|
|
156
|
+
scriptAfterTypeEquals: [
|
|
157
|
+
[
|
|
158
|
+
/"module"/,
|
|
159
|
+
{
|
|
160
|
+
token: "attribute.value",
|
|
161
|
+
switchTo: "@scriptWithCustomType.text/javascript"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
/'module'/,
|
|
166
|
+
{
|
|
167
|
+
token: "attribute.value",
|
|
168
|
+
switchTo: "@scriptWithCustomType.text/javascript"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
[
|
|
172
|
+
/"([^"]*)"/,
|
|
173
|
+
{
|
|
174
|
+
token: "attribute.value",
|
|
175
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
[
|
|
179
|
+
/'([^']*)'/,
|
|
180
|
+
{
|
|
181
|
+
token: "attribute.value",
|
|
182
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
/>/,
|
|
187
|
+
{
|
|
188
|
+
token: "delimiter",
|
|
189
|
+
next: "@scriptEmbedded",
|
|
190
|
+
nextEmbedded: "text/javascript"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
// cover invalid e.g. <script type=>
|
|
194
|
+
[/[ \t\r\n]+/],
|
|
195
|
+
// whitespace
|
|
196
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
197
|
+
],
|
|
198
|
+
// After <script ... type = $S2
|
|
199
|
+
scriptWithCustomType: [
|
|
200
|
+
[
|
|
201
|
+
/>/,
|
|
202
|
+
{
|
|
203
|
+
token: "delimiter",
|
|
204
|
+
next: "@scriptEmbedded.$S2",
|
|
205
|
+
nextEmbedded: "$S2"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
209
|
+
[/'([^']*)'/, "attribute.value"],
|
|
210
|
+
[/[\w\-]+/, "attribute.name"],
|
|
211
|
+
[/=/, "delimiter"],
|
|
212
|
+
[/[ \t\r\n]+/],
|
|
213
|
+
// whitespace
|
|
214
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
215
|
+
],
|
|
216
|
+
scriptEmbedded: [
|
|
217
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
218
|
+
[/[^<]+/, ""]
|
|
219
|
+
],
|
|
220
|
+
// -- END <script> tags handling
|
|
221
|
+
// -- BEGIN <style> tags handling
|
|
222
|
+
// After <style
|
|
223
|
+
style: [
|
|
224
|
+
[/type/, "attribute.name", "@styleAfterType"],
|
|
225
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
226
|
+
[/'([^']*)'/, "attribute.value"],
|
|
227
|
+
[/[\w\-]+/, "attribute.name"],
|
|
228
|
+
[/=/, "delimiter"],
|
|
229
|
+
[
|
|
230
|
+
/>/,
|
|
231
|
+
{
|
|
232
|
+
token: "delimiter",
|
|
233
|
+
next: "@styleEmbedded",
|
|
234
|
+
nextEmbedded: "text/css"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
[/[ \t\r\n]+/],
|
|
238
|
+
// whitespace
|
|
239
|
+
[/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
|
|
240
|
+
],
|
|
241
|
+
// After <style ... type
|
|
242
|
+
styleAfterType: [
|
|
243
|
+
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
244
|
+
[
|
|
245
|
+
/>/,
|
|
246
|
+
{
|
|
247
|
+
token: "delimiter",
|
|
248
|
+
next: "@styleEmbedded",
|
|
249
|
+
nextEmbedded: "text/css"
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
// cover invalid e.g. <style type>
|
|
253
|
+
[/[ \t\r\n]+/],
|
|
254
|
+
// whitespace
|
|
255
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
256
|
+
],
|
|
257
|
+
// After <style ... type =
|
|
258
|
+
styleAfterTypeEquals: [
|
|
259
|
+
[
|
|
260
|
+
/"([^"]*)"/,
|
|
261
|
+
{
|
|
262
|
+
token: "attribute.value",
|
|
263
|
+
switchTo: "@styleWithCustomType.$1"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
/'([^']*)'/,
|
|
268
|
+
{
|
|
269
|
+
token: "attribute.value",
|
|
270
|
+
switchTo: "@styleWithCustomType.$1"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
[
|
|
274
|
+
/>/,
|
|
275
|
+
{
|
|
276
|
+
token: "delimiter",
|
|
277
|
+
next: "@styleEmbedded",
|
|
278
|
+
nextEmbedded: "text/css"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
// cover invalid e.g. <style type=>
|
|
282
|
+
[/[ \t\r\n]+/],
|
|
283
|
+
// whitespace
|
|
284
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
285
|
+
],
|
|
286
|
+
// After <style ... type = $S2
|
|
287
|
+
styleWithCustomType: [
|
|
288
|
+
[
|
|
289
|
+
/>/,
|
|
290
|
+
{
|
|
291
|
+
token: "delimiter",
|
|
292
|
+
next: "@styleEmbedded.$S2",
|
|
293
|
+
nextEmbedded: "$S2"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
297
|
+
[/'([^']*)'/, "attribute.value"],
|
|
298
|
+
[/[\w\-]+/, "attribute.name"],
|
|
299
|
+
[/=/, "delimiter"],
|
|
300
|
+
[/[ \t\r\n]+/],
|
|
301
|
+
// whitespace
|
|
302
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
303
|
+
],
|
|
304
|
+
styleEmbedded: [
|
|
305
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
306
|
+
[/[^<]+/, ""]
|
|
307
|
+
]
|
|
308
|
+
// -- END <style> tags handling
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
export {
|
|
312
|
+
x as conf,
|
|
313
|
+
y as language
|
|
314
|
+
};
|