@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.
Files changed (46) hide show
  1. package/lib/app/bet-pack.d.ts +1 -11
  2. package/lib/cjs/advertisement.js +2 -2
  3. package/lib/cjs/bet-pack.js +1 -1
  4. package/lib/cjs/index2.js +3 -3
  5. package/lib/cjs/masters2.js +2 -2
  6. package/lib/cjs/notification.js +1 -1
  7. package/lib/cjs/points.js +1 -1
  8. package/lib/cjs/provider.js +13 -13
  9. package/lib/cjs/useStreamLayerApp2.js +9 -9
  10. package/lib/classic/app/bet-pack.d.ts +1 -11
  11. package/lib/classic/cjs/advertisement.js +2 -2
  12. package/lib/classic/cjs/bet-pack.js +1 -1
  13. package/lib/classic/cjs/index2.js +3 -3
  14. package/lib/classic/cjs/masters2.js +2 -2
  15. package/lib/classic/cjs/notification.js +1 -1
  16. package/lib/classic/cjs/points.js +1 -1
  17. package/lib/classic/cjs/provider.js +10 -10
  18. package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
  19. package/lib/classic/es/advertisement.js +5 -5
  20. package/lib/classic/es/bet-pack.js +16 -11
  21. package/lib/classic/es/index2.js +198 -194
  22. package/lib/classic/es/masters2.js +18 -18
  23. package/lib/classic/es/notification.js +49 -48
  24. package/lib/classic/es/points.js +18 -12
  25. package/lib/classic/es/provider.js +405 -390
  26. package/lib/classic/es/useStreamLayerApp2.js +535 -515
  27. package/lib/classic/masters.d.ts +1 -2
  28. package/lib/classic/style.css +1 -1
  29. package/lib/dist/cjs/gamification-feature2.js +1 -1
  30. package/lib/dist/cjs/index.js +1 -1
  31. package/lib/dist/cjs/masters.js +32 -32
  32. package/lib/dist/es/gamification-feature2.js +91 -89
  33. package/lib/dist/es/index.js +7 -8
  34. package/lib/dist/es/masters.js +3114 -3067
  35. package/lib/dist/style.css +1 -1
  36. package/lib/es/advertisement.js +5 -5
  37. package/lib/es/bet-pack.js +16 -11
  38. package/lib/es/index2.js +198 -194
  39. package/lib/es/masters2.js +18 -18
  40. package/lib/es/notification.js +49 -48
  41. package/lib/es/points.js +18 -12
  42. package/lib/es/provider.js +405 -390
  43. package/lib/es/useStreamLayerApp2.js +535 -515
  44. package/lib/masters.d.ts +1 -2
  45. package/lib/style.css +1 -1
  46. 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,19 @@
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 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
- f as BetPackOverlayProvider,
13
- c as BetPackProvider
18
+ d as BetPackProvider
14
19
  };