@oxy.so/services 6.2.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 +15 -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/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/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 +496 -201
- 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 +11 -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/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 +15 -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/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/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 +496 -201
- 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 +11 -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/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 +7 -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/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/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 +8 -21
- 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/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 +7 -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/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/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 +8 -21
- 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/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 +13 -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/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/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 +534 -214
- 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 +10 -29
- 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/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
|
@@ -3,37 +3,35 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* THE Oxy sign-in screen. The account dialog every Oxy app opens and the
|
|
5
5
|
* auth.oxy.so page render this one component; only where it is mounted
|
|
6
|
-
* differs (`host`).
|
|
6
|
+
* differs (`host`). Sign-in happens IN it, on every origin: no window opens.
|
|
7
7
|
*
|
|
8
|
-
* picker
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Commons" without Commons).
|
|
8
|
+
* picker a returning device: "Choose an account", then "Use another account"
|
|
9
|
+
* identifier the header, the Commons way in, and "Email or username" with its
|
|
10
|
+
* Continue. On the web, from `md`, the screen is Bloom `AuthCard`'s
|
|
11
|
+
* split card and the Commons way in is the embedded QR over its
|
|
12
|
+
* photo carousel, in the right column (the account dialog grows to
|
|
13
|
+
* that card); below `md` it is "Continue with Oxy" at the top. On
|
|
14
|
+
* native it is "Continue with Oxy" ("Get Commons" without Commons).
|
|
15
|
+
* check-email one email carries a code and a link. The code is typed here (6
|
|
16
|
+
* digits, or the 10-character long code); meanwhile the screen asks
|
|
17
|
+
* whether the link was opened in this browser, and signs in when it was.
|
|
18
|
+
* password the alternative for an account that has one.
|
|
19
|
+
* second-factor the authenticator's code, or a backup code, when the account has one.
|
|
21
20
|
*
|
|
22
|
-
*
|
|
21
|
+
* Every answer is the same whether or not the account exists: the email step
|
|
22
|
+
* says "if an account matches".
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
25
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
26
26
|
import { Linking, Platform, Text as RNText, StyleSheet, View } from 'react-native';
|
|
27
27
|
import { View as CssView } from 'react-native-css/components';
|
|
28
28
|
import { AuthMediaCarousel } from '@oxy.so/bloom/auth-card';
|
|
29
29
|
import { Button } from '@oxy.so/bloom/button';
|
|
30
30
|
import { Divider } from '@oxy.so/bloom/divider';
|
|
31
|
-
import { RiKey2Line } from '@oxy.so/bloom/icons/RiKey2Line';
|
|
32
|
-
import { RiQrCodeLine } from '@oxy.so/bloom/icons/RiQrCodeLine';
|
|
33
31
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
34
|
-
import { TextField, TextFieldHint, TextFieldInput, TextFieldLabel } from '@oxy.so/bloom/text-field';
|
|
35
32
|
import { toast } from '@oxy.so/bloom/toast';
|
|
36
33
|
import { Text } from '@oxy.so/bloom/typography';
|
|
34
|
+
import { EMAIL_SIGNIN_LONG_CODE_LENGTH, SIGN_IN_ERROR_CODES, TOTP_DIGITS, isSecondFactorRequired } from '@oxy.so/contracts';
|
|
37
35
|
import { useQueryClient } from '@tanstack/react-query';
|
|
38
36
|
import { useOxy } from "../../context/OxyContext.js";
|
|
39
37
|
import { useAccountDialogSnapshot } from "../../hooks/accountDialogSnapshot.js";
|
|
@@ -47,16 +45,24 @@ import { SIGN_IN_SLIDES } from "./artwork.js";
|
|
|
47
45
|
import { InlineCommonsQr } from "./InlineCommonsQr.js";
|
|
48
46
|
import { OxyAccountPicker } from "./OxyAccountPicker.js";
|
|
49
47
|
import { OxyAuthScreen, OxyAuthScreenHeader, OxyAuthSplit, OxyAuthTerms } from "./OxyAuthScreen.js";
|
|
50
|
-
import {
|
|
48
|
+
import { AccountFlowAction, AccountFlowField, AccountFlowNote, describeSignInError, errorCode, formatSignInCodeInput, isCompleteSignInCode, isRateLimited, retryAfterSeconds } from "./accountFlowParts.js";
|
|
49
|
+
import { readSignInFlow, writeSignInFlow } from "./signInFlowStore.js";
|
|
51
50
|
import { resolveSignInMethods } from "./signInMethods.js";
|
|
52
51
|
|
|
53
52
|
/** Bloom `AuthCard`'s split card width, which the account dialog grows to for it. */
|
|
54
53
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
55
54
|
const SPLIT_WIDTH = 880;
|
|
55
|
+
/** How often the check-email step asks whether the link was opened in this browser. */
|
|
56
|
+
export const EMAIL_SIGNIN_POLL_MS = 2000;
|
|
57
|
+
/** How long after an email "Send a new email" waits. */
|
|
58
|
+
export const EMAIL_RESEND_COOLDOWN_SECONDS = 30;
|
|
59
|
+
|
|
60
|
+
/** What the dialog keeps of this screen across a remount (`signInFlowStore`). */
|
|
61
|
+
|
|
62
|
+
const SIGN_IN_FLOW_KEY = 'signin';
|
|
56
63
|
export const OxySignInPanel = ({
|
|
57
64
|
onSignedIn,
|
|
58
65
|
onCreateAccount,
|
|
59
|
-
onRecover,
|
|
60
66
|
loginHint,
|
|
61
67
|
appName = null,
|
|
62
68
|
host = 'page'
|
|
@@ -69,8 +75,8 @@ export const OxySignInPanel = ({
|
|
|
69
75
|
const {
|
|
70
76
|
accountDialogController: controller,
|
|
71
77
|
openAccountDialog,
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
oxyServices,
|
|
79
|
+
handleWebSession
|
|
74
80
|
} = useOxy();
|
|
75
81
|
const snapshot = useAccountDialogSnapshot(controller);
|
|
76
82
|
const {
|
|
@@ -79,14 +85,37 @@ export const OxySignInPanel = ({
|
|
|
79
85
|
} = useDeviceSwitcher();
|
|
80
86
|
const methods = resolveSignInMethods({
|
|
81
87
|
web: isWebBrowser(),
|
|
82
|
-
host,
|
|
83
88
|
commonsAvailability: snapshot.commonsAvailability
|
|
84
89
|
});
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
|
|
91
|
+
// In the dialog the step outlives a remount of this screen (the responsive
|
|
92
|
+
// surface swaps its tree at `md`): it is restored from, and saved to, the
|
|
93
|
+
// flow store the dialog's controller owns.
|
|
94
|
+
const flowOwner = host === 'dialog' ? controller : null;
|
|
95
|
+
const [saved] = useState(() => readSignInFlow(flowOwner, SIGN_IN_FLOW_KEY));
|
|
96
|
+
const [showForm, setShowForm] = useState(saved?.showForm ?? Boolean(loginHint));
|
|
97
|
+
const [step, setStep] = useState(saved?.step ?? {
|
|
98
|
+
name: 'start'
|
|
99
|
+
});
|
|
100
|
+
const [identifier, setIdentifier] = useState(saved?.identifier ?? loginHint ?? '');
|
|
101
|
+
const [code, setCode] = useState('');
|
|
102
|
+
const [password, setPassword] = useState('');
|
|
103
|
+
const [secondFactorCode, setSecondFactorCode] = useState('');
|
|
104
|
+
const [useBackupCode, setUseBackupCode] = useState(saved?.useBackupCode ?? false);
|
|
87
105
|
const [pending, setPending] = useState(false);
|
|
88
106
|
const [error, setError] = useState(null);
|
|
107
|
+
const [notice, setNotice] = useState(null);
|
|
89
108
|
const [rateLimitSeconds, setRateLimitSeconds] = useState(0);
|
|
109
|
+
const [resendSeconds, setResendSeconds] = useState(() => saved ? Math.max(0, Math.ceil((saved.resendUntil - Date.now()) / 1000)) : 0);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
writeSignInFlow(flowOwner, SIGN_IN_FLOW_KEY, {
|
|
112
|
+
step,
|
|
113
|
+
identifier,
|
|
114
|
+
showForm,
|
|
115
|
+
useBackupCode,
|
|
116
|
+
resendUntil: Date.now() + resendSeconds * 1000
|
|
117
|
+
});
|
|
118
|
+
}, [flowOwner, step, identifier, showForm, useBackupCode, resendSeconds]);
|
|
90
119
|
const blocked = pending || rateLimitSeconds > 0;
|
|
91
120
|
|
|
92
121
|
// The countdown after a 429: one tick a second until the person may retry.
|
|
@@ -96,6 +125,13 @@ export const OxySignInPanel = ({
|
|
|
96
125
|
return () => clearTimeout(timer);
|
|
97
126
|
}, [rateLimitSeconds]);
|
|
98
127
|
|
|
128
|
+
// The wait before another email may be asked for.
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
if (resendSeconds <= 0) return;
|
|
131
|
+
const timer = setTimeout(() => setResendSeconds(seconds => Math.max(0, seconds - 1)), 1000);
|
|
132
|
+
return () => clearTimeout(timer);
|
|
133
|
+
}, [resendSeconds]);
|
|
134
|
+
|
|
99
135
|
// On a page, a request the controller runs (the embedded QR, or one shown in
|
|
100
136
|
// the dialog opened over it) finishes the page's sign-in too. Only one that
|
|
101
137
|
// STARTED here: a completion already on the controller is somebody else's.
|
|
@@ -109,61 +145,191 @@ export const OxySignInPanel = ({
|
|
|
109
145
|
const showRequest = useCallback(() => {
|
|
110
146
|
if (host === 'page') openAccountDialog('qr');
|
|
111
147
|
}, [host, openAccountDialog]);
|
|
112
|
-
|
|
113
|
-
// These open a window or leave the page, so they run straight from the
|
|
114
|
-
// press, before any await.
|
|
115
148
|
const continueWithOxy = () => {
|
|
116
149
|
void controller?.signInWithOxy();
|
|
117
150
|
showRequest();
|
|
118
151
|
};
|
|
119
|
-
// The passkey is `oxy.so`'s: in an app it runs in auth.oxy.so's window.
|
|
120
|
-
const passkeyOnOxy = () => {
|
|
121
|
-
void continueOnAuth('signin').then(result => {
|
|
122
|
-
if (result.status === 'signed-in') onSignedIn();else if (result.status === 'failed') toast.error(t('signin.errors.failed'));
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
const useAnotherDevice = () => {
|
|
126
|
-
void controller?.showQr();
|
|
127
|
-
showRequest();
|
|
128
|
-
};
|
|
129
152
|
const getCommons = () => {
|
|
130
153
|
Promise.resolve().then(() => Linking.openURL(getCommonsAcquisitionUrl(Platform.OS))).catch(() => toast.error(t('accountSwitcher.linkOpenFailed')));
|
|
131
154
|
};
|
|
132
|
-
const
|
|
155
|
+
const fail = useCallback(reason => {
|
|
156
|
+
if (isRateLimited(reason)) setRateLimitSeconds(retryAfterSeconds(reason));else setError(describeSignInError(reason, t));
|
|
157
|
+
}, [t]);
|
|
158
|
+
|
|
159
|
+
// One sign-in ends once: the typed code and the opened link can race.
|
|
160
|
+
const finishingRef = useRef(false);
|
|
161
|
+
const finish = useCallback(async (result, from) => {
|
|
162
|
+
if (finishingRef.current) return;
|
|
163
|
+
if (isSecondFactorRequired(result)) {
|
|
164
|
+
setError(null);
|
|
165
|
+
setSecondFactorCode('');
|
|
166
|
+
setUseBackupCode(false);
|
|
167
|
+
setStep({
|
|
168
|
+
name: 'second-factor',
|
|
169
|
+
challengeId: result.challengeId,
|
|
170
|
+
identifier: from
|
|
171
|
+
});
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
finishingRef.current = true;
|
|
175
|
+
writeSignInFlow(flowOwner, SIGN_IN_FLOW_KEY, undefined);
|
|
176
|
+
try {
|
|
177
|
+
await handleWebSession(result);
|
|
178
|
+
} catch (reason) {
|
|
179
|
+
finishingRef.current = false;
|
|
180
|
+
throw reason;
|
|
181
|
+
}
|
|
182
|
+
onSignedIn();
|
|
183
|
+
}, [handleWebSession, onSignedIn, flowOwner]);
|
|
184
|
+
|
|
185
|
+
/** Send the sign-in email and show "Check your email". */
|
|
186
|
+
const startEmail = name => {
|
|
133
187
|
if (blocked) return;
|
|
134
188
|
setError(null);
|
|
189
|
+
setNotice(null);
|
|
135
190
|
setPending(true);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
191
|
+
oxyServices.auth.email.start(name).then(started => {
|
|
192
|
+
if (started.retryLater) {
|
|
193
|
+
setError(t('signin.checkEmail.retryLater'));
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
setCode('');
|
|
197
|
+
setResendSeconds(EMAIL_RESEND_COOLDOWN_SECONDS);
|
|
198
|
+
if (step.name === 'check-email') setNotice(t('signin.checkEmail.resent'));
|
|
199
|
+
setStep({
|
|
200
|
+
name: 'check-email',
|
|
201
|
+
identifier: name,
|
|
202
|
+
requestId: started.requestId,
|
|
203
|
+
requestSecret: started.requestSecret
|
|
139
204
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
205
|
+
}).catch(fail).finally(() => setPending(false));
|
|
206
|
+
};
|
|
207
|
+
const submitIdentifier = () => {
|
|
208
|
+
const name = identifier.trim();
|
|
209
|
+
if (!name) {
|
|
210
|
+
setError(t('signin.identifier.required'));
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
startEmail(name);
|
|
214
|
+
};
|
|
215
|
+
const submitCode = typed => {
|
|
216
|
+
if (step.name !== 'check-email' || blocked) return;
|
|
217
|
+
if (!isCompleteSignInCode(typed)) {
|
|
218
|
+
setError(t('signin.errors.codeInvalid'));
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
const request = step;
|
|
222
|
+
setError(null);
|
|
223
|
+
setNotice(null);
|
|
224
|
+
setPending(true);
|
|
225
|
+
oxyServices.auth.email.confirm({
|
|
226
|
+
requestId: request.requestId,
|
|
227
|
+
requestSecret: request.requestSecret,
|
|
228
|
+
code: typed.trim()
|
|
229
|
+
}).then(result => finish(result, request.identifier)).catch(reason => {
|
|
230
|
+
setCode('');
|
|
231
|
+
fail(reason);
|
|
232
|
+
}).finally(() => setPending(false));
|
|
233
|
+
};
|
|
234
|
+
const submitPassword = () => {
|
|
235
|
+
if (step.name !== 'password' || blocked) return;
|
|
236
|
+
if (!password) {
|
|
237
|
+
setError(t('signin.password.required'));
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
const name = step.identifier;
|
|
241
|
+
setError(null);
|
|
242
|
+
setPending(true);
|
|
243
|
+
oxyServices.auth.password.signIn({
|
|
244
|
+
identifier: name,
|
|
245
|
+
password
|
|
246
|
+
}).then(result => finish(result, name)).catch(fail).finally(() => setPending(false));
|
|
247
|
+
};
|
|
248
|
+
const submitSecondFactor = typed => {
|
|
249
|
+
if (step.name !== 'second-factor' || blocked) return;
|
|
250
|
+
const value = typed.trim();
|
|
251
|
+
if (!value) {
|
|
252
|
+
setError(t('signin.errors.secondFactorInvalid'));
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const challenge = step;
|
|
256
|
+
setError(null);
|
|
257
|
+
setPending(true);
|
|
258
|
+
oxyServices.auth.completeSecondFactor({
|
|
259
|
+
challengeId: challenge.challengeId,
|
|
260
|
+
code: value
|
|
261
|
+
}).then(session => finish(session, challenge.identifier)).catch(reason => {
|
|
262
|
+
setSecondFactorCode('');
|
|
263
|
+
fail(reason);
|
|
264
|
+
}).finally(() => setPending(false));
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
// The poll below finishes through the latest `finish` without restarting
|
|
268
|
+
// when a parent re-renders with a new `onSignedIn`.
|
|
269
|
+
const finishRef = useRef(finish);
|
|
270
|
+
useEffect(() => {
|
|
271
|
+
finishRef.current = finish;
|
|
272
|
+
}, [finish]);
|
|
273
|
+
|
|
274
|
+
// While "Check your email" shows, ask whether the link was opened in this
|
|
275
|
+
// browser; stop when the step goes, and on a request that is gone. A session
|
|
276
|
+
// the server handed over is always committed, even if the step went away
|
|
277
|
+
// meanwhile: the request is spent, so it would otherwise be lost.
|
|
278
|
+
const emailRequest = step.name === 'check-email' ? step : null;
|
|
279
|
+
const requestId = emailRequest?.requestId ?? null;
|
|
280
|
+
const requestSecret = emailRequest?.requestSecret ?? null;
|
|
281
|
+
const requestIdentifier = emailRequest?.identifier ?? '';
|
|
282
|
+
useEffect(() => {
|
|
283
|
+
if (!requestId || !requestSecret) return;
|
|
284
|
+
let stopped = false;
|
|
285
|
+
let timer;
|
|
286
|
+
const poll = async () => {
|
|
287
|
+
if (stopped) return;
|
|
288
|
+
try {
|
|
289
|
+
const result = await oxyServices.auth.email.collect({
|
|
290
|
+
requestId,
|
|
291
|
+
requestSecret
|
|
149
292
|
});
|
|
293
|
+
if (!('status' in result)) {
|
|
294
|
+
await finishRef.current(result, requestIdentifier);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
if (stopped) return;
|
|
298
|
+
} catch (reason) {
|
|
299
|
+
if (stopped) return;
|
|
300
|
+
// A spent, expired or unknown request never approves: stop asking.
|
|
301
|
+
if (errorCode(reason) === SIGN_IN_ERROR_CODES.requestInvalid) return;
|
|
150
302
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
303
|
+
if (!stopped) timer = setTimeout(() => void poll(), EMAIL_SIGNIN_POLL_MS);
|
|
304
|
+
};
|
|
305
|
+
timer = setTimeout(() => void poll(), EMAIL_SIGNIN_POLL_MS);
|
|
306
|
+
return () => {
|
|
307
|
+
stopped = true;
|
|
308
|
+
if (timer) clearTimeout(timer);
|
|
309
|
+
};
|
|
310
|
+
}, [requestId, requestSecret, requestIdentifier, oxyServices]);
|
|
311
|
+
const backToIdentifier = () => {
|
|
312
|
+
setError(null);
|
|
313
|
+
setNotice(null);
|
|
314
|
+
setCode('');
|
|
315
|
+
setPassword('');
|
|
316
|
+
setStep({
|
|
317
|
+
name: 'start'
|
|
318
|
+
});
|
|
154
319
|
};
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
|
|
320
|
+
const toPassword = name => {
|
|
321
|
+
setError(null);
|
|
322
|
+
setNotice(null);
|
|
323
|
+
setPassword('');
|
|
324
|
+
setStep({
|
|
325
|
+
name: 'password',
|
|
326
|
+
identifier: name
|
|
327
|
+
});
|
|
158
328
|
};
|
|
159
329
|
|
|
160
330
|
// A returning device starts at WHO. Not while adding an account from inside
|
|
161
331
|
// a signed-in app: the rows are the accounts it would add.
|
|
162
332
|
const pickerAllowed = host === 'dialog' ? !snapshot.hasSession : activeContext !== null;
|
|
163
|
-
const reauthenticate = context => {
|
|
164
|
-
setIdentifier(context.handle ?? '');
|
|
165
|
-
setShowForm(true);
|
|
166
|
-
};
|
|
167
333
|
const selectContext = async context => {
|
|
168
334
|
const outcome = await controller?.chooseContext(context.contextId).catch(() => 'failed');
|
|
169
335
|
switch (outcome) {
|
|
@@ -181,14 +347,19 @@ export const OxySignInPanel = ({
|
|
|
181
347
|
return;
|
|
182
348
|
case 'failed':
|
|
183
349
|
// The pair could not be activated as it stands: sign in as it explicitly.
|
|
184
|
-
if (
|
|
350
|
+
if (context.handle) {
|
|
351
|
+
setIdentifier(context.handle);
|
|
352
|
+
setShowForm(true);
|
|
353
|
+
} else {
|
|
354
|
+
toast.error(t('accountSwitcher.toasts.activateFailed'));
|
|
355
|
+
}
|
|
185
356
|
return;
|
|
186
357
|
default:
|
|
187
358
|
return;
|
|
188
359
|
}
|
|
189
360
|
};
|
|
190
361
|
const showsPicker = pickerAllowed && !showForm && principals.length > 0;
|
|
191
|
-
// The web
|
|
362
|
+
// The web screen is the split card from `md`. In the account dialog it grows
|
|
192
363
|
// the dialog to that card; below `md` the dialog is a bottom sheet, which a
|
|
193
364
|
// width does not touch.
|
|
194
365
|
const splits = methods.commons === 'qr';
|
|
@@ -210,148 +381,275 @@ export const OxySignInPanel = ({
|
|
|
210
381
|
const shownError = rateLimitSeconds > 0 ? t('signin.errors.rateLimited', {
|
|
211
382
|
seconds: rateLimitSeconds
|
|
212
383
|
}) : error;
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
286
|
-
|
|
384
|
+
const clearError = () => {
|
|
385
|
+
if (error) setError(null);
|
|
386
|
+
};
|
|
387
|
+
let form;
|
|
388
|
+
switch (step.name) {
|
|
389
|
+
case 'check-email':
|
|
390
|
+
{
|
|
391
|
+
const request = step;
|
|
392
|
+
form = /*#__PURE__*/_jsxs(OxyAuthScreen, {
|
|
393
|
+
className: splits ? 'md:max-w-none' : undefined,
|
|
394
|
+
children: [/*#__PURE__*/_jsx(OxyAuthScreenHeader, {
|
|
395
|
+
title: t('signin.checkEmail.title'),
|
|
396
|
+
description: t('signin.checkEmail.description', {
|
|
397
|
+
identifier: request.identifier
|
|
398
|
+
})
|
|
399
|
+
}), /*#__PURE__*/_jsx(AccountFlowField, {
|
|
400
|
+
label: t('signin.checkEmail.codeLabel'),
|
|
401
|
+
value: code,
|
|
402
|
+
onChange: value => {
|
|
403
|
+
const typed = formatSignInCodeInput(value);
|
|
404
|
+
setCode(typed);
|
|
405
|
+
clearError();
|
|
406
|
+
if (isCompleteSignInCode(typed)) submitCode(typed);
|
|
407
|
+
},
|
|
408
|
+
onSubmit: () => submitCode(code),
|
|
409
|
+
error: shownError,
|
|
410
|
+
disabled: blocked,
|
|
411
|
+
placeholder: "000000",
|
|
412
|
+
autoComplete: "one-time-code",
|
|
413
|
+
maxLength: EMAIL_SIGNIN_LONG_CODE_LENGTH + 1,
|
|
414
|
+
hint: t('signin.checkEmail.codeHint'),
|
|
415
|
+
testID: "signin-code"
|
|
416
|
+
}), notice ? /*#__PURE__*/_jsx(AccountFlowNote, {
|
|
417
|
+
testID: "signin-notice",
|
|
418
|
+
children: notice
|
|
419
|
+
}) : null, /*#__PURE__*/_jsx(AccountFlowAction, {
|
|
420
|
+
label: t('signin.actions.continue'),
|
|
421
|
+
onPress: () => submitCode(code),
|
|
422
|
+
pending: pending,
|
|
423
|
+
disabled: rateLimitSeconds > 0,
|
|
424
|
+
testID: "signin-code-continue"
|
|
425
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
426
|
+
style: styles.links,
|
|
427
|
+
children: [/*#__PURE__*/_jsx(SubtleLink, {
|
|
428
|
+
label: resendSeconds > 0 ? t('signin.checkEmail.resendIn', {
|
|
429
|
+
seconds: resendSeconds
|
|
430
|
+
}) : t('signin.checkEmail.resend'),
|
|
431
|
+
theme: theme,
|
|
432
|
+
onPress: () => startEmail(request.identifier),
|
|
433
|
+
disabled: blocked || resendSeconds > 0,
|
|
434
|
+
testID: "signin-resend"
|
|
435
|
+
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
436
|
+
label: t('signin.checkEmail.usePassword'),
|
|
437
|
+
theme: theme,
|
|
438
|
+
onPress: () => toPassword(request.identifier),
|
|
439
|
+
disabled: pending,
|
|
440
|
+
testID: "signin-use-password"
|
|
441
|
+
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
442
|
+
label: t('signin.checkEmail.differentAccount'),
|
|
443
|
+
theme: theme,
|
|
444
|
+
onPress: backToIdentifier,
|
|
445
|
+
disabled: pending,
|
|
446
|
+
testID: "signin-different-account"
|
|
447
|
+
})]
|
|
448
|
+
})]
|
|
449
|
+
});
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
case 'password':
|
|
453
|
+
{
|
|
454
|
+
const request = step;
|
|
455
|
+
form = /*#__PURE__*/_jsxs(OxyAuthScreen, {
|
|
456
|
+
className: splits ? 'md:max-w-none' : undefined,
|
|
457
|
+
children: [/*#__PURE__*/_jsx(OxyAuthScreenHeader, {
|
|
458
|
+
title: t('signin.password.title'),
|
|
459
|
+
description: request.identifier
|
|
460
|
+
}), /*#__PURE__*/_jsx(AccountFlowField, {
|
|
461
|
+
label: t('signin.password.label'),
|
|
462
|
+
value: password,
|
|
463
|
+
onChange: value => {
|
|
464
|
+
setPassword(value);
|
|
465
|
+
clearError();
|
|
466
|
+
},
|
|
467
|
+
onSubmit: submitPassword,
|
|
468
|
+
error: shownError,
|
|
469
|
+
disabled: blocked,
|
|
470
|
+
autoComplete: "current-password",
|
|
471
|
+
secureTextEntry: true,
|
|
472
|
+
testID: "signin-password"
|
|
473
|
+
}), /*#__PURE__*/_jsx(AccountFlowAction, {
|
|
474
|
+
label: t('signin.actions.continue'),
|
|
475
|
+
onPress: submitPassword,
|
|
476
|
+
pending: pending,
|
|
477
|
+
disabled: rateLimitSeconds > 0,
|
|
478
|
+
testID: "signin-password-continue"
|
|
479
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
480
|
+
style: styles.links,
|
|
481
|
+
children: [/*#__PURE__*/_jsx(SubtleLink, {
|
|
482
|
+
label: t('signin.password.forgot'),
|
|
483
|
+
theme: theme,
|
|
484
|
+
onPress: () => startEmail(request.identifier),
|
|
485
|
+
disabled: blocked,
|
|
486
|
+
testID: "signin-password-forgot"
|
|
487
|
+
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
488
|
+
label: t('signin.checkEmail.differentAccount'),
|
|
489
|
+
theme: theme,
|
|
490
|
+
onPress: backToIdentifier,
|
|
491
|
+
disabled: pending,
|
|
492
|
+
testID: "signin-different-account"
|
|
493
|
+
})]
|
|
494
|
+
})]
|
|
495
|
+
});
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
case 'second-factor':
|
|
499
|
+
form = /*#__PURE__*/_jsxs(OxyAuthScreen, {
|
|
500
|
+
className: splits ? 'md:max-w-none' : undefined,
|
|
501
|
+
children: [/*#__PURE__*/_jsx(OxyAuthScreenHeader, {
|
|
502
|
+
title: t('signin.secondFactor.title'),
|
|
503
|
+
description: useBackupCode ? t('signin.secondFactor.backupDescription') : t('signin.secondFactor.description')
|
|
504
|
+
}), /*#__PURE__*/_jsx(AccountFlowField, {
|
|
505
|
+
label: useBackupCode ? t('signin.secondFactor.backupLabel') : t('signin.secondFactor.label'),
|
|
506
|
+
value: secondFactorCode,
|
|
507
|
+
onChange: value => {
|
|
508
|
+
if (useBackupCode) {
|
|
509
|
+
setSecondFactorCode(value);
|
|
510
|
+
clearError();
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
const digits = value.replace(/\D/g, '').slice(0, TOTP_DIGITS);
|
|
514
|
+
setSecondFactorCode(digits);
|
|
515
|
+
clearError();
|
|
516
|
+
if (digits.length === TOTP_DIGITS) submitSecondFactor(digits);
|
|
517
|
+
},
|
|
518
|
+
onSubmit: () => submitSecondFactor(secondFactorCode),
|
|
519
|
+
error: shownError,
|
|
287
520
|
disabled: blocked,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
521
|
+
placeholder: useBackupCode ? 'xxxxx-xxxxx' : '000000',
|
|
522
|
+
autoComplete: "one-time-code",
|
|
523
|
+
keyboardType: useBackupCode ? 'default' : 'number-pad',
|
|
524
|
+
maxLength: useBackupCode ? 11 : TOTP_DIGITS,
|
|
525
|
+
testID: "signin-second-factor"
|
|
526
|
+
}, useBackupCode ? 'backup' : 'totp'), /*#__PURE__*/_jsx(AccountFlowAction, {
|
|
527
|
+
label: t('signin.actions.continue'),
|
|
528
|
+
onPress: () => submitSecondFactor(secondFactorCode),
|
|
529
|
+
pending: pending,
|
|
530
|
+
disabled: rateLimitSeconds > 0,
|
|
531
|
+
testID: "signin-second-factor-continue"
|
|
532
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
533
|
+
style: styles.links,
|
|
534
|
+
children: [/*#__PURE__*/_jsx(SubtleLink, {
|
|
535
|
+
label: useBackupCode ? t('signin.secondFactor.useAuthenticator') : t('signin.secondFactor.useBackup'),
|
|
536
|
+
theme: theme,
|
|
537
|
+
onPress: () => {
|
|
538
|
+
setUseBackupCode(!useBackupCode);
|
|
539
|
+
setSecondFactorCode('');
|
|
540
|
+
setError(null);
|
|
297
541
|
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
"
|
|
306
|
-
})
|
|
307
|
-
})
|
|
308
|
-
|
|
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
|
-
|
|
542
|
+
disabled: pending,
|
|
543
|
+
testID: "signin-toggle-backup"
|
|
544
|
+
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
545
|
+
label: t('signin.checkEmail.differentAccount'),
|
|
546
|
+
theme: theme,
|
|
547
|
+
onPress: backToIdentifier,
|
|
548
|
+
disabled: pending,
|
|
549
|
+
testID: "signin-different-account"
|
|
550
|
+
})]
|
|
551
|
+
})]
|
|
552
|
+
});
|
|
553
|
+
break;
|
|
554
|
+
default:
|
|
555
|
+
{
|
|
556
|
+
const adding = host === 'dialog' && snapshot.hasSession;
|
|
557
|
+
const title = adding ? t('signin.addAccountTitle') : t('signin.title');
|
|
558
|
+
const description = adding ? t('signin.addAccountSubtitle') : appName ? t('signin.subtitleToApp', {
|
|
559
|
+
app: appName
|
|
560
|
+
}) : t('signin.subtitle');
|
|
561
|
+
const continueWithOxyButton = /*#__PURE__*/_jsx(Button, {
|
|
562
|
+
appearance: "outline",
|
|
563
|
+
tone: "neutral",
|
|
564
|
+
size: "lg",
|
|
565
|
+
fullWidth: true,
|
|
566
|
+
onPress: continueWithOxy,
|
|
567
|
+
testID: "continue-with-oxy",
|
|
568
|
+
children: t('accountSwitcher.continueWithOxy')
|
|
569
|
+
});
|
|
570
|
+
const divider = /*#__PURE__*/_jsx(Divider, {
|
|
571
|
+
children: t('signin.orContinueWith')
|
|
572
|
+
});
|
|
573
|
+
form = /*#__PURE__*/_jsxs(OxyAuthScreen, {
|
|
574
|
+
className: splits ? 'md:max-w-none' : undefined,
|
|
575
|
+
children: [/*#__PURE__*/_jsx(OxyAuthScreenHeader, {
|
|
576
|
+
title: title,
|
|
577
|
+
description: description
|
|
578
|
+
}), splits ? /*#__PURE__*/_jsxs(CssView, {
|
|
579
|
+
className: "gap-6 md:hidden",
|
|
580
|
+
children: [continueWithOxyButton, divider]
|
|
581
|
+
}) : null, methods.commons === 'continue' ? /*#__PURE__*/_jsxs(View, {
|
|
582
|
+
style: styles.stack,
|
|
583
|
+
children: [continueWithOxyButton, divider]
|
|
584
|
+
}) : null, methods.commons === 'get-commons' ? /*#__PURE__*/_jsxs(View, {
|
|
585
|
+
style: styles.stack,
|
|
586
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
587
|
+
style: [styles.note, {
|
|
588
|
+
color: theme.colors.textSecondary
|
|
589
|
+
}],
|
|
590
|
+
children: t('accountSwitcher.commonsNotInstalled')
|
|
591
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
592
|
+
appearance: "outline",
|
|
593
|
+
tone: "neutral",
|
|
594
|
+
size: "lg",
|
|
595
|
+
fullWidth: true,
|
|
596
|
+
onPress: getCommons,
|
|
597
|
+
testID: "get-commons-button",
|
|
598
|
+
children: t('accountSwitcher.getCommons')
|
|
599
|
+
}), divider]
|
|
600
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
601
|
+
style: styles.stack,
|
|
602
|
+
children: [/*#__PURE__*/_jsx(AccountFlowField, {
|
|
603
|
+
label: t('signin.identifier.label'),
|
|
604
|
+
value: identifier,
|
|
605
|
+
onChange: value => {
|
|
606
|
+
setIdentifier(value);
|
|
607
|
+
clearError();
|
|
608
|
+
},
|
|
609
|
+
onSubmit: submitIdentifier,
|
|
610
|
+
error: shownError,
|
|
611
|
+
disabled: blocked,
|
|
612
|
+
placeholder: t('signin.identifier.placeholder'),
|
|
613
|
+
autoComplete: "username",
|
|
614
|
+
keyboardType: "email-address",
|
|
615
|
+
autoFocus: Platform.OS === 'web',
|
|
616
|
+
testID: "signin-identifier"
|
|
617
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
618
|
+
style: [styles.note, styles.noAccount, {
|
|
619
|
+
color: theme.colors.textSecondary
|
|
620
|
+
}],
|
|
621
|
+
children: [t('signin.noAccount'), ' ', /*#__PURE__*/_jsx(RNText, {
|
|
622
|
+
accessibilityRole: "link",
|
|
623
|
+
onPress: onCreateAccount,
|
|
624
|
+
style: [styles.noAccountLink, {
|
|
625
|
+
color: theme.colors.text
|
|
626
|
+
}],
|
|
627
|
+
testID: "create-account-link",
|
|
628
|
+
children: t('signin.createAccount')
|
|
629
|
+
})]
|
|
630
|
+
}), /*#__PURE__*/_jsx(AccountFlowAction, {
|
|
631
|
+
label: t('signin.actions.continue'),
|
|
632
|
+
onPress: submitIdentifier,
|
|
633
|
+
pending: pending,
|
|
634
|
+
disabled: rateLimitSeconds > 0,
|
|
635
|
+
testID: "signin-identifier-continue"
|
|
636
|
+
})]
|
|
637
|
+
}), /*#__PURE__*/_jsx(OxyAuthTerms, {})]
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
if (!splits) return /*#__PURE__*/_jsx(_Fragment, {
|
|
642
|
+
children: form
|
|
344
643
|
});
|
|
345
|
-
if (!splits) return form;
|
|
346
644
|
return /*#__PURE__*/_jsx(OxyAuthSplit, {
|
|
347
645
|
bare: host === 'dialog',
|
|
348
646
|
aside: /*#__PURE__*/_jsxs(_Fragment, {
|
|
349
647
|
children: [/*#__PURE__*/_jsx(AuthMediaCarousel, {
|
|
350
648
|
slides: SIGN_IN_SLIDES,
|
|
351
649
|
style: StyleSheet.absoluteFill
|
|
352
|
-
}), /*#__PURE__*/_jsx(InlineCommonsQr, {
|
|
650
|
+
}), step.name === 'start' ? /*#__PURE__*/_jsx(InlineCommonsQr, {
|
|
353
651
|
controller: controller
|
|
354
|
-
})]
|
|
652
|
+
}) : null]
|
|
355
653
|
}),
|
|
356
654
|
children: form
|
|
357
655
|
});
|
|
@@ -360,8 +658,8 @@ const styles = StyleSheet.create({
|
|
|
360
658
|
stack: {
|
|
361
659
|
gap: 12
|
|
362
660
|
},
|
|
363
|
-
|
|
364
|
-
gap:
|
|
661
|
+
links: {
|
|
662
|
+
gap: 4
|
|
365
663
|
},
|
|
366
664
|
note: {
|
|
367
665
|
fontSize: 14,
|
|
@@ -373,9 +671,6 @@ const styles = StyleSheet.create({
|
|
|
373
671
|
},
|
|
374
672
|
noAccountLink: {
|
|
375
673
|
textDecorationLine: 'underline'
|
|
376
|
-
},
|
|
377
|
-
input: {
|
|
378
|
-
height: 40
|
|
379
674
|
}
|
|
380
675
|
});
|
|
381
676
|
//# sourceMappingURL=OxySignInPanel.js.map
|