@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) {
@@ -9753,7 +9753,7 @@ const _p = ({
9753
9753
  /* @__PURE__ */ E(lh, { children: [
9754
9754
  /* @__PURE__ */ c(oh, { children: r }),
9755
9755
  /* @__PURE__ */ c(sh, { children: i }),
9756
- a && /* @__PURE__ */ c(ch, { "data-a": "intr", onClick: a, children: "View Insight" })
9756
+ a && /* @__PURE__ */ c(ch, { onClick: a, children: "View Insight" })
9757
9757
  ] })
9758
9758
  ] }), dh = /* @__PURE__ */ d("div")({
9759
9759
  name: "Container",
@@ -9806,7 +9806,7 @@ const _p = ({
9806
9806
  }), Ih = ({ action: e, ...t }) => /* @__PURE__ */ E(bh, { children: [
9807
9807
  t.title && /* @__PURE__ */ c(Eh, { children: /* @__PURE__ */ c(kh, { children: t.title }) }),
9808
9808
  /* @__PURE__ */ c(ua, { ...t }),
9809
- e && /* @__PURE__ */ c(Lh, { "data-a": "intr", onClick: e, children: "View Insight" })
9809
+ e && /* @__PURE__ */ c(Lh, { onClick: e, children: "View Insight" })
9810
9810
  ] }), c3 = ({
9811
9811
  close: e,
9812
9812
  action: t,
@@ -10585,9 +10585,9 @@ const _p = ({
10585
10585
  name: "Title",
10586
10586
  class: "t154z7mh",
10587
10587
  propsAsIs: !1
10588
- }), yC = ({ title: e, onClick: t, className: n, style: r }) => /* @__PURE__ */ c(CC, { "data-a": "intr", onClick: t, className: n, style: r, children: /* @__PURE__ */ E(vC, { children: [
10589
- /* @__PURE__ */ c(H, { name: "iconUp" }),
10590
- e && /* @__PURE__ */ c(gC, { children: e })
10588
+ }), yC = ({ title: e, onClick: t, className: n, style: r }) => /* @__PURE__ */ c(CC, { "data-a": "intr", onClick: t, className: n, style: r, children: /* @__PURE__ */ E(vC, { "data-a": "intr", children: [
10589
+ /* @__PURE__ */ c(H, { "data-a": "intr", name: "iconUp" }),
10590
+ e && /* @__PURE__ */ c(gC, { "data-a": "intr", children: e })
10591
10591
  ] }) }), wC = () => n2, bC = /* @__PURE__ */ d(wC())({
10592
10592
  name: "Container",
10593
10593
  class: "c8ol1ve",