@streamlayer/react-ui 0.100.5 → 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 (270) 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}/app/Features/FeatureProvider.d.ts +2 -2
  4. package/lib/{ui → app}/app/Features/FeatureProvider.js +10 -10
  5. package/lib/{ui → app}/app/Features/Gamification/Friends.d.ts +0 -1
  6. package/lib/{ui → app}/app/Features/Gamification/Friends.js +2 -2
  7. package/lib/app/app/Features/Gamification/Leaderboard.d.ts +9 -0
  8. package/lib/app/app/Features/Gamification/Leaderboard.js +55 -0
  9. package/lib/{ui → 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/Features/Gamification/QuestionsList.d.ts +2 -2
  12. package/lib/app/app/Features/Gamification/QuestionsList.js +11 -0
  13. package/lib/app/app/Features/Gamification/Tabs.d.ts +14 -0
  14. package/lib/{ui → app}/app/Features/Gamification/Tabs.js +12 -12
  15. package/lib/{ui → app}/app/Features/Gamification/UserSummary.d.ts +2 -2
  16. package/lib/{ui → app}/app/Features/Gamification/UserSummary.js +1 -1
  17. package/lib/{ui → app}/app/Features/Gamification/gamification-feature.d.ts +1 -0
  18. package/lib/{ui → app}/app/Features/Gamification/index.d.ts +5 -5
  19. package/lib/app/app/Features/Gamification/index.js +88 -0
  20. package/lib/{ui → app}/app/Features/index.d.ts +5 -5
  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/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/app/app/Notifications/Onboarding/index.d.ts +14 -0
  27. package/lib/app/app/Notifications/Onboarding/index.js +168 -0
  28. package/lib/app/app/Notifications/index.d.ts +13 -0
  29. package/lib/{ui → app}/app/Notifications/index.js +24 -24
  30. package/lib/app/app/Notifications/styles.d.ts +9 -0
  31. package/lib/app/app/Notifications/styles.js +31 -0
  32. package/lib/app/app/Points/index.d.ts +5 -0
  33. package/lib/{ui → app}/app/Points/index.js +1 -1
  34. package/lib/app/app/index.d.ts +11 -0
  35. package/lib/app/app/index.js +101 -0
  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/app/app/useApp.d.ts +20 -0
  45. package/lib/app/app/useApp.js +48 -0
  46. package/lib/app/app/useAppContext.d.ts +8 -0
  47. package/lib/app/app/useAppContext.js +8 -0
  48. package/lib/app/index.d.ts +6 -0
  49. package/lib/app/login/demo.d.ts +5 -0
  50. package/lib/{ui → app}/login/index.d.ts +0 -1
  51. package/lib/{ui → app}/login/index.js +1 -1
  52. package/lib/app/login/styles.d.ts +7 -0
  53. package/lib/app/login/styles.js +39 -0
  54. package/lib/app/masters/Features/FeatureProvider.d.ts +11 -0
  55. package/lib/app/masters/Features/FeatureProvider.js +38 -0
  56. package/lib/app/masters/Features/Gamification/Friends.d.ts +3 -0
  57. package/lib/app/masters/Features/Gamification/Friends.js +19 -0
  58. package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +9 -0
  59. package/lib/{ui/app → app/masters}/Features/Gamification/Leaderboard.js +10 -10
  60. package/lib/app/masters/Features/Gamification/Question.d.ts +5 -0
  61. package/lib/{ui/app → app/masters}/Features/Gamification/Question.js +15 -15
  62. package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +6 -0
  63. package/lib/{ui/app → app/masters}/Features/Gamification/QuestionsList.js +1 -1
  64. package/lib/app/masters/Features/Gamification/Tabs.d.ts +14 -0
  65. package/lib/app/masters/Features/Gamification/Tabs.js +44 -0
  66. package/lib/app/masters/Features/Gamification/UserSummary.d.ts +5 -0
  67. package/lib/app/masters/Features/Gamification/UserSummary.js +18 -0
  68. package/lib/app/masters/Features/Gamification/gamification-feature.d.ts +3 -0
  69. package/lib/app/masters/Features/Gamification/gamification-feature.js +4 -0
  70. package/lib/app/masters/Features/Gamification/index.d.ts +23 -0
  71. package/lib/{ui/app → app/masters}/Features/Gamification/index.js +28 -28
  72. package/lib/app/masters/Features/index.d.ts +24 -0
  73. package/lib/app/masters/Features/index.js +37 -0
  74. package/lib/{ui/app → app/masters}/Navigation/MastersNavigation/index.d.ts +6 -6
  75. package/lib/{ui/app → app/masters}/Navigation/MastersNavigation/index.js +5 -5
  76. package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +8 -0
  77. package/lib/app/masters/Notifications/Onboarding/Notification/index.js +18 -0
  78. package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +9 -0
  79. package/lib/{ui/app → app/masters}/Notifications/Onboarding/Notification/styles.js +16 -16
  80. package/lib/app/masters/Notifications/Onboarding/index.d.ts +14 -0
  81. package/lib/{ui/app → app/masters}/Notifications/Onboarding/index.js +87 -90
  82. package/lib/app/masters/Notifications/index.d.ts +13 -0
  83. package/lib/app/masters/Notifications/index.js +164 -0
  84. package/lib/app/masters/Notifications/styles.d.ts +9 -0
  85. package/lib/{ui/app → app/masters}/Notifications/styles.js +11 -11
  86. package/lib/app/masters/Points/index.d.ts +5 -0
  87. package/lib/app/masters/Points/index.js +28 -0
  88. package/lib/app/masters/masters.d.ts +14 -0
  89. package/lib/{ui/app → app/masters}/masters.js +33 -31
  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/app/useClipboardCopy.d.ts +3 -0
  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 -4
  106. package/lib/index.js +4 -4
  107. package/lib/ui/advertisement/banner/index.d.ts +6 -0
  108. package/lib/ui/advertisement/banner/index.js +27 -0
  109. package/lib/ui/advertisement/index.d.ts +9 -0
  110. package/lib/ui/advertisement/index.js +31 -0
  111. package/lib/ui/advertisement/mock.d.ts +3 -0
  112. package/lib/ui/advertisement/mock.js +33 -0
  113. package/lib/ui/advertisement/overlay/index.d.ts +5 -0
  114. package/lib/ui/advertisement/overlay/index.js +21 -0
  115. package/lib/ui/advertisement/sidebar/index.d.ts +6 -0
  116. package/lib/ui/advertisement/sidebar/index.js +23 -0
  117. package/lib/ui/animated-counter/index.d.ts +1 -1
  118. package/lib/ui/button/index.d.ts +0 -1
  119. package/lib/ui/button/styles.d.ts +2 -3
  120. package/lib/ui/gamification/constants.d.ts +1 -0
  121. package/lib/ui/gamification/copyNotification/index.d.ts +0 -1
  122. package/lib/ui/gamification/copyNotification/styles.d.ts +3 -4
  123. package/lib/ui/gamification/detail/header/index.d.ts +1 -1
  124. package/lib/ui/gamification/detail/header/styles.d.ts +4 -5
  125. package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -1
  126. package/lib/ui/gamification/detail/sponsor/index.js +13 -7
  127. package/lib/ui/gamification/insight/index.d.ts +1 -1
  128. package/lib/ui/gamification/insight/styles.d.ts +8 -9
  129. package/lib/ui/gamification/insight-list/index.d.ts +1 -1
  130. package/lib/ui/gamification/insight-list/styles.d.ts +2 -3
  131. package/lib/ui/gamification/invite-link/index.d.ts +0 -1
  132. package/lib/ui/gamification/invite-link/index.js +13 -13
  133. package/lib/ui/gamification/invite-link/styles.d.ts +5 -6
  134. package/lib/ui/gamification/invite-link/styles.js +11 -11
  135. package/lib/ui/gamification/leaderboard/index.d.ts +1 -1
  136. package/lib/ui/gamification/leaderboard/list-item/index.d.ts +2 -2
  137. package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -8
  138. package/lib/ui/gamification/leaderboard/static.d.ts +3 -3
  139. package/lib/ui/gamification/leaderboard/styles.d.ts +1 -2
  140. package/lib/ui/gamification/leaderboard/styles.js +1 -1
  141. package/lib/ui/gamification/onboarding/index.d.ts +3 -3
  142. package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +0 -1
  143. package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -6
  144. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +1 -0
  145. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +10 -11
  146. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +1 -1
  147. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +6 -6
  148. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +9 -10
  149. package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +1 -1
  150. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.d.ts +8 -9
  151. package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +0 -1
  152. package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +4 -5
  153. package/lib/ui/gamification/onboarding/styles.d.ts +5 -6
  154. package/lib/ui/gamification/points/index.d.ts +0 -1
  155. package/lib/ui/gamification/points/styles.d.ts +5 -6
  156. package/lib/ui/gamification/question/index.d.ts +2 -2
  157. package/lib/ui/gamification/question/index.js +26 -26
  158. package/lib/ui/gamification/question/insight/index.d.ts +1 -1
  159. package/lib/ui/gamification/question/insight/styles.d.ts +2 -3
  160. package/lib/ui/gamification/question/list/index.d.ts +2 -2
  161. package/lib/ui/gamification/question/list/styles.d.ts +1 -2
  162. package/lib/ui/gamification/question/notification/index.d.ts +2 -2
  163. package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
  164. package/lib/ui/gamification/question/notification/insight/styles.d.ts +7 -8
  165. package/lib/ui/gamification/question/notification/pill/index.d.ts +0 -1
  166. package/lib/ui/gamification/question/notification/pill/styles.d.ts +3 -4
  167. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.d.ts +0 -1
  168. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +58 -31
  169. package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -2
  170. package/lib/ui/gamification/question/notification/prediction-result/index.js +55 -54
  171. package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +11 -10
  172. package/lib/ui/gamification/question/notification/styles.d.ts +6 -7
  173. package/lib/ui/gamification/question/notification/tweet/index.d.ts +3 -3
  174. package/lib/ui/gamification/question/notification/tweet/styles.d.ts +4 -5
  175. package/lib/ui/gamification/question/styles.d.ts +14 -14
  176. package/lib/ui/gamification/question/styles.js +48 -43
  177. package/lib/ui/gamification/question/twitter/index.d.ts +2 -2
  178. package/lib/ui/gamification/question/twitter/styles.d.ts +3 -4
  179. package/lib/ui/gamification/tabs/index.d.ts +0 -1
  180. package/lib/ui/gamification/tabs/styles.d.ts +4 -5
  181. package/lib/ui/gamification/user-statistics/components/rank/index.d.ts +0 -1
  182. package/lib/ui/gamification/user-statistics/components/rank/styles.d.ts +3 -4
  183. package/lib/ui/gamification/user-statistics/components/statistic/index.d.ts +0 -1
  184. package/lib/ui/gamification/user-statistics/components/statistic/styles.d.ts +3 -4
  185. package/lib/ui/gamification/user-statistics/index.d.ts +0 -1
  186. package/lib/ui/gamification/user-statistics/styles.d.ts +17 -18
  187. package/lib/ui/gamification/vote/alert/index.d.ts +2 -1
  188. package/lib/ui/gamification/vote/alert/styles.d.ts +3 -4
  189. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
  190. package/lib/ui/gamification/vote/feedback/styles.d.ts +8 -9
  191. package/lib/ui/gamification/vote/index.d.ts +1 -1
  192. package/lib/ui/gamification/vote/insight-details/index.d.ts +1 -1
  193. package/lib/ui/gamification/vote/insight-details/styles.d.ts +2 -3
  194. package/lib/ui/gamification/vote/styles.d.ts +4 -5
  195. package/lib/ui/gamification/vote/styles.js +1 -1
  196. package/lib/ui/gamification/vote/twitter-details/index.d.ts +2 -2
  197. package/lib/ui/gamification/vote/twitter-details/styles.d.ts +2 -3
  198. package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
  199. package/lib/ui/gamification/vote/vote-option/styles.d.ts +19 -16
  200. package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
  201. package/lib/ui/gamification/vote/win-bar/styles.d.ts +6 -7
  202. package/lib/ui/icons/index.d.ts +1 -1
  203. package/lib/ui/icons/index.js +107 -47
  204. package/lib/ui/lottie/index.d.ts +0 -1
  205. package/lib/ui/modal/index.d.ts +0 -1
  206. package/lib/ui/modal/index.js +1 -1
  207. package/lib/ui/navigation/button/Channels.d.ts +1 -1
  208. package/lib/ui/navigation/button/FeaturedGroups.d.ts +1 -1
  209. package/lib/ui/navigation/button/LeaderBoard.d.ts +1 -1
  210. package/lib/ui/navigation/button/index.d.ts +1 -1
  211. package/lib/ui/navigation/button/styles.d.ts +6 -7
  212. package/lib/ui/navigation/index.d.ts +1 -1
  213. package/lib/ui/navigation/masters.d.ts +6 -5
  214. package/lib/ui/questions/insight/index.d.ts +1 -1
  215. package/lib/ui/questions/insight/styles.d.ts +6 -7
  216. package/lib/ui/questions/twitter/account/index.d.ts +0 -1
  217. package/lib/ui/questions/twitter/account/styles.d.ts +6 -7
  218. package/lib/ui/questions/twitter/index.d.ts +1 -1
  219. package/lib/ui/questions/twitter/styles.d.ts +14 -11
  220. package/lib/ui/show-in/index.d.ts +2 -1
  221. package/lib/ui/skeleton/index.d.ts +0 -1
  222. package/lib/ui/skeleton/styles.d.ts +1 -2
  223. package/lib/ui/slide-in/index.d.ts +11 -0
  224. package/lib/ui/slide-in/index.js +29 -0
  225. package/lib/ui/theme/MastersColors.d.ts +1 -0
  226. package/lib/ui/theme/MastersColors.js +15 -0
  227. package/lib/ui/theme/ThemeColors.js +1 -1
  228. package/lib/ui/theme/breakpoints.d.ts +1 -0
  229. package/lib/ui/theme/constants.d.ts +12 -59
  230. package/lib/ui/theme/constants.js +26 -55
  231. package/lib/ui/theme/index.d.ts +0 -1
  232. package/lib/ui/theme/masters-theme.d.ts +5 -0
  233. package/lib/ui/theme/masters-theme.js +64 -0
  234. package/lib/ui/theme/masters.d.ts +4 -0
  235. package/lib/ui/theme/masters.js +6 -0
  236. package/lib/ui/theme/theme.d.ts +1 -1
  237. package/lib/ui/theme/theme.js +2 -2
  238. package/lib/ui/timer/index.d.ts +3 -2
  239. package/lib/ui/timer/index.js +32 -32
  240. package/lib/ui/video-player/index.d.ts +0 -1
  241. package/lib/ui/video-player/styles.d.ts +5 -6
  242. package/lib/utils/debug/storage.js +1 -1
  243. package/lib/utils/storage.js +1 -1
  244. package/package.json +48 -38
  245. package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +0 -9
  246. package/lib/ui/app/Features/Gamification/Tabs.d.ts +0 -14
  247. package/lib/ui/app/Navigation/index.d.ts +0 -9
  248. package/lib/ui/app/Navigation/index.js +0 -30
  249. package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +0 -10
  250. package/lib/ui/app/Notifications/Onboarding/index.d.ts +0 -14
  251. package/lib/ui/app/Notifications/index.d.ts +0 -13
  252. package/lib/ui/app/Notifications/styles.d.ts +0 -8
  253. package/lib/ui/app/Points/index.d.ts +0 -5
  254. package/lib/ui/app/masters.d.ts +0 -20
  255. package/lib/ui/app/styles.d.ts +0 -15
  256. package/lib/ui/app/useClipboardCopy.d.ts +0 -3
  257. package/lib/ui/app/useMastersApp.js +0 -68
  258. package/lib/ui/app/useMastersContext.d.ts +0 -8
  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/Features/Gamification/gamification-feature.js +0 -0
  263. /package/lib/{ui → app}/app/Features/index.js +0 -0
  264. /package/lib/{ui → app}/app/Notifications/Onboarding/Notification/index.js +0 -0
  265. /package/lib/{styles_z07sl8-l0sNRNKZ.js → app/index.js} +0 -0
  266. /package/lib/{ui → app}/login/demo.js +0 -0
  267. /package/lib/{ui/app → app/masters}/useMastersContext.js +0 -0
  268. /package/lib/{ui/app → app}/useImagesPreload.d.ts +0 -0
  269. /package/lib/{ui/app → app}/useImagesPreload.js +0 -0
  270. /package/lib/{ui/app → app}/useSdkFeature.js +0 -0
@@ -0,0 +1,8 @@
1
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+
3
+ export declare const StreamLayerSDKAdvertisement: React.FC<{
4
+ sdk: StreamLayerSDK;
5
+ event?: string;
6
+ sidebar?: 'left' | 'right';
7
+ banner?: 'top' | 'bottom';
8
+ }>;
@@ -0,0 +1,38 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useStore as m } from "@nanostores/react";
3
+ import { useAnalyticsListener as c } from "../../../hooks/analytics.js";
4
+ import { useEffect as l, useRef as f, useMemo as u } from "react";
5
+ import { eventBus as d } from "@streamlayer/sdk-web-interfaces";
6
+ import { FeatureType as v } from "@streamlayer/sdk-web-types";
7
+ import { useAppApp as p } from "../useApp.js";
8
+ import { AdvertisementUI as A } from "../../../ui/advertisement/index.js";
9
+ const g = (e) => {
10
+ const t = e.target;
11
+ t instanceof HTMLAnchorElement && t.target === "_blank" && t.getAttribute("data-analytics") === "web-link" && d.emit("poll", {
12
+ action: "navigated",
13
+ payload: {}
14
+ });
15
+ }, S = ({ gamification: e, sidebar: t, banner: n }) => {
16
+ const r = f(null), o = m(e.advertisement.$list), i = u(
17
+ () => e.advertisement.getActiveAdvertisement(),
18
+ // fire getActiveNotification when notifications were updated
19
+ // eslint-disable-next-line react-hooks/exhaustive-deps
20
+ [o]
21
+ );
22
+ return c(r, { enabled: !!i, event: "click", listener: g }), i ? /* @__PURE__ */ s("div", { ref: r, children: /* @__PURE__ */ s(A, { sidebar: t, banner: n, advertisement: i }) }) : null;
23
+ }, F = ({ sdk: e, sidebar: t, banner: n, event: r }) => {
24
+ const { deactivate: o } = p(e);
25
+ l(() => {
26
+ r ? e.createEventSession(r) : o();
27
+ }, [r, o, e]);
28
+ const i = m(e.featuresList.getStore());
29
+ if (t && n)
30
+ return /* @__PURE__ */ s("div", { style: { color: "red" }, children: "define either sidebar or banner, not both." });
31
+ if (!i)
32
+ return null;
33
+ const a = e.getFeature(v.GAMES);
34
+ return a ? /* @__PURE__ */ s(S, { gamification: a, sidebar: t, banner: n }) : null;
35
+ };
36
+ export {
37
+ F as StreamLayerSDKAdvertisement
38
+ };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { Features } from '@streamlayer/sdk-web-features';
3
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
3
+
4
4
  /** Here we check data, render loaders, load data and perform some side effects for the active feature */
