@streamlayer/react-ui 1.0.0 → 1.1.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 (274) hide show
  1. package/lib/app/app/Advertisement/index.d.ts +8 -0
  2. package/lib/app/app/Advertisement/index.js +38 -0
  3. package/lib/{ui/app/masters → app/app}/Features/FeatureProvider.d.ts +2 -2
  4. package/lib/{ui/app → app}/app/Features/FeatureProvider.js +8 -8
  5. package/lib/{ui/app → app}/app/Features/Gamification/Friends.d.ts +0 -1
  6. package/lib/{ui/app → app}/app/Features/Gamification/Friends.js +2 -2
  7. package/lib/{ui/app → app}/app/Features/Gamification/Leaderboard.d.ts +3 -3
  8. package/lib/{ui/app → app}/app/Features/Gamification/Leaderboard.js +16 -16
  9. package/lib/{ui/app/masters → app/app}/Features/Gamification/Question.d.ts +1 -1
  10. package/lib/app/app/Features/Gamification/Question.js +69 -0
  11. package/lib/{ui/app → app}/app/Features/Gamification/QuestionsList.d.ts +2 -2
  12. package/lib/{ui/app → app}/app/Features/Gamification/QuestionsList.js +1 -1
  13. package/lib/{ui/app/masters → app/app}/Features/Gamification/Tabs.d.ts +3 -3
  14. package/lib/{ui/app → app}/app/Features/Gamification/Tabs.js +12 -12
  15. package/lib/{ui/app → app}/app/Features/Gamification/UserSummary.d.ts +2 -2
  16. package/lib/{ui/app/masters → app/app}/Features/Gamification/UserSummary.js +1 -1
  17. package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.d.ts +1 -0
  18. package/lib/{ui/app → app}/app/Features/Gamification/index.d.ts +3 -3
  19. package/lib/{ui/app/masters → app/app}/Features/Gamification/index.js +29 -29
  20. package/lib/{ui/app/masters → app/app}/Features/index.d.ts +4 -4
  21. package/lib/app/app/Navigation/index.d.ts +6 -0
  22. package/lib/app/app/Navigation/index.js +64 -0
  23. package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.d.ts +2 -2
  24. package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +9 -0
  25. package/lib/app/app/Notifications/Onboarding/Notification/styles.js +50 -0
  26. package/lib/{ui/app/masters → app/app}/Notifications/Onboarding/index.d.ts +4 -4
  27. package/lib/app/app/Notifications/Onboarding/index.js +168 -0
  28. package/lib/{ui/app → app}/app/Notifications/index.d.ts +3 -3
  29. package/lib/{ui/app → app}/app/Notifications/index.js +27 -27
  30. package/lib/app/app/Notifications/styles.d.ts +9 -0
  31. package/lib/app/app/Notifications/styles.js +31 -0
  32. package/lib/{ui/app/app/Navigation → app/app/Points}/index.d.ts +2 -2
  33. package/lib/{ui/app → app}/app/Points/index.js +1 -1
  34. package/lib/{ui/app → app}/app/index.d.ts +2 -2
  35. package/lib/{ui/app → app}/app/index.js +32 -32
  36. package/lib/app/app/story/content.d.ts +3 -0
  37. package/lib/app/app/story/content.js +14 -0
  38. package/lib/app/app/story/index.d.ts +8 -0
  39. package/lib/app/app/story/index.js +96 -0
  40. package/lib/app/app/story/login.d.ts +1 -0
  41. package/lib/app/app/story/login.js +34 -0
  42. package/lib/app/app/story/video.d.ts +8 -0
  43. package/lib/app/app/story/video.js +96 -0
  44. package/lib/{ui/app → app}/app/useApp.d.ts +2 -1
  45. package/lib/{ui/app → app}/app/useApp.js +20 -17
  46. package/lib/app/app/useAppContext.d.ts +8 -0
  47. package/lib/{ui/app → app}/index.d.ts +0 -1
  48. package/lib/app/login/demo.d.ts +5 -0
  49. package/lib/{ui → app}/login/index.d.ts +0 -1
  50. package/lib/{ui → app}/login/index.js +1 -1
  51. package/lib/app/login/styles.d.ts +7 -0
  52. package/lib/app/login/styles.js +39 -0
  53. package/lib/{ui/app/app → app/masters}/Features/FeatureProvider.d.ts +2 -2
  54. package/lib/{ui/app → app}/masters/Features/FeatureProvider.js +8 -8
  55. package/lib/{ui/app → app}/masters/Features/Gamification/Friends.d.ts +0 -1
  56. package/lib/app/masters/Features/Gamification/Friends.js +19 -0
  57. package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.d.ts +3 -3
  58. package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.js +10 -10
  59. package/lib/{ui/app/app → app/masters}/Features/Gamification/Question.d.ts +1 -1
  60. package/lib/{ui/app → app}/masters/Features/Gamification/Question.js +11 -11
  61. package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.d.ts +2 -2
  62. package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.js +1 -1
  63. package/lib/{ui/app/app → app/masters}/Features/Gamification/Tabs.d.ts +3 -3
  64. package/lib/{ui/app → app}/masters/Features/Gamification/Tabs.js +12 -12
  65. package/lib/{ui/app → app}/masters/Features/Gamification/UserSummary.d.ts +2 -2
  66. package/lib/{ui/app/app → app/masters}/Features/Gamification/UserSummary.js +1 -1
  67. package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.d.ts +1 -0
  68. package/lib/{ui/app → app}/masters/Features/Gamification/index.d.ts +3 -3
  69. package/lib/app/masters/Features/Gamification/index.js +88 -0
  70. package/lib/{ui/app/app → app/masters}/Features/index.d.ts +4 -4
  71. package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.d.ts +5 -5
  72. package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.js +5 -5
  73. package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
  74. package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +9 -0
  75. package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/Notification/styles.js +16 -16
  76. package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/index.d.ts +4 -4
  77. package/lib/{mastersLogoSolid-B4Dz-vm1.js → app/masters/Notifications/Onboarding/index.js} +166 -2
  78. package/lib/{ui/app → app}/masters/Notifications/index.d.ts +3 -3
  79. package/lib/{ui/app → app}/masters/Notifications/index.js +48 -47
  80. package/lib/app/masters/Notifications/styles.d.ts +9 -0
  81. package/lib/{ui/app/app → app/masters}/Notifications/styles.js +10 -10
  82. package/lib/app/masters/Points/index.d.ts +5 -0
  83. package/lib/{ui/app → app}/masters/Points/index.js +1 -1
  84. package/lib/{ui/app → app}/masters/masters.d.ts +3 -3
  85. package/lib/{ui/app → app}/masters/masters.js +20 -20
  86. package/lib/{ui/app → app}/masters/useMastersApp.d.ts +2 -1
  87. package/lib/app/masters/useMastersApp.js +71 -0
  88. package/lib/app/masters/useMastersContext.d.ts +8 -0
  89. package/lib/app/styles.d.ts +20 -0
  90. package/lib/{ui/app → app}/styles.js +13 -13
  91. package/lib/{ui/app → app}/useClipboardCopy.d.ts +3 -3
  92. package/lib/{ui/app → app}/useClipboardCopy.js +2 -2
  93. package/lib/{ui/app → app}/useSdkFeature.d.ts +2 -1
  94. package/lib/{ui/app → app}/useSdkResponsive.d.ts +3 -1
  95. package/lib/{ui/app → app}/useSdkResponsive.js +2 -2
  96. package/lib/{ui/app → app}/useSdkScroll.d.ts +3 -2
  97. package/lib/{ui/app → app}/useSdkScroll.js +2 -2
  98. package/lib/assets/style.css +1 -1
  99. package/lib/hooks/showIn.js +1 -1
  100. package/lib/{index-Bicco-Aq.js → index-B1QdimmR.js} +7737 -8219
  101. package/lib/index.d.ts +1 -1
  102. package/lib/index.js +1 -1
  103. package/lib/ui/advertisement/banner/index.d.ts +6 -0
  104. package/lib/ui/advertisement/banner/index.js +27 -0
  105. package/lib/ui/advertisement/index.d.ts +9 -0
  106. package/lib/ui/advertisement/index.js +31 -0
  107. package/lib/ui/advertisement/mock.d.ts +3 -0
  108. package/lib/ui/advertisement/mock.js +33 -0
  109. package/lib/ui/advertisement/overlay/index.d.ts +5 -0
  110. package/lib/ui/advertisement/overlay/index.js +21 -0
  111. package/lib/ui/advertisement/sidebar/index.d.ts +6 -0
  112. package/lib/ui/advertisement/sidebar/index.js +23 -0
  113. package/lib/ui/animated-counter/index.d.ts +1 -1
  114. package/lib/ui/button/index.d.ts +0 -1
  115. package/lib/ui/button/styles.d.ts +2 -3
  116. package/lib/ui/gamification/constants.d.ts +1 -0
  117. package/lib/ui/gamification/copyNotification/index.d.ts +0 -1
  118. package/lib/ui/gamification/copyNotification/styles.d.ts +3 -4
  119. package/lib/ui/gamification/detail/header/index.d.ts +1 -1
  120. package/lib/ui/gamification/detail/header/styles.d.ts +4 -5
  121. package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -1
  122. package/lib/ui/gamification/detail/sponsor/index.js +13 -7
  123. package/lib/ui/gamification/insight/index.d.ts +1 -1
  124. package/lib/ui/gamification/insight/styles.d.ts +8 -9
  125. package/lib/ui/gamification/insight-list/index.d.ts +1 -1
  126. package/lib/ui/gamification/insight-list/styles.d.ts +2 -3
  127. package/lib/ui/gamification/invite-link/index.d.ts +0 -1
  128. package/lib/ui/gamification/invite-link/index.js +13 -13
  129. package/lib/ui/gamification/invite-link/styles.d.ts +5 -6
  130. package/lib/ui/gamification/invite-link/styles.js +11 -11
  131. package/lib/ui/gamification/leaderboard/index.d.ts +1 -1
  132. package/lib/ui/gamification/leaderboard/list-item/index.d.ts +2 -2
  133. package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -8
  134. package/lib/ui/gamification/leaderboard/static.d.ts +3 -3
  135. package/lib/ui/gamification/leaderboard/styles.d.ts +1 -2
  136. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  137. package/lib/ui/gamification/onboarding/index.d.ts +3 -3
  138. package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +0 -1
  139. package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -6
  140. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +1 -0
  141. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +10 -11
  142. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +1 -1
  143. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +6 -6
  144. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +9 -10
  145. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +1 -1
  146. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.d.ts +8 -9
  147. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +0 -1
  148. package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +4 -5
  149. package/lib/ui/gamification/onboarding/styles.d.ts +5 -6
  150. package/lib/ui/gamification/points/index.d.ts +0 -1
  151. package/lib/ui/gamification/points/styles.d.ts +5 -6
  152. package/lib/ui/gamification/question/index.d.ts +2 -2
  153. package/lib/ui/gamification/question/index.js +26 -26
  154. package/lib/ui/gamification/question/insight/index.d.ts +1 -1
  155. package/lib/ui/gamification/question/insight/styles.d.ts +2 -3
  156. package/lib/ui/gamification/question/list/index.d.ts +2 -2
  157. package/lib/ui/gamification/question/list/styles.d.ts +1 -2
  158. package/lib/ui/gamification/question/notification/index.d.ts +2 -2
  159. package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
  160. package/lib/ui/gamification/question/notification/insight/styles.d.ts +7 -8
  161. package/lib/ui/gamification/question/notification/pill/index.d.ts +0 -1
  162. package/lib/ui/gamification/question/notification/pill/styles.d.ts +3 -4
  163. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.d.ts +0 -1
  164. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +58 -31
  165. package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -2
  166. package/lib/ui/gamification/question/notification/prediction-result/index.js +55 -54
  167. package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +11 -10
  168. package/lib/ui/gamification/question/notification/styles.d.ts +6 -7
  169. package/lib/ui/gamification/question/notification/tweet/index.d.ts +3 -3
  170. package/lib/ui/gamification/question/notification/tweet/styles.d.ts +4 -5
  171. package/lib/ui/gamification/question/styles.d.ts +14 -14
  172. package/lib/ui/gamification/question/styles.js +48 -43
  173. package/lib/ui/gamification/question/twitter/index.d.ts +2 -2
  174. package/lib/ui/gamification/question/twitter/styles.d.ts +3 -4
  175. package/lib/ui/gamification/tabs/index.d.ts +0 -1
  176. package/lib/ui/gamification/tabs/styles.d.ts +4 -5
  177. package/lib/ui/gamification/user-statistics/components/rank/index.d.ts +0 -1
  178. package/lib/ui/gamification/user-statistics/components/rank/styles.d.ts +3 -4
  179. package/lib/ui/gamification/user-statistics/components/statistic/index.d.ts +0 -1
  180. package/lib/ui/gamification/user-statistics/components/statistic/styles.d.ts +3 -4
  181. package/lib/ui/gamification/user-statistics/index.d.ts +0 -1
  182. package/lib/ui/gamification/user-statistics/styles.d.ts +17 -18
  183. package/lib/ui/gamification/vote/alert/index.d.ts +2 -1
  184. package/lib/ui/gamification/vote/alert/styles.d.ts +3 -4
  185. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
  186. package/lib/ui/gamification/vote/feedback/styles.d.ts +8 -9
  187. package/lib/ui/gamification/vote/index.d.ts +1 -1
  188. package/lib/ui/gamification/vote/insight-details/index.d.ts +1 -1
  189. package/lib/ui/gamification/vote/insight-details/styles.d.ts +2 -3
  190. package/lib/ui/gamification/vote/styles.d.ts +4 -5
  191. package/lib/ui/gamification/vote/styles.js +1 -1
  192. package/lib/ui/gamification/vote/twitter-details/index.d.ts +2 -2
  193. package/lib/ui/gamification/vote/twitter-details/styles.d.ts +2 -3
  194. package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
  195. package/lib/ui/gamification/vote/vote-option/styles.d.ts +19 -16
  196. package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
  197. package/lib/ui/gamification/vote/win-bar/styles.d.ts +6 -7
  198. package/lib/ui/icons/index.d.ts +1 -1
  199. package/lib/ui/icons/index.js +107 -47
  200. package/lib/ui/lottie/index.d.ts +0 -1
  201. package/lib/ui/modal/index.d.ts +0 -1
  202. package/lib/ui/modal/index.js +1 -1
  203. package/lib/ui/navigation/button/Channels.d.ts +1 -1
  204. package/lib/ui/navigation/button/FeaturedGroups.d.ts +1 -1
  205. package/lib/ui/navigation/button/LeaderBoard.d.ts +1 -1
  206. package/lib/ui/navigation/button/index.d.ts +1 -1
  207. package/lib/ui/navigation/button/styles.d.ts +6 -7
  208. package/lib/ui/navigation/index.d.ts +1 -1
  209. package/lib/ui/navigation/masters.d.ts +6 -5
  210. package/lib/ui/questions/insight/index.d.ts +1 -1
  211. package/lib/ui/questions/insight/styles.d.ts +6 -7
  212. package/lib/ui/questions/twitter/account/index.d.ts +0 -1
  213. package/lib/ui/questions/twitter/account/styles.d.ts +6 -7
  214. package/lib/ui/questions/twitter/index.d.ts +1 -1
  215. package/lib/ui/questions/twitter/styles.d.ts +14 -11
  216. package/lib/ui/show-in/index.d.ts +2 -1
  217. package/lib/ui/skeleton/index.d.ts +0 -1
  218. package/lib/ui/skeleton/styles.d.ts +1 -2
  219. package/lib/ui/slide-in/index.d.ts +11 -0
  220. package/lib/ui/slide-in/index.js +29 -0
  221. package/lib/ui/theme/ThemeColors.js +1 -1
  222. package/lib/ui/theme/breakpoints.d.ts +1 -0
  223. package/lib/ui/theme/constants.d.ts +12 -59
  224. package/lib/ui/theme/constants.js +26 -55
  225. package/lib/ui/theme/index.d.ts +0 -1
  226. package/lib/ui/theme/masters-theme.d.ts +4 -24
  227. package/lib/ui/theme/masters-theme.js +26 -58
  228. package/lib/ui/theme/masters.d.ts +0 -1
  229. package/lib/ui/theme/theme.d.ts +1 -1
  230. package/lib/ui/theme/theme.js +3 -3
  231. package/lib/ui/timer/index.d.ts +3 -2
  232. package/lib/ui/timer/index.js +32 -32
  233. package/lib/ui/video-player/index.d.ts +0 -1
  234. package/lib/ui/video-player/styles.d.ts +5 -6
  235. package/lib/utils/debug/storage.js +1 -1
  236. package/lib/utils/storage.js +1 -1
  237. package/package.json +46 -41
  238. package/lib/styles_z07sl8-l0sNRNKZ.js +0 -1
  239. package/lib/ui/app/app/Features/Gamification/Question.js +0 -69
  240. package/lib/ui/app/app/Features/Gamification/index.js +0 -88
  241. package/lib/ui/app/app/Navigation/index.js +0 -42
  242. package/lib/ui/app/app/Notifications/Onboarding/Notification/styles.d.ts +0 -10
  243. package/lib/ui/app/app/Notifications/Onboarding/index.js +0 -172
  244. package/lib/ui/app/app/Notifications/styles.d.ts +0 -8
  245. package/lib/ui/app/app/Points/index.d.ts +0 -5
  246. package/lib/ui/app/app/useAppContext.d.ts +0 -8
  247. package/lib/ui/app/masters/Features/Gamification/Friends.js +0 -19
  248. package/lib/ui/app/masters/Navigation/index.d.ts +0 -9
  249. package/lib/ui/app/masters/Navigation/index.js +0 -30
  250. package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.d.ts +0 -10
  251. package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.js +0 -50
  252. package/lib/ui/app/masters/Notifications/Onboarding/index.js +0 -172
  253. package/lib/ui/app/masters/Notifications/styles.d.ts +0 -8
  254. package/lib/ui/app/masters/Notifications/styles.js +0 -31
  255. package/lib/ui/app/masters/Points/index.d.ts +0 -5
  256. package/lib/ui/app/masters/useMastersApp.js +0 -68
  257. package/lib/ui/app/masters/useMastersContext.d.ts +0 -8
  258. package/lib/ui/app/styles.d.ts +0 -15
  259. package/lib/ui/login/demo.d.ts +0 -6
  260. package/lib/ui/login/styles.d.ts +0 -8
  261. package/lib/ui/login/styles.js +0 -39
  262. /package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.js +0 -0
  263. /package/lib/{ui/app → app}/app/Features/index.js +0 -0
  264. /package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.js +0 -0
  265. /package/lib/{ui/app → app}/app/useAppContext.js +0 -0
  266. /package/lib/{ui/app → app}/index.js +0 -0
  267. /package/lib/{ui → app}/login/demo.js +0 -0
  268. /package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.js +0 -0
  269. /package/lib/{ui/app → app}/masters/Features/index.js +0 -0
  270. /package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.js +0 -0
  271. /package/lib/{ui/app → app}/masters/useMastersContext.js +0 -0
  272. /package/lib/{ui/app → app}/useImagesPreload.d.ts +0 -0
  273. /package/lib/{ui/app → app}/useImagesPreload.js +0 -0
  274. /package/lib/{ui/app → app}/useSdkFeature.js +0 -0
