@abdellatifui/react 3.2.34 → 3.2.36
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/nextgen.d.ts +1 -1
- package/dist/nextgen.js +9 -7
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
package/dist/nextgen.js
CHANGED
|
@@ -15767,7 +15767,7 @@ Zu.displayName = "ToastifyMainframe";
|
|
|
15767
15767
|
const Yx = (e) => {
|
|
15768
15768
|
const {
|
|
15769
15769
|
item: n,
|
|
15770
|
-
duration: t =
|
|
15770
|
+
duration: t = 6e3,
|
|
15771
15771
|
ref: r
|
|
15772
15772
|
} = e, o = lt();
|
|
15773
15773
|
return K(() => {
|
|
@@ -22059,23 +22059,25 @@ const Ud = Pn({ name: "", onChange: () => {
|
|
|
22059
22059
|
};
|
|
22060
22060
|
}, [b]), K(() => {
|
|
22061
22061
|
if (k)
|
|
22062
|
-
return x && S && b.on("/stream/notify", (N) => {
|
|
22063
|
-
if (console.log("
|
|
22062
|
+
return x && S && (console.log("Mounting Notification Listener ..."), b.on("/stream/notify", (N) => {
|
|
22063
|
+
if (console.log("API : Coming Notification : ", N), N?._role == "alert") {
|
|
22064
22064
|
const j = N?.status == 200;
|
|
22065
22065
|
abui?.alert({
|
|
22066
22066
|
error: !j,
|
|
22067
22067
|
success: j,
|
|
22068
|
-
body: N?.message
|
|
22068
|
+
body: N?.message,
|
|
22069
|
+
...N?._options
|
|
22069
22070
|
});
|
|
22070
22071
|
} else if (N?._role == "toast") {
|
|
22071
22072
|
const j = N?.status == 200 ? "success" : "error";
|
|
22072
22073
|
abui?.toast({
|
|
22073
22074
|
body: N?.message,
|
|
22074
|
-
type: j
|
|
22075
|
+
type: j,
|
|
22076
|
+
...N?._options
|
|
22075
22077
|
});
|
|
22076
22078
|
}
|
|
22077
|
-
}), () => {
|
|
22078
|
-
b?.off?.("/stream/notify");
|
|
22079
|
+
})), () => {
|
|
22080
|
+
console.log("Unmounting Notification Listener ..."), b?.off?.("/stream/notify");
|
|
22079
22081
|
};
|
|
22080
22082
|
}, [x, S, k]);
|
|
22081
22083
|
const E = (N) => async (...j) => {
|