@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.
@@ -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 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 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, 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: g(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, { className: "BannerContainer", children: /* @__PURE__ */ o(
42
42
  pe,
43
43
  {
44
+ className: "BannerLink",
44
45
  href: e.additionalBanner.url,
45
- "data-promo-id": t,
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__ */ s("div")({
54
+ }, ve = /* @__PURE__ */ n("div")({
53
55
  name: "OverlayContainer",
54
56
  class: "okzhq2w",
55
57
  propsAsIs: !1
56
- }), be = /* @__PURE__ */ s("div")({
58
+ }), he = /* @__PURE__ */ n("div")({
57
59
  name: "PromoOverlay",
58
60
  class: "pmgz5i",
59
61
  propsAsIs: !1
60
- }), he = /* @__PURE__ */ s("div")({
62
+ }), ye = /* @__PURE__ */ n("div")({
61
63
  name: "Header",
62
64
  class: "hyxi3jt",
63
65
  propsAsIs: !1
64
- }), ye = /* @__PURE__ */ s("div")({
66
+ }), be = /* @__PURE__ */ n("div")({
65
67
  name: "HeaderContent",
66
68
  class: "h149e3gp",
67
69
  propsAsIs: !1
68
- }), ge = "h10toh7", G = /* @__PURE__ */ s("img")({
70
+ }), ge = "h10toh7", D = /* @__PURE__ */ n("img")({
69
71
  name: "SponsorLogo",
70
72
  class: "s1jyea6t",
71
73
  propsAsIs: !1
72
- }), Ae = /* @__PURE__ */ s("div")({
74
+ }), Ae = /* @__PURE__ */ n("div")({
73
75
  name: "SponsorName",
74
76
  class: "szpfa3h",
75
77
  propsAsIs: !1
76
- }), Ie = /* @__PURE__ */ s("div")({
78
+ }), Ie = /* @__PURE__ */ n("div")({
77
79
  name: "Media",
78
80
  class: "m1crmu01",
79
81
  propsAsIs: !1
80
- }), fe = /* @__PURE__ */ s("img")({
82
+ }), fe = /* @__PURE__ */ n("img")({
81
83
  name: "PromoImg",
82
84
  class: "p1l37r8s",
83
85
  propsAsIs: !1
84
- }), $e = "s1nmch9k", U = /* @__PURE__ */ s("div")({
86
+ }), $e = "s1nmch9k", R = /* @__PURE__ */ n("div")({
85
87
  name: "Content",
86
88
  class: "c1er0ljd",
87
89
  propsAsIs: !1
88
- }), Se = /* @__PURE__ */ s("div")({
90
+ }), ke = /* @__PURE__ */ n("div")({
89
91
  name: "Description",
90
92
  class: "dydopmr",
91
93
  propsAsIs: !1
92
- }), Me = /* @__PURE__ */ s("div")({
94
+ }), Se = /* @__PURE__ */ n("div")({
93
95
  name: "Sponsor",
94
96
  class: "s1w6nt04",
95
97
  propsAsIs: !1
96
- }), Be = /* @__PURE__ */ s("div")({
98
+ }), Ce = /* @__PURE__ */ n("div")({
97
99
  name: "SponsorText",
98
100
  class: "s1evcmtq",
99
101
  propsAsIs: !1
100
- }), Ee = /* @__PURE__ */ s("div")({
102
+ }), Ne = /* @__PURE__ */ n("div")({
101
103
  name: "ADLogo",
102
104
  class: "awodx0x",
103
105
  propsAsIs: !1
104
- }), ke = /* @__PURE__ */ s("span")({
106
+ }), Be = /* @__PURE__ */ n("span")({
105
107
  name: "SponsoredText",
106
108
  class: "s1q3n6oi",
107
109
  propsAsIs: !1
108
- }), Le = /* @__PURE__ */ s("div")({
110
+ }), Me = /* @__PURE__ */ n("div")({
109
111
  name: "CloseIconWrap",
110
112
  class: "c8d4xfk",
111
113
  propsAsIs: !1
112
- }), Ne = () => W, Ce = /* @__PURE__ */ s(Ne())({
114
+ }), Te = () => H, Ee = /* @__PURE__ */ n(Te())({
113
115
  name: "CloseIcon",
114
116
  class: "ct6oobh",
115
117
  propsAsIs: !0
116
- }), xe = /* @__PURE__ */ s("div")({
118
+ }), Le = /* @__PURE__ */ n("div")({
117
119
  name: "ActionBtnWrap",
118
120
  class: "a1gyg7tt",
119
121
  propsAsIs: !1
120
- }), Te = /* @__PURE__ */ s("a")({
122
+ }), xe = /* @__PURE__ */ n("a")({
121
123
  name: "ActionButton",
122
124
  class: "a17rwbtk",
123
125
  propsAsIs: !1
124
- }), _e = /* @__PURE__ */ s("div")({
126
+ }), _e = /* @__PURE__ */ n("div")({
125
127
  name: "Title",
126
128
  class: "t3vxzaw",
127
129
  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, w, O, 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" }),
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
- Me,
138
+ Se,
137
139
  {
138
140
  style: {
139
- paddingLeft: (r = e.sponsor) != null && r.logo && e.logoMode === v.LEFT ? "0px" : "8px"
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 === 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" })
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(Le, { onClick: i, children: /* @__PURE__ */ o(Ce, { name: "icon-cross" }) })
153
+ /* @__PURE__ */ o(Me, { className: "ClosePromoIcon", onClick: r, children: /* @__PURE__ */ o(Ee, { name: "icon-cross" }) })
152
154
  ] }),
153
155
  /* @__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(
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: (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",
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
- g.emit("advertisement", {
164
+ A.emit("advertisement", {
163
165
  action: "videoPlay",
164
166
  payload: {
165
- advertisementId: t,
167
+ advertisementId: s,
166
168
  advertisementType: e.type
167
169
  }
168
170
  });
169
171
  }
170
172
  }
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 })
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(xe, { children: /* @__PURE__ */ o(
178
- Te,
179
+ /* @__PURE__ */ o(Le, { children: /* @__PURE__ */ o(
180
+ xe,
179
181
  {
180
- href: (T = e.banner) == null ? void 0 : T.url,
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: ((w = (P = e.banner) == null ? void 0 : P.ctaButton) == null ? void 0 : w.textColor) || "#fff"
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": t,
188
+ "data-promo-id": s,
187
189
  "data-promo-type": e.type,
188
190
  target: "_blank",
189
- children: (R = (O = e.banner) == null ? void 0 : O.ctaButton) == null ? void 0 : R.label
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__ */ s("div")({
195
+ }, Pe = /* @__PURE__ */ n("div")({
194
196
  name: "SidebarContainer",
195
197
  class: "s1abskp8",
196
198
  propsAsIs: !1
197
- }), we = ({
199
+ }), Oe = ({
198
200
  children: e,
199
- direction: t,
200
- style: i,
201
+ direction: s,
202
+ style: r,
201
203
  className: a,
202
- hiding: n
203
- }) => /* @__PURE__ */ o(D, {
204
- direction: t,
205
- style: i,
206
- hiding: n,
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
- }), Oe = (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: [
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
- ] }) : n.data ? !i && !a && Re(n.data) ? /* @__PURE__ */ o(ve, { children: /* @__PURE__ */ o(q, { promotionId: e.id, promotion: n.data, onClose: e.close }) }) : i && Oe(n.data) ? /* @__PURE__ */ o(we, { 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: [
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
- }, Ue = /* @__PURE__ */ s("div")({
222
+ }, Re = /* @__PURE__ */ n("div")({
221
223
  name: "AdvertisementUIWrap",
222
224
  class: "aa6pjif",
223
225
  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", {
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: i,
233
+ advertisementId: r,
232
234
  advertisementType: a
233
235
  }
234
- }), t.getAttribute("data-analytics") === "banner" && g.emit("advertisement", {
236
+ }), s.getAttribute("data-analytics") === "banner" && A.emit("advertisement", {
235
237
  action: "bannerSelect",
236
238
  payload: {
237
- advertisementId: i,
239
+ advertisementId: r,
238
240
  advertisementType: a
239
241
  }
240
242
  });
241
243
  }
242
- }, De = ({
244
+ }, qe = ({
243
245
  gamification: e,
244
- layoutMode: t,
245
- sidebar: i,
246
- banner: a,
247
- isMobileScreen: n,
246
+ layoutMode: s,
247
+ skipTypeCheck: r,
248
+ sidebar: a,
249
+ banner: t,
250
+ isMobileScreen: i,
248
251
  persistent: l
249
252
  }) => {
250
- const r = z(null), p = A(e.advertisement.$list), c = H(
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
- [p, l]
257
+ [m, l]
255
258
  );
256
- return Q(r, {
259
+ return Q(p, {
257
260
  enabled: !!c,
258
261
  event: "click",
259
- listener: qe
260
- }), c ? /* @__PURE__ */ o(Ue, {
261
- ref: r,
262
+ listener: Ge
263
+ }), c ? /* @__PURE__ */ o(Re, {
264
+ ref: p,
262
265
  style: {
263
- height: !a && !i ? "auto" : "100%"
266
+ height: !t && !a ? "auto" : "100%"
264
267
  },
265
- className: n ? "mobile-view" : "",
266
- children: /* @__PURE__ */ o(Ge, {
267
- sidebar: i,
268
- banner: a,
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: t
274
+ layoutMode: s
271
275
  })
272
276
  }) : null;
273
277
  }, Fe = ({
274
278
  sdk: e,
275
- sidebar: t,
276
- banner: i,
277
- event: a,
278
- layoutMode: n,
279
+ sidebar: s,
280
+ banner: r,
281
+ skipTypeCheck: a,
282
+ event: t,
283
+ layoutMode: i,
279
284
  isMobileScreen: l,
280
- persistent: r
285
+ persistent: p
281
286
  }) => {
282
287
  const {
283
- deactivate: p
288
+ deactivate: m
284
289
  } = J(e);
285
290
  F(() => {
286
- a ? e.createEventSession(a) : p();
287
- }, [a, p, e]);
288
- const c = A(e.featuresList.getStore());
289
- if (t && i)
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 u = e.getFeature(Y.GAMES);
299
- return u ? /* @__PURE__ */ o(De, {
300
- gamification: u,
301
- sidebar: t,
302
- banner: i,
303
- layoutMode: n,
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: r
310
+ persistent: p,
311
+ skipTypeCheck: a
306
312
  }) : null;
307
313
  }, Je = ({
308
314
  event: e,
309
- sidebar: t,
310
- banner: i,
315
+ sidebar: s,
316
+ banner: r,
311
317
  isMobileScreen: a,
312
- persistent: n
318
+ persistent: t
313
319
  }) => {
314
- const l = V();
315
- return l ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
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: l,
324
+ sdk: i,
319
325
  event: e,
320
- sidebar: t,
321
- banner: i,
326
+ sidebar: s,
327
+ banner: r,
322
328
  isMobileScreen: a,
323
- persistent: n,
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
@@ -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
  };