@streamlayer/react-ui 1.26.1 → 1.27.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 (205) hide show
  1. package/lib/app/app/Advertisement/index.d.ts +1 -0
  2. package/lib/app/app/Advertisement/index.js +125 -92
  3. package/lib/app/app/Banner/index.d.ts +6 -0
  4. package/lib/app/app/Banner/index.js +6 -0
  5. package/lib/app/app/Features/Gamification/Question.d.ts +4 -0
  6. package/lib/app/app/Features/Gamification/Question.js +79 -50
  7. package/lib/app/app/Features/Gamification/QuestionAdvertisement.d.ts +6 -0
  8. package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +46 -0
  9. package/lib/app/app/Features/Gamification/Tabs.js +12 -12
  10. package/lib/app/app/Features/Gamification/index.d.ts +3 -0
  11. package/lib/app/app/Features/Gamification/index.js +56 -52
  12. package/lib/app/app/Features/index.d.ts +1 -0
  13. package/lib/app/app/Features/index.js +6 -4
  14. package/lib/app/app/InApp/index.d.ts +1 -0
  15. package/lib/app/app/InApp/index.js +44 -17
  16. package/lib/app/app/Insight/index.d.ts +3 -0
  17. package/lib/app/app/Insight/index.js +33 -30
  18. package/lib/app/app/Layout/index.d.ts +17 -0
  19. package/lib/app/app/Layout/index.js +105 -0
  20. package/lib/app/app/Layout/styles.d.ts +12 -0
  21. package/lib/app/app/Layout/styles.js +64 -0
  22. package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +7 -1
  23. package/lib/app/app/Notifications/styles.d.ts +18 -2
  24. package/lib/app/app/index.d.ts +1 -0
  25. package/lib/app/app/index.js +91 -85
  26. package/lib/app/app/story/index.js +56 -58
  27. package/lib/app/app/story/promotion/index.js +31 -36
  28. package/lib/app/app/story/promotion/styles.d.ts +3 -1
  29. package/lib/app/app/story/promotion/video.js +63 -81
  30. package/lib/app/app/story/promotion-notification/styles.d.ts +3 -1
  31. package/lib/app/app/story/styles.d.ts +5 -1
  32. package/lib/app/app/story/styles.js +36 -16
  33. package/lib/app/app/story/video.d.ts +5 -1
  34. package/lib/app/app/story/video.js +70 -33
  35. package/lib/app/app/useApp.d.ts +1 -2
  36. package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +7 -1
  37. package/lib/app/masters/BetPack/BetPackContent/index.js +175 -187
  38. package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +84 -84
  39. package/lib/app/masters/BetPack/BetPackOverlay/styles.d.ts +14 -2
  40. package/lib/app/masters/Features/Gamification/Question.js +19 -17
  41. package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +7 -1
  42. package/lib/app/masters/Notifications/styles.d.ts +18 -2
  43. package/lib/app/masters/masters.d.ts +4 -1
  44. package/lib/app/masters/useMastersApp.d.ts +1 -1
  45. package/lib/app/tgl/styles.d.ts +3 -1
  46. package/lib/app/{tvos → webos/Advertisement}/AdvertisementUI.d.ts +7 -1
  47. package/lib/app/webos/Advertisement/AdvertisementUI.js +63 -0
  48. package/lib/app/{tvos/Advertisement.d.ts → webos/Advertisement/index.d.ts} +3 -1
  49. package/lib/app/webos/Advertisement/index.js +119 -0
  50. package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +15 -0
  51. package/lib/app/webos/ExposedPauseAd/PauseAd.js +93 -0
  52. package/lib/app/webos/ExposedPauseAd/styles.d.ts +12 -0
  53. package/lib/app/webos/ExposedPauseAd/styles.js +64 -0
  54. package/lib/app/webos/Question/index.d.ts +9 -0
  55. package/lib/app/webos/Question/index.js +56 -0
  56. package/lib/app/webos/index.d.ts +24 -0
  57. package/lib/app/webos/index.js +65 -0
  58. package/lib/app/webos/story.d.ts +9 -0
  59. package/lib/app/webos/story.js +74 -0
  60. package/lib/app/webos/styles.js +4 -0
  61. package/lib/app/webos/ui/Layout/index.js +78 -0
  62. package/lib/app/{tvos → webos}/ui/Layout/styles.js +25 -25
  63. package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +7 -0
  64. package/lib/app/webos/ui/Sidebar/PromoAction.js +63 -0
  65. package/lib/app/{tvos → webos}/ui/Sidebar/index.d.ts +6 -0
  66. package/lib/app/webos/ui/Sidebar/index.js +176 -0
  67. package/lib/app/{tvos → webos}/ui/Sidebar/styles.d.ts +7 -3
  68. package/lib/app/{tvos → webos}/ui/Sidebar/styles.js +175 -170
  69. package/lib/app/webos/ui/insight/index.d.ts +9 -0
  70. package/lib/app/webos/ui/insight/index.js +100 -0
  71. package/lib/app/webos/ui/insight/styles.d.ts +12 -0
  72. package/lib/app/webos/ui/insight/styles.js +51 -0
  73. package/lib/app/webos/useTvButton.d.ts +9 -0
  74. package/lib/app/webos/useTvButton.js +23 -0
  75. package/lib/assets/style.css +1 -1
  76. package/lib/hooks/analytics.d.ts +14 -0
  77. package/lib/hooks/showIn.d.ts +9 -0
  78. package/lib/hooks/useKeyboardNavigation.d.ts +15 -0
  79. package/lib/hooks/useKeyboardNavigation.js +74 -0
  80. package/lib/index-T1iiS0ZO.js +17 -0
  81. package/lib/ui/advertisement/banner/index.d.ts +3 -0
  82. package/lib/ui/advertisement/banner/index.js +29 -17
  83. package/lib/ui/advertisement/banner/styles.d.ts +5 -1
  84. package/lib/ui/advertisement/index.d.ts +4 -1
  85. package/lib/ui/advertisement/index.js +56 -44
  86. package/lib/ui/advertisement/notification/index.d.ts +2 -0
  87. package/lib/ui/advertisement/notification/index.js +50 -34
  88. package/lib/ui/advertisement/notification/lower-third/index.d.ts +2 -0
  89. package/lib/ui/advertisement/notification/lower-third/index.js +42 -26
  90. package/lib/ui/advertisement/notification/lower-third/styles.d.ts +11 -0
  91. package/lib/ui/advertisement/notification/lower-third/styles.js +39 -24
  92. package/lib/ui/advertisement/notification/styles.d.ts +18 -1
  93. package/lib/ui/advertisement/notification/styles.js +48 -33
  94. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +2 -2
  95. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
  96. package/lib/ui/advertisement/overlay/index.d.ts +4 -1
  97. package/lib/ui/advertisement/overlay/index.js +135 -77
  98. package/lib/ui/gamification/detail/header/index.d.ts +2 -0
  99. package/lib/ui/gamification/detail/header/index.js +19 -16
  100. package/lib/ui/gamification/detail/header/styles.d.ts +15 -3
  101. package/lib/ui/gamification/detail/header/styles.js +1 -1
  102. package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -0
  103. package/lib/ui/gamification/detail/sponsor/index.js +25 -13
  104. package/lib/ui/gamification/invite-link/styles.d.ts +14 -2
  105. package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -1
  106. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +14 -2
  107. package/lib/ui/gamification/onboarding/styles.d.ts +10 -2
  108. package/lib/ui/gamification/points/styles.d.ts +7 -1
  109. package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +48 -0
  110. package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +94 -0
  111. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +9 -0
  112. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +99 -0
  113. package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.d.ts +42 -0
  114. package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.js +117 -0
  115. package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +9 -8
  116. package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -1
  117. package/lib/ui/gamification/question/inapp/onboarding/index.js +12 -12
  118. package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +18 -2
  119. package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +9 -9
  120. package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +7 -1
  121. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.d.ts +5 -0
  122. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.js +49 -0
  123. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +12 -0
  124. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.js +56 -0
  125. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.d.ts +1 -0
  126. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.js +34 -0
  127. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.d.ts +1 -0
  128. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.js +19 -0
  129. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.d.ts +4 -0
  130. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.js +34 -0
  131. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.d.ts +7 -0
  132. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.js +43 -0
  133. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.d.ts +9 -0
  134. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.js +20 -0
  135. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +10 -0
  136. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +20 -0
  137. package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.d.ts +11 -0
  138. package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.js +34 -0
  139. package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +38 -5
  140. package/lib/ui/gamification/question/notification/styles.d.ts +14 -2
  141. package/lib/ui/gamification/question/styles.d.ts +26 -4
  142. package/lib/ui/gamification/vote/alert/styles.d.ts +7 -1
  143. package/lib/ui/gamification/vote/feedback/styles.d.ts +19 -2
  144. package/lib/ui/gamification/vote/feedbackAlert/index.d.ts +9 -0
  145. package/lib/ui/gamification/vote/feedbackAlert/index.js +11 -0
  146. package/lib/ui/gamification/vote/feedbackAlert/styles.d.ts +11 -0
  147. package/lib/ui/gamification/vote/feedbackAlert/styles.js +30 -0
  148. package/lib/ui/gamification/vote/index.d.ts +3 -1
  149. package/lib/ui/gamification/vote/index.js +160 -130
  150. package/lib/ui/gamification/vote/insight-details/index.js +8 -7
  151. package/lib/ui/gamification/vote/insight-details/styles.d.ts +7 -1
  152. package/lib/ui/gamification/vote/styles.d.ts +29 -4
  153. package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
  154. package/lib/ui/gamification/vote/vote-option/index.js +72 -64
  155. package/lib/ui/gamification/vote/vote-option/styles.d.ts +7 -1
  156. package/lib/ui/gamification/vote/win-bar/styles.d.ts +19 -2
  157. package/lib/ui/icons/index.d.ts +1 -0
  158. package/lib/ui/icons/index.js +80 -79
  159. package/lib/ui/modal/index.js +12 -17
  160. package/lib/ui/questions/insight/index.d.ts +4 -1
  161. package/lib/ui/questions/insight/index.js +29 -26
  162. package/lib/ui/questions/twitter/account/styles.d.ts +7 -1
  163. package/lib/ui/questions/twitter/index.d.ts +1 -0
  164. package/lib/ui/questions/twitter/index.js +27 -19
  165. package/lib/ui/theme/constants.d.ts +2 -0
  166. package/lib/ui/theme/constants.js +2 -0
  167. package/lib/ui/theme/masters-theme.js +1 -0
  168. package/lib/ui/theme/utils.d.ts +10 -0
  169. package/lib/ui/theme/utils.js +77 -0
  170. package/lib/ui/video-player/index.d.ts +10 -2
  171. package/lib/ui/video-player/index.js +189 -110
  172. package/lib/ui/video-player/styles.d.ts +36 -0
  173. package/lib/ui/video-player/styles.js +59 -11
  174. package/lib/utils/common.d.ts +6 -0
  175. package/lib/utils/createDemo.d.ts +12 -0
  176. package/lib/utils/debug/components/bypassLogin.d.ts +6 -0
  177. package/lib/utils/debug/components/copyLogs.d.ts +1 -0
  178. package/lib/utils/debug/components/developer.d.ts +14 -0
  179. package/lib/utils/debug/components/envToggle.d.ts +6 -0
  180. package/lib/utils/debug/components/eventInput.d.ts +8 -0
  181. package/lib/utils/debug/components/sdkKey.d.ts +6 -0
  182. package/lib/utils/debug/components/styles.d.ts +1 -0
  183. package/lib/utils/debug/index.d.ts +36 -0
  184. package/lib/utils/debug/storage.d.ts +14 -0
  185. package/lib/utils/decorators/container.d.ts +6 -0
  186. package/lib/utils/decorators/container.js +5 -5
  187. package/lib/utils/decorators/masters.d.ts +2 -0
  188. package/lib/utils/decorators/styles.d.ts +2 -0
  189. package/lib/utils/login.d.ts +3 -0
  190. package/lib/utils/storage.d.ts +14 -0
  191. package/package.json +27 -20
  192. package/lib/app/tvos/Advertisement.js +0 -88
  193. package/lib/app/tvos/AdvertisementUI.js +0 -40
  194. package/lib/app/tvos/index.d.ts +0 -16
  195. package/lib/app/tvos/index.js +0 -23
  196. package/lib/app/tvos/story.d.ts +0 -6
  197. package/lib/app/tvos/story.js +0 -34
  198. package/lib/app/tvos/styles.js +0 -4
  199. package/lib/app/tvos/ui/Layout/index.js +0 -76
  200. package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +0 -2
  201. package/lib/app/tvos/ui/Sidebar/PromoAction.js +0 -62
  202. package/lib/app/tvos/ui/Sidebar/index.js +0 -114
  203. /package/lib/app/{tvos → webos}/styles.d.ts +0 -0
  204. /package/lib/app/{tvos → webos}/ui/Layout/index.d.ts +0 -0
  205. /package/lib/app/{tvos → webos}/ui/Layout/styles.d.ts +0 -0
