@umituz/react-native-auth 3.4.32 → 3.4.34

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.
Files changed (30) hide show
  1. package/README.md +347 -348
  2. package/package.json +2 -3
  3. package/src/application/README.md +323 -442
  4. package/src/domain/ConfigAndErrors.md +296 -431
  5. package/src/domain/README.md +361 -210
  6. package/src/domain/entities/AuthUser.md +231 -372
  7. package/src/domain/entities/UserProfile.md +271 -441
  8. package/src/index.ts +35 -0
  9. package/src/infrastructure/README.md +388 -444
  10. package/src/infrastructure/services/README.md +386 -312
  11. package/src/infrastructure/utils/validation/BaseValidators.ts +35 -0
  12. package/src/infrastructure/utils/validation/CollectionValidators.ts +56 -0
  13. package/src/infrastructure/utils/validation/DateValidators.ts +63 -0
  14. package/src/infrastructure/utils/validation/FormValidators.ts +22 -0
  15. package/src/infrastructure/utils/validation/NumberValidators.ts +55 -0
  16. package/src/infrastructure/utils/validation/StringValidators.ts +55 -0
  17. package/src/infrastructure/utils/validation/sanitization.ts +98 -0
  18. package/src/infrastructure/utils/validation/types.ts +15 -0
  19. package/src/presentation/README.md +631 -563
  20. package/src/presentation/components/ProfileComponents.md +307 -504
  21. package/src/presentation/components/README.md +254 -92
  22. package/src/presentation/hooks/README.md +247 -83
  23. package/src/presentation/hooks/useAccountManagement.md +295 -344
  24. package/src/presentation/hooks/useAuth.md +271 -227
  25. package/src/presentation/hooks/useAuthBottomSheet.md +417 -367
  26. package/src/presentation/hooks/useAuthRequired.md +308 -194
  27. package/src/presentation/hooks/useProfileUpdate.md +251 -279
  28. package/src/presentation/hooks/useSocialLogin.md +312 -287
  29. package/src/presentation/hooks/useUserProfile.md +259 -192
  30. package/src/presentation/screens/README.md +151 -153
package/src/index.ts CHANGED
@@ -86,6 +86,41 @@ export type {
86
86
  PasswordRequirements,
87
87
  ValidationConfig,
88
88
  } from './infrastructure/utils/AuthValidation';
89
+ export {
90
+ validateRequired,
91
+ validatePattern,
92
+ } from './infrastructure/utils/validation/BaseValidators';
93
+ export {
94
+ validateMinLength,
95
+ validateMaxLength,
96
+ validatePhone,
97
+ } from './infrastructure/utils/validation/StringValidators';
98
+ export {
99
+ validateNumberRange,
100
+ validatePositiveNumber,
101
+ validateAge,
102
+ } from './infrastructure/utils/validation/NumberValidators';
103
+ export {
104
+ validateDateOfBirth,
105
+ validateDateRange,
106
+ } from './infrastructure/utils/validation/DateValidators';
107
+ export {
108
+ validateEnum,
109
+ validateTags,
110
+ } from './infrastructure/utils/validation/CollectionValidators';
111
+ export {
112
+ batchValidate,
113
+ } from './infrastructure/utils/validation/FormValidators';
114
+ export {
115
+ SECURITY_LIMITS,
116
+ sanitizeWhitespace,
117
+ sanitizeEmail,
118
+ sanitizePassword,
119
+ sanitizeName,
120
+ sanitizeText,
121
+ containsDangerousChars,
122
+ isWithinLengthLimit,
123
+ } from './infrastructure/utils/validation/sanitization';
89
124
  export {
90
125
  DEFAULT_VAL_CONFIG,
91
126
  } from './infrastructure/utils/AuthValidation';