@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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
import { SvgIcon as o } from "../../../../../ui/icons/index.js";
|
|
3
|
+
const a = /* @__PURE__ */ s("div")({
|
|
4
|
+
name: "Container",
|
|
5
|
+
class: "c1qjj4d4",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), c = /* @__PURE__ */ s("div")({
|
|
8
|
+
name: "CloseIconWrap",
|
|
9
|
+
class: "c1lg6b8a",
|
|
10
|
+
propsAsIs: !1
|
|
11
|
+
}), e = () => o, l = /* @__PURE__ */ s(e())({
|
|
12
|
+
name: "CloseIcon",
|
|
13
|
+
class: "c159el66",
|
|
14
|
+
propsAsIs: !0
|
|
15
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
16
|
+
name: "Title",
|
|
17
|
+
class: "t16xmufv",
|
|
18
|
+
propsAsIs: !1
|
|
19
|
+
}), i = /* @__PURE__ */ s("img")({
|
|
20
|
+
name: "SponsorLogo",
|
|
21
|
+
class: "s83lc21",
|
|
22
|
+
propsAsIs: !1
|
|
23
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
24
|
+
name: "PresentsTitle",
|
|
25
|
+
class: "p1p7igia",
|
|
26
|
+
propsAsIs: !1
|
|
27
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
28
|
+
name: "Subtitle",
|
|
29
|
+
class: "s1eftsbu",
|
|
30
|
+
propsAsIs: !1
|
|
31
|
+
}), I = /* @__PURE__ */ s("div")({
|
|
32
|
+
name: "Description",
|
|
33
|
+
class: "d8uezec",
|
|
34
|
+
propsAsIs: !1
|
|
35
|
+
}), f = /* @__PURE__ */ s("button")({
|
|
36
|
+
name: "ActionButton",
|
|
37
|
+
class: "a1h1bk90",
|
|
38
|
+
propsAsIs: !1
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
f as ActionButton,
|
|
42
|
+
l as CloseIcon,
|
|
43
|
+
c as CloseIconWrap,
|
|
44
|
+
a as Container,
|
|
45
|
+
I as Description,
|
|
46
|
+
r as PresentsTitle,
|
|
47
|
+
i as SponsorLogo,
|
|
48
|
+
m as Subtitle,
|
|
49
|
+
p as Title
|
|
50
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
import { type Notification } from '@streamlayer/sdk-web-notifications';
|
|
4
|
-
import { type AppNodeRef } from '../..';
|
|
1
|
+
import { AppNodeRef } from '../../..';
|
|
5
2
|
import { ResponsiveStore } from '../../../useSdkResponsive';
|
|
3
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
4
|
+
import { Notification } from '@streamlayer/sdk-web-notifications';
|
|
5
|
+
|
|
6
6
|
export declare const Onboarding: React.FC<{
|
|
7
7
|
sdk: StreamLayerSDK;
|
|
8
8
|
notification: Notification;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { jsx as r, jsxs as x, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { styled as w } from "@linaria/react";
|
|
3
|
+
import { useStore as T } from "@nanostores/react";
|
|
4
|
+
import { useImagesPreload as B } from "../../../useImagesPreload.js";
|
|
5
|
+
import { scrollIntoAppView as O } from "../../../useSdkScroll.js";
|
|
6
|
+
import { useRef as E, useState as A, useMemo as _, useLayoutEffect as M, useEffect as P } from "react";
|
|
7
|
+
import { FeatureType as R } from "@streamlayer/sdk-web-types";
|
|
8
|
+
import { OnboardingUI as V } from "../../../../ui/gamification/onboarding/index.js";
|
|
9
|
+
import { ModalPortal as W } from "../../../../ui/modal/index.js";
|
|
10
|
+
import { ShowIn as $ } from "../../../../ui/show-in/index.js";
|
|
11
|
+
import { Onboarding as S } from "./Notification/index.js";
|
|
12
|
+
const C = [{
|
|
13
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_0.png",
|
|
14
|
+
tagline: "",
|
|
15
|
+
headline: /* @__PURE__ */ x(L, {
|
|
16
|
+
children: ["Welcome to ", /* @__PURE__ */ r("br", {}), " StreamLayer +"]
|
|
17
|
+
})
|
|
18
|
+
}, {
|
|
19
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",
|
|
20
|
+
headline: "Get real-time insights"
|
|
21
|
+
}, {
|
|
22
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",
|
|
23
|
+
headline: "Predictions, trivia & polls synced to match play"
|
|
24
|
+
}, {
|
|
25
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",
|
|
26
|
+
headline: "Win points for every answer you get right"
|
|
27
|
+
}, {
|
|
28
|
+
graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",
|
|
29
|
+
headline: "Compete against friends on the leaderboard"
|
|
30
|
+
}], j = /* @__PURE__ */ w("div")({
|
|
31
|
+
name: "OnboardingContainer",
|
|
32
|
+
class: "o1xni1kr",
|
|
33
|
+
propsAsIs: !1
|
|
34
|
+
}), G = () => $, q = /* @__PURE__ */ w(G())({
|
|
35
|
+
name: "OnboardingNotificationContainer",
|
|
36
|
+
class: "o1vnouv7",
|
|
37
|
+
propsAsIs: !0
|
|
38
|
+
}), k = /* @__PURE__ */ w("div")({
|
|
39
|
+
name: "InnerContainer",
|
|
40
|
+
class: "i59uefw",
|
|
41
|
+
propsAsIs: !1
|
|
42
|
+
}), z = ({
|
|
43
|
+
deepLink: l,
|
|
44
|
+
onboardingOpts: e,
|
|
45
|
+
notification: o,
|
|
46
|
+
gamification: p,
|
|
47
|
+
loading: i,
|
|
48
|
+
sdk: d
|
|
49
|
+
}) => {
|
|
50
|
+
var c, a, h, b, f, y, s;
|
|
51
|
+
const u = T(p.friends.getStore()), [g, t] = A(void 0), v = _(() => {
|
|
52
|
+
var m, I;
|
|
53
|
+
const n = d.getInviter();
|
|
54
|
+
return n ? (I = (m = u.data) == null ? void 0 : m.find(({
|
|
55
|
+
slId: F
|
|
56
|
+
}) => F === n)) == null ? void 0 : I.name : "";
|
|
57
|
+
}, [u.data, d]);
|
|
58
|
+
return P(() => {
|
|
59
|
+
const n = l.$store.subscribe((m) => {
|
|
60
|
+
m && t(m.data);
|
|
61
|
+
});
|
|
62
|
+
return () => {
|
|
63
|
+
n();
|
|
64
|
+
};
|
|
65
|
+
}, [l.$store]), /* @__PURE__ */ r(j, {
|
|
66
|
+
children: /* @__PURE__ */ r(V, {
|
|
67
|
+
loading: i,
|
|
68
|
+
rules: [{
|
|
69
|
+
label: "Answer as many questions as you like.",
|
|
70
|
+
icon: "icon-btn-feature-groups"
|
|
71
|
+
}, {
|
|
72
|
+
label: "Win points for each correct trivia or prediction answer.",
|
|
73
|
+
icon: "icon-thumb-up"
|
|
74
|
+
}, {
|
|
75
|
+
label: "Top the leader board and best your friends.",
|
|
76
|
+
icon: "icon-trophy"
|
|
77
|
+
}],
|
|
78
|
+
rulesBtnLabel: (c = e.rules) == null ? void 0 : c.buttonLabel,
|
|
79
|
+
rulesTitle: (a = e.rules) == null ? void 0 : a.heading,
|
|
80
|
+
termsTitle: "Terms and Conditions",
|
|
81
|
+
termsText: (h = e.rules) == null ? void 0 : h.terms,
|
|
82
|
+
steps: C,
|
|
83
|
+
primaryColor: (b = e.inviteCard) == null ? void 0 : b.iconColor,
|
|
84
|
+
inviteLink: g,
|
|
85
|
+
inviteCardTitle: (f = e.inviteCard) == null ? void 0 : f.heading,
|
|
86
|
+
inviteCardSubtext: (y = e.inviteCard) == null ? void 0 : y.subtext,
|
|
87
|
+
inviteCardBtnLabel: (s = e.inviteCard) == null ? void 0 : s.buttonLabel,
|
|
88
|
+
onClose: () => {
|
|
89
|
+
var n;
|
|
90
|
+
(n = o.close) == null || n.call(o);
|
|
91
|
+
},
|
|
92
|
+
gamification: p,
|
|
93
|
+
sdk: d,
|
|
94
|
+
inviterName: v
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}, ne = ({
|
|
98
|
+
sdk: l,
|
|
99
|
+
notification: e,
|
|
100
|
+
saveHeight: o,
|
|
101
|
+
style: p,
|
|
102
|
+
appNode: i,
|
|
103
|
+
sdkInDesktopView: d,
|
|
104
|
+
responsiveStore: u
|
|
105
|
+
}) => {
|
|
106
|
+
const g = E(null), t = e.data.onboarding, [v, c] = A(t == null ? void 0 : t.instantOpen), a = l.getFeature(R.GAMES), h = _(() => C == null ? void 0 : C.map(({
|
|
107
|
+
graphicSrc: s
|
|
108
|
+
}) => s), []), {
|
|
109
|
+
screen: b
|
|
110
|
+
} = T(u, {
|
|
111
|
+
keys: ["screen"]
|
|
112
|
+
});
|
|
113
|
+
M(() => {
|
|
114
|
+
var s;
|
|
115
|
+
o(((s = g.current) == null ? void 0 : s.getBoundingClientRect().height) || 0);
|
|
116
|
+
}, [o]);
|
|
117
|
+
const {
|
|
118
|
+
loading: f,
|
|
119
|
+
throttled: y
|
|
120
|
+
} = B(h);
|
|
121
|
+
return v && a && t && i.current && !y ? /* @__PURE__ */ r(W, {
|
|
122
|
+
container: i,
|
|
123
|
+
useContainer: !d,
|
|
124
|
+
children: /* @__PURE__ */ r(z, {
|
|
125
|
+
notification: e,
|
|
126
|
+
setOpened: c,
|
|
127
|
+
gamification: a,
|
|
128
|
+
onboardingOpts: t,
|
|
129
|
+
deepLink: a.deepLink,
|
|
130
|
+
loading: f,
|
|
131
|
+
renderToNode: i,
|
|
132
|
+
sdk: l
|
|
133
|
+
})
|
|
134
|
+
}) : /* @__PURE__ */ x(L, {
|
|
135
|
+
children: [/* @__PURE__ */ r(k, {
|
|
136
|
+
ref: g,
|
|
137
|
+
style: {
|
|
138
|
+
position: "absolute",
|
|
139
|
+
visibility: "hidden"
|
|
140
|
+
},
|
|
141
|
+
children: /* @__PURE__ */ r(S, {
|
|
142
|
+
close: () => {
|
|
143
|
+
},
|
|
144
|
+
action: () => {
|
|
145
|
+
},
|
|
146
|
+
onboarding: t
|
|
147
|
+
})
|
|
148
|
+
}), /* @__PURE__ */ r(q, {
|
|
149
|
+
style: p,
|
|
150
|
+
hiding: e.hiding,
|
|
151
|
+
children: /* @__PURE__ */ r(k, {
|
|
152
|
+
children: /* @__PURE__ */ r(S, {
|
|
153
|
+
close: e.close,
|
|
154
|
+
action: () => {
|
|
155
|
+
var n;
|
|
156
|
+
c(!0), (((n = i.current) == null ? void 0 : n.getBoundingClientRect().y) || 0) < 0 && O(i, b.size, {
|
|
157
|
+
behavior: "smooth"
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
onboarding: t
|
|
161
|
+
})
|
|
162
|
+
})
|
|
163
|
+
})]
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
export {
|
|
167
|
+
ne as Onboarding
|
|
168
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { type StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
import type { AppNodeRef, ScrollNodeRef, HeaderNodeRef } from '../..';
|
|
1
|
+
import { AppNodeRef, ScrollNodeRef, HeaderNodeRef } from '../..';
|
|
4
2
|
import { ResponsiveStore } from '../../useSdkResponsive';
|
|
5
3
|
import { ScrollStore } from '../../useSdkScroll';
|
|
4
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
5
|
+
|
|
6
6
|
export declare const SDKNotifications: React.FC<{
|
|
7
7
|
sdk: StreamLayerSDK;
|
|
8
8
|
scrollNode: ScrollNodeRef;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, Fragment as D, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { cx as N } from "@linaria/core";
|
|
3
|
-
import { useStore as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { QuestionTypeData as R } from "../../../gamification/constants.js";
|
|
11
|
-
import { Notification as V } from "../../../gamification/question/notification/index.js";
|
|
12
|
-
import { PredictionResult as P } from "../../../gamification/question/notification/prediction-result/index.js";
|
|
3
|
+
import { useStore as g } from "@nanostores/react";
|
|
4
|
+
import { useAppContext as T } from "../useAppContext.js";
|
|
5
|
+
import { scrollIntoAppView as E } from "../../useSdkScroll.js";
|
|
6
|
+
import { useState as p, useMemo as O, useEffect as h, useRef as b, useCallback as w } from "react";
|
|
7
|
+
import { r as q } from "../../../index-B1QdimmR.js";
|
|
8
|
+
import { eventBus as C } from "@streamlayer/sdk-web-interfaces";
|
|
9
|
+
import { NotificationType as f } from "@streamlayer/sdk-web-notifications";
|
|
10
|
+
import { QuestionTypeData as R } from "../../../ui/gamification/constants.js";
|
|
11
|
+
import { Notification as V } from "../../../ui/gamification/question/notification/index.js";
|
|
12
|
+
import { PredictionResult as P } from "../../../ui/gamification/question/notification/prediction-result/index.js";
|
|
13
13
|
import { Onboarding as x } from "./Onboarding/index.js";
|
|
14
14
|
import { HiddenContainer as A, Container as B, InnerContainer as H, NotificationRefreshing as Q, Pill as U } from "./styles.js";
|
|
15
15
|
const j = (o) => {
|
|
16
|
-
const [t, u] = p(0), i =
|
|
16
|
+
const [t, u] = p(0), i = b(null), d = w((r) => {
|
|
17
17
|
i.current = r;
|
|
18
18
|
}, []);
|
|
19
19
|
h(() => {
|
|
@@ -34,18 +34,18 @@ const j = (o) => {
|
|
|
34
34
|
var s, e;
|
|
35
35
|
const {
|
|
36
36
|
sdkInDesktopView: d
|
|
37
|
-
} =
|
|
37
|
+
} = g(i, {
|
|
38
38
|
keys: ["sdkInDesktopView"]
|
|
39
39
|
}), {
|
|
40
40
|
sdk: n
|
|
41
|
-
} =
|
|
42
|
-
return t.type ===
|
|
41
|
+
} = T(), [r, l, m] = j(t.id);
|
|
42
|
+
return t.type === f.QUESTION ? /* @__PURE__ */ a(D, {
|
|
43
43
|
children: [/* @__PURE__ */ c(A, {
|
|
44
44
|
ref: r,
|
|
45
45
|
children: /* @__PURE__ */ c(V, {
|
|
46
46
|
...t
|
|
47
47
|
})
|
|
48
|
-
}), /* @__PURE__ */
|
|
48
|
+
}), /* @__PURE__ */ a(B, {
|
|
49
49
|
style: {
|
|
50
50
|
height: t.hiding ? 0 : l
|
|
51
51
|
},
|
|
@@ -60,7 +60,7 @@ const j = (o) => {
|
|
|
60
60
|
})
|
|
61
61
|
}), /* @__PURE__ */ c(Q, {}, t.id)]
|
|
62
62
|
})]
|
|
63
|
-
}) : t.type ===
|
|
63
|
+
}) : t.type === f.QUESTION_RESOLVED && ((e = (s = t.data) == null ? void 0 : s.question) != null && e.predictionResult) ? /* @__PURE__ */ c(P, {
|
|
64
64
|
style: {
|
|
65
65
|
height: t.hiding ? 0 : l
|
|
66
66
|
},
|
|
@@ -68,7 +68,7 @@ const j = (o) => {
|
|
|
68
68
|
close: t.close,
|
|
69
69
|
hiding: t.hiding,
|
|
70
70
|
...t.data.question
|
|
71
|
-
}) : t.type ===
|
|
71
|
+
}) : t.type === f.ONBOARDING ? /* @__PURE__ */ c(x, {
|
|
72
72
|
style: {
|
|
73
73
|
height: t.hiding ? 0 : l
|
|
74
74
|
},
|
|
@@ -79,7 +79,7 @@ const j = (o) => {
|
|
|
79
79
|
appNode: u,
|
|
80
80
|
responsiveStore: i
|
|
81
81
|
}) : null;
|
|
82
|
-
}, F = "
|
|
82
|
+
}, F = "p7vfi6t", L = ({
|
|
83
83
|
pill: o,
|
|
84
84
|
setPill: t,
|
|
85
85
|
appNode: u,
|
|
@@ -91,26 +91,26 @@ const j = (o) => {
|
|
|
91
91
|
var k, y;
|
|
92
92
|
const {
|
|
93
93
|
screen: l
|
|
94
|
-
} =
|
|
94
|
+
} = g(n, {
|
|
95
95
|
keys: ["screen"]
|
|
96
96
|
}), {
|
|
97
97
|
tabsShown: m,
|
|
98
98
|
scrollPosition: s
|
|
99
|
-
} =
|
|
99
|
+
} = g(r, {
|
|
100
100
|
keys: ["tabsShown", "scrollPosition"]
|
|
101
101
|
});
|
|
102
102
|
h(() => {
|
|
103
103
|
n.get().sdkInDesktopView ? s < 50 && t(null) : s > -50 && t(null);
|
|
104
104
|
}, [s, n, t]);
|
|
105
105
|
const e = n.get().sdkInDesktopView ? u : i;
|
|
106
|
-
return !o || !e.current ? null :
|
|
107
|
-
title: o.type ===
|
|
106
|
+
return !o || !e.current ? null : q.createPortal(/* @__PURE__ */ c(U, {
|
|
107
|
+
title: o.type === f.QUESTION_RESOLVED ? "Prediction result" : `New ${((y = R[(k = o.data) == null ? void 0 : k.questionType]) == null ? void 0 : y.label) || "notification"}`,
|
|
108
108
|
onClick: () => {
|
|
109
109
|
var I;
|
|
110
110
|
n.get().sdkInDesktopView ? (I = d.current) == null || I.scrollTo({
|
|
111
111
|
top: 0,
|
|
112
112
|
behavior: "smooth"
|
|
113
|
-
}) :
|
|
113
|
+
}) : E(u, l.size, {
|
|
114
114
|
behavior: "smooth"
|
|
115
115
|
}), t(null);
|
|
116
116
|
},
|
|
@@ -124,9 +124,9 @@ const j = (o) => {
|
|
|
124
124
|
appNode: d,
|
|
125
125
|
scrollStore: n
|
|
126
126
|
}) => {
|
|
127
|
-
const [r] = p(o.getNotificationsStore()), l =
|
|
127
|
+
const [r] = p(o.getNotificationsStore()), l = g(r), [m, s] = p(null), e = O(() => o.getActiveNotification(), [o, l]);
|
|
128
128
|
return h(() => {
|
|
129
|
-
e &&
|
|
129
|
+
e && C.emit("notification", {
|
|
130
130
|
action: "rendered",
|
|
131
131
|
payload: {
|
|
132
132
|
questionId: e.data.questionId,
|
|
@@ -139,7 +139,7 @@ const j = (o) => {
|
|
|
139
139
|
}));
|
|
140
140
|
}, [e]), h(() => {
|
|
141
141
|
e || s(null);
|
|
142
|
-
}, [e]), /* @__PURE__ */
|
|
142
|
+
}, [e]), /* @__PURE__ */ a(D, {
|
|
143
143
|
children: [!m && e && /* @__PURE__ */ c(z, {
|
|
144
144
|
headerNode: t,
|
|
145
145
|
appNode: d,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const Container: any;
|
|
2
|
+
export declare const InnerContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const HiddenContainer: {
|
|
4
|
+
__wyw_meta: unknown;
|
|
5
|
+
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
6
|
+
as?: import('react').ElementType;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const NotificationRefreshing: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const Pill: any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
import { Pill as n } from "../../../ui/gamification/question/notification/pill/index.js";
|
|
3
|
+
import { ShowIn as o } from "../../../ui/show-in/index.js";
|
|
4
|
+
const e = () => o, c = /* @__PURE__ */ s(e())({
|
|
5
|
+
name: "Container",
|
|
6
|
+
class: "c8ol1ve",
|
|
7
|
+
propsAsIs: !0
|
|
8
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
9
|
+
name: "InnerContainer",
|
|
10
|
+
class: "iqfywam",
|
|
11
|
+
propsAsIs: !1
|
|
12
|
+
}), i = () => t, m = /* @__PURE__ */ s(i())({
|
|
13
|
+
name: "HiddenContainer",
|
|
14
|
+
class: "hokmtod",
|
|
15
|
+
propsAsIs: !0
|
|
16
|
+
}), f = /* @__PURE__ */ s("div")({
|
|
17
|
+
name: "NotificationRefreshing",
|
|
18
|
+
class: "n192d1q8",
|
|
19
|
+
propsAsIs: !1
|
|
20
|
+
}), r = () => n, d = /* @__PURE__ */ s(r())({
|
|
21
|
+
name: "Pill",
|
|
22
|
+
class: "p1lha68t",
|
|
23
|
+
propsAsIs: !0
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
c as Container,
|
|
27
|
+
m as HiddenContainer,
|
|
28
|
+
t as InnerContainer,
|
|
29
|
+
f as NotificationRefreshing,
|
|
30
|
+
d as Pill
|
|
31
|
+
};
|
|
@@ -3,7 +3,7 @@ import { useStore as i } from "@nanostores/react";
|
|
|
3
3
|
import { useState as c, useEffect as f } from "react";
|
|
4
4
|
import { FeatureStatus as p } from "@streamlayer/sdk-web-interfaces";
|
|
5
5
|
import { FeatureType as S } from "@streamlayer/sdk-web-types";
|
|
6
|
-
import { Points as l } from "../../../gamification/points/index.js";
|
|
6
|
+
import { Points as l } from "../../../ui/gamification/points/index.js";
|
|
7
7
|
const a = ({ gamification: e }) => {
|
|
8
8
|
const s = e.userSummary.$store, [r, u] = c(0);
|
|
9
9
|
return f(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
|
+
|
|
3
3
|
export type AppAppChildrenProps = {
|
|
4
4
|
activateEventWithId: (event: string) => void;
|
|
5
5
|
deactivate: () => void;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { resetCss as
|
|
1
|
+
import { jsx as i, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useStore as h } from "@nanostores/react";
|
|
3
|
+
import { SDKContainer as A, SDKScrollContainer as C } from "../styles.js";
|
|
4
|
+
import { useSdkFeature as L } from "../useSdkFeature.js";
|
|
5
|
+
import { useSdkResponsive as x } from "../useSdkResponsive.js";
|
|
6
|
+
import { useSdkScroll as D } from "../useSdkScroll.js";
|
|
7
|
+
import { useAnalyticsListener as m, newTabLinkListener as F, appScrollListener as b, appClickListener as y } from "../../hooks/analytics.js";
|
|
8
|
+
import { useRef as S, useEffect as v, useMemo as E } from "react";
|
|
9
|
+
import { resetCss as u } from "../../ui/theme/theme.js";
|
|
10
10
|
import { ActiveFeature as K, StandaloneFeature as j } from "./Features/index.js";
|
|
11
11
|
import { SDKNavigation as R } from "./Navigation/index.js";
|
|
12
12
|
import { SDKNotifications as w } from "./Notifications/index.js";
|
|
13
13
|
import { useAppApp as I } from "./useApp.js";
|
|
14
14
|
import { AppContext as M } from "./useAppContext.js";
|
|
15
|
-
const P = ({ sdk: e, className: n, scrollStore: t, appNode:
|
|
16
|
-
const [, s] =
|
|
15
|
+
const P = ({ sdk: e, className: n, scrollStore: t, appNode: a, scrollNode: o, responsiveStore: r }) => {
|
|
16
|
+
const [, s] = L(e);
|
|
17
17
|
return /* @__PURE__ */ i(
|
|
18
18
|
K,
|
|
19
19
|
{
|
|
20
20
|
className: n,
|
|
21
21
|
scrollNode: o,
|
|
22
|
-
appNode:
|
|
22
|
+
appNode: a,
|
|
23
23
|
scrollStore: t,
|
|
24
24
|
feature: s,
|
|
25
25
|
responsiveStore: r,
|
|
26
26
|
sdk: e
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
}, V = ({ sdk: e, className: n, appNode: t, responsiveStore:
|
|
30
|
-
const o =
|
|
29
|
+
}, V = ({ sdk: e, className: n, appNode: t, responsiveStore: a }) => {
|
|
30
|
+
const o = h(e.featuresList.getStore());
|
|
31
31
|
return o ? Array.from(o, (r) => {
|
|
32
32
|
const s = e.getFeature(r);
|
|
33
33
|
return s ? /* @__PURE__ */ i(
|
|
@@ -36,39 +36,39 @@ const P = ({ sdk: e, className: n, scrollStore: t, appNode: l, scrollNode: o, re
|
|
|
36
36
|
className: n,
|
|
37
37
|
appNode: t,
|
|
38
38
|
feature: s,
|
|
39
|
-
responsiveStore:
|
|
39
|
+
responsiveStore: a,
|
|
40
40
|
sdk: e
|
|
41
41
|
},
|
|
42
42
|
r
|
|
43
43
|
) : null;
|
|
44
44
|
}) : null;
|
|
45
45
|
}, Z = ({ sdk: e, event: n }) => {
|
|
46
|
-
const t =
|
|
47
|
-
|
|
48
|
-
n ? (e.createEventSession(n),
|
|
49
|
-
}, [n,
|
|
50
|
-
enabled:
|
|
46
|
+
const t = S(null), a = S(null), [o] = x(t), [r, s] = D(t, o), { sdkEnabled: l, sdkReady: c, activateEventWithId: p, deactivate: f, isLogged: N } = I(e);
|
|
47
|
+
v(() => {
|
|
48
|
+
n ? (e.createEventSession(n), p(n)) : f();
|
|
49
|
+
}, [n, p, f, e]), m(t, { enabled: l, event: "click", listener: F }), m(r, {
|
|
50
|
+
enabled: l,
|
|
51
51
|
event: "scrollend",
|
|
52
|
-
listener:
|
|
52
|
+
listener: b,
|
|
53
53
|
useDomNode: !0
|
|
54
54
|
}), m(r, {
|
|
55
|
-
enabled:
|
|
55
|
+
enabled: l,
|
|
56
56
|
event: "click",
|
|
57
|
-
listener:
|
|
57
|
+
listener: y,
|
|
58
58
|
useDomNode: !0
|
|
59
59
|
});
|
|
60
|
-
const
|
|
61
|
-
return
|
|
60
|
+
const g = E(() => ({ sdk: e }), [e]);
|
|
61
|
+
return v(() => {
|
|
62
62
|
import("./Features/Gamification/gamification-feature.js");
|
|
63
|
-
}, []), /* @__PURE__ */ i(M.Provider, { value:
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */
|
|
63
|
+
}, []), /* @__PURE__ */ i(M.Provider, { value: g, children: /* @__PURE__ */ d(A, { ref: t, children: [
|
|
64
|
+
l && /* @__PURE__ */ i(R, { className: u, sdk: e, ref: a }),
|
|
65
|
+
/* @__PURE__ */ d(C, { className: "sl-hide-on-modal", ref: r, "data-nav": l.toString(), children: [
|
|
66
66
|
c && /* @__PURE__ */ i(
|
|
67
67
|
w,
|
|
68
68
|
{
|
|
69
69
|
sdk: e,
|
|
70
70
|
scrollNode: r,
|
|
71
|
-
headerNode:
|
|
71
|
+
headerNode: a,
|
|
72
72
|
appNode: t,
|
|
73
73
|
scrollStore: s,
|
|
74
74
|
responsiveStore: o
|
|
@@ -81,13 +81,13 @@ const P = ({ sdk: e, className: n, scrollStore: t, appNode: l, scrollNode: o, re
|
|
|
81
81
|
responsiveStore: o,
|
|
82
82
|
scrollNode: r,
|
|
83
83
|
appNode: t,
|
|
84
|
-
className:
|
|
84
|
+
className: u,
|
|
85
85
|
sdk: e
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
c && /* @__PURE__ */ i(V, { responsiveStore: o, appNode: t, className:
|
|
88
|
+
c && /* @__PURE__ */ i(V, { responsiveStore: o, appNode: t, className: u, sdk: e })
|
|
89
89
|
] }),
|
|
90
|
-
|
|
90
|
+
l && !N && /* @__PURE__ */ i(
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
93
|
style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" },
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useStreamLayer as o } from "@streamlayer/react";
|
|
3
|
+
import { StreamLayerSDKAdvertisement as i } from "../Advertisement/index.js";
|
|
4
|
+
const c = ({ event: e }) => {
|
|
5
|
+
const t = o();
|
|
6
|
+
return t ? /* @__PURE__ */ n("div", { children: [
|
|
7
|
+
/* @__PURE__ */ r("div", { children: "content 1" }),
|
|
8
|
+
/* @__PURE__ */ r(i, { event: e, sdk: t }),
|
|
9
|
+
/* @__PURE__ */ r("div", { children: "content 2" })
|
|
10
|
+
] }) : null;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as Content
|
|
14
|
+
};
|