@vrowzer/vite-plugin 0.1.1 → 0.1.3
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/README.md +77 -7
- package/dist/ide/assets/{css.worker-CTXDGAqi.js → css.worker-B3bjHA4E.js} +12 -12
- package/dist/ide/assets/{html.worker-DoEWTywB.js → html.worker-CdKyo4PJ.js} +15 -15
- package/dist/ide/assets/json.worker-Dv30RK47.js +58 -0
- package/dist/ide/assets/{ts.worker-CEDDf2SQ.js → ts.worker-BMQFrgtp.js} +43 -43
- package/dist/ide/{cssMode-Bx4pwP7t.js → cssMode-BjT8Ilz9.js} +6 -6
- package/dist/ide/{handlebars-niagtI6v.js → handlebars-D8oWedcX.js} +1 -1
- package/dist/ide/{html-vu3rIOlL.js → html-BtI1mgAb.js} +1 -1
- package/dist/ide/{htmlMode-DJyFRqKm.js → htmlMode-nJv21bwP.js} +6 -6
- package/dist/ide/ide.js +1018 -1013
- package/dist/ide/{javascript-BaiNOEh_.js → javascript-CsLyoDyq.js} +1 -1
- package/dist/ide/{jsonMode-DLQ0j1a3.js → jsonMode-Gp85lTwz.js} +26 -25
- package/dist/ide/{lspLanguageFeatures-CY50NMcK.js → lspLanguageFeatures-Bh3u5Duz.js} +4 -4
- package/dist/ide/{mdx-DhZSVASO.js → mdx-BXUwpKml.js} +1 -1
- package/dist/ide/{monaco.contribution-4V6BrQ5P.js → monaco.contribution-Df9Y1epv.js} +2 -2
- package/dist/ide/{toggleHighContrast-DzGcs4Kw.js → toggleHighContrast-BAyJBPWB.js} +11852 -11696
- package/dist/ide/{tsMode-D6r_-_rM.js → tsMode-DW5hjWiU.js} +4 -4
- package/dist/ide/{typescript-DM2pFj0X.js → typescript-DdUYzFye.js} +1 -1
- package/dist/ide/{workers-DRkYqOHL.js → workers-_EnUbIXZ.js} +1 -1
- package/dist/ide/{xml-DrNRTdma.js → xml-YkclMbCx.js} +1 -1
- package/dist/ide/{yaml-ck2FlP6B.js → yaml-nzDq4-PC.js} +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +69 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/ide/assets/json.worker-C4xqSSAJ.js +0 -58
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as e, language as t } from "./typescript-
|
|
1
|
+
import { conf as e, language as t } from "./typescript-DdUYzFye.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js
|
|
3
3
|
var n = e, r = {
|
|
4
4
|
defaultToken: "invalid",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as e, o as t } from "./toggleHighContrast-
|
|
2
|
-
import { t as n } from "./workers-
|
|
3
|
-
import { _ as r, a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b } from "./lspLanguageFeatures-
|
|
1
|
+
import { c as e, o as t } from "./toggleHighContrast-BAyJBPWB.js";
|
|
2
|
+
import { t as n } from "./workers-_EnUbIXZ.js";
|
|
3
|
+
import { _ as r, a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b } from "./lspLanguageFeatures-Bh3u5Duz.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/json/workerManager.js
|
|
5
|
-
var x =
|
|
5
|
+
var x = 12e4, S = class {
|
|
6
6
|
constructor(e) {
|
|
7
|
-
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(),
|
|
7
|
+
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 3e4), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
8
8
|
}
|
|
9
9
|
_stopWorker() {
|
|
10
10
|
this._worker &&= (this._worker.dispose(), null), this._client = null;
|
|
@@ -20,7 +20,7 @@ var x = 120 * 1e3, S = class {
|
|
|
20
20
|
moduleId: "vs/language/json/jsonWorker",
|
|
21
21
|
createWorker: () => new Worker(new URL(
|
|
22
22
|
/* @vite-ignore */
|
|
23
|
-
"/assets/json.worker-
|
|
23
|
+
"/assets/json.worker-Dv30RK47.js",
|
|
24
24
|
"" + import.meta.url
|
|
25
25
|
), { type: "module" }),
|
|
26
26
|
label: this._defaults.languageId,
|
|
@@ -63,13 +63,17 @@ function C(e, t = !1) {
|
|
|
63
63
|
let t = r;
|
|
64
64
|
if (e.charCodeAt(r) === 48) r++;
|
|
65
65
|
else for (r++; r < e.length && E(e.charCodeAt(r));) r++;
|
|
66
|
-
if (r < e.length && e.charCodeAt(r) === 46)
|
|
67
|
-
|
|
66
|
+
if (r < e.length && e.charCodeAt(r) === 46) {
|
|
67
|
+
if (r++, r < e.length && E(e.charCodeAt(r))) for (r++; r < e.length && E(e.charCodeAt(r));) r++;
|
|
68
|
+
else return d = 3, e.substring(t, r);
|
|
69
|
+
}
|
|
68
70
|
let n = r;
|
|
69
|
-
if (r < e.length && (e.charCodeAt(r) === 69 || e.charCodeAt(r) === 101))
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
if (r < e.length && (e.charCodeAt(r) === 69 || e.charCodeAt(r) === 101)) {
|
|
72
|
+
if (r++, (r < e.length && e.charCodeAt(r) === 43 || e.charCodeAt(r) === 45) && r++, r < e.length && E(e.charCodeAt(r))) {
|
|
73
|
+
for (r++; r < e.length && E(e.charCodeAt(r));) r++;
|
|
74
|
+
n = r;
|
|
75
|
+
} else d = 3;
|
|
76
|
+
}
|
|
73
77
|
return e.substring(t, n);
|
|
74
78
|
}
|
|
75
79
|
function h() {
|
|
@@ -123,10 +127,13 @@ function C(e, t = !1) {
|
|
|
123
127
|
i = r;
|
|
124
128
|
continue;
|
|
125
129
|
}
|
|
126
|
-
if (a >= 0 && a <= 31)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
if (a >= 0 && a <= 31) {
|
|
131
|
+
if (T(a)) {
|
|
132
|
+
t += e.substring(i, r), d = 2;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
d = 6;
|
|
136
|
+
}
|
|
130
137
|
r++;
|
|
131
138
|
}
|
|
132
139
|
return t;
|
|
@@ -313,9 +320,7 @@ function q(e, t, n, r = 0) {
|
|
|
313
320
|
case 2:
|
|
314
321
|
t = "\"" + t, i = 1;
|
|
315
322
|
break;
|
|
316
|
-
case 1:
|
|
317
|
-
t = "/*" + t, i = 2;
|
|
318
|
-
break;
|
|
323
|
+
case 1: t = "/*" + t, i = 2;
|
|
319
324
|
}
|
|
320
325
|
let o = A(t), s = n.lastWasColon, c = n.parents, l = {
|
|
321
326
|
tokens: [],
|
|
@@ -355,17 +360,13 @@ function q(e, t, n, r = 0) {
|
|
|
355
360
|
let e = (c ? c.type : 0) === 1;
|
|
356
361
|
u = s || e ? B : H, s = !1;
|
|
357
362
|
break;
|
|
358
|
-
case 11:
|
|
359
|
-
u = V, s = !1;
|
|
360
|
-
break;
|
|
363
|
+
case 11: u = V, s = !1;
|
|
361
364
|
}
|
|
362
365
|
switch (d) {
|
|
363
366
|
case 12:
|
|
364
367
|
u = W;
|
|
365
368
|
break;
|
|
366
|
-
case 13:
|
|
367
|
-
u = U;
|
|
368
|
-
break;
|
|
369
|
+
case 13: u = U;
|
|
369
370
|
}
|
|
370
371
|
l.endState = new K(n.getStateData(), o.getTokenError(), s, c), l.tokens.push({
|
|
371
372
|
startIndex: e,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i } from "./toggleHighContrast-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i } from "./toggleHighContrast-BAyJBPWB.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-types/lib/esm/main.js
|
|
3
3
|
var a;
|
|
4
4
|
(function(e) {
|
|
@@ -555,7 +555,7 @@ var F;
|
|
|
555
555
|
(function(e) {
|
|
556
556
|
function t(e, t, ...n) {
|
|
557
557
|
let r = { label: e };
|
|
558
|
-
return U.defined(t) && (r.documentation = t), U.defined(n) ?
|
|
558
|
+
return U.defined(t) && (r.documentation = t), r.parameters = U.defined(n) ? n : [], r;
|
|
559
559
|
}
|
|
560
560
|
e.create = t;
|
|
561
561
|
})(F ||= {});
|
|
@@ -1123,10 +1123,10 @@ var Ge = class {
|
|
|
1123
1123
|
range: o,
|
|
1124
1124
|
kind: qe(e.kind)
|
|
1125
1125
|
};
|
|
1126
|
-
return e.textEdit && (Ke(e.textEdit) ?
|
|
1126
|
+
return e.textEdit && (n.range = Ke(e.textEdit) ? {
|
|
1127
1127
|
insert: K(e.textEdit.insert),
|
|
1128
1128
|
replace: K(e.textEdit.replace)
|
|
1129
|
-
} :
|
|
1129
|
+
} : K(e.textEdit.range), n.insertText = e.textEdit.newText), e.additionalTextEdits && (n.additionalTextEdits = e.additionalTextEdits.map(q)), e.insertTextFormat === N.Snippet && (n.insertTextRules = t.CompletionItemInsertTextRule.InsertAsSnippet), n;
|
|
1130
1130
|
});
|
|
1131
1131
|
return {
|
|
1132
1132
|
isIncomplete: i.isIncomplete,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e } from "./toggleHighContrast-
|
|
1
|
+
import { c as e } from "./toggleHighContrast-BAyJBPWB.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.js
|
|
3
3
|
var t = {
|
|
4
4
|
comments: { blockComment: ["{/*", "*/}"] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, t } from "./toggleHighContrast-
|
|
1
|
+
import { c as e, t } from "./toggleHighContrast-BAyJBPWB.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js
|
|
3
3
|
var n = class {
|
|
4
4
|
constructor(e, n, r, i, a) {
|
|
@@ -109,7 +109,7 @@ var n = class {
|
|
|
109
109
|
onlyVisible: !1
|
|
110
110
|
}, {}, {}, r);
|
|
111
111
|
function o() {
|
|
112
|
-
return import("./tsMode-
|
|
112
|
+
return import("./tsMode-DW5hjWiU.js");
|
|
113
113
|
}
|
|
114
114
|
e.onLanguage("typescript", () => o().then((e) => e.setupTypeScript(i))), e.onLanguage("javascript", () => o().then((e) => e.setupJavaScript(a)));
|
|
115
115
|
//#endregion
|