@oxy.so/services 6.1.0 → 8.0.0
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 +80 -136
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -20
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +5 -20
- package/lib/commonjs/index.js +21 -15
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +2 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +2 -3
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +16 -32
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +21 -12
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +2 -2
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +6 -17
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js +0 -8
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +2 -2
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js +11 -5
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +325 -0
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +52 -56
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js +141 -0
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +502 -194
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +211 -42
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js +186 -0
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js +103 -26
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/signInFlowStore.js +50 -0
- package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/signInMethods.js +12 -25
- package/lib/commonjs/ui/components/signIn/signInMethods.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +125 -119
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +11 -10
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +4 -4
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +19 -9
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +4 -4
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +23 -3
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +8 -8
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +27 -15
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +5 -2
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +8 -8
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +4 -3
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +6 -6
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js +36 -20
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +6 -4
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +5 -5
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +2 -2
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +1 -4
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +2 -2
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollowTarget.js +5 -5
- package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js +4 -1
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +2 -2
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceFrameWidth.js +28 -0
- package/lib/commonjs/ui/hooks/useSurfaceFrameWidth.js.map +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -15
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +6 -4
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +1 -1
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserBridge.js +247 -0
- package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -0
- package/lib/commonjs/ui/oauth/completeOAuthCode.js +1 -1
- package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +1 -1
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +9 -8
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +7 -7
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js +35 -0
- package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +5 -5
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +3 -3
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeleteAccountScreen.js +19 -0
- package/lib/commonjs/ui/screens/DeleteAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/DomainsScreen.js +217 -0
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileScreen.js +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +25 -11
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +1 -17
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LinkCommonsScreen.js +14 -0
- package/lib/commonjs/ui/screens/LinkCommonsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +57 -61
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +52 -62
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +5 -13
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +15 -24
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js +14 -0
- package/lib/commonjs/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignInPasswordScreen.js +20 -0
- package/lib/commonjs/ui/screens/SignInPasswordScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +25 -17
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +8 -14
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +11 -9
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js +4 -4
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/session/backgroundSession.js +5 -40
- package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +3 -3
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
- package/lib/commonjs/ui/session/deviceCredentialTracker.js +42 -0
- package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -0
- package/lib/commonjs/ui/session/identityBinding.js +3 -3
- package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
- package/lib/commonjs/ui/session/index.js +6 -6
- package/lib/commonjs/ui/session/index.js.map +1 -1
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +2 -2
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/commonjs/ui/session/tokenTransport.js +3 -3
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
- package/lib/commonjs/ui/stores/assetStore.js +12 -0
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +6 -6
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js +1 -4
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/deviceCredential.js +11 -4
- package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -10
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js +2 -2
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +5 -20
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +5 -20
- package/lib/module/index.js +6 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +2 -1
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +2 -3
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +16 -32
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +1 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +21 -12
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/SignInRequestView.js +6 -17
- package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -1
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js +0 -8
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js +11 -5
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +321 -0
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +54 -58
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +48 -38
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js +136 -0
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxySignInPanel.js +504 -194
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +212 -43
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js +181 -0
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -0
- package/lib/module/ui/components/signIn/accountFlowParts.js +97 -26
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/module/ui/components/signIn/signInFlowStore.js +44 -0
- package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -0
- package/lib/module/ui/components/signIn/signInMethods.js +12 -25
- package/lib/module/ui/components/signIn/signInMethods.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +121 -115
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +7 -7
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js +4 -4
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +19 -9
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +4 -4
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +23 -3
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +8 -8
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAuthMethods.js +25 -14
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +5 -2
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +8 -8
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +4 -3
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +6 -6
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js +36 -20
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +6 -4
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +4 -4
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js +2 -2
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +1 -4
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +2 -2
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollowTarget.js +5 -5
- package/lib/module/ui/hooks/useFollowTarget.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +6 -3
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useResolvedFileUrls.js +2 -2
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +3 -3
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceFrameWidth.js +24 -0
- package/lib/module/ui/hooks/useSurfaceFrameWidth.js.map +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js +0 -15
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +6 -4
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js +1 -1
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/module/ui/oauth/browserBridge.js +239 -0
- package/lib/module/ui/oauth/browserBridge.js.map +1 -0
- package/lib/module/ui/oauth/completeOAuthCode.js +1 -1
- package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/module/ui/oauth/explicitOAuthConsent.js +1 -1
- package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -1
- package/lib/module/ui/runtime/createOxyRuntime.js +4 -3
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/runtime/runtimeContext.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +7 -7
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSecurityPanelScreen.js +32 -0
- package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +3 -3
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +5 -5
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +3 -3
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/DeleteAccountScreen.js +17 -0
- package/lib/module/ui/screens/DeleteAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/DomainsScreen.js +212 -0
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -0
- package/lib/module/ui/screens/EditProfileScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +25 -11
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +1 -17
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/LinkCommonsScreen.js +12 -0
- package/lib/module/ui/screens/LinkCommonsScreen.js.map +1 -0
- package/lib/module/ui/screens/ManageAccountScreen.js +58 -62
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +53 -63
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +5 -13
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +16 -25
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInAuthenticatorScreen.js +12 -0
- package/lib/module/ui/screens/SignInAuthenticatorScreen.js.map +1 -0
- package/lib/module/ui/screens/SignInPasswordScreen.js +18 -0
- package/lib/module/ui/screens/SignInPasswordScreen.js.map +1 -0
- package/lib/module/ui/screens/UserListScreen.js +3 -3
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +26 -18
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +9 -15
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +12 -10
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/session/authStore.js +1 -1
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/session/backgroundSession.js +5 -40
- package/lib/module/ui/session/backgroundSession.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +1 -1
- package/lib/module/ui/session/createSessionClient.js.map +1 -1
- package/lib/module/ui/session/deviceCredentialTracker.js +38 -0
- package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -0
- package/lib/module/ui/session/identityBinding.js +1 -1
- package/lib/module/ui/session/identityBinding.js.map +1 -1
- package/lib/module/ui/session/index.js +1 -1
- package/lib/module/ui/session/index.js.map +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/module/ui/session/tokenTransport.js +3 -3
- package/lib/module/ui/session/tokenTransport.js.map +1 -1
- package/lib/module/ui/stores/assetStore.js +12 -0
- package/lib/module/ui/stores/assetStore.js.map +1 -1
- package/lib/module/ui/stores/followStore.js +6 -6
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/utils/accountDeletionHandoff.js +2 -5
- package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/deviceCredential.js +10 -3
- package/lib/module/ui/utils/deviceCredential.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -9
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js +2 -2
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +5 -5
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +3 -2
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +2 -3
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +8 -7
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +3 -4
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +1 -12
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts +7 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts +21 -19
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts +38 -12
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts +10 -20
- package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +2 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +4 -39
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +2 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +19 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +13 -20
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +5 -5
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +9 -7
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceFrameWidth.d.ts +12 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -15
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +7 -5
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts +97 -0
- package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +6 -2
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +2 -1
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/types.d.ts +2 -1
- package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
- package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
- package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts +6 -0
- package/lib/typescript/commonjs/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts +3 -4
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +23 -0
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/index.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +3 -2
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +7 -0
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +10 -3
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -5
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +5 -5
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +3 -2
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +2 -3
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +8 -7
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +2 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +3 -4
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +2 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +2 -1
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +1 -12
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts +1 -1
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts +7 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts +19 -0
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts +10 -6
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts +6 -6
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts +15 -0
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts +21 -19
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts +16 -7
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +34 -0
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts +38 -12
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts +20 -0
- package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts +10 -20
- package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +2 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +4 -39
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +2 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +5 -1
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +19 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +13 -20
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +4 -4
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +5 -5
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollow.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +9 -7
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceFrameWidth.d.ts +12 -0
- package/lib/typescript/module/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -15
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +7 -5
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserBridge.d.ts +97 -0
- package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +6 -2
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +2 -1
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/types.d.ts +2 -1
- package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts +11 -0
- package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/DeleteAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/{SavesCollectionsScreen.d.ts → DomainsScreen.d.ts} +1 -1
- package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/LinkCommonsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/SignInAuthenticatorScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts +6 -0
- package/lib/typescript/module/ui/screens/SignInPasswordScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/backgroundSession.d.ts +3 -4
- package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +23 -0
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/identityBinding.d.ts +1 -1
- package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/index.d.ts +1 -1
- package/lib/typescript/module/ui/session/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +1 -1
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/tokenTransport.d.ts +3 -2
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts +7 -0
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts +10 -3
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -5
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/manifest.json +5 -20
- package/src/index.ts +8 -8
- package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +4 -4
- package/src/ui/boot/runProviderColdBoot.ts +3 -9
- package/src/ui/components/OxyAccountDialogScreen.tsx +2 -3
- package/src/ui/components/OxyAuthChooser.tsx +14 -36
- package/src/ui/components/OxySignInButton.tsx +1 -1
- package/src/ui/components/OxySignInRequestSurface.tsx +2 -1
- package/src/ui/components/ProfileButton.tsx +1 -1
- package/src/ui/components/SurfaceScreen.tsx +19 -11
- package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -6
- package/src/ui/components/authChooser/SignInRequestView.tsx +5 -23
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +1 -1
- package/src/ui/components/authChooser/primitives.tsx +1 -1
- package/src/ui/components/authChooser/requestSurfaces.tsx +2 -1
- package/src/ui/components/authChooser/signInFailureMessage.ts +1 -1
- package/src/ui/components/authChooser/signInProgress.ts +2 -1
- package/src/ui/components/authChooser/types.ts +1 -13
- package/src/ui/components/signIn/InlineCommonsQr.tsx +2 -2
- package/src/ui/components/signIn/OxyAccountPicker.tsx +1 -1
- package/src/ui/components/signIn/OxyAuthScreen.tsx +14 -5
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +294 -0
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +48 -61
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +43 -35
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +117 -0
- package/src/ui/components/signIn/OxySignInPanel.tsx +542 -203
- package/src/ui/components/signIn/OxySignUpPanel.tsx +186 -56
- package/src/ui/components/signIn/ReauthStep.tsx +201 -0
- package/src/ui/components/signIn/accountFlowParts.tsx +139 -33
- package/src/ui/components/signIn/signInFlowStore.ts +41 -0
- package/src/ui/components/signIn/signInMethods.ts +12 -27
- package/src/ui/context/OxyContext.tsx +124 -145
- package/src/ui/context/hooks/useAuthOperations.ts +9 -8
- package/src/ui/context/oxyContextTypes.ts +4 -41
- package/src/ui/context/useOxyAccountGraph.ts +6 -5
- package/src/ui/hooks/accountDialogSnapshot.ts +1 -1
- package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
- package/src/ui/hooks/mutations/useAccountMutations.ts +11 -10
- package/src/ui/hooks/mutations/useServicesMutations.ts +4 -4
- package/src/ui/hooks/queries/queryKeys.ts +26 -2
- package/src/ui/hooks/queries/useAccountQueries.ts +8 -8
- package/src/ui/hooks/queries/useAuthMethods.ts +22 -19
- package/src/ui/hooks/queries/useFileQueries.ts +2 -2
- package/src/ui/hooks/queries/usePaymentQueries.ts +8 -8
- package/src/ui/hooks/queries/useSecurityQueries.ts +4 -3
- package/src/ui/hooks/queries/useServicesQueries.ts +6 -6
- package/src/ui/hooks/useAssets.ts +26 -31
- package/src/ui/hooks/useAvatarPicker.ts +4 -4
- package/src/ui/hooks/useDeviceManagement.ts +4 -4
- package/src/ui/hooks/useDeviceSwitcher.ts +2 -7
- package/src/ui/hooks/useFileDownloadUrl.ts +1 -5
- package/src/ui/hooks/useFollow.ts +2 -2
- package/src/ui/hooks/useFollowTarget.ts +5 -5
- package/src/ui/hooks/useI18n.ts +6 -3
- package/src/ui/hooks/useResolvedFileUrls.ts +8 -6
- package/src/ui/hooks/useSessionManagement.ts +3 -3
- package/src/ui/hooks/useSurfaceFrameWidth.ts +21 -0
- package/src/ui/icons/subsetGlyphMaps.ts +0 -15
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +1 -1
- package/src/ui/navigation/accountDialogManager.ts +1 -1
- package/src/ui/navigation/routes.ts +11 -8
- package/src/ui/navigation/surfaceRegistry.ts +8 -6
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +8 -8
- package/src/ui/oauth/__tests__/browserBridge.test.ts +198 -0
- package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +1 -1
- package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +11 -11
- package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +7 -7
- package/src/ui/oauth/browserBridge.ts +234 -0
- package/src/ui/oauth/completeOAuthCode.ts +1 -1
- package/src/ui/oauth/explicitOAuthConsent.ts +1 -1
- package/src/ui/runtime/createOxyRuntime.ts +8 -16
- package/src/ui/runtime/runtimeContext.tsx +2 -1
- package/src/ui/runtime/types.ts +2 -1
- package/src/ui/screens/AccountMembersScreen.tsx +7 -7
- package/src/ui/screens/AccountSecurityPanelScreen.tsx +26 -0
- package/src/ui/screens/AccountSettingsScreen.tsx +3 -3
- package/src/ui/screens/AccountVerificationScreen.tsx +1 -1
- package/src/ui/screens/AppInfoScreen.tsx +5 -5
- package/src/ui/screens/AvatarCropScreen.tsx +3 -3
- package/src/ui/screens/ChangeAvatarScreen.tsx +1 -1
- package/src/ui/screens/CreateAccountScreen.tsx +1 -1
- package/src/ui/screens/DeleteAccountScreen.tsx +13 -0
- package/src/ui/screens/DomainsScreen.tsx +187 -0
- package/src/ui/screens/EditProfileScreen.tsx +1 -1
- package/src/ui/screens/FileManagementScreen.tsx +15 -21
- package/src/ui/screens/HelpSupportScreen.tsx +0 -15
- package/src/ui/screens/LinkCommonsScreen.tsx +13 -0
- package/src/ui/screens/ManageAccountScreen.tsx +47 -82
- package/src/ui/screens/PrivacySettingsScreen.tsx +48 -67
- package/src/ui/screens/ProfileScreen.tsx +5 -10
- package/src/ui/screens/SearchSettingsScreen.tsx +15 -27
- package/src/ui/screens/SignInAuthenticatorScreen.tsx +13 -0
- package/src/ui/screens/SignInPasswordScreen.tsx +13 -0
- package/src/ui/screens/UserListScreen.tsx +3 -3
- package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
- package/src/ui/screens/trust/TrustCenterScreen.tsx +25 -29
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +9 -19
- package/src/ui/screens/trust/TrustRulesScreen.tsx +14 -14
- package/src/ui/session/__tests__/authStore.test.ts +1 -1
- package/src/ui/session/__tests__/backgroundSession.test.ts +2 -61
- package/src/ui/session/__tests__/createSessionClient.test.ts +7 -9
- package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +1 -1
- package/src/ui/session/__tests__/tokenTransport.test.ts +9 -7
- package/src/ui/session/authStore.ts +1 -7
- package/src/ui/session/backgroundSession.ts +5 -41
- package/src/ui/session/createSessionClient.ts +2 -6
- package/src/ui/session/deviceCredentialTracker.ts +49 -0
- package/src/ui/session/identityBinding.ts +1 -6
- package/src/ui/session/index.ts +1 -1
- package/src/ui/session/nativeSecureStorage.ts +1 -1
- package/src/ui/session/sharedDeviceCredentialStore.ts +1 -6
- package/src/ui/session/tokenTransport.ts +5 -4
- package/src/ui/stores/__tests__/followStore.test.ts +13 -15
- package/src/ui/stores/assetStore.ts +15 -0
- package/src/ui/stores/followStore.ts +7 -7
- package/src/ui/types/navigation.ts +2 -1
- package/src/ui/utils/accountDeletionHandoff.ts +2 -4
- package/src/ui/utils/avatarUtils.ts +1 -1
- package/src/ui/utils/deviceCredential.ts +11 -4
- package/src/ui/utils/fileManagement.ts +0 -12
- package/src/ui/utils/sessionHelpers.ts +2 -2
- package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js +0 -236
- package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
- package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js +0 -170
- package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
- package/lib/commonjs/ui/components/signIn/passkeyError.js +0 -46
- package/lib/commonjs/ui/components/signIn/passkeyError.js.map +0 -1
- package/lib/commonjs/ui/context/passkeyFlow.js +0 -114
- package/lib/commonjs/ui/context/passkeyFlow.js.map +0 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +0 -162
- package/lib/commonjs/ui/screens/FAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -601
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -968
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -132
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/commonjs/webauthn/passkeyClient.js +0 -39
- package/lib/commonjs/webauthn/passkeyClient.js.map +0 -1
- package/lib/commonjs/webauthn/passkeyClient.native.js +0 -34
- package/lib/commonjs/webauthn/passkeyClient.native.js.map +0 -1
- package/lib/commonjs/webauthn/passkeyClient.web.js +0 -57
- package/lib/commonjs/webauthn/passkeyClient.web.js.map +0 -1
- package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js +0 -231
- package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js.map +0 -1
- package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js +0 -165
- package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js.map +0 -1
- package/lib/module/ui/components/signIn/passkeyError.js +0 -40
- package/lib/module/ui/components/signIn/passkeyError.js.map +0 -1
- package/lib/module/ui/context/passkeyFlow.js +0 -107
- package/lib/module/ui/context/passkeyFlow.js.map +0 -1
- package/lib/module/ui/screens/FAQScreen.js +0 -157
- package/lib/module/ui/screens/FAQScreen.js.map +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -599
- package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -963
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -127
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/module/webauthn/passkeyClient.js +0 -33
- package/lib/module/webauthn/passkeyClient.js.map +0 -1
- package/lib/module/webauthn/passkeyClient.native.js +0 -28
- package/lib/module/webauthn/passkeyClient.native.js.map +0 -1
- package/lib/module/webauthn/passkeyClient.web.js +0 -52
- package/lib/module/webauthn/passkeyClient.web.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts +0 -16
- package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +0 -92
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +0 -20
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +0 -1
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +0 -15
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +0 -36
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts +0 -24
- package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts +0 -20
- package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts +0 -16
- package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts +0 -92
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +0 -1
- package/lib/typescript/module/webauthn/passkeyClient.d.ts +0 -20
- package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +0 -1
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +0 -15
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +0 -1
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +0 -36
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +0 -1
- package/src/ui/components/signIn/OxyCreateAccountPanel.tsx +0 -207
- package/src/ui/components/signIn/OxyRecoverAccountPanel.tsx +0 -154
- package/src/ui/components/signIn/passkeyError.ts +0 -44
- package/src/ui/context/__tests__/passkeyFlow.test.ts +0 -239
- package/src/ui/context/passkeyFlow.ts +0 -145
- package/src/ui/screens/FAQScreen.tsx +0 -200
- package/src/ui/screens/FeedbackScreen.tsx +0 -766
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +0 -1103
- package/src/ui/screens/SavesCollectionsScreen.tsx +0 -167
- package/src/webauthn/passkeyClient.native.ts +0 -26
- package/src/webauthn/passkeyClient.ts +0 -31
- package/src/webauthn/passkeyClient.web.ts +0 -56
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THE Oxy sign-in screen. The account dialog every Oxy app opens and the
|
|
3
3
|
* auth.oxy.so page render this one component; only where it is mounted
|
|
4
|
-
* differs (`host`).
|
|
4
|
+
* differs (`host`). Sign-in happens IN it, on every origin: no window opens.
|
|
5
5
|
*
|
|
6
|
-
* picker
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* native it is "Continue with Oxy" ("Get Commons" without Commons).
|
|
6
|
+
* picker a returning device: "Choose an account", then "Use another account"
|
|
7
|
+
* identifier the header, the Commons way in, and "Email or username" with its
|
|
8
|
+
* Continue. On the web, from `md`, the screen is Bloom `AuthCard`'s
|
|
9
|
+
* split card and the Commons way in is the embedded QR over its
|
|
10
|
+
* photo carousel, in the right column (the account dialog grows to
|
|
11
|
+
* that card); below `md` it is "Continue with Oxy" at the top. On
|
|
12
|
+
* native it is "Continue with Oxy" ("Get Commons" without Commons).
|
|
13
|
+
* check-email one email carries a code and a link. The code is typed here (6
|
|
14
|
+
* digits, or the 10-character long code); meanwhile the screen asks
|
|
15
|
+
* whether the link was opened in this browser, and signs in when it was.
|
|
16
|
+
* password the alternative for an account that has one.
|
|
17
|
+
* second-factor the authenticator's code, or a backup code, when the account has one.
|
|
19
18
|
*
|
|
20
|
-
*
|
|
19
|
+
* Every answer is the same whether or not the account exists: the email step
|
|
20
|
+
* says "if an account matches".
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
import type React from 'react';
|
|
24
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
24
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
25
25
|
import { Linking, Platform, Text as RNText, StyleSheet, View } from 'react-native';
|
|
26
26
|
import { View as CssView } from 'react-native-css/components';
|
|
27
27
|
import { AuthMediaCarousel } from '@oxy.so/bloom/auth-card';
|
|
28
28
|
import { Button } from '@oxy.so/bloom/button';
|
|
29
29
|
import { Divider } from '@oxy.so/bloom/divider';
|
|
30
|
-
import { RiKey2Line } from '@oxy.so/bloom/icons/RiKey2Line';
|
|
31
|
-
import { RiQrCodeLine } from '@oxy.so/bloom/icons/RiQrCodeLine';
|
|
32
30
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
33
|
-
import { TextField, TextFieldHint, TextFieldInput, TextFieldLabel } from '@oxy.so/bloom/text-field';
|
|
34
31
|
import { toast } from '@oxy.so/bloom/toast';
|
|
35
32
|
import { Text } from '@oxy.so/bloom/typography';
|
|
36
|
-
import type { SwitcherContextRow } from '@oxy.so/core';
|
|
33
|
+
import type { SwitcherContextRow } from '@oxy.so/core/session';
|
|
34
|
+
import {
|
|
35
|
+
EMAIL_SIGNIN_LONG_CODE_LENGTH,
|
|
36
|
+
SIGN_IN_ERROR_CODES,
|
|
37
|
+
TOTP_DIGITS,
|
|
38
|
+
isSecondFactorRequired,
|
|
39
|
+
type LoginResult,
|
|
40
|
+
type SignInStepResult,
|
|
41
|
+
} from '@oxy.so/contracts';
|
|
37
42
|
import { useQueryClient } from '@tanstack/react-query';
|
|
38
43
|
import { useOxy } from '../../context/OxyContext';
|
|
39
44
|
import { useAccountDialogSnapshot } from '../../hooks/accountDialogSnapshot';
|
|
40
45
|
import { useDeviceSwitcher } from '../../hooks/useDeviceSwitcher';
|
|
41
46
|
import { useI18n } from '../../hooks/useI18n';
|
|
47
|
+
import { useSurfaceFrameWidth } from '../../hooks/useSurfaceFrameWidth';
|
|
42
48
|
import { getCommonsAcquisitionUrl } from '../../utils/commonsStoreLinks';
|
|
43
49
|
import { isWebBrowser } from '../../utils/isWebBrowser';
|
|
44
50
|
import { SubtleLink } from '../authChooser/primitives';
|
|
@@ -46,17 +52,50 @@ import { SIGN_IN_SLIDES } from './artwork';
|
|
|
46
52
|
import { InlineCommonsQr } from './InlineCommonsQr';
|
|
47
53
|
import { OxyAccountPicker } from './OxyAccountPicker';
|
|
48
54
|
import { OxyAuthScreen, OxyAuthScreenHeader, OxyAuthSplit, OxyAuthTerms } from './OxyAuthScreen';
|
|
49
|
-
import {
|
|
55
|
+
import {
|
|
56
|
+
AccountFlowAction,
|
|
57
|
+
AccountFlowField,
|
|
58
|
+
AccountFlowNote,
|
|
59
|
+
describeSignInError,
|
|
60
|
+
errorCode,
|
|
61
|
+
formatSignInCodeInput,
|
|
62
|
+
isCompleteSignInCode,
|
|
63
|
+
isRateLimited,
|
|
64
|
+
retryAfterSeconds,
|
|
65
|
+
} from './accountFlowParts';
|
|
66
|
+
import { readSignInFlow, writeSignInFlow } from './signInFlowStore';
|
|
50
67
|
import { resolveSignInMethods } from './signInMethods';
|
|
51
68
|
|
|
69
|
+
/** Bloom `AuthCard`'s split card width, which the account dialog grows to for it. */
|
|
70
|
+
const SPLIT_WIDTH = 880;
|
|
71
|
+
/** How often the check-email step asks whether the link was opened in this browser. */
|
|
72
|
+
export const EMAIL_SIGNIN_POLL_MS = 2000;
|
|
73
|
+
/** How long after an email "Send a new email" waits. */
|
|
74
|
+
export const EMAIL_RESEND_COOLDOWN_SECONDS = 30;
|
|
75
|
+
|
|
76
|
+
/** What the dialog keeps of this screen across a remount (`signInFlowStore`). */
|
|
77
|
+
interface SavedSignInFlow {
|
|
78
|
+
step: Step;
|
|
79
|
+
identifier: string;
|
|
80
|
+
showForm: boolean;
|
|
81
|
+
useBackupCode: boolean;
|
|
82
|
+
/** When "Send a new email" may be pressed again (ms). */
|
|
83
|
+
resendUntil: number;
|
|
84
|
+
}
|
|
85
|
+
const SIGN_IN_FLOW_KEY = 'signin';
|
|
86
|
+
|
|
87
|
+
type Step =
|
|
88
|
+
| { name: 'start' }
|
|
89
|
+
| { name: 'check-email'; identifier: string; requestId: string; requestSecret: string }
|
|
90
|
+
| { name: 'password'; identifier: string }
|
|
91
|
+
| { name: 'second-factor'; challengeId: string; identifier: string };
|
|
92
|
+
|
|
52
93
|
export interface OxySignInPanelProps {
|
|
53
94
|
/** This screen signed the origin in. */
|
|
54
95
|
onSignedIn: () => void;
|
|
55
|
-
/** "
|
|
96
|
+
/** "Don't have an account? Create account". */
|
|
56
97
|
onCreateAccount: () => void;
|
|
57
|
-
/**
|
|
58
|
-
onRecover?: () => void;
|
|
59
|
-
/** A handle to pre-fill, skipping the picker (a re-authentication). */
|
|
98
|
+
/** An email or username to pre-fill, skipping the picker (a re-authentication). */
|
|
60
99
|
loginHint?: string;
|
|
61
100
|
/** The app being continued to, when there is one. */
|
|
62
101
|
appName?: string | null;
|
|
@@ -72,7 +111,6 @@ export interface OxySignInPanelProps {
|
|
|
72
111
|
export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
73
112
|
onSignedIn,
|
|
74
113
|
onCreateAccount,
|
|
75
|
-
onRecover,
|
|
76
114
|
loginHint,
|
|
77
115
|
appName = null,
|
|
78
116
|
host = 'page',
|
|
@@ -80,21 +118,44 @@ export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
|
80
118
|
const theme = useTheme();
|
|
81
119
|
const { t } = useI18n();
|
|
82
120
|
const queryClient = useQueryClient();
|
|
83
|
-
const { accountDialogController: controller, openAccountDialog,
|
|
121
|
+
const { accountDialogController: controller, openAccountDialog, oxyServices, handleWebSession } = useOxy();
|
|
84
122
|
const snapshot = useAccountDialogSnapshot(controller);
|
|
85
123
|
const { principals, activeContext } = useDeviceSwitcher();
|
|
86
124
|
|
|
87
125
|
const methods = resolveSignInMethods({
|
|
88
126
|
web: isWebBrowser(),
|
|
89
|
-
host,
|
|
90
127
|
commonsAvailability: snapshot.commonsAvailability,
|
|
91
128
|
});
|
|
92
129
|
|
|
93
|
-
|
|
94
|
-
|
|
130
|
+
// In the dialog the step outlives a remount of this screen (the responsive
|
|
131
|
+
// surface swaps its tree at `md`): it is restored from, and saved to, the
|
|
132
|
+
// flow store the dialog's controller owns.
|
|
133
|
+
const flowOwner = host === 'dialog' ? controller : null;
|
|
134
|
+
const [saved] = useState(() => readSignInFlow<SavedSignInFlow>(flowOwner, SIGN_IN_FLOW_KEY));
|
|
135
|
+
const [showForm, setShowForm] = useState(saved?.showForm ?? Boolean(loginHint));
|
|
136
|
+
const [step, setStep] = useState<Step>(saved?.step ?? { name: 'start' });
|
|
137
|
+
const [identifier, setIdentifier] = useState(saved?.identifier ?? loginHint ?? '');
|
|
138
|
+
const [code, setCode] = useState('');
|
|
139
|
+
const [password, setPassword] = useState('');
|
|
140
|
+
const [secondFactorCode, setSecondFactorCode] = useState('');
|
|
141
|
+
const [useBackupCode, setUseBackupCode] = useState(saved?.useBackupCode ?? false);
|
|
95
142
|
const [pending, setPending] = useState(false);
|
|
96
143
|
const [error, setError] = useState<string | null>(null);
|
|
144
|
+
const [notice, setNotice] = useState<string | null>(null);
|
|
97
145
|
const [rateLimitSeconds, setRateLimitSeconds] = useState(0);
|
|
146
|
+
const [resendSeconds, setResendSeconds] = useState(() =>
|
|
147
|
+
saved ? Math.max(0, Math.ceil((saved.resendUntil - Date.now()) / 1000)) : 0,
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
writeSignInFlow(flowOwner, SIGN_IN_FLOW_KEY, {
|
|
152
|
+
step,
|
|
153
|
+
identifier,
|
|
154
|
+
showForm,
|
|
155
|
+
useBackupCode,
|
|
156
|
+
resendUntil: Date.now() + resendSeconds * 1000,
|
|
157
|
+
} satisfies SavedSignInFlow);
|
|
158
|
+
}, [flowOwner, step, identifier, showForm, useBackupCode, resendSeconds]);
|
|
98
159
|
const blocked = pending || rateLimitSeconds > 0;
|
|
99
160
|
|
|
100
161
|
// The countdown after a 429: one tick a second until the person may retry.
|
|
@@ -104,6 +165,13 @@ export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
|
104
165
|
return () => clearTimeout(timer);
|
|
105
166
|
}, [rateLimitSeconds]);
|
|
106
167
|
|
|
168
|
+
// The wait before another email may be asked for.
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
if (resendSeconds <= 0) return;
|
|
171
|
+
const timer = setTimeout(() => setResendSeconds((seconds) => Math.max(0, seconds - 1)), 1000);
|
|
172
|
+
return () => clearTimeout(timer);
|
|
173
|
+
}, [resendSeconds]);
|
|
174
|
+
|
|
107
175
|
// On a page, a request the controller runs (the embedded QR, or one shown in
|
|
108
176
|
// the dialog opened over it) finishes the page's sign-in too. Only one that
|
|
109
177
|
// STARTED here: a completion already on the controller is somebody else's.
|
|
@@ -118,60 +186,195 @@ export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
|
118
186
|
if (host === 'page') openAccountDialog('qr');
|
|
119
187
|
}, [host, openAccountDialog]);
|
|
120
188
|
|
|
121
|
-
// These open a window or leave the page, so they run straight from the
|
|
122
|
-
// press, before any await.
|
|
123
189
|
const continueWithOxy = () => {
|
|
124
190
|
void controller?.signInWithOxy();
|
|
125
191
|
showRequest();
|
|
126
192
|
};
|
|
127
|
-
const signInOnOxy = () => {
|
|
128
|
-
void continueOnAuth('signin').then((result) => {
|
|
129
|
-
if (result.status === 'signed-in') onSignedIn();
|
|
130
|
-
else if (result.status === 'failed') toast.error(t('signin.errors.failed'));
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
const useAnotherDevice = () => {
|
|
134
|
-
void controller?.showQr();
|
|
135
|
-
showRequest();
|
|
136
|
-
};
|
|
137
193
|
const getCommons = () => {
|
|
138
194
|
Promise.resolve()
|
|
139
195
|
.then(() => Linking.openURL(getCommonsAcquisitionUrl(Platform.OS)))
|
|
140
196
|
.catch(() => toast.error(t('accountSwitcher.linkOpenFailed')));
|
|
141
197
|
};
|
|
142
198
|
|
|
143
|
-
const
|
|
199
|
+
const fail = useCallback(
|
|
200
|
+
(reason: unknown) => {
|
|
201
|
+
if (isRateLimited(reason)) setRateLimitSeconds(retryAfterSeconds(reason));
|
|
202
|
+
else setError(describeSignInError(reason, t));
|
|
203
|
+
},
|
|
204
|
+
[t],
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
// One sign-in ends once: the typed code and the opened link can race.
|
|
208
|
+
const finishingRef = useRef(false);
|
|
209
|
+
const finish = useCallback(
|
|
210
|
+
async (result: SignInStepResult, from: string): Promise<void> => {
|
|
211
|
+
if (finishingRef.current) return;
|
|
212
|
+
if (isSecondFactorRequired(result)) {
|
|
213
|
+
setError(null);
|
|
214
|
+
setSecondFactorCode('');
|
|
215
|
+
setUseBackupCode(false);
|
|
216
|
+
setStep({ name: 'second-factor', challengeId: result.challengeId, identifier: from });
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
finishingRef.current = true;
|
|
220
|
+
writeSignInFlow(flowOwner, SIGN_IN_FLOW_KEY, undefined);
|
|
221
|
+
try {
|
|
222
|
+
await handleWebSession(result as LoginResult);
|
|
223
|
+
} catch (reason) {
|
|
224
|
+
finishingRef.current = false;
|
|
225
|
+
throw reason;
|
|
226
|
+
}
|
|
227
|
+
onSignedIn();
|
|
228
|
+
},
|
|
229
|
+
[handleWebSession, onSignedIn, flowOwner],
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
/** Send the sign-in email and show "Check your email". */
|
|
233
|
+
const startEmail = (name: string) => {
|
|
144
234
|
if (blocked) return;
|
|
145
235
|
setError(null);
|
|
236
|
+
setNotice(null);
|
|
146
237
|
setPending(true);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
238
|
+
oxyServices
|
|
239
|
+
.auth.email.start(name)
|
|
240
|
+
.then((started) => {
|
|
241
|
+
if (started.retryLater) {
|
|
242
|
+
setError(t('signin.checkEmail.retryLater'));
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
setCode('');
|
|
246
|
+
setResendSeconds(EMAIL_RESEND_COOLDOWN_SECONDS);
|
|
247
|
+
if (step.name === 'check-email') setNotice(t('signin.checkEmail.resent'));
|
|
248
|
+
setStep({ name: 'check-email', identifier: name, requestId: started.requestId, requestSecret: started.requestSecret });
|
|
249
|
+
})
|
|
250
|
+
.catch(fail)
|
|
251
|
+
.finally(() => setPending(false));
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const submitIdentifier = () => {
|
|
255
|
+
const name = identifier.trim();
|
|
256
|
+
if (!name) {
|
|
257
|
+
setError(t('signin.identifier.required'));
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
startEmail(name);
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
const submitCode = (typed: string) => {
|
|
264
|
+
if (step.name !== 'check-email' || blocked) return;
|
|
265
|
+
if (!isCompleteSignInCode(typed)) {
|
|
266
|
+
setError(t('signin.errors.codeInvalid'));
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
const request = step;
|
|
270
|
+
setError(null);
|
|
271
|
+
setNotice(null);
|
|
272
|
+
setPending(true);
|
|
273
|
+
oxyServices
|
|
274
|
+
.auth.email.confirm({ requestId: request.requestId, requestSecret: request.requestSecret, code: typed.trim() })
|
|
275
|
+
.then((result) => finish(result, request.identifier))
|
|
276
|
+
.catch((reason: unknown) => {
|
|
277
|
+
setCode('');
|
|
278
|
+
fail(reason);
|
|
279
|
+
})
|
|
280
|
+
.finally(() => setPending(false));
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
const submitPassword = () => {
|
|
284
|
+
if (step.name !== 'password' || blocked) return;
|
|
285
|
+
if (!password) {
|
|
286
|
+
setError(t('signin.password.required'));
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
const name = step.identifier;
|
|
290
|
+
setError(null);
|
|
291
|
+
setPending(true);
|
|
292
|
+
oxyServices
|
|
293
|
+
.auth.password.signIn({ identifier: name, password })
|
|
294
|
+
.then((result) => finish(result, name))
|
|
295
|
+
.catch(fail)
|
|
296
|
+
.finally(() => setPending(false));
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
const submitSecondFactor = (typed: string) => {
|
|
300
|
+
if (step.name !== 'second-factor' || blocked) return;
|
|
301
|
+
const value = typed.trim();
|
|
302
|
+
if (!value) {
|
|
303
|
+
setError(t('signin.errors.secondFactorInvalid'));
|
|
304
|
+
return;
|
|
160
305
|
}
|
|
306
|
+
const challenge = step;
|
|
307
|
+
setError(null);
|
|
308
|
+
setPending(true);
|
|
309
|
+
oxyServices
|
|
310
|
+
.auth.completeSecondFactor({ challengeId: challenge.challengeId, code: value })
|
|
311
|
+
.then((session) => finish(session, challenge.identifier))
|
|
312
|
+
.catch((reason: unknown) => {
|
|
313
|
+
setSecondFactorCode('');
|
|
314
|
+
fail(reason);
|
|
315
|
+
})
|
|
316
|
+
.finally(() => setPending(false));
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
// The poll below finishes through the latest `finish` without restarting
|
|
320
|
+
// when a parent re-renders with a new `onSignedIn`.
|
|
321
|
+
const finishRef = useRef(finish);
|
|
322
|
+
useEffect(() => {
|
|
323
|
+
finishRef.current = finish;
|
|
324
|
+
}, [finish]);
|
|
325
|
+
|
|
326
|
+
// While "Check your email" shows, ask whether the link was opened in this
|
|
327
|
+
// browser; stop when the step goes, and on a request that is gone. A session
|
|
328
|
+
// the server handed over is always committed, even if the step went away
|
|
329
|
+
// meanwhile: the request is spent, so it would otherwise be lost.
|
|
330
|
+
const emailRequest = step.name === 'check-email' ? step : null;
|
|
331
|
+
const requestId = emailRequest?.requestId ?? null;
|
|
332
|
+
const requestSecret = emailRequest?.requestSecret ?? null;
|
|
333
|
+
const requestIdentifier = emailRequest?.identifier ?? '';
|
|
334
|
+
useEffect(() => {
|
|
335
|
+
if (!requestId || !requestSecret) return;
|
|
336
|
+
let stopped = false;
|
|
337
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
338
|
+
const poll = async () => {
|
|
339
|
+
if (stopped) return;
|
|
340
|
+
try {
|
|
341
|
+
const result = await oxyServices.auth.email.collect({ requestId, requestSecret });
|
|
342
|
+
if (!('status' in result)) {
|
|
343
|
+
await finishRef.current(result, requestIdentifier);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (stopped) return;
|
|
347
|
+
} catch (reason) {
|
|
348
|
+
if (stopped) return;
|
|
349
|
+
// A spent, expired or unknown request never approves: stop asking.
|
|
350
|
+
if (errorCode(reason) === SIGN_IN_ERROR_CODES.requestInvalid) return;
|
|
351
|
+
}
|
|
352
|
+
if (!stopped) timer = setTimeout(() => void poll(), EMAIL_SIGNIN_POLL_MS);
|
|
353
|
+
};
|
|
354
|
+
timer = setTimeout(() => void poll(), EMAIL_SIGNIN_POLL_MS);
|
|
355
|
+
return () => {
|
|
356
|
+
stopped = true;
|
|
357
|
+
if (timer) clearTimeout(timer);
|
|
358
|
+
};
|
|
359
|
+
}, [requestId, requestSecret, requestIdentifier, oxyServices]);
|
|
360
|
+
|
|
361
|
+
const backToIdentifier = () => {
|
|
362
|
+
setError(null);
|
|
363
|
+
setNotice(null);
|
|
364
|
+
setCode('');
|
|
365
|
+
setPassword('');
|
|
366
|
+
setStep({ name: 'start' });
|
|
161
367
|
};
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
368
|
+
const toPassword = (name: string) => {
|
|
369
|
+
setError(null);
|
|
370
|
+
setNotice(null);
|
|
371
|
+
setPassword('');
|
|
372
|
+
setStep({ name: 'password', identifier: name });
|
|
166
373
|
};
|
|
167
374
|
|
|
168
375
|
// A returning device starts at WHO. Not while adding an account from inside
|
|
169
376
|
// a signed-in app: the rows are the accounts it would add.
|
|
170
377
|
const pickerAllowed = host === 'dialog' ? !snapshot.hasSession : activeContext !== null;
|
|
171
|
-
const reauthenticate = (context: SwitcherContextRow) => {
|
|
172
|
-
setIdentifier(context.handle ?? '');
|
|
173
|
-
setShowForm(true);
|
|
174
|
-
};
|
|
175
378
|
const selectContext = async (context: SwitcherContextRow) => {
|
|
176
379
|
const outcome = await controller?.chooseContext(context.contextId).catch(() => 'failed' as const);
|
|
177
380
|
switch (outcome) {
|
|
@@ -189,8 +392,12 @@ export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
|
189
392
|
return;
|
|
190
393
|
case 'failed':
|
|
191
394
|
// The pair could not be activated as it stands: sign in as it explicitly.
|
|
192
|
-
if (
|
|
193
|
-
|
|
395
|
+
if (context.handle) {
|
|
396
|
+
setIdentifier(context.handle);
|
|
397
|
+
setShowForm(true);
|
|
398
|
+
} else {
|
|
399
|
+
toast.error(t('accountSwitcher.toasts.activateFailed'));
|
|
400
|
+
}
|
|
194
401
|
return;
|
|
195
402
|
default:
|
|
196
403
|
return;
|
|
@@ -198,8 +405,11 @@ export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
|
198
405
|
};
|
|
199
406
|
|
|
200
407
|
const showsPicker = pickerAllowed && !showForm && principals.length > 0;
|
|
201
|
-
//
|
|
408
|
+
// The web screen is the split card from `md`. In the account dialog it grows
|
|
409
|
+
// the dialog to that card; below `md` the dialog is a bottom sheet, which a
|
|
410
|
+
// width does not touch.
|
|
202
411
|
const splits = methods.commons === 'qr';
|
|
412
|
+
useSurfaceFrameWidth(host === 'dialog' && !showsPicker && splits ? SPLIT_WIDTH : null);
|
|
203
413
|
|
|
204
414
|
if (showsPicker) {
|
|
205
415
|
return (
|
|
@@ -219,147 +429,279 @@ export const OxySignInPanel: React.FC<OxySignInPanelProps> = ({
|
|
|
219
429
|
}
|
|
220
430
|
|
|
221
431
|
const shownError = rateLimitSeconds > 0 ? t('signin.errors.rateLimited', { seconds: rateLimitSeconds }) : error;
|
|
432
|
+
const clearError = () => {
|
|
433
|
+
if (error) setError(null);
|
|
434
|
+
};
|
|
222
435
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
onValueChange={(value) => {
|
|
286
|
-
setIdentifier(value);
|
|
287
|
-
if (error) setError(null);
|
|
288
|
-
}}
|
|
289
|
-
placeholder={t('signin.username.placeholder')}
|
|
290
|
-
autoComplete="username"
|
|
291
|
-
autoCapitalize="none"
|
|
292
|
-
autoCorrect={false}
|
|
293
|
-
autoFocus={Platform.OS === 'web'}
|
|
294
|
-
returnKeyType="go"
|
|
295
|
-
onSubmitEditing={submitUsername}
|
|
296
|
-
aria-required
|
|
297
|
-
/>
|
|
298
|
-
</TextField>
|
|
299
|
-
{shownError ? <TextFieldHint invalid>{shownError}</TextFieldHint> : null}
|
|
436
|
+
let form: React.ReactNode;
|
|
437
|
+
switch (step.name) {
|
|
438
|
+
case 'check-email': {
|
|
439
|
+
const request = step;
|
|
440
|
+
form = (
|
|
441
|
+
<OxyAuthScreen className={splits ? 'md:max-w-none' : undefined}>
|
|
442
|
+
<OxyAuthScreenHeader
|
|
443
|
+
title={t('signin.checkEmail.title')}
|
|
444
|
+
description={t('signin.checkEmail.description', { identifier: request.identifier })}
|
|
445
|
+
/>
|
|
446
|
+
<AccountFlowField
|
|
447
|
+
label={t('signin.checkEmail.codeLabel')}
|
|
448
|
+
value={code}
|
|
449
|
+
onChange={(value) => {
|
|
450
|
+
const typed = formatSignInCodeInput(value);
|
|
451
|
+
setCode(typed);
|
|
452
|
+
clearError();
|
|
453
|
+
if (isCompleteSignInCode(typed)) submitCode(typed);
|
|
454
|
+
}}
|
|
455
|
+
onSubmit={() => submitCode(code)}
|
|
456
|
+
error={shownError}
|
|
457
|
+
disabled={blocked}
|
|
458
|
+
placeholder="000000"
|
|
459
|
+
autoComplete="one-time-code"
|
|
460
|
+
maxLength={EMAIL_SIGNIN_LONG_CODE_LENGTH + 1}
|
|
461
|
+
hint={t('signin.checkEmail.codeHint')}
|
|
462
|
+
testID="signin-code"
|
|
463
|
+
/>
|
|
464
|
+
{notice ? <AccountFlowNote testID="signin-notice">{notice}</AccountFlowNote> : null}
|
|
465
|
+
<AccountFlowAction
|
|
466
|
+
label={t('signin.actions.continue')}
|
|
467
|
+
onPress={() => submitCode(code)}
|
|
468
|
+
pending={pending}
|
|
469
|
+
disabled={rateLimitSeconds > 0}
|
|
470
|
+
testID="signin-code-continue"
|
|
471
|
+
/>
|
|
472
|
+
<View style={styles.links}>
|
|
473
|
+
<SubtleLink
|
|
474
|
+
label={
|
|
475
|
+
resendSeconds > 0
|
|
476
|
+
? t('signin.checkEmail.resendIn', { seconds: resendSeconds })
|
|
477
|
+
: t('signin.checkEmail.resend')
|
|
478
|
+
}
|
|
479
|
+
theme={theme}
|
|
480
|
+
onPress={() => startEmail(request.identifier)}
|
|
481
|
+
disabled={blocked || resendSeconds > 0}
|
|
482
|
+
testID="signin-resend"
|
|
483
|
+
/>
|
|
484
|
+
<SubtleLink
|
|
485
|
+
label={t('signin.checkEmail.usePassword')}
|
|
486
|
+
theme={theme}
|
|
487
|
+
onPress={() => toPassword(request.identifier)}
|
|
488
|
+
disabled={pending}
|
|
489
|
+
testID="signin-use-password"
|
|
490
|
+
/>
|
|
491
|
+
<SubtleLink
|
|
492
|
+
label={t('signin.checkEmail.differentAccount')}
|
|
493
|
+
theme={theme}
|
|
494
|
+
onPress={backToIdentifier}
|
|
495
|
+
disabled={pending}
|
|
496
|
+
testID="signin-different-account"
|
|
497
|
+
/>
|
|
300
498
|
</View>
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
499
|
+
</OxyAuthScreen>
|
|
500
|
+
);
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
case 'password': {
|
|
504
|
+
const request = step;
|
|
505
|
+
form = (
|
|
506
|
+
<OxyAuthScreen className={splits ? 'md:max-w-none' : undefined}>
|
|
507
|
+
<OxyAuthScreenHeader title={t('signin.password.title')} description={request.identifier} />
|
|
508
|
+
<AccountFlowField
|
|
509
|
+
label={t('signin.password.label')}
|
|
510
|
+
value={password}
|
|
511
|
+
onChange={(value) => {
|
|
512
|
+
setPassword(value);
|
|
513
|
+
clearError();
|
|
514
|
+
}}
|
|
515
|
+
onSubmit={submitPassword}
|
|
516
|
+
error={shownError}
|
|
308
517
|
disabled={blocked}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
518
|
+
autoComplete="current-password"
|
|
519
|
+
secureTextEntry
|
|
520
|
+
testID="signin-password"
|
|
521
|
+
/>
|
|
522
|
+
<AccountFlowAction
|
|
523
|
+
label={t('signin.actions.continue')}
|
|
524
|
+
onPress={submitPassword}
|
|
525
|
+
pending={pending}
|
|
526
|
+
disabled={rateLimitSeconds > 0}
|
|
527
|
+
testID="signin-password-continue"
|
|
528
|
+
/>
|
|
529
|
+
<View style={styles.links}>
|
|
530
|
+
<SubtleLink
|
|
531
|
+
label={t('signin.password.forgot')}
|
|
532
|
+
theme={theme}
|
|
533
|
+
onPress={() => startEmail(request.identifier)}
|
|
534
|
+
disabled={blocked}
|
|
535
|
+
testID="signin-password-forgot"
|
|
536
|
+
/>
|
|
537
|
+
<SubtleLink
|
|
538
|
+
label={t('signin.checkEmail.differentAccount')}
|
|
539
|
+
theme={theme}
|
|
540
|
+
onPress={backToIdentifier}
|
|
541
|
+
disabled={pending}
|
|
542
|
+
testID="signin-different-account"
|
|
543
|
+
/>
|
|
544
|
+
</View>
|
|
545
|
+
</OxyAuthScreen>
|
|
546
|
+
);
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
case 'second-factor':
|
|
550
|
+
form = (
|
|
551
|
+
<OxyAuthScreen className={splits ? 'md:max-w-none' : undefined}>
|
|
552
|
+
<OxyAuthScreenHeader
|
|
553
|
+
title={t('signin.secondFactor.title')}
|
|
554
|
+
description={useBackupCode ? t('signin.secondFactor.backupDescription') : t('signin.secondFactor.description')}
|
|
555
|
+
/>
|
|
556
|
+
<AccountFlowField
|
|
557
|
+
key={useBackupCode ? 'backup' : 'totp'}
|
|
558
|
+
label={useBackupCode ? t('signin.secondFactor.backupLabel') : t('signin.secondFactor.label')}
|
|
559
|
+
value={secondFactorCode}
|
|
560
|
+
onChange={(value) => {
|
|
561
|
+
if (useBackupCode) {
|
|
562
|
+
setSecondFactorCode(value);
|
|
563
|
+
clearError();
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
const digits = value.replace(/\D/g, '').slice(0, TOTP_DIGITS);
|
|
567
|
+
setSecondFactorCode(digits);
|
|
568
|
+
clearError();
|
|
569
|
+
if (digits.length === TOTP_DIGITS) submitSecondFactor(digits);
|
|
570
|
+
}}
|
|
571
|
+
onSubmit={() => submitSecondFactor(secondFactorCode)}
|
|
572
|
+
error={shownError}
|
|
573
|
+
disabled={blocked}
|
|
574
|
+
placeholder={useBackupCode ? 'xxxxx-xxxxx' : '000000'}
|
|
575
|
+
autoComplete="one-time-code"
|
|
576
|
+
keyboardType={useBackupCode ? 'default' : 'number-pad'}
|
|
577
|
+
maxLength={useBackupCode ? 11 : TOTP_DIGITS}
|
|
578
|
+
testID="signin-second-factor"
|
|
579
|
+
/>
|
|
580
|
+
<AccountFlowAction
|
|
581
|
+
label={t('signin.actions.continue')}
|
|
582
|
+
onPress={() => submitSecondFactor(secondFactorCode)}
|
|
583
|
+
pending={pending}
|
|
584
|
+
disabled={rateLimitSeconds > 0}
|
|
585
|
+
testID="signin-second-factor-continue"
|
|
586
|
+
/>
|
|
587
|
+
<View style={styles.links}>
|
|
588
|
+
<SubtleLink
|
|
589
|
+
label={useBackupCode ? t('signin.secondFactor.useAuthenticator') : t('signin.secondFactor.useBackup')}
|
|
590
|
+
theme={theme}
|
|
591
|
+
onPress={() => {
|
|
592
|
+
setUseBackupCode(!useBackupCode);
|
|
593
|
+
setSecondFactorCode('');
|
|
594
|
+
setError(null);
|
|
595
|
+
}}
|
|
596
|
+
disabled={pending}
|
|
597
|
+
testID="signin-toggle-backup"
|
|
598
|
+
/>
|
|
599
|
+
<SubtleLink
|
|
600
|
+
label={t('signin.checkEmail.differentAccount')}
|
|
601
|
+
theme={theme}
|
|
602
|
+
onPress={backToIdentifier}
|
|
603
|
+
disabled={pending}
|
|
604
|
+
testID="signin-different-account"
|
|
605
|
+
/>
|
|
606
|
+
</View>
|
|
607
|
+
</OxyAuthScreen>
|
|
608
|
+
);
|
|
609
|
+
break;
|
|
610
|
+
default: {
|
|
611
|
+
const adding = host === 'dialog' && snapshot.hasSession;
|
|
612
|
+
const title = adding ? t('signin.addAccountTitle') : t('signin.title');
|
|
613
|
+
const description = adding
|
|
614
|
+
? t('signin.addAccountSubtitle')
|
|
615
|
+
: appName
|
|
616
|
+
? t('signin.subtitleToApp', { app: appName })
|
|
617
|
+
: t('signin.subtitle');
|
|
618
|
+
|
|
619
|
+
const continueWithOxyButton = (
|
|
620
|
+
<Button appearance="outline" tone="neutral" size="lg" fullWidth onPress={continueWithOxy} testID="continue-with-oxy">
|
|
621
|
+
{t('accountSwitcher.continueWithOxy')}
|
|
345
622
|
</Button>
|
|
346
|
-
)
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
<
|
|
351
|
-
|
|
352
|
-
<OxyAuthTerms />
|
|
353
|
-
</OxyAuthScreen>
|
|
354
|
-
);
|
|
623
|
+
);
|
|
624
|
+
const divider = <Divider>{t('signin.orContinueWith')}</Divider>;
|
|
625
|
+
|
|
626
|
+
form = (
|
|
627
|
+
<OxyAuthScreen className={splits ? 'md:max-w-none' : undefined}>
|
|
628
|
+
<OxyAuthScreenHeader title={title} description={description} />
|
|
355
629
|
|
|
356
|
-
|
|
630
|
+
{/* The Commons way in, then the email. On the web from `md` the QR
|
|
631
|
+
beside the form IS the Commons way in; below `md` this screen is
|
|
632
|
+
the phone a QR would be scanned with. */}
|
|
633
|
+
{splits ? (
|
|
634
|
+
<CssView className="gap-6 md:hidden">
|
|
635
|
+
{continueWithOxyButton}
|
|
636
|
+
{divider}
|
|
637
|
+
</CssView>
|
|
638
|
+
) : null}
|
|
639
|
+
{methods.commons === 'continue' ? (
|
|
640
|
+
<View style={styles.stack}>
|
|
641
|
+
{continueWithOxyButton}
|
|
642
|
+
{divider}
|
|
643
|
+
</View>
|
|
644
|
+
) : null}
|
|
645
|
+
{methods.commons === 'get-commons' ? (
|
|
646
|
+
<View style={styles.stack}>
|
|
647
|
+
<Text style={[styles.note, { color: theme.colors.textSecondary }]}>{t('accountSwitcher.commonsNotInstalled')}</Text>
|
|
648
|
+
<Button appearance="outline" tone="neutral" size="lg" fullWidth onPress={getCommons} testID="get-commons-button">
|
|
649
|
+
{t('accountSwitcher.getCommons')}
|
|
650
|
+
</Button>
|
|
651
|
+
{divider}
|
|
652
|
+
</View>
|
|
653
|
+
) : null}
|
|
654
|
+
|
|
655
|
+
<View style={styles.stack}>
|
|
656
|
+
<AccountFlowField
|
|
657
|
+
label={t('signin.identifier.label')}
|
|
658
|
+
value={identifier}
|
|
659
|
+
onChange={(value) => {
|
|
660
|
+
setIdentifier(value);
|
|
661
|
+
clearError();
|
|
662
|
+
}}
|
|
663
|
+
onSubmit={submitIdentifier}
|
|
664
|
+
error={shownError}
|
|
665
|
+
disabled={blocked}
|
|
666
|
+
placeholder={t('signin.identifier.placeholder')}
|
|
667
|
+
autoComplete="username"
|
|
668
|
+
keyboardType="email-address"
|
|
669
|
+
autoFocus={Platform.OS === 'web'}
|
|
670
|
+
testID="signin-identifier"
|
|
671
|
+
/>
|
|
672
|
+
<Text style={[styles.note, styles.noAccount, { color: theme.colors.textSecondary }]}>
|
|
673
|
+
{t('signin.noAccount')}{' '}
|
|
674
|
+
<RNText
|
|
675
|
+
accessibilityRole="link"
|
|
676
|
+
onPress={onCreateAccount}
|
|
677
|
+
style={[styles.noAccountLink, { color: theme.colors.text }]}
|
|
678
|
+
testID="create-account-link"
|
|
679
|
+
>
|
|
680
|
+
{t('signin.createAccount')}
|
|
681
|
+
</RNText>
|
|
682
|
+
</Text>
|
|
683
|
+
<AccountFlowAction
|
|
684
|
+
label={t('signin.actions.continue')}
|
|
685
|
+
onPress={submitIdentifier}
|
|
686
|
+
pending={pending}
|
|
687
|
+
disabled={rateLimitSeconds > 0}
|
|
688
|
+
testID="signin-identifier-continue"
|
|
689
|
+
/>
|
|
690
|
+
</View>
|
|
691
|
+
<OxyAuthTerms />
|
|
692
|
+
</OxyAuthScreen>
|
|
693
|
+
);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (!splits) return <>{form}</>;
|
|
357
698
|
return (
|
|
358
699
|
<OxyAuthSplit
|
|
700
|
+
bare={host === 'dialog'}
|
|
359
701
|
aside={
|
|
360
702
|
<>
|
|
361
703
|
<AuthMediaCarousel slides={SIGN_IN_SLIDES} style={StyleSheet.absoluteFill} />
|
|
362
|
-
<InlineCommonsQr controller={controller} />
|
|
704
|
+
{step.name === 'start' ? <InlineCommonsQr controller={controller} /> : null}
|
|
363
705
|
</>
|
|
364
706
|
}
|
|
365
707
|
>
|
|
@@ -372,8 +714,8 @@ const styles = StyleSheet.create({
|
|
|
372
714
|
stack: {
|
|
373
715
|
gap: 12,
|
|
374
716
|
},
|
|
375
|
-
|
|
376
|
-
gap:
|
|
717
|
+
links: {
|
|
718
|
+
gap: 4,
|
|
377
719
|
},
|
|
378
720
|
note: {
|
|
379
721
|
fontSize: 14,
|
|
@@ -386,7 +728,4 @@ const styles = StyleSheet.create({
|
|
|
386
728
|
noAccountLink: {
|
|
387
729
|
textDecorationLine: 'underline',
|
|
388
730
|
},
|
|
389
|
-
input: {
|
|
390
|
-
height: 40,
|
|
391
|
-
},
|
|
392
731
|
});
|