@streamlayer/react-ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/app/Advertisement/index.d.ts +8 -0
- package/lib/app/app/Advertisement/index.js +38 -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 +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/{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 +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/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 +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 +3 -3
- 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 +46 -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
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": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -11,19 +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
17
|
},
|
|
18
18
|
"./mastersPoints": {
|
|
19
|
-
"import": "./lib/
|
|
20
|
-
"default": "./lib/
|
|
21
|
-
"types": "./lib/
|
|
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"
|
|
22
22
|
},
|
|
23
23
|
"./points": {
|
|
24
|
-
"import": "./lib/
|
|
25
|
-
"default": "./lib/
|
|
26
|
-
"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"
|
|
27
32
|
},
|
|
28
33
|
"./*": {
|
|
29
34
|
"import": "./lib/*/index.js",
|
|
@@ -40,8 +45,8 @@
|
|
|
40
45
|
"package.json"
|
|
41
46
|
],
|
|
42
47
|
"peerDependencies": {
|
|
43
|
-
"@lottiefiles/react-lottie-player": "^3.5.
|
|
44
|
-
"@streamlayer/sl-eslib": "^5.
|
|
48
|
+
"@lottiefiles/react-lottie-player": "^3.5.4",
|
|
49
|
+
"@streamlayer/sl-eslib": "^5.104.1",
|
|
45
50
|
"@types/lodash.throttle": "^4.1.9",
|
|
46
51
|
"lodash.throttle": "^4.1.1",
|
|
47
52
|
"nanoid": "3.3.7",
|
|
@@ -49,18 +54,18 @@
|
|
|
49
54
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
50
55
|
"react-window": "^1.8.10",
|
|
51
56
|
"react-window-infinite-loader": "^1.0.9",
|
|
52
|
-
"@streamlayer/feature-gamification": "^1.
|
|
53
|
-
"@streamlayer/sdk-web
|
|
54
|
-
"@streamlayer/sdk-web": "^1.0.
|
|
55
|
-
"@streamlayer/sdk-web-
|
|
56
|
-
"@streamlayer/sdk-web-
|
|
57
|
-
"@streamlayer/sdk-web-
|
|
58
|
-
"@streamlayer/sdk-web-features": "^1.0.
|
|
59
|
-
"@streamlayer/sdk-web-interfaces": "^1.0.
|
|
60
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
61
|
-
"@streamlayer/sdk-web-notifications": "^1.0.
|
|
62
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
63
|
-
"@streamlayer/sdk-web-types": "^1.
|
|
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"
|
|
64
69
|
},
|
|
65
70
|
"nx": {
|
|
66
71
|
"implicitDependencies": [
|
|
@@ -73,33 +78,33 @@
|
|
|
73
78
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
74
79
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
75
80
|
"@linaria/babel-preset": "^5.0.4",
|
|
76
|
-
"@linaria/core": "^6.
|
|
77
|
-
"@linaria/react": "^6.
|
|
81
|
+
"@linaria/core": "^6.2.0",
|
|
82
|
+
"@linaria/react": "^6.2.1",
|
|
78
83
|
"@nanostores/react": "^0.7.2",
|
|
79
|
-
"@storybook/addon-docs": "^8.
|
|
80
|
-
"@storybook/addon-viewport": "^8.
|
|
81
|
-
"@storybook/blocks": "^8.
|
|
82
|
-
"@storybook/jest": "
|
|
83
|
-
"@storybook/react": "^8.
|
|
84
|
-
"@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",
|
|
85
90
|
"@types/react-infinite-scroller": "^1.2.5",
|
|
86
91
|
"@types/react-window": "^1.8.8",
|
|
87
92
|
"@types/react-window-infinite-loader": "^1.0.9",
|
|
88
|
-
"@wyw-in-js/vite": "^0.
|
|
93
|
+
"@wyw-in-js/vite": "^0.5.3",
|
|
89
94
|
"esbuild-plugin-babel": "^0.2.3",
|
|
90
|
-
"glob": "^10.
|
|
91
|
-
"react": "18.
|
|
95
|
+
"glob": "^10.4.2",
|
|
96
|
+
"react": "18.3.1",
|
|
92
97
|
"react-auth-code-input": "^3.2.1",
|
|
93
98
|
"react-countdown-circle-timer": "^3.2.1",
|
|
94
|
-
"react-countup": "^6.5.
|
|
95
|
-
"react-phone-number-input": "^3.3
|
|
99
|
+
"react-countup": "^6.5.3",
|
|
100
|
+
"react-phone-number-input": "^3.4.3",
|
|
96
101
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
97
|
-
"tslib": "^2.6.
|
|
98
|
-
"vite": "5.2
|
|
99
|
-
"vite-plugin-node-polyfills": "^0.
|
|
102
|
+
"tslib": "^2.6.3",
|
|
103
|
+
"vite": "5.3.2",
|
|
104
|
+
"vite-plugin-node-polyfills": "^0.22.0",
|
|
100
105
|
"vite-plugin-svgr": "^4.2.0",
|
|
101
106
|
"vite-svg-loader": "^5.1.0",
|
|
102
107
|
"vite-tsconfig-paths": "^4.3.2",
|
|
103
|
-
"@streamlayer/react": "^1.
|
|
108
|
+
"@streamlayer/react": "^1.1.0"
|
|
104
109
|
}
|
|
105
110
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { styled as l } from "@linaria/react";
|
|
3
|
-
import { useStore as n } from "@nanostores/react";
|
|
4
|
-
import { QuestionType as a } from "@streamlayer/sdk-web-types";
|
|
5
|
-
import { useAppContext as m } from "../../useAppContext.js";
|
|
6
|
-
import { VoteHeader as c } from "../../../../gamification/detail/header/index.js";
|
|
7
|
-
import { Sponsor as p } from "../../../../gamification/detail/sponsor/index.js";
|
|
8
|
-
import { Vote as f, VoteSkeleton as b } from "../../../../gamification/vote/index.js";
|
|
9
|
-
import { InsightDetails as y } from "../../../../gamification/vote/insight-details/index.js";
|
|
10
|
-
import { TwitterDetails as V } from "../../../../gamification/vote/twitter-details/index.js";
|
|
11
|
-
const x = /* @__PURE__ */ l("div")({
|
|
12
|
-
name: "QuestionContainer",
|
|
13
|
-
class: "qfnqmpg",
|
|
14
|
-
propsAsIs: !1
|
|
15
|
-
}), d = ({
|
|
16
|
-
openedQuestion: t
|
|
17
|
-
}) => {
|
|
18
|
-
var s, o;
|
|
19
|
-
const {
|
|
20
|
-
sdk: r
|
|
21
|
-
} = m();
|
|
22
|
-
return ((s = t == null ? void 0 : t.attributes) == null ? void 0 : s.attributes.case) === "insight" ? /* @__PURE__ */ e(y, {
|
|
23
|
-
...t.attributes.attributes.value,
|
|
24
|
-
controlVideo: r == null ? void 0 : r.controlVideoPlayer
|
|
25
|
-
}) : ((o = t == null ? void 0 : t.attributes) == null ? void 0 : o.attributes.case) === "tweet" ? /* @__PURE__ */ e(V, {
|
|
26
|
-
...t.attributes.attributes.value,
|
|
27
|
-
controlVideo: r == null ? void 0 : r.controlVideoPlayer
|
|
28
|
-
}) : null;
|
|
29
|
-
}, h = ({
|
|
30
|
-
extendedQuestion: t,
|
|
31
|
-
vote: r,
|
|
32
|
-
close: s
|
|
33
|
-
}) => {
|
|
34
|
-
const {
|
|
35
|
-
loading: o,
|
|
36
|
-
data: i
|
|
37
|
-
} = t;
|
|
38
|
-
return i ? /* @__PURE__ */ e(f, {
|
|
39
|
-
vote: r,
|
|
40
|
-
close: s,
|
|
41
|
-
openedQuestion: i,
|
|
42
|
-
isLoading: !!o
|
|
43
|
-
}) : /* @__PURE__ */ e(b, {});
|
|
44
|
-
}, j = ({
|
|
45
|
-
gamification: t
|
|
46
|
-
}) => {
|
|
47
|
-
var i;
|
|
48
|
-
const r = n(t.openedQuestion.$store), s = n(t.openedQuestion.$extendedStore);
|
|
49
|
-
if (!r)
|
|
50
|
-
return null;
|
|
51
|
-
const o = r.type;
|
|
52
|
-
return /* @__PURE__ */ u(x, {
|
|
53
|
-
children: [/* @__PURE__ */ e(c, {
|
|
54
|
-
close: t.closeQuestion,
|
|
55
|
-
type: ((i = r.attributes) == null ? void 0 : i.type) || a.UNSET
|
|
56
|
-
}), o === "question" && /* @__PURE__ */ e(h, {
|
|
57
|
-
vote: t.submitAnswer,
|
|
58
|
-
close: t.closeQuestion,
|
|
59
|
-
extendedQuestion: s
|
|
60
|
-
}), o !== "question" && /* @__PURE__ */ e(d, {
|
|
61
|
-
openedQuestion: r
|
|
62
|
-
}), /* @__PURE__ */ e(p, {
|
|
63
|
-
sponsorLogo: ""
|
|
64
|
-
})]
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
j as Question
|
|
69
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { styled as m } from "@linaria/react";
|
|
3
|
-
import { useStore as c } from "@nanostores/react";
|
|
4
|
-
import { useHideTransition as h } from "../../../../../hooks/showIn.js";
|
|
5
|
-
import { SDKWhiteContainer as C } from "../../../styles.js";
|
|
6
|
-
import { VoteHeader as k } from "../../../../gamification/detail/header/index.js";
|
|
7
|
-
import { UserStatistics as S } from "../../../../gamification/user-statistics/index.js";
|
|
8
|
-
import { ModalPortal as U } from "../../../../modal/index.js";
|
|
9
|
-
import { ShowIn as y } from "../../../../show-in/index.js";
|
|
10
|
-
import { Question as I } from "./Question.js";
|
|
11
|
-
import { Tabs as x } from "./Tabs.js";
|
|
12
|
-
const O = () => y, p = /* @__PURE__ */ m(O())({
|
|
13
|
-
name: "OpenedContainer",
|
|
14
|
-
class: "o1o2cpiy",
|
|
15
|
-
propsAsIs: !0
|
|
16
|
-
}), b = /* @__PURE__ */ m("div")({
|
|
17
|
-
name: "UserContainer",
|
|
18
|
-
class: "u1ob6f8q",
|
|
19
|
-
propsAsIs: !1
|
|
20
|
-
}), v = ({
|
|
21
|
-
correct: e,
|
|
22
|
-
incorrect: r
|
|
23
|
-
}) => {
|
|
24
|
-
const n = e + r;
|
|
25
|
-
return n === 0 ? 0 : Math.round(e / n * 100);
|
|
26
|
-
}, q = ({
|
|
27
|
-
gamification: e,
|
|
28
|
-
scrollStore: r,
|
|
29
|
-
className: n,
|
|
30
|
-
appNode: i,
|
|
31
|
-
scrollNode: s,
|
|
32
|
-
responsiveStore: t
|
|
33
|
-
}) => /* @__PURE__ */ o(x, {
|
|
34
|
-
appNode: i,
|
|
35
|
-
scrollStore: r,
|
|
36
|
-
scrollNode: s,
|
|
37
|
-
className: n,
|
|
38
|
-
gamification: e,
|
|
39
|
-
responsiveStore: t
|
|
40
|
-
}), E = ({
|
|
41
|
-
gamification: e,
|
|
42
|
-
className: r,
|
|
43
|
-
appNode: n,
|
|
44
|
-
responsiveStore: i
|
|
45
|
-
}) => {
|
|
46
|
-
const s = c(e.openedQuestion.$store), t = c(e.openedUser), {
|
|
47
|
-
sdkInDesktopView: d
|
|
48
|
-
} = c(i, {
|
|
49
|
-
keys: ["sdkInDesktopView"]
|
|
50
|
-
}), {
|
|
51
|
-
hiding: a,
|
|
52
|
-
onAnimationEnd: l
|
|
53
|
-
} = h();
|
|
54
|
-
if (!n.current || !s && !t)
|
|
55
|
-
return null;
|
|
56
|
-
const u = s ? /* @__PURE__ */ o(p, {
|
|
57
|
-
className: r,
|
|
58
|
-
hiding: a,
|
|
59
|
-
onAnimationEnd: l,
|
|
60
|
-
children: /* @__PURE__ */ o(I, {
|
|
61
|
-
gamification: e
|
|
62
|
-
})
|
|
63
|
-
}) : t ? /* @__PURE__ */ o(p, {
|
|
64
|
-
className: r,
|
|
65
|
-
hiding: a,
|
|
66
|
-
onAnimationEnd: l,
|
|
67
|
-
children: /* @__PURE__ */ f(b, {
|
|
68
|
-
children: [/* @__PURE__ */ o(k, {
|
|
69
|
-
label: "Friend's Rank",
|
|
70
|
-
close: e.closeUser
|
|
71
|
-
}), /* @__PURE__ */ o(C, {
|
|
72
|
-
children: /* @__PURE__ */ o(S, {
|
|
73
|
-
...t,
|
|
74
|
-
successRate: v(t)
|
|
75
|
-
})
|
|
76
|
-
})]
|
|
77
|
-
})
|
|
78
|
-
}) : null;
|
|
79
|
-
return /* @__PURE__ */ o(U, {
|
|
80
|
-
container: n,
|
|
81
|
-
useContainer: !d,
|
|
82
|
-
children: u
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
export {
|
|
86
|
-
q as GamificationOverlay,
|
|
87
|
-
E as GamificationOverlayStandalone
|
|
88
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { styled as l } from "@linaria/react";
|
|
3
|
-
import { useStore as s } from "@nanostores/react";
|
|
4
|
-
import { useMemo as a } from "react";
|
|
5
|
-
import { AvailableFeatures as d } from "@streamlayer/sdk-web-features";
|
|
6
|
-
import { Navigation as v } from "../../../navigation/index.js";
|
|
7
|
-
import { Button as u } from "../../../navigation/button/index.js";
|
|
8
|
-
const y = () => v, f = /* @__PURE__ */ l(y())({
|
|
9
|
-
name: "Container",
|
|
10
|
-
class: "ckodz37",
|
|
11
|
-
propsAsIs: !0
|
|
12
|
-
}), B = ({
|
|
13
|
-
sdk: t
|
|
14
|
-
}) => {
|
|
15
|
-
const i = s(t.sdkStore.organizationSettings), r = s(t.sdkStore.streamSettings), p = s(t.getActiveFeature()), e = a(() => {
|
|
16
|
-
const o = (r == null ? void 0 : r.data) || (i == null ? void 0 : i.data);
|
|
17
|
-
return o != null && o.overlays ? o.overlays : [];
|
|
18
|
-
}, [i, r]), c = a(() => [...e.filter(({
|
|
19
|
-
enableSdkButton: o
|
|
20
|
-
}) => o).map((o) => ({
|
|
21
|
-
id: o.type,
|
|
22
|
-
onClick: () => t.openFeature(o.type),
|
|
23
|
-
disabled: !(o.type in d),
|
|
24
|
-
label: o.name,
|
|
25
|
-
icon: /* @__PURE__ */ n("img", {
|
|
26
|
-
src: o.icon,
|
|
27
|
-
alt: ""
|
|
28
|
-
}),
|
|
29
|
-
/** multiplied by 10 to add the ability to insert custom buttons between our buttons */
|
|
30
|
-
position: o.position * 10
|
|
31
|
-
}))].sort((o, m) => o.position - m.position), [e, t]);
|
|
32
|
-
return /* @__PURE__ */ n(f, {
|
|
33
|
-
children: c.map((o) => /* @__PURE__ */ n(u, {
|
|
34
|
-
...o,
|
|
35
|
-
icon: void 0,
|
|
36
|
-
active: o.id === p
|
|
37
|
-
}, o.id))
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
B as SDKNavigation
|
|
42
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const CloseIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const CloseIcon: any;
|
|
5
|
-
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const SponsorLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
7
|
-
export declare const PresentsTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
|
-
export declare const Subtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
|
-
export declare const ActionButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as k, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { styled as S } from "@linaria/react";
|
|
3
|
-
import { useStore as F } from "@nanostores/react";
|
|
4
|
-
import { useRef as j, useState as A, useMemo as _, useLayoutEffect as z, useEffect as E } from "react";
|
|
5
|
-
import { FeatureType as G } from "@streamlayer/sdk-web-types";
|
|
6
|
-
import { useImagesPreload as M } from "../../../useImagesPreload.js";
|
|
7
|
-
import { scrollIntoAppView as P } from "../../../useSdkScroll.js";
|
|
8
|
-
import { OnboardingUI as R } from "../../../../gamification/onboarding/index.js";
|
|
9
|
-
import { ModalPortal as V } from "../../../../modal/index.js";
|
|
10
|
-
import { ShowIn as W } from "../../../../show-in/index.js";
|
|
11
|
-
import { m as $ } from "../../../../../mastersLogoSolid-B4Dz-vm1.js";
|
|
12
|
-
import { Onboarding as x } from "./Notification/index.js";
|
|
13
|
-
const y = [{
|
|
14
|
-
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",
|
|
15
|
-
tagline: "Featured groups+ experience",
|
|
16
|
-
headline: /* @__PURE__ */ k(T, {
|
|
17
|
-
children: ["Welcome to ", /* @__PURE__ */ n("br", {}), " Featured Groups +"]
|
|
18
|
-
})
|
|
19
|
-
}, {
|
|
20
|
-
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
|
|
21
|
-
headline: "Get real-time insights"
|
|
22
|
-
}, {
|
|
23
|
-
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
|
|
24
|
-
headline: "Predictions, trivia & polls synced to match play"
|
|
25
|
-
}, {
|
|
26
|
-
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
|
|
27
|
-
headline: "Win points for every answer you get right"
|
|
28
|
-
}, {
|
|
29
|
-
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
|
|
30
|
-
headline: "Compete against friends on the leaderboard"
|
|
31
|
-
}], O = /* @__PURE__ */ S("div")({
|
|
32
|
-
name: "OnboardingContainer",
|
|
33
|
-
class: "o1xcysoz",
|
|
34
|
-
propsAsIs: !1
|
|
35
|
-
}), q = () => W, D = /* @__PURE__ */ S(q())({
|
|
36
|
-
name: "OnboardingNotificationContainer",
|
|
37
|
-
class: "oejzp3v",
|
|
38
|
-
propsAsIs: !0
|
|
39
|
-
}), L = /* @__PURE__ */ S("div")({
|
|
40
|
-
name: "InnerContainer",
|
|
41
|
-
class: "i134gfua",
|
|
42
|
-
propsAsIs: !1
|
|
43
|
-
}), U = ({
|
|
44
|
-
deepLink: d,
|
|
45
|
-
onboardingOpts: r,
|
|
46
|
-
notification: o,
|
|
47
|
-
gamification: u,
|
|
48
|
-
loading: i,
|
|
49
|
-
renderToNode: v,
|
|
50
|
-
sdk: l
|
|
51
|
-
}) => {
|
|
52
|
-
var a, h, b, f, C, m, s;
|
|
53
|
-
const c = F(u.friends.getStore()), [e, I] = A(void 0), g = _(() => {
|
|
54
|
-
var p, w;
|
|
55
|
-
const t = l.getInviter();
|
|
56
|
-
return t ? (w = (p = c.data) == null ? void 0 : p.find(({
|
|
57
|
-
slId: B
|
|
58
|
-
}) => B === t)) == null ? void 0 : w.name : "";
|
|
59
|
-
}, [c.data, l]);
|
|
60
|
-
return E(() => {
|
|
61
|
-
const t = d.$store.subscribe((p) => {
|
|
62
|
-
p && I(p.data);
|
|
63
|
-
});
|
|
64
|
-
return () => {
|
|
65
|
-
t();
|
|
66
|
-
};
|
|
67
|
-
}, [d.$store]), /* @__PURE__ */ n(O, {
|
|
68
|
-
children: /* @__PURE__ */ n(R, {
|
|
69
|
-
loading: i,
|
|
70
|
-
renderToNode: v,
|
|
71
|
-
rules: [{
|
|
72
|
-
label: "Answer as many questions as you like.",
|
|
73
|
-
icon: "icon-btn-feature-groups"
|
|
74
|
-
}, {
|
|
75
|
-
label: "Win points for each correct trivia or prediction answer.",
|
|
76
|
-
icon: "icon-thumb-up"
|
|
77
|
-
}, {
|
|
78
|
-
label: "Top the leader board and best your friends.",
|
|
79
|
-
icon: "icon-trophy"
|
|
80
|
-
}],
|
|
81
|
-
rulesBtnLabel: (a = r.rules) == null ? void 0 : a.buttonLabel,
|
|
82
|
-
rulesTitle: (h = r.rules) == null ? void 0 : h.heading,
|
|
83
|
-
termsTitle: "Terms and Conditions",
|
|
84
|
-
termsText: (b = r.rules) == null ? void 0 : b.terms,
|
|
85
|
-
steps: y,
|
|
86
|
-
primaryColor: (f = r.inviteCard) == null ? void 0 : f.iconColor,
|
|
87
|
-
inviteLink: e,
|
|
88
|
-
inviteCardTitle: (C = r.inviteCard) == null ? void 0 : C.heading,
|
|
89
|
-
inviteCardSubtext: (m = r.inviteCard) == null ? void 0 : m.subtext,
|
|
90
|
-
inviteCardBtnLabel: (s = r.inviteCard) == null ? void 0 : s.buttonLabel,
|
|
91
|
-
onClose: () => {
|
|
92
|
-
var t;
|
|
93
|
-
(t = o.close) == null || t.call(o);
|
|
94
|
-
},
|
|
95
|
-
gamification: u,
|
|
96
|
-
sdk: l,
|
|
97
|
-
inviterName: g
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
}, se = ({
|
|
101
|
-
sdk: d,
|
|
102
|
-
notification: r,
|
|
103
|
-
saveHeight: o,
|
|
104
|
-
style: u,
|
|
105
|
-
appNode: i,
|
|
106
|
-
sdkInDesktopView: v,
|
|
107
|
-
responsiveStore: l
|
|
108
|
-
}) => {
|
|
109
|
-
var m;
|
|
110
|
-
const c = j(null), e = r.data.onboarding, [I, g] = A(e == null ? void 0 : e.instantOpen), a = d.getFeature(G.GAMES), h = _(() => y == null ? void 0 : y.map(({
|
|
111
|
-
graphicSrc: s
|
|
112
|
-
}) => s), []), {
|
|
113
|
-
screen: b
|
|
114
|
-
} = F(l, {
|
|
115
|
-
keys: ["screen"]
|
|
116
|
-
});
|
|
117
|
-
(m = e == null ? void 0 : e.titleCard) != null && m.media && (e.titleCard.media.sponsorLogo = $), z(() => {
|
|
118
|
-
var s;
|
|
119
|
-
o(((s = c.current) == null ? void 0 : s.getBoundingClientRect().height) || 0);
|
|
120
|
-
}, [o]);
|
|
121
|
-
const {
|
|
122
|
-
loading: f,
|
|
123
|
-
throttled: C
|
|
124
|
-
} = M(h);
|
|
125
|
-
return I && a && e && i.current && !C ? /* @__PURE__ */ n(V, {
|
|
126
|
-
container: i,
|
|
127
|
-
useContainer: !v,
|
|
128
|
-
children: /* @__PURE__ */ n(U, {
|
|
129
|
-
notification: r,
|
|
130
|
-
setOpened: g,
|
|
131
|
-
gamification: a,
|
|
132
|
-
onboardingOpts: e,
|
|
133
|
-
deepLink: a.deepLink,
|
|
134
|
-
loading: f,
|
|
135
|
-
renderToNode: i,
|
|
136
|
-
sdk: d
|
|
137
|
-
})
|
|
138
|
-
}) : /* @__PURE__ */ k(T, {
|
|
139
|
-
children: [/* @__PURE__ */ n(L, {
|
|
140
|
-
ref: c,
|
|
141
|
-
style: {
|
|
142
|
-
position: "absolute",
|
|
143
|
-
visibility: "hidden"
|
|
144
|
-
},
|
|
145
|
-
children: /* @__PURE__ */ n(x, {
|
|
146
|
-
close: () => {
|
|
147
|
-
},
|
|
148
|
-
action: () => {
|
|
149
|
-
},
|
|
150
|
-
onboarding: e
|
|
151
|
-
})
|
|
152
|
-
}), /* @__PURE__ */ n(D, {
|
|
153
|
-
style: u,
|
|
154
|
-
hiding: r.hiding,
|
|
155
|
-
children: /* @__PURE__ */ n(L, {
|
|
156
|
-
children: /* @__PURE__ */ n(x, {
|
|
157
|
-
close: r.close,
|
|
158
|
-
action: () => {
|
|
159
|
-
var t;
|
|
160
|
-
g(!0), (((t = i.current) == null ? void 0 : t.getBoundingClientRect().y) || 0) < 0 && P(i, b.size, {
|
|
161
|
-
behavior: "smooth"
|
|
162
|
-
});
|
|
163
|
-
},
|
|
164
|
-
onboarding: e
|
|
165
|
-
})
|
|
166
|
-
})
|
|
167
|
-
})]
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
export {
|
|
171
|
-
se as Onboarding
|
|
172
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Container: any;
|
|
3
|
-
export declare const InnerContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const HiddenContainer: import("@linaria/react").WYWEvalMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
5
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const NotificationRefreshing: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
|
-
export declare const Pill: any;
|