@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
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The sign-in ENTRY (`signin` / `add` views) — ONE primary action.
|
|
5
|
-
*
|
|
6
|
-
* Web: "Continue" opens the identity origin (`id.oxy.so`) in a popup, where the
|
|
7
|
-
* person signs in — or creates an account — with a passkey, and the account's
|
|
8
|
-
* self-custody identity is created or unsealed (one identity, two carriers). No
|
|
9
|
-
* philosophy up front: fingerprint, face or device PIN, and they are in. An
|
|
10
|
-
* account that lives on another device is one subordinate link away (Commons
|
|
11
|
-
* QR). Nothing auto-starts: a browser only opens a popup from a user gesture.
|
|
12
|
-
*
|
|
13
|
-
* Native: "Continue with Oxy" — the Commons flow (shared keychain, else the
|
|
14
|
-
* request Oxy routes to the person's Commons identity).
|
|
15
|
-
*
|
|
16
|
-
* Existing accounts still render ABOVE the CTA: "continue as one of these" is a
|
|
17
|
-
* choice of WHO, not of HOW.
|
|
18
|
-
*
|
|
19
|
-
* Signed in (the "Add another account" entry), a row is an account to switch
|
|
20
|
-
* to, and the current one carries its check. Signed out, nothing here is
|
|
21
|
-
* current: the device may still list an identity it holds (Commons' shared
|
|
22
|
-
* one), but THIS app has no session, so each row reads "Continue as @handle"
|
|
23
|
-
* and choosing it signs in (OxyHQ/oxy#1375 items 20 and 21).
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import { View } from 'react-native';
|
|
27
|
-
import { Button } from '@oxy.so/bloom/button';
|
|
28
|
-
import { Text } from '@oxy.so/bloom/typography';
|
|
29
|
-
import { showsPrincipalHeaders } from '@oxy.so/core';
|
|
30
|
-
import TroubleDisclosure from "./TroubleDisclosure.js";
|
|
31
|
-
import { AccountRow, Dividerish, SubtleLink } from "./primitives.js";
|
|
32
|
-
import { authChooserStyles as styles } from "./styles.js";
|
|
33
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
34
|
-
const SignInEntryView = ({
|
|
35
|
-
snapshot,
|
|
36
|
-
principals,
|
|
37
|
-
theme,
|
|
38
|
-
t,
|
|
39
|
-
handlers,
|
|
40
|
-
onContinueWithOxy,
|
|
41
|
-
alternatives
|
|
42
|
-
}) => {
|
|
43
|
-
const web = alternatives.passkeyAvailable;
|
|
44
|
-
|
|
45
|
-
// Web keeps Commons one link away; native keeps its QR/Commons alternatives
|
|
46
|
-
// behind the disclosure, as before.
|
|
47
|
-
const troubleActions = web ? [{
|
|
48
|
-
key: 'get-commons-link',
|
|
49
|
-
label: t('accountSwitcher.getCommons'),
|
|
50
|
-
onPress: alternatives.onGetCommons
|
|
51
|
-
}] : [{
|
|
52
|
-
key: 'scan-qr-link',
|
|
53
|
-
label: t('accountSwitcher.scanQr'),
|
|
54
|
-
onPress: alternatives.onShowQr
|
|
55
|
-
}, {
|
|
56
|
-
key: 'get-commons-link',
|
|
57
|
-
label: t('accountSwitcher.getCommons'),
|
|
58
|
-
onPress: alternatives.onGetCommons
|
|
59
|
-
}];
|
|
60
|
-
|
|
61
|
-
// Whose route this is only needs naming when the list holds more than one
|
|
62
|
-
// person, or somebody with more than one account — the same rule the account
|
|
63
|
-
// menu's group headers follow.
|
|
64
|
-
const namesTheOperator = showsPrincipalHeaders(principals);
|
|
65
|
-
const rows = principals.flatMap(principal => principal.contexts.map(context => ({
|
|
66
|
-
context,
|
|
67
|
-
operatedBy: namesTheOperator && context.isDelegated ? t('accountSwitcher.context.operatedBy', {
|
|
68
|
-
name: principal.displayName
|
|
69
|
-
}) : null
|
|
70
|
-
})));
|
|
71
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
72
|
-
style: styles.signInBlock,
|
|
73
|
-
children: [rows.length > 0 ? /*#__PURE__*/_jsxs(View, {
|
|
74
|
-
style: styles.rows,
|
|
75
|
-
children: [rows.map(({
|
|
76
|
-
context,
|
|
77
|
-
operatedBy
|
|
78
|
-
}) => /*#__PURE__*/_jsx(AccountRow, {
|
|
79
|
-
context: context,
|
|
80
|
-
operatedBy: operatedBy,
|
|
81
|
-
continueAsLabel: snapshot.hasSession ? null : t('signin.chooser.continueAs', {
|
|
82
|
-
name: context.handle ? `@${context.handle}` : context.displayName
|
|
83
|
-
}),
|
|
84
|
-
theme: theme,
|
|
85
|
-
activating: snapshot.activatingContextId === context.contextId,
|
|
86
|
-
disabled: snapshot.activatingContextId !== null,
|
|
87
|
-
onPress: () => handlers.onActivate(context.contextId)
|
|
88
|
-
}, context.contextId)), /*#__PURE__*/_jsx(Dividerish, {
|
|
89
|
-
theme: theme,
|
|
90
|
-
label: t('signin.or')
|
|
91
|
-
})]
|
|
92
|
-
}) : null, web ? /*#__PURE__*/_jsx(Text, {
|
|
93
|
-
style: [styles.mutedText, {
|
|
94
|
-
color: theme.colors.textSecondary
|
|
95
|
-
}],
|
|
96
|
-
children: t('accountSwitcher.passkeyHint')
|
|
97
|
-
}) : null, /*#__PURE__*/_jsx(Button, {
|
|
98
|
-
appearance: "solid",
|
|
99
|
-
tone: "accent"
|
|
100
|
-
// `lg` (44dp): the surface's ONE primary action is a full-width CTA, and
|
|
101
|
-
// the default `md` (36dp) is under the touch-target minimum on Android.
|
|
102
|
-
,
|
|
103
|
-
size: "lg",
|
|
104
|
-
onPress: web ? alternatives.onSignInWithPasskey : onContinueWithOxy,
|
|
105
|
-
style: styles.primaryButton,
|
|
106
|
-
testID: "continue-with-oxy",
|
|
107
|
-
children: web ? t('accountSwitcher.continueWithPasskey') : t('accountSwitcher.continueWithOxy')
|
|
108
|
-
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
109
|
-
label: t('signin.createAccountLink'),
|
|
110
|
-
theme: theme,
|
|
111
|
-
onPress: alternatives.onCreateAccount,
|
|
112
|
-
testID: "create-account-link"
|
|
113
|
-
}), web ? /*#__PURE__*/_jsx(SubtleLink, {
|
|
114
|
-
label: t('accountSwitcher.otherDeviceCommons'),
|
|
115
|
-
theme: theme,
|
|
116
|
-
onPress: alternatives.onShowQr,
|
|
117
|
-
testID: "scan-qr-link"
|
|
118
|
-
}) : null, /*#__PURE__*/_jsx(TroubleDisclosure, {
|
|
119
|
-
actions: troubleActions,
|
|
120
|
-
revealed: false,
|
|
121
|
-
theme: theme,
|
|
122
|
-
t: t
|
|
123
|
-
})]
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
export default SignInEntryView;
|
|
127
|
-
//# sourceMappingURL=SignInEntryView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["View","Button","Text","showsPrincipalHeaders","TroubleDisclosure","AccountRow","Dividerish","SubtleLink","authChooserStyles","styles","jsx","_jsx","jsxs","_jsxs","SignInEntryView","snapshot","principals","theme","t","handlers","onContinueWithOxy","alternatives","web","passkeyAvailable","troubleActions","key","label","onPress","onGetCommons","onShowQr","namesTheOperator","rows","flatMap","principal","contexts","map","context","operatedBy","isDelegated","name","displayName","style","signInBlock","children","length","continueAsLabel","hasSession","handle","activating","activatingContextId","contextId","disabled","onActivate","mutedText","color","colors","textSecondary","appearance","tone","size","onSignInWithPasskey","primaryButton","testID","onCreateAccount","actions","revealed"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/SignInEntryView.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Account creation (`signup` view).
|
|
5
|
-
*
|
|
6
|
-
* Web: the account AND its self-custody identity are created at the identity
|
|
7
|
-
* origin (`id.oxy.so`), in the same window a passkey sign-in uses — never on
|
|
8
|
-
* this page, whatever its origin (one identity, two carriers). The sign-in
|
|
9
|
-
* entry's "create an account" link opens that window directly; this view is
|
|
10
|
-
* what `openAccountDialog('signup')` lands on, and offers the same one action.
|
|
11
|
-
*
|
|
12
|
-
* Native: Commons owns identity creation. Deep-link straight in when Commons is
|
|
13
|
-
* installed, else lead with the "Get Commons" acquisition CTA.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { View } from 'react-native';
|
|
17
|
-
import { Button } from '@oxy.so/bloom/button';
|
|
18
|
-
import { Text } from '@oxy.so/bloom/typography';
|
|
19
|
-
import { SubtleLink } from "./primitives.js";
|
|
20
|
-
import { authChooserStyles as styles } from "./styles.js";
|
|
21
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
const SignUpView = ({
|
|
23
|
-
snapshot,
|
|
24
|
-
theme,
|
|
25
|
-
t,
|
|
26
|
-
passkeyMode,
|
|
27
|
-
onOpenHub,
|
|
28
|
-
onCreateIdentityInCommons,
|
|
29
|
-
onGetCommons,
|
|
30
|
-
onBackToSignIn
|
|
31
|
-
}) => {
|
|
32
|
-
if (passkeyMode === 'none') {
|
|
33
|
-
const commonsInstalled = snapshot.commonsAvailability === 'available';
|
|
34
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
35
|
-
style: styles.centeredBlock,
|
|
36
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
37
|
-
appearance: "solid",
|
|
38
|
-
tone: "accent",
|
|
39
|
-
size: "lg",
|
|
40
|
-
onPress: commonsInstalled ? onCreateIdentityInCommons : onGetCommons,
|
|
41
|
-
style: styles.primaryButton,
|
|
42
|
-
children: commonsInstalled ? t('signup.createInCommons') : t('accountSwitcher.getCommons')
|
|
43
|
-
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
44
|
-
label: t('signup.backToSignInLink'),
|
|
45
|
-
theme: theme,
|
|
46
|
-
onPress: onBackToSignIn
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
51
|
-
style: styles.centeredBlock,
|
|
52
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
53
|
-
style: [styles.mutedText, {
|
|
54
|
-
color: theme.colors.textSecondary
|
|
55
|
-
}],
|
|
56
|
-
children: t('accountSwitcher.passkeyHint')
|
|
57
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
58
|
-
appearance: "solid",
|
|
59
|
-
tone: "accent",
|
|
60
|
-
size: "lg",
|
|
61
|
-
onPress: onOpenHub,
|
|
62
|
-
style: styles.primaryButton,
|
|
63
|
-
testID: "signup-open-identity",
|
|
64
|
-
children: t('signup.createAccount')
|
|
65
|
-
}), /*#__PURE__*/_jsx(SubtleLink, {
|
|
66
|
-
label: t('signup.backToSignInLink'),
|
|
67
|
-
theme: theme,
|
|
68
|
-
onPress: onBackToSignIn
|
|
69
|
-
})]
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
export default SignUpView;
|
|
73
|
-
//# sourceMappingURL=SignUpView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["View","Button","Text","SubtleLink","authChooserStyles","styles","jsx","_jsx","jsxs","_jsxs","SignUpView","snapshot","theme","t","passkeyMode","onOpenHub","onCreateIdentityInCommons","onGetCommons","onBackToSignIn","commonsInstalled","commonsAvailability","style","centeredBlock","children","appearance","tone","size","onPress","primaryButton","label","mutedText","color","colors","textSecondary","testID"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/SignUpView.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,IAAI,QAAQ,0BAA0B;AAE/C,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,iBAAiB,IAAIC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiBvD,MAAMC,UAAqC,GAAGA,CAAC;EAC7CC,QAAQ;EACRC,KAAK;EACLC,CAAC;EACDC,WAAW;EACXC,SAAS;EACTC,yBAAyB;EACzBC,YAAY;EACZC;AACF,CAAC,KAAK;EACJ,IAAIJ,WAAW,KAAK,MAAM,EAAE;IAC1B,MAAMK,gBAAgB,GAAGR,QAAQ,CAACS,mBAAmB,KAAK,WAAW;IACrE,oBACEX,KAAA,CAACT,IAAI;MAACqB,KAAK,EAAEhB,MAAM,CAACiB,aAAc;MAAAC,QAAA,gBAChChB,IAAA,CAACN,MAAM;QACLuB,UAAU,EAAC,OAAO;QAACC,IAAI,EAAC,QAAQ;QAACC,IAAI,EAAC,IAAI;QAC1CC,OAAO,EAAER,gBAAgB,GAAGH,yBAAyB,GAAGC,YAAa;QACrEI,KAAK,EAAEhB,MAAM,CAACuB,aAAc;QAAAL,QAAA,EAE3BJ,gBAAgB,GAAGN,CAAC,CAAC,wBAAwB,CAAC,GAAGA,CAAC,CAAC,4BAA4B;MAAC,CAC3E,CAAC,eACTN,IAAA,CAACJ,UAAU;QAAC0B,KAAK,EAAEhB,CAAC,CAAC,yBAAyB,CAAE;QAACD,KAAK,EAAEA,KAAM;QAACe,OAAO,EAAET;MAAe,CAAE,CAAC;IAAA,CACtF,CAAC;EAEX;EAEA,oBACET,KAAA,CAACT,IAAI;IAACqB,KAAK,EAAEhB,MAAM,CAACiB,aAAc;IAAAC,QAAA,gBAChChB,IAAA,CAACL,IAAI;MAACmB,KAAK,EAAE,CAAChB,MAAM,CAACyB,SAAS,EAAE;QAAEC,KAAK,EAAEnB,KAAK,CAACoB,MAAM,CAACC;MAAc,CAAC,CAAE;MAAAV,QAAA,EACpEV,CAAC,CAAC,6BAA6B;IAAC,CAC7B,CAAC,eACPN,IAAA,CAACN,MAAM;MAACuB,UAAU,EAAC,OAAO;MAACC,IAAI,EAAC,QAAQ;MAACC,IAAI,EAAC,IAAI;MAACC,OAAO,EAAEZ,SAAU;MAACM,KAAK,EAAEhB,MAAM,CAACuB,aAAc;MAACM,MAAM,EAAC,sBAAsB;MAAAX,QAAA,EAC9HV,CAAC,CAAC,sBAAsB;IAAC,CACpB,CAAC,eACTN,IAAA,CAACJ,UAAU;MAAC0B,KAAK,EAAEhB,CAAC,CAAC,yBAAyB,CAAE;MAACD,KAAK,EAAEA,KAAM;MAACe,OAAO,EAAET;IAAe,CAAE,CAAC;EAAA,CACtF,CAAC;AAEX,CAAC;AAED,eAAeR,UAAU","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Popup opener for the cross-origin passkey hub (b2).
|
|
5
|
-
*
|
|
6
|
-
* On a non-Oxy web origin (e.g. mention.earth) a WebAuthn ceremony can't run
|
|
7
|
-
* locally — the credential's RP ID is bound to `oxy.so`. Instead,
|
|
8
|
-
* `AccountDialogController.startPasskeyHubSignIn` opens a popup at the
|
|
9
|
-
* auth.oxy.so passkey hub, where the SAME ceremony IS a first-party operation.
|
|
10
|
-
*
|
|
11
|
-
* Kept in its own module (mirroring `oauthNavigation.ts`'s
|
|
12
|
-
* `redirectToAuthorize`) so `window.open` sits behind a plain function the
|
|
13
|
-
* controller wiring in `OxyContext` can inject without touching `window`
|
|
14
|
-
* itself, and so a test can substitute a fake opener.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Open a new, EMPTY popup window. Must be called SYNCHRONOUSLY from within a
|
|
19
|
-
* user-gesture handler (before any `await`) — opening it after an async call
|
|
20
|
-
* loses the gesture attribution and the browser silently blocks it. Returns
|
|
21
|
-
* `null` when blocked, or when there is no DOM `window` (native/SSR — the
|
|
22
|
-
* hub-popup flow does not apply there).
|
|
23
|
-
*/
|
|
24
|
-
export function openPasskeyHubPopup() {
|
|
25
|
-
const win = globalThis.window;
|
|
26
|
-
if (!win) return null;
|
|
27
|
-
return win.open('', '_blank', 'width=420,height=640');
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=passkeyHubPopup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["openPasskeyHubPopup","win","globalThis","window","open"],"sourceRoot":"../../../../src","sources":["ui/components/passkeyHubPopup.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,mBAAmBA,CAAA,EAA6B;EAC5D,MAAMC,GAAG,GAAIC,UAAU,CAAyBC,MAAM;EACtD,IAAI,CAACF,GAAG,EAAE,OAAO,IAAI;EACrB,OAAOA,GAAG,CAACG,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,sBAAsB,CAAC;AACzD","ignoreList":[]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The legacy, redirect-mode-only lanes that navigate the RP's TOP-LEVEL window
|
|
5
|
-
* to the IdP without a user gesture.
|
|
6
|
-
*
|
|
7
|
-
* `webAuthMode: 'popup'` exists to guarantee exactly one thing: the relying
|
|
8
|
-
* party never leaves its route. Two mechanics in this SDK break that guarantee,
|
|
9
|
-
* because each replaces the whole document on its own initiative:
|
|
10
|
-
*
|
|
11
|
-
* 1. **Cold-boot silent restore** — a full-page `prompt=none` authorize bounce
|
|
12
|
-
* to `auth.oxy.so` when the device-secret mint finds no local session
|
|
13
|
-
* (`maybeStartSilentOAuthRestore`, called from `runProviderColdBoot`).
|
|
14
|
-
* 2. **Post-sign-in hub sync** — a full-page hop to `auth.oxy.so/sync` that
|
|
15
|
-
* plants this device's credential on the IdP hub so OTHER origins can later
|
|
16
|
-
* run lane 1 (`syncHubAfterSignIn`, called from the `commitSession` funnel).
|
|
17
|
-
*
|
|
18
|
-
* Both belong to the redirect transport and are kept only for the migration
|
|
19
|
-
* window (issue #691, "Cold boot and cross-domain behavior"). In popup mode a
|
|
20
|
-
* domain with no local credential simply resolves SIGNED OUT, and the user's
|
|
21
|
-
* next explicit "Continue with Oxy" opens the popup — from a real user gesture,
|
|
22
|
-
* never automatically.
|
|
23
|
-
*
|
|
24
|
-
* NOT covered here, and correctly enabled in BOTH modes: navigations the user
|
|
25
|
-
* asked for. When the browser blocks the popup, `startWebOAuthSignIn` still
|
|
26
|
-
* falls back to a full-page redirect rather than dead-ending the sign-in, and
|
|
27
|
-
* `tryCompleteOAuthReturn` still consumes a `?code=` that is already on the URL.
|
|
28
|
-
*
|
|
29
|
-
* PHASE 7b: once the pilot flips the default transport to `'popup'`, this
|
|
30
|
-
* predicate and BOTH lanes above are deleted outright. Grepping this symbol
|
|
31
|
-
* finds every site that has to go.
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Whether a provider running `webAuthMode` may perform an SDK-initiated,
|
|
36
|
-
* non-gesture, full-page navigation to the IdP.
|
|
37
|
-
*
|
|
38
|
-
* `true` only for `'redirect'` — still the default and the compatibility path,
|
|
39
|
-
* whose behaviour must stay byte-for-byte unchanged.
|
|
40
|
-
*/
|
|
41
|
-
export function allowsAutomaticIdpRedirect(webAuthMode) {
|
|
42
|
-
return webAuthMode === 'redirect';
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=legacyRedirectLanes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["allowsAutomaticIdpRedirect","webAuthMode"],"sourceRoot":"../../../../src","sources":["ui/oauth/legacyRedirectLanes.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,0BAA0BA,CAACC,WAAwB,EAAW;EAC5E,OAAOA,WAAW,KAAK,UAAU;AACnC","ignoreList":[]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The sign-in ENTRY (`signin` / `add` views) — ONE primary action.
|
|
3
|
-
*
|
|
4
|
-
* Web: "Continue" opens the identity origin (`id.oxy.so`) in a popup, where the
|
|
5
|
-
* person signs in — or creates an account — with a passkey, and the account's
|
|
6
|
-
* self-custody identity is created or unsealed (one identity, two carriers). No
|
|
7
|
-
* philosophy up front: fingerprint, face or device PIN, and they are in. An
|
|
8
|
-
* account that lives on another device is one subordinate link away (Commons
|
|
9
|
-
* QR). Nothing auto-starts: a browser only opens a popup from a user gesture.
|
|
10
|
-
*
|
|
11
|
-
* Native: "Continue with Oxy" — the Commons flow (shared keychain, else the
|
|
12
|
-
* request Oxy routes to the person's Commons identity).
|
|
13
|
-
*
|
|
14
|
-
* Existing accounts still render ABOVE the CTA: "continue as one of these" is a
|
|
15
|
-
* choice of WHO, not of HOW.
|
|
16
|
-
*
|
|
17
|
-
* Signed in (the "Add another account" entry), a row is an account to switch
|
|
18
|
-
* to, and the current one carries its check. Signed out, nothing here is
|
|
19
|
-
* current: the device may still list an identity it holds (Commons' shared
|
|
20
|
-
* one), but THIS app has no session, so each row reads "Continue as @handle"
|
|
21
|
-
* and choosing it signs in (OxyHQ/oxy#1375 items 20 and 21).
|
|
22
|
-
*/
|
|
23
|
-
import type React from 'react';
|
|
24
|
-
import { type AccountDialogSnapshot, type SwitcherPrincipalRow } from '@oxy.so/core';
|
|
25
|
-
import type { OxyAuthChooserHandlers, SignInAlternatives, Theme, Translate } from './types';
|
|
26
|
-
interface SignInEntryViewProps {
|
|
27
|
-
snapshot: AccountDialogSnapshot;
|
|
28
|
-
/** The device's people, each with the accounts they may act as. */
|
|
29
|
-
principals: SwitcherPrincipalRow[];
|
|
30
|
-
theme: Theme;
|
|
31
|
-
t: Translate;
|
|
32
|
-
handlers: OxyAuthChooserHandlers;
|
|
33
|
-
/** Native's primary action. Starts the Commons flow; Oxy chooses the route from there. */
|
|
34
|
-
onContinueWithOxy: () => void;
|
|
35
|
-
alternatives: SignInAlternatives;
|
|
36
|
-
}
|
|
37
|
-
declare const SignInEntryView: React.FC<SignInEntryViewProps>;
|
|
38
|
-
export default SignInEntryView;
|
|
39
|
-
//# sourceMappingURL=SignInEntryView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignInEntryView.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/SignInEntryView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EACV,sBAAsB,EAEtB,kBAAkB,EAClB,KAAK,EACL,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,mEAAmE;IACnE,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC;IACb,CAAC,EAAE,SAAS,CAAC;IACb,QAAQ,EAAE,sBAAsB,CAAC;IACjC,0FAA0F;IAC1F,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,EAAE,kBAAkB,CAAC;CAClC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmGnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Account creation (`signup` view).
|
|
3
|
-
*
|
|
4
|
-
* Web: the account AND its self-custody identity are created at the identity
|
|
5
|
-
* origin (`id.oxy.so`), in the same window a passkey sign-in uses — never on
|
|
6
|
-
* this page, whatever its origin (one identity, two carriers). The sign-in
|
|
7
|
-
* entry's "create an account" link opens that window directly; this view is
|
|
8
|
-
* what `openAccountDialog('signup')` lands on, and offers the same one action.
|
|
9
|
-
*
|
|
10
|
-
* Native: Commons owns identity creation. Deep-link straight in when Commons is
|
|
11
|
-
* installed, else lead with the "Get Commons" acquisition CTA.
|
|
12
|
-
*/
|
|
13
|
-
import type React from 'react';
|
|
14
|
-
import type { AccountDialogSnapshot } from '@oxy.so/core';
|
|
15
|
-
import type { PasskeyMode, Theme, Translate } from './types';
|
|
16
|
-
interface SignUpViewProps {
|
|
17
|
-
snapshot: AccountDialogSnapshot;
|
|
18
|
-
theme: Theme;
|
|
19
|
-
t: Translate;
|
|
20
|
-
passkeyMode: PasskeyMode;
|
|
21
|
-
/** Open the identity-origin window — web's only creation path. */
|
|
22
|
-
onOpenHub: () => void;
|
|
23
|
-
/** Deep-link into Commons' own identity-creation screen (installed only). */
|
|
24
|
-
onCreateIdentityInCommons: () => void;
|
|
25
|
-
/** Open the Commons store listing / landing page for this platform. */
|
|
26
|
-
onGetCommons: () => void;
|
|
27
|
-
onBackToSignIn: () => void;
|
|
28
|
-
}
|
|
29
|
-
declare const SignUpView: React.FC<SignUpViewProps>;
|
|
30
|
-
export default SignUpView;
|
|
31
|
-
//# sourceMappingURL=SignUpView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpView.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/SignUpView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE7D,UAAU,eAAe;IACvB,QAAQ,EAAE,qBAAqB,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,CAAC,EAAE,SAAS,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,kEAAkE;IAClE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,6EAA6E;IAC7E,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqCzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Popup opener for the cross-origin passkey hub (b2).
|
|
3
|
-
*
|
|
4
|
-
* On a non-Oxy web origin (e.g. mention.earth) a WebAuthn ceremony can't run
|
|
5
|
-
* locally — the credential's RP ID is bound to `oxy.so`. Instead,
|
|
6
|
-
* `AccountDialogController.startPasskeyHubSignIn` opens a popup at the
|
|
7
|
-
* auth.oxy.so passkey hub, where the SAME ceremony IS a first-party operation.
|
|
8
|
-
*
|
|
9
|
-
* Kept in its own module (mirroring `oauthNavigation.ts`'s
|
|
10
|
-
* `redirectToAuthorize`) so `window.open` sits behind a plain function the
|
|
11
|
-
* controller wiring in `OxyContext` can inject without touching `window`
|
|
12
|
-
* itself, and so a test can substitute a fake opener.
|
|
13
|
-
*/
|
|
14
|
-
import type { PopupWindowHandle } from '@oxy.so/core';
|
|
15
|
-
/**
|
|
16
|
-
* Open a new, EMPTY popup window. Must be called SYNCHRONOUSLY from within a
|
|
17
|
-
* user-gesture handler (before any `await`) — opening it after an async call
|
|
18
|
-
* loses the gesture attribution and the browser silently blocks it. Returns
|
|
19
|
-
* `null` when blocked, or when there is no DOM `window` (native/SSR — the
|
|
20
|
-
* hub-popup flow does not apply there).
|
|
21
|
-
*/
|
|
22
|
-
export declare function openPasskeyHubPopup(): PopupWindowHandle | null;
|
|
23
|
-
//# sourceMappingURL=passkeyHubPopup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"passkeyHubPopup.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/passkeyHubPopup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,iBAAiB,GAAG,IAAI,CAI9D"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The legacy, redirect-mode-only lanes that navigate the RP's TOP-LEVEL window
|
|
3
|
-
* to the IdP without a user gesture.
|
|
4
|
-
*
|
|
5
|
-
* `webAuthMode: 'popup'` exists to guarantee exactly one thing: the relying
|
|
6
|
-
* party never leaves its route. Two mechanics in this SDK break that guarantee,
|
|
7
|
-
* because each replaces the whole document on its own initiative:
|
|
8
|
-
*
|
|
9
|
-
* 1. **Cold-boot silent restore** — a full-page `prompt=none` authorize bounce
|
|
10
|
-
* to `auth.oxy.so` when the device-secret mint finds no local session
|
|
11
|
-
* (`maybeStartSilentOAuthRestore`, called from `runProviderColdBoot`).
|
|
12
|
-
* 2. **Post-sign-in hub sync** — a full-page hop to `auth.oxy.so/sync` that
|
|
13
|
-
* plants this device's credential on the IdP hub so OTHER origins can later
|
|
14
|
-
* run lane 1 (`syncHubAfterSignIn`, called from the `commitSession` funnel).
|
|
15
|
-
*
|
|
16
|
-
* Both belong to the redirect transport and are kept only for the migration
|
|
17
|
-
* window (issue #691, "Cold boot and cross-domain behavior"). In popup mode a
|
|
18
|
-
* domain with no local credential simply resolves SIGNED OUT, and the user's
|
|
19
|
-
* next explicit "Continue with Oxy" opens the popup — from a real user gesture,
|
|
20
|
-
* never automatically.
|
|
21
|
-
*
|
|
22
|
-
* NOT covered here, and correctly enabled in BOTH modes: navigations the user
|
|
23
|
-
* asked for. When the browser blocks the popup, `startWebOAuthSignIn` still
|
|
24
|
-
* falls back to a full-page redirect rather than dead-ending the sign-in, and
|
|
25
|
-
* `tryCompleteOAuthReturn` still consumes a `?code=` that is already on the URL.
|
|
26
|
-
*
|
|
27
|
-
* PHASE 7b: once the pilot flips the default transport to `'popup'`, this
|
|
28
|
-
* predicate and BOTH lanes above are deleted outright. Grepping this symbol
|
|
29
|
-
* finds every site that has to go.
|
|
30
|
-
*/
|
|
31
|
-
import type { WebAuthMode } from './types';
|
|
32
|
-
/**
|
|
33
|
-
* Whether a provider running `webAuthMode` may perform an SDK-initiated,
|
|
34
|
-
* non-gesture, full-page navigation to the IdP.
|
|
35
|
-
*
|
|
36
|
-
* `true` only for `'redirect'` — still the default and the compatibility path,
|
|
37
|
-
* whose behaviour must stay byte-for-byte unchanged.
|
|
38
|
-
*/
|
|
39
|
-
export declare function allowsAutomaticIdpRedirect(webAuthMode: WebAuthMode): boolean;
|
|
40
|
-
//# sourceMappingURL=legacyRedirectLanes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacyRedirectLanes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/oauth/legacyRedirectLanes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAE5E"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The sign-in ENTRY (`signin` / `add` views) — ONE primary action.
|
|
3
|
-
*
|
|
4
|
-
* Web: "Continue" opens the identity origin (`id.oxy.so`) in a popup, where the
|
|
5
|
-
* person signs in — or creates an account — with a passkey, and the account's
|
|
6
|
-
* self-custody identity is created or unsealed (one identity, two carriers). No
|
|
7
|
-
* philosophy up front: fingerprint, face or device PIN, and they are in. An
|
|
8
|
-
* account that lives on another device is one subordinate link away (Commons
|
|
9
|
-
* QR). Nothing auto-starts: a browser only opens a popup from a user gesture.
|
|
10
|
-
*
|
|
11
|
-
* Native: "Continue with Oxy" — the Commons flow (shared keychain, else the
|
|
12
|
-
* request Oxy routes to the person's Commons identity).
|
|
13
|
-
*
|
|
14
|
-
* Existing accounts still render ABOVE the CTA: "continue as one of these" is a
|
|
15
|
-
* choice of WHO, not of HOW.
|
|
16
|
-
*
|
|
17
|
-
* Signed in (the "Add another account" entry), a row is an account to switch
|
|
18
|
-
* to, and the current one carries its check. Signed out, nothing here is
|
|
19
|
-
* current: the device may still list an identity it holds (Commons' shared
|
|
20
|
-
* one), but THIS app has no session, so each row reads "Continue as @handle"
|
|
21
|
-
* and choosing it signs in (OxyHQ/oxy#1375 items 20 and 21).
|
|
22
|
-
*/
|
|
23
|
-
import type React from 'react';
|
|
24
|
-
import { type AccountDialogSnapshot, type SwitcherPrincipalRow } from '@oxy.so/core';
|
|
25
|
-
import type { OxyAuthChooserHandlers, SignInAlternatives, Theme, Translate } from './types.js';
|
|
26
|
-
interface SignInEntryViewProps {
|
|
27
|
-
snapshot: AccountDialogSnapshot;
|
|
28
|
-
/** The device's people, each with the accounts they may act as. */
|
|
29
|
-
principals: SwitcherPrincipalRow[];
|
|
30
|
-
theme: Theme;
|
|
31
|
-
t: Translate;
|
|
32
|
-
handlers: OxyAuthChooserHandlers;
|
|
33
|
-
/** Native's primary action. Starts the Commons flow; Oxy chooses the route from there. */
|
|
34
|
-
onContinueWithOxy: () => void;
|
|
35
|
-
alternatives: SignInAlternatives;
|
|
36
|
-
}
|
|
37
|
-
declare const SignInEntryView: React.FC<SignInEntryViewProps>;
|
|
38
|
-
export default SignInEntryView;
|
|
39
|
-
//# sourceMappingURL=SignInEntryView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignInEntryView.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/SignInEntryView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EACV,sBAAsB,EAEtB,kBAAkB,EAClB,KAAK,EACL,SAAS,EACV,MAAM,YAAS,CAAC;AAEjB,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,mEAAmE;IACnE,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC;IACb,CAAC,EAAE,SAAS,CAAC;IACb,QAAQ,EAAE,sBAAsB,CAAC;IACjC,0FAA0F;IAC1F,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,EAAE,kBAAkB,CAAC;CAClC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmGnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Account creation (`signup` view).
|
|
3
|
-
*
|
|
4
|
-
* Web: the account AND its self-custody identity are created at the identity
|
|
5
|
-
* origin (`id.oxy.so`), in the same window a passkey sign-in uses — never on
|
|
6
|
-
* this page, whatever its origin (one identity, two carriers). The sign-in
|
|
7
|
-
* entry's "create an account" link opens that window directly; this view is
|
|
8
|
-
* what `openAccountDialog('signup')` lands on, and offers the same one action.
|
|
9
|
-
*
|
|
10
|
-
* Native: Commons owns identity creation. Deep-link straight in when Commons is
|
|
11
|
-
* installed, else lead with the "Get Commons" acquisition CTA.
|
|
12
|
-
*/
|
|
13
|
-
import type React from 'react';
|
|
14
|
-
import type { AccountDialogSnapshot } from '@oxy.so/core';
|
|
15
|
-
import type { PasskeyMode, Theme, Translate } from './types.js';
|
|
16
|
-
interface SignUpViewProps {
|
|
17
|
-
snapshot: AccountDialogSnapshot;
|
|
18
|
-
theme: Theme;
|
|
19
|
-
t: Translate;
|
|
20
|
-
passkeyMode: PasskeyMode;
|
|
21
|
-
/** Open the identity-origin window — web's only creation path. */
|
|
22
|
-
onOpenHub: () => void;
|
|
23
|
-
/** Deep-link into Commons' own identity-creation screen (installed only). */
|
|
24
|
-
onCreateIdentityInCommons: () => void;
|
|
25
|
-
/** Open the Commons store listing / landing page for this platform. */
|
|
26
|
-
onGetCommons: () => void;
|
|
27
|
-
onBackToSignIn: () => void;
|
|
28
|
-
}
|
|
29
|
-
declare const SignUpView: React.FC<SignUpViewProps>;
|
|
30
|
-
export default SignUpView;
|
|
31
|
-
//# sourceMappingURL=SignUpView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpView.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/SignUpView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,YAAS,CAAC;AAE7D,UAAU,eAAe;IACvB,QAAQ,EAAE,qBAAqB,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,CAAC,EAAE,SAAS,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,kEAAkE;IAClE,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,6EAA6E;IAC7E,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqCzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Popup opener for the cross-origin passkey hub (b2).
|
|
3
|
-
*
|
|
4
|
-
* On a non-Oxy web origin (e.g. mention.earth) a WebAuthn ceremony can't run
|
|
5
|
-
* locally — the credential's RP ID is bound to `oxy.so`. Instead,
|
|
6
|
-
* `AccountDialogController.startPasskeyHubSignIn` opens a popup at the
|
|
7
|
-
* auth.oxy.so passkey hub, where the SAME ceremony IS a first-party operation.
|
|
8
|
-
*
|
|
9
|
-
* Kept in its own module (mirroring `oauthNavigation.ts`'s
|
|
10
|
-
* `redirectToAuthorize`) so `window.open` sits behind a plain function the
|
|
11
|
-
* controller wiring in `OxyContext` can inject without touching `window`
|
|
12
|
-
* itself, and so a test can substitute a fake opener.
|
|
13
|
-
*/
|
|
14
|
-
import type { PopupWindowHandle } from '@oxy.so/core';
|
|
15
|
-
/**
|
|
16
|
-
* Open a new, EMPTY popup window. Must be called SYNCHRONOUSLY from within a
|
|
17
|
-
* user-gesture handler (before any `await`) — opening it after an async call
|
|
18
|
-
* loses the gesture attribution and the browser silently blocks it. Returns
|
|
19
|
-
* `null` when blocked, or when there is no DOM `window` (native/SSR — the
|
|
20
|
-
* hub-popup flow does not apply there).
|
|
21
|
-
*/
|
|
22
|
-
export declare function openPasskeyHubPopup(): PopupWindowHandle | null;
|
|
23
|
-
//# sourceMappingURL=passkeyHubPopup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"passkeyHubPopup.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/passkeyHubPopup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,iBAAiB,GAAG,IAAI,CAI9D"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The legacy, redirect-mode-only lanes that navigate the RP's TOP-LEVEL window
|
|
3
|
-
* to the IdP without a user gesture.
|
|
4
|
-
*
|
|
5
|
-
* `webAuthMode: 'popup'` exists to guarantee exactly one thing: the relying
|
|
6
|
-
* party never leaves its route. Two mechanics in this SDK break that guarantee,
|
|
7
|
-
* because each replaces the whole document on its own initiative:
|
|
8
|
-
*
|
|
9
|
-
* 1. **Cold-boot silent restore** — a full-page `prompt=none` authorize bounce
|
|
10
|
-
* to `auth.oxy.so` when the device-secret mint finds no local session
|
|
11
|
-
* (`maybeStartSilentOAuthRestore`, called from `runProviderColdBoot`).
|
|
12
|
-
* 2. **Post-sign-in hub sync** — a full-page hop to `auth.oxy.so/sync` that
|
|
13
|
-
* plants this device's credential on the IdP hub so OTHER origins can later
|
|
14
|
-
* run lane 1 (`syncHubAfterSignIn`, called from the `commitSession` funnel).
|
|
15
|
-
*
|
|
16
|
-
* Both belong to the redirect transport and are kept only for the migration
|
|
17
|
-
* window (issue #691, "Cold boot and cross-domain behavior"). In popup mode a
|
|
18
|
-
* domain with no local credential simply resolves SIGNED OUT, and the user's
|
|
19
|
-
* next explicit "Continue with Oxy" opens the popup — from a real user gesture,
|
|
20
|
-
* never automatically.
|
|
21
|
-
*
|
|
22
|
-
* NOT covered here, and correctly enabled in BOTH modes: navigations the user
|
|
23
|
-
* asked for. When the browser blocks the popup, `startWebOAuthSignIn` still
|
|
24
|
-
* falls back to a full-page redirect rather than dead-ending the sign-in, and
|
|
25
|
-
* `tryCompleteOAuthReturn` still consumes a `?code=` that is already on the URL.
|
|
26
|
-
*
|
|
27
|
-
* PHASE 7b: once the pilot flips the default transport to `'popup'`, this
|
|
28
|
-
* predicate and BOTH lanes above are deleted outright. Grepping this symbol
|
|
29
|
-
* finds every site that has to go.
|
|
30
|
-
*/
|
|
31
|
-
import type { WebAuthMode } from './types.js';
|
|
32
|
-
/**
|
|
33
|
-
* Whether a provider running `webAuthMode` may perform an SDK-initiated,
|
|
34
|
-
* non-gesture, full-page navigation to the IdP.
|
|
35
|
-
*
|
|
36
|
-
* `true` only for `'redirect'` — still the default and the compatibility path,
|
|
37
|
-
* whose behaviour must stay byte-for-byte unchanged.
|
|
38
|
-
*/
|
|
39
|
-
export declare function allowsAutomaticIdpRedirect(webAuthMode: WebAuthMode): boolean;
|
|
40
|
-
//# sourceMappingURL=legacyRedirectLanes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacyRedirectLanes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/oauth/legacyRedirectLanes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAE5E"}
|