@oxy.so/services 4.0.7 → 6.1.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 +2 -2
- package/lib/commonjs/assets/assets/signIn/slide-1.jpg +0 -0
- package/lib/commonjs/assets/assets/signIn/slide-1.jpg.d.ts +3 -0
- package/lib/commonjs/assets/assets/signIn/slide-2.jpg +0 -0
- package/lib/commonjs/assets/assets/signIn/slide-2.jpg.d.ts +3 -0
- package/lib/commonjs/assets/assets/signIn/slide-3.jpg +0 -0
- package/lib/commonjs/assets/assets/signIn/slide-3.jpg.d.ts +3 -0
- package/lib/commonjs/assets/assets/signIn/slide-4.jpg +0 -0
- package/lib/commonjs/assets/assets/signIn/slide-4.jpg.d.ts +3 -0
- package/lib/commonjs/assets/signIn/slide-1.jpg +0 -0
- package/lib/commonjs/assets/signIn/slide-2.jpg +0 -0
- package/lib/commonjs/assets/signIn/slide-3.jpg +0 -0
- package/lib/commonjs/assets/signIn/slide-4.jpg +0 -0
- package/lib/commonjs/index.js +77 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +11 -58
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +36 -45
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +0 -2
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +30 -16
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js +7 -52
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/signInFailureMessage.js +1 -7
- package/lib/commonjs/ui/components/authChooser/signInFailureMessage.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/styles.js +0 -31
- package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js +2 -2
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/oauthNavigation.js +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +161 -0
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +111 -0
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js +160 -0
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js +236 -0
- package/lib/commonjs/ui/components/signIn/OxyCreateAccountPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js +114 -0
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +275 -0
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js +170 -0
- package/lib/commonjs/ui/components/signIn/OxyRecoverAccountPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +371 -0
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +78 -0
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js +244 -0
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/artwork.js +21 -0
- package/lib/commonjs/ui/components/signIn/artwork.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/passkeyError.js +46 -0
- package/lib/commonjs/ui/components/signIn/passkeyError.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/signInMethods.js +46 -0
- package/lib/commonjs/ui/components/signIn/signInMethods.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +16 -16
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/commitSessionFlow.js +0 -43
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/commonjs/ui/context/passkeyFlow.js +22 -0
- package/lib/commonjs/ui/context/passkeyFlow.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js +15 -1
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +1 -3
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserAuthTransport.js +11 -4
- package/lib/commonjs/ui/oauth/browserAuthTransport.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthHandshake.js +3 -0
- package/lib/commonjs/ui/oauth/oauthHandshake.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthPopup.js +2 -3
- package/lib/commonjs/ui/oauth/oauthPopup.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +0 -23
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +0 -8
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +3 -4
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js +0 -21
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js +2 -2
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/module/assets/assets/signIn/slide-1.jpg +0 -0
- package/lib/module/assets/assets/signIn/slide-1.jpg.d.ts +3 -0
- package/lib/module/assets/assets/signIn/slide-2.jpg +0 -0
- package/lib/module/assets/assets/signIn/slide-2.jpg.d.ts +3 -0
- package/lib/module/assets/assets/signIn/slide-3.jpg +0 -0
- package/lib/module/assets/assets/signIn/slide-3.jpg.d.ts +3 -0
- package/lib/module/assets/assets/signIn/slide-4.jpg +0 -0
- package/lib/module/assets/assets/signIn/slide-4.jpg.d.ts +3 -0
- package/lib/module/assets/signIn/slide-1.jpg +0 -0
- package/lib/module/assets/signIn/slide-2.jpg +0 -0
- package/lib/module/assets/signIn/slide-3.jpg +0 -0
- package/lib/module/assets/signIn/slide-4.jpg +0 -0
- package/lib/module/index.js +14 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +14 -59
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +37 -46
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +0 -2
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +22 -10
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/primitives.js +1 -44
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/authChooser/signInFailureMessage.js +1 -7
- package/lib/module/ui/components/authChooser/signInFailureMessage.js.map +1 -1
- package/lib/module/ui/components/authChooser/styles.js +0 -31
- package/lib/module/ui/components/authChooser/styles.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js +2 -2
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/oauthNavigation.js +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js +157 -0
- package/lib/module/ui/components/signIn/InlineCommonsQr.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +106 -0
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyAuthScreen.js +151 -0
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js +231 -0
- package/lib/module/ui/components/signIn/OxyCreateAccountPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js +109 -0
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +270 -0
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js +165 -0
- package/lib/module/ui/components/signIn/OxyRecoverAccountPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxySignInPanel.js +366 -0
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +75 -0
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -0
- package/lib/module/ui/components/signIn/accountFlowParts.js +235 -0
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -0
- package/lib/module/ui/components/signIn/artwork.js +16 -0
- package/lib/module/ui/components/signIn/artwork.js.map +1 -0
- package/lib/module/ui/components/signIn/passkeyError.js +40 -0
- package/lib/module/ui/components/signIn/passkeyError.js.map +1 -0
- package/lib/module/ui/components/signIn/signInMethods.js +42 -0
- package/lib/module/ui/components/signIn/signInMethods.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +17 -17
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/commitSessionFlow.js +0 -42
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/module/ui/context/passkeyFlow.js +21 -0
- package/lib/module/ui/context/passkeyFlow.js.map +1 -1
- package/lib/module/ui/hooks/accountDialogSnapshot.js +14 -1
- package/lib/module/ui/hooks/accountDialogSnapshot.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js +3 -5
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/oauth/browserAuthTransport.js +11 -4
- package/lib/module/ui/oauth/browserAuthTransport.js.map +1 -1
- package/lib/module/ui/oauth/oauthHandshake.js +3 -0
- package/lib/module/ui/oauth/oauthHandshake.js.map +1 -1
- package/lib/module/ui/oauth/oauthPopup.js +2 -3
- package/lib/module/ui/oauth/oauthPopup.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -24
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +0 -8
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +4 -5
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/session/authStore.js +1 -22
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/utils/accountDeletionHandoff.js +3 -3
- package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/typescript/assets/signIn/slide-1.jpg.d.ts +3 -0
- package/lib/typescript/assets/signIn/slide-2.jpg.d.ts +3 -0
- package/lib/typescript/assets/signIn/slide-3.jpg.d.ts +3 -0
- package/lib/typescript/assets/signIn/slide-4.jpg.d.ts +3 -0
- package/lib/typescript/commonjs/index.d.ts +16 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +5 -12
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts +1 -5
- package/lib/typescript/commonjs/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts +0 -31
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +2 -7
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/oauthNavigation.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts +43 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts +24 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts +21 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts +43 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts +17 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts +60 -0
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/artwork.d.ts +8 -0
- package/lib/typescript/commonjs/ui/components/signIn/artwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/signIn/passkeyError.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts +39 -0
- package/lib/typescript/commonjs/ui/components/signIn/signInMethods.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts +0 -40
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +15 -10
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +16 -1
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +7 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts +9 -0
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts +3 -0
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts +2 -3
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +0 -30
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +0 -26
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +16 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +5 -12
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +0 -19
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts +1 -5
- package/lib/typescript/module/ui/components/authChooser/signInFailureMessage.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts +0 -31
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +2 -7
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/oauthNavigation.d.ts +1 -1
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts +20 -0
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +34 -0
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts +43 -0
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts +24 -0
- package/lib/typescript/module/ui/components/signIn/OxyCreateAccountPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts +16 -0
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts +21 -0
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts +20 -0
- package/lib/typescript/module/ui/components/signIn/OxyRecoverAccountPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts +43 -0
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts +17 -0
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts +60 -0
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/artwork.d.ts +8 -0
- package/lib/typescript/module/ui/components/signIn/artwork.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts +16 -0
- package/lib/typescript/module/ui/components/signIn/passkeyError.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts +39 -0
- package/lib/typescript/module/ui/components/signIn/signInMethods.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts +0 -40
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +15 -10
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts +16 -1
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +7 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts +9 -0
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts +3 -0
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts +2 -3
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts +0 -30
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +0 -26
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/package.json +4 -7
- package/src/assets/signIn/slide-1.jpg +0 -0
- package/src/assets/signIn/slide-1.jpg.d.ts +3 -0
- package/src/assets/signIn/slide-2.jpg +0 -0
- package/src/assets/signIn/slide-2.jpg.d.ts +3 -0
- package/src/assets/signIn/slide-3.jpg +0 -0
- package/src/assets/signIn/slide-3.jpg.d.ts +3 -0
- package/src/assets/signIn/slide-4.jpg +0 -0
- package/src/assets/signIn/slide-4.jpg.d.ts +3 -0
- package/src/index.ts +27 -7
- package/src/ui/components/OxyAccountDialogScreen.tsx +11 -72
- package/src/ui/components/OxyAuthChooser.tsx +37 -54
- package/src/ui/components/OxyProvider.tsx +0 -2
- package/src/ui/components/ProfileButton.tsx +1 -4
- package/src/ui/components/authChooser/AccountsMenuView.tsx +28 -8
- package/src/ui/components/authChooser/primitives.tsx +1 -39
- package/src/ui/components/authChooser/signInFailureMessage.ts +1 -7
- package/src/ui/components/authChooser/styles.ts +0 -31
- package/src/ui/components/authChooser/types.ts +2 -7
- package/src/ui/components/oauthNavigation.ts +1 -1
- package/src/ui/components/signIn/InlineCommonsQr.tsx +135 -0
- package/src/ui/components/signIn/OxyAccountPicker.tsx +129 -0
- package/src/ui/components/signIn/OxyAuthScreen.tsx +123 -0
- package/src/ui/components/signIn/OxyCreateAccountPanel.tsx +207 -0
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +106 -0
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +222 -0
- package/src/ui/components/signIn/OxyRecoverAccountPanel.tsx +154 -0
- package/src/ui/components/signIn/OxySignInPanel.tsx +392 -0
- package/src/ui/components/signIn/OxySignUpPanel.tsx +86 -0
- package/src/ui/components/signIn/accountFlowParts.tsx +204 -0
- package/src/ui/components/signIn/artwork.ts +13 -0
- package/src/ui/components/signIn/passkeyError.ts +44 -0
- package/src/ui/components/signIn/signInMethods.ts +51 -0
- package/src/ui/context/OxyContext.tsx +23 -19
- package/src/ui/context/__tests__/commitSessionFlow.test.ts +0 -89
- package/src/ui/context/__tests__/passkeyFlow.test.ts +59 -1
- package/src/ui/context/commitSessionFlow.ts +0 -61
- package/src/ui/context/oxyContextTypes.ts +16 -10
- package/src/ui/context/passkeyFlow.ts +28 -0
- package/src/ui/hooks/accountDialogSnapshot.ts +20 -1
- package/src/ui/hooks/useDeviceSwitcher.ts +3 -11
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +21 -0
- package/src/ui/oauth/browserAuthTransport.ts +14 -4
- package/src/ui/oauth/oauthHandshake.ts +4 -1
- package/src/ui/oauth/oauthPopup.ts +2 -3
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -27
- package/src/ui/screens/EditProfileScreen.tsx +0 -6
- package/src/ui/screens/ManageAccountScreen.tsx +4 -5
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +1 -1
- package/src/ui/session/authStore.ts +0 -37
- package/src/ui/types/navigation.ts +0 -26
- package/src/ui/utils/accountDeletionHandoff.ts +3 -3
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js +0 -132
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js.map +0 -1
- package/lib/commonjs/ui/components/authChooser/SignUpView.js +0 -77
- package/lib/commonjs/ui/components/authChooser/SignUpView.js.map +0 -1
- package/lib/commonjs/ui/components/passkeyHubPopup.js +0 -33
- package/lib/commonjs/ui/components/passkeyHubPopup.js.map +0 -1
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js +0 -48
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js.map +0 -1
- package/lib/module/ui/components/authChooser/SignInEntryView.js +0 -127
- package/lib/module/ui/components/authChooser/SignInEntryView.js.map +0 -1
- package/lib/module/ui/components/authChooser/SignUpView.js +0 -73
- package/lib/module/ui/components/authChooser/SignUpView.js.map +0 -1
- package/lib/module/ui/components/passkeyHubPopup.js +0 -29
- package/lib/module/ui/components/passkeyHubPopup.js.map +0 -1
- package/lib/module/ui/oauth/legacyRedirectLanes.js +0 -44
- package/lib/module/ui/oauth/legacyRedirectLanes.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts +0 -39
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignUpView.d.ts +0 -31
- package/lib/typescript/commonjs/ui/components/authChooser/SignUpView.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/passkeyHubPopup.d.ts +0 -23
- package/lib/typescript/commonjs/ui/components/passkeyHubPopup.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts +0 -40
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts +0 -39
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/authChooser/SignUpView.d.ts +0 -31
- package/lib/typescript/module/ui/components/authChooser/SignUpView.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/passkeyHubPopup.d.ts +0 -23
- package/lib/typescript/module/ui/components/passkeyHubPopup.d.ts.map +0 -1
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts +0 -40
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts.map +0 -1
- package/src/ui/components/authChooser/SignInEntryView.tsx +0 -157
- package/src/ui/components/authChooser/SignUpView.tsx +0 -76
- package/src/ui/components/passkeyHubPopup.ts +0 -28
- package/src/ui/oauth/legacyRedirectLanes.ts +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeQrcodeSvg","_interopRequireDefault","_button","_theme","_typography","_core","_OxyContext","_passkeyFlow","_useI18n","_passkeyClient","_OxyAuthScreen","_accountFlowParts","_jsxRuntime","e","__esModule","default","IDENTITY_LINK_POLL_MS","exports","QR_PLATE_BG","QR_FOREGROUND","QR_SIZE","OxyLinkCommonsPanel","onLinked","theme","useTheme","t","useI18n","user","oxyServices","useOxy","step","setStep","useState","name","pending","setPending","error","setError","alreadyLinked","Boolean","publicKey","open","useCallback","createIdentityLink","then","link","catch","reason","describeAccountFlowError","opened","useRef","useEffect","current","stopped","poll","Date","now","expiresAt","state","getIdentityLink","linkId","status","code","deriveIdentityLinkCode","timer","setTimeout","clearTimeout","confirm","confirmed","isPasskeySupported","Error","PASSKEY_UNSUPPORTED_MESSAGE","options","getIdentityLinkAssertionOptions","challenge","assertion","runAuthenticationCeremony","completeIdentityLink","finally","cancel","cancelled","cancelIdentityLink","undefined","jsx","OxyAuthScreen","children","OxyAuthScreenHeader","title","description","jsxs","AccountFlowErrorLine","message","AccountFlowAction","label","onPress","testID","Text","accessibilityLabel","split","join","style","styles","color","colors","text","slice","Button","appearance","tone","size","fullWidth","disabled","View","plateRow","plate","borderColor","border","value","qrPayload","backgroundColor","AccountFlowNote","ActivityIndicator","primary","StyleSheet","create","alignItems","padding","borderRadius","borderWidth","hairlineWidth","fontSize","lineHeight","fontWeight","letterSpacing","textAlign"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyLinkCommonsPanel.tsx"],"mappings":";;;;;;AAcA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAA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a;QAAAC,QAAA,gBACZ,IAAAzE,WAAA,CAAAuE,GAAA,EAACzE,cAAA,CAAA4E,mBAAmB;UAACC,KAAK,EAAE9D,CAAC,CAAC,mBAAmB,CAAE;UAAC+D,WAAW,EAAE/D,CAAC,CAAC,sBAAsB;QAAE,CAAE,CAAC,eAC9F,IAAAb,WAAA,CAAAuE,GAAA,EAACpF,YAAA,CAAAiH,IAAI;UAACZ,KAAK,EAAEC,MAAM,CAACY,QAAS;UAAA5B,QAAA,eAC3B,IAAAzE,WAAA,CAAAuE,GAAA,EAACpF,YAAA,CAAA0H,iBAAiB;YAACZ,IAAI,EAAC,OAAO;YAACP,KAAK,EAAE/E,KAAK,CAACgF,MAAM,CAACmB;UAAQ,CAAE;QAAC,CAC3D,CAAC;MAAA,CACM,CAAC;EAEtB;AACF,CAAC;AAACzG,OAAA,CAAAI,mBAAA,GAAAA,mBAAA;AAEF,MAAMgF,MAAM,GAAGsB,uBAAU,CAACC,MAAM,CAAC;EAC/BX,QAAQ,EAAE;IACRY,UAAU,EAAE;EACd,CAAC;EACDX,KAAK,EAAE;IACLY,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEL,uBAAU,CAACM,aAAa;IACrCV,eAAe,EAAErG;EACnB,CAAC;EACD4C,IAAI,EAAE;IACJoE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,CAAC;IAChBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OxyRecoverAccountPanel = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _theme = require("@oxy.so/bloom/theme");
|
|
9
|
+
var _core = require("@oxy.so/core");
|
|
10
|
+
var _OxyContext = require("../../context/OxyContext.js");
|
|
11
|
+
var _passkeyFlow = require("../../context/passkeyFlow.js");
|
|
12
|
+
var _useI18n = require("../../hooks/useI18n.js");
|
|
13
|
+
var _passkeyClient = require("../../../webauthn/passkeyClient");
|
|
14
|
+
var _primitives = require("../authChooser/primitives.js");
|
|
15
|
+
var _OxyAuthScreen = require("./OxyAuthScreen.js");
|
|
16
|
+
var _accountFlowParts = require("./accountFlowParts.js");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Recovering a passkey account (ADR 0029 D3), auth.oxy.so's `/recover`:
|
|
20
|
+
*
|
|
21
|
+
* username or email → the code sent to the recovery email → new passkey → signed in
|
|
22
|
+
*
|
|
23
|
+
* The first step answers the same whether or not the account exists, so it
|
|
24
|
+
* never says who has one. An account that uses Commons has no recovery email:
|
|
25
|
+
* it recovers in Commons with its phrase, and the first step says so. The new
|
|
26
|
+
* passkey joins the ones the account has; lost ones are removed afterwards in
|
|
27
|
+
* the account's security settings.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const OxyRecoverAccountPanel = ({
|
|
31
|
+
onRecovered,
|
|
32
|
+
onSignIn
|
|
33
|
+
}) => {
|
|
34
|
+
const theme = (0, _theme.useTheme)();
|
|
35
|
+
const {
|
|
36
|
+
t
|
|
37
|
+
} = (0, _useI18n.useI18n)();
|
|
38
|
+
const {
|
|
39
|
+
oxyServices,
|
|
40
|
+
handleWebSession
|
|
41
|
+
} = (0, _OxyContext.useOxy)();
|
|
42
|
+
const [step, setStep] = (0, _react.useState)({
|
|
43
|
+
name: 'entry'
|
|
44
|
+
});
|
|
45
|
+
const [identifier, setIdentifier] = (0, _react.useState)('');
|
|
46
|
+
const [pending, setPending] = (0, _react.useState)(false);
|
|
47
|
+
const [error, setError] = (0, _react.useState)(null);
|
|
48
|
+
const run = work => {
|
|
49
|
+
if (pending) return;
|
|
50
|
+
setError(null);
|
|
51
|
+
setPending(true);
|
|
52
|
+
work().catch(reason => {
|
|
53
|
+
if ((0, _accountFlowParts.isTicketExpired)(reason)) setStep({
|
|
54
|
+
name: 'entry'
|
|
55
|
+
});
|
|
56
|
+
setError((0, _accountFlowParts.describeAccountFlowError)(reason, t));
|
|
57
|
+
}).finally(() => setPending(false));
|
|
58
|
+
};
|
|
59
|
+
const sendCode = async () => {
|
|
60
|
+
const {
|
|
61
|
+
verificationId
|
|
62
|
+
} = await oxyServices.startEmailVerification({
|
|
63
|
+
purpose: 'recovery',
|
|
64
|
+
identifier: identifier.trim()
|
|
65
|
+
});
|
|
66
|
+
setStep({
|
|
67
|
+
name: 'code',
|
|
68
|
+
verificationId
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
const submitIdentifier = () => {
|
|
72
|
+
if (!identifier.trim()) {
|
|
73
|
+
setError(t('recover.identifier.required'));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
run(sendCode);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// The ceremony opens the browser's passkey prompt, so it starts from the press.
|
|
80
|
+
const addPasskey = recoveryTicket => run(() => (0, _passkeyFlow.runPasskeyRegisterSignIn)({
|
|
81
|
+
isSupported: _passkeyClient.isPasskeySupported,
|
|
82
|
+
getRegisterOptions: () => oxyServices.webauthnRegisterOptions({
|
|
83
|
+
recoveryTicket
|
|
84
|
+
}),
|
|
85
|
+
runCeremony: _passkeyClient.runRegistrationCeremony,
|
|
86
|
+
registerVerify: response => oxyServices.webauthnRegisterVerify(response, {
|
|
87
|
+
recoveryTicket,
|
|
88
|
+
deviceFingerprint: JSON.stringify(_core.DeviceManager.getDeviceFingerprint())
|
|
89
|
+
}),
|
|
90
|
+
commit: async session => {
|
|
91
|
+
await handleWebSession(session);
|
|
92
|
+
onRecovered();
|
|
93
|
+
}
|
|
94
|
+
}));
|
|
95
|
+
switch (step.name) {
|
|
96
|
+
case 'code':
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.EmailCodeStep, {
|
|
98
|
+
description: t('emailCode.sentIfAccount'),
|
|
99
|
+
verificationId: step.verificationId,
|
|
100
|
+
onConfirmed: ({
|
|
101
|
+
ticket,
|
|
102
|
+
username
|
|
103
|
+
}) => {
|
|
104
|
+
setError(null);
|
|
105
|
+
setStep({
|
|
106
|
+
name: 'passkey',
|
|
107
|
+
recoveryTicket: ticket,
|
|
108
|
+
username
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
onResend: sendCode,
|
|
112
|
+
back: {
|
|
113
|
+
label: t('signin.actions.back'),
|
|
114
|
+
onPress: () => setStep({
|
|
115
|
+
name: 'entry'
|
|
116
|
+
})
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
case 'passkey':
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
|
|
121
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
|
|
122
|
+
title: t('recover.passkey.title'),
|
|
123
|
+
description: t('recover.passkey.subtitle', {
|
|
124
|
+
username: step.username ?? ''
|
|
125
|
+
})
|
|
126
|
+
}), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowErrorLine, {
|
|
127
|
+
message: error
|
|
128
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
|
|
129
|
+
label: t('recover.passkey.action'),
|
|
130
|
+
onPress: () => addPasskey(step.recoveryTicket),
|
|
131
|
+
pending: pending,
|
|
132
|
+
testID: "recover-create-passkey"
|
|
133
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthTerms, {})]
|
|
134
|
+
});
|
|
135
|
+
default:
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
|
|
137
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
|
|
138
|
+
title: t('recover.title'),
|
|
139
|
+
description: t('recover.subtitle')
|
|
140
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowField, {
|
|
141
|
+
label: t('recover.identifier.label'),
|
|
142
|
+
value: identifier,
|
|
143
|
+
onChange: value => {
|
|
144
|
+
setIdentifier(value);
|
|
145
|
+
if (error) setError(null);
|
|
146
|
+
},
|
|
147
|
+
onSubmit: submitIdentifier,
|
|
148
|
+
error: error,
|
|
149
|
+
disabled: pending,
|
|
150
|
+
placeholder: t('recover.identifier.placeholder'),
|
|
151
|
+
autoComplete: "username",
|
|
152
|
+
testID: "recover-identifier"
|
|
153
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowNote, {
|
|
154
|
+
children: t('recover.commonsNote')
|
|
155
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accountFlowParts.AccountFlowAction, {
|
|
156
|
+
label: t('signin.actions.continue'),
|
|
157
|
+
onPress: submitIdentifier,
|
|
158
|
+
pending: pending,
|
|
159
|
+
testID: "recover-continue"
|
|
160
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
|
|
161
|
+
label: t('recover.backToSignIn'),
|
|
162
|
+
theme: theme,
|
|
163
|
+
onPress: onSignIn,
|
|
164
|
+
testID: "back-to-sign-in"
|
|
165
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthTerms, {})]
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
exports.OxyRecoverAccountPanel = OxyRecoverAccountPanel;
|
|
170
|
+
//# sourceMappingURL=OxyRecoverAccountPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_theme","_core","_OxyContext","_passkeyFlow","_useI18n","_passkeyClient","_primitives","_OxyAuthScreen","_accountFlowParts","_jsxRuntime","OxyRecoverAccountPanel","onRecovered","onSignIn","theme","useTheme","t","useI18n","oxyServices","handleWebSession","useOxy","step","setStep","useState","name","identifier","setIdentifier","pending","setPending","error","setError","run","work","catch","reason","isTicketExpired","describeAccountFlowError","finally","sendCode","verificationId","startEmailVerification","purpose","trim","submitIdentifier","addPasskey","recoveryTicket","runPasskeyRegisterSignIn","isSupported","isPasskeySupported","getRegisterOptions","webauthnRegisterOptions","runCeremony","runRegistrationCeremony","registerVerify","response","webauthnRegisterVerify","deviceFingerprint","JSON","stringify","DeviceManager","getDeviceFingerprint","commit","session","jsx","EmailCodeStep","description","onConfirmed","ticket","username","onResend","back","label","onPress","jsxs","OxyAuthScreen","children","OxyAuthScreenHeader","title","AccountFlowErrorLine","message","AccountFlowAction","testID","OxyAuthTerms","AccountFlowField","value","onChange","onSubmit","disabled","placeholder","autoComplete","AccountFlowNote","SubtleLink","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxyRecoverAccountPanel.tsx"],"mappings":";;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AAQ4B,IAAAU,WAAA,GAAAV,OAAA;AA9B5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkCO,MAAMW,sBAA6D,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAAS,CAAC,KAAK;EAC1G,MAAMC,KAAK,GAAG,IAAAC,eAAQ,EAAC,CAAC;EACxB,MAAM;IAAEC;EAAE,CAAC,GAAG,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Property(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OxySignInPanel = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _components = require("react-native-css/components");
|
|
10
|
+
var _authCard = require("@oxy.so/bloom/auth-card");
|
|
11
|
+
var _button = require("@oxy.so/bloom/button");
|
|
12
|
+
var _divider = require("@oxy.so/bloom/divider");
|
|
13
|
+
var _RiKey2Line = require("@oxy.so/bloom/icons/RiKey2Line");
|
|
14
|
+
var _RiQrCodeLine = require("@oxy.so/bloom/icons/RiQrCodeLine");
|
|
15
|
+
var _theme = require("@oxy.so/bloom/theme");
|
|
16
|
+
var _textField = require("@oxy.so/bloom/text-field");
|
|
17
|
+
var _toast = require("@oxy.so/bloom/toast");
|
|
18
|
+
var _typography = require("@oxy.so/bloom/typography");
|
|
19
|
+
var _reactQuery = require("@tanstack/react-query");
|
|
20
|
+
var _OxyContext = require("../../context/OxyContext.js");
|
|
21
|
+
var _accountDialogSnapshot = require("../../hooks/accountDialogSnapshot.js");
|
|
22
|
+
var _useDeviceSwitcher = require("../../hooks/useDeviceSwitcher.js");
|
|
23
|
+
var _useI18n = require("../../hooks/useI18n.js");
|
|
24
|
+
var _commonsStoreLinks = require("../../utils/commonsStoreLinks.js");
|
|
25
|
+
var _isWebBrowser = require("../../utils/isWebBrowser.js");
|
|
26
|
+
var _primitives = require("../authChooser/primitives.js");
|
|
27
|
+
var _artwork = require("./artwork.js");
|
|
28
|
+
var _InlineCommonsQr = require("./InlineCommonsQr.js");
|
|
29
|
+
var _OxyAccountPicker = require("./OxyAccountPicker.js");
|
|
30
|
+
var _OxyAuthScreen = require("./OxyAuthScreen.js");
|
|
31
|
+
var _passkeyError = require("./passkeyError.js");
|
|
32
|
+
var _signInMethods = require("./signInMethods.js");
|
|
33
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
|
+
/**
|
|
35
|
+
* THE Oxy sign-in screen. The account dialog every Oxy app opens and the
|
|
36
|
+
* auth.oxy.so page render this one component; only where it is mounted
|
|
37
|
+
* differs (`host`).
|
|
38
|
+
*
|
|
39
|
+
* picker a returning device: "Choose an account", then "Use another account"
|
|
40
|
+
* entry the header, the Commons way in, and the way in for someone with no
|
|
41
|
+
* account. On auth.oxy.so (`page`) also the username with its
|
|
42
|
+
* Continue — a username-first passkey sign-in, which takes a
|
|
43
|
+
* platform passkey AND a hardware security key with no resident
|
|
44
|
+
* credential (a U2F key such as a Titan) — and "or continue with" the
|
|
45
|
+
* discoverable passkey. From `md` that page is Bloom `AuthCard`'s
|
|
46
|
+
* split card, with the embedded QR over its photo carousel in the
|
|
47
|
+
* right column; below `md` it is "Continue with Oxy" at the top.
|
|
48
|
+
* In an app's dialog on the web, "Continue with Oxy" opens that page
|
|
49
|
+
* in a window over the app, like "Sign in with Google": the browser's
|
|
50
|
+
* session lives on auth.oxy.so, so every Oxy app shares it. On
|
|
51
|
+
* native it is "Continue with Oxy" ("Get Commons" without Commons).
|
|
52
|
+
*
|
|
53
|
+
* `signInMethods.ts` owns which blocks a platform gets.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
const OxySignInPanel = ({
|
|
57
|
+
onSignedIn,
|
|
58
|
+
onCreateAccount,
|
|
59
|
+
onRecover,
|
|
60
|
+
loginHint,
|
|
61
|
+
appName = null,
|
|
62
|
+
host = 'page'
|
|
63
|
+
}) => {
|
|
64
|
+
const theme = (0, _theme.useTheme)();
|
|
65
|
+
const {
|
|
66
|
+
t
|
|
67
|
+
} = (0, _useI18n.useI18n)();
|
|
68
|
+
const queryClient = (0, _reactQuery.useQueryClient)();
|
|
69
|
+
const {
|
|
70
|
+
accountDialogController: controller,
|
|
71
|
+
openAccountDialog,
|
|
72
|
+
signInWithPasskey,
|
|
73
|
+
continueOnAuth
|
|
74
|
+
} = (0, _OxyContext.useOxy)();
|
|
75
|
+
const snapshot = (0, _accountDialogSnapshot.useAccountDialogSnapshot)(controller);
|
|
76
|
+
const {
|
|
77
|
+
principals,
|
|
78
|
+
activeContext
|
|
79
|
+
} = (0, _useDeviceSwitcher.useDeviceSwitcher)();
|
|
80
|
+
const methods = (0, _signInMethods.resolveSignInMethods)({
|
|
81
|
+
web: (0, _isWebBrowser.isWebBrowser)(),
|
|
82
|
+
host,
|
|
83
|
+
commonsAvailability: snapshot.commonsAvailability
|
|
84
|
+
});
|
|
85
|
+
const [showForm, setShowForm] = (0, _react.useState)(Boolean(loginHint));
|
|
86
|
+
const [identifier, setIdentifier] = (0, _react.useState)(loginHint ?? '');
|
|
87
|
+
const [pending, setPending] = (0, _react.useState)(false);
|
|
88
|
+
const [error, setError] = (0, _react.useState)(null);
|
|
89
|
+
const [rateLimitSeconds, setRateLimitSeconds] = (0, _react.useState)(0);
|
|
90
|
+
const blocked = pending || rateLimitSeconds > 0;
|
|
91
|
+
|
|
92
|
+
// The countdown after a 429: one tick a second until the person may retry.
|
|
93
|
+
(0, _react.useEffect)(() => {
|
|
94
|
+
if (rateLimitSeconds <= 0) return;
|
|
95
|
+
const timer = setTimeout(() => setRateLimitSeconds(seconds => Math.max(0, seconds - 1)), 1000);
|
|
96
|
+
return () => clearTimeout(timer);
|
|
97
|
+
}, [rateLimitSeconds]);
|
|
98
|
+
|
|
99
|
+
// On a page, a request the controller runs (the embedded QR, or one shown in
|
|
100
|
+
// the dialog opened over it) finishes the page's sign-in too. Only one that
|
|
101
|
+
// STARTED here: a completion already on the controller is somebody else's.
|
|
102
|
+
const [mountedAttempt] = (0, _react.useState)(snapshot.signIn.attempt);
|
|
103
|
+
const completedHere = snapshot.signIn.phase === 'completed' && snapshot.signIn.attempt !== mountedAttempt;
|
|
104
|
+
(0, _react.useEffect)(() => {
|
|
105
|
+
if (host === 'page' && completedHere) onSignedIn();
|
|
106
|
+
}, [host, completedHere, onSignedIn]);
|
|
107
|
+
|
|
108
|
+
/** Show the request a controller call just started — the dialog is where it lives. */
|
|
109
|
+
const showRequest = (0, _react.useCallback)(() => {
|
|
110
|
+
if (host === 'page') openAccountDialog('qr');
|
|
111
|
+
}, [host, openAccountDialog]);
|
|
112
|
+
|
|
113
|
+
// These open a window or leave the page, so they run straight from the
|
|
114
|
+
// press, before any await.
|
|
115
|
+
const continueWithOxy = () => {
|
|
116
|
+
void controller?.signInWithOxy();
|
|
117
|
+
showRequest();
|
|
118
|
+
};
|
|
119
|
+
const signInOnOxy = () => {
|
|
120
|
+
void continueOnAuth('signin').then(result => {
|
|
121
|
+
if (result.status === 'signed-in') onSignedIn();else if (result.status === 'failed') _toast.toast.error(t('signin.errors.failed'));
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
const useAnotherDevice = () => {
|
|
125
|
+
void controller?.showQr();
|
|
126
|
+
showRequest();
|
|
127
|
+
};
|
|
128
|
+
const getCommons = () => {
|
|
129
|
+
Promise.resolve().then(() => _reactNative.Linking.openURL((0, _commonsStoreLinks.getCommonsAcquisitionUrl)(_reactNative.Platform.OS))).catch(() => _toast.toast.error(t('accountSwitcher.linkOpenFailed')));
|
|
130
|
+
};
|
|
131
|
+
const runPasskey = async (username, failToast) => {
|
|
132
|
+
if (blocked) return;
|
|
133
|
+
setError(null);
|
|
134
|
+
setPending(true);
|
|
135
|
+
try {
|
|
136
|
+
await signInWithPasskey({
|
|
137
|
+
username
|
|
138
|
+
});
|
|
139
|
+
onSignedIn();
|
|
140
|
+
} catch (err) {
|
|
141
|
+
if ((0, _passkeyError.isRateLimited)(err)) {
|
|
142
|
+
setRateLimitSeconds(_passkeyError.RATE_LIMIT_SECONDS);
|
|
143
|
+
} else {
|
|
144
|
+
const message = (0, _passkeyError.describePasskeyError)(err, t);
|
|
145
|
+
setError(message);
|
|
146
|
+
_toast.toast.error(failToast, {
|
|
147
|
+
description: message
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
} finally {
|
|
151
|
+
setPending(false);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const submitUsername = () => {
|
|
155
|
+
const username = identifier.trim();
|
|
156
|
+
if (username) void runPasskey(username, t('signin.errors.failed'));else setError(t('signin.username.required'));
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
// A returning device starts at WHO. Not while adding an account from inside
|
|
160
|
+
// a signed-in app: the rows are the accounts it would add.
|
|
161
|
+
const pickerAllowed = host === 'dialog' ? !snapshot.hasSession : activeContext !== null;
|
|
162
|
+
const reauthenticate = context => {
|
|
163
|
+
setIdentifier(context.handle ?? '');
|
|
164
|
+
setShowForm(true);
|
|
165
|
+
};
|
|
166
|
+
const selectContext = async context => {
|
|
167
|
+
const outcome = await controller?.chooseContext(context.contextId).catch(() => 'failed');
|
|
168
|
+
switch (outcome) {
|
|
169
|
+
case 'switched':
|
|
170
|
+
// Every account-scoped query now describes somebody else.
|
|
171
|
+
void queryClient.invalidateQueries();
|
|
172
|
+
onSignedIn();
|
|
173
|
+
return;
|
|
174
|
+
case 'current':
|
|
175
|
+
onSignedIn();
|
|
176
|
+
return;
|
|
177
|
+
case 'signing-in':
|
|
178
|
+
// The request for that account is running; it shows where requests do.
|
|
179
|
+
showRequest();
|
|
180
|
+
return;
|
|
181
|
+
case 'failed':
|
|
182
|
+
// The pair could not be activated as it stands: sign in as it explicitly.
|
|
183
|
+
if (methods.passkey && context.handle) reauthenticate(context);else _toast.toast.error(t('accountSwitcher.toasts.activateFailed'));
|
|
184
|
+
return;
|
|
185
|
+
default:
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const showsPicker = pickerAllowed && !showForm && principals.length > 0;
|
|
190
|
+
// auth.oxy.so's page is the split card from `md`.
|
|
191
|
+
const splits = methods.commons === 'qr';
|
|
192
|
+
if (showsPicker) {
|
|
193
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAccountPicker.OxyAccountPicker, {
|
|
194
|
+
principals: principals,
|
|
195
|
+
appName: appName,
|
|
196
|
+
signedOut: !snapshot.hasSession,
|
|
197
|
+
pendingContextId: snapshot.activatingContextId,
|
|
198
|
+
isLoading: snapshot.activatingContextId !== null,
|
|
199
|
+
onSelectContext: context => void selectContext(context),
|
|
200
|
+
onUseAnother: () => {
|
|
201
|
+
setIdentifier('');
|
|
202
|
+
setShowForm(true);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
const shownError = rateLimitSeconds > 0 ? t('signin.errors.rateLimited', {
|
|
207
|
+
seconds: rateLimitSeconds
|
|
208
|
+
}) : error;
|
|
209
|
+
const adding = host === 'dialog' && snapshot.hasSession;
|
|
210
|
+
const title = adding ? t('signin.addAccountTitle') : t('signin.title');
|
|
211
|
+
const description = adding ? t('signin.addAccountSubtitle') : appName ? t('signin.subtitleToApp', {
|
|
212
|
+
app: appName
|
|
213
|
+
}) : t('signin.subtitle');
|
|
214
|
+
const noAccount = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_typography.Text, {
|
|
215
|
+
style: [styles.note, styles.noAccount, {
|
|
216
|
+
color: theme.colors.textSecondary
|
|
217
|
+
}],
|
|
218
|
+
children: [t('signin.noAccount'), ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
219
|
+
accessibilityRole: "link",
|
|
220
|
+
onPress: onCreateAccount,
|
|
221
|
+
style: [styles.noAccountLink, {
|
|
222
|
+
color: theme.colors.text
|
|
223
|
+
}],
|
|
224
|
+
testID: "create-account-link",
|
|
225
|
+
children: t('signin.createAccount')
|
|
226
|
+
})]
|
|
227
|
+
});
|
|
228
|
+
// One solid action per screen: the username's Continue when there is one.
|
|
229
|
+
const commonsAppearance = methods.passkey ? 'outline' : 'solid';
|
|
230
|
+
const continueWithOxyButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
231
|
+
appearance: commonsAppearance,
|
|
232
|
+
tone: commonsAppearance === 'solid' ? 'action' : 'neutral',
|
|
233
|
+
size: "lg",
|
|
234
|
+
fullWidth: true,
|
|
235
|
+
onPress: methods.commons === 'window' ? signInOnOxy : continueWithOxy,
|
|
236
|
+
testID: "continue-with-oxy",
|
|
237
|
+
children: t('accountSwitcher.continueWithOxy')
|
|
238
|
+
});
|
|
239
|
+
const form = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_OxyAuthScreen.OxyAuthScreen, {
|
|
240
|
+
className: splits ? 'md:max-w-none' : undefined,
|
|
241
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthScreenHeader, {
|
|
242
|
+
title: title,
|
|
243
|
+
description: description
|
|
244
|
+
}), splits ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.View, {
|
|
245
|
+
className: "md:hidden",
|
|
246
|
+
children: continueWithOxyButton
|
|
247
|
+
}) : null, methods.commons === 'continue' || methods.commons === 'window' ? continueWithOxyButton : null, methods.commons === 'get-commons' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
248
|
+
style: styles.stack,
|
|
249
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
250
|
+
style: [styles.note, {
|
|
251
|
+
color: theme.colors.textSecondary
|
|
252
|
+
}],
|
|
253
|
+
children: t('accountSwitcher.commonsNotInstalled')
|
|
254
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
255
|
+
appearance: "solid",
|
|
256
|
+
tone: "action",
|
|
257
|
+
size: "lg",
|
|
258
|
+
fullWidth: true,
|
|
259
|
+
onPress: getCommons,
|
|
260
|
+
testID: "get-commons-button",
|
|
261
|
+
children: t('accountSwitcher.getCommons')
|
|
262
|
+
})]
|
|
263
|
+
}) : null, methods.passkey ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
264
|
+
style: styles.stack,
|
|
265
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
266
|
+
style: styles.field,
|
|
267
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldLabel, {
|
|
268
|
+
nativeID: "username-label",
|
|
269
|
+
children: t('signin.username.label')
|
|
270
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextField, {
|
|
271
|
+
invalid: shownError !== null,
|
|
272
|
+
disabled: blocked,
|
|
273
|
+
radius: 999,
|
|
274
|
+
style: styles.input,
|
|
275
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldInput, {
|
|
276
|
+
testID: "username",
|
|
277
|
+
label: t('signin.username.label'),
|
|
278
|
+
value: identifier,
|
|
279
|
+
onValueChange: value => {
|
|
280
|
+
setIdentifier(value);
|
|
281
|
+
if (error) setError(null);
|
|
282
|
+
},
|
|
283
|
+
placeholder: t('signin.username.placeholder'),
|
|
284
|
+
autoComplete: "username",
|
|
285
|
+
autoCapitalize: "none",
|
|
286
|
+
autoCorrect: false,
|
|
287
|
+
autoFocus: _reactNative.Platform.OS === 'web',
|
|
288
|
+
returnKeyType: "go",
|
|
289
|
+
onSubmitEditing: submitUsername,
|
|
290
|
+
"aria-required": true
|
|
291
|
+
})
|
|
292
|
+
}), shownError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_textField.TextFieldHint, {
|
|
293
|
+
invalid: true,
|
|
294
|
+
children: shownError
|
|
295
|
+
}) : null]
|
|
296
|
+
}), noAccount, /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
297
|
+
appearance: "solid",
|
|
298
|
+
tone: "action",
|
|
299
|
+
size: "lg",
|
|
300
|
+
fullWidth: true,
|
|
301
|
+
loading: pending,
|
|
302
|
+
disabled: blocked,
|
|
303
|
+
onPress: submitUsername,
|
|
304
|
+
testID: "username-continue",
|
|
305
|
+
children: t('signin.actions.continue')
|
|
306
|
+
})]
|
|
307
|
+
}) : null, methods.commons === 'window' ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider.Divider, {
|
|
308
|
+
children: t('signin.orContinueWith')
|
|
309
|
+
}), methods.passkey ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
310
|
+
appearance: "outline",
|
|
311
|
+
tone: "neutral",
|
|
312
|
+
size: "lg",
|
|
313
|
+
fullWidth: true,
|
|
314
|
+
leadingIcon: _RiKey2Line.RiKey2Line,
|
|
315
|
+
disabled: blocked,
|
|
316
|
+
onPress: () => void runPasskey(undefined, t('signin.errors.failed')),
|
|
317
|
+
testID: "passkey-sign-in",
|
|
318
|
+
children: t('signin.methods.passkey')
|
|
319
|
+
}) : methods.commons === 'window' ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
320
|
+
appearance: "outline",
|
|
321
|
+
tone: "neutral",
|
|
322
|
+
size: "lg",
|
|
323
|
+
fullWidth: true,
|
|
324
|
+
leadingIcon: _RiQrCodeLine.RiQrCodeLine,
|
|
325
|
+
onPress: useAnotherDevice,
|
|
326
|
+
testID: "scan-qr",
|
|
327
|
+
children: t('accountSwitcher.scanQr')
|
|
328
|
+
}), methods.passkey ? null : noAccount, onRecover ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
|
|
329
|
+
label: t('signin.recoverLink'),
|
|
330
|
+
theme: theme,
|
|
331
|
+
onPress: onRecover,
|
|
332
|
+
testID: "recover-link"
|
|
333
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthTerms, {})]
|
|
334
|
+
});
|
|
335
|
+
if (!splits) return form;
|
|
336
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthScreen.OxyAuthSplit, {
|
|
337
|
+
aside: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
338
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_authCard.AuthMediaCarousel, {
|
|
339
|
+
slides: _artwork.SIGN_IN_SLIDES,
|
|
340
|
+
style: _reactNative.StyleSheet.absoluteFill
|
|
341
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InlineCommonsQr.InlineCommonsQr, {
|
|
342
|
+
controller: controller
|
|
343
|
+
})]
|
|
344
|
+
}),
|
|
345
|
+
children: form
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
exports.OxySignInPanel = OxySignInPanel;
|
|
349
|
+
const styles = _reactNative.StyleSheet.create({
|
|
350
|
+
stack: {
|
|
351
|
+
gap: 12
|
|
352
|
+
},
|
|
353
|
+
field: {
|
|
354
|
+
gap: 6
|
|
355
|
+
},
|
|
356
|
+
note: {
|
|
357
|
+
fontSize: 14,
|
|
358
|
+
lineHeight: 20,
|
|
359
|
+
textAlign: 'center'
|
|
360
|
+
},
|
|
361
|
+
noAccount: {
|
|
362
|
+
textAlign: 'left'
|
|
363
|
+
},
|
|
364
|
+
noAccountLink: {
|
|
365
|
+
textDecorationLine: 'underline'
|
|
366
|
+
},
|
|
367
|
+
input: {
|
|
368
|
+
height: 40
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
//# sourceMappingURL=OxySignInPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_components","_authCard","_button","_divider","_RiKey2Line","_RiQrCodeLine","_theme","_textField","_toast","_typography","_reactQuery","_OxyContext","_accountDialogSnapshot","_useDeviceSwitcher","_useI18n","_commonsStoreLinks","_isWebBrowser","_primitives","_artwork","_InlineCommonsQr","_OxyAccountPicker","_OxyAuthScreen","_passkeyError","_signInMethods","_jsxRuntime","OxySignInPanel","onSignedIn","onCreateAccount","onRecover","loginHint","appName","host","theme","useTheme","t","useI18n","queryClient","useQueryClient","accountDialogController","controller","openAccountDialog","signInWithPasskey","continueOnAuth","useOxy","snapshot","useAccountDialogSnapshot","principals","activeContext","useDeviceSwitcher","methods","resolveSignInMethods","web","isWebBrowser","commonsAvailability","showForm","setShowForm","useState","Boolean","identifier","setIdentifier","pending","setPending","error","setError","rateLimitSeconds","setRateLimitSeconds","blocked","useEffect","timer","setTimeout","seconds","Math","max","clearTimeout","mountedAttempt","signIn","attempt","completedHere","phase","showRequest","useCallback","continueWithOxy","signInWithOxy","signInOnOxy","then","result","status","toast","useAnotherDevice","showQr","getCommons","Promise","resolve","Linking","openURL","getCommonsAcquisitionUrl","Platform","OS","catch","runPasskey","username","failToast","err","isRateLimited","RATE_LIMIT_SECONDS","message","describePasskeyError","description","submitUsername","trim","pickerAllowed","hasSession","reauthenticate","context","handle","selectContext","outcome","chooseContext","contextId","invalidateQueries","passkey","showsPicker","length","splits","commons","jsx","OxyAccountPicker","signedOut","pendingContextId","activatingContextId","isLoading","onSelectContext","onUseAnother","shownError","adding","title","app","noAccount","jsxs","Text","style","styles","note","color","colors","textSecondary","children","accessibilityRole","onPress","noAccountLink","text","testID","commonsAppearance","continueWithOxyButton","Button","appearance","tone","size","fullWidth","form","OxyAuthScreen","className","undefined","OxyAuthScreenHeader","View","stack","field","TextFieldLabel","nativeID","TextField","invalid","disabled","radius","input","TextFieldInput","label","value","onValueChange","placeholder","autoComplete","autoCapitalize","autoCorrect","autoFocus","returnKeyType","onSubmitEditing","TextFieldHint","loading","Divider","leadingIcon","RiKey2Line","RiQrCodeLine","SubtleLink","OxyAuthTerms","OxyAuthSplit","aside","Fragment","AuthMediaCarousel","slides","SIGN_IN_SLIDES","StyleSheet","absoluteFill","InlineCommonsQr","exports","create","gap","fontSize","lineHeight","textAlign","textDecorationLine","height"],"sourceRoot":"../../../../../src","sources":["ui/components/signIn/OxySignInPanel.tsx"],"mappings":";;;;;;AAuBA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,I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