@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.
- package/lib/app/bet-pack.d.ts +1 -11
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/provider.js +2 -2
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/app/bet-pack.d.ts +1 -11
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/provider.js +2 -2
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/es/bet-pack.js +12 -16
- package/lib/classic/es/provider.js +6 -6
- package/lib/classic/es/useStreamLayerApp2.js +308 -290
- package/lib/classic/masters.d.ts +1 -2
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +30 -30
- package/lib/dist/es/index.js +7 -8
- package/lib/dist/es/masters.js +4120 -4099
- package/lib/es/bet-pack.js +12 -16
- package/lib/es/provider.js +6 -6
- package/lib/es/useStreamLayerApp2.js +308 -290
- package/lib/masters.d.ts +1 -2
- package/package.json +14 -14
package/lib/es/bet-pack.js
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { u as i, e as
|
|
3
|
-
import { Q as
|
|
4
|
-
import { useEffect as
|
|
5
|
-
const
|
|
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
|
|
7
|
+
e instanceof Element && e.getAttribute("data-a") === "intr" && o.emit("interactions", {
|
|
11
8
|
action: "tap",
|
|
12
9
|
payload: {}
|
|
13
10
|
});
|
|
14
|
-
},
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
document == null || document.removeEventListener("click",
|
|
18
|
-
}), []),
|
|
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
|
-
|
|
22
|
-
k as BetPackProvider
|
|
18
|
+
d as BetPackProvider
|
|
23
19
|
};
|
package/lib/es/provider.js
CHANGED
|
@@ -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.
|
|
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, {
|
|
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, {
|
|
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",
|