@streamlayer/react-ui 1.26.1 → 1.27.1
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 +1 -0
- package/lib/app/app/Advertisement/index.js +125 -92
- package/lib/app/app/Banner/index.d.ts +6 -0
- package/lib/app/app/Banner/index.js +6 -0
- package/lib/app/app/Features/Gamification/Question.d.ts +4 -0
- package/lib/app/app/Features/Gamification/Question.js +79 -50
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.d.ts +6 -0
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +46 -0
- package/lib/app/app/Features/Gamification/Tabs.js +12 -12
- package/lib/app/app/Features/Gamification/index.d.ts +3 -0
- package/lib/app/app/Features/Gamification/index.js +56 -52
- package/lib/app/app/Features/index.d.ts +1 -0
- package/lib/app/app/Features/index.js +6 -4
- package/lib/app/app/InApp/index.d.ts +1 -0
- package/lib/app/app/InApp/index.js +44 -17
- package/lib/app/app/Insight/index.d.ts +3 -0
- package/lib/app/app/Insight/index.js +33 -30
- package/lib/app/app/Layout/index.d.ts +17 -0
- package/lib/app/app/Layout/index.js +105 -0
- package/lib/app/app/Layout/styles.d.ts +12 -0
- package/lib/app/app/Layout/styles.js +64 -0
- package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/app/Notifications/styles.d.ts +18 -2
- package/lib/app/app/index.d.ts +1 -0
- package/lib/app/app/index.js +91 -85
- package/lib/app/app/story/index.js +56 -58
- package/lib/app/app/story/promotion/index.js +31 -36
- package/lib/app/app/story/promotion/styles.d.ts +3 -1
- package/lib/app/app/story/promotion/video.js +63 -81
- package/lib/app/app/story/promotion-notification/styles.d.ts +3 -1
- package/lib/app/app/story/styles.d.ts +5 -1
- package/lib/app/app/story/styles.js +36 -16
- package/lib/app/app/story/video.d.ts +5 -1
- package/lib/app/app/story/video.js +70 -33
- package/lib/app/app/useApp.d.ts +1 -2
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +7 -1
- package/lib/app/masters/BetPack/BetPackContent/index.js +175 -187
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +84 -84
- package/lib/app/masters/BetPack/BetPackOverlay/styles.d.ts +14 -2
- package/lib/app/masters/Features/Gamification/Question.js +19 -17
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/masters/Notifications/styles.d.ts +18 -2
- package/lib/app/masters/masters.d.ts +4 -1
- package/lib/app/masters/useMastersApp.d.ts +1 -1
- package/lib/app/tgl/styles.d.ts +3 -1
- package/lib/app/{tvos → webos/Advertisement}/AdvertisementUI.d.ts +7 -1
- package/lib/app/webos/Advertisement/AdvertisementUI.js +63 -0
- package/lib/app/{tvos/Advertisement.d.ts → webos/Advertisement/index.d.ts} +3 -1
- package/lib/app/webos/Advertisement/index.js +119 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +15 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +93 -0
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +12 -0
- package/lib/app/webos/ExposedPauseAd/styles.js +64 -0
- package/lib/app/webos/Question/index.d.ts +9 -0
- package/lib/app/webos/Question/index.js +56 -0
- package/lib/app/webos/index.d.ts +24 -0
- package/lib/app/webos/index.js +65 -0
- package/lib/app/webos/story.d.ts +9 -0
- package/lib/app/webos/story.js +74 -0
- package/lib/app/webos/styles.js +4 -0
- package/lib/app/webos/ui/Layout/index.js +78 -0
- package/lib/app/{tvos → webos}/ui/Layout/styles.js +25 -25
- package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +7 -0
- package/lib/app/webos/ui/Sidebar/PromoAction.js +63 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/index.d.ts +6 -0
- package/lib/app/webos/ui/Sidebar/index.js +176 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.d.ts +7 -3
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.js +175 -170
- package/lib/app/webos/ui/insight/index.d.ts +9 -0
- package/lib/app/webos/ui/insight/index.js +100 -0
- package/lib/app/webos/ui/insight/styles.d.ts +12 -0
- package/lib/app/webos/ui/insight/styles.js +51 -0
- package/lib/app/webos/useTvButton.d.ts +9 -0
- package/lib/app/webos/useTvButton.js +23 -0
- package/lib/assets/style.css +1 -1
- package/lib/hooks/analytics.d.ts +14 -0
- package/lib/hooks/showIn.d.ts +9 -0
- package/lib/hooks/useKeyboardNavigation.d.ts +15 -0
- package/lib/hooks/useKeyboardNavigation.js +74 -0
- package/lib/index-T1iiS0ZO.js +17 -0
- package/lib/ui/advertisement/banner/index.d.ts +3 -0
- package/lib/ui/advertisement/banner/index.js +29 -17
- package/lib/ui/advertisement/banner/styles.d.ts +5 -1
- package/lib/ui/advertisement/index.d.ts +4 -1
- package/lib/ui/advertisement/index.js +56 -44
- package/lib/ui/advertisement/notification/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/index.js +50 -34
- package/lib/ui/advertisement/notification/lower-third/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/lower-third/index.js +42 -26
- package/lib/ui/advertisement/notification/lower-third/styles.d.ts +11 -0
- package/lib/ui/advertisement/notification/lower-third/styles.js +39 -24
- package/lib/ui/advertisement/notification/styles.d.ts +18 -1
- package/lib/ui/advertisement/notification/styles.js +48 -33
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +2 -2
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
- package/lib/ui/advertisement/overlay/index.d.ts +4 -1
- package/lib/ui/advertisement/overlay/index.js +135 -77
- package/lib/ui/gamification/detail/header/index.d.ts +2 -0
- package/lib/ui/gamification/detail/header/index.js +19 -16
- package/lib/ui/gamification/detail/header/styles.d.ts +15 -3
- package/lib/ui/gamification/detail/header/styles.js +1 -1
- package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -0
- package/lib/ui/gamification/detail/sponsor/index.js +25 -13
- package/lib/ui/gamification/invite-link/styles.d.ts +14 -2
- package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +14 -2
- package/lib/ui/gamification/onboarding/styles.d.ts +10 -2
- package/lib/ui/gamification/points/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +48 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +94 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +99 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.d.ts +42 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.js +117 -0
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +9 -8
- package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/onboarding/index.js +12 -12
- package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +18 -2
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +9 -9
- package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.d.ts +5 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.js +49 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +12 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.js +56 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.js +19 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.d.ts +4 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.d.ts +7 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.js +43 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +10 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.d.ts +11 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.js +34 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +38 -5
- package/lib/ui/gamification/question/notification/styles.d.ts +14 -2
- package/lib/ui/gamification/question/styles.d.ts +26 -4
- package/lib/ui/gamification/vote/alert/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/feedback/styles.d.ts +19 -2
- package/lib/ui/gamification/vote/feedbackAlert/index.d.ts +9 -0
- package/lib/ui/gamification/vote/feedbackAlert/index.js +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.d.ts +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.js +30 -0
- package/lib/ui/gamification/vote/index.d.ts +3 -1
- package/lib/ui/gamification/vote/index.js +160 -130
- package/lib/ui/gamification/vote/insight-details/index.js +8 -7
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/styles.d.ts +29 -4
- package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
- package/lib/ui/gamification/vote/vote-option/index.js +72 -64
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +19 -2
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +80 -79
- package/lib/ui/modal/index.js +12 -17
- package/lib/ui/questions/insight/index.d.ts +4 -1
- package/lib/ui/questions/insight/index.js +29 -26
- package/lib/ui/questions/twitter/account/styles.d.ts +7 -1
- package/lib/ui/questions/twitter/index.d.ts +1 -0
- package/lib/ui/questions/twitter/index.js +27 -19
- package/lib/ui/theme/constants.d.ts +2 -0
- package/lib/ui/theme/constants.js +2 -0
- package/lib/ui/theme/masters-theme.js +1 -0
- package/lib/ui/theme/utils.d.ts +10 -0
- package/lib/ui/theme/utils.js +77 -0
- package/lib/ui/video-player/index.d.ts +10 -2
- package/lib/ui/video-player/index.js +189 -110
- package/lib/ui/video-player/styles.d.ts +36 -0
- package/lib/ui/video-player/styles.js +59 -11
- package/lib/utils/common.d.ts +6 -0
- package/lib/utils/createDemo.d.ts +12 -0
- package/lib/utils/debug/components/bypassLogin.d.ts +6 -0
- package/lib/utils/debug/components/copyLogs.d.ts +1 -0
- package/lib/utils/debug/components/developer.d.ts +14 -0
- package/lib/utils/debug/components/envToggle.d.ts +6 -0
- package/lib/utils/debug/components/eventInput.d.ts +8 -0
- package/lib/utils/debug/components/sdkKey.d.ts +6 -0
- package/lib/utils/debug/components/styles.d.ts +1 -0
- package/lib/utils/debug/index.d.ts +36 -0
- package/lib/utils/debug/storage.d.ts +14 -0
- package/lib/utils/decorators/container.d.ts +6 -0
- package/lib/utils/decorators/container.js +5 -5
- package/lib/utils/decorators/masters.d.ts +2 -0
- package/lib/utils/decorators/styles.d.ts +2 -0
- package/lib/utils/login.d.ts +3 -0
- package/lib/utils/storage.d.ts +14 -0
- package/package.json +27 -20
- package/lib/app/tvos/Advertisement.js +0 -88
- package/lib/app/tvos/AdvertisementUI.js +0 -40
- package/lib/app/tvos/index.d.ts +0 -16
- package/lib/app/tvos/index.js +0 -23
- package/lib/app/tvos/story.d.ts +0 -6
- package/lib/app/tvos/story.js +0 -34
- package/lib/app/tvos/styles.js +0 -4
- package/lib/app/tvos/ui/Layout/index.js +0 -76
- package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +0 -2
- package/lib/app/tvos/ui/Sidebar/PromoAction.js +0 -62
- package/lib/app/tvos/ui/Sidebar/index.js +0 -114
- /package/lib/app/{tvos → webos}/styles.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/index.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/styles.d.ts +0 -0
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
export declare const Carousel: {
|
|
2
2
|
__wyw_meta: unknown;
|
|
3
|
-
} & import('react').FunctionComponent<import('react').RefAttributes<import('swiper/react').SwiperRef> & Omit<import('react').HTMLAttributes<HTMLElement>, "onClick" | "
|
|
3
|
+
} & import('react').FunctionComponent<import('react').RefAttributes<import('swiper/react').SwiperRef> & Omit<import('react').HTMLAttributes<HTMLElement>, "onClick" | "onKeyPress" | "onProgress" | "onResize" | "onDoubleClick" | "onTouchEnd" | "onTouchMove" | "onTouchStart" | "onScroll" | "onTransitionEnd"> & import('swiper/types').SwiperOptions & {
|
|
4
4
|
tag?: string;
|
|
5
5
|
wrapperTag?: string;
|
|
6
|
-
onSwiper?: (swiper: import('swiper/
|
|
7
|
-
onAutoplayStart?: (swiper: import('swiper/
|
|
8
|
-
onAutoplayStop?: (swiper: import('swiper/
|
|
9
|
-
onAutoplayPause?: (swiper: import('swiper/
|
|
10
|
-
onAutoplayResume?: (swiper: import('swiper/
|
|
11
|
-
onAutoplayTimeLeft?: (swiper: import('swiper/
|
|
12
|
-
onAutoplay?: (swiper: import('swiper/
|
|
13
|
-
onHashChange?: (swiper: import('swiper/
|
|
14
|
-
onHashSet?: (swiper: import('swiper/
|
|
15
|
-
onScroll?: (swiper: import('swiper/
|
|
16
|
-
onKeyPress?: (swiper: import('swiper/
|
|
17
|
-
onNavigationHide?: (swiper: import('swiper/
|
|
18
|
-
onNavigationShow?: (swiper: import('swiper/
|
|
19
|
-
onNavigationPrev?: (swiper: import('swiper/
|
|
20
|
-
onNavigationNext?: (swiper: import('swiper/
|
|
21
|
-
onPaginationRender?: (swiper: import('swiper/
|
|
22
|
-
onPaginationUpdate?: (swiper: import('swiper/
|
|
23
|
-
onPaginationHide?: (swiper: import('swiper/
|
|
24
|
-
onPaginationShow?: (swiper: import('swiper/
|
|
25
|
-
onScrollbarDragStart?: (swiper: import('swiper/
|
|
26
|
-
onScrollbarDragMove?: (swiper: import('swiper/
|
|
27
|
-
onScrollbarDragEnd?: (swiper: import('swiper/
|
|
28
|
-
onZoomChange?: (swiper: import('swiper/
|
|
29
|
-
onInit?: (swiper: import('swiper/
|
|
30
|
-
onBeforeDestroy?: (swiper: import('swiper/
|
|
31
|
-
onSlidesUpdated?: (swiper: import('swiper/
|
|
32
|
-
onSlideChange?: (swiper: import('swiper/
|
|
33
|
-
onSlideChangeTransitionStart?: (swiper: import('swiper/
|
|
34
|
-
onSlideChangeTransitionEnd?: (swiper: import('swiper/
|
|
35
|
-
onSlideNextTransitionStart?: (swiper: import('swiper/
|
|
36
|
-
onSlideNextTransitionEnd?: (swiper: import('swiper/
|
|
37
|
-
onSlidePrevTransitionStart?: (swiper: import('swiper/
|
|
38
|
-
onSlidePrevTransitionEnd?: (swiper: import('swiper/
|
|
39
|
-
onTransitionStart?: (swiper: import('swiper/
|
|
40
|
-
onTransitionEnd?: (swiper: import('swiper/
|
|
41
|
-
onTouchStart?: (swiper: import('swiper/
|
|
42
|
-
onTouchMove?: (swiper: import('swiper/
|
|
43
|
-
onTouchMoveOpposite?: (swiper: import('swiper/
|
|
44
|
-
onSliderMove?: (swiper: import('swiper/
|
|
45
|
-
onTouchEnd?: (swiper: import('swiper/
|
|
46
|
-
onClick?: (swiper: import('swiper/
|
|
47
|
-
onTap?: (swiper: import('swiper/
|
|
48
|
-
onDoubleTap?: (swiper: import('swiper/
|
|
49
|
-
onProgress?: (swiper: import('swiper/
|
|
50
|
-
onReachBeginning?: (swiper: import('swiper/
|
|
51
|
-
onReachEnd?: (swiper: import('swiper/
|
|
52
|
-
onToEdge?: (swiper: import('swiper/
|
|
53
|
-
onFromEdge?: (swiper: import('swiper/
|
|
54
|
-
onSetTranslate?: (swiper: import('swiper/
|
|
55
|
-
onSetTransition?: (swiper: import('swiper/
|
|
56
|
-
onResize?: (swiper: import('swiper/
|
|
57
|
-
onObserverUpdate?: (swiper: import('swiper/
|
|
58
|
-
onBeforeLoopFix?: (swiper: import('swiper/
|
|
59
|
-
onLoopFix?: (swiper: import('swiper/
|
|
60
|
-
onBreakpoint?: (swiper: import('swiper/
|
|
61
|
-
_beforeBreakpoint?: (swiper: import('swiper/
|
|
62
|
-
_containerClasses?: (swiper: import('swiper/
|
|
63
|
-
_slideClass?: (swiper: import('swiper/
|
|
64
|
-
_slideClasses?: (swiper: import('swiper/
|
|
6
|
+
onSwiper?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
7
|
+
onAutoplayStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
8
|
+
onAutoplayStop?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
9
|
+
onAutoplayPause?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
10
|
+
onAutoplayResume?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
11
|
+
onAutoplayTimeLeft?: (swiper: import('swiper/react').SwiperClass, timeLeft: number, percentage: number) => void;
|
|
12
|
+
onAutoplay?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
13
|
+
onHashChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
14
|
+
onHashSet?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
15
|
+
onScroll?: (swiper: import('swiper/react').SwiperClass, event: WheelEvent) => void;
|
|
16
|
+
onKeyPress?: (swiper: import('swiper/react').SwiperClass, keyCode: string) => void;
|
|
17
|
+
onNavigationHide?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
18
|
+
onNavigationShow?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
19
|
+
onNavigationPrev?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
20
|
+
onNavigationNext?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
21
|
+
onPaginationRender?: (swiper: import('swiper/react').SwiperClass, paginationEl: HTMLElement) => void;
|
|
22
|
+
onPaginationUpdate?: (swiper: import('swiper/react').SwiperClass, paginationEl: HTMLElement) => void;
|
|
23
|
+
onPaginationHide?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
24
|
+
onPaginationShow?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
25
|
+
onScrollbarDragStart?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
26
|
+
onScrollbarDragMove?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
27
|
+
onScrollbarDragEnd?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
28
|
+
onZoomChange?: (swiper: import('swiper/react').SwiperClass, scale: number, imageEl: HTMLElement, slideEl: HTMLElement) => void;
|
|
29
|
+
onInit?: (swiper: import('swiper/react').SwiperClass) => any;
|
|
30
|
+
onBeforeDestroy?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
31
|
+
onSlidesUpdated?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
32
|
+
onSlideChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
33
|
+
onSlideChangeTransitionStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
34
|
+
onSlideChangeTransitionEnd?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
35
|
+
onSlideNextTransitionStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
36
|
+
onSlideNextTransitionEnd?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
37
|
+
onSlidePrevTransitionStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
38
|
+
onSlidePrevTransitionEnd?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
39
|
+
onTransitionStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
40
|
+
onTransitionEnd?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
41
|
+
onTouchStart?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
42
|
+
onTouchMove?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
43
|
+
onTouchMoveOpposite?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
44
|
+
onSliderMove?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
45
|
+
onTouchEnd?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
46
|
+
onClick?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
47
|
+
onTap?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
48
|
+
onDoubleTap?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
49
|
+
onProgress?: (swiper: import('swiper/react').SwiperClass, progress: number) => void;
|
|
50
|
+
onReachBeginning?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
51
|
+
onReachEnd?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
52
|
+
onToEdge?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
53
|
+
onFromEdge?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
54
|
+
onSetTranslate?: (swiper: import('swiper/react').SwiperClass, translate: number) => void;
|
|
55
|
+
onSetTransition?: (swiper: import('swiper/react').SwiperClass, transition: number) => void;
|
|
56
|
+
onResize?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
57
|
+
onObserverUpdate?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
58
|
+
onBeforeLoopFix?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
59
|
+
onLoopFix?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
60
|
+
onBreakpoint?: (swiper: import('swiper/react').SwiperClass, breakpointParams: import('swiper/types').SwiperOptions) => void;
|
|
61
|
+
_beforeBreakpoint?: (swiper: import('swiper/react').SwiperClass, breakpointParams: import('swiper/types').SwiperOptions) => void;
|
|
62
|
+
_containerClasses?: (swiper: import('swiper/react').SwiperClass, classNames: string) => void;
|
|
63
|
+
_slideClass?: (swiper: import('swiper/react').SwiperClass, slideEl: HTMLElement, classNames: string) => void;
|
|
64
|
+
_slideClasses?: (swiper: import('swiper/react').SwiperClass, slides: {
|
|
65
65
|
slideEl: HTMLElement;
|
|
66
66
|
classNames: string;
|
|
67
67
|
index: number;
|
|
68
68
|
}[]) => void;
|
|
69
|
-
_swiper?: (swiper: import('swiper/
|
|
70
|
-
_freeModeNoMomentumRelease?: (swiper: import('swiper/
|
|
71
|
-
onActiveIndexChange?: (swiper: import('swiper/
|
|
72
|
-
onSnapIndexChange?: (swiper: import('swiper/
|
|
73
|
-
onRealIndexChange?: (swiper: import('swiper/
|
|
74
|
-
onAfterInit?: (swiper: import('swiper/
|
|
75
|
-
onBeforeInit?: (swiper: import('swiper/
|
|
76
|
-
onBeforeResize?: (swiper: import('swiper/
|
|
77
|
-
onBeforeSlideChangeStart?: (swiper: import('swiper/
|
|
78
|
-
onBeforeTransitionStart?: (swiper: import('swiper/
|
|
79
|
-
onChangeDirection?: (swiper: import('swiper/
|
|
80
|
-
onDoubleClick?: (swiper: import('swiper/
|
|
81
|
-
onDestroy?: (swiper: import('swiper/
|
|
82
|
-
onMomentumBounce?: (swiper: import('swiper/
|
|
83
|
-
onOrientationchange?: (swiper: import('swiper/
|
|
84
|
-
onSlideResetTransitionStart?: (swiper: import('swiper/
|
|
85
|
-
onSlideResetTransitionEnd?: (swiper: import('swiper/
|
|
86
|
-
onSliderFirstMove?: (swiper: import('swiper/
|
|
87
|
-
onSlidesLengthChange?: (swiper: import('swiper/
|
|
88
|
-
onSlidesGridLengthChange?: (swiper: import('swiper/
|
|
89
|
-
onSnapGridLengthChange?: (swiper: import('swiper/
|
|
90
|
-
onUpdate?: (swiper: import('swiper/
|
|
91
|
-
onLock?: (swiper: import('swiper/
|
|
92
|
-
onUnlock?: (swiper: import('swiper/
|
|
69
|
+
_swiper?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
70
|
+
_freeModeNoMomentumRelease?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
71
|
+
onActiveIndexChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
72
|
+
onSnapIndexChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
73
|
+
onRealIndexChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
74
|
+
onAfterInit?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
75
|
+
onBeforeInit?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
76
|
+
onBeforeResize?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
77
|
+
onBeforeSlideChangeStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
78
|
+
onBeforeTransitionStart?: (swiper: import('swiper/react').SwiperClass, speed: number, internal: any) => void;
|
|
79
|
+
onChangeDirection?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
80
|
+
onDoubleClick?: (swiper: import('swiper/react').SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
81
|
+
onDestroy?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
82
|
+
onMomentumBounce?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
83
|
+
onOrientationchange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
84
|
+
onSlideResetTransitionStart?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
85
|
+
onSlideResetTransitionEnd?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
86
|
+
onSliderFirstMove?: (swiper: import('swiper/react').SwiperClass, event: TouchEvent) => void;
|
|
87
|
+
onSlidesLengthChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
88
|
+
onSlidesGridLengthChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
89
|
+
onSnapGridLengthChange?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
90
|
+
onUpdate?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
91
|
+
onLock?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
92
|
+
onUnlock?: (swiper: import('swiper/react').SwiperClass) => void;
|
|
93
93
|
} & {
|
|
94
94
|
children?: import('react').ReactNode | undefined;
|
|
95
95
|
}>;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const CloseButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const buttonAvailable: import('@linaria/core').LinariaClassName;
|
|
4
|
-
export declare const IconArrowPrev:
|
|
5
|
-
|
|
4
|
+
export declare const IconArrowPrev: {
|
|
5
|
+
__wyw_meta: unknown;
|
|
6
|
+
} & import('react').FC<{
|
|
7
|
+
name: keyof typeof import('../../../../ui/icons').icons;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const IconArrowNext: {
|
|
12
|
+
__wyw_meta: unknown;
|
|
13
|
+
} & import('react').FC<{
|
|
14
|
+
name: keyof typeof import('../../../../ui/icons').icons;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
className?: string;
|
|
17
|
+
}>;
|
|
6
18
|
export declare const Header: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
19
|
export declare const HeaderTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
20
|
export declare const Main: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -3,8 +3,8 @@ import { styled as l } from "@linaria/react";
|
|
|
3
3
|
import { useMastersContext as a } from "../../useMastersContext.js";
|
|
4
4
|
import { useStore as n } from "@streamlayer/react-polyfills";
|
|
5
5
|
import { QuestionType as m } from "@streamlayer/sdk-web-types";
|
|
6
|
-
import { VoteHeader as
|
|
7
|
-
import { Sponsor as
|
|
6
|
+
import { VoteHeader as p } from "../../../../ui/gamification/detail/header/index.js";
|
|
7
|
+
import { Sponsor as c } from "../../../../ui/gamification/detail/sponsor/index.js";
|
|
8
8
|
import { Vote as f, VoteSkeleton as b } from "../../../../ui/gamification/vote/index.js";
|
|
9
9
|
import { InsightDetails as y } from "../../../../ui/gamification/vote/insight-details/index.js";
|
|
10
10
|
import { TwitterDetails as V } from "../../../../ui/gamification/vote/twitter-details/index.js";
|
|
@@ -15,51 +15,53 @@ const h = /* @__PURE__ */ l("div")({
|
|
|
15
15
|
}), x = ({
|
|
16
16
|
openedQuestion: t
|
|
17
17
|
}) => {
|
|
18
|
-
var
|
|
18
|
+
var o, s;
|
|
19
19
|
const {
|
|
20
20
|
sdk: r
|
|
21
21
|
} = a();
|
|
22
|
-
return ((
|
|
22
|
+
return ((o = t == null ? void 0 : t.attributes) == null ? void 0 : o.attributes.case) === "insight" ? /* @__PURE__ */ e(y, {
|
|
23
23
|
...t.attributes.attributes.value,
|
|
24
24
|
controlVideo: r == null ? void 0 : r.controlVideoPlayer
|
|
25
|
-
}) : ((
|
|
25
|
+
}) : ((s = t == null ? void 0 : t.attributes) == null ? void 0 : s.attributes.case) === "tweet" ? /* @__PURE__ */ e(V, {
|
|
26
26
|
...t.attributes.attributes.value,
|
|
27
27
|
controlVideo: r == null ? void 0 : r.controlVideoPlayer
|
|
28
28
|
}) : null;
|
|
29
29
|
}, d = ({
|
|
30
30
|
extendedQuestion: t,
|
|
31
31
|
vote: r,
|
|
32
|
-
close:
|
|
32
|
+
close: o
|
|
33
33
|
}) => {
|
|
34
34
|
const {
|
|
35
|
-
loading:
|
|
35
|
+
loading: s,
|
|
36
36
|
data: i
|
|
37
37
|
} = t;
|
|
38
38
|
return i ? /* @__PURE__ */ e(f, {
|
|
39
39
|
vote: r,
|
|
40
|
-
close:
|
|
40
|
+
close: o,
|
|
41
41
|
openedQuestion: i,
|
|
42
|
-
isLoading: !!
|
|
42
|
+
isLoading: !!s,
|
|
43
|
+
mastersApp: !0
|
|
43
44
|
}) : /* @__PURE__ */ e(b, {});
|
|
44
45
|
}, H = ({
|
|
45
46
|
gamification: t
|
|
46
47
|
}) => {
|
|
47
48
|
var i;
|
|
48
|
-
const r = n(t.openedQuestion.$store),
|
|
49
|
+
const r = n(t.openedQuestion.$store), o = n(t.openedQuestion.$extendedStore);
|
|
49
50
|
if (!r)
|
|
50
51
|
return null;
|
|
51
|
-
const
|
|
52
|
+
const s = r.type;
|
|
52
53
|
return /* @__PURE__ */ u(h, {
|
|
53
|
-
children: [/* @__PURE__ */ e(
|
|
54
|
+
children: [/* @__PURE__ */ e(p, {
|
|
54
55
|
close: t.closeQuestion,
|
|
55
|
-
type: ((i = r.attributes) == null ? void 0 : i.type) || m.UNSET
|
|
56
|
-
|
|
56
|
+
type: ((i = r.attributes) == null ? void 0 : i.type) || m.UNSET,
|
|
57
|
+
mastersApp: !0
|
|
58
|
+
}), s === "question" && /* @__PURE__ */ e(d, {
|
|
57
59
|
vote: t.submitAnswer,
|
|
58
60
|
close: t.closeQuestion,
|
|
59
|
-
extendedQuestion:
|
|
60
|
-
}),
|
|
61
|
+
extendedQuestion: o
|
|
62
|
+
}), s !== "question" && /* @__PURE__ */ e(x, {
|
|
61
63
|
openedQuestion: r
|
|
62
|
-
}), /* @__PURE__ */ e(
|
|
64
|
+
}), /* @__PURE__ */ e(c, {
|
|
63
65
|
mastersApp: !0
|
|
64
66
|
})]
|
|
65
67
|
});
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const CloseIcon:
|
|
3
|
+
export declare const CloseIcon: {
|
|
4
|
+
__wyw_meta: unknown;
|
|
5
|
+
} & import('react').FC<{
|
|
6
|
+
name: keyof typeof import('../../../../../ui/icons').icons;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
4
10
|
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
11
|
export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
6
12
|
export declare const PresentsTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export declare const Container:
|
|
1
|
+
export declare const Container: {
|
|
2
|
+
__wyw_meta: unknown;
|
|
3
|
+
} & import('react').FC<{
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
hiding?: boolean;
|
|
9
|
+
onAnimationEnd?: React.AnimationEventHandler;
|
|
10
|
+
}>;
|
|
2
11
|
export declare const InnerContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
12
|
export declare const HiddenContainer: {
|
|
4
13
|
__wyw_meta: unknown;
|
|
@@ -6,4 +15,11 @@ export declare const HiddenContainer: {
|
|
|
6
15
|
as?: React.ElementType;
|
|
7
16
|
}>;
|
|
8
17
|
export declare const NotificationRefreshing: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const Pill:
|
|
18
|
+
export declare const Pill: {
|
|
19
|
+
__wyw_meta: unknown;
|
|
20
|
+
} & import('react').FC<{
|
|
21
|
+
title?: string;
|
|
22
|
+
onClick: () => void;
|
|
23
|
+
className?: string;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
2
|
+
import { LeaderBoardButtonId } from './Navigation/MastersNavigation';
|
|
2
3
|
export { StreamLayerMastersThemeProvider } from '../../ui/theme/masters';
|
|
3
|
-
export type Overlays = {
|
|
4
|
+
export type Overlays = {
|
|
5
|
+
[LeaderBoardButtonId]: React.ReactNode;
|
|
6
|
+
};
|
|
4
7
|
export type MastersAppChildrenProps = {
|
|
5
8
|
activateEventWithId: (event: string) => void;
|
|
6
9
|
deactivate: () => void;
|
|
@@ -14,7 +14,7 @@ import { AvailableOverlays } from './Navigation/MastersNavigation';
|
|
|
14
14
|
export declare const useMastersApp: (sdk: StreamLayerSDK) => {
|
|
15
15
|
sdkEnabled: boolean;
|
|
16
16
|
sdkReady: boolean;
|
|
17
|
-
activeOverlay:
|
|
17
|
+
activeOverlay: AvailableOverlays;
|
|
18
18
|
activateAndLoadOverlay: (event: string, overlay: AvailableOverlays) => void;
|
|
19
19
|
activateEventWithId: (event: string) => void;
|
|
20
20
|
deactivate: () => void;
|
package/lib/app/tgl/styles.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ export declare const VideoFrame: import('@linaria/react').StyledComponent<import
|
|
|
4
4
|
export declare const AdvSidebar: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
5
|
export declare const AdvContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
6
|
export declare const AdvBanner: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
|
-
export declare const PromoButton:
|
|
7
|
+
export declare const PromoButton: {
|
|
8
|
+
__wyw_meta: unknown;
|
|
9
|
+
} & import('react').FC<import('../../ui/button').ButtonProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
|
-
import { ControlVideoCb } from '
|
|
2
|
+
import { ControlVideoCb } from '../../../ui/video-player';
|
|
3
3
|
export declare const AdvertisementUI: React.FC<{
|
|
4
4
|
advertisement: Exclude<Advertisement['data'], undefined>;
|
|
5
5
|
sidebar?: 'left' | 'right';
|
|
@@ -13,4 +13,10 @@ export declare const AdvertisementUI: React.FC<{
|
|
|
13
13
|
controlVideo: ControlVideoCb;
|
|
14
14
|
advertisementPaused: boolean;
|
|
15
15
|
togglePause: (flag: boolean) => void;
|
|
16
|
+
isEventFired: Advertisement['isEventFired'];
|
|
17
|
+
fireEvent: Advertisement['fireEvent'];
|
|
18
|
+
muted?: boolean;
|
|
19
|
+
toggleMute: (flag: boolean) => void;
|
|
20
|
+
isMuted?: boolean;
|
|
21
|
+
isNotification?: boolean;
|
|
16
22
|
}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { TVSidebar as S } from "../ui/Sidebar/index.js";
|
|
3
|
+
import { Banner as b } from "../../../ui/advertisement/banner/index.js";
|
|
4
|
+
import { Notification as g } from "../../../ui/advertisement/notification/index.js";
|
|
5
|
+
import { Sidebar as s } from "../../../ui/advertisement/sidebar/index.js";
|
|
6
|
+
const B = ({
|
|
7
|
+
advertisement: o,
|
|
8
|
+
close: t,
|
|
9
|
+
skipAutoClose: p,
|
|
10
|
+
sidebar: n,
|
|
11
|
+
banner: f,
|
|
12
|
+
markAsViewed: c,
|
|
13
|
+
open: i,
|
|
14
|
+
controlVideo: l,
|
|
15
|
+
advertisementPaused: d,
|
|
16
|
+
togglePause: a,
|
|
17
|
+
isEventFired: m,
|
|
18
|
+
fireEvent: u,
|
|
19
|
+
muted: I,
|
|
20
|
+
toggleMute: h,
|
|
21
|
+
isMuted: q,
|
|
22
|
+
isNotification: N
|
|
23
|
+
}) => o.promotion ? N && o.notification ? /* @__PURE__ */ r(
|
|
24
|
+
g,
|
|
25
|
+
{
|
|
26
|
+
open: () => i == null ? void 0 : i({ fromNotification: !0 }),
|
|
27
|
+
notification: o.notification,
|
|
28
|
+
promotionId: o.question.id,
|
|
29
|
+
close: t,
|
|
30
|
+
webos: !0
|
|
31
|
+
}
|
|
32
|
+
) : n ? /* @__PURE__ */ r(s, { className: "PromoSidebarContainer", direction: n, hiding: !1, children: /* @__PURE__ */ r(
|
|
33
|
+
S,
|
|
34
|
+
{
|
|
35
|
+
markAsViewed: c,
|
|
36
|
+
promotionId: o.question.id,
|
|
37
|
+
promotion: o.promotion,
|
|
38
|
+
onClose: t,
|
|
39
|
+
open: i,
|
|
40
|
+
controlVideo: l,
|
|
41
|
+
skipAutoClose: p,
|
|
42
|
+
advertisementPaused: d,
|
|
43
|
+
togglePause: a,
|
|
44
|
+
isEventFired: m,
|
|
45
|
+
fireEvent: u,
|
|
46
|
+
muted: I,
|
|
47
|
+
toggleMute: h,
|
|
48
|
+
isMuted: q
|
|
49
|
+
}
|
|
50
|
+
) }) : f ? /* @__PURE__ */ r(
|
|
51
|
+
b,
|
|
52
|
+
{
|
|
53
|
+
promotionId: o.question.id,
|
|
54
|
+
hiding: !1,
|
|
55
|
+
promotion: o.promotion,
|
|
56
|
+
direction: f,
|
|
57
|
+
isEventFired: m,
|
|
58
|
+
fireEvent: u
|
|
59
|
+
}
|
|
60
|
+
) : null : null;
|
|
61
|
+
export {
|
|
62
|
+
B as AdvertisementUI
|
|
63
|
+
};
|
|
@@ -4,7 +4,9 @@ export type StreamLayerSDKAdvertisementProps = {
|
|
|
4
4
|
sidebar?: 'left' | 'right';
|
|
5
5
|
banner?: 'top' | 'bottom';
|
|
6
6
|
skipAutoClose?: boolean;
|
|
7
|
+
muted?: boolean;
|
|
8
|
+
notification?: boolean;
|
|
7
9
|
};
|
|
8
|
-
export declare const
|
|
10
|
+
export declare const StreamLayerSDKAdvertisementWebOS: React.FC<StreamLayerSDKAdvertisementProps & {
|
|
9
11
|
sdk: StreamLayerSDK;
|
|
10
12
|
}>;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as M, jsx as P } from "react/jsx-runtime";
|
|
2
|
+
import { cx as T } from "@linaria/core";
|
|
3
|
+
import { styled as V } from "@linaria/react";
|
|
4
|
+
import { useAnalyticsListener as x } from "../../../hooks/analytics.js";
|
|
5
|
+
import { useHideTransition as F } from "../../../hooks/showIn.js";
|
|
6
|
+
import { forwardRef as O, useEffect as B, useRef as j } from "react";
|
|
7
|
+
import { useStore as u } from "@streamlayer/react-polyfills";
|
|
8
|
+
import { eventBus as E } from "@streamlayer/sdk-web-interfaces";
|
|
9
|
+
import { PromotionType as q, FeatureType as D } from "@streamlayer/sdk-web-types";
|
|
10
|
+
import { useAdvertisementBackground as H } from "../../../ui/theme/utils.js";
|
|
11
|
+
import { AdvertisementUI as K } from "./AdvertisementUI.js";
|
|
12
|
+
const N = /* @__PURE__ */ V("div")({
|
|
13
|
+
name: "AdvertisementUIWrap",
|
|
14
|
+
class: "a17b2u9w",
|
|
15
|
+
propsAsIs: !1
|
|
16
|
+
}), R = (t) => {
|
|
17
|
+
const r = t.target;
|
|
18
|
+
if (r instanceof HTMLAnchorElement && r.target === "_blank") {
|
|
19
|
+
const o = r.getAttribute("data-promo-id") || "", a = r.getAttribute("data-promo-type") || q.UNSET;
|
|
20
|
+
r.getAttribute("data-a") === "button" && E.emit("advertisement", {
|
|
21
|
+
action: "buttonSelect",
|
|
22
|
+
payload: {
|
|
23
|
+
id: o,
|
|
24
|
+
type: a
|
|
25
|
+
}
|
|
26
|
+
}), r.getAttribute("data-a") === "banner" && E.emit("advertisement", {
|
|
27
|
+
action: "bannerSelect",
|
|
28
|
+
payload: {
|
|
29
|
+
id: o,
|
|
30
|
+
type: a
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}, G = O(({
|
|
35
|
+
gamification: t,
|
|
36
|
+
skipAutoClose: r,
|
|
37
|
+
containerId: o,
|
|
38
|
+
muted: a,
|
|
39
|
+
notification: n,
|
|
40
|
+
sidebar: s,
|
|
41
|
+
banner: i,
|
|
42
|
+
persistent: m,
|
|
43
|
+
controlVideo: l
|
|
44
|
+
}, d) => {
|
|
45
|
+
var p, f, g, v, A, b, S, y, U, I;
|
|
46
|
+
const e = u(t.advertisement.$store), {
|
|
47
|
+
finished: c
|
|
48
|
+
} = F();
|
|
49
|
+
x(d, {
|
|
50
|
+
enabled: !!e.data,
|
|
51
|
+
event: "click",
|
|
52
|
+
listener: R
|
|
53
|
+
}), B(() => {
|
|
54
|
+
var L;
|
|
55
|
+
c && ((L = e.close) == null || L.call(e));
|
|
56
|
+
}, [c]);
|
|
57
|
+
const k = !i && !s, W = ((g = (f = (p = e.data) == null ? void 0 : p.question) == null ? void 0 : f.backgroundImage) == null ? void 0 : g.landscapeUrl) || ((A = (v = e.data) == null ? void 0 : v.promotion) == null ? void 0 : A.backgroundImageLandscapeUrl), h = ((y = (S = (b = e.data) == null ? void 0 : b.question) == null ? void 0 : S.backgroundImage) == null ? void 0 : y.portraitUrl) || ((I = (U = e.data) == null ? void 0 : U.promotion) == null ? void 0 : I.backgroundImagePortraitUrl), w = H({
|
|
58
|
+
containerId: o,
|
|
59
|
+
landscapeUrl: W,
|
|
60
|
+
portraitUrl: h
|
|
61
|
+
});
|
|
62
|
+
return e.data === void 0 || !m && e.isViewed ? null : /* @__PURE__ */ M(N, {
|
|
63
|
+
ref: d,
|
|
64
|
+
style: {
|
|
65
|
+
height: k ? "auto" : "100%"
|
|
66
|
+
},
|
|
67
|
+
className: T("SL-AdvertisementUIWrap", "SL-AdvertisementWebOs", "SL-AdvertisementUIWrap--lower-third"),
|
|
68
|
+
children: [!n && w, /* @__PURE__ */ P(K, {
|
|
69
|
+
sidebar: s,
|
|
70
|
+
banner: i,
|
|
71
|
+
advertisement: e.data,
|
|
72
|
+
advertisementPaused: !!e.isPaused,
|
|
73
|
+
togglePause: e.togglePause || (() => {
|
|
74
|
+
}),
|
|
75
|
+
toggleMute: e.toggleMute || (() => {
|
|
76
|
+
}),
|
|
77
|
+
isMuted: e.isMuted,
|
|
78
|
+
close: e.close,
|
|
79
|
+
isEventFired: e.isEventFired,
|
|
80
|
+
fireEvent: e.fireEvent,
|
|
81
|
+
markAsViewed: t.advertisement.markAsViewed,
|
|
82
|
+
open: t.advertisement.open,
|
|
83
|
+
isNotification: n,
|
|
84
|
+
skipAutoClose: r,
|
|
85
|
+
controlVideo: l,
|
|
86
|
+
muted: a
|
|
87
|
+
})]
|
|
88
|
+
});
|
|
89
|
+
}), re = ({
|
|
90
|
+
sdk: t,
|
|
91
|
+
sidebar: r,
|
|
92
|
+
muted: o,
|
|
93
|
+
banner: a,
|
|
94
|
+
skipAutoClose: n,
|
|
95
|
+
persistent: s,
|
|
96
|
+
notification: i
|
|
97
|
+
}) => {
|
|
98
|
+
const {
|
|
99
|
+
containerId: m
|
|
100
|
+
} = u(t.options), l = u(t.featuresList.getStore()), d = j(null);
|
|
101
|
+
if (!l)
|
|
102
|
+
return null;
|
|
103
|
+
const e = t.getFeature(D.GAMES);
|
|
104
|
+
return e != null && e.advertisement ? /* @__PURE__ */ P(G, {
|
|
105
|
+
ref: d,
|
|
106
|
+
gamification: e,
|
|
107
|
+
sidebar: r,
|
|
108
|
+
banner: a,
|
|
109
|
+
persistent: s,
|
|
110
|
+
skipAutoClose: n,
|
|
111
|
+
muted: o,
|
|
112
|
+
notification: i,
|
|
113
|
+
containerId: m,
|
|
114
|
+
controlVideo: t.controlVideoPlayer
|
|
115
|
+
}) : null;
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
re as StreamLayerSDKAdvertisementWebOS
|
|
119
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PauseAdProps {
|
|
2
|
+
vastUrls: Array<{
|
|
3
|
+
template?: 'default';
|
|
4
|
+
url: string;
|
|
5
|
+
}>;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
caption?: string;
|
|
9
|
+
onPlay?: () => void;
|
|
10
|
+
showPauseAd?: boolean;
|
|
11
|
+
onRender?: (params: {
|
|
12
|
+
rendered: boolean;
|
|
13
|
+
}) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const PauseAd: React.FC<PauseAdProps>;
|