analytica-frontend-lib 1.1.64 → 1.1.65

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/index.mjs CHANGED
@@ -11300,6 +11300,11 @@ var mock_content_default = "./mock-content-K2CDVG6P.png";
11300
11300
 
11301
11301
  // src/components/NotificationCard/NotificationCard.tsx
11302
11302
  import { Fragment as Fragment12, jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
11303
+ var syncNotificationState = (open, isNotificationActive, setActiveStates, key = "notifications") => {
11304
+ if (!open && isNotificationActive) {
11305
+ setActiveStates((prev) => ({ ...prev, [key]: false }));
11306
+ }
11307
+ };
11303
11308
  var NotificationEmpty = ({
11304
11309
  emptyStateImage,
11305
11310
  emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
@@ -11636,6 +11641,20 @@ var NotificationCenter = ({
11636
11641
  ) })
11637
11642
  ] })
11638
11643
  }
11644
+ ),
11645
+ /* @__PURE__ */ jsx51(
11646
+ Modal_default,
11647
+ {
11648
+ isOpen: globalNotificationModal.isOpen,
11649
+ onClose: () => setGlobalNotificationModal({ isOpen: false, notification: null }),
11650
+ title: globalNotificationModal.notification?.title || "",
11651
+ variant: "activity",
11652
+ description: globalNotificationModal.notification?.message,
11653
+ image: emptyStateImage || mock_content_default,
11654
+ actionLink: globalNotificationModal.notification?.actionLink || void 0,
11655
+ actionLabel: "Ver mais",
11656
+ size: "lg"
11657
+ }
11639
11658
  )
11640
11659
  ] });
11641
11660
  }
@@ -12013,6 +12032,7 @@ export {
12013
12032
  getSubjectIcon,
12014
12033
  getSubjectInfo,
12015
12034
  getSubjectName,
12035
+ syncNotificationState,
12016
12036
  useApiConfig,
12017
12037
  useAuth,
12018
12038
  useAuthGuard,