@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,439 +0,0 @@
1
- const g = {
2
- comments: {
3
- lineComment: "//",
4
- blockComment: ["/*", "*/"]
5
- },
6
- brackets: [
7
- ["{", "}"],
8
- ["[", "]"],
9
- ["(", ")"]
10
- ],
11
- autoClosingPairs: [
12
- { open: "[", close: "]" },
13
- { open: "{", close: "}" },
14
- { open: "(", close: ")" }
15
- ],
16
- surroundingPairs: [
17
- { open: "{", close: "}" },
18
- { open: "[", close: "]" },
19
- { open: "(", close: ")" }
20
- ]
21
- };
22
- function e(i) {
23
- let o = [];
24
- const a = i.split(/\t+|\r+|\n+| +/);
25
- for (let r = 0; r < a.length; ++r)
26
- a[r].length > 0 && o.push(a[r]);
27
- return o;
28
- }
29
- const s = e("true false"), c = e(`
30
- alias
31
- break
32
- case
33
- const
34
- const_assert
35
- continue
36
- continuing
37
- default
38
- diagnostic
39
- discard
40
- else
41
- enable
42
- fn
43
- for
44
- if
45
- let
46
- loop
47
- override
48
- requires
49
- return
50
- struct
51
- switch
52
- var
53
- while
54
- `), m = e(`
55
- NULL
56
- Self
57
- abstract
58
- active
59
- alignas
60
- alignof
61
- as
62
- asm
63
- asm_fragment
64
- async
65
- attribute
66
- auto
67
- await
68
- become
69
- binding_array
70
- cast
71
- catch
72
- class
73
- co_await
74
- co_return
75
- co_yield
76
- coherent
77
- column_major
78
- common
79
- compile
80
- compile_fragment
81
- concept
82
- const_cast
83
- consteval
84
- constexpr
85
- constinit
86
- crate
87
- debugger
88
- decltype
89
- delete
90
- demote
91
- demote_to_helper
92
- do
93
- dynamic_cast
94
- enum
95
- explicit
96
- export
97
- extends
98
- extern
99
- external
100
- fallthrough
101
- filter
102
- final
103
- finally
104
- friend
105
- from
106
- fxgroup
107
- get
108
- goto
109
- groupshared
110
- highp
111
- impl
112
- implements
113
- import
114
- inline
115
- instanceof
116
- interface
117
- layout
118
- lowp
119
- macro
120
- macro_rules
121
- match
122
- mediump
123
- meta
124
- mod
125
- module
126
- move
127
- mut
128
- mutable
129
- namespace
130
- new
131
- nil
132
- noexcept
133
- noinline
134
- nointerpolation
135
- noperspective
136
- null
137
- nullptr
138
- of
139
- operator
140
- package
141
- packoffset
142
- partition
143
- pass
144
- patch
145
- pixelfragment
146
- precise
147
- precision
148
- premerge
149
- priv
150
- protected
151
- pub
152
- public
153
- readonly
154
- ref
155
- regardless
156
- register
157
- reinterpret_cast
158
- require
159
- resource
160
- restrict
161
- self
162
- set
163
- shared
164
- sizeof
165
- smooth
166
- snorm
167
- static
168
- static_assert
169
- static_cast
170
- std
171
- subroutine
172
- super
173
- target
174
- template
175
- this
176
- thread_local
177
- throw
178
- trait
179
- try
180
- type
181
- typedef
182
- typeid
183
- typename
184
- typeof
185
- union
186
- unless
187
- unorm
188
- unsafe
189
- unsized
190
- use
191
- using
192
- varying
193
- virtual
194
- volatile
195
- wgsl
196
- where
197
- with
198
- writeonly
199
- yield
200
- `), l = e(`
201
- read write read_write
202
- function private workgroup uniform storage
203
- perspective linear flat
204
- center centroid sample
205
- vertex_index instance_index position front_facing frag_depth
206
- local_invocation_id local_invocation_index
207
- global_invocation_id workgroup_id num_workgroups
208
- sample_index sample_mask
209
- rgba8unorm
210
- rgba8snorm
211
- rgba8uint
212
- rgba8sint
213
- rgba16uint
214
- rgba16sint
215
- rgba16float
216
- r32uint
217
- r32sint
218
- r32float
219
- rg32uint
220
- rg32sint
221
- rg32float
222
- rgba32uint
223
- rgba32sint
224
- rgba32float
225
- bgra8unorm
226
- `), u = e(`
227
- bool
228
- f16
229
- f32
230
- i32
231
- sampler sampler_comparison
232
- texture_depth_2d
233
- texture_depth_2d_array
234
- texture_depth_cube
235
- texture_depth_cube_array
236
- texture_depth_multisampled_2d
237
- texture_external
238
- texture_external
239
- u32
240
- `), p = e(`
241
- array
242
- atomic
243
- mat2x2
244
- mat2x3
245
- mat2x4
246
- mat3x2
247
- mat3x3
248
- mat3x4
249
- mat4x2
250
- mat4x3
251
- mat4x4
252
- ptr
253
- texture_1d
254
- texture_2d
255
- texture_2d_array
256
- texture_3d
257
- texture_cube
258
- texture_cube_array
259
- texture_multisampled_2d
260
- texture_storage_1d
261
- texture_storage_2d
262
- texture_storage_2d_array
263
- texture_storage_3d
264
- vec2
265
- vec3
266
- vec4
267
- `), d = e(`
268
- vec2i vec3i vec4i
269
- vec2u vec3u vec4u
270
- vec2f vec3f vec4f
271
- vec2h vec3h vec4h
272
- mat2x2f mat2x3f mat2x4f
273
- mat3x2f mat3x3f mat3x4f
274
- mat4x2f mat4x3f mat4x4f
275
- mat2x2h mat2x3h mat2x4h
276
- mat3x2h mat3x3h mat3x4h
277
- mat4x2h mat4x3h mat4x4h
278
- `), x = e(`
279
- bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2
280
- ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross
281
- degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit
282
- firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length
283
- log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract
284
- reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose
285
- trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine
286
- textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers
287
- textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare
288
- textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge
289
- textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin
290
- atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm
291
- pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm
292
- unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier
293
- workgroupUniformLoad
294
- `), f = e(`
295
- &
296
- &&
297
- ->
298
- /
299
- =
300
- ==
301
- !=
302
- >
303
- >=
304
- <
305
- <=
306
- %
307
- -
308
- --
309
- +
310
- ++
311
- |
312
- ||
313
- *
314
- <<
315
- >>
316
- +=
317
- -=
318
- *=
319
- /=
320
- %=
321
- &=
322
- |=
323
- ^=
324
- >>=
325
- <<=
326
- `), _ = /enable|requires|diagnostic/, n = new RegExp("[_\\p{XID_Start}]\\p{XID_Continue}*", "u"), t = "variable.predefined", h = {
327
- tokenPostfix: ".wgsl",
328
- defaultToken: "invalid",
329
- unicode: !0,
330
- atoms: s,
331
- keywords: c,
332
- reserved: m,
333
- predeclared_enums: l,
334
- predeclared_types: u,
335
- predeclared_type_generators: p,
336
- predeclared_type_aliases: d,
337
- predeclared_intrinsics: x,
338
- operators: f,
339
- symbols: /[!%&*+\-\.\/:;<=>^|_~,]+/,
340
- tokenizer: {
341
- root: [
342
- [_, "keyword", "@directive"],
343
- [
344
- // Identifier-like things, but also include '_'
345
- n,
346
- {
347
- cases: {
348
- "@atoms": t,
349
- "@keywords": "keyword",
350
- "@reserved": "invalid",
351
- "@predeclared_enums": t,
352
- "@predeclared_types": t,
353
- "@predeclared_type_generators": t,
354
- "@predeclared_type_aliases": t,
355
- "@predeclared_intrinsics": t,
356
- "@default": "identifier"
357
- }
358
- }
359
- ],
360
- { include: "@commentOrSpace" },
361
- { include: "@numbers" },
362
- [/[{}()\[\]]/, "@brackets"],
363
- ["@", "annotation", "@attribute"],
364
- [
365
- /@symbols/,
366
- {
367
- cases: {
368
- "@operators": "operator",
369
- "@default": "delimiter"
370
- }
371
- }
372
- ],
373
- [/./, "invalid"]
374
- ],
375
- commentOrSpace: [
376
- [/\s+/, "white"],
377
- [/\/\*/, "comment", "@blockComment"],
378
- [/\/\/.*$/, "comment"]
379
- ],
380
- blockComment: [
381
- // Soak up uninteresting text: anything except * or /
382
- [/[^\/*]+/, "comment"],
383
- // Recognize the start of a nested block comment.
384
- [/\/\*/, "comment", "@push"],
385
- // Recognize the end of a nested block comment.
386
- [/\*\//, "comment", "@pop"],
387
- // Recognize insignificant * and /
388
- [/[\/*]/, "comment"]
389
- ],
390
- attribute: [
391
- // For things like '@fragment' both '@' and 'fragment'
392
- // are marked as annotations. This should work even if
393
- // there are spaces or comments between the two tokens.
394
- { include: "@commentOrSpace" },
395
- [/\w+/, "annotation", "@pop"]
396
- ],
397
- directive: [
398
- // For things like 'enable f16;', 'enable' maps to 'meta'
399
- // and 'f16' maps to 'meta.tag'.
400
- { include: "@commentOrSpace" },
401
- [/[()]/, "@brackets"],
402
- [/,/, "delimiter"],
403
- [n, "meta.content"],
404
- [/;/, "delimiter", "@pop"]
405
- ],
406
- numbers: [
407
- // Decimal float literals
408
- // https://www.w3.org/TR/WGSL/#syntax-decimal_float_literal
409
- // 0, with type-specifying suffix.
410
- [/0[fh]/, "number.float"],
411
- // Other decimal integer, with type-specifying suffix.
412
- [/[1-9][0-9]*[fh]/, "number.float"],
413
- // Has decimal point, at least one digit after decimal.
414
- [/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
415
- // Has decimal point, at least one digit before decimal.
416
- [/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/, "number.float"],
417
- // Has at least one digit, and has an exponent.
418
- [/[0-9]+[eE][+-]?[0-9]+[fh]?/, "number.float"],
419
- // Hex float literals
420
- // https://www.w3.org/TR/WGSL/#syntax-hex_float_literal
421
- [/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
422
- [/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/, "number.hex"],
423
- [/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/, "number.hex"],
424
- // Hexadecimal integer literals
425
- // https://www.w3.org/TR/WGSL/#syntax-hex_int_literal
426
- [/0[xX][0-9a-fA-F]+[iu]?/, "number.hex"],
427
- // Decimal integer literals
428
- // https://www.w3.org/TR/WGSL/#syntax-decimal_int_literal
429
- // We need two rules here because 01 is not valid.
430
- [/[1-9][0-9]*[iu]?/, "number"],
431
- [/0[iu]?/, "number"]
432
- // Must match last
433
- ]
434
- }
435
- };
436
- export {
437
- g as conf,
438
- h as language
439
- };
@@ -1,88 +0,0 @@
1
- import { l as e } from "./index-BtAApC8Z.js";
2
- const n = {
3
- comments: {
4
- blockComment: ["<!--", "-->"]
5
- },
6
- brackets: [["<", ">"]],
7
- autoClosingPairs: [
8
- { open: "<", close: ">" },
9
- { open: "'", close: "'" },
10
- { open: '"', close: '"' }
11
- ],
12
- surroundingPairs: [
13
- { open: "<", close: ">" },
14
- { open: "'", close: "'" },
15
- { open: '"', close: '"' }
16
- ],
17
- onEnterRules: [
18
- {
19
- beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
20
- afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
21
- action: {
22
- indentAction: e.IndentAction.IndentOutdent
23
- }
24
- },
25
- {
26
- beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
27
- action: { indentAction: e.IndentAction.Indent }
28
- }
29
- ]
30
- }, o = {
31
- defaultToken: "",
32
- tokenPostfix: ".xml",
33
- ignoreCase: !0,
34
- // Useful regular expressions
35
- qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
36
- tokenizer: {
37
- root: [
38
- [/[^<&]+/, ""],
39
- { include: "@whitespace" },
40
- // Standard opening tag
41
- [/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]],
42
- // Standard closing tag
43
- [
44
- /(<\/)(@qualifiedName)(\s*)(>)/,
45
- [{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }]
46
- ],
47
- // Meta tags - instruction
48
- [/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
49
- // Meta tags - declaration
50
- [/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
51
- // CDATA
52
- [/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }],
53
- [/&\w+;/, "string.escape"]
54
- ],
55
- cdata: [
56
- [/[^\]]+/, ""],
57
- [/\]\]>/, { token: "delimiter.cdata", next: "@pop" }],
58
- [/\]/, ""]
59
- ],
60
- tag: [
61
- [/[ \t\r\n]+/, ""],
62
- [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]],
63
- [
64
- /(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
65
- ["attribute.name", "", "attribute.value"]
66
- ],
67
- [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]],
68
- [/@qualifiedName/, "attribute.name"],
69
- [/\?>/, { token: "delimiter", next: "@pop" }],
70
- [/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]],
71
- [/>/, { token: "delimiter", next: "@pop" }]
72
- ],
73
- whitespace: [
74
- [/[ \t\r\n]+/, ""],
75
- [/<!--/, { token: "comment", next: "@comment" }]
76
- ],
77
- comment: [
78
- [/[^<\-]+/, "comment.content"],
79
- [/-->/, { token: "comment", next: "@pop" }],
80
- [/<!--/, "comment.content.invalid"],
81
- [/[<\-]/, "comment.content"]
82
- ]
83
- }
84
- };
85
- export {
86
- n as conf,
87
- o as language
88
- };