@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,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export declare const AppContext: import("react").Context<{
4
- sdk: StreamLayerSDK | null;
5
- }>;
6
- export declare const useAppContext: () => {
7
- sdk: StreamLayerSDK | null;
8
- };
@@ -1,19 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { styled as i } from "@linaria/react";
3
- import { OnboardingInviteCard as n } from "../../../../gamification/onboarding/slides/onboarding-invite-card/index.js";
4
- const r = /* @__PURE__ */ i("div")({
5
- name: "InviteFriendsContainer",
6
- class: "ibtkwty",
7
- propsAsIs: !1
8
- }), a = ({
9
- deepLink: e
10
- }) => /* @__PURE__ */ t(r, {
11
- children: /* @__PURE__ */ t(n, {
12
- inviteLink: e,
13
- inviteCardTitle: "It’s More Fun With Friends",
14
- inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
15
- })
16
- });
17
- export {
18
- a as Friends
19
- };
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- import { Overlays } from '..';
4
- import { ButtonProps } from '../../../navigation/button';
5
- export declare const SDKNavigation: React.FC<{
6
- customOverlays: Overlays;
7
- activeButton?: ButtonProps['id'];
8
- sdk: StreamLayerSDK;
9
- }>;
@@ -1,30 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useStore as s } from "@nanostores/react";
3
- import { useMemo as e } from "react";
4
- import { AvailableFeatures as d } from "@streamlayer/sdk-web-features";
5
- import { Navigation as v } from "../../../navigation/index.js";
6
- import { Button as b } from "../../../navigation/button/index.js";
7
- const x = ({ customOverlays: a, activeButton: c, sdk: i }) => {
8
- const t = s(i.sdkStore.organizationSettings), r = s(i.sdkStore.streamSettings), p = e(() => {
9
- const o = (r == null ? void 0 : r.data) || (t == null ? void 0 : t.data);
10
- return o != null && o.overlays ? o.overlays : [];
11
- }, [t, r]), m = e(
12
- () => [
13
- ...p.filter(({ enableSdkButton: o }) => o).map((o) => ({
14
- id: o.type,
15
- onClick: () => i.openFeature(o.type),
16
- disabled: !(o.type in d),
17
- label: o.name,
18
- icon: /* @__PURE__ */ n("img", { src: o.icon, alt: "" }),
19
- /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
20
- position: o.position * 10
21
- })),
22
- ...Object.values(a).map(({ button: o }) => o)
23
- ].sort((o, l) => o.position - l.position),
24
- [p, i, a]
25
- );
26
- return /* @__PURE__ */ n(v, { children: m.map((o) => /* @__PURE__ */ n(b, { ...o, active: o.id === c })) });
27
- };
28
- export {
29
- x as SDKNavigation
30
- };
@@ -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,50 +0,0 @@
1
- import { styled as s } from "@linaria/react";
2
- import { SvgIcon as o } from "../../../../../icons/index.js";
3
- const c = /* @__PURE__ */ s("div")({
4
- name: "Container",
5
- class: "cy1ghlr",
6
- propsAsIs: !1
7
- }), a = /* @__PURE__ */ s("div")({
8
- name: "CloseIconWrap",
9
- class: "cg5f18y",
10
- propsAsIs: !1
11
- }), n = () => o, l = /* @__PURE__ */ s(n())({
12
- name: "CloseIcon",
13
- class: "c19va0ky",
14
- propsAsIs: !0
15
- }), p = /* @__PURE__ */ s("div")({
16
- name: "Title",
17
- class: "tnfu29o",
18
- propsAsIs: !1
19
- }), r = /* @__PURE__ */ s("img")({
20
- name: "SponsorLogo",
21
- class: "svw1c58",
22
- propsAsIs: !1
23
- }), i = /* @__PURE__ */ s("div")({
24
- name: "PresentsTitle",
25
- class: "pqfs3yj",
26
- propsAsIs: !1
27
- }), f = /* @__PURE__ */ s("div")({
28
- name: "Subtitle",
29
- class: "s1fma09t",
30
- propsAsIs: !1
31
- }), m = /* @__PURE__ */ s("div")({
32
- name: "Description",
33
- class: "dcghfqc",
34
- propsAsIs: !1
35
- }), I = /* @__PURE__ */ s("button")({
36
- name: "ActionButton",
37
- class: "a1v24usc",
38
- propsAsIs: !1
39
- });
40
- export {
41
- I as ActionButton,
42
- l as CloseIcon,
43
- a as CloseIconWrap,
44
- c as Container,
45
- m as Description,
46
- i as PresentsTitle,
47
- r as SponsorLogo,
48
- f as Subtitle,
49
- p as Title
50
- };
@@ -1,172 +0,0 @@
1
- import { jsx as n, jsxs as x, 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 E, useState as A, useMemo as _, useLayoutEffect as G, useEffect as M } from "react";
5
- import { FeatureType as P } from "@streamlayer/sdk-web-types";
6
- import { useImagesPreload as R } from "../../../useImagesPreload.js";
7
- import { scrollIntoAppView as V } from "../../../useSdkScroll.js";
8
- import { OnboardingUI as W } from "../../../../gamification/onboarding/index.js";
9
- import { ModalPortal as $ } from "../../../../modal/index.js";
10
- import { ShowIn as j } from "../../../../show-in/index.js";
11
- import { m as O } from "../../../../../mastersLogoSolid-B4Dz-vm1.js";
12
- import { Onboarding as k } 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__ */ x(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
- }], q = /* @__PURE__ */ S("div")({
32
- name: "OnboardingContainer",
33
- class: "o1s8kvh4",
34
- propsAsIs: !1
35
- }), z = () => j, D = /* @__PURE__ */ S(z())({
36
- name: "OnboardingNotificationContainer",
37
- class: "o1b0248i",
38
- propsAsIs: !0
39
- }), L = /* @__PURE__ */ S("div")({
40
- name: "InnerContainer",
41
- class: "ii6o0e",
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 M(() => {
61
- const t = d.$store.subscribe((p) => {
62
- p && I(p.data);
63
- });
64
- return () => {
65
- t();
66
- };
67
- }, [d.$store]), /* @__PURE__ */ n(q, {
68
- children: /* @__PURE__ */ n(W, {
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 = E(null), e = r.data.onboarding, [I, g] = A(e == null ? void 0 : e.instantOpen), a = d.getFeature(P.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 = O), G(() => {
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
- } = R(h);
125
- return I && a && e && i.current && !C ? /* @__PURE__ */ n($, {
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__ */ x(T, {
139
- children: [/* @__PURE__ */ n(L, {
140
- ref: c,
141
- style: {
142
- position: "absolute",
143
- visibility: "hidden"
144
- },
145
- children: /* @__PURE__ */ n(k, {
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(k, {
157
- close: r.close,
158
- action: () => {
159
- var t;
160
- g(!0), (((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < 0 && V(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,31 +0,0 @@
1
- import { styled as s } from "@linaria/react";
2
- import { Pill as n } from "../../../gamification/question/notification/pill/index.js";
3
- import { ShowIn as o } from "../../../show-in/index.js";
4
- const e = () => o, l = /* @__PURE__ */ s(e())({
5
- name: "Container",
6
- class: "c1rc4ozt",
7
- propsAsIs: !0
8
- }), i = /* @__PURE__ */ s("div")({
9
- name: "InnerContainer",
10
- class: "i1ddmb3r",
11
- propsAsIs: !1
12
- }), t = () => i, m = /* @__PURE__ */ s(t())({
13
- name: "HiddenContainer",
14
- class: "htinjsj",
15
- propsAsIs: !0
16
- }), d = /* @__PURE__ */ s("div")({
17
- name: "NotificationRefreshing",
18
- class: "nig84ar",
19
- propsAsIs: !1
20
- }), r = () => n, f = /* @__PURE__ */ s(r())({
21
- name: "Pill",
22
- class: "pt3kgqi",
23
- propsAsIs: !0
24
- });
25
- export {
26
- l as Container,
27
- m as HiddenContainer,
28
- i as InnerContainer,
29
- d as NotificationRefreshing,
30
- f as Pill
31
- };
@@ -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
- }>;
@@ -1,68 +0,0 @@
1
- import { useStore as u } from "@nanostores/react";
2
- import { useRef as y, useState as d, useCallback as z, useEffect as c } from "react";
3
- import { FeatureType as l } from "@streamlayer/sdk-web-types";
4
- import "./Navigation/MastersNavigation/index.js";
5
- import { FeaturedGroupsButtonId as p } from "../../navigation/button/FeaturedGroups.js";
6
- import { ChannelsButtonId as i } from "../../navigation/button/Channels.js";
7
- const C = (e) => {
8
- const f = y(""), [v, a] = d(!1), E = u(e.status), g = u(e.sdkStore.slStreamId), n = u(e.userId()), m = u(e.getActiveFeature()), o = E === "ready" && !!g.data, [A, r] = d(p), S = z(
9
- (t, s) => {
10
- r(s), t && e.createEventSession(t), s === p ? window.requestAnimationFrame(() => {
11
- e.openFeature(l.GAMES);
12
- }) : e.closeFeature(!1);
13
- },
14
- [e]
15
- );
16
- c(() => {
17
- !o && A === p && (r(i), e.closeFeature(!0));
18
- }, [o, A, e]), c(() => {
19
- m === l.GAMES ? r(p) : m === l.UNSET && r(i);
20
- const t = e.getFeature(l.GAMES);
21
- t && (t.closeQuestion(), t.closeUser());
22
- }, [m, e]);
23
- const F = (t) => {
24
- f.current = t, a(!0), e.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: s, err: I }) => {
25
- if (I) {
26
- S(t, i);
27
- return;
28
- }
29
- if (s) {
30
- e.isUserAuthorized().then((h) => {
31
- if (h) {
32
- S(t, i);
33
- return;
34
- } else
35
- e.disableApp();
36
- });
37
- return;
38
- }
39
- });
40
- }, b = () => {
41
- a(!1), e.disableApp();
42
- };
43
- return c(() => {
44
- if (!n) {
45
- o && (r(i), e.disableApp());
46
- return;
47
- }
48
- if (n && f.current && v) {
49
- e.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
50
- e.createEventSession(f.current);
51
- });
52
- return;
53
- }
54
- }, [n]), c(() => () => {
55
- a(!1), e.disableApp();
56
- }, [a, e]), {
57
- sdkEnabled: v,
58
- sdkReady: o,
59
- activeOverlay: A,
60
- activateAndLoadOverlay: S,
61
- activateEventWithId: F,
62
- deactivate: b,
63
- isLogged: !!n
64
- };
65
- };
66
- export {
67
- C as useMastersApp
68
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export declare const MastersContext: import("react").Context<{
4
- sdk: StreamLayerSDK | null;
5
- }>;
6
- export declare const useMastersContext: () => {
7
- sdk: StreamLayerSDK | null;
8
- };
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SDKContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const SDKScrollContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const SDKContentContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const SDKWhiteContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
6
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
- }>;
8
- export declare const TabsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
- export declare const LeaderboardContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
10
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
- }>;
12
- export declare const TabsNavContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
13
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
- }>;
15
- export declare const UserSummaryContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- import '@streamlayer/sdk-web-anonymous-auth';
4
- export declare const LoginComponent: React.FC<{
5
- sdk: StreamLayerSDK;
6
- }>;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Panel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const Form: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLFormElement> & import("react").FormHTMLAttributes<HTMLFormElement> & Record<never, unknown>>;
4
- export declare const FormTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const FormDescription: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const FormSubmit: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
7
- export declare const FormInputContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Digits: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,39 +0,0 @@
1
- import { styled as s } from "@linaria/react";
2
- const a = /* @__PURE__ */ s("div")({
3
- name: "Panel",
4
- class: "p1liu7r",
5
- propsAsIs: !1
6
- }), e = /* @__PURE__ */ s("form")({
7
- name: "Form",
8
- class: "fhf9n1f",
9
- propsAsIs: !1
10
- }), n = /* @__PURE__ */ s("div")({
11
- name: "FormTitle",
12
- class: "fmf7e3h",
13
- propsAsIs: !1
14
- }), r = /* @__PURE__ */ s("div")({
15
- name: "FormDescription",
16
- class: "fg7be0w",
17
- propsAsIs: !1
18
- }), m = /* @__PURE__ */ s("button")({
19
- name: "FormSubmit",
20
- class: "fvxx8fg",
21
- propsAsIs: !1
22
- }), t = /* @__PURE__ */ s("div")({
23
- name: "FormInputContainer",
24
- class: "f1sfffsg",
25
- propsAsIs: !1
26
- }), f = /* @__PURE__ */ s("div")({
27
- name: "Digits",
28
- class: "d1majgb2",
29
- propsAsIs: !1
30
- });
31
- export {
32
- f as Digits,
33
- e as Form,
34
- r as FormDescription,
35
- t as FormInputContainer,
36
- m as FormSubmit,
37
- n as FormTitle,
38
- a as Panel
39
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes