@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.
- package/lib/app/app/Advertisement/index.d.ts +10 -0
- package/lib/app/app/Advertisement/index.js +89 -0
- package/lib/{ui/app/masters → app/app}/Features/FeatureProvider.d.ts +2 -2
- package/lib/{ui/app → app}/app/Features/FeatureProvider.js +8 -8
- package/lib/{ui/app → app}/app/Features/Gamification/Friends.d.ts +0 -1
- package/lib/{ui/app → app}/app/Features/Gamification/Friends.js +2 -2
- package/lib/{ui/app → app}/app/Features/Gamification/Leaderboard.d.ts +3 -3
- package/lib/{ui/app → app}/app/Features/Gamification/Leaderboard.js +16 -16
- package/lib/{ui/app/masters → app/app}/Features/Gamification/Question.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Question.js +69 -0
- package/lib/{ui/app → app}/app/Features/Gamification/QuestionsList.d.ts +2 -2
- package/lib/{ui/app → app}/app/Features/Gamification/QuestionsList.js +1 -1
- package/lib/{ui/app/masters → app/app}/Features/Gamification/Tabs.d.ts +3 -3
- package/lib/{ui/app → app}/app/Features/Gamification/Tabs.js +12 -12
- package/lib/{ui/app → app}/app/Features/Gamification/UserSummary.d.ts +2 -2
- package/lib/{ui/app/masters → app/app}/Features/Gamification/UserSummary.js +1 -1
- package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.d.ts +1 -0
- package/lib/{ui/app → app}/app/Features/Gamification/index.d.ts +3 -3
- package/lib/{ui/app/masters → app/app}/Features/Gamification/index.js +29 -29
- package/lib/{ui/app/masters → app/app}/Features/index.d.ts +4 -4
- package/lib/app/app/Navigation/index.d.ts +6 -0
- package/lib/app/app/Navigation/index.js +64 -0
- package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +9 -0
- package/lib/app/app/Notifications/Onboarding/Notification/styles.js +50 -0
- package/lib/{ui/app/masters → app/app}/Notifications/Onboarding/index.d.ts +4 -4
- package/lib/app/app/Notifications/Onboarding/index.js +168 -0
- package/lib/{ui/app → app}/app/Notifications/index.d.ts +3 -3
- package/lib/{ui/app → app}/app/Notifications/index.js +27 -27
- package/lib/app/app/Notifications/styles.d.ts +9 -0
- package/lib/app/app/Notifications/styles.js +31 -0
- package/lib/{ui/app/app/Navigation → app/app/Points}/index.d.ts +2 -2
- package/lib/{ui/app → app}/app/Points/index.js +1 -1
- package/lib/{ui/app → app}/app/index.d.ts +2 -2
- package/lib/{ui/app → app}/app/index.js +32 -32
- package/lib/app/app/story/content.d.ts +4 -0
- package/lib/app/app/story/content.js +30 -0
- package/lib/app/app/story/index.d.ts +10 -0
- package/lib/app/app/story/index.js +113 -0
- package/lib/app/app/story/login.d.ts +1 -0
- package/lib/app/app/story/login.js +34 -0
- package/lib/app/app/story/styles.d.ts +9 -0
- package/lib/app/app/story/styles.js +49 -0
- package/lib/app/app/story/useResponsive.d.ts +1 -0
- package/lib/app/app/story/useResponsive.js +15 -0
- package/lib/app/app/story/video.d.ts +10 -0
- package/lib/app/app/story/video.js +67 -0
- package/lib/{ui/app → app}/app/useApp.d.ts +2 -1
- package/lib/{ui/app → app}/app/useApp.js +20 -17
- package/lib/app/app/useAppContext.d.ts +8 -0
- package/lib/{ui/app → app}/index.d.ts +0 -1
- package/lib/app/login/demo.d.ts +5 -0
- package/lib/{ui → app}/login/index.d.ts +0 -1
- package/lib/{ui → app}/login/index.js +1 -1
- package/lib/app/login/styles.d.ts +7 -0
- package/lib/app/login/styles.js +39 -0
- package/lib/{ui/app/app → app/masters}/Features/FeatureProvider.d.ts +2 -2
- package/lib/{ui/app → app}/masters/Features/FeatureProvider.js +8 -8
- package/lib/{ui/app → app}/masters/Features/Gamification/Friends.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/Friends.js +19 -0
- package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.d.ts +3 -3
- package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.js +10 -10
- package/lib/{ui/app/app → app/masters}/Features/Gamification/Question.d.ts +1 -1
- package/lib/{ui/app → app}/masters/Features/Gamification/Question.js +11 -11
- package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.d.ts +2 -2
- package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.js +1 -1
- package/lib/{ui/app/app → app/masters}/Features/Gamification/Tabs.d.ts +3 -3
- package/lib/{ui/app → app}/masters/Features/Gamification/Tabs.js +12 -12
- package/lib/{ui/app → app}/masters/Features/Gamification/UserSummary.d.ts +2 -2
- package/lib/{ui/app/app → app/masters}/Features/Gamification/UserSummary.js +1 -1
- package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.d.ts +1 -0
- package/lib/{ui/app → app}/masters/Features/Gamification/index.d.ts +3 -3
- package/lib/app/masters/Features/Gamification/index.js +88 -0
- package/lib/{ui/app/app → app/masters}/Features/index.d.ts +4 -4
- package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.d.ts +5 -5
- package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.js +5 -5
- package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +9 -0
- package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/Notification/styles.js +16 -16
- package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/index.d.ts +4 -4
- package/lib/{mastersLogoSolid-B4Dz-vm1.js → app/masters/Notifications/Onboarding/index.js} +166 -2
- package/lib/{ui/app → app}/masters/Notifications/index.d.ts +3 -3
- package/lib/{ui/app → app}/masters/Notifications/index.js +48 -47
- package/lib/app/masters/Notifications/styles.d.ts +9 -0
- package/lib/{ui/app/app → app/masters}/Notifications/styles.js +10 -10
- package/lib/app/masters/Points/index.d.ts +5 -0
- package/lib/{ui/app → app}/masters/Points/index.js +1 -1
- package/lib/{ui/app → app}/masters/masters.d.ts +3 -3
- package/lib/{ui/app → app}/masters/masters.js +20 -20
- package/lib/{ui/app → app}/masters/useMastersApp.d.ts +2 -1
- package/lib/app/masters/useMastersApp.js +71 -0
- package/lib/app/masters/useMastersContext.d.ts +8 -0
- package/lib/app/styles.d.ts +20 -0
- package/lib/{ui/app → app}/styles.js +13 -13
- package/lib/{ui/app → app}/useClipboardCopy.d.ts +3 -3
- package/lib/{ui/app → app}/useClipboardCopy.js +2 -2
- package/lib/{ui/app → app}/useSdkFeature.d.ts +2 -1
- package/lib/{ui/app → app}/useSdkResponsive.d.ts +3 -1
- package/lib/{ui/app → app}/useSdkResponsive.js +2 -2
- package/lib/{ui/app → app}/useSdkScroll.d.ts +3 -2
- package/lib/{ui/app → app}/useSdkScroll.js +2 -2
- package/lib/assets/style.css +1 -1
- package/lib/hooks/showIn.js +1 -1
- package/lib/{index-Bicco-Aq.js → index-B1QdimmR.js} +7737 -8219
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/ui/advertisement/banner/index.d.ts +8 -0
- package/lib/ui/advertisement/banner/index.js +32 -0
- package/lib/ui/advertisement/index.d.ts +10 -0
- package/lib/ui/advertisement/index.js +19 -0
- package/lib/ui/advertisement/mock.d.ts +4 -0
- package/lib/ui/advertisement/mock.js +67 -0
- package/lib/ui/advertisement/overlay/index.d.ts +7 -0
- package/lib/ui/advertisement/overlay/index.js +74 -0
- package/lib/ui/advertisement/overlay/styles.d.ts +18 -0
- package/lib/ui/advertisement/overlay/styles.js +95 -0
- package/lib/ui/advertisement/sidebar/index.d.ts +7 -0
- package/lib/ui/advertisement/sidebar/index.js +25 -0
- package/lib/ui/animated-counter/index.d.ts +1 -1
- package/lib/ui/button/index.d.ts +0 -1
- package/lib/ui/button/styles.d.ts +2 -3
- package/lib/ui/gamification/constants.d.ts +1 -0
- package/lib/ui/gamification/copyNotification/index.d.ts +0 -1
- package/lib/ui/gamification/copyNotification/styles.d.ts +3 -4
- package/lib/ui/gamification/detail/header/index.d.ts +1 -1
- package/lib/ui/gamification/detail/header/styles.d.ts +4 -5
- package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -1
- package/lib/ui/gamification/detail/sponsor/index.js +13 -7
- package/lib/ui/gamification/insight/index.d.ts +1 -1
- package/lib/ui/gamification/insight/styles.d.ts +8 -9
- package/lib/ui/gamification/insight-list/index.d.ts +1 -1
- package/lib/ui/gamification/insight-list/styles.d.ts +2 -3
- package/lib/ui/gamification/invite-link/index.d.ts +0 -1
- package/lib/ui/gamification/invite-link/index.js +13 -13
- package/lib/ui/gamification/invite-link/styles.d.ts +5 -6
- package/lib/ui/gamification/invite-link/styles.js +11 -11
- package/lib/ui/gamification/leaderboard/index.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +2 -2
- package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -8
- package/lib/ui/gamification/leaderboard/static.d.ts +3 -3
- package/lib/ui/gamification/leaderboard/styles.d.ts +1 -2
- package/lib/ui/gamification/leaderboard/styles.js +1 -1
- package/lib/ui/gamification/onboarding/index.d.ts +3 -3
- package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -6
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +1 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +10 -11
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +6 -6
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +9 -10
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.d.ts +8 -9
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +4 -5
- package/lib/ui/gamification/onboarding/styles.d.ts +5 -6
- package/lib/ui/gamification/points/index.d.ts +0 -1
- package/lib/ui/gamification/points/styles.d.ts +5 -6
- package/lib/ui/gamification/question/index.d.ts +2 -2
- package/lib/ui/gamification/question/index.js +27 -26
- package/lib/ui/gamification/question/insight/index.d.ts +1 -1
- package/lib/ui/gamification/question/insight/styles.d.ts +2 -3
- package/lib/ui/gamification/question/list/index.d.ts +2 -2
- package/lib/ui/gamification/question/list/styles.d.ts +1 -2
- package/lib/ui/gamification/question/notification/index.d.ts +2 -2
- package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
- package/lib/ui/gamification/question/notification/insight/styles.d.ts +7 -8
- package/lib/ui/gamification/question/notification/pill/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/pill/styles.d.ts +3 -4
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +58 -31
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -2
- package/lib/ui/gamification/question/notification/prediction-result/index.js +55 -54
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +11 -10
- package/lib/ui/gamification/question/notification/styles.d.ts +6 -7
- package/lib/ui/gamification/question/notification/tweet/index.d.ts +3 -3
- package/lib/ui/gamification/question/notification/tweet/styles.d.ts +4 -5
- package/lib/ui/gamification/question/styles.d.ts +14 -14
- package/lib/ui/gamification/question/styles.js +48 -43
- package/lib/ui/gamification/question/twitter/index.d.ts +2 -2
- package/lib/ui/gamification/question/twitter/styles.d.ts +3 -4
- package/lib/ui/gamification/tabs/index.d.ts +0 -1
- package/lib/ui/gamification/tabs/styles.d.ts +4 -5
- package/lib/ui/gamification/user-statistics/components/rank/index.d.ts +0 -1
- package/lib/ui/gamification/user-statistics/components/rank/styles.d.ts +3 -4
- package/lib/ui/gamification/user-statistics/components/statistic/index.d.ts +0 -1
- package/lib/ui/gamification/user-statistics/components/statistic/styles.d.ts +3 -4
- package/lib/ui/gamification/user-statistics/index.d.ts +0 -1
- package/lib/ui/gamification/user-statistics/styles.d.ts +17 -18
- package/lib/ui/gamification/vote/alert/index.d.ts +2 -1
- package/lib/ui/gamification/vote/alert/styles.d.ts +3 -4
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
- package/lib/ui/gamification/vote/feedback/styles.d.ts +8 -9
- package/lib/ui/gamification/vote/index.d.ts +1 -1
- package/lib/ui/gamification/vote/insight-details/index.d.ts +1 -1
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +2 -3
- package/lib/ui/gamification/vote/styles.d.ts +4 -5
- package/lib/ui/gamification/vote/styles.js +1 -1
- package/lib/ui/gamification/vote/twitter-details/index.d.ts +2 -2
- package/lib/ui/gamification/vote/twitter-details/styles.d.ts +2 -3
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
- package/lib/ui/gamification/vote/vote-option/index.js +6 -6
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +19 -16
- package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +6 -7
- package/lib/ui/icons/index.d.ts +1 -1
- package/lib/ui/icons/index.js +108 -47
- package/lib/ui/lottie/index.d.ts +0 -1
- package/lib/ui/modal/index.d.ts +0 -1
- package/lib/ui/modal/index.js +1 -1
- package/lib/ui/navigation/button/Channels.d.ts +1 -1
- package/lib/ui/navigation/button/FeaturedGroups.d.ts +1 -1
- package/lib/ui/navigation/button/LeaderBoard.d.ts +1 -1
- package/lib/ui/navigation/button/index.d.ts +1 -1
- package/lib/ui/navigation/button/styles.d.ts +6 -7
- package/lib/ui/navigation/index.d.ts +1 -1
- package/lib/ui/navigation/masters.d.ts +6 -5
- package/lib/ui/questions/insight/index.d.ts +1 -1
- package/lib/ui/questions/insight/styles.d.ts +6 -7
- package/lib/ui/questions/twitter/account/index.d.ts +0 -1
- package/lib/ui/questions/twitter/account/styles.d.ts +6 -7
- package/lib/ui/questions/twitter/index.d.ts +1 -1
- package/lib/ui/questions/twitter/styles.d.ts +14 -11
- package/lib/ui/show-in/index.d.ts +2 -1
- package/lib/ui/skeleton/index.d.ts +0 -1
- package/lib/ui/skeleton/styles.d.ts +1 -2
- package/lib/ui/slide-in/index.d.ts +11 -0
- package/lib/ui/slide-in/index.js +24 -0
- package/lib/ui/theme/ThemeColors.js +1 -1
- package/lib/ui/theme/ThemeColorsAdvertisement.d.ts +1 -0
- package/lib/ui/theme/ThemeColorsAdvertisement.js +15 -0
- package/lib/ui/theme/breakpoints.d.ts +1 -0
- package/lib/ui/theme/constants.d.ts +23 -59
- package/lib/ui/theme/constants.js +41 -56
- package/lib/ui/theme/index.d.ts +0 -1
- package/lib/ui/theme/masters-theme.d.ts +4 -24
- package/lib/ui/theme/masters-theme.js +26 -58
- package/lib/ui/theme/masters.d.ts +0 -1
- package/lib/ui/theme/theme.d.ts +1 -1
- package/lib/ui/theme/theme.js +14 -11
- package/lib/ui/timer/index.d.ts +3 -2
- package/lib/ui/timer/index.js +32 -32
- package/lib/ui/video-player/index.d.ts +1 -1
- package/lib/ui/video-player/index.js +70 -62
- package/lib/ui/video-player/styles.d.ts +5 -6
- package/lib/utils/debug/storage.js +1 -1
- package/lib/utils/storage.js +1 -1
- package/package.json +47 -41
- package/lib/styles_z07sl8-l0sNRNKZ.js +0 -1
- package/lib/ui/app/app/Features/Gamification/Question.js +0 -69
- package/lib/ui/app/app/Features/Gamification/index.js +0 -88
- package/lib/ui/app/app/Navigation/index.js +0 -42
- package/lib/ui/app/app/Notifications/Onboarding/Notification/styles.d.ts +0 -10
- package/lib/ui/app/app/Notifications/Onboarding/index.js +0 -172
- package/lib/ui/app/app/Notifications/styles.d.ts +0 -8
- package/lib/ui/app/app/Points/index.d.ts +0 -5
- package/lib/ui/app/app/useAppContext.d.ts +0 -8
- package/lib/ui/app/masters/Features/Gamification/Friends.js +0 -19
- package/lib/ui/app/masters/Navigation/index.d.ts +0 -9
- package/lib/ui/app/masters/Navigation/index.js +0 -30
- package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.d.ts +0 -10
- package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.js +0 -50
- package/lib/ui/app/masters/Notifications/Onboarding/index.js +0 -172
- package/lib/ui/app/masters/Notifications/styles.d.ts +0 -8
- package/lib/ui/app/masters/Notifications/styles.js +0 -31
- package/lib/ui/app/masters/Points/index.d.ts +0 -5
- package/lib/ui/app/masters/useMastersApp.js +0 -68
- package/lib/ui/app/masters/useMastersContext.d.ts +0 -8
- package/lib/ui/app/styles.d.ts +0 -15
- package/lib/ui/login/demo.d.ts +0 -6
- package/lib/ui/login/styles.d.ts +0 -8
- package/lib/ui/login/styles.js +0 -39
- /package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.js +0 -0
- /package/lib/{ui/app → app}/app/Features/index.js +0 -0
- /package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.js +0 -0
- /package/lib/{ui/app → app}/app/useAppContext.js +0 -0
- /package/lib/{ui/app → app}/index.js +0 -0
- /package/lib/{ui → app}/login/demo.js +0 -0
- /package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.js +0 -0
- /package/lib/{ui/app → app}/masters/Features/index.js +0 -0
- /package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.js +0 -0
- /package/lib/{ui/app → app}/masters/useMastersContext.js +0 -0
- /package/lib/{ui/app → app}/useImagesPreload.d.ts +0 -0
- /package/lib/{ui/app → app}/useImagesPreload.js +0 -0
- /package/lib/{ui/app → app}/useSdkFeature.js +0 -0
|
@@ -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,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: "
|
|
4
|
+
class: "s2j5adf",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), c = /* @__PURE__ */ s("div")({
|
|
7
7
|
name: "SDKScrollContainer",
|
|
8
|
-
class: "
|
|
8
|
+
class: "st9ayqn",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
}), a = /* @__PURE__ */ s("div")({
|
|
11
11
|
name: "SDKContentContainer",
|
|
12
|
-
class: "
|
|
12
|
+
class: "s6rlym7",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
}), e = () => a, n = /* @__PURE__ */ s(e())({
|
|
15
15
|
name: "SDKWhiteContainer",
|
|
16
|
-
class: "
|
|
16
|
+
class: "s1trfff0",
|
|
17
17
|
propsAsIs: !0
|
|
18
|
-
}),
|
|
18
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
19
19
|
name: "TabsContainer",
|
|
20
|
-
class: "
|
|
20
|
+
class: "t87r8je",
|
|
21
21
|
propsAsIs: !1
|
|
22
|
-
}), o = () => n,
|
|
22
|
+
}), o = () => n, p = /* @__PURE__ */ s(o())({
|
|
23
23
|
name: "LeaderboardContainer",
|
|
24
|
-
class: "
|
|
24
|
+
class: "l1aiq1lq",
|
|
25
25
|
propsAsIs: !0
|
|
26
|
-
}),
|
|
26
|
+
}), r = () => n, C = /* @__PURE__ */ s(r())({
|
|
27
27
|
name: "TabsNavContainer",
|
|
28
|
-
class: "
|
|
28
|
+
class: "t1o5m8d1",
|
|
29
29
|
propsAsIs: !0
|
|
30
30
|
}), m = /* @__PURE__ */ s("div")({
|
|
31
31
|
name: "UserSummaryContainer",
|
|
32
|
-
class: "
|
|
32
|
+
class: "uqh0y7s",
|
|
33
33
|
propsAsIs: !1
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
|
-
|
|
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
|
-
|
|
41
|
+
l as TabsContainer,
|
|
42
42
|
C as TabsNavContainer,
|
|
43
43
|
m as UserSummaryContainer
|
|
44
44
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const useClipboardCopy: (renderToNode: AppNodeRef | HeaderNodeRef) => [(link: string | undefined) => Promise<void>,
|
|
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 "
|
|
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 {
|
|
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 "
|
|
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 {
|
|
3
|
-
|
|
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 "
|
|
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({
|