@notificationapi/react 1.1.2 → 1.1.3
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.
|
@@ -309,7 +309,7 @@ const Z = async (e, c, i, a, f, b, h) => {
|
|
|
309
309
|
}
|
|
310
310
|
]
|
|
311
311
|
};
|
|
312
|
-
await u.identify(r),
|
|
312
|
+
await u.identify(r), localStorage.setItem("hideWebPushOptInMessage", "true");
|
|
313
313
|
}) : s === "denied" && console.log("Permission for notifications was denied");
|
|
314
314
|
});
|
|
315
315
|
}).catch((t) => {
|
|
@@ -335,11 +335,11 @@ const Z = async (e, c, i, a, f, b, h) => {
|
|
|
335
335
|
h(t);
|
|
336
336
|
});
|
|
337
337
|
}, [u, O, M]), P(() => {
|
|
338
|
-
F && "Notification" in window && typeof Notification.requestPermission == "function" && Notification.permission !== "default" && N(!1),
|
|
339
|
-
localStorage.getItem("hideWebPushOptInMessage") !== "true"
|
|
340
|
-
), u.getUserAccountMetadata().then((t) => {
|
|
338
|
+
F && "Notification" in window && typeof Notification.requestPermission == "function" && Notification.permission !== "default" && N(!1), u.getUserAccountMetadata().then((t) => {
|
|
341
339
|
g(t), N(t.userAccountMetadata.hasWebPushEnabled);
|
|
342
|
-
})
|
|
340
|
+
}), v === "AUTOMATIC" && N(
|
|
341
|
+
localStorage.getItem("hideWebPushOptInMessage") !== "true"
|
|
342
|
+
);
|
|
343
343
|
}, [u, v]), P(() => {
|
|
344
344
|
L && M();
|
|
345
345
|
}, [L, M]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notificationapi/react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"overrides": {
|
|
7
7
|
"esbuild": "^0.25.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"glob": "^10.4.1",
|
|
48
48
|
"prettier": "^3.3.3",
|
|
49
49
|
"typescript": "^5.2.2",
|
|
50
|
-
"vite": "^5.4.
|
|
50
|
+
"vite": "^5.4.18",
|
|
51
51
|
"vite-plugin-dts": "^3.9.1",
|
|
52
52
|
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
53
53
|
},
|