@streamlayer/react-ui 1.26.1 → 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,8 +1,20 @@
1
1
  export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
2
  export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const CloseIcon: any;
3
+ export declare const CloseIcon: {
4
+ __wyw_meta: unknown;
5
+ } & import('react').FC<{
6
+ name: keyof typeof import('../../../icons').icons;
7
+ style?: React.CSSProperties;
8
+ className?: string;
9
+ }>;
4
10
  export declare const Header: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const TypeIcon: any;
11
+ export declare const TypeIcon: {
12
+ __wyw_meta: unknown;
13
+ } & import('react').FC<{
14
+ name: keyof typeof import('../../../icons').icons;
15
+ style?: React.CSSProperties;
16
+ className?: string;
17
+ }>;
6
18
  export declare const TypeName: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
7
19
  export declare const Question: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
20
  export declare const AnswerButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
@@ -2,9 +2,27 @@ export declare const QuestionItem: import('@linaria/react').StyledComponent<impo
2
2
  export declare const QuestionCaption: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
3
  export declare const QuestionBody: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const QuestionAction: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const QuestionActionIcon: any;
6
- export declare const QuestionCheckIcon: any;
7
- export declare const QuestionTypeIcon: any;
5
+ export declare const QuestionActionIcon: {
6
+ __wyw_meta: unknown;
7
+ } & import('react').FC<{
8
+ name: keyof typeof import('../../icons').icons;
9
+ style?: React.CSSProperties;
10
+ className?: string;
11
+ }>;
12
+ export declare const QuestionCheckIcon: {
13
+ __wyw_meta: unknown;
14
+ } & import('react').FC<{
15
+ name: keyof typeof import('../../icons').icons;
16
+ style?: React.CSSProperties;
17
+ className?: string;
18
+ }>;
19
+ export declare const QuestionTypeIcon: {
20
+ __wyw_meta: unknown;
21
+ } & import('react').FC<{
22
+ name: keyof typeof import('../../icons').icons;
23
+ style?: React.CSSProperties;
24
+ className?: string;
25
+ }>;
8
26
  export declare const QuestionTypeLabel: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
27
  export declare const QuestionContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
28
  export declare const QuestionSubject: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -14,4 +32,8 @@ export declare const QuestionTypeTitle: import('@linaria/react').StyledComponent
14
32
  export declare const ExpiredQuestion: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
15
33
  export declare const PlayButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
16
34
  export declare const SkeletonContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
17
- export declare const SkeletonButton: any;
35
+ export declare const SkeletonButton: {
36
+ __wyw_meta: unknown;
37
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
38
+ as?: React.ElementType;
39
+ }>;
@@ -1,4 +1,10 @@
1
1
  export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
2
  export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
3
  export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Icon: any;
4
+ export declare const Icon: {
5
+ __wyw_meta: unknown;
6
+ } & import('react').FC<{
7
+ name: keyof typeof import('../../../icons').icons;
8
+ style?: React.CSSProperties;
9
+ className?: string;
10
+ }>;
@@ -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 FeedbackContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
14
  export declare const ShowAnimation: import('@linaria/core').LinariaClassName;
4
15
  export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const IconPrediction: any;
