@streamlayer/react 1.2.0 → 1.3.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/advertisement.d.ts +2 -0
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +1 -188
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +2 -2
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +188 -0
- package/lib/cjs/useStreamLayerApp2.js +1 -1
- package/lib/dist/cjs/masters.js +16 -16
- package/lib/dist/es/masters.js +1 -1
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +145 -138
- package/lib/es/auth.js +1 -1
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/index.js +8 -5
- package/lib/es/index2.js +902 -23171
- package/lib/es/masters.js +1 -1
- package/lib/es/masters2.js +1 -1
- package/lib/es/points.js +6 -6
- package/lib/es/provider.js +23227 -0
- package/lib/es/useStreamLayerApp2.js +4 -4
- package/lib/index.d.ts +1 -0
- package/lib/style.css +1 -1
- package/package.json +19 -19
- package/lib/cjs/app.js +0 -1
- package/lib/es/app.js +0 -958
package/lib/es/advertisement.js
CHANGED
|
@@ -1,292 +1,297 @@
|
|
|
1
1
|
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as F, useRef as z, useMemo as
|
|
3
|
-
import { a as
|
|
4
|
-
import { F as J, u as V, d as X } from "./
|
|
5
|
-
import { P as
|
|
6
|
-
const Z = /* @__PURE__ */
|
|
2
|
+
import { useEffect as F, useRef as z, useMemo as W } from "react";
|
|
3
|
+
import { a as g, s as n, c as H, Q as K, e as A, u as I, L as Q } from "./provider.js";
|
|
4
|
+
import { F as J, u as V, d as X } from "./index2.js";
|
|
5
|
+
import { P as u, a as h, S as Y } from "./useStreamLayerApp2.js";
|
|
6
|
+
const Z = /* @__PURE__ */ n("div")({
|
|
7
7
|
name: "Container",
|
|
8
8
|
class: "c5b6wdg",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}), ee = "a1rlj479", oe = "s35f1di", ne = "sj4471g", se = "b12050d8", ae = "b1d5ybek", te = (e) => e === "left" || e === "right" ? oe : se, ie = (e) => e === "left" || e === "right" ? ne : ae,
|
|
10
|
+
}), ee = "a1rlj479", oe = "s35f1di", ne = "sj4471g", se = "b12050d8", ae = "b1d5ybek", te = (e) => e === "left" || e === "right" ? oe : se, ie = (e) => e === "left" || e === "right" ? ne : ae, re = (e) => e === "left" ? "avdxyl3" : e === "right" ? "a1bisd08" : e === "top" ? "a1u9y2aj" : "a1qqaks", q = ({
|
|
11
11
|
children: e,
|
|
12
|
-
style:
|
|
13
|
-
className:
|
|
12
|
+
style: s,
|
|
13
|
+
className: r,
|
|
14
14
|
enabled: a = !0,
|
|
15
|
-
hiding:
|
|
16
|
-
direction:
|
|
17
|
-
onAnimationEnd:
|
|
15
|
+
hiding: t,
|
|
16
|
+
direction: i = "left",
|
|
17
|
+
onAnimationEnd: l
|
|
18
18
|
}) => /* @__PURE__ */ o(Z, {
|
|
19
|
-
style:
|
|
20
|
-
className:
|
|
21
|
-
onAnimationEnd:
|
|
19
|
+
style: s,
|
|
20
|
+
className: g(r, ee, re(i), a && !t && te(i), a && t && ie(i)),
|
|
21
|
+
onAnimationEnd: l,
|
|
22
22
|
children: e
|
|
23
|
-
}),
|
|
23
|
+
}), le = /* @__PURE__ */ n("a")({
|
|
24
24
|
name: "Link",
|
|
25
25
|
class: "l1sgte8c",
|
|
26
26
|
propsAsIs: !1
|
|
27
|
-
}), de = /* @__PURE__ */
|
|
27
|
+
}), de = /* @__PURE__ */ n("div")({
|
|
28
28
|
name: "BannerContainer",
|
|
29
29
|
class: "b7yfc72",
|
|
30
30
|
propsAsIs: !1
|
|
31
|
-
}), ce = () =>
|
|
31
|
+
}), ce = () => le, pe = /* @__PURE__ */ n(ce())({
|
|
32
32
|
name: "BannerLink",
|
|
33
33
|
class: "bejjq94",
|
|
34
34
|
propsAsIs: !0
|
|
35
|
-
}), me = /* @__PURE__ */
|
|
35
|
+
}), me = /* @__PURE__ */ n("img")({
|
|
36
36
|
name: "BannerImg",
|
|
37
37
|
class: "b1j94hdr",
|
|
38
38
|
propsAsIs: !1
|
|
39
|
-
}), ue = ({ promotion: e, promotionId:
|
|
40
|
-
var
|
|
41
|
-
return (
|
|
39
|
+
}), ue = ({ promotion: e, promotionId: s, hiding: r, direction: a = "bottom" }) => {
|
|
40
|
+
var t;
|
|
41
|
+
return (t = e.additionalBanner) != null && t.imageUrl ? /* @__PURE__ */ o(q, { direction: a, hiding: r, children: /* @__PURE__ */ o(de, { className: "BannerContainer", children: /* @__PURE__ */ o(
|
|
42
42
|
pe,
|
|
43
43
|
{
|
|
44
|
+
className: "BannerLink",
|
|
44
45
|
href: e.additionalBanner.url,
|
|
45
|
-
|
|
46
|
+
style: { backgroundImage: `url(${e.additionalBanner.imageUrl})` },
|
|
47
|
+
"data-promo-id": s,
|
|
46
48
|
"data-promo-type": e.type,
|
|
47
49
|
"data-analytics": "banner",
|
|
48
50
|
target: "_blank",
|
|
49
51
|
children: /* @__PURE__ */ o(me, { src: e.additionalBanner.imageUrl, alt: "promo" })
|
|
50
52
|
}
|
|
51
53
|
) }) }) : null;
|
|
52
|
-
}, ve = /* @__PURE__ */
|
|
54
|
+
}, ve = /* @__PURE__ */ n("div")({
|
|
53
55
|
name: "OverlayContainer",
|
|
54
56
|
class: "okzhq2w",
|
|
55
57
|
propsAsIs: !1
|
|
56
|
-
}),
|
|
58
|
+
}), he = /* @__PURE__ */ n("div")({
|
|
57
59
|
name: "PromoOverlay",
|
|
58
60
|
class: "pmgz5i",
|
|
59
61
|
propsAsIs: !1
|
|
60
|
-
}),
|
|
62
|
+
}), ye = /* @__PURE__ */ n("div")({
|
|
61
63
|
name: "Header",
|
|
62
64
|
class: "hyxi3jt",
|
|
63
65
|
propsAsIs: !1
|
|
64
|
-
}),
|
|
66
|
+
}), be = /* @__PURE__ */ n("div")({
|
|
65
67
|
name: "HeaderContent",
|
|
66
68
|
class: "h149e3gp",
|
|
67
69
|
propsAsIs: !1
|
|
68
|
-
}), ge = "h10toh7",
|
|
70
|
+
}), ge = "h10toh7", D = /* @__PURE__ */ n("img")({
|
|
69
71
|
name: "SponsorLogo",
|
|
70
72
|
class: "s1jyea6t",
|
|
71
73
|
propsAsIs: !1
|
|
72
|
-
}), Ae = /* @__PURE__ */
|
|
74
|
+
}), Ae = /* @__PURE__ */ n("div")({
|
|
73
75
|
name: "SponsorName",
|
|
74
76
|
class: "szpfa3h",
|
|
75
77
|
propsAsIs: !1
|
|
76
|
-
}), Ie = /* @__PURE__ */
|
|
78
|
+
}), Ie = /* @__PURE__ */ n("div")({
|
|
77
79
|
name: "Media",
|
|
78
80
|
class: "m1crmu01",
|
|
79
81
|
propsAsIs: !1
|
|
80
|
-
}), fe = /* @__PURE__ */
|
|
82
|
+
}), fe = /* @__PURE__ */ n("img")({
|
|
81
83
|
name: "PromoImg",
|
|
82
84
|
class: "p1l37r8s",
|
|
83
85
|
propsAsIs: !1
|
|
84
|
-
}), $e = "s1nmch9k",
|
|
86
|
+
}), $e = "s1nmch9k", R = /* @__PURE__ */ n("div")({
|
|
85
87
|
name: "Content",
|
|
86
88
|
class: "c1er0ljd",
|
|
87
89
|
propsAsIs: !1
|
|
88
|
-
}),
|
|
90
|
+
}), ke = /* @__PURE__ */ n("div")({
|
|
89
91
|
name: "Description",
|
|
90
92
|
class: "dydopmr",
|
|
91
93
|
propsAsIs: !1
|
|
92
|
-
}),
|
|
94
|
+
}), Se = /* @__PURE__ */ n("div")({
|
|
93
95
|
name: "Sponsor",
|
|
94
96
|
class: "s1w6nt04",
|
|
95
97
|
propsAsIs: !1
|
|
96
|
-
}),
|
|
98
|
+
}), Ce = /* @__PURE__ */ n("div")({
|
|
97
99
|
name: "SponsorText",
|
|
98
100
|
class: "s1evcmtq",
|
|
99
101
|
propsAsIs: !1
|
|
100
|
-
}),
|
|
102
|
+
}), Ne = /* @__PURE__ */ n("div")({
|
|
101
103
|
name: "ADLogo",
|
|
102
104
|
class: "awodx0x",
|
|
103
105
|
propsAsIs: !1
|
|
104
|
-
}),
|
|
106
|
+
}), Be = /* @__PURE__ */ n("span")({
|
|
105
107
|
name: "SponsoredText",
|
|
106
108
|
class: "s1q3n6oi",
|
|
107
109
|
propsAsIs: !1
|
|
108
|
-
}),
|
|
110
|
+
}), Me = /* @__PURE__ */ n("div")({
|
|
109
111
|
name: "CloseIconWrap",
|
|
110
112
|
class: "c8d4xfk",
|
|
111
113
|
propsAsIs: !1
|
|
112
|
-
}),
|
|
114
|
+
}), Te = () => H, Ee = /* @__PURE__ */ n(Te())({
|
|
113
115
|
name: "CloseIcon",
|
|
114
116
|
class: "ct6oobh",
|
|
115
117
|
propsAsIs: !0
|
|
116
|
-
}),
|
|
118
|
+
}), Le = /* @__PURE__ */ n("div")({
|
|
117
119
|
name: "ActionBtnWrap",
|
|
118
120
|
class: "a1gyg7tt",
|
|
119
121
|
propsAsIs: !1
|
|
120
|
-
}),
|
|
122
|
+
}), xe = /* @__PURE__ */ n("a")({
|
|
121
123
|
name: "ActionButton",
|
|
122
124
|
class: "a17rwbtk",
|
|
123
125
|
propsAsIs: !1
|
|
124
|
-
}), _e = /* @__PURE__ */
|
|
126
|
+
}), _e = /* @__PURE__ */ n("div")({
|
|
125
127
|
name: "Title",
|
|
126
128
|
class: "t3vxzaw",
|
|
127
129
|
propsAsIs: !1
|
|
128
|
-
}), je = "h10f3u0j",
|
|
129
|
-
var a,
|
|
130
|
-
const
|
|
131
|
-
return /* @__PURE__ */ d(
|
|
132
|
-
/* @__PURE__ */ d(
|
|
133
|
-
/* @__PURE__ */ d(
|
|
134
|
-
((
|
|
130
|
+
}), je = "h10f3u0j", G = ({ promotion: e, promotionId: s, onClose: r }) => {
|
|
131
|
+
var a, t, i, l, p, m, c, v, f, $, k, S, C, N, B, M, T, E, L, x, _, j, P, O, U, w;
|
|
132
|
+
const y = e.type === u.INGAME_IAB11_LBAR || e.type === u.INGAME_IAB11, b = ((a = e.sponsor) == null ? void 0 : a.logo) && e.logoMode === h.CENTER;
|
|
133
|
+
return /* @__PURE__ */ d(he, { className: "PromoOverlay", children: [
|
|
134
|
+
/* @__PURE__ */ d(ye, { children: [
|
|
135
|
+
/* @__PURE__ */ d(be, { className: g(!b && ge), children: [
|
|
136
|
+
((t = e.sponsor) == null ? void 0 : t.logo) && e.logoMode === h.LEFT && /* @__PURE__ */ o(D, { src: (i = e.sponsor) == null ? void 0 : i.logo, alt: "promo" }),
|
|
135
137
|
/* @__PURE__ */ d(
|
|
136
|
-
|
|
138
|
+
Se,
|
|
137
139
|
{
|
|
138
140
|
style: {
|
|
139
|
-
paddingLeft: (
|
|
141
|
+
paddingLeft: (l = e.sponsor) != null && l.logo && e.logoMode === h.LEFT ? "0px" : "8px"
|
|
140
142
|
},
|
|
141
143
|
children: [
|
|
142
|
-
((p = e.sponsor) == null ? void 0 : p.logo) && e.logoMode ===
|
|
143
|
-
/* @__PURE__ */ d(
|
|
144
|
-
/* @__PURE__ */ o(
|
|
145
|
-
/* @__PURE__ */ o(
|
|
144
|
+
((p = e.sponsor) == null ? void 0 : p.logo) && e.logoMode === h.LEFT && /* @__PURE__ */ o(Ae, { children: (m = e.sponsor) == null ? void 0 : m.name }),
|
|
145
|
+
/* @__PURE__ */ d(Ce, { className: "SponsorText", children: [
|
|
146
|
+
/* @__PURE__ */ o(Ne, { children: "AD" }),
|
|
147
|
+
/* @__PURE__ */ o(Be, { children: "SPONSORED" })
|
|
146
148
|
] })
|
|
147
149
|
]
|
|
148
150
|
}
|
|
149
151
|
)
|
|
150
152
|
] }),
|
|
151
|
-
/* @__PURE__ */ o(
|
|
153
|
+
/* @__PURE__ */ o(Me, { className: "ClosePromoIcon", onClick: r, children: /* @__PURE__ */ o(Ee, { name: "icon-cross" }) })
|
|
152
154
|
] }),
|
|
153
155
|
/* @__PURE__ */ d(Ie, { children: [
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */ o(
|
|
156
|
+
b && /* @__PURE__ */ o(D, { className: $e, src: (c = e.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
|
|
157
|
+
/* @__PURE__ */ o(R, { children: (f = (v = e.banner) == null ? void 0 : v.video) != null && f.url ? /* @__PURE__ */ o(
|
|
156
158
|
K,
|
|
157
159
|
{
|
|
158
|
-
source: (
|
|
159
|
-
poster: (
|
|
160
|
-
aspectRatio:
|
|
160
|
+
source: (k = ($ = e.banner) == null ? void 0 : $.video) == null ? void 0 : k.url,
|
|
161
|
+
poster: (C = (S = e.banner) == null ? void 0 : S.video) == null ? void 0 : C.thumbnailUrl,
|
|
162
|
+
aspectRatio: y ? "1/1" : "16/9",
|
|
161
163
|
onPlay: () => {
|
|
162
|
-
|
|
164
|
+
A.emit("advertisement", {
|
|
163
165
|
action: "videoPlay",
|
|
164
166
|
payload: {
|
|
165
|
-
advertisementId:
|
|
167
|
+
advertisementId: s,
|
|
166
168
|
advertisementType: e.type
|
|
167
169
|
}
|
|
168
170
|
});
|
|
169
171
|
}
|
|
170
172
|
}
|
|
171
|
-
) : (
|
|
172
|
-
!
|
|
173
|
-
((
|
|
174
|
-
((
|
|
173
|
+
) : (N = e.banner) != null && N.imageUrl ? /* @__PURE__ */ o(fe, { style: y ? { aspectRatio: "1/1" } : {}, src: (B = e.banner) == null ? void 0 : B.imageUrl, alt: "promo" }) : null }),
|
|
174
|
+
!y && /* @__PURE__ */ d(R, { children: [
|
|
175
|
+
((M = e.banner) == null ? void 0 : M.title) && /* @__PURE__ */ o(_e, { className: g("AdvTitle", b && je), children: (T = e.banner) == null ? void 0 : T.title }),
|
|
176
|
+
((E = e.banner) == null ? void 0 : E.body) && /* @__PURE__ */ o(ke, { className: "AdvDescription", children: (L = e.banner) == null ? void 0 : L.body })
|
|
175
177
|
] })
|
|
176
178
|
] }),
|
|
177
|
-
/* @__PURE__ */ o(
|
|
178
|
-
|
|
179
|
+
/* @__PURE__ */ o(Le, { children: /* @__PURE__ */ o(
|
|
180
|
+
xe,
|
|
179
181
|
{
|
|
180
|
-
href: (
|
|
182
|
+
href: (x = e.banner) == null ? void 0 : x.url,
|
|
181
183
|
style: {
|
|
182
184
|
backgroundColor: ((j = (_ = e.banner) == null ? void 0 : _.ctaButton) == null ? void 0 : j.color) || "#009dc4",
|
|
183
|
-
color: ((
|
|
185
|
+
color: ((O = (P = e.banner) == null ? void 0 : P.ctaButton) == null ? void 0 : O.textColor) || "#fff"
|
|
184
186
|
},
|
|
185
187
|
"data-analytics": "button",
|
|
186
|
-
"data-promo-id":
|
|
188
|
+
"data-promo-id": s,
|
|
187
189
|
"data-promo-type": e.type,
|
|
188
190
|
target: "_blank",
|
|
189
|
-
children: (
|
|
191
|
+
children: (w = (U = e.banner) == null ? void 0 : U.ctaButton) == null ? void 0 : w.label
|
|
190
192
|
}
|
|
191
193
|
) })
|
|
192
194
|
] });
|
|
193
|
-
}, Pe = /* @__PURE__ */
|
|
195
|
+
}, Pe = /* @__PURE__ */ n("div")({
|
|
194
196
|
name: "SidebarContainer",
|
|
195
197
|
class: "s1abskp8",
|
|
196
198
|
propsAsIs: !1
|
|
197
|
-
}),
|
|
199
|
+
}), Oe = ({
|
|
198
200
|
children: e,
|
|
199
|
-
direction:
|
|
200
|
-
style:
|
|
201
|
+
direction: s,
|
|
202
|
+
style: r,
|
|
201
203
|
className: a,
|
|
202
|
-
hiding:
|
|
203
|
-
}) => /* @__PURE__ */ o(
|
|
204
|
-
direction:
|
|
205
|
-
style:
|
|
206
|
-
hiding:
|
|
204
|
+
hiding: t
|
|
205
|
+
}) => /* @__PURE__ */ o(q, {
|
|
206
|
+
direction: s,
|
|
207
|
+
style: r,
|
|
208
|
+
hiding: t,
|
|
207
209
|
className: a,
|
|
208
210
|
children: /* @__PURE__ */ o(Pe, {
|
|
209
211
|
children: e
|
|
210
212
|
})
|
|
211
|
-
}),
|
|
212
|
-
const
|
|
213
|
-
return !
|
|
213
|
+
}), Ue = (e) => (e == null ? void 0 : e.type) === u.INGAME_IAB11_LBAR || (e == null ? void 0 : e.type) === u.INGAME_IAB21_LBAR, we = (e) => (e == null ? void 0 : e.type) === u.INGAME_IAB11 || (e == null ? void 0 : e.type) === u.INGAME_IAB21, De = ({ advertisement: e, skipTypeCheck: s, layoutMode: r = "side-by-side", sidebar: a, banner: t }) => {
|
|
214
|
+
const i = I(e.data);
|
|
215
|
+
return !i.data && i.loading ? null : i.error ? /* @__PURE__ */ d("div", { children: [
|
|
214
216
|
"error ",
|
|
215
217
|
/* @__PURE__ */ o("button", { onClick: e.close, children: "close" })
|
|
216
|
-
] }) :
|
|
218
|
+
] }) : i.data ? !a && !t && (s || we(i.data)) ? /* @__PURE__ */ o(ve, { className: "PromoOverlayContainer", children: /* @__PURE__ */ o(G, { promotionId: e.id, promotion: i.data, onClose: e.close }) }) : a && (s || Ue(i.data)) ? /* @__PURE__ */ o(Oe, { className: "PromoSidebarContainer", direction: a, hiding: e.hiding, children: /* @__PURE__ */ o(G, { promotionId: e.id, promotion: i.data, onClose: e.close }) }) : t ? /* @__PURE__ */ o(ue, { promotionId: e.id, hiding: e.hiding, promotion: i.data, direction: t }) : null : /* @__PURE__ */ d("div", { children: [
|
|
217
219
|
"empty promo ",
|
|
218
220
|
/* @__PURE__ */ o("button", { onClick: e.close, children: "close" })
|
|
219
221
|
] });
|
|
220
|
-
},
|
|
222
|
+
}, Re = /* @__PURE__ */ n("div")({
|
|
221
223
|
name: "AdvertisementUIWrap",
|
|
222
224
|
class: "aa6pjif",
|
|
223
225
|
propsAsIs: !1
|
|
224
|
-
}),
|
|
225
|
-
const
|
|
226
|
-
if (
|
|
227
|
-
const
|
|
228
|
-
|
|
226
|
+
}), Ge = (e) => {
|
|
227
|
+
const s = e.target;
|
|
228
|
+
if (s instanceof HTMLAnchorElement && s.target === "_blank") {
|
|
229
|
+
const r = s.getAttribute("data-promo-id") || "", a = s.getAttribute("data-promo-type") || u.UNSET;
|
|
230
|
+
s.getAttribute("data-analytics") === "button" && A.emit("advertisement", {
|
|
229
231
|
action: "buttonSelect",
|
|
230
232
|
payload: {
|
|
231
|
-
advertisementId:
|
|
233
|
+
advertisementId: r,
|
|
232
234
|
advertisementType: a
|
|
233
235
|
}
|
|
234
|
-
}),
|
|
236
|
+
}), s.getAttribute("data-analytics") === "banner" && A.emit("advertisement", {
|
|
235
237
|
action: "bannerSelect",
|
|
236
238
|
payload: {
|
|
237
|
-
advertisementId:
|
|
239
|
+
advertisementId: r,
|
|
238
240
|
advertisementType: a
|
|
239
241
|
}
|
|
240
242
|
});
|
|
241
243
|
}
|
|
242
|
-
},
|
|
244
|
+
}, qe = ({
|
|
243
245
|
gamification: e,
|
|
244
|
-
layoutMode:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
layoutMode: s,
|
|
247
|
+
skipTypeCheck: r,
|
|
248
|
+
sidebar: a,
|
|
249
|
+
banner: t,
|
|
250
|
+
isMobileScreen: i,
|
|
248
251
|
persistent: l
|
|
249
252
|
}) => {
|
|
250
|
-
const
|
|
253
|
+
const p = z(null), m = I(e.advertisement.$list), c = W(
|
|
251
254
|
() => e.advertisement.getActiveAdvertisement(l),
|
|
252
255
|
// fire getActiveNotification when notifications were updated
|
|
253
256
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
254
|
-
[
|
|
257
|
+
[m, l]
|
|
255
258
|
);
|
|
256
|
-
return Q(
|
|
259
|
+
return Q(p, {
|
|
257
260
|
enabled: !!c,
|
|
258
261
|
event: "click",
|
|
259
|
-
listener:
|
|
260
|
-
}), c ? /* @__PURE__ */ o(
|
|
261
|
-
ref:
|
|
262
|
+
listener: Ge
|
|
263
|
+
}), c ? /* @__PURE__ */ o(Re, {
|
|
264
|
+
ref: p,
|
|
262
265
|
style: {
|
|
263
|
-
height: !
|
|
266
|
+
height: !t && !a ? "auto" : "100%"
|
|
264
267
|
},
|
|
265
|
-
className:
|
|
266
|
-
children: /* @__PURE__ */ o(
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
className: i ? "mobile-view" : "",
|
|
269
|
+
children: /* @__PURE__ */ o(De, {
|
|
270
|
+
skipTypeCheck: r,
|
|
271
|
+
sidebar: a,
|
|
272
|
+
banner: t,
|
|
269
273
|
advertisement: c,
|
|
270
|
-
layoutMode:
|
|
274
|
+
layoutMode: s
|
|
271
275
|
})
|
|
272
276
|
}) : null;
|
|
273
277
|
}, Fe = ({
|
|
274
278
|
sdk: e,
|
|
275
|
-
sidebar:
|
|
276
|
-
banner:
|
|
277
|
-
|
|
278
|
-
|
|
279
|
+
sidebar: s,
|
|
280
|
+
banner: r,
|
|
281
|
+
skipTypeCheck: a,
|
|
282
|
+
event: t,
|
|
283
|
+
layoutMode: i,
|
|
279
284
|
isMobileScreen: l,
|
|
280
|
-
persistent:
|
|
285
|
+
persistent: p
|
|
281
286
|
}) => {
|
|
282
287
|
const {
|
|
283
|
-
deactivate:
|
|
288
|
+
deactivate: m
|
|
284
289
|
} = J(e);
|
|
285
290
|
F(() => {
|
|
286
|
-
|
|
287
|
-
}, [
|
|
288
|
-
const c =
|
|
289
|
-
if (
|
|
291
|
+
t ? e.createEventSession(t) : m();
|
|
292
|
+
}, [t, m, e]);
|
|
293
|
+
const c = I(e.featuresList.getStore());
|
|
294
|
+
if (s && r)
|
|
290
295
|
return /* @__PURE__ */ o("div", {
|
|
291
296
|
style: {
|
|
292
297
|
color: "red"
|
|
@@ -295,36 +300,38 @@ const Z = /* @__PURE__ */ s("div")({
|
|
|
295
300
|
});
|
|
296
301
|
if (!c)
|
|
297
302
|
return null;
|
|
298
|
-
const
|
|
299
|
-
return
|
|
300
|
-
gamification:
|
|
301
|
-
sidebar:
|
|
302
|
-
banner:
|
|
303
|
-
layoutMode:
|
|
303
|
+
const v = e.getFeature(Y.GAMES);
|
|
304
|
+
return v ? /* @__PURE__ */ o(qe, {
|
|
305
|
+
gamification: v,
|
|
306
|
+
sidebar: s,
|
|
307
|
+
banner: r,
|
|
308
|
+
layoutMode: i,
|
|
304
309
|
isMobileScreen: l,
|
|
305
|
-
persistent:
|
|
310
|
+
persistent: p,
|
|
311
|
+
skipTypeCheck: a
|
|
306
312
|
}) : null;
|
|
307
313
|
}, Je = ({
|
|
308
314
|
event: e,
|
|
309
|
-
sidebar:
|
|
310
|
-
banner:
|
|
315
|
+
sidebar: s,
|
|
316
|
+
banner: r,
|
|
311
317
|
isMobileScreen: a,
|
|
312
|
-
persistent:
|
|
318
|
+
persistent: t
|
|
313
319
|
}) => {
|
|
314
|
-
const
|
|
315
|
-
return
|
|
320
|
+
const i = V();
|
|
321
|
+
return i ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
|
|
316
322
|
Fe,
|
|
317
323
|
{
|
|
318
|
-
sdk:
|
|
324
|
+
sdk: i,
|
|
319
325
|
event: e,
|
|
320
|
-
sidebar:
|
|
321
|
-
banner:
|
|
326
|
+
sidebar: s,
|
|
327
|
+
banner: r,
|
|
322
328
|
isMobileScreen: a,
|
|
323
|
-
persistent:
|
|
329
|
+
persistent: t,
|
|
324
330
|
layoutMode: "side-by-side"
|
|
325
331
|
}
|
|
326
332
|
) }) }) : null;
|
|
327
333
|
};
|
|
328
334
|
export {
|
|
329
|
-
Je as StreamLayerSDKAdvertisement
|
|
335
|
+
Je as StreamLayerSDKAdvertisement,
|
|
336
|
+
Fe as StreamLayerSDKAdvertisementUI
|
|
330
337
|
};
|
package/lib/es/auth.js
CHANGED
package/lib/es/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { S as o, d as S, u as i } from "./index2.js";
|
|
2
2
|
import "./useStreamLayerApp2.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as s } from "./provider.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
4
6
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
s as StreamLayerProvider,
|
|
8
|
+
o as StreamLayerSDKReact,
|
|
9
|
+
S as StreamLayerThemeProvider,
|
|
10
|
+
i as useStreamLayer
|
|
8
11
|
};
|