@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.
Files changed (112) hide show
  1. package/package.json +1 -1
  2. package/dist/abap-CrvW7_qN.js +0 -1398
  3. package/dist/apex-BAOI8p1v.js +0 -327
  4. package/dist/assets/css.worker-Cb0JI69t.js +0 -93
  5. package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
  6. package/dist/assets/html.worker-BNFZMwEc.js +0 -470
  7. package/dist/assets/json.worker-BCybXpia.js +0 -58
  8. package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
  9. package/dist/azcli-BlCk_UqW.js +0 -68
  10. package/dist/bat-DPoEelVx.js +0 -100
  11. package/dist/bicep-Cp1F394l.js +0 -102
  12. package/dist/cameligo-CWqtSlQs.js +0 -174
  13. package/dist/clojure-CKBp32Gf.js +0 -761
  14. package/dist/coffee-CDo6vc-J.js +0 -232
  15. package/dist/cpp-DokufPgf.js +0 -389
  16. package/dist/csharp-BQi3szM0.js +0 -326
  17. package/dist/csp-BSGtCCZ-.js +0 -53
  18. package/dist/css-DEPFDJfb.js +0 -187
  19. package/dist/cssMode-BoaW_8EY.js +0 -141
  20. package/dist/cypher-DAb1vOxS.js +0 -263
  21. package/dist/dart-C8p4jewR.js +0 -281
  22. package/dist/dockerfile-DP0iLFPN.js +0 -130
  23. package/dist/ecl-BDQHA6fi.js +0 -456
  24. package/dist/elixir-D4II6kDM.js +0 -569
  25. package/dist/flow9-StcnL-VB.js +0 -142
  26. package/dist/freemarker2-DLxAEbra.js +0 -982
  27. package/dist/fsharp-DdUVp3EN.js +0 -217
  28. package/dist/go-D1-I258M.js +0 -218
  29. package/dist/graphql-DWkL3f8U.js +0 -151
  30. package/dist/handlebars-H1fAc7pY.js +0 -412
  31. package/dist/hcl-D_0MNifv.js +0 -183
  32. package/dist/html-Bjh5RSoV.js +0 -301
  33. package/dist/htmlMode-XE4-FvOp.js +0 -152
  34. package/dist/index-BtAApC8Z.js +0 -129109
  35. package/dist/ini-C4I2-MT7.js +0 -71
  36. package/dist/java-OBvaP_SS.js +0 -232
  37. package/dist/javascript-BL-y8a3N.js +0 -70
  38. package/dist/jsonMode-BO164Oml.js +0 -569
  39. package/dist/julia-BmDH8Kkf.js +0 -511
  40. package/dist/kotlin-Dhu5AGOD.js +0 -252
  41. package/dist/less-CzmjXREq.js +0 -162
  42. package/dist/lexon-CV2c4pN9.js +0 -157
  43. package/dist/liquid-B4OW2xCW.js +0 -233
  44. package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
  45. package/dist/lua-CFY5U8qF.js +0 -162
  46. package/dist/m3-BL_AnZVh.js +0 -210
  47. package/dist/markdown-CWKQPXCv.js +0 -229
  48. package/dist/mdx-BscoYQtT.js +0 -158
  49. package/dist/mips-ButYmJ5E.js +0 -198
  50. package/dist/monaco-editor.es.js +0 -5
  51. package/dist/monaco-editor.umd.js +0 -1234
  52. package/dist/msdax-C3cnXqDh.js +0 -375
  53. package/dist/mysql-YlSHaf6G.js +0 -878
  54. package/dist/objective-c-Dwnlproe.js +0 -183
  55. package/dist/pascal-UzGbSWEN.js +0 -251
  56. package/dist/pascaligo-CslTgu68.js +0 -164
  57. package/dist/perl-oj6r_mgw.js +0 -626
  58. package/dist/pgsql-DSBO0Mev.js +0 -851
  59. package/dist/php-YzCD--7j.js +0 -500
  60. package/dist/pla-CmylB8vQ.js +0 -137
  61. package/dist/postiats-CLFW5gNY.js +0 -907
  62. package/dist/powerquery-CmOWUvlh.js +0 -890
  63. package/dist/powershell-fHQcmBLK.js +0 -239
  64. package/dist/protobuf-p5BArb-9.js +0 -420
  65. package/dist/pug-gVdUDvqf.js +0 -402
  66. package/dist/python-CdwN88xa.js +0 -294
  67. package/dist/qsharp-DnrWSUlt.js +0 -301
  68. package/dist/r-Cv309K2z.js +0 -243
  69. package/dist/razor-BzIEQn-i.js +0 -543
  70. package/dist/redis-DTcS4wMj.js +0 -302
  71. package/dist/redshift-hLxZVESM.js +0 -809
  72. package/dist/restructuredtext-C898lK4f.js +0 -174
  73. package/dist/ruby-CgKtnJIQ.js +0 -511
  74. package/dist/rust-bj8oxVnh.js +0 -343
  75. package/dist/sb-DWynz26l.js +0 -115
  76. package/dist/scala-BL5z1UEd.js +0 -370
  77. package/dist/scheme-DUJsH6VU.js +0 -108
  78. package/dist/scss-CxjmhvaL.js +0 -262
  79. package/dist/shell-D14Zs1dF.js +0 -221
  80. package/dist/solidity-WyRm-BGK.js +0 -1367
  81. package/dist/sophia-CKk-_Oa5.js +0 -199
  82. package/dist/sparql-DHtmINMZ.js +0 -201
  83. package/dist/sql-Dqaj5JHC.js +0 -853
  84. package/dist/st-Bj2IIaop.js +0 -416
  85. package/dist/style.css +0 -1
  86. package/dist/swift-DwxP72iM.js +0 -312
  87. package/dist/systemverilog-D7wJfuql.js +0 -576
  88. package/dist/tcl-0ApMt-eC.js +0 -232
  89. package/dist/tsMode-Bm7Ao8a0.js +0 -946
  90. package/dist/twig-DxwbdmvQ.js +0 -392
  91. package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
  92. package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
  93. package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
  94. package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
  95. package/dist/types/composables/useI18n.d.ts +0 -9
  96. package/dist/types/composables/useI18n.d.ts.map +0 -1
  97. package/dist/types/composables/useMonacoEditor.d.ts +0 -25
  98. package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
  99. package/dist/types/constants/index.d.ts +0 -3
  100. package/dist/types/constants/index.d.ts.map +0 -1
  101. package/dist/types/index.d.ts +0 -5
  102. package/dist/types/index.d.ts.map +0 -1
  103. package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
  104. package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
  105. package/dist/types/types/index.d.ts +0 -69
  106. package/dist/types/types/index.d.ts.map +0 -1
  107. package/dist/typescript-xVL7xVgf.js +0 -336
  108. package/dist/typespec-Fd-JwSuS.js +0 -117
  109. package/dist/vb-CxuyYE1I.js +0 -372
  110. package/dist/wgsl-DoEGc31J.js +0 -439
  111. package/dist/xml-5AZvXygb.js +0 -88
  112. package/dist/yaml-BpKYQQZ4.js +0 -199