16
+ export declare const IconPrediction: {
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 FeedbackIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
24
  export declare const FeedbackHeader: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
25
  export declare const FeedbackTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type FeedbackAlertProps = {
3
+ icon?: 'icon-correct';
4
+ title: string;
5
+ description: React.ReactElement | string;
6
+ additionalDescription?: string;
7
+ };
8
+ export declare const FeedbackAlert: React.FC<FeedbackAlertProps>;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { Container as c, Icon as l, Title as d, Description as m, AdditionalDescription as s } from "./styles.js";
3
+ const x = ({ icon: e, title: i, description: t, additionalDescription: n }) => /* @__PURE__ */ o(c, { children: [
4
+ e && /* @__PURE__ */ r(l, { name: e }),
5
+ /* @__PURE__ */ r(d, { children: i }),
6
+ /* @__PURE__ */ r(m, { children: t }),
7
+ n && /* @__PURE__ */ r(s, { children: n })
8
+ ] });
9
+ export {
10
+ x as FeedbackAlert
11
+ };
@@ -0,0 +1,11 @@
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const AdditionalDescription: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const Icon: {
6
+ __wyw_meta: unknown;
7
+ } & import('react').FC<{
8
+ name: keyof typeof import('../../../icons').icons;
9
+ style?: React.CSSProperties;
10
+ className?: string;
11
+ }>;
@@ -0,0 +1,30 @@
1
+ import { styled as s } from "@linaria/react";
2
+ import { SvgIcon as o } from "../../../icons/index.js";
3
+ const t = /* @__PURE__ */ s("div")({
4
+ name: "Container",
5
+ class: "c1hygj0s",
6
+ propsAsIs: !1
7
+ }), a = /* @__PURE__ */ s("div")({
8
+ name: "Title",
9
+ class: "t1r84tez",
10
+ propsAsIs: !1
11
+ }), c = /* @__PURE__ */ s("div")({
12
+ name: "Description",
13
+ class: "d1aj1a7k",
14
+ propsAsIs: !1
15
+ }), r = /* @__PURE__ */ s("div")({
16
+ name: "AdditionalDescription",
17
+ class: "ax09ezs",
18
+ propsAsIs: !1
19
+ }), n = () => o, p = /* @__PURE__ */ s(n())({
20
+ name: "Icon",
21
+ class: "inkrac",
22
+ propsAsIs: !0
23
+ });
24
+ export {
25
+ r as AdditionalDescription,
26
+ t as Container,
27
+ c as Description,
28
+ p as Icon,
29
+ a as Title
30
+ };
@@ -3,8 +3,10 @@ interface VoteProps {
3
3
  openedQuestion: ExtendedQuestion;
4
4
  isLoading: boolean;
5
5
  vote: (questionId: string, answerId: string) => void;
6
- close: () => void;
6
+ close: (questionId?: string) => void;
7
7
  isEarlyPrediction?: boolean;
8
+ mastersApp?: boolean;
9
+ webos?: boolean;
8
10
  }
9
11
  export declare const VoteSkeleton: React.FC;
10
12
  export declare const Vote: React.FC<VoteProps>;
@@ -1,196 +1,226 @@
1
- import { jsx as r, jsxs as f, Fragment as S } from "react/jsx-runtime";
2
- import { useHideTransition as It } from "../../../hooks/showIn.js";
3
- import { useRef as X, useState as m, useEffect as p, useCallback as v, useMemo as g } from "react";
4
- import { QuestionType as c, QuestionStatus as L } from "@streamlayer/sdk-web-types";
5
- import { Skeleton as M } from "../../skeleton/index.js";
6
- import { Alert as Ct } from "./alert/index.js";
7
- import { Feedback as Z } from "./feedback/index.js";
8
- import { Container as $, Content as Q, Options as tt, QuestionScrollContainer as Vt, TopShadow as pt, AlertContainer as vt, EarlyPrediction as wt, EarlyPredictionIcon as At, Title as yt, OptionsWrap as Rt, BottomShadow as Et, SponsorLogo as Ot, SponsorIcon as St } from "./styles.js";
9
- import { VotingOption as xt } from "./vote-option/index.js";
10
- import { WinBar as qt } from "./win-bar/index.js";
11
- const Dt = (e, u) => {
1
+ import { jsx as i, jsxs as m, Fragment as N } from "react/jsx-runtime";
2
+ import { useHideTransition as St } from "../../../hooks/showIn.js";
3
+ import { useRef as M, useState as u, useEffect as p, useCallback as R, useMemo as w } from "react";
4
+ import { AdUnit as xt, QuestionType as n, QuestionStatus as B } from "@streamlayer/sdk-web-types";
5
+ import { Skeleton as q } from "../../skeleton/index.js";
6
+ import { Alert as Dt } from "./alert/index.js";
7
+ import { Feedback as rt } from "./feedback/index.js";
8
+ import { FeedbackAlert as Et } from "./feedbackAlert/index.js";
9
+ import { Container as it, Content as ot, Options as st, QuestionScrollContainer as Nt, TopShadow as kt, EarlyPrediction as Pt, EarlyPredictionIcon as Lt, Title as bt, OptionsWrap as Wt, BottomShadow as Yt, SponsorLogo as Mt, SponsorIcon as Bt, AlertContainer as nt } from "./styles.js";
10
+ import { VotingOption as qt } from "./vote-option/index.js";
11
+ import { WinBar as jt } from "./win-bar/index.js";
12
+ const Ft = (e, T) => {
12
13
  switch (e) {
13
14
  case "already_voted":
14
- return u === c.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally.";
15
+ return T === n.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally.";
15
16
  default:
16
17
  return "Something went wrong, please try again";
17
18
  }
18
- }, Ht = () => /* @__PURE__ */ r($, { children: /* @__PURE__ */ f(Q, { children: [
19
- /* @__PURE__ */ r(M, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
20
- /* @__PURE__ */ r(M, { loading: !0, style: { height: "24px", margin: "16px 0" } }),
21
- /* @__PURE__ */ r(tt, { children: Array.from({ length: 5 }).map((e, u) => /* @__PURE__ */ r(M, { loading: !0, style: { height: "44px" } }, u)) })
22
- ] }) }), Ft = ({ openedQuestion: e, isLoading: u, vote: W, close: B, isEarlyPrediction: i }) => {
23
- var K, U;
24
- const et = e.subject, n = e.type, I = e.status, w = (K = e.options) == null ? void 0 : K.options, T = e.marketClosed, x = e.id, P = X(), [C, Y] = m(!1), [A, rt] = m(!1), [V, j] = m(!0), [d, nt] = m(!1), [H, ot] = m(!1), [F, q] = m(""), [y, st] = m(""), [R, _] = m(!1), [it, at] = m(!1), { runAnimation: E, finished: z } = It();
19
+ }, te = () => /* @__PURE__ */ i(it, { children: /* @__PURE__ */ m(ot, { children: [
20
+ /* @__PURE__ */ i(q, { loading: !0, style: { height: "40px", borderRadius: "100px" } }),
21
+ /* @__PURE__ */ i(q, { loading: !0, style: { height: "24px", margin: "16px 0" } }),
22
+ /* @__PURE__ */ i(st, { children: Array.from({ length: 5 }).map((e, T) => /* @__PURE__ */ i(q, { loading: !0, style: { height: "44px" } }, T)) })
23
+ ] }) }), ee = ({
24
+ openedQuestion: e,
25
+ isLoading: T,
26
+ vote: j,
27
+ close: F,
28
+ isEarlyPrediction: a,
29
+ mastersApp: at,
30
+ webos: ct
31
+ }) => {
32
+ var tt, et;
33
+ const H = e.subject, r = e.type, v = e.status, f = (tt = e.options) == null ? void 0 : tt.options, I = e.marketClosed, O = e.id, U = M(), S = M(), g = at ? !1 : (e == null ? void 0 : e.adUnit) === xt.STANDART, [V, _] = u(!1), [x, lt] = u(!1), [y, $] = u(!0), [d, ft] = u(!1), [k, ut] = u(!1), [z, P] = u(""), [D, mt] = u(""), [E, G] = u(!1), [dt, Tt] = u(!1), [J, ht] = u(!1), { runAnimation: A, finished: K } = St();
25
34
  p(() => {
26
- z && B();
27
- }, [B, z]), p(() => {
28
- n === c.PREDICTION ? T && j(!1) : I === L.RESOLVED && j(!1);
35
+ K && F(O);
36
+ }, [F, K]), p(() => {
37
+ r === n.PREDICTION ? I && $(!1) : v === B.RESOLVED && $(!1);
29
38
  }, []);
30
- const ct = v((s) => {
31
- rt(s), Y(!0);
32
- }, []), lt = v(() => {
33
- i && Y(!1);
34
- }, [i]), D = X(!1), G = v(
39
+ const It = R((s) => {
40
+ lt(s), _(!0);
41
+ }, []), gt = R(() => {
42
+ a && _(!1);
43
+ }, [a]), L = M(!1), X = R(() => {
44
+ S.current && clearTimeout(S.current), S.current = setTimeout(() => {
45
+ ht(!0), A({ delay: 5500 });
46
+ }, 4e3);
47
+ }, [A]), Z = R(
35
48
  async (s) => {
36
- if (!D.current && (D.current = !0, x)) {
49
+ if (!L.current && (L.current = !0, O)) {
37
50
  const l = s.currentTarget.value;
38
- q(l);
51
+ P(l);
39
52
  try {
40
- await W(x, l);
41
- } catch (O) {
42
- st(Dt(O.message, n)), q(""), console.error("Error while voting", O), D.current = !1;
53
+ await j(O, l), g && X();
54
+ } catch (C) {
55
+ mt(Ft(C.message, r)), P(""), console.error("Error while voting", C), L.current = !1;
43
56
  }
44
57
  }
45
58
  },
46
- [n, x, q, W]
47
- ), mt = v(() => {
48
- nt(!0), E({ delay: 3500 });
49
- }, [E]), ft = v(() => {
50
- ot(!0), E({ delay: 3500 });
51
- }, [E]), t = e == null ? void 0 : e.answers.find((s) => s.youVoted === !0), a = g(
59
+ [r, O, P, j, g, X]
60
+ ), At = R(() => {
61
+ ft(!0), A({ delay: 3500 });
62
+ }, [A]), Ct = R(() => {
63
+ ut(!0), A({ delay: 3500 });
64
+ }, [A]), t = e == null ? void 0 : e.answers.find((s) => s.youVoted === !0), c = w(
52
65
  () => !!(e != null && e.answers.find((s) => s.correct === !0)),
53
66
  [e]
54
- ), o = g(
67
+ ), o = w(
55
68
  () => e == null ? void 0 : e.answers.find((s) => s.correct === !0),
56
69
  [e]
57
70
  );
58
71
  p(() => {
59
- t && C && !it && (P.current = setTimeout(ft, 1e4), at(!0));
72
+ t && V && !dt && (U.current = setTimeout(Ct, 1e4), Tt(!0));
60
73
  }, [t]), p(() => () => {
61
- clearTimeout(P.current);
74
+ clearTimeout(U.current), clearTimeout(S.current);
62
75
  }, []);
63
- const k = g(() => e ? e.answers.map((s) => {
76
+ const b = w(() => e ? e.answers.map((s) => {
64
77
  var l;
65
78
  return {
66
79
  ...s,
67
80
  questionVoted: !!t,
68
- youSelected: F === s.id,
69
- isLoading: u,
70
- hasCorrectAnswer: a,
81
+ youSelected: z === s.id,
82
+ isLoading: T,
83
+ hasCorrectAnswer: c,
71
84
  questionType: e.type,
72
85
  answerTimeExpired: d,
73
- questionStatus: I,
86
+ questionStatus: v,
74
87
  imageMode: (l = e.appearance) == null ? void 0 : l.images,
75
- onVote: G
88
+ onVote: Z
76
89
  };
77
90
  }) : [], [
78
- a,
91
+ c,
79
92
  d,
80
- u,
93
+ T,
81
94
  e,
82
95
  t,
83
- I,
84
- G,
85
- F
96
+ v,
97
+ Z,
98
+ z
86
99
  ]);
87
100
  p(() => {
88
- const s = k.some(({ percentageDecimal: O }) => O !== 0), l = t && n === c.PREDICTION;
89
- y && (i || !s || T && l) && _(!0);
90
- }, [k, y, i, T, n, t]);
91
- const J = w && (w.case === "trivia" || w.case === "prediction") ? w.value : void 0, h = I === L.RESOLVED && n === c.TRIVIA && !t && !V, N = n === c.TRIVIA && A, b = g(() => n === c.PREDICTION ? i ? !1 : !!(t && !a || t && a && (o != null && o.youVoted)) : !0, [n, t, a, o, i]), ut = g(() => {
92
- if (n === c.PREDICTION && t && (!a || a && (o != null && o.youVoted)))
101
+ const s = b.some(({ percentageDecimal: C }) => C !== 0), l = t && r === n.PREDICTION;
102
+ D && (a || !s || I && l) && G(!0);
103
+ }, [b, D, a, I, r, t]);
104
+ const Q = f && (f.case === "trivia" || f.case === "prediction") ? f.value : void 0, h = v === B.RESOLVED && r === n.TRIVIA && !t && !y, W = r === n.TRIVIA && x, Y = w(() => g ? !1 : r === n.PREDICTION ? a ? !1 : !!(t && !c || t && c && (o != null && o.youVoted)) : !0, [r, t, c, o, a, g]), Rt = w(() => {
105
+ if (r === n.PREDICTION && t && (!c || c && (o != null && o.youVoted)))
93
106
  return t.points;
94
107
  if (!(h || d))
95
108
  return t ? t.correct ? t.pointsEarned : 0 : o == null ? void 0 : o.points;
96
- }, [d, t, o, h, n, a]), dt = g(() => n === c.PREDICTION && t ? a ? a && (o != null && o.youVoted) ? "You won" : "" : "To win" : h || d ? "Time expired" : n === c.POLL ? "Time remaining" : t ? "You won" : "To win", [d, n, t, h, a, o]), ht = !b || b && n === c.PREDICTION && C && !R, Tt = (n === c.TRIVIA || n === c.PREDICTION) && t && a && (o == null ? void 0 : o.youVoted), gt = t || h || N || n === c.TRIVIA && I === L.RESOLVED && V;
97
- return /* @__PURE__ */ f(Vt, { children: [
98
- i && /* @__PURE__ */ r(pt, {}),
99
- /* @__PURE__ */ r($, { style: i ? { marginTop: "-40px" } : {}, children: /* @__PURE__ */ f(Q, { children: [
100
- !i && /* @__PURE__ */ r(
101
- Z,
109
+ }, [d, t, o, h, r, c]), wt = w(() => r === n.PREDICTION && t ? c ? c && (o != null && o.youVoted) ? "You won" : "" : "To win" : h || d ? "Time expired" : r === n.POLL ? "Time remaining" : t ? "You won" : "To win", [d, r, t, h, c, o]), vt = !Y || Y && r === n.PREDICTION && V && !E, Vt = (r === n.TRIVIA || r === n.PREDICTION) && t && c && (o == null ? void 0 : o.youVoted), yt = t || h || W || r === n.TRIVIA && v === B.RESOLVED && y, pt = !a && (d || k) || J, Ot = () => {
110
+ const s = () => r === n.TRIVIA ? t != null && t.correct ? `That's correct!
111
+ You chose wisely.` : `So close!
112
+ Better luck next time.` : r === n.POLL ? `Thanks for answering.
113
+ Please stay tuned for the next question.` : r === n.PREDICTION ? "Stay tuned to see if your prediction was correct." : "", l = () => r === n.TRIVIA ? `Your Pick: ${o == null ? void 0 : o.text}` : r === n.POLL || r === n.PREDICTION ? `Your Pick: ${t == null ? void 0 : t.text}` : "", C = () => r === n.TRIVIA && (f == null ? void 0 : f.case) === "trivia" ? f == null ? void 0 : f.value.explanation : r === n.PREDICTION ? H : "";
114
+ return J ? /* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i(
115
+ Et,
116
+ {
117
+ title: s(),
118
+ description: l(),
119
+ ...t != null && t.correct || r === n.POLL || r === n.PREDICTION ? { icon: "icon-correct" } : {},
120
+ ...r === n.TRIVIA || r === n.PREDICTION ? { additionalDescription: C() } : {}
121
+ }
122
+ ) }) : !a && (d || k) ? /* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i(
123
+ Dt,
124
+ {
125
+ icon: "icon-check-circle",
126
+ title: "More to come...",
127
+ description: k ? /* @__PURE__ */ m(N, { children: [
128
+ "Stay tuned for more questions ",
129
+ /* @__PURE__ */ i("br", {}),
130
+ " and insights."
131
+ ] }) : /* @__PURE__ */ m(N, { children: [
132
+ "Watch for additional enhanced stream ",
133
+ /* @__PURE__ */ i("br", {}),
134
+ " interactive experience."
135
+ ] })
136
+ }
137
+ ) }) : null;
138
+ };
139
+ return /* @__PURE__ */ m(Nt, { children: [
140
+ a && /* @__PURE__ */ i(kt, {}),
141
+ /* @__PURE__ */ i(it, { style: a ? { marginTop: "-40px" } : {}, children: /* @__PURE__ */ m(ot, { children: [
142
+ !a && !g && /* @__PURE__ */ i(
143
+ rt,
102
144
  {
103
- feedbackMessages: J,
145
+ feedbackMessages: Q,
104
146
  questionVoted: !!t,
105
147
  questionVotedCorrectly: t == null ? void 0 : t.correct,
106
- questionType: n,
107
- hasCorrectAnswer: a,
148
+ questionType: r,
149
+ hasCorrectAnswer: c,
108
150
  showExpiredNotification: h,
109
- showClosedNotificationTrivia: N,
110
- votedInCurrentRender: C,
111
- votedAfterQuestionClosed: A,
112
- enteredAnActiveQuestion: V,
113
- marketClosed: T,
114
- percentsAnimated: R,
115
- voteErrorMessage: y,
151
+ showClosedNotificationTrivia: W,
152
+ votedInCurrentRender: V,
153
+ votedAfterQuestionClosed: x,
154
+ enteredAnActiveQuestion: y,
155
+ marketClosed: I,
156
+ percentsAnimated: E,
157
+ voteErrorMessage: D,
116
158
  votedAnswer: t
117
159
  }
118
160
  ),
119
- b && /* @__PURE__ */ r(
120
- qt,
161
+ Y && /* @__PURE__ */ i(
162
+ jt,
121
163
  {
122
- title: dt,
123
- points: ut,
124
- onTimerExpired: mt,
164
+ title: wt,
165
+ points: Rt,
166
+ onTimerExpired: At,
125
167
  questionType: e.type,
126
- isTimer: !u,
168
+ isTimer: !T,
127
169
  isPlayingTimer: !t,
128
- animatePoints: Tt,
129
- timerDuration: gt ? 0 : Number(((U = e == null ? void 0 : e.appearance) == null ? void 0 : U.autoHideInterval) || "30"),
130
- votedInCurrentRender: C,
131
- percentsAnimated: R
170
+ animatePoints: Vt,
171
+ timerDuration: yt ? 0 : Number(((et = e == null ? void 0 : e.appearance) == null ? void 0 : et.autoHideInterval) || "30"),
172
+ votedInCurrentRender: V,
173
+ percentsAnimated: E
132
174
  }
133
175
  ),
134
- !i && (d || H) ? /* @__PURE__ */ r(vt, { children: /* @__PURE__ */ r(
135
- Ct,
136
- {
137
- icon: "icon-check-circle",
138
- title: "More to come...",
139
- description: H ? /* @__PURE__ */ f(S, { children: [
140
- "Stay tuned for more questions ",
141
- /* @__PURE__ */ r("br", {}),
142
- " and insights."
143
- ] }) : /* @__PURE__ */ f(S, { children: [
144
- "Watch for additional enhanced stream ",
145
- /* @__PURE__ */ r("br", {}),
146
- " interactive experience."
147
- ] })
148
- }
149
- ) }) : /* @__PURE__ */ f(S, { children: [
150
- i && /* @__PURE__ */ f(wt, { children: [
151
- /* @__PURE__ */ r(At, { name: "iconEarlyPrediction" }),
176
+ pt ? Ot() : /* @__PURE__ */ m(N, { children: [
177
+ a && /* @__PURE__ */ m(Pt, { children: [
178
+ /* @__PURE__ */ i(Lt, { name: "iconEarlyPrediction" }),
152
179
  "EARLY PREDICTION"
153
180
  ] }),
154
- /* @__PURE__ */ r(yt, { style: ht ? { marginTop: 0 } : {}, children: et }),
155
- i && /* @__PURE__ */ r(
156
- Z,
181
+ /* @__PURE__ */ i(bt, { style: vt ? { marginTop: 0 } : {}, children: H }),
182
+ a && /* @__PURE__ */ i(
183
+ rt,
157
184
  {
158
- feedbackMessages: J,
185
+ feedbackMessages: Q,
159
186
  questionVoted: !!t,
160
187
  questionVotedCorrectly: t == null ? void 0 : t.correct,
161
- questionType: n,
162
- hasCorrectAnswer: a,
188
+ questionType: r,
189
+ hasCorrectAnswer: c,
163
190
  showExpiredNotification: h,
164
- showClosedNotificationTrivia: N,
165
- votedInCurrentRender: C,
166
- votedAfterQuestionClosed: A,
167
- enteredAnActiveQuestion: V,
168
- marketClosed: T,
169
- percentsAnimated: R,
170
- voteErrorMessage: y,
171
- isEarlyPrediction: i,
191
+ showClosedNotificationTrivia: W,
192
+ votedInCurrentRender: V,
193
+ votedAfterQuestionClosed: x,
194
+ enteredAnActiveQuestion: y,
195
+ marketClosed: I,
196
+ percentsAnimated: E,
197
+ voteErrorMessage: D,
198
+ isEarlyPrediction: a,
172
199
  correctAnswer: o,
173
200
  votedAnswer: t,
174
- onAnimationEnd: lt
201
+ onAnimationEnd: gt
175
202
  }
176
203
  ),
177
- /* @__PURE__ */ f(Rt, { children: [
178
- /* @__PURE__ */ r(tt, { children: k.sort((s, l) => s.id > l.id ? 1 : -1).map((s) => /* @__PURE__ */ r(
179
- xt,
204
+ /* @__PURE__ */ m(Wt, { children: [
205
+ /* @__PURE__ */ i(st, { children: b.sort((s, l) => s.id > l.id ? 1 : -1).map((s, l) => /* @__PURE__ */ i(
206
+ qt,
180
207
  {
181
208
  ...s,
182
- markThatVoted: ct,
183
- onPercentsAnimated: () => _(!0),
184
- votedAfterQuestionClosed: A,
185
- enteredAnActiveQuestion: V,
186
- marketClosed: T,
187
- isEarlyPrediction: i
209
+ firstOption: l === 0,
210
+ markThatVoted: It,
211
+ onPercentsAnimated: () => G(!0),
212
+ votedAfterQuestionClosed: x,
213
+ enteredAnActiveQuestion: y,
214
+ marketClosed: I,
215
+ isEarlyPrediction: a,
216
+ isAd: g,
217
+ webos: ct
188
218
  },
189
219
  s.id
190
220
  )) }),
191
- i && /* @__PURE__ */ f(S, { children: [
192
- /* @__PURE__ */ r(Et, {}),
193
- /* @__PURE__ */ r(Ot, { children: /* @__PURE__ */ r(St, { name: "mastersLogoWhite" }) })
221
+ a && /* @__PURE__ */ m(N, { children: [
222
+ /* @__PURE__ */ i(Yt, {}),
223
+ /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(Bt, { name: "mastersLogoWhite" }) })
194
224
  ] })
195
225
  ] })
196
226
  ] })
@@ -198,6 +228,6 @@ const Dt = (e, u) => {
198
228
  ] });
199
229
  };
200
230
  export {
201
- Ft as Vote,
202
- Ht as VoteSkeleton
231
+ ee as Vote,
232
+ te as VoteSkeleton
203
233
  };
@@ -1,13 +1,14 @@
1
- import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
- import { InsightContent as k } from "../../../questions/insight/index.js";
3
- import { Container as m, WebLinkBtn as e, WebLinkIcon as c } from "./styles.js";
4
- const p = ({ instantView: r, ...b }) => /* @__PURE__ */ o(m, { children: [
5
- /* @__PURE__ */ l(k, { instantView: r, ...b, isDetail: !0 }),
6
- (r == null ? void 0 : r.webLink) && /* @__PURE__ */ o(e, { href: r == null ? void 0 : r.webLink.url, target: "_blank", "data-a": "web-link", children: [
1
+ import { jsxs as b, jsx as l } from "react/jsx-runtime";
2
+ import { InsightContentTV as e } from "../../../../app/webos/ui/insight/index.js";
3
+ import { InsightContent as m } from "../../../questions/insight/index.js";
4
+ import { Container as k, WebLinkBtn as h, WebLinkIcon as c } from "./styles.js";
5
+ const x = ({ instantView: r, ...o }) => /* @__PURE__ */ b(k, { children: [
6
+ o.webos ? /* @__PURE__ */ l(e, { instantView: r, ...o, isDetail: !0 }) : /* @__PURE__ */ l(m, { instantView: r, ...o, isDetail: !0 }),
7
+ (r == null ? void 0 : r.webLink) && /* @__PURE__ */ b(h, { href: r == null ? void 0 : r.webLink.url, target: "_blank", "data-a": "web-link", children: [
7
8
  r == null ? void 0 : r.webLink.label,
8
9
  /* @__PURE__ */ l(c, { name: "icon-external-link" })
9
10
  ] })
10
11
  ] });
11
12
  export {
12
- p as InsightDetails
13
+ x as InsightDetails
13
14
  };
@@ -1,3 +1,9 @@
1
1
  export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
2
  export declare const WebLinkBtn: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
3
- export declare const WebLinkIcon: any;
3
+ export declare const WebLinkIcon: {
4
+ __wyw_meta: unknown;
5
+ } & import('react').FC<{
6
+ name: keyof typeof import('../../../icons').icons;
7
+ style?: React.CSSProperties;
8
+ className?: string;
9
+ }>;