@onairos/react-native 3.1.12 → 3.1.14
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/README.md +403 -374
- package/lib/commonjs/api/index.js +75 -1
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
- package/lib/commonjs/assets/icons/Gmail.png +0 -0
- package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/icons/Redditicon.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/icons/farcaster.png +0 -0
- package/lib/commonjs/assets/icons/instagram.png +0 -0
- package/lib/commonjs/assets/icons/pinterest.png +0 -0
- package/lib/commonjs/assets/icons/swerv_logo.png +0 -0
- package/lib/commonjs/assets/icons/twitter.jpg +0 -0
- package/lib/commonjs/assets/images/Checkbox.svg +3 -0
- package/lib/commonjs/assets/images/EnochE.svg +19 -0
- package/lib/commonjs/assets/images/Enochicon1.png +0 -0
- package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
- package/lib/commonjs/assets/images/Facebookicon.png +0 -0
- package/lib/commonjs/assets/images/Gmail.png +0 -0
- package/lib/commonjs/assets/images/Googlelogo.png +0 -0
- package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
- package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
- package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
- package/lib/commonjs/assets/images/Redditicon.png +0 -0
- package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
- package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/images/arrow.svg +20 -0
- package/lib/commonjs/assets/images/basicproficon.svg +43 -0
- package/lib/commonjs/assets/images/basicprofile.svg +3 -0
- package/lib/commonjs/assets/images/checkmark.svg +4 -0
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
- package/lib/commonjs/assets/images/contenticon.svg +23 -0
- package/lib/commonjs/assets/images/persona1.png +0 -0
- package/lib/commonjs/assets/images/persona2.png +0 -0
- package/lib/commonjs/assets/images/persona3.png +0 -0
- package/lib/commonjs/assets/images/persona4.png +0 -0
- package/lib/commonjs/assets/images/persona5.png +0 -0
- package/lib/commonjs/assets/images/personalityicon.svg +18 -0
- package/lib/commonjs/assets/images/x-close.svg +3 -0
- package/lib/commonjs/components/BodyText.js +27 -0
- package/lib/commonjs/components/BodyText.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +44 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/CodeInput.js +30 -0
- package/lib/commonjs/components/CodeInput.js.map +1 -0
- package/lib/commonjs/components/EmailInput.js +30 -0
- package/lib/commonjs/components/EmailInput.js.map +1 -0
- package/lib/commonjs/components/ExistingUserDataConfirmation.js +474 -0
- package/lib/commonjs/components/ExistingUserDataConfirmation.js.map +1 -0
- package/lib/commonjs/components/GoogleButton.js +55 -0
- package/lib/commonjs/components/GoogleButton.js.map +1 -0
- package/lib/commonjs/components/HeadingGroup.js +43 -0
- package/lib/commonjs/components/HeadingGroup.js.map +1 -0
- package/lib/commonjs/components/ModalHeader.js +99 -0
- package/lib/commonjs/components/ModalHeader.js.map +1 -0
- package/lib/commonjs/components/ModalSheet.js +41 -0
- package/lib/commonjs/components/ModalSheet.js.map +1 -0
- package/lib/commonjs/components/Onairos.js +1 -3
- package/lib/commonjs/components/Onairos.js.map +1 -1
- package/lib/commonjs/components/OnairosButton.js +171 -190
- package/lib/commonjs/components/OnairosButton.js.map +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +169 -0
- package/lib/commonjs/components/OnairosSignInButton.js.map +1 -0
- package/lib/commonjs/components/Overlay.js +5 -5
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/PersonaImage.js +60 -0
- package/lib/commonjs/components/PersonaImage.js.map +1 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js +156 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js.map +1 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js +316 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js.map +1 -0
- package/lib/commonjs/components/PinCreationScreen.js +393 -0
- package/lib/commonjs/components/PinCreationScreen.js.map +1 -0
- package/lib/commonjs/components/PinInput.js +282 -120
- package/lib/commonjs/components/PinInput.js.map +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +828 -0
- package/lib/commonjs/components/PlatformConnectorsStep.js.map +1 -0
- package/lib/commonjs/components/PlatformToggle.js +180 -0
- package/lib/commonjs/components/PlatformToggle.js.map +1 -0
- package/lib/commonjs/components/PrimaryButton.js +180 -0
- package/lib/commonjs/components/PrimaryButton.js.map +1 -0
- package/lib/commonjs/components/SignInMatchAnimation.js +197 -0
- package/lib/commonjs/components/SignInMatchAnimation.js.map +1 -0
- package/lib/commonjs/components/SignInStep.js +179 -0
- package/lib/commonjs/components/SignInStep.js.map +1 -0
- package/lib/commonjs/components/TrainingModal.js +808 -563
- package/lib/commonjs/components/TrainingModal.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +2304 -1283
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/components/VerificationStep.js +154 -0
- package/lib/commonjs/components/VerificationStep.js.map +1 -0
- package/lib/commonjs/components/WelcomeScreen.js +385 -0
- package/lib/commonjs/components/WelcomeScreen.js.map +1 -0
- package/lib/commonjs/components/icons/Basicproficon.js +37 -0
- package/lib/commonjs/components/icons/Basicproficon.js.map +1 -0
- package/lib/commonjs/components/icons/Basicprofile.js +21 -0
- package/lib/commonjs/components/icons/Basicprofile.js.map +1 -0
- package/lib/commonjs/components/icons/Checkbox.js +21 -0
- package/lib/commonjs/components/icons/Checkbox.js.map +1 -0
- package/lib/commonjs/components/icons/Checkmark.js +27 -0
- package/lib/commonjs/components/icons/Checkmark.js.map +1 -0
- package/lib/commonjs/components/icons/Contentanalysis.js +21 -0
- package/lib/commonjs/components/icons/Contentanalysis.js.map +1 -0
- package/lib/commonjs/components/icons/Contenticon.js +39 -0
- package/lib/commonjs/components/icons/Contenticon.js.map +1 -0
- package/lib/commonjs/components/icons/EnochE.js +41 -0
- package/lib/commonjs/components/icons/EnochE.js.map +1 -0
- package/lib/commonjs/components/icons/Personalityicon.js +30 -0
- package/lib/commonjs/components/icons/Personalityicon.js.map +1 -0
- package/lib/commonjs/components/icons/Personalityprofile.js +21 -0
- package/lib/commonjs/components/icons/Personalityprofile.js.map +1 -0
- package/lib/commonjs/components/icons/Personalitytraits.js +21 -0
- package/lib/commonjs/components/icons/Personalitytraits.js.map +1 -0
- package/lib/commonjs/components/icons/Userpreferences.js +21 -0
- package/lib/commonjs/components/icons/Userpreferences.js.map +1 -0
- package/lib/commonjs/components/icons/index.js +84 -0
- package/lib/commonjs/components/icons/index.js.map +1 -0
- package/lib/commonjs/components/onboarding/OAuthWebView.js +134 -743
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/commonjs/config/api.js +34 -0
- package/lib/commonjs/config/api.js.map +1 -0
- package/lib/commonjs/context/AuthContext.js +345 -0
- package/lib/commonjs/context/AuthContext.js.map +1 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js +111 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js.map +1 -0
- package/lib/commonjs/hooks/useConnections.js +120 -125
- package/lib/commonjs/hooks/useConnections.js.map +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +148 -0
- package/lib/commonjs/hooks/useUserConnections.js.map +1 -0
- package/lib/commonjs/index.js +12 -100
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/apiClient.js +302 -0
- package/lib/commonjs/services/apiClient.js.map +1 -0
- package/lib/commonjs/services/apiKeyService.js +8 -9
- package/lib/commonjs/services/apiKeyService.js.map +1 -1
- package/lib/commonjs/services/authService.js +935 -0
- package/lib/commonjs/services/authService.js.map +1 -0
- package/lib/commonjs/services/biometricPinService.js +184 -0
- package/lib/commonjs/services/biometricPinService.js.map +1 -0
- package/lib/commonjs/services/connectedAccountsService.js +268 -0
- package/lib/commonjs/services/connectedAccountsService.js.map +1 -0
- package/lib/commonjs/services/googleAuthService.js +268 -0
- package/lib/commonjs/services/googleAuthService.js.map +1 -0
- package/lib/commonjs/services/imageCompressionService.js +260 -0
- package/lib/commonjs/services/imageCompressionService.js.map +1 -0
- package/lib/commonjs/services/jwtStorageService.js +256 -0
- package/lib/commonjs/services/jwtStorageService.js.map +1 -0
- package/lib/commonjs/services/mobileTrainingService.js +185 -0
- package/lib/commonjs/services/mobileTrainingService.js.map +1 -0
- package/lib/commonjs/services/pinEncryptionService.js +84 -0
- package/lib/commonjs/services/pinEncryptionService.js.map +1 -0
- package/lib/commonjs/services/pinStorageUtils.js +105 -0
- package/lib/commonjs/services/pinStorageUtils.js.map +1 -0
- package/lib/commonjs/services/platformAuthService.js +956 -722
- package/lib/commonjs/services/platformAuthService.js.map +1 -1
- package/lib/commonjs/services/storageService.js +404 -0
- package/lib/commonjs/services/storageService.js.map +1 -0
- package/lib/commonjs/services/trainingApiHelpers.js +73 -0
- package/lib/commonjs/services/trainingApiHelpers.js.map +1 -0
- package/lib/commonjs/services/userConnectionsService.js +486 -0
- package/lib/commonjs/services/userConnectionsService.js.map +1 -0
- package/lib/commonjs/services/youtubeMigrationService.js +415 -0
- package/lib/commonjs/services/youtubeMigrationService.js.map +1 -0
- package/lib/commonjs/theme/index.js +249 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/utils/eventUtils.js +288 -0
- package/lib/commonjs/utils/eventUtils.js.map +1 -0
- package/lib/commonjs/utils/haptics.js +66 -0
- package/lib/commonjs/utils/haptics.js.map +1 -0
- package/lib/commonjs/utils/imagePreloader.js +6 -0
- package/lib/commonjs/utils/imagePreloader.js.map +1 -0
- package/lib/module/api/index.js +72 -0
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/module/assets/icons/Facebookicon.png +0 -0
- package/lib/module/assets/icons/Gmail.png +0 -0
- package/lib/module/assets/icons/Linkedinicon.png +0 -0
- package/lib/module/assets/icons/Redditicon.png +0 -0
- package/lib/module/assets/icons/YouTubeicon2.png +0 -0
- package/lib/module/assets/icons/YouTubeicon3.png +0 -0
- package/lib/module/assets/icons/farcaster.png +0 -0
- package/lib/module/assets/icons/instagram.png +0 -0
- package/lib/module/assets/icons/pinterest.png +0 -0
- package/lib/module/assets/icons/swerv_logo.png +0 -0
- package/lib/module/assets/icons/twitter.jpg +0 -0
- package/lib/module/assets/images/Checkbox.svg +3 -0
- package/lib/module/assets/images/EnochE.svg +19 -0
- package/lib/module/assets/images/Enochicon1.png +0 -0
- package/lib/module/assets/images/Face_ID_logo.png +0 -0
- package/lib/module/assets/images/Facebookicon.png +0 -0
- package/lib/module/assets/images/Gmail.png +0 -0
- package/lib/module/assets/images/Googlelogo.png +0 -0
- package/lib/module/assets/images/Linkedinicon.png +0 -0
- package/lib/module/assets/images/Onairoslogo.png +0 -0
- package/lib/module/assets/images/Personalityprofile.svg +3 -0
- package/lib/module/assets/images/Personalitytraits.svg +3 -0
- package/lib/module/assets/images/Redditicon.png +0 -0
- package/lib/module/assets/images/Userpreferences.svg +3 -0
- package/lib/module/assets/images/YouTubeicon3.png +0 -0
- package/lib/module/assets/images/arrow.svg +20 -0
- package/lib/module/assets/images/basicproficon.svg +43 -0
- package/lib/module/assets/images/basicprofile.svg +3 -0
- package/lib/module/assets/images/checkmark.svg +4 -0
- package/lib/module/assets/images/contentanalysis.svg +3 -0
- package/lib/module/assets/images/contenticon.svg +23 -0
- package/lib/module/assets/images/persona1.png +0 -0
- package/lib/module/assets/images/persona2.png +0 -0
- package/lib/module/assets/images/persona3.png +0 -0
- package/lib/module/assets/images/persona4.png +0 -0
- package/lib/module/assets/images/persona5.png +0 -0
- package/lib/module/assets/images/personalityicon.svg +18 -0
- package/lib/module/assets/images/x-close.svg +3 -0
- package/lib/module/components/BodyText.js +20 -0
- package/lib/module/components/BodyText.js.map +1 -0
- package/lib/module/components/BrandMark.js +37 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/CodeInput.js +23 -0
- package/lib/module/components/CodeInput.js.map +1 -0
- package/lib/module/components/EmailInput.js +23 -0
- package/lib/module/components/EmailInput.js.map +1 -0
- package/lib/module/components/ExistingUserDataConfirmation.js +465 -0
- package/lib/module/components/ExistingUserDataConfirmation.js.map +1 -0
- package/lib/module/components/GoogleButton.js +48 -0
- package/lib/module/components/GoogleButton.js.map +1 -0
- package/lib/module/components/HeadingGroup.js +36 -0
- package/lib/module/components/HeadingGroup.js.map +1 -0
- package/lib/module/components/ModalHeader.js +92 -0
- package/lib/module/components/ModalHeader.js.map +1 -0
- package/lib/module/components/ModalSheet.js +34 -0
- package/lib/module/components/ModalSheet.js.map +1 -0
- package/lib/module/components/Onairos.js +1 -3
- package/lib/module/components/Onairos.js.map +1 -1
- package/lib/module/components/OnairosButton.js +172 -192
- package/lib/module/components/OnairosButton.js.map +1 -1
- package/lib/module/components/OnairosSignInButton.js +160 -0
- package/lib/module/components/OnairosSignInButton.js.map +1 -0
- package/lib/module/components/Overlay.js +5 -5
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/PersonaImage.js +53 -0
- package/lib/module/components/PersonaImage.js.map +1 -0
- package/lib/module/components/PersonaLoadingScreen.js +148 -0
- package/lib/module/components/PersonaLoadingScreen.js.map +1 -0
- package/lib/module/components/PersonalizationConsentScreen.js +309 -0
- package/lib/module/components/PersonalizationConsentScreen.js.map +1 -0
- package/lib/module/components/PinCreationScreen.js +386 -0
- package/lib/module/components/PinCreationScreen.js.map +1 -0
- package/lib/module/components/PinInput.js +283 -120
- package/lib/module/components/PinInput.js.map +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +820 -0
- package/lib/module/components/PlatformConnectorsStep.js.map +1 -0
- package/lib/module/components/PlatformToggle.js +173 -0
- package/lib/module/components/PlatformToggle.js.map +1 -0
- package/lib/module/components/PrimaryButton.js +172 -0
- package/lib/module/components/PrimaryButton.js.map +1 -0
- package/lib/module/components/SignInMatchAnimation.js +189 -0
- package/lib/module/components/SignInMatchAnimation.js.map +1 -0
- package/lib/module/components/SignInStep.js +171 -0
- package/lib/module/components/SignInStep.js.map +1 -0
- package/lib/module/components/TrainingModal.js +809 -565
- package/lib/module/components/TrainingModal.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +2307 -1284
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/components/VerificationStep.js +146 -0
- package/lib/module/components/VerificationStep.js.map +1 -0
- package/lib/module/components/WelcomeScreen.js +378 -0
- package/lib/module/components/WelcomeScreen.js.map +1 -0
- package/lib/module/components/icons/Basicproficon.js +30 -0
- package/lib/module/components/icons/Basicproficon.js.map +1 -0
- package/lib/module/components/icons/Basicprofile.js +14 -0
- package/lib/module/components/icons/Basicprofile.js.map +1 -0
- package/lib/module/components/icons/Checkbox.js +14 -0
- package/lib/module/components/icons/Checkbox.js.map +1 -0
- package/lib/module/components/icons/Checkmark.js +20 -0
- package/lib/module/components/icons/Checkmark.js.map +1 -0
- package/lib/module/components/icons/Contentanalysis.js +14 -0
- package/lib/module/components/icons/Contentanalysis.js.map +1 -0
- package/lib/module/components/icons/Contenticon.js +32 -0
- package/lib/module/components/icons/Contenticon.js.map +1 -0
- package/lib/module/components/icons/EnochE.js +34 -0
- package/lib/module/components/icons/EnochE.js.map +1 -0
- package/lib/module/components/icons/Personalityicon.js +23 -0
- package/lib/module/components/icons/Personalityicon.js.map +1 -0
- package/lib/module/components/icons/Personalityprofile.js +14 -0
- package/lib/module/components/icons/Personalityprofile.js.map +1 -0
- package/lib/module/components/icons/Personalitytraits.js +14 -0
- package/lib/module/components/icons/Personalitytraits.js.map +1 -0
- package/lib/module/components/icons/Userpreferences.js +14 -0
- package/lib/module/components/icons/Userpreferences.js.map +1 -0
- package/lib/module/components/icons/index.js +13 -0
- package/lib/module/components/icons/index.js.map +1 -0
- package/lib/module/components/onboarding/OAuthWebView.js +136 -744
- package/lib/module/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/module/config/api.js +26 -0
- package/lib/module/config/api.js.map +1 -0
- package/lib/module/context/AuthContext.js +335 -0
- package/lib/module/context/AuthContext.js.map +1 -0
- package/lib/module/hooks/useConnectedAccounts.js +106 -0
- package/lib/module/hooks/useConnectedAccounts.js.map +1 -0
- package/lib/module/hooks/useConnections.js +119 -125
- package/lib/module/hooks/useConnections.js.map +1 -1
- package/lib/module/hooks/useUserConnections.js +140 -0
- package/lib/module/hooks/useUserConnections.js.map +1 -0
- package/lib/module/index.js +51 -15
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/apiClient.js +298 -0
- package/lib/module/services/apiClient.js.map +1 -0
- package/lib/module/services/apiKeyService.js +8 -9
- package/lib/module/services/apiKeyService.js.map +1 -1
- package/lib/module/services/authService.js +905 -0
- package/lib/module/services/authService.js.map +1 -0
- package/lib/module/services/biometricPinService.js +173 -0
- package/lib/module/services/biometricPinService.js.map +1 -0
- package/lib/module/services/connectedAccountsService.js +255 -0
- package/lib/module/services/connectedAccountsService.js.map +1 -0
- package/lib/module/services/googleAuthService.js +258 -0
- package/lib/module/services/googleAuthService.js.map +1 -0
- package/lib/module/services/imageCompressionService.js +250 -0
- package/lib/module/services/imageCompressionService.js.map +1 -0
- package/lib/module/services/jwtStorageService.js +239 -0
- package/lib/module/services/jwtStorageService.js.map +1 -0
- package/lib/module/services/mobileTrainingService.js +172 -0
- package/lib/module/services/mobileTrainingService.js.map +1 -0
- package/lib/module/services/pinEncryptionService.js +75 -0
- package/lib/module/services/pinEncryptionService.js.map +1 -0
- package/lib/module/services/pinStorageUtils.js +93 -0
- package/lib/module/services/pinStorageUtils.js.map +1 -0
- package/lib/module/services/platformAuthService.js +943 -704
- package/lib/module/services/platformAuthService.js.map +1 -1
- package/lib/module/services/storageService.js +383 -0
- package/lib/module/services/storageService.js.map +1 -0
- package/lib/module/services/trainingApiHelpers.js +67 -0
- package/lib/module/services/trainingApiHelpers.js.map +1 -0
- package/lib/module/services/userConnectionsService.js +476 -0
- package/lib/module/services/userConnectionsService.js.map +1 -0
- package/lib/module/services/youtubeMigrationService.js +404 -0
- package/lib/module/services/youtubeMigrationService.js.map +1 -0
- package/lib/module/theme/index.js +244 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/utils/eventUtils.js +270 -0
- package/lib/module/utils/eventUtils.js.map +1 -0
- package/lib/module/utils/haptics.js +59 -0
- package/lib/module/utils/haptics.js.map +1 -0
- package/lib/module/utils/imagePreloader.js +3 -0
- package/lib/module/utils/imagePreloader.js.map +1 -0
- package/lib/typescript/api/index.d.ts +8 -0
- package/lib/typescript/api/index.d.ts.map +1 -1
- package/lib/typescript/components/BodyText.d.ts +10 -0
- package/lib/typescript/components/BodyText.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +11 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/CodeInput.d.ts +10 -0
- package/lib/typescript/components/CodeInput.d.ts.map +1 -0
- package/lib/typescript/components/EmailInput.d.ts +8 -0
- package/lib/typescript/components/EmailInput.d.ts.map +1 -0
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts +12 -0
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts.map +1 -0
- package/lib/typescript/components/GoogleButton.d.ts +11 -0
- package/lib/typescript/components/GoogleButton.d.ts.map +1 -0
- package/lib/typescript/components/HeadingGroup.d.ts +11 -0
- package/lib/typescript/components/HeadingGroup.d.ts.map +1 -0
- package/lib/typescript/components/ModalHeader.d.ts +11 -0
- package/lib/typescript/components/ModalHeader.d.ts.map +1 -0
- package/lib/typescript/components/ModalSheet.d.ts +13 -0
- package/lib/typescript/components/ModalSheet.d.ts.map +1 -0
- package/lib/typescript/components/Onairos.d.ts.map +1 -1
- package/lib/typescript/components/OnairosButton.d.ts +29 -4
- package/lib/typescript/components/OnairosButton.d.ts.map +1 -1
- package/lib/typescript/components/OnairosSignInButton.d.ts +14 -0
- package/lib/typescript/components/OnairosSignInButton.d.ts.map +1 -0
- package/lib/typescript/components/PersonaImage.d.ts +8 -0
- package/lib/typescript/components/PersonaImage.d.ts.map +1 -0
- package/lib/typescript/components/PersonaLoadingScreen.d.ts +10 -0
- package/lib/typescript/components/PersonaLoadingScreen.d.ts.map +1 -0
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts +10 -0
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts.map +1 -0
- package/lib/typescript/components/PinCreationScreen.d.ts +10 -0
- package/lib/typescript/components/PinCreationScreen.d.ts.map +1 -0
- package/lib/typescript/components/PinInput.d.ts +11 -1
- package/lib/typescript/components/PinInput.d.ts.map +1 -1
- package/lib/typescript/components/PlatformConnectorsStep.d.ts +11 -0
- package/lib/typescript/components/PlatformConnectorsStep.d.ts.map +1 -0
- package/lib/typescript/components/PlatformToggle.d.ts +20 -0
- package/lib/typescript/components/PlatformToggle.d.ts.map +1 -0
- package/lib/typescript/components/PrimaryButton.d.ts +22 -0
- package/lib/typescript/components/PrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/SignInMatchAnimation.d.ts +9 -0
- package/lib/typescript/components/SignInMatchAnimation.d.ts.map +1 -0
- package/lib/typescript/components/SignInStep.d.ts +12 -0
- package/lib/typescript/components/SignInStep.d.ts.map +1 -0
- package/lib/typescript/components/TrainingModal.d.ts +12 -1
- package/lib/typescript/components/TrainingModal.d.ts.map +1 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts +14 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +1 -1
- package/lib/typescript/components/VerificationStep.d.ts +13 -0
- package/lib/typescript/components/VerificationStep.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeScreen.d.ts +9 -0
- package/lib/typescript/components/WelcomeScreen.d.ts.map +1 -0
- package/lib/typescript/components/icons/Basicproficon.d.ts +5 -0
- package/lib/typescript/components/icons/Basicproficon.d.ts.map +1 -0
- package/lib/typescript/components/icons/Basicprofile.d.ts +5 -0
- package/lib/typescript/components/icons/Basicprofile.d.ts.map +1 -0
- package/lib/typescript/components/icons/Checkbox.d.ts +5 -0
- package/lib/typescript/components/icons/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/icons/Checkmark.d.ts +5 -0
- package/lib/typescript/components/icons/Checkmark.d.ts.map +1 -0
- package/lib/typescript/components/icons/Contentanalysis.d.ts +5 -0
- package/lib/typescript/components/icons/Contentanalysis.d.ts.map +1 -0
- package/lib/typescript/components/icons/Contenticon.d.ts +5 -0
- package/lib/typescript/components/icons/Contenticon.d.ts.map +1 -0
- package/lib/typescript/components/icons/EnochE.d.ts +5 -0
- package/lib/typescript/components/icons/EnochE.d.ts.map +1 -0
- package/lib/typescript/components/icons/Personalityicon.d.ts +5 -0
- package/lib/typescript/components/icons/Personalityicon.d.ts.map +1 -0
- package/lib/typescript/components/icons/Personalityprofile.d.ts +5 -0
- package/lib/typescript/components/icons/Personalityprofile.d.ts.map +1 -0
- package/lib/typescript/components/icons/Personalitytraits.d.ts +5 -0
- package/lib/typescript/components/icons/Personalitytraits.d.ts.map +1 -0
- package/lib/typescript/components/icons/Userpreferences.d.ts +5 -0
- package/lib/typescript/components/icons/Userpreferences.d.ts.map +1 -0
- package/lib/typescript/components/icons/index.d.ts +12 -0
- package/lib/typescript/components/icons/index.d.ts.map +1 -0
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +1 -1
- package/lib/typescript/config/api.d.ts +24 -0
- package/lib/typescript/config/api.d.ts.map +1 -0
- package/lib/typescript/context/AuthContext.d.ts +34 -0
- package/lib/typescript/context/AuthContext.d.ts.map +1 -0
- package/lib/typescript/hooks/useConnectedAccounts.d.ts +11 -0
- package/lib/typescript/hooks/useConnectedAccounts.d.ts.map +1 -0
- package/lib/typescript/hooks/useConnections.d.ts +10 -5
- package/lib/typescript/hooks/useConnections.d.ts.map +1 -1
- package/lib/typescript/hooks/useUserConnections.d.ts +12 -0
- package/lib/typescript/hooks/useUserConnections.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +24 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/services/apiClient.d.ts +91 -0
- package/lib/typescript/services/apiClient.d.ts.map +1 -0
- package/lib/typescript/services/apiKeyService.d.ts.map +1 -1
- package/lib/typescript/services/authService.d.ts +216 -0
- package/lib/typescript/services/authService.d.ts.map +1 -0
- package/lib/typescript/services/biometricPinService.d.ts +29 -0
- package/lib/typescript/services/biometricPinService.d.ts.map +1 -0
- package/lib/typescript/services/connectedAccountsService.d.ts +56 -0
- package/lib/typescript/services/connectedAccountsService.d.ts.map +1 -0
- package/lib/typescript/services/googleAuthService.d.ts +63 -0
- package/lib/typescript/services/googleAuthService.d.ts.map +1 -0
- package/lib/typescript/services/imageCompressionService.d.ts +37 -0
- package/lib/typescript/services/imageCompressionService.d.ts.map +1 -0
- package/lib/typescript/services/jwtStorageService.d.ts +86 -0
- package/lib/typescript/services/jwtStorageService.d.ts.map +1 -0
- package/lib/typescript/services/mobileTrainingService.d.ts +45 -0
- package/lib/typescript/services/mobileTrainingService.d.ts.map +1 -0
- package/lib/typescript/services/pinEncryptionService.d.ts +17 -0
- package/lib/typescript/services/pinEncryptionService.d.ts.map +1 -0
- package/lib/typescript/services/pinStorageUtils.d.ts +25 -0
- package/lib/typescript/services/pinStorageUtils.d.ts.map +1 -0
- package/lib/typescript/services/platformAuthService.d.ts +34 -109
- package/lib/typescript/services/platformAuthService.d.ts.map +1 -1
- package/lib/typescript/services/storageService.d.ts +128 -0
- package/lib/typescript/services/storageService.d.ts.map +1 -0
- package/lib/typescript/services/trainingApiHelpers.d.ts +38 -0
- package/lib/typescript/services/trainingApiHelpers.d.ts.map +1 -0
- package/lib/typescript/services/userConnectionsService.d.ts +90 -0
- package/lib/typescript/services/userConnectionsService.d.ts.map +1 -0
- package/lib/typescript/services/youtubeMigrationService.d.ts +12 -0
- package/lib/typescript/services/youtubeMigrationService.d.ts.map +1 -0
- package/lib/typescript/theme/index.d.ts +416 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +39 -0
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/utils/eventUtils.d.ts +108 -0
- package/lib/typescript/utils/eventUtils.d.ts.map +1 -0
- package/lib/typescript/utils/haptics.d.ts +11 -0
- package/lib/typescript/utils/haptics.d.ts.map +1 -0
- package/lib/typescript/utils/imagePreloader.d.ts +2 -0
- package/lib/typescript/utils/imagePreloader.d.ts.map +1 -0
- package/package.json +163 -145
- package/src/api/index.ts +41 -0
- package/src/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/src/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/src/assets/icons/Facebookicon.png +0 -0
- package/src/assets/icons/Gmail.png +0 -0
- package/src/assets/icons/Linkedinicon.png +0 -0
- package/src/assets/icons/Redditicon.png +0 -0
- package/src/assets/icons/YouTubeicon2.png +0 -0
- package/src/assets/icons/YouTubeicon3.png +0 -0
- package/src/assets/icons/farcaster.png +0 -0
- package/src/assets/icons/instagram.png +0 -0
- package/src/assets/icons/pinterest.png +0 -0
- package/src/assets/icons/swerv_logo.png +0 -0
- package/src/assets/icons/twitter.jpg +0 -0
- package/src/assets/images/Checkbox.svg +3 -0
- package/src/assets/images/EnochE.svg +19 -0
- package/src/assets/images/Enochicon1.png +0 -0
- package/src/assets/images/Face_ID_logo.png +0 -0
- package/src/assets/images/Facebookicon.png +0 -0
- package/src/assets/images/Gmail.png +0 -0
- package/src/assets/images/Googlelogo.png +0 -0
- package/src/assets/images/Linkedinicon.png +0 -0
- package/src/assets/images/Onairoslogo.png +0 -0
- package/src/assets/images/Personalityprofile.svg +3 -0
- package/src/assets/images/Personalitytraits.svg +3 -0
- package/src/assets/images/Redditicon.png +0 -0
- package/src/assets/images/Userpreferences.svg +3 -0
- package/src/assets/images/YouTubeicon3.png +0 -0
- package/src/assets/images/arrow.svg +20 -0
- package/src/assets/images/basicproficon.svg +43 -0
- package/src/assets/images/basicprofile.svg +3 -0
- package/src/assets/images/checkmark.svg +4 -0
- package/src/assets/images/contentanalysis.svg +3 -0
- package/src/assets/images/contenticon.svg +23 -0
- package/src/assets/images/persona1.png +0 -0
- package/src/assets/images/persona2.png +0 -0
- package/src/assets/images/persona3.png +0 -0
- package/src/assets/images/persona4.png +0 -0
- package/src/assets/images/persona5.png +0 -0
- package/src/assets/images/personalityicon.svg +18 -0
- package/src/assets/images/x-close.svg +3 -0
- package/src/components/BodyText.tsx +33 -0
- package/src/components/BrandMark.tsx +62 -0
- package/src/components/CodeInput.tsx +32 -0
- package/src/components/EmailInput.tsx +31 -0
- package/src/components/ExistingUserDataConfirmation.tsx +507 -0
- package/src/components/GoogleButton.tsx +55 -0
- package/src/components/HeadingGroup.tsx +49 -0
- package/src/components/ModalHeader.tsx +125 -0
- package/src/components/ModalSheet.tsx +57 -0
- package/src/components/Onairos.tsx +422 -424
- package/src/components/OnairosButton.tsx +339 -359
- package/src/components/OnairosSignInButton.tsx +166 -0
- package/src/components/Overlay.tsx +506 -506
- package/src/components/PersonaImage.tsx +79 -0
- package/src/components/PersonaLoadingScreen.tsx +201 -0
- package/src/components/PersonalizationConsentScreen.tsx +410 -0
- package/src/components/PinCreationScreen.tsx +492 -0
- package/src/components/PinInput.tsx +555 -343
- package/src/components/PlatformConnectorsStep.tsx +892 -0
- package/src/components/PlatformToggle.tsx +226 -0
- package/src/components/PrimaryButton.tsx +214 -0
- package/src/components/SignInMatchAnimation.tsx +225 -0
- package/src/components/SignInStep.tsx +217 -0
- package/src/components/TrainingModal.tsx +1047 -737
- package/src/components/UniversalOnboarding.tsx +2888 -1820
- package/src/components/VerificationStep.tsx +198 -0
- package/src/components/WelcomeScreen.tsx +473 -0
- package/src/components/icons/Basicproficon.tsx +30 -0
- package/src/components/icons/Basicprofile.tsx +17 -0
- package/src/components/icons/Checkbox.tsx +17 -0
- package/src/components/icons/Checkmark.tsx +24 -0
- package/src/components/icons/Contentanalysis.tsx +17 -0
- package/src/components/icons/Contenticon.tsx +30 -0
- package/src/components/icons/EnochE.tsx +39 -0
- package/src/components/icons/Personalityicon.tsx +22 -0
- package/src/components/icons/Personalityprofile.tsx +17 -0
- package/src/components/icons/Personalitytraits.tsx +17 -0
- package/src/components/icons/Userpreferences.tsx +17 -0
- package/src/components/icons/index.ts +12 -0
- package/src/components/onboarding/OAuthWebView.tsx +232 -838
- package/src/config/api.ts +25 -0
- package/src/context/AuthContext.tsx +393 -0
- package/src/hooks/useConnectedAccounts.ts +139 -0
- package/src/hooks/useConnections.ts +129 -131
- package/src/hooks/useUserConnections.ts +166 -0
- package/src/index.ts +94 -49
- package/src/services/apiClient.ts +337 -0
- package/src/services/apiKeyService.ts +9 -11
- package/src/services/authService.ts +1008 -0
- package/src/services/biometricPinService.ts +193 -0
- package/src/services/connectedAccountsService.ts +290 -0
- package/src/services/googleAuthService.ts +279 -0
- package/src/services/imageCompressionService.ts +303 -0
- package/src/services/jwtStorageService.ts +257 -0
- package/src/services/mobileTrainingService.ts +204 -0
- package/src/services/pinEncryptionService.ts +76 -0
- package/src/services/pinStorageUtils.ts +97 -0
- package/src/services/platformAuthService.ts +1346 -1113
- package/src/services/storageService.ts +452 -0
- package/src/services/trainingApiHelpers.ts +67 -0
- package/src/services/userConnectionsService.ts +557 -0
- package/src/services/youtubeMigrationService.ts +454 -0
- package/src/theme/index.ts +239 -0
- package/src/types/index.ts +265 -238
- package/src/utils/eventUtils.ts +303 -0
- package/src/utils/haptics.ts +59 -0
- package/src/utils/imagePreloader.ts +2 -0
- package/lib/commonjs/assets/images/email.png +0 -0
- package/lib/commonjs/assets/images/linkedin.png +0 -0
- package/lib/commonjs/assets/images/reddit.png +0 -0
- package/lib/commonjs/assets/images/youtube.png +0 -0
- package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/module/assets/images/email.png +0 -0
- package/lib/module/assets/images/linkedin.png +0 -0
- package/lib/module/assets/images/reddit.png +0 -0
- package/lib/module/assets/images/youtube.png +0 -0
- package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
- package/src/assets/images/email.png +0 -0
- package/src/assets/images/linkedin.png +0 -0
- package/src/assets/images/reddit.png +0 -0
- package/src/assets/images/youtube.png +0 -0
- package/src/components/UniversalOnboarding.tsx.new +0 -455
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.PinCreationScreen = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _theme = require("../theme");
|
|
10
|
+
var _haptics = require("../utils/haptics");
|
|
11
|
+
var _biometricPinService = require("../services/biometricPinService");
|
|
12
|
+
var _pinStorageUtils = require("../services/pinStorageUtils");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
const PinCreationScreen = ({
|
|
15
|
+
visible,
|
|
16
|
+
onComplete,
|
|
17
|
+
onBack
|
|
18
|
+
}) => {
|
|
19
|
+
const [pin, setPin] = (0, _react.useState)('');
|
|
20
|
+
const [requirements, setRequirements] = (0, _react.useState)({
|
|
21
|
+
length: false,
|
|
22
|
+
uppercase: false,
|
|
23
|
+
number: false
|
|
24
|
+
});
|
|
25
|
+
const [isLoading, setIsLoading] = (0, _react.useState)(false);
|
|
26
|
+
const [biometricAvailable, setBiometricAvailable] = (0, _react.useState)(false);
|
|
27
|
+
const [biometricStatus, setBiometricStatus] = (0, _react.useState)('checking');
|
|
28
|
+
const validatePin = pinText => {
|
|
29
|
+
const newRequirements = {
|
|
30
|
+
length: pinText.length >= 6,
|
|
31
|
+
uppercase: /[A-Z]/.test(pinText),
|
|
32
|
+
number: /[0-9]/.test(pinText)
|
|
33
|
+
};
|
|
34
|
+
setRequirements(newRequirements);
|
|
35
|
+
return Object.values(newRequirements).every(req => req);
|
|
36
|
+
};
|
|
37
|
+
const handlePinChange = text => {
|
|
38
|
+
setPin(text);
|
|
39
|
+
validatePin(text);
|
|
40
|
+
};
|
|
41
|
+
const handleContinue = async () => {
|
|
42
|
+
if (!validatePin(pin)) {
|
|
43
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
44
|
+
_reactNative.Alert.alert('Invalid PIN', 'Please ensure your PIN meets all requirements.');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
48
|
+
setIsLoading(true);
|
|
49
|
+
try {
|
|
50
|
+
console.log('🔐 Starting PIN creation process...');
|
|
51
|
+
|
|
52
|
+
// Store PIN temporarily for the onboarding flow first
|
|
53
|
+
(0, _pinStorageUtils.setTemporaryPin)(pin);
|
|
54
|
+
console.log('📝 PIN stored temporarily for onboarding');
|
|
55
|
+
|
|
56
|
+
// If biometric is available, immediately trigger Face ID authentication
|
|
57
|
+
if (biometricAvailable) {
|
|
58
|
+
setBiometricStatus('storing');
|
|
59
|
+
console.log('🔐 [PIN CREATION] Biometric storage enabled, starting biometric flow...');
|
|
60
|
+
|
|
61
|
+
// Double-check biometric availability right before triggering
|
|
62
|
+
const biometricStillAvailable = await _biometricPinService.biometricPinService.isBiometricAvailable();
|
|
63
|
+
console.log('📱 [PIN CREATION] Biometric available before storage:', biometricStillAvailable);
|
|
64
|
+
if (!biometricStillAvailable) {
|
|
65
|
+
console.error('❌ [PIN CREATION] Face ID not available on this device');
|
|
66
|
+
setBiometricStatus('unavailable');
|
|
67
|
+
setIsLoading(false);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Immediately attempt to store PIN with biometric authentication
|
|
72
|
+
console.log('🔐 [PIN CREATION] Triggering biometric authentication for PIN storage...');
|
|
73
|
+
|
|
74
|
+
// This will immediately show the Face ID prompt
|
|
75
|
+
const stored = await _biometricPinService.biometricPinService.storePinWithBiometric(pin);
|
|
76
|
+
if (stored) {
|
|
77
|
+
console.log('✅ PIN stored successfully with Face ID');
|
|
78
|
+
|
|
79
|
+
// Verify the PIN was actually stored by checking if it can be retrieved
|
|
80
|
+
const isStored = await _biometricPinService.biometricPinService.isPinStored();
|
|
81
|
+
if (isStored) {
|
|
82
|
+
console.log('✅ PIN storage verified - proceeding with onboarding');
|
|
83
|
+
setBiometricStatus('success');
|
|
84
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.SUCCESS);
|
|
85
|
+
|
|
86
|
+
// Brief success state, then continue
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
setIsLoading(false);
|
|
89
|
+
onComplete(pin);
|
|
90
|
+
}, 800);
|
|
91
|
+
} else {
|
|
92
|
+
console.error('❌ PIN storage verification failed');
|
|
93
|
+
setBiometricStatus('error');
|
|
94
|
+
setIsLoading(false);
|
|
95
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
96
|
+
_reactNative.Alert.alert('PIN Storage Error', 'PIN storage verification failed. Please try again.', [{
|
|
97
|
+
text: 'OK'
|
|
98
|
+
}]);
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
console.log('⚠️ Face ID authentication was cancelled or failed');
|
|
102
|
+
setBiometricStatus('error');
|
|
103
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
104
|
+
|
|
105
|
+
// Show error but still allow continuation
|
|
106
|
+
_reactNative.Alert.alert('Face ID Setup', 'Face ID authentication was cancelled or failed. Your PIN is still saved securely.', [{
|
|
107
|
+
text: 'Try Again',
|
|
108
|
+
onPress: () => {
|
|
109
|
+
setIsLoading(false);
|
|
110
|
+
setBiometricStatus('available');
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
text: 'Continue Without Face ID',
|
|
114
|
+
onPress: () => {
|
|
115
|
+
setIsLoading(false);
|
|
116
|
+
onComplete(pin);
|
|
117
|
+
}
|
|
118
|
+
}]);
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
console.log('📱 Biometric not available, continuing without Face ID');
|
|
122
|
+
setBiometricStatus('unavailable');
|
|
123
|
+
setIsLoading(false);
|
|
124
|
+
onComplete(pin);
|
|
125
|
+
}
|
|
126
|
+
} catch (error) {
|
|
127
|
+
console.error('❌ Error in PIN creation process:', error);
|
|
128
|
+
setBiometricStatus('error');
|
|
129
|
+
setIsLoading(false);
|
|
130
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
131
|
+
_reactNative.Alert.alert('PIN Creation Error', 'There was an issue creating your PIN. Please try again.', [{
|
|
132
|
+
text: 'OK'
|
|
133
|
+
}]);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const handleBack = () => {
|
|
137
|
+
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
138
|
+
onBack();
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
// Check biometric availability on component mount
|
|
142
|
+
(0, _react.useEffect)(() => {
|
|
143
|
+
const checkBiometric = async () => {
|
|
144
|
+
try {
|
|
145
|
+
setBiometricStatus('checking');
|
|
146
|
+
const available = await _biometricPinService.biometricPinService.isBiometricAvailable();
|
|
147
|
+
setBiometricAvailable(available);
|
|
148
|
+
setBiometricStatus(available ? 'available' : 'unavailable');
|
|
149
|
+
console.log('📱 Biometric availability check:', available);
|
|
150
|
+
} catch (error) {
|
|
151
|
+
console.error('❌ Error checking biometric availability:', error);
|
|
152
|
+
setBiometricAvailable(false);
|
|
153
|
+
setBiometricStatus('unavailable');
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
if (visible) {
|
|
157
|
+
checkBiometric();
|
|
158
|
+
}
|
|
159
|
+
}, [visible]);
|
|
160
|
+
const allRequirementsMet = Object.values(requirements).every(req => req);
|
|
161
|
+
if (!visible) return null;
|
|
162
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
163
|
+
style: styles.container
|
|
164
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
165
|
+
style: styles.titleContainer
|
|
166
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
167
|
+
style: styles.title
|
|
168
|
+
}, "Create a PIN"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
169
|
+
style: styles.subtitle
|
|
170
|
+
}, "A PIN so only you have access to your data.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
171
|
+
style: styles.pinContainer
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
173
|
+
style: styles.pinInput,
|
|
174
|
+
value: pin,
|
|
175
|
+
onChangeText: handlePinChange,
|
|
176
|
+
placeholder: "Enter your PIN",
|
|
177
|
+
secureTextEntry: true,
|
|
178
|
+
autoFocus: true,
|
|
179
|
+
maxLength: 20
|
|
180
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
181
|
+
style: styles.requirementsContainer
|
|
182
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
183
|
+
style: styles.requirementsTitle
|
|
184
|
+
}, "Your PIN must:"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
185
|
+
style: styles.requirementItem
|
|
186
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
187
|
+
style: [styles.checkbox, requirements.length && styles.checkboxChecked]
|
|
188
|
+
}, requirements.length && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
189
|
+
style: styles.checkmark
|
|
190
|
+
}, "\u2713")), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
191
|
+
style: [styles.requirementText, requirements.length && styles.requirementTextMet]
|
|
192
|
+
}, "Be at least 6 characters in length.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
193
|
+
style: styles.requirementItem
|
|
194
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
195
|
+
style: [styles.checkbox, requirements.uppercase && styles.checkboxChecked]
|
|
196
|
+
}, requirements.uppercase && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
197
|
+
style: styles.checkmark
|
|
198
|
+
}, "\u2713")), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
199
|
+
style: [styles.requirementText, requirements.uppercase && styles.requirementTextMet]
|
|
200
|
+
}, "Contain an uppercase letter.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
201
|
+
style: styles.requirementItem
|
|
202
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
203
|
+
style: [styles.checkbox, requirements.number && styles.checkboxChecked]
|
|
204
|
+
}, requirements.number && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
205
|
+
style: styles.checkmark
|
|
206
|
+
}, "\u2713")), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
207
|
+
style: [styles.requirementText, requirements.number && styles.requirementTextMet]
|
|
208
|
+
}, "Contain a number."))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
209
|
+
style: [styles.securityCard, biometricStatus === 'success' && styles.securityCardSuccess, biometricStatus === 'error' && styles.securityCardError]
|
|
210
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
211
|
+
style: styles.securityIconContainer
|
|
212
|
+
}, biometricStatus === 'checking' && /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
213
|
+
size: "small",
|
|
214
|
+
color: _theme.COLORS.grey600
|
|
215
|
+
}), biometricStatus === 'storing' && /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
216
|
+
size: "small",
|
|
217
|
+
color: "#D4A536"
|
|
218
|
+
}), biometricStatus === 'available' && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
219
|
+
style: styles.securityIcon
|
|
220
|
+
}, "\uD83D\uDD10"), biometricStatus === 'unavailable' && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
221
|
+
style: styles.securityIcon
|
|
222
|
+
}, "\u26A0\uFE0F"), biometricStatus === 'success' && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
223
|
+
style: styles.securityIcon
|
|
224
|
+
}, "\u2705"), biometricStatus === 'error' && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
225
|
+
style: styles.securityIcon
|
|
226
|
+
}, "\u274C")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
227
|
+
style: styles.securityTextContainer
|
|
228
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
229
|
+
style: styles.securityTitle
|
|
230
|
+
}, biometricStatus === 'checking' && 'Checking Face ID...', biometricStatus === 'available' && 'Enhanced Security', biometricStatus === 'unavailable' && 'Face ID Unavailable', biometricStatus === 'storing' && 'Securing with Face ID...', biometricStatus === 'success' && 'PIN Secured with Face ID', biometricStatus === 'error' && 'Face ID Setup Failed'), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
231
|
+
style: styles.securityDescription
|
|
232
|
+
}, biometricStatus === 'checking' && 'Verifying Face ID availability on your device.', biometricStatus === 'available' && 'We use Face ID to ensure only you can access your data.', biometricStatus === 'unavailable' && 'Face ID is not available on this device. Your PIN will be stored securely.', biometricStatus === 'storing' && 'Please authenticate with Face ID to secure your PIN.', biometricStatus === 'success' && 'Your PIN is now protected with Face ID authentication.', biometricStatus === 'error' && 'Face ID setup failed, but your PIN is stored securely.'))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
233
|
+
style: styles.buttonContainer
|
|
234
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
235
|
+
style: [styles.continueButton, allRequirementsMet && styles.continueButtonActive],
|
|
236
|
+
onPress: handleContinue,
|
|
237
|
+
disabled: !allRequirementsMet || isLoading
|
|
238
|
+
}, isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
239
|
+
size: "small",
|
|
240
|
+
color: "#FFFFFF"
|
|
241
|
+
}) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
242
|
+
style: [styles.continueButtonText, allRequirementsMet && styles.continueButtonTextActive]
|
|
243
|
+
}, "Continue"))));
|
|
244
|
+
};
|
|
245
|
+
exports.PinCreationScreen = PinCreationScreen;
|
|
246
|
+
const styles = _reactNative.StyleSheet.create({
|
|
247
|
+
container: {
|
|
248
|
+
flex: 1,
|
|
249
|
+
backgroundColor: _theme.COLORS.surface,
|
|
250
|
+
paddingHorizontal: 24,
|
|
251
|
+
paddingTop: 0
|
|
252
|
+
},
|
|
253
|
+
titleContainer: {
|
|
254
|
+
alignItems: 'center',
|
|
255
|
+
marginBottom: 15,
|
|
256
|
+
paddingTop: -10,
|
|
257
|
+
marginTop: -15
|
|
258
|
+
},
|
|
259
|
+
title: {
|
|
260
|
+
fontSize: 24,
|
|
261
|
+
fontWeight: '700',
|
|
262
|
+
color: _theme.COLORS.grey800,
|
|
263
|
+
marginBottom: 8,
|
|
264
|
+
fontFamily: 'IBM Plex Sans'
|
|
265
|
+
},
|
|
266
|
+
subtitle: {
|
|
267
|
+
fontSize: 16,
|
|
268
|
+
color: _theme.COLORS.grey600,
|
|
269
|
+
lineHeight: 24,
|
|
270
|
+
fontFamily: 'Inter'
|
|
271
|
+
},
|
|
272
|
+
pinContainer: {
|
|
273
|
+
marginBottom: 32
|
|
274
|
+
},
|
|
275
|
+
pinInput: {
|
|
276
|
+
backgroundColor: '#F8F9FA',
|
|
277
|
+
borderRadius: 12,
|
|
278
|
+
paddingVertical: 16,
|
|
279
|
+
paddingHorizontal: 16,
|
|
280
|
+
fontSize: 16,
|
|
281
|
+
fontFamily: 'Inter',
|
|
282
|
+
borderWidth: 1,
|
|
283
|
+
borderColor: '#E5E5E5'
|
|
284
|
+
},
|
|
285
|
+
requirementsContainer: {
|
|
286
|
+
marginBottom: 32
|
|
287
|
+
},
|
|
288
|
+
requirementsTitle: {
|
|
289
|
+
fontSize: 16,
|
|
290
|
+
fontWeight: '600',
|
|
291
|
+
color: _theme.COLORS.grey800,
|
|
292
|
+
marginBottom: 16,
|
|
293
|
+
fontFamily: 'Inter'
|
|
294
|
+
},
|
|
295
|
+
requirementItem: {
|
|
296
|
+
flexDirection: 'row',
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
marginBottom: 12
|
|
299
|
+
},
|
|
300
|
+
checkbox: {
|
|
301
|
+
width: 20,
|
|
302
|
+
height: 20,
|
|
303
|
+
borderRadius: 10,
|
|
304
|
+
borderWidth: 2,
|
|
305
|
+
borderColor: '#E5E5E5',
|
|
306
|
+
marginRight: 12,
|
|
307
|
+
alignItems: 'center',
|
|
308
|
+
justifyContent: 'center'
|
|
309
|
+
},
|
|
310
|
+
checkboxChecked: {
|
|
311
|
+
borderColor: '#4CD964',
|
|
312
|
+
backgroundColor: '#4CD964'
|
|
313
|
+
},
|
|
314
|
+
checkmark: {
|
|
315
|
+
color: '#FFFFFF',
|
|
316
|
+
fontSize: 12,
|
|
317
|
+
fontWeight: 'bold'
|
|
318
|
+
},
|
|
319
|
+
requirementText: {
|
|
320
|
+
fontSize: 14,
|
|
321
|
+
color: _theme.COLORS.grey600,
|
|
322
|
+
fontFamily: 'Inter',
|
|
323
|
+
flex: 1
|
|
324
|
+
},
|
|
325
|
+
requirementTextMet: {
|
|
326
|
+
color: _theme.COLORS.grey800
|
|
327
|
+
},
|
|
328
|
+
securityCard: {
|
|
329
|
+
backgroundColor: '#F8F9FA',
|
|
330
|
+
borderRadius: 12,
|
|
331
|
+
padding: 16,
|
|
332
|
+
flexDirection: 'row',
|
|
333
|
+
alignItems: 'center',
|
|
334
|
+
marginBottom: 24,
|
|
335
|
+
borderWidth: 1,
|
|
336
|
+
borderColor: '#E5E5E5'
|
|
337
|
+
},
|
|
338
|
+
securityCardSuccess: {
|
|
339
|
+
backgroundColor: '#F0FDF4',
|
|
340
|
+
borderColor: '#22C55E'
|
|
341
|
+
},
|
|
342
|
+
securityCardError: {
|
|
343
|
+
backgroundColor: '#FEF2F2',
|
|
344
|
+
borderColor: '#EF4444'
|
|
345
|
+
},
|
|
346
|
+
securityIconContainer: {
|
|
347
|
+
marginRight: 12
|
|
348
|
+
},
|
|
349
|
+
securityIcon: {
|
|
350
|
+
fontSize: 24
|
|
351
|
+
},
|
|
352
|
+
securityTextContainer: {
|
|
353
|
+
flex: 1
|
|
354
|
+
},
|
|
355
|
+
securityTitle: {
|
|
356
|
+
fontSize: 14,
|
|
357
|
+
fontWeight: '600',
|
|
358
|
+
color: _theme.COLORS.grey800,
|
|
359
|
+
marginBottom: 4,
|
|
360
|
+
fontFamily: 'Inter'
|
|
361
|
+
},
|
|
362
|
+
securityDescription: {
|
|
363
|
+
fontSize: 13,
|
|
364
|
+
color: _theme.COLORS.grey600,
|
|
365
|
+
lineHeight: 18,
|
|
366
|
+
fontFamily: 'Inter'
|
|
367
|
+
},
|
|
368
|
+
buttonContainer: {
|
|
369
|
+
marginTop: 'auto',
|
|
370
|
+
paddingBottom: 34
|
|
371
|
+
},
|
|
372
|
+
continueButton: {
|
|
373
|
+
backgroundColor: '#E5E5E5',
|
|
374
|
+
borderRadius: 25,
|
|
375
|
+
paddingVertical: 16,
|
|
376
|
+
alignItems: 'center',
|
|
377
|
+
justifyContent: 'center'
|
|
378
|
+
},
|
|
379
|
+
continueButtonActive: {
|
|
380
|
+
backgroundColor: '#2D3436'
|
|
381
|
+
},
|
|
382
|
+
continueButtonText: {
|
|
383
|
+
fontSize: 16,
|
|
384
|
+
fontWeight: '600',
|
|
385
|
+
color: '#999999',
|
|
386
|
+
fontFamily: 'Inter'
|
|
387
|
+
},
|
|
388
|
+
continueButtonTextActive: {
|
|
389
|
+
color: '#FFFFFF'
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
var _default = exports.default = PinCreationScreen;
|
|
393
|
+
//# sourceMappingURL=PinCreationScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_theme","_haptics","_biometricPinService","_pinStorageUtils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PinCreationScreen","visible","onComplete","onBack","pin","setPin","useState","requirements","setRequirements","length","uppercase","number","isLoading","setIsLoading","biometricAvailable","setBiometricAvailable","biometricStatus","setBiometricStatus","validatePin","pinText","newRequirements","test","values","every","req","handlePinChange","text","handleContinue","triggerHaptic","HapticType","ERROR","Alert","alert","BUTTON_PRESS","console","log","setTemporaryPin","biometricStillAvailable","biometricPinService","isBiometricAvailable","error","stored","storePinWithBiometric","isStored","isPinStored","SUCCESS","setTimeout","onPress","handleBack","useEffect","checkBiometric","available","allRequirementsMet","createElement","View","style","styles","container","titleContainer","Text","title","subtitle","pinContainer","TextInput","pinInput","value","onChangeText","placeholder","secureTextEntry","autoFocus","maxLength","requirementsContainer","requirementsTitle","requirementItem","checkbox","checkboxChecked","checkmark","requirementText","requirementTextMet","securityCard","securityCardSuccess","securityCardError","securityIconContainer","ActivityIndicator","size","color","COLORS","grey600","securityIcon","securityTextContainer","securityTitle","securityDescription","buttonContainer","TouchableOpacity","continueButton","continueButtonActive","disabled","continueButtonText","continueButtonTextActive","exports","StyleSheet","create","flex","backgroundColor","surface","paddingHorizontal","paddingTop","alignItems","marginBottom","marginTop","fontSize","fontWeight","grey800","fontFamily","lineHeight","borderRadius","paddingVertical","borderWidth","borderColor","flexDirection","width","height","marginRight","justifyContent","padding","paddingBottom","_default"],"sourceRoot":"..\\..\\..\\src","sources":["components/PinCreationScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAA8D,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAA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