@zezosoft/zezo-ott-react-native-ui-kit 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +2 -2
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js +16 -16
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js +16 -16
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/One/Login/LoginWithPhone.js +17 -17
- package/lib/module/components/Auth/One/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/One/OTP/OTP.js +16 -16
- package/lib/module/components/Auth/One/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/One/SignUp/SignUp.js +17 -17
- package/lib/module/components/Auth/One/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/One/SplashScreen/SplashScreen.js +57 -76
- package/lib/module/components/Auth/One/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js +23 -26
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.js +56 -18
- package/lib/module/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js +62 -71
- package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js +20 -17
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js.map +1 -1
- package/lib/module/components/Auth/Two/ForgotPassword/ForgotPassword.js +11 -12
- package/lib/module/components/Auth/Two/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Two/Login/EmailOrPhoneLogin.js +489 -0
- package/lib/module/components/Auth/Two/Login/EmailOrPhoneLogin.js.map +1 -0
- package/lib/module/components/Auth/Two/OTP/OTP.js +2 -2
- package/lib/module/components/Auth/Two/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/Two/SignUp/SignUp.js +2 -2
- package/lib/module/components/Auth/Two/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/Two/index.js +3 -7
- package/lib/module/components/Auth/Two/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/{BackgroundLayout.js → One/One.js} +12 -9
- package/lib/module/components/BackgroundLayout/One/One.js.map +1 -0
- package/lib/module/components/BackgroundLayout/{BackgroundLayoutOne.js → Two/Two.js} +11 -5
- package/lib/module/components/BackgroundLayout/Two/Two.js.map +1 -0
- package/lib/module/components/BackgroundLayout/index.js +10 -0
- package/lib/module/components/BackgroundLayout/index.js.map +1 -0
- package/lib/module/components/ContentView/One/components/AboutSection.js +9 -18
- package/lib/module/components/ContentView/One/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/One/components/GenreTags.js +5 -1
- package/lib/module/components/ContentView/One/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/Two/components/AboutSection.js +4 -1
- package/lib/module/components/ContentView/Two/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/Two/components/Details.js +3 -0
- package/lib/module/components/ContentView/Two/components/Details.js.map +1 -1
- package/lib/module/components/ContentView/Two/components/GenreTags.js +4 -1
- package/lib/module/components/ContentView/Two/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/Two/components/SectionTabs.js +3 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js.map +1 -1
- package/lib/module/components/ContentView/Two/components/Title.js.map +1 -1
- package/lib/module/components/Headers/One.js +1 -1
- package/lib/module/components/Input/Input.js +2 -4
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputThree.js +31 -27
- package/lib/module/components/Input/InputThree.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +1 -0
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/{PhoneNumberInput.js → PhoneInput/One/One.js} +4 -4
- package/lib/module/components/Input/PhoneInput/One/One.js.map +1 -0
- package/lib/module/components/Input/{PhoneNumberInputTwo.js → PhoneInput/Two/Two.js} +2 -2
- package/lib/module/components/Input/PhoneInput/Two/Two.js.map +1 -0
- package/lib/module/components/Input/PhoneInput/index.js +15 -0
- package/lib/module/components/Input/PhoneInput/index.js.map +1 -0
- package/lib/module/components/Keyboard/HideKeyboard.js +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +4 -3
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +3 -1
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +37 -6
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +9 -6
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js +19 -15
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +120 -85
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/typescript/src/components/Auth/One/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts +4 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.d.ts +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/One/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Two/Login/EmailOrPhoneLogin.d.ts +47 -0
- package/lib/typescript/src/components/Auth/Two/Login/EmailOrPhoneLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts +33 -73
- package/lib/typescript/src/components/Auth/Two/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +33 -73
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/{BackgroundLayout.d.ts → One/One.d.ts} +5 -5
- package/lib/typescript/src/components/BackgroundLayout/One/One.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/{BackgroundLayoutOne.d.ts → Two/Two.d.ts} +4 -3
- package/lib/typescript/src/components/BackgroundLayout/Two/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/index.d.ts +20 -0
- package/lib/typescript/src/components/BackgroundLayout/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/AboutSection.d.ts +3 -3
- package/lib/typescript/src/components/ContentView/One/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/One/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +4 -2
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputThree.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 → PhoneInput/One/One.d.ts} +4 -4
- package/lib/typescript/src/components/Input/PhoneInput/One/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/{PhoneNumberInputTwo.d.ts → PhoneInput/Two/Two.d.ts} +4 -4
- package/lib/typescript/src/components/Input/PhoneInput/Two/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneInput/index.d.ts +12 -0
- package/lib/typescript/src/components/Input/PhoneInput/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +4 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +5 -3
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +5 -12
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +4 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts +1 -4
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSplashCache.d.ts +7 -10
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js +0 -138
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js.map +0 -1
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js +0 -224
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js.map +0 -1
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js +0 -143
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js.map +0 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +0 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js.map +0 -1
- package/lib/module/components/Input/PhoneNumberInput.js.map +0 -1
- package/lib/module/components/Input/PhoneNumberInputTwo.js.map +0 -1
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts +0 -17
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts +0 -52
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts +0 -37
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts.map +0 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +0 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts.map +0 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +0 -1
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts.map +0 -1
|
@@ -6,17 +6,43 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, { useMemo, useCallback, useRef, useEffect } from 'react';
|
|
9
|
-
import { StyleSheet, Animated, useWindowDimensions } from 'react-native';
|
|
9
|
+
import { StyleSheet, Animated, useWindowDimensions, View } from 'react-native';
|
|
10
10
|
import Video from 'react-native-video';
|
|
11
11
|
import Display from "../../../../../../utils/Display.js";
|
|
12
|
-
import { View } from "../../../../../View/index.js";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const BUFFER_CONFIG = {
|
|
14
|
+
minBufferMs: 2000,
|
|
15
|
+
maxBufferMs: 10000,
|
|
16
|
+
bufferForPlaybackMs: 1000,
|
|
17
|
+
bufferForPlaybackAfterRebufferMs: 2000
|
|
18
|
+
};
|
|
19
|
+
const CONTROLS_HIDDEN = {
|
|
20
|
+
hideForward: true,
|
|
21
|
+
hideDuration: true,
|
|
22
|
+
hideFullscreen: true,
|
|
23
|
+
hidePlayPause: true,
|
|
24
|
+
hideNavigationBarOnFullScreenMode: true,
|
|
25
|
+
hideNotificationBarOnFullScreenMode: true,
|
|
26
|
+
hideNext: true,
|
|
27
|
+
hidePosition: true,
|
|
28
|
+
hidePrevious: true,
|
|
29
|
+
hideRewind: true,
|
|
30
|
+
hideSeekBar: true,
|
|
31
|
+
hideSettingButton: true
|
|
32
|
+
};
|
|
33
|
+
const resolveUri = src => {
|
|
34
|
+
if (!src) return '';
|
|
35
|
+
if (/^(https?|file):\/\//.test(src)) return src;
|
|
36
|
+
if (src.startsWith('/')) return `file://${src}`;
|
|
37
|
+
return src;
|
|
38
|
+
};
|
|
14
39
|
const SplashVideo = ({
|
|
15
40
|
fullscreen = true,
|
|
16
41
|
width,
|
|
17
42
|
height,
|
|
18
43
|
source,
|
|
19
44
|
resizeMode = 'cover',
|
|
45
|
+
backgroundColor = '#000000',
|
|
20
46
|
onEnd,
|
|
21
47
|
onLoadStart,
|
|
22
48
|
onLoaded,
|
|
@@ -27,93 +53,57 @@ const SplashVideo = ({
|
|
|
27
53
|
width: windowWidth,
|
|
28
54
|
height: windowHeight
|
|
29
55
|
} = useWindowDimensions();
|
|
30
|
-
|
|
31
|
-
|
|
56
|
+
const animateIn = useCallback(() => {
|
|
57
|
+
Animated.timing(fadeAnim, {
|
|
58
|
+
toValue: 1,
|
|
59
|
+
duration: 300,
|
|
60
|
+
useNativeDriver: true
|
|
61
|
+
}).start();
|
|
62
|
+
}, [fadeAnim]);
|
|
32
63
|
const videoStyle = useMemo(() => {
|
|
33
|
-
if (fullscreen) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
const w = width ?? windowWidth ?? Display.fullWidth;
|
|
40
|
-
const h = height ?? windowHeight ?? Display.fullHeight;
|
|
64
|
+
if (fullscreen) return {
|
|
65
|
+
width: '100%',
|
|
66
|
+
height: '100%'
|
|
67
|
+
};
|
|
41
68
|
return {
|
|
42
|
-
width:
|
|
43
|
-
height:
|
|
69
|
+
width: width ?? windowWidth ?? Display.fullWidth,
|
|
70
|
+
height: height ?? windowHeight ?? Display.fullHeight
|
|
44
71
|
};
|
|
45
72
|
}, [fullscreen, width, height, windowWidth, windowHeight]);
|
|
46
|
-
|
|
47
|
-
/** 🎨 Fullscreen wrapper fills container so video covers entire screen on any device */
|
|
48
73
|
const wrapperStyle = useMemo(() => fullscreen ? [StyleSheet.absoluteFillObject, {
|
|
49
74
|
opacity: fadeAnim
|
|
50
75
|
}] : [videoStyle, {
|
|
51
76
|
opacity: fadeAnim,
|
|
52
77
|
position: 'absolute'
|
|
53
78
|
}], [fullscreen, videoStyle, fadeAnim]);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
toValue: 1,
|
|
59
|
-
duration: 400,
|
|
60
|
-
useNativeDriver: true
|
|
61
|
-
}).start();
|
|
62
|
-
}, [fadeAnim]);
|
|
63
|
-
|
|
64
|
-
/** 📦 Resolve video URI */
|
|
65
|
-
const resolveUri = useCallback(src => {
|
|
66
|
-
if (!src) return '';
|
|
67
|
-
if (/^(https?|file):\/\//.test(src)) return src;
|
|
68
|
-
return `file://${src}`;
|
|
69
|
-
}, []);
|
|
70
|
-
|
|
71
|
-
/** 🔄 Video lifecycle handlers */
|
|
79
|
+
const resolvedUri = useMemo(() => resolveUri(source), [source]);
|
|
80
|
+
const videoSource = useMemo(() => ({
|
|
81
|
+
uri: resolvedUri
|
|
82
|
+
}), [resolvedUri]);
|
|
72
83
|
const handleLoadStart = useCallback(() => {
|
|
73
84
|
fadeAnim.setValue(0);
|
|
74
85
|
onLoadStart?.();
|
|
75
86
|
}, [fadeAnim, onLoadStart]);
|
|
76
87
|
const handleLoad = useCallback(data => {
|
|
77
|
-
animateIn();
|
|
78
88
|
onLoaded?.(data);
|
|
79
|
-
}, [
|
|
89
|
+
}, [onLoaded]);
|
|
90
|
+
const handleReadyForDisplay = useCallback(() => {
|
|
91
|
+
animateIn();
|
|
92
|
+
}, [animateIn]);
|
|
80
93
|
const handleError = useCallback(err => {
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
94
|
+
const msg = err?.error?.message || err?.message || JSON.stringify(err) || 'Unknown video error';
|
|
95
|
+
console.warn('[SplashVideo] Error:', msg);
|
|
96
|
+
onError?.(msg);
|
|
97
|
+
animateIn();
|
|
98
|
+
}, [onError, animateIn]);
|
|
86
99
|
useEffect(() => {
|
|
87
100
|
return () => fadeAnim.stopAnimation();
|
|
88
101
|
}, [fadeAnim]);
|
|
89
|
-
|
|
90
|
-
// Memoize resolved URI
|
|
91
|
-
const resolvedUri = useMemo(() => resolveUri(source), [source, resolveUri]);
|
|
92
|
-
|
|
93
|
-
// Memoize video source
|
|
94
|
-
const videoSource = useMemo(() => ({
|
|
95
|
-
uri: resolvedUri
|
|
96
|
-
}), [resolvedUri]);
|
|
97
|
-
|
|
98
|
-
// Memoize controls styles
|
|
99
|
-
const controlsStyles = useMemo(() => ({
|
|
100
|
-
hideForward: true,
|
|
101
|
-
hideDuration: true,
|
|
102
|
-
hideFullscreen: true,
|
|
103
|
-
hidePlayPause: true,
|
|
104
|
-
hideNavigationBarOnFullScreenMode: true,
|
|
105
|
-
hideNotificationBarOnFullScreenMode: true,
|
|
106
|
-
hideNext: true,
|
|
107
|
-
hidePosition: true,
|
|
108
|
-
hidePrevious: true,
|
|
109
|
-
hideRewind: true,
|
|
110
|
-
hideSeekBar: true,
|
|
111
|
-
hideSettingButton: true
|
|
112
|
-
}), []);
|
|
113
|
-
|
|
114
|
-
/** 🧱 Render */
|
|
102
|
+
if (!resolvedUri) return null;
|
|
115
103
|
return /*#__PURE__*/_jsx(View, {
|
|
116
|
-
style: styles.container,
|
|
104
|
+
style: [styles.container, {
|
|
105
|
+
backgroundColor
|
|
106
|
+
}],
|
|
117
107
|
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
118
108
|
style: wrapperStyle,
|
|
119
109
|
children: /*#__PURE__*/_jsx(Video, {
|
|
@@ -123,14 +113,16 @@ const SplashVideo = ({
|
|
|
123
113
|
paused: false,
|
|
124
114
|
onLoadStart: handleLoadStart,
|
|
125
115
|
onLoad: handleLoad,
|
|
116
|
+
onReadyForDisplay: handleReadyForDisplay,
|
|
126
117
|
onError: handleError,
|
|
127
118
|
onEnd: onEnd,
|
|
128
|
-
controlsStyles:
|
|
119
|
+
controlsStyles: CONTROLS_HIDDEN,
|
|
120
|
+
shutterColor: backgroundColor,
|
|
129
121
|
ignoreSilentSwitch: "obey",
|
|
130
122
|
playInBackground: false,
|
|
131
123
|
playWhenInactive: false,
|
|
132
124
|
allowsExternalPlayback: false,
|
|
133
|
-
|
|
125
|
+
bufferConfig: BUFFER_CONFIG,
|
|
134
126
|
controls: false,
|
|
135
127
|
repeat: false
|
|
136
128
|
})
|
|
@@ -142,7 +134,6 @@ const styles = StyleSheet.create({
|
|
|
142
134
|
flex: 1,
|
|
143
135
|
width: '100%',
|
|
144
136
|
height: '100%',
|
|
145
|
-
position: 'relative',
|
|
146
137
|
alignSelf: 'stretch'
|
|
147
138
|
},
|
|
148
139
|
video: {
|
package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useCallback","useRef","useEffect","StyleSheet","Animated","useWindowDimensions","
|
|
1
|
+
{"version":3,"names":["React","useMemo","useCallback","useRef","useEffect","StyleSheet","Animated","useWindowDimensions","View","Video","Display","jsx","_jsx","BUFFER_CONFIG","minBufferMs","maxBufferMs","bufferForPlaybackMs","bufferForPlaybackAfterRebufferMs","CONTROLS_HIDDEN","hideForward","hideDuration","hideFullscreen","hidePlayPause","hideNavigationBarOnFullScreenMode","hideNotificationBarOnFullScreenMode","hideNext","hidePosition","hidePrevious","hideRewind","hideSeekBar","hideSettingButton","resolveUri","src","test","startsWith","SplashVideo","fullscreen","width","height","source","resizeMode","backgroundColor","onEnd","onLoadStart","onLoaded","onError","fadeAnim","Value","current","windowWidth","windowHeight","animateIn","timing","toValue","duration","useNativeDriver","start","videoStyle","fullWidth","fullHeight","wrapperStyle","absoluteFillObject","opacity","position","resolvedUri","videoSource","uri","handleLoadStart","setValue","handleLoad","data","handleReadyForDisplay","handleError","err","msg","error","message","JSON","stringify","console","warn","stopAnimation","style","styles","container","children","video","paused","onLoad","onReadyForDisplay","controlsStyles","shutterColor","ignoreSilentSwitch","playInBackground","playWhenInactive","allowsExternalPlayback","bufferConfig","controls","repeat","create","flex","alignSelf","memo"],"sourceRoot":"../../../../../../../../src","sources":["components/Auth/One/SplashScre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AC,CAAE;IAAA4C,QAAA,eACnDzE,IAAA,CAACN,QAAQ,CAACE,IAAI;MAAC0E,KAAK,EAAEtB,YAAa;MAAAyB,QAAA,eACjCzE,IAAA,CAACH,KAAK;QACJ8B,MAAM,EAAE0B,WAAY;QACpBiB,KAAK,EAAEC,MAAM,CAACG,KAAM;QACpB9C,UAAU,EAAEA,UAAW;QACvB+C,MAAM,EAAE,KAAM;QACd5C,WAAW,EAAEwB,eAAgB;QAC7BqB,MAAM,EAAEnB,UAAW;QACnBoB,iBAAiB,EAAElB,qBAAsB;QACzC1B,OAAO,EAAE2B,WAAY;QACrB9B,KAAK,EAAEA,KAAM;QACbgD,cAAc,EAAExE,eAAgB;QAChCyE,YAAY,EAAElD,eAAgB;QAC9BmD,kBAAkB,EAAC,MAAM;QACzBC,gBAAgB,EAAE,KAAM;QACxBC,gBAAgB,EAAE,KAAM;QACxBC,sBAAsB,EAAE,KAAM;QAC9BC,YAAY,EAAEnF,aAAc;QAC5BoF,QAAQ,EAAE,KAAM;QAChBC,MAAM,EAAE;MAAM,CACf;IAAC,CACW;EAAC,CACZ,CAAC;AAEX,CAAC;AAED,MAAMf,MAAM,GAAG9E,UAAU,CAAC8F,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,IAAI,EAAE,CAAC;IACP/D,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACd+D,SAAS,EAAE;EACb,CAAC;EACDf,KAAK,EAAE;IACLjD,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,4BAAetC,KAAK,CAACsG,IAAI,CAACnE,WAAW,CAAC","ignoreList":[]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { View, Pressable, StyleSheet
|
|
4
|
+
import { View, Pressable, StyleSheet } from 'react-native';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
-
import {
|
|
6
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
7
|
+
import { verticalScale } from 'react-native-size-matters';
|
|
7
8
|
import { useInternalTheme } from "../../../../theme/hook/index.js";
|
|
9
|
+
import { Text } from "../../../Text/index.js";
|
|
8
10
|
import Logo from "../../../Logo/Logo.js";
|
|
9
11
|
import TextButton from "../../../Button/TextButton.js";
|
|
10
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -24,7 +26,7 @@ const AuthHeader = ({
|
|
|
24
26
|
} = useInternalTheme(overrideTheme);
|
|
25
27
|
return /*#__PURE__*/_jsx(View, {
|
|
26
28
|
style: [styles.container, {
|
|
27
|
-
|
|
29
|
+
marginTop: insets.top - 7
|
|
28
30
|
}, containerStyle],
|
|
29
31
|
children: /*#__PURE__*/_jsxs(View, {
|
|
30
32
|
style: styles.row,
|
|
@@ -33,12 +35,18 @@ const AuthHeader = ({
|
|
|
33
35
|
children: [logoUri && /*#__PURE__*/_jsx(Pressable, {
|
|
34
36
|
onPress: onLogoPress,
|
|
35
37
|
style: styles.logoWrapper,
|
|
38
|
+
disabled: !onLogoPress,
|
|
36
39
|
children: /*#__PURE__*/_jsx(Logo, {
|
|
37
40
|
logoUri: logoUri,
|
|
38
|
-
resizeMode: "contain"
|
|
41
|
+
resizeMode: "contain",
|
|
42
|
+
width: 120,
|
|
43
|
+
height: 35,
|
|
44
|
+
containerStyle: {
|
|
45
|
+
alignItems: 'flex-start'
|
|
46
|
+
}
|
|
39
47
|
})
|
|
40
48
|
}), headerTitle && /*#__PURE__*/_jsx(Text, {
|
|
41
|
-
style: [styles.
|
|
49
|
+
style: [styles.headerTitle, {
|
|
42
50
|
color: theme.colors.textPrimary
|
|
43
51
|
}],
|
|
44
52
|
children: headerTitle
|
|
@@ -57,14 +65,13 @@ const AuthHeader = ({
|
|
|
57
65
|
export default /*#__PURE__*/React.memo(AuthHeader);
|
|
58
66
|
const styles = StyleSheet.create({
|
|
59
67
|
container: {
|
|
60
|
-
marginTop: verticalScale(0),
|
|
61
68
|
width: '100%',
|
|
62
69
|
zIndex: 100
|
|
63
70
|
},
|
|
64
71
|
row: {
|
|
65
72
|
flexDirection: 'row',
|
|
66
73
|
justifyContent: 'space-between',
|
|
67
|
-
alignItems: '
|
|
74
|
+
alignItems: 'center',
|
|
68
75
|
paddingTop: verticalScale(8)
|
|
69
76
|
},
|
|
70
77
|
left: {
|
|
@@ -73,21 +80,17 @@ const styles = StyleSheet.create({
|
|
|
73
80
|
alignItems: 'flex-start'
|
|
74
81
|
},
|
|
75
82
|
logoWrapper: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
transform: [{
|
|
79
|
-
scale: 0.6
|
|
80
|
-
}]
|
|
83
|
+
justifyContent: 'flex-start',
|
|
84
|
+
alignItems: 'flex-start'
|
|
81
85
|
},
|
|
82
86
|
right: {
|
|
83
|
-
justifyContent: '
|
|
87
|
+
justifyContent: 'center',
|
|
84
88
|
alignItems: 'flex-end'
|
|
85
89
|
},
|
|
86
|
-
|
|
87
|
-
fontSize: 18,
|
|
90
|
+
headerTitle: {
|
|
91
|
+
fontSize: RFValue(18),
|
|
88
92
|
fontWeight: '700',
|
|
89
|
-
marginTop: verticalScale(
|
|
90
|
-
textAlign: 'left'
|
|
93
|
+
marginTop: verticalScale(4)
|
|
91
94
|
}
|
|
92
95
|
});
|
|
93
96
|
//# sourceMappingURL=AuthHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Pressable","StyleSheet","
|
|
1
|
+
{"version":3,"names":["React","View","Pressable","StyleSheet","useSafeAreaInsets","RFValue","verticalScale","useInternalTheme","Text","Logo","TextButton","jsx","_jsx","jsxs","_jsxs","AuthHeader","logoUri","onLogoPress","rightTitle","onRightPress","rightComponent","containerStyle","theme","overrideTheme","headerTitle","insets","style","styles","container","marginTop","top","children","row","left","onPress","logoWrapper","disabled","resizeMode","width","height","alignItems","color","colors","textPrimary","right","title","memo","create","zIndex","flexDirection","justifyContent","paddingTop","flex","fontSize","fontWeight"],"sourceRoot":"../../../../../../src","sources":["components/Auth/Two/AuthHeader/AuthHeader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,SAAS,EAAEC,UAAU,QAAwB,cAAc;AAC1E,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,SAASC,aAAa,QAAQ,2BAA2B;AAGzD,SAASC,gBAAgB,QAAQ,iCAAwB;AACzD,SAASC,IAAI,QAAQ,wBAAe;AACpC,OAAOC,IAAI,MAAM,uBAAoB;AACrC,OAAOC,UAAU,MAAM,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAapD,MAAMC,UAA2B,GAAGA,CAAC;EACnCC,OAAO;EACPC,WAAW;EACXC,UAAU;EACVC,YAAY;EACZC,cAAc;EACdC,cAAc;EACdC,KAAK,EAAEC,aAAa;EACpBC;AACF,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAGrB,iBAAiB,CAAC,CAAC;EAClC,MAAM;IAAEkB;EAAM,CAAC,GAAGf,gBAAgB,CAACgB,aAAa,CAAC;EAEjD,oBACEX,IAAA,CAACX,IAAI;IACHyB,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE;MAAEC,SAAS,EAAEJ,MAAM,CAACK,GAAG,GAAG;IAAE,CAAC,EAAET,cAAc,CAAE;IAAAU,QAAA,eAEzEjB,KAAA,CAACb,IAAI;MAACyB,KAAK,EAAEC,MAAM,CAACK,GAAI;MAAAD,QAAA,gBAEtBjB,KAAA,CAACb,IAAI;QAACyB,KAAK,EAAEC,MAAM,CAACM,IAAK;QAAAF,QAAA,GACtBf,OAAO,iBACNJ,IAAA,CAACV,SAAS;UACRgC,OAAO,EAAEjB,WAAY;UACrBS,KAAK,EAAEC,MAAM,CAACQ,WAAY;UAC1BC,QAAQ,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WAAW,EAAE;IACXe,cAAc,EAAE,YAAY;IAC5BV,UAAU,EAAE;EACd,CAAC;EACDI,KAAK,EAAE;IACLM,cAAc,EAAE,QAAQ;IACxBV,UAAU,EAAE;EACd,CAAC;EACDhB,WAAW,EAAE;IACX6B,QAAQ,EAAEhD,OAAO,CAAC,EAAE,CAAC;IACrBiD,UAAU,EAAE,KAAK;IACjBzB,SAAS,EAAEvB,aAAa,CAAC,CAAC;EAC5B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -17,9 +17,9 @@ import BackBtn from "../../../Button/BackBtn.js";
|
|
|
17
17
|
import { Text } from "../../../Text/index.js";
|
|
18
18
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
19
19
|
import { Mail } from 'lucide-react-native';
|
|
20
|
-
import BackgroundLayoutOne from "../../../BackgroundLayout/BackgroundLayoutOne.js";
|
|
21
20
|
import { useInternalTheme } from "../../../../theme/hook/index.js";
|
|
22
|
-
import {
|
|
21
|
+
import { BackgroundLayout } from "../../../BackgroundLayout/index.js";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
23
23
|
const ForgetPassword = ({
|
|
24
24
|
title = 'Forgot Password',
|
|
25
25
|
subtitle = 'Enter your email account to reset password',
|
|
@@ -91,7 +91,7 @@ const ForgetPassword = ({
|
|
|
91
91
|
// [isKeyboardOpen]
|
|
92
92
|
// );
|
|
93
93
|
|
|
94
|
-
return /*#__PURE__*/_jsx(
|
|
94
|
+
return /*#__PURE__*/_jsx(BackgroundLayout.Two, {
|
|
95
95
|
children: /*#__PURE__*/_jsxs(View, {
|
|
96
96
|
style: [styles.container, containerStyle],
|
|
97
97
|
children: [shouldRender(renderTopBackBtn || onTopBackBtnPress) && /*#__PURE__*/_jsx(View, {
|
|
@@ -104,11 +104,12 @@ const ForgetPassword = ({
|
|
|
104
104
|
onPress: onTopBackBtnPress
|
|
105
105
|
})
|
|
106
106
|
}), /*#__PURE__*/_jsx(HideKeyboard, {
|
|
107
|
+
keyboardVerticalOffset: 0,
|
|
107
108
|
children: /*#__PURE__*/_jsxs(View, {
|
|
108
109
|
style: styles.centerContent,
|
|
109
110
|
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
110
111
|
logoUri: logoUri
|
|
111
|
-
}) : null, renderForgetPasswordHeader ? renderForgetPasswordHeader() : /*#__PURE__*/_jsxs(
|
|
112
|
+
}) : null, renderForgetPasswordHeader ? renderForgetPasswordHeader() : /*#__PURE__*/_jsxs(View, {
|
|
112
113
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
113
114
|
style: [styles.title, {
|
|
114
115
|
color: textPrimaryColor
|
|
@@ -211,25 +212,23 @@ const styles = StyleSheet.create({
|
|
|
211
212
|
width: '100%',
|
|
212
213
|
alignItems: 'center',
|
|
213
214
|
justifyContent: 'center',
|
|
214
|
-
gap: verticalScale(
|
|
215
|
-
|
|
215
|
+
gap: verticalScale(16),
|
|
216
|
+
paddingTop: verticalScale(48)
|
|
216
217
|
},
|
|
217
218
|
title: {
|
|
218
|
-
fontSize: RFValue(
|
|
219
|
+
fontSize: RFValue(22),
|
|
219
220
|
fontWeight: '700',
|
|
220
|
-
textAlign: 'center'
|
|
221
|
-
marginTop: verticalScale(12)
|
|
221
|
+
textAlign: 'center'
|
|
222
222
|
},
|
|
223
223
|
subtitle: {
|
|
224
224
|
fontSize: RFValue(13),
|
|
225
225
|
fontWeight: '400',
|
|
226
226
|
textAlign: 'center',
|
|
227
|
-
|
|
227
|
+
opacity: 0.75
|
|
228
228
|
},
|
|
229
229
|
form: {
|
|
230
230
|
width: '100%',
|
|
231
|
-
gap: verticalScale(14)
|
|
232
|
-
marginTop: verticalScale(8)
|
|
231
|
+
gap: verticalScale(14)
|
|
233
232
|
},
|
|
234
233
|
bottomInfo: {
|
|
235
234
|
marginTop: verticalScale(15),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","useState","StyleSheet","View","Alert","useForm","Controller","scale","verticalScale","Input","Button","Logo","useKeyboard","HideKeyboard","BackBtn","Text","RFValue","Mail","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","StyleSheet","View","Alert","useForm","Controller","scale","verticalScale","Input","Button","Logo","useKeyboard","HideKeyboard","BackBtn","Text","RFValue","Mail","useInternalTheme","BackgroundLayout","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ForgetPassword","title","subtitle","onSubmit","onTopBackBtnPress","containerStyle","titleStyle","subtitleStyle","formStyle","inputStyle","inputContainerStyle","topBackBtnStyle","loadingSubmitBtn","logoUri","theme","overrideTheme","text","emailLabel","emailPlaceholder","loadingSubmitBtnText","forgetPasswordButton","renderLogo","renderForgetPasswordHeader","renderSubmitButton","renderTopBackBtn","renderBottomInfoText","control","handleSubmit","formState","errors","isValid","touchedFields","defaultValues","email","mode","isKeyboardOpen","isLoading","setIsLoading","textPrimaryColor","colors","textPrimary","handleFormSubmit","data","error","console","alert","shouldRender","condition","isSubmitDisabled","Two","children","style","styles","container","topBackBtnWrapper","onPress","keyboardVerticalOffset","centerContent","color","form","testID","name","rules","required","pattern","value","message","render","field","onChange","onBlur","Three","placeholder","onChangeText","inputText","sanitized","replace","disabled","errorMessage","textContentType","autoCapitalize","keyboardType","autoCorrect","leftIcon","size","loading","Primary","loadingText","bottomInfoText","bottomInfo","textSecondary","accessibilityRole","memo","create","flex","width","paddingHorizontal","paddingTop","paddingBottom","justifyContent","alignItems","position","top","left","zIndex","gap","fontSize","fontWeight","textAlign","opacity","marginTop"],"sourceRoot":"../../../../../../src","sources":["components/Auth/Two/ForgotPassword/ForgotPassword.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SACEC,UAAU,EACVC,IAAI,EACJC,KAAK,QAGA,cAAc;AACrB,SAASC,OAAO,EAAEC,UAAU,QAAQ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