@streamlayer/react 1.15.0 → 1.15.2

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
  };