@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.
- package/lib/app/app/Advertisement/index.d.ts +8 -0
- package/lib/app/app/Advertisement/index.js +38 -0
- package/lib/{ui → app}/app/Features/FeatureProvider.d.ts +2 -2
- package/lib/{ui → app}/app/Features/FeatureProvider.js +10 -10
- package/lib/{ui → app}/app/Features/Gamification/Friends.d.ts +0 -1
- package/lib/{ui → app}/app/Features/Gamification/Friends.js +2 -2
- package/lib/app/app/Features/Gamification/Leaderboard.d.ts +9 -0
- package/lib/app/app/Features/Gamification/Leaderboard.js +55 -0
- package/lib/{ui → app}/app/Features/Gamification/Question.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Question.js +69 -0
- package/lib/{ui → app}/app/Features/Gamification/QuestionsList.d.ts +2 -2
- package/lib/app/app/Features/Gamification/QuestionsList.js +11 -0
- package/lib/app/app/Features/Gamification/Tabs.d.ts +14 -0
- package/lib/{ui → app}/app/Features/Gamification/Tabs.js +12 -12
- package/lib/{ui → app}/app/Features/Gamification/UserSummary.d.ts +2 -2
- package/lib/{ui → app}/app/Features/Gamification/UserSummary.js +1 -1
- package/lib/{ui → app}/app/Features/Gamification/gamification-feature.d.ts +1 -0
- package/lib/{ui → app}/app/Features/Gamification/index.d.ts +5 -5
- package/lib/app/app/Features/Gamification/index.js +88 -0
- package/lib/{ui → app}/app/Features/index.d.ts +5 -5
- package/lib/app/app/Navigation/index.d.ts +6 -0
- package/lib/app/app/Navigation/index.js +64 -0
- package/lib/{ui → 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/app/app/Notifications/Onboarding/index.d.ts +14 -0
- package/lib/app/app/Notifications/Onboarding/index.js +168 -0
- package/lib/app/app/Notifications/index.d.ts +13 -0
- package/lib/{ui → app}/app/Notifications/index.js +24 -24
- package/lib/app/app/Notifications/styles.d.ts +9 -0
- package/lib/app/app/Notifications/styles.js +31 -0
- package/lib/app/app/Points/index.d.ts +5 -0
- package/lib/{ui → app}/app/Points/index.js +1 -1
- package/lib/app/app/index.d.ts +11 -0
- package/lib/app/app/index.js +101 -0
- package/lib/app/app/story/content.d.ts +3 -0
- package/lib/app/app/story/content.js +14 -0
- package/lib/app/app/story/index.d.ts +8 -0
- package/lib/app/app/story/index.js +96 -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/video.d.ts +8 -0
- package/lib/app/app/story/video.js +96 -0
- package/lib/app/app/useApp.d.ts +20 -0
- package/lib/app/app/useApp.js +48 -0
- package/lib/app/app/useAppContext.d.ts +8 -0
- package/lib/app/app/useAppContext.js +8 -0
- package/lib/app/index.d.ts +6 -0
- 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/app/masters/Features/FeatureProvider.d.ts +11 -0
- package/lib/app/masters/Features/FeatureProvider.js +38 -0
- package/lib/app/masters/Features/Gamification/Friends.d.ts +3 -0
- package/lib/app/masters/Features/Gamification/Friends.js +19 -0
- package/lib/app/masters/Features/Gamification/Leaderboard.d.ts +9 -0
- package/lib/{ui/app → app/masters}/Features/Gamification/Leaderboard.js +10 -10
- package/lib/app/masters/Features/Gamification/Question.d.ts +5 -0
- package/lib/{ui/app → app/masters}/Features/Gamification/Question.js +15 -15
- package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +6 -0
- package/lib/{ui/app → app/masters}/Features/Gamification/QuestionsList.js +1 -1
- package/lib/app/masters/Features/Gamification/Tabs.d.ts +14 -0
- package/lib/app/masters/Features/Gamification/Tabs.js +44 -0
- package/lib/app/masters/Features/Gamification/UserSummary.d.ts +5 -0
- package/lib/app/masters/Features/Gamification/UserSummary.js +18 -0
- package/lib/app/masters/Features/Gamification/gamification-feature.d.ts +3 -0
- package/lib/app/masters/Features/Gamification/gamification-feature.js +4 -0
- package/lib/app/masters/Features/Gamification/index.d.ts +23 -0
- package/lib/{ui/app → app/masters}/Features/Gamification/index.js +28 -28
- package/lib/app/masters/Features/index.d.ts +24 -0
- package/lib/app/masters/Features/index.js +37 -0
- package/lib/{ui/app → app/masters}/Navigation/MastersNavigation/index.d.ts +6 -6
- package/lib/{ui/app → app/masters}/Navigation/MastersNavigation/index.js +5 -5
- package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +8 -0
- package/lib/app/masters/Notifications/Onboarding/Notification/index.js +18 -0
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +9 -0
- package/lib/{ui/app → app/masters}/Notifications/Onboarding/Notification/styles.js +16 -16
- package/lib/app/masters/Notifications/Onboarding/index.d.ts +14 -0
- package/lib/{ui/app → app/masters}/Notifications/Onboarding/index.js +87 -90
- package/lib/app/masters/Notifications/index.d.ts +13 -0
- package/lib/app/masters/Notifications/index.js +164 -0
- package/lib/app/masters/Notifications/styles.d.ts +9 -0
- package/lib/{ui/app → app/masters}/Notifications/styles.js +11 -11
- package/lib/app/masters/Points/index.d.ts +5 -0
- package/lib/app/masters/Points/index.js +28 -0
- package/lib/app/masters/masters.d.ts +14 -0
- package/lib/{ui/app → app/masters}/masters.js +33 -31
- 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/app/useClipboardCopy.d.ts +3 -0
- 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 -4
- package/lib/index.js +4 -4
- package/lib/ui/advertisement/banner/index.d.ts +6 -0
- package/lib/ui/advertisement/banner/index.js +27 -0
- package/lib/ui/advertisement/index.d.ts +9 -0
- package/lib/ui/advertisement/index.js +31 -0
- package/lib/ui/advertisement/mock.d.ts +3 -0
- package/lib/ui/advertisement/mock.js +33 -0
- package/lib/ui/advertisement/overlay/index.d.ts +5 -0
- package/lib/ui/advertisement/overlay/index.js +21 -0
- package/lib/ui/advertisement/sidebar/index.d.ts +6 -0
- package/lib/ui/advertisement/sidebar/index.js +23 -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 +26 -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/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 +107 -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 +29 -0
- package/lib/ui/theme/MastersColors.d.ts +1 -0
- package/lib/ui/theme/MastersColors.js +15 -0
- package/lib/ui/theme/ThemeColors.js +1 -1
- package/lib/ui/theme/breakpoints.d.ts +1 -0
- package/lib/ui/theme/constants.d.ts +12 -59
- package/lib/ui/theme/constants.js +26 -55
- package/lib/ui/theme/index.d.ts +0 -1
- package/lib/ui/theme/masters-theme.d.ts +5 -0
- package/lib/ui/theme/masters-theme.js +64 -0
- package/lib/ui/theme/masters.d.ts +4 -0
- package/lib/ui/theme/masters.js +6 -0
- package/lib/ui/theme/theme.d.ts +1 -1
- package/lib/ui/theme/theme.js +2 -2
- 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 +0 -1
- 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 +48 -38
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +0 -9
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +0 -14
- package/lib/ui/app/Navigation/index.d.ts +0 -9
- package/lib/ui/app/Navigation/index.js +0 -30
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +0 -10
- package/lib/ui/app/Notifications/Onboarding/index.d.ts +0 -14
- package/lib/ui/app/Notifications/index.d.ts +0 -13
- package/lib/ui/app/Notifications/styles.d.ts +0 -8
- package/lib/ui/app/Points/index.d.ts +0 -5
- package/lib/ui/app/masters.d.ts +0 -20
- package/lib/ui/app/styles.d.ts +0 -15
- package/lib/ui/app/useClipboardCopy.d.ts +0 -3
- package/lib/ui/app/useMastersApp.js +0 -68
- package/lib/ui/app/useMastersContext.d.ts +0 -8
- 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/Features/Gamification/gamification-feature.js +0 -0
- /package/lib/{ui → app}/app/Features/index.js +0 -0
- /package/lib/{ui → app}/app/Notifications/Onboarding/Notification/index.js +0 -0
- /package/lib/{styles_z07sl8-l0sNRNKZ.js → app/index.js} +0 -0
- /package/lib/{ui → app}/login/demo.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
package/lib/ui/timer/index.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useState as c, useEffect as
|
|
4
|
-
import { CountdownCircleTimer as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { styled as M } from "@linaria/react";
|
|
3
|
+
import { useState as c, useEffect as _, useCallback as n } from "react";
|
|
4
|
+
import { CountdownCircleTimer as h } from "react-countdown-circle-timer";
|
|
5
|
+
import { TIMER_COLORS as p, TIMER_GREEN as E, TIMER_RED as S, TIMER_GRAY as g } from "../theme/constants.js";
|
|
6
|
+
const k = [10, 10, 1, 0], O = /* @__PURE__ */ M("div")({
|
|
7
7
|
name: "RemainingTime",
|
|
8
8
|
class: "r165427",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), u = E, l = S, m = g, L = ({
|
|
11
11
|
isPlaying: i = !0,
|
|
12
|
-
duration:
|
|
13
|
-
onTimerExpired:
|
|
12
|
+
duration: t = 30,
|
|
13
|
+
onTimerExpired: s
|
|
14
14
|
}) => {
|
|
15
|
-
const [
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const [R, o] = c(t > 10 ? u : l), [f, a] = c(2);
|
|
16
|
+
_(() => {
|
|
17
|
+
t === 0 && (a(0), o(m));
|
|
18
|
+
}, [t]);
|
|
19
|
+
const C = ({
|
|
20
|
+
remainingTime: e
|
|
21
|
+
}) => /* @__PURE__ */ r(O, {
|
|
22
|
+
children: t === 0 ? 0 : e
|
|
23
|
+
}), T = n(() => {
|
|
24
|
+
s == null || s(), o(m);
|
|
25
|
+
}, [s, o]), I = n((e) => {
|
|
26
|
+
e === 10 && o(l);
|
|
18
27
|
}, [o]);
|
|
19
|
-
|
|
20
|
-
remainingTime: r
|
|
21
|
-
}) => /* @__PURE__ */ R(Y, {
|
|
22
|
-
children: o === 0 ? 0 : r
|
|
23
|
-
}), A = n(() => {
|
|
24
|
-
e == null || e(), s(m);
|
|
25
|
-
}, [e, s]), O = n((r) => {
|
|
26
|
-
r === 10 && s(l);
|
|
27
|
-
}, [s]);
|
|
28
|
-
return /* @__PURE__ */ R(N, {
|
|
28
|
+
return /* @__PURE__ */ r(h, {
|
|
29
29
|
isPlaying: i,
|
|
30
|
-
duration:
|
|
31
|
-
colors:
|
|
32
|
-
colorsTime:
|
|
30
|
+
duration: t,
|
|
31
|
+
colors: p,
|
|
32
|
+
colorsTime: k,
|
|
33
33
|
size: 32,
|
|
34
|
-
strokeWidth:
|
|
34
|
+
strokeWidth: f,
|
|
35
35
|
trailStrokeWidth: 2,
|
|
36
|
-
trailColor:
|
|
37
|
-
onComplete:
|
|
38
|
-
onUpdate:
|
|
39
|
-
children:
|
|
36
|
+
trailColor: R,
|
|
37
|
+
onComplete: T,
|
|
38
|
+
onUpdate: I,
|
|
39
|
+
children: C
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
O as RemainingTime,
|
|
44
|
+
L as Timer
|
|
45
45
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const ToggleIconPause: import("@linaria/core").LinariaClassName;
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const Player: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLVideoElement> & import('react').VideoHTMLAttributes<HTMLVideoElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Poster: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Control: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const ToggleIconPause: import('@linaria/core').LinariaClassName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var i = (s, r, e) => r in s ? n(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
|
-
var t = (s, r, e) =>
|
|
3
|
+
var t = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { Storage as h } from "@streamlayer/sdk-web-storage";
|
|
5
5
|
class d extends h {
|
|
6
6
|
constructor() {
|
package/lib/utils/storage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var i = (s, r, e) => r in s ? n(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
|
-
var t = (s, r, e) =>
|
|
3
|
+
var t = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { Storage as h } from "@streamlayer/sdk-web-storage";
|
|
5
5
|
class d extends h {
|
|
6
6
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -11,14 +11,24 @@
|
|
|
11
11
|
"types": "./lib/index.d.ts"
|
|
12
12
|
},
|
|
13
13
|
"./masters": {
|
|
14
|
-
"import": "./lib/
|
|
15
|
-
"default": "./lib/
|
|
16
|
-
"types": "./lib/
|
|
14
|
+
"import": "./lib/app/masters/masters.js",
|
|
15
|
+
"default": "./lib/app/masters/masters.js",
|
|
16
|
+
"types": "./lib/app/masters/masters.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./mastersPoints": {
|
|
19
|
+
"import": "./lib/app/masters/Points/index.js",
|
|
20
|
+
"default": "./lib/app/masters/Points/index.js",
|
|
21
|
+
"types": "./lib/app/masters/Points/index.d.ts"
|
|
17
22
|
},
|
|
18
23
|
"./points": {
|
|
19
|
-
"import": "./lib/
|
|
20
|
-
"default": "./lib/
|
|
21
|
-
"types": "./lib/
|
|
24
|
+
"import": "./lib/app/app/Points/index.js",
|
|
25
|
+
"default": "./lib/app/app/Points/index.js",
|
|
26
|
+
"types": "./lib/app/app/Points/index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./advertisement": {
|
|
29
|
+
"import": "./lib/app/app/Advertisement/index.js",
|
|
30
|
+
"default": "./lib/app/app/Advertisement/index.js",
|
|
31
|
+
"types": "./lib/app/app/Advertisement/index.d.ts"
|
|
22
32
|
},
|
|
23
33
|
"./*": {
|
|
24
34
|
"import": "./lib/*/index.js",
|
|
@@ -35,8 +45,8 @@
|
|
|
35
45
|
"package.json"
|
|
36
46
|
],
|
|
37
47
|
"peerDependencies": {
|
|
38
|
-
"@lottiefiles/react-lottie-player": "^3.5.
|
|
39
|
-
"@streamlayer/sl-eslib": "^5.
|
|
48
|
+
"@lottiefiles/react-lottie-player": "^3.5.4",
|
|
49
|
+
"@streamlayer/sl-eslib": "^5.104.1",
|
|
40
50
|
"@types/lodash.throttle": "^4.1.9",
|
|
41
51
|
"lodash.throttle": "^4.1.1",
|
|
42
52
|
"nanoid": "3.3.7",
|
|
@@ -44,18 +54,18 @@
|
|
|
44
54
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
45
55
|
"react-window": "^1.8.10",
|
|
46
56
|
"react-window-infinite-loader": "^1.0.9",
|
|
47
|
-
"@streamlayer/feature-gamification": "^
|
|
48
|
-
"@streamlayer/sdk-web": "^0.
|
|
49
|
-
"@streamlayer/sdk-web-analytics": "^0.
|
|
50
|
-
"@streamlayer/sdk-web-anonymous-auth": "^0.
|
|
51
|
-
"@streamlayer/sdk-web-api": "^
|
|
52
|
-
"@streamlayer/sdk-web-core": "^0.
|
|
53
|
-
"@streamlayer/sdk-web-features": "^0.
|
|
54
|
-
"@streamlayer/sdk-web-interfaces": "^0.
|
|
55
|
-
"@streamlayer/sdk-web-logger": "^0.
|
|
56
|
-
"@streamlayer/sdk-web-notifications": "^0.
|
|
57
|
-
"@streamlayer/sdk-web-storage": "^0.
|
|
58
|
-
"@streamlayer/sdk-web-types": "^
|
|
57
|
+
"@streamlayer/feature-gamification": "^1.1.0",
|
|
58
|
+
"@streamlayer/sdk-web": "^1.0.1",
|
|
59
|
+
"@streamlayer/sdk-web-analytics": "^1.0.1",
|
|
60
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.0.1",
|
|
61
|
+
"@streamlayer/sdk-web-api": "^1.1.0",
|
|
62
|
+
"@streamlayer/sdk-web-core": "^1.0.1",
|
|
63
|
+
"@streamlayer/sdk-web-features": "^1.0.1",
|
|
64
|
+
"@streamlayer/sdk-web-interfaces": "^1.0.1",
|
|
65
|
+
"@streamlayer/sdk-web-logger": "^1.0.1",
|
|
66
|
+
"@streamlayer/sdk-web-notifications": "^1.0.1",
|
|
67
|
+
"@streamlayer/sdk-web-storage": "^1.0.1",
|
|
68
|
+
"@streamlayer/sdk-web-types": "^1.1.0"
|
|
59
69
|
},
|
|
60
70
|
"nx": {
|
|
61
71
|
"implicitDependencies": [
|
|
@@ -68,33 +78,33 @@
|
|
|
68
78
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
69
79
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
70
80
|
"@linaria/babel-preset": "^5.0.4",
|
|
71
|
-
"@linaria/core": "^6.
|
|
72
|
-
"@linaria/react": "^6.
|
|
81
|
+
"@linaria/core": "^6.2.0",
|
|
82
|
+
"@linaria/react": "^6.2.1",
|
|
73
83
|
"@nanostores/react": "^0.7.2",
|
|
74
|
-
"@storybook/addon-docs": "^8.
|
|
75
|
-
"@storybook/addon-viewport": "^8.
|
|
76
|
-
"@storybook/blocks": "^8.
|
|
77
|
-
"@storybook/jest": "
|
|
78
|
-
"@storybook/react": "^8.
|
|
79
|
-
"@storybook/testing-library": "
|
|
84
|
+
"@storybook/addon-docs": "^8.1.11",
|
|
85
|
+
"@storybook/addon-viewport": "^8.1.11",
|
|
86
|
+
"@storybook/blocks": "^8.1.11",
|
|
87
|
+
"@storybook/jest": "^0.2.3",
|
|
88
|
+
"@storybook/react": "^8.1.11",
|
|
89
|
+
"@storybook/testing-library": "^0.2.2",
|
|
80
90
|
"@types/react-infinite-scroller": "^1.2.5",
|
|
81
91
|
"@types/react-window": "^1.8.8",
|
|
82
92
|
"@types/react-window-infinite-loader": "^1.0.9",
|
|
83
|
-
"@wyw-in-js/vite": "^0.
|
|
93
|
+
"@wyw-in-js/vite": "^0.5.3",
|
|
84
94
|
"esbuild-plugin-babel": "^0.2.3",
|
|
85
|
-
"glob": "^10.
|
|
86
|
-
"react": "18.
|
|
95
|
+
"glob": "^10.4.2",
|
|
96
|
+
"react": "18.3.1",
|
|
87
97
|
"react-auth-code-input": "^3.2.1",
|
|
88
98
|
"react-countdown-circle-timer": "^3.2.1",
|
|
89
|
-
"react-countup": "^6.5.
|
|
90
|
-
"react-phone-number-input": "^3.3
|
|
99
|
+
"react-countup": "^6.5.3",
|
|
100
|
+
"react-phone-number-input": "^3.4.3",
|
|
91
101
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
92
|
-
"tslib": "^2.6.
|
|
93
|
-
"vite": "5.2
|
|
94
|
-
"vite-plugin-node-polyfills": "^0.
|
|
102
|
+
"tslib": "^2.6.3",
|
|
103
|
+
"vite": "5.3.2",
|
|
104
|
+
"vite-plugin-node-polyfills": "^0.22.0",
|
|
95
105
|
"vite-plugin-svgr": "^4.2.0",
|
|
96
106
|
"vite-svg-loader": "^5.1.0",
|
|
97
107
|
"vite-tsconfig-paths": "^4.3.2",
|
|
98
|
-
"@streamlayer/react": "^
|
|
108
|
+
"@streamlayer/react": "^1.1.0"
|
|
99
109
|
}
|
|
100
110
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Gamification } from '@streamlayer/feature-gamification';
|
|
3
|
-
import type { ScrollNodeRef } from '../../masters';
|
|
4
|
-
import { ScrollStore } from '../../useSdkScroll';
|
|
5
|
-
export declare const Leaderboard: React.FC<{
|
|
6
|
-
gamification: Gamification;
|
|
7
|
-
scrollNode: ScrollNodeRef;
|
|
8
|
-
scrollStore: ScrollStore;
|
|
9
|
-
}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type Gamification } from '@streamlayer/feature-gamification';
|
|
3
|
-
import type { AppNodeRef, ScrollNodeRef } from '../../masters';
|
|
4
|
-
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
5
|
-
import { ScrollStore } from '../../useSdkScroll';
|
|
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,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
import { Overlays } from '../masters';
|
|
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,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
import { type Notification } from '@streamlayer/sdk-web-notifications';
|
|
4
|
-
import { type AppNodeRef } from '../../masters';
|
|
5
|
-
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
6
|
-
export declare const Onboarding: React.FC<{
|
|
7
|
-
sdk: StreamLayerSDK;
|
|
8
|
-
notification: Notification;
|
|
9
|
-
saveHeight: (height: number) => void;
|
|
10
|
-
appNode: AppNodeRef;
|
|
11
|
-
sdkInDesktopView?: boolean;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
responsiveStore: ResponsiveStore;
|
|
14
|
-
}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
import type { AppNodeRef, ScrollNodeRef, HeaderNodeRef } from '../masters';
|
|
4
|
-
import { ResponsiveStore } from '../useSdkResponsive';
|
|
5
|
-
import { ScrollStore } from '../useSdkScroll';
|
|
6
|
-
export declare const SDKNotifications: React.FC<{
|
|
7
|
-
sdk: StreamLayerSDK;
|
|
8
|
-
scrollNode: ScrollNodeRef;
|
|
9
|
-
appNode: AppNodeRef;
|
|
10
|
-
headerNode: HeaderNodeRef;
|
|
11
|
-
scrollStore: ScrollStore;
|
|
12
|
-
responsiveStore: ResponsiveStore;
|
|
13
|
-
}>;
|
|
@@ -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;
|
package/lib/ui/app/masters.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
export type Overlays = {};
|
|
4
|
-
export type MastersAppChildrenProps = {
|
|
5
|
-
activateEventWithId: (event: string) => void;
|
|
6
|
-
deactivate: () => void;
|
|
7
|
-
};
|
|
8
|
-
type AppNode = HTMLDivElement | null;
|
|
9
|
-
export type AppNodeRef = React.MutableRefObject<AppNode>;
|
|
10
|
-
export type ScrollNode = HTMLDivElement | null;
|
|
11
|
-
export type ScrollNodeRef = React.MutableRefObject<ScrollNode>;
|
|
12
|
-
export type HeaderNode = HTMLDivElement | null;
|
|
13
|
-
export type HeaderNodeRef = React.MutableRefObject<HeaderNode>;
|
|
14
|
-
export type MastersAppProps = {
|
|
15
|
-
sdk: StreamLayerSDK;
|
|
16
|
-
overlays?: Overlays;
|
|
17
|
-
children: (methods: MastersAppChildrenProps) => React.ReactNode;
|
|
18
|
-
};
|
|
19
|
-
export declare const MastersApp: React.FC<MastersAppProps>;
|
|
20
|
-
export {};
|
package/lib/ui/app/styles.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const SDKContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const SDKScrollContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const SDKContentContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const SDKWhiteContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
6
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const TabsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const LeaderboardContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
10
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const TabsNavContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
13
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const UserSummaryContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -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
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
export declare const MastersContext: import("react").Context<{
|
|
4
|
-
sdk: StreamLayerSDK | null;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const useMastersContext: () => {
|
|
7
|
-
sdk: StreamLayerSDK | null;
|
|
8
|
-
};
|
package/lib/ui/login/demo.d.ts
DELETED
package/lib/ui/login/styles.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Panel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const Form: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLFormElement> & import("react").FormHTMLAttributes<HTMLFormElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const FormTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const FormDescription: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const FormSubmit: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
7
|
-
export declare const FormInputContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
|
-
export declare const Digits: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
package/lib/ui/login/styles.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { styled as s } from "@linaria/react";
|
|
2
|
-
const a = /* @__PURE__ */ s("div")({
|
|
3
|
-
name: "Panel",
|
|
4
|
-
class: "p1liu7r",
|
|
5
|
-
propsAsIs: !1
|
|
6
|
-
}), e = /* @__PURE__ */ s("form")({
|
|
7
|
-
name: "Form",
|
|
8
|
-
class: "fhf9n1f",
|
|
9
|
-
propsAsIs: !1
|
|
10
|
-
}), n = /* @__PURE__ */ s("div")({
|
|
11
|
-
name: "FormTitle",
|
|
12
|
-
class: "fmf7e3h",
|
|
13
|
-
propsAsIs: !1
|
|
14
|
-
}), r = /* @__PURE__ */ s("div")({
|
|
15
|
-
name: "FormDescription",
|
|
16
|
-
class: "fg7be0w",
|
|
17
|
-
propsAsIs: !1
|
|
18
|
-
}), m = /* @__PURE__ */ s("button")({
|
|
19
|
-
name: "FormSubmit",
|
|
20
|
-
class: "fvxx8fg",
|
|
21
|
-
propsAsIs: !1
|
|
22
|
-
}), t = /* @__PURE__ */ s("div")({
|
|
23
|
-
name: "FormInputContainer",
|
|
24
|
-
class: "f1sfffsg",
|
|
25
|
-
propsAsIs: !1
|
|
26
|
-
}), f = /* @__PURE__ */ s("div")({
|
|
27
|
-
name: "Digits",
|
|
28
|
-
class: "d1majgb2",
|
|
29
|
-
propsAsIs: !1
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
f as Digits,
|
|
33
|
-
e as Form,
|
|
34
|
-
r as FormDescription,
|
|
35
|
-
t as FormInputContainer,
|
|
36
|
-
m as FormSubmit,
|
|
37
|
-
n as FormTitle,
|
|
38
|
-
a as Panel
|
|
39
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|