@abdellatifui/react 3.2.179 → 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 +5 -9
- package/package.json +1 -1
package/dist/nextgen.js
CHANGED
|
@@ -23067,15 +23067,12 @@ const nf = cn({ name: "", onChange: () => {
|
|
|
23067
23067
|
console.log("Force remount useApi"), k((P) => P + 1);
|
|
23068
23068
|
}, E = ce(() => vp(g || n, {
|
|
23069
23069
|
retries: 5,
|
|
23070
|
-
extraHeaders: {
|
|
23071
|
-
Authorization: t
|
|
23072
|
-
},
|
|
23073
23070
|
...s,
|
|
23074
23071
|
query: {
|
|
23075
23072
|
csid: Tc,
|
|
23076
23073
|
buid: localStorage.getItem("buid") || ""
|
|
23077
23074
|
}
|
|
23078
|
-
}), [g, n]);
|
|
23075
|
+
}), [g, t, n]);
|
|
23079
23076
|
q(() => {
|
|
23080
23077
|
if (!E) return;
|
|
23081
23078
|
const P = () => {
|
|
@@ -23087,7 +23084,7 @@ const nf = cn({ name: "", onChange: () => {
|
|
|
23087
23084
|
E.off("connect", P), E.off("disconnect", v);
|
|
23088
23085
|
};
|
|
23089
23086
|
}, [t]), q(() => {
|
|
23090
|
-
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;
|
|
23091
23088
|
const P = (R) => {
|
|
23092
23089
|
if (console.log("API : Coming Notification : ", R), R?._role === "alert") {
|
|
23093
23090
|
const A = R?.status === 200;
|
|
@@ -23109,10 +23106,8 @@ const nf = cn({ name: "", onChange: () => {
|
|
|
23109
23106
|
const { url: A } = R;
|
|
23110
23107
|
window.open(A, "_self");
|
|
23111
23108
|
};
|
|
23112
|
-
|
|
23113
|
-
|
|
23114
|
-
};
|
|
23115
|
-
}, [d, S, C]);
|
|
23109
|
+
E.on("/stream/notify", P), E.on("/stream/redirect", v), console.log("2-Mounting Notification Listener ...", N());
|
|
23110
|
+
}, [d, t, S, C]);
|
|
23116
23111
|
const _ = se((P) => async (...v) => {
|
|
23117
23112
|
const R = v.find(
|
|
23118
23113
|
(A) => A && typeof A == "object" && (Object.prototype.hasOwnProperty.call(A, "onRequest") || Object.prototype.hasOwnProperty.call(A, "onResponse"))
|
|
@@ -23128,6 +23123,7 @@ const nf = cn({ name: "", onChange: () => {
|
|
|
23128
23123
|
return l && l(D), u && u(D), D;
|
|
23129
23124
|
}
|
|
23130
23125
|
}, [m, t, a, u, h, l]), F = ce(() => {
|
|
23126
|
+
console.log("Creating new axios instance ...");
|
|
23131
23127
|
const P = yp.create({
|
|
23132
23128
|
...o,
|
|
23133
23129
|
baseURL: n,
|