analytica-frontend-lib 1.1.63 → 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/NotificationCard/index.d.mts +1 -1
- package/dist/NotificationCard/index.d.ts +1 -1
- package/dist/NotificationCard/index.js +23 -2
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +21 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/{NotificationCard-4GgB0Nsf.d.mts → NotificationCard-DMdkuVEr.d.mts} +7 -2
- package/dist/{NotificationCard-4GgB0Nsf.d.ts → NotificationCard-DMdkuVEr.d.ts} +7 -2
- package/dist/Quiz/index.d.mts +26 -40
- package/dist/Quiz/index.d.ts +26 -40
- package/dist/Quiz/index.js +3411 -3790
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +3425 -3792
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +10 -25
- package/dist/Quiz/useQuizStore/index.d.ts +10 -25
- package/dist/Quiz/useQuizStore/index.js +52 -77
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +51 -77
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/index.d.mts +37 -6
- package/dist/index.d.ts +37 -6
- package/dist/index.js +606 -440
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +606 -440
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, f as NotificationItem, e as default } from '../NotificationCard-
|
|
3
|
+
export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, f as NotificationItem, e as default, s as syncNotificationState } from '../NotificationCard-DMdkuVEr.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, f as NotificationItem, e as default } from '../NotificationCard-
|
|
3
|
+
export { j as LegacyNotificationCard, L as LegacyNotificationCardProps, i as NotificationCardProps, b as NotificationGroup, f as NotificationItem, e as default, s as syncNotificationState } from '../NotificationCard-DMdkuVEr.js';
|
|
@@ -21,7 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var NotificationCard_exports = {};
|
|
22
22
|
__export(NotificationCard_exports, {
|
|
23
23
|
LegacyNotificationCard: () => LegacyNotificationCard,
|
|
24
|
-
default: () => NotificationCard_default
|
|
24
|
+
default: () => NotificationCard_default,
|
|
25
|
+
syncNotificationState: () => syncNotificationState
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(NotificationCard_exports);
|
|
27
28
|
var import_phosphor_react5 = require("phosphor-react");
|
|
@@ -1418,6 +1419,11 @@ var mock_content_default = "../mock-content-K2CDVG6P.png";
|
|
|
1418
1419
|
|
|
1419
1420
|
// src/components/NotificationCard/NotificationCard.tsx
|
|
1420
1421
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1422
|
+
var syncNotificationState = (open, isNotificationActive, setActiveStates, key = "notifications") => {
|
|
1423
|
+
if (!open && isNotificationActive) {
|
|
1424
|
+
setActiveStates((prev) => ({ ...prev, [key]: false }));
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1421
1427
|
var NotificationEmpty = ({
|
|
1422
1428
|
emptyStateImage,
|
|
1423
1429
|
emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
|
|
@@ -1754,6 +1760,20 @@ var NotificationCenter = ({
|
|
|
1754
1760
|
) })
|
|
1755
1761
|
] })
|
|
1756
1762
|
}
|
|
1763
|
+
),
|
|
1764
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1765
|
+
Modal_default,
|
|
1766
|
+
{
|
|
1767
|
+
isOpen: globalNotificationModal.isOpen,
|
|
1768
|
+
onClose: () => setGlobalNotificationModal({ isOpen: false, notification: null }),
|
|
1769
|
+
title: globalNotificationModal.notification?.title || "",
|
|
1770
|
+
variant: "activity",
|
|
1771
|
+
description: globalNotificationModal.notification?.message,
|
|
1772
|
+
image: emptyStateImage || mock_content_default,
|
|
1773
|
+
actionLink: globalNotificationModal.notification?.actionLink || void 0,
|
|
1774
|
+
actionLabel: "Ver mais",
|
|
1775
|
+
size: "lg"
|
|
1776
|
+
}
|
|
1757
1777
|
)
|
|
1758
1778
|
] });
|
|
1759
1779
|
}
|
|
@@ -1960,6 +1980,7 @@ var LegacyNotificationCard = (props) => {
|
|
|
1960
1980
|
var NotificationCard_default = NotificationCard;
|
|
1961
1981
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1962
1982
|
0 && (module.exports = {
|
|
1963
|
-
LegacyNotificationCard
|
|
1983
|
+
LegacyNotificationCard,
|
|
1984
|
+
syncNotificationState
|
|
1964
1985
|
});
|
|
1965
1986
|
//# sourceMappingURL=index.js.map
|