react-notify-sdk 1.0.69 → 1.0.70
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.
|
@@ -54,7 +54,7 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
|
|
|
54
54
|
dismissed[message.id] = {
|
|
55
55
|
messageId: message.id,
|
|
56
56
|
dismissedAt: new Date().toISOString(),
|
|
57
|
-
messageUpdatedAt: message.
|
|
57
|
+
messageUpdatedAt: message.created_at,
|
|
58
58
|
};
|
|
59
59
|
localStorage.setItem(DISMISSED_KEY, JSON.stringify(dismissed));
|
|
60
60
|
setVisible(false);
|
|
@@ -64,7 +64,7 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
|
|
|
64
64
|
if (!dismissed)
|
|
65
65
|
return false;
|
|
66
66
|
// Re-show if message changed
|
|
67
|
-
return dismissed.messageUpdatedAt === message?.
|
|
67
|
+
return dismissed.messageUpdatedAt === message?.created_at;
|
|
68
68
|
};
|
|
69
69
|
// --------------------------------------------
|
|
70
70
|
// PATHNAME TRACKING
|
package/dist/types.d.ts
CHANGED
|
@@ -10,11 +10,10 @@ export type FeatureMessages = {
|
|
|
10
10
|
borderColor: string;
|
|
11
11
|
textColor: string;
|
|
12
12
|
width: number;
|
|
13
|
-
borderWidth: number;
|
|
14
13
|
is_active: boolean;
|
|
15
14
|
created_at: string;
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
start_at?: string;
|
|
16
|
+
end_at?: string;
|
|
18
17
|
type?: 'Information' | 'Warning' | 'Error';
|
|
19
18
|
click_action?: 'view only' | 'navigate' | 'external' | 'dismiss';
|
|
20
19
|
click_url?: string;
|