@streamlayer/react-ui 1.23.5 → 1.25.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.
Files changed (32) hide show
  1. package/lib/app/app/story/promotion-notification/index.d.ts +7 -0
  2. package/lib/app/app/story/promotion-notification/index.js +44 -0
  3. package/lib/app/app/story/promotion-notification/styles.d.ts +4 -0
  4. package/lib/app/app/story/promotion-notification/styles.js +25 -0
  5. package/lib/app/app/story/promotion-notification/video.d.ts +5 -0
  6. package/lib/app/app/story/promotion-notification/video.js +52 -0
  7. package/lib/app/tvos/Advertisement.d.ts +10 -0
  8. package/lib/app/tvos/Advertisement.js +88 -0
  9. package/lib/app/tvos/AdvertisementUI.d.ts +16 -0
  10. package/lib/app/tvos/AdvertisementUI.js +40 -0
  11. package/lib/app/tvos/index.d.ts +16 -0
  12. package/lib/app/tvos/index.js +23 -0
  13. package/lib/app/tvos/story.d.ts +6 -0
  14. package/lib/app/tvos/story.js +34 -0
  15. package/lib/app/tvos/styles.d.ts +1 -0
  16. package/lib/app/tvos/styles.js +4 -0
  17. package/lib/app/tvos/ui/Layout/index.d.ts +21 -0
  18. package/lib/app/tvos/ui/Layout/index.js +76 -0
  19. package/lib/app/tvos/ui/Layout/styles.d.ts +11 -0
  20. package/lib/app/tvos/ui/Layout/styles.js +59 -0
  21. package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +2 -0
  22. package/lib/app/tvos/ui/Sidebar/PromoAction.js +62 -0
  23. package/lib/app/tvos/ui/Sidebar/index.d.ts +15 -0
  24. package/lib/app/tvos/ui/Sidebar/index.js +114 -0
  25. package/lib/app/tvos/ui/Sidebar/styles.d.ts +42 -0
  26. package/lib/app/tvos/ui/Sidebar/styles.js +1005 -0
  27. package/lib/assets/style.css +1 -1
  28. package/lib/ui/advertisement/index.js +44 -44
  29. package/lib/ui/advertisement/overlay/index.js +72 -70
  30. package/lib/ui/theme/theme.js +13 -9
  31. package/lib/utils/login.js +16 -16
  32. package/package.json +24 -18
