@umituz/react-native-auth 4.3.82 → 4.3.83

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-auth",
3
- "version": "4.3.82",
3
+ "version": "4.3.83",
4
4
  "description": "Authentication service for React Native apps - Secure, type-safe, and production-ready. Provider-agnostic design with dependency injection, configurable validation, and comprehensive error handling.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,10 +1,19 @@
1
- import type { PasswordConfig } from "@domain/value-objects/AuthConfig";
1
+ import type { PasswordConfig } from "../../domain/value-objects/AuthConfig";
2
2
  import { isEmptyEmail, isEmptyPassword, isEmptyName } from "./validation/validationHelpers";
3
- import type {
4
- ValidationResult,
5
- PasswordStrengthResult,
6
- PasswordRequirements,
7
- } from "@shared/validation/types";
3
+
4
+ // Define validation types locally
5
+ export interface ValidationResult {
6
+ isValid: boolean;
7
+ error?: string;
8
+ }
9
+
10
+ export interface PasswordRequirements {
11
+ hasMinLength: boolean;
12
+ }
13
+
14
+ export interface PasswordStrengthResult extends ValidationResult {
15
+ requirements: PasswordRequirements;
16
+ }
8
17
 
9
18
  // Export validation types
10
19
  export type {
@@ -9,7 +9,7 @@ import {
9
9
  validatePasswordConfirmation,
10
10
  } from "../AuthValidation";
11
11
  import type { PasswordConfig } from "../../../domain/value-objects/AuthConfig";
12
- import type { PasswordRequirements } from "@shared/validation/types";
12
+ import type { PasswordRequirements } from "../AuthValidation";
13
13
 
14
14
  interface PasswordValidationInput {
15
15
  password: string;
@@ -3,7 +3,7 @@ import { View, StyleSheet } from "react-native";
3
3
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
4
4
  import { AtomicText } from "@umituz/react-native-design-system/atoms";
5
5
  import type { ColorVariant } from "@umituz/react-native-design-system/typography";
6
- import type { PasswordRequirements } from "@shared/validation/types";
6
+ import type { PasswordRequirements } from "../../infrastructure/utils/AuthValidation";
7
7
 
8
8
  export interface PasswordStrengthTranslations {
9
9
  minLength: string;
@@ -11,7 +11,7 @@ import { FormPasswordInput } from '../form/FormPasswordInput';
11
11
  import { PasswordStrengthIndicator } from '../PasswordStrengthIndicator';
12
12
  import { PasswordMatchIndicator } from '../PasswordMatchIndicator';
13
13
  import type { RegisterFormTranslations } from './types';
14
- import type { PasswordRequirements } from '@shared/validation/types';
14
+ import type { PasswordRequirements } from '../../../infrastructure/utils/AuthValidation';
15
15
 
16
16
  export interface RegisterFormFieldsProps {
17
17
  displayName: string;
@@ -5,9 +5,9 @@
5
5
  */
6
6
 
7
7
  import { useMemo } from "react";
8
- import type { PasswordRequirements } from "@shared/validation/types";
9
- import type { PasswordConfig } from "@domain/value-objects/AuthConfig";
10
- import { calculatePasswordValidation } from "@infrastructure/utils/calculators/passwordStrengthCalculator";
8
+ import type { PasswordRequirements } from "../../../infrastructure/utils/calculators/passwordStrengthCalculator";
9
+ import type { PasswordConfig } from "../../../domain/value-objects/AuthConfig";
10
+ import { calculatePasswordValidation } from "../../../infrastructure/utils/calculators/passwordStrengthCalculator";
11
11
 
12
12
  interface UsePasswordValidationResult {
13
13
  passwordRequirements: PasswordRequirements;