@streamlayer/react-ui 1.0.0 → 1.2.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 (284) hide show
  1. package/lib/app/app/Advertisement/index.d.ts +10 -0
  2. package/lib/app/app/Advertisement/index.js +89 -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 +4 -0
  37. package/lib/app/app/story/content.js +30 -0
  38. package/lib/app/app/story/index.d.ts +10 -0
  39. package/lib/app/app/story/index.js +113 -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/styles.d.ts +9 -0
  43. package/lib/app/app/story/styles.js +49 -0
  44. package/lib/app/app/story/useResponsive.d.ts +1 -0
  45. package/lib/app/app/story/useResponsive.js +15 -0
  46. package/lib/app/app/story/video.d.ts +10 -0
  47. package/lib/app/app/story/video.js +67 -0
  48. package/lib/{ui/app → app}/app/useApp.d.ts +2 -1
  49. package/lib/{ui/app → app}/app/useApp.js +20 -17
  50. package/lib/app/app/useAppContext.d.ts +8 -0
  51. package/lib/{ui/app → app}/index.d.ts +0 -1
  52. package/lib/app/login/demo.d.ts +5 -0
  53. package/lib/{ui → app}/login/index.d.ts +0 -1
  54. package/lib/{ui → app}/login/index.js +1 -1
  55. package/lib/app/login/styles.d.ts +7 -0
  56. package/lib/app/login/styles.js +39 -0
  57. package/lib/{ui/app/app → app/masters}/Features/FeatureProvider.d.ts +2 -2
  58. package/lib/{ui/app → app}/masters/Features/FeatureProvider.js +8 -8
  59. package/lib/{ui/app → app}/masters/Features/Gamification/Friends.d.ts +0 -1
  60. package/lib/app/masters/Features/Gamification/Friends.js +19 -0
  61. package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.d.ts +3 -3
  62. package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.js +10 -10
  63. package/lib/{ui/app/app → app/masters}/Features/Gamification/Question.d.ts +1 -1
  64. package/lib/{ui/app → app}/masters/Features/Gamification/Question.js +11 -11
  65. package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.d.ts +2 -2
  66. package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.js +1 -1
  67. package/lib/{ui/app/app → app/masters}/Features/Gamification/Tabs.d.ts +3 -3
  68. package/lib/{ui/app → app}/masters/Features/Gamification/Tabs.js +12 -12
  69. package/lib/{ui/app → app}/masters/Features/Gamification/UserSummary.d.ts +2 -2
  70. package/lib/{ui/app/app → app/masters}/Features/Gamification/UserSummary.js +1 -1
  71. package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.d.ts +1 -0
  72. package/lib/{ui/app → app}/masters/Features/Gamification/index.d.ts +3 -3
  73. package/lib/app/masters/Features/Gamification/index.js +88 -0
  74. package/lib/{ui/app/app → app/masters}/Features/index.d.ts +4 -4
  75. package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.d.ts +5 -5
  76. package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.js +5 -5
  77. package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
  78. package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +9 -0
  79. package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/Notification/styles.js +16 -16
  80. package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/index.d.ts +4 -4
  81. package/lib/{mastersLogoSolid-B4Dz-vm1.js → app/masters/Notifications/Onboarding/index.js} +166 -2
  82. package/lib/{ui/app → app}/masters/Notifications/index.d.ts +3 -3
  83. package/lib/{ui/app → app}/masters/Notifications/index.js +48 -47
  84. package/lib/app/masters/Notifications/styles.d.ts +9 -0
  85. package/lib/{ui/app/app → app/masters}/Notifications/styles.js +10 -10
  86. package/lib/app/masters/Points/index.d.ts +5 -0
  87. package/lib/{ui/app → app}/masters/Points/index.js +1 -1
  88. package/lib/{ui/app → app}/masters/masters.d.ts +3 -3
  89. package/lib/{ui/app → app}/masters/masters.js +20 -20
  90. package/lib/{ui/app → app}/masters/useMastersApp.d.ts +2 -1
  91. package/lib/app/masters/useMastersApp.js +71 -0
  92. package/lib/app/masters/useMastersContext.d.ts +8 -0
  93. package/lib/app/styles.d.ts +20 -0
  94. package/lib/{ui/app → app}/styles.js +13 -13
  95. package/lib/{ui/app → app}/useClipboardCopy.d.ts +3 -3
  96. package/lib/{ui/app → app}/useClipboardCopy.js +2 -2
  97. package/lib/{ui/app → app}/useSdkFeature.d.ts +2 -1
  98. package/lib/{ui/app → app}/useSdkResponsive.d.ts +3 -1
  99. package/lib/{ui/app → app}/useSdkResponsive.js +2 -2
  100. package/lib/{ui/app → app}/useSdkScroll.d.ts +3 -2
  101. package/lib/{ui/app → app}/useSdkScroll.js +2 -2
  102. package/lib/assets/style.css +1 -1
  103. package/lib/hooks/showIn.js +1 -1
  104. package/lib/{index-Bicco-Aq.js → index-B1QdimmR.js} +7737 -8219
  105. package/lib/index.d.ts +1 -1
  106. package/lib/index.js +1 -1
  107. package/lib/ui/advertisement/banner/index.d.ts +8 -0
  108. package/lib/ui/advertisement/banner/index.js +32 -0
  109. package/lib/ui/advertisement/index.d.ts +10 -0
  110. package/lib/ui/advertisement/index.js +19 -0
  111. package/lib/ui/advertisement/mock.d.ts +4 -0
  112. package/lib/ui/advertisement/mock.js +67 -0
  113. package/lib/ui/advertisement/overlay/index.d.ts +7 -0
  114. package/lib/ui/advertisement/overlay/index.js +74 -0
  115. package/lib/ui/advertisement/overlay/styles.d.ts +18 -0
  116. package/lib/ui/advertisement/overlay/styles.js +95 -0
  117. package/lib/ui/advertisement/sidebar/index.d.ts +7 -0
  118. package/lib/ui/advertisement/sidebar/index.js +25 -0
  119. package/lib/ui/animated-counter/index.d.ts +1 -1
  120. package/lib/ui/button/index.d.ts +0 -1
  121. package/lib/ui/button/styles.d.ts +2 -3
  122. package/lib/ui/gamification/constants.d.ts +1 -0
  123. package/lib/ui/gamification/copyNotification/index.d.ts +0 -1
  124. package/lib/ui/gamification/copyNotification/styles.d.ts +3 -4
  125. package/lib/ui/gamification/detail/header/index.d.ts +1 -1
  126. package/lib/ui/gamification/detail/header/styles.d.ts +4 -5
  127. package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -1
  128. package/lib/ui/gamification/detail/sponsor/index.js +13 -7
  129. package/lib/ui/gamification/insight/index.d.ts +1 -1
  130. package/lib/ui/gamification/insight/styles.d.ts +8 -9
  131. package/lib/ui/gamification/insight-list/index.d.ts +1 -1
  132. package/lib/ui/gamification/insight-list/styles.d.ts +2 -3
  133. package/lib/ui/gamification/invite-link/index.d.ts +0 -1
  134. package/lib/ui/gamification/invite-link/index.js +13 -13
  135. package/lib/ui/gamification/invite-link/styles.d.ts +5 -6
  136. package/lib/ui/gamification/invite-link/styles.js +11 -11
  137. package/lib/ui/gamification/leaderboard/index.d.ts +1 -1
  138. package/lib/ui/gamification/leaderboard/list-item/index.d.ts +2 -2
  139. package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -8
  140. package/lib/ui/gamification/leaderboard/static.d.ts +3 -3
  141. package/lib/ui/gamification/leaderboard/styles.d.ts +1 -2
  142. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  143. package/lib/ui/gamification/onboarding/index.d.ts +3 -3
  144. package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +0 -1
  145. package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -6
  146. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +1 -0
  147. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +10 -11
  148. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +1 -1
  149. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +6 -6
  150. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +9 -10
  151. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +1 -1
  152. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.d.ts +8 -9
  153. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +0 -1
  154. package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +4 -5
  155. package/lib/ui/gamification/onboarding/styles.d.ts +5 -6
  156. package/lib/ui/gamification/points/index.d.ts +0 -1
  157. package/lib/ui/gamification/points/styles.d.ts +5 -6
  158. package/lib/ui/gamification/question/index.d.ts +2 -2
  159. package/lib/ui/gamification/question/index.js +27 -26
  160. package/lib/ui/gamification/question/insight/index.d.ts +1 -1
  161. package/lib/ui/gamification/question/insight/styles.d.ts +2 -3
  162. package/lib/ui/gamification/question/list/index.d.ts +2 -2
  163. package/lib/ui/gamification/question/list/styles.d.ts +1 -2
  164. package/lib/ui/gamification/question/notification/index.d.ts +2 -2
  165. package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
  166. package/lib/ui/gamification/question/notification/insight/styles.d.ts +7 -8
  167. package/lib/ui/gamification/question/notification/pill/index.d.ts +0 -1
  168. package/lib/ui/gamification/question/notification/pill/styles.d.ts +3 -4
  169. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.d.ts +0 -1
  170. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +58 -31
  171. package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -2
  172. package/lib/ui/gamification/question/notification/prediction-result/index.js +55 -54
  173. package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +11 -10
  174. package/lib/ui/gamification/question/notification/styles.d.ts +6 -7
  175. package/lib/ui/gamification/question/notification/tweet/index.d.ts +3 -3
  176. package/lib/ui/gamification/question/notification/tweet/styles.d.ts +4 -5
  177. package/lib/ui/gamification/question/styles.d.ts +14 -14
  178. package/lib/ui/gamification/question/styles.js +48 -43
  179. package/lib/ui/gamification/question/twitter/index.d.ts +2 -2
  180. package/lib/ui/gamification/question/twitter/styles.d.ts +3 -4
  181. package/lib/ui/gamification/tabs/index.d.ts +0 -1
  182. package/lib/ui/gamification/tabs/styles.d.ts +4 -5
  183. package/lib/ui/gamification/user-statistics/components/rank/index.d.ts +0 -1
  184. package/lib/ui/gamification/user-statistics/components/rank/styles.d.ts +3 -4
  185. package/lib/ui/gamification/user-statistics/components/statistic/index.d.ts +0 -1
  186. package/lib/ui/gamification/user-statistics/components/statistic/styles.d.ts +3 -4
  187. package/lib/ui/gamification/user-statistics/index.d.ts +0 -1
  188. package/lib/ui/gamification/user-statistics/styles.d.ts +17 -18
  189. package/lib/ui/gamification/vote/alert/index.d.ts +2 -1
  190. package/lib/ui/gamification/vote/alert/styles.d.ts +3 -4
  191. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
  192. package/lib/ui/gamification/vote/feedback/styles.d.ts +8 -9
  193. package/lib/ui/gamification/vote/index.d.ts +1 -1
  194. package/lib/ui/gamification/vote/insight-details/index.d.ts +1 -1
  195. package/lib/ui/gamification/vote/insight-details/styles.d.ts +2 -3
  196. package/lib/ui/gamification/vote/styles.d.ts +4 -5
  197. package/lib/ui/gamification/vote/styles.js +1 -1
  198. package/lib/ui/gamification/vote/twitter-details/index.d.ts +2 -2
  199. package/lib/ui/gamification/vote/twitter-details/styles.d.ts +2 -3
  200. package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
  201. package/lib/ui/gamification/vote/vote-option/index.js +6 -6
  202. package/lib/ui/gamification/vote/vote-option/styles.d.ts +19 -16
  203. package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
  204. package/lib/ui/gamification/vote/win-bar/styles.d.ts +6 -7
  205. package/lib/ui/icons/index.d.ts +1 -1
  206. package/lib/ui/icons/index.js +108 -47
  207. package/lib/ui/lottie/index.d.ts +0 -1
  208. package/lib/ui/modal/index.d.ts +0 -1
  209. package/lib/ui/modal/index.js +1 -1
  210. package/lib/ui/navigation/button/Channels.d.ts +1 -1
  211. package/lib/ui/navigation/button/FeaturedGroups.d.ts +1 -1
  212. package/lib/ui/navigation/button/LeaderBoard.d.ts +1 -1
  213. package/lib/ui/navigation/button/index.d.ts +1 -1
  214. package/lib/ui/navigation/button/styles.d.ts +6 -7
  215. package/lib/ui/navigation/index.d.ts +1 -1
  216. package/lib/ui/navigation/masters.d.ts +6 -5
  217. package/lib/ui/questions/insight/index.d.ts +1 -1
  218. package/lib/ui/questions/insight/styles.d.ts +6 -7
  219. package/lib/ui/questions/twitter/account/index.d.ts +0 -1
  220. package/lib/ui/questions/twitter/account/styles.d.ts +6 -7
  221. package/lib/ui/questions/twitter/index.d.ts +1 -1
  222. package/lib/ui/questions/twitter/styles.d.ts +14 -11
  223. package/lib/ui/show-in/index.d.ts +2 -1
  224. package/lib/ui/skeleton/index.d.ts +0 -1
  225. package/lib/ui/skeleton/styles.d.ts +1 -2
  226. package/lib/ui/slide-in/index.d.ts +11 -0
  227. package/lib/ui/slide-in/index.js +24 -0
  228. package/lib/ui/theme/ThemeColors.js +1 -1
  229. package/lib/ui/theme/ThemeColorsAdvertisement.d.ts +1 -0
  230. package/lib/ui/theme/ThemeColorsAdvertisement.js +15 -0
  231. package/lib/ui/theme/breakpoints.d.ts +1 -0
  232. package/lib/ui/theme/constants.d.ts +23 -59
  233. package/lib/ui/theme/constants.js +41 -56
  234. package/lib/ui/theme/index.d.ts +0 -1
  235. package/lib/ui/theme/masters-theme.d.ts +4 -24
  236. package/lib/ui/theme/masters-theme.js +26 -58
  237. package/lib/ui/theme/masters.d.ts +0 -1
  238. package/lib/ui/theme/theme.d.ts +1 -1
  239. package/lib/ui/theme/theme.js +14 -11
  240. package/lib/ui/timer/index.d.ts +3 -2
  241. package/lib/ui/timer/index.js +32 -32
  242. package/lib/ui/video-player/index.d.ts +1 -1
  243. package/lib/ui/video-player/index.js +70 -62
  244. package/lib/ui/video-player/styles.d.ts +5 -6
  245. package/lib/utils/debug/storage.js +1 -1
  246. package/lib/utils/storage.js +1 -1
  247. package/package.json +47 -41
  248. package/lib/styles_z07sl8-l0sNRNKZ.js +0 -1
  249. package/lib/ui/app/app/Features/Gamification/Question.js +0 -69
  250. package/lib/ui/app/app/Features/Gamification/index.js +0 -88
  251. package/lib/ui/app/app/Navigation/index.js +0 -42
  252. package/lib/ui/app/app/Notifications/Onboarding/Notification/styles.d.ts +0 -10
  253. package/lib/ui/app/app/Notifications/Onboarding/index.js +0 -172
  254. package/lib/ui/app/app/Notifications/styles.d.ts +0 -8
  255. package/lib/ui/app/app/Points/index.d.ts +0 -5
  256. package/lib/ui/app/app/useAppContext.d.ts +0 -8
  257. package/lib/ui/app/masters/Features/Gamification/Friends.js +0 -19
  258. package/lib/ui/app/masters/Navigation/index.d.ts +0 -9
  259. package/lib/ui/app/masters/Navigation/index.js +0 -30
  260. package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.d.ts +0 -10
  261. package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.js +0 -50
  262. package/lib/ui/app/masters/Notifications/Onboarding/index.js +0 -172
  263. package/lib/ui/app/masters/Notifications/styles.d.ts +0 -8
  264. package/lib/ui/app/masters/Notifications/styles.js +0 -31
  265. package/lib/ui/app/masters/Points/index.d.ts +0 -5
  266. package/lib/ui/app/masters/useMastersApp.js +0 -68
  267. package/lib/ui/app/masters/useMastersContext.d.ts +0 -8
  268. package/lib/ui/app/styles.d.ts +0 -15
  269. package/lib/ui/login/demo.d.ts +0 -6
  270. package/lib/ui/login/styles.d.ts +0 -8
  271. package/lib/ui/login/styles.js +0 -39
  272. /package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.js +0 -0
  273. /package/lib/{ui/app → app}/app/Features/index.js +0 -0
  274. /package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.js +0 -0
  275. /package/lib/{ui/app → app}/app/useAppContext.js +0 -0
  276. /package/lib/{ui/app → app}/index.js +0 -0
  277. /package/lib/{ui → app}/login/demo.js +0 -0
  278. /package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.js +0 -0
  279. /package/lib/{ui/app → app}/masters/Features/index.js +0 -0
  280. /package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.js +0 -0
  281. /package/lib/{ui/app → app}/masters/useMastersContext.js +0 -0
  282. /package/lib/{ui/app → app}/useImagesPreload.d.ts +0 -0
  283. /package/lib/{ui/app → app}/useImagesPreload.js +0 -0
  284. /package/lib/{ui/app → app}/useSdkFeature.js +0 -0
