react-notify-sdk 1.0.45 → 1.0.47
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/FeatureMessage.js +2 -8
- package/package.json +1 -1
package/dist/FeatureMessage.js
CHANGED
|
@@ -25,16 +25,12 @@ const FeatureMessage = ({ message, onDismiss }) => {
|
|
|
25
25
|
};
|
|
26
26
|
// Handle click with tracking
|
|
27
27
|
const handleClick = async (e) => {
|
|
28
|
-
// Don't trigger if clicking close button
|
|
29
|
-
if (e.target.closest('[data-dismiss-button]')) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
28
|
const action = message.click_action || 'none';
|
|
33
29
|
// Perform the action
|
|
34
30
|
switch (action) {
|
|
35
31
|
case 'navigate':
|
|
36
32
|
if (message.click_url) {
|
|
37
|
-
spaNavigate(
|
|
33
|
+
spaNavigate(message.click_url);
|
|
38
34
|
}
|
|
39
35
|
break;
|
|
40
36
|
case 'external':
|
|
@@ -113,9 +109,7 @@ const FeatureMessage = ({ message, onDismiss }) => {
|
|
|
113
109
|
}, children: message?.content })] }), message?.click_action && message?.click_action === "view only" ?
|
|
114
110
|
null
|
|
115
111
|
:
|
|
116
|
-
_jsx("button", {
|
|
117
|
-
//data-dismiss-button
|
|
118
|
-
style: {
|
|
112
|
+
_jsx("button", { style: {
|
|
119
113
|
width: "20%", // w-1/5
|
|
120
114
|
height: "1rem", // h-4 (16px)
|
|
121
115
|
marginTop: "auto", // my-auto
|