@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.
@@ -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 H } from "react";
3
- import { a as y, s, c as W, Q as K, e as g, u as A, L as Q } from "./index2.js";
4
- import { F as J, u as V, d as X } from "./app.js";
5
- import { P as m, a as v, S as Y } from "./useStreamLayerApp2.js";
6
- const Z = /* @__PURE__ */ s("div")({
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, le = (e) => e === "left" ? "avdxyl3" : e === "right" ? "a1bisd08" : e === "top" ? "a1u9y2aj" : "a1qqaks", D = ({
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: t,
13
- className: i,
12
+ style: s,
13
+ className: r,
14
14
  enabled: a = !0,
15
- hiding: n,
16
- direction: l = "left",
17
- onAnimationEnd: r
15
+ hiding: t,
16
+ direction: i = "left",
17
+ onAnimationEnd: l
18
18
  }) => /* @__PURE__ */ o(Z, {
19
- style: t,
20
- className: y(i, ee, le(l), a && !n && te(l), a && n && ie(l)),
21
- onAnimationEnd: r,
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
- }), re = /* @__PURE__ */ s("a")({
23
+ }), le = /* @__PURE__ */ n("a")({
24
24
  name: "Link",
25
25
  class: "l1sgte8c",
26
26
  propsAsIs: !1
27
- }), de = /* @__PURE__ */ s("div")({
27
+ }), de = /* @__PURE__ */ n("div")({
28
28
  name: "BannerContainer",
29
29
  class: "b7yfc72",
30
30
  propsAsIs: !1
31
- }), ce = () => re, pe = /* @__PURE__ */ s(ce())({
31
+ }), ce = () => le, pe = /* @__PURE__ */ n(ce())({
32
32
  name: "BannerLink",
33
33
  class: "bejjq94",
34
34
  propsAsIs: !0
35
- }), me = /* @__PURE__ */ s("img")({
35
+ }), me = /* @__PURE__ */ n("img")({
36
36
  name: "BannerImg",
37
37
  class: "b1j94hdr",
38
38
  propsAsIs: !1
39
- }), ue = ({ promotion: e, promotionId: t, hiding: i, direction: a = "bottom" }) => {
40
- var n;
41
- return (n = e.additionalBanner) != null && n.imageUrl ? /* @__PURE__ */ o(D, { direction: a, hiding: i, children: /* @__PURE__ */ o(de, { children: /* @__PURE__ */ o(
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": t,
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__ */ s("div")({
52
+ }, ve = /* @__PURE__ */ n("div")({
53
53
  name: "OverlayContainer",
54
54
  class: "okzhq2w",
55
55
  propsAsIs: !1
56
- }), be = /* @__PURE__ */ s("div")({
56
+ }), he = /* @__PURE__ */ n("div")({
57
57
  name: "PromoOverlay",
58
58
  class: "pmgz5i",
59
59
  propsAsIs: !1
60
- }), he = /* @__PURE__ */ s("div")({
60
+ }), ye = /* @__PURE__ */ n("div")({
61
61
  name: "Header",
62
62
  class: "hyxi3jt",
63
63
  propsAsIs: !1
64
- }), ye = /* @__PURE__ */ s("div")({
64
+ }), be = /* @__PURE__ */ n("div")({
65
65
  name: "HeaderContent",
66
66
  class: "h149e3gp",
67
67
  propsAsIs: !1
68
- }), ge = "h10toh7", G = /* @__PURE__ */ s("img")({
68
+ }), Ae = "h10toh7", U = /* @__PURE__ */ n("img")({
69
69
  name: "SponsorLogo",
70
70
  class: "s1jyea6t",
71
71
  propsAsIs: !1
72
- }), Ae = /* @__PURE__ */ s("div")({
72
+ }), ge = /* @__PURE__ */ n("div")({
73
73
  name: "SponsorName",
74
74
  class: "szpfa3h",
75
75
  propsAsIs: !1
76
- }), Ie = /* @__PURE__ */ s("div")({
76
+ }), Ie = /* @__PURE__ */ n("div")({
77
77
  name: "Media",
78
78
  class: "m1crmu01",
79
79
  propsAsIs: !1
80
- }), fe = /* @__PURE__ */ s("img")({
80
+ }), fe = /* @__PURE__ */ n("img")({
81
81
  name: "PromoImg",
82
82
  class: "p1l37r8s",
83
83
  propsAsIs: !1
84
- }), $e = "s1nmch9k", U = /* @__PURE__ */ s("div")({
84
+ }), $e = "s1nmch9k", D = /* @__PURE__ */ n("div")({
85
85
  name: "Content",
86
86
  class: "c1er0ljd",
87
87
  propsAsIs: !1
88
- }), Se = /* @__PURE__ */ s("div")({
88
+ }), ke = /* @__PURE__ */ n("div")({
89
89
  name: "Description",
90
90
  class: "dydopmr",
91
91
  propsAsIs: !1
92
- }), Me = /* @__PURE__ */ s("div")({
92
+ }), Se = /* @__PURE__ */ n("div")({
93
93
  name: "Sponsor",
94
94
  class: "s1w6nt04",
95
95
  propsAsIs: !1
96
- }), Be = /* @__PURE__ */ s("div")({
96
+ }), Ce = /* @__PURE__ */ n("div")({
97
97
  name: "SponsorText",
98
98
  class: "s1evcmtq",
99
99
  propsAsIs: !1
100
- }), Ee = /* @__PURE__ */ s("div")({
100
+ }), Me = /* @__PURE__ */ n("div")({
101
101
  name: "ADLogo",
102
102
  class: "awodx0x",
103
103
  propsAsIs: !1
104
- }), ke = /* @__PURE__ */ s("span")({
104
+ }), Ne = /* @__PURE__ */ n("span")({
105
105
  name: "SponsoredText",
106
106
  class: "s1q3n6oi",
107
107
  propsAsIs: !1
108
- }), Le = /* @__PURE__ */ s("div")({
108
+ }), Be = /* @__PURE__ */ n("div")({
109
109
  name: "CloseIconWrap",
110
110
  class: "c8d4xfk",
111
111
  propsAsIs: !1
112
- }), Ne = () => W, Ce = /* @__PURE__ */ s(Ne())({
112
+ }), Ee = () => H, Te = /* @__PURE__ */ n(Ee())({
113
113
  name: "CloseIcon",
114
114
  class: "ct6oobh",
115
115
  propsAsIs: !0
116
- }), xe = /* @__PURE__ */ s("div")({
116
+ }), Le = /* @__PURE__ */ n("div")({
117
117
  name: "ActionBtnWrap",
118
118
  class: "a1gyg7tt",
119
119
  propsAsIs: !1
120
- }), Te = /* @__PURE__ */ s("a")({
120
+ }), xe = /* @__PURE__ */ n("a")({
121
121
  name: "ActionButton",
122
122
  class: "a17rwbtk",
123
123
  propsAsIs: !1
124
- }), _e = /* @__PURE__ */ s("div")({
124
+ }), _e = /* @__PURE__ */ n("div")({
125
125
  name: "Title",
126
126
  class: "t3vxzaw",
127
127
  propsAsIs: !1
128
- }), je = "h10f3u0j", q = ({ promotion: e, promotionId: t, onClose: i }) => {
129
- var a, n, l, r, p, c, u, I, f, $, S, M, B, E, k, L, N, C, x, T, _, j, P, O, w, R;
130
- const b = e.type === m.INGAME_IAB11_LBAR || e.type === m.INGAME_IAB11, h = ((a = e.sponsor) == null ? void 0 : a.logo) && e.logoMode === v.CENTER;
131
- return /* @__PURE__ */ d(be, { className: "PromoOverlay", children: [
132
- /* @__PURE__ */ d(he, { children: [
133
- /* @__PURE__ */ d(ye, { className: y(!h && ge), children: [
134
- ((n = e.sponsor) == null ? void 0 : n.logo) && e.logoMode === v.LEFT && /* @__PURE__ */ o(G, { src: (l = e.sponsor) == null ? void 0 : l.logo, alt: "promo" }),
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
- Me,
136
+ Se,
137
137
  {
138
138
  style: {
139
- paddingLeft: (r = e.sponsor) != null && r.logo && e.logoMode === v.LEFT ? "0px" : "8px"
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 === v.LEFT && /* @__PURE__ */ o(Ae, { children: (c = e.sponsor) == null ? void 0 : c.name }),
143
- /* @__PURE__ */ d(Be, { children: [
144
- /* @__PURE__ */ o(Ee, { children: "AD" }),
145
- /* @__PURE__ */ o(ke, { children: "SPONSORED" })
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(Le, { onClick: i, children: /* @__PURE__ */ o(Ce, { name: "icon-cross" }) })
151
+ /* @__PURE__ */ o(Be, { onClick: r, children: /* @__PURE__ */ o(Te, { name: "icon-cross" }) })
152
152
  ] }),
153
153
  /* @__PURE__ */ d(Ie, { children: [
154
- h && /* @__PURE__ */ o(G, { className: $e, src: (u = e.sponsor) == null ? void 0 : u.logo, alt: "promo" }),
155
- /* @__PURE__ */ o(U, { children: (f = (I = e.banner) == null ? void 0 : I.video) != null && f.url ? /* @__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: (S = ($ = e.banner) == null ? void 0 : $.video) == null ? void 0 : S.url,
159
- poster: (B = (M = e.banner) == null ? void 0 : M.video) == null ? void 0 : B.thumbnailUrl,
160
- aspectRatio: b ? "1/1" : "16/9",
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: t,
165
+ advertisementId: s,
166
166
  advertisementType: e.type
167
167
  }
168
168
  });
169
169
  }
170
170
  }
171
- ) : (E = e.banner) != null && E.imageUrl ? /* @__PURE__ */ o(fe, { style: b ? { aspectRatio: "1/1" } : {}, src: (k = e.banner) == null ? void 0 : k.imageUrl, alt: "promo" }) : null }),
172
- !b && /* @__PURE__ */ d(U, { children: [
173
- ((L = e.banner) == null ? void 0 : L.title) && /* @__PURE__ */ o(_e, { className: y(h && je), children: (N = e.banner) == null ? void 0 : N.title }),
174
- ((C = e.banner) == null ? void 0 : C.body) && /* @__PURE__ */ o(Se, { children: (x = e.banner) == null ? void 0 : x.body })
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(xe, { children: /* @__PURE__ */ o(
178
- Te,
177
+ /* @__PURE__ */ o(Le, { children: /* @__PURE__ */ o(
178
+ xe,
179
179
  {
180
- href: (T = e.banner) == null ? void 0 : T.url,
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": t,
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__ */ s("div")({
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: t,
200
- style: i,
199
+ direction: s,
200
+ style: r,
201
201
  className: a,
202
- hiding: n
203
- }) => /* @__PURE__ */ o(D, {
204
- direction: t,
205
- style: i,
206
- hiding: n,
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) === m.INGAME_IAB11_LBAR || (e == null ? void 0 : e.type) === m.INGAME_IAB21_LBAR, Re = (e) => (e == null ? void 0 : e.type) === m.INGAME_IAB11 || (e == null ? void 0 : e.type) === m.INGAME_IAB21, Ge = ({ advertisement: e, layoutMode: t = "side-by-side", sidebar: i, banner: a }) => {
212
- const n = A(e.data);
213
- return !n.data && n.loading ? null : n.error ? /* @__PURE__ */ d("div", { children: [
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
- ] }) : n.data ? !i && !a && Re(n.data) ? /* @__PURE__ */ o(ve, { children: /* @__PURE__ */ o(q, { promotionId: e.id, promotion: n.data, onClose: e.close }) }) : i && we(n.data) ? /* @__PURE__ */ o(Oe, { direction: i, hiding: e.hiding, children: /* @__PURE__ */ o(q, { promotionId: e.id, promotion: n.data, onClose: e.close }) }) : a ? /* @__PURE__ */ o(ue, { promotionId: e.id, hiding: e.hiding, promotion: n.data, direction: a }) : null : /* @__PURE__ */ d("div", { children: [
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
- }, Ue = /* @__PURE__ */ s("div")({
220
+ }, De = /* @__PURE__ */ n("div")({
221
221
  name: "AdvertisementUIWrap",
222
222
  class: "aa6pjif",
223
223
  propsAsIs: !1
224
- }), qe = (e) => {
225
- const t = e.target;
226
- if (t instanceof HTMLAnchorElement && t.target === "_blank") {
227
- const i = t.getAttribute("data-promo-id") || "", a = t.getAttribute("data-promo-type") || m.UNSET;
228
- t.getAttribute("data-analytics") === "button" && g.emit("advertisement", {
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: i,
231
+ advertisementId: r,
232
232
  advertisementType: a
233
233
  }
234
- }), t.getAttribute("data-analytics") === "banner" && g.emit("advertisement", {
234
+ }), s.getAttribute("data-analytics") === "banner" && g.emit("advertisement", {
235
235
  action: "bannerSelect",
236
236
  payload: {
237
- advertisementId: i,
237
+ advertisementId: r,
238
238
  advertisementType: a
239
239
  }
240
240
  });
241
241
  }
242
- }, De = ({
242
+ }, qe = ({
243
243
  gamification: e,
244
- layoutMode: t,
245
- sidebar: i,
246
- banner: a,
247
- isMobileScreen: n,
244
+ layoutMode: s,
245
+ skipTypeCheck: r,
246
+ sidebar: a,
247
+ banner: t,
248
+ isMobileScreen: i,
248
249
  persistent: l
249
250
  }) => {
250
- const r = z(null), p = A(e.advertisement.$list), c = H(
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
- [p, l]
255
+ [m, l]
255
256
  );
256
- return Q(r, {
257
+ return Q(p, {
257
258
  enabled: !!c,
258
259
  event: "click",
259
- listener: qe
260
- }), c ? /* @__PURE__ */ o(Ue, {
261
- ref: r,
260
+ listener: Ge
261
+ }), c ? /* @__PURE__ */ o(De, {
262
+ ref: p,
262
263
  style: {
263
- height: !a && !i ? "auto" : "100%"
264
+ height: !t && !a ? "auto" : "100%"
264
265
  },
265
- className: n ? "mobile-view" : "",
266
- children: /* @__PURE__ */ o(Ge, {
267
- sidebar: i,
268
- banner: a,
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: t
272
+ layoutMode: s
271
273
  })
272
274
  }) : null;
273
275
  }, Fe = ({
274
276
  sdk: e,
275
- sidebar: t,
276
- banner: i,
277
- event: a,
278
- layoutMode: n,
277
+ sidebar: s,
278
+ banner: r,
279
+ skipTypeCheck: a,
280
+ event: t,
281
+ layoutMode: i,
279
282
  isMobileScreen: l,
280
- persistent: r
283
+ persistent: p
281
284
  }) => {
282
285
  const {
283
- deactivate: p
286
+ deactivate: m
284
287
  } = J(e);
285
288
  F(() => {
286
- a ? e.createEventSession(a) : p();
287
- }, [a, p, e]);
288
- const c = A(e.featuresList.getStore());
289
- if (t && i)
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 u = e.getFeature(Y.GAMES);
299
- return u ? /* @__PURE__ */ o(De, {
300
- gamification: u,
301
- sidebar: t,
302
- banner: i,
303
- layoutMode: n,
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: r
308
+ persistent: p,
309
+ skipTypeCheck: a
306
310
  }) : null;
307
311
  }, Je = ({
308
312
  event: e,
309
- sidebar: t,
310
- banner: i,
313
+ sidebar: s,
314
+ banner: r,
311
315
  isMobileScreen: a,
312
- persistent: n
316
+ persistent: t
313
317
  }) => {
314
- const l = V();
315
- return l ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
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: l,
322
+ sdk: i,
319
323
  event: e,
320
- sidebar: t,
321
- banner: i,
324
+ sidebar: s,
325
+ banner: r,
322
326
  isMobileScreen: a,
323
- persistent: n,
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
@@ -1,5 +1,5 @@
1
1
  import { useEffect as i } from "react";
2
- import { u as a } from "./app.js";
2
+ import { u as a } from "./index2.js";
3
3
  const e = ({ token: r, schema: o }) => {
4
4
  const t = a();
5
5
  return i(() => {
@@ -1,4 +1,4 @@
1
- import { E as f } from "./app.js";
1
+ import { E as f } from "./index2.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/lib/es/index.js CHANGED
@@ -1,8 +1,11 @@
1
- import { S as t, u as m } from "./app.js";
1
+ import { S as o, d as S, u as i } from "./index2.js";
2
2
  import "./useStreamLayerApp2.js";
3
- import { S } from "./index2.js";
3
+ import { a1 as s } from "./provider.js";
4
+ import "react/jsx-runtime";
5
+ import "react";
4
6
  export {
5
- S as StreamLayerProvider,
6
- t as StreamLayerSDKReact,
7
- m as useStreamLayer
7
+ s as StreamLayerProvider,
8
+ o as StreamLayerSDKReact,
9
+ S as StreamLayerThemeProvider,
10
+ i as useStreamLayer
8
11
  };