@abdellatifui/react 3.2.35 → 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 CHANGED
@@ -1345,7 +1345,7 @@ export declare interface UseApiProps {
1345
1345
  onRequest?: any;
1346
1346
  onFailureRule?: any;
1347
1347
  socketBaseUrl?: string;
1348
- notifyListen?: boolean;
1348
+ notify?: boolean;
1349
1349
  }
1350
1350
 
1351
1351
  export declare interface UseApiReturn {
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 = 3e3,
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("notify", N), N?._role == "alert") {
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
  })), () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.35",
4
+ "version": "3.2.36",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [