@cratis/stage.runtime 4.188.1 → 4.188.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/dist/src/index.js +8 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -506,7 +506,14 @@ function bt(e) {
|
|
|
506
506
|
function xt(e, t, n, r, i, a, o, s, c) {
|
|
507
507
|
if (!e) return;
|
|
508
508
|
let l = e.replace(/^\$\.?/, "").split(".").filter(Boolean);
|
|
509
|
-
if (l.length !== 0)
|
|
509
|
+
if (l.length !== 0) {
|
|
510
|
+
if (l[0] === "screen") {
|
|
511
|
+
if (l.length === 1) return { name: o.name };
|
|
512
|
+
let e = V(o, l.slice(1));
|
|
513
|
+
return e === void 0 && l[1] === "keys" && l.length === 3 ? V(t, [l[2]]) : e;
|
|
514
|
+
}
|
|
515
|
+
return l[0] === "locale" ? s : l[0] === "locales" ? c : l[0] === "query" ? Ct(r, l[1], l.slice(2).join(".")) : l[0] === "data" || l[0] === "selected" || l[0] === "current" ? St(l.slice(1).join("."), t, n) : l[0] === "state" ? V(i, l.slice(1)) : l[0] === "parameters" ? l.length === 1 ? a : a[l[1]] : V(t, l) ?? Ct(r, void 0, l.join(".")) ?? V(i, l);
|
|
516
|
+
}
|
|
510
517
|
}
|
|
511
518
|
function St(e, t, n) {
|
|
512
519
|
let r = e?.split(".").filter(Boolean) ?? [];
|