@vrowzer/vite-plugin 0.0.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 (39) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +290 -0
  3. package/dist/ide/assets/css.worker-uWEFNxvl.js +89 -0
  4. package/dist/ide/assets/html.worker-1tLoAl5Z.js +502 -0
  5. package/dist/ide/assets/json.worker-CL3sVQd6.js +58 -0
  6. package/dist/ide/assets/ts.worker-BFpNHPy5.js +67719 -0
  7. package/dist/ide/css-CPSW8DVZ.js +286 -0
  8. package/dist/ide/cssMode-B5DtFEwy.js +65 -0
  9. package/dist/ide/graphql-BteLL2CG.js +176 -0
  10. package/dist/ide/handlebars-BcqMM6pa.js +412 -0
  11. package/dist/ide/html-CxO5OaJl.js +333 -0
  12. package/dist/ide/htmlMode-DxpUG2jm.js +74 -0
  13. package/dist/ide/ide.css +2 -0
  14. package/dist/ide/ide.js +5523 -0
  15. package/dist/ide/javascript-CvtLx4_Z.js +21 -0
  16. package/dist/ide/jsonMode-LVtiYWKr.js +449 -0
  17. package/dist/ide/less-BubkcFWW.js +244 -0
  18. package/dist/ide/lspLanguageFeatures-BDyekQt2.js +1455 -0
  19. package/dist/ide/markdown-DPB5N4OB.js +264 -0
  20. package/dist/ide/mdx-Sun87_nd.js +329 -0
  21. package/dist/ide/monaco.contribution-DVj8eGe_.js +116 -0
  22. package/dist/ide/pug-BONHZNEg.js +302 -0
  23. package/dist/ide/scss-0r6NeK1P.js +419 -0
  24. package/dist/ide/shell-Vh_eZpea.js +225 -0
  25. package/dist/ide/toggleHighContrast-DI4ZeqFk.js +113328 -0
  26. package/dist/ide/tsMode-BKTkt1bt.js +567 -0
  27. package/dist/ide/typescript-CHC4VYBW.js +257 -0
  28. package/dist/ide/workers-IG_hD8Jy.js +47 -0
  29. package/dist/ide/xml-C0QFzMaz.js +130 -0
  30. package/dist/ide/yaml-o-RP7lYY.js +223 -0
  31. package/dist/index.d.mts +138 -0
  32. package/dist/index.d.mts.map +1 -0
  33. package/dist/index.mjs +1335 -0
  34. package/dist/index.mjs.map +1 -0
  35. package/dist/manifest-generate.d.mts +89 -0
  36. package/dist/manifest-generate.d.mts.map +1 -0
  37. package/dist/manifest-generate.mjs +438 -0
  38. package/dist/manifest-generate.mjs.map +1 -0
  39. package/package.json +88 -0
