@braze/web-sdk 6.1.0 → 6.2.0
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/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definitions for @braze/web-sdk v6.
|
|
2
|
+
* Type definitions for @braze/web-sdk v6.2.0
|
|
3
3
|
* Project: https://github.com/braze-inc/braze-web-sdk
|
|
4
4
|
* (c) Braze, Inc. 2025 - http://braze.com
|
|
5
5
|
* License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
|
|
@@ -2138,7 +2138,7 @@ export function openSession(): void;
|
|
|
2138
2138
|
* - Create a `service-worker.js` file with the content below and place it in the root directory of your website:
|
|
2139
2139
|
*
|
|
2140
2140
|
* ```
|
|
2141
|
-
* self.importScripts('https://js.appboycdn.com/web-sdk/6.
|
|
2141
|
+
* self.importScripts('https://js.appboycdn.com/web-sdk/6.2/service-worker.js');
|
|
2142
2142
|
* ```
|
|
2143
2143
|
*
|
|
2144
2144
|
* For more details, see [Our Product Documentation](https://www.braze.com/docs/developer_guide/platform_integration_guides/web/push_notifications/integration).
|
|
@@ -2561,7 +2561,7 @@ export type InitializationOptions = {
|
|
|
2561
2561
|
* lifecycle of, set this option to true and the Braze SDK will not register or unregister a service worker. If you set this
|
|
2562
2562
|
* option to true, in order for push to function correctly you must register the service worker yourself BEFORE calling
|
|
2563
2563
|
* `requestPushPermission`, and ensure that it contains Braze's service worker code, either with
|
|
2564
|
-
* `self.importScripts('https://js.appboycdn.com/web-sdk/6.
|
|
2564
|
+
* `self.importScripts('https://js.appboycdn.com/web-sdk/6.2/service-worker.js');` or by including the content
|
|
2565
2565
|
* of that file directly. When this option is true, the `serviceWorkerLocation` option is irrelevant and is ignored.
|
|
2566
2566
|
*/
|
|
2567
2567
|
manageServiceWorkerExternally?: boolean;
|
package/package.json
CHANGED
package/shared-lib/logger.js
CHANGED
|
@@ -24,13 +24,13 @@ const E = {
|
|
|
24
24
|
},
|
|
25
25
|
warn: function (n) {
|
|
26
26
|
if (E.zg) {
|
|
27
|
-
const o = "Braze SDK Warning: " + n + " (v6.
|
|
27
|
+
const o = "Braze SDK Warning: " + n + " (v6.2.0)";
|
|
28
28
|
null != E.vd ? E.vd(o) : console.warn(o);
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
error: function (n) {
|
|
32
32
|
if (E.zg) {
|
|
33
|
-
const o = "Braze SDK Error: " + n + " (v6.
|
|
33
|
+
const o = "Braze SDK Error: " + n + " (v6.2.0)";
|
|
34
34
|
null != E.vd ? E.vd(o) : console.error(o);
|
|
35
35
|
}
|
|
36
36
|
},
|
|
@@ -38,7 +38,7 @@ export default class ni {
|
|
|
38
38
|
}
|
|
39
39
|
dt() {
|
|
40
40
|
return {
|
|
41
|
-
s: "6.
|
|
41
|
+
s: "6.2.0",
|
|
42
42
|
l: this.ol,
|
|
43
43
|
e: this.bl,
|
|
44
44
|
a: this.fl,
|
|
@@ -54,7 +54,7 @@ export default class ni {
|
|
|
54
54
|
static qn(t) {
|
|
55
55
|
let i = t.l;
|
|
56
56
|
return (
|
|
57
|
-
"6.
|
|
57
|
+
"6.2.0" !== t.s && (i = 0),
|
|
58
58
|
new ni(i, t.e, t.a, t.p, t.m, t.v, t.c, t.f, t.grl, t.b)
|
|
59
59
|
);
|
|
60
60
|
}
|
package/src/ui/js/attach-css.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r, { OPTIONS as z } from "../../managers/braze-instance.js";
|
|
2
2
|
export function attachCSS(n, t, o) {
|
|
3
3
|
const c = n || document.querySelector("head"),
|
|
4
|
-
e = `ab-${t}-css-definitions-${"6.
|
|
4
|
+
e = `ab-${t}-css-definitions-${"6.2.0".replace(/\./g, "-")}`;
|
|
5
5
|
if (!c) return;
|
|
6
6
|
const s = c.ownerDocument || document;
|
|
7
7
|
if (null == s.getElementById(e)) {
|
|
@@ -81,6 +81,8 @@ di.kg = [
|
|
|
81
81
|
{ string: navigator.platform, cf: "Pike v", identity: so.co },
|
|
82
82
|
{ string: navigator.userAgent, cf: ["Web0S"], identity: "WebOS" },
|
|
83
83
|
{ string: navigator.userAgent, cf: "Tizen", identity: "Tizen" },
|
|
84
|
+
{ string: navigator.userAgent, cf: "Coolita", identity: "Other Smart TV" },
|
|
85
|
+
{ string: navigator.userAgent, cf: "WhaleTV", identity: "Other Smart TV" },
|
|
84
86
|
{
|
|
85
87
|
string: navigator.platform,
|
|
86
88
|
cf: ["Linux armv7l", "Android"],
|