@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,333 @@
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/html/html.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
+ autoClosingPairs: [
30
+ {
31
+ open: "{",
32
+ close: "}"
33
+ },
34
+ {
35
+ open: "[",
36
+ close: "]"
37
+ },
38
+ {
39
+ open: "(",
40
+ close: ")"
41
+ },
42
+ {
43
+ open: "\"",
44
+ close: "\""
45
+ },
46
+ {
47
+ open: "'",
48
+ close: "'"
49
+ }
50
+ ],
51
+ surroundingPairs: [
52
+ {
53
+ open: "\"",
54
+ close: "\""
55
+ },
56
+ {
57
+ open: "'",
58
+ close: "'"
59
+ },
60
+ {
61
+ open: "{",
62
+ close: "}"
63
+ },
64
+ {
65
+ open: "[",
66
+ close: "]"
67
+ },
68
+ {
69
+ open: "(",
70
+ close: ")"
71
+ },
72
+ {
73
+ open: "<",
74
+ close: ">"
75
+ }
76
+ ],
77
+ onEnterRules: [{
78
+ beforeText: RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
79
+ afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
80
+ action: { indentAction: e.IndentAction.IndentOutdent }
81
+ }, {
82
+ beforeText: RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
83
+ action: { indentAction: e.IndentAction.Indent }
84
+ }],
85
+ folding: { markers: {
86
+ start: /* @__PURE__ */ RegExp("^\\s*<!--\\s*#region\\b.*-->"),
87
+ end: /* @__PURE__ */ RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
88
+ } }
89
+ }, r = {
90
+ defaultToken: "",
91
+ tokenPostfix: ".html",
92
+ ignoreCase: !0,
93
+ tokenizer: {
94
+ root: [
95
+ [
96
+ /<!DOCTYPE/,
97
+ "metatag",
98
+ "@doctype"
99
+ ],
100
+ [
101
+ /<!--/,
102
+ "comment",
103
+ "@comment"
104
+ ],
105
+ [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, [
106
+ "delimiter",
107
+ "tag",
108
+ "",
109
+ "delimiter"
110
+ ]],
111
+ [/(<)(script)/, ["delimiter", {
112
+ token: "tag",
113
+ next: "@script"
114
+ }]],
115
+ [/(<)(style)/, ["delimiter", {
116
+ token: "tag",
117
+ next: "@style"
118
+ }]],
119
+ [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", {
120
+ token: "tag",
121
+ next: "@otherTag"
122
+ }]],
123
+ [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", {
124
+ token: "tag",
125
+ next: "@otherTag"
126
+ }]],
127
+ [/</, "delimiter"],
128
+ [/[^<]+/]
129
+ ],
130
+ doctype: [[/[^>]+/, "metatag.content"], [
131
+ />/,
132
+ "metatag",
133
+ "@pop"
134
+ ]],
135
+ comment: [
136
+ [
137
+ /-->/,
138
+ "comment",
139
+ "@pop"
140
+ ],
141
+ [/[^-]+/, "comment.content"],
142
+ [/./, "comment.content"]
143
+ ],
144
+ otherTag: [
145
+ [
146
+ /\/?>/,
147
+ "delimiter",
148
+ "@pop"
149
+ ],
150
+ [/"([^"]*)"/, "attribute.value"],
151
+ [/'([^']*)'/, "attribute.value"],
152
+ [/[\w\-]+/, "attribute.name"],
153
+ [/=/, "delimiter"],
154
+ [/[ \t\r\n]+/]
155
+ ],
156
+ script: [
157
+ [
158
+ /type/,
159
+ "attribute.name",
160
+ "@scriptAfterType"
161
+ ],
162
+ [/"([^"]*)"/, "attribute.value"],
163
+ [/'([^']*)'/, "attribute.value"],
164
+ [/[\w\-]+/, "attribute.name"],
165
+ [/=/, "delimiter"],
166
+ [/>/, {
167
+ token: "delimiter",
168
+ next: "@scriptEmbedded",
169
+ nextEmbedded: "text/javascript"
170
+ }],
171
+ [/[ \t\r\n]+/],
172
+ [/(<\/)(script\s*)(>)/, [
173
+ "delimiter",
174
+ "tag",
175
+ {
176
+ token: "delimiter",
177
+ next: "@pop"
178
+ }
179
+ ]]
180
+ ],
181
+ scriptAfterType: [
182
+ [
183
+ /=/,
184
+ "delimiter",
185
+ "@scriptAfterTypeEquals"
186
+ ],
187
+ [/>/, {
188
+ token: "delimiter",
189
+ next: "@scriptEmbedded",
190
+ nextEmbedded: "text/javascript"
191
+ }],
192
+ [/[ \t\r\n]+/],
193
+ [/<\/script\s*>/, {
194
+ token: "@rematch",
195
+ next: "@pop"
196
+ }]
197
+ ],
198
+ scriptAfterTypeEquals: [
199
+ [/"module"/, {
200
+ token: "attribute.value",
201
+ switchTo: "@scriptWithCustomType.text/javascript"
202
+ }],
203
+ [/'module'/, {
204
+ token: "attribute.value",
205
+ switchTo: "@scriptWithCustomType.text/javascript"
206
+ }],
207
+ [/"([^"]*)"/, {
208
+ token: "attribute.value",
209
+ switchTo: "@scriptWithCustomType.$1"
210
+ }],
211
+ [/'([^']*)'/, {
212
+ token: "attribute.value",
213
+ switchTo: "@scriptWithCustomType.$1"
214
+ }],
215
+ [/>/, {
216
+ token: "delimiter",
217
+ next: "@scriptEmbedded",
218
+ nextEmbedded: "text/javascript"
219
+ }],
220
+ [/[ \t\r\n]+/],
221
+ [/<\/script\s*>/, {
222
+ token: "@rematch",
223
+ next: "@pop"
224
+ }]
225
+ ],
226
+ scriptWithCustomType: [
227
+ [/>/, {
228
+ token: "delimiter",
229
+ next: "@scriptEmbedded.$S2",
230
+ nextEmbedded: "$S2"
231
+ }],
232
+ [/"([^"]*)"/, "attribute.value"],
233
+ [/'([^']*)'/, "attribute.value"],
234
+ [/[\w\-]+/, "attribute.name"],
235
+ [/=/, "delimiter"],
236
+ [/[ \t\r\n]+/],
237
+ [/<\/script\s*>/, {
238
+ token: "@rematch",
239
+ next: "@pop"
240
+ }]
241
+ ],
242
+ scriptEmbedded: [[/<\/script/, {
243
+ token: "@rematch",
244
+ next: "@pop",
245
+ nextEmbedded: "@pop"
246
+ }], [/[^<]+/, ""]],
247
+ style: [
248
+ [
249
+ /type/,
250
+ "attribute.name",
251
+ "@styleAfterType"
252
+ ],
253
+ [/"([^"]*)"/, "attribute.value"],
254
+ [/'([^']*)'/, "attribute.value"],
255
+ [/[\w\-]+/, "attribute.name"],
256
+ [/=/, "delimiter"],
257
+ [/>/, {
258
+ token: "delimiter",
259
+ next: "@styleEmbedded",
260
+ nextEmbedded: "text/css"
261
+ }],
262
+ [/[ \t\r\n]+/],
263
+ [/(<\/)(style\s*)(>)/, [
264
+ "delimiter",
265
+ "tag",
266
+ {
267
+ token: "delimiter",
268
+ next: "@pop"
269
+ }
270
+ ]]
271
+ ],
272
+ styleAfterType: [
273
+ [
274
+ /=/,
275
+ "delimiter",
276
+ "@styleAfterTypeEquals"
277
+ ],
278
+ [/>/, {
279
+ token: "delimiter",
280
+ next: "@styleEmbedded",
281
+ nextEmbedded: "text/css"
282
+ }],
283
+ [/[ \t\r\n]+/],
284
+ [/<\/style\s*>/, {
285
+ token: "@rematch",
286
+ next: "@pop"
287
+ }]
288
+ ],
289
+ styleAfterTypeEquals: [
290
+ [/"([^"]*)"/, {
291
+ token: "attribute.value",
292
+ switchTo: "@styleWithCustomType.$1"
293
+ }],
294
+ [/'([^']*)'/, {
295
+ token: "attribute.value",
296
+ switchTo: "@styleWithCustomType.$1"
297
+ }],
298
+ [/>/, {
299
+ token: "delimiter",
300
+ next: "@styleEmbedded",
301
+ nextEmbedded: "text/css"
302
+ }],
303
+ [/[ \t\r\n]+/],
304
+ [/<\/style\s*>/, {
305
+ token: "@rematch",
306
+ next: "@pop"
307
+ }]
308
+ ],
309
+ styleWithCustomType: [
310
+ [/>/, {
311
+ token: "delimiter",
312
+ next: "@styleEmbedded.$S2",
313
+ nextEmbedded: "$S2"
314
+ }],
315
+ [/"([^"]*)"/, "attribute.value"],
316
+ [/'([^']*)'/, "attribute.value"],
317
+ [/[\w\-]+/, "attribute.name"],
318
+ [/=/, "delimiter"],
319
+ [/[ \t\r\n]+/],
320
+ [/<\/style\s*>/, {
321
+ token: "@rematch",
322
+ next: "@pop"
323
+ }]
324
+ ],
325
+ styleEmbedded: [[/<\/style/, {
326
+ token: "@rematch",
327
+ next: "@pop",
328
+ nextEmbedded: "@pop"
329
+ }], [/[^<]+/, ""]]
330
+ }
331
+ };
332
+ //#endregion
333
+ export { n as conf, r as language };
@@ -0,0 +1,74 @@
1
+ import { c as e } from "./toggleHighContrast-DI4ZeqFk.js";
2
+ import { t } from "./workers-IG_hD8Jy.js";
3
+ import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y } from "./lspLanguageFeatures-BDyekQt2.js";
4
+ //#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/html/workerManager.js
5
+ var b = 120 * 1e3, x = class {
6
+ constructor(e) {
7
+ this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
8
+ }
9
+ _stopWorker() {
10
+ this._worker &&= (this._worker.dispose(), null), this._client = null;
11
+ }
12
+ dispose() {
13
+ clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
14
+ }
15
+ _checkIfIdle() {
16
+ this._worker && Date.now() - this._lastUsedTime > b && this._stopWorker();
17
+ }
18
+ _getClient() {
19
+ return this._lastUsedTime = Date.now(), this._client ||= (this._worker = t({
20
+ moduleId: "vs/language/html/htmlWorker",
21
+ createWorker: () => new Worker(new URL(
22
+ /* @vite-ignore */
23
+ "/assets/html.worker-1tLoAl5Z.js",
24
+ "" + import.meta.url
25
+ ), { type: "module" }),
26
+ createData: {
27
+ languageSettings: this._defaults.options,
28
+ languageId: this._defaults.languageId
29
+ },
30
+ label: this._defaults.languageId
31
+ }), this._worker.getProxy()), this._client;
32
+ }
33
+ getLanguageServiceWorker(...e) {
34
+ let t;
35
+ return this._getClient().then((e) => {
36
+ t = e;
37
+ }).then((t) => {
38
+ if (this._worker) return this._worker.withSyncedResources(e);
39
+ }).then((e) => t);
40
+ }
41
+ }, S = class extends _ {
42
+ constructor(e) {
43
+ super(e, [
44
+ ".",
45
+ ":",
46
+ "<",
47
+ "\"",
48
+ "=",
49
+ "/"
50
+ ]);
51
+ }
52
+ };
53
+ function C(t) {
54
+ let n = new x(t), o = (...e) => n.getLanguageServiceWorker(...e), s = t.languageId;
55
+ e.registerCompletionItemProvider(s, new S(o)), e.registerHoverProvider(s, new a(o)), e.registerDocumentHighlightProvider(s, new p(o)), e.registerLinkProvider(s, new g(o)), e.registerFoldingRangeProvider(s, new v(o)), e.registerDocumentSymbolProvider(s, new u(o)), e.registerSelectionRangeProvider(s, new d(o)), e.registerRenameProvider(s, new m(o)), s === "html" && (e.registerDocumentFormattingEditProvider(s, new r(o)), e.registerDocumentRangeFormattingEditProvider(s, new i(o)));
56
+ }
57
+ function w(t) {
58
+ let n = [], o = [], s = new x(t);
59
+ n.push(s);
60
+ let c = (...e) => s.getLanguageServiceWorker(...e);
61
+ function l() {
62
+ let { languageId: n, modeConfiguration: s } = t;
63
+ E(o), s.completionItems && o.push(e.registerCompletionItemProvider(n, new S(c))), s.hovers && o.push(e.registerHoverProvider(n, new a(c))), s.documentHighlights && o.push(e.registerDocumentHighlightProvider(n, new p(c))), s.links && o.push(e.registerLinkProvider(n, new g(c))), s.documentSymbols && o.push(e.registerDocumentSymbolProvider(n, new u(c))), s.rename && o.push(e.registerRenameProvider(n, new m(c))), s.foldingRanges && o.push(e.registerFoldingRangeProvider(n, new v(c))), s.selectionRanges && o.push(e.registerSelectionRangeProvider(n, new d(c))), s.documentFormattingEdits && o.push(e.registerDocumentFormattingEditProvider(n, new r(c))), s.documentRangeFormattingEdits && o.push(e.registerDocumentRangeFormattingEditProvider(n, new i(c)));
64
+ }
65
+ return l(), n.push(T(o)), T(n);
66
+ }
67
+ function T(e) {
68
+ return { dispose: () => E(e) };
69
+ }
70
+ function E(e) {
71
+ for (; e.length;) e.pop().dispose();
72
+ }
73
+ //#endregion
74
+ export { _ as CompletionAdapter, f as DefinitionAdapter, h as DiagnosticsAdapter, l as DocumentColorAdapter, r as DocumentFormattingEditProvider, p as DocumentHighlightAdapter, g as DocumentLinkAdapter, i as DocumentRangeFormattingEditProvider, u as DocumentSymbolAdapter, v as FoldingRangeAdapter, a as HoverAdapter, o as ReferenceAdapter, m as RenameAdapter, d as SelectionRangeAdapter, x as WorkerManager, c as fromPosition, s as fromRange, w as setupMode, C as setupMode1, n as toRange, y as toTextEdit };