@braze/web-sdk 4.6.0 → 4.6.1
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 v4.6.
|
|
2
|
+
* Type definitions for @braze/web-sdk v4.6.1
|
|
3
3
|
* Project: https://github.com/braze-inc/braze-web-sdk
|
|
4
4
|
* (c) Braze, Inc. 2023 - http://braze.com
|
|
5
5
|
* License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
|
|
@@ -1496,12 +1496,27 @@
|
|
|
1496
1496
|
subscribeToClickedEvent(subscriber: () => void): string;
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
|
+
export interface FeatureFlagStringProperty {
|
|
1500
|
+
type: "string";
|
|
1501
|
+
value: string;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
export interface FeatureFlagNumberProperty {
|
|
1505
|
+
type: "number";
|
|
1506
|
+
value: number;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
export interface FeatureFlagBooleanProperty {
|
|
1510
|
+
type: "boolean";
|
|
1511
|
+
value: boolean;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1499
1514
|
export class FeatureFlag {
|
|
1500
1515
|
/** Indicates whether or not this feature flag is enabled. */
|
|
1501
1516
|
enabled: boolean;
|
|
1502
1517
|
|
|
1503
1518
|
/** Properties of this feature flag, listed as key-value pairs. */
|
|
1504
|
-
properties:
|
|
1519
|
+
properties: Partial<Record<string, FeatureFlagStringProperty | FeatureFlagNumberProperty | FeatureFlagBooleanProperty>>;
|
|
1505
1520
|
|
|
1506
1521
|
/** The ID for this feature flag. */
|
|
1507
1522
|
id: string;
|
package/package.json
CHANGED
package/shared-lib/logger.js
CHANGED
|
@@ -24,13 +24,13 @@ const Ge = {
|
|
|
24
24
|
},
|
|
25
25
|
warn: function(n) {
|
|
26
26
|
if (Ge.zg) {
|
|
27
|
-
const o = "Braze SDK Warning: " + n + " (v4.6.
|
|
27
|
+
const o = "Braze SDK Warning: " + n + " (v4.6.1)";
|
|
28
28
|
null != Ge.nd ? Ge.nd(o) : console.warn(o);
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
error: function(n) {
|
|
32
32
|
if (Ge.zg) {
|
|
33
|
-
const o = "Braze SDK Error: " + n + " (v4.6.
|
|
33
|
+
const o = "Braze SDK Error: " + n + " (v4.6.1)";
|
|
34
34
|
null != Ge.nd ? Ge.nd(o) : console.error(o);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -12,7 +12,7 @@ export default class Ft {
|
|
|
12
12
|
}
|
|
13
13
|
ss() {
|
|
14
14
|
return {
|
|
15
|
-
s: "4.6.
|
|
15
|
+
s: "4.6.1",
|
|
16
16
|
l: this.ul,
|
|
17
17
|
e: this.bl,
|
|
18
18
|
a: this.dl,
|
|
@@ -26,7 +26,7 @@ export default class Ft {
|
|
|
26
26
|
static jn(t) {
|
|
27
27
|
let s = t.l;
|
|
28
28
|
return (
|
|
29
|
-
"4.6.
|
|
29
|
+
"4.6.1" !== t.s && (s = 0), new Ft(s, t.e, t.a, t.p, t.m, t.v, t.c, t.f)
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/ui/js/attach-css.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { OPTIONS as T } from "../../managers/braze-instance.js";
|
|
2
2
|
export function attachCSS(n, t, o) {
|
|
3
3
|
const c = n || document.querySelector("head"),
|
|
4
|
-
s = `ab-${t}-css-definitions-${"4.6.
|
|
4
|
+
s = `ab-${t}-css-definitions-${"4.6.1".replace(/\./g, "-")}`,
|
|
5
5
|
a = c.ownerDocument || document;
|
|
6
6
|
if (null == a.getElementById(s)) {
|
|
7
7
|
const n = a.createElement("style");
|