@streamlayer/react 1.14.8 → 1.15.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/lib/app/bet-pack.d.ts +1 -11
- package/lib/cjs/advertisement.js +2 -2
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/index2.js +3 -3
- package/lib/cjs/masters2.js +2 -2
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +13 -13
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/app/bet-pack.d.ts +1 -11
- package/lib/classic/cjs/advertisement.js +2 -2
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/index2.js +3 -3
- package/lib/classic/cjs/masters2.js +2 -2
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +10 -10
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/es/advertisement.js +5 -5
- package/lib/classic/es/bet-pack.js +16 -11
- package/lib/classic/es/index2.js +198 -194
- package/lib/classic/es/masters2.js +18 -18
- package/lib/classic/es/notification.js +49 -48
- package/lib/classic/es/points.js +18 -12
- package/lib/classic/es/provider.js +405 -390
- package/lib/classic/es/useStreamLayerApp2.js +535 -515
- package/lib/classic/masters.d.ts +1 -2
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +32 -32
- package/lib/dist/es/gamification-feature2.js +91 -89
- package/lib/dist/es/index.js +7 -8
- package/lib/dist/es/masters.js +3114 -3067
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +5 -5
- package/lib/es/bet-pack.js +16 -11
- package/lib/es/index2.js +198 -194
- package/lib/es/masters2.js +18 -18
- package/lib/es/notification.js +49 -48
- package/lib/es/points.js +18 -12
- package/lib/es/provider.js +405 -390
- package/lib/es/useStreamLayerApp2.js +535 -515
- package/lib/masters.d.ts +1 -2
- package/lib/style.css +1 -1
- package/package.json +14 -14
|
@@ -125,7 +125,7 @@ const Y_ = /* @__PURE__ */ ee("div")({
|
|
|
125
125
|
},
|
|
126
126
|
"data-promo-id": e,
|
|
127
127
|
"data-promo-type": i.type,
|
|
128
|
-
"data-
|
|
128
|
+
"data-a": "banner",
|
|
129
129
|
target: "_blank"
|
|
130
130
|
}
|
|
131
131
|
) }) });
|
|
@@ -38705,7 +38705,7 @@ const hk = (i) => {
|
|
|
38705
38705
|
backgroundColor: ((l = (a = i.banner) == null ? void 0 : a.ctaButton) == null ? void 0 : l.color) || "#009dc4",
|
|
38706
38706
|
color: ((p = (u = i.banner) == null ? void 0 : u.ctaButton) == null ? void 0 : p.textColor) || "#fff"
|
|
38707
38707
|
},
|
|
38708
|
-
"data-
|
|
38708
|
+
"data-a": "button",
|
|
38709
38709
|
"data-promo-id": t,
|
|
38710
38710
|
"data-promo-type": i.type,
|
|
38711
38711
|
target: "_blank",
|
|
@@ -38806,7 +38806,7 @@ const hk = (i) => {
|
|
|
38806
38806
|
backgroundColor: ((de = (ie = ne.banner) == null ? void 0 : ie.ctaButton) == null ? void 0 : de.color) || "#009dc4",
|
|
38807
38807
|
color: ((pe = (le = ne.banner) == null ? void 0 : le.ctaButton) == null ? void 0 : pe.textColor) || "#fff"
|
|
38808
38808
|
},
|
|
38809
|
-
"data-
|
|
38809
|
+
"data-a": "button",
|
|
38810
38810
|
"data-promo-id": ht,
|
|
38811
38811
|
"data-promo-type": ne.type,
|
|
38812
38812
|
target: "_blank",
|
|
@@ -38898,13 +38898,13 @@ const hk = (i) => {
|
|
|
38898
38898
|
const e = i.target;
|
|
38899
38899
|
if (e instanceof HTMLAnchorElement && e.target === "_blank") {
|
|
38900
38900
|
const t = e.getAttribute("data-promo-id") || "", r = e.getAttribute("data-promo-type") || ar.UNSET;
|
|
38901
|
-
e.getAttribute("data-
|
|
38901
|
+
e.getAttribute("data-a") === "button" && Yo.emit("advertisement", {
|
|
38902
38902
|
action: "buttonSelect",
|
|
38903
38903
|
payload: {
|
|
38904
38904
|
id: t,
|
|
38905
38905
|
type: r
|
|
38906
38906
|
}
|
|
38907
|
-
}), e.getAttribute("data-
|
|
38907
|
+
}), e.getAttribute("data-a") === "banner" && Yo.emit("advertisement", {
|
|
38908
38908
|
action: "bannerSelect",
|
|
38909
38909
|
payload: {
|
|
38910
38910
|
id: t,
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { u as i, e as o } from "./provider.js";
|
|
3
|
+
import { Q as a } from "./index2.js";
|
|
4
|
+
import { useEffect as c } from "react";
|
|
5
|
+
const r = (t) => {
|
|
6
|
+
const e = t.target;
|
|
7
|
+
e instanceof Element && e.getAttribute("data-a") === "intr" && o.emit("interactions", {
|
|
8
|
+
action: "tap",
|
|
9
|
+
payload: {}
|
|
10
|
+
});
|
|
11
|
+
}, d = () => {
|
|
12
|
+
const t = i();
|
|
13
|
+
return c(() => (document == null || document.addEventListener("click", r), () => {
|
|
14
|
+
document == null || document.removeEventListener("click", r);
|
|
15
|
+
}), []), t ? /* @__PURE__ */ n(a, { sdk: t }) : null;
|
|
10
16
|
};
|
|
11
17
|
export {
|
|
12
|
-
|
|
13
|
-
c as BetPackProvider
|
|
18
|
+
d as BetPackProvider
|
|
14
19
|
};
|