@streamlayer/react 1.15.0 → 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.
@@ -1,23 +1,19 @@
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) => {
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) => {
9
6
  const e = t.target;
10
- e instanceof HTMLElement && e.getAttribute("data-a") === "intr" && a.emit("interactions", {
7
+ e instanceof Element && e.getAttribute("data-a") === "intr" && o.emit("interactions", {
11
8
  action: "tap",
12
9
  payload: {}
13
10
  });
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;
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;
19
16
  };
20
17
  export {
21
- p as BetPackOverlayProvider,
22
- k as BetPackProvider
18
+ d as BetPackProvider
23
19
  };
@@ -177,7 +177,7 @@ var va;
177
177
  })(va || (va = {}));
178
178
  var ga;
179
179
  (function(e) {
180
- e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.BET_PACK_ITEM_RECEIVED = "bp-item-received", e.QUESTION_OPENED = "q-opened";
180
+ e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
181
181
  })(ga || (ga = {}));
182
182
  var ya;
183
183
  (function(e) {
@@ -9757,7 +9757,7 @@ const Rp = ({
9757
9757
  /* @__PURE__ */ E(sh, { children: [
9758
9758
  /* @__PURE__ */ c(ch, { children: r }),
9759
9759
  /* @__PURE__ */ c(uh, { children: i }),
9760
- a && /* @__PURE__ */ c(dh, { "data-a": "intr", onClick: a, children: "View Insight" })
9760
+ a && /* @__PURE__ */ c(dh, { onClick: a, children: "View Insight" })
9761
9761
  ] })
9762
9762
  ] }), fh = /* @__PURE__ */ d("div")({
9763
9763
  name: "Container",
@@ -9810,7 +9810,7 @@ const Rp = ({
9810
9810
  }), xh = ({ action: e, ...t }) => /* @__PURE__ */ E(Eh, { children: [
9811
9811
  t.title && /* @__PURE__ */ c(Ih, { children: /* @__PURE__ */ c(Sh, { children: t.title }) }),
9812
9812
  /* @__PURE__ */ c(ua, { ...t }),
9813
- e && /* @__PURE__ */ c(kh, { "data-a": "intr", onClick: e, children: "View Insight" })
9813
+ e && /* @__PURE__ */ c(kh, { onClick: e, children: "View Insight" })
9814
9814
  ] }), c3 = ({
9815
9815
  close: e,
9816
9816
  action: t,
@@ -10589,9 +10589,9 @@ const Rp = ({
10589
10589
  name: "Title",
10590
10590
  class: "t154z7mh",
10591
10591
  propsAsIs: !1
10592
- }), bC = ({ title: e, onClick: t, className: n, style: r }) => /* @__PURE__ */ c(gC, { "data-a": "intr", onClick: t, className: n, style: r, children: /* @__PURE__ */ E(yC, { children: [
10593
- /* @__PURE__ */ c(H, { name: "iconUp" }),
10594
- e && /* @__PURE__ */ c(wC, { children: e })
10592
+ }), bC = ({ title: e, onClick: t, className: n, style: r }) => /* @__PURE__ */ c(gC, { "data-a": "intr", onClick: t, className: n, style: r, children: /* @__PURE__ */ E(yC, { "data-a": "intr", children: [
10593
+ /* @__PURE__ */ c(H, { "data-a": "intr", name: "iconUp" }),
10594
+ e && /* @__PURE__ */ c(wC, { "data-a": "intr", children: e })
10595
10595
  ] }) }), LC = () => n2, EC = /* @__PURE__ */ d(LC())({
10596
10596
  name: "Container",
10597
10597
  class: "c8ol1ve",