@umituz/react-native-auth 3.6.61 → 3.6.63
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/package.json +5 -5
- package/src/application/ports/IAuthRepository.ts +3 -3
- package/src/index.ts +5 -18
- package/src/infrastructure/providers/FirebaseAuthProvider.ts +6 -2
- package/src/infrastructure/repositories/AuthRepository.ts +3 -3
- package/src/infrastructure/services/AuthEventService.ts +4 -0
- package/src/infrastructure/services/AuthService.ts +14 -36
- package/src/infrastructure/services/initializeAuth.ts +0 -15
- package/src/infrastructure/utils/AuthValidation.ts +5 -2
- package/src/infrastructure/utils/UserMapper.ts +9 -6
- package/src/infrastructure/utils/authStateHandler.ts +0 -7
- package/src/infrastructure/utils/validation/sanitization.ts +2 -89
- package/src/init/createAuthInitModule.ts +0 -15
- package/src/presentation/hooks/mutations/useAuthMutations.ts +3 -3
- package/src/presentation/hooks/useAuthBottomSheet.ts +10 -1
- package/src/presentation/hooks/useGoogleAuth.ts +43 -11
- package/src/presentation/stores/auth.selectors.ts +12 -6
- package/src/presentation/stores/authStore.ts +6 -9
- package/src/presentation/stores/initializeAuthListener.ts +44 -7
- package/src/application/ports/IAuthService.ts +0 -60
- package/src/domain/utils/migration.ts +0 -44
- package/src/infrastructure/adapters/UIProviderAdapter.ts +0 -43
- package/src/infrastructure/services/UserDocument.types.ts +0 -60
- package/src/infrastructure/services/UserDocumentService.ts +0 -86
- package/src/infrastructure/services/app-service-helpers.ts +0 -35
- package/src/infrastructure/types/UI.types.ts +0 -11
- package/src/infrastructure/utils/auth-tracker.util.ts +0 -23
- package/src/infrastructure/utils/userDocumentBuilder.util.ts +0 -114
- package/src/infrastructure/utils/validation/BaseValidators.ts +0 -35
- package/src/infrastructure/utils/validation/CollectionValidators.ts +0 -56
- package/src/infrastructure/utils/validation/DateValidators.ts +0 -71
- package/src/infrastructure/utils/validation/FormValidators.ts +0 -22
- package/src/infrastructure/utils/validation/NumberValidators.ts +0 -50
- package/src/infrastructure/utils/validation/StringValidators.ts +0 -55
- package/src/infrastructure/utils/validation/types.ts +0 -15
- package/src/presentation/screens/change-password/ChangePasswordScreen.tsx +0 -179
- package/src/presentation/screens/change-password/ChangePasswordScreen.types.ts +0 -77
- package/src/presentation/screens/change-password/RequirementItem.tsx +0 -47
- package/src/presentation/screens/change-password/index.ts +0 -6
- package/src/types/translations.types.ts +0 -89
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Password Requirement Item Component
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { View, StyleSheet } from "react-native";
|
|
7
|
-
import { AtomicText, useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
|
-
|
|
9
|
-
export interface RequirementItemProps {
|
|
10
|
-
label: string;
|
|
11
|
-
met: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const RequirementItem: React.FC<RequirementItemProps> = ({ label, met }) => {
|
|
15
|
-
const tokens = useAppDesignTokens();
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<View style={styles.requirementItem}>
|
|
19
|
-
<View
|
|
20
|
-
style={[
|
|
21
|
-
styles.requirementBullet,
|
|
22
|
-
{ backgroundColor: met ? tokens.colors.success : tokens.colors.border },
|
|
23
|
-
]}
|
|
24
|
-
/>
|
|
25
|
-
<AtomicText
|
|
26
|
-
type="bodySmall"
|
|
27
|
-
style={{ color: met ? tokens.colors.textPrimary : tokens.colors.textSecondary }}
|
|
28
|
-
>
|
|
29
|
-
{label}
|
|
30
|
-
</AtomicText>
|
|
31
|
-
</View>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const styles = StyleSheet.create({
|
|
36
|
-
requirementItem: {
|
|
37
|
-
flexDirection: "row",
|
|
38
|
-
alignItems: "center",
|
|
39
|
-
marginBottom: 4,
|
|
40
|
-
},
|
|
41
|
-
requirementBullet: {
|
|
42
|
-
width: 6,
|
|
43
|
-
height: 6,
|
|
44
|
-
borderRadius: 3,
|
|
45
|
-
marginRight: 8,
|
|
46
|
-
},
|
|
47
|
-
});
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export interface AuthTranslations {
|
|
2
|
-
// Common
|
|
3
|
-
title: string;
|
|
4
|
-
subtitle: string;
|
|
5
|
-
|
|
6
|
-
// Login
|
|
7
|
-
email: string;
|
|
8
|
-
emailPlaceholder: string;
|
|
9
|
-
password: string;
|
|
10
|
-
passwordPlaceholder: string;
|
|
11
|
-
signIn: string;
|
|
12
|
-
dontHaveAccount: string;
|
|
13
|
-
createAccount: string;
|
|
14
|
-
orContinueWith: string;
|
|
15
|
-
|
|
16
|
-
// Register
|
|
17
|
-
displayName: string;
|
|
18
|
-
displayNamePlaceholder: string;
|
|
19
|
-
confirmPassword: string;
|
|
20
|
-
confirmPasswordPlaceholder: string;
|
|
21
|
-
signUp: string;
|
|
22
|
-
alreadyHaveAccount: string;
|
|
23
|
-
|
|
24
|
-
// Social
|
|
25
|
-
google: string;
|
|
26
|
-
apple: string;
|
|
27
|
-
|
|
28
|
-
// Legal
|
|
29
|
-
termsOfService: string;
|
|
30
|
-
privacyPolicy: string;
|
|
31
|
-
|
|
32
|
-
// Password
|
|
33
|
-
passwordsMatch: string;
|
|
34
|
-
passwordsDontMatch: string;
|
|
35
|
-
passwordReqMinLength: string;
|
|
36
|
-
|
|
37
|
-
// Change Password
|
|
38
|
-
changePassword: {
|
|
39
|
-
title: string;
|
|
40
|
-
description: string;
|
|
41
|
-
currentPassword: string;
|
|
42
|
-
newPassword: string;
|
|
43
|
-
confirmNewPassword: string;
|
|
44
|
-
submit: string;
|
|
45
|
-
requirements: {
|
|
46
|
-
title: string;
|
|
47
|
-
minLength: string;
|
|
48
|
-
uppercase: string;
|
|
49
|
-
lowercase: string;
|
|
50
|
-
number: string;
|
|
51
|
-
special: string;
|
|
52
|
-
};
|
|
53
|
-
success: {
|
|
54
|
-
title: string;
|
|
55
|
-
message: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
// Errors
|
|
60
|
-
errors: {
|
|
61
|
-
emailRequired: string;
|
|
62
|
-
emailInvalid: string;
|
|
63
|
-
passwordRequired: string;
|
|
64
|
-
passwordTooShort: string;
|
|
65
|
-
passwordsNotMatch: string;
|
|
66
|
-
displayNameRequired: string;
|
|
67
|
-
generic: string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// Success
|
|
71
|
-
success: {
|
|
72
|
-
loginTitle: string;
|
|
73
|
-
loginMessage: string;
|
|
74
|
-
registerTitle: string;
|
|
75
|
-
registerMessage: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// Auth Bottom Sheet
|
|
79
|
-
close: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface CommonTranslations {
|
|
83
|
-
cancel: string;
|
|
84
|
-
confirm: string;
|
|
85
|
-
save: string;
|
|
86
|
-
delete: string;
|
|
87
|
-
edit: string;
|
|
88
|
-
loading: string;
|
|
89
|
-
}
|