@streamlayer/react-ui 1.2.2 → 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.
Files changed (142) hide show
  1. package/lib/app/app/Advertisement/index.d.ts +2 -1
  2. package/lib/app/app/Advertisement/index.js +66 -47
  3. package/lib/app/app/Features/FeatureProvider.d.ts +0 -1
  4. package/lib/app/app/Features/Gamification/Leaderboard.d.ts +0 -1
  5. package/lib/app/app/Features/Gamification/Question.d.ts +3 -1
  6. package/lib/app/app/Features/Gamification/Question.js +45 -41
  7. package/lib/app/app/Features/Gamification/QuestionsList.d.ts +0 -1
  8. package/lib/app/app/Features/Gamification/Tabs.d.ts +0 -1
  9. package/lib/app/app/Features/Gamification/UserSummary.d.ts +0 -1
  10. package/lib/app/app/Features/Gamification/gamification-feature.d.ts +0 -1
  11. package/lib/app/app/Features/Gamification/index.d.ts +0 -1
  12. package/lib/app/app/Features/index.d.ts +0 -1
  13. package/lib/app/app/Insight/index.d.ts +18 -0
  14. package/lib/app/app/Insight/index.js +62 -0
  15. package/lib/app/app/Navigation/index.d.ts +0 -1
  16. package/lib/app/app/Navigation/index.js +39 -31
  17. package/lib/app/app/Notifications/Onboarding/Notification/index.d.ts +0 -1
  18. package/lib/app/app/Notifications/Onboarding/index.d.ts +0 -1
  19. package/lib/app/app/Notifications/index.d.ts +0 -1
  20. package/lib/app/app/Notifications/styles.d.ts +1 -1
  21. package/lib/app/app/Points/index.d.ts +0 -1
  22. package/lib/app/app/index.d.ts +0 -1
  23. package/lib/app/app/story/index.d.ts +2 -10
  24. package/lib/app/app/story/index.js +44 -89
  25. package/lib/app/app/story/insight/index.d.ts +8 -0
  26. package/lib/app/app/story/insight/index.js +57 -0
  27. package/lib/app/app/story/insight/styles.d.ts +6 -0
  28. package/lib/app/app/story/insight/styles.js +30 -0
  29. package/lib/app/app/story/insight/video.d.ts +4 -0
  30. package/lib/app/app/story/insight/video.js +30 -0
  31. package/lib/app/app/story/promotion/content.d.ts +3 -0
  32. package/lib/app/app/story/{content.js → promotion/content.js} +22 -18
  33. package/lib/app/app/story/promotion/index.d.ts +9 -0
  34. package/lib/app/app/story/promotion/index.js +54 -0
  35. package/lib/app/app/story/promotion/styles.d.ts +6 -0
  36. package/lib/app/app/story/promotion/styles.js +35 -0
  37. package/lib/app/app/story/promotion/video.d.ts +8 -0
  38. package/lib/app/app/story/promotion/video.js +98 -0
  39. package/lib/app/app/story/settings/index.d.ts +1 -0
  40. package/lib/app/app/story/settings/index.js +14 -0
  41. package/lib/app/app/story/styles.d.ts +1 -6
  42. package/lib/app/app/story/styles.js +9 -34
  43. package/lib/app/app/story/video.d.ts +1 -10
  44. package/lib/app/app/story/video.js +35 -62
  45. package/lib/app/app/useApp.d.ts +0 -1
  46. package/lib/app/app/useAppContext.d.ts +0 -1
  47. package/lib/app/login/demo.d.ts +0 -1
  48. package/lib/app/login/demo.js +23 -9
  49. package/lib/app/masters/Features/FeatureProvider.d.ts +0 -1
  50. package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +0 -1
  51. package/lib/app/masters/Features/Gamification/Question.d.ts +0 -1
  52. package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +0 -1
  53. package/lib/app/masters/Features/Gamification/Tabs.d.ts +0 -1
  54. package/lib/app/masters/Features/Gamification/UserSummary.d.ts +0 -1
  55. package/lib/app/masters/Features/Gamification/gamification-feature.d.ts +0 -1
  56. package/lib/app/masters/Features/Gamification/index.d.ts +0 -1
  57. package/lib/app/masters/Features/index.d.ts +0 -1
  58. package/lib/app/masters/Navigation/MastersNavigation/index.d.ts +0 -1
  59. package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +0 -1
  60. package/lib/app/masters/Notifications/Onboarding/index.d.ts +0 -1
  61. package/lib/app/masters/Notifications/index.d.ts +0 -1
  62. package/lib/app/masters/Notifications/styles.d.ts +1 -1
  63. package/lib/app/masters/Points/index.d.ts +0 -1
  64. package/lib/app/masters/masters.d.ts +0 -1
  65. package/lib/app/masters/useMastersApp.d.ts +0 -1
  66. package/lib/app/masters/useMastersContext.d.ts +0 -1
  67. package/lib/app/styles.d.ts +3 -3
  68. package/lib/app/useClipboardCopy.d.ts +0 -1
  69. package/lib/app/useSdkFeature.d.ts +0 -1
  70. package/lib/app/useSdkResponsive.d.ts +0 -1
  71. package/lib/app/useSdkScroll.d.ts +0 -1
  72. package/lib/assets/style.css +1 -1
  73. package/lib/ui/advertisement/banner/index.d.ts +1 -2
  74. package/lib/ui/advertisement/banner/index.js +16 -28
  75. package/lib/ui/advertisement/banner/styles.d.ts +3 -0
  76. package/lib/ui/advertisement/banner/styles.js +20 -0
  77. package/lib/ui/advertisement/index.d.ts +0 -1
  78. package/lib/ui/advertisement/index.js +13 -12
  79. package/lib/ui/advertisement/mock.d.ts +0 -1
  80. package/lib/ui/advertisement/overlay/index.d.ts +2 -1
  81. package/lib/ui/advertisement/overlay/index.js +61 -58
  82. package/lib/ui/advertisement/overlay/styles.d.ts +8 -4
  83. package/lib/ui/advertisement/overlay/styles.js +70 -62
  84. package/lib/ui/animated-counter/index.d.ts +0 -1
  85. package/lib/ui/gamification/constants.d.ts +0 -1
  86. package/lib/ui/gamification/detail/header/index.d.ts +0 -1
  87. package/lib/ui/gamification/insight/index.d.ts +0 -1
  88. package/lib/ui/gamification/insight-list/index.d.ts +0 -1
  89. package/lib/ui/gamification/leaderboard/index.d.ts +0 -1
  90. package/lib/ui/gamification/leaderboard/list-item/index.d.ts +0 -1
  91. package/lib/ui/gamification/leaderboard/static.d.ts +0 -1
  92. package/lib/ui/gamification/onboarding/index.d.ts +0 -1
  93. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +0 -1
  94. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +0 -1
  95. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +0 -1
  96. package/lib/ui/gamification/question/index.d.ts +0 -1
  97. package/lib/ui/gamification/question/insight/index.d.ts +0 -1
  98. package/lib/ui/gamification/question/list/index.d.ts +0 -1
  99. package/lib/ui/gamification/question/notification/index.d.ts +0 -1
  100. package/lib/ui/gamification/question/notification/insight/index.d.ts +0 -1
  101. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +14 -14
  102. package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +0 -1
  103. package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +1 -1
  104. package/lib/ui/gamification/question/notification/tweet/index.d.ts +0 -1
  105. package/lib/ui/gamification/question/twitter/index.d.ts +0 -1
  106. package/lib/ui/gamification/vote/alert/index.d.ts +0 -1
  107. package/lib/ui/gamification/vote/feedback/index.d.ts +0 -1
  108. package/lib/ui/gamification/vote/index.d.ts +0 -1
  109. package/lib/ui/gamification/vote/insight-details/index.d.ts +0 -1
  110. package/lib/ui/gamification/vote/insight-details/index.js +7 -8
  111. package/lib/ui/gamification/vote/insight-details/styles.d.ts +1 -0
  112. package/lib/ui/gamification/vote/insight-details/styles.js +10 -4
  113. package/lib/ui/gamification/vote/twitter-details/index.d.ts +0 -1
  114. package/lib/ui/gamification/vote/vote-option/index.d.ts +0 -1
  115. package/lib/ui/gamification/vote/vote-option/styles.d.ts +2 -2
  116. package/lib/ui/gamification/vote/win-bar/index.d.ts +0 -1
  117. package/lib/ui/link/index.d.ts +1 -0
  118. package/lib/ui/link/index.js +9 -0
  119. package/lib/ui/navigation/button/Channels.d.ts +0 -1
  120. package/lib/ui/navigation/button/FeaturedGroups.d.ts +0 -1
  121. package/lib/ui/navigation/button/LeaderBoard.d.ts +0 -1
  122. package/lib/ui/navigation/button/index.d.ts +0 -1
  123. package/lib/ui/navigation/index.d.ts +0 -1
  124. package/lib/ui/questions/insight/index.d.ts +0 -1
  125. package/lib/ui/questions/twitter/index.d.ts +0 -1
  126. package/lib/ui/questions/twitter/styles.d.ts +2 -2
  127. package/lib/ui/show-in/index.d.ts +0 -1
  128. package/lib/ui/theme/breakpoints.d.ts +0 -1
  129. package/lib/ui/theme/index.d.ts +1 -0
  130. package/lib/ui/theme/index.js +4 -3
  131. package/lib/ui/theme/masters-theme.d.ts +0 -1
  132. package/lib/ui/theme/theme.js +42 -16
  133. package/lib/ui/timer/index.d.ts +0 -1
  134. package/lib/ui/video-player/index.d.ts +1 -0
  135. package/lib/ui/video-player/index.js +43 -43
  136. package/lib/utils/debug/index.js +45 -19
  137. package/package.json +26 -26
  138. package/lib/app/app/story/content.d.ts +0 -4
  139. package/lib/app/app/story/useResponsive.d.ts +0 -1
  140. package/lib/app/app/story/useResponsive.js +0 -15
  141. /package/lib/app/app/story/{login.d.ts → settings/login.d.ts} +0 -0
  142. /package/lib/app/app/story/{login.js → settings/login.js} +0 -0
