@abdellatifui/react 3.2.181 → 3.2.182
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.js +2 -4
- package/package.json +1 -1
package/dist/nextgen.js
CHANGED
|
@@ -23084,7 +23084,7 @@ const nf = cn({ name: "", onChange: () => {
|
|
|
23084
23084
|
E.off("connect", P), E.off("disconnect", v);
|
|
23085
23085
|
};
|
|
23086
23086
|
}, [t]), q(() => {
|
|
23087
|
-
if (x?.updateExternalApi("forceReloadApiMount", j), x?.updateExternalApi("forceReloadApiMountCount", C),
|
|
23087
|
+
if (x?.updateExternalApi("forceReloadApiMount", j), x?.updateExternalApi("forceReloadApiMountCount", C), console.log("1-Mounting Notification Listener notify : ", d, E?.connected), !d || !E?.connected) return;
|
|
23088
23088
|
const P = (R) => {
|
|
23089
23089
|
if (console.log("API : Coming Notification : ", R), R?._role === "alert") {
|
|
23090
23090
|
const A = R?.status === 200;
|
|
@@ -23106,9 +23106,7 @@ const nf = cn({ name: "", onChange: () => {
|
|
|
23106
23106
|
const { url: A } = R;
|
|
23107
23107
|
window.open(A, "_self");
|
|
23108
23108
|
};
|
|
23109
|
-
|
|
23110
|
-
console.log("Unmounting Notification Listener ..."), E.off("/stream/notify", P), E.off("/stream/redirect", v), E.close(), x?.updateExternalApi("apiNotificationMountRunning", !1);
|
|
23111
|
-
};
|
|
23109
|
+
E.on("/stream/notify", P), E.on("/stream/redirect", v), console.log("2-Mounting Notification Listener ...", N());
|
|
23112
23110
|
}, [d, t, S, C]);
|
|
23113
23111
|
const _ = se((P) => async (...v) => {
|
|
23114
23112
|
const R = v.find(
|