@streamlayer/react 1.24.4 → 1.24.6
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/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +26 -26
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -1
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +4 -1
- package/lib/cjs/index14.js +1 -4
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +2 -2
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index4.js +3 -3
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index9.js +2 -2
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters2.js +3 -3
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +13 -13
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +26 -26
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +1 -1
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index7.js +2 -2
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +13 -13
- package/lib/classic/es/Question.js +313 -198
- package/lib/classic/es/advertisement.js +1988 -1955
- package/lib/classic/es/bet-pack.js +12 -13
- package/lib/classic/es/feature.js +188 -37
- package/lib/{es/index-ByUNFvMk.js → classic/es/index-CfSdnrfA.js} +1 -1
- package/lib/classic/es/index10.js +309 -2580
- package/lib/classic/es/index11.js +2580 -305
- package/lib/classic/es/index12.js +12 -12
- package/lib/classic/es/index13.js +2 -2
- package/lib/classic/es/index2.js +129 -121
- package/lib/classic/es/index5.js +0 -1
- package/lib/classic/es/index7.js +2 -2
- package/lib/classic/es/index8.js +1 -1
- package/lib/classic/es/index9.js +1 -1
- package/lib/classic/es/insight.js +1 -1
- package/lib/classic/es/notification2.js +137 -138
- package/lib/classic/es/pause-ad.js +124 -149
- package/lib/classic/es/points.js +3 -4
- package/lib/classic/es/polymarket.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +2932 -2876
- package/lib/classic/source.css +1 -1
- package/lib/dist/cjs/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
- package/lib/dist/cjs/masters.js +31 -31
- package/lib/dist/es/{index-ByUNFvMk.js → index-CfSdnrfA.js} +1 -1
- package/lib/dist/es/masters.js +7958 -7773
- package/lib/dist/index.d.ts +2 -0
- package/lib/es/Question.js +66 -65
- package/lib/es/advertisement.js +1988 -1955
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/feature.js +188 -37
- package/lib/{classic/es/index-ByUNFvMk.js → es/index-CfSdnrfA.js} +1 -1
- package/lib/es/index10.js +1 -1
- package/lib/es/index11.js +12 -12
- package/lib/es/index12.js +366 -2579
- package/lib/es/index13.js +789 -234
- package/lib/es/index14.js +293 -792
- package/lib/es/index15.js +2580 -305
- package/lib/es/index16.js +41 -42
- package/lib/es/index2.js +279 -271
- package/lib/es/index4.js +15 -16
- package/lib/es/index6.js +0 -1
- package/lib/es/index7.js +1 -1
- package/lib/es/index9.js +2 -2
- package/lib/es/insight.js +1 -1
- package/lib/es/masters2.js +194 -183
- package/lib/es/notification.js +22 -23
- package/lib/es/pause-ad.js +124 -149
- package/lib/es/points.js +20 -21
- package/lib/es/polymarket.js +1 -1
- package/lib/es/storage.js +1 -1
- package/lib/es/useStreamLayerApp2.js +2932 -2876
- package/lib/source.css +1 -1
- package/lib/style.css +1 -1
- package/package.json +72 -53
- package/lib/cjs/sl-types.js +0 -1
- package/lib/classic/cjs/sl-types.js +0 -1
- package/lib/classic/es/sl-types.js +0 -156
- package/lib/es/sl-types.js +0 -156
|
@@ -1,71 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { h as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Y as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as a, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { h as F } from "./index8.js";
|
|
3
|
+
import { useEffect as i, useState as _, useRef as g, useCallback as R, Component as M } from "react";
|
|
4
|
+
import { s as h, c as w, u as j } from "./feature.js";
|
|
5
|
+
import { e as k } from "./index4.js";
|
|
6
|
+
import { d as K } from "./index11.js";
|
|
7
|
+
import { Y as V, _ as z } from "./hooks-n9ax4LRT.js";
|
|
8
|
+
const G = /* @__PURE__ */ h("div")({
|
|
9
9
|
name: "PauseAdOverlay",
|
|
10
10
|
class: "pw9gih8",
|
|
11
11
|
propsAsIs: !1
|
|
12
|
-
}),
|
|
12
|
+
}), H = /* @__PURE__ */ h("div")({
|
|
13
13
|
name: "PauseAdContent",
|
|
14
14
|
class: "p8lpomy",
|
|
15
15
|
propsAsIs: !1
|
|
16
|
-
}),
|
|
17
|
-
name: "PauseAdTopLeft",
|
|
18
|
-
class: "pv7u167",
|
|
19
|
-
propsAsIs: !1
|
|
20
|
-
}), Y = /* @__PURE__ */ d("h2")({
|
|
21
|
-
name: "PauseAdTitle",
|
|
22
|
-
class: "p1kh2yb0",
|
|
23
|
-
propsAsIs: !1
|
|
24
|
-
}), H = /* @__PURE__ */ d("p")({
|
|
25
|
-
name: "PauseAdCaption",
|
|
26
|
-
class: "pl8f94x",
|
|
27
|
-
propsAsIs: !1
|
|
28
|
-
}), J = /* @__PURE__ */ d("div")({
|
|
16
|
+
}), O = /* @__PURE__ */ h("div")({
|
|
29
17
|
name: "PauseAdBottomLeft",
|
|
30
|
-
class: "
|
|
18
|
+
class: "pv7u167",
|
|
31
19
|
propsAsIs: !1
|
|
32
|
-
}),
|
|
20
|
+
}), Y = /* @__PURE__ */ h("button")({
|
|
33
21
|
name: "PauseAdPlayButton",
|
|
34
|
-
class: "
|
|
22
|
+
class: "p1kh2yb0",
|
|
35
23
|
propsAsIs: !1
|
|
36
|
-
}),
|
|
24
|
+
}), q = /* @__PURE__ */ h("div")({
|
|
37
25
|
name: "PauseAdSidebarGradient",
|
|
38
|
-
class: "
|
|
26
|
+
class: "pl8f94x",
|
|
39
27
|
propsAsIs: !1
|
|
40
|
-
}),
|
|
28
|
+
}), J = /* @__PURE__ */ h("div")({
|
|
41
29
|
name: "PauseAdSidebar",
|
|
42
|
-
class: "
|
|
43
|
-
propsAsIs: !1
|
|
44
|
-
}), ee = /* @__PURE__ */ d("span")({
|
|
45
|
-
name: "PauseAdTitleDescription",
|
|
46
|
-
class: "p14estxv",
|
|
30
|
+
class: "p1m6zmrt",
|
|
47
31
|
propsAsIs: !1
|
|
48
|
-
}),
|
|
32
|
+
}), U = /* @__PURE__ */ h("img")({
|
|
49
33
|
name: "ExternalAdContainer",
|
|
50
|
-
class: "
|
|
34
|
+
class: "em3vwfa",
|
|
51
35
|
propsAsIs: !1
|
|
52
|
-
}),
|
|
53
|
-
vastUrl:
|
|
54
|
-
isDesktop:
|
|
36
|
+
}), Q = ({
|
|
37
|
+
vastUrl: d,
|
|
38
|
+
isDesktop: n,
|
|
55
39
|
content: e
|
|
56
|
-
}) => (
|
|
57
|
-
e.imageSrc && e.id &&
|
|
40
|
+
}) => (i(() => {
|
|
41
|
+
e.imageSrc && e.id && k.emit("exposedPauseAd", {
|
|
58
42
|
action: "rendered",
|
|
59
43
|
payload: {
|
|
60
44
|
id: e.id,
|
|
61
45
|
parentId: e.parentId
|
|
62
46
|
}
|
|
63
47
|
});
|
|
64
|
-
}, [e,
|
|
48
|
+
}, [e, d]), e?.imageSrc ? !e.adUrl || !n ? /* @__PURE__ */ a(U, { src: e.imageSrc }) : /* @__PURE__ */ a(
|
|
65
49
|
"a",
|
|
66
50
|
{
|
|
67
51
|
onClick: () => {
|
|
68
|
-
|
|
52
|
+
k.emit("exposedPauseAd", {
|
|
69
53
|
action: "navigated",
|
|
70
54
|
payload: {
|
|
71
55
|
id: e.id,
|
|
@@ -76,182 +60,173 @@ const O = /* @__PURE__ */ d("div")({
|
|
|
76
60
|
href: e.adUrl,
|
|
77
61
|
target: "_blank",
|
|
78
62
|
rel: "noopener noreferrer",
|
|
79
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ a(U, { src: e.imageSrc })
|
|
80
64
|
}
|
|
81
|
-
) : null),
|
|
82
|
-
const
|
|
65
|
+
) : null), W = ({ isClosing: d, content: n, externalPauseAdStore: e, onPlay: l, onClose: u, vastUrl: c, options: v, isDesktop: r }) => {
|
|
66
|
+
const m = v?.showPauseButton ?? !0, { ref: t, focusSelf: y } = K.useFocusable({
|
|
83
67
|
focusKey: "sl-pause-ad-play",
|
|
84
68
|
onEnterRelease: l,
|
|
85
69
|
isFocusBoundary: !0,
|
|
86
70
|
forceFocus: !0
|
|
87
71
|
});
|
|
88
|
-
return
|
|
72
|
+
return i(() => () => {
|
|
89
73
|
e.revalidate();
|
|
90
|
-
}, [e]),
|
|
91
|
-
|
|
92
|
-
}, [
|
|
74
|
+
}, [e]), i(() => {
|
|
75
|
+
t.current && y();
|
|
76
|
+
}, [t, y]), i(() => {
|
|
93
77
|
if (!u)
|
|
94
78
|
return () => {
|
|
95
79
|
};
|
|
96
|
-
const
|
|
97
|
-
const s =
|
|
80
|
+
const b = (f) => {
|
|
81
|
+
const s = f.keyCode;
|
|
98
82
|
if (s === 461 || s === 10009 || s === 27 || s === 8) {
|
|
99
|
-
|
|
83
|
+
f.preventDefault(), f.stopPropagation(), f.stopImmediatePropagation(), u();
|
|
100
84
|
return;
|
|
101
85
|
}
|
|
102
86
|
};
|
|
103
|
-
return window.addEventListener("keydown",
|
|
104
|
-
}, [u]), /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */ r(H, { children: f })
|
|
108
|
-
] }),
|
|
109
|
-
b && /* @__PURE__ */ r(J, { children: /* @__PURE__ */ r(
|
|
110
|
-
Q,
|
|
87
|
+
return window.addEventListener("keydown", b, { capture: !0 }), () => window.removeEventListener("keydown", b, { capture: !0 });
|
|
88
|
+
}, [u]), /* @__PURE__ */ a(G, { className: w("SL_PauseAd", d && "pause-ad-closing"), children: /* @__PURE__ */ B(H, { children: [
|
|
89
|
+
m && /* @__PURE__ */ a(O, { children: /* @__PURE__ */ a(
|
|
90
|
+
Y,
|
|
111
91
|
{
|
|
112
|
-
ref:
|
|
92
|
+
ref: t,
|
|
113
93
|
onClick: l,
|
|
114
|
-
onMouseEnter: () =>
|
|
94
|
+
onMouseEnter: () => t.current.focus(),
|
|
115
95
|
"aria-label": "Resume playback"
|
|
116
96
|
}
|
|
117
97
|
) }),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
t && /* @__PURE__ */ r(re, { content: a, isDesktop: n, vastUrl: t }),
|
|
120
|
-
/* @__PURE__ */ r(ee, { children: "ADVERTISEMENT" })
|
|
121
|
-
] }) })
|
|
98
|
+
/* @__PURE__ */ a(q, { className: w("SL_PauseAdSidebar", r && "SL_PauseAdSidebar--desktop"), children: /* @__PURE__ */ a(J, { className: w(r && "SL_PauseAdSidebar__content--desktop"), children: c && /* @__PURE__ */ a(Q, { content: n, isDesktop: r, vastUrl: c }) }) })
|
|
122
99
|
] }) });
|
|
123
|
-
},
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
const [
|
|
127
|
-
refetchInterval:
|
|
128
|
-
$enabled:
|
|
129
|
-
prefetch:
|
|
130
|
-
}),
|
|
100
|
+
}, X = ({ showPauseAd: d, vastUrls: n, sdk: e, onClose: l, onRender: u, options: c, isDesktop: v }) => {
|
|
101
|
+
const r = c?.pauseAdDelay ?? 0, m = c?.pauseAdRefetchInterval ?? 1e3 * 60 * 50, [t, y] = _(!1), [b, f] = _(!1), s = g(), P = n?.[0].url, A = g(P), S = g(""), I = g("");
|
|
102
|
+
A.current = P;
|
|
103
|
+
const [p, L] = e.advertisement.getExternalPauseAd(P, {
|
|
104
|
+
refetchInterval: m,
|
|
105
|
+
$enabled: r === 0 || !!d,
|
|
106
|
+
prefetch: r === 0 && m > 0
|
|
107
|
+
}), x = j(p), C = R(() => {
|
|
131
108
|
if (l) {
|
|
132
|
-
|
|
133
|
-
const o =
|
|
134
|
-
|
|
109
|
+
I.current = A.current;
|
|
110
|
+
const o = p.get().data;
|
|
111
|
+
k.emit("exposedPauseAd", {
|
|
135
112
|
action: "closed",
|
|
136
|
-
payload: o?.url ===
|
|
113
|
+
payload: o?.url === I.current ? {
|
|
137
114
|
id: o?.id,
|
|
138
115
|
parentId: o?.parentId
|
|
139
116
|
} : {}
|
|
140
117
|
}), l();
|
|
141
118
|
}
|
|
142
|
-
}, [l,
|
|
143
|
-
|
|
144
|
-
}, [
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
}, [
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
const o =
|
|
151
|
-
|
|
119
|
+
}, [l, p]), N = R(() => {
|
|
120
|
+
e.controlVideoPlayer({ play: !0 });
|
|
121
|
+
}, [e]);
|
|
122
|
+
return i(() => {
|
|
123
|
+
L === A.current && x.error && (clearTimeout(s.current), C?.());
|
|
124
|
+
}, [x, C, L]), i(() => {
|
|
125
|
+
if (d && P) {
|
|
126
|
+
S.current = A.current, I.current = "";
|
|
127
|
+
const o = p.get().data;
|
|
128
|
+
k.emit("exposedPauseAd", {
|
|
152
129
|
action: "enabled",
|
|
153
|
-
payload: o?.url ===
|
|
130
|
+
payload: o?.url === S.current ? {
|
|
154
131
|
id: o?.id,
|
|
155
132
|
parentId: o?.parentId
|
|
156
133
|
} : {}
|
|
157
134
|
});
|
|
158
|
-
const
|
|
159
|
-
const
|
|
160
|
-
(!
|
|
161
|
-
|
|
135
|
+
const T = () => {
|
|
136
|
+
const E = p.get(), D = E.data;
|
|
137
|
+
(!D || D?.url === A.current) && (!E.loading && D?.imageSrc ? (clearTimeout(s.current), f(!1), y(!0)) : E.loading && (s.current = setTimeout(() => {
|
|
138
|
+
T();
|
|
162
139
|
}, 200)));
|
|
163
140
|
};
|
|
164
141
|
clearTimeout(s.current), s.current = setTimeout(() => {
|
|
165
|
-
|
|
166
|
-
},
|
|
142
|
+
T();
|
|
143
|
+
}, r);
|
|
167
144
|
} else {
|
|
168
|
-
if (
|
|
169
|
-
const o =
|
|
170
|
-
|
|
145
|
+
if (I.current !== A.current) {
|
|
146
|
+
const o = p.get().data;
|
|
147
|
+
I.current = "", S.current !== "" && (k.emit("exposedPauseAd", {
|
|
171
148
|
action: "disabled",
|
|
172
|
-
payload:
|
|
149
|
+
payload: S.current === o?.url ? {
|
|
173
150
|
id: o?.id,
|
|
174
151
|
parentId: o?.parentId
|
|
175
152
|
} : {}
|
|
176
|
-
}),
|
|
153
|
+
}), S.current = "");
|
|
177
154
|
}
|
|
178
|
-
|
|
179
|
-
|
|
155
|
+
f(!0), s.current = setTimeout(() => {
|
|
156
|
+
y(!1);
|
|
180
157
|
}, 400);
|
|
181
158
|
}
|
|
182
159
|
return () => {
|
|
183
160
|
s.current && clearTimeout(s.current);
|
|
184
161
|
};
|
|
185
|
-
}, [
|
|
186
|
-
u?.({ rendered:
|
|
187
|
-
}, [
|
|
162
|
+
}, [p, C, r, d, P]), i(() => {
|
|
163
|
+
u?.({ rendered: t });
|
|
164
|
+
}, [t, u]), i(() => () => {
|
|
188
165
|
u?.({ rendered: !1 });
|
|
189
|
-
}, [u]), !
|
|
190
|
-
|
|
166
|
+
}, [u]), !t || !x.data ? null : /* @__PURE__ */ a(
|
|
167
|
+
W,
|
|
191
168
|
{
|
|
192
|
-
onClose:
|
|
193
|
-
isClosing:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
externalPauseAdStore: m,
|
|
201
|
-
content: k.data
|
|
169
|
+
onClose: C,
|
|
170
|
+
isClosing: b,
|
|
171
|
+
onPlay: N,
|
|
172
|
+
vastUrl: P,
|
|
173
|
+
options: c,
|
|
174
|
+
isDesktop: v,
|
|
175
|
+
externalPauseAdStore: p,
|
|
176
|
+
content: x.data
|
|
202
177
|
}
|
|
203
178
|
);
|
|
204
|
-
},
|
|
205
|
-
showPauseAd:
|
|
206
|
-
pauseAdVastUrl:
|
|
179
|
+
}, Z = ({
|
|
180
|
+
showPauseAd: d,
|
|
181
|
+
pauseAdVastUrl: n,
|
|
207
182
|
videoPlayerController: e,
|
|
208
|
-
onRenderPauseAd:
|
|
209
|
-
onClosePauseAd:
|
|
210
|
-
children:
|
|
211
|
-
options:
|
|
183
|
+
onRenderPauseAd: l,
|
|
184
|
+
onClosePauseAd: u,
|
|
185
|
+
children: c,
|
|
186
|
+
options: v
|
|
212
187
|
}) => {
|
|
213
|
-
const
|
|
214
|
-
return
|
|
215
|
-
|
|
188
|
+
const r = V(), m = z(), t = g();
|
|
189
|
+
return i(() => r ? (e && (t.current = e, r.addVideoPlayerController(t.current)), () => {
|
|
190
|
+
t.current && r.removeVideoPlayerController(t.current);
|
|
216
191
|
}) : () => {
|
|
217
|
-
}, [
|
|
218
|
-
|
|
192
|
+
}, [r, e]), r ? /* @__PURE__ */ a("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ B(
|
|
193
|
+
F,
|
|
219
194
|
{
|
|
220
|
-
style:
|
|
221
|
-
customTheme:
|
|
222
|
-
themeMode:
|
|
195
|
+
style: c ? { position: "relative" } : {},
|
|
196
|
+
customTheme: m.theme,
|
|
197
|
+
themeMode: m.themeMode,
|
|
223
198
|
children: [
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
199
|
+
c,
|
|
200
|
+
n && /* @__PURE__ */ a(
|
|
201
|
+
X,
|
|
227
202
|
{
|
|
228
|
-
sdk:
|
|
229
|
-
showPauseAd:
|
|
230
|
-
vastUrls:
|
|
231
|
-
onClose:
|
|
232
|
-
onRender:
|
|
233
|
-
options:
|
|
203
|
+
sdk: r,
|
|
204
|
+
showPauseAd: d,
|
|
205
|
+
vastUrls: n,
|
|
206
|
+
onClose: u,
|
|
207
|
+
onRender: l,
|
|
208
|
+
options: v,
|
|
234
209
|
isDesktop: !0
|
|
235
210
|
}
|
|
236
211
|
)
|
|
237
212
|
]
|
|
238
213
|
}
|
|
239
|
-
) }) :
|
|
214
|
+
) }) : c;
|
|
240
215
|
};
|
|
241
|
-
class
|
|
242
|
-
constructor(
|
|
243
|
-
super(
|
|
216
|
+
class oe extends M {
|
|
217
|
+
constructor(n) {
|
|
218
|
+
super(n), this.state = { hasError: !1 };
|
|
244
219
|
}
|
|
245
220
|
static getDerivedStateFromError() {
|
|
246
221
|
return { hasError: !0 };
|
|
247
222
|
}
|
|
248
|
-
componentDidCatch(
|
|
249
|
-
console.error(
|
|
223
|
+
componentDidCatch(n, e) {
|
|
224
|
+
console.error(n, e.componentStack);
|
|
250
225
|
}
|
|
251
226
|
render() {
|
|
252
|
-
return this.state.hasError ? this.props.children : /* @__PURE__ */
|
|
227
|
+
return this.state.hasError ? this.props.children : /* @__PURE__ */ a(Z, { ...this.props });
|
|
253
228
|
}
|
|
254
229
|
}
|
|
255
230
|
export {
|
|
256
|
-
|
|
231
|
+
oe as StreamLayerPauseAd
|
|
257
232
|
};
|
package/lib/classic/es/points.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { m as c, h as u } from "./index8.js";
|
|
3
3
|
import { useState as d, useEffect as f } from "react";
|
|
4
|
-
import { s as o, u as h } from "./
|
|
4
|
+
import { s as o, u as h, F as m } from "./feature.js";
|
|
5
5
|
import { e as n } from "./index4.js";
|
|
6
6
|
import { p as y } from "./index3.js";
|
|
7
7
|
import { B as S } from "./index6.js";
|
|
8
|
-
import { F as m } from "./feature.js";
|
|
9
8
|
import { S as v } from "./useStreamLayerApp2.js";
|
|
10
9
|
import { Y as g, _ as A } from "./hooks-n9ax4LRT.js";
|
|
11
10
|
const I = /* @__PURE__ */ o("div")({
|
|
@@ -68,10 +67,10 @@ const I = /* @__PURE__ */ o("div")({
|
|
|
68
67
|
return null;
|
|
69
68
|
const e = s.getFeature(v.GAMES);
|
|
70
69
|
return e ? /* @__PURE__ */ t(C, { gamification: e }) : null;
|
|
71
|
-
},
|
|
70
|
+
}, G = ({ theme: s }) => {
|
|
72
71
|
const e = g(), a = A();
|
|
73
72
|
return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(u, { customTheme: s ?? a.theme, themeMode: a.themeMode, children: /* @__PURE__ */ t($, { sdk: e }) }) }) : null;
|
|
74
73
|
};
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
G as StreamLayerSDKPoints
|
|
77
76
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as K, jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { h as fs } from "./index8.js";
|
|
3
|
-
import { s as k, u as js, c as Vs } from "./
|
|
3
|
+
import { s as k, u as js, c as Vs } from "./feature.js";
|
|
4
4
|
import { q as ds, Y as ms, _ as ps } from "./hooks-n9ax4LRT.js";
|
|
5
5
|
import { useRef as Ds, useEffect as Ks } from "react";
|
|
6
6
|
import "./index5.js";
|