@@ -1,5 +1,4 @@
1
1
  import { Advertisement } from '@streamlayer/feature-gamification';
2
-
3
2
  export declare const AdvertisementUI: React.FC<{
4
3
  advertisement: Advertisement & {
5
4
  data: Exclude<Advertisement['data'], undefined>;
@@ -1,19 +1,20 @@
1
- import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
- import { useStore as a } from "@nanostores/react";
3
- import { PromotionType as d } from "@streamlayer/sdk-web-types";
4
- import { Banner as s } from "./banner/index.js";
1
+ import { jsxs as t, jsx as d } from "react/jsx-runtime";
2
+ import { useStore as n } from "@nanostores/react";
3
+ import { PromotionType as i } from "@streamlayer/sdk-web-types";
4
+ import { Banner as o } from "./banner/index.js";
5
5
  import { Overlay as u } from "./overlay/index.js";
6
- import { Sidebar as n } from "./sidebar/index.js";
7
- const f = (r) => (r == null ? void 0 : r.type) === d.INGAME_IAB11_LBAR || (r == null ? void 0 : r.type) === d.INGAME_IAB21_LBAR, y = (r) => (r == null ? void 0 : r.type) === d.INGAME_IAB11 || (r == null ? void 0 : r.type) === d.INGAME_IAB21, C = ({ advertisement: r, layoutMode: A = "side-by-side", sidebar: i, banner: t }) => {
8
- const e = a(r.data);
9
- return !e.data && e.loading ? null : e.error ? /* @__PURE__ */ c("div", { children: [
6
+ import { Sidebar as a } from "./sidebar/index.js";
7
+ import { OverlayContainer as f } from "./overlay/styles.js";
8
+ const y = (r) => (r == null ? void 0 : r.type) === i.INGAME_IAB11_LBAR || (r == null ? void 0 : r.type) === i.INGAME_IAB21_LBAR, I = (r) => (r == null ? void 0 : r.type) === i.INGAME_IAB11 || (r == null ? void 0 : r.type) === i.INGAME_IAB21, E = ({ advertisement: r, layoutMode: s = "side-by-side", sidebar: c, banner: e }) => {
9
+ const l = n(r.data);
10
+ return !l.data && l.loading ? null : l.error ? /* @__PURE__ */ t("div", { children: [
10
11
  "error ",
11
- /* @__PURE__ */ l("button", { onClick: r.close, children: "close" })
12
- ] }) : e.data ? !i && !t && y(e.data) ? /* @__PURE__ */ l(u, { promotion: e.data, onClose: r.close }) : i && f(e.data) ? /* @__PURE__ */ l(n, { direction: i, hiding: r.hiding, children: /* @__PURE__ */ l(u, { promotion: e.data, onClose: r.close, inSidebar: !0 }) }) : t ? /* @__PURE__ */ l(s, { hiding: r.hiding, promotion: e.data, direction: t }) : null : /* @__PURE__ */ c("div", { children: [
12
+ /* @__PURE__ */ d("button", { onClick: r.close, children: "close" })
13
+ ] }) : l.data ? !c && !e && I(l.data) ? /* @__PURE__ */ d(f, { children: /* @__PURE__ */ d(u, { promotionId: r.id, promotion: l.data, onClose: r.close }) }) : c && y(l.data) ? /* @__PURE__ */ d(a, { direction: c, hiding: r.hiding, children: /* @__PURE__ */ d(u, { promotionId: r.id, promotion: l.data, onClose: r.close }) }) : e ? /* @__PURE__ */ d(o, { promotionId: r.id, hiding: r.hiding, promotion: l.data, direction: e }) : null : /* @__PURE__ */ t("div", { children: [
13
14
  "empty promo ",
14
- /* @__PURE__ */ l("button", { onClick: r.close, children: "close" })
15
+ /* @__PURE__ */ d("button", { onClick: r.close, children: "close" })
15
16
  ] });
16
17
  };
17
18
  export {
18
- C as AdvertisementUI
19
+ E as AdvertisementUI
19
20
  };
@@ -1,4 +1,3 @@
1
1
  import { PromotionOptions } from '@streamlayer/sdk-web-types';
2
-
3
2
  export declare const promotionMock: PromotionOptions;
4
3
  export declare const promotionMockWithVideo: PromotionOptions;
@@ -1,6 +1,7 @@
1
1
  import { PromotionOptions } from '@streamlayer/sdk-web-types';
2
-
2
+ export { OverlayContainer } from './styles';
3
3
  export declare const Overlay: React.FC<{
4
+ promotionId: string;
4
5
  promotion: PromotionOptions;
5
6
  onClose?: () => void;
6
7
  inSidebar?: boolean;
@@ -1,74 +1,77 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { PromotionType as N, PromotionLogoMode as n } from "@streamlayer/sdk-web-types";
3
- import { VideoPlayer as D } from "../../video-player/index.js";
4
- import { PromoOverlay as F, Header as R, HeaderContent as _, SponsorLogo as S, SponsorName as U, SponsorText as j, ADLogo as m, SponsoredText as G, CloseIconWrap as H, CloseIcon as W, Media as w, Content as V, PromoImg as q, Text as z, Title as J, Description as K, ActionBtnWrap as Q, ActionButton as X } from "./styles.js";
5
- const re = ({
6
- promotion: e,
7
- onClose: O,
8
- inSidebar: k
9
- }) => {
10
- var a, s, c, d, t, g, h, i, b, u, y, x, f, p, A, C, E, T, B, L, M, v, I, P;
11
- const o = e.type === N.INGAME_IAB11_LBAR || e.type === N.INGAME_IAB11;
12
- return /* @__PURE__ */ l(F, { className: "PromoOverlay", style: { ...k ? {} : { backgroundColor: "#1E3344" } }, children: [
13
- /* @__PURE__ */ l(R, { children: [
14
- /* @__PURE__ */ l(_, { children: [
15
- ((a = e.sponsor) == null ? void 0 : a.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(S, { src: (s = e.sponsor) == null ? void 0 : s.logo, alt: "promo" }),
16
- /* @__PURE__ */ l(
17
- "div",
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { cx as R } from "@linaria/core";
3
+ import { eventBus as U } from "@streamlayer/sdk-web-interfaces";
4
+ import { PromotionType as D, PromotionLogoMode as n } from "@streamlayer/sdk-web-types";
5
+ import { VideoPlayer as j } from "../../video-player/index.js";
6
+ import { PromoOverlay as G, Header as H, HeaderContent as W, headerContentShift as V, SponsorLogo as F, Sponsor as q, SponsorName as w, SponsorText as z, ADLogo as J, SponsoredText as K, CloseIconWrap as Q, CloseIcon as X, Media as Y, shiftMedia as Z, Content as _, PromoImg as $, Title as ee, hideOnMobile as re, Description as ae, ActionBtnWrap as ne, ActionButton as le } from "./styles.js";
7
+ import { OverlayContainer as ge } from "./styles.js";
8
+ const he = ({ promotion: e, promotionId: t, onClose: k }) => {
9
+ var s, c, d, i, h, b, y, g, f, p, u, v, m, C, x, M, A, B, N, P, T, E, I, L, S, O;
10
+ const l = e.type === D.INGAME_IAB11_LBAR || e.type === D.INGAME_IAB11, o = ((s = e.sponsor) == null ? void 0 : s.logo) && e.logoMode === n.CENTER;
11
+ return /* @__PURE__ */ a(G, { className: "PromoOverlay", children: [
12
+ /* @__PURE__ */ a(H, { children: [
13
+ /* @__PURE__ */ a(W, { className: R(!o && V), children: [
14
+ ((c = e.sponsor) == null ? void 0 : c.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(F, { src: (d = e.sponsor) == null ? void 0 : d.logo, alt: "promo" }),
15
+ /* @__PURE__ */ a(
16
+ q,
18
17
  {
19
18
  style: {
20
- paddingLeft: (c = e.sponsor) != null && c.logo && e.logoMode === n.LEFT ? "0px" : "8px"
19
+ paddingLeft: (i = e.sponsor) != null && i.logo && e.logoMode === n.LEFT ? "0px" : "8px"
21
20
  },
22
21
  children: [
23
- ((d = e.sponsor) == null ? void 0 : d.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(U, { children: (t = e.sponsor) == null ? void 0 : t.name }),
24
- /* @__PURE__ */ l(j, { children: [
25
- /* @__PURE__ */ r(m, { children: "AD" }),
26
- /* @__PURE__ */ r(G, { children: "SPONSORED" })
22
+ ((h = e.sponsor) == null ? void 0 : h.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(w, { children: (b = e.sponsor) == null ? void 0 : b.name }),
23
+ /* @__PURE__ */ a(z, { children: [
24
+ /* @__PURE__ */ r(J, { children: "AD" }),
25
+ /* @__PURE__ */ r(K, { children: "SPONSORED" })
27
26
  ] })
28
27
  ]
29
28
  }
30
29
  )
31
30
  ] }),
32
- /* @__PURE__ */ r(H, { onClick: O, children: /* @__PURE__ */ r(W, { name: "icon-cross" }) })
31
+ /* @__PURE__ */ r(Q, { onClick: k, children: /* @__PURE__ */ r(X, { name: "icon-cross" }) })
33
32
  ] }),
34
- /* @__PURE__ */ l(w, { children: [
35
- ((g = e.sponsor) == null ? void 0 : g.logo) && e.logoMode === n.CENTER && /* @__PURE__ */ r(S, { src: (h = e.sponsor) == null ? void 0 : h.logo, alt: "promo" }),
36
- /* @__PURE__ */ l(V, { children: [
37
- (b = (i = e.banner) == null ? void 0 : i.video) != null && b.url ? /* @__PURE__ */ r(
38
- D,
39
- {
40
- source: (y = (u = e.banner) == null ? void 0 : u.video) == null ? void 0 : y.url,
41
- poster: (f = (x = e.banner) == null ? void 0 : x.video) == null ? void 0 : f.thumbnailUrl,
42
- aspectRatio: o ? "1/1" : "16/9"
43
- }
44
- ) : (p = e.banner) != null && p.imageUrl ? /* @__PURE__ */ r(
45
- q,
46
- {
47
- style: o ? { width: "268px", height: "268px" } : {},
48
- src: (A = e.banner) == null ? void 0 : A.imageUrl,
49
- alt: "promo"
50
- }
51
- ) : null,
52
- !o && /* @__PURE__ */ l(z, { children: [
53
- /* @__PURE__ */ r(J, { children: (C = e.banner) == null ? void 0 : C.title }),
54
- /* @__PURE__ */ r(K, { children: (E = e.banner) == null ? void 0 : E.body })
55
- ] })
56
- ] }),
57
- /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
58
- X,
33
+ /* @__PURE__ */ a(Y, { children: [
34
+ o && /* @__PURE__ */ r(F, { className: Z, src: (y = e.sponsor) == null ? void 0 : y.logo, alt: "promo" }),
35
+ /* @__PURE__ */ r(_, { children: (f = (g = e.banner) == null ? void 0 : g.video) != null && f.url ? /* @__PURE__ */ r(
36
+ j,
59
37
  {
60
- href: (T = e.banner) == null ? void 0 : T.url,
61
- style: {
62
- backgroundColor: ((L = (B = e.banner) == null ? void 0 : B.ctaButton) == null ? void 0 : L.color) || "#009dc4",
63
- color: ((v = (M = e.banner) == null ? void 0 : M.ctaButton) == null ? void 0 : v.textColor) || "#fff"
64
- },
65
- target: "_blank",
66
- children: (P = (I = e.banner) == null ? void 0 : I.ctaButton) == null ? void 0 : P.label
38
+ source: (u = (p = e.banner) == null ? void 0 : p.video) == null ? void 0 : u.url,
39
+ poster: (m = (v = e.banner) == null ? void 0 : v.video) == null ? void 0 : m.thumbnailUrl,
40
+ aspectRatio: l ? "1/1" : "16/9",
41
+ onPlay: () => {
42
+ U.emit("advertisement", {
43
+ action: "videoPlay",
44
+ payload: {
45
+ advertisementId: t,
46
+ advertisementType: e.type
47
+ }
48
+ });
49
+ }
67
50
  }
68
- ) })
69
- ] })
51
+ ) : (C = e.banner) != null && C.imageUrl ? /* @__PURE__ */ r($, { style: l ? { aspectRatio: "1/1" } : {}, src: (x = e.banner) == null ? void 0 : x.imageUrl, alt: "promo" }) : null }),
52
+ !l && /* @__PURE__ */ a(_, { children: [
53
+ ((M = e.banner) == null ? void 0 : M.title) && /* @__PURE__ */ r(ee, { className: R(o && re), children: (A = e.banner) == null ? void 0 : A.title }),
54
+ ((B = e.banner) == null ? void 0 : B.body) && /* @__PURE__ */ r(ae, { children: (N = e.banner) == null ? void 0 : N.body })
55
+ ] })
56
+ ] }),
57
+ /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r(
58
+ le,
59
+ {
60
+ href: (P = e.banner) == null ? void 0 : P.url,
61
+ style: {
62
+ backgroundColor: ((E = (T = e.banner) == null ? void 0 : T.ctaButton) == null ? void 0 : E.color) || "#009dc4",
63
+ color: ((L = (I = e.banner) == null ? void 0 : I.ctaButton) == null ? void 0 : L.textColor) || "#fff"
64
+ },
65
+ "data-analytics": "button",
66
+ "data-promo-id": t,
67
+ "data-promo-type": e.type,
68
+ target: "_blank",
69
+ children: (O = (S = e.banner) == null ? void 0 : S.ctaButton) == null ? void 0 : O.label
70
+ }
71
+ ) })
70
72
  ] });
71
73
  };
72
74
  export {
73
- re as Overlay
75
+ he as Overlay,
76
+ ge as OverlayContainer
74
77
  };
@@ -1,18 +1,22 @@
1
+ export declare const OverlayContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const PromoOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
1
3
  export declare const Header: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
4
  export declare const HeaderContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const headerContentShift: import('@linaria/core').LinariaClassName;
3
6
  export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
4
7
  export declare const SponsorName: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const PromoOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
8
  export declare const Media: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
- export declare const Text: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
+ export declare const PromoImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
10
+ export declare const shiftMedia: import('@linaria/core').LinariaClassName;
11
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
12
  export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
13
+ export declare const Sponsor: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
14
  export declare const SponsorText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
15
  export declare const ADLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
11
16
  export declare const SponsoredText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
12
17
  export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
13
18
  export declare const CloseIcon: any;
14
- export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
15
19
  export declare const ActionBtnWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
16
20
  export declare const ActionButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
17
- export declare const PromoImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
18
21
  export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
22
+ export declare const hideOnMobile: import('@linaria/core').LinariaClassName;
@@ -1,95 +1,103 @@
1
1
  import { styled as s } from "@linaria/react";
2
2
  import { SvgIcon as o } from "../../icons/index.js";
3
- const p = /* @__PURE__ */ s("div")({
3
+ const t = /* @__PURE__ */ s("div")({
4
+ name: "OverlayContainer",
5
+ class: "okzhq2w",
6
+ propsAsIs: !1
7
+ }), p = /* @__PURE__ */ s("div")({
8
+ name: "PromoOverlay",
9
+ class: "pmgz5i",
10
+ propsAsIs: !1
11
+ }), r = /* @__PURE__ */ s("div")({
4
12
  name: "Header",
5
- class: "hkzhq2w",
13
+ class: "hyxi3jt",
6
14
  propsAsIs: !1
7
- }), t = /* @__PURE__ */ s("div")({
15
+ }), c = /* @__PURE__ */ s("div")({
8
16
  name: "HeaderContent",
9
- class: "hmgz5i",
17
+ class: "h149e3gp",
10
18
  propsAsIs: !1
11
- }), c = /* @__PURE__ */ s("img")({
19
+ }), l = "h10toh7", i = /* @__PURE__ */ s("img")({
12
20
  name: "SponsorLogo",
13
- class: "syxi3jt",
21
+ class: "s1jyea6t",
14
22
  propsAsIs: !1
15
- }), r = /* @__PURE__ */ s("div")({
23
+ }), m = /* @__PURE__ */ s("div")({
16
24
  name: "SponsorName",
17
- class: "s149e3gp",
18
- propsAsIs: !1
19
- }), l = /* @__PURE__ */ s("div")({
20
- name: "PromoOverlay",
21
- class: "p10toh7",
25
+ class: "szpfa3h",
22
26
  propsAsIs: !1
23
- }), m = /* @__PURE__ */ s("div")({
27
+ }), d = /* @__PURE__ */ s("div")({
24
28
  name: "Media",
25
- class: "m1jyea6t",
29
+ class: "m1crmu01",
26
30
  propsAsIs: !1
27
- }), i = /* @__PURE__ */ s("div")({
28
- name: "Text",
29
- class: "tzpfa3h",
31
+ }), I = /* @__PURE__ */ s("img")({
32
+ name: "PromoImg",
33
+ class: "p1l37r8s",
30
34
  propsAsIs: !1
31
- }), d = /* @__PURE__ */ s("div")({
35
+ }), f = "s1nmch9k", A = /* @__PURE__ */ s("div")({
36
+ name: "Content",
37
+ class: "c1er0ljd",
38
+ propsAsIs: !1
39
+ }), v = /* @__PURE__ */ s("div")({
32
40
  name: "Description",
33
- class: "d1crmu01",
41
+ class: "dydopmr",
34
42
  propsAsIs: !1
35
- }), I = /* @__PURE__ */ s("div")({
43
+ }), g = /* @__PURE__ */ s("div")({
44
+ name: "Sponsor",
45
+ class: "s1w6nt04",
46
+ propsAsIs: !1
47
+ }), h = /* @__PURE__ */ s("div")({
36
48
  name: "SponsorText",
37
- class: "s1l37r8s",
49
+ class: "s1evcmtq",
38
50
  propsAsIs: !1
39
- }), A = /* @__PURE__ */ s("div")({
51
+ }), S = /* @__PURE__ */ s("div")({
40
52
  name: "ADLogo",
41
- class: "a1nmch9k",
53
+ class: "awodx0x",
42
54
  propsAsIs: !1
43
- }), f = /* @__PURE__ */ s("span")({
55
+ }), x = /* @__PURE__ */ s("span")({
44
56
  name: "SponsoredText",
45
- class: "s1er0ljd",
57
+ class: "s1q3n6oi",
46
58
  propsAsIs: !1
47
- }), v = /* @__PURE__ */ s("div")({
59
+ }), C = /* @__PURE__ */ s("div")({
48
60
  name: "CloseIconWrap",
49
- class: "cydopmr",
61
+ class: "c8d4xfk",
50
62
  propsAsIs: !1
51
- }), e = () => o, x = /* @__PURE__ */ s(e())({
63
+ }), e = () => o, y = /* @__PURE__ */ s(e())({
52
64
  name: "CloseIcon",
53
- class: "c1w6nt04",
65
+ class: "ct6oobh",
54
66
  propsAsIs: !0
55
- }), g = /* @__PURE__ */ s("div")({
56
- name: "Content",
57
- class: "c1evcmtq",
58
- propsAsIs: !1
59
- }), S = /* @__PURE__ */ s("div")({
67
+ }), T = /* @__PURE__ */ s("div")({
60
68
  name: "ActionBtnWrap",
61
- class: "awodx0x",
69
+ class: "a1gyg7tt",
62
70
  propsAsIs: !1
63
- }), C = /* @__PURE__ */ s("a")({
71
+ }), u = /* @__PURE__ */ s("a")({
64
72
  name: "ActionButton",
65
- class: "a1q3n6oi",
73
+ class: "a17rwbtk",
66
74
  propsAsIs: !1
67
- }), T = /* @__PURE__ */ s("img")({
68
- name: "PromoImg",
69
- class: "p8d4xfk",
70
- propsAsIs: !1
71
- }), h = /* @__PURE__ */ s("div")({
75
+ }), w = /* @__PURE__ */ s("div")({
72
76
  name: "Title",
73
- class: "tt6oobh",
77
+ class: "t3vxzaw",
74
78
  propsAsIs: !1
75
- });
79
+ }), O = "h10f3u0j";
76
80
  export {
77
- A as ADLogo,
78
- S as ActionBtnWrap,
79
- C as ActionButton,
80
- x as CloseIcon,
81
- v as CloseIconWrap,
82
- g as Content,
83
- d as Description,
84
- p as Header,
85
- t as HeaderContent,
86
- m as Media,
87
- T as PromoImg,
88
- l as PromoOverlay,
89
- c as SponsorLogo,
90
- r as SponsorName,
91
- I as SponsorText,
92
- f as SponsoredText,
93
- i as Text,
94
- h as Title
81
+ S as ADLogo,
82
+ T as ActionBtnWrap,
83
+ u as ActionButton,
84
+ y as CloseIcon,
85
+ C as CloseIconWrap,
86
+ A as Content,
87
+ v as Description,
88
+ r as Header,
89
+ c as HeaderContent,
90
+ d as Media,
91
+ t as OverlayContainer,
92
+ I as PromoImg,
93
+ p as PromoOverlay,
94
+ g as Sponsor,
95
+ i as SponsorLogo,
96
+ m as SponsorName,
97
+ h as SponsorText,
98
+ x as SponsoredText,
99
+ w as Title,
100
+ l as headerContentShift,
101
+ O as hideOnMobile,
102
+ f as shiftMedia
95
103
  };
@@ -1,5 +1,4 @@
1
1
  import { CountUpProps } from 'react-countup';
2
-
3
2
  export declare const AnimatedCounter: React.FC<Omit<CountUpProps, 'end' | 'start'> & {
4
3
  value?: number;
5
4
  }>;
@@ -1,6 +1,5 @@
1
1
  import { QuestionType } from '@streamlayer/sdk-web-types';
2
2
  import { icons } from '../icons';
3
-
4
3
  export declare const QuestionTypeData: Record<QuestionType, {
5
4
  label: string;
6
5
  iconName: keyof typeof icons;
@@ -1,5 +1,4 @@
1
1
  import { QuestionType } from '@streamlayer/sdk-web-types';
2
-
3
2
  interface VoteHeaderProps {
4
3
  type?: QuestionType;
5
4
  close: () => void;
@@ -1,5 +1,4 @@
1
1
  import { QuestionImages } from '@streamlayer/sdk-web-types';
2
-
3
2
  type InsightProps = {
4
3
  image?: string;
5
4
  imageMode: QuestionImages;
@@ -1,5 +1,4 @@
1
1
  import { QuestionImages } from '@streamlayer/sdk-web-types';
2
-
3
2
  interface InsightListProps {
4
3
  insights?: Array<{
5
4
  image?: string;
@@ -1,6 +1,5 @@
1
1
  import { ListProps } from 'react-window';
2
2
  import { LeaderboardItemProps } from './list-item';
3
-
4
3
  type LeaderboardListProps = {
5
4
  items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
6
5
  currentUserId?: string;
@@ -1,5 +1,4 @@
1
1
  import { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sdk-web-types';
2
-
3
2
  export type LeaderboardItemProps = Partial<ILeaderboardItem> & {
4
3
  userId: string;
5
4
  isCurrentUser?: boolean;
@@ -1,7 +1,6 @@
1
1
  import { ScrollNodeRef } from '../../../app/masters';
2
2
  import { ScrollStore } from '../../../app/useSdkScroll';
3
3
  import { LeaderboardItemProps } from './list-item';
4
-
5
4
  type LeaderboardListProps = {
6
5
  items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
7
6
  currentUserId?: string;
@@ -3,7 +3,6 @@ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
3
  import { OnboardingStep } from './slides/onboarding-instructions';
4
4
  import { OnboardingInviteCardProps } from './slides/onboarding-invite-card';
5
5
  import { OnboardingRule } from './slides/onboarding-rules';
6
-
7
6
  type OnboardingType = OnboardingInviteCardProps & {
8
7
  gamification: Gamification;
9
8
  sdk: StreamLayerSDK;
@@ -1,5 +1,4 @@
1
1
  import { ReactElement } from 'react';
2
-
3
2
  type OnboardingInstructionsProps = {
4
3
  loading: boolean;
5
4
  steps: OnboardingStep[];
@@ -1,5 +1,4 @@
1
1
  import { icons } from '../../../../icons';
2
-
3
2
  export type OnboardingInviteCardProps = {
4
3
  inviteLink?: string;
5
4
  inviteCardTitle?: string;
@@ -1,5 +1,4 @@
1
1
  import { icons } from '../../../../icons';
2
-
3
2
  type OnboardingRulesProps = {
4
3
  rules?: OnboardingRule[];
5
4
  rulesTitle?: string;
@@ -1,4 +1,3 @@
1
1
  import { PickHistory } from '@streamlayer/sdk-web-types';
2
-
3
2
  export declare const QuestionSkeleton: React.FC;
4
3
  export declare const Question: React.FC<PickHistory>;
@@ -1,6 +1,5 @@
1
1
  import { InsightContentProps } from '../../../questions/insight';
2
2
  import { VideoPlayerProps } from '../../../video-player';
3
-
4
3
  type InsightProps = InsightContentProps & {
5
4
  controlVideo: VideoPlayerProps['controlVideo'];
6
5
  };
@@ -1,6 +1,5 @@
1
1
  import { Gamification } from '@streamlayer/feature-gamification';
2
2
  import { VideoPlayerProps } from '../../../video-player';
3
-
4
3
  type FeedItem = Exclude<Awaited<ReturnType<Exclude<Gamification['feedList'], undefined>['getValue']>>, undefined>;
5
4
  interface QuestionListProps {
6
5
  questions: FeedItem;
@@ -1,4 +1,3 @@
1
1
  import { Notification as NotificationProps } from '@streamlayer/sdk-web-notifications';
2
2
  import { VideoPlayerProps } from '../../../video-player';
3
-
4
3
  export declare const Notification: React.FC<NotificationProps & Pick<VideoPlayerProps, 'controlVideo'>>;
@@ -1,7 +1,6 @@
1
1
  import { Notification } from '@streamlayer/sdk-web-notifications';
2
2
  import { InsightHistory, InstantView } from '@streamlayer/sdk-web-types';
3
3
  import { VideoPlayerProps } from '../../../../video-player';
4
-
5
4
  export type InsightProps = InstantView & {
6
5
  imageMode?: InsightHistory['imageMode'];
7
6
  action: Notification['action'];
@@ -3,70 +3,70 @@ export declare const BGLineBase: import('@linaria/react').StyledComponent<import
3
3
  export declare const BGOneLineOne: {
4
4
  __wyw_meta: unknown;
5
5
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
6
- as?: import('react').ElementType;
6
+ as?: React.ElementType;
7
7
  }>;
8
8
  export declare const BGOneLineTwo: {
9
9
  __wyw_meta: unknown;
10
10
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
11
- as?: import('react').ElementType;
11
+ as?: React.ElementType;
12
12
  }>;
13
13
  export declare const BGOneLineThree: {
14
14
  __wyw_meta: unknown;
15
15
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
16
- as?: import('react').ElementType;
16
+ as?: React.ElementType;
17
17
  }>;
18
18
  export declare const BGTwoLineOne: {
19
19
  __wyw_meta: unknown;
20
20
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
21
- as?: import('react').ElementType;
21
+ as?: React.ElementType;
22
22
  }>;
23
23
  export declare const BGTwoLineTwo: {
24
24
  __wyw_meta: unknown;
25
25
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
26
- as?: import('react').ElementType;
26
+ as?: React.ElementType;
27
27
  }>;
28
28
  export declare const BGTwoLineThree: {
29
29
  __wyw_meta: unknown;
30
30
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
31
- as?: import('react').ElementType;
31
+ as?: React.ElementType;
32
32
  }>;
33
33
  export declare const BGThreeLineOne: {
34
34
  __wyw_meta: unknown;
35
35
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
36
- as?: import('react').ElementType;
36
+ as?: React.ElementType;
37
37
  }>;
38
38
  export declare const BGThreeLineTwo: {
39
39
  __wyw_meta: unknown;
40
40
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
41
- as?: import('react').ElementType;
41
+ as?: React.ElementType;
42
42
  }>;
43
43
  export declare const BGThreeLineThree: {
44
44
  __wyw_meta: unknown;
45
45
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
46
- as?: import('react').ElementType;
46
+ as?: React.ElementType;
47
47
  }>;
48
48
  export declare const BGThreeLineFour: {
49
49
  __wyw_meta: unknown;
50
50
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
51
- as?: import('react').ElementType;
51
+ as?: React.ElementType;
52
52
  }>;
53
53
  export declare const BGFourLineOne: {
54
54
  __wyw_meta: unknown;
55
55
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
56
- as?: import('react').ElementType;
56
+ as?: React.ElementType;
57
57
  }>;
58
58
  export declare const BGFourLineTwo: {
59
59
  __wyw_meta: unknown;
60
60
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
61
- as?: import('react').ElementType;
61
+ as?: React.ElementType;
62
62
  }>;
63
63
  export declare const BGFourLineThree: {
64
64
  __wyw_meta: unknown;
65
65
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
66
- as?: import('react').ElementType;
66
+ as?: React.ElementType;
67
67
  }>;
68
68
  export declare const BGFourLineFour: {
69
69
  __wyw_meta: unknown;
70
70
  } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
71
- as?: import('react').ElementType;
71
+ as?: React.ElementType;
72
72
  }>;
@@ -1,5 +1,4 @@
1
1
  import { NotificationData } from '@streamlayer/sdk-web-notifications';
2
-
3
2
  export declare const PredictionResult: React.FC<NotificationData['question'] & {
4
3
  close?: () => void;
5
4
  saveHeight: (h: number) => void;