@@ -1,45 +1,45 @@
1
- import { jsx as R } from "react/jsx-runtime";
2
- import { styled as _ } from "@linaria/react";
3
- import { useState as c, useEffect as a, useCallback as n } from "react";
4
- import { CountdownCircleTimer as N } from "react-countdown-circle-timer";
5
- import { COLORS as t } from "../theme/constants.js";
6
- const D = [t.PRIMARY_GREEN1, t.SECONDARY_RED1, t.SECONDARY_RED1, t.NEUTRALS_GRAY3], T = [10, 10, 1, 0], Y = /* @__PURE__ */ _("div")({
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { styled as M } from "@linaria/react";
3
+ import { useState as c, useEffect as _, useCallback as n } from "react";
4
+ import { CountdownCircleTimer as h } from "react-countdown-circle-timer";
5
+ import { TIMER_COLORS as p, TIMER_GREEN as E, TIMER_RED as S, TIMER_GRAY as g } from "../theme/constants.js";
6
+ const k = [10, 10, 1, 0], O = /* @__PURE__ */ M("div")({
7
7
  name: "RemainingTime",
8
8
  class: "r165427",
9
9
  propsAsIs: !1
10
- }), h = t.SECONDARY_GREEN6, l = t.SECONDARY_RED3, m = t.NEUTRALS_GRAY3, G = ({
10
+ }), u = E, l = S, m = g, L = ({
11
11
  isPlaying: i = !0,
12
- duration: o = 30,
13
- onTimerExpired: e
12
+ duration: t = 30,
13
+ onTimerExpired: s
14
14
  }) => {
15
- const [C, s] = c(o > 10 ? h : l), [E, S] = c(2);
16
- a(() => {
17
- o === 0 && (S(0), s(m));
15
+ const [R, o] = c(t > 10 ? u : l), [f, a] = c(2);
16
+ _(() => {
17
+ t === 0 && (a(0), o(m));
18
+ }, [t]);
19
+ const C = ({
20
+ remainingTime: e
21
+ }) => /* @__PURE__ */ r(O, {
22
+ children: t === 0 ? 0 : e
23
+ }), T = n(() => {
24
+ s == null || s(), o(m);
25
+ }, [s, o]), I = n((e) => {
26
+ e === 10 && o(l);
18
27
  }, [o]);
19
- const f = ({
20
- remainingTime: r
21
- }) => /* @__PURE__ */ R(Y, {
22
- children: o === 0 ? 0 : r
23
- }), A = n(() => {
24
- e == null || e(), s(m);
25
- }, [e, s]), O = n((r) => {
26
- r === 10 && s(l);
27
- }, [s]);
28
- return /* @__PURE__ */ R(N, {
28
+ return /* @__PURE__ */ r(h, {
29
29
  isPlaying: i,
30
- duration: o,
31
- colors: D,
32
- colorsTime: T,
30
+ duration: t,
31
+ colors: p,
32
+ colorsTime: k,
33
33
  size: 32,
34
- strokeWidth: E,
34
+ strokeWidth: f,
35
35
  trailStrokeWidth: 2,
36
- trailColor: C,
37
- onComplete: A,
38
- onUpdate: O,
39
- children: f
36
+ trailColor: R,
37
+ onComplete: T,
38
+ onUpdate: I,
39
+ children: C
40
40
  });
41
41
  };
42
42
  export {
43
- Y as RemainingTime,
44
- G as Timer
43
+ O as RemainingTime,
44
+ L as Timer
45
45
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type ControlVideoProps = {
3
2
  muted: boolean;
4
3
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const Player: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLVideoElement> & import("react").VideoHTMLAttributes<HTMLVideoElement> & Record<never, unknown>>;
4
- export declare const Poster: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
- export declare const Control: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const ToggleIconPause: import("@linaria/core").LinariaClassName;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const Player: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLVideoElement> & import('react').VideoHTMLAttributes<HTMLVideoElement> & Record<never, unknown>>;
3
+ export declare const Poster: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
4
+ export declare const Control: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const ToggleIconPause: import('@linaria/core').LinariaClassName;
@@ -1,6 +1,6 @@
1
1
  var n = Object.defineProperty;
2
2
  var i = (s, r, e) => r in s ? n(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
- var t = (s, r, e) => (i(s, typeof r != "symbol" ? r + "" : r, e), e);
3
+ var t = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { Storage as h } from "@streamlayer/sdk-web-storage";
5
5
  class d extends h {
6
6
  constructor() {
@@ -1,6 +1,6 @@
1
1
  var n = Object.defineProperty;
2
2
  var i = (s, r, e) => r in s ? n(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
- var t = (s, r, e) => (i(s, typeof r != "symbol" ? r + "" : r, e), e);
3
+ var t = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { Storage as h } from "@streamlayer/sdk-web-storage";
5
5
  class d extends h {
6
6
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -11,19 +11,24 @@
11
11
  "types": "./lib/index.d.ts"
12
12
  },
13
13
  "./masters": {
14
- "import": "./lib/ui/app/masters/masters.js",
15
- "default": "./lib/ui/app/masters/masters.js",
16
- "types": "./lib/ui/app/masters/masters.d.ts"
14
+ "import": "./lib/app/masters/masters.js",
15
+ "default": "./lib/app/masters/masters.js",
16
+ "types": "./lib/app/masters/masters.d.ts"
17
17
  },
18
18
  "./mastersPoints": {
19
- "import": "./lib/ui/app/masters/Points/index.js",
20
- "default": "./lib/ui/app/masters/Points/index.js",
21
- "types": "./lib/ui/app/masters/Points/index.d.ts"
19
+ "import": "./lib/app/masters/Points/index.js",
20
+ "default": "./lib/app/masters/Points/index.js",
21
+ "types": "./lib/app/masters/Points/index.d.ts"
22
22
  },
23
23
  "./points": {
24
- "import": "./lib/ui/app/app/Points/index.js",
25
- "default": "./lib/ui/app/app/Points/index.js",
26
- "types": "./lib/ui/app/app/Points/index.d.ts"
24
+ "import": "./lib/app/app/Points/index.js",
25
+ "default": "./lib/app/app/Points/index.js",
26
+ "types": "./lib/app/app/Points/index.d.ts"
27
+ },
28
+ "./advertisement": {
29
+ "import": "./lib/app/app/Advertisement/index.js",
30
+ "default": "./lib/app/app/Advertisement/index.js",
31
+ "types": "./lib/app/app/Advertisement/index.d.ts"
27
32
  },
28
33
  "./*": {
29
34
  "import": "./lib/*/index.js",
@@ -40,8 +45,8 @@
40
45
  "package.json"
41
46
  ],
42
47
  "peerDependencies": {
43
- "@lottiefiles/react-lottie-player": "^3.5.3",
44
- "@streamlayer/sl-eslib": "^5.85.0",
48
+ "@lottiefiles/react-lottie-player": "^3.5.4",
49
+ "@streamlayer/sl-eslib": "^5.104.1",
45
50
  "@types/lodash.throttle": "^4.1.9",
46
51
  "lodash.throttle": "^4.1.1",
47
52
  "nanoid": "3.3.7",
@@ -49,18 +54,18 @@
49
54
  "react-virtualized-auto-sizer": "^1.0.24",
50
55
  "react-window": "^1.8.10",
51
56
  "react-window-infinite-loader": "^1.0.9",
52
- "@streamlayer/feature-gamification": "^1.0.0",
53
- "@streamlayer/sdk-web-analytics": "^1.0.0",
54
- "@streamlayer/sdk-web": "^1.0.0",
55
- "@streamlayer/sdk-web-api": "^1.0.0",
56
- "@streamlayer/sdk-web-core": "^1.0.0",
57
- "@streamlayer/sdk-web-anonymous-auth": "^1.0.0",
58
- "@streamlayer/sdk-web-features": "^1.0.0",
59
- "@streamlayer/sdk-web-interfaces": "^1.0.0",
60
- "@streamlayer/sdk-web-logger": "^1.0.0",
61
- "@streamlayer/sdk-web-notifications": "^1.0.0",
62
- "@streamlayer/sdk-web-storage": "^1.0.0",
63
- "@streamlayer/sdk-web-types": "^1.0.0"
57
+ "@streamlayer/feature-gamification": "^1.1.0",
58
+ "@streamlayer/sdk-web": "^1.0.1",
59
+ "@streamlayer/sdk-web-analytics": "^1.0.1",
60
+ "@streamlayer/sdk-web-anonymous-auth": "^1.0.1",
61
+ "@streamlayer/sdk-web-api": "^1.1.0",
62
+ "@streamlayer/sdk-web-core": "^1.0.1",
63
+ "@streamlayer/sdk-web-features": "^1.0.1",
64
+ "@streamlayer/sdk-web-interfaces": "^1.0.1",
65
+ "@streamlayer/sdk-web-logger": "^1.0.1",
66
+ "@streamlayer/sdk-web-notifications": "^1.0.1",
67
+ "@streamlayer/sdk-web-storage": "^1.0.1",
68
+ "@streamlayer/sdk-web-types": "^1.1.0"
64
69
  },
65
70
  "nx": {
66
71
  "implicitDependencies": [
@@ -73,33 +78,33 @@
73
78
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
74
79
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
75
80
  "@linaria/babel-preset": "^5.0.4",
76
- "@linaria/core": "^6.0.0",
77
- "@linaria/react": "^6.0.0",
81
+ "@linaria/core": "^6.2.0",
82
+ "@linaria/react": "^6.2.1",
78
83
  "@nanostores/react": "^0.7.2",
79
- "@storybook/addon-docs": "^8.0.4",
80
- "@storybook/addon-viewport": "^8.0.4",
81
- "@storybook/blocks": "^8.0.4",
82
- "@storybook/jest": "~0.2.3",
83
- "@storybook/react": "^8.0.4",
84
- "@storybook/testing-library": "~0.2.2",
84
+ "@storybook/addon-docs": "^8.1.11",
85
+ "@storybook/addon-viewport": "^8.1.11",
86
+ "@storybook/blocks": "^8.1.11",
87
+ "@storybook/jest": "^0.2.3",
88
+ "@storybook/react": "^8.1.11",
89
+ "@storybook/testing-library": "^0.2.2",
85
90
  "@types/react-infinite-scroller": "^1.2.5",
86
91
  "@types/react-window": "^1.8.8",
87
92
  "@types/react-window-infinite-loader": "^1.0.9",
88
- "@wyw-in-js/vite": "^0.2.2",
93
+ "@wyw-in-js/vite": "^0.5.3",
89
94
  "esbuild-plugin-babel": "^0.2.3",
90
- "glob": "^10.3.10",
91
- "react": "18.2.0",
95
+ "glob": "^10.4.2",
96
+ "react": "18.3.1",
92
97
  "react-auth-code-input": "^3.2.1",
93
98
  "react-countdown-circle-timer": "^3.2.1",
94
- "react-countup": "^6.5.0",
95
- "react-phone-number-input": "^3.3.9",
99
+ "react-countup": "^6.5.3",
100
+ "react-phone-number-input": "^3.4.3",
96
101
  "rollup-plugin-node-polyfills": "^0.2.1",
97
- "tslib": "^2.6.2",
98
- "vite": "5.2.6",
99
- "vite-plugin-node-polyfills": "^0.21.0",
102
+ "tslib": "^2.6.3",
103
+ "vite": "5.3.2",
104
+ "vite-plugin-node-polyfills": "^0.22.0",
100
105
  "vite-plugin-svgr": "^4.2.0",
101
106
  "vite-svg-loader": "^5.1.0",
102
107
  "vite-tsconfig-paths": "^4.3.2",
103
- "@streamlayer/react": "^1.0.0"
108
+ "@streamlayer/react": "^1.1.0"
104
109
  }
105
110
  }
@@ -1 +0,0 @@
1
-
@@ -1,69 +0,0 @@
1
- import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
- import { styled as l } from "@linaria/react";
3
- import { useStore as n } from "@nanostores/react";
4
- import { QuestionType as a } from "@streamlayer/sdk-web-types";
5
- import { useAppContext as m } from "../../useAppContext.js";
6
- import { VoteHeader as c } from "../../../../gamification/detail/header/index.js";
7
- import { Sponsor as p } from "../../../../gamification/detail/sponsor/index.js";
8
- import { Vote as f, VoteSkeleton as b } from "../../../../gamification/vote/index.js";
9
- import { InsightDetails as y } from "../../../../gamification/vote/insight-details/index.js";
10
- import { TwitterDetails as V } from "../../../../gamification/vote/twitter-details/index.js";
11
- const x = /* @__PURE__ */ l("div")({
12
- name: "QuestionContainer",
13
- class: "qfnqmpg",
14
- propsAsIs: !1
15
- }), d = ({
16
- openedQuestion: t
17
- }) => {
18
- var s, o;
19
- const {
20
- sdk: r
21
- } = m();
22
- return ((s = t == null ? void 0 : t.attributes) == null ? void 0 : s.attributes.case) === "insight" ? /* @__PURE__ */ e(y, {
23
- ...t.attributes.attributes.value,
24
- controlVideo: r == null ? void 0 : r.controlVideoPlayer
25
- }) : ((o = t == null ? void 0 : t.attributes) == null ? void 0 : o.attributes.case) === "tweet" ? /* @__PURE__ */ e(V, {
26
- ...t.attributes.attributes.value,
27
- controlVideo: r == null ? void 0 : r.controlVideoPlayer
28
- }) : null;
29
- }, h = ({
30
- extendedQuestion: t,
31
- vote: r,
32
- close: s
33
- }) => {
34
- const {
35
- loading: o,
36
- data: i
37
- } = t;
38
- return i ? /* @__PURE__ */ e(f, {
39
- vote: r,
40
- close: s,
41
- openedQuestion: i,
42
- isLoading: !!o
43
- }) : /* @__PURE__ */ e(b, {});
44
- }, j = ({
45
- gamification: t
46
- }) => {
47
- var i;
48
- const r = n(t.openedQuestion.$store), s = n(t.openedQuestion.$extendedStore);
49
- if (!r)
50
- return null;
51
- const o = r.type;
52
- return /* @__PURE__ */ u(x, {
53
- children: [/* @__PURE__ */ e(c, {
54
- close: t.closeQuestion,
55
- type: ((i = r.attributes) == null ? void 0 : i.type) || a.UNSET
56
- }), o === "question" && /* @__PURE__ */ e(h, {
57
- vote: t.submitAnswer,
58
- close: t.closeQuestion,
59
- extendedQuestion: s
60
- }), o !== "question" && /* @__PURE__ */ e(d, {
61
- openedQuestion: r
62
- }), /* @__PURE__ */ e(p, {
63
- sponsorLogo: ""
64
- })]
65
- });
66
- };
67
- export {
68
- j as Question
69
- };
@@ -1,88 +0,0 @@
1
- import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
- import { styled as m } from "@linaria/react";
3
- import { useStore as c } from "@nanostores/react";
4
- import { useHideTransition as h } from "../../../../../hooks/showIn.js";
5
- import { SDKWhiteContainer as C } from "../../../styles.js";
6
- import { VoteHeader as k } from "../../../../gamification/detail/header/index.js";
7
- import { UserStatistics as S } from "../../../../gamification/user-statistics/index.js";
8
- import { ModalPortal as U } from "../../../../modal/index.js";
9
- import { ShowIn as y } from "../../../../show-in/index.js";
10
- import { Question as I } from "./Question.js";
11
- import { Tabs as x } from "./Tabs.js";
12
- const O = () => y, p = /* @__PURE__ */ m(O())({
13
- name: "OpenedContainer",
14
- class: "o1o2cpiy",
15
- propsAsIs: !0
16
- }), b = /* @__PURE__ */ m("div")({
17
- name: "UserContainer",
18
- class: "u1ob6f8q",
19
- propsAsIs: !1
20
- }), v = ({
21
- correct: e,
22
- incorrect: r
23
- }) => {
24
- const n = e + r;
25
- return n === 0 ? 0 : Math.round(e / n * 100);
26
- }, q = ({
27
- gamification: e,
28
- scrollStore: r,
29
- className: n,
30
- appNode: i,
31
- scrollNode: s,
32
- responsiveStore: t
33
- }) => /* @__PURE__ */ o(x, {
34
- appNode: i,
35
- scrollStore: r,
36
- scrollNode: s,
37
- className: n,
38
- gamification: e,
39
- responsiveStore: t
40
- }), E = ({
41
- gamification: e,
42
- className: r,
43
- appNode: n,
44
- responsiveStore: i
45
- }) => {
46
- const s = c(e.openedQuestion.$store), t = c(e.openedUser), {
47
- sdkInDesktopView: d
48
- } = c(i, {
49
- keys: ["sdkInDesktopView"]
50
- }), {
51
- hiding: a,
52
- onAnimationEnd: l
53
- } = h();
54
- if (!n.current || !s && !t)
55
- return null;
56
- const u = s ? /* @__PURE__ */ o(p, {
57
- className: r,
58
- hiding: a,
59
- onAnimationEnd: l,
60
- children: /* @__PURE__ */ o(I, {
61
- gamification: e
62
- })
63
- }) : t ? /* @__PURE__ */ o(p, {
64
- className: r,
65
- hiding: a,
66
- onAnimationEnd: l,
67
- children: /* @__PURE__ */ f(b, {
68
- children: [/* @__PURE__ */ o(k, {
69
- label: "Friend's Rank",
70
- close: e.closeUser
71
- }), /* @__PURE__ */ o(C, {
72
- children: /* @__PURE__ */ o(S, {
73
- ...t,
74
- successRate: v(t)
75
- })
76
- })]
77
- })
78
- }) : null;
79
- return /* @__PURE__ */ o(U, {
80
- container: n,
81
- useContainer: !d,
82
- children: u
83
- });
84
- };
85
- export {
86
- q as GamificationOverlay,
87
- E as GamificationOverlayStandalone
88
- };
@@ -1,42 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { styled as l } from "@linaria/react";
3
- import { useStore as s } from "@nanostores/react";
4
- import { useMemo as a } from "react";
5
- import { AvailableFeatures as d } from "@streamlayer/sdk-web-features";
6
- import { Navigation as v } from "../../../navigation/index.js";
7
- import { Button as u } from "../../../navigation/button/index.js";
8
- const y = () => v, f = /* @__PURE__ */ l(y())({
9
- name: "Container",
10
- class: "ckodz37",
11
- propsAsIs: !0
12
- }), B = ({
13
- sdk: t
14
- }) => {
15
- const i = s(t.sdkStore.organizationSettings), r = s(t.sdkStore.streamSettings), p = s(t.getActiveFeature()), e = a(() => {
16
- const o = (r == null ? void 0 : r.data) || (i == null ? void 0 : i.data);
17
- return o != null && o.overlays ? o.overlays : [];
18
- }, [i, r]), c = a(() => [...e.filter(({
19
- enableSdkButton: o
20
- }) => o).map((o) => ({
21
- id: o.type,
22
- onClick: () => t.openFeature(o.type),
23
- disabled: !(o.type in d),
24
- label: o.name,
25
- icon: /* @__PURE__ */ n("img", {
26
- src: o.icon,
27
- alt: ""
28
- }),
29
- /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
30
- position: o.position * 10
31
- }))].sort((o, m) => o.position - m.position), [e, t]);
32
- return /* @__PURE__ */ n(f, {
33
- children: c.map((o) => /* @__PURE__ */ n(u, {
34
- ...o,
35
- icon: void 0,
36
- active: o.id === p
37
- }, o.id))
38
- });
39
- };
40
- export {
41
- B as SDKNavigation
42
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const CloseIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const CloseIcon: any;
5
- export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const SponsorLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
7
- export declare const PresentsTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Subtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
- export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
- export declare const ActionButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
@@ -1,172 +0,0 @@
1
- import { jsx as n, jsxs as k, Fragment as T } from "react/jsx-runtime";
2
- import { styled as S } from "@linaria/react";
3
- import { useStore as F } from "@nanostores/react";
4
- import { useRef as j, useState as A, useMemo as _, useLayoutEffect as z, useEffect as E } from "react";
5
- import { FeatureType as G } from "@streamlayer/sdk-web-types";
6
- import { useImagesPreload as M } from "../../../useImagesPreload.js";
7
- import { scrollIntoAppView as P } from "../../../useSdkScroll.js";
8
- import { OnboardingUI as R } from "../../../../gamification/onboarding/index.js";
9
- import { ModalPortal as V } from "../../../../modal/index.js";
10
- import { ShowIn as W } from "../../../../show-in/index.js";
11
- import { m as $ } from "../../../../../mastersLogoSolid-B4Dz-vm1.js";
12
- import { Onboarding as x } from "./Notification/index.js";
13
- const y = [{
14
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
15
- tagline: "Featured groups+ experience",
16
- headline: /* @__PURE__ */ k(T, {
17
- children: ["Welcome to ", /* @__PURE__ */ n("br", {}), " Featured Groups +"]
18
- })
19
- }, {
20
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
21
- headline: "Get real-time insights"
22
- }, {
23
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
24
- headline: "Predictions, trivia & polls synced to match play"
25
- }, {
26
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
27
- headline: "Win points for every answer you get right"
28
- }, {
29
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
30
- headline: "Compete against friends on the leaderboard"
31
- }], O = /* @__PURE__ */ S("div")({
32
- name: "OnboardingContainer",
33
- class: "o1xcysoz",
34
- propsAsIs: !1
35
- }), q = () => W, D = /* @__PURE__ */ S(q())({
36
- name: "OnboardingNotificationContainer",
37
- class: "oejzp3v",
38
- propsAsIs: !0
39
- }), L = /* @__PURE__ */ S("div")({
40
- name: "InnerContainer",
41
- class: "i134gfua",
42
- propsAsIs: !1
43
- }), U = ({
44
- deepLink: d,
45
- onboardingOpts: r,
46
- notification: o,
47
- gamification: u,
48
- loading: i,
49
- renderToNode: v,
50
- sdk: l
51
- }) => {
52
- var a, h, b, f, C, m, s;
53
- const c = F(u.friends.getStore()), [e, I] = A(void 0), g = _(() => {
54
- var p, w;
55
- const t = l.getInviter();
56
- return t ? (w = (p = c.data) == null ? void 0 : p.find(({
57
- slId: B
58
- }) => B === t)) == null ? void 0 : w.name : "";
59
- }, [c.data, l]);
60
- return E(() => {
61
- const t = d.$store.subscribe((p) => {
62
- p && I(p.data);
63
- });
64
- return () => {
65
- t();
66
- };
67
- }, [d.$store]), /* @__PURE__ */ n(O, {
68
- children: /* @__PURE__ */ n(R, {
69
- loading: i,
70
- renderToNode: v,
71
- rules: [{
72
- label: "Answer as many questions as you like.",
73
- icon: "icon-btn-feature-groups"
74
- }, {
75
- label: "Win points for each correct trivia or prediction answer.",
76
- icon: "icon-thumb-up"
77
- }, {
78
- label: "Top the leader board and best your friends.",
79
- icon: "icon-trophy"
80
- }],
81
- rulesBtnLabel: (a = r.rules) == null ? void 0 : a.buttonLabel,
82
- rulesTitle: (h = r.rules) == null ? void 0 : h.heading,
83
- termsTitle: "Terms and Conditions",
84
- termsText: (b = r.rules) == null ? void 0 : b.terms,
85
- steps: y,
86
- primaryColor: (f = r.inviteCard) == null ? void 0 : f.iconColor,
87
- inviteLink: e,
88
- inviteCardTitle: (C = r.inviteCard) == null ? void 0 : C.heading,
89
- inviteCardSubtext: (m = r.inviteCard) == null ? void 0 : m.subtext,
90
- inviteCardBtnLabel: (s = r.inviteCard) == null ? void 0 : s.buttonLabel,
91
- onClose: () => {
92
- var t;
93
- (t = o.close) == null || t.call(o);
94
- },
95
- gamification: u,
96
- sdk: l,
97
- inviterName: g
98
- })
99
- });
100
- }, se = ({
101
- sdk: d,
102
- notification: r,
103
- saveHeight: o,
104
- style: u,
105
- appNode: i,
106
- sdkInDesktopView: v,
107
- responsiveStore: l
108
- }) => {
109
- var m;
110
- const c = j(null), e = r.data.onboarding, [I, g] = A(e == null ? void 0 : e.instantOpen), a = d.getFeature(G.GAMES), h = _(() => y == null ? void 0 : y.map(({
111
- graphicSrc: s
112
- }) => s), []), {
113
- screen: b
114
- } = F(l, {
115
- keys: ["screen"]
116
- });
117
- (m = e == null ? void 0 : e.titleCard) != null && m.media && (e.titleCard.media.sponsorLogo = $), z(() => {
118
- var s;
119
- o(((s = c.current) == null ? void 0 : s.getBoundingClientRect().height) || 0);
120
- }, [o]);
121
- const {
122
- loading: f,
123
- throttled: C
124
- } = M(h);
125
- return I && a && e && i.current && !C ? /* @__PURE__ */ n(V, {
126
- container: i,
127
- useContainer: !v,
128
- children: /* @__PURE__ */ n(U, {
129
- notification: r,
130
- setOpened: g,
131
- gamification: a,
132
- onboardingOpts: e,
133
- deepLink: a.deepLink,
134
- loading: f,
135
- renderToNode: i,
136
- sdk: d
137
- })
138
- }) : /* @__PURE__ */ k(T, {
139
- children: [/* @__PURE__ */ n(L, {
140
- ref: c,
141
- style: {
142
- position: "absolute",
143
- visibility: "hidden"
144
- },
145
- children: /* @__PURE__ */ n(x, {
146
- close: () => {
147
- },
148
- action: () => {
149
- },
150
- onboarding: e
151
- })
152
- }), /* @__PURE__ */ n(D, {
153
- style: u,
154
- hiding: r.hiding,
155
- children: /* @__PURE__ */ n(L, {
156
- children: /* @__PURE__ */ n(x, {
157
- close: r.close,
158
- action: () => {
159
- var t;
160
- g(!0), (((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < 0 && P(i, b.size, {
161
- behavior: "smooth"
162
- });
163
- },
164
- onboarding: e
165
- })
166
- })
167
- })]
168
- });
169
- };
170
- export {
171
- se as Onboarding
172
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: any;
3
- export declare const InnerContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const HiddenContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
5
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
- }>;
7
- export declare const NotificationRefreshing: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Pill: any;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export declare const StreamLayerSDKPoints: React.FC<{
4
- sdk: StreamLayerSDK;
5
- }>;