react-notify-sdk 1.0.68 → 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.updated_at,
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?.updated_at;
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
- updated_at?: string;
17
- ended_at?: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "description": "SDK for displaying real-time route-specific messages in React apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",