@@ -1,5 +1,9 @@
1
1
  export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
- export declare const QuestionScrollContainer: any;
2
+ export declare const QuestionScrollContainer: {
3
+ __wyw_meta: unknown;
4
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
5
+ as?: React.ElementType;
6
+ }>;
3
7
  export declare const TopShadow: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
8
  export declare const BottomShadow: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
9
  export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -7,7 +11,28 @@ export declare const Content: import('@linaria/react').StyledComponent<import('r
7
11
  export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
12
  export declare const OptionsWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
13
  export declare const Options: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
- export declare const AlertContainer: any;
14
+ export declare const AlertContainer: {
15
+ __wyw_meta: unknown;
16
+ } & import('react').FC<{
17
+ children: React.ReactNode | React.ReactNode[];
18
+ style?: React.CSSProperties;
19
+ className?: string;
20
+ enabled?: boolean;
21
+ hiding?: boolean;
22
+ onAnimationEnd?: React.AnimationEventHandler;
23
+ }>;
11
24
  export declare const EarlyPrediction: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
12
- export declare const EarlyPredictionIcon: any;
13
- export declare const SponsorIcon: any;
25
+ export declare const EarlyPredictionIcon: {
26
+ __wyw_meta: unknown;
27
+ } & import('react').FC<{
28
+ name: keyof typeof import('../../icons').icons;
29
+ style?: React.CSSProperties;
30
+ className?: string;
31
+ }>;
32
+ export declare const SponsorIcon: {
33
+ __wyw_meta: unknown;
34
+ } & import('react').FC<{
35
+ name: keyof typeof import('../../icons').icons;
36
+ style?: React.CSSProperties;
37
+ className?: string;
38
+ }>;
@@ -3,6 +3,7 @@ export type VotingOptionProps = ExtendedQuestionAnswer & {
3
3
  questionVoted: boolean;
4
4
  youSelected: boolean;
5
5
  isLoading: boolean;
6
+ firstOption: boolean;
6
7
  hasCorrectAnswer?: boolean;
7
8
  questionType: QuestionType;
8
9
  imageMode?: QuestionImages;
@@ -15,5 +16,7 @@ export type VotingOptionProps = ExtendedQuestionAnswer & {
15
16
  markThatVoted: (votedAfterQuestionClosed: boolean) => void;
16
17
  onPercentsAnimated?: () => void;
17
18
  isEarlyPrediction?: boolean;
19
+ isAd?: boolean;
20
+ webos?: boolean;
18
21
  };
19
22
  export declare const VotingOption: React.FC<VotingOptionProps>;
@@ -1,98 +1,106 @@
1
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { useState as j, useLayoutEffect as y } from "react";
3
- import { QuestionImages as s, QuestionType as o, QuestionStatus as S } from "@streamlayer/sdk-web-types";
4
- import { AnimatedCounter as U } from "../../../animated-counter/index.js";
5
- import { IconDefault as V, IconContainer as $, IconWrap as F, IconCircle as M, ButtonContainer as z, ButtonPctWrap as G, ButtonPct as H, ButtonBody as J, Title as K, PtsWrap as X, Pts as Y, Indicators as Z, CheckIcon as _, Percentage as q } from "./styles.js";
1
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
+ import { withFocusable as U } from "../../../../app/webos/useTvButton.js";
3
+ import { useState as V, useLayoutEffect as $ } from "react";
4
+ import { QuestionImages as c, QuestionType as o, QuestionStatus as O } from "@streamlayer/sdk-web-types";
5
+ import { AnimatedCounter as M } from "../../../animated-counter/index.js";
6
+ import { IconDefault as z, IconContainer as G, IconWrap as H, IconCircle as J, ButtonPctWrap as K, ButtonPct as X, ButtonBody as Y, Title as Z, PtsWrap as _, Pts as q, Indicators as tt, CheckIcon as et, Percentage as nt, ButtonContainer as it } from "./styles.js";
6
7
  const E = {
7
- [s.CENTERED]: (t) => /* @__PURE__ */ e(V, { "data-testid": "vote-icon", alt: "option-icon", src: t }),
8
- [s.TRANSPARENT]: (t) => /* @__PURE__ */ e($, { "data-testid": "vote-icon", children: /* @__PURE__ */ e(F, { style: { backgroundImage: `url(${t})` } }) }),
9
- [s.ROUNDED]: (t) => /* @__PURE__ */ e(M, { "data-testid": "vote-icon", alt: "option-icon", src: t }),
10
- [s.NONE]: () => null,
11
- [s.UNSET]: () => null
12
- }, tt = ({ questionType: t, hasCorrectAnswer: a, correct: n, youVoted: r, questionVoted: i }) => {
13
- if (t === o.POLL && r)
8
+ [c.CENTERED]: (t) => /* @__PURE__ */ e(z, { "data-testid": "vote-icon", alt: "option-icon", src: t }),
9
+ [c.TRANSPARENT]: (t) => /* @__PURE__ */ e(G, { "data-testid": "vote-icon", children: /* @__PURE__ */ e(H, { style: { backgroundImage: `url(${t})` } }) }),
10
+ [c.ROUNDED]: (t) => /* @__PURE__ */ e(J, { "data-testid": "vote-icon", alt: "option-icon", src: t }),
11
+ [c.NONE]: () => null,
12
+ [c.UNSET]: () => null
13
+ }, rt = ({ questionType: t, hasCorrectAnswer: a, correct: n, youVoted: i, questionVoted: r }) => {
14
+ if (t === o.POLL && i)
14
15
  return "voted";
15
16
  if (t === o.PREDICTION) {
16
- if (!a && i)
17
- return r ? "voted" : "unset";
18
- if (a && i)
19
- return r ? n ? "correct" : "incorrect" : "unset";
20
- if (r)
17
+ if (!a && r)
18
+ return i ? "voted" : "unset";
19
+ if (a && r)
20
+ return i ? n ? "correct" : "incorrect" : "unset";
21
+ if (i)
21
22
  return "correct";
22
23
  }
23
- return t === o.TRIVIA && i && r ? n ? "correct" : "incorrect" : "unset";
24
- }, et = ({
24
+ return t === o.TRIVIA && r && i ? n ? "correct" : "incorrect" : "unset";
25
+ }, ot = ({
25
26
  questionType: t,
26
27
  questionVoted: a,
27
28
  correct: n,
28
- hasCorrectAnswer: r,
29
- questionStatus: i
30
- }) => t === o.TRIVIA ? a && n : t === o.PREDICTION ? a && n && r || i === S.RESOLVED && n : !1, ct = (t) => {
29
+ hasCorrectAnswer: i,
30
+ questionStatus: r
31
+ }) => t === o.TRIVIA ? a && n : t === o.PREDICTION ? a && n && i || r === O.RESOLVED && n : !1, at = U(it), mt = (t) => {
31
32
  var N;
32
33
  const {
33
34
  // option props
34
35
  id: a,
35
36
  icon: n,
36
- text: r,
37
- percentageDecimal: i,
38
- points: D,
37
+ text: i,
38
+ percentageDecimal: r,
39
+ points: w,
39
40
  // extra props
40
- onVote: O,
41
+ onVote: D,
41
42
  markThatVoted: g,
42
- onPercentsAnimated: u,
43
- youSelected: h,
44
- youVoted: w,
45
- questionVoted: c,
46
- imageMode: P,
47
- answerTimeExpired: k,
48
- questionStatus: C,
49
- isLoading: v,
43
+ firstOption: k,
44
+ onPercentsAnimated: l,
45
+ youSelected: P,
46
+ youVoted: v,
47
+ questionVoted: s,
48
+ imageMode: C,
49
+ answerTimeExpired: A,
50
+ questionStatus: p,
51
+ isLoading: B,
50
52
  questionType: d,
51
- correct: A,
52
- hasCorrectAnswer: x,
53
+ correct: x,
54
+ hasCorrectAnswer: L,
53
55
  marketClosed: f,
54
- isEarlyPrediction: B
55
- } = t, [L, R] = j(0), I = tt(t), Q = et({ questionType: d, questionVoted: c, correct: A, hasCorrectAnswer: x, questionStatus: C }), m = f && d === o.PREDICTION, T = c || m, W = d === o.PREDICTION && !c && !f, p = c && !h && I !== "incorrect" && !w;
56
- return y(() => {
56
+ isEarlyPrediction: b,
57
+ isAd: m,
58
+ webos: W
59
+ } = t, [F, R] = V(0), I = rt(t), Q = ot({ questionType: d, questionVoted: s, correct: x, hasCorrectAnswer: L, questionStatus: p }), h = f && d === o.PREDICTION, S = s || h, j = d === o.PREDICTION && !s && !f && !m, T = s && !P && I !== "incorrect" && !v;
60
+ return $(() => {
57
61
  R(0), requestAnimationFrame(() => {
58
- R(i);
62
+ R(r);
59
63
  });
60
- }, [i]), /* @__PURE__ */ l(
61
- z,
64
+ }, [r]), /* @__PURE__ */ u(
65
+ at,
62
66
  {
63
67
  value: a,
64
- "data-selected": h,
68
+ webos: W,
69
+ autoFocus: k,
70
+ "data-selected": P,
65
71
  "data-answer-state": I,
66
- disabled: c || v || k || m,
67
- "data-is-not-checked": p,
72
+ disabled: s || B || A || h,
73
+ "data-is-not-checked": T,
68
74
  "data-a": "intr",
69
- onClick: (b) => {
75
+ onClick: (y) => {
70
76
  g(
71
- d === o.PREDICTION ? f : C === S.RESOLVED
72
- ), O(b);
77
+ d === o.PREDICTION ? f : p === O.RESOLVED
78
+ ), D(y);
73
79
  },
80
+ "data-is-ad": m,
74
81
  children: [
75
- /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
76
- H,
82
+ /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
83
+ X,
77
84
  {
78
85
  "data-answer-state": I,
79
- "data-is-not-checked": p,
80
- style: { width: `${T ? L : 0}%` },
86
+ "data-is-not-checked": T,
87
+ style: { width: `${S ? F : 0}%` },
81
88
  onTransitionEnd: () => {
82
- m || u == null || u();
83
- }
89
+ h || l == null || l();
90
+ },
91
+ "data-is-ad": m
84
92
  }
85
93
  ) }),
86
- /* @__PURE__ */ l(J, { "data-a": "intr", children: [
87
- n && P && ((N = E[P]) == null ? void 0 : N.call(E, n)),
88
- /* @__PURE__ */ e(K, { "data-a": "intr", children: r }),
89
- W && /* @__PURE__ */ l(X, { children: [
90
- D,
91
- /* @__PURE__ */ e(Y, { children: "pts" })
94
+ /* @__PURE__ */ u(Y, { "data-a": "intr", children: [
95
+ n && C && ((N = E[C]) == null ? void 0 : N.call(E, n)),
96
+ /* @__PURE__ */ e(Z, { "data-a": "intr", children: i }),
97
+ j && /* @__PURE__ */ u(_, { children: [
98
+ w,
99
+ /* @__PURE__ */ e(q, { children: "pts" })
92
100
  ] }),
93
- T && /* @__PURE__ */ l(Z, { children: [
94
- Q && /* @__PURE__ */ e(_, { name: B ? "selectedBetPack" : "selected" }),
95
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(U, { value: i, suffix: "%" }) })
101
+ S && /* @__PURE__ */ u(tt, { children: [
102
+ Q && /* @__PURE__ */ e(et, { name: b ? "selectedBetPack" : "selected" }),
103
+ /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(M, { value: r, suffix: "%" }) })
96
104
  ] })
97
105
  ] })
98
106
  ]
@@ -100,5 +108,5 @@ const E = {
100
108
  );
101
109
  };
102
110
  export {
103
- ct as VotingOption
111
+ mt as VotingOption
104
112
  };
@@ -20,4 +20,10 @@ export declare const Indicators: import('@linaria/react').StyledComponent<import
20
20
  export declare const PtsWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
21
21
  export declare const Pts: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
22
22
  export declare const Percentage: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
23
- export declare const CheckIcon: any;
23
+ export declare const CheckIcon: {
24
+ __wyw_meta: unknown;
25
+ } & import('react').FC<{
26
+ name: keyof typeof import('../../../icons').icons;
27
+ style?: React.CSSProperties;
28
+ className?: string;
29
+ }>;
@@ -1,8 +1,25 @@
1
- export declare const ShowInContainer: any;
1
+ export declare const ShowInContainer: {
2
+ __wyw_meta: unknown;
3
+ } & import('react').FC<{
4
+ children: React.ReactNode | React.ReactNode[];
5
+ style?: React.CSSProperties;
6
+ className?: string;
7
+ enabled?: boolean;
8
+ hiding?: boolean;
9
+ onAnimationEnd?: React.AnimationEventHandler;
10
+ } & {
11
+ animate?: boolean;
12
+ }>;
2
13
  export declare const WinBarContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
14
  export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
15
  export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const WinIcon: any;
16
+ export declare const WinIcon: {
17
+ __wyw_meta: unknown;
18
+ } & import('react').FC<{
19
+ name: keyof typeof import('../../../icons').icons;
20
+ style?: React.CSSProperties;
21
+ className?: string;
22
+ }>;
6
23
  export declare const Points: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
24
  export declare const PointsCount: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
8
25
  export declare const PointsUnits: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
@@ -33,6 +33,7 @@ export declare const icons: {
33
33
  'icon-check-white': any;
34
34
  'icon-check-green': any;
35
35
  'icon-check-circle': any;
36
+ 'icon-correct': any;
36
37
  'icon-btn-channels': any;
37
38
  'icon-btn-feature-groups': any;
38
39
  'icon-btn-leaderboard': any;