@streamlayer/react 1.14.8 → 1.15.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.
Files changed (40) hide show
  1. package/lib/cjs/advertisement.js +2 -2
  2. package/lib/cjs/bet-pack.js +1 -1
  3. package/lib/cjs/index2.js +3 -3
  4. package/lib/cjs/masters2.js +2 -2
  5. package/lib/cjs/notification.js +1 -1
  6. package/lib/cjs/points.js +1 -1
  7. package/lib/cjs/provider.js +13 -13
  8. package/lib/cjs/useStreamLayerApp2.js +5 -5
  9. package/lib/classic/cjs/advertisement.js +2 -2
  10. package/lib/classic/cjs/bet-pack.js +1 -1
  11. package/lib/classic/cjs/index2.js +3 -3
  12. package/lib/classic/cjs/masters2.js +2 -2
  13. package/lib/classic/cjs/notification.js +1 -1
  14. package/lib/classic/cjs/points.js +1 -1
  15. package/lib/classic/cjs/provider.js +10 -10
  16. package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
  17. package/lib/classic/es/advertisement.js +5 -5
  18. package/lib/classic/es/bet-pack.js +20 -11
  19. package/lib/classic/es/index2.js +198 -194
  20. package/lib/classic/es/masters2.js +18 -18
  21. package/lib/classic/es/notification.js +49 -48
  22. package/lib/classic/es/points.js +18 -12
  23. package/lib/classic/es/provider.js +404 -389
  24. package/lib/classic/es/useStreamLayerApp2.js +252 -250
  25. package/lib/classic/style.css +1 -1
  26. package/lib/dist/cjs/gamification-feature2.js +1 -1
  27. package/lib/dist/cjs/masters.js +31 -31
  28. package/lib/dist/es/gamification-feature2.js +91 -89
  29. package/lib/dist/es/masters.js +4530 -4504
  30. package/lib/dist/style.css +1 -1
  31. package/lib/es/advertisement.js +5 -5
  32. package/lib/es/bet-pack.js +20 -11
  33. package/lib/es/index2.js +198 -194
  34. package/lib/es/masters2.js +18 -18
  35. package/lib/es/notification.js +49 -48
  36. package/lib/es/points.js +18 -12
  37. package/lib/es/provider.js +404 -389
  38. package/lib/es/useStreamLayerApp2.js +252 -250
  39. package/lib/style.css +1 -1
  40. 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-analytics": "banner",
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-analytics": "button",
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-analytics": "button",
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-analytics") === "button" && Yo.emit("advertisement", {
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-analytics") === "banner" && Yo.emit("advertisement", {
38907
+ }), e.getAttribute("data-a") === "banner" && Yo.emit("advertisement", {
38908
38908
  action: "bannerSelect",
38909
38909
  payload: {
38910
38910
  id: t,
@@ -1,14 +1,23 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { K as s, e as u } from "./index2.js";
3
- import { u as o } from "./provider.js";
4
- const c = () => {
5
- const r = o();
6
- return r ? /* @__PURE__ */ t(s, { sdk: r }) : null;
7
- }, f = ({ close: r, onEvent: n }) => {
8
- const e = o();
9
- return e ? /* @__PURE__ */ t(u, { sdk: e, onEvent: n, close: r }) : null;
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { u as i, e as a } from "./provider.js";
3
+ import { Q as c, n as s } from "./index2.js";
4
+ import { useEffect as m } from "react";
5
+ const k = () => {
6
+ const t = i();
7
+ return t ? /* @__PURE__ */ o(c, { sdk: t }) : null;
8
+ }, n = (t) => {
9
+ const e = t.target;
10
+ e instanceof HTMLElement && e.getAttribute("data-a") === "intr" && a.emit("interactions", {
11
+ action: "tap",
12
+ payload: {}
13
+ });
14
+ }, p = ({ close: t, onEvent: e }) => {
15
+ const r = i();
16
+ return m(() => (document == null || document.addEventListener("click", n), () => {
17
+ document == null || document.removeEventListener("click", n);
18
+ }), []), r ? /* @__PURE__ */ o(s, { sdk: r, onEvent: e, close: t }) : null;
10
19
  };
11
20
  export {
12
- f as BetPackOverlayProvider,
13
- c as BetPackProvider
21
+ p as BetPackOverlayProvider,
22
+ k as BetPackProvider
14
23
  };