@applica-software-guru/react-admin 1.5.342 → 1.5.343
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/components/ra-buttons/ImpersonateUserButton.d.ts +3 -1
- package/dist/components/ra-buttons/ImpersonateUserButton.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +37 -37
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +13 -9
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +37 -37
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-buttons/ImpersonateUserButton.tsx +9 -3
package/dist/react-admin.es.js
CHANGED
|
@@ -30865,24 +30865,28 @@ function ile({ setLoading: e }) {
|
|
|
30865
30865
|
}
|
|
30866
30866
|
return /* @__PURE__ */ y(Ae, { sx: { colorScheme: n ? "light" : "dark", width: "100%" }, ref: u, children: /* @__PURE__ */ y(ole, { theme: "outline", width: a, onSuccess: d, onError: f }) });
|
|
30867
30867
|
}
|
|
30868
|
-
function $ge({
|
|
30869
|
-
|
|
30870
|
-
|
|
30871
|
-
|
|
30872
|
-
|
|
30868
|
+
function $ge({
|
|
30869
|
+
label: e = "ra.auth.sign_in",
|
|
30870
|
+
redirect: t = "/",
|
|
30871
|
+
...n
|
|
30872
|
+
}) {
|
|
30873
|
+
const r = mn(), [o, i] = Re(!1), a = z_(), l = me(
|
|
30874
|
+
(u) => {
|
|
30875
|
+
u.stopPropagation(), u.preventDefault(), i(!0), a.impersonate(r == null ? void 0 : r.id).then(() => {
|
|
30876
|
+
i(!1), document.location.href = t;
|
|
30873
30877
|
});
|
|
30874
30878
|
},
|
|
30875
|
-
[
|
|
30879
|
+
[a, r == null ? void 0 : r.id, t]
|
|
30876
30880
|
);
|
|
30877
30881
|
return /* @__PURE__ */ y(
|
|
30878
30882
|
zs,
|
|
30879
30883
|
{
|
|
30880
|
-
disabled:
|
|
30884
|
+
disabled: o || a.impersonate === void 0,
|
|
30881
30885
|
color: "primary",
|
|
30882
30886
|
variant: "text",
|
|
30883
30887
|
label: e,
|
|
30884
|
-
onClick:
|
|
30885
|
-
...
|
|
30888
|
+
onClick: l,
|
|
30889
|
+
...n,
|
|
30886
30890
|
children: /* @__PURE__ */ y(JM, {})
|
|
30887
30891
|
}
|
|
30888
30892
|
);
|
|
Binary file
|