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