@@ -1,67 +1,67 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { PromotionType as f } from "@streamlayer/sdk-web-types";
3
- import { Banner as a } from "./banner/index.js";
4
- import { Notification as q } from "./notification/index.js";
5
- import { Overlay as _ } from "./overlay/index.js";
6
- import { Sidebar as E } from "./sidebar/index.js";
7
- import { OverlayContainer as G } from "./overlay/styles.js";
8
- const O = (i) => (i == null ? void 0 : i.type) === f.INGAME_IAB11_LBAR || (i == null ? void 0 : i.type) === f.INGAME_IAB21_LBAR, d = (i) => (i == null ? void 0 : i.type) === f.INGAME_IAB11 || (i == null ? void 0 : i.type) === f.INGAME_IAB21, P = ({
3
+ import { Banner as G } from "./banner/index.js";
4
+ import { Notification as S } from "./notification/index.js";
5
+ import { Overlay as E } from "./overlay/index.js";
6
+ import { Sidebar as q } from "./sidebar/index.js";
7
+ import { OverlayContainer as O } from "./overlay/styles.js";
8
+ const M = (i) => (i == null ? void 0 : i.type) === f.INGAME_IAB11_LBAR || (i == null ? void 0 : i.type) === f.INGAME_IAB21_LBAR, R = (i) => (i == null ? void 0 : i.type) === f.INGAME_IAB11_SIDEBAR || (i == null ? void 0 : i.type) === f.INGAME_IAB21_SIDEBAR, a = (i) => (i == null ? void 0 : i.type) === f.INGAME_IAB11 || (i == null ? void 0 : i.type) === f.INGAME_IAB21, P = ({
9
9
  advertisement: i,
10
- close: u,
11
- skipTypeCheck: l,
12
- skipAutoClose: I,
10
+ close: l,
11
+ skipTypeCheck: y,
12
+ skipAutoClose: c,
13
13
  layoutMode: h = "side-by-side",
14
- sidebar: n,
15
- isNotification: M,
16
- banner: t,
17
- markAsViewed: c,
18
- open: o,
19
- externalAd: y,
20
- controlVideo: A,
21
- advertisementPaused: N,
22
- togglePause: B
23
- }) => i.promotion ? M && i.notification ? /* @__PURE__ */ r(
24
- q,
14
+ sidebar: u,
15
+ isNotification: o,
16
+ banner: A,
17
+ markAsViewed: B,
18
+ open: I,
19
+ externalAd: _,
20
+ controlVideo: N,
21
+ advertisementPaused: n,
22
+ togglePause: t
23
+ }) => i.promotion ? o && i.notification ? /* @__PURE__ */ r(
24
+ S,
25
25
  {
26
- open: () => o == null ? void 0 : o({ fromNotification: !0 }),
26
+ open: () => I == null ? void 0 : I({ fromNotification: !0 }),
27
27
  notification: i.notification,
28
28
  promotionId: i.question.id
29
29
  }
30
- ) : !n && !t && (l || d(i.promotion)) ? /* @__PURE__ */ r(G, { className: "PromoOverlayContainer", children: /* @__PURE__ */ r(
31
- _,
30
+ ) : !u && !A && (y || a(i.promotion)) ? /* @__PURE__ */ r(O, { className: "PromoOverlayContainer", children: /* @__PURE__ */ r(
31
+ E,
32
32
  {
33
- markAsViewed: c,
33
+ markAsViewed: B,
34
34
  promotionId: i.question.id,
35
35
  promotion: i.promotion,
36
- onClose: u,
37
- open: o,
38
- skipAutoClose: I,
39
- externalAd: y,
40
- controlVideo: A,
41
- advertisementPaused: N,
42
- togglePause: B
36
+ onClose: l,
37
+ open: I,
38
+ skipAutoClose: c,
39
+ externalAd: _,
40
+ controlVideo: N,
41
+ advertisementPaused: n,
42
+ togglePause: t
43
43
  }
44
- ) }) : n && (l || O(i.promotion)) ? /* @__PURE__ */ r(E, { className: "PromoSidebarContainer", direction: n, hiding: !1, children: /* @__PURE__ */ r(
45
- _,
44
+ ) }) : u && (y || M(i.promotion) || R(i.promotion)) ? /* @__PURE__ */ r(q, { className: "PromoSidebarContainer", direction: u, hiding: !1, children: /* @__PURE__ */ r(
45
+ E,
46
46
  {
47
- markAsViewed: c,
47
+ markAsViewed: B,
48
48
  promotionId: i.question.id,
49
49
  promotion: i.promotion,
50
- externalAd: y,
51
- onClose: u,
52
- open: o,
53
- controlVideo: A,
54
- skipAutoClose: I,
55
- advertisementPaused: N,
56
- togglePause: B
50
+ externalAd: _,
51
+ onClose: l,
52
+ open: I,
53
+ controlVideo: N,
54
+ skipAutoClose: c,
55
+ advertisementPaused: n,
56
+ togglePause: t
57
57
  }
58
- ) }) : t ? /* @__PURE__ */ r(
59
- a,
58
+ ) }) : A && M(i.promotion) ? /* @__PURE__ */ r(
59
+ G,
60
60
  {
61
61
  promotionId: i.question.id,
62
62
  hiding: !1,
63
63
  promotion: i.promotion,
64
- direction: t
64
+ direction: A
65
65
  }
66
66
  ) : null : null;
67
67
  export {
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { cx as J } from "@linaria/core";
2
+ import { cx as K } from "@linaria/core";
3
3
  import { useEffect as u } from "react";
4
4
  import { eventBus as eo } from "@streamlayer/sdk-web-interfaces";
5
- import { PromotionType as K, PromotionLogoMode as s, AutoPlayVideo as ro, PromotionButtonType as to } from "@streamlayer/sdk-web-types";
5
+ import { PromotionType as f, PromotionLogoMode as s, AutoPlayVideo as ro, PromotionButtonType as to } from "@streamlayer/sdk-web-types";
6
6
  import { CloseButton as no } from "../../close-btn/index.js";
7
7
  import { VideoPlayer as ao } from "../../video-player/index.js";
8
8
  import { ExternalAdOverlay as lo } from "./externalAd/index.js";
9
- import { PromoOverlay as io, Header as so, HeaderContent as mo, headerContentShift as po, SponsorLogo as Q, Sponsor as co, SponsorName as yo, SponsorText as uo, ADLogo as fo, SponsoredText as bo, Media as ho, shiftMedia as Ao, Content as X, PromoImg as To, Title as No, hideOnMobile as Po, Description as vo, ActionBtnWrap as xo, ActionButton as go } from "./styles.js";
10
- import { OverlayContainer as ko } from "./styles.js";
11
- const Ro = (f) => {
12
- var A, T, N, P, v, x, g, B, C, E, O, L, M, S, I, D, R, U, _, k, F, V, j, G, H, w, W, $, q, z;
9
+ import { PromoOverlay as io, Header as so, HeaderContent as mo, headerContentShift as po, SponsorLogo as Q, Sponsor as co, SponsorName as yo, SponsorText as uo, ADLogo as fo, SponsoredText as ho, Media as bo, shiftMedia as Ao, Content as X, PromoImg as vo, Title as Po, hideOnMobile as Bo, Description as No, ActionBtnWrap as To, ActionButton as xo } from "./styles.js";
10
+ import { OverlayContainer as Fo } from "./styles.js";
11
+ const Ro = (h) => {
12
+ var v, P, B, N, T, x, C, E, g, I, S, M, L, O, D, R, _, k, F, U, V, G, j, H, w, W, $, q, z, J;
13
13
  const {
14
14
  promotion: o,
15
15
  open: d,
@@ -21,96 +21,98 @@ const Ro = (f) => {
21
21
  onClose: oo,
22
22
  markAsViewed: m,
23
23
  externalAd: b
24
- } = f, p = o.type === K.INGAME_IAB11_LBAR || o.type === K.INGAME_IAB11, c = ((A = o.sponsor) == null ? void 0 : A.logo) && o.logoMode === s.CENTER, h = !!((N = (T = o.banner) == null ? void 0 : T.video) != null && N.url), i = o.autoPlayVideo === ro.ENABLED;
24
+ } = h, p = o.type === f.INGAME_IAB11_LBAR || o.type === f.INGAME_IAB11 || o.type === f.INGAME_IAB11_SIDEBAR, c = ((v = o.sponsor) == null ? void 0 : v.logo) && o.logoMode === s.CENTER, A = !!((B = (P = o.banner) == null ? void 0 : P.video) != null && B.url), i = o.autoPlayVideo === ro.ENABLED;
25
25
  if (u(() => {
26
- r == null || r(h || i), d == null || d();
26
+ r == null || r(A || i), d == null || d();
27
27
  }, []), u(() => {
28
28
  l && o.type && m && m();
29
29
  }, [l, o.type, m]), u(() => () => {
30
30
  n == null || n({ muted: !1 });
31
31
  }, [n]), b)
32
- return /* @__PURE__ */ e(lo, { ...f, externalAd: b });
33
- let a = (P = o.banner) == null ? void 0 : P.url;
32
+ return /* @__PURE__ */ e(lo, { ...h, externalAd: b });
33
+ let a = (N = o.banner) == null ? void 0 : N.url;
34
34
  a && a.indexOf("http") !== 0 && (a = `https://${a}`);
35
35
  let y = !0;
36
- return h && (!Y || !i ? y = !0 : y = !1), /* @__PURE__ */ t(io, { className: "PromoOverlay", children: [
37
- /* @__PURE__ */ t(so, { children: [
38
- /* @__PURE__ */ t(mo, { className: J(!c && po), children: [
39
- ((v = o.sponsor) == null ? void 0 : v.logo) && o.logoMode === s.LEFT && /* @__PURE__ */ e(Q, { className: "PromoSponsorLogo", src: (x = o.sponsor) == null ? void 0 : x.logo, alt: "promo" }),
40
- /* @__PURE__ */ t(
41
- co,
36
+ return A && (!Y || !i ? y = !0 : y = !1), /* @__PURE__ */ t(io, { className: "PromoOverlay", children: [
37
+ /* @__PURE__ */ t("div", { children: [
38
+ /* @__PURE__ */ t(so, { children: [
39
+ /* @__PURE__ */ t(mo, { className: K(!c && po), children: [
40
+ ((T = o.sponsor) == null ? void 0 : T.logo) && o.logoMode === s.LEFT && /* @__PURE__ */ e(Q, { className: "PromoSponsorLogo", src: (x = o.sponsor) == null ? void 0 : x.logo, alt: "promo" }),
41
+ /* @__PURE__ */ t(
42
+ co,
43
+ {
44
+ style: {
45
+ paddingLeft: (C = o.sponsor) != null && C.logo && o.logoMode === s.LEFT ? "0px" : "8px"
46
+ },
47
+ children: [
48
+ ((E = o.sponsor) == null ? void 0 : E.logo) && o.logoMode === s.LEFT && /* @__PURE__ */ e(yo, { children: (g = o.sponsor) == null ? void 0 : g.name }),
49
+ /* @__PURE__ */ t(uo, { className: "SponsorText", children: [
50
+ /* @__PURE__ */ e(fo, { children: "AD" }),
51
+ /* @__PURE__ */ e(ho, { children: "SPONSORED" })
52
+ ] })
53
+ ]
54
+ }
55
+ )
56
+ ] }),
57
+ /* @__PURE__ */ e(
58
+ no,
42
59
  {
43
- style: {
44
- paddingLeft: (g = o.sponsor) != null && g.logo && o.logoMode === s.LEFT ? "0px" : "8px"
45
- },
46
- children: [
47
- ((B = o.sponsor) == null ? void 0 : B.logo) && o.logoMode === s.LEFT && /* @__PURE__ */ e(yo, { children: (C = o.sponsor) == null ? void 0 : C.name }),
48
- /* @__PURE__ */ t(uo, { className: "SponsorText", children: [
49
- /* @__PURE__ */ e(fo, { children: "AD" }),
50
- /* @__PURE__ */ e(bo, { children: "SPONSORED" })
51
- ] })
52
- ]
60
+ className: "ClosePromoIcon",
61
+ close: oo,
62
+ autoClose: (I = o.closeTimer) == null ? void 0 : I.auto,
63
+ duration: Z ? 0 : (S = o.closeTimer) == null ? void 0 : S.seconds,
64
+ isPlaying: y
53
65
  }
54
66
  )
55
67
  ] }),
56
- /* @__PURE__ */ e(
57
- no,
58
- {
59
- className: "ClosePromoIcon",
60
- close: oo,
61
- autoClose: (E = o.closeTimer) == null ? void 0 : E.auto,
62
- duration: Z ? 0 : (O = o.closeTimer) == null ? void 0 : O.seconds,
63
- isPlaying: y
64
- }
65
- )
66
- ] }),
67
- /* @__PURE__ */ t(ho, { children: [
68
- c && /* @__PURE__ */ e(Q, { className: Ao, src: (L = o.sponsor) == null ? void 0 : L.logo, alt: "promo" }),
69
- /* @__PURE__ */ e(X, { children: (S = (M = o.banner) == null ? void 0 : M.video) != null && S.url ? /* @__PURE__ */ e(
70
- ao,
71
- {
72
- source: (D = (I = o.banner) == null ? void 0 : I.video) == null ? void 0 : D.url,
73
- poster: (U = (R = o.banner) == null ? void 0 : R.video) == null ? void 0 : U.thumbnailUrl,
74
- aspectRatio: p ? "1/1" : "16/9",
75
- onPause: () => {
76
- i && (r == null || r(!0));
77
- },
78
- onPlay: () => {
79
- eo.emit("advertisement", {
80
- action: "videoPlay",
81
- payload: {
82
- id: l,
83
- type: o.type
84
- }
85
- }), r == null || r(!1);
86
- },
87
- controlVideo: n,
88
- autoPlay: i
89
- }
90
- ) : (_ = o.banner) != null && _.imageUrl ? /* @__PURE__ */ e(To, { style: p ? { aspectRatio: "1/1" } : {}, src: (k = o.banner) == null ? void 0 : k.imageUrl, alt: "promo" }) : null }),
91
- !p && /* @__PURE__ */ t(X, { children: [
92
- ((F = o.banner) == null ? void 0 : F.title) && /* @__PURE__ */ e(No, { className: J("AdvTitle", c && Po), children: (V = o.banner) == null ? void 0 : V.title }),
93
- ((j = o.banner) == null ? void 0 : j.body) && /* @__PURE__ */ e(vo, { className: "AdvDescription", children: (G = o.banner) == null ? void 0 : G.body })
68
+ /* @__PURE__ */ t(bo, { children: [
69
+ c && /* @__PURE__ */ e(Q, { className: Ao, src: (M = o.sponsor) == null ? void 0 : M.logo, alt: "promo" }),
70
+ /* @__PURE__ */ e(X, { children: (O = (L = o.banner) == null ? void 0 : L.video) != null && O.url ? /* @__PURE__ */ e(
71
+ ao,
72
+ {
73
+ source: (R = (D = o.banner) == null ? void 0 : D.video) == null ? void 0 : R.url,
74
+ poster: (k = (_ = o.banner) == null ? void 0 : _.video) == null ? void 0 : k.thumbnailUrl,
75
+ aspectRatio: p ? "1/1" : "2/1",
76
+ onPause: () => {
77
+ i && (r == null || r(!0));
78
+ },
79
+ onPlay: () => {
80
+ eo.emit("advertisement", {
81
+ action: "videoPlay",
82
+ payload: {
83
+ id: l,
84
+ type: o.type
85
+ }
86
+ }), r == null || r(!1);
87
+ },
88
+ controlVideo: n,
89
+ autoPlay: i
90
+ }
91
+ ) : (F = o.banner) != null && F.imageUrl ? /* @__PURE__ */ e(vo, { style: p ? { aspectRatio: "1/1" } : {}, src: (U = o.banner) == null ? void 0 : U.imageUrl, alt: "promo" }) : null }),
92
+ !p && /* @__PURE__ */ t(X, { children: [
93
+ ((V = o.banner) == null ? void 0 : V.title) && /* @__PURE__ */ e(Po, { className: K("AdvTitle", c && Bo), children: (G = o.banner) == null ? void 0 : G.title }),
94
+ ((j = o.banner) == null ? void 0 : j.body) && /* @__PURE__ */ e(No, { className: "AdvDescription", children: (H = o.banner) == null ? void 0 : H.body })
95
+ ] })
94
96
  ] })
95
97
  ] }),
96
- o.buttonType !== to.NO_BUTTON && /* @__PURE__ */ e(xo, { children: /* @__PURE__ */ e(
97
- go,
98
+ o.buttonType === to.BASIC && /* @__PURE__ */ e(To, { children: /* @__PURE__ */ e(
99
+ xo,
98
100
  {
99
101
  href: a,
100
102
  style: {
101
- backgroundColor: ((w = (H = o.banner) == null ? void 0 : H.ctaButton) == null ? void 0 : w.color) || "#009dc4",
102
- color: (($ = (W = o.banner) == null ? void 0 : W.ctaButton) == null ? void 0 : $.textColor) || "#fff"
103
+ backgroundColor: ((W = (w = o.banner) == null ? void 0 : w.ctaButton) == null ? void 0 : W.color) || "#009dc4",
104
+ color: ((q = ($ = o.banner) == null ? void 0 : $.ctaButton) == null ? void 0 : q.textColor) || "#fff"
103
105
  },
104
106
  "data-a": "button",
105
107
  "data-promo-id": l,
106
108
  "data-promo-type": o.type,
107
109
  target: "_blank",
108
- children: (z = (q = o.banner) == null ? void 0 : q.ctaButton) == null ? void 0 : z.label
110
+ children: (J = (z = o.banner) == null ? void 0 : z.ctaButton) == null ? void 0 : J.label
109
111
  }
110
112
  ) })
111
113
  ] });
112
114
  };
113
115
  export {
114
116
  Ro as Overlay,
115
- ko as OverlayContainer
117
+ Fo as OverlayContainer
116
118
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
2
  import { breakpoints as a } from "./breakpoints.js";
3
3
  import { colors as p, colorsAdvertisement as s, FONT as e } from "./constants.js";
4
- const l = `
4
+ const x = `
5
5
  ${p}
6
6
  ${s}
7
7
  --font-family: ${e.REGULAR};
@@ -67,9 +67,11 @@ const l = `
67
67
 
68
68
  --insight-image-ratio: 16/9;
69
69
  --adv-side-indents: 16px;
70
+ --adv-promo-padding-bottom: 36px;
70
71
  --adv-top-indent: 12px;
71
72
  --adv-header-height: 52px;
72
73
  --adv-media-row-gap: 24px;
74
+ --adv-media-button-indent: 10px;
73
75
  --adv-media-padding: 0 26.5px;
74
76
  --adv-sponsor-logo-size: 32px;
75
77
  --adv-sponsor-font-size: 16px;
@@ -86,6 +88,7 @@ const l = `
86
88
 
87
89
  .mobile-view {
88
90
  --adv-side-indents: 16px;
91
+ --adv-promo-padding-bottom: 36px;
89
92
  --adv-hide-on-mobile: none;
90
93
  --adv-header-shift: -10px;
91
94
  --adv-media-shift: -10px;
@@ -93,6 +96,7 @@ const l = `
93
96
  --adv-header-border: none;
94
97
  --adv-header-height: 48px;
95
98
  --adv-media-row-gap: 22.5px;
99
+ --adv-media-button-indent: 22.5px;
96
100
  --adv-sponsor-logo-size: 28px;
97
101
  --adv-sponsor-font-size: 12px;
98
102
  }
@@ -147,7 +151,7 @@ const l = `
147
151
 
148
152
  --display-question-container: initial;
149
153
  --justify-content-question-container: initial;
150
- `, h = "StreamLayerCSSReset", m = "ttkj0ah", g = () => /* @__PURE__ */ t("table", {
154
+ `, m = "StreamLayerCSSReset", h = "ttkj0ah", g = () => /* @__PURE__ */ t("table", {
151
155
  children: /* @__PURE__ */ i("table", {
152
156
  children: [/* @__PURE__ */ t("thead", {
153
157
  children: /* @__PURE__ */ i("tr", {
@@ -158,13 +162,13 @@ const l = `
158
162
  })]
159
163
  })
160
164
  }), /* @__PURE__ */ t("tbody", {
161
- children: l.split(";").map((o) => {
162
- const n = o.trim(), [r, d] = n.split(":");
165
+ children: x.split(";").map((o) => {
166
+ const n = o.trim(), [d, r] = n.split(":");
163
167
  return /* @__PURE__ */ i("tr", {
164
168
  children: [/* @__PURE__ */ t("td", {
165
- children: r
166
- }), /* @__PURE__ */ t("td", {
167
169
  children: d
170
+ }), /* @__PURE__ */ t("td", {
171
+ children: r
168
172
  })]
169
173
  }, n);
170
174
  })
@@ -173,7 +177,7 @@ const l = `
173
177
  });
174
178
  export {
175
179
  g as ThemeVariables,
176
- h as resetCss,
177
- m as theme,
178
- l as themeStr
180
+ m as resetCss,
181
+ h as theme,
182
+ x as themeStr
179
183
  };
@@ -1,25 +1,25 @@
1
- import { createPromiseClient as o } from "@connectrpc/connect";
2
- import { createGrpcWebTransport as i } from "@connectrpc/connect-web";
3
- import { Users as a } from "@streamlayer/sl-eslib/users/users_connect";
4
- const C = async (r, t) => {
5
- const e = i({
6
- baseUrl: r
1
+ import { createClient as o } from "@connectrpc/connect";
2
+ import { createGrpcWebTransport as a } from "@connectrpc/connect-web";
3
+ import { Users as i } from "@streamlayer/sl-eslib/users/users_pb";
4
+ const m = async (t, r) => {
5
+ const e = a({
6
+ baseUrl: t
7
7
  });
8
- return await o(a, e).requestPassword({ id: t }), !0;
9
- }, d = async (r, t) => {
10
- const e = i({
11
- baseUrl: r
8
+ return await o(i, e).requestPassword({ id: r }), !0;
9
+ }, d = async (t, r) => {
10
+ const e = a({
11
+ baseUrl: t
12
12
  });
13
- return await o(a, e).register({ id: t }), !0;
14
- }, w = async (r, t, e) => {
13
+ return await o(i, e).register({ id: r }), !0;
14
+ }, w = async (t, r, e) => {
15
15
  var c;
16
- const s = i({
17
- baseUrl: r
18
- }), n = await o(a, s).login({ id: t, password: e });
16
+ const s = a({
17
+ baseUrl: t
18
+ }), n = await o(i, s).login({ id: r, password: e });
19
19
  return (c = n == null ? void 0 : n.meta) == null ? void 0 : c.jwt;
20
20
  };
21
21
  export {
22
22
  w as login,
23
23
  d as register,
24
- C as requestLoginCode
24
+ m as requestLoginCode
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "1.23.5",
3
+ "version": "1.25.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -15,6 +15,11 @@
15
15
  "default": "./lib/app/masters/masters.js",
16
16
  "types": "./lib/app/masters/masters.d.ts"
17
17
  },
18
+ "./tv": {
19
+ "import": "./lib/app/tvos/index.js",
20
+ "default": "./lib/app/tvos/index.js",
21
+ "types": "./lib/app/tvos/index.d.ts"
22
+ },
18
23
  "./mastersPoints": {
19
24
  "import": "./lib/app/masters/Points/index.js",
20
25
  "default": "./lib/app/masters/Points/index.js",
@@ -61,7 +66,7 @@
61
66
  ],
62
67
  "peerDependencies": {
63
68
  "@lottiefiles/react-lottie-player": "^3.5.4",
64
- "@streamlayer/sl-eslib": "^5.149.1",
69
+ "@streamlayer/sl-eslib": "^5.168.0",
65
70
  "@types/lodash.throttle": "^4.1.9",
66
71
  "lodash.throttle": "^4.1.1",
67
72
  "react-infinite-scroller": "^1.2.6",
@@ -69,19 +74,19 @@
69
74
  "react-window": "^1.8.10",
70
75
  "react-window-infinite-loader": "^1.0.9",
71
76
  "uuid": "^11.1.0",
72
- "@streamlayer/feature-gamification": "^1.16.14",
73
- "@streamlayer/react-polyfills": "^0.1.21",
74
- "@streamlayer/sdk-web": "^1.10.14",
75
- "@streamlayer/sdk-web-anonymous-auth": "^1.1.40",
76
- "@streamlayer/sdk-web-analytics": "^1.7.14",
77
- "@streamlayer/sdk-web-api": "^1.8.14",
78
- "@streamlayer/sdk-web-core": "^1.11.16",
79
- "@streamlayer/sdk-web-features": "^1.0.61",
80
- "@streamlayer/sdk-web-interfaces": "^1.5.5",
81
- "@streamlayer/sdk-web-logger": "^1.0.61",
82
- "@streamlayer/sdk-web-notifications": "^1.3.23",
83
- "@streamlayer/sdk-web-storage": "^1.0.61",
84
- "@streamlayer/sdk-web-types": "^1.10.18"
77
+ "@streamlayer/feature-gamification": "^1.18.0",
78
+ "@streamlayer/react-polyfills": "^0.1.23",
79
+ "@streamlayer/sdk-web": "^1.12.0",
80
+ "@streamlayer/sdk-web-analytics": "^1.9.0",
81
+ "@streamlayer/sdk-web-anonymous-auth": "^1.1.42",
82
+ "@streamlayer/sdk-web-api": "^1.10.0",
83
+ "@streamlayer/sdk-web-core": "^1.13.0",
84
+ "@streamlayer/sdk-web-features": "^1.0.63",
85
+ "@streamlayer/sdk-web-interfaces": "^1.6.1",
86
+ "@streamlayer/sdk-web-logger": "^1.0.63",
87
+ "@streamlayer/sdk-web-notifications": "^1.3.25",
88
+ "@streamlayer/sdk-web-storage": "^1.0.63",
89
+ "@streamlayer/sdk-web-types": "^1.12.0"
85
90
  },
86
91
  "nx": {
87
92
  "implicitDependencies": [
@@ -89,8 +94,8 @@
89
94
  ]
90
95
  },
91
96
  "devDependencies": {
92
- "@connectrpc/connect": "^1.6.1",
93
- "@connectrpc/connect-web": "^1.6.1",
97
+ "@connectrpc/connect": "^2.0.0",
98
+ "@connectrpc/connect-web": "^2.0.0",
94
99
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
95
100
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
96
101
  "@linaria/babel-preset": "^5.0.4",
@@ -121,12 +126,13 @@
121
126
  "vite-plugin-svgr": "^4.2.0",
122
127
  "vite-svg-loader": "^5.1.0",
123
128
  "vite-tsconfig-paths": "^5.0.1",
124
- "@streamlayer/react": "^1.15.5"
129
+ "@streamlayer/react": "^1.17.0"
125
130
  },
126
131
  "dependencies": {
127
132
  "@dailymotion/vast-client": "^6.2.0",
128
133
  "@types/vast-client": "^3.0.4",
129
134
  "@types/vmap": "^2.2.4",
135
+ "react-qr-code": "^2.0.16",
130
136
  "swiper": "^11.2.6",
131
137
  "video.js": "^8.21.0",
132
138
  "videojs-contrib-ads": "^7.5.2",