@zezosoft/zezo-ott-react-native-ui-kit 1.1.0 → 1.1.2
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/module/Styles/globalStyles.js +0 -5
- package/lib/module/Styles/globalStyles.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +64 -40
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +5 -2
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +17 -11
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +12 -6
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +7 -4
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +133 -86
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +174 -109
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +19 -13
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +54 -36
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +29 -11
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +13 -7
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +33 -21
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +26 -20
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +36 -20
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +152 -0
- package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +4 -0
- package/lib/module/components/BottomSheet/index.js.map +1 -0
- package/lib/module/components/Button/BackBtn.js +46 -16
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +19 -13
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/SecondaryBtn.js +19 -13
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +19 -13
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +70 -37
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +40 -32
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +109 -48
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -11
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +105 -43
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +18 -17
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +78 -28
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Content.js +44 -25
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +37 -29
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +70 -41
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +74 -40
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +40 -19
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +6 -7
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +2 -2
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +25 -13
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +39 -11
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/MiniInfo.js +84 -77
- package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +11 -7
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +12 -12
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +12 -7
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/Fallbacks/NoContentFallback.js +27 -22
- package/lib/module/components/Fallbacks/NoContentFallback.js.map +1 -1
- package/lib/module/components/Fallbacks/NotFoundFallback.js +6 -4
- package/lib/module/components/Fallbacks/NotFoundFallback.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +22 -13
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/Three.js +6 -5
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +19 -14
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +46 -31
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +2 -2
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +17 -14
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +134 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +154 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js +173 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +77 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js +132 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js +165 -0
- package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +106 -0
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js +124 -0
- package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +102 -64
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +241 -232
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js +153 -0
- package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/{Model → components}/Episodes.js +46 -36
- package/lib/module/components/Reels/ReelsSeries/components/Episodes.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js +35 -0
- package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/Like.js +37 -0
- package/lib/module/components/Reels/ReelsSeries/components/Like.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js +55 -0
- package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js +268 -0
- package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +143 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js +56 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js +5 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/gestureUtils.js +30 -0
- package/lib/module/components/Reels/utils/Controls/gestureUtils.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/index.js +7 -0
- package/lib/module/components/Reels/utils/Controls/index.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/overlayUtils.js +28 -0
- package/lib/module/components/Reels/utils/Controls/overlayUtils.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js +27 -0
- package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/videoRef.js +5 -0
- package/lib/module/components/Reels/utils/Controls/videoRef.js.map +1 -0
- package/lib/module/components/Reels/utils/index.js +4 -0
- package/lib/module/components/Reels/utils/index.js.map +1 -0
- package/lib/module/components/Reels/utils/timeoutUtils.js +24 -0
- package/lib/module/components/Reels/utils/timeoutUtils.js.map +1 -0
- package/lib/module/components/Search/One.js +2 -1
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +15 -19
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +97 -62
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +313 -254
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Text/Text.js +15 -12
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +25 -23
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +23 -18
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +38 -24
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +21 -14
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +30 -21
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +38 -19
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +37 -17
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/View/View.js +7 -4
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/index.js +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks/index.js +17 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useDebounce.js +25 -6
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js +7 -4
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/useNavigationMode.js +10 -4
- package/lib/module/hooks/useNavigationMode.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js +1 -1
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/hooks/usePrevious.js +30 -0
- package/lib/module/hooks/usePrevious.js.map +1 -0
- package/lib/module/hooks/useSafeCallback.js +33 -0
- package/lib/module/hooks/useSafeCallback.js.map +1 -0
- package/lib/module/hooks/useSkeletonItems.js +33 -0
- package/lib/module/hooks/useSkeletonItems.js.map +1 -0
- package/lib/module/hooks/useSplashCache.js +2 -1
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/module/hooks/useThemeColors.js +33 -0
- package/lib/module/hooks/useThemeColors.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +24 -15
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useInternalTheme.js +18 -11
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
- package/lib/module/theme/hook/useThemeStatusBar.js +10 -4
- package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -1
- package/lib/module/theme/themes.js +3 -3
- package/lib/typescript/src/Styles/globalStyles.d.ts +0 -5
- package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +0 -15
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +18 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +3 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts +5 -3
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +2 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +2 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts +2 -2
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +4 -2
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +2 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -2
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts +2 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts +1 -1
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +2 -2
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +2 -2
- package/lib/typescript/src/components/Input/Input.d.ts +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts +2 -2
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +2 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +60 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts +16 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +8 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +8 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts +13 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/{Model → components}/Episodes.d.ts +3 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Episodes.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts +7 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts +7 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts +10 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts +3 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +13 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts +10 -0
- package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts +5 -0
- package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts +12 -0
- package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts +24 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts +3 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/index.d.ts +2 -0
- package/lib/typescript/src/components/Reels/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts +14 -0
- package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +2 -5
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/index.d.ts +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +2 -2
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/Text.d.ts +2 -2
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts +2 -0
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/index.d.ts +14 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useNavigationMode.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePrevious.d.ts +12 -0
- package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSafeCallback.d.ts +15 -0
- package/lib/typescript/src/hooks/useSafeCallback.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSkeletonItems.d.ts +11 -0
- package/lib/typescript/src/hooks/useSkeletonItems.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useThemeColors.d.ts +27 -0
- package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/Styles/globalStyles.ts +0 -5
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +288 -212
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +11 -4
- package/src/components/Auth/Login/LoginWithEmail.tsx +266 -238
- package/src/components/Auth/Login/LoginWithPhone.tsx +18 -6
- package/src/components/Auth/OTP/OTP.tsx +21 -5
- package/src/components/Auth/QrLogin/QrLogin.tsx +225 -185
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +282 -166
- package/src/components/Auth/SignUp/SignUp.tsx +312 -293
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +186 -131
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +32 -15
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +11 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +34 -18
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +43 -37
- package/src/components/BlogView/BlogView.tsx +66 -30
- package/src/components/BottomSheet/BottomSheet.tsx +195 -0
- package/src/components/BottomSheet/index.ts +2 -0
- package/src/components/Button/BackBtn.tsx +87 -24
- package/src/components/Button/PrimaryBtn.tsx +42 -25
- package/src/components/Button/SecondaryBtn.tsx +41 -25
- package/src/components/Button/TextButton.tsx +54 -32
- package/src/components/Content/Card/Category/Category.tsx +94 -56
- package/src/components/Content/Card/Sliders/Styles/One.tsx +63 -47
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +131 -51
- package/src/components/Content/Card/Styles/RotateInOut.tsx +7 -9
- package/src/components/Content/Card/components/CardPoster.tsx +136 -55
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +58 -38
- package/src/components/Content/Card/components/ThumbnailCard.tsx +122 -47
- package/src/components/Content/Content.tsx +164 -97
- package/src/components/Content/Sections.tsx +99 -43
- package/src/components/ContentView/ContentView.tsx +194 -128
- package/src/components/ContentView/MoreContentList.tsx +215 -151
- package/src/components/ContentView/components/AboutSection.tsx +132 -93
- package/src/components/ContentView/components/CastCard.tsx +148 -138
- package/src/components/ContentView/components/EpisodeCard.tsx +160 -155
- package/src/components/ContentView/components/GenreTags.tsx +68 -53
- package/src/components/ContentView/components/HeroBanner.tsx +326 -284
- package/src/components/ContentView/components/MiniInfo.tsx +181 -159
- package/src/components/ContentView/components/PlayButton.tsx +27 -16
- package/src/components/ContentView/components/Title.tsx +89 -72
- package/src/components/ContentView/components/TrailerButton.tsx +35 -22
- package/src/components/Fallbacks/NoContentFallback.tsx +107 -103
- package/src/components/Fallbacks/NotFoundFallback.tsx +12 -4
- package/src/components/Headers/AppHeader.tsx +42 -26
- package/src/components/Headers/Three.tsx +12 -8
- package/src/components/Headers/Two.tsx +31 -10
- package/src/components/Input/InputOne.tsx +136 -108
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +43 -27
- package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +156 -0
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +234 -0
- package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +196 -0
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +92 -0
- package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +163 -0
- package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +210 -0
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +143 -0
- package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +154 -0
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +142 -74
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +349 -250
- package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +184 -0
- package/src/components/Reels/ReelsSeries/{Model → components}/Episodes.tsx +54 -33
- package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +41 -0
- package/src/components/Reels/ReelsSeries/components/Like.tsx +40 -0
- package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +79 -0
- package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +332 -0
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +190 -0
- package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +80 -0
- package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +2 -0
- package/src/components/Reels/ReelsSeries/types.ts +13 -2
- package/src/components/Reels/utils/Controls/gestureUtils.ts +42 -0
- package/src/components/Reels/utils/Controls/index.ts +4 -0
- package/src/components/Reels/utils/Controls/overlayUtils.ts +35 -0
- package/src/components/Reels/utils/Controls/videoControlsConstants.ts +25 -0
- package/src/components/Reels/utils/Controls/videoRef.ts +4 -0
- package/src/components/Reels/utils/index.ts +1 -0
- package/src/components/Reels/utils/timeoutUtils.ts +29 -0
- package/src/components/Search/One.tsx +2 -4
- package/src/components/Search/components/SearchCard.tsx +19 -13
- package/src/components/Settings/AppSettings.tsx +217 -128
- package/src/components/Subscription/SubOne.tsx +394 -317
- package/src/components/Text/Text.tsx +33 -22
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +129 -102
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +36 -17
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +194 -140
- package/src/components/User/WatchHistory/WatchHistory.tsx +63 -36
- package/src/components/User/WatchLater/WatchLater.tsx +119 -81
- package/src/components/User/components/UserAvatar.tsx +49 -15
- package/src/components/User/components/UserSection.tsx +71 -37
- package/src/components/View/View.tsx +10 -2
- package/src/components/index.ts +1 -1
- package/src/hooks/index.ts +14 -0
- package/src/hooks/useDebounce.ts +25 -6
- package/src/hooks/useKeyboard.ts +12 -5
- package/src/hooks/useNavigationMode.ts +16 -5
- package/src/hooks/usePaginatedSection.ts +1 -1
- package/src/hooks/usePrevious.ts +28 -0
- package/src/hooks/useSafeCallback.ts +43 -0
- package/src/hooks/useSkeletonItems.ts +30 -0
- package/src/hooks/useSplashCache.ts +2 -1
- package/src/hooks/useThemeColors.ts +51 -0
- package/src/theme/ThemeProvider.tsx +33 -11
- package/src/theme/hook/useInternalTheme.ts +19 -13
- package/src/theme/hook/useThemeStatusBar.ts +14 -5
- package/src/theme/themes.ts +3 -3
- package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +0 -1
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -212
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +0 -1
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +0 -182
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +0 -1
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +0 -203
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +0 -9
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +0 -13
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +0 -18
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +0 -1
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +0 -242
- package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +0 -209
- package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +0 -185
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useCallback, useState } from 'react';
|
|
4
|
+
import { Text, View, Image, StyleSheet, TouchableOpacity, Dimensions, TouchableWithoutFeedback, FlatList } from 'react-native';
|
|
5
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
6
|
+
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
7
|
+
import Svg, { Path, Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const {
|
|
10
|
+
width: SCREEN_WIDTH
|
|
11
|
+
} = Dimensions.get('window');
|
|
12
|
+
const MAX_LINES = 5;
|
|
13
|
+
const Synopsis = ({
|
|
14
|
+
theme,
|
|
15
|
+
description,
|
|
16
|
+
likeMoreData = [],
|
|
17
|
+
onLikeMorePress
|
|
18
|
+
}) => {
|
|
19
|
+
const [showMore, setShowMore] = useState(false);
|
|
20
|
+
const numColumns = SCREEN_WIDTH >= 420 ? 4 : 3;
|
|
21
|
+
const cardSpacing = scale(3);
|
|
22
|
+
const containerPadding = moderateScale(5);
|
|
23
|
+
|
|
24
|
+
// Calculate if description needs "Show More" button
|
|
25
|
+
// Approximate: ~50-60 characters per line for fontSize 11, lineHeight 16
|
|
26
|
+
const charsPerLine = 55;
|
|
27
|
+
const estimatedLines = description ? Math.ceil(description.length / charsPerLine) : 0;
|
|
28
|
+
const shouldShowButton = description && estimatedLines > MAX_LINES;
|
|
29
|
+
|
|
30
|
+
// Calculate card width for grid - ensure no overflow
|
|
31
|
+
const totalSpacing = cardSpacing * (numColumns - 1);
|
|
32
|
+
const totalPadding = containerPadding * 7;
|
|
33
|
+
const availableWidth = SCREEN_WIDTH - totalPadding - totalSpacing;
|
|
34
|
+
const cardWidth = Math.floor(availableWidth / numColumns);
|
|
35
|
+
const keyExtractor = useCallback(item => item.id.toString(), []);
|
|
36
|
+
const toggleShowMore = useCallback(() => {
|
|
37
|
+
setShowMore(prev => !prev);
|
|
38
|
+
}, []);
|
|
39
|
+
const renderItem = useCallback(({
|
|
40
|
+
item,
|
|
41
|
+
index
|
|
42
|
+
}) => {
|
|
43
|
+
const isLastInRow = (index + 1) % numColumns === 0;
|
|
44
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
45
|
+
style: [styles.card, {
|
|
46
|
+
width: cardWidth,
|
|
47
|
+
maxWidth: cardWidth,
|
|
48
|
+
marginRight: isLastInRow ? 0 : cardSpacing
|
|
49
|
+
}],
|
|
50
|
+
activeOpacity: 0.8,
|
|
51
|
+
onPress: () => onLikeMorePress?.(item),
|
|
52
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
53
|
+
style: styles.imageContainer,
|
|
54
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
55
|
+
source: {
|
|
56
|
+
uri: item?.thumbnail || ''
|
|
57
|
+
},
|
|
58
|
+
style: [styles.thumbnail, {
|
|
59
|
+
backgroundColor: theme.colors.surfaceDisabled
|
|
60
|
+
}],
|
|
61
|
+
resizeMode: "cover"
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
64
|
+
style: [styles.title, {
|
|
65
|
+
color: theme.colors.textPrimary
|
|
66
|
+
}],
|
|
67
|
+
numberOfLines: 2,
|
|
68
|
+
ellipsizeMode: "tail",
|
|
69
|
+
children: item.name || 'Untitled'
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
}, [theme.colors.textPrimary, theme.colors.surfaceDisabled, onLikeMorePress, cardWidth, cardSpacing, numColumns]);
|
|
73
|
+
const renderListHeader = useCallback(() => /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
74
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
75
|
+
style: styles.headerContainer,
|
|
76
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
77
|
+
style: styles.descriptionContainer,
|
|
78
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
79
|
+
style: [styles.description, {
|
|
80
|
+
color: theme.colors.textPrimary
|
|
81
|
+
}],
|
|
82
|
+
numberOfLines: showMore ? undefined : MAX_LINES,
|
|
83
|
+
children: description || 'No synopsis available for this reel. Please check back later.'
|
|
84
|
+
}), description && shouldShowButton && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
85
|
+
activeOpacity: 0.7,
|
|
86
|
+
onPress: toggleShowMore,
|
|
87
|
+
style: styles.showMoreButton,
|
|
88
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
89
|
+
style: [styles.showMoreText, {
|
|
90
|
+
color: theme.colors.primary
|
|
91
|
+
}],
|
|
92
|
+
children: showMore ? 'Show Less ▲' : 'Show More ▼'
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
}), likeMoreData.length > 0 && /*#__PURE__*/_jsxs(View, {
|
|
96
|
+
style: styles.header,
|
|
97
|
+
children: [/*#__PURE__*/_jsxs(Svg, {
|
|
98
|
+
width: 22,
|
|
99
|
+
height: 2,
|
|
100
|
+
viewBox: "0 0 22 2",
|
|
101
|
+
fill: "none",
|
|
102
|
+
children: [/*#__PURE__*/_jsx(Path, {
|
|
103
|
+
d: "M21.692 1.196H.594",
|
|
104
|
+
stroke: "url(#a)",
|
|
105
|
+
strokeWidth: 1.005
|
|
106
|
+
}), /*#__PURE__*/_jsx(Defs, {
|
|
107
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
108
|
+
id: "a",
|
|
109
|
+
x1: 0.594,
|
|
110
|
+
y1: 1.696,
|
|
111
|
+
x2: 21.692,
|
|
112
|
+
y2: 1.696,
|
|
113
|
+
gradientUnits: "userSpaceOnUse",
|
|
114
|
+
children: [/*#__PURE__*/_jsx(Stop, {
|
|
115
|
+
stopOpacity: 0
|
|
116
|
+
}), /*#__PURE__*/_jsx(Stop, {
|
|
117
|
+
offset: 1,
|
|
118
|
+
stopColor: theme.colors.textPrimary
|
|
119
|
+
})]
|
|
120
|
+
})
|
|
121
|
+
})]
|
|
122
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
123
|
+
style: [styles.headerText, {
|
|
124
|
+
color: theme.colors.textPrimary
|
|
125
|
+
}],
|
|
126
|
+
children: "More Like This"
|
|
127
|
+
}), /*#__PURE__*/_jsxs(Svg, {
|
|
128
|
+
width: 22,
|
|
129
|
+
height: 2,
|
|
130
|
+
viewBox: "0 0 22 2",
|
|
131
|
+
fill: "none",
|
|
132
|
+
children: [/*#__PURE__*/_jsx(Path, {
|
|
133
|
+
d: "M.312 1.196H21.41",
|
|
134
|
+
stroke: "url(#paint0_linear_797_3114)",
|
|
135
|
+
strokeWidth: 1.00467
|
|
136
|
+
}), /*#__PURE__*/_jsx(Defs, {
|
|
137
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
138
|
+
id: "paint0_linear_797_3114",
|
|
139
|
+
x1: 21.4102,
|
|
140
|
+
y1: 1.69629,
|
|
141
|
+
x2: 0.312025,
|
|
142
|
+
y2: 1.69629,
|
|
143
|
+
gradientUnits: "userSpaceOnUse",
|
|
144
|
+
children: [/*#__PURE__*/_jsx(Stop, {
|
|
145
|
+
stopOpacity: 0
|
|
146
|
+
}), /*#__PURE__*/_jsx(Stop, {
|
|
147
|
+
offset: 1,
|
|
148
|
+
stopColor: theme.colors.textPrimary
|
|
149
|
+
})]
|
|
150
|
+
})
|
|
151
|
+
})]
|
|
152
|
+
})]
|
|
153
|
+
})]
|
|
154
|
+
})
|
|
155
|
+
}), [description, likeMoreData.length, showMore, shouldShowButton, toggleShowMore, theme.colors.textPrimary, theme.colors.primary]);
|
|
156
|
+
const renderListEmpty = useCallback(() => /*#__PURE__*/_jsx(Text, {
|
|
157
|
+
style: [styles.noEpisodesText, {
|
|
158
|
+
color: theme.colors.textSecondary
|
|
159
|
+
}],
|
|
160
|
+
children: "No recommendations available."
|
|
161
|
+
}), [theme.colors.textSecondary]);
|
|
162
|
+
return /*#__PURE__*/_jsx(FlatList, {
|
|
163
|
+
data: likeMoreData,
|
|
164
|
+
keyExtractor: keyExtractor,
|
|
165
|
+
renderItem: renderItem,
|
|
166
|
+
ListHeaderComponent: renderListHeader,
|
|
167
|
+
ListEmptyComponent: likeMoreData.length === 0 ? renderListEmpty : null,
|
|
168
|
+
numColumns: numColumns,
|
|
169
|
+
showsVerticalScrollIndicator: false,
|
|
170
|
+
scrollEnabled: true,
|
|
171
|
+
contentContainerStyle: [styles.contentContainer, {
|
|
172
|
+
paddingHorizontal: containerPadding
|
|
173
|
+
}, likeMoreData.length === 0 && styles.contentContainerEmpty],
|
|
174
|
+
style: [styles.flatList],
|
|
175
|
+
removeClippedSubviews: false,
|
|
176
|
+
nestedScrollEnabled: true,
|
|
177
|
+
bounces: false,
|
|
178
|
+
initialNumToRender: numColumns * 2,
|
|
179
|
+
maxToRenderPerBatch: numColumns * 2,
|
|
180
|
+
disableVirtualization: false
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
export default Synopsis;
|
|
184
|
+
const styles = StyleSheet.create({
|
|
185
|
+
flatList: {
|
|
186
|
+
flex: 1,
|
|
187
|
+
overflow: 'hidden'
|
|
188
|
+
},
|
|
189
|
+
headerContainer: {
|
|
190
|
+
paddingBottom: verticalScale(8),
|
|
191
|
+
overflow: 'hidden',
|
|
192
|
+
width: '100%',
|
|
193
|
+
alignItems: 'center'
|
|
194
|
+
},
|
|
195
|
+
descriptionContainer: {
|
|
196
|
+
overflow: 'hidden'
|
|
197
|
+
},
|
|
198
|
+
description: {
|
|
199
|
+
fontSize: RFValue(11),
|
|
200
|
+
lineHeight: RFValue(16),
|
|
201
|
+
marginBottom: verticalScale(6),
|
|
202
|
+
letterSpacing: 0.2,
|
|
203
|
+
opacity: 0.8,
|
|
204
|
+
flexWrap: 'wrap'
|
|
205
|
+
},
|
|
206
|
+
showMoreButton: {
|
|
207
|
+
alignSelf: 'flex-start',
|
|
208
|
+
marginBottom: verticalScale(10)
|
|
209
|
+
},
|
|
210
|
+
showMoreText: {
|
|
211
|
+
fontSize: RFValue(10),
|
|
212
|
+
fontWeight: '500',
|
|
213
|
+
letterSpacing: 0.3
|
|
214
|
+
},
|
|
215
|
+
header: {
|
|
216
|
+
flexDirection: 'row',
|
|
217
|
+
alignItems: 'center',
|
|
218
|
+
justifyContent: 'center',
|
|
219
|
+
marginBottom: verticalScale(5),
|
|
220
|
+
marginTop: verticalScale(8),
|
|
221
|
+
width: '100%',
|
|
222
|
+
alignSelf: 'center'
|
|
223
|
+
},
|
|
224
|
+
headerText: {
|
|
225
|
+
fontSize: RFValue(12),
|
|
226
|
+
fontWeight: '600',
|
|
227
|
+
textAlign: 'center',
|
|
228
|
+
marginHorizontal: scale(10),
|
|
229
|
+
letterSpacing: 0.5
|
|
230
|
+
},
|
|
231
|
+
contentContainer: {
|
|
232
|
+
paddingBottom: verticalScale(30),
|
|
233
|
+
paddingTop: verticalScale(4)
|
|
234
|
+
},
|
|
235
|
+
contentContainerEmpty: {
|
|
236
|
+
paddingBottom: verticalScale(30)
|
|
237
|
+
},
|
|
238
|
+
card: {
|
|
239
|
+
borderRadius: moderateScale(10),
|
|
240
|
+
overflow: 'hidden',
|
|
241
|
+
marginBottom: verticalScale(10)
|
|
242
|
+
},
|
|
243
|
+
imageContainer: {
|
|
244
|
+
width: '100%',
|
|
245
|
+
overflow: 'hidden'
|
|
246
|
+
},
|
|
247
|
+
thumbnail: {
|
|
248
|
+
width: '100%',
|
|
249
|
+
aspectRatio: 1 / 1.5,
|
|
250
|
+
borderRadius: moderateScale(5)
|
|
251
|
+
},
|
|
252
|
+
title: {
|
|
253
|
+
fontSize: RFValue(10),
|
|
254
|
+
fontWeight: '500',
|
|
255
|
+
lineHeight: RFValue(14),
|
|
256
|
+
marginTop: verticalScale(1.5),
|
|
257
|
+
letterSpacing: 0.1,
|
|
258
|
+
flexShrink: 1
|
|
259
|
+
},
|
|
260
|
+
noEpisodesText: {
|
|
261
|
+
fontSize: RFValue(12),
|
|
262
|
+
textAlign: 'center',
|
|
263
|
+
marginTop: verticalScale(16),
|
|
264
|
+
marginBottom: verticalScale(8),
|
|
265
|
+
paddingVertical: verticalScale(20)
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
//# sourceMappingURL=Synopsis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useState","Text","View","Image","StyleSheet","TouchableOpacity","Dimensions","TouchableWithoutFeedback","FlatList","RFValue","moderateScale","scale","verticalScale","Svg","Path","Defs","LinearGradient","Stop","jsx","_jsx","jsxs","_jsxs","width","SCREEN_WIDTH","get","MAX_LINES","Synopsis","theme","description","likeMoreData","onLikeMorePress","showMore","setShowMore","numColumns","cardSpacing","containerPadding","charsPerLine","estimatedLines","Math","ceil","length","shouldShowButton","totalSpacing","totalPadding","availableWidth","cardWidth","floor","keyExtractor","item","id","toString","toggleShowMore","prev","renderItem","index","isLastInRow","style","styles","card","maxWidth","marginRight","activeOpacity","onPress","children","imageContainer","source","uri","thumbnail","backgroundColor","colors","surfaceDisabled","resizeMode","title","color","textPrimary","numberOfLines","ellipsizeMode","name","renderListHeader","headerContainer","descriptionContainer","undefined","showMoreButton","showMoreText","primary","header","height","viewBox","fill","d","stroke","strokeWidth","x1","y1","x2","y2","gradientUnits","stopOpacity","offset","stopColor","headerText","renderListEmpty","noEpisodesText","textSecondary","data","ListHeaderComponent","ListEmptyComponent","showsVerticalScrollIndicator","scrollEnabled","contentContainerStyle","contentContainer","paddingHorizontal","contentContainerEmpty","flatList","removeClippedSubviews","nestedScrollEnabled","bounces","initialNumToRender","maxToRenderPerBatch","disableVirtualization","create","flex","overflow","paddingBottom","alignItems","fontSize","lineHeight","marginBottom","letterSpacing","opacity","flexWrap","alignSelf","fontWeight","flexDirection","justifyContent","marginTop","textAlign","marginHorizontal","paddingTop","borderRadius","aspectRatio","flexShrink","paddingVertical"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/components/Synopsis.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SACEC,IAAI,EACJC,IAAI,EACJC,KAAK,EACLC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,EACVC,wBAAwB,EACxBC,QAAQ,QACH,cAAc;AACrB,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,SAASC,aAAa,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAC/E,OAAOC,GAAG,IAAIC,IAAI,EAAEC,IAAI,EAAEC,cAAc,EAAEC,IAAI,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIzE,MAAM;EAAEC,KAAK,EAAEC;AAAa,CAAC,GAAGjB,UAAU,CAACkB,GAAG,CAAC,QAAQ,CA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AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, StyleSheet, ActivityIndicator } from 'react-native';
|
|
5
|
+
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
6
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const DEFAULT_QUALITIES = ['Auto', '1080p', '720p', '480p', '360p'];
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Fetches available video qualities from m3u8 playlist.
|
|
12
|
+
*/
|
|
13
|
+
const getVideoQualities = async m3u8Url => {
|
|
14
|
+
try {
|
|
15
|
+
const res = await fetch(m3u8Url);
|
|
16
|
+
const text = await res.text();
|
|
17
|
+
const qualities = [];
|
|
18
|
+
const lines = text.split('\n');
|
|
19
|
+
for (let i = 0; i < lines.length; i++) {
|
|
20
|
+
if (lines?.[i]?.includes('#EXT-X-STREAM-INF')) {
|
|
21
|
+
const resolutionMatch = lines?.[i]?.match(/RESOLUTION=\\d+x(\\d+)/);
|
|
22
|
+
const url = lines[i + 1]?.trim();
|
|
23
|
+
if (resolutionMatch && url) {
|
|
24
|
+
qualities.push({
|
|
25
|
+
quality: `${resolutionMatch[1]}p`,
|
|
26
|
+
url
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return qualities;
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.error('Error fetching video qualities:', error);
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const QualityControl = ({
|
|
38
|
+
activeQuality,
|
|
39
|
+
theme,
|
|
40
|
+
onQualityChange,
|
|
41
|
+
videoUrl
|
|
42
|
+
}) => {
|
|
43
|
+
const [qualities, setQualities] = useState(DEFAULT_QUALITIES);
|
|
44
|
+
const [loading, setLoading] = useState(false);
|
|
45
|
+
const isMounted = useRef(true);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
isMounted.current = true;
|
|
48
|
+
return () => {
|
|
49
|
+
isMounted.current = false;
|
|
50
|
+
};
|
|
51
|
+
}, []);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
const fetchQualities = async () => {
|
|
54
|
+
if (!videoUrl || !videoUrl.includes('.m3u8')) {
|
|
55
|
+
if (isMounted.current) setQualities(DEFAULT_QUALITIES);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
setLoading(true);
|
|
59
|
+
try {
|
|
60
|
+
const qualityOptions = await getVideoQualities(videoUrl);
|
|
61
|
+
if (!isMounted.current) return;
|
|
62
|
+
if (qualityOptions.length > 0) {
|
|
63
|
+
const qualityStrings = ['Auto', ...qualityOptions.map(q => q.quality).filter((v, i, self) => self.indexOf(v) === i).sort((a, b) => parseInt(b, 10) - parseInt(a, 10))];
|
|
64
|
+
setQualities(qualityStrings);
|
|
65
|
+
} else {
|
|
66
|
+
setQualities(DEFAULT_QUALITIES);
|
|
67
|
+
}
|
|
68
|
+
} catch (err) {
|
|
69
|
+
console.error('Failed to fetch qualities:', err);
|
|
70
|
+
if (isMounted.current) setQualities(DEFAULT_QUALITIES);
|
|
71
|
+
} finally {
|
|
72
|
+
if (isMounted.current) setLoading(false);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
fetchQualities();
|
|
76
|
+
}, [videoUrl]);
|
|
77
|
+
if (loading) {
|
|
78
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
79
|
+
style: styles.loadingContainer,
|
|
80
|
+
children: [/*#__PURE__*/_jsx(ActivityIndicator, {
|
|
81
|
+
size: "small",
|
|
82
|
+
color: theme.colors.button
|
|
83
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
84
|
+
style: [styles.loadingText, {
|
|
85
|
+
color: theme.colors.textSecondary
|
|
86
|
+
}],
|
|
87
|
+
children: "Loading qualities..."
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return /*#__PURE__*/_jsx(View, {
|
|
92
|
+
style: styles.container,
|
|
93
|
+
children: qualities.map((quality, index) => {
|
|
94
|
+
const isSelected = activeQuality === quality;
|
|
95
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
96
|
+
activeOpacity: 0.8,
|
|
97
|
+
style: [styles.optionButton, {
|
|
98
|
+
backgroundColor: isSelected ? theme.colors.button : theme.colors.surfaceDisabled
|
|
99
|
+
}],
|
|
100
|
+
onPress: () => onQualityChange(quality),
|
|
101
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
102
|
+
style: [styles.optionText, {
|
|
103
|
+
color: isSelected ? theme.colors.buttonText : theme.colors.textPrimary,
|
|
104
|
+
fontWeight: isSelected ? '700' : '400'
|
|
105
|
+
}],
|
|
106
|
+
children: quality
|
|
107
|
+
})
|
|
108
|
+
}, index.toString());
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
export default /*#__PURE__*/React.memo(QualityControl);
|
|
113
|
+
const styles = StyleSheet.create({
|
|
114
|
+
container: {
|
|
115
|
+
flexDirection: 'row',
|
|
116
|
+
flexWrap: 'wrap',
|
|
117
|
+
justifyContent: 'center',
|
|
118
|
+
gap: moderateScale(10)
|
|
119
|
+
},
|
|
120
|
+
optionButton: {
|
|
121
|
+
width: '30%',
|
|
122
|
+
paddingVertical: verticalScale(12),
|
|
123
|
+
paddingHorizontal: moderateScale(16),
|
|
124
|
+
borderRadius: moderateScale(8),
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
marginBottom: verticalScale(12)
|
|
128
|
+
},
|
|
129
|
+
optionText: {
|
|
130
|
+
fontSize: RFValue(14)
|
|
131
|
+
},
|
|
132
|
+
loadingContainer: {
|
|
133
|
+
flex: 1,
|
|
134
|
+
justifyContent: 'center',
|
|
135
|
+
alignItems: 'center',
|
|
136
|
+
paddingVertical: verticalScale(40)
|
|
137
|
+
},
|
|
138
|
+
loadingText: {
|
|
139
|
+
marginTop: verticalScale(12),
|
|
140
|
+
fontSize: RFValue(12)
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
//# sourceMappingURL=QualityControl.js.map
|
package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useRef","View","Text","TouchableOpacity","StyleSheet","ActivityIndicator","moderateScale","verticalScale","RFValue","jsx","_jsx","jsxs","_jsxs","DEFAULT_QUALITIES","getVideoQualities","m3u8Url","res","fetch","text","qualities","lines","split","i","length","includes","resolutionMatch","match","url","trim","push","quality","error","console","QualityControl","activeQuality","theme","onQualityChange","videoUrl","setQualities","loading","setLoading","isMounted","current","fetchQualities","qualityOptions","qualityStrings","map","q","filter","v","self","indexOf","sort","a","b","parseInt","err","style","styles","loadingContainer","children","size","color","colors","button","loadingText","textSecondary","container","index","isSelected","activeOpacity","optionButton","backgroundColor","surfaceDisabled","onPress","optionText","buttonText","textPrimary","fontWeight","toString","memo","create","flexDirection","flexWrap","justifyContent","gap","width","paddingVertical","paddingHorizontal","borderRadius","alignItems","marginBottom","fontSize","flex","marginTop"],"sourceRoot":"../../../../../../../src","sources":["components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SACEC,IAAI,EACJC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,iBAAiB,QACZ,cAAc;AACrB,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAe3D,MAAMC,iBAAiB,GAAG,CAA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tB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
5
|
+
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
6
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
7
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const SPEED_OPTIONS = [0.5, 0.75, 1.0, 1.25, 1.5, 2.0];
|
|
9
|
+
const SpeedControl = ({
|
|
10
|
+
activeSpeed,
|
|
11
|
+
theme,
|
|
12
|
+
onSpeedChange
|
|
13
|
+
}) => {
|
|
14
|
+
return /*#__PURE__*/_jsx(View, {
|
|
15
|
+
style: styles.container,
|
|
16
|
+
children: SPEED_OPTIONS.map((speed, index) => {
|
|
17
|
+
const isSelected = activeSpeed === speed;
|
|
18
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
19
|
+
activeOpacity: 0.8,
|
|
20
|
+
style: [styles.optionButton, {
|
|
21
|
+
backgroundColor: isSelected ? theme.colors.button : theme.colors.surfaceDisabled
|
|
22
|
+
}],
|
|
23
|
+
onPress: () => onSpeedChange(speed),
|
|
24
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
25
|
+
style: [styles.optionText, {
|
|
26
|
+
color: isSelected ? theme.colors.buttonText : theme.colors.textPrimary,
|
|
27
|
+
fontWeight: isSelected ? '700' : '400'
|
|
28
|
+
}],
|
|
29
|
+
children: [speed, "x"]
|
|
30
|
+
})
|
|
31
|
+
}, index.toString());
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export default /*#__PURE__*/React.memo(SpeedControl);
|
|
36
|
+
const styles = StyleSheet.create({
|
|
37
|
+
container: {
|
|
38
|
+
flexDirection: 'row',
|
|
39
|
+
flexWrap: 'wrap',
|
|
40
|
+
justifyContent: 'space-between',
|
|
41
|
+
marginHorizontal: moderateScale(4) // instead of gap
|
|
42
|
+
},
|
|
43
|
+
optionButton: {
|
|
44
|
+
width: '30%',
|
|
45
|
+
paddingVertical: verticalScale(12),
|
|
46
|
+
paddingHorizontal: moderateScale(16),
|
|
47
|
+
borderRadius: moderateScale(8),
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
justifyContent: 'center',
|
|
50
|
+
marginBottom: verticalScale(12) // spacing instead of gap
|
|
51
|
+
},
|
|
52
|
+
optionText: {
|
|
53
|
+
fontSize: RFValue(14)
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=SpeedControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","moderateScale","verticalScale","RFValue","jsxs","_jsxs","jsx","_jsx","SPEED_OPTIONS","SpeedControl","activeSpeed","theme","onSpeedChange","style","styles","container","children","map","speed","index","isSelected","activeOpacity","optionButton","backgroundColor","colors","button","surfaceDisabled","onPress","optionText","color","buttonText","textPrimary","fontWeight","toString","memo","create","flexDirection","flexWrap","justifyContent","marginHorizontal","width","paddingVertical","paddingHorizontal","borderRadius","alignItems","marginBottom","fontSize"],"sourceRoot":"../../../../../../../src","sources":["components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACvE,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAS3D,MAAMC,aAAa,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;AAEtD,MAAMC,YAAyC,GAAGA,CA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AK;IACZC,eAAe,EAAEvC,aAAa,CAAC,EAAE,CAAC;IAClCwC,iBAAiB,EAAEzC,aAAa,CAAC,EAAE,CAAC;IACpC0C,YAAY,EAAE1C,aAAa,CAAC,CAAC,CAAC;IAC9B2C,UAAU,EAAE,QAAQ;IACpBN,cAAc,EAAE,QAAQ;IACxBO,YAAY,EAAE3C,aAAa,CAAC,EAAE,CAAC,CAAE;EACnC,CAAC;EACD0B,UAAU,EAAE;IACVkB,QAAQ,EAAE3C,OAAO,CAAC,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","SpeedControl","QualityControl"],"sourceRoot":"../../../../../../../src","sources":["components/Reels/ReelsSeries/components/VideoControls/index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,YAAY,QAAQ,mBAAgB;AACxD,SAASD,OAAO,IAAIE,cAAc,QAAQ,qBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useMemo } from 'react';
|
|
4
|
+
import { Gesture } from 'react-native-gesture-handler';
|
|
5
|
+
import { GESTURE_MAX_DURATION } from "./videoControlsConstants.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a tap gesture handler
|
|
9
|
+
*/
|
|
10
|
+
export const useCreateTapGesture = (isInOverlay, isLocked, handleLockedTap) => {
|
|
11
|
+
return useCallback((onAction, numberOfTaps = 1) => Gesture.Tap().maxDuration(GESTURE_MAX_DURATION).numberOfTaps(numberOfTaps).onStart(({
|
|
12
|
+
x,
|
|
13
|
+
y
|
|
14
|
+
}) => {
|
|
15
|
+
if (isInOverlay(x, y)) return;
|
|
16
|
+
if (isLocked) {
|
|
17
|
+
handleLockedTap();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
onAction();
|
|
21
|
+
}).runOnJS(true), [isInOverlay, isLocked, handleLockedTap]);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Create combined gesture (single tap and double tap)
|
|
26
|
+
*/
|
|
27
|
+
export const useCombinedGesture = (singleTap, doubleTap) => {
|
|
28
|
+
return useMemo(() => Gesture.Exclusive(doubleTap, singleTap), [doubleTap, singleTap]);
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=gestureUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useMemo","Gesture","GESTURE_MAX_DURATION","useCreateTapGesture","isInOverlay","isLocked","handleLockedTap","onAction","numberOfTaps","Tap","maxDuration","onStart","x","y","runOnJS","useCombinedGesture","singleTap","doubleTap","Exclusive"],"sourceRoot":"../../../../../../src","sources":["components/Reels/utils/Controls/gestureUtils.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,OAAO,QAAQ,8BAA8B;AACtD,SAASC,oBAAoB,QAAQ,6BAA0B;;AAE/D;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAGA,CACjCC,WAA8C,EAC9CC,QAAiB,EACjBC,eAA2B,KACxB;EACH,OAAOP,WAAW,CAChB,CAACQ,QAAoB,EAAEC,YAAY,GAAG,CAAC,KACrCP,OAAO,CAACQ,GAAG,CAAC,CAAC,CACVC,WAAW,CAACR,oBAAoB,CAAC,CACjCM,YAAY,CAACA,YAAY,CAAC,CAC1BG,OAAO,CAAC,CAAC;IAAEC,CAAC;IAAEC;EAAE,CAAC,KAAK;IACrB,IAAIT,WAAW,CAACQ,CAAC,EAAEC,CAAC,CAAC,EAAE;IACvB,IAAIR,QAAQ,EAAE;MACZC,eAAe,CAAC,CAAC;MACjB;IACF;IACAC,QAAQ,CAAC,CAAC;EACZ,CAAC,CAAC,CACDO,OAAO,CAAC,IAAI,CAAC,EAClB,CAACV,WAAW,EAAEC,QAAQ,EAAEC,eAAe,CACzC,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMS,kBAAkB,GAAGA,CAChCC,SAAyC,EACzCC,SAAyC,KACtC;EACH,OAAOjB,OAAO,CACZ,MAAMC,OAAO,CAACiB,SAAS,CAACD,SAAS,EAAED,SAAS,CAAC,EAC7C,CAACC,SAAS,EAAED,SAAS,CACvB,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/Reels/utils/Controls/index.ts"],"mappings":";;AAAA,cAAc,eAAY;AAC1B,cAAc,6BAA0B;AACxC,cAAc,mBAAgB;AAC9B,cAAc,mBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo, useCallback } from 'react';
|
|
4
|
+
import { Dimensions } from 'react-native';
|
|
5
|
+
import { OVERLAY_RIGHT_OFFSET, OVERLAY_BOTTOM_OFFSET } from "./videoControlsConstants.js";
|
|
6
|
+
const {
|
|
7
|
+
width
|
|
8
|
+
} = Dimensions.get('window');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Calculate overlay thresholds
|
|
12
|
+
*/
|
|
13
|
+
export const useOverlayThresholds = videoHeight => {
|
|
14
|
+
const rightThreshold = useMemo(() => width - OVERLAY_RIGHT_OFFSET, []);
|
|
15
|
+
const bottomThreshold = useMemo(() => videoHeight - OVERLAY_BOTTOM_OFFSET, [videoHeight]);
|
|
16
|
+
return {
|
|
17
|
+
rightThreshold,
|
|
18
|
+
bottomThreshold
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Check if coordinates are in overlay area
|
|
24
|
+
*/
|
|
25
|
+
export const useIsInOverlay = (rightThreshold, bottomThreshold) => {
|
|
26
|
+
return useCallback((x, y) => x > rightThreshold || y > bottomThreshold, [rightThreshold, bottomThreshold]);
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=overlayUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useCallback","Dimensions","OVERLAY_RIGHT_OFFSET","OVERLAY_BOTTOM_OFFSET","width","get","useOverlayThresholds","videoHeight","rightThreshold","bottomThreshold","useIsInOverlay","x","y"],"sourceRoot":"../../../../../../src","sources":["components/Reels/utils/Controls/overlayUtils.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC5C,SAASC,UAAU,QAAQ,cAAc;AACzC,SACEC,oBAAoB,EACpBC,qBAAqB,QAChB,6BAA0B;AAEjC,MAAM;EAAEC;AAAM,CAAC,GAAGH,UAAU,CAACI,GAAG,CAAC,QAAQ,CAAC;;AAE1C;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAIC,WAAmB,IAAK;EAC3D,MAAMC,cAAc,GAAGT,OAAO,CAAC,MAAMK,KAAK,GAAGF,oBAAoB,EAAE,EAAE,CAAC;EAEtE,MAAMO,eAAe,GAAGV,OAAO,CAC7B,MAAMQ,WAAW,GAAGJ,qBAAqB,EACzC,CAACI,WAAW,CACd,CAAC;EAED,OAAO;IAAEC,cAAc;IAAEC;EAAgB,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAC5BF,cAAsB,EACtBC,eAAuB,KACpB;EACH,OAAOT,WAAW,CAChB,CAACW,CAAS,EAAEC,CAAS,KAAKD,CAAC,GAAGH,cAAc,IAAII,CAAC,GAAGH,eAAe,EACnE,CAACD,cAAc,EAAEC,eAAe,CAClC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Video Controls Constants
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export const GESTURE_MAX_DURATION = 300;
|
|
8
|
+
export const PAUSE_ICON_TIMEOUT = 800;
|
|
9
|
+
export const LIKE_ANIM_TIMEOUT = 1200;
|
|
10
|
+
export const UNLOCK_MODAL_DELAY = 500;
|
|
11
|
+
export const OVERLAY_RIGHT_OFFSET = 80;
|
|
12
|
+
export const OVERLAY_BOTTOM_OFFSET = 150;
|
|
13
|
+
export const videoControlsStyles = {
|
|
14
|
+
hideForward: true,
|
|
15
|
+
hideDuration: true,
|
|
16
|
+
hideFullscreen: true,
|
|
17
|
+
hidePlayPause: true,
|
|
18
|
+
hideNavigationBarOnFullScreenMode: true,
|
|
19
|
+
hideNotificationBarOnFullScreenMode: true,
|
|
20
|
+
hideNext: true,
|
|
21
|
+
hidePosition: true,
|
|
22
|
+
hidePrevious: true,
|
|
23
|
+
hideRewind: true,
|
|
24
|
+
hideSeekBar: true,
|
|
25
|
+
hideSettingButton: true
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=videoControlsConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GESTURE_MAX_DURATION","PAUSE_ICON_TIMEOUT","LIKE_ANIM_TIMEOUT","UNLOCK_MODAL_DELAY","OVERLAY_RIGHT_OFFSET","OVERLAY_BOTTOM_OFFSET","videoControlsStyles","hideForward","hideDuration","hideFullscreen","hidePlayPause","hideNavigationBarOnFullScreenMode","hideNotificationBarOnFullScreenMode","hideNext","hidePosition","hidePrevious","hideRewind","hideSeekBar","hideSettingButton"],"sourceRoot":"../../../../../../src","sources":["components/Reels/utils/Controls/videoControlsConstants.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,OAAO,MAAMA,oBAAoB,GAAG,GAAG;AACvC,OAAO,MAAMC,kBAAkB,GAAG,GAAG;AACrC,OAAO,MAAMC,iBAAiB,GAAG,IAAI;AACrC,OAAO,MAAMC,kBAAkB,GAAG,GAAG;AACrC,OAAO,MAAMC,oBAAoB,GAAG,EAAE;AACtC,OAAO,MAAMC,qBAAqB,GAAG,GAAG;AAExC,OAAO,MAAMC,mBAAmB,GAAG;EACjCC,WAAW,EAAE,IAAI;EACjBC,YAAY,EAAE,IAAI;EAClBC,cAAc,EAAE,IAAI;EACpBC,aAAa,EAAE,IAAI;EACnBC,iCAAiC,EAAE,IAAI;EACvCC,mCAAmC,EAAE,IAAI;EACzCC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAE,IAAI;EAClBC,YAAY,EAAE,IAAI;EAClBC,UAAU,EAAE,IAAI;EAChBC,WAAW,EAAE,IAAI;EACjBC,iBAAiB,EAAE;AACrB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createRef","videoRef"],"sourceRoot":"../../../../../../src","sources":["components/Reels/utils/Controls/videoRef.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AAGjC,OAAO,MAAMC,QAAQ,gBAAGD,SAAS,CAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Reels/utils/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB","ignoreList":[]}
|