xmlui 0.5.2-beta.3 → 0.6.0-beta.5
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/dist/{apiInterceptorWorker-d4LeBaKB.mjs → apiInterceptorWorker-DpTkUjMk.mjs} +578 -587
- package/dist/{core-Df4Xz6Zv.mjs → core-BfTKHuQQ.mjs} +13 -17
- package/dist/{index-DA1MvAGZ.mjs → index-jjGmK892.mjs} +9199 -8754
- package/dist/index.css +1 -1
- package/dist/scripts/bin/vite-ueml-plugin.js +5 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +41 -39
- package/dist/scripts/src/components-core/xmlui-parser.js +86 -10
- package/dist/scripts/src/parsers/scripting/Lexer.js +134 -58
- package/dist/scripts/src/parsers/scripting/Parser.js +53 -10
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +2 -0
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +63 -34
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +40 -32
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +16 -5
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +970 -932
- package/dist/xmlui-metadata.umd.js +1 -1
- package/dist/xmlui-standalone.umd.js +153 -156
- package/dist/xmlui.mjs +13 -14
- package/dist/xmlui.umd.js +89 -92
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
2
|
var pn = (n, e, t) => e in n ? dn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var k = (n, e, t) =>
|
|
3
|
+
var k = (n, e, t) => pn(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
let fe = class extends Error {
|
|
5
5
|
constructor(e) {
|
|
6
6
|
super(e), this.name = "ShikiError";
|
|
@@ -207,8 +207,7 @@ function Sn(n) {
|
|
|
207
207
|
if (typeof i.scope == "string") {
|
|
208
208
|
let u = i.scope;
|
|
209
209
|
u = u.replace(/^[,]+/, ""), u = u.replace(/[,]+$/, ""), a = u.split(",");
|
|
210
|
-
} else
|
|
211
|
-
Array.isArray(i.scope) ? a = i.scope : a = [""];
|
|
210
|
+
} else Array.isArray(i.scope) ? a = i.scope : a = [""];
|
|
212
211
|
let l = -1;
|
|
213
212
|
if (typeof i.settings.fontStyle == "string") {
|
|
214
213
|
l = 0;
|
|
@@ -3794,8 +3793,7 @@ function Zr(n) {
|
|
|
3794
3793
|
for (; ++r < e.length; ) {
|
|
3795
3794
|
const s = e[r];
|
|
3796
3795
|
if (s.type === "element" && (s.tagName === "title" || s.tagName === "base")) {
|
|
3797
|
-
if (t.includes(s.tagName))
|
|
3798
|
-
return !1;
|
|
3796
|
+
if (t.includes(s.tagName)) return !1;
|
|
3799
3797
|
t.push(s.tagName);
|
|
3800
3798
|
}
|
|
3801
3799
|
}
|
|
@@ -4629,16 +4627,15 @@ function qs(n) {
|
|
|
4629
4627
|
type: "setBackgroundColor",
|
|
4630
4628
|
value: i
|
|
4631
4629
|
}), t += o;
|
|
4632
|
-
} else
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
});
|
|
4630
|
+
} else s === 49 ? e.push({
|
|
4631
|
+
type: "resetBackgroundColor"
|
|
4632
|
+
}) : s >= 90 && s <= 97 ? e.push({
|
|
4633
|
+
type: "setForegroundColor",
|
|
4634
|
+
value: { type: "named", name: j[s - 90 + 8] }
|
|
4635
|
+
}) : s >= 100 && s <= 107 && e.push({
|
|
4636
|
+
type: "setBackgroundColor",
|
|
4637
|
+
value: { type: "named", name: j[s - 100 + 8] }
|
|
4638
|
+
});
|
|
4642
4639
|
}
|
|
4643
4640
|
return e;
|
|
4644
4641
|
}
|
|
@@ -4761,8 +4758,7 @@ function Js(n) {
|
|
|
4761
4758
|
if (e[3]) {
|
|
4762
4759
|
const r = Math.round(Number.parseInt(e[3], 16) / 2).toString(16).padStart(2, "0");
|
|
4763
4760
|
return `#${e[1]}${e[2]}${r}`;
|
|
4764
|
-
} else
|
|
4765
|
-
return e[2] ? `#${e[1]}${e[2]}80` : `#${Array.from(e[1]).map((r) => `${r}${r}`).join("")}80`;
|
|
4761
|
+
} else return e[2] ? `#${e[1]}${e[2]}80` : `#${Array.from(e[1]).map((r) => `${r}${r}`).join("")}80`;
|
|
4766
4762
|
const t = n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
4767
4763
|
return t ? `var(${t[1]}-dim)` : n;
|
|
4768
4764
|
}
|