@zezosoft/zezo-ott-react-native-ui-kit 1.1.2 → 1.1.5
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/components/Auth/AuthProvider/AuthProvider.js +5 -2
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js +232 -0
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js +324 -0
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/{Login → One/Login}/LoginWithPhone.js +13 -11
- package/lib/module/components/Auth/One/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/One/OTP/OTP.js +301 -0
- package/lib/module/components/Auth/One/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/One/QrLogin/QrLogin.js +479 -0
- package/lib/module/components/Auth/One/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js +295 -0
- package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/One/SignUp/SignUp.js +362 -0
- package/lib/module/components/Auth/One/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.js +8 -5
- package/lib/module/components/Auth/One/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js +80 -0
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.js +42 -21
- package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/One/index.js +25 -0
- package/lib/module/components/Auth/One/index.js.map +1 -0
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js +93 -0
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js.map +1 -0
- package/lib/module/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.js +55 -28
- package/lib/module/components/Auth/Two/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js +138 -0
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js +226 -0
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js +143 -0
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/{OTP → Two/OTP}/OTP.js +93 -63
- package/lib/module/components/Auth/Two/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/Two/QrLogin/QrLogin.js +479 -0
- package/lib/module/components/Auth/Two/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js +295 -0
- package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/Two/SignUp/SignUp.js +379 -0
- package/lib/module/components/Auth/Two/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js +141 -0
- package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.js +1 -1
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js +63 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js +157 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/Two/index.js +29 -0
- package/lib/module/components/Auth/Two/index.js.map +1 -0
- package/lib/module/components/Auth/index.js +7 -22
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +7 -3
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js +52 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js.map +1 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +7 -3
- package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheetOne.js +170 -0
- package/lib/module/components/BottomSheet/BottomSheetOne.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +1 -0
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +16 -6
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +88 -13
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/Category/CategroyTwo.js +287 -0
- package/lib/module/components/Content/Card/Category/CategroyTwo.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +237 -108
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +191 -132
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js +714 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +139 -92
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +3 -1
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +132 -48
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +127 -59
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +126 -50
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +139 -53
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +207 -115
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +119 -94
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +187 -171
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +145 -64
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/AdsPoster.js +162 -0
- package/lib/module/components/Content/Card/components/AdsPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +217 -135
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +26 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/index.js +4 -0
- package/lib/module/components/Content/Card/components/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +90 -33
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +41 -11
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/Content/types.js +4 -0
- package/lib/module/components/Content/types.js.map +1 -0
- package/lib/module/components/ContentView/MoreContentList.js +1 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/{ContentView.js → One/ContentViewOne.js} +6 -5
- package/lib/module/components/ContentView/One/ContentViewOne.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/AboutSection.js +2 -2
- package/lib/module/components/ContentView/One/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/CastCard.js +2 -2
- package/lib/module/components/ContentView/One/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/EpisodeCard.js +5 -6
- package/lib/module/components/ContentView/One/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/GenreTags.js +2 -2
- package/lib/module/components/ContentView/One/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/HeroBanner.js +45 -44
- package/lib/module/components/ContentView/One/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/MiniInfo.js +50 -5
- package/lib/module/components/ContentView/One/components/MiniInfo.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/PlayButton.js +1 -1
- package/lib/module/components/ContentView/One/components/PlayButton.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/Title.js +1 -1
- package/lib/module/components/ContentView/One/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/TrailerButton.js +2 -2
- package/lib/module/components/ContentView/One/components/TrailerButton.js.map +1 -0
- package/lib/module/components/ContentView/Two/ContentViewTwo.js +220 -0
- package/lib/module/components/ContentView/Two/ContentViewTwo.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/AboutSection.js +150 -0
- package/lib/module/components/ContentView/Two/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/Details.js +156 -0
- package/lib/module/components/ContentView/Two/components/Details.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/EpisodeCard.js +425 -0
- package/lib/module/components/ContentView/Two/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/GenreTags.js +86 -0
- package/lib/module/components/ContentView/Two/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/HeroBanner.js +339 -0
- package/lib/module/components/ContentView/Two/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/LikeShareActions.js +88 -0
- package/lib/module/components/ContentView/Two/components/LikeShareActions.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js +235 -0
- package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js.map +1 -0
- package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js +120 -0
- package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js +112 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/Title.js +146 -0
- package/lib/module/components/ContentView/Two/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/index.js +18 -0
- package/lib/module/components/ContentView/Two/components/index.js.map +1 -0
- package/lib/module/components/ContentView/index.js +6 -1
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/Four.js +68 -0
- package/lib/module/components/Headers/Four.js.map +1 -0
- package/lib/module/components/Headers/Three.js +75 -24
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -1
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +5 -1
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputThree.js +157 -0
- package/lib/module/components/Input/InputThree.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInputTwo.js +316 -0
- package/lib/module/components/Input/PhoneNumberInputTwo.js.map +1 -0
- package/lib/module/components/Loader/Loader.js +14 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +42 -17
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/NewRelease/NewReleaseSheet.js +227 -0
- package/lib/module/components/NewRelease/NewReleaseSheet.js.map +1 -0
- package/lib/module/components/NewRelease/index.js +4 -0
- package/lib/module/components/NewRelease/index.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +92 -17
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +65 -2
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +2 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +4 -2
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +80 -46
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +78 -29
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +21 -34
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js +58 -0
- package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js +44 -0
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js.map +1 -0
- package/lib/module/components/Reels/index.js +1 -0
- package/lib/module/components/Reels/index.js.map +1 -1
- package/lib/module/components/Search/One.js +7 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +59 -7
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +2 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/common/AppStatusBar.js +2 -1
- package/lib/module/components/common/AppStatusBar.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants/dummySections.js +47 -5
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/Images/index.js +5 -0
- package/lib/module/hooks/Images/index.js.map +1 -0
- package/lib/module/hooks/Images/useImageLoader.js +168 -0
- package/lib/module/hooks/Images/useImageLoader.js.map +1 -0
- package/lib/module/hooks/Images/useImageValidation.js +36 -0
- package/lib/module/hooks/Images/useImageValidation.js.map +1 -0
- package/lib/module/hooks/index.js +3 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAdTracking.js +270 -0
- package/lib/module/hooks/useAdTracking.js.map +1 -0
- package/lib/module/hooks/useCards.js +164 -0
- package/lib/module/hooks/useCards.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +11 -6
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +78 -60
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +14 -2
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/index.js +0 -1
- package/lib/module/theme/hook/index.js.map +1 -1
- package/lib/module/theme/hook/useInternalTheme.js +21 -7
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
- package/lib/module/theme/themes.js +2 -0
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/theme/utils/validateColor.js +84 -0
- package/lib/module/theme/utils/validateColor.js.map +1 -0
- package/lib/module/utils/colorUtils.js +68 -0
- package/lib/module/utils/colorUtils.js.map +1 -0
- package/lib/typescript/src/components/Auth/{ForgotPassword → One/ForgotPassword}/ForgotPassword.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithEmail.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithPhone.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{OTP → One/OTP}/OTP.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/QrLogin.d.ts +3 -1
- package/lib/typescript/src/components/Auth/One/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/components/QrViewArea.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{SignUp → One/SignUp}/SignUp.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts +14 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/index.d.ts +234 -0
- package/lib/typescript/src/components/Auth/One/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts +16 -0
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts +53 -0
- package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts +17 -0
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts +52 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts +37 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts +63 -0
- package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts +19 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts +14 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts +67 -0
- package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts +35 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts +20 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts +220 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +447 -232
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts +7 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts +19 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +2 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +1 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +1 -0
- 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/Category/CategroyTwo.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.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/Three.d.ts +19 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +11 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +15 -3
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +13 -5
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +3 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/index.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +76 -6
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +2 -51
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -39
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/types.d.ts +149 -0
- package/lib/typescript/src/components/Content/types.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/AboutSection.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/CastCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/CastCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/EpisodeCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/HeroBanner.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/MiniInfo.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/MiniInfo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/PlayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/TrailerButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts +18 -0
- package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts +23 -0
- package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts +8 -0
- package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts +25 -0
- package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts +26 -0
- package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts +21 -0
- package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts +28 -0
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts +34 -0
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/index.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/Two/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Four.d.ts +18 -0
- package/lib/typescript/src/components/Headers/Four.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/Three.d.ts +9 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +1 -0
- package/lib/typescript/src/components/Headers/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +2 -0
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputThree.d.ts +22 -0
- package/lib/typescript/src/components/Input/InputThree.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts +26 -0
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts +2 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts +10 -0
- package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/NewRelease/index.d.ts +2 -0
- package/lib/typescript/src/components/NewRelease/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +2 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +2 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +9 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +11 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
- 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 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts +34 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts +10 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +1 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +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.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/common/AppStatusBar.d.ts +1 -0
- package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts +8 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/Images/index.d.ts +3 -0
- package/lib/typescript/src/hooks/Images/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts +36 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts +17 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +3 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useAdTracking.d.ts +39 -0
- package/lib/typescript/src/hooks/useAdTracking.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCards.d.ts +36 -0
- package/lib/typescript/src/hooks/useCards.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -2
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts +2 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/index.d.ts +0 -1
- package/lib/typescript/src/theme/hook/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +1 -0
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/theme/utils/validateColor.d.ts +21 -0
- package/lib/typescript/src/theme/utils/validateColor.d.ts.map +1 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts +40 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +7 -4
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/colorUtils.d.ts +19 -0
- package/lib/typescript/src/utils/colorUtils.d.ts.map +1 -0
- package/package.json +13 -4
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +6 -2
- package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +324 -0
- package/src/components/Auth/One/Login/LoginWithEmail.tsx +455 -0
- package/src/components/Auth/{Login → One/Login}/LoginWithPhone.tsx +12 -12
- package/src/components/Auth/One/OTP/OTP.tsx +465 -0
- package/src/components/Auth/One/QrLogin/QrLogin.tsx +602 -0
- package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +423 -0
- package/src/components/Auth/One/SignUp/SignUp.tsx +479 -0
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.tsx +10 -6
- package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +103 -0
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.tsx +1 -1
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.tsx +35 -25
- package/src/components/Auth/One/index.ts +24 -0
- package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +108 -0
- package/src/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.tsx +62 -35
- package/src/components/Auth/Two/Login/AuthLoginShell.tsx +173 -0
- package/src/components/Auth/Two/Login/LoginWithEmail.tsx +279 -0
- package/src/components/Auth/Two/Login/LoginWithPhone.tsx +188 -0
- package/src/components/Auth/{OTP → Two/OTP}/OTP.tsx +92 -81
- package/src/components/Auth/Two/QrLogin/QrLogin.tsx +602 -0
- package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +423 -0
- package/src/components/Auth/Two/SignUp/SignUp.tsx +472 -0
- package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +248 -0
- package/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.tsx +1 -1
- package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +77 -0
- package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +178 -0
- package/src/components/Auth/Two/index.ts +28 -0
- package/src/components/Auth/index.ts +7 -22
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +2 -0
- package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +56 -0
- package/src/components/BottomSheet/BottomSheet.tsx +6 -1
- package/src/components/BottomSheet/BottomSheetOne.tsx +220 -0
- package/src/components/BottomSheet/index.ts +2 -0
- package/src/components/Button/PrimaryBtn.tsx +10 -2
- package/src/components/Content/Card/Category/Category.tsx +104 -10
- package/src/components/Content/Card/Category/CategroyTwo.tsx +429 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +281 -136
- package/src/components/Content/Card/Sliders/Styles/One.tsx +248 -152
- package/src/components/Content/Card/Sliders/Styles/Three.tsx +935 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +171 -102
- package/src/components/Content/Card/Sliders/index.ts +2 -0
- package/src/components/Content/Card/Styles/Five.tsx +162 -62
- package/src/components/Content/Card/Styles/Four.tsx +165 -85
- package/src/components/Content/Card/Styles/One.tsx +162 -71
- package/src/components/Content/Card/Styles/RotateInOut.tsx +158 -60
- package/src/components/Content/Card/Styles/Six.tsx +242 -142
- package/src/components/Content/Card/Styles/Three.tsx +160 -162
- package/src/components/Content/Card/Styles/TopTen.tsx +231 -191
- package/src/components/Content/Card/Styles/Two.tsx +183 -79
- package/src/components/Content/Card/components/AdsPoster.tsx +202 -0
- package/src/components/Content/Card/components/CardPoster.tsx +250 -151
- package/src/components/Content/Card/components/NavigateToMore.tsx +29 -1
- package/src/components/Content/Card/components/index.ts +1 -0
- package/src/components/Content/Content.tsx +103 -119
- package/src/components/Content/Sections.tsx +51 -45
- package/src/components/Content/types.ts +176 -0
- package/src/components/ContentView/MoreContentList.tsx +1 -0
- package/src/components/ContentView/{ContentView.tsx → One/ContentViewOne.tsx} +8 -7
- package/src/components/ContentView/{components → One/components}/AboutSection.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/CastCard.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/EpisodeCard.tsx +7 -8
- package/src/components/ContentView/{components → One/components}/GenreTags.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/HeroBanner.tsx +44 -59
- package/src/components/ContentView/{components → One/components}/MiniInfo.tsx +69 -5
- package/src/components/ContentView/{components → One/components}/PlayButton.tsx +1 -1
- package/src/components/ContentView/{components → One/components}/Title.tsx +2 -2
- package/src/components/ContentView/{components → One/components}/TrailerButton.tsx +2 -2
- package/src/components/ContentView/Two/ContentViewTwo.tsx +343 -0
- package/src/components/ContentView/Two/components/AboutSection.tsx +216 -0
- package/src/components/ContentView/Two/components/Details.tsx +193 -0
- package/src/components/ContentView/Two/components/EpisodeCard.tsx +602 -0
- package/src/components/ContentView/Two/components/GenreTags.tsx +123 -0
- package/src/components/ContentView/Two/components/HeroBanner.tsx +402 -0
- package/src/components/ContentView/Two/components/LikeShareActions.tsx +125 -0
- package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +305 -0
- package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +133 -0
- package/src/components/ContentView/Two/components/SectionTabs.tsx +177 -0
- package/src/components/ContentView/Two/components/Title.tsx +226 -0
- package/src/components/ContentView/Two/components/index.ts +15 -0
- package/src/components/ContentView/index.ts +7 -1
- package/src/components/Headers/Four.tsx +83 -0
- package/src/components/Headers/Three.tsx +88 -25
- package/src/components/Headers/index.ts +2 -0
- package/src/components/Input/Input.ts +4 -0
- package/src/components/Input/InputThree.tsx +212 -0
- package/src/components/Input/PhoneNumberInput.tsx +4 -2
- package/src/components/Input/PhoneNumberInputTwo.tsx +418 -0
- package/src/components/Loader/Loader.tsx +25 -9
- package/src/components/Logo/Logo.tsx +53 -34
- package/src/components/NewRelease/NewReleaseSheet.tsx +250 -0
- package/src/components/NewRelease/index.ts +1 -0
- package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +92 -27
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +81 -1
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +4 -1
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +6 -3
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +88 -55
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +92 -30
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +35 -38
- package/src/components/Reels/ReelsSeries/types.ts +16 -0
- package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +85 -0
- package/src/components/Reels/ReelsSeries/utils/quality.ts +48 -0
- package/src/components/Reels/index.ts +1 -0
- package/src/components/Search/One.tsx +8 -5
- package/src/components/Search/components/SearchCard.tsx +68 -11
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +1 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +1 -0
- package/src/components/User/WatchLater/WatchLater.tsx +1 -0
- package/src/components/common/AppStatusBar.tsx +7 -1
- package/src/components/index.ts +1 -0
- package/src/constants/dummySections.ts +54 -3
- package/src/hooks/Images/index.ts +2 -0
- package/src/hooks/Images/useImageLoader.ts +206 -0
- package/src/hooks/Images/useImageValidation.ts +36 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useAdTracking.ts +349 -0
- package/src/hooks/useCards.ts +228 -0
- package/src/hooks/usePaginatedSection.ts +26 -7
- package/src/hooks/useSplashCache.ts +88 -69
- package/src/theme/ThemeProvider.tsx +15 -2
- package/src/theme/hook/index.ts +0 -1
- package/src/theme/hook/useInternalTheme.ts +22 -13
- package/src/theme/themes.ts +3 -0
- package/src/theme/utils/validateColor.ts +127 -0
- package/src/types/content/content-view.types.ts +43 -1
- package/src/types/sections/index.ts +7 -4
- package/src/utils/colorUtils.ts +70 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +0 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +0 -314
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +0 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +0 -1
- package/lib/module/components/Auth/OTP/OTP.js.map +0 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +0 -313
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +0 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +0 -243
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +0 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +0 -352
- package/lib/module/components/Auth/SignUp/SignUp.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +0 -1
- package/lib/module/components/ContentView/ContentView.js.map +0 -1
- package/lib/module/components/ContentView/components/AboutSection.js.map +0 -1
- package/lib/module/components/ContentView/components/CastCard.js.map +0 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +0 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +0 -1
- package/lib/module/components/ContentView/components/HeroBanner.js.map +0 -1
- package/lib/module/components/ContentView/components/MiniInfo.js.map +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +0 -1
- package/lib/module/components/ContentView/components/Title.js.map +0 -1
- package/lib/module/components/ContentView/components/TrailerButton.js.map +0 -1
- package/lib/module/theme/hook/useThemeStatusBar.js +0 -33
- package/lib/module/theme/hook/useThemeStatusBar.js.map +0 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +0 -15
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +0 -1
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts +0 -10
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +0 -1
- package/src/components/Auth/Login/LoginWithEmail.tsx +0 -441
- package/src/components/Auth/QrLogin/QrLogin.tsx +0 -342
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +0 -329
- package/src/components/Auth/SignUp/SignUp.tsx +0 -462
- package/src/theme/hook/useThemeStatusBar.ts +0 -42
- /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.d.ts +0 -0
- /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.d.ts +0 -0
- /package/lib/typescript/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.d.ts +0 -0
- /package/lib/typescript/src/components/ContentView/{components → One/components}/PlayButton.d.ts +0 -0
- /package/lib/typescript/src/components/ContentView/{components → One/components}/TrailerButton.d.ts +0 -0
|
@@ -11,7 +11,8 @@ interface SettingModalProps {
|
|
|
11
11
|
theme: ITheme;
|
|
12
12
|
speed: number;
|
|
13
13
|
quality: string;
|
|
14
|
-
|
|
14
|
+
qualities: string[];
|
|
15
|
+
qualitiesLoading: boolean;
|
|
15
16
|
|
|
16
17
|
onSpeedChange: (speed: number) => void;
|
|
17
18
|
onQualityChange: (quality: string) => void;
|
|
@@ -24,7 +25,8 @@ const SettingModal: React.FC<SettingModalProps> = ({
|
|
|
24
25
|
theme,
|
|
25
26
|
speed,
|
|
26
27
|
quality,
|
|
27
|
-
|
|
28
|
+
qualities,
|
|
29
|
+
qualitiesLoading,
|
|
28
30
|
onSpeedChange,
|
|
29
31
|
onQualityChange,
|
|
30
32
|
isVisible,
|
|
@@ -102,8 +104,9 @@ const SettingModal: React.FC<SettingModalProps> = ({
|
|
|
102
104
|
>
|
|
103
105
|
<QualityControl
|
|
104
106
|
activeQuality={quality}
|
|
105
|
-
videoUrl={videoUrl}
|
|
106
107
|
theme={theme}
|
|
108
|
+
qualities={qualities}
|
|
109
|
+
loading={qualitiesLoading}
|
|
107
110
|
onQualityChange={(value) => handleSelect(onQualityChange, value)}
|
|
108
111
|
/>
|
|
109
112
|
</Animated.View>
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import React, { useState, useCallback, useRef, useMemo } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
FlatList,
|
|
4
|
-
Dimensions,
|
|
5
4
|
StyleSheet,
|
|
6
|
-
type
|
|
7
|
-
|
|
5
|
+
type NativeScrollEvent,
|
|
6
|
+
type NativeSyntheticEvent,
|
|
8
7
|
} from 'react-native';
|
|
9
|
-
import { debounce } from 'lodash';
|
|
10
|
-
import ReelsSeriesItem from './ReelsSeriesItem';
|
|
11
|
-
import { verticalScale } from 'react-native-size-matters';
|
|
12
|
-
import type { IReelsData, ISeriesEpisode } from './types';
|
|
13
8
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
9
|
+
import ReelsSeriesItem from './ReelsSeriesItem';
|
|
10
|
+
import type { IReelsData, ISeriesEpisode, IReelsWatchProgress } from './types';
|
|
14
11
|
import { useInternalTheme } from '../../../theme/hook';
|
|
15
12
|
import type { ThemeOverride } from '../../../theme';
|
|
16
13
|
import { View } from '../../View';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const DEBOUNCE_DELAY = 100;
|
|
14
|
+
import Display from '../../../utils/Display';
|
|
15
|
+
import { AppStatusBar } from '../../common/AppStatusBar';
|
|
16
|
+
const { fullHeight: height } = Display;
|
|
17
|
+
const PRELOAD_RANGE = 1;
|
|
22
18
|
|
|
23
19
|
type ReelsProps = {
|
|
24
20
|
data: IReelsData['data'];
|
|
25
21
|
autoScroll?: boolean;
|
|
26
22
|
onEndReached?: () => void;
|
|
27
|
-
onLikePress?: (id: string
|
|
23
|
+
onLikePress?: (data: { id: string; liked: boolean }) => void;
|
|
28
24
|
onEpisodesPress?: (id: string) => void;
|
|
29
25
|
onSharePress?: (id: string) => void;
|
|
30
26
|
onSearchPress?: () => void;
|
|
@@ -34,6 +30,8 @@ type ReelsProps = {
|
|
|
34
30
|
isFullScreen?: boolean;
|
|
35
31
|
theme?: ThemeOverride;
|
|
36
32
|
onEpisodeUnlockPress?: (episode: ISeriesEpisode) => void;
|
|
33
|
+
onViewCount?: (data: { id: string }) => void;
|
|
34
|
+
onWatchProgress?: (data: IReelsWatchProgress) => void;
|
|
37
35
|
};
|
|
38
36
|
|
|
39
37
|
export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
@@ -46,30 +44,33 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
46
44
|
onSearchPress,
|
|
47
45
|
onBackPress,
|
|
48
46
|
isFocused = true,
|
|
49
|
-
tabBarHeight,
|
|
47
|
+
tabBarHeight: _tabBarHeight, // kept for backward compatibility, not used in height calc
|
|
50
48
|
isFullScreen = false,
|
|
51
49
|
theme: overrideTheme,
|
|
52
50
|
onEpisodeUnlockPress,
|
|
51
|
+
onViewCount,
|
|
52
|
+
onWatchProgress,
|
|
53
53
|
}) => {
|
|
54
54
|
const { theme } = useInternalTheme(overrideTheme);
|
|
55
|
-
const insets = useSafeAreaInsets();
|
|
56
55
|
const [currentVisibleIndex, setCurrentVisibleIndex] = useState<number>(0);
|
|
56
|
+
const [layoutHeight, setLayoutHeight] = useState<number>(height);
|
|
57
57
|
const listRef =
|
|
58
58
|
useRef<FlatList<ISeriesEpisode & { seriesIndex: number }>>(null);
|
|
59
|
+
const insets = useSafeAreaInsets();
|
|
59
60
|
|
|
60
61
|
// Computed values
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
// Match container layout height when available, otherwise fall back to full
|
|
63
|
+
// window height. In full-screen, subtract bottom inset so content isn't
|
|
64
|
+
// hidden behind system UI.
|
|
65
|
+
const ITEM_HEIGHT = useMemo(() => {
|
|
66
|
+
const baseHeight = layoutHeight ?? height;
|
|
67
|
+
if (!isFullScreen) {
|
|
68
|
+
return baseHeight;
|
|
69
|
+
}
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
()
|
|
70
|
-
|
|
71
|
-
[isFullScreen, insets.bottom, calculatedTabBarHeight]
|
|
72
|
-
);
|
|
71
|
+
const bottomInset = insets.bottom ?? 0;
|
|
72
|
+
return Math.max(0, baseHeight - bottomInset);
|
|
73
|
+
}, [layoutHeight, isFullScreen, insets.bottom]);
|
|
73
74
|
|
|
74
75
|
const backgroundColor = useMemo(
|
|
75
76
|
() => (isFullScreen ? theme.colors.black : theme.colors.background),
|
|
@@ -107,6 +108,15 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
107
108
|
[flattenedEpisodes]
|
|
108
109
|
);
|
|
109
110
|
|
|
111
|
+
const handleAutoScrollNext = useCallback(() => {
|
|
112
|
+
const nextIndex = currentVisibleIndex + 1;
|
|
113
|
+
if (nextIndex >= flattenedEpisodes.length) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
listRef.current?.scrollToIndex({ index: nextIndex, animated: true });
|
|
117
|
+
setCurrentVisibleIndex(nextIndex);
|
|
118
|
+
}, [currentVisibleIndex, flattenedEpisodes.length]);
|
|
119
|
+
|
|
110
120
|
const renderReelList = useCallback(
|
|
111
121
|
({
|
|
112
122
|
item,
|
|
@@ -127,7 +137,7 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
127
137
|
<ReelsSeriesItem
|
|
128
138
|
reel={episode}
|
|
129
139
|
data={seriesData}
|
|
130
|
-
videoHeight={
|
|
140
|
+
videoHeight={ITEM_HEIGHT}
|
|
131
141
|
onLikePress={onLikePress}
|
|
132
142
|
onEpisodesPress={() => onEpisodesPress?.(item.episodeId)}
|
|
133
143
|
onSharePress={() => onSharePress?.(item.episodeId)}
|
|
@@ -135,11 +145,15 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
135
145
|
activeEpisodeIndex={currentVisibleIndex}
|
|
136
146
|
preload={preload}
|
|
137
147
|
onEpisodeSelect={handlePlayEpisode}
|
|
148
|
+
onAutoScrollNext={handleAutoScrollNext}
|
|
149
|
+
isFullScreen={isFullScreen}
|
|
138
150
|
autoScroll={autoScroll}
|
|
139
151
|
theme={theme}
|
|
140
152
|
onBackPress={onBackPress}
|
|
141
153
|
onSearchPress={onSearchPress}
|
|
142
154
|
onEpisodeUnlockPress={onEpisodeUnlockPress}
|
|
155
|
+
onViewCount={onViewCount}
|
|
156
|
+
onWatchProgress={onWatchProgress}
|
|
143
157
|
/>
|
|
144
158
|
);
|
|
145
159
|
},
|
|
@@ -147,9 +161,10 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
147
161
|
data,
|
|
148
162
|
currentVisibleIndex,
|
|
149
163
|
isFocused,
|
|
150
|
-
|
|
164
|
+
ITEM_HEIGHT,
|
|
151
165
|
onLikePress,
|
|
152
166
|
handlePlayEpisode,
|
|
167
|
+
isFullScreen,
|
|
153
168
|
autoScroll,
|
|
154
169
|
theme,
|
|
155
170
|
onBackPress,
|
|
@@ -157,41 +172,58 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
157
172
|
onEpisodeUnlockPress,
|
|
158
173
|
onEpisodesPress,
|
|
159
174
|
onSharePress,
|
|
175
|
+
onViewCount,
|
|
176
|
+
onWatchProgress,
|
|
177
|
+
handleAutoScrollNext,
|
|
160
178
|
]
|
|
161
179
|
);
|
|
162
180
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
181
|
+
const getItemLayout = useCallback(
|
|
182
|
+
(_: unknown, index: number) => {
|
|
183
|
+
const itemHeight = ITEM_HEIGHT;
|
|
184
|
+
return {
|
|
185
|
+
length: itemHeight,
|
|
186
|
+
offset: itemHeight * index,
|
|
187
|
+
index,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
[ITEM_HEIGHT]
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
const handleMomentumScrollEnd = useCallback(
|
|
194
|
+
(event: NativeSyntheticEvent<NativeScrollEvent>) => {
|
|
195
|
+
const itemHeight = ITEM_HEIGHT || 1;
|
|
196
|
+
const offsetY = event.nativeEvent.contentOffset.y;
|
|
197
|
+
const index = Math.round(offsetY / itemHeight);
|
|
167
198
|
|
|
168
|
-
const onViewableItemsChanged = useRef(
|
|
169
|
-
debounce(({ viewableItems }: { viewableItems: Array<ViewToken> }) => {
|
|
170
|
-
const visibleIndex = viewableItems[0]?.index;
|
|
171
199
|
if (
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
200
|
+
index !== currentVisibleIndex &&
|
|
201
|
+
index >= 0 &&
|
|
202
|
+
index < flattenedEpisodes.length
|
|
175
203
|
) {
|
|
176
|
-
setCurrentVisibleIndex(
|
|
204
|
+
setCurrentVisibleIndex(index);
|
|
177
205
|
}
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const getItemLayout = useCallback(
|
|
182
|
-
(_: unknown, index: number) => ({
|
|
183
|
-
length: SCREEN_HEIGHT,
|
|
184
|
-
offset: SCREEN_HEIGHT * index,
|
|
185
|
-
index,
|
|
186
|
-
}),
|
|
187
|
-
[SCREEN_HEIGHT]
|
|
206
|
+
},
|
|
207
|
+
[ITEM_HEIGHT, currentVisibleIndex, flattenedEpisodes.length]
|
|
188
208
|
);
|
|
189
209
|
|
|
190
210
|
return (
|
|
191
211
|
<View style={styles.mainContainer} backgroundColor={backgroundColor}>
|
|
212
|
+
<AppStatusBar theme={overrideTheme} transparent />
|
|
192
213
|
<View
|
|
193
|
-
style={[
|
|
214
|
+
style={[
|
|
215
|
+
styles.container,
|
|
216
|
+
isFullScreen && insets.bottom
|
|
217
|
+
? { paddingBottom: insets.bottom }
|
|
218
|
+
: null,
|
|
219
|
+
]}
|
|
194
220
|
backgroundColor={backgroundColor}
|
|
221
|
+
onLayout={(event) => {
|
|
222
|
+
const h = event.nativeEvent.layout.height;
|
|
223
|
+
if (h && h > 0 && h !== layoutHeight) {
|
|
224
|
+
setLayoutHeight(h);
|
|
225
|
+
}
|
|
226
|
+
}}
|
|
195
227
|
>
|
|
196
228
|
<FlatList
|
|
197
229
|
ref={listRef}
|
|
@@ -200,17 +232,17 @@ export const ReelsSeries: React.FC<ReelsProps> = ({
|
|
|
200
232
|
renderItem={renderReelList}
|
|
201
233
|
onEndReached={onEndReached}
|
|
202
234
|
pagingEnabled
|
|
203
|
-
viewabilityConfig={viewabilityConfig}
|
|
204
235
|
disableIntervalMomentum
|
|
205
236
|
removeClippedSubviews
|
|
237
|
+
windowSize={5}
|
|
206
238
|
maxToRenderPerBatch={2}
|
|
207
|
-
|
|
208
|
-
initialNumToRender={1}
|
|
239
|
+
initialNumToRender={2}
|
|
209
240
|
onEndReachedThreshold={0.1}
|
|
210
241
|
decelerationRate="fast"
|
|
211
242
|
showsVerticalScrollIndicator={false}
|
|
212
|
-
scrollEventThrottle={
|
|
213
|
-
|
|
243
|
+
scrollEventThrottle={32}
|
|
244
|
+
onMomentumScrollEnd={handleMomentumScrollEnd}
|
|
245
|
+
snapToInterval={ITEM_HEIGHT}
|
|
214
246
|
snapToAlignment="start"
|
|
215
247
|
getItemLayout={getItemLayout}
|
|
216
248
|
/>
|
|
@@ -226,6 +258,7 @@ const styles = StyleSheet.create({
|
|
|
226
258
|
flex: 1,
|
|
227
259
|
},
|
|
228
260
|
container: {
|
|
261
|
+
flex: 1,
|
|
229
262
|
overflow: 'hidden',
|
|
230
263
|
},
|
|
231
264
|
});
|
|
@@ -34,29 +34,36 @@ import {
|
|
|
34
34
|
import { clearTimeoutSafely, setTimeoutSafely } from '../utils';
|
|
35
35
|
import MediaControlsProvider from './MediaControls/MediaControlsProvider';
|
|
36
36
|
import FastImage from 'react-native-fast-image';
|
|
37
|
+
import type { IReelsWatchProgress } from './types';
|
|
37
38
|
|
|
38
39
|
const INITIAL_MODAL_STATE: ModalState = {
|
|
39
40
|
type: 'none',
|
|
40
41
|
isVisible: false,
|
|
41
42
|
};
|
|
42
43
|
|
|
44
|
+
const MIN_VIEW_DURATION_SEC = 5;
|
|
45
|
+
|
|
43
46
|
interface IReelItemProps {
|
|
44
47
|
reel: ISeriesEpisode;
|
|
45
48
|
data: ISeriesItem;
|
|
46
49
|
autoScroll?: boolean;
|
|
47
50
|
videoHeight: number;
|
|
48
|
-
onLikePress?: (id: string
|
|
51
|
+
onLikePress?: (data: { id: string; liked: boolean }) => void;
|
|
49
52
|
onEpisodesPress?: () => void;
|
|
50
53
|
onSharePress?: () => void;
|
|
51
54
|
isVisible: boolean;
|
|
52
55
|
preload: boolean;
|
|
53
56
|
activeEpisodeIndex: number;
|
|
57
|
+
isFullScreen: boolean;
|
|
54
58
|
onEpisodeSelect: (episode: ISeriesEpisode) => void;
|
|
55
59
|
theme: ITheme;
|
|
56
60
|
onBackPress?: () => void;
|
|
57
61
|
onSearchPress?: () => void;
|
|
58
62
|
onLikeMorePress?: (item: ILikeMoreData) => void;
|
|
59
63
|
onEpisodeUnlockPress?: (episode: ISeriesEpisode) => void;
|
|
64
|
+
onViewCount?: (data: { id: string }) => void;
|
|
65
|
+
onWatchProgress?: (data: IReelsWatchProgress) => void;
|
|
66
|
+
onAutoScrollNext?: () => void;
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
const ReelItem: React.FC<IReelItemProps> = ({
|
|
@@ -68,13 +75,17 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
68
75
|
onSharePress,
|
|
69
76
|
onBackPress,
|
|
70
77
|
isVisible,
|
|
78
|
+
isFullScreen,
|
|
71
79
|
preload,
|
|
72
80
|
activeEpisodeIndex,
|
|
73
81
|
onEpisodeSelect,
|
|
74
82
|
onSearchPress,
|
|
75
83
|
onLikeMorePress,
|
|
76
84
|
onEpisodeUnlockPress,
|
|
85
|
+
onViewCount,
|
|
77
86
|
theme,
|
|
87
|
+
onWatchProgress,
|
|
88
|
+
onAutoScrollNext,
|
|
78
89
|
}) => {
|
|
79
90
|
// State
|
|
80
91
|
const [buffering, setBuffering] = useState(true);
|
|
@@ -88,13 +99,15 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
88
99
|
const [duration, setDuration] = useState(0);
|
|
89
100
|
const [playbackRate, setPlaybackRate] = useState(1);
|
|
90
101
|
const [videoQuality, setVideoQuality] = useState('Auto');
|
|
91
|
-
const [isLiked, setIsLiked] = useState(data.isLiked);
|
|
92
|
-
const [likesCount, setLikesCount] = useState(data.likes);
|
|
102
|
+
const [isLiked, setIsLiked] = useState(() => Boolean(data.isLiked));
|
|
103
|
+
const [likesCount, setLikesCount] = useState(() => Number(data.likes) || 0);
|
|
93
104
|
const [hasError, setHasError] = useState(false);
|
|
94
105
|
|
|
95
106
|
// Refs
|
|
96
107
|
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
|
|
97
108
|
const likeAnimTimeoutRef = useRef<NodeJS.Timeout | null>(null);
|
|
109
|
+
const viewCountedRef = useRef(false);
|
|
110
|
+
const autoScrolledRef = useRef(false);
|
|
98
111
|
|
|
99
112
|
// Constants
|
|
100
113
|
const isLocked = reel.isLocked;
|
|
@@ -130,11 +143,25 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
130
143
|
setUnlockModalVisible(true);
|
|
131
144
|
}, []);
|
|
132
145
|
|
|
133
|
-
//
|
|
146
|
+
// Reset view-counted flag when episode changes
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
viewCountedRef.current = false;
|
|
149
|
+
autoScrolledRef.current = false;
|
|
150
|
+
}, [reel.episodeId]);
|
|
151
|
+
|
|
152
|
+
// Reset video timing state when episode changes
|
|
134
153
|
useEffect(() => {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
154
|
+
setCurrentTime(0);
|
|
155
|
+
setDuration(0);
|
|
156
|
+
setBuffering(true);
|
|
157
|
+
setHasError(false);
|
|
158
|
+
}, [reel.episodeId]);
|
|
159
|
+
|
|
160
|
+
// Sync like state from parent when episode changes or parent updates data
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
setIsLiked(Boolean(data.isLiked));
|
|
163
|
+
setLikesCount(Number(data.likes) || 0);
|
|
164
|
+
}, [reel.episodeId, data.isLiked, data.likes]);
|
|
138
165
|
|
|
139
166
|
useEffect(() => {
|
|
140
167
|
if (!isVisible) {
|
|
@@ -164,15 +191,12 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
164
191
|
|
|
165
192
|
const handleLikePress = useCallback(() => {
|
|
166
193
|
const newLiked = !isLiked;
|
|
167
|
-
const
|
|
194
|
+
const count = Number(likesCount) || 0;
|
|
195
|
+
const newCount = newLiked ? count + 1 : Math.max(0, count - 1);
|
|
168
196
|
|
|
169
197
|
setIsLiked(newLiked);
|
|
170
198
|
setLikesCount(newCount);
|
|
171
199
|
|
|
172
|
-
// Update data object for parent component
|
|
173
|
-
data.isLiked = newLiked;
|
|
174
|
-
data.likes = newCount;
|
|
175
|
-
|
|
176
200
|
if (newLiked) {
|
|
177
201
|
setShowLikeAnim(true);
|
|
178
202
|
setTimeoutSafely(
|
|
@@ -182,8 +206,10 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
182
206
|
);
|
|
183
207
|
}
|
|
184
208
|
|
|
185
|
-
|
|
186
|
-
|
|
209
|
+
// Parent should update its data (e.g. in onLikePress) so that like state
|
|
210
|
+
// persists across scroll and re-mounts
|
|
211
|
+
onLikePress?.({ id: reel.episodeId, liked: newLiked });
|
|
212
|
+
}, [isLiked, likesCount, onLikePress, reel.episodeId]);
|
|
187
213
|
|
|
188
214
|
const handleTogglePlay = useCallback(() => {
|
|
189
215
|
setIsPaused((prev) => !prev);
|
|
@@ -211,14 +237,6 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
211
237
|
[closeAllModals, onEpisodeSelect, openUnlockModal]
|
|
212
238
|
);
|
|
213
239
|
|
|
214
|
-
const handleVideoEnd = useCallback(() => {
|
|
215
|
-
if (!autoScroll) return;
|
|
216
|
-
const nextEpisode = data.episodes?.[activeEpisodeIndex + 1];
|
|
217
|
-
if (nextEpisode) {
|
|
218
|
-
onEpisodeSelect(nextEpisode);
|
|
219
|
-
}
|
|
220
|
-
}, [autoScroll, data.episodes, activeEpisodeIndex, onEpisodeSelect]);
|
|
221
|
-
|
|
222
240
|
// Gestures
|
|
223
241
|
const handleLockedTap = useCallback(() => {
|
|
224
242
|
closeAllModals();
|
|
@@ -329,6 +347,14 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
329
347
|
[playbackRate, videoQuality]
|
|
330
348
|
);
|
|
331
349
|
|
|
350
|
+
const handleVideoEnd = useCallback(() => {
|
|
351
|
+
if (!autoScroll || isLocked || autoScrolledRef.current) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
autoScrolledRef.current = true;
|
|
355
|
+
onAutoScrollNext?.();
|
|
356
|
+
}, [autoScroll, isLocked, onAutoScrollNext]);
|
|
357
|
+
|
|
332
358
|
// ----------------------- RENDER -----------------------
|
|
333
359
|
return (
|
|
334
360
|
<View style={[styles.container, { height: videoHeight }]}>
|
|
@@ -341,6 +367,7 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
341
367
|
video={videoProps}
|
|
342
368
|
likes={likesProps}
|
|
343
369
|
actions={actionsProps}
|
|
370
|
+
isFullScreen={isFullScreen}
|
|
344
371
|
navigation={navigationProps}
|
|
345
372
|
settings={settingsProps}
|
|
346
373
|
>
|
|
@@ -360,10 +387,10 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
360
387
|
)}
|
|
361
388
|
{(isVisible || preload) && (
|
|
362
389
|
<Video
|
|
363
|
-
ref={videoRef}
|
|
390
|
+
ref={isVisible ? videoRef : undefined}
|
|
364
391
|
source={{ uri: videoUri }}
|
|
365
392
|
paused={finalPause}
|
|
366
|
-
repeat
|
|
393
|
+
repeat={!autoScroll}
|
|
367
394
|
resizeMode="cover"
|
|
368
395
|
poster={thumbnail}
|
|
369
396
|
posterResizeMode="cover"
|
|
@@ -378,10 +405,44 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
378
405
|
setHasError(false);
|
|
379
406
|
}}
|
|
380
407
|
onLoad={(info) => {
|
|
381
|
-
|
|
408
|
+
if (
|
|
409
|
+
Number(info.duration) > 0 &&
|
|
410
|
+
Number(info.duration) < 100000
|
|
411
|
+
) {
|
|
412
|
+
setDuration(Number(info.duration));
|
|
413
|
+
}
|
|
382
414
|
setHasError(false);
|
|
383
415
|
}}
|
|
384
|
-
onProgress={(p) =>
|
|
416
|
+
onProgress={(p) => {
|
|
417
|
+
setCurrentTime(p.currentTime);
|
|
418
|
+
if (isVisible) {
|
|
419
|
+
const safeDuration =
|
|
420
|
+
duration > 0
|
|
421
|
+
? duration
|
|
422
|
+
: Number((p as any).seekableDuration) || 0;
|
|
423
|
+
const totalWatchTime = p.currentTime;
|
|
424
|
+
const isVideoCompleted =
|
|
425
|
+
safeDuration > 0 &&
|
|
426
|
+
totalWatchTime >= safeDuration - 0.5;
|
|
427
|
+
|
|
428
|
+
onWatchProgress?.({
|
|
429
|
+
series: data,
|
|
430
|
+
episode: reel,
|
|
431
|
+
currentTime: p.currentTime,
|
|
432
|
+
duration: safeDuration,
|
|
433
|
+
isVideoCompleted,
|
|
434
|
+
totalWatchTime,
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
if (
|
|
438
|
+
p.currentTime >= MIN_VIEW_DURATION_SEC &&
|
|
439
|
+
!viewCountedRef.current
|
|
440
|
+
) {
|
|
441
|
+
viewCountedRef.current = true;
|
|
442
|
+
onViewCount?.({ id: reel.episodeId });
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}}
|
|
385
446
|
onEnd={handleVideoEnd}
|
|
386
447
|
style={StyleSheet.absoluteFillObject}
|
|
387
448
|
controls={false}
|
|
@@ -403,16 +464,18 @@ const ReelItem: React.FC<IReelItemProps> = ({
|
|
|
403
464
|
);
|
|
404
465
|
};
|
|
405
466
|
|
|
406
|
-
// Memo comparison
|
|
467
|
+
// Memo comparison – compare likes numerically so string/number don't cause extra re-renders
|
|
407
468
|
const areEqual = (prev: IReelItemProps, next: IReelItemProps) => {
|
|
469
|
+
const prevLikes = Number(prev.data.likes) || 0;
|
|
470
|
+
const nextLikes = Number(next.data.likes) || 0;
|
|
408
471
|
return (
|
|
409
472
|
prev.reel.episodeId === next.reel.episodeId &&
|
|
410
473
|
prev.isVisible === next.isVisible &&
|
|
411
474
|
prev.preload === next.preload &&
|
|
412
475
|
prev.activeEpisodeIndex === next.activeEpisodeIndex &&
|
|
413
476
|
prev.videoHeight === next.videoHeight &&
|
|
414
|
-
prev.data.isLiked === next.data.isLiked &&
|
|
415
|
-
|
|
477
|
+
Boolean(prev.data.isLiked) === Boolean(next.data.isLiked) &&
|
|
478
|
+
prevLikes === nextLikes &&
|
|
416
479
|
prev.reel.isLocked === next.reel.isLocked &&
|
|
417
480
|
prev.reel.videoUrl === next.reel.videoUrl &&
|
|
418
481
|
prev.isVisible === next.isVisible
|
|
@@ -427,6 +490,5 @@ const styles = StyleSheet.create({
|
|
|
427
490
|
container: {
|
|
428
491
|
width,
|
|
429
492
|
overflow: 'hidden',
|
|
430
|
-
backgroundColor: '#000',
|
|
431
493
|
},
|
|
432
494
|
});
|
|
@@ -9,55 +9,38 @@ import {
|
|
|
9
9
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
10
10
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
11
11
|
import type { ITheme } from '../../../../../theme';
|
|
12
|
+
import { DEFAULT_QUALITIES, getVideoQualities } from '../../utils/quality';
|
|
12
13
|
|
|
13
14
|
interface QualityControlProps {
|
|
14
15
|
activeQuality: string;
|
|
15
16
|
theme: ITheme;
|
|
16
17
|
onQualityChange: (quality: string) => void;
|
|
17
18
|
videoUrl?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional externally-controlled qualities list.
|
|
21
|
+
* When provided, QualityControl will not perform internal fetching
|
|
22
|
+
* and will instead render this list.
|
|
23
|
+
*/
|
|
24
|
+
qualities?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Optional externally-controlled loading state.
|
|
27
|
+
* Only used when `qualities` is provided.
|
|
28
|
+
*/
|
|
29
|
+
loading?: boolean;
|
|
18
30
|
}
|
|
19
31
|
|
|
20
|
-
interface QualityOption {
|
|
21
|
-
quality: string;
|
|
22
|
-
url: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const DEFAULT_QUALITIES = ['Auto', '1080p', '720p', '480p', '360p'];
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Fetches available video qualities from m3u8 playlist.
|
|
29
|
-
*/
|
|
30
|
-
const getVideoQualities = async (m3u8Url: string): Promise<QualityOption[]> => {
|
|
31
|
-
try {
|
|
32
|
-
const res = await fetch(m3u8Url);
|
|
33
|
-
const text = await res.text();
|
|
34
|
-
const qualities: QualityOption[] = [];
|
|
35
|
-
const lines = text.split('\n');
|
|
36
|
-
|
|
37
|
-
for (let i = 0; i < lines.length; i++) {
|
|
38
|
-
if (lines?.[i]?.includes('#EXT-X-STREAM-INF')) {
|
|
39
|
-
const resolutionMatch = lines?.[i]?.match(/RESOLUTION=\\d+x(\\d+)/);
|
|
40
|
-
const url = lines[i + 1]?.trim();
|
|
41
|
-
if (resolutionMatch && url) {
|
|
42
|
-
qualities.push({ quality: `${resolutionMatch[1]}p`, url });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return qualities;
|
|
48
|
-
} catch (error) {
|
|
49
|
-
console.error('Error fetching video qualities:', error);
|
|
50
|
-
return [];
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
32
|
const QualityControl: React.FC<QualityControlProps> = ({
|
|
55
33
|
activeQuality,
|
|
56
34
|
theme,
|
|
57
35
|
onQualityChange,
|
|
58
36
|
videoUrl,
|
|
37
|
+
qualities: externalQualities,
|
|
38
|
+
loading: externalLoading,
|
|
59
39
|
}) => {
|
|
60
|
-
const
|
|
40
|
+
const isControlled = typeof externalQualities !== 'undefined';
|
|
41
|
+
const [qualities, setQualities] = useState<string[]>(
|
|
42
|
+
externalQualities ?? DEFAULT_QUALITIES
|
|
43
|
+
);
|
|
61
44
|
const [loading, setLoading] = useState(false);
|
|
62
45
|
const isMounted = useRef(true);
|
|
63
46
|
|
|
@@ -68,7 +51,17 @@ const QualityControl: React.FC<QualityControlProps> = ({
|
|
|
68
51
|
};
|
|
69
52
|
}, []);
|
|
70
53
|
|
|
54
|
+
// Keep local state in sync when controlled externally
|
|
71
55
|
useEffect(() => {
|
|
56
|
+
if (isControlled) {
|
|
57
|
+
setQualities(externalQualities ?? DEFAULT_QUALITIES);
|
|
58
|
+
}
|
|
59
|
+
}, [externalQualities, isControlled]);
|
|
60
|
+
|
|
61
|
+
// Uncontrolled mode – fetch qualities internally based on videoUrl
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (isControlled) return;
|
|
64
|
+
|
|
72
65
|
const fetchQualities = async () => {
|
|
73
66
|
if (!videoUrl || !videoUrl.includes('.m3u8')) {
|
|
74
67
|
if (isMounted.current) setQualities(DEFAULT_QUALITIES);
|
|
@@ -102,9 +95,13 @@ const QualityControl: React.FC<QualityControlProps> = ({
|
|
|
102
95
|
};
|
|
103
96
|
|
|
104
97
|
fetchQualities();
|
|
105
|
-
}, [videoUrl]);
|
|
98
|
+
}, [videoUrl, isControlled]);
|
|
99
|
+
|
|
100
|
+
const isLoading = isControlled ? Boolean(externalLoading) : loading;
|
|
101
|
+
const renderedQualities =
|
|
102
|
+
qualities && qualities.length > 0 ? qualities : DEFAULT_QUALITIES;
|
|
106
103
|
|
|
107
|
-
if (
|
|
104
|
+
if (!isControlled && isLoading) {
|
|
108
105
|
return (
|
|
109
106
|
<View style={styles.loadingContainer}>
|
|
110
107
|
<ActivityIndicator size="small" color={theme.colors.button} />
|
|
@@ -119,7 +116,7 @@ const QualityControl: React.FC<QualityControlProps> = ({
|
|
|
119
116
|
|
|
120
117
|
return (
|
|
121
118
|
<View style={styles.container}>
|
|
122
|
-
{
|
|
119
|
+
{renderedQualities.map((quality, index) => {
|
|
123
120
|
const isSelected = activeQuality === quality;
|
|
124
121
|
|
|
125
122
|
return (
|
|
@@ -36,3 +36,19 @@ export interface ModalState {
|
|
|
36
36
|
isVisible: boolean;
|
|
37
37
|
type: 'none' | 'details' | 'settings';
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
export interface IReelsWatchProgress {
|
|
41
|
+
series: ISeriesItem;
|
|
42
|
+
episode: ISeriesEpisode;
|
|
43
|
+
currentTime: number;
|
|
44
|
+
duration: number;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the current episode has been watched till (almost) the end.
|
|
47
|
+
*/
|
|
48
|
+
isVideoCompleted: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Total time (in seconds) this episode has been watched.
|
|
51
|
+
* For short reels this generally matches `currentTime`.
|
|
52
|
+
*/
|
|
53
|
+
totalWatchTime: number;
|
|
54
|
+
}
|