@fastr-pro/global-header 1.0.15 → 1.0.17
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3260,7 +3260,7 @@ var Vt = t(function({ app: e, type: t = "macro", config: n, currentApp: a = "der
|
|
|
3260
3260
|
return /* @__PURE__ */ s("div", {
|
|
3261
3261
|
"data-fastr-popup": "",
|
|
3262
3262
|
"data-theme": l ? "dark" : "light",
|
|
3263
|
-
className: "bg-popover text-popover-foreground border-border w-
|
|
3263
|
+
className: "bg-popover text-popover-foreground border-border w-240 max-w-[calc(100vw-2rem)] rounded-xl border p-4 shadow-2xl transition-all overflow-hidden",
|
|
3264
3264
|
onMouseDown: (e) => e.stopPropagation(),
|
|
3265
3265
|
children: /* @__PURE__ */ c("div", {
|
|
3266
3266
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-[220px_190px_1fr]",
|
|
@@ -3435,8 +3435,8 @@ function Gt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
|
|
|
3435
3435
|
if (g !== void 0 || P.user !== void 0) return;
|
|
3436
3436
|
let e = () => {
|
|
3437
3437
|
if (ge(null), ue && typeof window < "u" && L) {
|
|
3438
|
-
let e = window.location.href
|
|
3439
|
-
window.location.assign(
|
|
3438
|
+
let e = window.location.href, t = encodeURIComponent(e), n = `${L}/login?app_id=${encodeURIComponent(F || "")}&p_screen=${t}&redirect=${t}`;
|
|
3439
|
+
window.location.assign(n);
|
|
3440
3440
|
}
|
|
3441
3441
|
};
|
|
3442
3442
|
if (typeof R == "function") _e(!0), Promise.resolve(R()).then((t) => {
|
|
@@ -3465,7 +3465,8 @@ function Gt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
|
|
|
3465
3465
|
R,
|
|
3466
3466
|
I,
|
|
3467
3467
|
L,
|
|
3468
|
-
ue
|
|
3468
|
+
ue,
|
|
3469
|
+
F
|
|
3469
3470
|
]);
|
|
3470
3471
|
let B = g === void 0 ? P.user === void 0 ? me : P.user : g, [ye, V] = o(() => Array.isArray(k) && k.length > 0 ? k : Ut || Pt);
|
|
3471
3472
|
r(() => {
|
|
@@ -3641,8 +3642,8 @@ function Gt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
|
|
|
3641
3642
|
try {
|
|
3642
3643
|
localStorage.removeItem("user"), localStorage.removeItem("token"), localStorage.removeItem("auth_token"), sessionStorage.removeItem("user"), sessionStorage.removeItem("token"), sessionStorage.removeItem("auth_token");
|
|
3643
3644
|
} catch {}
|
|
3644
|
-
let e = window.location.href, t = `${L}/
|
|
3645
|
-
window.location.assign(
|
|
3645
|
+
let e = window.location.href, t = encodeURIComponent(e), n = `${L}/login?app_id=${encodeURIComponent(F || "")}&p_screen=${t}&redirect=${t}`;
|
|
3646
|
+
window.location.assign(n);
|
|
3646
3647
|
}
|
|
3647
3648
|
}, Ge = i(() => {
|
|
3648
3649
|
if (se) return se;
|