react-notify-sdk 1.0.60 → 1.0.62

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.
@@ -93,6 +93,7 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
93
93
  .select('*')
94
94
  .eq('project_key', projectKey)
95
95
  .eq('route', pathname)
96
+ .eq('base_url', window.location.origin)
96
97
  .eq('is_active', true)
97
98
  .order('created_at', { ascending: false });
98
99
  const match = data?.find((msg) => routeMatches(msg.route, pathname, msg.base_url));
@@ -101,11 +102,13 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
101
102
  clearTimeout(fadeOutTimer); // Clear any pending timeout
102
103
  setMessage(match);
103
104
  setVisible(true); // Fade in
105
+ console.log("match set");
104
106
  }
105
107
  else {
106
108
  // Trigger fade out before removing message
107
109
  fadeOutTimer = setTimeout(() => setMessage(null), 300);
108
110
  setVisible(false);
111
+ console.log("match not set");
109
112
  }
110
113
  };
111
114
  fetchMessage();
@@ -122,9 +125,11 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
122
125
  clearTimeout(fadeOutTimer); // Clear any pending timeout
123
126
  setMessage(msg);
124
127
  setVisible(true);
128
+ console.log("renders message");
125
129
  }
126
130
  else {
127
131
  setVisible(false);
132
+ console.log("does not render message");
128
133
  fadeOutTimer = setTimeout(() => setMessage(null), 300);
129
134
  }
130
135
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
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",