@onairos/react-native 3.1.18 → 3.2.1
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 +374 -403
- package/lib/commonjs/api/index.js +1 -75
- package/lib/commonjs/api/index.js.map +1 -1
- 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/DataRequestModal.js.map +1 -1
- package/lib/commonjs/components/DataRequestScreen.js.map +1 -1
- package/lib/commonjs/components/EmailVerificationModal.js.map +1 -1
- package/lib/commonjs/components/Onairos.js +3 -1
- package/lib/commonjs/components/Onairos.js.map +1 -1
- package/lib/commonjs/components/OnairosButton.js +190 -171
- package/lib/commonjs/components/OnairosButton.js.map +1 -1
- package/lib/commonjs/components/Overlay.js +5 -5
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/PinInput.js +120 -282
- package/lib/commonjs/components/PinInput.js.map +1 -1
- package/lib/commonjs/components/PlatformList.js.map +1 -1
- package/lib/commonjs/components/TrainingModal.js +563 -808
- package/lib/commonjs/components/TrainingModal.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +1296 -2302
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.tsx.new +455 -0
- package/lib/commonjs/components/onboarding/OAuthWebView.js +743 -134
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js.map +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js.map +1 -1
- package/lib/commonjs/components/screens/ConnectorScreen.js.map +1 -1
- package/lib/commonjs/components/screens/LoadingScreen.js.map +1 -1
- package/lib/commonjs/components/screens/PinCreationScreen.js.map +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/hooks/useConnections.js +125 -120
- package/lib/commonjs/hooks/useConnections.js.map +1 -1
- package/lib/commonjs/hooks/useCredentials.js.map +1 -1
- package/lib/commonjs/index.js +27 -157
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +428 -0
- package/lib/commonjs/services/apiKeyService.js +106 -105
- package/lib/commonjs/services/apiKeyService.js.map +1 -1
- package/lib/commonjs/services/oauthService.js.map +1 -1
- package/lib/commonjs/services/platformAuthService.js +722 -956
- package/lib/commonjs/services/platformAuthService.js.map +1 -1
- package/lib/commonjs/types/ambient.d.js.map +1 -1
- package/lib/commonjs/types/declarations.d.js.map +1 -1
- package/lib/commonjs/types/index.d.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/node-fix.d.js.map +1 -1
- package/lib/commonjs/types/node-override.d.js.map +1 -1
- package/lib/commonjs/types/opacity.d.js.map +1 -1
- package/lib/commonjs/types/types.d.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/Portal.js +4 -4
- package/lib/commonjs/utils/Portal.js.map +1 -1
- package/lib/commonjs/utils/api.js +24 -24
- package/lib/commonjs/utils/api.js.map +1 -1
- package/lib/commonjs/utils/auth.js +18 -18
- package/lib/commonjs/utils/auth.js.map +1 -1
- package/lib/commonjs/utils/crypto.js +13 -13
- package/lib/commonjs/utils/crypto.js.map +1 -1
- package/lib/commonjs/utils/debugHelper.js.map +1 -1
- package/lib/commonjs/utils/encryption.js +12 -12
- package/lib/commonjs/utils/encryption.js.map +1 -1
- package/lib/commonjs/utils/onairosApi.js.map +1 -1
- package/lib/commonjs/utils/programmaticFlow.js +16 -16
- package/lib/commonjs/utils/programmaticFlow.js.map +1 -1
- package/lib/commonjs/utils/retryHelper.js +27 -27
- package/lib/commonjs/utils/retryHelper.js.map +1 -1
- package/lib/commonjs/utils/secureStorage.js.map +1 -1
- package/lib/module/api/index.js +0 -72
- package/lib/module/api/index.js.map +1 -1
- 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/DataRequestModal.js.map +1 -1
- package/lib/module/components/DataRequestScreen.js.map +1 -1
- package/lib/module/components/EmailVerificationModal.js.map +1 -1
- package/lib/module/components/Onairos.js +3 -1
- package/lib/module/components/Onairos.js.map +1 -1
- package/lib/module/components/OnairosButton.js +192 -172
- package/lib/module/components/OnairosButton.js.map +1 -1
- package/lib/module/components/Overlay.js +5 -5
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/PinInput.js +120 -283
- package/lib/module/components/PinInput.js.map +1 -1
- package/lib/module/components/PlatformList.js.map +1 -1
- package/lib/module/components/TrainingModal.js +565 -809
- package/lib/module/components/TrainingModal.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +1297 -2305
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.tsx.new +455 -0
- package/lib/module/components/onboarding/OAuthWebView.js +744 -136
- package/lib/module/components/onboarding/OAuthWebView.js.map +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js.map +1 -1
- package/lib/module/components/onboarding/PinInput.js.map +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js.map +1 -1
- package/lib/module/components/screens/ConnectorScreen.js.map +1 -1
- package/lib/module/components/screens/LoadingScreen.js.map +1 -1
- package/lib/module/components/screens/PinCreationScreen.js.map +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/hooks/useConnections.js +125 -119
- package/lib/module/hooks/useConnections.js.map +1 -1
- package/lib/module/hooks/useCredentials.js.map +1 -1
- package/lib/module/index.js +17 -55
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/SDK_API_KEY_VALIDATION.md +428 -0
- package/lib/module/services/apiKeyService.js +106 -105
- package/lib/module/services/apiKeyService.js.map +1 -1
- package/lib/module/services/oauthService.js.map +1 -1
- package/lib/module/services/platformAuthService.js +704 -943
- package/lib/module/services/platformAuthService.js.map +1 -1
- package/lib/module/types/ambient.d.js.map +1 -1
- package/lib/module/types/declarations.d.js.map +1 -1
- package/lib/module/types/index.d.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/node-fix.d.js.map +1 -1
- package/lib/module/types/node-override.d.js.map +1 -1
- package/lib/module/types/opacity.d.js.map +1 -1
- package/lib/module/types/types.d.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/Portal.js +4 -4
- package/lib/module/utils/Portal.js.map +1 -1
- package/lib/module/utils/api.js +24 -24
- package/lib/module/utils/api.js.map +1 -1
- package/lib/module/utils/auth.js +18 -18
- package/lib/module/utils/auth.js.map +1 -1
- package/lib/module/utils/crypto.js +13 -13
- package/lib/module/utils/crypto.js.map +1 -1
- package/lib/module/utils/debugHelper.js.map +1 -1
- package/lib/module/utils/encryption.js +12 -12
- package/lib/module/utils/encryption.js.map +1 -1
- package/lib/module/utils/onairosApi.js.map +1 -1
- package/lib/module/utils/programmaticFlow.js +16 -16
- package/lib/module/utils/programmaticFlow.js.map +1 -1
- package/lib/module/utils/retryHelper.js +27 -27
- package/lib/module/utils/retryHelper.js.map +1 -1
- package/lib/module/utils/secureStorage.js.map +1 -1
- package/lib/typescript/api/index.d.ts +7 -15
- package/lib/typescript/api/index.d.ts.map +1 -1
- package/lib/typescript/components/DataRequestModal.d.ts +10 -10
- package/lib/typescript/components/DataRequestScreen.d.ts +10 -10
- package/lib/typescript/components/EmailVerificationModal.d.ts +10 -10
- package/lib/typescript/components/Onairos.d.ts +3 -3
- package/lib/typescript/components/Onairos.d.ts.map +1 -1
- package/lib/typescript/components/OnairosButton.d.ts +11 -36
- package/lib/typescript/components/OnairosButton.d.ts.map +1 -1
- package/lib/typescript/components/Overlay.d.ts +3 -3
- package/lib/typescript/components/PinInput.d.ts +3 -13
- package/lib/typescript/components/PinInput.d.ts.map +1 -1
- package/lib/typescript/components/PlatformList.d.ts +3 -3
- package/lib/typescript/components/TrainingModal.d.ts +3 -14
- package/lib/typescript/components/TrainingModal.d.ts.map +1 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts +3 -16
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +1 -1
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts +9 -9
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +1 -1
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +10 -10
- package/lib/typescript/components/onboarding/PinInput.d.ts +3 -3
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts +12 -12
- package/lib/typescript/components/screens/ConnectorScreen.d.ts +8 -8
- package/lib/typescript/components/screens/LoadingScreen.d.ts +8 -8
- package/lib/typescript/components/screens/PinCreationScreen.d.ts +9 -9
- package/lib/typescript/constants/index.d.ts +52 -52
- package/lib/typescript/hooks/useConnections.d.ts +8 -13
- package/lib/typescript/hooks/useConnections.d.ts.map +1 -1
- package/lib/typescript/hooks/useCredentials.d.ts +8 -8
- package/lib/typescript/index.d.ts +17 -38
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/services/apiKeyService.d.ts +131 -131
- package/lib/typescript/services/apiKeyService.d.ts.map +1 -1
- package/lib/typescript/services/oauthService.d.ts +49 -49
- package/lib/typescript/services/platformAuthService.d.ts +143 -68
- package/lib/typescript/services/platformAuthService.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +228 -264
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +268 -266
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/Portal.d.ts +13 -13
- package/lib/typescript/utils/api.d.ts +5 -5
- package/lib/typescript/utils/auth.d.ts +5 -5
- package/lib/typescript/utils/crypto.d.ts +3 -3
- package/lib/typescript/utils/debugHelper.d.ts +28 -28
- package/lib/typescript/utils/encryption.d.ts +18 -18
- package/lib/typescript/utils/onairosApi.d.ts +86 -86
- package/lib/typescript/utils/programmaticFlow.d.ts +22 -22
- package/lib/typescript/utils/retryHelper.d.ts +68 -68
- package/lib/typescript/utils/secureStorage.d.ts +93 -93
- package/package.json +149 -145
- package/src/api/index.ts +110 -151
- 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/DataRequestScreen.tsx +355 -355
- package/src/components/EmailVerificationModal.tsx +363 -363
- package/src/components/Onairos.tsx +424 -422
- package/src/components/OnairosButton.tsx +359 -339
- package/src/components/Overlay.tsx +506 -506
- package/src/components/PinInput.tsx +343 -555
- package/src/components/PlatformList.tsx +144 -144
- package/src/components/TrainingModal.tsx +737 -1047
- package/src/components/UniversalOnboarding.tsx +1839 -2888
- package/src/components/UniversalOnboarding.tsx.new +455 -0
- package/src/components/onboarding/OAuthWebView.tsx +838 -232
- package/src/hooks/useConnections.ts +163 -161
- package/src/hooks/useCredentials.ts +174 -174
- package/src/index.js +14 -14
- package/src/index.ts +49 -99
- package/src/services/SDK_API_KEY_VALIDATION.md +428 -0
- package/src/services/apiKeyService.ts +921 -919
- package/src/services/platformAuthService.ts +1113 -1346
- package/src/types/ambient.d.ts +28 -28
- package/src/types/index.ts +241 -265
- package/src/types/node-fix.d.ts +18 -18
- package/src/types/node-override.d.ts +23 -23
- package/src/types/opacity.d.ts +15 -15
- package/src/types/types.d.ts +17 -17
- package/src/types.ts +6 -4
- package/src/utils/Portal.tsx +82 -82
- package/src/utils/api.js +111 -111
- package/src/utils/auth.js +103 -103
- package/src/utils/crypto.js +59 -59
- package/src/utils/encryption.ts +68 -68
- package/src/utils/programmaticFlow.ts +112 -112
- package/src/utils/retryHelper.ts +274 -274
- package/types/index.d.ts +213 -213
- package/types/node-env.d.ts +14 -14
- 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 +0 -3
- package/lib/commonjs/assets/images/EnochE.svg +0 -19
- 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 +0 -3
- package/lib/commonjs/assets/images/Personalitytraits.svg +0 -3
- package/lib/commonjs/assets/images/Redditicon.png +0 -0
- package/lib/commonjs/assets/images/Userpreferences.svg +0 -3
- package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/images/arrow.svg +0 -20
- package/lib/commonjs/assets/images/basicproficon.svg +0 -43
- package/lib/commonjs/assets/images/basicprofile.svg +0 -3
- package/lib/commonjs/assets/images/checkmark.svg +0 -4
- package/lib/commonjs/assets/images/contentanalysis.svg +0 -3
- package/lib/commonjs/assets/images/contenticon.svg +0 -23
- 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 +0 -18
- package/lib/commonjs/assets/images/x-close.svg +0 -3
- package/lib/commonjs/components/BodyText.js +0 -27
- package/lib/commonjs/components/BodyText.js.map +0 -1
- package/lib/commonjs/components/BrandMark.js +0 -44
- package/lib/commonjs/components/BrandMark.js.map +0 -1
- package/lib/commonjs/components/CodeInput.js +0 -30
- package/lib/commonjs/components/CodeInput.js.map +0 -1
- package/lib/commonjs/components/EmailInput.js +0 -30
- package/lib/commonjs/components/EmailInput.js.map +0 -1
- package/lib/commonjs/components/ExistingUserDataConfirmation.js +0 -474
- package/lib/commonjs/components/ExistingUserDataConfirmation.js.map +0 -1
- package/lib/commonjs/components/GoogleButton.js +0 -55
- package/lib/commonjs/components/GoogleButton.js.map +0 -1
- package/lib/commonjs/components/HeadingGroup.js +0 -43
- package/lib/commonjs/components/HeadingGroup.js.map +0 -1
- package/lib/commonjs/components/ModalHeader.js +0 -99
- package/lib/commonjs/components/ModalHeader.js.map +0 -1
- package/lib/commonjs/components/ModalSheet.js +0 -47
- package/lib/commonjs/components/ModalSheet.js.map +0 -1
- package/lib/commonjs/components/OnairosSignInButton.js +0 -129
- package/lib/commonjs/components/OnairosSignInButton.js.map +0 -1
- package/lib/commonjs/components/PersonaImage.js +0 -60
- package/lib/commonjs/components/PersonaImage.js.map +0 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js +0 -156
- package/lib/commonjs/components/PersonaLoadingScreen.js.map +0 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js +0 -316
- package/lib/commonjs/components/PersonalizationConsentScreen.js.map +0 -1
- package/lib/commonjs/components/PinCreationScreen.js +0 -393
- package/lib/commonjs/components/PinCreationScreen.js.map +0 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +0 -828
- package/lib/commonjs/components/PlatformConnectorsStep.js.map +0 -1
- package/lib/commonjs/components/PlatformToggle.js +0 -180
- package/lib/commonjs/components/PlatformToggle.js.map +0 -1
- package/lib/commonjs/components/PrimaryButton.js +0 -180
- package/lib/commonjs/components/PrimaryButton.js.map +0 -1
- package/lib/commonjs/components/SignInMatchAnimation.js +0 -197
- package/lib/commonjs/components/SignInMatchAnimation.js.map +0 -1
- package/lib/commonjs/components/SignInStep.js +0 -179
- package/lib/commonjs/components/SignInStep.js.map +0 -1
- package/lib/commonjs/components/VerificationStep.js +0 -154
- package/lib/commonjs/components/VerificationStep.js.map +0 -1
- package/lib/commonjs/components/WelcomeScreen.js +0 -401
- package/lib/commonjs/components/WelcomeScreen.js.map +0 -1
- package/lib/commonjs/components/icons/Basicproficon.js +0 -37
- package/lib/commonjs/components/icons/Basicproficon.js.map +0 -1
- package/lib/commonjs/components/icons/Basicprofile.js +0 -21
- package/lib/commonjs/components/icons/Basicprofile.js.map +0 -1
- package/lib/commonjs/components/icons/Checkbox.js +0 -21
- package/lib/commonjs/components/icons/Checkbox.js.map +0 -1
- package/lib/commonjs/components/icons/Checkmark.js +0 -27
- package/lib/commonjs/components/icons/Checkmark.js.map +0 -1
- package/lib/commonjs/components/icons/Contentanalysis.js +0 -21
- package/lib/commonjs/components/icons/Contentanalysis.js.map +0 -1
- package/lib/commonjs/components/icons/Contenticon.js +0 -39
- package/lib/commonjs/components/icons/Contenticon.js.map +0 -1
- package/lib/commonjs/components/icons/EnochE.js +0 -41
- package/lib/commonjs/components/icons/EnochE.js.map +0 -1
- package/lib/commonjs/components/icons/Personalityicon.js +0 -30
- package/lib/commonjs/components/icons/Personalityicon.js.map +0 -1
- package/lib/commonjs/components/icons/Personalityprofile.js +0 -21
- package/lib/commonjs/components/icons/Personalityprofile.js.map +0 -1
- package/lib/commonjs/components/icons/Personalitytraits.js +0 -21
- package/lib/commonjs/components/icons/Personalitytraits.js.map +0 -1
- package/lib/commonjs/components/icons/Userpreferences.js +0 -21
- package/lib/commonjs/components/icons/Userpreferences.js.map +0 -1
- package/lib/commonjs/components/icons/index.js +0 -84
- package/lib/commonjs/components/icons/index.js.map +0 -1
- package/lib/commonjs/config/api.js +0 -34
- package/lib/commonjs/config/api.js.map +0 -1
- package/lib/commonjs/context/AuthContext.js +0 -345
- package/lib/commonjs/context/AuthContext.js.map +0 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js +0 -111
- package/lib/commonjs/hooks/useConnectedAccounts.js.map +0 -1
- package/lib/commonjs/hooks/useUserConnections.js +0 -148
- package/lib/commonjs/hooks/useUserConnections.js.map +0 -1
- package/lib/commonjs/services/apiClient.js +0 -302
- package/lib/commonjs/services/apiClient.js.map +0 -1
- package/lib/commonjs/services/authService.js +0 -935
- package/lib/commonjs/services/authService.js.map +0 -1
- package/lib/commonjs/services/biometricPinService.js +0 -184
- package/lib/commonjs/services/biometricPinService.js.map +0 -1
- package/lib/commonjs/services/connectedAccountsService.js +0 -268
- package/lib/commonjs/services/connectedAccountsService.js.map +0 -1
- package/lib/commonjs/services/googleAuthService.js +0 -268
- package/lib/commonjs/services/googleAuthService.js.map +0 -1
- package/lib/commonjs/services/imageCompressionService.js +0 -260
- package/lib/commonjs/services/imageCompressionService.js.map +0 -1
- package/lib/commonjs/services/jwtStorageService.js +0 -256
- package/lib/commonjs/services/jwtStorageService.js.map +0 -1
- package/lib/commonjs/services/mobileTrainingService.js +0 -185
- package/lib/commonjs/services/mobileTrainingService.js.map +0 -1
- package/lib/commonjs/services/pinEncryptionService.js +0 -84
- package/lib/commonjs/services/pinEncryptionService.js.map +0 -1
- package/lib/commonjs/services/pinStorageUtils.js +0 -105
- package/lib/commonjs/services/pinStorageUtils.js.map +0 -1
- package/lib/commonjs/services/storageService.js +0 -404
- package/lib/commonjs/services/storageService.js.map +0 -1
- package/lib/commonjs/services/trainingApiHelpers.js +0 -73
- package/lib/commonjs/services/trainingApiHelpers.js.map +0 -1
- package/lib/commonjs/services/userConnectionsService.js +0 -486
- package/lib/commonjs/services/userConnectionsService.js.map +0 -1
- package/lib/commonjs/services/youtubeMigrationService.js +0 -415
- package/lib/commonjs/services/youtubeMigrationService.js.map +0 -1
- package/lib/commonjs/theme/index.js +0 -249
- package/lib/commonjs/theme/index.js.map +0 -1
- package/lib/commonjs/utils/eventUtils.js +0 -288
- package/lib/commonjs/utils/eventUtils.js.map +0 -1
- package/lib/commonjs/utils/haptics.js +0 -66
- package/lib/commonjs/utils/haptics.js.map +0 -1
- package/lib/commonjs/utils/imagePreloader.js +0 -6
- package/lib/commonjs/utils/imagePreloader.js.map +0 -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 +0 -3
- package/lib/module/assets/images/EnochE.svg +0 -19
- 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 +0 -3
- package/lib/module/assets/images/Personalitytraits.svg +0 -3
- package/lib/module/assets/images/Redditicon.png +0 -0
- package/lib/module/assets/images/Userpreferences.svg +0 -3
- package/lib/module/assets/images/YouTubeicon3.png +0 -0
- package/lib/module/assets/images/arrow.svg +0 -20
- package/lib/module/assets/images/basicproficon.svg +0 -43
- package/lib/module/assets/images/basicprofile.svg +0 -3
- package/lib/module/assets/images/checkmark.svg +0 -4
- package/lib/module/assets/images/contentanalysis.svg +0 -3
- package/lib/module/assets/images/contenticon.svg +0 -23
- 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 +0 -18
- package/lib/module/assets/images/x-close.svg +0 -3
- package/lib/module/components/BodyText.js +0 -20
- package/lib/module/components/BodyText.js.map +0 -1
- package/lib/module/components/BrandMark.js +0 -37
- package/lib/module/components/BrandMark.js.map +0 -1
- package/lib/module/components/CodeInput.js +0 -23
- package/lib/module/components/CodeInput.js.map +0 -1
- package/lib/module/components/EmailInput.js +0 -23
- package/lib/module/components/EmailInput.js.map +0 -1
- package/lib/module/components/ExistingUserDataConfirmation.js +0 -465
- package/lib/module/components/ExistingUserDataConfirmation.js.map +0 -1
- package/lib/module/components/GoogleButton.js +0 -48
- package/lib/module/components/GoogleButton.js.map +0 -1
- package/lib/module/components/HeadingGroup.js +0 -36
- package/lib/module/components/HeadingGroup.js.map +0 -1
- package/lib/module/components/ModalHeader.js +0 -92
- package/lib/module/components/ModalHeader.js.map +0 -1
- package/lib/module/components/ModalSheet.js +0 -39
- package/lib/module/components/ModalSheet.js.map +0 -1
- package/lib/module/components/OnairosSignInButton.js +0 -120
- package/lib/module/components/OnairosSignInButton.js.map +0 -1
- package/lib/module/components/PersonaImage.js +0 -53
- package/lib/module/components/PersonaImage.js.map +0 -1
- package/lib/module/components/PersonaLoadingScreen.js +0 -148
- package/lib/module/components/PersonaLoadingScreen.js.map +0 -1
- package/lib/module/components/PersonalizationConsentScreen.js +0 -309
- package/lib/module/components/PersonalizationConsentScreen.js.map +0 -1
- package/lib/module/components/PinCreationScreen.js +0 -386
- package/lib/module/components/PinCreationScreen.js.map +0 -1
- package/lib/module/components/PlatformConnectorsStep.js +0 -820
- package/lib/module/components/PlatformConnectorsStep.js.map +0 -1
- package/lib/module/components/PlatformToggle.js +0 -173
- package/lib/module/components/PlatformToggle.js.map +0 -1
- package/lib/module/components/PrimaryButton.js +0 -172
- package/lib/module/components/PrimaryButton.js.map +0 -1
- package/lib/module/components/SignInMatchAnimation.js +0 -189
- package/lib/module/components/SignInMatchAnimation.js.map +0 -1
- package/lib/module/components/SignInStep.js +0 -171
- package/lib/module/components/SignInStep.js.map +0 -1
- package/lib/module/components/VerificationStep.js +0 -146
- package/lib/module/components/VerificationStep.js.map +0 -1
- package/lib/module/components/WelcomeScreen.js +0 -393
- package/lib/module/components/WelcomeScreen.js.map +0 -1
- package/lib/module/components/icons/Basicproficon.js +0 -30
- package/lib/module/components/icons/Basicproficon.js.map +0 -1
- package/lib/module/components/icons/Basicprofile.js +0 -14
- package/lib/module/components/icons/Basicprofile.js.map +0 -1
- package/lib/module/components/icons/Checkbox.js +0 -14
- package/lib/module/components/icons/Checkbox.js.map +0 -1
- package/lib/module/components/icons/Checkmark.js +0 -20
- package/lib/module/components/icons/Checkmark.js.map +0 -1
- package/lib/module/components/icons/Contentanalysis.js +0 -14
- package/lib/module/components/icons/Contentanalysis.js.map +0 -1
- package/lib/module/components/icons/Contenticon.js +0 -32
- package/lib/module/components/icons/Contenticon.js.map +0 -1
- package/lib/module/components/icons/EnochE.js +0 -34
- package/lib/module/components/icons/EnochE.js.map +0 -1
- package/lib/module/components/icons/Personalityicon.js +0 -23
- package/lib/module/components/icons/Personalityicon.js.map +0 -1
- package/lib/module/components/icons/Personalityprofile.js +0 -14
- package/lib/module/components/icons/Personalityprofile.js.map +0 -1
- package/lib/module/components/icons/Personalitytraits.js +0 -14
- package/lib/module/components/icons/Personalitytraits.js.map +0 -1
- package/lib/module/components/icons/Userpreferences.js +0 -14
- package/lib/module/components/icons/Userpreferences.js.map +0 -1
- package/lib/module/components/icons/index.js +0 -13
- package/lib/module/components/icons/index.js.map +0 -1
- package/lib/module/config/api.js +0 -26
- package/lib/module/config/api.js.map +0 -1
- package/lib/module/context/AuthContext.js +0 -335
- package/lib/module/context/AuthContext.js.map +0 -1
- package/lib/module/hooks/useConnectedAccounts.js +0 -106
- package/lib/module/hooks/useConnectedAccounts.js.map +0 -1
- package/lib/module/hooks/useUserConnections.js +0 -140
- package/lib/module/hooks/useUserConnections.js.map +0 -1
- package/lib/module/services/apiClient.js +0 -298
- package/lib/module/services/apiClient.js.map +0 -1
- package/lib/module/services/authService.js +0 -905
- package/lib/module/services/authService.js.map +0 -1
- package/lib/module/services/biometricPinService.js +0 -173
- package/lib/module/services/biometricPinService.js.map +0 -1
- package/lib/module/services/connectedAccountsService.js +0 -255
- package/lib/module/services/connectedAccountsService.js.map +0 -1
- package/lib/module/services/googleAuthService.js +0 -258
- package/lib/module/services/googleAuthService.js.map +0 -1
- package/lib/module/services/imageCompressionService.js +0 -250
- package/lib/module/services/imageCompressionService.js.map +0 -1
- package/lib/module/services/jwtStorageService.js +0 -239
- package/lib/module/services/jwtStorageService.js.map +0 -1
- package/lib/module/services/mobileTrainingService.js +0 -172
- package/lib/module/services/mobileTrainingService.js.map +0 -1
- package/lib/module/services/pinEncryptionService.js +0 -75
- package/lib/module/services/pinEncryptionService.js.map +0 -1
- package/lib/module/services/pinStorageUtils.js +0 -93
- package/lib/module/services/pinStorageUtils.js.map +0 -1
- package/lib/module/services/storageService.js +0 -383
- package/lib/module/services/storageService.js.map +0 -1
- package/lib/module/services/trainingApiHelpers.js +0 -67
- package/lib/module/services/trainingApiHelpers.js.map +0 -1
- package/lib/module/services/userConnectionsService.js +0 -476
- package/lib/module/services/userConnectionsService.js.map +0 -1
- package/lib/module/services/youtubeMigrationService.js +0 -404
- package/lib/module/services/youtubeMigrationService.js.map +0 -1
- package/lib/module/theme/index.js +0 -244
- package/lib/module/theme/index.js.map +0 -1
- package/lib/module/utils/eventUtils.js +0 -270
- package/lib/module/utils/eventUtils.js.map +0 -1
- package/lib/module/utils/haptics.js +0 -59
- package/lib/module/utils/haptics.js.map +0 -1
- package/lib/module/utils/imagePreloader.js +0 -3
- package/lib/module/utils/imagePreloader.js.map +0 -1
- package/lib/typescript/components/BodyText.d.ts +0 -10
- package/lib/typescript/components/BodyText.d.ts.map +0 -1
- package/lib/typescript/components/BrandMark.d.ts +0 -11
- package/lib/typescript/components/BrandMark.d.ts.map +0 -1
- package/lib/typescript/components/CodeInput.d.ts +0 -10
- package/lib/typescript/components/CodeInput.d.ts.map +0 -1
- package/lib/typescript/components/EmailInput.d.ts +0 -8
- package/lib/typescript/components/EmailInput.d.ts.map +0 -1
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts +0 -12
- package/lib/typescript/components/ExistingUserDataConfirmation.d.ts.map +0 -1
- package/lib/typescript/components/GoogleButton.d.ts +0 -11
- package/lib/typescript/components/GoogleButton.d.ts.map +0 -1
- package/lib/typescript/components/HeadingGroup.d.ts +0 -11
- package/lib/typescript/components/HeadingGroup.d.ts.map +0 -1
- package/lib/typescript/components/ModalHeader.d.ts +0 -11
- package/lib/typescript/components/ModalHeader.d.ts.map +0 -1
- package/lib/typescript/components/ModalSheet.d.ts +0 -13
- package/lib/typescript/components/ModalSheet.d.ts.map +0 -1
- package/lib/typescript/components/OnairosSignInButton.d.ts +0 -13
- package/lib/typescript/components/OnairosSignInButton.d.ts.map +0 -1
- package/lib/typescript/components/PersonaImage.d.ts +0 -8
- package/lib/typescript/components/PersonaImage.d.ts.map +0 -1
- package/lib/typescript/components/PersonaLoadingScreen.d.ts +0 -10
- package/lib/typescript/components/PersonaLoadingScreen.d.ts.map +0 -1
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts +0 -10
- package/lib/typescript/components/PersonalizationConsentScreen.d.ts.map +0 -1
- package/lib/typescript/components/PinCreationScreen.d.ts +0 -10
- package/lib/typescript/components/PinCreationScreen.d.ts.map +0 -1
- package/lib/typescript/components/PlatformConnectorsStep.d.ts +0 -11
- package/lib/typescript/components/PlatformConnectorsStep.d.ts.map +0 -1
- package/lib/typescript/components/PlatformToggle.d.ts +0 -20
- package/lib/typescript/components/PlatformToggle.d.ts.map +0 -1
- package/lib/typescript/components/PrimaryButton.d.ts +0 -22
- package/lib/typescript/components/PrimaryButton.d.ts.map +0 -1
- package/lib/typescript/components/SignInMatchAnimation.d.ts +0 -9
- package/lib/typescript/components/SignInMatchAnimation.d.ts.map +0 -1
- package/lib/typescript/components/SignInStep.d.ts +0 -12
- package/lib/typescript/components/SignInStep.d.ts.map +0 -1
- package/lib/typescript/components/VerificationStep.d.ts +0 -13
- package/lib/typescript/components/VerificationStep.d.ts.map +0 -1
- package/lib/typescript/components/WelcomeScreen.d.ts +0 -9
- package/lib/typescript/components/WelcomeScreen.d.ts.map +0 -1
- package/lib/typescript/components/icons/Basicproficon.d.ts +0 -5
- package/lib/typescript/components/icons/Basicproficon.d.ts.map +0 -1
- package/lib/typescript/components/icons/Basicprofile.d.ts +0 -5
- package/lib/typescript/components/icons/Basicprofile.d.ts.map +0 -1
- package/lib/typescript/components/icons/Checkbox.d.ts +0 -5
- package/lib/typescript/components/icons/Checkbox.d.ts.map +0 -1
- package/lib/typescript/components/icons/Checkmark.d.ts +0 -5
- package/lib/typescript/components/icons/Checkmark.d.ts.map +0 -1
- package/lib/typescript/components/icons/Contentanalysis.d.ts +0 -5
- package/lib/typescript/components/icons/Contentanalysis.d.ts.map +0 -1
- package/lib/typescript/components/icons/Contenticon.d.ts +0 -5
- package/lib/typescript/components/icons/Contenticon.d.ts.map +0 -1
- package/lib/typescript/components/icons/EnochE.d.ts +0 -5
- package/lib/typescript/components/icons/EnochE.d.ts.map +0 -1
- package/lib/typescript/components/icons/Personalityicon.d.ts +0 -5
- package/lib/typescript/components/icons/Personalityicon.d.ts.map +0 -1
- package/lib/typescript/components/icons/Personalityprofile.d.ts +0 -5
- package/lib/typescript/components/icons/Personalityprofile.d.ts.map +0 -1
- package/lib/typescript/components/icons/Personalitytraits.d.ts +0 -5
- package/lib/typescript/components/icons/Personalitytraits.d.ts.map +0 -1
- package/lib/typescript/components/icons/Userpreferences.d.ts +0 -5
- package/lib/typescript/components/icons/Userpreferences.d.ts.map +0 -1
- package/lib/typescript/components/icons/index.d.ts +0 -12
- package/lib/typescript/components/icons/index.d.ts.map +0 -1
- package/lib/typescript/config/api.d.ts +0 -24
- package/lib/typescript/config/api.d.ts.map +0 -1
- package/lib/typescript/context/AuthContext.d.ts +0 -34
- package/lib/typescript/context/AuthContext.d.ts.map +0 -1
- package/lib/typescript/hooks/useConnectedAccounts.d.ts +0 -11
- package/lib/typescript/hooks/useConnectedAccounts.d.ts.map +0 -1
- package/lib/typescript/hooks/useUserConnections.d.ts +0 -12
- package/lib/typescript/hooks/useUserConnections.d.ts.map +0 -1
- package/lib/typescript/services/apiClient.d.ts +0 -91
- package/lib/typescript/services/apiClient.d.ts.map +0 -1
- package/lib/typescript/services/authService.d.ts +0 -216
- package/lib/typescript/services/authService.d.ts.map +0 -1
- package/lib/typescript/services/biometricPinService.d.ts +0 -29
- package/lib/typescript/services/biometricPinService.d.ts.map +0 -1
- package/lib/typescript/services/connectedAccountsService.d.ts +0 -56
- package/lib/typescript/services/connectedAccountsService.d.ts.map +0 -1
- package/lib/typescript/services/googleAuthService.d.ts +0 -63
- package/lib/typescript/services/googleAuthService.d.ts.map +0 -1
- package/lib/typescript/services/imageCompressionService.d.ts +0 -37
- package/lib/typescript/services/imageCompressionService.d.ts.map +0 -1
- package/lib/typescript/services/jwtStorageService.d.ts +0 -86
- package/lib/typescript/services/jwtStorageService.d.ts.map +0 -1
- package/lib/typescript/services/mobileTrainingService.d.ts +0 -45
- package/lib/typescript/services/mobileTrainingService.d.ts.map +0 -1
- package/lib/typescript/services/pinEncryptionService.d.ts +0 -17
- package/lib/typescript/services/pinEncryptionService.d.ts.map +0 -1
- package/lib/typescript/services/pinStorageUtils.d.ts +0 -25
- package/lib/typescript/services/pinStorageUtils.d.ts.map +0 -1
- package/lib/typescript/services/storageService.d.ts +0 -128
- package/lib/typescript/services/storageService.d.ts.map +0 -1
- package/lib/typescript/services/trainingApiHelpers.d.ts +0 -38
- package/lib/typescript/services/trainingApiHelpers.d.ts.map +0 -1
- package/lib/typescript/services/userConnectionsService.d.ts +0 -90
- package/lib/typescript/services/userConnectionsService.d.ts.map +0 -1
- package/lib/typescript/services/youtubeMigrationService.d.ts +0 -12
- package/lib/typescript/services/youtubeMigrationService.d.ts.map +0 -1
- package/lib/typescript/theme/index.d.ts +0 -416
- package/lib/typescript/theme/index.d.ts.map +0 -1
- package/lib/typescript/utils/eventUtils.d.ts +0 -108
- package/lib/typescript/utils/eventUtils.d.ts.map +0 -1
- package/lib/typescript/utils/haptics.d.ts +0 -11
- package/lib/typescript/utils/haptics.d.ts.map +0 -1
- package/lib/typescript/utils/imagePreloader.d.ts +0 -2
- package/lib/typescript/utils/imagePreloader.d.ts.map +0 -1
- 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 +0 -3
- package/src/assets/images/EnochE.svg +0 -19
- 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 +0 -3
- package/src/assets/images/Personalitytraits.svg +0 -3
- package/src/assets/images/Redditicon.png +0 -0
- package/src/assets/images/Userpreferences.svg +0 -3
- package/src/assets/images/YouTubeicon3.png +0 -0
- package/src/assets/images/arrow.svg +0 -20
- package/src/assets/images/basicproficon.svg +0 -43
- package/src/assets/images/basicprofile.svg +0 -3
- package/src/assets/images/checkmark.svg +0 -4
- package/src/assets/images/contentanalysis.svg +0 -3
- package/src/assets/images/contenticon.svg +0 -23
- 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 +0 -18
- package/src/assets/images/x-close.svg +0 -3
- package/src/components/BodyText.tsx +0 -33
- package/src/components/BrandMark.tsx +0 -62
- package/src/components/CodeInput.tsx +0 -32
- package/src/components/EmailInput.tsx +0 -31
- package/src/components/ExistingUserDataConfirmation.tsx +0 -507
- package/src/components/GoogleButton.tsx +0 -55
- package/src/components/HeadingGroup.tsx +0 -49
- package/src/components/ModalHeader.tsx +0 -125
- package/src/components/ModalSheet.tsx +0 -59
- package/src/components/OnairosSignInButton.tsx +0 -132
- package/src/components/PersonaImage.tsx +0 -79
- package/src/components/PersonaLoadingScreen.tsx +0 -201
- package/src/components/PersonalizationConsentScreen.tsx +0 -410
- package/src/components/PinCreationScreen.tsx +0 -492
- package/src/components/PlatformConnectorsStep.tsx +0 -892
- package/src/components/PlatformToggle.tsx +0 -226
- package/src/components/PrimaryButton.tsx +0 -214
- package/src/components/SignInMatchAnimation.tsx +0 -225
- package/src/components/SignInStep.tsx +0 -217
- package/src/components/VerificationStep.tsx +0 -198
- package/src/components/WelcomeScreen.tsx +0 -490
- package/src/components/icons/Basicproficon.tsx +0 -30
- package/src/components/icons/Basicprofile.tsx +0 -17
- package/src/components/icons/Checkbox.tsx +0 -17
- package/src/components/icons/Checkmark.tsx +0 -24
- package/src/components/icons/Contentanalysis.tsx +0 -17
- package/src/components/icons/Contenticon.tsx +0 -30
- package/src/components/icons/EnochE.tsx +0 -39
- package/src/components/icons/Personalityicon.tsx +0 -22
- package/src/components/icons/Personalityprofile.tsx +0 -17
- package/src/components/icons/Personalitytraits.tsx +0 -17
- package/src/components/icons/Userpreferences.tsx +0 -17
- package/src/components/icons/index.ts +0 -12
- package/src/config/api.ts +0 -25
- package/src/context/AuthContext.tsx +0 -393
- package/src/hooks/useConnectedAccounts.ts +0 -139
- package/src/hooks/useUserConnections.ts +0 -166
- package/src/services/apiClient.ts +0 -337
- package/src/services/authService.ts +0 -1008
- package/src/services/biometricPinService.ts +0 -193
- package/src/services/connectedAccountsService.ts +0 -290
- package/src/services/googleAuthService.ts +0 -279
- package/src/services/imageCompressionService.ts +0 -303
- package/src/services/jwtStorageService.ts +0 -257
- package/src/services/mobileTrainingService.ts +0 -204
- package/src/services/pinEncryptionService.ts +0 -76
- package/src/services/pinStorageUtils.ts +0 -97
- package/src/services/storageService.ts +0 -452
- package/src/services/trainingApiHelpers.ts +0 -67
- package/src/services/userConnectionsService.ts +0 -557
- package/src/services/youtubeMigrationService.ts +0 -454
- package/src/theme/index.ts +0 -239
- package/src/utils/eventUtils.ts +0 -303
- package/src/utils/haptics.ts +0 -59
- package/src/utils/imagePreloader.ts +0 -2
|
@@ -1,828 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = 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 _PlatformToggle = _interopRequireDefault(require("./PlatformToggle"));
|
|
12
|
-
var _PersonaImage = _interopRequireDefault(require("./PersonaImage"));
|
|
13
|
-
var _PrimaryButton = _interopRequireDefault(require("./PrimaryButton"));
|
|
14
|
-
var _PersonalizationConsentScreen = _interopRequireDefault(require("./PersonalizationConsentScreen"));
|
|
15
|
-
var _PinCreationScreen = _interopRequireDefault(require("./PinCreationScreen"));
|
|
16
|
-
var _PersonaLoadingScreen = _interopRequireDefault(require("./PersonaLoadingScreen"));
|
|
17
|
-
var _useConnections = require("../hooks/useConnections");
|
|
18
|
-
var _connectedAccountsService = require("../services/connectedAccountsService");
|
|
19
|
-
var _platformAuthService = require("../services/platformAuthService");
|
|
20
|
-
var _OAuthWebView = require("./onboarding/OAuthWebView");
|
|
21
|
-
var _AuthContext = require("../context/AuthContext");
|
|
22
|
-
var _mobileTrainingService = require("../services/mobileTrainingService");
|
|
23
|
-
var _authService = require("../services/authService");
|
|
24
|
-
var _pinEncryptionService = require("../services/pinEncryptionService");
|
|
25
|
-
var _pinStorageUtils = require("../services/pinStorageUtils");
|
|
26
|
-
var _asyncStorage = _interopRequireDefault(require("@react-native-async-storage/async-storage"));
|
|
27
|
-
var _socket = require("socket.io-client");
|
|
28
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
|
-
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); }
|
|
30
|
-
const PlatformConnectorsStep = ({
|
|
31
|
-
onUpdate,
|
|
32
|
-
onSkip,
|
|
33
|
-
loading = false,
|
|
34
|
-
onPinComplete,
|
|
35
|
-
onReviewerBypass
|
|
36
|
-
}) => {
|
|
37
|
-
const [connectedPlatforms, setConnectedPlatforms] = (0, _react.useState)(new Set());
|
|
38
|
-
const [showConsentScreen, setShowConsentScreen] = (0, _react.useState)(false);
|
|
39
|
-
const [showPinScreen, setShowPinScreen] = (0, _react.useState)(false);
|
|
40
|
-
const [showLoadingScreen, setShowLoadingScreen] = (0, _react.useState)(false);
|
|
41
|
-
const [createdPin, setCreatedPin] = (0, _react.useState)('');
|
|
42
|
-
const [connectionStatuses, setConnectionStatuses] = (0, _react.useState)({});
|
|
43
|
-
const [showOAuthWebView, setShowOAuthWebView] = (0, _react.useState)(false);
|
|
44
|
-
const [oauthUrl, setOauthUrl] = (0, _react.useState)('');
|
|
45
|
-
const [currentPlatform, setCurrentPlatform] = (0, _react.useState)('');
|
|
46
|
-
const [longPressTimer, setLongPressTimer] = (0, _react.useState)(null);
|
|
47
|
-
|
|
48
|
-
// EXACT same training state variables as UniversalOnboarding
|
|
49
|
-
const [username, setUsername] = (0, _react.useState)('');
|
|
50
|
-
const [personaProgress, setPersonaProgress] = (0, _react.useState)(0);
|
|
51
|
-
const [personaStatus, setPersonaStatus] = (0, _react.useState)('Initializing...');
|
|
52
|
-
const [isPersonaComplete, setIsPersonaComplete] = (0, _react.useState)(false);
|
|
53
|
-
const [socketConnected, setSocketConnected] = (0, _react.useState)(false);
|
|
54
|
-
const [hasError, setHasError] = (0, _react.useState)(false);
|
|
55
|
-
const [userTraits, setUserTraits] = (0, _react.useState)(null);
|
|
56
|
-
const [inferenceResults, setInferenceResults] = (0, _react.useState)(null);
|
|
57
|
-
const [userToken, setUserToken] = (0, _react.useState)(null);
|
|
58
|
-
const [userInfo, setUserInfo] = (0, _react.useState)(null);
|
|
59
|
-
const socketRef = (0, _react.useRef)(null);
|
|
60
|
-
|
|
61
|
-
// EXACT same background training state as UniversalOnboarding
|
|
62
|
-
const [isBackgroundTrainingStarted, setIsBackgroundTrainingStarted] = (0, _react.useState)(false);
|
|
63
|
-
const [backgroundTrainingProgress, setBackgroundTrainingProgress] = (0, _react.useState)('');
|
|
64
|
-
const [backgroundSocketId, setBackgroundSocketId] = (0, _react.useState)(null);
|
|
65
|
-
|
|
66
|
-
// Use the real platform connection hook
|
|
67
|
-
const {
|
|
68
|
-
connectPlatform,
|
|
69
|
-
disconnectPlatform,
|
|
70
|
-
isConnecting
|
|
71
|
-
} = (0, _useConnections.useConnections)();
|
|
72
|
-
|
|
73
|
-
// Get the authenticated user from auth context
|
|
74
|
-
const {
|
|
75
|
-
user
|
|
76
|
-
} = (0, _AuthContext.useAuth)();
|
|
77
|
-
|
|
78
|
-
// Initialize username on mount
|
|
79
|
-
(0, _react.useEffect)(() => {
|
|
80
|
-
const initializeUsername = async () => {
|
|
81
|
-
try {
|
|
82
|
-
// First try to get stored username
|
|
83
|
-
const storedUsername = await _asyncStorage.default.getItem('onairos_username');
|
|
84
|
-
if (storedUsername && !username) {
|
|
85
|
-
console.log('📝 [USERNAME] Using stored username:', storedUsername);
|
|
86
|
-
setUsername(storedUsername);
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// If no stored username, generate from user data
|
|
91
|
-
if (user && !username) {
|
|
92
|
-
var _user$email;
|
|
93
|
-
const initialUsername = (user === null || user === void 0 || (_user$email = user.email) === null || _user$email === void 0 ? void 0 : _user$email.split('@')[0]) || (user === null || user === void 0 ? void 0 : user.name) || `user_${Math.floor(Math.random() * 10000)}`;
|
|
94
|
-
console.log('📝 [USERNAME] Generated username from user data:', initialUsername);
|
|
95
|
-
setUsername(initialUsername);
|
|
96
|
-
// Store it for future use
|
|
97
|
-
await _asyncStorage.default.setItem('onairos_username', initialUsername);
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// If no user data and no stored username, create a fallback
|
|
102
|
-
if (!username) {
|
|
103
|
-
const fallbackUsername = `mobile_user_${Math.floor(Math.random() * 10000)}`;
|
|
104
|
-
console.log('📝 [USERNAME] Using fallback username:', fallbackUsername);
|
|
105
|
-
setUsername(fallbackUsername);
|
|
106
|
-
await _asyncStorage.default.setItem('onairos_username', fallbackUsername);
|
|
107
|
-
}
|
|
108
|
-
} catch (error) {
|
|
109
|
-
console.error('❌ [USERNAME] Error initializing username:', error);
|
|
110
|
-
// Fallback to simple username
|
|
111
|
-
const fallbackUsername = `user_${Math.floor(Math.random() * 10000)}`;
|
|
112
|
-
setUsername(fallbackUsername);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
initializeUsername();
|
|
116
|
-
}, [user, username]);
|
|
117
|
-
|
|
118
|
-
// EXACT same ensureAuthToken function from UniversalOnboarding
|
|
119
|
-
const ensureAuthToken = async () => {
|
|
120
|
-
try {
|
|
121
|
-
var _user$name, _onairosResponseData$;
|
|
122
|
-
let existingToken = (await _asyncStorage.default.getItem('onairos_jwt_token')) || (await _asyncStorage.default.getItem('enoch_token')) || (await _asyncStorage.default.getItem('auth_token'));
|
|
123
|
-
if (existingToken && existingToken.trim().length > 20) {
|
|
124
|
-
console.log('✅ Authentication token already exists:', `${existingToken.substring(0, 20)}...`);
|
|
125
|
-
return existingToken;
|
|
126
|
-
}
|
|
127
|
-
console.log('🔐 Creating Enoch authentication token...');
|
|
128
|
-
console.log('🔍 [ENSURE AUTH] Current username state:', username);
|
|
129
|
-
console.log('🔍 [ENSURE AUTH] Current user state:', user);
|
|
130
|
-
const fallbackEmail = (user === null || user === void 0 ? void 0 : user.email) || `${username || 'user'}@onairos.temp`;
|
|
131
|
-
const fallbackUsername = username || (user === null || user === void 0 || (_user$name = user.name) === null || _user$name === void 0 ? void 0 : _user$name.split('@')[0]) || 'mobile_user';
|
|
132
|
-
console.log('🔍 [ENSURE AUTH] Using fallback email:', fallbackEmail);
|
|
133
|
-
console.log('🔍 [ENSURE AUTH] Using fallback username:', fallbackUsername);
|
|
134
|
-
|
|
135
|
-
// Create Enoch user
|
|
136
|
-
try {
|
|
137
|
-
await fetch('https://api2.onairos.uk/enoch/users/register', {
|
|
138
|
-
method: 'POST',
|
|
139
|
-
headers: {
|
|
140
|
-
'Content-Type': 'application/json'
|
|
141
|
-
},
|
|
142
|
-
body: JSON.stringify({
|
|
143
|
-
email: fallbackEmail,
|
|
144
|
-
name: fallbackUsername,
|
|
145
|
-
photoUrl: ''
|
|
146
|
-
})
|
|
147
|
-
});
|
|
148
|
-
} catch (enochError) {
|
|
149
|
-
console.warn('⚠️ Enoch user creation failed (continuing):', enochError);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Create Onairos account to get JWT token
|
|
153
|
-
const onairosSignupResponse = await fetch('https://api2.onairos.uk/register/enoch', {
|
|
154
|
-
method: 'POST',
|
|
155
|
-
headers: {
|
|
156
|
-
'Content-Type': 'application/json'
|
|
157
|
-
},
|
|
158
|
-
body: JSON.stringify({
|
|
159
|
-
email: fallbackEmail,
|
|
160
|
-
username: fallbackUsername,
|
|
161
|
-
name: fallbackUsername
|
|
162
|
-
})
|
|
163
|
-
});
|
|
164
|
-
if (!onairosSignupResponse.ok) {
|
|
165
|
-
const errorText = await onairosSignupResponse.text();
|
|
166
|
-
throw new Error(`Onairos signup failed: ${onairosSignupResponse.status} ${errorText}`);
|
|
167
|
-
}
|
|
168
|
-
const onairosResponseData = await onairosSignupResponse.json();
|
|
169
|
-
let authToken = onairosResponseData.token || ((_onairosResponseData$ = onairosResponseData.data) === null || _onairosResponseData$ === void 0 ? void 0 : _onairosResponseData$.token) || onairosResponseData.jwt;
|
|
170
|
-
if (!authToken) {
|
|
171
|
-
throw new Error('No authentication token returned from server');
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Store the token
|
|
175
|
-
await _asyncStorage.default.setItem('onairos_jwt_token', authToken);
|
|
176
|
-
await _asyncStorage.default.setItem('auth_token', authToken);
|
|
177
|
-
await _asyncStorage.default.setItem('enoch_token', authToken);
|
|
178
|
-
await _asyncStorage.default.setItem('onairos_username', onairosResponseData.username || fallbackUsername);
|
|
179
|
-
console.log('✅ Successfully stored authentication tokens');
|
|
180
|
-
return authToken;
|
|
181
|
-
} catch (error) {
|
|
182
|
-
console.error('❌ Error ensuring authentication token:', error);
|
|
183
|
-
throw error;
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// EXACT same background training function from UniversalOnboarding
|
|
188
|
-
const startBackgroundTraining = (0, _react.useCallback)(async () => {
|
|
189
|
-
try {
|
|
190
|
-
console.log('🚀 [BACKGROUND] Starting background training optimization...');
|
|
191
|
-
setBackgroundTrainingProgress('Connecting...');
|
|
192
|
-
const authToken = await ensureAuthToken();
|
|
193
|
-
if (!authToken) {
|
|
194
|
-
throw new Error('Failed to create authentication token for background training');
|
|
195
|
-
}
|
|
196
|
-
console.log('✅ [BACKGROUND] Auth token ready:', `${authToken.substring(0, 20)}...`);
|
|
197
|
-
setUserToken(authToken);
|
|
198
|
-
|
|
199
|
-
// Set up user info if not available
|
|
200
|
-
if (!userInfo) {
|
|
201
|
-
var _user$email2;
|
|
202
|
-
const storedUsername = await (0, _authService.getOnairosUsername)();
|
|
203
|
-
const fallbackUsername = storedUsername || (user === null || user === void 0 || (_user$email2 = user.email) === null || _user$email2 === void 0 ? void 0 : _user$email2.split('@')[0]) || (user === null || user === void 0 ? void 0 : user.name) || 'mobile_user';
|
|
204
|
-
const newUserInfo = {
|
|
205
|
-
username: fallbackUsername,
|
|
206
|
-
email: (user === null || user === void 0 ? void 0 : user.email) || null,
|
|
207
|
-
id: null
|
|
208
|
-
};
|
|
209
|
-
setUserInfo(newUserInfo);
|
|
210
|
-
setUsername(fallbackUsername);
|
|
211
|
-
console.log('🧑💻 [BACKGROUND] User info set:', newUserInfo);
|
|
212
|
-
}
|
|
213
|
-
console.log('🔌 [BACKGROUND] Setting up socket for background training...');
|
|
214
|
-
setBackgroundTrainingProgress('Initializing data collection...');
|
|
215
|
-
const backgroundSocket = (0, _socket.io)('https://api2.onairos.uk', {
|
|
216
|
-
transports: ['websocket', 'polling'],
|
|
217
|
-
autoConnect: false,
|
|
218
|
-
timeout: 15000,
|
|
219
|
-
reconnection: true,
|
|
220
|
-
reconnectionAttempts: 3,
|
|
221
|
-
reconnectionDelay: 1000,
|
|
222
|
-
forceNew: true
|
|
223
|
-
});
|
|
224
|
-
backgroundSocket.on('connect', async () => {
|
|
225
|
-
console.log('✅ [BACKGROUND] Socket connected, starting background data collection...');
|
|
226
|
-
const socketId = backgroundSocket.id;
|
|
227
|
-
setBackgroundSocketId(socketId || null);
|
|
228
|
-
setBackgroundTrainingProgress('Collecting your data...');
|
|
229
|
-
if (socketId) {
|
|
230
|
-
// Step 4: Start background training WITHOUT PIN (per backend instructions)
|
|
231
|
-
await startBackgroundEnochTraining(socketId, authToken);
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
backgroundSocket.on('trainingUpdate', data => {
|
|
235
|
-
console.log('🔥 [SOCKET] Received trainingUpdate event:', data);
|
|
236
|
-
if (data.progress) {
|
|
237
|
-
setBackgroundTrainingProgress(data.status || 'Processing...');
|
|
238
|
-
setPersonaProgress(data.progress);
|
|
239
|
-
setPersonaStatus(data.status || 'Training in progress');
|
|
240
|
-
console.log('📊 [BACKGROUND] Training progress:', data.progress, '%');
|
|
241
|
-
} else {
|
|
242
|
-
console.log('⚠️ [SOCKET] trainingUpdate event has no progress data:', data);
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
backgroundSocket.on('disconnect', () => {
|
|
246
|
-
console.log('❌ [BACKGROUND] Socket disconnected');
|
|
247
|
-
});
|
|
248
|
-
backgroundSocket.on('trainingCompleted', data => {
|
|
249
|
-
console.log('🔥 [SOCKET] Received trainingCompleted event:', data);
|
|
250
|
-
console.log('✅ [BACKGROUND] Training Complete:', data);
|
|
251
|
-
setPersonaStatus('Running test inference');
|
|
252
|
-
setPersonaProgress(60);
|
|
253
|
-
});
|
|
254
|
-
backgroundSocket.on('inferenceCompleted', data => {
|
|
255
|
-
console.log('🔥 [SOCKET] Received inferenceCompleted event:', data);
|
|
256
|
-
console.log('🧠 [BACKGROUND] Inference Complete:', data);
|
|
257
|
-
setPersonaStatus('Uploading to S3');
|
|
258
|
-
setPersonaProgress(80);
|
|
259
|
-
});
|
|
260
|
-
backgroundSocket.on('modelStandby', data => {
|
|
261
|
-
console.log('🔥 [SOCKET] Received modelStandby event:', data);
|
|
262
|
-
console.log('🎉 [BACKGROUND] All Complete:', data);
|
|
263
|
-
setIsPersonaComplete(true);
|
|
264
|
-
setPersonaStatus('Complete!');
|
|
265
|
-
setPersonaProgress(100);
|
|
266
|
-
});
|
|
267
|
-
backgroundSocket.on('connect_error', error => {
|
|
268
|
-
console.error('❌ [BACKGROUND] Socket connection error:', error);
|
|
269
|
-
setBackgroundTrainingProgress('Connection failed');
|
|
270
|
-
setPersonaStatus('Connection error');
|
|
271
|
-
setPersonaProgress(0);
|
|
272
|
-
});
|
|
273
|
-
|
|
274
|
-
// Store socket reference for later use
|
|
275
|
-
socketRef.current = backgroundSocket;
|
|
276
|
-
|
|
277
|
-
// Connect the socket to start background training
|
|
278
|
-
backgroundSocket.connect();
|
|
279
|
-
console.log('✅ [BACKGROUND] Background training initiated successfully');
|
|
280
|
-
} catch (error) {
|
|
281
|
-
console.error('❌ [BACKGROUND] Error starting background training:', error);
|
|
282
|
-
setBackgroundTrainingProgress('Failed to start training');
|
|
283
|
-
setPersonaStatus('Training failed');
|
|
284
|
-
setPersonaProgress(0);
|
|
285
|
-
}
|
|
286
|
-
}, [userInfo, username, user, connectedPlatforms]);
|
|
287
|
-
|
|
288
|
-
// EXACT same background training API call from UniversalOnboarding
|
|
289
|
-
const startBackgroundEnochTraining = async (socketId, authToken) => {
|
|
290
|
-
try {
|
|
291
|
-
console.log('🚀 [BACKGROUND] Starting background training with socketId:', socketId);
|
|
292
|
-
console.log('🔑 Using auth token:', `${authToken.substring(0, 20)}...`);
|
|
293
|
-
|
|
294
|
-
// Prepare background training data - EXACT same as UniversalOnboarding
|
|
295
|
-
const backgroundData = {
|
|
296
|
-
socketId,
|
|
297
|
-
username: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.username) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || username || 'mobile_user',
|
|
298
|
-
email: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.email) || null,
|
|
299
|
-
modelKey: null,
|
|
300
|
-
connectedPlatforms: [],
|
|
301
|
-
// No connected platforms for background training
|
|
302
|
-
platformConnections: {} // No platform connections for background training
|
|
303
|
-
// No encrypted PIN for background training
|
|
304
|
-
};
|
|
305
|
-
console.log('📤 Sending background training data to /mobile-training/enoch:', backgroundData);
|
|
306
|
-
|
|
307
|
-
// Use the new training function that includes YouTube migration check
|
|
308
|
-
const backgroundResult = await (0, _mobileTrainingService.startEnochTrainingWithYouTubeCheck)(backgroundData);
|
|
309
|
-
console.log('📡 Background training API response:', backgroundResult);
|
|
310
|
-
|
|
311
|
-
// Handle CONNECTIONS_REQUIRED scenario (pre-training validation)
|
|
312
|
-
if (backgroundResult.requiresConnections || backgroundResult.code === 'CONNECTIONS_REQUIRED') {
|
|
313
|
-
console.log('🔗 Connections required detected from background training');
|
|
314
|
-
setPersonaStatus('Connections required');
|
|
315
|
-
setHasError(true);
|
|
316
|
-
setBackgroundTrainingProgress('');
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
if (backgroundResult.success) {
|
|
320
|
-
console.log('✅ [BACKGROUND] Training started successfully');
|
|
321
|
-
console.log('🔍 [BACKGROUND] Setting isBackgroundTrainingStarted to true');
|
|
322
|
-
setIsBackgroundTrainingStarted(true);
|
|
323
|
-
setBackgroundTrainingProgress('Training model...');
|
|
324
|
-
setPersonaStatus('Training model...');
|
|
325
|
-
setPersonaProgress(25);
|
|
326
|
-
console.log('🔍 [BACKGROUND] Background training state updated:', {
|
|
327
|
-
isBackgroundTrainingStarted: true,
|
|
328
|
-
backgroundSocketId: socketId
|
|
329
|
-
});
|
|
330
|
-
} else {
|
|
331
|
-
console.error('❌ Background training start failed:', backgroundResult.error);
|
|
332
|
-
setPersonaStatus(`Error: ${backgroundResult.error || 'Background training failed to start'}`);
|
|
333
|
-
setHasError(true);
|
|
334
|
-
setBackgroundTrainingProgress('');
|
|
335
|
-
throw new Error(backgroundResult.error || 'Background training failed to start');
|
|
336
|
-
}
|
|
337
|
-
} catch (error) {
|
|
338
|
-
console.error('❌ [BACKGROUND] Background training error:', error);
|
|
339
|
-
setPersonaStatus('Training failed to start');
|
|
340
|
-
setHasError(true);
|
|
341
|
-
setBackgroundTrainingProgress('');
|
|
342
|
-
throw error;
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
// EXACT same continue training function from UniversalOnboarding
|
|
347
|
-
const continueBackgroundTrainingWithPin = async userPin => {
|
|
348
|
-
try {
|
|
349
|
-
var _socketRef$current, _socketRef$current2;
|
|
350
|
-
console.log('🔐 [BACKGROUND] Continuing existing background training with PIN validation');
|
|
351
|
-
console.log('🔑 Using auth token:', `${userToken === null || userToken === void 0 ? void 0 : userToken.substring(0, 20)}...`);
|
|
352
|
-
if (!backgroundSocketId) {
|
|
353
|
-
throw new Error('No background training socket available');
|
|
354
|
-
}
|
|
355
|
-
const encryptedPin = await (0, _pinEncryptionService.getEncryptedPinForAPI)().catch(() => null);
|
|
356
|
-
if (!encryptedPin) {
|
|
357
|
-
console.warn('⚠️ No encrypted PIN available, continuing without PIN validation');
|
|
358
|
-
}
|
|
359
|
-
console.log('📤 [BACKGROUND] Sending PIN validation to continue training...');
|
|
360
|
-
setPersonaStatus('Validating PIN and continuing training');
|
|
361
|
-
setPersonaProgress(30);
|
|
362
|
-
|
|
363
|
-
// Check socket connection status after PIN submission
|
|
364
|
-
console.log('🔍 [SOCKET] Socket connection status after PIN:', {
|
|
365
|
-
socketId: backgroundSocketId,
|
|
366
|
-
isConnected: (_socketRef$current = socketRef.current) === null || _socketRef$current === void 0 ? void 0 : _socketRef$current.connected,
|
|
367
|
-
socketExists: !!socketRef.current,
|
|
368
|
-
socketId_current: (_socketRef$current2 = socketRef.current) === null || _socketRef$current2 === void 0 ? void 0 : _socketRef$current2.id
|
|
369
|
-
});
|
|
370
|
-
} catch (error) {
|
|
371
|
-
console.error('❌ [BACKGROUND] Failed to continue training with PIN:', error);
|
|
372
|
-
throw error;
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
// Cleanup socket on unmount
|
|
377
|
-
(0, _react.useEffect)(() => {
|
|
378
|
-
return () => {
|
|
379
|
-
if (socketRef.current) {
|
|
380
|
-
socketRef.current.disconnect();
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
}, []);
|
|
384
|
-
|
|
385
|
-
// Real platforms that can be connected (from UniversalOnboarding)
|
|
386
|
-
const platforms = [{
|
|
387
|
-
id: 'pinterest',
|
|
388
|
-
name: 'Pinterest',
|
|
389
|
-
icon: (0, _connectedAccountsService.getPlatformIcon)('pinterest'),
|
|
390
|
-
description: 'We analyze your pins, boards, and interests to understand your style and preferences.'
|
|
391
|
-
}, {
|
|
392
|
-
id: 'youtube',
|
|
393
|
-
name: 'YouTube',
|
|
394
|
-
icon: (0, _connectedAccountsService.getPlatformIcon)('youtube'),
|
|
395
|
-
description: 'We analyze your watch history, likes, and subscriptions to understand your interests.'
|
|
396
|
-
}, {
|
|
397
|
-
id: 'linkedin',
|
|
398
|
-
name: 'LinkedIn',
|
|
399
|
-
icon: (0, _connectedAccountsService.getPlatformIcon)('linkedin'),
|
|
400
|
-
description: 'We analyze your professional network and career interests.'
|
|
401
|
-
}, {
|
|
402
|
-
id: 'reddit',
|
|
403
|
-
name: 'Reddit',
|
|
404
|
-
icon: (0, _connectedAccountsService.getPlatformIcon)('reddit'),
|
|
405
|
-
description: 'We analyze your posts and comments to understand your interests.'
|
|
406
|
-
}, {
|
|
407
|
-
id: 'gmail',
|
|
408
|
-
name: 'Gmail',
|
|
409
|
-
icon: (0, _connectedAccountsService.getPlatformIcon)('gmail'),
|
|
410
|
-
description: 'We analyze your email patterns to understand your communication style.'
|
|
411
|
-
}];
|
|
412
|
-
const handlePlatformToggle = async (platformId, enabled) => {
|
|
413
|
-
console.log(`🔄 [PLATFORM TOGGLE] ${platformId} - enabled: ${enabled}, username: "${username}", user:`, user);
|
|
414
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
415
|
-
try {
|
|
416
|
-
if (enabled) {
|
|
417
|
-
// Ensure we have a valid username before proceeding
|
|
418
|
-
let validUsername = username;
|
|
419
|
-
if (!validUsername || validUsername.trim() === '') {
|
|
420
|
-
console.log('⚠️ [PLATFORM TOGGLE] No username available, generating one...');
|
|
421
|
-
|
|
422
|
-
// Try to get stored username first
|
|
423
|
-
const storedUsername = await _asyncStorage.default.getItem('onairos_username');
|
|
424
|
-
if (storedUsername) {
|
|
425
|
-
validUsername = storedUsername;
|
|
426
|
-
setUsername(validUsername);
|
|
427
|
-
} else {
|
|
428
|
-
var _user$email3;
|
|
429
|
-
// Generate username from user data or fallback
|
|
430
|
-
validUsername = (user === null || user === void 0 || (_user$email3 = user.email) === null || _user$email3 === void 0 ? void 0 : _user$email3.split('@')[0]) || (user === null || user === void 0 ? void 0 : user.name) || `mobile_user_${Math.floor(Math.random() * 10000)}`;
|
|
431
|
-
setUsername(validUsername);
|
|
432
|
-
await _asyncStorage.default.setItem('onairos_username', validUsername);
|
|
433
|
-
}
|
|
434
|
-
console.log(`📝 [PLATFORM TOGGLE] Using username: "${validUsername}"`);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
// Check if the platform has a native SDK
|
|
438
|
-
if ((0, _platformAuthService.hasNativeSDK)(platformId)) {
|
|
439
|
-
console.log(`🔧 [PLATFORM TOGGLE] ${platformId} has native SDK`);
|
|
440
|
-
// Use native SDK authentication (YouTube)
|
|
441
|
-
setCurrentPlatform(platformId);
|
|
442
|
-
setConnectionStatuses(prev => ({
|
|
443
|
-
...prev,
|
|
444
|
-
[platformId]: 'connecting'
|
|
445
|
-
}));
|
|
446
|
-
const success = await (0, _platformAuthService.initiateNativeAuth)(platformId, validUsername);
|
|
447
|
-
if (success) {
|
|
448
|
-
const newConnected = new Set(connectedPlatforms);
|
|
449
|
-
newConnected.add(platformId);
|
|
450
|
-
setConnectedPlatforms(newConnected);
|
|
451
|
-
setConnectionStatuses(prev => ({
|
|
452
|
-
...prev,
|
|
453
|
-
[platformId]: 'connected'
|
|
454
|
-
}));
|
|
455
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.SUCCESS);
|
|
456
|
-
} else {
|
|
457
|
-
setConnectionStatuses(prev => ({
|
|
458
|
-
...prev,
|
|
459
|
-
[platformId]: 'error'
|
|
460
|
-
}));
|
|
461
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
462
|
-
}
|
|
463
|
-
} else {
|
|
464
|
-
console.log(`🌐 [PLATFORM TOGGLE] ${platformId} using OAuth WebView with username: "${validUsername}"`);
|
|
465
|
-
// For platforms like Pinterest, use OAuth WebView
|
|
466
|
-
setCurrentPlatform(platformId);
|
|
467
|
-
setConnectionStatuses(prev => ({
|
|
468
|
-
...prev,
|
|
469
|
-
[platformId]: 'connecting'
|
|
470
|
-
}));
|
|
471
|
-
console.log(`🚀 [PLATFORM TOGGLE] Calling initiateOAuth for ${platformId}...`);
|
|
472
|
-
const oauthUrl = await (0, _platformAuthService.initiateOAuth)(platformId, validUsername);
|
|
473
|
-
console.log(`📡 [PLATFORM TOGGLE] OAuth URL received for ${platformId}:`, oauthUrl);
|
|
474
|
-
if (oauthUrl) {
|
|
475
|
-
console.log(`✅ [PLATFORM TOGGLE] Setting OAuth URL and showing WebView for ${platformId}`);
|
|
476
|
-
setOauthUrl(oauthUrl);
|
|
477
|
-
setShowOAuthWebView(true);
|
|
478
|
-
} else {
|
|
479
|
-
console.log(`❌ [PLATFORM TOGGLE] No OAuth URL received for ${platformId}`);
|
|
480
|
-
setConnectionStatuses(prev => ({
|
|
481
|
-
...prev,
|
|
482
|
-
[platformId]: 'error'
|
|
483
|
-
}));
|
|
484
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
} else {
|
|
488
|
-
// Disconnect the platform
|
|
489
|
-
await disconnectPlatform(platformId);
|
|
490
|
-
const newConnected = new Set(connectedPlatforms);
|
|
491
|
-
newConnected.delete(platformId);
|
|
492
|
-
setConnectedPlatforms(newConnected);
|
|
493
|
-
setConnectionStatuses(prev => ({
|
|
494
|
-
...prev,
|
|
495
|
-
[platformId]: 'disconnected'
|
|
496
|
-
}));
|
|
497
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
498
|
-
}
|
|
499
|
-
} catch (error) {
|
|
500
|
-
console.error(`Error toggling platform ${platformId}:`, error);
|
|
501
|
-
setConnectionStatuses(prev => ({
|
|
502
|
-
...prev,
|
|
503
|
-
[platformId]: 'error'
|
|
504
|
-
}));
|
|
505
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.ERROR);
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
const handleUpdate = () => {
|
|
509
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
510
|
-
|
|
511
|
-
// EXACT same logic as UniversalOnboarding handleProceed
|
|
512
|
-
console.log('🚀 [TRANSITION] Starting background training during connect → pin transition');
|
|
513
|
-
startBackgroundTraining().catch(error => {
|
|
514
|
-
console.error('❌ [TRANSITION] Background training failed during transition:', error);
|
|
515
|
-
// Continue to PIN screen even if training fails
|
|
516
|
-
});
|
|
517
|
-
setShowPinScreen(true);
|
|
518
|
-
};
|
|
519
|
-
const handleConsentAccept = () => {
|
|
520
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
521
|
-
if (onPinComplete) {
|
|
522
|
-
onPinComplete(createdPin);
|
|
523
|
-
} else {
|
|
524
|
-
onUpdate(Array.from(connectedPlatforms));
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
const handleConsentDecline = () => {
|
|
528
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
529
|
-
setShowConsentScreen(false);
|
|
530
|
-
};
|
|
531
|
-
const handleSkip = () => {
|
|
532
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.BUTTON_PRESS);
|
|
533
|
-
onSkip();
|
|
534
|
-
};
|
|
535
|
-
const handlePinComplete = async pin => {
|
|
536
|
-
setCreatedPin(pin);
|
|
537
|
-
|
|
538
|
-
// Store PIN temporarily for training component access (EXACT same as UniversalOnboarding)
|
|
539
|
-
(0, _pinStorageUtils.setTemporaryPin)(pin);
|
|
540
|
-
console.log('🔐 [PIN SUBMIT] PIN submitted, checking for background training...');
|
|
541
|
-
console.log('🔍 [PIN SUBMIT] Background training state:', {
|
|
542
|
-
isBackgroundTrainingStarted,
|
|
543
|
-
backgroundSocketId,
|
|
544
|
-
hasBackgroundSocket: !!backgroundSocketId,
|
|
545
|
-
userToken: !!userToken,
|
|
546
|
-
userInfo: !!userInfo
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
// EXACT same logic as UniversalOnboarding handlePinSubmit
|
|
550
|
-
if (isBackgroundTrainingStarted && backgroundSocketId) {
|
|
551
|
-
console.log('✅ [PIN SUBMIT] Background training detected, continuing with PIN validation...');
|
|
552
|
-
|
|
553
|
-
// Continue with existing training by sending PIN validation
|
|
554
|
-
try {
|
|
555
|
-
await continueBackgroundTrainingWithPin(pin);
|
|
556
|
-
setShowPinScreen(false);
|
|
557
|
-
setShowLoadingScreen(true); // Move to loading screen to show training progress
|
|
558
|
-
} catch (error) {
|
|
559
|
-
console.error('❌ [PIN SUBMIT] Failed to continue background training:', error);
|
|
560
|
-
setPersonaStatus('Error: Failed to continue training');
|
|
561
|
-
setHasError(true);
|
|
562
|
-
setShowPinScreen(false);
|
|
563
|
-
setShowLoadingScreen(true);
|
|
564
|
-
}
|
|
565
|
-
} else {
|
|
566
|
-
console.log('ℹ️ [PIN SUBMIT] No background training detected');
|
|
567
|
-
setPersonaStatus('No training in progress. Please restart the flow.');
|
|
568
|
-
setHasError(true);
|
|
569
|
-
setShowPinScreen(false);
|
|
570
|
-
setShowLoadingScreen(true);
|
|
571
|
-
}
|
|
572
|
-
console.log('🔐 [PIN SUBMIT] PIN stored securely, moved to loading screen');
|
|
573
|
-
};
|
|
574
|
-
const handleLoadingComplete = () => {
|
|
575
|
-
setShowLoadingScreen(false);
|
|
576
|
-
setShowConsentScreen(true);
|
|
577
|
-
};
|
|
578
|
-
const handleOAuthSuccess = code => {
|
|
579
|
-
console.log(`OAuth success for ${currentPlatform} with code:`, code);
|
|
580
|
-
if (currentPlatform) {
|
|
581
|
-
// Update connected platforms
|
|
582
|
-
const newConnected = new Set(connectedPlatforms);
|
|
583
|
-
newConnected.add(currentPlatform);
|
|
584
|
-
setConnectedPlatforms(newConnected);
|
|
585
|
-
setConnectionStatuses(prev => ({
|
|
586
|
-
...prev,
|
|
587
|
-
[currentPlatform]: 'connected'
|
|
588
|
-
}));
|
|
589
|
-
(0, _haptics.triggerHaptic)(_haptics.HapticType.SUCCESS);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
// Close the OAuth window
|
|
593
|
-
setShowOAuthWebView(false);
|
|
594
|
-
setOauthUrl('');
|
|
595
|
-
setCurrentPlatform('');
|
|
596
|
-
};
|
|
597
|
-
const handleOAuthClose = () => {
|
|
598
|
-
setShowOAuthWebView(false);
|
|
599
|
-
setOauthUrl('');
|
|
600
|
-
if (currentPlatform) {
|
|
601
|
-
setConnectionStatuses(prev => ({
|
|
602
|
-
...prev,
|
|
603
|
-
[currentPlatform]: 'disconnected'
|
|
604
|
-
}));
|
|
605
|
-
}
|
|
606
|
-
setCurrentPlatform('');
|
|
607
|
-
};
|
|
608
|
-
const handlePinBack = () => {
|
|
609
|
-
setShowPinScreen(false);
|
|
610
|
-
};
|
|
611
|
-
const handleReviewerBypass = () => {
|
|
612
|
-
console.log('🔍 Reviewer bypass activated in new UI');
|
|
613
|
-
if (onReviewerBypass) {
|
|
614
|
-
onReviewerBypass();
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
const handleSkipLongPress = () => {
|
|
618
|
-
console.log('🔍 Skip button long press detected, starting reviewer bypass timer');
|
|
619
|
-
|
|
620
|
-
// Start a timer for haptic feedback at 2 seconds
|
|
621
|
-
const hapticTimer = setTimeout(() => {
|
|
622
|
-
// Provide haptic feedback
|
|
623
|
-
_reactNative.Vibration.vibrate(100);
|
|
624
|
-
}, 2000);
|
|
625
|
-
|
|
626
|
-
// Start a timer for 4 seconds for the bypass
|
|
627
|
-
const bypassTimer = setTimeout(() => {
|
|
628
|
-
handleReviewerBypass();
|
|
629
|
-
}, 4000);
|
|
630
|
-
|
|
631
|
-
// Store the timer
|
|
632
|
-
setLongPressTimer(bypassTimer);
|
|
633
|
-
};
|
|
634
|
-
const handleSkipPressOut = () => {
|
|
635
|
-
console.log('🔍 Skip button press released, clearing reviewer bypass timer');
|
|
636
|
-
|
|
637
|
-
// Clear the timer if the press is released before 4 seconds
|
|
638
|
-
if (longPressTimer) {
|
|
639
|
-
clearTimeout(longPressTimer);
|
|
640
|
-
setLongPressTimer(null);
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
// Calculate persona level based on connected platforms (1-5)
|
|
645
|
-
const personaLevel = Math.min(5, Math.max(1, connectedPlatforms.size + 1));
|
|
646
|
-
|
|
647
|
-
// Show PIN screen if triggered
|
|
648
|
-
if (showPinScreen) {
|
|
649
|
-
return /*#__PURE__*/_react.default.createElement(_PinCreationScreen.default, {
|
|
650
|
-
visible: showPinScreen,
|
|
651
|
-
onComplete: handlePinComplete,
|
|
652
|
-
onBack: handlePinBack
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
// Show loading screen if triggered
|
|
657
|
-
if (showLoadingScreen) {
|
|
658
|
-
return /*#__PURE__*/_react.default.createElement(_PersonaLoadingScreen.default, {
|
|
659
|
-
visible: showLoadingScreen,
|
|
660
|
-
onComplete: handleLoadingComplete,
|
|
661
|
-
progress: personaProgress,
|
|
662
|
-
status: personaStatus
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
// Show OAuth WebView if triggered
|
|
667
|
-
if (showOAuthWebView && oauthUrl) {
|
|
668
|
-
return /*#__PURE__*/_react.default.createElement(_OAuthWebView.OAuthWebView, {
|
|
669
|
-
url: oauthUrl,
|
|
670
|
-
platform: currentPlatform,
|
|
671
|
-
onClose: handleOAuthClose,
|
|
672
|
-
onSuccess: handleOAuthSuccess,
|
|
673
|
-
onComplete: handleOAuthClose
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
// Show consent screen if triggered
|
|
678
|
-
if (showConsentScreen) {
|
|
679
|
-
return /*#__PURE__*/_react.default.createElement(_PersonalizationConsentScreen.default, {
|
|
680
|
-
visible: showConsentScreen,
|
|
681
|
-
onAccept: handleConsentAccept,
|
|
682
|
-
onDecline: handleConsentDecline
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
686
|
-
style: styles.container
|
|
687
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
688
|
-
style: styles.fixedHeaderSection
|
|
689
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
690
|
-
style: styles.headingContainer
|
|
691
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
692
|
-
style: styles.title
|
|
693
|
-
}, "Connect platforms"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
694
|
-
style: styles.subtitle
|
|
695
|
-
}, "More connections, smarter personalization.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
696
|
-
style: styles.personaContainer
|
|
697
|
-
}, /*#__PURE__*/_react.default.createElement(_PersonaImage.default, {
|
|
698
|
-
level: personaLevel,
|
|
699
|
-
style: styles.largePersona
|
|
700
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, {
|
|
701
|
-
behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height',
|
|
702
|
-
style: styles.scrollableSection
|
|
703
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
704
|
-
style: styles.scrollView,
|
|
705
|
-
showsVerticalScrollIndicator: false,
|
|
706
|
-
contentContainerStyle: styles.scrollContent
|
|
707
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
708
|
-
style: styles.platformsContainer
|
|
709
|
-
}, platforms.map((platform, index) => /*#__PURE__*/_react.default.createElement(_PlatformToggle.default, {
|
|
710
|
-
key: platform.id,
|
|
711
|
-
platform: platform,
|
|
712
|
-
isEnabled: connectedPlatforms.has(platform.id),
|
|
713
|
-
onToggle: handlePlatformToggle,
|
|
714
|
-
fullWidth: true,
|
|
715
|
-
isLast: index === platforms.length - 1,
|
|
716
|
-
customIconSize: platform.id === 'youtube' ? 36 : undefined
|
|
717
|
-
}))))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
718
|
-
style: styles.bottomContainer
|
|
719
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
720
|
-
style: styles.buttonContainer
|
|
721
|
-
}, /*#__PURE__*/_react.default.createElement(_PrimaryButton.default, {
|
|
722
|
-
label: "Continue",
|
|
723
|
-
onPress: handleUpdate,
|
|
724
|
-
disabled: loading || connectedPlatforms.size === 0 || isConnecting,
|
|
725
|
-
loading: loading || isConnecting
|
|
726
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
727
|
-
style: styles.skipContainer
|
|
728
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
729
|
-
onPress: handleSkip,
|
|
730
|
-
onLongPress: handleSkipLongPress,
|
|
731
|
-
onPressOut: handleSkipPressOut,
|
|
732
|
-
activeOpacity: 0.7
|
|
733
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
734
|
-
style: styles.skipButton
|
|
735
|
-
}, "Skip")))));
|
|
736
|
-
};
|
|
737
|
-
const styles = _reactNative.StyleSheet.create({
|
|
738
|
-
container: {
|
|
739
|
-
flex: 1,
|
|
740
|
-
backgroundColor: _theme.COLORS.surface
|
|
741
|
-
},
|
|
742
|
-
fixedHeaderSection: {
|
|
743
|
-
paddingTop: 8,
|
|
744
|
-
paddingHorizontal: 0,
|
|
745
|
-
backgroundColor: _theme.COLORS.surface,
|
|
746
|
-
maxHeight: '50%',
|
|
747
|
-
// Limit fixed section to 50% of screen
|
|
748
|
-
overflow: 'hidden' // Hide any overflow
|
|
749
|
-
},
|
|
750
|
-
scrollableSection: {
|
|
751
|
-
flex: 1
|
|
752
|
-
},
|
|
753
|
-
scrollView: {
|
|
754
|
-
flex: 1
|
|
755
|
-
},
|
|
756
|
-
scrollContent: {
|
|
757
|
-
paddingTop: 0 // Ensure scroll starts at the top
|
|
758
|
-
},
|
|
759
|
-
headingContainer: {
|
|
760
|
-
width: '100%',
|
|
761
|
-
marginBottom: 0,
|
|
762
|
-
// Remove margin to make persona very close
|
|
763
|
-
paddingHorizontal: 0
|
|
764
|
-
},
|
|
765
|
-
title: {
|
|
766
|
-
fontFamily: 'IBM Plex Sans',
|
|
767
|
-
fontWeight: '700',
|
|
768
|
-
fontSize: 24,
|
|
769
|
-
lineHeight: 32,
|
|
770
|
-
color: _theme.COLORS.grey800,
|
|
771
|
-
textAlign: 'left',
|
|
772
|
-
marginBottom: 2
|
|
773
|
-
},
|
|
774
|
-
subtitle: {
|
|
775
|
-
fontFamily: 'Inter',
|
|
776
|
-
fontWeight: '400',
|
|
777
|
-
fontSize: 16,
|
|
778
|
-
lineHeight: 24,
|
|
779
|
-
color: _theme.COLORS.grey600,
|
|
780
|
-
textAlign: 'left',
|
|
781
|
-
marginBottom: 0 // Remove bottom margin to bring persona closer
|
|
782
|
-
},
|
|
783
|
-
personaContainer: {
|
|
784
|
-
alignItems: 'center',
|
|
785
|
-
marginTop: -110,
|
|
786
|
-
// Negative margin to pull persona up into header space
|
|
787
|
-
marginBottom: 0 // Remove bottom margin
|
|
788
|
-
},
|
|
789
|
-
largePersona: {
|
|
790
|
-
width: 650,
|
|
791
|
-
// Make it bigger than default 200x200
|
|
792
|
-
height: 650,
|
|
793
|
-
marginTop: -20,
|
|
794
|
-
// Additional negative margin to override internal spacing
|
|
795
|
-
marginBottom: -20 // Pull content below up as well
|
|
796
|
-
},
|
|
797
|
-
platformsContainer: {
|
|
798
|
-
paddingHorizontal: 0,
|
|
799
|
-
paddingTop: 8,
|
|
800
|
-
// Reduced from 20 to minimize space at top of scroll area
|
|
801
|
-
paddingBottom: 120 // More space to account for fixed buttons at bottom
|
|
802
|
-
},
|
|
803
|
-
bottomContainer: {
|
|
804
|
-
position: 'absolute',
|
|
805
|
-
bottom: -40,
|
|
806
|
-
// Position 40px from bottom of screen
|
|
807
|
-
left: 0,
|
|
808
|
-
right: 0,
|
|
809
|
-
paddingHorizontal: 0,
|
|
810
|
-
paddingBottom: _theme.SPACING.xl,
|
|
811
|
-
backgroundColor: _theme.COLORS.surface
|
|
812
|
-
},
|
|
813
|
-
buttonContainer: {
|
|
814
|
-
marginBottom: 16
|
|
815
|
-
},
|
|
816
|
-
skipContainer: {
|
|
817
|
-
alignItems: 'center'
|
|
818
|
-
},
|
|
819
|
-
skipButton: {
|
|
820
|
-
fontSize: 16,
|
|
821
|
-
fontFamily: 'Inter',
|
|
822
|
-
fontWeight: '500',
|
|
823
|
-
color: _theme.COLORS.grey600,
|
|
824
|
-
textAlign: 'center'
|
|
825
|
-
}
|
|
826
|
-
});
|
|
827
|
-
var _default = exports.default = PlatformConnectorsStep;
|
|
828
|
-
//# sourceMappingURL=PlatformConnectorsStep.js.map
|