@zezosoft/zezo-ott-react-native-ui-kit 1.1.1 → 1.1.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/lib/module/Styles/globalStyles.js +0 -5
- package/lib/module/Styles/globalStyles.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +64 -40
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +5 -2
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +17 -11
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +12 -6
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +7 -4
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +357 -144
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +227 -110
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +19 -13
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +54 -36
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +29 -11
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +13 -7
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +33 -21
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +26 -20
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +36 -20
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +24 -20
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +19 -13
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/SecondaryBtn.js +19 -13
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +19 -13
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +151 -46
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- 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 +200 -133
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +192 -84
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +131 -48
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +126 -59
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +125 -50
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +143 -65
- 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 +134 -79
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +186 -171
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +144 -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 +139 -93
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +18 -17
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +78 -28
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/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 +99 -40
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +63 -34
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +70 -41
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +74 -40
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +40 -19
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +6 -7
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +2 -2
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +25 -13
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +39 -11
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/MiniInfo.js +84 -77
- package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +11 -7
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +12 -12
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +12 -7
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/Fallbacks/NoContentFallback.js +27 -22
- package/lib/module/components/Fallbacks/NoContentFallback.js.map +1 -1
- package/lib/module/components/Fallbacks/NotFoundFallback.js +6 -4
- package/lib/module/components/Fallbacks/NotFoundFallback.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +22 -13
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/Three.js +6 -5
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +19 -14
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +46 -31
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +2 -2
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +17 -14
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +2 -1
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +15 -19
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +97 -62
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +313 -254
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Text/Text.js +15 -12
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +25 -23
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +23 -18
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +38 -24
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +21 -14
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +30 -21
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +38 -19
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +37 -17
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/View/View.js +7 -4
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants/dummySections.js +44 -4
- 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 +20 -0
- package/lib/module/hooks/index.js.map +1 -0
- 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/useDebounce.js +25 -6
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js +7 -4
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/useNavigationMode.js +10 -4
- package/lib/module/hooks/useNavigationMode.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js +12 -7
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/hooks/usePrevious.js +30 -0
- package/lib/module/hooks/usePrevious.js.map +1 -0
- package/lib/module/hooks/useSafeCallback.js +33 -0
- package/lib/module/hooks/useSafeCallback.js.map +1 -0
- package/lib/module/hooks/useSkeletonItems.js +33 -0
- package/lib/module/hooks/useSkeletonItems.js.map +1 -0
- package/lib/module/hooks/useSplashCache.js +2 -1
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/module/hooks/useThemeColors.js +33 -0
- package/lib/module/hooks/useThemeColors.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +17 -11
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useInternalTheme.js +18 -11
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
- package/lib/module/theme/hook/useThemeStatusBar.js +10 -4
- package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -1
- package/lib/typescript/src/Styles/globalStyles.d.ts +0 -5
- package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +2 -15
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +2 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +2 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts +2 -2
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +2 -2
- 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 +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 +3 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/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 +6 -3
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +22 -8
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +2 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts +2 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts +1 -1
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +2 -2
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +2 -2
- package/lib/typescript/src/components/Input/Input.d.ts +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts +2 -2
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +2 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +2 -5
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/index.d.ts +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +2 -2
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/Text.d.ts +2 -2
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts +2 -0
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +0 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts +5 -0
- 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 +17 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- 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/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useNavigationMode.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -2
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePrevious.d.ts +12 -0
- package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSafeCallback.d.ts +15 -0
- package/lib/typescript/src/hooks/useSafeCallback.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSkeletonItems.d.ts +11 -0
- package/lib/typescript/src/hooks/useSkeletonItems.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useThemeColors.d.ts +27 -0
- package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +7 -4
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/src/Styles/globalStyles.ts +0 -5
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +288 -212
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +11 -4
- package/src/components/Auth/Login/LoginWithEmail.tsx +266 -238
- package/src/components/Auth/Login/LoginWithPhone.tsx +18 -6
- package/src/components/Auth/OTP/OTP.tsx +21 -5
- package/src/components/Auth/QrLogin/QrLogin.tsx +477 -177
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +349 -139
- package/src/components/Auth/SignUp/SignUp.tsx +312 -293
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +186 -131
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +32 -15
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +11 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +34 -18
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +43 -37
- package/src/components/BlogView/BlogView.tsx +66 -30
- package/src/components/Button/BackBtn.tsx +64 -34
- package/src/components/Button/PrimaryBtn.tsx +42 -25
- package/src/components/Button/SecondaryBtn.tsx +41 -25
- package/src/components/Button/TextButton.tsx +54 -32
- package/src/components/Content/Card/Category/Category.tsx +189 -64
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +281 -136
- package/src/components/Content/Card/Sliders/Styles/One.tsx +270 -158
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +239 -90
- package/src/components/Content/Card/Styles/Five.tsx +161 -62
- package/src/components/Content/Card/Styles/Four.tsx +164 -85
- package/src/components/Content/Card/Styles/One.tsx +161 -71
- package/src/components/Content/Card/Styles/RotateInOut.tsx +162 -67
- package/src/components/Content/Card/Styles/Six.tsx +242 -142
- package/src/components/Content/Card/Styles/Three.tsx +166 -133
- package/src/components/Content/Card/Styles/TopTen.tsx +230 -191
- package/src/components/Content/Card/Styles/Two.tsx +182 -79
- package/src/components/Content/Card/components/AdsPoster.tsx +202 -0
- package/src/components/Content/Card/components/CardPoster.tsx +166 -105
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +58 -38
- package/src/components/Content/Card/components/ThumbnailCard.tsx +122 -47
- package/src/components/Content/Card/components/index.ts +1 -0
- package/src/components/Content/Content.tsx +211 -106
- package/src/components/Content/Sections.tsx +148 -51
- package/src/components/ContentView/ContentView.tsx +194 -128
- package/src/components/ContentView/MoreContentList.tsx +215 -151
- package/src/components/ContentView/components/AboutSection.tsx +132 -93
- package/src/components/ContentView/components/CastCard.tsx +148 -138
- package/src/components/ContentView/components/EpisodeCard.tsx +160 -155
- package/src/components/ContentView/components/GenreTags.tsx +68 -53
- package/src/components/ContentView/components/HeroBanner.tsx +326 -284
- package/src/components/ContentView/components/MiniInfo.tsx +181 -159
- package/src/components/ContentView/components/PlayButton.tsx +27 -16
- package/src/components/ContentView/components/Title.tsx +89 -72
- package/src/components/ContentView/components/TrailerButton.tsx +35 -22
- package/src/components/Fallbacks/NoContentFallback.tsx +107 -103
- package/src/components/Fallbacks/NotFoundFallback.tsx +12 -4
- package/src/components/Headers/AppHeader.tsx +42 -26
- package/src/components/Headers/Three.tsx +12 -8
- package/src/components/Headers/Two.tsx +31 -10
- package/src/components/Input/InputOne.tsx +136 -108
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +43 -27
- package/src/components/Search/One.tsx +2 -4
- package/src/components/Search/components/SearchCard.tsx +19 -13
- package/src/components/Settings/AppSettings.tsx +217 -128
- package/src/components/Subscription/SubOne.tsx +394 -317
- package/src/components/Text/Text.tsx +33 -22
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +129 -102
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +36 -17
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +194 -140
- package/src/components/User/WatchHistory/WatchHistory.tsx +63 -36
- package/src/components/User/WatchLater/WatchLater.tsx +119 -81
- package/src/components/User/components/UserAvatar.tsx +49 -15
- package/src/components/User/components/UserSection.tsx +71 -37
- package/src/components/View/View.tsx +10 -2
- package/src/components/index.ts +0 -1
- package/src/constants/dummySections.ts +48 -1
- 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 +17 -0
- package/src/hooks/useAdTracking.ts +349 -0
- package/src/hooks/useCards.ts +228 -0
- package/src/hooks/useDebounce.ts +25 -6
- package/src/hooks/useKeyboard.ts +12 -5
- package/src/hooks/useNavigationMode.ts +16 -5
- package/src/hooks/usePaginatedSection.ts +27 -8
- package/src/hooks/usePrevious.ts +28 -0
- package/src/hooks/useSafeCallback.ts +43 -0
- package/src/hooks/useSkeletonItems.ts +30 -0
- package/src/hooks/useSplashCache.ts +2 -1
- package/src/hooks/useThemeColors.ts +51 -0
- package/src/theme/ThemeProvider.tsx +25 -9
- package/src/theme/hook/useInternalTheme.ts +19 -13
- package/src/theme/hook/useThemeStatusBar.ts +14 -5
- package/src/types/sections/index.ts +7 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Image","StyleSheet","View","SkeletonPlaceholder","scale","useInternalTheme","jsx","_jsx","jsxs","_jsxs","fallbackAvatar","require","
|
|
1
|
+
{"version":3,"names":["React","useState","memo","useMemo","useCallback","Image","StyleSheet","View","SkeletonPlaceholder","scale","useInternalTheme","jsx","_jsx","jsxs","_jsxs","fallbackAvatar","require","UserAvatarComponent","avatarUri","size","theme","appliedTheme","imageError","setImageError","loading","setLoading","borderColor","colors","primary","skeletonBaseColor","skeletonHighlightColor","handleError","handleLoadStart","handleLoadEnd","imageSource","uri","avatarStyles","styles","avatarImageStyle","avatar","position","skeletonBorderRadius","style","wrapper","children","backgroundColor","highlightColor","borderRadius","Item","width","height","source","onError","onLoadStart","onLoadEnd","UserAvatar","create","justifyContent","alignItems","borderWidth"],"sourceRoot":"../../../../../src","sources":["components/User/components/UserAvatar.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACnE,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACtD,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,gBAAgB,QAAQ,yCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGxE,MAAMC,cAAc,GAAGC,OAAO,CAAC,iCAAiC,CAAC;AAQjE,MAAMC,mBAA8C,GAAGA,CAAC;EACtDC,SAAS;EACTC,IAAI,GAAGV,KAAK,CAAC,EAAE,CAAC;EAChBW;AACF,CAAC,KAAK;EACJ,MAAM;IAAEA,KAAK,EAAEC;EAAa,CAAC,GAAGX,gBAAgB,CAACU,KAAK,CAAC;EACvD,MAAM,CAACE,UAAU,EAAEC,aAAa,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EACnD,MAAM,CAACuB,OAAO,EAAEC,UAAU,CAAC,GAAGxB,QAAQ,CAAC,CAAC,CAACiB,SAAS,CAAC;;EAEnD;EACA,MAAMQ,WAAW,GAA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]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Naresh Dhamu
|
|
5
5
|
* @lastModified Mon 23 Jun 2025 at 11:22 AM
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { memo, useMemo } from 'react';
|
|
8
8
|
import { View, Pressable } from 'react-native';
|
|
9
9
|
import { Edit3 } from 'lucide-react-native';
|
|
10
10
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
@@ -14,7 +14,7 @@ import { Text } from "../../Text/index.js";
|
|
|
14
14
|
import { useInternalTheme } from "../../../theme/hook/useInternalTheme.js";
|
|
15
15
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
-
const
|
|
17
|
+
const UserSectionComponent = ({
|
|
18
18
|
userInfo,
|
|
19
19
|
isLoading,
|
|
20
20
|
renderUserInfo,
|
|
@@ -26,14 +26,41 @@ const UserSection = ({
|
|
|
26
26
|
const {
|
|
27
27
|
theme: appliedTheme
|
|
28
28
|
} = useInternalTheme(theme);
|
|
29
|
+
|
|
30
|
+
// Memoize skeleton colors
|
|
31
|
+
const skeletonColors = useMemo(() => ({
|
|
32
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
33
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor
|
|
34
|
+
}), [appliedTheme.colors.skeletonBaseColor, appliedTheme.colors.skeletonHighlightColor]);
|
|
35
|
+
|
|
36
|
+
// Memoize edit button style
|
|
37
|
+
const editButtonStyle = useMemo(() => [styles.editButton, {
|
|
38
|
+
borderColor: appliedTheme.colors.primary,
|
|
39
|
+
backgroundColor: appliedTheme.colors.surfaceVariant,
|
|
40
|
+
shadowColor: appliedTheme.colors.surface
|
|
41
|
+
}], [appliedTheme.colors.primary, appliedTheme.colors.surfaceVariant, appliedTheme.colors.surface]);
|
|
42
|
+
|
|
43
|
+
// Memoize text styles
|
|
44
|
+
const userNameStyle = useMemo(() => [styles.userName, {
|
|
45
|
+
color: appliedTheme.colors.onBackground
|
|
46
|
+
}, userInfoTextStyle.nameStyle], [appliedTheme.colors.onBackground, userInfoTextStyle.nameStyle]);
|
|
47
|
+
const userEmailStyle = useMemo(() => [styles.userEmail, {
|
|
48
|
+
color: appliedTheme.colors.onBackground
|
|
49
|
+
}, userInfoTextStyle.emailStyle], [appliedTheme.colors.onBackground, userInfoTextStyle.emailStyle]);
|
|
50
|
+
|
|
51
|
+
// Memoize ripple color
|
|
52
|
+
const rippleColor = useMemo(() => appliedTheme.colors.surfaceDisabled, [appliedTheme.colors.surfaceDisabled]);
|
|
53
|
+
|
|
54
|
+
// Memoize primary color
|
|
55
|
+
const primaryColor = useMemo(() => appliedTheme.colors.primary, [appliedTheme.colors.primary]);
|
|
29
56
|
if (!userInfo) return null;
|
|
30
57
|
if (renderUserInfo) return renderUserInfo(userInfo);
|
|
31
58
|
if (isLoading) {
|
|
32
59
|
return /*#__PURE__*/_jsx(View, {
|
|
33
60
|
style: styles.userInfoContainer,
|
|
34
61
|
children: /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
35
|
-
backgroundColor:
|
|
36
|
-
highlightColor:
|
|
62
|
+
backgroundColor: skeletonColors.backgroundColor,
|
|
63
|
+
highlightColor: skeletonColors.highlightColor,
|
|
37
64
|
borderRadius: moderateScale(8),
|
|
38
65
|
...skeletonProps,
|
|
39
66
|
children: /*#__PURE__*/_jsxs(View, {
|
|
@@ -59,33 +86,26 @@ const UserSection = ({
|
|
|
59
86
|
theme: theme
|
|
60
87
|
}), userInfo.onEditPress && /*#__PURE__*/_jsx(Pressable, {
|
|
61
88
|
onPress: userInfo.onEditPress,
|
|
62
|
-
style:
|
|
63
|
-
borderColor: appliedTheme.colors.primary,
|
|
64
|
-
backgroundColor: appliedTheme.colors.surfaceVariant,
|
|
65
|
-
shadowColor: appliedTheme.colors.surface
|
|
66
|
-
}],
|
|
89
|
+
style: editButtonStyle,
|
|
67
90
|
android_ripple: {
|
|
68
|
-
color:
|
|
91
|
+
color: rippleColor
|
|
69
92
|
},
|
|
70
93
|
children: /*#__PURE__*/_jsx(Edit3, {
|
|
71
94
|
size: moderateScale(13),
|
|
72
|
-
color:
|
|
95
|
+
color: primaryColor
|
|
73
96
|
})
|
|
74
97
|
})]
|
|
75
98
|
})
|
|
76
99
|
}), userInfo.name && /*#__PURE__*/_jsx(Text, {
|
|
77
|
-
style:
|
|
78
|
-
color: appliedTheme.colors.onBackground
|
|
79
|
-
}, userInfoTextStyle.nameStyle],
|
|
100
|
+
style: userNameStyle,
|
|
80
101
|
children: userInfo.name
|
|
81
102
|
}), userInfo.emailOrPhone && /*#__PURE__*/_jsx(Text, {
|
|
82
|
-
style:
|
|
83
|
-
color: appliedTheme.colors.onBackground
|
|
84
|
-
}, userInfoTextStyle.emailStyle],
|
|
103
|
+
style: userEmailStyle,
|
|
85
104
|
children: userInfo.emailOrPhone
|
|
86
105
|
})]
|
|
87
106
|
});
|
|
88
107
|
};
|
|
108
|
+
const UserSection = /*#__PURE__*/memo(UserSectionComponent);
|
|
89
109
|
export default UserSection;
|
|
90
110
|
|
|
91
111
|
// Styles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Pressable","Edit3","SkeletonPlaceholder","moderateScale","scale","verticalScale","UserAvatar","Text","useInternalTheme","RFValue","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","
|
|
1
|
+
{"version":3,"names":["React","memo","useMemo","View","Pressable","Edit3","SkeletonPlaceholder","moderateScale","scale","verticalScale","UserAvatar","Text","useInternalTheme","RFValue","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","UserSectionComponent","userInfo","isLoading","renderUserInfo","theme","avatarComponent","skeletonProps","userInfoTextStyle","appliedTheme","skeletonColors","backgroundColor","colors","skeletonBaseColor","highlightColor","skeletonHighlightColor","editButtonStyle","styles","editButton","borderColor","primary","surfaceVariant","shadowColor","surface","userNameStyle","userName","color","onBackground","nameStyle","userEmailStyle","userEmail","emailStyle","rippleColor","surfaceDisabled","primaryColor","style","userInfoContainer","children","borderRadius","skeletonWrapper","skeletonAvatar","skeletonName","skeletonEmail","avatarWrapper","avatarUri","onEditPress","onPress","android_ripple","size","name","emailOrPhone","UserSection","alignItems","justifyContent","paddingVertical","height","position","bottom","right","padding","width","overflow","borderWidth","elevation","shadowOffset","shadowOpacity","shadowRadius","editLabel","fontSize","marginTop","fontWeight","lineHeight","marginBottom","opacity"],"sourceRoot":"../../../../../src","sources":["components/User/components/UserSection.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,SAAS,QAAwC,cAAc;AAC9E,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,aAAa,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAC/E,OAAOC,UAAU,MAAM,iBAAc;AACrC,SAASC,IAAI,QAAQ,qBAAY;AACjC,SAASC,gBAAgB,QAAQ,yCAAsC;AAEvE,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAwB3D,MAAMC,oBAAgD,GAAGA,CAAC;EACxDC,QAAQ;EACRC,SAAS;EACTC,cAAc;EACdC,KAAK;EACLC,eAAe;EACfC,aAAa,GAAG,CAAC,CAAC;EAClBC,iBAAiB,GAAG,CAAC;AACvB,CAAC,KAAK;EACJ,MAAM;IAAEH,KAAK,EAAEI;EAAa,CAAC,GAAGhB,gBAAgB,CAACY,KAAK,CAAC;;EAEvD;EACA,MAAMK,cAAc,GAAG3B,OAAO,CAC5B,OAAO;IACL4B,eAAe,EAAEF,YAAY,CAACG,MAAM,CAACC,iBAAiB;IACtDC,cAAc,EAAEL,YAA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AAElF,aAAa,CAAC,CAAC;EAC/B,CAAc;EACdoD,aAAa,EAAE;IACbkB,KAAK,EAAEvE,KAAK,CAAC,GAAG,CAAC;IACjBkE,MAAM,EAAEjE,aAAa,CAAC,EAAE,CAAC;IACzBgD,YAAY,EAAElD,aAAa,CAAC,CAAC;EAC/B;AACF,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Naresh Dhamu
|
|
5
5
|
* @lastModified Mon 07 Jul 2025 at 11:49 AM
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
8
|
import { View as RNView } from 'react-native';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export const View = ({
|
|
@@ -13,12 +13,15 @@ export const View = ({
|
|
|
13
13
|
children,
|
|
14
14
|
...rest
|
|
15
15
|
}) => {
|
|
16
|
+
// Memoize style array to prevent unnecessary re-renders
|
|
17
|
+
const computedStyle = useMemo(() => [style, backgroundColor !== 'transparent' && {
|
|
18
|
+
backgroundColor
|
|
19
|
+
}], [style, backgroundColor]);
|
|
16
20
|
return /*#__PURE__*/_jsx(RNView, {
|
|
17
|
-
style:
|
|
18
|
-
backgroundColor
|
|
19
|
-
}],
|
|
21
|
+
style: computedStyle,
|
|
20
22
|
...rest,
|
|
21
23
|
children: children
|
|
22
24
|
});
|
|
23
25
|
};
|
|
26
|
+
export default /*#__PURE__*/React.memo(View);
|
|
24
27
|
//# sourceMappingURL=View.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","RNView","jsx","_jsx","style","backgroundColor","children","rest"],"sourceRoot":"../../../../src","sources":["components/View/View.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,
|
|
1
|
+
{"version":3,"names":["React","useMemo","View","RNView","jsx","_jsx","style","backgroundColor","children","rest","computedStyle","memo"],"sourceRoot":"../../../../src","sources":["components/View/View.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SACEC,IAAI,IAAIC,MAAM,QAIT,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOtB,OAAO,MAAMH,IAAyB,GAAGA,CAAC;EACxCI,KAAK;EACLC,eAAe,GAAG,aAAa;EAC/BC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ;EACA,MAAMC,aAAa,GAAGT,OAAO,CAC3B,MAAM,CAACK,KAAK,EAAEC,eAAe,KAAK,aAAa,IAAI;IAAEA;EAAgB,CAAC,CAAC,EACvE,CAACD,KAAK,EAAEC,eAAe,CACzB,CAAC;EAED,oBACEF,IAAA,CAACF,MAAM;IAACG,KAAK,EAAEI,aAAc;IAAA,GAAKD,IAAI;IAAAD,QAAA,EACnCA;EAAQ,CACH,CAAC;AAEb,CAAC;AAED,4BAAeR,KAAK,CAACW,IAAI,CAACT,IAAI,CAAC","ignoreList":[]}
|
|
@@ -17,7 +17,6 @@ export * from "./layout/index.js";
|
|
|
17
17
|
export * from "./Settings/index.js";
|
|
18
18
|
export * from "./Account/index.js";
|
|
19
19
|
export * from "./TabBar/index.js";
|
|
20
|
-
export * from "./Input/Input.js";
|
|
21
20
|
export * from "./Text/index.js";
|
|
22
21
|
export * from "./View/index.js";
|
|
23
22
|
export * from "./User/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,mBAAU;AACxB,cAAc,sBAAa;AAC3B,cAAc,kBAAe;AAC7B,cAAc,oBAAiB;AAC/B,cAAc,oBAAW;AACzB,cAAc,sBAAmB;AACjC,cAAc,gBAAa;AAC3B,cAAc,iBAAQ;AACtB,cAAc,mBAAU;AACxB,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,mBAAU;AACxB,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,mBAAU;AACxB,cAAc,sBAAa;AAC3B,cAAc,kBAAe;AAC7B,cAAc,oBAAiB;AAC/B,cAAc,oBAAW;AACzB,cAAc,sBAAmB;AACjC,cAAc,gBAAa;AAC3B,cAAc,iBAAQ;AACtB,cAAc,mBAAU;AACxB,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,mBAAU;AACxB,cAAc,iBAAQ;AACtB,cAAc,iBAAQ;AACtB,cAAc,iBAAQ;AACtB,cAAc,qBAAY;AAC1B,cAAc,wBAAe;AAC7B,cAAc,mBAAU;AACxB,cAAc,yBAAgB;AAC9B,cAAc,kBAAS;AACvB,cAAc,kBAAS;AACvB,cAAc,qBAAY;AAC1B,cAAc,wBAAe","ignoreList":[]}
|
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Creates a dummy content data object for skeleton loading states
|
|
5
|
+
*/
|
|
6
|
+
export const dummyContentData = (id = 'dummy-content-id') => {
|
|
7
|
+
return {
|
|
8
|
+
_id: id,
|
|
9
|
+
poster: '',
|
|
10
|
+
thumbnail: '',
|
|
11
|
+
content_offering_type: 'movie',
|
|
12
|
+
name: '',
|
|
13
|
+
slug: '',
|
|
14
|
+
u_age: '',
|
|
15
|
+
description: '',
|
|
16
|
+
release_date: '',
|
|
17
|
+
runtime: '',
|
|
18
|
+
duration: '',
|
|
19
|
+
genre: '',
|
|
20
|
+
director: '',
|
|
21
|
+
cast: [],
|
|
22
|
+
rating: '',
|
|
23
|
+
language: '',
|
|
24
|
+
subtitles: [],
|
|
25
|
+
audio_tracks: [],
|
|
26
|
+
type: 'movie',
|
|
27
|
+
year: '',
|
|
28
|
+
tags: [],
|
|
29
|
+
trailer: '',
|
|
30
|
+
trailer_source_link: '',
|
|
31
|
+
banner: '',
|
|
32
|
+
logo: '',
|
|
33
|
+
source_link: '',
|
|
34
|
+
source_type: '',
|
|
35
|
+
is_featured: false,
|
|
36
|
+
is_premium: false,
|
|
37
|
+
status: 'active',
|
|
38
|
+
views: 0,
|
|
39
|
+
likes: 0,
|
|
40
|
+
created_at: new Date().toISOString(),
|
|
41
|
+
updated_at: new Date().toISOString()
|
|
42
|
+
};
|
|
43
|
+
};
|
|
3
44
|
const generateDummySection = type => {
|
|
4
45
|
return {
|
|
5
46
|
_id: `dummy-${type}`,
|
|
@@ -12,10 +53,9 @@ const generateDummySection = type => {
|
|
|
12
53
|
slug: 'dummy'
|
|
13
54
|
},
|
|
14
55
|
content: {
|
|
15
|
-
data: Array
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}),
|
|
56
|
+
data: Array.from({
|
|
57
|
+
length: 5
|
|
58
|
+
}, (_, i) => dummyContentData(`dummy-content-${i}`)),
|
|
19
59
|
meta: {
|
|
20
60
|
pagination: {
|
|
21
61
|
total: 5,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["dummyContentData","id","_id","poster","thumbnail","content_offering_type","name","slug","u_age","description","release_date","runtime","duration","genre","director","cast","rating","language","subtitles","audio_tracks","type","year","tags","trailer","trailer_source_link","banner","logo","source_link","source_type","is_featured","is_premium","status","views","likes","created_at","Date","toISOString","updated_at","generateDummySection","charAt","toUpperCase","slice","content_ids","Array","fill","category","content","data","from","length","_","i","meta","pagination","total","limit","page","hasNextPage","nextPage","label","order","createdAt","updatedAt","dummySections"],"sourceRoot":"../../../src","sources":["constants/dummySections.ts"],"mappings":";;AAGA;AACA;AACA;AACA,OAAO,MAAMA,gBAAgB,GAAGA,CAC9BC,EAAU,GAAG,kBAAkB,KACd;EACjB,OAAO;IACLC,GAAG,EAAED,EAAE;IACPE,MAAM,EAAE,EAAE;IACVC,SAAS,EAAE,EAAE;IACbC,qBAAqB,EAAE,OAAO;IAC9BC,IAAI,EAAE,EAAE;I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AAC;IACDuC,OAAO,EAAE;MACPC,IAAI,EAAEJ,KAAK,CAACK,IAAI,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC,EAAE,CAACC,CAAC,EAAEC,CAAC,KACnCnD,gBAAgB,CAAC,iBAAiBmD,CAAC,EAAE,CACvC,CAAC;MACDC,IAAI,EAAE;QACJC,UAAU,EAAE;UACVC,KAAK,EAAE,CAAC;UACRC,KAAK,EAAE,CAAC;UACRC,IAAI,EAAE,CAAC;UACPC,WAAW,EAAE,IAAI;UACjBR,MAAM,EAAE,CAAC;UACTS,QAAQ,EAAE;QACZ;MACF;IACF,CAAC;IACDC,KAAK,EAAE,EAAE;IACTC,KAAK,EAAE,CAAC;IACR7B,MAAM,EAAE,KAAK;IACb8B,SAAS,EAAE,IAAI1B,IAAI,CAAC,CAAC;IACrB2B,SAAS,EAAE,IAAI3B,IAAI,CAAC;EACtB,CAAC;AACH,CAAC;AAED,OAAO,MAAM4B,aAAgC,GAAG,CAC9CzB,oBAAoB,CAAC,QAAQ,CAAC,EAC9BA,oBAAoB,CAAC,QAAQ,CAAC,EAC9BA,oBAAoB,CAAC,mBAAmB,CAAC,EACzCA,oBAAoB,CAAC,cAAc,CAAC,EACpCA,oBAAoB,CAAC,cAAc,CAAC,EACpCA,oBAAoB,CAAC,cAAc,CAAC,EACpCA,oBAAoB,CAAC,cAAc,CAAC,EACpCA,oBAAoB,CAAC,cAAc,CAAC,EACpCA,oBAAoB,CAAC,QAAQ,CAAC,CAC/B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["hooks/Images/index.ts"],"mappings":";;AAAA,cAAc,qBAAkB;AAChC,cAAc,yBAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 26 Nov 2025 at 02:19 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { useState, useEffect, useMemo, useCallback, useRef } from 'react';
|
|
9
|
+
import FastImage from 'react-native-fast-image';
|
|
10
|
+
import { isValidImageUrl, isLocalFile } from "./useImageValidation.js";
|
|
11
|
+
|
|
12
|
+
// Module-level cache to track successfully loaded images
|
|
13
|
+
const loadedImageCache = new Set();
|
|
14
|
+
/**
|
|
15
|
+
* Custom hook to manage image loading state, caching, and validation
|
|
16
|
+
* @param options - Configuration options for image loading
|
|
17
|
+
* @returns Object containing image state and handlers
|
|
18
|
+
*/
|
|
19
|
+
export const useImageLoader = ({
|
|
20
|
+
imageUri,
|
|
21
|
+
isLoading = false,
|
|
22
|
+
enablePreload = false,
|
|
23
|
+
onError,
|
|
24
|
+
onLoad,
|
|
25
|
+
onLoadStart
|
|
26
|
+
}) => {
|
|
27
|
+
const [imageLoading, setImageLoading] = useState(true);
|
|
28
|
+
const [imageError, setImageError] = useState(false);
|
|
29
|
+
const previousUriRef = useRef('');
|
|
30
|
+
const onErrorRef = useRef(onError);
|
|
31
|
+
|
|
32
|
+
// Keep onError ref updated
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
onErrorRef.current = onError;
|
|
35
|
+
}, [onError]);
|
|
36
|
+
|
|
37
|
+
// Validate image URL
|
|
38
|
+
const hasValidImage = useMemo(() => isValidImageUrl(imageUri), [imageUri]);
|
|
39
|
+
|
|
40
|
+
// Check if image is already cached
|
|
41
|
+
const isImageCached = useMemo(() => loadedImageCache.has(imageUri), [imageUri]);
|
|
42
|
+
|
|
43
|
+
// Handle image state changes
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
const uriChanged = previousUriRef.current !== imageUri;
|
|
46
|
+
|
|
47
|
+
// Update ref when URI changes
|
|
48
|
+
if (uriChanged) {
|
|
49
|
+
previousUriRef.current = imageUri;
|
|
50
|
+
// Reset error state when URI changes to allow new image to load
|
|
51
|
+
setImageError(false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Reset states when loading
|
|
55
|
+
if (isLoading) {
|
|
56
|
+
setImageLoading(true);
|
|
57
|
+
setImageError(false);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Handle valid image URL
|
|
62
|
+
if (hasValidImage) {
|
|
63
|
+
const isLocal = isLocalFile(imageUri);
|
|
64
|
+
if (isImageCached) {
|
|
65
|
+
// Image is cached, mark as loaded
|
|
66
|
+
setImageLoading(false);
|
|
67
|
+
setImageError(false);
|
|
68
|
+
} else {
|
|
69
|
+
// Image not cached, start loading
|
|
70
|
+
setImageLoading(true);
|
|
71
|
+
setImageError(false);
|
|
72
|
+
// Preload image if enabled (only for remote URLs, not local files)
|
|
73
|
+
if (enablePreload && !isLocal && uriChanged) {
|
|
74
|
+
FastImage.preload([{
|
|
75
|
+
uri: imageUri
|
|
76
|
+
}]);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
} else {
|
|
80
|
+
// For empty or invalid URLs
|
|
81
|
+
if (!imageUri || imageUri.trim() === '') {
|
|
82
|
+
// Empty URI - show error immediately (no point in trying to load)
|
|
83
|
+
setImageLoading(false);
|
|
84
|
+
setImageError(true);
|
|
85
|
+
} else {
|
|
86
|
+
// Invalid URL format - attempt to load anyway
|
|
87
|
+
// FastImage might still be able to load it, so keep loading state
|
|
88
|
+
setImageLoading(true);
|
|
89
|
+
setImageError(false);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}, [imageUri, hasValidImage, isLoading, isImageCached, enablePreload]);
|
|
93
|
+
|
|
94
|
+
// Determine if skeleton should be shown
|
|
95
|
+
const showSkeleton = useMemo(() => isLoading || imageLoading && !imageError, [isLoading, imageLoading, imageError]);
|
|
96
|
+
|
|
97
|
+
// Determine if fallback should be shown
|
|
98
|
+
// Show fallback when:
|
|
99
|
+
// 1. Not showing skeleton
|
|
100
|
+
// 2. AND (imageError is true OR URI is empty/invalid)
|
|
101
|
+
// This allows images with invalid format to attempt loading, but shows fallback for empty URIs
|
|
102
|
+
const showFallback = useMemo(() => {
|
|
103
|
+
if (showSkeleton) return false;
|
|
104
|
+
// Empty URI - show fallback immediately
|
|
105
|
+
if (!imageUri || imageUri.trim() === '') return true;
|
|
106
|
+
// Show fallback only after actual error (not just invalid format)
|
|
107
|
+
return imageError && !imageLoading;
|
|
108
|
+
}, [showSkeleton, imageError, imageLoading, imageUri]);
|
|
109
|
+
|
|
110
|
+
// Check if image is a local file
|
|
111
|
+
const isLocal = useMemo(() => isLocalFile(imageUri), [imageUri]);
|
|
112
|
+
|
|
113
|
+
// Image source configuration
|
|
114
|
+
// Local files don't need cache control, cloud URIs do
|
|
115
|
+
const imageSource = useMemo(() => {
|
|
116
|
+
const source = {
|
|
117
|
+
uri: imageUri
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// Only add cache control for remote URLs, not local files
|
|
121
|
+
if (!isLocal) {
|
|
122
|
+
source.cache = FastImage.cacheControl.immutable;
|
|
123
|
+
source.priority = FastImage.priority.normal;
|
|
124
|
+
}
|
|
125
|
+
return source;
|
|
126
|
+
}, [imageUri, isLocal]);
|
|
127
|
+
|
|
128
|
+
// Image event handlers
|
|
129
|
+
const handleLoad = useCallback(() => {
|
|
130
|
+
setImageLoading(false);
|
|
131
|
+
setImageError(false);
|
|
132
|
+
if (imageUri) {
|
|
133
|
+
loadedImageCache.add(imageUri);
|
|
134
|
+
}
|
|
135
|
+
if (onLoad) {
|
|
136
|
+
onLoad();
|
|
137
|
+
}
|
|
138
|
+
}, [imageUri, onLoad]);
|
|
139
|
+
const handleError = useCallback(() => {
|
|
140
|
+
setImageLoading(false);
|
|
141
|
+
setImageError(true);
|
|
142
|
+
if (onError) {
|
|
143
|
+
onError();
|
|
144
|
+
}
|
|
145
|
+
}, [onError]);
|
|
146
|
+
const handleLoadStart = useCallback(() => {
|
|
147
|
+
if (!isImageCached) {
|
|
148
|
+
setImageLoading(true);
|
|
149
|
+
setImageError(false);
|
|
150
|
+
if (onLoadStart) {
|
|
151
|
+
onLoadStart();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}, [isImageCached, onLoadStart]);
|
|
155
|
+
return {
|
|
156
|
+
imageLoading,
|
|
157
|
+
imageError,
|
|
158
|
+
hasValidImage,
|
|
159
|
+
isImageCached,
|
|
160
|
+
showSkeleton,
|
|
161
|
+
showFallback,
|
|
162
|
+
imageSource,
|
|
163
|
+
handleLoad,
|
|
164
|
+
handleError,
|
|
165
|
+
handleLoadStart: enablePreload ? handleLoadStart : undefined
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=useImageLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","useEffect","useMemo","useCallback","useRef","FastImage","isValidImageUrl","isLocalFile","loadedImageCache","Set","useImageLoader","imageUri","isLoading","enablePreload","onError","onLoad","onLoadStart","imageLoading","setImageLoading","imageError","setImageError","previousUriRef","onErrorRef","current","hasValidImage","isImageCached","has","uriChanged","isLocal","preload","uri","trim","showSkeleton","showFallback","imageSource","source","cache","cacheControl","immutable","priority","normal","handleLoad","add","handleError","handleLoadStart","undefined"],"sourceRoot":"../../../../src","sources":["hooks/Images/useImageLoader.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,SAAS,EAAEC,OAAO,EAAEC,WAAW,EAAEC,MAAM,QAAQ,OAAO;AACzE,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,eAAe,EAAEC,WAAW,QAAQ,yBAAsB;;AAEnE;AACA,MAAMC,gBAAgB,GAAG,IAAIC,GAAG,CAAS,CAAC;AA4B1C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,QAAQ;EACRC,SAAS,GAAG,KAAK;EACjBC,aAAa,GAAG,KAAK;EACrBC,OAAO;EACPC,MAAM;EACNC;AACqB,CAAC,KAA2B;EACjD,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,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dhamu
|
|
5
|
+
* @lastModified Wed 26 Nov 2025 at 02:19 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const IMAGE_URL_REGEX = /\.(jpg|jpeg|png|webp|gif|bmp)$/i;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Utility function to check if URL is a local file path
|
|
12
|
+
* @param url - The URL to check
|
|
13
|
+
* @returns true if the URL is a local file path, false otherwise
|
|
14
|
+
*/
|
|
15
|
+
export const isLocalFile = url => {
|
|
16
|
+
return url?.startsWith?.('file://') || url?.startsWith?.('/');
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Utility function to validate image URL (supports both cloud URIs and local file paths)
|
|
21
|
+
* @param url - The URL to validate
|
|
22
|
+
* @returns true if the URL is a valid image URL, false otherwise
|
|
23
|
+
*/
|
|
24
|
+
export const isValidImageUrl = url => {
|
|
25
|
+
if (!url || typeof url !== 'string') return false;
|
|
26
|
+
const cleaned = url.trim();
|
|
27
|
+
|
|
28
|
+
// Check for local file paths
|
|
29
|
+
if (isLocalFile(cleaned)) {
|
|
30
|
+
return IMAGE_URL_REGEX.test(cleaned) || cleaned.length > 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Check for cloud URIs (http/https)
|
|
34
|
+
return (cleaned?.startsWith?.('http://') || cleaned?.startsWith?.('https://')) && IMAGE_URL_REGEX.test(cleaned);
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=useImageValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IMAGE_URL_REGEX","isLocalFile","url","startsWith","isValidImageUrl","cleaned","trim","test","length"],"sourceRoot":"../../../../src","sources":["hooks/Images/useImageValidation.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,MAAMA,eAAe,GAAG,iCAAiC;;AAEzD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAIC,GAAW,IAAc;EACnD,OAAOA,GAAG,EAAEC,UAAU,GAAG,SAAS,CAAC,IAAID,GAAG,EAAEC,UAAU,GAAG,GAAG,CAAC;AAC/D,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIF,GAA8B,IAAc;EAC1E,IAAI,CAACA,GAAG,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE,OAAO,KAAK;EACjD,MAAMG,OAAO,GAAGH,GAAG,CAACI,IAAI,CAAC,CAAC;;EAE1B;EACA,IAAIL,WAAW,CAACI,OAAO,CAAC,EAAE;IACxB,OAAOL,eAAe,CAACO,IAAI,CAACF,OAAO,CAAC,IAAIA,OAAO,CAACG,MAAM,GAAG,CAAC;EAC5D;;EAEA;EACA,OACE,CAACH,OAAO,EAAEF,UAAU,GAAG,SAAS,CAAC,IAAIE,OAAO,EAAEF,UAAU,GAAG,UAAU,CAAC,KACtEH,eAAe,CAACO,IAAI,CAACF,OAAO,CAAC;AAEjC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Optimized for performance
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export * from "./useDebounce.js";
|
|
9
|
+
export * from "./useKeyboard.js";
|
|
10
|
+
export * from "./useNavigationMode.js";
|
|
11
|
+
export * from "./usePaginatedSection.js";
|
|
12
|
+
export * from "./useSplashCache.js";
|
|
13
|
+
export * from "./usePrevious.js";
|
|
14
|
+
export * from "./useSafeCallback.js";
|
|
15
|
+
export * from "./useSkeletonItems.js";
|
|
16
|
+
export * from "./useThemeColors.js";
|
|
17
|
+
export * from "./useCards.js";
|
|
18
|
+
export * from "./Images/index.js";
|
|
19
|
+
export * from "./useAdTracking.js";
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,kBAAe;AAC7B,cAAc,kBAAe;AAC7B,cAAc,wBAAqB;AACnC,cAAc,0BAAuB;AACrC,cAAc,qBAAkB;AAChC,cAAc,kBAAe;AAC7B,cAAc,sBAAmB;AACjC,cAAc,uBAAoB;AAClC,cAAc,qBAAkB;AAChC,cAAc,eAAY;AAC1B,cAAc,mBAAU;AACxB,cAAc,oBAAiB","ignoreList":[]}
|