@@ -1,336 +0,0 @@
1
- import { l as e } from "./index-BtAApC8Z.js";
2
- const n = {
3
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
4
- comments: {
5
- lineComment: "//",
6
- blockComment: ["/*", "*/"]
7
- },
8
- brackets: [
9
- ["{", "}"],
10
- ["[", "]"],
11
- ["(", ")"]
12
- ],
13
- onEnterRules: [
14
- {
15
- // e.g. /** | */
16
- beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
17
- afterText: /^\s*\*\/$/,
18
- action: {
19
- indentAction: e.IndentAction.IndentOutdent,
20
- appendText: " * "
21
- }
22
- },
23
- {
24
- // e.g. /** ...|
25
- beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
26
- action: {
27
- indentAction: e.IndentAction.None,
28
- appendText: " * "
29
- }
30
- },
31
- {
32
- // e.g. * ...|
33
- beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
34
- action: {
35
- indentAction: e.IndentAction.None,
36
- appendText: "* "
37
- }
38
- },
39
- {
40
- // e.g. */|
41
- beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
42
- action: {
43
- indentAction: e.IndentAction.None,
44
- removeText: 1
45
- }
46
- }
47
- ],
48
- autoClosingPairs: [
49
- { open: "{", close: "}" },
50
- { open: "[", close: "]" },
51
- { open: "(", close: ")" },
52
- { open: '"', close: '"', notIn: ["string"] },
53
- { open: "'", close: "'", notIn: ["string", "comment"] },
54
- { open: "`", close: "`", notIn: ["string", "comment"] },
55
- { open: "/**", close: " */", notIn: ["string"] }
56
- ],
57
- folding: {
58
- markers: {
59
- start: new RegExp("^\\s*//\\s*#?region\\b"),
60
- end: new RegExp("^\\s*//\\s*#?endregion\\b")
61
- }
62
- }
63
- }, o = {
64
- // Set defaultToken to invalid to see what you do not tokenize yet
65
- defaultToken: "invalid",
66
- tokenPostfix: ".ts",
67
- keywords: [
68
- // Should match the keys of textToKeywordObj in
69
- // https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts
70
- "abstract",
71
- "any",
72
- "as",
73
- "asserts",
74
- "bigint",
75
- "boolean",
76
- "break",
77
- "case",
78
- "catch",
79
- "class",
80
- "continue",
81
- "const",
82
- "constructor",
83
- "debugger",
84
- "declare",
85
- "default",
86
- "delete",
87
- "do",
88
- "else",
89
- "enum",
90
- "export",
91
- "extends",
92
- "false",
93
- "finally",
94
- "for",
95
- "from",
96
- "function",
97
- "get",
98
- "if",
99
- "implements",
100
- "import",
101
- "in",
102
- "infer",
103
- "instanceof",
104
- "interface",
105
- "is",
106
- "keyof",
107
- "let",
108
- "module",
109
- "namespace",
110
- "never",
111
- "new",
112
- "null",
113
- "number",
114
- "object",
115
- "out",
116
- "package",
117
- "private",
118
- "protected",
119
- "public",
120
- "override",
121
- "readonly",
122
- "require",
123
- "global",
124
- "return",
125
- "satisfies",
126
- "set",
127
- "static",
128
- "string",
129
- "super",
130
- "switch",
131
- "symbol",
132
- "this",
133
- "throw",
134
- "true",
135
- "try",
136
- "type",
137
- "typeof",
138
- "undefined",
139
- "unique",
140
- "unknown",
141
- "var",
142
- "void",
143
- "while",
144
- "with",
145
- "yield",
146
- "async",
147
- "await",
148
- "of"
149
- ],
150
- operators: [
151
- "<=",
152
- ">=",
153
- "==",
154
- "!=",
155
- "===",
156
- "!==",
157
- "=>",
158
- "+",
159
- "-",
160
- "**",
161
- "*",
162
- "/",
163
- "%",
164
- "++",
165
- "--",
166
- "<<",
167
- "</",
168
- ">>",
169
- ">>>",
170
- "&",
171
- "|",
172
- "^",
173
- "!",
174
- "~",
175
- "&&",
176
- "||",
177
- "??",
178
- "?",
179
- ":",
180
- "=",
181
- "+=",
182
- "-=",
183
- "*=",
184
- "**=",
185
- "/=",
186
- "%=",
187
- "<<=",
188
- ">>=",
189
- ">>>=",
190
- "&=",
191
- "|=",
192
- "^=",
193
- "@"
194
- ],
195
- // we include these common regular expressions
196
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
197
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
198
- digits: /\d+(_+\d+)*/,
199
- octaldigits: /[0-7]+(_+[0-7]+)*/,
200
- binarydigits: /[0-1]+(_+[0-1]+)*/,
201
- hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
202
- regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
203
- regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
204
- // The main tokenizer for our languages
205
- tokenizer: {
206
- root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
207
- common: [
208
- // identifiers and keywords
209
- [
210
- /#?[a-z_$][\w$]*/,
211
- {
212
- cases: {
213
- "@keywords": "keyword",
214
- "@default": "identifier"
215
- }
216
- }
217
- ],
218
- [/[A-Z][\w\$]*/, "type.identifier"],
219
- // to show class names nicely
220
- // [/[A-Z][\w\$]*/, 'identifier'],
221
- // whitespace
222
- { include: "@whitespace" },
223
- // regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
224
- [
225
- /\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
226
- { token: "regexp", bracket: "@open", next: "@regexp" }
227
- ],
228
- // delimiters and operators
229
- [/[()\[\]]/, "@brackets"],
230
- [/[<>](?!@symbols)/, "@brackets"],
231
- [/!(?=([^=]|$))/, "delimiter"],
232
- [
233
- /@symbols/,
234
- {
235
- cases: {
236
- "@operators": "delimiter",
237
- "@default": ""
238
- }
239
- }
240
- ],
241
- // numbers
242
- [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
243
- [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
244
- [/0[xX](@hexdigits)n?/, "number.hex"],
245
- [/0[oO]?(@octaldigits)n?/, "number.octal"],
246
- [/0[bB](@binarydigits)n?/, "number.binary"],
247
- [/(@digits)n?/, "number"],
248
- // delimiter: after number because of .\d floats
249
- [/[;,.]/, "delimiter"],
250
- // strings
251
- [/"([^"\\]|\\.)*$/, "string.invalid"],
252
- // non-teminated string
253
- [/'([^'\\]|\\.)*$/, "string.invalid"],
254
- // non-teminated string
255
- [/"/, "string", "@string_double"],
256
- [/'/, "string", "@string_single"],
257
- [/`/, "string", "@string_backtick"]
258
- ],
259
- whitespace: [
260
- [/[ \t\r\n]+/, ""],
261
- [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
262
- [/\/\*/, "comment", "@comment"],
263
- [/\/\/.*$/, "comment"]
264
- ],
265
- comment: [
266
- [/[^\/*]+/, "comment"],
267
- [/\*\//, "comment", "@pop"],
268
- [/[\/*]/, "comment"]
269
- ],
270
- jsdoc: [
271
- [/[^\/*]+/, "comment.doc"],
272
- [/\*\//, "comment.doc", "@pop"],
273
- [/[\/*]/, "comment.doc"]
274
- ],
275
- // We match regular expression quite precisely
276
- regexp: [
277
- [
278
- /(\{)(\d+(?:,\d*)?)(\})/,
279
- ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
280
- ],
281
- [
282
- /(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
283
- ["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
284
- ],
285
- [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
286
- [/[()]/, "regexp.escape.control"],
287
- [/@regexpctl/, "regexp.escape.control"],
288
- [/[^\\\/]/, "regexp"],
289
- [/@regexpesc/, "regexp.escape"],
290
- [/\\\./, "regexp.invalid"],
291
- [/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
292
- ],
293
- regexrange: [
294
- [/-/, "regexp.escape.control"],
295
- [/\^/, "regexp.invalid"],
296
- [/@regexpesc/, "regexp.escape"],
297
- [/[^\]]/, "regexp"],
298
- [
299
- /\]/,
300
- {
301
- token: "regexp.escape.control",
302
- next: "@pop",
303
- bracket: "@close"
304
- }
305
- ]
306
- ],
307
- string_double: [
308
- [/[^\\"]+/, "string"],
309
- [/@escapes/, "string.escape"],
310
- [/\\./, "string.escape.invalid"],
311
- [/"/, "string", "@pop"]
312
- ],
313
- string_single: [
314
- [/[^\\']+/, "string"],
315
- [/@escapes/, "string.escape"],
316
- [/\\./, "string.escape.invalid"],
317
- [/'/, "string", "@pop"]
318
- ],
319
- string_backtick: [
320
- [/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
321
- [/[^\\`$]+/, "string"],
322
- [/@escapes/, "string.escape"],
323
- [/\\./, "string.escape.invalid"],
324
- [/`/, "string", "@pop"]
325
- ],
326
- bracketCounting: [
327
- [/\{/, "delimiter.bracket", "@bracketCounting"],
328
- [/\}/, "delimiter.bracket", "@pop"],
329
- { include: "common" }
330
- ]
331
- }
332
- };
333
- export {
334
- n as conf,
335
- o as language
336
- };
@@ -1,117 +0,0 @@
1
- const o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, i = "[_a-zA-Z]", r = "[_a-zA-Z0-9]", t = o(`${i}${r}*`), s = o("[_a-zA-Z-0-9]+"), c = [
2
- "import",
3
- "model",
4
- "scalar",
5
- "namespace",
6
- "op",
7
- "interface",
8
- "union",
9
- "using",
10
- "is",
11
- "extends",
12
- "enum",
13
- "alias",
14
- "return",
15
- "void",
16
- "if",
17
- "else",
18
- "projection",
19
- "dec",
20
- "extern",
21
- "fn"
22
- ], a = ["true", "false", "null", "unknown", "never"], g = "[ \\t\\r\\n]", l = "[0-9]+", k = {
23
- comments: {
24
- lineComment: "//",
25
- blockComment: ["/*", "*/"]
26
- },
27
- brackets: [
28
- ["{", "}"],
29
- ["[", "]"],
30
- ["(", ")"]
31
- ],
32
- autoClosingPairs: [
33
- { open: "{", close: "}" },
34
- { open: "[", close: "]" },
35
- { open: "(", close: ")" },
36
- { open: '"', close: '"' },
37
- { open: "/**", close: " */", notIn: ["string"] }
38
- ],
39
- surroundingPairs: [
40
- { open: "{", close: "}" },
41
- { open: "[", close: "]" },
42
- { open: "(", close: ")" },
43
- { open: '"', close: '"' }
44
- ],
45
- indentationRules: {
46
- decreaseIndentPattern: new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),
47
- increaseIndentPattern: new RegExp(
48
- "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
49
- ),
50
- // e.g. * ...| or */| or *-----*/|
51
- unIndentedLinePattern: new RegExp(
52
- "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
53
- )
54
- }
55
- }, x = {
56
- defaultToken: "",
57
- tokenPostfix: ".tsp",
58
- brackets: [
59
- { open: "{", close: "}", token: "delimiter.curly" },
60
- { open: "[", close: "]", token: "delimiter.square" },
61
- { open: "(", close: ")", token: "delimiter.parenthesis" }
62
- ],
63
- symbols: /[=:;<>]+/,
64
- keywords: c,
65
- namedLiterals: a,
66
- escapes: '\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',
67
- tokenizer: {
68
- root: [{ include: "@expression" }, { include: "@whitespace" }],
69
- stringVerbatim: [
70
- { regex: '(|"|"")[^"]', action: { token: "string" } },
71
- { regex: `"""${n('"')}`, action: { token: "string", next: "@pop" } }
72
- ],
73
- stringLiteral: [
74
- { regex: "\\${", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
75
- { regex: '[^\\\\"$]+', action: { token: "string" } },
76
- { regex: "@escapes", action: { token: "string.escape" } },
77
- { regex: "\\\\.", action: { token: "string.escape.invalid" } },
78
- { regex: '"', action: { token: "string", next: "@pop" } }
79
- ],
80
- bracketCounting: [
81
- { regex: "{", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
82
- { regex: "}", action: { token: "delimiter.bracket", next: "@pop" } },
83
- { include: "@expression" }
84
- ],
85
- comment: [
86
- { regex: "[^\\*]+", action: { token: "comment" } },
87
- { regex: "\\*\\/", action: { token: "comment", next: "@pop" } },
88
- { regex: "[\\/*]", action: { token: "comment" } }
89
- ],
90
- whitespace: [
91
- { regex: g },
92
- { regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
93
- { regex: "\\/\\/.*$", action: { token: "comment" } }
94
- ],
95
- expression: [
96
- { regex: '"""', action: { token: "string", next: "@stringVerbatim" } },
97
- { regex: `"${n('""')}`, action: { token: "string", next: "@stringLiteral" } },
98
- { regex: l, action: { token: "number" } },
99
- {
100
- regex: t,
101
- action: {
102
- cases: {
103
- "@keywords": { token: "keyword" },
104
- "@namedLiterals": { token: "keyword" },
105
- "@default": { token: "identifier" }
106
- }
107
- }
108
- },
109
- { regex: `@${t}`, action: { token: "tag" } },
110
- { regex: `#${s}`, action: { token: "directive" } }
111
- ]
112
- }
113
- };
114
- export {
115
- k as conf,
116
- x as language
117
- };