@@ -0,0 +1,412 @@
1
+ import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js
3
+ var t = [
4
+ "area",
5
+ "base",
6
+ "br",
7
+ "col",
8
+ "embed",
9
+ "hr",
10
+ "img",
11
+ "input",
12
+ "keygen",
13
+ "link",
14
+ "menuitem",
15
+ "meta",
16
+ "param",
17
+ "source",
18
+ "track",
19
+ "wbr"
20
+ ], n = {
21
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
22
+ comments: { blockComment: ["{{!--", "--}}"] },
23
+ brackets: [
24
+ ["<!--", "-->"],
25
+ ["<", ">"],
26
+ ["{{", "}}"],
27
+ ["{", "}"],
28
+ ["(", ")"]
29
+ ],
30
+ autoClosingPairs: [
31
+ {
32
+ open: "{",
33
+ close: "}"
34
+ },
35
+ {
36
+ open: "[",
37
+ close: "]"
38
+ },
39
+ {
40
+ open: "(",
41
+ close: ")"
42
+ },
43
+ {
44
+ open: "\"",
45
+ close: "\""
46
+ },
47
+ {
48
+ open: "'",
49
+ close: "'"
50
+ }
51
+ ],
52
+ surroundingPairs: [
53
+ {
54
+ open: "<",
55
+ close: ">"
56
+ },
57
+ {
58
+ open: "\"",
59
+ close: "\""
60
+ },
61
+ {
62
+ open: "'",
63
+ close: "'"
64
+ }
65
+ ],
66
+ onEnterRules: [{
67
+ beforeText: RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
68
+ afterText: /^<\/(\w[\w\d]*)\s*>$/i,
69
+ action: { indentAction: e.IndentAction.IndentOutdent }
70
+ }, {
71
+ beforeText: RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
72
+ action: { indentAction: e.IndentAction.Indent }
73
+ }]
74
+ }, r = {
75
+ defaultToken: "",
76
+ tokenPostfix: "",
77
+ tokenizer: {
78
+ root: [
79
+ [
80
+ /\{\{!--/,
81
+ "comment.block.start.handlebars",
82
+ "@commentBlock"
83
+ ],
84
+ [
85
+ /\{\{!/,
86
+ "comment.start.handlebars",
87
+ "@comment"
88
+ ],
89
+ [/\{\{/, {
90
+ token: "@rematch",
91
+ switchTo: "@handlebarsInSimpleState.root"
92
+ }],
93
+ [
94
+ /<!DOCTYPE/,
95
+ "metatag.html",
96
+ "@doctype"
97
+ ],
98
+ [
99
+ /<!--/,
100
+ "comment.html",
101
+ "@commentHtml"
102
+ ],
103
+ [/(<)(\w+)(\/>)/, [
104
+ "delimiter.html",
105
+ "tag.html",
106
+ "delimiter.html"
107
+ ]],
108
+ [/(<)(script)/, ["delimiter.html", {
109
+ token: "tag.html",
110
+ next: "@script"
111
+ }]],
112
+ [/(<)(style)/, ["delimiter.html", {
113
+ token: "tag.html",
114
+ next: "@style"
115
+ }]],
116
+ [/(<)([:\w]+)/, ["delimiter.html", {
117
+ token: "tag.html",
118
+ next: "@otherTag"
119
+ }]],
120
+ [/(<\/)(\w+)/, ["delimiter.html", {
121
+ token: "tag.html",
122
+ next: "@otherTag"
123
+ }]],
124
+ [/</, "delimiter.html"],
125
+ [/\{/, "delimiter.html"],
126
+ [/[^<{]+/]
127
+ ],
128
+ doctype: [
129
+ [/\{\{/, {
130
+ token: "@rematch",
131
+ switchTo: "@handlebarsInSimpleState.comment"
132
+ }],
133
+ [/[^>]+/, "metatag.content.html"],
134
+ [
135
+ />/,
136
+ "metatag.html",
137
+ "@pop"
138
+ ]
139
+ ],
140
+ comment: [[
141
+ /\}\}/,
142
+ "comment.end.handlebars",
143
+ "@pop"
144
+ ], [/./, "comment.content.handlebars"]],
145
+ commentBlock: [[
146
+ /--\}\}/,
147
+ "comment.block.end.handlebars",
148
+ "@pop"
149
+ ], [/./, "comment.content.handlebars"]],
150
+ commentHtml: [
151
+ [/\{\{/, {
152
+ token: "@rematch",
153
+ switchTo: "@handlebarsInSimpleState.comment"
154
+ }],
155
+ [
156
+ /-->/,
157
+ "comment.html",
158
+ "@pop"
159
+ ],
160
+ [/[^-]+/, "comment.content.html"],
161
+ [/./, "comment.content.html"]
162
+ ],
163
+ otherTag: [
164
+ [/\{\{/, {
165
+ token: "@rematch",
166
+ switchTo: "@handlebarsInSimpleState.otherTag"
167
+ }],
168
+ [
169
+ /\/?>/,
170
+ "delimiter.html",
171
+ "@pop"
172
+ ],
173
+ [/"([^"]*)"/, "attribute.value"],
174
+ [/'([^']*)'/, "attribute.value"],
175
+ [/[\w\-]+/, "attribute.name"],
176
+ [/=/, "delimiter"],
177
+ [/[ \t\r\n]+/]
178
+ ],
179
+ script: [
180
+ [/\{\{/, {
181
+ token: "@rematch",
182
+ switchTo: "@handlebarsInSimpleState.script"
183
+ }],
184
+ [
185
+ /type/,
186
+ "attribute.name",
187
+ "@scriptAfterType"
188
+ ],
189
+ [/"([^"]*)"/, "attribute.value"],
190
+ [/'([^']*)'/, "attribute.value"],
191
+ [/[\w\-]+/, "attribute.name"],
192
+ [/=/, "delimiter"],
193
+ [/>/, {
194
+ token: "delimiter.html",
195
+ next: "@scriptEmbedded.text/javascript",
196
+ nextEmbedded: "text/javascript"
197
+ }],
198
+ [/[ \t\r\n]+/],
199
+ [/(<\/)(script\s*)(>)/, [
200
+ "delimiter.html",
201
+ "tag.html",
202
+ {
203
+ token: "delimiter.html",
204
+ next: "@pop"
205
+ }
206
+ ]]
207
+ ],
208
+ scriptAfterType: [
209
+ [/\{\{/, {
210
+ token: "@rematch",
211
+ switchTo: "@handlebarsInSimpleState.scriptAfterType"
212
+ }],
213
+ [
214
+ /=/,
215
+ "delimiter",
216
+ "@scriptAfterTypeEquals"
217
+ ],
218
+ [/>/, {
219
+ token: "delimiter.html",
220
+ next: "@scriptEmbedded.text/javascript",
221
+ nextEmbedded: "text/javascript"
222
+ }],
223
+ [/[ \t\r\n]+/],
224
+ [/<\/script\s*>/, {
225
+ token: "@rematch",
226
+ next: "@pop"
227
+ }]
228
+ ],
229
+ scriptAfterTypeEquals: [
230
+ [/\{\{/, {
231
+ token: "@rematch",
232
+ switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
233
+ }],
234
+ [/"([^"]*)"/, {
235
+ token: "attribute.value",
236
+ switchTo: "@scriptWithCustomType.$1"
237
+ }],
238
+ [/'([^']*)'/, {
239
+ token: "attribute.value",
240
+ switchTo: "@scriptWithCustomType.$1"
241
+ }],
242
+ [/>/, {
243
+ token: "delimiter.html",
244
+ next: "@scriptEmbedded.text/javascript",
245
+ nextEmbedded: "text/javascript"
246
+ }],
247
+ [/[ \t\r\n]+/],
248
+ [/<\/script\s*>/, {
249
+ token: "@rematch",
250
+ next: "@pop"
251
+ }]
252
+ ],
253
+ scriptWithCustomType: [
254
+ [/\{\{/, {
255
+ token: "@rematch",
256
+ switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
257
+ }],
258
+ [/>/, {
259
+ token: "delimiter.html",
260
+ next: "@scriptEmbedded.$S2",
261
+ nextEmbedded: "$S2"
262
+ }],
263
+ [/"([^"]*)"/, "attribute.value"],
264
+ [/'([^']*)'/, "attribute.value"],
265
+ [/[\w\-]+/, "attribute.name"],
266
+ [/=/, "delimiter"],
267
+ [/[ \t\r\n]+/],
268
+ [/<\/script\s*>/, {
269
+ token: "@rematch",
270
+ next: "@pop"
271
+ }]
272
+ ],
273
+ scriptEmbedded: [[/\{\{/, {
274
+ token: "@rematch",
275
+ switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
276
+ nextEmbedded: "@pop"
277
+ }], [/<\/script/, {
278
+ token: "@rematch",
279
+ next: "@pop",
280
+ nextEmbedded: "@pop"
281
+ }]],
282
+ style: [
283
+ [/\{\{/, {
284
+ token: "@rematch",
285
+ switchTo: "@handlebarsInSimpleState.style"
286
+ }],
287
+ [
288
+ /type/,
289
+ "attribute.name",
290
+ "@styleAfterType"
291
+ ],
292
+ [/"([^"]*)"/, "attribute.value"],
293
+ [/'([^']*)'/, "attribute.value"],
294
+ [/[\w\-]+/, "attribute.name"],
295
+ [/=/, "delimiter"],
296
+ [/>/, {
297
+ token: "delimiter.html",
298
+ next: "@styleEmbedded.text/css",
299
+ nextEmbedded: "text/css"
300
+ }],
301
+ [/[ \t\r\n]+/],
302
+ [/(<\/)(style\s*)(>)/, [
303
+ "delimiter.html",
304
+ "tag.html",
305
+ {
306
+ token: "delimiter.html",
307
+ next: "@pop"
308
+ }
309
+ ]]
310
+ ],
311
+ styleAfterType: [
312
+ [/\{\{/, {
313
+ token: "@rematch",
314
+ switchTo: "@handlebarsInSimpleState.styleAfterType"
315
+ }],
316
+ [
317
+ /=/,
318
+ "delimiter",
319
+ "@styleAfterTypeEquals"
320
+ ],
321
+ [/>/, {
322
+ token: "delimiter.html",
323
+ next: "@styleEmbedded.text/css",
324
+ nextEmbedded: "text/css"
325
+ }],
326
+ [/[ \t\r\n]+/],
327
+ [/<\/style\s*>/, {
328
+ token: "@rematch",
329
+ next: "@pop"
330
+ }]
331
+ ],
332
+ styleAfterTypeEquals: [
333
+ [/\{\{/, {
334
+ token: "@rematch",
335
+ switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
336
+ }],
337
+ [/"([^"]*)"/, {
338
+ token: "attribute.value",
339
+ switchTo: "@styleWithCustomType.$1"
340
+ }],
341
+ [/'([^']*)'/, {
342
+ token: "attribute.value",
343
+ switchTo: "@styleWithCustomType.$1"
344
+ }],
345
+ [/>/, {
346
+ token: "delimiter.html",
347
+ next: "@styleEmbedded.text/css",
348
+ nextEmbedded: "text/css"
349
+ }],
350
+ [/[ \t\r\n]+/],
351
+ [/<\/style\s*>/, {
352
+ token: "@rematch",
353
+ next: "@pop"
354
+ }]
355
+ ],
356
+ styleWithCustomType: [
357
+ [/\{\{/, {
358
+ token: "@rematch",
359
+ switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
360
+ }],
361
+ [/>/, {
362
+ token: "delimiter.html",
363
+ next: "@styleEmbedded.$S2",
364
+ nextEmbedded: "$S2"
365
+ }],
366
+ [/"([^"]*)"/, "attribute.value"],
367
+ [/'([^']*)'/, "attribute.value"],
368
+ [/[\w\-]+/, "attribute.name"],
369
+ [/=/, "delimiter"],
370
+ [/[ \t\r\n]+/],
371
+ [/<\/style\s*>/, {
372
+ token: "@rematch",
373
+ next: "@pop"
374
+ }]
375
+ ],
376
+ styleEmbedded: [[/\{\{/, {
377
+ token: "@rematch",
378
+ switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
379
+ nextEmbedded: "@pop"
380
+ }], [/<\/style/, {
381
+ token: "@rematch",
382
+ next: "@pop",
383
+ nextEmbedded: "@pop"
384
+ }]],
385
+ handlebarsInSimpleState: [
386
+ [/\{\{\{?/, "delimiter.handlebars"],
387
+ [/\}\}\}?/, {
388
+ token: "delimiter.handlebars",
389
+ switchTo: "@$S2.$S3"
390
+ }],
391
+ { include: "handlebarsRoot" }
392
+ ],
393
+ handlebarsInEmbeddedState: [
394
+ [/\{\{\{?/, "delimiter.handlebars"],
395
+ [/\}\}\}?/, {
396
+ token: "delimiter.handlebars",
397
+ switchTo: "@$S2.$S3",
398
+ nextEmbedded: "$S3"
399
+ }],
400
+ { include: "handlebarsRoot" }
401
+ ],
402
+ handlebarsRoot: [
403
+ [/"[^"]*"/, "string.handlebars"],
404
+ [/[#/][^\s}]+/, "keyword.helper.handlebars"],
405
+ [/else\b/, "keyword.helper.handlebars"],
406
+ [/[\s]+/],
407
+ [/[^}]/, "variable.parameter.handlebars"]
408
+ ]
409
+ }
410
+ };
411
+ //#endregion
412
+ export { n as conf, r as language };