@streamlayer/react-ui 1.22.0 → 1.22.2

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 (45) hide show
  1. package/lib/app/app/Notifications/index.js +64 -60
  2. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.d.ts +3 -2
  3. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +10 -12
  4. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/styles.d.ts +5 -1
  5. package/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/styles.js +1 -1
  6. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +1 -1
  7. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +20 -28
  8. package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.d.ts +5 -17
  9. package/lib/app/masters/BetPack/BetPackContent/EndScreen/styles.js +10 -56
  10. package/lib/app/masters/BetPack/BetPackContent/LoaderScreen/index.d.ts +3 -1
  11. package/lib/app/masters/BetPack/BetPackContent/LoaderScreen/index.js +9 -6
  12. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +4 -8
  13. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +2 -3
  14. package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +18 -24
  15. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -6
  16. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -40
  17. package/lib/app/masters/BetPack/BetPackContent/constants.js +1 -1
  18. package/lib/app/masters/BetPack/BetPackContent/index.d.ts +1 -3
  19. package/lib/app/masters/BetPack/BetPackContent/index.js +106 -106
  20. package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +9 -1
  21. package/lib/app/masters/BetPack/BetPackContent/styles.js +48 -10
  22. package/lib/app/masters/BetPack/BetPackOverlay/index.js +2 -3
  23. package/lib/app/masters/BetPack/index.d.ts +2 -2
  24. package/lib/app/masters/BetPack/index.js +60 -88
  25. package/lib/app/masters/BetPack/styles.d.ts +0 -1
  26. package/lib/app/masters/BetPack/styles.js +7 -12
  27. package/lib/app/masters/Features/Gamification/Tabs.js +1 -1
  28. package/lib/app/masters/masters.js +58 -67
  29. package/lib/app/masters/useSdkResponsive.d.ts +0 -2
  30. package/lib/app/masters/useSdkResponsive.js +0 -2
  31. package/lib/assets/style.css +1 -1
  32. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
  33. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +1 -1
  34. package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +18 -16
  35. package/lib/ui/gamification/user-statistics/index.js +27 -25
  36. package/lib/ui/gamification/vote/index.js +1 -1
  37. package/lib/ui/theme/masters-theme.js +23 -92
  38. package/lib/ui/theme/theme.js +5 -5
  39. package/lib/{useVastAds-Dt_tRbpd.js → useVastAds-Bu_IhLJ2.js} +2 -2
  40. package/lib/utils/decorators/masters.js +49 -11
  41. package/package.json +15 -15
  42. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +0 -4
  43. package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +0 -33
  44. package/lib/app/masters/useOrientation.d.ts +0 -3
  45. package/lib/app/masters/useOrientation.js +0 -12
@@ -1,41 +1,45 @@
1
- import { jsxs as k, Fragment as b, jsx as u } from "react/jsx-runtime";
1
+ import { jsxs as w, Fragment as b, jsx as u } from "react/jsx-runtime";
2
2
  import { cx as V } from "@linaria/core";
3
3
  import { useAppContext as O } from "../useAppContext.js";
4
4
  import { scrollIntoAppView as T } from "../../useSdkScroll.js";
5
- import { useState as I, useMemo as D, useEffect as a, useRef as E, useCallback as w } from "react";
6
- import { r as R } from "../../../index-DALxy-8N.js";
5
+ import { useState as k, useMemo as D, useEffect as h, useRef as E, useCallback as I } from "react";
6
+ import { r as q } from "../../../index-DALxy-8N.js";
7
7
  import { useStore as y } from "@streamlayer/react-polyfills";
8
- import { eventBus as q } from "@streamlayer/sdk-web-interfaces";
8
+ import { eventBus as R } from "@streamlayer/sdk-web-interfaces";
9
9
  import { NotificationType as p } from "@streamlayer/sdk-web-notifications";
10
- import { QuestionTypeData as C } from "../../../ui/gamification/constants.js";
10
+ import { QuestionTypeData as A } from "../../../ui/gamification/constants.js";
11
11
  import { Notification as N } from "../../../ui/gamification/question/notification/index.js";
