@zezosoft/zezo-ott-react-native-ui-kit 1.0.2 → 1.0.3
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/LICENSE +0 -0
- package/README.md +6 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
- package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
- package/lib/module/assets/animations/succesfull-payment.json +2379 -1
- package/lib/module/assets/animations/voice-icon.json +542 -1
- package/lib/module/components/Account/Account.js +6 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Account/index.js +1 -1
- package/lib/module/components/Account/index.js.map +1 -1
- package/lib/module/components/Alert/UAAlert.js +138 -0
- package/lib/module/components/Alert/UAAlert.js.map +1 -0
- package/lib/module/components/Alert/index.js +4 -0
- package/lib/module/components/Alert/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +9 -9
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +6 -6
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +4 -10
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/BlogView/index.js +1 -1
- package/lib/module/components/BlogView/index.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +1 -1
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +1 -1
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +2 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Button/index.js +3 -3
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +2 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +2 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +4 -4
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +4 -4
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +4 -4
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +5 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +4 -4
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Card/index.js +10 -10
- package/lib/module/components/Content/Card/index.js.map +1 -1
- package/lib/module/components/Content/Content.js +4 -4
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +2 -2
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -9
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +6 -6
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +2 -2
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +2 -2
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +1 -1
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/ContentView/index.js +2 -2
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +2 -2
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +2 -2
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +2 -2
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +5 -6
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -3
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +3 -3
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +1 -1
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +1 -1
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +1 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -2
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +9 -9
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +3 -3
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Search/index.js +2 -2
- package/lib/module/components/Search/index.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +4 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Settings/index.js +1 -1
- package/lib/module/components/Settings/index.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +4 -4
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Subscription/index.js +1 -1
- package/lib/module/components/Subscription/index.js.map +1 -1
- package/lib/module/components/TabBar/One.js +2 -2
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +1 -1
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +2 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/TabBar/index.js +3 -3
- package/lib/module/components/TabBar/index.js.map +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/Text/index.js +1 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +3 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +1 -1
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +3 -3
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/User/index.js +3 -3
- package/lib/module/components/User/index.js.map +1 -1
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/View/index.js +1 -1
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/components/index.js +19 -18
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/components/layout/index.js +1 -1
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +11 -8
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +2 -2
- package/lib/module/theme/hook/useTheme.js.map +1 -1
- package/lib/module/theme/index.js +3 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +0 -13
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +0 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts +2 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
- 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/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 +0 -4
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.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 +1 -1
- 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/BlogView/BlogView.d.ts +0 -4
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- 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/Two.d.ts.map +1 -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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +0 -8
- 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.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +1 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
- 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 +1 -2
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -6
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -2
- 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 +1 -2
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
- 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 +1 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/index.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/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/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.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/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/splashStore.d.ts +5 -3
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +5 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +11 -4
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
- package/package.json +167 -70
- package/src/Styles/globalStyles.ts +18 -18
- package/src/assets/animations/135037-payment-processing-error.json +1347 -1
- package/src/assets/animations/7227-vui-animation.json +3377 -1
- package/src/assets/animations/succesfull-payment.json +2379 -1
- package/src/assets/animations/voice-icon.json +542 -1
- package/src/components/Account/Account.tsx +139 -61
- package/src/components/Alert/UAAlert.tsx +168 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
- package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
- package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
- package/src/components/Auth/OTP/OTP.tsx +77 -32
- package/src/components/Auth/SignUp/SignUp.tsx +67 -32
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
- package/src/components/Auth/index.ts +1 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
- package/src/components/BlogView/BlogView.tsx +51 -31
- package/src/components/Button/BackBtn.tsx +31 -9
- package/src/components/Button/MenuBtn.tsx +61 -22
- package/src/components/Button/PrimaryBtn.tsx +30 -10
- package/src/components/Button/TextButton.tsx +30 -15
- package/src/components/Button/index.ts +1 -1
- package/src/components/Content/Card/Category/Category.tsx +73 -32
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
- package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
- package/src/components/Content/Card/Sliders/index.ts +2 -2
- package/src/components/Content/Card/Styles/Five.tsx +65 -22
- package/src/components/Content/Card/Styles/Four.tsx +73 -23
- package/src/components/Content/Card/Styles/One.tsx +68 -21
- package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
- package/src/components/Content/Card/Styles/Six.tsx +57 -19
- package/src/components/Content/Card/Styles/Three.tsx +59 -23
- package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
- package/src/components/Content/Card/Styles/Two.tsx +39 -18
- package/src/components/Content/Card/components/CardPoster.tsx +34 -32
- package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
- package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
- package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
- package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
- package/src/components/Content/Card/index.ts +2 -2
- package/src/components/Content/Content.tsx +41 -17
- package/src/components/Content/Sections.tsx +14 -8
- package/src/components/ContentView/ContentView.tsx +34 -27
- package/src/components/ContentView/MoreContentList.tsx +40 -18
- package/src/components/ContentView/components/AboutSection.tsx +30 -12
- package/src/components/ContentView/components/CastCard.tsx +65 -24
- package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
- package/src/components/ContentView/components/GenreTags.tsx +35 -11
- package/src/components/ContentView/components/HeroBanner.tsx +52 -21
- package/src/components/ContentView/components/PlayButton.tsx +13 -5
- package/src/components/ContentView/components/Title.tsx +30 -10
- package/src/components/ContentView/components/TrailerButton.tsx +16 -7
- package/src/components/Headers/AppHeader.tsx +40 -14
- package/src/components/Headers/One.tsx +18 -9
- package/src/components/Headers/Three.tsx +22 -7
- package/src/components/Headers/Two.tsx +24 -13
- package/src/components/Headers/index.ts +1 -1
- package/src/components/Input/Input.ts +1 -1
- package/src/components/Input/InputOne.tsx +69 -23
- package/src/components/Input/InputTwo.tsx +41 -18
- package/src/components/Input/PhoneNumberInput.tsx +94 -48
- package/src/components/Keyboard/HideKeyboard.tsx +16 -10
- package/src/components/Loader/Loader.tsx +3 -8
- package/src/components/Logo/Logo.tsx +17 -9
- package/src/components/Search/One.tsx +46 -17
- package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
- package/src/components/Search/components/SearchCard.tsx +34 -16
- package/src/components/Search/index.ts +1 -1
- package/src/components/Settings/AppSettings.tsx +80 -29
- package/src/components/Subscription/SubOne.tsx +84 -39
- package/src/components/Subscription/index.ts +1 -1
- package/src/components/TabBar/One.tsx +22 -18
- package/src/components/TabBar/Three.tsx +55 -19
- package/src/components/TabBar/Two.tsx +16 -12
- package/src/components/TabBar/index.ts +1 -1
- package/src/components/Text/Text.tsx +7 -3
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +93 -38
- package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
- package/src/components/User/WatchLater/WatchLater.tsx +94 -31
- package/src/components/User/components/UserAvatar.tsx +8 -4
- package/src/components/User/components/UserSection.tsx +34 -19
- package/src/components/View/View.tsx +11 -2
- package/src/components/index.ts +1 -0
- package/src/components/layout/SafeAreaWrapper.tsx +10 -4
- package/src/constants/dummySections.ts +9 -7
- package/src/hooks/useDebounce.ts +4 -1
- package/src/hooks/useInitSplashCacheSync.ts +46 -18
- package/src/hooks/useKeyboard.ts +5 -3
- package/src/hooks/usePaginatedSection.ts +11 -7
- package/src/store/RecentSearchesStore.ts +12 -7
- package/src/store/splashStore.ts +16 -16
- package/src/theme/ThemeProvider.tsx +50 -20
- package/src/theme/hook/useTheme.ts +7 -3
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +42 -31
- package/src/types/content/content-view.types.ts +4 -1
- package/src/types/hook/usePaginatedSetion.ts +1 -1
- package/lib/module/components/Icons/AlertIcon.js +0 -33
- package/lib/module/components/Icons/AlertIcon.js.map +0 -1
- package/lib/module/components/Icons/DeviceIcon.js +0 -25
- package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
- package/lib/module/components/Icons/NewIndex.js +0 -36
- package/lib/module/components/Icons/NewIndex.js.map +0 -1
- package/lib/module/components/Icons/ResendOTP.js +0 -21
- package/lib/module/components/Icons/ResendOTP.js.map +0 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
- package/src/components/Icons/AlertIcon.tsx +0 -18
- package/src/components/Icons/DeviceIcon.tsx +0 -18
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
- package/src/components/Icons/NewIndex.ts +0 -35
- package/src/components/Icons/ResendOTP.tsx +0 -13
- /package/src/{index.ts → index.tsx} +0 -0
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
View,
|
|
9
|
+
StyleSheet,
|
|
10
|
+
FlatList,
|
|
11
|
+
TouchableOpacity,
|
|
12
|
+
type StyleProp,
|
|
13
|
+
type ViewStyle,
|
|
14
|
+
Alert,
|
|
15
|
+
} from 'react-native';
|
|
8
16
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
9
17
|
import { Text } from '../../Text';
|
|
10
18
|
import { useTheme } from '../../../theme/hook/useTheme';
|
|
@@ -52,7 +60,13 @@ type IDeviceSessionsProps = {
|
|
|
52
60
|
style?: StyleProp<ViewStyle>;
|
|
53
61
|
title?: string;
|
|
54
62
|
renderLogoutButton?: ({ session }: { session: ISessions }) => React.ReactNode;
|
|
55
|
-
renderContent?: ({
|
|
63
|
+
renderContent?: ({
|
|
64
|
+
session,
|
|
65
|
+
isActive,
|
|
66
|
+
}: {
|
|
67
|
+
session: ISessions;
|
|
68
|
+
isActive: boolean;
|
|
69
|
+
}) => React.ReactNode | null;
|
|
56
70
|
textLabels?: TextLabels;
|
|
57
71
|
headerStyle?: StyleProp<ViewStyle>;
|
|
58
72
|
headerTitleAlign?: 'left' | 'center';
|
|
@@ -80,12 +94,14 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
80
94
|
renderHeader,
|
|
81
95
|
theme,
|
|
82
96
|
isLoading,
|
|
83
|
-
isLoadingLogout
|
|
97
|
+
isLoadingLogout,
|
|
84
98
|
}) => {
|
|
85
99
|
const { theme: appliedTheme } = useTheme(theme);
|
|
86
100
|
const colors = appliedTheme.colors;
|
|
87
101
|
|
|
88
|
-
const [logoutSessionId, setLogoutSessionId] = React.useState<string | null>(
|
|
102
|
+
const [logoutSessionId, setLogoutSessionId] = React.useState<string | null>(
|
|
103
|
+
null
|
|
104
|
+
);
|
|
89
105
|
|
|
90
106
|
const {
|
|
91
107
|
thisDevice = 'This Device',
|
|
@@ -94,17 +110,21 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
94
110
|
noSessions = 'No active sessions found.',
|
|
95
111
|
loadingLogoutText = 'Logging out...',
|
|
96
112
|
cannotLogoutThisDeviceTitle = '⚠️ Cannot Logout',
|
|
97
|
-
cannotLogoutThisDeviceMessage = 'You cannot log out of this device.'
|
|
113
|
+
cannotLogoutThisDeviceMessage = 'You cannot log out of this device.',
|
|
98
114
|
} = textLabels || {};
|
|
99
115
|
|
|
100
|
-
const renderItem = ({
|
|
116
|
+
const renderItem = ({
|
|
117
|
+
item,
|
|
118
|
+
}: {
|
|
119
|
+
item: ISessions;
|
|
120
|
+
}): React.ReactElement | null => {
|
|
101
121
|
const isActive = item?.id === activeSessionId;
|
|
102
122
|
const isLoggingOut = isLoadingLogout && logoutSessionId === item.id;
|
|
103
123
|
if (renderContent) {
|
|
104
124
|
return (
|
|
105
125
|
(renderContent({
|
|
106
126
|
session: item,
|
|
107
|
-
isActive
|
|
127
|
+
isActive,
|
|
108
128
|
}) as React.ReactElement) ?? null
|
|
109
129
|
);
|
|
110
130
|
}
|
|
@@ -113,9 +133,14 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
113
133
|
const hasLocation = location?.city || location?.state || location?.country;
|
|
114
134
|
const handleLogoutPress = () => {
|
|
115
135
|
if (isActive) {
|
|
116
|
-
Alert.alert(
|
|
117
|
-
|
|
118
|
-
|
|
136
|
+
Alert.alert(
|
|
137
|
+
cannotLogoutThisDeviceTitle,
|
|
138
|
+
cannotLogoutThisDeviceMessage,
|
|
139
|
+
[{ text: 'Cancel', style: 'cancel' }],
|
|
140
|
+
{
|
|
141
|
+
cancelable: true,
|
|
142
|
+
}
|
|
143
|
+
);
|
|
119
144
|
return;
|
|
120
145
|
}
|
|
121
146
|
setLogoutSessionId(item.id);
|
|
@@ -128,21 +153,30 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
128
153
|
{
|
|
129
154
|
backgroundColor: colors.surfaceVariant,
|
|
130
155
|
borderColor: colors.outlineVariant ?? colors.outline,
|
|
131
|
-
shadowColor: colors.shadow ?? '#000'
|
|
132
|
-
}
|
|
156
|
+
shadowColor: colors.shadow ?? '#000',
|
|
157
|
+
},
|
|
133
158
|
]}
|
|
134
159
|
>
|
|
135
160
|
<View style={styles.deviceInfo}>
|
|
136
161
|
{(name || isActive) && (
|
|
137
162
|
<View style={styles.deviceRowHeader}>
|
|
138
163
|
{name && (
|
|
139
|
-
<Text
|
|
164
|
+
<Text
|
|
165
|
+
numberOfLines={1}
|
|
166
|
+
ellipsizeMode="tail"
|
|
167
|
+
style={[styles.deviceName, { color: colors.onSurface }]}
|
|
168
|
+
>
|
|
140
169
|
{name}
|
|
141
170
|
</Text>
|
|
142
171
|
)}
|
|
143
172
|
{isActive && (
|
|
144
|
-
<View
|
|
145
|
-
|
|
173
|
+
<View
|
|
174
|
+
style={[styles.badge, { backgroundColor: colors.button }]}
|
|
175
|
+
>
|
|
176
|
+
<Text
|
|
177
|
+
numberOfLines={1}
|
|
178
|
+
style={[styles.badgeText, { color: colors.black }]}
|
|
179
|
+
>
|
|
146
180
|
{thisDevice}
|
|
147
181
|
</Text>
|
|
148
182
|
</View>
|
|
@@ -158,7 +192,10 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
158
192
|
>
|
|
159
193
|
{browser}
|
|
160
194
|
{browser && hasLocation ? ' · ' : ''}
|
|
161
|
-
{hasLocation &&
|
|
195
|
+
{hasLocation &&
|
|
196
|
+
[location?.city, location?.state, location?.country]
|
|
197
|
+
.filter(Boolean)
|
|
198
|
+
.join(', ')}
|
|
162
199
|
</Text>
|
|
163
200
|
)}
|
|
164
201
|
|
|
@@ -175,7 +212,7 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
175
212
|
|
|
176
213
|
{renderLogoutButton ? (
|
|
177
214
|
renderLogoutButton({
|
|
178
|
-
session: item
|
|
215
|
+
session: item,
|
|
179
216
|
})
|
|
180
217
|
) : (
|
|
181
218
|
<TouchableOpacity
|
|
@@ -184,7 +221,11 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
184
221
|
activeOpacity={0.7}
|
|
185
222
|
onPress={handleLogoutPress}
|
|
186
223
|
>
|
|
187
|
-
<Text
|
|
224
|
+
<Text
|
|
225
|
+
numberOfLines={1}
|
|
226
|
+
ellipsizeMode="tail"
|
|
227
|
+
style={[styles.logoutText, { color: colors.primary }]}
|
|
228
|
+
>
|
|
188
229
|
{isLoggingOut ? loadingLogoutText : logOut}
|
|
189
230
|
</Text>
|
|
190
231
|
</TouchableOpacity>
|
|
@@ -205,7 +246,7 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
205
246
|
borderRadius: scale(10),
|
|
206
247
|
padding: scale(12),
|
|
207
248
|
marginBottom: verticalScale(12),
|
|
208
|
-
backgroundColor: colors.surfaceVariant
|
|
249
|
+
backgroundColor: colors.surfaceVariant,
|
|
209
250
|
}}
|
|
210
251
|
>
|
|
211
252
|
<SkeletonPlaceholder
|
|
@@ -213,7 +254,11 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
213
254
|
highlightColor={colors.skeletonHighlightColor || '#F2F8FC'}
|
|
214
255
|
borderRadius={scale(8)}
|
|
215
256
|
>
|
|
216
|
-
<SkeletonPlaceholder.Item
|
|
257
|
+
<SkeletonPlaceholder.Item
|
|
258
|
+
flexDirection="row"
|
|
259
|
+
alignItems="center"
|
|
260
|
+
justifyContent="space-between"
|
|
261
|
+
>
|
|
217
262
|
<SkeletonPlaceholder.Item flex={1} paddingRight={scale(12)}>
|
|
218
263
|
<SkeletonPlaceholder.Item
|
|
219
264
|
width="60%"
|
|
@@ -227,10 +272,18 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
227
272
|
borderRadius={scale(4)}
|
|
228
273
|
marginBottom={scale(4)}
|
|
229
274
|
/>
|
|
230
|
-
<SkeletonPlaceholder.Item
|
|
275
|
+
<SkeletonPlaceholder.Item
|
|
276
|
+
width="50%"
|
|
277
|
+
height={scale(10)}
|
|
278
|
+
borderRadius={scale(4)}
|
|
279
|
+
/>
|
|
231
280
|
</SkeletonPlaceholder.Item>
|
|
232
281
|
|
|
233
|
-
<SkeletonPlaceholder.Item
|
|
282
|
+
<SkeletonPlaceholder.Item
|
|
283
|
+
width={scale(80)}
|
|
284
|
+
height={verticalScale(30)}
|
|
285
|
+
borderRadius={scale(6)}
|
|
286
|
+
/>
|
|
234
287
|
</SkeletonPlaceholder.Item>
|
|
235
288
|
</SkeletonPlaceholder>
|
|
236
289
|
</View>
|
|
@@ -247,7 +300,9 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
247
300
|
});
|
|
248
301
|
}, [sessions, activeSessionId]);
|
|
249
302
|
return (
|
|
250
|
-
<View
|
|
303
|
+
<View
|
|
304
|
+
style={[styles.container, { backgroundColor: colors.background }, style]}
|
|
305
|
+
>
|
|
251
306
|
{renderHeader ? (
|
|
252
307
|
renderHeader()
|
|
253
308
|
) : (
|
|
@@ -287,11 +342,11 @@ export const DeviceSessions: React.FC<IDeviceSessionsProps> = ({
|
|
|
287
342
|
|
|
288
343
|
const styles = StyleSheet.create({
|
|
289
344
|
container: {
|
|
290
|
-
flex: 1
|
|
345
|
+
flex: 1,
|
|
291
346
|
},
|
|
292
347
|
listContent: {
|
|
293
348
|
paddingHorizontal: scale(16),
|
|
294
|
-
paddingVertical: verticalScale(12)
|
|
349
|
+
paddingVertical: verticalScale(12),
|
|
295
350
|
},
|
|
296
351
|
deviceRow: {
|
|
297
352
|
flexDirection: 'row',
|
|
@@ -304,11 +359,11 @@ const styles = StyleSheet.create({
|
|
|
304
359
|
elevation: 2,
|
|
305
360
|
shadowOpacity: 0.1,
|
|
306
361
|
shadowOffset: { width: 0, height: 1 },
|
|
307
|
-
shadowRadius: 4
|
|
362
|
+
shadowRadius: 4,
|
|
308
363
|
},
|
|
309
364
|
deviceInfo: {
|
|
310
365
|
flex: 1,
|
|
311
|
-
paddingRight: scale(12)
|
|
366
|
+
paddingRight: scale(12),
|
|
312
367
|
},
|
|
313
368
|
deviceRowHeader: {
|
|
314
369
|
flexDirection: 'row',
|
|
@@ -316,18 +371,18 @@ const styles = StyleSheet.create({
|
|
|
316
371
|
columnGap: scale(8),
|
|
317
372
|
rowGap: verticalScale(2),
|
|
318
373
|
flexWrap: 'wrap',
|
|
319
|
-
marginBottom: scale(4)
|
|
374
|
+
marginBottom: scale(4),
|
|
320
375
|
},
|
|
321
376
|
deviceName: {
|
|
322
377
|
fontSize: RFValue(12),
|
|
323
378
|
fontWeight: '600',
|
|
324
379
|
flexShrink: 1,
|
|
325
|
-
maxWidth: '80%'
|
|
380
|
+
maxWidth: '80%',
|
|
326
381
|
},
|
|
327
382
|
deviceMeta: {
|
|
328
383
|
fontSize: RFValue(9),
|
|
329
384
|
marginTop: scale(2),
|
|
330
|
-
flexShrink: 1
|
|
385
|
+
flexShrink: 1,
|
|
331
386
|
},
|
|
332
387
|
logoutButton: {
|
|
333
388
|
paddingHorizontal: scale(12),
|
|
@@ -335,36 +390,36 @@ const styles = StyleSheet.create({
|
|
|
335
390
|
borderRadius: scale(6),
|
|
336
391
|
minWidth: scale(80),
|
|
337
392
|
borderWidth: scale(1.5),
|
|
338
|
-
alignItems: 'center'
|
|
393
|
+
alignItems: 'center',
|
|
339
394
|
},
|
|
340
395
|
logoutText: {
|
|
341
396
|
fontSize: RFValue(10),
|
|
342
|
-
fontWeight: '600'
|
|
397
|
+
fontWeight: '600',
|
|
343
398
|
},
|
|
344
399
|
badge: {
|
|
345
400
|
paddingHorizontal: scale(8),
|
|
346
401
|
paddingVertical: verticalScale(2),
|
|
347
|
-
borderRadius: scale(6)
|
|
402
|
+
borderRadius: scale(6),
|
|
348
403
|
},
|
|
349
404
|
badgeText: {
|
|
350
405
|
fontSize: RFValue(9),
|
|
351
406
|
fontWeight: '500',
|
|
352
407
|
maxWidth: scale(100),
|
|
353
|
-
flexShrink: 1
|
|
408
|
+
flexShrink: 1,
|
|
354
409
|
},
|
|
355
410
|
emptyWrapper: {
|
|
356
411
|
paddingVertical: verticalScale(40),
|
|
357
412
|
alignItems: 'center',
|
|
358
|
-
justifyContent: 'center'
|
|
413
|
+
justifyContent: 'center',
|
|
359
414
|
},
|
|
360
415
|
emptyText: {
|
|
361
416
|
fontSize: RFValue(11),
|
|
362
|
-
textAlign: 'center'
|
|
417
|
+
textAlign: 'center',
|
|
363
418
|
},
|
|
364
419
|
skeletonLine: {
|
|
365
420
|
borderRadius: scale(4),
|
|
366
|
-
backgroundColor: '#ccc'
|
|
367
|
-
}
|
|
421
|
+
backgroundColor: '#ccc',
|
|
422
|
+
},
|
|
368
423
|
});
|
|
369
424
|
|
|
370
425
|
export namespace DeviceSessions {
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
StyleSheet,
|
|
9
|
+
View,
|
|
10
|
+
TouchableOpacity,
|
|
11
|
+
type StyleProp,
|
|
12
|
+
type ViewStyle,
|
|
13
|
+
type ListRenderItem,
|
|
14
|
+
} from 'react-native';
|
|
8
15
|
import { FlatGrid } from 'react-native-super-grid';
|
|
9
16
|
import { scale } from 'react-native-size-matters';
|
|
10
17
|
import { Search } from 'lucide-react-native';
|
|
@@ -88,13 +95,13 @@ export const WatchHistory: React.FC<WatchHistoryProps> = ({
|
|
|
88
95
|
onPressItem,
|
|
89
96
|
|
|
90
97
|
onEndReached,
|
|
91
|
-
onEndReachedThreshold
|
|
98
|
+
onEndReachedThreshold,
|
|
92
99
|
}) => {
|
|
93
100
|
const { theme: appliedTheme } = useTheme(theme);
|
|
94
101
|
|
|
95
102
|
const listData = isLoading
|
|
96
103
|
? Array.from({ length: skeletonCount }, (_, i) => ({
|
|
97
|
-
_id: `skeleton-${i}
|
|
104
|
+
_id: `skeleton-${i}`,
|
|
98
105
|
}))
|
|
99
106
|
: data;
|
|
100
107
|
|
|
@@ -103,8 +110,16 @@ export const WatchHistory: React.FC<WatchHistoryProps> = ({
|
|
|
103
110
|
if (!isLoading && renderItem) return renderItem(item, index);
|
|
104
111
|
|
|
105
112
|
return (
|
|
106
|
-
<TouchableOpacity
|
|
107
|
-
|
|
113
|
+
<TouchableOpacity
|
|
114
|
+
key={item._id || index}
|
|
115
|
+
onPress={() => onPressItem?.(item)}
|
|
116
|
+
activeOpacity={0.8}
|
|
117
|
+
>
|
|
118
|
+
<CardPoster
|
|
119
|
+
theme={appliedTheme}
|
|
120
|
+
isLoading={isLoading}
|
|
121
|
+
posterUri={item?.content?.poster}
|
|
122
|
+
/>
|
|
108
123
|
</TouchableOpacity>
|
|
109
124
|
);
|
|
110
125
|
};
|
|
@@ -120,10 +135,17 @@ export const WatchHistory: React.FC<WatchHistoryProps> = ({
|
|
|
120
135
|
titleAlign="left"
|
|
121
136
|
theme={appliedTheme}
|
|
122
137
|
titleStyle={{
|
|
123
|
-
color: appliedTheme.colors.onBackground
|
|
138
|
+
color: appliedTheme.colors.onBackground,
|
|
124
139
|
}}
|
|
125
140
|
onRightPress={onSearchPress}
|
|
126
|
-
rightIcon={
|
|
141
|
+
rightIcon={
|
|
142
|
+
showSearchIcon ? (
|
|
143
|
+
<Search
|
|
144
|
+
size={scale(23)}
|
|
145
|
+
color={appliedTheme.colors.onBackground}
|
|
146
|
+
/>
|
|
147
|
+
) : undefined
|
|
148
|
+
}
|
|
127
149
|
/>
|
|
128
150
|
)}
|
|
129
151
|
|
|
@@ -134,7 +156,10 @@ export const WatchHistory: React.FC<WatchHistoryProps> = ({
|
|
|
134
156
|
data={listData}
|
|
135
157
|
keyExtractor={(item, index) => item._id || `item-${index}`}
|
|
136
158
|
style={listStyle}
|
|
137
|
-
contentContainerStyle={[
|
|
159
|
+
contentContainerStyle={[
|
|
160
|
+
contentContainerStyle,
|
|
161
|
+
{ paddingBottom: scale(50) },
|
|
162
|
+
]}
|
|
138
163
|
renderItem={renderGridItem}
|
|
139
164
|
onEndReached={onEndReached}
|
|
140
165
|
onEndReachedThreshold={onEndReachedThreshold ?? 0.5}
|
|
@@ -152,18 +177,18 @@ export const WatchHistory: React.FC<WatchHistoryProps> = ({
|
|
|
152
177
|
|
|
153
178
|
const styles = StyleSheet.create({
|
|
154
179
|
container: {
|
|
155
|
-
flex: 1
|
|
180
|
+
flex: 1,
|
|
156
181
|
},
|
|
157
182
|
|
|
158
183
|
noData: {
|
|
159
184
|
flex: 1,
|
|
160
185
|
alignItems: 'center',
|
|
161
|
-
justifyContent: 'center'
|
|
186
|
+
justifyContent: 'center',
|
|
162
187
|
},
|
|
163
188
|
noDataText: {
|
|
164
189
|
fontSize: RFValue(12),
|
|
165
|
-
opacity: 0.5
|
|
166
|
-
}
|
|
190
|
+
opacity: 0.5,
|
|
191
|
+
},
|
|
167
192
|
});
|
|
168
193
|
|
|
169
194
|
export namespace WatchHistory {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
type TextStyle,
|
|
13
13
|
type StyleProp,
|
|
14
14
|
type ViewStyle,
|
|
15
|
-
type ListRenderItem
|
|
15
|
+
type ListRenderItem,
|
|
16
16
|
} from 'react-native';
|
|
17
17
|
import { FlatGrid } from 'react-native-super-grid';
|
|
18
18
|
import { scale } from 'react-native-size-matters';
|
|
@@ -51,7 +51,10 @@ export type WatchLaterProps = {
|
|
|
51
51
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
52
52
|
theme?: AppTheme;
|
|
53
53
|
viewMode?: 'poster' | 'detailed';
|
|
54
|
-
renderItem?: (
|
|
54
|
+
renderItem?: (
|
|
55
|
+
item: IWatchLaterItem,
|
|
56
|
+
index: number
|
|
57
|
+
) => React.ReactElement | null;
|
|
55
58
|
skeletonCount?: number;
|
|
56
59
|
skeletonComponent?: React.ReactElement;
|
|
57
60
|
noDataComponent?: React.ReactNode;
|
|
@@ -61,7 +64,10 @@ export type WatchLaterProps = {
|
|
|
61
64
|
onEndReachedThreshold?: number;
|
|
62
65
|
};
|
|
63
66
|
|
|
64
|
-
const DefaultSkeleton: React.FC<{
|
|
67
|
+
const DefaultSkeleton: React.FC<{
|
|
68
|
+
theme: ITheme;
|
|
69
|
+
viewMode: 'poster' | 'detailed';
|
|
70
|
+
}> = ({ theme, viewMode }) => {
|
|
65
71
|
if (viewMode === 'detailed') {
|
|
66
72
|
return (
|
|
67
73
|
<SkeletonPlaceholder
|
|
@@ -72,10 +78,34 @@ const DefaultSkeleton: React.FC<{ theme: ITheme; viewMode: 'poster' | 'detailed'
|
|
|
72
78
|
<View style={styles.detailedItem}>
|
|
73
79
|
<View style={styles.thumbnailWrapper} />
|
|
74
80
|
<View style={[styles.detailedInfo, { justifyContent: 'center' }]}>
|
|
75
|
-
<View
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
<View
|
|
82
|
+
style={{
|
|
83
|
+
width: '60%',
|
|
84
|
+
height: scale(12),
|
|
85
|
+
marginBottom: scale(6),
|
|
86
|
+
}}
|
|
87
|
+
/>
|
|
88
|
+
<View
|
|
89
|
+
style={{
|
|
90
|
+
width: '90%',
|
|
91
|
+
height: scale(10),
|
|
92
|
+
marginBottom: scale(4),
|
|
93
|
+
}}
|
|
94
|
+
/>
|
|
95
|
+
<View
|
|
96
|
+
style={{
|
|
97
|
+
width: '70%',
|
|
98
|
+
height: scale(10),
|
|
99
|
+
marginBottom: scale(4),
|
|
100
|
+
}}
|
|
101
|
+
/>
|
|
102
|
+
<View
|
|
103
|
+
style={{
|
|
104
|
+
width: '40%',
|
|
105
|
+
height: scale(10),
|
|
106
|
+
marginBottom: scale(4),
|
|
107
|
+
}}
|
|
108
|
+
/>
|
|
79
109
|
<View style={{ width: '30%', height: scale(10) }} />
|
|
80
110
|
</View>
|
|
81
111
|
</View>
|
|
@@ -89,7 +119,9 @@ const DefaultSkeleton: React.FC<{ theme: ITheme; viewMode: 'poster' | 'detailed'
|
|
|
89
119
|
highlightColor={theme.colors.skeletonHighlightColor}
|
|
90
120
|
backgroundColor={theme.colors.skeletonBaseColor}
|
|
91
121
|
>
|
|
92
|
-
<View
|
|
122
|
+
<View
|
|
123
|
+
style={{ height: scale(140), borderRadius: scale(6), margin: scale(1) }}
|
|
124
|
+
/>
|
|
93
125
|
</SkeletonPlaceholder>
|
|
94
126
|
);
|
|
95
127
|
};
|
|
@@ -116,7 +148,7 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
116
148
|
onPressItem,
|
|
117
149
|
onEndReached,
|
|
118
150
|
onEndReachedThreshold,
|
|
119
|
-
viewMode = 'poster'
|
|
151
|
+
viewMode = 'poster',
|
|
120
152
|
}) => {
|
|
121
153
|
const { theme: appliedTheme } = useTheme(theme);
|
|
122
154
|
|
|
@@ -127,14 +159,18 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
127
159
|
name: '',
|
|
128
160
|
description: '',
|
|
129
161
|
poster: '',
|
|
130
|
-
thumbnail: ''
|
|
131
|
-
}
|
|
162
|
+
thumbnail: '',
|
|
163
|
+
},
|
|
132
164
|
})) as any)
|
|
133
165
|
: data;
|
|
134
166
|
|
|
135
167
|
const renderGridItem: ListRenderItem<IWatchLaterItem> = ({ item, index }) => {
|
|
136
168
|
if (isLoading) {
|
|
137
|
-
return
|
|
169
|
+
return (
|
|
170
|
+
skeletonComponent ?? (
|
|
171
|
+
<DefaultSkeleton theme={appliedTheme} viewMode={viewMode} />
|
|
172
|
+
)
|
|
173
|
+
);
|
|
138
174
|
}
|
|
139
175
|
|
|
140
176
|
if (renderItem) return renderItem(item, index);
|
|
@@ -159,7 +195,13 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
159
195
|
<Text numberOfLines={1} style={styles.detailedTitle}>
|
|
160
196
|
{item?.content?.name}
|
|
161
197
|
</Text>
|
|
162
|
-
<Text
|
|
198
|
+
<Text
|
|
199
|
+
numberOfLines={5}
|
|
200
|
+
style={[
|
|
201
|
+
styles.detailedDesc,
|
|
202
|
+
{ color: appliedTheme.colors.textSecondary },
|
|
203
|
+
]}
|
|
204
|
+
>
|
|
163
205
|
{item?.content?.description}
|
|
164
206
|
</Text>
|
|
165
207
|
</View>
|
|
@@ -168,8 +210,16 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
168
210
|
}
|
|
169
211
|
|
|
170
212
|
return (
|
|
171
|
-
<TouchableOpacity
|
|
172
|
-
|
|
213
|
+
<TouchableOpacity
|
|
214
|
+
key={item._id || index}
|
|
215
|
+
onPress={() => onPressItem?.(item)}
|
|
216
|
+
activeOpacity={0.8}
|
|
217
|
+
>
|
|
218
|
+
<CardPoster
|
|
219
|
+
theme={appliedTheme}
|
|
220
|
+
isLoading={isLoading}
|
|
221
|
+
posterUri={item?.content?.poster}
|
|
222
|
+
/>
|
|
173
223
|
</TouchableOpacity>
|
|
174
224
|
);
|
|
175
225
|
};
|
|
@@ -186,10 +236,17 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
186
236
|
theme={appliedTheme}
|
|
187
237
|
titleStyle={{
|
|
188
238
|
...(titleStyle ? StyleSheet.flatten(titleStyle) : {}),
|
|
189
|
-
color: appliedTheme.colors.onBackground
|
|
239
|
+
color: appliedTheme.colors.onBackground,
|
|
190
240
|
}}
|
|
191
241
|
onRightPress={onSearchPress}
|
|
192
|
-
rightIcon={
|
|
242
|
+
rightIcon={
|
|
243
|
+
showSearchIcon ? (
|
|
244
|
+
<Search
|
|
245
|
+
size={scale(23)}
|
|
246
|
+
color={appliedTheme.colors.onBackground}
|
|
247
|
+
/>
|
|
248
|
+
) : undefined
|
|
249
|
+
}
|
|
193
250
|
/>
|
|
194
251
|
)}
|
|
195
252
|
|
|
@@ -202,7 +259,10 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
202
259
|
keyExtractor={(item, index) => item._id || `item-${index}`}
|
|
203
260
|
style={listStyle}
|
|
204
261
|
showsVerticalScrollIndicator={false}
|
|
205
|
-
contentContainerStyle={[
|
|
262
|
+
contentContainerStyle={[
|
|
263
|
+
styles.contentContainerFlatStyle,
|
|
264
|
+
contentContainerStyle,
|
|
265
|
+
]}
|
|
206
266
|
renderItem={renderGridItem}
|
|
207
267
|
onEndReached={onEndReached}
|
|
208
268
|
onEndReachedThreshold={onEndReachedThreshold ?? 0.5}
|
|
@@ -213,7 +273,10 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
213
273
|
keyExtractor={(item, index) => item._id || `item-${index}`}
|
|
214
274
|
renderItem={renderGridItem}
|
|
215
275
|
style={listStyle}
|
|
216
|
-
contentContainerStyle={[
|
|
276
|
+
contentContainerStyle={[
|
|
277
|
+
styles.contentContainerFlatStyle,
|
|
278
|
+
contentContainerStyle,
|
|
279
|
+
]}
|
|
217
280
|
onEndReached={onEndReached}
|
|
218
281
|
onEndReachedThreshold={onEndReachedThreshold ?? 0.5}
|
|
219
282
|
showsVerticalScrollIndicator={false}
|
|
@@ -232,19 +295,19 @@ export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
|
232
295
|
|
|
233
296
|
const styles = StyleSheet.create({
|
|
234
297
|
container: {
|
|
235
|
-
flex: 1
|
|
298
|
+
flex: 1,
|
|
236
299
|
},
|
|
237
300
|
noData: {
|
|
238
301
|
flex: 1,
|
|
239
302
|
alignItems: 'center',
|
|
240
|
-
justifyContent: 'center'
|
|
303
|
+
justifyContent: 'center',
|
|
241
304
|
},
|
|
242
305
|
noDataText: {
|
|
243
306
|
fontSize: RFValue(13),
|
|
244
|
-
opacity: 0.5
|
|
307
|
+
opacity: 0.5,
|
|
245
308
|
},
|
|
246
309
|
contentContainerFlatStyle: {
|
|
247
|
-
paddingBottom: scale(50)
|
|
310
|
+
paddingBottom: scale(50),
|
|
248
311
|
},
|
|
249
312
|
thumbnailWrapper: {
|
|
250
313
|
width: scale(150),
|
|
@@ -252,38 +315,38 @@ const styles = StyleSheet.create({
|
|
|
252
315
|
borderRadius: scale(6),
|
|
253
316
|
overflow: 'hidden',
|
|
254
317
|
backgroundColor: '#222',
|
|
255
|
-
alignSelf: 'stretch'
|
|
318
|
+
alignSelf: 'stretch',
|
|
256
319
|
},
|
|
257
320
|
thumbnailImage: {
|
|
258
321
|
width: '100%',
|
|
259
322
|
height: '100%',
|
|
260
|
-
borderRadius: 0
|
|
323
|
+
borderRadius: 0,
|
|
261
324
|
},
|
|
262
325
|
detailedItem: {
|
|
263
326
|
flexDirection: 'row',
|
|
264
327
|
marginVertical: scale(6),
|
|
265
328
|
paddingHorizontal: scale(10),
|
|
266
|
-
alignItems: 'flex-start'
|
|
329
|
+
alignItems: 'flex-start',
|
|
267
330
|
},
|
|
268
331
|
detailedPoster: {
|
|
269
332
|
width: scale(80),
|
|
270
333
|
height: scale(120),
|
|
271
|
-
borderRadius: scale(6)
|
|
334
|
+
borderRadius: scale(6),
|
|
272
335
|
},
|
|
273
336
|
detailedInfo: {
|
|
274
337
|
flex: 1,
|
|
275
|
-
marginLeft: scale(5)
|
|
338
|
+
marginLeft: scale(5),
|
|
276
339
|
},
|
|
277
340
|
detailedTitle: {
|
|
278
341
|
fontSize: RFValue(11),
|
|
279
|
-
fontWeight: '500'
|
|
342
|
+
fontWeight: '500',
|
|
280
343
|
},
|
|
281
344
|
detailedDesc: {
|
|
282
345
|
fontSize: RFValue(9),
|
|
283
346
|
textAlign: 'auto',
|
|
284
347
|
fontWeight: '400',
|
|
285
|
-
marginTop: scale(1)
|
|
286
|
-
}
|
|
348
|
+
marginTop: scale(1),
|
|
349
|
+
},
|
|
287
350
|
});
|
|
288
351
|
|
|
289
352
|
export namespace WatchLater {
|
|
@@ -12,7 +12,11 @@ type UserAvatarProps = {
|
|
|
12
12
|
theme?: AppTheme;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
const UserAvatar: React.FC<UserAvatarProps> = ({
|
|
15
|
+
const UserAvatar: React.FC<UserAvatarProps> = ({
|
|
16
|
+
avatarUri,
|
|
17
|
+
size = scale(80),
|
|
18
|
+
theme,
|
|
19
|
+
}) => {
|
|
16
20
|
const [imageError, setImageError] = useState(false);
|
|
17
21
|
const { theme: appliedTheme } = useTheme(theme);
|
|
18
22
|
const borderColor = appliedTheme.colors.primary;
|
|
@@ -32,12 +36,12 @@ export default UserAvatar;
|
|
|
32
36
|
const styles = (size: number) =>
|
|
33
37
|
StyleSheet.create({
|
|
34
38
|
wrapper: {
|
|
35
|
-
position: 'relative'
|
|
39
|
+
position: 'relative',
|
|
36
40
|
},
|
|
37
41
|
avatar: {
|
|
38
42
|
width: size,
|
|
39
43
|
height: size,
|
|
40
44
|
borderRadius: size / 2,
|
|
41
|
-
borderWidth: scale(1.5)
|
|
42
|
-
}
|
|
45
|
+
borderWidth: scale(1.5),
|
|
46
|
+
},
|
|
43
47
|
});
|