@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,507 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
Text,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
TouchableOpacity,
|
|
7
|
+
ScrollView,
|
|
8
|
+
Dimensions,
|
|
9
|
+
ActivityIndicator,
|
|
10
|
+
Alert,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
13
|
+
import { triggerHaptic, HapticType } from '../utils/haptics';
|
|
14
|
+
|
|
15
|
+
const { width, height } = Dimensions.get('window');
|
|
16
|
+
|
|
17
|
+
interface ExistingUserDataConfirmationProps {
|
|
18
|
+
visible: boolean;
|
|
19
|
+
onConfirm: () => void;
|
|
20
|
+
onCancel: () => void;
|
|
21
|
+
onAddMoreData: () => void;
|
|
22
|
+
accountInfo: any;
|
|
23
|
+
userEmail: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ConnectionInfo {
|
|
27
|
+
platform: string;
|
|
28
|
+
connectedAt: string;
|
|
29
|
+
status: 'active' | 'inactive' | 'expired';
|
|
30
|
+
hasData: boolean;
|
|
31
|
+
displayName?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const ExistingUserDataConfirmation: React.FC<ExistingUserDataConfirmationProps> = ({
|
|
35
|
+
visible,
|
|
36
|
+
onConfirm,
|
|
37
|
+
onCancel,
|
|
38
|
+
onAddMoreData,
|
|
39
|
+
accountInfo,
|
|
40
|
+
userEmail,
|
|
41
|
+
}) => {
|
|
42
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
43
|
+
const [connections, setConnections] = useState<ConnectionInfo[]>([]);
|
|
44
|
+
const [dataStats, setDataStats] = useState({
|
|
45
|
+
connectionsCount: 0,
|
|
46
|
+
traitsCount: 0,
|
|
47
|
+
hasPersonalityData: false,
|
|
48
|
+
hasTrainedModel: false,
|
|
49
|
+
hasAvatar: false,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (visible && accountInfo) {
|
|
54
|
+
parseAccountInfo();
|
|
55
|
+
}
|
|
56
|
+
}, [visible, accountInfo]);
|
|
57
|
+
|
|
58
|
+
const parseAccountInfo = () => {
|
|
59
|
+
console.log('🔍 Parsing account info for existing user:', accountInfo);
|
|
60
|
+
|
|
61
|
+
// Parse existing user data from backend response
|
|
62
|
+
const existingData = accountInfo.existingUserData || {};
|
|
63
|
+
const summary = existingData.summary || {};
|
|
64
|
+
const connectionsList = existingData.connections || [];
|
|
65
|
+
|
|
66
|
+
// Set data statistics
|
|
67
|
+
setDataStats({
|
|
68
|
+
connectionsCount: summary.connectionsCount || 0,
|
|
69
|
+
traitsCount: summary.traitsCount || 0,
|
|
70
|
+
hasPersonalityData: summary.hasPersonalityData || false,
|
|
71
|
+
hasTrainedModel: summary.hasTrainedModel || false,
|
|
72
|
+
hasAvatar: summary.hasAvatar || false,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
// Parse connections
|
|
76
|
+
const parsedConnections: ConnectionInfo[] = connectionsList.map((conn: any) => ({
|
|
77
|
+
platform: conn.platform,
|
|
78
|
+
connectedAt: conn.connectedAt,
|
|
79
|
+
status: conn.status,
|
|
80
|
+
hasData: conn.hasData,
|
|
81
|
+
displayName: conn.displayName || conn.platform,
|
|
82
|
+
}));
|
|
83
|
+
|
|
84
|
+
setConnections(parsedConnections);
|
|
85
|
+
|
|
86
|
+
console.log('📊 Parsed data stats:', dataStats);
|
|
87
|
+
console.log('🔗 Parsed connections:', parsedConnections);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const handleConfirm = async () => {
|
|
91
|
+
setIsLoading(true);
|
|
92
|
+
triggerHaptic(HapticType.SUCCESS);
|
|
93
|
+
|
|
94
|
+
try {
|
|
95
|
+
// Small delay for better UX
|
|
96
|
+
await new Promise<void>(resolve => setTimeout(() => resolve(), 500));
|
|
97
|
+
onConfirm();
|
|
98
|
+
} finally {
|
|
99
|
+
setIsLoading(false);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const handleCancel = () => {
|
|
104
|
+
triggerHaptic(HapticType.BUTTON_PRESS);
|
|
105
|
+
onCancel();
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const handleAddMoreData = () => {
|
|
109
|
+
triggerHaptic(HapticType.BUTTON_PRESS);
|
|
110
|
+
onAddMoreData();
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const getPlatformEmoji = (platform: string): string => {
|
|
114
|
+
const emojiMap: { [key: string]: string } = {
|
|
115
|
+
'YouTube': '📺',
|
|
116
|
+
'Reddit': '🔴',
|
|
117
|
+
'Instagram': '📸',
|
|
118
|
+
'LinkedIn': '💼',
|
|
119
|
+
'Pinterest': '📌',
|
|
120
|
+
'Facebook': '📘',
|
|
121
|
+
'Gmail': '📧',
|
|
122
|
+
'Email': '✉️',
|
|
123
|
+
};
|
|
124
|
+
return emojiMap[platform] || '🔗';
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const getStatusColor = (status: string): string => {
|
|
128
|
+
switch (status) {
|
|
129
|
+
case 'active': return '#10B981';
|
|
130
|
+
case 'expired': return '#F59E0B';
|
|
131
|
+
case 'inactive': return '#6B7280';
|
|
132
|
+
default: return '#6B7280';
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
if (!visible) return null;
|
|
137
|
+
|
|
138
|
+
return (
|
|
139
|
+
<View style={styles.overlay}>
|
|
140
|
+
<View style={styles.container}>
|
|
141
|
+
<ScrollView style={styles.scrollView} showsVerticalScrollIndicator={false}>
|
|
142
|
+
{/* Header */}
|
|
143
|
+
<View style={styles.header}>
|
|
144
|
+
<Text style={styles.headerTitle}>Welcome Back!</Text>
|
|
145
|
+
<Text style={styles.headerSubtitle}>
|
|
146
|
+
We found your existing Onairos account
|
|
147
|
+
</Text>
|
|
148
|
+
</View>
|
|
149
|
+
|
|
150
|
+
{/* User Info */}
|
|
151
|
+
<View style={styles.userInfoContainer}>
|
|
152
|
+
<View style={styles.userInfoRow}>
|
|
153
|
+
<Text style={styles.userInfoLabel}>Email:</Text>
|
|
154
|
+
<Text style={styles.userInfoValue}>{userEmail}</Text>
|
|
155
|
+
</View>
|
|
156
|
+
<View style={styles.userInfoRow}>
|
|
157
|
+
<Text style={styles.userInfoLabel}>Account Status:</Text>
|
|
158
|
+
<Text style={[styles.userInfoValue, { color: '#10B981' }]}>Verified</Text>
|
|
159
|
+
</View>
|
|
160
|
+
</View>
|
|
161
|
+
|
|
162
|
+
{/* Data Summary */}
|
|
163
|
+
<View style={styles.dataSummaryContainer}>
|
|
164
|
+
<Text style={styles.sectionTitle}>Your Existing Data</Text>
|
|
165
|
+
|
|
166
|
+
<View style={styles.statsGrid}>
|
|
167
|
+
<View style={styles.statItem}>
|
|
168
|
+
<Text style={styles.statNumber}>{dataStats.connectionsCount}</Text>
|
|
169
|
+
<Text style={styles.statLabel}>Connections</Text>
|
|
170
|
+
</View>
|
|
171
|
+
<View style={styles.statItem}>
|
|
172
|
+
<Text style={styles.statNumber}>{dataStats.traitsCount}</Text>
|
|
173
|
+
<Text style={styles.statLabel}>Traits</Text>
|
|
174
|
+
</View>
|
|
175
|
+
<View style={styles.statItem}>
|
|
176
|
+
<Text style={styles.statNumber}>{dataStats.hasTrainedModel ? '✅' : '❌'}</Text>
|
|
177
|
+
<Text style={styles.statLabel}>AI Model</Text>
|
|
178
|
+
</View>
|
|
179
|
+
</View>
|
|
180
|
+
</View>
|
|
181
|
+
|
|
182
|
+
{/* Connected Platforms */}
|
|
183
|
+
{connections.length > 0 && (
|
|
184
|
+
<View style={styles.connectionsContainer}>
|
|
185
|
+
<Text style={styles.sectionTitle}>Connected Platforms</Text>
|
|
186
|
+
|
|
187
|
+
{connections.map((connection, index) => (
|
|
188
|
+
<View key={index} style={styles.connectionItem}>
|
|
189
|
+
<View style={styles.connectionLeft}>
|
|
190
|
+
<Text style={styles.connectionEmoji}>
|
|
191
|
+
{getPlatformEmoji(connection.platform)}
|
|
192
|
+
</Text>
|
|
193
|
+
<View style={styles.connectionInfo}>
|
|
194
|
+
<Text style={styles.connectionName}>{connection.displayName}</Text>
|
|
195
|
+
<Text style={styles.connectionDate}>
|
|
196
|
+
Connected {new Date(connection.connectedAt).toLocaleDateString()}
|
|
197
|
+
</Text>
|
|
198
|
+
</View>
|
|
199
|
+
</View>
|
|
200
|
+
<View style={styles.connectionRight}>
|
|
201
|
+
<View style={[
|
|
202
|
+
styles.statusDot,
|
|
203
|
+
{ backgroundColor: getStatusColor(connection.status) }
|
|
204
|
+
]} />
|
|
205
|
+
<Text style={[
|
|
206
|
+
styles.statusText,
|
|
207
|
+
{ color: getStatusColor(connection.status) }
|
|
208
|
+
]}>
|
|
209
|
+
{connection.status}
|
|
210
|
+
</Text>
|
|
211
|
+
</View>
|
|
212
|
+
</View>
|
|
213
|
+
))}
|
|
214
|
+
</View>
|
|
215
|
+
)}
|
|
216
|
+
|
|
217
|
+
{/* Data Usage Explanation */}
|
|
218
|
+
<View style={styles.explanationContainer}>
|
|
219
|
+
<Text style={styles.explanationTitle}>Share Your Data with Enoch?</Text>
|
|
220
|
+
<Text style={styles.explanationText}>
|
|
221
|
+
Your existing personality data and connected accounts will be used to:
|
|
222
|
+
</Text>
|
|
223
|
+
<View style={styles.benefitsList}>
|
|
224
|
+
<Text style={styles.benefitItem}>• Create personalized experiences</Text>
|
|
225
|
+
<Text style={styles.benefitItem}>• Match you with compatible people</Text>
|
|
226
|
+
<Text style={styles.benefitItem}>• Provide AI-powered insights</Text>
|
|
227
|
+
<Text style={styles.benefitItem}>• Enhance your social connections</Text>
|
|
228
|
+
</View>
|
|
229
|
+
<Text style={styles.privacyNote}>
|
|
230
|
+
Your data remains secure and encrypted. You can manage your privacy settings anytime.
|
|
231
|
+
</Text>
|
|
232
|
+
</View>
|
|
233
|
+
|
|
234
|
+
{/* Action Buttons */}
|
|
235
|
+
<View style={styles.actionButtonsContainer}>
|
|
236
|
+
{/* Add More Data Button */}
|
|
237
|
+
<TouchableOpacity
|
|
238
|
+
style={styles.addMoreButton}
|
|
239
|
+
onPress={handleAddMoreData}
|
|
240
|
+
activeOpacity={0.8}
|
|
241
|
+
>
|
|
242
|
+
<Text style={styles.addMoreButtonText}>+ Add More Data</Text>
|
|
243
|
+
</TouchableOpacity>
|
|
244
|
+
|
|
245
|
+
{/* Main Action Buttons */}
|
|
246
|
+
<View style={styles.mainButtons}>
|
|
247
|
+
<TouchableOpacity
|
|
248
|
+
style={styles.cancelButton}
|
|
249
|
+
onPress={handleCancel}
|
|
250
|
+
activeOpacity={0.8}
|
|
251
|
+
>
|
|
252
|
+
<Text style={styles.cancelButtonText}>Not Now</Text>
|
|
253
|
+
</TouchableOpacity>
|
|
254
|
+
|
|
255
|
+
<TouchableOpacity
|
|
256
|
+
style={styles.confirmButton}
|
|
257
|
+
onPress={handleConfirm}
|
|
258
|
+
activeOpacity={0.8}
|
|
259
|
+
disabled={isLoading}
|
|
260
|
+
>
|
|
261
|
+
<LinearGradient
|
|
262
|
+
colors={['#D4A536', '#B8941F']}
|
|
263
|
+
style={styles.confirmButtonGradient}
|
|
264
|
+
>
|
|
265
|
+
{isLoading ? (
|
|
266
|
+
<ActivityIndicator color="#FFFFFF" size="small" />
|
|
267
|
+
) : (
|
|
268
|
+
<Text style={styles.confirmButtonText}>Share Data</Text>
|
|
269
|
+
)}
|
|
270
|
+
</LinearGradient>
|
|
271
|
+
</TouchableOpacity>
|
|
272
|
+
</View>
|
|
273
|
+
</View>
|
|
274
|
+
</ScrollView>
|
|
275
|
+
</View>
|
|
276
|
+
</View>
|
|
277
|
+
);
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
const styles = StyleSheet.create({
|
|
281
|
+
overlay: {
|
|
282
|
+
position: 'absolute',
|
|
283
|
+
top: 0,
|
|
284
|
+
left: 0,
|
|
285
|
+
right: 0,
|
|
286
|
+
bottom: 0,
|
|
287
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
288
|
+
justifyContent: 'center',
|
|
289
|
+
alignItems: 'center',
|
|
290
|
+
zIndex: 1000,
|
|
291
|
+
},
|
|
292
|
+
container: {
|
|
293
|
+
backgroundColor: '#FFFFFF',
|
|
294
|
+
borderRadius: 20,
|
|
295
|
+
width: width * 0.9,
|
|
296
|
+
maxHeight: height * 0.8,
|
|
297
|
+
shadowColor: '#000',
|
|
298
|
+
shadowOffset: { width: 0, height: 4 },
|
|
299
|
+
shadowOpacity: 0.25,
|
|
300
|
+
shadowRadius: 12,
|
|
301
|
+
elevation: 10,
|
|
302
|
+
},
|
|
303
|
+
scrollView: {
|
|
304
|
+
flex: 1,
|
|
305
|
+
},
|
|
306
|
+
header: {
|
|
307
|
+
padding: 24,
|
|
308
|
+
alignItems: 'center',
|
|
309
|
+
borderBottomWidth: 1,
|
|
310
|
+
borderBottomColor: '#F3F4F6',
|
|
311
|
+
},
|
|
312
|
+
headerTitle: {
|
|
313
|
+
fontSize: 24,
|
|
314
|
+
fontWeight: '700',
|
|
315
|
+
color: '#1F2937',
|
|
316
|
+
marginBottom: 8,
|
|
317
|
+
},
|
|
318
|
+
headerSubtitle: {
|
|
319
|
+
fontSize: 16,
|
|
320
|
+
color: '#6B7280',
|
|
321
|
+
textAlign: 'center',
|
|
322
|
+
},
|
|
323
|
+
userInfoContainer: {
|
|
324
|
+
padding: 20,
|
|
325
|
+
backgroundColor: '#F9FAFB',
|
|
326
|
+
marginHorizontal: 20,
|
|
327
|
+
marginTop: 20,
|
|
328
|
+
borderRadius: 12,
|
|
329
|
+
},
|
|
330
|
+
userInfoRow: {
|
|
331
|
+
flexDirection: 'row',
|
|
332
|
+
justifyContent: 'space-between',
|
|
333
|
+
alignItems: 'center',
|
|
334
|
+
marginBottom: 8,
|
|
335
|
+
},
|
|
336
|
+
userInfoLabel: {
|
|
337
|
+
fontSize: 14,
|
|
338
|
+
color: '#6B7280',
|
|
339
|
+
fontWeight: '500',
|
|
340
|
+
},
|
|
341
|
+
userInfoValue: {
|
|
342
|
+
fontSize: 14,
|
|
343
|
+
color: '#1F2937',
|
|
344
|
+
fontWeight: '600',
|
|
345
|
+
},
|
|
346
|
+
dataSummaryContainer: {
|
|
347
|
+
padding: 20,
|
|
348
|
+
},
|
|
349
|
+
sectionTitle: {
|
|
350
|
+
fontSize: 18,
|
|
351
|
+
fontWeight: '600',
|
|
352
|
+
color: '#1F2937',
|
|
353
|
+
marginBottom: 16,
|
|
354
|
+
},
|
|
355
|
+
statsGrid: {
|
|
356
|
+
flexDirection: 'row',
|
|
357
|
+
justifyContent: 'space-around',
|
|
358
|
+
backgroundColor: '#F9FAFB',
|
|
359
|
+
borderRadius: 12,
|
|
360
|
+
padding: 16,
|
|
361
|
+
},
|
|
362
|
+
statItem: {
|
|
363
|
+
alignItems: 'center',
|
|
364
|
+
},
|
|
365
|
+
statNumber: {
|
|
366
|
+
fontSize: 24,
|
|
367
|
+
fontWeight: '700',
|
|
368
|
+
color: '#D4A536',
|
|
369
|
+
marginBottom: 4,
|
|
370
|
+
},
|
|
371
|
+
statLabel: {
|
|
372
|
+
fontSize: 12,
|
|
373
|
+
color: '#6B7280',
|
|
374
|
+
fontWeight: '500',
|
|
375
|
+
},
|
|
376
|
+
connectionsContainer: {
|
|
377
|
+
padding: 20,
|
|
378
|
+
},
|
|
379
|
+
connectionItem: {
|
|
380
|
+
flexDirection: 'row',
|
|
381
|
+
alignItems: 'center',
|
|
382
|
+
justifyContent: 'space-between',
|
|
383
|
+
padding: 16,
|
|
384
|
+
backgroundColor: '#F9FAFB',
|
|
385
|
+
borderRadius: 12,
|
|
386
|
+
marginBottom: 8,
|
|
387
|
+
},
|
|
388
|
+
connectionLeft: {
|
|
389
|
+
flexDirection: 'row',
|
|
390
|
+
alignItems: 'center',
|
|
391
|
+
flex: 1,
|
|
392
|
+
},
|
|
393
|
+
connectionEmoji: {
|
|
394
|
+
fontSize: 24,
|
|
395
|
+
marginRight: 12,
|
|
396
|
+
},
|
|
397
|
+
connectionInfo: {
|
|
398
|
+
flex: 1,
|
|
399
|
+
},
|
|
400
|
+
connectionName: {
|
|
401
|
+
fontSize: 16,
|
|
402
|
+
fontWeight: '600',
|
|
403
|
+
color: '#1F2937',
|
|
404
|
+
marginBottom: 2,
|
|
405
|
+
},
|
|
406
|
+
connectionDate: {
|
|
407
|
+
fontSize: 12,
|
|
408
|
+
color: '#6B7280',
|
|
409
|
+
},
|
|
410
|
+
connectionRight: {
|
|
411
|
+
flexDirection: 'row',
|
|
412
|
+
alignItems: 'center',
|
|
413
|
+
},
|
|
414
|
+
statusDot: {
|
|
415
|
+
width: 8,
|
|
416
|
+
height: 8,
|
|
417
|
+
borderRadius: 4,
|
|
418
|
+
marginRight: 6,
|
|
419
|
+
},
|
|
420
|
+
statusText: {
|
|
421
|
+
fontSize: 12,
|
|
422
|
+
fontWeight: '500',
|
|
423
|
+
textTransform: 'capitalize',
|
|
424
|
+
},
|
|
425
|
+
explanationContainer: {
|
|
426
|
+
padding: 20,
|
|
427
|
+
backgroundColor: '#F0F9FF',
|
|
428
|
+
marginHorizontal: 20,
|
|
429
|
+
borderRadius: 12,
|
|
430
|
+
marginBottom: 20,
|
|
431
|
+
},
|
|
432
|
+
explanationTitle: {
|
|
433
|
+
fontSize: 16,
|
|
434
|
+
fontWeight: '600',
|
|
435
|
+
color: '#1F2937',
|
|
436
|
+
marginBottom: 12,
|
|
437
|
+
},
|
|
438
|
+
explanationText: {
|
|
439
|
+
fontSize: 14,
|
|
440
|
+
color: '#4B5563',
|
|
441
|
+
marginBottom: 12,
|
|
442
|
+
lineHeight: 20,
|
|
443
|
+
},
|
|
444
|
+
benefitsList: {
|
|
445
|
+
marginBottom: 12,
|
|
446
|
+
},
|
|
447
|
+
benefitItem: {
|
|
448
|
+
fontSize: 14,
|
|
449
|
+
color: '#4B5563',
|
|
450
|
+
marginBottom: 4,
|
|
451
|
+
lineHeight: 20,
|
|
452
|
+
},
|
|
453
|
+
privacyNote: {
|
|
454
|
+
fontSize: 12,
|
|
455
|
+
color: '#6B7280',
|
|
456
|
+
fontStyle: 'italic',
|
|
457
|
+
lineHeight: 16,
|
|
458
|
+
},
|
|
459
|
+
actionButtonsContainer: {
|
|
460
|
+
padding: 20,
|
|
461
|
+
},
|
|
462
|
+
addMoreButton: {
|
|
463
|
+
backgroundColor: '#F3F4F6',
|
|
464
|
+
borderRadius: 12,
|
|
465
|
+
padding: 16,
|
|
466
|
+
alignItems: 'center',
|
|
467
|
+
marginBottom: 16,
|
|
468
|
+
borderWidth: 1,
|
|
469
|
+
borderColor: '#D1D5DB',
|
|
470
|
+
},
|
|
471
|
+
addMoreButtonText: {
|
|
472
|
+
fontSize: 16,
|
|
473
|
+
color: '#4B5563',
|
|
474
|
+
fontWeight: '600',
|
|
475
|
+
},
|
|
476
|
+
mainButtons: {
|
|
477
|
+
flexDirection: 'row',
|
|
478
|
+
gap: 12,
|
|
479
|
+
},
|
|
480
|
+
cancelButton: {
|
|
481
|
+
flex: 1,
|
|
482
|
+
backgroundColor: '#F3F4F6',
|
|
483
|
+
borderRadius: 12,
|
|
484
|
+
padding: 16,
|
|
485
|
+
alignItems: 'center',
|
|
486
|
+
},
|
|
487
|
+
cancelButtonText: {
|
|
488
|
+
fontSize: 16,
|
|
489
|
+
color: '#6B7280',
|
|
490
|
+
fontWeight: '600',
|
|
491
|
+
},
|
|
492
|
+
confirmButton: {
|
|
493
|
+
flex: 2,
|
|
494
|
+
borderRadius: 12,
|
|
495
|
+
overflow: 'hidden',
|
|
496
|
+
},
|
|
497
|
+
confirmButtonGradient: {
|
|
498
|
+
padding: 16,
|
|
499
|
+
alignItems: 'center',
|
|
500
|
+
justifyContent: 'center',
|
|
501
|
+
},
|
|
502
|
+
confirmButtonText: {
|
|
503
|
+
fontSize: 16,
|
|
504
|
+
color: '#FFFFFF',
|
|
505
|
+
fontWeight: '700',
|
|
506
|
+
},
|
|
507
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TouchableOpacity, Text, Image, StyleSheet, ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface GoogleButtonProps {
|
|
5
|
+
onPress: () => void;
|
|
6
|
+
style?: ViewStyle;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const GoogleButton: React.FC<GoogleButtonProps> = ({ onPress, style, disabled = false }) => {
|
|
11
|
+
return (
|
|
12
|
+
<TouchableOpacity
|
|
13
|
+
style={[styles.button, style, disabled && styles.disabled]}
|
|
14
|
+
onPress={onPress}
|
|
15
|
+
disabled={disabled}
|
|
16
|
+
>
|
|
17
|
+
<Image
|
|
18
|
+
source={require('../assets/images/Googlelogo.png')}
|
|
19
|
+
style={styles.icon}
|
|
20
|
+
resizeMode="contain"
|
|
21
|
+
/>
|
|
22
|
+
<Text style={styles.text}>Continue with Google</Text>
|
|
23
|
+
</TouchableOpacity>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
button: {
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
backgroundColor: '#FFFFFF',
|
|
33
|
+
borderWidth: 1,
|
|
34
|
+
borderColor: '#E0E0E0',
|
|
35
|
+
borderRadius: 8,
|
|
36
|
+
paddingVertical: 12,
|
|
37
|
+
paddingHorizontal: 16,
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
opacity: 0.5,
|
|
41
|
+
},
|
|
42
|
+
icon: {
|
|
43
|
+
width: 20,
|
|
44
|
+
height: 20,
|
|
45
|
+
marginRight: 8,
|
|
46
|
+
},
|
|
47
|
+
text: {
|
|
48
|
+
fontSize: 16,
|
|
49
|
+
fontWeight: '500',
|
|
50
|
+
color: '#333333',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export { GoogleButton };
|
|
55
|
+
export default GoogleButton;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
Text,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
ViewStyle,
|
|
7
|
+
} from 'react-native';
|
|
8
|
+
import { TEXT_STYLES } from '../theme';
|
|
9
|
+
|
|
10
|
+
interface HeadingGroupProps {
|
|
11
|
+
kicker?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
style?: ViewStyle;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const HeadingGroup: React.FC<HeadingGroupProps> = ({
|
|
17
|
+
kicker = "Welcome to",
|
|
18
|
+
title = "Onairos",
|
|
19
|
+
style,
|
|
20
|
+
}) => {
|
|
21
|
+
return (
|
|
22
|
+
<View style={[styles.container, style]}>
|
|
23
|
+
<Text style={styles.kicker}>{kicker}</Text>
|
|
24
|
+
<Text style={styles.title}>{title}</Text>
|
|
25
|
+
</View>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
container: {
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
kicker: {
|
|
35
|
+
...TEXT_STYLES.kicker,
|
|
36
|
+
fontFamily: 'IBM Plex Sans',
|
|
37
|
+
fontWeight: '700', // Force bold weight
|
|
38
|
+
marginBottom: 4, // Small gap between kicker and title
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
title: {
|
|
42
|
+
...TEXT_STYLES.welcomeTitle,
|
|
43
|
+
fontFamily: 'IBM Plex Sans',
|
|
44
|
+
fontWeight: '700', // Force bold weight
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export { HeadingGroup };
|
|
49
|
+
export default HeadingGroup;
|