@abdellatifui/react 3.2.35 → 3.2.38
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.css +1 -1
- 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
|
@@ -15736,7 +15736,7 @@ const gi = Ce("rounded relative", {
|
|
|
15736
15736
|
} = e, o = re(), s = Ue(us);
|
|
15737
15737
|
K(() => (n.type && (n.params = r, n.dismiss = () => {
|
|
15738
15738
|
Cn.dismiss(r.id), Cn.remove(r.id);
|
|
15739
|
-
}, n.toast = Cn), () => {
|
|
15739
|
+
}, n.toast = Cn, console.log("New Notification : ", n)), () => {
|
|
15740
15740
|
Cn.remove(r.id), n?.onAfterLoad?.({ ...n, ref: o }), n?.toastId && delete s.notifyArray.current[n.toastId];
|
|
15741
15741
|
}), [n]);
|
|
15742
15742
|
const i = {
|
|
@@ -15755,8 +15755,8 @@ const gi = Ce("rounded relative", {
|
|
|
15755
15755
|
...i,
|
|
15756
15756
|
ref: o,
|
|
15757
15757
|
"data-toastid": n?.toastId || "",
|
|
15758
|
-
className: "z-
|
|
15759
|
-
children: /* @__PURE__ */ c.jsx("div", { className: V(gi({ mode: t }), "shadow border border-accent hover:outline outline-gray-200 outline-offset-2 z-
|
|
15758
|
+
className: "z-501",
|
|
15759
|
+
children: /* @__PURE__ */ c.jsx("div", { className: V(gi({ mode: t }), "shadow border border-accent hover:outline outline-gray-200 outline-offset-2 z-501"), children: /* @__PURE__ */ c.jsxs("div", { className: "relative w-[350px] flex p-1", children: [
|
|
15760
15760
|
/* @__PURE__ */ c.jsx($x, { ...e }),
|
|
15761
15761
|
/* @__PURE__ */ c.jsx(Ux, { ...e, item: n })
|
|
15762
15762
|
] }) })
|
|
@@ -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(() => {
|
|
@@ -22060,18 +22060,20 @@ const Ud = Pn({ name: "", onChange: () => {
|
|
|
22060
22060
|
}, [b]), K(() => {
|
|
22061
22061
|
if (k)
|
|
22062
22062
|
return x && S && (console.log("Mounting Notification Listener ..."), b.on("/stream/notify", (N) => {
|
|
22063
|
-
if (console.log("
|
|
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
22079
|
})), () => {
|