5
5
  export declare const FeatureProvider: React.FC<{
6
6
  feature: Features;
@@ -1,12 +1,12 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import { styled as u } from "@linaria/react";
3
3
  import { useStore as i } from "@nanostores/react";
4
- import { FeatureStatus as p } from "@streamlayer/sdk-web-interfaces";
5
- const e = /* @__PURE__ */ u("div")({
4
+ import { FeatureStatus as c } from "@streamlayer/sdk-web-interfaces";
5
+ const o = /* @__PURE__ */ u("div")({
6
6
  name: "LoadingContainer",
7
- class: "l1p1hxob",
7
+ class: "lclc0ej",
8
8
  propsAsIs: !1
9
- }), h = ({
9
+ }), v = ({
10
10
  feature: n,
11
11
  sdk: a,
12
12
  children: s,
@@ -16,17 +16,17 @@ const e = /* @__PURE__ */ u("div")({
16
16
  const f = i(n.status), t = i(a.sdkStore.slStreamId);
17
17
  if (!d) {
18
18
  if (t != null && t.loading && !t.data)
19
- return /* @__PURE__ */ o(e, {
19
+ return /* @__PURE__ */ e(o, {
20
20
  className: r,
21
21
  children: "Event is loading..."
22
22
  });
23
23
  if (!(t != null && t.data))
24
- return /* @__PURE__ */ o(e, {
24
+ return /* @__PURE__ */ e(o, {
25
25
  className: r,
26
26
  children: "Event is forbidden..."
27
27
  });
28
- if (f !== p.Ready)
29
- return /* @__PURE__ */ o(e, {
28
+ if (f !== c.Ready)
29
+ return /* @__PURE__ */ e(o, {
30
30
  className: r,
31
31
  children: "Wait feature..."
32
32
  });
@@ -34,5 +34,5 @@ const e = /* @__PURE__ */ u("div")({
34
34
  return s;
35
35
  };
36
36
  export {
37
- h as FeatureProvider
37
+ v as FeatureProvider
38
38
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Friends: React.FC<{
3
2
  deepLink?: string;
4
3
  }>;
@@ -1,9 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { styled as n } from "@linaria/react";
3
- import { OnboardingInviteCard as t } from "../../../gamification/onboarding/slides/onboarding-invite-card/index.js";
3
+ import { OnboardingInviteCard as t } from "../../../../ui/gamification/onboarding/slides/onboarding-invite-card/index.js";
4
4
  const r = /* @__PURE__ */ n("div")({
5
5
  name: "InviteFriendsContainer",
6
- class: "i1xmyxez",
6
+ class: "i1c9dygq",
7
7
  propsAsIs: !1
8
8
  }), a = ({
9
9
  deepLink: i
@@ -0,0 +1,9 @@
1
+ import { ScrollNodeRef } from '../../..';
2
+ import { ScrollStore } from '../../../useSdkScroll';
3
+ import { Gamification } from '@streamlayer/feature-gamification';
4
+
5
+ export declare const Leaderboard: React.FC<{
6
+ gamification: Gamification;
7
+ scrollNode: ScrollNodeRef;
8
+ scrollStore: ScrollStore;
9
+ }>;
@@ -0,0 +1,55 @@
1
+ import { jsx as r, jsxs as f, Fragment as L } from "react/jsx-runtime";
2
+ import { styled as h } from "@linaria/react";
3
+ import { useStore as i } from "@nanostores/react";
4
+ import { useClipboardCopy as k } from "../../../useClipboardCopy.js";
5
+ import { useRef as u } from "react";
6
+ import { InviteLink as I } from "../../../../ui/gamification/invite-link/index.js";
7
+ import "react-virtualized-auto-sizer";
8
+ import "react-window";
9
+ import "react-window-infinite-loader";
10
+ import "../../../../ui/icons/index.js";
11
+ import "../../../../ui/gamification/leaderboard/list-item/styles.js";
12
+ /* empty css */
13
+ import { LeaderboardStaticList as b } from "../../../../ui/gamification/leaderboard/static.js";
14
+ import { Friends as y } from "./Friends.js";
15
+ const C = /* @__PURE__ */ h("div")({
16
+ name: "InviteLinkContainer",
17
+ class: "i1odbhm4",
18
+ propsAsIs: !1
19
+ }), q = ({
20
+ gamification: e,
21
+ scrollNode: s,
22
+ scrollStore: p
23
+ }) => {
24
+ const t = u(null), {
25
+ data: n,
26
+ hasMore: d,
27
+ loading: m,
28
+ key: l
29
+ } = i(e.leaderboardList.$store), {
30
+ data: o
31
+ } = i(e.deepLink.$store), [a, c] = k(t);
32
+ return !n.length && !m ? /* @__PURE__ */ r(y, {
33
+ deepLink: o
34
+ }) : /* @__PURE__ */ f(L, {
35
+ children: [/* @__PURE__ */ r(b, {
36
+ items: n,
37
+ scrollNode: s,
38
+ scrollStore: p,
39
+ fetchMore: e.leaderboardList.fetchMore,
40
+ hasMore: d,
41
+ openItemDetail: e.openUser,
42
+ currentUserId: e.currentUserId.get()
43
+ }, l), o && /* @__PURE__ */ r(C, {
44
+ ref: t,
45
+ children: /* @__PURE__ */ r(I, {
46
+ onClick: () => a(o),
47
+ title: "Invite Friends",
48
+ description: "Challenge them now!"
49
+ })
50
+ }), c]
51
+ });
52
+ };
53
+ export {
54
+ q as Leaderboard
55
+ };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Gamification } from '@streamlayer/feature-gamification';
2
+
3
3
  export declare const Question: React.FC<{
4
4
  gamification: Gamification;
5
5
  }>;
@@ -0,0 +1,69 @@
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { styled as c } from "@linaria/react";
3
+ import { useStore as u } from "@nanostores/react";
4
+ import { useAppContext as m } from "../../useAppContext.js";
5
+ import { QuestionType as p } from "@streamlayer/sdk-web-types";
6
+ import { VoteHeader as f } from "../../../../ui/gamification/detail/header/index.js";
7
+ import { Sponsor as b } from "../../../../ui/gamification/detail/sponsor/index.js";
8
+ import { Vote as y, VoteSkeleton as V } from "../../../../ui/gamification/vote/index.js";
9
+ import { InsightDetails as d } from "../../../../ui/gamification/vote/insight-details/index.js";
10
+ import { TwitterDetails as h } from "../../../../ui/gamification/vote/twitter-details/index.js";
11
+ const x = /* @__PURE__ */ c("div")({
12
+ name: "QuestionContainer",
13
+ class: "q14ckf9e",
14
+ propsAsIs: !1
15
+ }), S = ({
16
+ openedQuestion: t
17
+ }) => {
18
+ var e, s;
19
+ const {
20
+ sdk: o
21
+ } = m();
22
+ return ((e = t == null ? void 0 : t.attributes) == null ? void 0 : e.attributes.case) === "insight" ? /* @__PURE__ */ r(d, {
23
+ ...t.attributes.attributes.value,
24
+ controlVideo: o == null ? void 0 : o.controlVideoPlayer
25
+ }) : ((s = t == null ? void 0 : t.attributes) == null ? void 0 : s.attributes.case) === "tweet" ? /* @__PURE__ */ r(h, {
26
+ ...t.attributes.attributes.value,
27
+ controlVideo: o == null ? void 0 : o.controlVideoPlayer
28
+ }) : null;
29
+ }, g = ({
30
+ extendedQuestion: t,
31
+ vote: o,
32
+ close: e
33
+ }) => {
34
+ const {
35
+ loading: s,
36
+ data: i
37
+ } = t;
38
+ return i ? /* @__PURE__ */ r(y, {
39
+ vote: o,
40
+ close: e,
41
+ openedQuestion: i,
42
+ isLoading: !!s
43
+ }) : /* @__PURE__ */ r(V, {});
44
+ }, I = ({
45
+ gamification: t
46
+ }) => {
47
+ var i, n, l;
48
+ const o = u(t.openedQuestion.$store), e = u(t.openedQuestion.$extendedStore);
49
+ if (!o)
50
+ return null;
51
+ const s = o.type;
52
+ return /* @__PURE__ */ a(x, {
53
+ children: [/* @__PURE__ */ r(f, {
54
+ close: t.closeQuestion,
55
+ type: ((i = o.attributes) == null ? void 0 : i.type) || p.UNSET
56
+ }), s === "question" && /* @__PURE__ */ r(g, {
57
+ vote: t.submitAnswer,
58
+ close: t.closeQuestion,
59
+ extendedQuestion: e
60
+ }), s !== "question" && /* @__PURE__ */ r(S, {
61
+ openedQuestion: o
62
+ }), /* @__PURE__ */ r(b, {
63
+ sponsorLogo: (l = (n = e.data) == null ? void 0 : n.sponsorship) == null ? void 0 : l.logo
64
+ })]
65
+ });
66
+ };
67
+ export {
68
+ I as Question
69
+ };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { Gamification } from '@streamlayer/feature-gamification';
1
+ import { Gamification } from '@streamlayer/feature-gamification';
2
+
3
3
  export declare const QuestionsList: React.FC<{
4
4
  store: ReturnType<Exclude<Gamification['feedList'], undefined>['getStore']>;
5
5
  openQuestion: (questionId: string) => void;
@@ -0,0 +1,11 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useStore as i } from "@nanostores/react";
3
+ import { useAppContext as n } from "../../useAppContext.js";
4
+ import { QuestionList as m } from "../../../../ui/gamification/question/list/index.js";
5
+ const a = ({ store: t, openQuestion: r }) => {
6
+ const { sdk: o } = n(), e = i(t);
7
+ return /* @__PURE__ */ s(m, { openQuestion: r, questions: e.data, controlVideo: o == null ? void 0 : o.controlVideoPlayer });
8
+ };
9
+ export {
10
+ a as QuestionsList
11
+ };
@@ -0,0 +1,14 @@
1
+ import { AppNodeRef, ScrollNodeRef } from '../../..';
2
+ import { ResponsiveStore } from '../../../useSdkResponsive';
3
+ import { ScrollStore } from '../../../useSdkScroll';
4
+ import { Gamification } from '@streamlayer/feature-gamification';
5
+
6
+ export declare const Tabs: React.FC<{
7
+ appNode: AppNodeRef;
8
+ gamification: Gamification;
9
+ scrollStore: ScrollStore;
10
+ scrollNode: ScrollNodeRef;
11
+ responsiveStore: ResponsiveStore;
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ }>;
@@ -1,20 +1,20 @@
1
1
  import { jsxs as h, jsx as e, Fragment as x } from "react/jsx-runtime";
2
2
  import { useStore as u } from "@nanostores/react";
3
- import { useState as D, useTransition as T, useEffect as v } from "react";
4
- import { TabsContainer as C, TabsNavContainer as A, SDKWhiteContainer as I, UserSummaryContainer as P, SDKContentContainer as S, LeaderboardContainer as V } from "../../styles.js";
5
- import { scrollIntoAppView as E } from "../../useSdkScroll.js";
6
- import { ActivePages as a, Tabs as K } from "../../../gamification/tabs/index.js";
3
+ import { TabsContainer as D, TabsNavContainer as T, SDKWhiteContainer as v, UserSummaryContainer as C, SDKContentContainer as A, LeaderboardContainer as I } from "../../../styles.js";
4
+ import { scrollIntoAppView as P } from "../../../useSdkScroll.js";
5
+ import { useState as S, useTransition as V, useEffect as E } from "react";
6
+ import { ActivePages as a, Tabs as K } from "../../../../ui/gamification/tabs/index.js";
7
7
  import { Leaderboard as L } from "./Leaderboard.js";
8
8
  import { QuestionsList as F } from "./QuestionsList.js";
9
9
  import { UserSummary as O } from "./UserSummary.js";
10
10
  const q = ({ gamification: s, className: f, scrollStore: t, scrollNode: l, appNode: c, style: b, responsiveStore: n }) => {
11
- const { tabsShown: d } = u(t, { keys: ["tabsShown"] }), [i, w] = D(a.HOME), [, y] = T(), { sdkInDesktopView: m, screen: g } = u(n, { keys: ["sdkInDesktopView"] }), k = (r) => {
11
+ const { tabsShown: d } = u(t, { keys: ["tabsShown"] }), [i, w] = S(a.HOME), [, y] = V(), { sdkInDesktopView: m, screen: g } = u(n, { keys: ["sdkInDesktopView"] }), k = (r) => {
12
12
  y(() => {
13
13
  var p;
14
- w(r), m === !1 && (((p = c.current) == null ? void 0 : p.getBoundingClientRect().y) || 0) < 0 && E(c, g.size, { behavior: "instant" });
14
+ w(r), m === !1 && (((p = c.current) == null ? void 0 : p.getBoundingClientRect().y) || 0) < 0 && P(c, g.size, { behavior: "instant" });
15
15
  });
16
16
  };
17
- v(() => t.subscribe((r) => {
17
+ E(() => t.subscribe((r) => {
18
18
  if (r.scrollPosition === 0) {
19
19
  t.setKey("tabsShown", !0);
20
20
  return;
@@ -22,9 +22,9 @@ const q = ({ gamification: s, className: f, scrollStore: t, scrollNode: l, appNo
22
22
  n.get().sdkInDesktopView ? t.setKey("tabsShown", r.scrollDirection === "backward") : t.setKey("tabsShown", r.scrollDirection === "forward");
23
23
  }), [t, n]);
24
24
  let o = "0px";
25
- return m ? o = d ? "0px" : "calc(8px - var(--header-height) - var(--header-offset))" : o = d ? "calc(var(--header-height) + var(--header-offset) - 2px)" : "0px", /* @__PURE__ */ h(C, { className: f, style: b, children: [
25
+ return m ? o = d ? "0px" : "calc(8px - var(--header-height) - var(--header-offset))" : o = d ? "calc(var(--header-height) + var(--header-offset) - 2px)" : "0px", /* @__PURE__ */ h(D, { className: f, style: b, children: [
26
26
  /* @__PURE__ */ e(
27
- A,
27
+ T,
28
28
  {
29
29
  style: {
30
30
  top: o
@@ -33,10 +33,10 @@ const q = ({ gamification: s, className: f, scrollStore: t, scrollNode: l, appNo
33
33
  }
34
34
  ),
35
35
  i === a.HOME && /* @__PURE__ */ h(x, { children: [
36
- /* @__PURE__ */ e(I, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(O, { userSummary: s.userSummary }) }) }),
37
- /* @__PURE__ */ e(S, { style: { flex: 1 }, children: /* @__PURE__ */ e(F, { openQuestion: s.openQuestion, store: s.feedList.getStore() }) })
36
+ /* @__PURE__ */ e(v, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(O, { userSummary: s.userSummary }) }) }),
37
+ /* @__PURE__ */ e(A, { style: { flex: 1 }, children: /* @__PURE__ */ e(F, { openQuestion: s.openQuestion, store: s.feedList.getStore() }) })
38
38
  ] }),
39
- i === a.LEADERBOARD && /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(L, { scrollStore: t, scrollNode: l, gamification: s }) })
39
+ i === a.LEADERBOARD && /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(L, { scrollStore: t, scrollNode: l, gamification: s }) })
40
40
  ] });
41
41
  };
42
42
  export {
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { Gamification } from '@streamlayer/feature-gamification';
1
+ import { Gamification } from '@streamlayer/feature-gamification';
2
+
3
3
  export declare const UserSummary: React.FC<{
4
4
  userSummary: Exclude<Gamification['userSummary'], undefined>;
5
5
  }>;
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as n } from "react";
3
- import { UserStatistics as a } from "../../../gamification/user-statistics/index.js";
3
+ import { UserStatistics as a } from "../../../../ui/gamification/user-statistics/index.js";
4
4
  const b = ({ userSummary: r }) => {
5
5
  var e;
6
6
  const [t, s] = i(void 0);
@@ -1,2 +1,3 @@
1
1
  import { GamificationOverlay } from './';
2
+
2
3
  export default GamificationOverlay;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import { type Gamification as GamificationClass } from '@streamlayer/feature-gamification';
3
- import type { AppNodeRef, ScrollNodeRef } from '../../masters';
4
- import { ResponsiveStore } from '../../useSdkResponsive';
5
- import { ScrollStore } from '../../useSdkScroll';
1
+ import { AppNodeRef, ScrollNodeRef } from '../../..';
2
+ import { ResponsiveStore } from '../../../useSdkResponsive';
3
+ import { ScrollStore } from '../../../useSdkScroll';
4
+ import { Gamification as GamificationClass } from '@streamlayer/feature-gamification';
5
+
6
6
  export declare const GamificationOverlay: React.FC<{
7
7
  gamification: GamificationClass;
8
8
  className?: string;
@@ -0,0 +1,88 @@
1
+ import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
+ import { styled as m } from "@linaria/react";
3
+ import { useStore as l } from "@nanostores/react";
4
+ import { SDKWhiteContainer as h } from "../../../styles.js";
5
+ import { useHideTransition as C } from "../../../../hooks/showIn.js";
6
+ import { VoteHeader as k } from "../../../../ui/gamification/detail/header/index.js";
7
+ import { UserStatistics as S } from "../../../../ui/gamification/user-statistics/index.js";
8
+ import { ModalPortal as U } from "../../../../ui/modal/index.js";
9
+ import { ShowIn as I } from "../../../../ui/show-in/index.js";
10
+ import { Question as v } from "./Question.js";
11
+ import { Tabs as x } from "./Tabs.js";
12
+ const y = () => I, u = /* @__PURE__ */ m(y())({
13
+ name: "OpenedContainer",
14
+ class: "ouvguos",
15
+ propsAsIs: !0
16
+ }), O = /* @__PURE__ */ m("div")({
17
+ name: "UserContainer",
18
+ class: "u1eu4lbg",
19
+ propsAsIs: !1
20
+ }), b = ({
21
+ correct: e,
22
+ incorrect: r
23
+ }) => {
24
+ const o = e + r;
25
+ return o === 0 ? 0 : Math.round(e / o * 100);
26
+ }, E = ({
27
+ gamification: e,
28
+ scrollStore: r,
29
+ className: o,
30
+ appNode: i,
31
+ scrollNode: s,
32
+ responsiveStore: t
33
+ }) => /* @__PURE__ */ n(x, {
34
+ appNode: i,
35
+ scrollStore: r,
36
+ scrollNode: s,
37
+ className: o,
38
+ gamification: e,
39
+ responsiveStore: t
40
+ }), F = ({
41
+ gamification: e,
42
+ className: r,
43
+ appNode: o,
44
+ responsiveStore: i
45
+ }) => {
46
+ const s = l(e.openedQuestion.$store), t = l(e.openedUser), {
47
+ sdkInDesktopView: p
48
+ } = l(i, {
49
+ keys: ["sdkInDesktopView"]
50
+ }), {
51
+ hiding: a,
52
+ onAnimationEnd: c
53
+ } = C();
54
+ if (!o.current || !s && !t)
55
+ return null;
56
+ const d = s ? /* @__PURE__ */ n(u, {
57
+ className: r,
58
+ hiding: a,
59
+ onAnimationEnd: c,
60
+ children: /* @__PURE__ */ n(v, {
61
+ gamification: e
62
+ })
63
+ }) : t ? /* @__PURE__ */ n(u, {
64
+ className: r,
65
+ hiding: a,
66
+ onAnimationEnd: c,
67
+ children: /* @__PURE__ */ f(O, {
68
+ children: [/* @__PURE__ */ n(k, {
69
+ label: "Friend's Rank",
70
+ close: e.closeUser
71
+ }), /* @__PURE__ */ n(h, {
72
+ children: /* @__PURE__ */ n(S, {
73
+ ...t,
74
+ successRate: b(t)
75
+ })
76
+ })]
77
+ })
78
+ }) : null;
79
+ return /* @__PURE__ */ n(U, {
80
+ container: o,
81
+ useContainer: !p,
82
+ children: d
83
+ });
84
+ };
85
+ export {
86
+ E as GamificationOverlay,
87
+ F as GamificationOverlayStandalone
88
+ };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import { AppNodeRef, ScrollNodeRef } from '../..';
2
+ import { ResponsiveStore } from '../../useSdkResponsive';
3
+ import { ScrollStore } from '../../useSdkScroll';
2
4
  import { Features } from '@streamlayer/sdk-web-features';
3
- import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
4
- import type { AppNodeRef, ScrollNodeRef } from '../masters';
5
- import { ResponsiveStore } from '../useSdkResponsive';
6
- import { ScrollStore } from '../useSdkScroll';
5
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
6
+
7
7
  /** render feature by type */
8
8
  export declare const ActiveFeature: React.FC<{
9
9
  sdk: StreamLayerSDK;
@@ -0,0 +1,6 @@
1
+ import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
2
+
3
+ export declare const SDKNavigation: import('react').ForwardRefExoticComponent<{
4
+ sdk: StreamLayerSDK;
5
+ className?: string;
6
+ } & import('react').RefAttributes<HTMLDivElement | null>>;
@@ -0,0 +1,64 @@
1
+ import { jsx as i, jsxs as f } from "react/jsx-runtime";
2
+ import { styled as u } from "@linaria/react";
3
+ import { useStore as n } from "@nanostores/react";
4
+ import { forwardRef as y, useMemo as p } from "react";
5
+ import { AvailableFeatures as S } from "@streamlayer/sdk-web-features";
6
+ import { FeatureType as g } from "@streamlayer/sdk-web-types";
7
+ import { SvgIcon as h } from "../../../ui/icons/index.js";
8
+ import { Button as s } from "../../../ui/navigation/button/index.js";
9
+ import { Navigation as C, NavigationItems as F } from "../../../ui/navigation/masters.js";
10
+ const x = () => h, A = /* @__PURE__ */ u(x())({
11
+ name: "ButtonIcon",
12
+ class: "b11wpe79",
13
+ propsAsIs: !0
14
+ }), K = y(({
15
+ sdk: e,
16
+ className: l
17
+ }, m) => {
18
+ const r = n(e.sdkStore.organizationSettings), t = n(e.sdkStore.streamSettings), a = n(e.getActiveFeature()), c = p(() => {
19
+ const o = (t == null ? void 0 : t.data) || (r == null ? void 0 : r.data);
20
+ return o != null && o.overlays ? o.overlays : [];
21
+ }, [r, t]), d = p(() => [...c.filter(({
22
+ enableSdkButton: o
23
+ }) => o).map((o) => ({
24
+ id: o.type,
25
+ onClick: () => e.openFeature(o.type),
26
+ disabled: !(o.type in S),
27
+ label: o.name,
28
+ icon: /* @__PURE__ */ i("img", {
29
+ src: o.icon,
30
+ alt: ""
31
+ }),
32
+ /** multiplied by 10 to add the ability to insert custom buttons between our buttons */
33
+ position: o.position * 10
34
+ }))].sort((o, v) => o.position - v.position), [c, e]);
35
+ return /* @__PURE__ */ f(C, {
36
+ className: l,
37
+ children: [/* @__PURE__ */ i(F, {
38
+ children: [/* @__PURE__ */ i(s, {
39
+ id: "Channels",
40
+ onClick: () => e.closeFeature(),
41
+ label: "Channels",
42
+ active: a === 0
43
+ }, "Channels"), ...d.map((o) => o.id === g.GAMES ? /* @__PURE__ */ i(s, {
44
+ ...o,
45
+ active: o.id === a,
46
+ label: "StreamLayer +",
47
+ id: "featuredGroups",
48
+ icon: /* @__PURE__ */ i(A, {
49
+ name: "icon-btn-feature-groups",
50
+ "data-selected": o.id === a
51
+ })
52
+ }, o.id) : /* @__PURE__ */ i(s, {
53
+ ...o,
54
+ icon: void 0,
55
+ active: o.id === a
56
+ }, o.id))]
57
+ }), /* @__PURE__ */ i("div", {
58
+ ref: m
59
+ })]
60
+ });
61
+ });
62
+ export {
63
+ K as SDKNavigation
64
+ };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import type { Notification } from '@streamlayer/sdk-web-notifications';
1
+ import { Notification } from '@streamlayer/sdk-web-notifications';
3
2
  import { GameSettings } from '@streamlayer/sdk-web-types';
3
+
4
4
  export declare const Onboarding: React.FC<{
5
5
  close: Notification['close'];
6
6
  action: Notification['action'];
@@ -0,0 +1,9 @@
1
+ export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
+ export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const CloseIcon: any;
4
+ export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
6
+ export declare const PresentsTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
+ export declare const Subtitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
+ export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
+ export declare const ActionButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
@@ -0,0 +1,50 @@
1
+ import { styled as s } from "@linaria/react";
2
+ import { SvgIcon as o } from "../../../../../ui/icons/index.js";
3
+ const a = /* @__PURE__ */ s("div")({
4
+ name: "Container",
5
+ class: "c1qjj4d4",
6
+ propsAsIs: !1
7
+ }), c = /* @__PURE__ */ s("div")({
8
+ name: "CloseIconWrap",
9
+ class: "c1lg6b8a",
10
+ propsAsIs: !1
11
+ }), e = () => o, l = /* @__PURE__ */ s(e())({
12
+ name: "CloseIcon",
13
+ class: "c159el66",
14
+ propsAsIs: !0
15
+ }), p = /* @__PURE__ */ s("div")({
16
+ name: "Title",
17
+ class: "t16xmufv",
18
+ propsAsIs: !1
19
+ }), i = /* @__PURE__ */ s("img")({
20
+ name: "SponsorLogo",
21
+ class: "s83lc21",
22
+ propsAsIs: !1
23
+ }), r = /* @__PURE__ */ s("div")({
24
+ name: "PresentsTitle",
25
+ class: "p1p7igia",
26
+ propsAsIs: !1
27
+ }), m = /* @__PURE__ */ s("div")({
28
+ name: "Subtitle",
29
+ class: "s1eftsbu",
30
+ propsAsIs: !1
31
+ }), I = /* @__PURE__ */ s("div")({
32
+ name: "Description",
33
+ class: "d8uezec",
34
+ propsAsIs: !1
35
+ }), f = /* @__PURE__ */ s("button")({
36
+ name: "ActionButton",
37
+ class: "a1h1bk90",
38
+ propsAsIs: !1
39
+ });
40
+ export {
41
+ f as ActionButton,
42
+ l as CloseIcon,
43
+ c as CloseIconWrap,
44
+ a as Container,
45
+ I as Description,
46
+ r as PresentsTitle,
47
+ i as SponsorLogo,
48
+ m as Subtitle,
49
+ p as Title
50
+ };