12
- import { PredictionResult as x } from "../../../ui/gamification/question/notification/prediction-result/index.js";
13
- import { Onboarding as P } from "./Onboarding/index.js";
14
- import { HiddenContainer as z, Container as A, InnerContainer as B, NotificationRefreshing as H, Pill as S } from "./styles.js";
15
- const v = (r) => {
16
- const [e, d] = I(0), i = E(null), l = D(() => new ResizeObserver((o) => {
17
- var h;
18
- for (const c of o)
19
- if (c.contentBoxSize) {
20
- const n = (h = i.current) == null ? void 0 : h.getBoundingClientRect();
21
- n && d(n.height);
12
+ import { PredictionResult as C } from "../../../ui/gamification/question/notification/prediction-result/index.js";
13
+ import { Onboarding as x } from "./Onboarding/index.js";
14
+ import { HiddenContainer as P, Container as z, InnerContainer as B, NotificationRefreshing as H, Pill as S } from "./styles.js";
15
+ const v = (n) => {
16
+ const [e, d] = k(0), i = E(null), l = D(() => new ResizeObserver((o) => {
17
+ window.requestAnimationFrame(() => {
18
+ var f;
19
+ if (Array.isArray(o)) {
20
+ for (const c of o)
21
+ if (c.contentBoxSize) {
22
+ const r = (f = i.current) == null ? void 0 : f.getBoundingClientRect();
23
+ r && d(r.height);
24
+ }
22
25
  }
23
- }), []), s = w((o) => {
26
+ });
27
+ }), []), s = I((o) => {
24
28
  i.current = o;
25
- }, []), f = w((o) => {
29
+ }, []), a = I((o) => {
26
30
  d(o);
27
31
  }, []);
28
- return a(() => {
32
+ return h(() => {
29
33
  const o = i.current;
30
34
  return o ? (l.observe(o), () => {
31
35
  l.unobserve(o);
32
36
  }) : () => {
33
37
  };
34
- }, [r]), a(() => () => {
38
+ }, [n]), h(() => () => {
35
39
  l.disconnect();
36
- }), [s, e, f];
40
+ }), [s, e, a];
37
41
  }, Q = ({
38
- sdk: r,
42
+ sdk: n,
39
43
  notification: e,
40
44
  appNode: d,
41
45
  responsiveStore: i,
@@ -47,18 +51,18 @@ const v = (r) => {
47
51
  } = y(i, {
48
52
  keys: ["sdkInDesktopView"]
49
53
  }), {
50
- sdk: f
51
- } = O(), [o, h, c] = v(e.id);
52
- let n = h;
53
- return l || (n = "auto"), e.type === p.QUESTION ? /* @__PURE__ */ k(b, {
54
- children: [/* @__PURE__ */ u(z, {
54
+ sdk: a
55
+ } = O(), [o, f, c] = v(e.id);
56
+ let r = f;
57
+ return l || (r = "auto"), e.type === p.QUESTION ? /* @__PURE__ */ w(b, {
58
+ children: [/* @__PURE__ */ u(P, {
55
59
  ref: o,
56
60
  children: /* @__PURE__ */ u(N, {
57
61
  ...e
58
62
  })
59
- }), /* @__PURE__ */ k(A, {
63
+ }), /* @__PURE__ */ w(z, {
60
64
  style: {
61
- height: e.hiding ? 0 : n
65
+ height: e.hiding ? 0 : r
62
66
  },
63
67
  hiding: e.hiding,
64
68
  children: [/* @__PURE__ */ u(B, {
@@ -67,37 +71,37 @@ const v = (r) => {
67
71
  },
68
72
  children: /* @__PURE__ */ u(N, {
69
73
  ...e,
70
- controlVideo: f == null ? void 0 : f.controlVideoPlayer
74
+ controlVideo: a == null ? void 0 : a.controlVideoPlayer
71
75
  })
72
76
  }), /* @__PURE__ */ u(H, {}, e.id)]
73
77
  })]
74
- }) : e.type === p.QUESTION_RESOLVED && ((m = (t = e.data) == null ? void 0 : t.question) != null && m.predictionResult) ? /* @__PURE__ */ u(x, {
78
+ }) : e.type === p.QUESTION_RESOLVED && ((m = (t = e.data) == null ? void 0 : t.question) != null && m.predictionResult) ? /* @__PURE__ */ u(C, {
75
79
  style: {
76
- height: e.hiding ? 0 : h
80
+ height: e.hiding ? 0 : f
77
81
  },
78
82
  saveHeight: c,
79
83
  close: e.close,
80
84
  hiding: e.hiding,
81
85
  ...e.data.question
82
- }) : e.type === p.ONBOARDING ? /* @__PURE__ */ u(P, {
86
+ }) : e.type === p.ONBOARDING ? /* @__PURE__ */ u(x, {
83
87
  style: {
84
- height: e.hiding ? 0 : n
88
+ height: e.hiding ? 0 : r
85
89
  },
86
90
  saveHeight: c,
87
- sdk: r,
91
+ sdk: n,
88
92
  notification: e,
89
93
  sdkInDesktopView: s,
90
94
  appNode: d,
91
95
  responsiveStore: i
92
96
  }) : null;
93
- }, U = "p7vfi6t", j = ({
94
- pill: r,
97
+ }, F = "p7vfi6t", U = ({
98
+ pill: n,
95
99
  setPill: e,
96
100
  appNode: d,
97
101
  headerNode: i,
98
102
  scrollNode: l,
99
103
  responsiveStore: s,
100
- scrollStore: f
104
+ scrollStore: a
101
105
  }) => {
102
106
  var t, m;
103
107
  const {
@@ -105,17 +109,17 @@ const v = (r) => {
105
109
  } = y(s, {
106
110
  keys: ["screen"]
107
111
  }), {
108
- tabsShown: h,
112
+ tabsShown: f,
109
113
  scrollPosition: c
110
- } = y(f, {
114
+ } = y(a, {
111
115
  keys: ["tabsShown", "scrollPosition"]
112
116
  });
113
- a(() => {
117
+ h(() => {
114
118
  s.get().sdkInDesktopView ? c < 50 && e(null) : c > -50 && e(null);
115
119
  }, [c, s, e]);
116
- const n = s.get().sdkInDesktopView ? d : i;
117
- return !r || !n.current ? null : R.createPortal(/* @__PURE__ */ u(S, {
118
- title: r.type === p.QUESTION_RESOLVED ? "Prediction result" : `New ${((m = C[(t = r.data) == null ? void 0 : t.questionType]) == null ? void 0 : m.label) || "notification"}`,
120
+ const r = s.get().sdkInDesktopView ? d : i;
121
+ return !n || !r.current ? null : q.createPortal(/* @__PURE__ */ u(S, {
122
+ title: n.type === p.QUESTION_RESOLVED ? "Prediction result" : `New ${((m = A[(t = n.data) == null ? void 0 : t.questionType]) == null ? void 0 : m.label) || "notification"}`,
119
123
  onClick: () => {
120
124
  var g;
121
125
  s.get().sdkInDesktopView ? (g = l.current) == null || g.scrollTo({
@@ -125,46 +129,46 @@ const v = (r) => {
125
129
  behavior: "smooth"
126
130
  }), e(null);
127
131
  },
128
- className: V(h && U, "sl-pill-button")
129
- }), n.current);
132
+ className: V(f && F, "sl-pill-button")
133
+ }), r.current);
130
134
  }, oe = ({
131
- sdk: r,
135
+ sdk: n,
132
136
  headerNode: e,
133
137
  scrollNode: d,
134
138
  responsiveStore: i,
135
139
  appNode: l,
136
140
  scrollStore: s,
137
- hasActiveFeature: f
141
+ hasActiveFeature: a
138
142
  }) => {
139
- const [o] = I(r.getNotificationsStore()), h = y(o), [c, n] = I(null), t = D(() => r.getActiveNotification(), [r, h]);
140
- return a(() => {
141
- t && q.emit("notification", {
143
+ const [o] = k(n.getNotificationsStore()), f = y(o), [c, r] = k(null), t = D(() => n.getActiveNotification(), [n, f]);
144
+ return h(() => {
145
+ t && R.emit("notification", {
142
146
  action: "rendered",
143
147
  payload: {
144
148
  questionId: t.data.questionId,
145
149
  questionType: t.data.questionType
146
150
  }
147
151
  });
148
- }, [t]), a(() => {
152
+ }, [t]), h(() => {
149
153
  const {
150
154
  sdkInDesktopView: m,
151
155
  sdkInView: g
152
156
  } = i.get();
153
- t && (m || g) && (!m && g && n(t), m && window.requestAnimationFrame(() => {
154
- s.get().scrollPosition !== 0 && n(t);
157
+ t && (m || g) && (!m && g && r(t), m && window.requestAnimationFrame(() => {
158
+ s.get().scrollPosition !== 0 && r(t);
155
159
  }));
156
- }, [t]), a(() => {
157
- t || n(null);
158
- }, [t]), /* @__PURE__ */ k(b, {
160
+ }, [t]), h(() => {
161
+ t || r(null);
162
+ }, [t]), /* @__PURE__ */ w(b, {
159
163
  children: [!c && t && /* @__PURE__ */ u(Q, {
160
164
  appNode: l,
161
- sdk: r,
162
- hasActiveFeature: f,
165
+ sdk: n,
166
+ hasActiveFeature: a,
163
167
  notification: t,
164
168
  responsiveStore: i
165
- }), c && /* @__PURE__ */ u(j, {
169
+ }), c && /* @__PURE__ */ u(U, {
166
170
  pill: c,
167
- setPill: n,
171
+ setPill: r,
168
172
  appNode: l,
169
173
  notification: t,
170
174
  headerNode: e,
@@ -1,6 +1,7 @@
1
+ import { BetPackEventCb } from '../..';
1
2
  export declare const EmergencyScreen: React.FC<{
2
3
  actionFn: () => void;
3
4
  description: string;
4
- isMobile?: boolean;
5
- height?: number;
5
+ className?: string;
6
+ onEvent: BetPackEventCb;
6
7
  }>;
@@ -1,15 +1,13 @@
1
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { cx as s } from "@linaria/core";
3
- import { useDynamicParentFont as a } from "../ScreenContainer/useDynamicParentFont.js";
4
- import { EmergencyContainer as l, EmergencyScreenTitle as g, EmergencyScreenDescription as y, EmergencyScreenButton as f } from "./styles.js";
5
- const d = ({ actionFn: n, description: r, isMobile: c, height: o }) => {
6
- const { container: t, fontSize: i } = a(o);
7
- return /* @__PURE__ */ m(l, { style: { fontSize: i }, ref: t, className: s("betPack", !!c && "isMobile"), children: [
8
- /* @__PURE__ */ e(g, { children: "Something went wrong." }),
9
- /* @__PURE__ */ e(y, { children: r }),
10
- /* @__PURE__ */ e(f, { onClick: n, children: "Try again" })
11
- ] });
12
- };
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { useEffect as o } from "react";
3
+ import { EmergencyContainer as m, EmergencyScreenTitle as g, EmergencyScreenDescription as y, EmergencyScreenButton as l } from "./styles.js";
4
+ const d = ({ actionFn: n, description: c, className: t, onEvent: r }) => (o(() => {
5
+ r({ type: "slBetPackReady" });
6
+ }, [r]), /* @__PURE__ */ i(m, { className: t, children: [
7
+ /* @__PURE__ */ e(g, { children: "Something went wrong." }),
8
+ /* @__PURE__ */ e(y, { children: c }),
9
+ /* @__PURE__ */ e(l, { onClick: n, children: "Try again" })
10
+ ] }));
13
11
  export {
14
12
  d as EmergencyScreen
15
13
  };
@@ -1,4 +1,8 @@
1
1
  export declare const EmergencyContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
2
  export declare const EmergencyScreenTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
3
  export declare const EmergencyScreenDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const EmergencyScreenButton: any;
4
+ export declare const EmergencyScreenButton: {
5
+ __wyw_meta: unknown;
6
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown> & {
7
+ as?: React.ElementType;
8
+ }>;
@@ -1,5 +1,5 @@
1
1
  import { styled as e } from "@linaria/react";
2
- import { ScreenButton as n } from "../../styles.js";
2
+ import { ScreenButton as n } from "../styles.js";
3
3
  const o = /* @__PURE__ */ e("div")({
4
4
  name: "EmergencyContainer",
5
5
  class: "e1f9mu2m",
@@ -1,5 +1,5 @@
1
1
  import { BetPackEventCb } from '../..';
2
2
  export declare const EndScreen: React.FC<{
3
- height: number | undefined;
4
3
  onEvent: BetPackEventCb;
4
+ height?: number;
5
5
  }>;
@@ -1,46 +1,38 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { useState as a } from "react";
3
- import { ScreenContainer as c } from "../ScreenContainer/index.js";
4
- import { ScreenWrap as i, EndFirstScreenWrap as p, EndScreenMain as t, SponsorIcon as m, EndScreenTitle as h, EndScreenDescription as S, EndScreenButton as d, EndLastScreenWrap as u, EndScreenMedia as E, EndLastScreenDescription as b } from "./styles.js";
5
- const x = ({ height: r, onEvent: o }) => {
6
- const [s, l] = a(
2
+ import { useState as l } from "react";
3
+ import { ScreenContainer as t } from "../ScreenContainer/index.js";
4
+ import { ScreenWrap as i, ScreenTextBlock as m, ScreenTitle as p, ScreenDescription as c, ScreenButton as o } from "../styles.js";
5
+ import { EndScreenSponsorIcon as h, EndScreenMedia as S } from "./styles.js";
6
+ const E = ({ onEvent: s, height: r }) => {
7
+ const [d, a] = l(
7
8
  0
8
9
  /* FIRST */
9
10
  );
10
- return s === 0 ? /* @__PURE__ */ e(c, { height: r, children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ n(p, { children: [
11
- /* @__PURE__ */ n(t, { children: [
12
- /* @__PURE__ */ e(m, { name: "icon-masters-logo" }),
13
- /* @__PURE__ */ e(h, { children: "Great picks!" }),
14
- /* @__PURE__ */ n(S, { children: [
15
- "As results come in we’ll send you",
16
- /* @__PURE__ */ e("br", {}),
17
- "live updates right here."
18
- ] })
11
+ return d === 0 ? /* @__PURE__ */ e(t, { height: r, children: /* @__PURE__ */ n(i, { children: [
12
+ /* @__PURE__ */ e(h, {}),
13
+ /* @__PURE__ */ n(m, { children: [
14
+ /* @__PURE__ */ e(p, { children: "Great picks!" }),
15
+ /* @__PURE__ */ e(c, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
19
16
  ] }),
20
17
  /* @__PURE__ */ e(
21
- d,
18
+ o,
22
19
  {
23
20
  onClick: () => {
24
- l(
21
+ a(
25
22
  1
26
23
  /* LAST */
27
24
  );
28
25
  },
26
+ style: { marginTop: "auto " },
29
27
  children: "Continue"
30
28
  }
31
29
  )
32
- ] }) }) }, "end") : /* @__PURE__ */ e(c, { height: r, children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ n(u, { children: [
33
- /* @__PURE__ */ n(t, { children: [
34
- /* @__PURE__ */ e(E, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
35
- /* @__PURE__ */ n(b, { children: [
36
- "Look for more live match insights,",
37
- /* @__PURE__ */ e("br", {}),
38
- "predictions and more."
39
- ] })
40
- ] }),
41
- /* @__PURE__ */ e(d, { onClick: () => o({ type: "slOpenGameCenter" }), children: "Open Game Center" })
42
- ] }) }) }, "end");
30
+ ] }) }, "end") : /* @__PURE__ */ e(t, { height: r, children: /* @__PURE__ */ n(i, { children: [
31
+ /* @__PURE__ */ e(S, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
32
+ /* @__PURE__ */ e(c, { children: "Look for more live match insights, predictions and more." }),
33
+ /* @__PURE__ */ e(o, { onClick: () => s({ type: "slOpenGameCenter" }), children: "Open Game Center" })
34
+ ] }) }, "end");
43
35
  };
44
36
  export {
45
- x as EndScreen
37
+ E as EndScreen
46
38
  };
@@ -1,19 +1,7 @@
1
- export declare const ScreenWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
- export declare const SponsorIcon: any;
3
- export declare const EndScreenWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const EndFirstScreenWrap: {
5
- __wyw_meta: unknown;
6
- } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
7
- as?: React.ElementType;
8
- }>;
9
- export declare const EndLastScreenWrap: {
1
+ export declare const EndScreenMedia: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
2
+ export declare const EndScreenSponsorIcon: {
10
3
  __wyw_meta: unknown;
11
- } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
12
- as?: React.ElementType;
4
+ } & import('react').FC<{
5
+ style?: React.CSSProperties;
6
+ className?: string;
13
7
  }>;
14
- export declare const EndScreenMain: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
15
- export declare const EndScreenTitle: any;
16
- export declare const EndScreenDescription: any;
17
- export declare const EndLastScreenDescription: any;
18
- export declare const EndScreenButton: any;
19
- export declare const EndScreenMedia: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
@@ -1,61 +1,15 @@
1
- import { styled as e } from "@linaria/react";
2
- import { ScreenTitle as r, ScreenDescription as s, ScreenButton as c } from "../../styles.js";
3
- import { SvgIcon as o } from "../../../../../ui/icons/index.js";
4
- const u = /* @__PURE__ */ e("div")({
5
- name: "ScreenWrap",
6
- class: "s8s3kc9",
7
- propsAsIs: !1
8
- }), t = () => o, A = /* @__PURE__ */ e(t())({
9
- name: "SponsorIcon",
10
- class: "s1uswib2",
11
- propsAsIs: !0
12
- }), n = /* @__PURE__ */ e("div")({
13
- name: "EndScreenWrap",
14
- class: "el0dbzn",
15
- propsAsIs: !1
16
- }), p = () => n, x = /* @__PURE__ */ e(p())({
17
- name: "EndFirstScreenWrap",
18
- class: "e11do4i1",
19
- propsAsIs: !0
20
- }), a = () => n, f = /* @__PURE__ */ e(a())({
21
- name: "EndLastScreenWrap",
22
- class: "ef67yx9",
23
- propsAsIs: !0
24
- }), W = /* @__PURE__ */ e("div")({
25
- name: "EndScreenMain",
26
- class: "enw6fxs",
27
- propsAsIs: !1
28
- }), i = () => r, _ = /* @__PURE__ */ e(i())({
29
- name: "EndScreenTitle",
30
- class: "euaws9b",
31
- propsAsIs: !0
32
- }), d = () => s, v = /* @__PURE__ */ e(d())({
33
- name: "EndScreenDescription",
34
- class: "e9uqaot",
35
- propsAsIs: !0
36
- }), S = () => s, D = /* @__PURE__ */ e(S())({
37
- name: "EndLastScreenDescription",
38
- class: "etyeg2m",
39
- propsAsIs: !0
40
- }), l = () => c, L = /* @__PURE__ */ e(l())({
41
- name: "EndScreenButton",
42
- class: "e177v9in",
43
- propsAsIs: !0
44
- }), M = /* @__PURE__ */ e("img")({
1
+ import { styled as s } from "@linaria/react";
2
+ import { SponsorIcon as e } from "../styles.js";
3
+ const c = /* @__PURE__ */ s("img")({
45
4
  name: "EndScreenMedia",
46
- class: "ehp7lor",
5
+ class: "e8s3kc9",
47
6
  propsAsIs: !1
7
+ }), n = () => e, p = /* @__PURE__ */ s(n())({
8
+ name: "EndScreenSponsorIcon",
9
+ class: "e1uswib2",
10
+ propsAsIs: !0
48
11
  });
49
12
  export {
50
- x as EndFirstScreenWrap,
51
- D as EndLastScreenDescription,
52
- f as EndLastScreenWrap,
53
- L as EndScreenButton,
54
- v as EndScreenDescription,
55
- W as EndScreenMain,
56
- M as EndScreenMedia,
57
- _ as EndScreenTitle,
58
- n as EndScreenWrap,
59
- u as ScreenWrap,
60
- A as SponsorIcon
13
+ c as EndScreenMedia,
14
+ p as EndScreenSponsorIcon
61
15
  };
@@ -1 +1,3 @@
1
- export declare const LoaderScreen: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const LoaderScreen: React.FC<{
2
+ className?: string;
3
+ }>;
@@ -1,13 +1,16 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { styled as r } from "@linaria/react";
3
- import { Loader as e } from "../../../../../ui/loader/index.js";
4
- const t = /* @__PURE__ */ r("div")({
2
+ import { styled as e } from "@linaria/react";
3
+ import { Loader as t } from "../../../../../ui/loader/index.js";
4
+ const s = /* @__PURE__ */ e("div")({
5
5
  name: "Container",
6
6
  class: "cv31tt7",
7
7
  propsAsIs: !1
8
- }), i = () => /* @__PURE__ */ o(t, {
9
- children: /* @__PURE__ */ o(e, {})
8
+ }), m = ({
9
+ className: r
10
+ }) => /* @__PURE__ */ o(s, {
11
+ className: r,
12
+ children: /* @__PURE__ */ o(t, {})
10
13
  });
11
14
  export {
12
- i as LoaderScreen
15
+ m as LoaderScreen
13
16
  };
@@ -1,10 +1,6 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { ScreenContainerBox as i } from "./styles.js";
3
- import { useDynamicParentFont as c } from "./useDynamicParentFont.js";
4
- const s = ({ children: o, height: r }) => {
5
- const { container: e, fontSize: t } = c(r);
6
- return /* @__PURE__ */ n(i, { style: { height: r, fontSize: t }, ref: e, children: /* @__PURE__ */ n("div", { children: o }) });
7
- };
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { ScreenContainerBox as o } from "./styles.js";
3
+ const i = ({ children: n, height: r }) => /* @__PURE__ */ e(o, { className: "ScreenContainer", children: /* @__PURE__ */ e("div", { style: r ? { height: r } : {}, children: n }) });
8
4
  export {
9
- s as ScreenContainer
5
+ i as ScreenContainer
10
6
  };
@@ -1,5 +1,4 @@
1
- export declare const StartScreen: React.FC<{
2
- height: number | undefined;
1
+ export declare const StartScreen: import('react').ForwardRefExoticComponent<{
3
2
  countQuestionsAvailable: number;
4
3
  sliderRef: React.MutableRefObject<null>;
5
- }>;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,36 +1,30 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { ScreenContainer as a } from "../ScreenContainer/index.js";
3
- import { ScreenWrap as c, Main as s, SponsorIcon as l, StartScreenSponsor as S, StartScreenTitle as h, StartScreenDescription as d, StartScreenButton as p, IconArrowRight as m, StartScreenNote as f } from "./styles.js";
4
- const x = ({ height: o, countQuestionsAvailable: t, sliderRef: i }) => /* @__PURE__ */ e(a, { height: o, children: /* @__PURE__ */ r(c, { children: [
5
- /* @__PURE__ */ r(s, { children: [
6
- /* @__PURE__ */ e(l, { name: "icon-masters-logo" }),
7
- /* @__PURE__ */ e(S, { children: "Featured Groups+" }),
8
- /* @__PURE__ */ e(h, { children: "The First Five" }),
9
- /* @__PURE__ */ r(d, { children: [
10
- "Tee off with these five initial",
11
- /* @__PURE__ */ e("br", {}),
12
- "predictions for today’s play."
13
- ] })
2
+ import { forwardRef as c } from "react";
3
+ import { ScreenContainer as s } from "../ScreenContainer/index.js";
4
+ import { ScreenWrap as l, SponsorIcon as a, ScreenTextBlock as S, ScreenTitle as h, ScreenDescription as d, ScreenButton as m } from "../styles.js";
5
+ import { StartScreenSponsor as p, NextButton as f, IconArrowRight as x, StartScreenNote as u } from "./styles.js";
6
+ const N = c(({ countQuestionsAvailable: o, sliderRef: n }, i) => /* @__PURE__ */ e(s, { children: /* @__PURE__ */ r(l, { ref: i, children: [
7
+ /* @__PURE__ */ e(a, {}),
8
+ /* @__PURE__ */ r(S, { children: [
9
+ /* @__PURE__ */ e(p, { children: "FEATURED GROUPS+" }),
10
+ /* @__PURE__ */ e(h, { children: "The First Five" })
14
11
  ] }),
12
+ /* @__PURE__ */ e(d, { children: "Tee off with these five initial predictions for today’s play." }),
15
13
  /* @__PURE__ */ r(
16
- p,
14
+ m,
17
15
  {
18
16
  onClick: () => {
19
- var n;
20
- (n = i.current) == null || n.slickNext();
17
+ var t;
18
+ (t = n.current) == null || t.slickNext();
21
19
  },
22
20
  children: [
23
- t ? `${t} questions available` : "See all questions",
24
- /* @__PURE__ */ e(m, { name: "iconArrowRight" })
21
+ o ? `${o} questions available` : "See all questions",
22
+ /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(x, { name: "iconArrowRight" }) })
25
23
  ]
26
24
  }
27
25
  ),
28
- /* @__PURE__ */ r(f, { children: [
29
- "Note: Some questions may have been",
30
- /* @__PURE__ */ e("br", {}),
31
- "resolved as a result of today’s play."
32
- ] })
33
- ] }) }, "start");
26
+ /* @__PURE__ */ e(u, { children: "Note: Some questions may have been resolved as a result of today’s play." })
27
+ ] }) }, "start"));
34
28
  export {
35
- x as StartScreen
29
+ N as StartScreen
36
30
  };
@@ -1,9 +1,4 @@
1
- export declare const ScreenWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
- export declare const Main: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
1
+ export declare const NextButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
3
2
  export declare const IconArrowRight: any;
4
- export declare const SponsorIcon: any;
5
3
  export declare const StartScreenSponsor: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const StartScreenTitle: any;
7
- export declare const StartScreenDescription: any;
8
- export declare const StartScreenButton: any;
9
4
  export declare const StartScreenNote: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;