@umituz/react-native-auth 4.3.37 → 4.3.39
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 +3 -3
- package/src/infrastructure/services/initializeAuth.ts +1 -1
- package/src/infrastructure/utils/getEffectiveUserId.ts +1 -1
- package/src/init/createAuthInitModule.ts +1 -1
- package/src/presentation/components/AccountActions.tsx +3 -1
- package/src/presentation/components/AuthBottomSheet.tsx +3 -7
- package/src/presentation/components/AuthErrorDisplay.tsx +1 -5
- package/src/presentation/components/AuthHeader.tsx +2 -1
- package/src/presentation/components/AuthLegalLinks.tsx +2 -1
- package/src/presentation/components/AuthLink.tsx +2 -1
- package/src/presentation/components/EditProfileActions.tsx +1 -1
- package/src/presentation/components/EditProfileAvatar.tsx +1 -1
- package/src/presentation/components/EditProfileForm.tsx +1 -1
- package/src/presentation/components/LoginForm.tsx +1 -1
- package/src/presentation/components/PasswordMatchIndicator.tsx +2 -1
- package/src/presentation/components/PasswordStrengthIndicator.tsx +3 -1
- package/src/presentation/components/ProfileBenefitsList.tsx +1 -1
- package/src/presentation/components/ProfileSection.tsx +2 -1
- package/src/presentation/components/RegisterForm.tsx +1 -1
- package/src/presentation/components/SocialLoginButtons.tsx +2 -1
- package/src/presentation/components/form/FormEmailInput.tsx +1 -1
- package/src/presentation/components/form/FormPasswordInput.tsx +1 -1
- package/src/presentation/components/form/FormTextInput.tsx +1 -1
- package/src/presentation/hooks/mutations/useAuthMutations.ts +1 -1
- package/src/presentation/hooks/registerForm/registerFormSubmit.ts +1 -1
- package/src/presentation/hooks/useAuthBottomSheet.ts +1 -1
- package/src/presentation/hooks/useAuthHandlers.ts +1 -1
- package/src/presentation/hooks/useLoginForm.ts +1 -1
- package/src/presentation/hooks/usePasswordPromptNavigation.ts +1 -1
- package/src/presentation/navigation/AuthNavigator.tsx +3 -8
- package/src/presentation/screens/AccountScreen.tsx +3 -1
- package/src/presentation/screens/EditProfileScreen.tsx +3 -1
- package/src/presentation/screens/LoginScreen.tsx +4 -1
- package/src/presentation/screens/PasswordPromptScreen.tsx +3 -8
- package/src/presentation/screens/RegisterScreen.tsx +4 -1
- package/src/presentation/stores/authModalStore.ts +1 -1
- package/src/presentation/stores/authStore.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-auth",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.39",
|
|
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",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@react-navigation/stack": ">=6.0.0",
|
|
51
51
|
"@tanstack/react-query": ">=5.0.0",
|
|
52
52
|
"@umituz/react-native-design-system": ">=4.0.0",
|
|
53
|
+
"@umituz/react-native-firebase": "^2.4.55",
|
|
53
54
|
"expo": ">=54.0.0",
|
|
54
55
|
"firebase": ">=11.0.0",
|
|
55
56
|
"react": ">=19.0.0",
|
|
@@ -57,7 +58,6 @@
|
|
|
57
58
|
"react-native-gesture-handler": ">=2.0.0",
|
|
58
59
|
"react-native-safe-area-context": ">=5.0.0",
|
|
59
60
|
"react-native-svg": ">=13.0.0",
|
|
60
|
-
"@umituz/react-native-firebase": "*",
|
|
61
61
|
"zustand": ">=5.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@types/react": "~19.1.0",
|
|
75
75
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
76
76
|
"@typescript-eslint/parser": "^7.0.0",
|
|
77
|
-
"@umituz/react-native-design-system": "
|
|
77
|
+
"@umituz/react-native-design-system": "^4.25.34",
|
|
78
78
|
"@umituz/react-native-settings": "latest",
|
|
79
79
|
"eslint": "^8.57.0",
|
|
80
80
|
"expo-apple-authentication": "^6.0.0",
|
|
@@ -7,7 +7,7 @@ import type { User } from "firebase/auth";
|
|
|
7
7
|
import { getFirebaseAuth, configureUserDocumentService } from "@umituz/react-native-firebase";
|
|
8
8
|
import type { UserDocumentExtras } from "@umituz/react-native-firebase";
|
|
9
9
|
import { initializeAuthService } from "./AuthService";
|
|
10
|
-
import { collectDeviceExtras } from "@umituz/react-native-design-system";
|
|
10
|
+
import { collectDeviceExtras } from "@umituz/react-native-design-system/device";
|
|
11
11
|
import { initializeAuthListener } from "../../presentation/stores/initializeAuthListener";
|
|
12
12
|
import { createAuthStateHandler } from "../utils/authStateHandler";
|
|
13
13
|
import type { ConversionState } from "../utils/authConversionDetector";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Creates a ready-to-use InitModule for app initialization
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { InitModule } from '@umituz/react-native-design-system';
|
|
6
|
+
import type { InitModule } from '@umituz/react-native-design-system/init';
|
|
7
7
|
import { initializeAuth } from '../infrastructure/services/initializeAuth';
|
|
8
8
|
import type { InitializeAuthOptions } from '../infrastructure/services/initializeAuth';
|
|
9
9
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
3
|
-
import { useAppDesignTokens
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
5
|
+
import { useAlert, AlertType, AlertMode } from "@umituz/react-native-design-system/molecules";
|
|
4
6
|
import { actionButtonStyle } from "../utils/commonStyles";
|
|
5
7
|
|
|
6
8
|
export interface AccountActionsConfig {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, TouchableOpacity, ScrollView } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
AtomicIcon,
|
|
7
|
-
AtomicKeyboardAvoidingView,
|
|
8
|
-
BottomSheetModal,
|
|
9
|
-
} from "@umituz/react-native-design-system";
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicText, AtomicIcon, AtomicKeyboardAvoidingView } from "@umituz/react-native-design-system/atoms";
|
|
5
|
+
import { BottomSheetModal } from "@umituz/react-native-design-system/molecules";
|
|
10
6
|
import { useAuthBottomSheet, type SocialAuthConfiguration } from "../hooks/useAuthBottomSheet";
|
|
11
7
|
import { LoginForm, type LoginFormTranslations } from "./LoginForm";
|
|
12
8
|
import { RegisterForm, type RegisterFormTranslations } from "./RegisterForm";
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import {
|
|
8
|
-
AlertInline,
|
|
9
|
-
AlertService,
|
|
10
|
-
AlertMode,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
7
|
+
import { AlertInline, AlertService, AlertMode } from "@umituz/react-native-design-system/molecules";
|
|
12
8
|
|
|
13
9
|
interface AuthErrorDisplayProps {
|
|
14
10
|
error: string | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
4
5
|
|
|
5
6
|
interface AuthHeaderProps {
|
|
6
7
|
title: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet, Linking } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
4
5
|
|
|
5
6
|
export interface AuthLegalLinksTranslations {
|
|
6
7
|
termsOfService: string;
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
8
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
|
+
import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
9
10
|
|
|
10
11
|
interface AuthLinkProps {
|
|
11
12
|
text: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import { AtomicButton } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
|
|
5
5
|
interface EditProfileActionsProps {
|
|
6
6
|
isSaving?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import { AtomicAvatar } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicAvatar } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
|
|
5
5
|
interface EditProfileAvatarProps {
|
|
6
6
|
photoURL: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import { AtomicInput } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicInput } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
|
|
5
5
|
interface EditProfileFormProps {
|
|
6
6
|
displayName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from "react";
|
|
2
2
|
import { StyleSheet, TextInput } from "react-native";
|
|
3
|
-
import { AtomicButton } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
import { useLoginForm } from "../hooks/useLoginForm";
|
|
5
5
|
import { AuthErrorDisplay } from "./AuthErrorDisplay";
|
|
6
6
|
import { AuthLink } from "./AuthLink";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import { useAppDesignTokens
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
4
5
|
|
|
5
6
|
export interface PasswordMatchTranslations {
|
|
6
7
|
match: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import { useAppDesignTokens
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
5
|
+
import type { ColorVariant } from "@umituz/react-native-design-system/typography";
|
|
4
6
|
import type { PasswordRequirements } from "../../application/services/ValidationService";
|
|
5
7
|
|
|
6
8
|
export interface PasswordStrengthTranslations {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
9
|
|
|
10
10
|
interface ProfileBenefitsListProps {
|
|
11
11
|
benefits: string[];
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
8
|
-
import { useAppDesignTokens
|
|
8
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
|
+
import { AtomicText, AtomicIcon, AtomicAvatar } from "@umituz/react-native-design-system/atoms";
|
|
9
10
|
import { ProfileBenefitsList } from "./ProfileBenefitsList";
|
|
10
11
|
|
|
11
12
|
export interface ProfileSectionConfig {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from "react";
|
|
2
2
|
import { StyleSheet, TextInput } from "react-native";
|
|
3
|
-
import { AtomicButton } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
import { useRegisterForm } from "../hooks/useRegisterForm";
|
|
5
5
|
import { AuthErrorDisplay } from "./AuthErrorDisplay";
|
|
6
6
|
import { AuthLink } from "./AuthLink";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
4
|
+
import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
4
5
|
import type { SocialAuthProvider } from "../../domain/value-objects/AuthConfig";
|
|
5
6
|
|
|
6
7
|
export interface SocialLoginButtonsTranslations {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
2
|
import { TextInput, StyleSheet, ViewStyle } from "react-native";
|
|
3
|
-
import { AtomicInput } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicInput } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
|
|
5
5
|
interface FormEmailInputProps {
|
|
6
6
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
2
|
import { TextInput, StyleSheet, ViewStyle } from "react-native";
|
|
3
|
-
import { AtomicInput } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicInput } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
|
|
5
5
|
interface FormPasswordInputProps {
|
|
6
6
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
2
|
import { TextInput, StyleSheet, ViewStyle } from "react-native";
|
|
3
|
-
import { AtomicInput } from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicInput } from "@umituz/react-native-design-system/atoms";
|
|
4
4
|
|
|
5
5
|
interface FormTextInputProps {
|
|
6
6
|
value: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* TanStack Query mutations for auth operations
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { useMutation } from "@umituz/react-native-design-system";
|
|
6
|
+
import { useMutation } from "@umituz/react-native-design-system/tanstack";
|
|
7
7
|
import { getAuthService } from "../../../infrastructure/services/AuthService";
|
|
8
8
|
import type { AuthCredentials, SignUpCredentials } from "../../../infrastructure/repositories/AuthRepository";
|
|
9
9
|
import type { AuthUser } from "../../../domain/entities/AuthUser";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { useCallback } from "react";
|
|
7
|
-
import { alertService } from "@umituz/react-native-design-system";
|
|
7
|
+
import { alertService } from "@umituz/react-native-design-system/molecules";
|
|
8
8
|
import { DEFAULT_PASSWORD_CONFIG } from "../../../domain/value-objects/AuthConfig";
|
|
9
9
|
import {
|
|
10
10
|
validateRegisterForm,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
-
import type { BottomSheetModalRef } from "@umituz/react-native-design-system";
|
|
2
|
+
import type { BottomSheetModalRef } from "@umituz/react-native-design-system/molecules";
|
|
3
3
|
import { useAuthModalStore } from "../stores/authModalStore";
|
|
4
4
|
import { useAuth } from "../hooks/useAuth";
|
|
5
5
|
import { useGoogleAuth, type GoogleAuthConfig } from "./useGoogleAuth";
|
|
@@ -3,7 +3,7 @@ import { Linking, Alert } from "react-native";
|
|
|
3
3
|
import { useAuth } from "./useAuth";
|
|
4
4
|
import { useAuthModalStore } from "../stores/authModalStore";
|
|
5
5
|
import { useAccountManagement } from "./useAccountManagement";
|
|
6
|
-
import { AlertService } from "@umituz/react-native-design-system";
|
|
6
|
+
import { AlertService } from "@umituz/react-native-design-system/molecules";
|
|
7
7
|
import { usePasswordPromptNavigation } from "./usePasswordPromptNavigation";
|
|
8
8
|
|
|
9
9
|
export interface AuthHandlersAppInfo {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useCallback } from "react";
|
|
2
2
|
import { useAuth } from "./useAuth";
|
|
3
3
|
import { validateLoginForm } from "../utils/form/formValidation.util";
|
|
4
|
-
import { alertService } from "@umituz/react-native-design-system";
|
|
4
|
+
import { alertService } from "@umituz/react-native-design-system/molecules";
|
|
5
5
|
import { useFormFields } from "../utils/form/useFormField.hook";
|
|
6
6
|
import { sanitizeEmail } from "../../infrastructure/utils/validation/sanitization";
|
|
7
7
|
import { useAuthErrorHandler } from "./useAuthErrorHandler";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { CommonActions } from '@react-navigation/native';
|
|
3
|
-
import { AppNavigation } from '@umituz/react-native-design-system';
|
|
3
|
+
import { AppNavigation } from '@umituz/react-native-design-system/molecules';
|
|
4
4
|
import { setPasswordPromptCallback } from '../utils/passwordPromptCallback';
|
|
5
5
|
|
|
6
6
|
export interface UsePasswordPromptNavigationOptions {
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
storageRepository,
|
|
6
|
-
unwrap,
|
|
7
|
-
type StackNavigatorConfig,
|
|
8
|
-
type StackScreenProps,
|
|
9
|
-
} from "@umituz/react-native-design-system";
|
|
2
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
3
|
+
import { StackNavigator, type StackNavigatorConfig, type StackScreenProps } from "@umituz/react-native-design-system/molecules";
|
|
4
|
+
import { storageRepository, unwrap } from "@umituz/react-native-design-system/storage";
|
|
10
5
|
import { LoginScreen, type LoginScreenTranslations } from "../screens/LoginScreen";
|
|
11
6
|
import { RegisterScreen, type RegisterScreenTranslations } from "../screens/RegisterScreen";
|
|
12
7
|
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
9
|
-
import { useAppDesignTokens
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
10
|
+
import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
11
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
10
12
|
import { actionButtonStyle } from "../utils/commonStyles";
|
|
11
13
|
|
|
12
14
|
import { ProfileSection, type ProfileSectionConfig } from "../components/ProfileSection";
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { StyleSheet } from "react-native";
|
|
8
|
-
import { useAppDesignTokens
|
|
8
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
|
+
import { AtomicText, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
|
|
10
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
9
11
|
import { EditProfileAvatar } from "../components/EditProfileAvatar";
|
|
10
12
|
import { EditProfileForm } from "../components/EditProfileForm";
|
|
11
13
|
import { EditProfileActions } from "../components/EditProfileActions";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
3
|
+
import { AtomicCard } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { useAppNavigation } from "@umituz/react-native-design-system/molecules";
|
|
5
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
3
6
|
import { AuthHeader } from "../components/AuthHeader";
|
|
4
7
|
import { LoginForm, type LoginFormTranslations } from "../components/LoginForm";
|
|
5
8
|
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { View, StyleSheet, KeyboardAvoidingView, Platform, TouchableOpacity } from 'react-native';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
AtomicText,
|
|
7
|
-
AtomicIcon,
|
|
8
|
-
SafeAreaView,
|
|
9
|
-
useAppDesignTokens
|
|
10
|
-
} from '@umituz/react-native-design-system';
|
|
3
|
+
import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
|
|
4
|
+
import { AtomicInput, AtomicButton, AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
|
|
5
|
+
import { SafeAreaView } from '@umituz/react-native-design-system/safe-area';
|
|
11
6
|
import { resolvePasswordPrompt } from '../utils/passwordPromptCallback';
|
|
12
7
|
|
|
13
8
|
export interface PasswordPromptScreenProps {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
3
|
+
import { AtomicCard } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { useAppNavigation } from "@umituz/react-native-design-system/molecules";
|
|
5
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
3
6
|
import { AuthHeader } from "../components/AuthHeader";
|
|
4
7
|
import { RegisterForm, type RegisterFormTranslations } from "../components/RegisterForm";
|
|
5
8
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* The isAnonymous flag indicates the user type, not whether user is null.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { createStore, storageService } from "@umituz/react-native-design-system";
|
|
12
|
+
import { createStore, storageService } from "@umituz/react-native-design-system/storage";
|
|
13
13
|
import { mapToAuthUser } from "../../infrastructure/utils/UserMapper";
|
|
14
14
|
import type { AuthState, AuthActions } from "../../types/auth-store.types";
|
|
15
15
|
import { initialAuthState } from "../../types/auth-store.types";
|