@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,32 +1,32 @@
1
- import { jsxs as g, Fragment as D, jsx as c } from "react/jsx-runtime";
1
+ import { jsxs as f, Fragment as D, jsx as c } from "react/jsx-runtime";
2
2
  import { cx as N } from "@linaria/core";
3
- import { useStore as f } from "@nanostores/react";
4
- import { useState as p, useMemo as T, useEffect as h, useRef as E, useCallback as w } from "react";
5
- import { r as O } from "../../../../index-Bicco-Aq.js";
6
- import { eventBus as b } from "@streamlayer/sdk-web-interfaces";
3
+ import { useStore as g } from "@nanostores/react";
4
+ import { useMastersContext as T } from "../useMastersContext.js";
5
+ import { scrollIntoAppView as q } from "../../useSdkScroll.js";
6
+ import { useState as p, useMemo as E, useEffect as h, useRef as O, useCallback as w } from "react";
7
+ import { r as b } from "../../../index-B1QdimmR.js";
8
+ import { eventBus as C } from "@streamlayer/sdk-web-interfaces";
7
9
  import { NotificationType as a } from "@streamlayer/sdk-web-notifications";
8
- import { useMastersContext as q } from "../useMastersContext.js";
9
- import { scrollIntoAppView as C } from "../../useSdkScroll.js";
10
- import { QuestionTypeData as R } from "../../../gamification/constants.js";
11
- import { Notification as V } from "../../../gamification/question/notification/index.js";
12
- import { PredictionResult as P } from "../../../gamification/question/notification/prediction-result/index.js";
10
+ import { QuestionTypeData as R } from "../../../ui/gamification/constants.js";
11
+ import { Notification as V } from "../../../ui/gamification/question/notification/index.js";
12
+ import { PredictionResult as P } from "../../../ui/gamification/question/notification/prediction-result/index.js";
13
13
  import { Onboarding as x } from "./Onboarding/index.js";
