@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
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { App } from './ui/app/app';
1
+ export { App } from './app/app';
2
2
  export { StreamLayerThemeProvider } from './ui/theme';
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { App as o } from "./ui/app/app/index.js";
1
+ import { App as o } from "./app/app/index.js";
2
2
  import { StreamLayerThemeProvider as p } from "./ui/theme/index.js";
3
3
  export {
4
4
  o as App,
@@ -0,0 +1,6 @@
1
+ import { PromotionOptions } from '@streamlayer/sdk-web-types';
2
+
3
+ export declare const Banner: React.FC<{
4
+ promotion: PromotionOptions;
5
+ direction?: 'top' | 'bottom';
6
+ }>;
@@ -0,0 +1,27 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { styled as a } from "@linaria/react";
3
+ import { SlideIn as t } from "../../slide-in/index.js";
4
+ const o = /* @__PURE__ */ a("div")({
5
+ name: "BannerContainer",
6
+ class: "bipmch2",
7
+ propsAsIs: !1
8
+ }), d = ({
9
+ promotion: r,
10
+ direction: i = "bottom"
11
+ }) => {
12
+ var e;
13
+ return (e = r.additionalBanner) != null && e.imageUrl ? /* @__PURE__ */ n(t, {
14
+ direction: i,
15
+ children: /* @__PURE__ */ n(o, {
16
+ children: /* @__PURE__ */ n("img", {
17
+ src: r.additionalBanner.imageUrl,
18
+ width: 400,
19
+ height: 100,
20
+ alt: "promo"
21
+ })
22
+ })
23
+ }) : null;
24
+ };
25
+ export {
26
+ d as Banner
27
+ };
@@ -0,0 +1,9 @@
1
+ import { Advertisement } from '@streamlayer/feature-gamification';
2
+
3
+ export declare const AdvertisementUI: React.FC<{
4
+ advertisement: Advertisement & {
5
+ data: Exclude<Advertisement['data'], undefined>;
6
+ };
7
+ sidebar?: 'left' | 'right';
8
+ banner?: 'top' | 'bottom';
9
+ }>;
@@ -0,0 +1,31 @@
1
+ import { jsxs as e, jsx as c, Fragment as d } from "react/jsx-runtime";
2
+ import { useStore as s } from "@nanostores/react";
3
+ import { PromotionType as t } from "@streamlayer/sdk-web-types";
4
+ import { Banner as a } from "./banner/index.js";
5
+ import { Overlay as u } from "./overlay/index.js";
6
+ import { Sidebar as h } from "./sidebar/index.js";
7
+ const f = (r) => (r == null ? void 0 : r.type) === t.INGAME_IAB11_LBAR || (r == null ? void 0 : r.type) === t.INGAME_IAB21_LBAR, A = (r) => (r == null ? void 0 : r.type) === t.INGAME_IAB11 || (r == null ? void 0 : r.type) === t.INGAME_IAB21, _ = ({ advertisement: r, sidebar: n, banner: i }) => {
8
+ const l = s(r.data);
9
+ return !l.data && l.loading ? /* @__PURE__ */ e("div", { children: [
10
+ "loading... ",
11
+ /* @__PURE__ */ c("button", { onClick: r.close, children: "close" })
12
+ ] }) : l.error ? /* @__PURE__ */ e("div", { children: [
13
+ "error ",
14
+ /* @__PURE__ */ c("button", { onClick: r.close, children: "close" })
15
+ ] }) : l.data ? i ? /* @__PURE__ */ e(d, { children: [
16
+ /* @__PURE__ */ c(a, { promotion: l.data, direction: i }),
17
+ /* @__PURE__ */ c("button", { onClick: r.close, children: "close" })
18
+ ] }) : n && f(l.data) ? /* @__PURE__ */ e(d, { children: [
19
+ /* @__PURE__ */ c(h, { direction: n, children: /* @__PURE__ */ c(u, { promotion: l.data }) }),
20
+ /* @__PURE__ */ c("button", { onClick: r.close, children: "close" })
21
+ ] }) : !n && A(l.data) ? /* @__PURE__ */ e(d, { children: [
22
+ /* @__PURE__ */ c(u, { promotion: l.data }),
23
+ /* @__PURE__ */ c("button", { onClick: r.close, children: "close" })
24
+ ] }) : null : /* @__PURE__ */ e("div", { children: [
25
+ "empty promo ",
26
+ /* @__PURE__ */ c("button", { onClick: r.close, children: "close" })
27
+ ] });
28
+ };
29
+ export {
30
+ _ as AdvertisementUI
31
+ };
@@ -0,0 +1,3 @@
1
+ import { PromotionOptions } from '@streamlayer/sdk-web-types';
2
+
3
+ export declare const promotionMock: PromotionOptions;
@@ -0,0 +1,33 @@
1
+ import { PromotionType as o, PromotionWallet as e, PromotionLogoMode as a, CtaIconMode as t } from "@streamlayer/sdk-web-types";
2
+ const d = {
3
+ type: o.INGAME_IAB21_LBAR,
4
+ enableWallet: e.DISABLED,
5
+ coupon: "",
6
+ logoMode: a.LEFT,
7
+ couponZip: "",
8
+ couponBarcodeUrl: "",
9
+ sponsor: {
10
+ logo: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/f1de6799-4502-4423-9cbe-4804cd0ba769/c911da1a-e4a1-4e9a-8eb2-d1a6aa17e05d.png",
11
+ name: "Coca Cola"
12
+ },
13
+ banner: {
14
+ imageUrl: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/be4af347-d124-4677-b413-cf288dadbdaf/059b6e6f-518d-46e6-b149-7e6afe01f756.png",
15
+ url: "google.com",
16
+ ctaButton: {
17
+ label: "Order",
18
+ color: "#1d7bff",
19
+ ctaIcon: "",
20
+ ctaIconMode: t.CTA_ICON_UNSET,
21
+ textColor: "#fff"
22
+ },
23
+ body: "Order pizza",
24
+ title: "Get free Cola"
25
+ },
26
+ additionalBanner: {
27
+ imageUrl: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/42b6d84a-3cca-4eed-98ed-195706b47882/fce903c3-9781-4613-ae1e-4cce7e8cde90.png",
28
+ url: "google.com"
29
+ }
30
+ };
31
+ export {
32
+ d as promotionMock
33
+ };
@@ -0,0 +1,5 @@
1
+ import { PromotionOptions } from '@streamlayer/sdk-web-types';
2
+
3
+ export declare const Overlay: React.FC<{
4
+ promotion: PromotionOptions;
5
+ }>;
@@ -0,0 +1,21 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ const b = ({ promotion: r }) => {
3
+ var i, l, n, c, h, a, t, s, v;
4
+ return /* @__PURE__ */ d("div", { className: "PromoOverlay", children: [
5
+ /* @__PURE__ */ d("div", { children: [
6
+ /* @__PURE__ */ d("div", { children: [
7
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { src: (i = r.sponsor) == null ? void 0 : i.logo, width: 100, height: 50, alt: "promo" }) }),
8
+ /* @__PURE__ */ e("div", { children: (l = r.sponsor) == null ? void 0 : l.name })
9
+ ] }),
10
+ /* @__PURE__ */ d("div", { children: [
11
+ /* @__PURE__ */ e("div", { children: "AD" }),
12
+ /* @__PURE__ */ e("div", { children: "SPONSORED" })
13
+ ] })
14
+ ] }),
15
+ /* @__PURE__ */ e("div", { children: (c = (n = r.banner) == null ? void 0 : n.video) != null && c.url ? /* @__PURE__ */ e("video", { src: r.banner.video.url, width: 250, height: 100, children: /* @__PURE__ */ e("source", { type: "video/streamlayer" }) }) : /* @__PURE__ */ e("img", { src: (h = r.banner) == null ? void 0 : h.imageUrl, width: 250, height: 100, alt: "promo" }) }),
16
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("button", { style: { backgroundColor: (t = (a = r.banner) == null ? void 0 : a.ctaButton) == null ? void 0 : t.color }, children: (v = (s = r.banner) == null ? void 0 : s.ctaButton) == null ? void 0 : v.label }) })
17
+ ] });
18
+ };
19
+ export {
20
+ b as Overlay
21
+ };
@@ -0,0 +1,6 @@
1
+ export declare const Sidebar: React.FC<{
2
+ children: React.ReactElement;
3
+ direction: 'left' | 'right';
4
+ style?: React.CSSProperties;
5
+ className?: string;
6
+ }>;
@@ -0,0 +1,23 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { styled as n } from "@linaria/react";
3
+ import { SlideIn as t } from "../../slide-in/index.js";
4
+ const a = /* @__PURE__ */ n("div")({
5
+ name: "SidebarContainer",
6
+ class: "s1abskp8",
7
+ propsAsIs: !1
8
+ }), l = ({
9
+ children: e,
10
+ direction: o,
11
+ style: s,
12
+ className: i
13
+ }) => /* @__PURE__ */ r(t, {
14
+ direction: o,
15
+ style: s,
16
+ className: i,
17
+ children: /* @__PURE__ */ r(a, {
18
+ children: e
19
+ })
20
+ });
21
+ export {
22
+ l as Sidebar
23
+ };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { CountUpProps } from 'react-countup';
2
+
3
3
  export declare const AnimatedCounter: React.FC<Omit<CountUpProps, 'end' | 'start'> & {
4
4
  value?: number;
5
5
  }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ButtonProps = {
3
2
  children?: string | React.ReactNode;
4
3
  disabled?: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const SButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
3
- export declare const ButtonLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
1
+ export declare const SButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
2
+ export declare const ButtonLabel: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
@@ -1,5 +1,6 @@
1
1
  import { QuestionType } from '@streamlayer/sdk-web-types';
2
2
  import { icons } from '../icons';
3
+
3
4
  export declare const QuestionTypeData: Record<QuestionType, {
4
5
  label: string;
5
6
  iconName: keyof typeof icons;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const CopyNotification: React.FC;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
3
- export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
2
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { QuestionType } from '@streamlayer/sdk-web-types';
2
+
3
3
  interface VoteHeaderProps {
4
4
  type?: QuestionType;
5
5
  close: () => void;
@@ -1,7 +1,6 @@
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 QuestionTypeWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const QuestionTypeWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
3
  export declare const QuestionTypeIcon: any;
5
- export declare const QuestionTypeTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
6
- export declare const CloseIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const QuestionTypeTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
5
+ export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
6
  export declare const CloseIcon: any;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare const Sponsor: React.FC<{
3
2
  sponsorLogo?: string;
3
+ mastersApp?: boolean;
4
4
  }>;
@@ -1,19 +1,25 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { styled as s } from "@linaria/react";
3
- import { SvgIcon as r } from "../../../icons/index.js";
4
- const p = /* @__PURE__ */ s("div")({
2
+ import { styled as n } from "@linaria/react";
3
+ import { SvgIcon as e } from "../../../icons/index.js";
4
+ const s = /* @__PURE__ */ n("div")({
5
5
  name: "SponsorLogoWrap",
6
6
  class: "s8p5v5z",
7
7
  propsAsIs: !1
8
- }), n = () => r, t = /* @__PURE__ */ s(n())({
8
+ }), t = () => e, r = /* @__PURE__ */ n(t())({
9
9
  name: "SponsorLogo",
10
10
  class: "s755yti",
11
11
  propsAsIs: !0
12
- }), c = () => /* @__PURE__ */ o(p, {
13
- children: /* @__PURE__ */ o(t, {
12
+ }), i = ({
13
+ mastersApp: p
14
+ }) => p ? /* @__PURE__ */ o(s, {
15
+ children: /* @__PURE__ */ o(r, {
14
16
  name: "mastersLogo"
15
17
  })
18
+ }) : /* @__PURE__ */ o(s, {
19
+ children: /* @__PURE__ */ o(r, {
20
+ name: "streamLayerLogo"
21
+ })
16
22
  });
17
23
  export {
18
- c as Sponsor
24
+ i as Sponsor
19
25
  };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { QuestionImages } from '@streamlayer/sdk-web-types';
2
+
3
3
  type InsightProps = {
4
4
  image?: string;
5
5
  imageMode: QuestionImages;
@@ -1,9 +1,8 @@
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 Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Graphic: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const InsightIconDefault: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
6
- export declare const InsightIconCircle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
7
- export declare const InsightIconAbsolute: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
8
- export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
- export declare const NextIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const Graphic: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const InsightIconDefault: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
+ export declare const InsightIconCircle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
6
+ export declare const InsightIconAbsolute: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
7
+ export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
+ export declare const NextIcon: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { QuestionImages } from '@streamlayer/sdk-web-types';
2
+
3
3
  interface InsightListProps {
4
4
  insights?: Array<{
5
5
  image?: string;
@@ -1,3 +1,2 @@
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 ItemsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const ItemsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type InviteLinkProps = {
3
2
  title?: string;
4
3
  description?: string;
@@ -1,24 +1,24 @@
1
- import { jsxs as i, jsx as C } from "react/jsx-runtime";
2
- import { useAnalyticsHandle as c } from "../../../hooks/analytics.js";
3
- import { InvitationFrom as l } from "@streamlayer/sdk-web-types";
4
- import { Container as s, FriendsIcon as a, Content as d, Title as h, Description as m, ArrowInviteIcon as p } from "./styles.js";
5
- const f = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20d='M10.4615%2012.6875C9.44231%2012.6875%208.61538%2013.4665%208.61538%2014.4266C8.61538%2015.3868%209.44231%2016.1658%2010.4615%2016.1658C11.4808%2016.1658%2012.3077%2015.3868%2012.3077%2014.4266C12.3077%2013.4665%2011.4808%2012.6875%2010.4615%2012.6875ZM10.4615%2016.1658C9.10817%2016.1658%208%2017.2097%208%2018.4846V19.7527C8%2019.7527%208.61538%2020.2237%2010.4615%2020.2237C12.3077%2020.2237%2012.9231%2019.7527%2012.9231%2019.7527V18.4846C12.9231%2017.2097%2011.8149%2016.1658%2010.4615%2016.1658ZM21.5385%2012.6875C20.5192%2012.6875%2019.6923%2013.4665%2019.6923%2014.4266C19.6923%2015.3868%2020.5192%2016.1658%2021.5385%2016.1658C22.5577%2016.1658%2023.3846%2015.3868%2023.3846%2014.4266C23.3846%2013.4665%2022.5577%2012.6875%2021.5385%2012.6875ZM21.5385%2016.1658C20.1851%2016.1658%2019.0769%2017.2097%2019.0769%2018.4846V19.7527C19.0769%2019.7527%2019.6923%2020.2237%2021.5385%2020.2237C23.3846%2020.2237%2024%2019.7527%2024%2019.7527V18.4846C24%2017.2097%2022.8918%2016.1658%2021.5385%2016.1658ZM16%2015.0063C14.9808%2015.0063%2014.1538%2015.7853%2014.1538%2016.7455C14.1538%2017.7056%2014.9808%2018.4846%2016%2018.4846C17.0192%2018.4846%2017.8462%2017.7056%2017.8462%2016.7455C17.8462%2015.7853%2017.0192%2015.0063%2016%2015.0063ZM16%2018.4846C14.6466%2018.4846%2013.5385%2019.5285%2013.5385%2020.8034V22.0715C13.5385%2022.0715%2014.1538%2022.5425%2016%2022.5425C17.8462%2022.5425%2018.4615%2022.0715%2018.4615%2022.0715V20.8034C18.4615%2019.5285%2017.3534%2018.4846%2016%2018.4846Z'%20fill='%23107D57'/%3e%3cpath%20opacity='0.5'%20d='M13.3908%209C12.3103%209%2011.4336%209.82584%2011.4336%2010.8437C11.4336%2011.8616%2012.3103%2012.6875%2013.3908%2012.6875C14.4713%2012.6875%2015.348%2011.8616%2015.348%2010.8437C15.348%209.82584%2014.4713%209%2013.3908%209ZM13.3908%2012.6875C13.1946%2012.6875%2012.9958%2012.6827%2012.7996%2012.7451C13.192%2013.2372%2013.3908%2013.8542%2013.3908%2014.5312C13.3908%2014.7761%2013.3296%2015.0161%2013.3296%2015.261C13.8521%2014.524%2014.6956%2014.0391%2015.6742%2013.9166C15.218%2013.1796%2014.3694%2012.6875%2013.3908%2012.6875ZM18.61%209C17.5295%209%2016.6528%209.82584%2016.6528%2010.8437C16.6528%2011.8616%2017.5295%2012.6875%2018.61%2012.6875C19.6905%2012.6875%2020.5672%2011.8616%2020.5672%2010.8437C20.5672%209.82584%2019.6905%209%2018.61%209ZM18.61%2012.6875C17.6314%2012.6875%2016.7828%2013.1796%2016.3266%2013.9166C17.3052%2014.0391%2018.1487%2014.524%2018.6712%2015.261C18.6712%2015.0161%2018.61%2014.7761%2018.61%2014.5312C18.61%2013.8542%2018.8088%2013.2372%2019.2012%2012.7451C19.005%2012.6827%2018.8062%2012.6875%2018.61%2012.6875Z'%20fill='%23107D57'/%3e%3c/svg%3e", g = ({ title: n, description: t, onClick: e, className: o }) => {
6
- const [r] = c({
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import { useAnalyticsHandle as a } from "../../../hooks/analytics.js";
3
+ import { InvitationFrom as m } from "@streamlayer/sdk-web-types";
4
+ import { Container as s, FriendsIcon as l, Content as d, Title as p, Description as f, ArrowInviteIcon as I } from "./styles.js";
5
+ const C = ({ title: o, description: t, onClick: r, className: e }) => {
6
+ const [c] = a({
7
7
  type: "invitation",
8
8
  action: "sent",
9
9
  payload: {
10
- from: l.TITLE_CARD
10
+ from: m.TITLE_CARD
11
11
  }
12
12
  });
13
- return /* @__PURE__ */ i(s, { onClick: r(e), className: o, children: [
14
- /* @__PURE__ */ C(a, { alt: "friends-icon", src: f }),
13
+ return /* @__PURE__ */ i(s, { onClick: c(r), className: e, children: [
14
+ /* @__PURE__ */ n(l, { name: "icon-friends" }),
15
15
  /* @__PURE__ */ i(d, { children: [
16
- /* @__PURE__ */ C(h, { children: n }),
17
- /* @__PURE__ */ C(m, { children: t })
16
+ /* @__PURE__ */ n(p, { children: o }),
17
+ /* @__PURE__ */ n(f, { children: t })
18
18
  ] }),
19
- /* @__PURE__ */ C(p, { name: "icon-copy" })
19
+ /* @__PURE__ */ n(I, { name: "icon-copy" })
20
20
  ] });
21
21
  };
22
22
  export {
23
- g as InviteLink
23
+ C as InviteLink
24
24
  };
@@ -1,7 +1,6 @@
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 FriendsIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
4
- export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const FriendsIcon: any;
3
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
6
  export declare const ArrowInviteIcon: any;
@@ -1,14 +1,14 @@
1
1
  import { styled as s } from "@linaria/react";
2
2
  import { SvgIcon as n } from "../../icons/index.js";
3
- const c = /* @__PURE__ */ s("div")({
3
+ const r = /* @__PURE__ */ s("div")({
4
4
  name: "Container",
5
5
  class: "c1ux29ft",
6
6
  propsAsIs: !1
7
- }), r = /* @__PURE__ */ s("img")({
7
+ }), o = () => n, a = /* @__PURE__ */ s(o())({
8
8
  name: "FriendsIcon",
9
9
  class: "f10ncfg2",
10
- propsAsIs: !1
11
- }), a = /* @__PURE__ */ s("div")({
10
+ propsAsIs: !0
11
+ }), p = /* @__PURE__ */ s("div")({
12
12
  name: "Content",
13
13
  class: "c1yc07bd",
14
14
  propsAsIs: !1
@@ -16,20 +16,20 @@ const c = /* @__PURE__ */ s("div")({
16
16
  name: "Title",
17
17
  class: "tj6cq7w",
18
18
  propsAsIs: !1
19
- }), p = /* @__PURE__ */ s("div")({
19
+ }), l = /* @__PURE__ */ s("div")({
20
20
  name: "Description",
21
21
  class: "d1ag78xo",
22
22
  propsAsIs: !1
23
- }), o = () => n, l = /* @__PURE__ */ s(o())({
23
+ }), e = () => n, I = /* @__PURE__ */ s(e())({
24
24
  name: "ArrowInviteIcon",
25
25
  class: "awohrz6",
26
26
  propsAsIs: !0
27
27
  });
28
28
  export {
29
- l as ArrowInviteIcon,
30
- c as Container,
31
- a as Content,
32
- p as Description,
33
- r as FriendsIcon,
29
+ I as ArrowInviteIcon,
30
+ r as Container,
31
+ p as Content,
32
+ l as Description,
33
+ a as FriendsIcon,
34
34
  i as Title
35
35
  };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { ListProps } from 'react-window';
3
2
  import { LeaderboardItemProps } from './list-item';
3
+
4
4
  type LeaderboardListProps = {
5
5
  items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
6
6
  currentUserId?: string;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sdk-web-types';
1
+ import { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sdk-web-types';
2
+
3
3
  export type LeaderboardItemProps = Partial<ILeaderboardItem> & {
4
4
  userId: string;
5
5
  isCurrentUser?: boolean;
@@ -1,9 +1,8 @@
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 Position: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Avatar: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
- export declare const AvatarPlaceholder: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
- export declare const NameContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Name: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const Position: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const Avatar: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
4
+ export declare const AvatarPlaceholder: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
+ export declare const NameContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
+ export declare const Name: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
9
8
  export declare const CurrentUserBadge: any;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import { type ScrollNodeRef } from '../../app/masters';
3
- import { ScrollStore } from '../../app/useSdkScroll';
1
+ import { ScrollNodeRef } from '../../../app/masters';
2
+ import { ScrollStore } from '../../../app/useSdkScroll';
4
3
  import { LeaderboardItemProps } from './list-item';
4
+
5
5
  type LeaderboardListProps = {
6
6
  items: Omit<LeaderboardItemProps, 'openItemDetail'>[];
7
7
  currentUserId?: string;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const ScrollContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
1
+ export declare const ScrollContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,5 +1,5 @@
1
1
  import { styled as o } from "@linaria/react";
2
- import "../../../styles_z07sl8-l0sNRNKZ.js";
2
+ /* empty css */
3
3
  const l = /* @__PURE__ */ o("div")({
4
4
  name: "ScrollContainer",
5
5
  class: "s13d8sg6",
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import type { Gamification } from '@streamlayer/feature-gamification';
3
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
1
+ import { Gamification } from '@streamlayer/feature-gamification';
2
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
4
3
  import { OnboardingStep } from './slides/onboarding-instructions';
5
4
  import { OnboardingInviteCardProps } from './slides/onboarding-invite-card';
6
5
  import { OnboardingRule } from './slides/onboarding-rules';
6
+
7
7
  type OnboardingType = OnboardingInviteCardProps & {
8
8
  gamification: Gamification;
9
9
  sdk: StreamLayerSDK;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type InvitingUserType = {
3
2
  avatar?: string;
4
3
  name?: string;
@@ -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 Avatar: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
4
- export declare const AvatarPlaceholder: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
- export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const Name: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const Avatar: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
3
+ export declare const AvatarPlaceholder: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const Name: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
@@ -1,4 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
+
2
3
  type OnboardingInstructionsProps = {
3
4
  loading: boolean;
4
5
  steps: OnboardingStep[];