@abdellatifui/react 3.2.33 → 3.2.35

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.
Files changed (2) hide show
  1. package/dist/nextgen.js +8 -6
  2. package/package.json +1 -1
package/dist/nextgen.js CHANGED
@@ -20429,12 +20429,14 @@ const Us = Ce(
20429
20429
  h.state && M(h.state, h.message);
20430
20430
  }, [h]);
20431
20431
  function M(ee, W) {
20432
- if (!["invalid", "valid"].includes(ee))
20432
+ if (!["invalid", "valid", "info"].includes(ee))
20433
20433
  throw new Error("Invalid status, must be invalid or valid.");
20434
20434
  if (ee === "invalid")
20435
20435
  E(/* @__PURE__ */ c.jsx("p", { className: "font-aptos text-destructive", children: W })), A && clearTimeout(A);
20436
- else if (ee === "valid") {
20437
- E(/* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: W })), A && clearTimeout(A);
20436
+ else if (ee === "valid" || ee === "info") {
20437
+ E(
20438
+ ee == "valid" ? /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: W }) : /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-blue-600", children: W })
20439
+ ), A && clearTimeout(A);
20438
20440
  const H = setTimeout(() => {
20439
20441
  E(r);
20440
20442
  }, 15e3);
@@ -22057,7 +22059,7 @@ const Ud = Pn({ name: "", onChange: () => {
22057
22059
  };
22058
22060
  }, [b]), K(() => {
22059
22061
  if (k)
22060
- return x && S && b.on("/stream/notify", (N) => {
22062
+ return x && S && (console.log("Mounting Notification Listener ..."), b.on("/stream/notify", (N) => {
22061
22063
  if (console.log("notify", N), N?._role == "alert") {
22062
22064
  const j = N?.status == 200;
22063
22065
  abui?.alert({
@@ -22072,8 +22074,8 @@ const Ud = Pn({ name: "", onChange: () => {
22072
22074
  type: j
22073
22075
  });
22074
22076
  }
22075
- }), () => {
22076
- b?.off?.("/stream/notify");
22077
+ })), () => {
22078
+ console.log("Unmounting Notification Listener ..."), b?.off?.("/stream/notify");
22077
22079
  };
22078
22080
  }, [x, S, k]);
22079
22081
  const E = (N) => async (...j) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.33",
4
+ "version": "3.2.35",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [