analytica-frontend-lib 1.1.47 → 1.1.48
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.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10896,7 +10896,7 @@ var createUseNotifications = (apiClient) => {
|
|
|
10896
10896
|
getGroupedNotifications
|
|
10897
10897
|
} = useNotificationStore();
|
|
10898
10898
|
const handleNavigate = useCallback5(
|
|
10899
|
-
(entityType, entityId) => {
|
|
10899
|
+
(entityType, entityId, onAfterNavigate) => {
|
|
10900
10900
|
if (entityType && entityId) {
|
|
10901
10901
|
switch (entityType.toUpperCase()) {
|
|
10902
10902
|
case "ACTIVITY" /* ACTIVITY */:
|
|
@@ -10908,6 +10908,7 @@ var createUseNotifications = (apiClient) => {
|
|
|
10908
10908
|
default:
|
|
10909
10909
|
break;
|
|
10910
10910
|
}
|
|
10911
|
+
onAfterNavigate?.();
|
|
10911
10912
|
}
|
|
10912
10913
|
},
|
|
10913
10914
|
[]
|
|
@@ -10927,10 +10928,10 @@ var createUseNotifications = (apiClient) => {
|
|
|
10927
10928
|
[]
|
|
10928
10929
|
);
|
|
10929
10930
|
const markAsReadAndNavigate = useCallback5(
|
|
10930
|
-
async (id, entityType, entityId) => {
|
|
10931
|
+
async (id, entityType, entityId, onAfterNavigate) => {
|
|
10931
10932
|
await markAsRead(id);
|
|
10932
10933
|
if (entityType && entityId) {
|
|
10933
|
-
handleNavigate(entityType, entityId);
|
|
10934
|
+
handleNavigate(entityType, entityId, onAfterNavigate);
|
|
10934
10935
|
}
|
|
10935
10936
|
},
|
|
10936
10937
|
[markAsRead, handleNavigate]
|