14
- import { HiddenContainer as A, Container as B, InnerContainer as H, NotificationRefreshing as Q, Pill as z } from "./styles.js";
15
- const U = (o) => {
16
- const [t, u] = p(0), i = E(null), d = w((r) => {
14
+ import { HiddenContainer as A, Container as B, InnerContainer as H, NotificationRefreshing as Q, Pill as U } from "./styles.js";
15
+ const j = (n) => {
16
+ const [t, u] = p(0), i = O(null), d = w((r) => {
17
17
  i.current = r;
18
18
  }, []);
19
19
  h(() => {
20
20
  var l;
21
21
  const r = (l = i.current) == null ? void 0 : l.getBoundingClientRect();
22
22
  r && u(r.height);
23
- }, [o]);
24
- const n = w((r) => {
23
+ }, [n]);
24
+ const o = w((r) => {
25
25
  u(r);
26
26
  }, []);
27
- return [d, t, n];
28
- }, j = ({
29
- sdk: o,
27
+ return [d, t, o];
28
+ }, z = ({
29
+ sdk: n,
30
30
  notification: t,
31
31
  appNode: u,
32
32
  responsiveStore: i
@@ -34,18 +34,18 @@ const U = (o) => {
34
34
  var s, e;
35
35
  const {
36
36
  sdkInDesktopView: d
37
- } = f(i, {
37
+ } = g(i, {
38
38
  keys: ["sdkInDesktopView"]
39
39
  }), {
40
- sdk: n
41
- } = q(), [r, l, m] = U(t.id);
42
- return t.type === a.QUESTION ? /* @__PURE__ */ g(D, {
40
+ sdk: o
41
+ } = T(), [r, l, m] = j(t.id);
42
+ return t.type === a.QUESTION ? /* @__PURE__ */ f(D, {
43
43
  children: [/* @__PURE__ */ c(A, {
44
44
  ref: r,
45
45
  children: /* @__PURE__ */ c(V, {
46
46
  ...t
47
47
  })
48
- }), /* @__PURE__ */ g(B, {
48
+ }), /* @__PURE__ */ f(B, {
49
49
  style: {
50
50
  height: t.hiding ? 0 : l
51
51
  },
@@ -56,7 +56,7 @@ const U = (o) => {
56
56
  },
57
57
  children: /* @__PURE__ */ c(V, {
58
58
  ...t,
59
- controlVideo: n == null ? void 0 : n.controlVideoPlayer
59
+ controlVideo: o == null ? void 0 : o.controlVideoPlayer
60
60
  })
61
61
  }), /* @__PURE__ */ c(Q, {}, t.id)]
62
62
  })]
@@ -67,66 +67,67 @@ const U = (o) => {
67
67
  saveHeight: m,
68
68
  close: t.close,
69
69
  hiding: t.hiding,
70
- ...t.data.question
70
+ ...t.data.question,
71
+ mastersApp: !0
71
72
  }) : t.type === a.ONBOARDING ? /* @__PURE__ */ c(x, {
72
73
  style: {
73
74
  height: t.hiding ? 0 : l
74
75
  },
75
76
  saveHeight: m,
76
- sdk: o,
77
+ sdk: n,
77
78
  notification: t,
78
79
  sdkInDesktopView: d,
79
80
  appNode: u,
80
81
  responsiveStore: i
81
82
  }) : null;
82
- }, F = "p1k96f2z", L = ({
83
- pill: o,
83
+ }, F = "p1co32q0", L = ({
84
+ pill: n,
84
85
  setPill: t,
85
86
  appNode: u,
86
87
  headerNode: i,
87
88
  scrollNode: d,
88
- responsiveStore: n,
89
+ responsiveStore: o,
89
90
  scrollStore: r
90
91
  }) => {
91
92
  var k, y;
92
93
  const {
93
94
  screen: l
94
- } = f(n, {
95
+ } = g(o, {
95
96
  keys: ["screen"]
96
97
  }), {
97
98
  tabsShown: m,
98
99
  scrollPosition: s
99
- } = f(r, {
100
+ } = g(r, {
100
101
  keys: ["tabsShown", "scrollPosition"]
101
102
  });
102
103
  h(() => {
103
- n.get().sdkInDesktopView ? s < 50 && t(null) : s > -50 && t(null);
104
- }, [s, n, t]);
105
- const e = n.get().sdkInDesktopView ? u : i;
106
- return !o || !e.current ? null : O.createPortal(/* @__PURE__ */ c(z, {
107
- title: o.type === a.QUESTION_RESOLVED ? "Prediction result" : `New ${((y = R[(k = o.data) == null ? void 0 : k.questionType]) == null ? void 0 : y.label) || "notification"}`,
104
+ o.get().sdkInDesktopView ? s < 50 && t(null) : s > -50 && t(null);
105
+ }, [s, o, t]);
106
+ const e = o.get().sdkInDesktopView ? u : i;
107
+ return !n || !e.current ? null : b.createPortal(/* @__PURE__ */ c(U, {
108
+ title: n.type === a.QUESTION_RESOLVED ? "Prediction result" : `New ${((y = R[(k = n.data) == null ? void 0 : k.questionType]) == null ? void 0 : y.label) || "notification"}`,
108
109
  onClick: () => {
109
110
  var I;
110
- n.get().sdkInDesktopView ? (I = d.current) == null || I.scrollTo({
111
+ o.get().sdkInDesktopView ? (I = d.current) == null || I.scrollTo({
111
112
  top: 0,
112
113
  behavior: "smooth"
113
- }) : C(u, l.size, {
114
+ }) : q(u, l.size, {
114
115
  behavior: "smooth"
115
116
  }), t(null);
116
117
  },
117
118
  className: N(m && F, "sl-pill-button")
118
119
  }), e.current);
119
120
  }, it = ({
120
- sdk: o,
121
+ sdk: n,
121
122
  headerNode: t,
122
123
  scrollNode: u,
123
124
  responsiveStore: i,
124
125
  appNode: d,
125
- scrollStore: n
126
+ scrollStore: o
126
127
  }) => {
127
- const [r] = p(o.getNotificationsStore()), l = f(r), [m, s] = p(null), e = T(() => o.getActiveNotification(), [o, l]);
128
+ const [r] = p(n.getNotificationsStore()), l = g(r), [m, s] = p(null), e = E(() => n.getActiveNotification(), [n, l]);
128
129
  return h(() => {
129
- e && b.emit("notification", {
130
+ e && C.emit("notification", {
130
131
  action: "rendered",
131
132
  payload: {
132
133
  questionId: e.data.questionId,
@@ -135,15 +136,15 @@ const U = (o) => {
135
136
  });
136
137
  }, [e]), h(() => {
137
138
  e && (i.get().sdkInDesktopView || i.get().sdkInView) && (!i.get().sdkInDesktopView && i.get().sdkInView && s(e), i.get().sdkInDesktopView && window.requestAnimationFrame(() => {
138
- n.get().scrollPosition !== 0 && s(e);
139
+ o.get().scrollPosition !== 0 && s(e);
139
140
  }));
140
141
  }, [e]), h(() => {
141
142
  e || s(null);
142
- }, [e]), /* @__PURE__ */ g(D, {
143
- children: [!m && e && /* @__PURE__ */ c(j, {
143
+ }, [e]), /* @__PURE__ */ f(D, {
144
+ children: [!m && e && /* @__PURE__ */ c(z, {
144
145
  headerNode: t,
145
146
  appNode: d,
146
- sdk: o,
147
+ sdk: n,
147
148
  notification: e,
148
149
  responsiveStore: i
149
150
  }), m && /* @__PURE__ */ c(L, {
@@ -153,7 +154,7 @@ const U = (o) => {
153
154
  notification: e,
154
155
  headerNode: t,
155
156
  scrollNode: u,
156
- scrollStore: n,
157
+ scrollStore: o,
157
158
  responsiveStore: i
158
159
  })]
159
160
  });
@@ -0,0 +1,9 @@
1
+ export declare const Container: any;
2
+ export declare const InnerContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const HiddenContainer: {
4
+ __wyw_meta: unknown;
5
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
6
+ as?: import('react').ElementType;
7
+ }>;
8
+ export declare const NotificationRefreshing: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
+ export declare const Pill: any;
@@ -1,31 +1,31 @@
1
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";
2
+ import { Pill as n } from "../../../ui/gamification/question/notification/pill/index.js";
3
+ import { ShowIn as o } from "../../../ui/show-in/index.js";
4
4
  const e = () => o, l = /* @__PURE__ */ s(e())({
5
5
  name: "Container",
6
- class: "c1cu0box",
6
+ class: "c1f0y7nw",
7
7
  propsAsIs: !0
8
- }), i = /* @__PURE__ */ s("div")({
8
+ }), t = /* @__PURE__ */ s("div")({
9
9
  name: "InnerContainer",
10
- class: "i1p534h4",
10
+ class: "i1qa3p7a",
11
11
  propsAsIs: !1
12
- }), t = () => i, m = /* @__PURE__ */ s(t())({
12
+ }), i = () => t, m = /* @__PURE__ */ s(i())({
13
13
  name: "HiddenContainer",
14
- class: "hyh76ez",
14
+ class: "hrthymv",
15
15
  propsAsIs: !0
16
16
  }), f = /* @__PURE__ */ s("div")({
17
17
  name: "NotificationRefreshing",
18
- class: "n1pj3cvw",
18
+ class: "n13rok4i",
19
19
  propsAsIs: !1
20
20
  }), r = () => n, I = /* @__PURE__ */ s(r())({
21
21
  name: "Pill",
22
- class: "pk13by5",
22
+ class: "pht79xf",
23
23
  propsAsIs: !0
24
24
  });
25
25
  export {
26
26
  l as Container,
27
27
  m as HiddenContainer,
28
- i as InnerContainer,
28
+ t as InnerContainer,
29
29
  f as NotificationRefreshing,
30
30
  I as Pill
31
31
  };
@@ -0,0 +1,5 @@
1
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+
3
+ export declare const StreamLayerSDKPoints: React.FC<{
4
+ sdk: StreamLayerSDK;
5
+ }>;
@@ -3,7 +3,7 @@ import { useStore as i } from "@nanostores/react";
3
3
  import { useState as c, useEffect as f } from "react";
4
4
  import { FeatureStatus as p } from "@streamlayer/sdk-web-interfaces";
5
5
  import { FeatureType as S } from "@streamlayer/sdk-web-types";
6
- import { Points as l } from "../../../gamification/points/index.js";
6
+ import { Points as l } from "../../../ui/gamification/points/index.js";
7
7
  const a = ({ gamification: e }) => {
8
8
  const s = e.userSummary.$store, [r, u] = c(0);
9
9
  return f(() => {
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export { StreamLayerMastersThemeProvider } from '../../theme/masters';
1
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+
3
+ export { StreamLayerMastersThemeProvider } from '../../ui/theme/masters';
4
4
  export type Overlays = {};
5
5
  export type MastersAppChildrenProps = {
6
6
  activateEventWithId: (event: string) => void;
@@ -1,23 +1,23 @@
1
1
  import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
2
  import { useStore as C } from "@nanostores/react";
3
- import { useAnalyticsListener as d, newTabLinkListener as x, appScrollListener as A, appClickListener as F } from "../../../hooks/analytics.js";
4
- import { useRef as S, useMemo as M, useEffect as b } from "react";
5
- import { SDKContainer as D, SDKScrollContainer as I } from "../styles.js";
6
- import { useSdkFeature as B } from "../useSdkFeature.js";
7
- import { useSdkResponsive as T } from "../useSdkResponsive.js";
8
- import { useSdkScroll as j } from "../useSdkScroll.js";
9
- import { resetCss as p } from "../../theme/theme.js";
3
+ import { SDKContainer as x, SDKScrollContainer as A } from "../styles.js";
4
+ import { useSdkFeature as F } from "../useSdkFeature.js";
5
+ import { useSdkResponsive as M } from "../useSdkResponsive.js";
6
+ import { useSdkScroll as b } from "../useSdkScroll.js";
7
+ import { useAnalyticsListener as d, newTabLinkListener as D, appScrollListener as I, appClickListener as B } from "../../hooks/analytics.js";
8
+ import { useRef as S, useMemo as T, useEffect as j } from "react";
9
+ import { resetCss as p } from "../../ui/theme/theme.js";
10
10
  import { ActiveFeature as k, StandaloneFeature as E } from "./Features/index.js";
11
11
  import { MastersNavigation as K } from "./Navigation/MastersNavigation/index.js";
12
12
  import { SDKNotifications as O } from "./Notifications/index.js";
13
13
  import { useMastersApp as R } from "./useMastersApp.js";
14
14
  import { MastersContext as w } from "./useMastersContext.js";
15
- import { StreamLayerMastersThemeProvider as ce } from "../../theme/masters.js";
16
- import { ChannelsButtonId as P } from "../../navigation/button/Channels.js";
17
- import { LeaderBoardButtonId as G } from "../../navigation/button/LeaderBoard.js";
18
- import { FeaturedGroupsButtonId as V } from "../../navigation/button/FeaturedGroups.js";
15
+ import { StreamLayerMastersThemeProvider as ce } from "../../ui/theme/masters.js";
16
+ import { ChannelsButtonId as P } from "../../ui/navigation/button/Channels.js";
17
+ import { LeaderBoardButtonId as G } from "../../ui/navigation/button/LeaderBoard.js";
18
+ import { FeaturedGroupsButtonId as V } from "../../ui/navigation/button/FeaturedGroups.js";
19
19
  const W = ({ sdk: e, className: i, scrollStore: l, appNode: t, scrollNode: s, responsiveStore: o }) => {
20
- const [, r] = B(e);
20
+ const [, r] = F(e);
21
21
  return /* @__PURE__ */ n(
22
22
  k,
23
23
  {
@@ -47,22 +47,22 @@ const W = ({ sdk: e, className: i, scrollStore: l, appNode: t, scrollNode: s, re
47
47
  ) : null;
48
48
  }) : null;
49
49
  }, ie = ({ sdk: e, overlays: i, children: l }) => {
50
- const t = S(null), s = S(null), [o] = T(t), [r, f] = j(t, o), { sdkEnabled: a, sdkReady: c, activeOverlay: m, activateAndLoadOverlay: h, activateEventWithId: N, deactivate: g, isLogged: y } = R(e);
51
- d(t, { enabled: a, event: "click", listener: x }), d(r, {
50
+ const t = S(null), s = S(null), [o] = M(t), [r, f] = b(t, o), { sdkEnabled: a, sdkReady: c, activeOverlay: m, activateAndLoadOverlay: h, activateEventWithId: N, deactivate: g, isLogged: y } = R(e);
51
+ d(t, { enabled: a, event: "click", listener: D }), d(r, {
52
52
  enabled: a,
53
53
  event: "scrollend",
54
- listener: A,
54
+ listener: I,
55
55
  useDomNode: !0
56
56
  }), d(r, {
57
57
  enabled: a,
58
58
  event: "click",
59
- listener: F,
59
+ listener: B,
60
60
  useDomNode: !0
61
61
  });
62
- const L = M(() => ({ sdk: e }), [e]);
63
- return b(() => {
62
+ const L = T(() => ({ sdk: e }), [e]);
63
+ return j(() => {
64
64
  import("./Features/Gamification/gamification-feature.js");
65
- }, []), /* @__PURE__ */ n(w.Provider, { value: L, children: /* @__PURE__ */ v(D, { ref: t, children: [
65
+ }, []), /* @__PURE__ */ n(w.Provider, { value: L, children: /* @__PURE__ */ v(x, { ref: t, children: [
66
66
  a && /* @__PURE__ */ n(
67
67
  K,
68
68
  {
@@ -78,7 +78,7 @@ const W = ({ sdk: e, className: i, scrollStore: l, appNode: t, scrollNode: s, re
78
78
  responsiveStore: o
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ v(I, { className: "sl-hide-on-modal", ref: r, "data-nav": a.toString(), children: [
81
+ /* @__PURE__ */ v(A, { className: "sl-hide-on-modal", ref: r, "data-nav": a.toString(), children: [
82
82
  c && /* @__PURE__ */ n(
83
83
  O,
84
84
  {
@@ -1,5 +1,6 @@
1
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
1
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
2
  import { AvailableOverlays } from './Navigation/MastersNavigation';
3
+
3
4
  /**
4
5
  * A hook that provides functionality for managing the StreamLayerSDK in the Masters app.
5
6
  * - On activate FG+ button, the SDK is initialized and the FG+ overlay is opened.
@@ -0,0 +1,71 @@
1
+ import { useStore as c } from "@nanostores/react";
2
+ import { useRef as z, useState as d, useCallback as v, useEffect as l } from "react";
3
+ import { FeatureType as p } from "@streamlayer/sdk-web-types";
4
+ import "./Navigation/MastersNavigation/index.js";
5
+ import { FeaturedGroupsButtonId as f } from "../../ui/navigation/button/FeaturedGroups.js";
6
+ import { ChannelsButtonId as i } from "../../ui/navigation/button/Channels.js";
7
+ const C = (e) => {
8
+ const m = z(""), [E, a] = d(!1), g = c(e.status), F = c(e.sdkStore.slStreamId), n = c(e.userId()), A = c(e.getActiveFeature()), o = g === "ready" && !!F.data, [S, r] = d(f), s = v(
9
+ (t, u) => {
10
+ r(u), t && e.createEventSession(t), u === f ? window.requestAnimationFrame(() => {
11
+ e.openFeature(p.GAMES);
12
+ }) : e.closeFeature(!1);
13
+ },
14
+ [e]
15
+ );
16
+ l(() => {
17
+ !o && S === f && (r(i), e.closeFeature(!0));
18
+ }, [o, S, e]), l(() => {
19
+ A === p.GAMES ? r(f) : A === p.UNSET && r(i);
20
+ const t = e.getFeature(p.GAMES);
21
+ t && (t.closeQuestion(), t.closeUser());
22
+ }, [A, e]);
23
+ const b = v(
24
+ (t) => {
25
+ m.current = t, a(!0), e.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: u, err: h }) => {
26
+ if (h) {
27
+ s(t, i);
28
+ return;
29
+ }
30
+ if (u) {
31
+ e.isUserAuthorized().then((y) => {
32
+ if (y) {
33
+ s(t, i);
34
+ return;
35
+ } else
36
+ e.disableApp();
37
+ });
38
+ return;
39
+ }
40
+ });
41
+ },
42
+ [s, e]
43
+ ), I = v(() => {
44
+ a(!1), e.disableApp();
45
+ }, [e]);
46
+ return l(() => {
47
+ if (!n) {
48
+ o && (r(i), e.disableApp());
49
+ return;
50
+ }
51
+ if (n && m.current && E) {
52
+ e.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
53
+ e.createEventSession(m.current);
54
+ });
55
+ return;
56
+ }
57
+ }, [n]), l(() => () => {
58
+ a(!1), e.disableApp();
59
+ }, [a, e]), {
60
+ sdkEnabled: E,
61
+ sdkReady: o,
62
+ activeOverlay: S,
63
+ activateAndLoadOverlay: s,
64
+ activateEventWithId: b,
65
+ deactivate: I,
66
+ isLogged: !!n
67
+ };
68
+ };
69
+ export {
70
+ C as useMastersApp
71
+ };
@@ -0,0 +1,8 @@
1
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+
3
+ export declare const MastersContext: import('react').Context<{
4
+ sdk: StreamLayerSDK | null;
5
+ }>;
6
+ export declare const useMastersContext: () => {
7
+ sdk: StreamLayerSDK | null;
8
+ };
@@ -0,0 +1,20 @@
1
+ export declare const SDKContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const SDKScrollContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const SDKContentContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
+ export declare const SDKWhiteContainer: {
5
+ __wyw_meta: unknown;
6
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
7
+ as?: import('react').ElementType;
8
+ }>;
9
+ export declare const TabsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
+ export declare const LeaderboardContainer: {
11
+ __wyw_meta: unknown;
12
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
13
+ as?: import('react').ElementType;
14
+ }>;
15
+ export declare const TabsNavContainer: {
16
+ __wyw_meta: unknown;
17
+ } & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
18
+ as?: import('react').ElementType;
19
+ }>;
20
+ export declare const UserSummaryContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1,44 +1,44 @@
1
1
  import { styled as s } from "@linaria/react";
2
2
  const i = /* @__PURE__ */ s("div")({
3
3
  name: "SDKContainer",
4
- class: "stu11h7",
4
+ class: "s2j5adf",
5
5
  propsAsIs: !1
6
6
  }), c = /* @__PURE__ */ s("div")({
7
7
  name: "SDKScrollContainer",
8
- class: "s1ucohr1",
8
+ class: "st9ayqn",
9
9
  propsAsIs: !1
10
10
  }), a = /* @__PURE__ */ s("div")({
11
11
  name: "SDKContentContainer",
12
- class: "s1el4wvm",
12
+ class: "s6rlym7",
13
13
  propsAsIs: !1
14
14
  }), e = () => a, n = /* @__PURE__ */ s(e())({
15
15
  name: "SDKWhiteContainer",
16
- class: "s1oe3036",
16
+ class: "s1trfff0",
17
17
  propsAsIs: !0
18
- }), p = /* @__PURE__ */ s("div")({
18
+ }), l = /* @__PURE__ */ s("div")({
19
19
  name: "TabsContainer",
20
- class: "tzk7mst",
20
+ class: "t87r8je",
21
21
  propsAsIs: !1
22
- }), o = () => n, l = /* @__PURE__ */ s(o())({
22
+ }), o = () => n, p = /* @__PURE__ */ s(o())({
23
23
  name: "LeaderboardContainer",
24
- class: "lkdzy61",
24
+ class: "l1aiq1lq",
25
25
  propsAsIs: !0
26
- }), t = () => n, C = /* @__PURE__ */ s(t())({
26
+ }), r = () => n, C = /* @__PURE__ */ s(r())({
27
27
  name: "TabsNavContainer",
28
- class: "tvdam54",
28
+ class: "t1o5m8d1",
29
29
  propsAsIs: !0
30
30
  }), m = /* @__PURE__ */ s("div")({
31
31
  name: "UserSummaryContainer",
32
- class: "u14fk93k",
32
+ class: "uqh0y7s",
33
33
  propsAsIs: !1
34
34
  });
35
35
  export {
36
- l as LeaderboardContainer,
36
+ p as LeaderboardContainer,
37
37
  i as SDKContainer,
38
38
  a as SDKContentContainer,
39
39
  c as SDKScrollContainer,
40
40
  n as SDKWhiteContainer,
41
- p as TabsContainer,
41
+ l as TabsContainer,
42
42
  C as TabsNavContainer,
43
43
  m as UserSummaryContainer
44
44
  };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import { HeaderNodeRef, type AppNodeRef } from '.';
3
- export declare const useClipboardCopy: (renderToNode: AppNodeRef | HeaderNodeRef) => [(link: string | undefined) => Promise<void>, import("react").ReactPortal | null];
1
+ import { HeaderNodeRef, AppNodeRef } from '.';
2
+
3
+ export declare const useClipboardCopy: (renderToNode: AppNodeRef | HeaderNodeRef) => [(link: string | undefined) => Promise<void>, React.ReactPortal | null];
@@ -1,7 +1,7 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { useRef as l, useState as s, useCallback as p, useEffect as f } from "react";
3
- import { r as m } from "../../index-Bicco-Aq.js";
4
- import { CopyNotification as b } from "../gamification/copyNotification/index.js";
3
+ import { r as m } from "../index-B1QdimmR.js";
4
+ import { CopyNotification as b } from "../ui/gamification/copyNotification/index.js";
5
5
  const T = (r) => {
6
6
  const t = l(), [i, o] = s(null), a = p(
7
7
  async (e) => {
@@ -1,6 +1,7 @@
1
1
  import { Features } from '@streamlayer/sdk-web-features';
2
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
3
  import { FeatureType } from '@streamlayer/sdk-web-types';
4
+
4
5
  /**
5
6
  * A hook that manages the active feature of a StreamLayerSDK instance.
6
7
  * @param sdk - The StreamLayerSDK instance to manage the feature for.
@@ -1,5 +1,7 @@
1
+ import { AppNodeRef } from '.';
1
2
  import { MapStore } from 'nanostores';
2
- import { BREAKPOINTS } from '../theme/constants';
3
+ import { BREAKPOINTS } from '../ui/theme/constants';
4
+
3
5
  type BREAKPOINTS_KEYS = keyof typeof BREAKPOINTS;
4
6
  type ResponsiveData = {
5
7
  screen: {
@@ -1,7 +1,7 @@
1
1
  import c from "lodash.throttle";
2
2
  import { useState as m, useEffect as u } from "react";
3
- import { BREAKPOINTS as r } from "../theme/constants.js";
4
- import { m as l } from "../../index-CZvwzN5o.js";
3
+ import { BREAKPOINTS as r } from "../ui/theme/constants.js";
4
+ import { m as l } from "../index-CZvwzN5o.js";
5
5
  const d = Object.keys(r), i = () => {
6
6
  const n = window.innerWidth;
7
7
  let e = "sm";
@@ -1,6 +1,7 @@
1
+ import { ScrollNodeRef, AppNodeRef } from '.';
1
2
  import { MapStore } from 'nanostores';
2
- import { type ScrollNodeRef } from '.';
3
- import { type ResponsiveStore } from './useSdkResponsive';
3
+ import { ResponsiveStore } from './useSdkResponsive';
4
+
4
5
  type ScrollData = {
5
6
  scrollPosition: number;
6
7
  tabsShown?: boolean;
@@ -1,8 +1,8 @@
1
1
  import { useStore as S } from "@nanostores/react";
2
2
  import h from "lodash.throttle";
3
3
  import { useRef as m, useState as b, useEffect as g } from "react";
4
- import { BREAKPOINTS as c } from "../theme/constants.js";
5
- import { m as v } from "../../index-CZvwzN5o.js";
4
+ import { BREAKPOINTS as c } from "../ui/theme/constants.js";
5
+ import { m as v } from "../index-CZvwzN5o.js";
6
6
  const C = (o, e, n) => {
7
7
  const t = e >= c.lg && e < c.xl ? 75 : 52;
8
8
  o.current && window.scrollTo({