@@ -1,42 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { styled as l } from "@linaria/react";
3
- import { useStore as s } from "@nanostores/react";
4
- import { useMemo as a } from "react";
5
- import { AvailableFeatures as d } from "@streamlayer/sdk-web-features";
6
- import { Navigation as v } from "../../../navigation/index.js";
7
- import { Button as u } from "../../../navigation/button/index.js";
8
- const y = () => v, f = /* @__PURE__ */ l(y())({
9
- name: "Container",
10
- class: "ckodz37",
11
- propsAsIs: !0
12
- }), B = ({
13
- sdk: t
14
- }) => {
15
- const i = s(t.sdkStore.organizationSettings), r = s(t.sdkStore.streamSettings), p = s(t.getActiveFeature()), e = a(() => {
16
- const o = (r == null ? void 0 : r.data) || (i == null ? void 0 : i.data);
17
- return o != null && o.overlays ? o.overlays : [];
18
- }, [i, r]), c = a(() => [...e.filter(({
19
- enableSdkButton: o
20
- }) => o).map((o) => ({
21
- id: o.type,
22
- onClick: () => t.openFeature(o.type),
23
- disabled: !(o.type in d),
24
- label: o.name,
25
- icon: /* @__PURE__ */ n("img", {
26
- src: o.icon,
27
- alt: ""
28
- }),
29
- /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
30
- position: o.position * 10
31
- }))].sort((o, m) => o.position - m.position), [e, t]);
32
- return /* @__PURE__ */ n(f, {
33
- children: c.map((o) => /* @__PURE__ */ n(u, {
34
- ...o,
35
- icon: void 0,
36
- active: o.id === p
37
- }, o.id))
38
- });
39
- };
40
- export {
41
- B as SDKNavigation
42
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const CloseIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const CloseIcon: any;
5
- export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const SponsorLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
7
- export declare const PresentsTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Subtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
- export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
- export declare const ActionButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
@@ -1,172 +0,0 @@
1
- import { jsx as n, jsxs as k, Fragment as T } from "react/jsx-runtime";
2
- import { styled as S } from "@linaria/react";
3
- import { useStore as F } from "@nanostores/react";
4
- import { useRef as j, useState as A, useMemo as _, useLayoutEffect as z, useEffect as E } from "react";
5
- import { FeatureType as G } from "@streamlayer/sdk-web-types";
6
- import { useImagesPreload as M } from "../../../useImagesPreload.js";
7
- import { scrollIntoAppView as P } from "../../../useSdkScroll.js";
8
- import { OnboardingUI as R } from "../../../../gamification/onboarding/index.js";
9
- import { ModalPortal as V } from "../../../../modal/index.js";
10
- import { ShowIn as W } from "../../../../show-in/index.js";
11
- import { m as $ } from "../../../../../mastersLogoSolid-B4Dz-vm1.js";
12
- import { Onboarding as x } from "./Notification/index.js";
13
- const y = [{
14
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
15
- tagline: "Featured groups+ experience",
16
- headline: /* @__PURE__ */ k(T, {
17
- children: ["Welcome to ", /* @__PURE__ */ n("br", {}), " Featured Groups +"]
18
- })
19
- }, {
20
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
21
- headline: "Get real-time insights"
22
- }, {
23
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
24
- headline: "Predictions, trivia & polls synced to match play"
25
- }, {
26
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
27
- headline: "Win points for every answer you get right"
28
- }, {
29
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
30
- headline: "Compete against friends on the leaderboard"
31
- }], O = /* @__PURE__ */ S("div")({
32
- name: "OnboardingContainer",
33
- class: "o1xcysoz",
34
- propsAsIs: !1
35
- }), q = () => W, D = /* @__PURE__ */ S(q())({
36
- name: "OnboardingNotificationContainer",
37
- class: "oejzp3v",
38
- propsAsIs: !0
39
- }), L = /* @__PURE__ */ S("div")({
40
- name: "InnerContainer",
41
- class: "i134gfua",
42
- propsAsIs: !1
43
- }), U = ({
44
- deepLink: d,
45
- onboardingOpts: r,
46
- notification: o,
47
- gamification: u,
48
- loading: i,
49
- renderToNode: v,
50
- sdk: l
51
- }) => {
52
- var a, h, b, f, C, m, s;
53
- const c = F(u.friends.getStore()), [e, I] = A(void 0), g = _(() => {
54
- var p, w;
55
- const t = l.getInviter();
56
- return t ? (w = (p = c.data) == null ? void 0 : p.find(({
57
- slId: B
58
- }) => B === t)) == null ? void 0 : w.name : "";
59
- }, [c.data, l]);
60
- return E(() => {
61
- const t = d.$store.subscribe((p) => {
62
- p && I(p.data);
63
- });
64
- return () => {
65
- t();
66
- };
67
- }, [d.$store]), /* @__PURE__ */ n(O, {
68
- children: /* @__PURE__ */ n(R, {
69
- loading: i,
70
- renderToNode: v,
71
- rules: [{
72
- label: "Answer as many questions as you like.",
73
- icon: "icon-btn-feature-groups"
74
- }, {
75
- label: "Win points for each correct trivia or prediction answer.",
76
- icon: "icon-thumb-up"
77
- }, {
78
- label: "Top the leader board and best your friends.",
79
- icon: "icon-trophy"
80
- }],
81
- rulesBtnLabel: (a = r.rules) == null ? void 0 : a.buttonLabel,
82
- rulesTitle: (h = r.rules) == null ? void 0 : h.heading,
83
- termsTitle: "Terms and Conditions",
84
- termsText: (b = r.rules) == null ? void 0 : b.terms,
85
- steps: y,
86
- primaryColor: (f = r.inviteCard) == null ? void 0 : f.iconColor,
87
- inviteLink: e,
88
- inviteCardTitle: (C = r.inviteCard) == null ? void 0 : C.heading,
89
- inviteCardSubtext: (m = r.inviteCard) == null ? void 0 : m.subtext,
90
- inviteCardBtnLabel: (s = r.inviteCard) == null ? void 0 : s.buttonLabel,
91
- onClose: () => {
92
- var t;
93
- (t = o.close) == null || t.call(o);
94
- },
95
- gamification: u,
96
- sdk: l,
97
- inviterName: g
98
- })
99
- });
100
- }, se = ({
101
- sdk: d,
102
- notification: r,
103
- saveHeight: o,
104
- style: u,
105
- appNode: i,
106
- sdkInDesktopView: v,
107
- responsiveStore: l
108
- }) => {
109
- var m;
110
- const c = j(null), e = r.data.onboarding, [I, g] = A(e == null ? void 0 : e.instantOpen), a = d.getFeature(G.GAMES), h = _(() => y == null ? void 0 : y.map(({
111
- graphicSrc: s
112
- }) => s), []), {
113
- screen: b
114
- } = F(l, {
115
- keys: ["screen"]
116
- });
117
- (m = e == null ? void 0 : e.titleCard) != null && m.media && (e.titleCard.media.sponsorLogo = $), z(() => {
118
- var s;
119
- o(((s = c.current) == null ? void 0 : s.getBoundingClientRect().height) || 0);
120
- }, [o]);
121
- const {
122
- loading: f,
123
- throttled: C
124
- } = M(h);
125
- return I && a && e && i.current && !C ? /* @__PURE__ */ n(V, {
126
- container: i,
127
- useContainer: !v,
128
- children: /* @__PURE__ */ n(U, {
129
- notification: r,
130
- setOpened: g,
131
- gamification: a,
132
- onboardingOpts: e,
133
- deepLink: a.deepLink,
134
- loading: f,
135
- renderToNode: i,
136
- sdk: d
137
- })
138
- }) : /* @__PURE__ */ k(T, {
139
- children: [/* @__PURE__ */ n(L, {
140
- ref: c,
141
- style: {
142
- position: "absolute",
143
- visibility: "hidden"
144
- },
145
- children: /* @__PURE__ */ n(x, {
146
- close: () => {
147
- },
148
- action: () => {
149
- },
150
- onboarding: e
151
- })
152
- }), /* @__PURE__ */ n(D, {
153
- style: u,
154
- hiding: r.hiding,
155
- children: /* @__PURE__ */ n(L, {
156
- children: /* @__PURE__ */ n(x, {
157
- close: r.close,
158
- action: () => {
159
- var t;
160
- g(!0), (((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < 0 && P(i, b.size, {
161
- behavior: "smooth"
162
- });
163
- },
164
- onboarding: e
165
- })
166
- })
167
- })]
168
- });
169
- };
170
- export {
171
- se as Onboarding
172
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: any;
3
- export declare const InnerContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const HiddenContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
5
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
- }>;
7
- export declare const NotificationRefreshing: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Pill: any;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export declare const StreamLayerSDKPoints: React.FC<{
4
- sdk: StreamLayerSDK;
5
- }>;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export declare const AppContext: import("react").Context<{
4
- sdk: StreamLayerSDK | null;
5
- }>;
6
- export declare const useAppContext: () => {
7
- sdk: StreamLayerSDK | null;
8
- };
@@ -1,19 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { styled as i } from "@linaria/react";
3
- import { OnboardingInviteCard as n } from "../../../../gamification/onboarding/slides/onboarding-invite-card/index.js";
4
- const r = /* @__PURE__ */ i("div")({
5
- name: "InviteFriendsContainer",
6
- class: "ibtkwty",
7
- propsAsIs: !1
8
- }), a = ({
9
- deepLink: e
10
- }) => /* @__PURE__ */ t(r, {
11
- children: /* @__PURE__ */ t(n, {
12
- inviteLink: e,
13
- inviteCardTitle: "It’s More Fun With Friends",
14
- inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
15
- })
16
- });
17
- export {
18
- a as Friends
19
- };
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- import { Overlays } from '..';
4
- import { ButtonProps } from '../../../navigation/button';
5
- export declare const SDKNavigation: React.FC<{
6
- customOverlays: Overlays;
7
- activeButton?: ButtonProps['id'];
8
- sdk: StreamLayerSDK;
9
- }>;
@@ -1,30 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useStore as s } from "@nanostores/react";
3
- import { useMemo as e } from "react";
4
- import { AvailableFeatures as d } from "@streamlayer/sdk-web-features";
5
- import { Navigation as v } from "../../../navigation/index.js";
6
- import { Button as b } from "../../../navigation/button/index.js";
7
- const x = ({ customOverlays: a, activeButton: c, sdk: i }) => {
8
- const t = s(i.sdkStore.organizationSettings), r = s(i.sdkStore.streamSettings), p = e(() => {
9
- const o = (r == null ? void 0 : r.data) || (t == null ? void 0 : t.data);
10
- return o != null && o.overlays ? o.overlays : [];
11
- }, [t, r]), m = e(
12
- () => [
13
- ...p.filter(({ enableSdkButton: o }) => o).map((o) => ({
14
- id: o.type,
15
- onClick: () => i.openFeature(o.type),
16
- disabled: !(o.type in d),
17
- label: o.name,
18
- icon: /* @__PURE__ */ n("img", { src: o.icon, alt: "" }),
19
- /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
20
- position: o.position * 10
21
- })),
22
- ...Object.values(a).map(({ button: o }) => o)
23
- ].sort((o, l) => o.position - l.position),
24
- [p, i, a]
25
- );
26
- return /* @__PURE__ */ n(v, { children: m.map((o) => /* @__PURE__ */ n(b, { ...o, active: o.id === c })) });
27
- };
28
- export {
29
- x as SDKNavigation
30
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const CloseIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const CloseIcon: any;
5
- export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
- export declare const SponsorLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
7
- export declare const PresentsTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Subtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
- export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
- export declare const ActionButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
@@ -1,50 +0,0 @@
1
- import { styled as s } from "@linaria/react";
2
- import { SvgIcon as o } from "../../../../../icons/index.js";
3
- const c = /* @__PURE__ */ s("div")({
4
- name: "Container",
5
- class: "cy1ghlr",
6
- propsAsIs: !1
7
- }), a = /* @__PURE__ */ s("div")({
8
- name: "CloseIconWrap",
9
- class: "cg5f18y",
10
- propsAsIs: !1
11
- }), n = () => o, l = /* @__PURE__ */ s(n())({
12
- name: "CloseIcon",
13
- class: "c19va0ky",
14
- propsAsIs: !0
15
- }), p = /* @__PURE__ */ s("div")({
16
- name: "Title",
17
- class: "tnfu29o",
18
- propsAsIs: !1
19
- }), r = /* @__PURE__ */ s("img")({
20
- name: "SponsorLogo",
21
- class: "svw1c58",
22
- propsAsIs: !1
23
- }), i = /* @__PURE__ */ s("div")({
24
- name: "PresentsTitle",
25
- class: "pqfs3yj",
26
- propsAsIs: !1
27
- }), f = /* @__PURE__ */ s("div")({
28
- name: "Subtitle",
29
- class: "s1fma09t",
30
- propsAsIs: !1
31
- }), m = /* @__PURE__ */ s("div")({
32
- name: "Description",
33
- class: "dcghfqc",
34
- propsAsIs: !1
35
- }), I = /* @__PURE__ */ s("button")({
36
- name: "ActionButton",
37
- class: "a1v24usc",
38
- propsAsIs: !1
39
- });
40
- export {
41
- I as ActionButton,
42
- l as CloseIcon,
43
- a as CloseIconWrap,
44
- c as Container,
45
- m as Description,
46
- i as PresentsTitle,
47
- r as SponsorLogo,
48
- f as Subtitle,
49
- p as Title
50
- };
@@ -1,172 +0,0 @@
1
- import { jsx as n, jsxs as x, Fragment as T } from "react/jsx-runtime";
2
- import { styled as S } from "@linaria/react";
3
- import { useStore as F } from "@nanostores/react";
4
- import { useRef as E, useState as A, useMemo as _, useLayoutEffect as G, useEffect as M } from "react";
5
- import { FeatureType as P } from "@streamlayer/sdk-web-types";
6
- import { useImagesPreload as R } from "../../../useImagesPreload.js";
7
- import { scrollIntoAppView as V } from "../../../useSdkScroll.js";
8
- import { OnboardingUI as W } from "../../../../gamification/onboarding/index.js";
9
- import { ModalPortal as $ } from "../../../../modal/index.js";
10
- import { ShowIn as j } from "../../../../show-in/index.js";
11
- import { m as O } from "../../../../../mastersLogoSolid-B4Dz-vm1.js";
12
- import { Onboarding as k } from "./Notification/index.js";
13
- const y = [{
14
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
15
- tagline: "Featured groups+ experience",
16
- headline: /* @__PURE__ */ x(T, {
17
- children: ["Welcome to ", /* @__PURE__ */ n("br", {}), " Featured Groups +"]
18
- })
19
- }, {
20
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
21
- headline: "Get real-time insights"
22
- }, {
23
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
24
- headline: "Predictions, trivia & polls synced to match play"
25
- }, {
26
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
27
- headline: "Win points for every answer you get right"
28
- }, {
29
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
30
- headline: "Compete against friends on the leaderboard"
31
- }], q = /* @__PURE__ */ S("div")({
32
- name: "OnboardingContainer",
33
- class: "o1s8kvh4",
34
- propsAsIs: !1
35
- }), z = () => j, D = /* @__PURE__ */ S(z())({
36
- name: "OnboardingNotificationContainer",
37
- class: "o1b0248i",
38
- propsAsIs: !0
39
- }), L = /* @__PURE__ */ S("div")({
40
- name: "InnerContainer",
41
- class: "ii6o0e",
42
- propsAsIs: !1
43
- }), U = ({
44
- deepLink: d,
45
- onboardingOpts: r,
46
- notification: o,
47
- gamification: u,
48
- loading: i,
49
- renderToNode: v,
50
- sdk: l
51
- }) => {
52
- var a, h, b, f, C, m, s;
53
- const c = F(u.friends.getStore()), [e, I] = A(void 0), g = _(() => {
54
- var p, w;
55
- const t = l.getInviter();
56
- return t ? (w = (p = c.data) == null ? void 0 : p.find(({
57
- slId: B
58
- }) => B === t)) == null ? void 0 : w.name : "";
59
- }, [c.data, l]);
60
- return M(() => {
61
- const t = d.$store.subscribe((p) => {
62
- p && I(p.data);
63
- });
64
- return () => {
65
- t();
66
- };
67
- }, [d.$store]), /* @__PURE__ */ n(q, {
68
- children: /* @__PURE__ */ n(W, {
69
- loading: i,
70
- renderToNode: v,
71
- rules: [{
72
- label: "Answer as many questions as you like.",
73
- icon: "icon-btn-feature-groups"
74
- }, {
75
- label: "Win points for each correct trivia or prediction answer.",
76
- icon: "icon-thumb-up"
77
- }, {
78
- label: "Top the leader board and best your friends.",
79
- icon: "icon-trophy"
80
- }],
81
- rulesBtnLabel: (a = r.rules) == null ? void 0 : a.buttonLabel,
82
- rulesTitle: (h = r.rules) == null ? void 0 : h.heading,
83
- termsTitle: "Terms and Conditions",
84
- termsText: (b = r.rules) == null ? void 0 : b.terms,
85
- steps: y,
86
- primaryColor: (f = r.inviteCard) == null ? void 0 : f.iconColor,
87
- inviteLink: e,
88
- inviteCardTitle: (C = r.inviteCard) == null ? void 0 : C.heading,
89
- inviteCardSubtext: (m = r.inviteCard) == null ? void 0 : m.subtext,
90
- inviteCardBtnLabel: (s = r.inviteCard) == null ? void 0 : s.buttonLabel,
91
- onClose: () => {
92
- var t;
93
- (t = o.close) == null || t.call(o);
94
- },
95
- gamification: u,
96
- sdk: l,
97
- inviterName: g
98
- })
99
- });
100
- }, se = ({
101
- sdk: d,
102
- notification: r,
103
- saveHeight: o,
104
- style: u,
105
- appNode: i,
106
- sdkInDesktopView: v,
107
- responsiveStore: l
108
- }) => {
109
- var m;
110
- const c = E(null), e = r.data.onboarding, [I, g] = A(e == null ? void 0 : e.instantOpen), a = d.getFeature(P.GAMES), h = _(() => y == null ? void 0 : y.map(({
111
- graphicSrc: s
112
- }) => s), []), {
113
- screen: b
114
- } = F(l, {
115
- keys: ["screen"]
116
- });
117
- (m = e == null ? void 0 : e.titleCard) != null && m.media && (e.titleCard.media.sponsorLogo = O), G(() => {
118
- var s;
119
- o(((s = c.current) == null ? void 0 : s.getBoundingClientRect().height) || 0);
120
- }, [o]);
121
- const {
122
- loading: f,
123
- throttled: C
124
- } = R(h);
125
- return I && a && e && i.current && !C ? /* @__PURE__ */ n($, {
126
- container: i,
127
- useContainer: !v,
128
- children: /* @__PURE__ */ n(U, {
129
- notification: r,
130
- setOpened: g,
131
- gamification: a,
132
- onboardingOpts: e,
133
- deepLink: a.deepLink,
134
- loading: f,
135
- renderToNode: i,
136
- sdk: d
137
- })
138
- }) : /* @__PURE__ */ x(T, {
139
- children: [/* @__PURE__ */ n(L, {
140
- ref: c,
141
- style: {
142
- position: "absolute",
143
- visibility: "hidden"
144
- },
145
- children: /* @__PURE__ */ n(k, {
146
- close: () => {
147
- },
148
- action: () => {
149
- },
150
- onboarding: e
151
- })
152
- }), /* @__PURE__ */ n(D, {
153
- style: u,
154
- hiding: r.hiding,
155
- children: /* @__PURE__ */ n(L, {
156
- children: /* @__PURE__ */ n(k, {
157
- close: r.close,
158
- action: () => {
159
- var t;
160
- g(!0), (((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < 0 && V(i, b.size, {
161
- behavior: "smooth"
162
- });
163
- },
164
- onboarding: e
165
- })
166
- })
167
- })]
168
- });
169
- };
170
- export {
171
- se as Onboarding
172
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: any;
3
- export declare const InnerContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const HiddenContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
5
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
- }>;
7
- export declare const NotificationRefreshing: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
- export declare const Pill: any;
@@ -1,31 +0,0 @@
1
- import { styled as s } from "@linaria/react";
2
- import { Pill as n } from "../../../gamification/question/notification/pill/index.js";
3
- import { ShowIn as o } from "../../../show-in/index.js";
4
- const e = () => o, l = /* @__PURE__ */ s(e())({
5
- name: "Container",
6
- class: "c1rc4ozt",
7
- propsAsIs: !0
8
- }), i = /* @__PURE__ */ s("div")({
9
- name: "InnerContainer",
10
- class: "i1ddmb3r",
11
- propsAsIs: !1
12
- }), t = () => i, m = /* @__PURE__ */ s(t())({
13
- name: "HiddenContainer",
14
- class: "htinjsj",
15
- propsAsIs: !0
16
- }), d = /* @__PURE__ */ s("div")({
17
- name: "NotificationRefreshing",
18
- class: "nig84ar",
19
- propsAsIs: !1
20
- }), r = () => n, f = /* @__PURE__ */ s(r())({
21
- name: "Pill",
22
- class: "pt3kgqi",
23
- propsAsIs: !0
24
- });
25
- export {
26
- l as Container,
27
- m as HiddenContainer,
28
- i as InnerContainer,
29
- d as NotificationRefreshing,
30
- f as Pill
31
- };
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
- export declare const StreamLayerSDKPoints: React.FC<{
4
- sdk: StreamLayerSDK;
5
- }>;
@@ -1,68 +0,0 @@
1
- import { useStore as u } from "@nanostores/react";
2
- import { useRef as y, useState as d, useCallback as z, useEffect as c } from "react";
3
- import { FeatureType as l } from "@streamlayer/sdk-web-types";
4
- import "./Navigation/MastersNavigation/index.js";
5
- import { FeaturedGroupsButtonId as p } from "../../navigation/button/FeaturedGroups.js";
6
- import { ChannelsButtonId as i } from "../../navigation/button/Channels.js";
7
- const C = (e) => {
8
- const f = y(""), [v, a] = d(!1), E = u(e.status), g = u(e.sdkStore.slStreamId), n = u(e.userId()), m = u(e.getActiveFeature()), o = E === "ready" && !!g.data, [A, r] = d(p), S = z(
9
- (t, s) => {
10
- r(s), t && e.createEventSession(t), s === p ? window.requestAnimationFrame(() => {
11
- e.openFeature(l.GAMES);
12
- }) : e.closeFeature(!1);
13
- },
14
- [e]
15
- );
16
- c(() => {
17
- !o && A === p && (r(i), e.closeFeature(!0));
18
- }, [o, A, e]), c(() => {
19
- m === l.GAMES ? r(p) : m === l.UNSET && r(i);
20
- const t = e.getFeature(l.GAMES);
21
- t && (t.closeQuestion(), t.closeUser());
22
- }, [m, e]);
23
- const F = (t) => {
24
- f.current = t, a(!0), e.initializeApp({ skipOrganizationSettings: !0 }).then(({ enabled: s, err: I }) => {
25
- if (I) {
26
- S(t, i);
27
- return;
28
- }
29
- if (s) {
30
- e.isUserAuthorized().then((h) => {
31
- if (h) {
32
- S(t, i);
33
- return;
34
- } else
35
- e.disableApp();
36
- });
37
- return;
38
- }
39
- });
40
- }, b = () => {
41
- a(!1), e.disableApp();
42
- };
43
- return c(() => {
44
- if (!n) {
45
- o && (r(i), e.disableApp());
46
- return;
47
- }
48
- if (n && f.current && v) {
49
- e.initializeApp({ skipOrganizationSettings: !0 }).then(() => {
50
- e.createEventSession(f.current);
51
- });
52
- return;
53
- }
54
- }, [n]), c(() => () => {
55
- a(!1), e.disableApp();
56
- }, [a, e]), {
57
- sdkEnabled: v,
58
- sdkReady: o,
59
- activeOverlay: A,
60
- activateAndLoadOverlay: S,
61
- activateEventWithId: F,
62
- deactivate: b,
63
- isLogged: !!n
64
- };
65
- };
66
- export {
67
- C as useMastersApp
68
- };