@oxyhq/services 22.12.4 → 22.12.7
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 +16 -46
- package/lib/commonjs/index.js +84 -10
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/notifications/deviceNotifications.js +380 -0
- package/lib/commonjs/notifications/deviceNotifications.js.map +1 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +51 -9
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/client.js +0 -13
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/AvatarCameraBadge.js +3 -2
- package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +14 -3
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +70 -1121
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +50 -12
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +4 -4
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +74 -40
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js +147 -0
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileButton.js +4 -3
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/SettingsIcon.js +3 -2
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +527 -0
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js +90 -0
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +106 -0
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/SignUpView.js +188 -0
- package/lib/commonjs/ui/components/authChooser/SignUpView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +61 -0
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/primitives.js +170 -0
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js +153 -0
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/signInProgress.js +54 -0
- package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -0
- package/lib/commonjs/ui/components/{oxyAuthChooserStyles.js → authChooser/styles.js} +19 -1
- package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/types.js +70 -0
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/useUsernameAvailability.js +50 -0
- package/lib/commonjs/ui/components/authChooser/useUsernameAvailability.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +3 -2
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +3 -2
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +15 -14
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +6 -5
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +3 -2
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +6 -6
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +5 -5
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +10 -9
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +4 -3
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +6 -5
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +200 -29
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/commitSessionFlow.js +43 -0
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +13 -5
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +6 -1
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js.map +1 -1
- package/lib/commonjs/ui/index.js +0 -13
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserAuthTransport.js +168 -0
- package/lib/commonjs/ui/oauth/browserAuthTransport.js.map +1 -0
- package/lib/commonjs/ui/oauth/completeOAuthCode.js +78 -0
- package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -0
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js +48 -0
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthHandshake.js +53 -0
- package/lib/commonjs/ui/oauth/oauthHandshake.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthPopup.js +229 -0
- package/lib/commonjs/ui/oauth/oauthPopup.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthPopupMessages.js +141 -0
- package/lib/commonjs/ui/oauth/oauthPopupMessages.js.map +1 -0
- package/lib/commonjs/ui/oauth/types.js +2 -0
- package/lib/commonjs/ui/oauth/types.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +4 -3
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +7 -6
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +4 -3
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +3 -2
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +11 -10
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +19 -18
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -3
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +2 -2
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +3 -3
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +9 -8
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +10 -10
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +3 -2
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +4 -3
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +4 -3
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +4 -3
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +3 -2
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +4 -3
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +4 -3
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +2 -5
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js +6 -75
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +11 -3
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
- package/lib/commonjs/ui/session/identityBinding.js +95 -0
- package/lib/commonjs/ui/session/identityBinding.js.map +1 -0
- package/lib/commonjs/ui/session/index.js +13 -0
- package/lib/commonjs/ui/session/index.js.map +1 -1
- package/lib/commonjs/ui/session/nativeSecureStorage.js +90 -0
- package/lib/commonjs/ui/session/nativeSecureStorage.js.map +1 -0
- package/lib/commonjs/ui/session/tokenTransport.js +11 -1
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
- package/lib/commonjs/ui/utils/crossOriginRestore.js +3 -2
- package/lib/commonjs/ui/utils/crossOriginRestore.js.map +1 -1
- package/lib/commonjs/ui/utils/deliveryPlatform.js +58 -0
- package/lib/commonjs/ui/utils/deliveryPlatform.js.map +1 -0
- package/lib/commonjs/ui/utils/oauthReturn.js +70 -46
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -1
- package/lib/module/index.js +27 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/notifications/deviceNotifications.js +371 -0
- package/lib/module/notifications/deviceNotifications.js.map +1 -0
- package/lib/module/ui/boot/runProviderColdBoot.js +51 -9
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/client.js +0 -1
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/AvatarCameraBadge.js +1 -1
- package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +14 -3
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +74 -1126
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +50 -12
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +4 -4
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +76 -42
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInRequestSurface.js +141 -0
- package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -0
- package/lib/module/ui/components/ProfileButton.js +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js +1 -1
- package/lib/module/ui/components/SettingsIcon.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +523 -0
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -0
- package/lib/module/ui/components/authChooser/SignInEntryView.js +85 -0
- package/lib/module/ui/components/authChooser/SignInEntryView.js.map +1 -0
- package/lib/module/ui/components/authChooser/SignInRequestView.js +101 -0
- package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -0
- package/lib/module/ui/components/authChooser/SignUpView.js +184 -0
- package/lib/module/ui/components/authChooser/SignUpView.js.map +1 -0
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js +57 -0
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js.map +1 -0
- package/lib/module/ui/components/authChooser/primitives.js +163 -0
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -0
- package/lib/module/ui/components/authChooser/requestSurfaces.js +143 -0
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -0
- package/lib/module/ui/components/authChooser/signInProgress.js +50 -0
- package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -0
- package/lib/module/ui/components/{oxyAuthChooserStyles.js → authChooser/styles.js} +19 -1
- package/lib/module/ui/components/authChooser/styles.js.map +1 -0
- package/lib/module/ui/components/authChooser/types.js +66 -0
- package/lib/module/ui/components/authChooser/types.js.map +1 -0
- package/lib/module/ui/components/authChooser/useUsernameAvailability.js +46 -0
- package/lib/module/ui/components/authChooser/useUsernameAvailability.js.map +1 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +203 -32
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/commitSessionFlow.js +42 -0
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js +13 -5
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/useSwitchableAccounts.js +6 -1
- package/lib/module/ui/hooks/useSwitchableAccounts.js.map +1 -1
- package/lib/module/ui/index.js +0 -1
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/oauth/browserAuthTransport.js +165 -0
- package/lib/module/ui/oauth/browserAuthTransport.js.map +1 -0
- package/lib/module/ui/oauth/completeOAuthCode.js +75 -0
- package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -0
- package/lib/module/ui/oauth/legacyRedirectLanes.js +44 -0
- package/lib/module/ui/oauth/legacyRedirectLanes.js.map +1 -0
- package/lib/module/ui/oauth/oauthHandshake.js +50 -0
- package/lib/module/ui/oauth/oauthHandshake.js.map +1 -0
- package/lib/module/ui/oauth/oauthPopup.js +221 -0
- package/lib/module/ui/oauth/oauthPopup.js.map +1 -0
- package/lib/module/ui/oauth/oauthPopupMessages.js +135 -0
- package/lib/module/ui/oauth/oauthPopupMessages.js.map +1 -0
- package/lib/module/ui/oauth/types.js +2 -0
- package/lib/module/ui/oauth/types.js.map +1 -0
- package/lib/module/ui/screens/AccountMembersScreen.js +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +1 -1
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +2 -1
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +2 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.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/screens/trust/TrustRewardsScreen.js +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/server.js +0 -2
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/authStore.js +5 -75
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +11 -3
- package/lib/module/ui/session/createSessionClient.js.map +1 -1
- package/lib/module/ui/session/identityBinding.js +89 -0
- package/lib/module/ui/session/identityBinding.js.map +1 -0
- package/lib/module/ui/session/index.js +5 -2
- package/lib/module/ui/session/index.js.map +1 -1
- package/lib/module/ui/session/nativeSecureStorage.js +88 -0
- package/lib/module/ui/session/nativeSecureStorage.js.map +1 -0
- package/lib/module/ui/session/tokenTransport.js +11 -1
- package/lib/module/ui/session/tokenTransport.js.map +1 -1
- package/lib/module/ui/utils/crossOriginRestore.js +4 -3
- package/lib/module/ui/utils/crossOriginRestore.js.map +1 -1
- package/lib/module/ui/utils/deliveryPlatform.js +55 -0
- package/lib/module/ui/utils/deliveryPlatform.js.map +1 -0
- package/lib/module/ui/utils/oauthReturn.js +70 -46
- package/lib/module/ui/utils/oauthReturn.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +9 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts +141 -0
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +34 -2
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +0 -1
- package/lib/typescript/commonjs/ui/client.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 +16 -29
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +17 -12
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +108 -0
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts +32 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignUpView.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignUpView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +36 -0
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +55 -0
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +58 -0
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -0
- package/lib/typescript/{module/ui/components/oxyAuthChooserStyles.d.ts → commonjs/ui/components/authChooser/styles.d.ts} +19 -1
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +103 -0
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/useUsernameAvailability.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/authChooser/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts +40 -0
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +44 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +7 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +0 -1
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts +56 -0
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/completeOAuthCode.d.ts +49 -0
- package/lib/typescript/commonjs/ui/oauth/completeOAuthCode.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts +40 -0
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts +50 -0
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts +77 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopupMessages.d.ts +67 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopupMessages.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/types.d.ts +176 -0
- package/lib/typescript/commonjs/ui/oauth/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +0 -2
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +3 -7
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +8 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +66 -0
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/index.d.ts +6 -2
- package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +25 -0
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +8 -1
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +44 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/deliveryPlatform.d.ts +33 -0
- package/lib/typescript/commonjs/ui/utils/deliveryPlatform.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +30 -16
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +9 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/notifications/deviceNotifications.d.ts +141 -0
- package/lib/typescript/module/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +34 -2
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +0 -1
- package/lib/typescript/module/ui/client.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 +16 -29
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +17 -12
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +108 -0
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +1 -1
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +38 -0
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts +32 -0
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +34 -0
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/SignUpView.d.ts +34 -0
- package/lib/typescript/module/ui/components/authChooser/SignUpView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +36 -0
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +55 -0
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +58 -0
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +26 -0
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -0
- package/lib/typescript/{commonjs/ui/components/oxyAuthChooserStyles.d.ts → module/ui/components/authChooser/styles.d.ts} +19 -1
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +103 -0
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/useUsernameAvailability.d.ts +16 -0
- package/lib/typescript/module/ui/components/authChooser/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/types.d.ts +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts +40 -0
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +44 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +7 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +0 -1
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts +56 -0
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/completeOAuthCode.d.ts +49 -0
- package/lib/typescript/module/ui/oauth/completeOAuthCode.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts +40 -0
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts +50 -0
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts +77 -0
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/oauthPopupMessages.d.ts +67 -0
- package/lib/typescript/module/ui/oauth/oauthPopupMessages.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/types.d.ts +176 -0
- package/lib/typescript/module/ui/oauth/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +0 -2
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts +3 -7
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +8 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/identityBinding.d.ts +66 -0
- package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/index.d.ts +6 -2
- package/lib/typescript/module/ui/session/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +25 -0
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/tokenTransport.d.ts +8 -1
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +44 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/deliveryPlatform.d.ts +33 -0
- package/lib/typescript/module/ui/utils/deliveryPlatform.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts +30 -16
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -1
- package/package.json +15 -7
- package/src/index.ts +50 -5
- package/src/notifications/deviceNotifications.ts +395 -0
- package/src/ui/boot/__tests__/coldBootWebAuthMode.test.ts +281 -0
- package/src/ui/boot/runProviderColdBoot.ts +83 -13
- package/src/ui/client.ts +0 -1
- package/src/ui/components/AvatarCameraBadge.tsx +1 -1
- package/src/ui/components/OxyAccountDialogScreen.tsx +20 -3
- package/src/ui/components/OxyAuthChooser.tsx +91 -1230
- package/src/ui/components/OxyConsentScreen.tsx +56 -13
- package/src/ui/components/OxyProvider.tsx +4 -4
- package/src/ui/components/OxySignInButton.tsx +119 -78
- package/src/ui/components/OxySignInRequestSurface.tsx +202 -0
- package/src/ui/components/ProfileButton.tsx +1 -1
- package/src/ui/components/SettingsIcon.tsx +1 -1
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +27 -0
- package/src/ui/components/authChooser/AccountsMenuView.tsx +569 -0
- package/src/ui/components/authChooser/SignInEntryView.tsx +121 -0
- package/src/ui/components/authChooser/SignInRequestView.tsx +130 -0
- package/src/ui/components/authChooser/SignUpView.tsx +174 -0
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +73 -0
- package/src/ui/components/authChooser/primitives.tsx +144 -0
- package/src/ui/components/authChooser/requestSurfaces.tsx +120 -0
- package/src/ui/components/authChooser/signInProgress.ts +54 -0
- package/src/ui/components/{oxyAuthChooserStyles.ts → authChooser/styles.ts} +18 -0
- package/src/ui/components/authChooser/types.ts +120 -0
- package/src/ui/components/authChooser/useUsernameAvailability.ts +60 -0
- package/src/ui/components/fileManagement/AnimatedButton.tsx +1 -1
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +1 -1
- package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
- package/src/ui/components/modals/DeleteAccountModal.tsx +1 -1
- package/src/ui/components/payment/PaymentDetailsStep.tsx +1 -1
- package/src/ui/components/payment/PaymentMethodStep.tsx +1 -1
- package/src/ui/components/payment/PaymentReviewStep.tsx +1 -1
- package/src/ui/components/payment/PaymentSuccessStep.tsx +1 -1
- package/src/ui/components/payment/PaymentSummaryStep.tsx +1 -1
- package/src/ui/components/payment/types.ts +1 -1
- package/src/ui/context/OxyContext.tsx +220 -24
- package/src/ui/context/__tests__/commitSessionFlow.test.ts +89 -0
- package/src/ui/context/commitSessionFlow.ts +61 -0
- package/src/ui/context/oxyContextTypes.ts +45 -1
- package/src/ui/context/useOxyAccountGraph.ts +19 -5
- package/src/ui/hooks/useSwitchableAccounts.ts +12 -1
- package/src/ui/index.ts +0 -1
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +335 -0
- package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +142 -0
- package/src/ui/oauth/__tests__/oauthPopup.test.ts +326 -0
- package/src/ui/oauth/__tests__/oauthPopupMessages.test.ts +189 -0
- package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +174 -0
- package/src/ui/oauth/browserAuthTransport.ts +187 -0
- package/src/ui/oauth/completeOAuthCode.ts +93 -0
- package/src/ui/oauth/legacyRedirectLanes.ts +43 -0
- package/src/ui/oauth/oauthHandshake.ts +74 -0
- package/src/ui/oauth/oauthPopup.ts +219 -0
- package/src/ui/oauth/oauthPopupMessages.ts +136 -0
- package/src/ui/oauth/types.ts +150 -0
- package/src/ui/screens/AccountMembersScreen.tsx +1 -1
- package/src/ui/screens/CreateAccountScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FAQScreen.tsx +1 -1
- package/src/ui/screens/FeedbackScreen.tsx +2 -1
- package/src/ui/screens/FileManagementScreen.tsx +2 -1
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -1
- package/src/ui/screens/ManageAccountScreen.tsx +1 -1
- package/src/ui/screens/PaymentGatewayScreen.tsx +1 -1
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +1 -1
- package/src/ui/screens/ProfileScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +1 -1
- package/src/ui/screens/WelcomeNewUserScreen.tsx +1 -1
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +1 -1
- package/src/ui/screens/fileManagement/FileListSection.tsx +1 -1
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +2 -1
- package/src/ui/screens/fileManagement/UploadBar.tsx +1 -1
- package/src/ui/screens/trust/TrustCenterScreen.tsx +1 -1
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +1 -1
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +1 -1
- package/src/ui/server.ts +0 -2
- package/src/ui/session/__tests__/createSessionClient.test.ts +26 -0
- package/src/ui/session/__tests__/tokenTransport.test.ts +34 -0
- package/src/ui/session/authStore.ts +5 -89
- package/src/ui/session/createSessionClient.ts +15 -2
- package/src/ui/session/identityBinding.ts +116 -0
- package/src/ui/session/index.ts +6 -2
- package/src/ui/session/nativeSecureStorage.ts +98 -0
- package/src/ui/session/tokenTransport.ts +14 -1
- package/src/ui/types/navigation.ts +44 -1
- package/src/ui/utils/crossOriginRestore.ts +4 -7
- package/src/ui/utils/deliveryPlatform.ts +65 -0
- package/src/ui/utils/fileManagement.ts +1 -1
- package/src/ui/utils/oauthReturn.ts +74 -65
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/ui/components/FontLoader.js +0 -35
- package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
- package/lib/commonjs/ui/components/FontLoader.native.js +0 -88
- package/lib/commonjs/ui/components/FontLoader.native.js.map +0 -1
- package/lib/commonjs/ui/components/oxyAuthChooserStyles.js.map +0 -1
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/ui/components/FontLoader.js +0 -29
- package/lib/module/ui/components/FontLoader.js.map +0 -1
- package/lib/module/ui/components/FontLoader.native.js +0 -83
- package/lib/module/ui/components/FontLoader.native.js.map +0 -1
- package/lib/module/ui/components/oxyAuthChooserStyles.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.native.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/FontLoader.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/FontLoader.d.ts +0 -24
- package/lib/typescript/module/ui/components/FontLoader.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/FontLoader.native.d.ts +0 -13
- package/lib/typescript/module/ui/components/FontLoader.native.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts.map +0 -1
- package/src/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/src/ui/components/FontLoader.native.tsx +0 -88
- package/src/ui/components/FontLoader.tsx +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_button","_TroubleDisclosure","_interopRequireDefault","_primitives","_styles","_jsxRuntime","e","__esModule","default","SignInEntryView","snapshot","theme","t","handlers","onContinueWithOxy","alternatives","troubleActions","key","label","onPress","onShowQr","passkeyAvailable","passkeyPending","onSignInWithPasskey","disabled","onGetCommons","jsxs","View","style","styles","signInBlock","children","accounts","length","rows","map","account","jsx","AccountRow","switching","switchingAccountId","accountId","onSwitch","Dividerish","Button","variant","primaryButton","testID","SubtleLink","onCreateAccount","actions","revealed","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/S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tCF,MAAM,EAAC;IAAqB,CAC7B,CAAC,eAEF,IAAA1C,WAAA,CAAAgC,GAAA,EAACpC,kBAAA,CAAAO,OAAiB;MAAC0C,OAAO,EAAElC,cAAe;MAACmC,QAAQ,EAAE,KAAM;MAACxC,KAAK,EAAEA,KAAM;MAACC,CAAC,EAAEA;IAAE,CAAE,CAAC;EAAA,CAC/E,CAAC;AAEX,CAAC;AAAC,IAAAwC,QAAA,GAAAC,OAAA,CAAA7C,OAAA,GAEaC,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _OxySignInRequestSurface = _interopRequireDefault(require("../OxySignInRequestSurface.js"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
/**
|
|
12
|
+
* The ACTIVE REQUEST surface (`qr` view) as the account dialog drives it —
|
|
13
|
+
* `AccountDialogController`'s device flow bound to the shared, presentational
|
|
14
|
+
* {@link OxySignInRequestSurface} (issue #691, Phase 5).
|
|
15
|
+
*
|
|
16
|
+
* This module owns WIRING only. Every pixel comes from the shared surface, which
|
|
17
|
+
* the auth.oxy.so IdP mounts from its own OAuth-bound request; there is one
|
|
18
|
+
* implementation of the request presentation, not two. What lives here is what
|
|
19
|
+
* only the account dialog knows:
|
|
20
|
+
*
|
|
21
|
+
* - which of the controller's facts map onto the surface's props;
|
|
22
|
+
* - which alternatives are genuine ones for the CURRENT presentation (the
|
|
23
|
+
* passkey ceremony is pointless once the request is already being confirmed,
|
|
24
|
+
* and a QR link is redundant while the QR itself is the primary visual);
|
|
25
|
+
* - the one piece of local intent the controller has no opinion on: leaving the
|
|
26
|
+
* acquisition surface via "I have Commons on another device".
|
|
27
|
+
*
|
|
28
|
+
* Failures are NOT rendered here. The container toasts them at the point they
|
|
29
|
+
* arrive (owner mandate: no error renders inline inside the dialog); this view
|
|
30
|
+
* only reports that the request failed, so the surface can offer "Try again".
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
const SignInRequestView = ({
|
|
34
|
+
snapshot,
|
|
35
|
+
t,
|
|
36
|
+
onRetry,
|
|
37
|
+
alternatives
|
|
38
|
+
}) => {
|
|
39
|
+
const {
|
|
40
|
+
signIn,
|
|
41
|
+
commonsAvailability
|
|
42
|
+
} = snapshot;
|
|
43
|
+
// Set only from the disclosure's own "I have Commons on another device" —
|
|
44
|
+
// an explicit user choice to leave the acquisition surface, never inferred.
|
|
45
|
+
const [qrRequested, setQrRequested] = (0, _react.useState)(false);
|
|
46
|
+
const failed = signIn.phase === 'error';
|
|
47
|
+
// A same-device QR is a dead end without Commons, so the acquisition surface
|
|
48
|
+
// leads — until the user explicitly asks for the QR anyway.
|
|
49
|
+
const acquiring = !failed && commonsAvailability === 'unavailable' && !qrRequested;
|
|
50
|
+
|
|
51
|
+
// A ceremony is pointless once the request is already being confirmed, and a
|
|
52
|
+
// ceremony FAILURE is toasted by the container — this link never renders an
|
|
53
|
+
// error of its own (owner mandate).
|
|
54
|
+
const passkeyAction = alternatives.passkeyAvailable && signIn.phase !== 'authorized' && signIn.phase !== 'completed' ? [{
|
|
55
|
+
key: 'passkey-signin-link',
|
|
56
|
+
label: alternatives.passkeyPending ? t('accountSwitcher.passkeySigningIn') : t('accountSwitcher.useIdentityOnDevice'),
|
|
57
|
+
onPress: alternatives.onSignInWithPasskey,
|
|
58
|
+
disabled: alternatives.passkeyPending
|
|
59
|
+
}] : [];
|
|
60
|
+
const troubleActions = (() => {
|
|
61
|
+
// Nothing about the chosen route is actionable any more — only the
|
|
62
|
+
// authentication alternatives are.
|
|
63
|
+
if (failed) return passkeyAction;
|
|
64
|
+
if (acquiring) {
|
|
65
|
+
return [{
|
|
66
|
+
key: 'show-qr-anyway-link',
|
|
67
|
+
label: t('accountSwitcher.showQrAnyway'),
|
|
68
|
+
onPress: () => setQrRequested(true)
|
|
69
|
+
}, ...passkeyAction];
|
|
70
|
+
}
|
|
71
|
+
return [
|
|
72
|
+
// Redundant while the QR already IS the primary surface.
|
|
73
|
+
...(signIn.route === 'qr' ? [] : [{
|
|
74
|
+
key: 'scan-qr-link',
|
|
75
|
+
label: t('accountSwitcher.scanQr'),
|
|
76
|
+
onPress: alternatives.onShowQr
|
|
77
|
+
}]), ...passkeyAction, {
|
|
78
|
+
key: 'get-commons-link',
|
|
79
|
+
label: t('accountSwitcher.getCommons'),
|
|
80
|
+
onPress: alternatives.onGetCommons
|
|
81
|
+
}];
|
|
82
|
+
})();
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxySignInRequestSurface.default, {
|
|
84
|
+
route: signIn.route,
|
|
85
|
+
progress: signIn.progress,
|
|
86
|
+
qrPayload: signIn.qrPayload,
|
|
87
|
+
routeFailed: signIn.routeFailed,
|
|
88
|
+
failed: failed,
|
|
89
|
+
onRetry: onRetry,
|
|
90
|
+
onAcquireCommons: acquiring ? alternatives.onGetCommons : undefined,
|
|
91
|
+
subordinate: [
|
|
92
|
+
// Account CREATION is not an authentication method, and on web this
|
|
93
|
+
// surface is the FIRST one a signed-out user sees (the entry auto-starts
|
|
94
|
+
// straight through it) — so the way in for someone with no Oxy ID stays
|
|
95
|
+
// visible as a subordinate link rather than hiding behind a
|
|
96
|
+
// troubleshooting affordance.
|
|
97
|
+
{
|
|
98
|
+
key: 'create-account-link',
|
|
99
|
+
label: t('signin.createAccountLink'),
|
|
100
|
+
onPress: alternatives.onCreateAccount
|
|
101
|
+
}],
|
|
102
|
+
alternatives: troubleActions
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
var _default = exports.default = SignInRequestView;
|
|
106
|
+
//# sourceMappingURL=SignInRequestView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_OxySignInRequestSurface","_interopRequireDefault","_jsxRuntime","e","__esModule","default","SignInRequestView","snapshot","t","onRetry","alternatives","signIn","commonsAvailability","qrRequested","setQrRequested","useState","failed","phase","acquiring","passkeyAction","passkeyAvailable","key","label","passkeyPending","onPress","onSignInWithPasskey","disabled","troubleActions","route","onShowQr","onGetCommons","jsx","progress","qrPayload","routeFailed","onAcquireCommons","undefined","subordinate","onCreateAccount","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/SignInRequestView.tsx"],"mappings":";;;;;;AAuBA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiE,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAzBjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA,MAAMG,iBAAmD,GAAGA,CAAC;EAC3DC,QAAQ;EACRC,CAAC;EACDC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC,MAAM;IAAEC;EAAoB,CAAC,GAAGL,QAAQ;EAChD;EACA;EACA,MAAM,CAACM,WAAW,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAErD,MAAMC,MAAM,GAAGL,MAAM,CAACM,KAAK,KAAK,OAAO;EACvC;EACA;EACA,MAAMC,SAAS,GAAG,CAACF,MAAM,IAAIJ,mBAAmB,KAAK,aAAa,IAAI,CAACC,WAAW;;EAElF;EACA;EACA;EACA,MAAMM,aAAuC,GAC3CT,YAAY,CAACU,gBAAgB,IAAIT,MAAM,CAACM,KAAK,KAAK,YAAY,IAAIN,MAAM,CAACM,KAAK,KAAK,WAAW,GAC1F,CACE;IACEI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AAS,GAAGR,YAAY,CAACoB,YAAY,GAAGM,SAAU;IACpEC,WAAW,EAAE;IACX;IACA;IACA;IACA;IACA;IACA;MACEhB,GAAG,EAAE,qBAAqB;MAC1BC,KAAK,EAAEd,CAAC,CAAC,0BAA0B,CAAC;MACpCgB,OAAO,EAAEd,YAAY,CAAC4B;IACxB,CAAC,CACD;IACF5B,YAAY,EAAEiB;EAAe,CAC9B,CAAC;AAEN,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,CAAAnC,OAAA,GAEaC,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _button = require("@oxyhq/bloom/button");
|
|
10
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
11
|
+
var _isWebBrowser = require("../../utils/isWebBrowser.js");
|
|
12
|
+
var _primitives = require("./primitives.js");
|
|
13
|
+
var _styles = require("./styles.js");
|
|
14
|
+
var _useUsernameAvailability = require("./useUsernameAvailability.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Account creation (`signup` view).
|
|
18
|
+
*
|
|
19
|
+
* Commons is ALWAYS the priority path (owner mandate) and leads everywhere it
|
|
20
|
+
* appears: native shows only "Create your identity in Commons" (or "Get Commons"
|
|
21
|
+
* first, when it is not installed); web on a first-party Oxy origin leads with
|
|
22
|
+
* the SAME "Get Commons" CTA, with inline passkey creation offered UNDERNEATH as
|
|
23
|
+
* the de-emphasized "don't want to install anything" alternative — never
|
|
24
|
+
* co-equal, never a competing button. Anywhere else (a non-Oxy web origin,
|
|
25
|
+
* before the b2 hub-relay ships) shows an honest "not available here yet"
|
|
26
|
+
* handoff instead of a broken button.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
const SignUpView = ({
|
|
30
|
+
snapshot,
|
|
31
|
+
theme,
|
|
32
|
+
t,
|
|
33
|
+
oxyServices,
|
|
34
|
+
passkeyMode,
|
|
35
|
+
onCreateWithPasskey,
|
|
36
|
+
createPending,
|
|
37
|
+
onOpenHub,
|
|
38
|
+
onCreateIdentityInCommons,
|
|
39
|
+
onGetCommons,
|
|
40
|
+
onBackToSignIn
|
|
41
|
+
}) => {
|
|
42
|
+
const [username, setUsername] = (0, _react.useState)('');
|
|
43
|
+
const {
|
|
44
|
+
status: usernameStatus,
|
|
45
|
+
check: checkUsername
|
|
46
|
+
} = (0, _useUsernameAvailability.useUsernameAvailability)(oxyServices, t);
|
|
47
|
+
const canSubmit = username.trim().length >= 3 && usernameStatus === 'available' && !createPending;
|
|
48
|
+
|
|
49
|
+
// Native — Commons owns identity creation. Deep-link straight in when it is
|
|
50
|
+
// installed, else lead with the same "Get Commons" acquisition CTA.
|
|
51
|
+
if (!(0, _isWebBrowser.isWebBrowser)()) {
|
|
52
|
+
const commonsInstalled = snapshot.commonsAvailability === 'available';
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
54
|
+
style: _styles.authChooserStyles.centeredBlock,
|
|
55
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
56
|
+
variant: "primary",
|
|
57
|
+
onPress: commonsInstalled ? onCreateIdentityInCommons : onGetCommons,
|
|
58
|
+
style: _styles.authChooserStyles.primaryButton,
|
|
59
|
+
children: commonsInstalled ? t('signup.createInCommons') : t('accountSwitcher.getCommons')
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
|
|
61
|
+
label: t('signup.backToSignInLink'),
|
|
62
|
+
theme: theme,
|
|
63
|
+
onPress: onBackToSignIn
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Web, first-party Oxy origin. Commons leads with a "Get Commons" CTA; passkey
|
|
69
|
+
// creation is the de-emphasized alternative underneath for someone who doesn't
|
|
70
|
+
// want to install anything — a secondary button introduced by its own "No
|
|
71
|
+
// Commons?" framing, the same subordination the sign-in surfaces use.
|
|
72
|
+
if (passkeyMode === 'direct') {
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
74
|
+
style: _styles.authChooserStyles.signInBlock,
|
|
75
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
76
|
+
style: [_styles.authChooserStyles.qrHeadline, {
|
|
77
|
+
color: theme.colors.text
|
|
78
|
+
}],
|
|
79
|
+
children: t('signup.commonsHeadline')
|
|
80
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
81
|
+
style: [_styles.authChooserStyles.mutedText, {
|
|
82
|
+
color: theme.colors.textSecondary
|
|
83
|
+
}],
|
|
84
|
+
children: t('signup.commonsExplainer')
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
86
|
+
variant: "primary",
|
|
87
|
+
onPress: onGetCommons,
|
|
88
|
+
style: _styles.authChooserStyles.primaryButton,
|
|
89
|
+
children: t('accountSwitcher.getCommons')
|
|
90
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Dividerish, {
|
|
91
|
+
theme: theme,
|
|
92
|
+
label: t('signin.or')
|
|
93
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
94
|
+
style: [_styles.authChooserStyles.mutedText, {
|
|
95
|
+
color: theme.colors.textSecondary
|
|
96
|
+
}],
|
|
97
|
+
children: t('signup.passkeyAlternative')
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
99
|
+
style: [_styles.authChooserStyles.usernameInput, {
|
|
100
|
+
borderColor: theme.colors.border,
|
|
101
|
+
color: theme.colors.text
|
|
102
|
+
}],
|
|
103
|
+
placeholder: t('signup.usernamePlaceholder'),
|
|
104
|
+
placeholderTextColor: theme.colors.textSecondary,
|
|
105
|
+
value: username,
|
|
106
|
+
autoCapitalize: "none",
|
|
107
|
+
autoCorrect: false,
|
|
108
|
+
autoComplete: "username",
|
|
109
|
+
onChangeText: value => {
|
|
110
|
+
setUsername(value);
|
|
111
|
+
checkUsername(value.trim());
|
|
112
|
+
},
|
|
113
|
+
testID: "signup-username-input"
|
|
114
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(UsernameStatusText, {
|
|
115
|
+
status: usernameStatus,
|
|
116
|
+
theme: theme,
|
|
117
|
+
t: t
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
119
|
+
variant: "secondary",
|
|
120
|
+
onPress: () => onCreateWithPasskey(username.trim()),
|
|
121
|
+
disabled: !canSubmit,
|
|
122
|
+
style: _styles.authChooserStyles.secondaryButton,
|
|
123
|
+
testID: "signup-create-button",
|
|
124
|
+
children: createPending ? t('signup.creating') : t('signup.createAccount')
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
|
|
126
|
+
label: t('signup.backToSignInLink'),
|
|
127
|
+
theme: theme,
|
|
128
|
+
onPress: onBackToSignIn
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Web, non-Oxy origin (b2): a passkey ceremony cannot run locally here — the
|
|
134
|
+
// same WebAuthn RP-ID boundary the sign-in surfaces hit — so this opens the
|
|
135
|
+
// auth.oxy.so hub popup. Completing EITHER a sign-in OR a fresh sign-up there
|
|
136
|
+
// relays the resulting session back through the SAME poll/socket engine.
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
138
|
+
style: _styles.authChooserStyles.centeredBlock,
|
|
139
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
140
|
+
style: [_styles.authChooserStyles.mutedText, {
|
|
141
|
+
color: theme.colors.textSecondary
|
|
142
|
+
}],
|
|
143
|
+
children: t('signup.hubExplainer')
|
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
145
|
+
variant: "primary",
|
|
146
|
+
onPress: onOpenHub,
|
|
147
|
+
style: _styles.authChooserStyles.primaryButton,
|
|
148
|
+
children: t('signup.continueInWindow')
|
|
149
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
|
|
150
|
+
label: t('signup.backToSignInLink'),
|
|
151
|
+
theme: theme,
|
|
152
|
+
onPress: onBackToSignIn
|
|
153
|
+
})]
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/** The inline availability verdict. Network FAILURES are toasted, never shown here. */
|
|
158
|
+
const UsernameStatusText = ({
|
|
159
|
+
status,
|
|
160
|
+
theme,
|
|
161
|
+
t
|
|
162
|
+
}) => {
|
|
163
|
+
if (status === 'idle') return null;
|
|
164
|
+
if (status === 'checking') {
|
|
165
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
166
|
+
style: [_styles.authChooserStyles.mutedText, {
|
|
167
|
+
color: theme.colors.textSecondary
|
|
168
|
+
}],
|
|
169
|
+
children: t('signup.usernameChecking')
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
if (status === 'available') {
|
|
173
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
174
|
+
style: [_styles.authChooserStyles.mutedText, {
|
|
175
|
+
color: theme.colors.success
|
|
176
|
+
}],
|
|
177
|
+
children: t('signup.usernameAvailable')
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
181
|
+
style: [_styles.authChooserStyles.mutedText, {
|
|
182
|
+
color: theme.colors.error
|
|
183
|
+
}],
|
|
184
|
+
children: t('signup.usernameTaken')
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
var _default = exports.default = SignUpView;
|
|
188
|
+
//# sourceMappingURL=SignUpView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_button","_typography","_isWebBrowser","_primitives","_styles","_useUsernameAvailability","_jsxRuntime","SignUpView","snapshot","theme","t","oxyServices","passkeyMode","onCreateWithPasskey","createPending","onOpenHub","onCreateIdentityInCommons","onGetCommons","onBackToSignIn","username","setUsername","useState","status","usernameStatus","check","checkUsername","useUsernameAvailability","canSubmit","trim","length","isWebBrowser","commonsInstalled","commonsAvailability","jsxs","View","style","styles","centeredBlock","children","jsx","Button","variant","onPress","primaryButton","SubtleLink","label","signInBlock","Text","qrHeadline","color","colors","text","mutedText","textSecondary","Dividerish","TextInput","usernameInput","borderColor","border","placeholder","placeholderTextColor","value","autoCapitalize","autoCorrect","autoComplete","onChangeText","testID","UsernameStatusText","disabled","secondaryButton","success","error","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/SignUpView.tsx"],"mappings":";;;;;;AAcA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAEA,IAAAO,wBAAA,GAAAP,OAAA;AAAyF,IAAAQ,WAAA,GAAAR,OAAA;AAvBzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA+BA,MAAMS,UAAqC,GAAGA,CAAC;EAC7CC,QAAQ;EACRC,KAAK;EACLC,CAAC;EACDC,WAAW;EACXC,WAAW;EACXC,mBAAmB;EACnBC,aAAa;EACbC,SAA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C,yBAAyB;IAAC,CACzB,CAAC;EAEX;EACA,IAAIY,MAAM,KAAK,WAAW,EAAE;IAC1B,oBACE,IAAAhB,WAAA,CAAAiC,GAAA,EAACtC,WAAA,CAAA8C,IAAI;MAACZ,KAAK,EAAE,CAACC,yBAAM,CAACgB,SAAS,EAAE;QAAEH,KAAK,EAAExC,KAAK,CAACyC,MAAM,CAACoB;MAAQ,CAAC,CAAE;MAAAhC,QAAA,EAC9D5B,CAAC,CAAC,0BAA0B;IAAC,CAC1B,CAAC;EAEX;EACA,oBACE,IAAAJ,WAAA,CAAAiC,GAAA,EAACtC,WAAA,CAAA8C,IAAI;IAACZ,KAAK,EAAE,CAACC,yBAAM,CAACgB,SAAS,EAAE;MAAEH,KAAK,EAAExC,KAAK,CAACyC,MAAM,CAACqB;IAAM,CAAC,CAAE;IAAAjC,QAAA,EAC5D5B,CAAC,CAAC,sBAAsB;EAAC,CACtB,CAAC;AAEX,CAAC;AAAC,IAAA8D,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEanE,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _collapsible = require("@oxyhq/bloom/collapsible");
|
|
9
|
+
var _primitives = require("./primitives.js");
|
|
10
|
+
var _styles = require("./styles.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
/**
|
|
13
|
+
* The "Having trouble?" progressive disclosure (issue #691, Phase 5).
|
|
14
|
+
*
|
|
15
|
+
* The normal sign-in surface presents ONE primary action. Every alternative —
|
|
16
|
+
* scanning a QR from another device, a passkey on this device, getting Commons,
|
|
17
|
+
* creating an account — lives here, hidden until the user asks for it or the
|
|
18
|
+
* chosen primary route fails.
|
|
19
|
+
*
|
|
20
|
+
* Two renderings, deliberately not one controlled component:
|
|
21
|
+
* - `revealed` (the primary route failed, or there IS no primary route): the
|
|
22
|
+
* alternatives ARE the surface's content now, so they render plainly. There
|
|
23
|
+
* is nothing left to hide them behind.
|
|
24
|
+
* - otherwise: Bloom's own `Collapsible`, whose trigger is the small
|
|
25
|
+
* "Having trouble?" affordance.
|
|
26
|
+
*
|
|
27
|
+
* Splitting on `revealed` is what keeps the open state where it belongs — inside
|
|
28
|
+
* Bloom's uncontrolled disclosure — instead of forcing a hand-rolled controlled
|
|
29
|
+
* copy of it here.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
const TroubleDisclosure = ({
|
|
33
|
+
actions,
|
|
34
|
+
revealed,
|
|
35
|
+
theme,
|
|
36
|
+
t
|
|
37
|
+
}) => {
|
|
38
|
+
if (actions.length === 0) return null;
|
|
39
|
+
const links = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
40
|
+
style: _styles.authChooserStyles.troubleActions,
|
|
41
|
+
children: actions.map(action => /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.SubtleLink, {
|
|
42
|
+
label: action.label,
|
|
43
|
+
theme: theme,
|
|
44
|
+
onPress: action.onPress,
|
|
45
|
+
disabled: action.disabled,
|
|
46
|
+
testID: action.key
|
|
47
|
+
}, action.key))
|
|
48
|
+
});
|
|
49
|
+
if (revealed) return links;
|
|
50
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_collapsible.Collapsible, {
|
|
51
|
+
title: t('accountSwitcher.havingTrouble'),
|
|
52
|
+
style: _styles.authChooserStyles.troubleTrigger,
|
|
53
|
+
titleStyle: [_styles.authChooserStyles.linkText, {
|
|
54
|
+
color: theme.colors.textSecondary
|
|
55
|
+
}],
|
|
56
|
+
testID: "trouble-disclosure",
|
|
57
|
+
children: links
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
var _default = exports.default = TroubleDisclosure;
|
|
61
|
+
//# sourceMappingURL=TroubleDisclosure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_collapsible","_primitives","_styles","_jsxRuntime","TroubleDisclosure","actions","revealed","theme","t","length","links","jsx","View","style","styles","troubleActions","children","map","action","SubtleLink","label","onPress","disabled","testID","key","Collapsible","title","troubleTrigger","titleStyle","linkText","color","colors","textSecondary","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/TroubleDisclosure.tsx"],"mappings":";;;;;;AAqBA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAuD,IAAAI,WAAA,GAAAJ,OAAA;AAxBvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBA,MAAMK,iBAAmD,GAAGA,CAAC;EAAEC,OAAO;EAAEC,QAAQ;EAAEC,KAAK;EAAEC;AAAE,CAAC,KAAK;EAC/F,IAAIH,OAAO,CAACI,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;EAErC,MAAMC,KAAK,gBACT,IAAAP,WAAA,CAAAQ,GAAA,EAACb,YAAA,CAAAc,IAAI;IAACC,KAAK,EAAEC,yBAAM,CAACC,cAAe;IAAAC,QAAA,EAChCX,OAAO,CAACY,GAAG,CAAEC,MAAM,iBAClB,IAAAf,WAAA,CAAAQ,GAAA,EAACV,WAAA,CAAAkB,UAAU;MAETC,KAAK,EAAEF,MAAM,CAACE,KAAM;MACpBb,KAAK,EAAEA,KAAM;MACbc,OAAO,EAAEH,MAAM,CAACG,OAAQ;MACxBC,QAAQ,EAAEJ,MAAM,CAACI,QAAS;MAC1BC,MAAM,EAAEL,MAAM,CAACM;IAAI,GALdN,MAAM,CAACM,GAMb,CACF;EAAC,CACE,CACP;EAED,IAAIlB,QAAQ,EAAE,OAAOI,KAAK;EAE1B,oBACE,IAAAP,WAAA,CAAAQ,GAAA,EAACX,YAAA,CAAAyB,WAAW;IACVC,KAAK,EAAElB,CAAC,CAAC,+BAA+B,CAAE;IAC1CK,KAAK,EAAEC,yBAAM,CAACa,cAAe;IAC7BC,UAAU,EAAE,CAACd,yBAAM,CAACe,QAAQ,EAAE;MAAEC,KAAK,EAAEvB,KAAK,CAACwB,MAAM,CAACC;IAAc,CAAC,CAAE;IACrET,MAAM,EAAC,oBAAoB;IAAAP,QAAA,EAE1BN;EAAK,CACK,CAAC;AAElB,CAAC;AAAC,IAAAuB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa/B,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SubtleLink = exports.HoverPressable = exports.Dividerish = exports.AccountRow = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _MaterialCommunityIcons = _interopRequireDefault(require("@expo/vector-icons/MaterialCommunityIcons"));
|
|
10
|
+
var _avatar = require("@oxyhq/bloom/avatar");
|
|
11
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
12
|
+
var _theme = require("@oxyhq/bloom/theme");
|
|
13
|
+
var _styles = require("./styles.js");
|
|
14
|
+
var _types = require("./types.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
/**
|
|
18
|
+
* The small presentational building blocks shared across the auth chooser's
|
|
19
|
+
* views. One responsibility each, no controller access, no side effects — they
|
|
20
|
+
* take props and render.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/** Diameter of a row avatar (the sign-in view's account rows). */const ROW_AVATAR_SIZE = 40;
|
|
24
|
+
/**
|
|
25
|
+
* A `Pressable` that appends a hover-tint NativeWind token while pointer-hovered.
|
|
26
|
+
* The Metro web pipeline here does NOT emit NativeWind `hover:` variants, so hover
|
|
27
|
+
* is driven by RN's cross-platform `onHoverIn`/`onHoverOut` (they fire only on web
|
|
28
|
+
* via react-native-web; a no-op on native) toggling a plain background token —
|
|
29
|
+
* the tint stays a NativeWind class, only the trigger is JS.
|
|
30
|
+
*/
|
|
31
|
+
const HoverPressable = ({
|
|
32
|
+
baseClassName,
|
|
33
|
+
hoverClassName,
|
|
34
|
+
...rest
|
|
35
|
+
}) => {
|
|
36
|
+
const [hovered, setHovered] = (0, _react.useState)(false);
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
38
|
+
...rest,
|
|
39
|
+
className: hovered ? `${baseClassName} ${hoverClassName}` : baseClassName,
|
|
40
|
+
onHoverIn: () => setHovered(true),
|
|
41
|
+
onHoverOut: () => setHovered(false)
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A SUBORDINATE action: a small centred text link, never a button.
|
|
47
|
+
*
|
|
48
|
+
* This is the single visual grammar for everything that is not the surface's one
|
|
49
|
+
* primary action (issue #691) — the sign-up entry, and every alternative revealed
|
|
50
|
+
* behind "Having trouble?". Keeping them all on one component is what stops an
|
|
51
|
+
* alternative from quietly growing into a co-equal button again.
|
|
52
|
+
*/
|
|
53
|
+
exports.HoverPressable = HoverPressable;
|
|
54
|
+
const SubtleLink = ({
|
|
55
|
+
label,
|
|
56
|
+
theme,
|
|
57
|
+
onPress,
|
|
58
|
+
disabled,
|
|
59
|
+
testID
|
|
60
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
61
|
+
onPress: onPress,
|
|
62
|
+
disabled: disabled,
|
|
63
|
+
accessibilityRole: "button",
|
|
64
|
+
accessibilityLabel: label,
|
|
65
|
+
style: _styles.authChooserStyles.footerLink,
|
|
66
|
+
testID: testID,
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
68
|
+
style: [_styles.authChooserStyles.linkText, {
|
|
69
|
+
color: theme.colors.textSecondary
|
|
70
|
+
}],
|
|
71
|
+
children: label
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/** A labelled hairline separating two blocks ("or"). */
|
|
76
|
+
exports.SubtleLink = SubtleLink;
|
|
77
|
+
const Dividerish = ({
|
|
78
|
+
theme,
|
|
79
|
+
label
|
|
80
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
81
|
+
style: _styles.authChooserStyles.dividerRow,
|
|
82
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
83
|
+
style: [_styles.authChooserStyles.dividerLine, {
|
|
84
|
+
backgroundColor: theme.colors.border
|
|
85
|
+
}]
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
87
|
+
style: [_styles.authChooserStyles.dividerText, {
|
|
88
|
+
color: theme.colors.textSecondary
|
|
89
|
+
}],
|
|
90
|
+
children: label
|
|
91
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
92
|
+
style: [_styles.authChooserStyles.dividerLine, {
|
|
93
|
+
backgroundColor: theme.colors.border
|
|
94
|
+
}]
|
|
95
|
+
})]
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* An account row on the sign-in entry — "continue as one of these" rather than a
|
|
100
|
+
* choice of authentication METHOD, which is why it stays above the primary CTA
|
|
101
|
+
* instead of behind the trouble disclosure.
|
|
102
|
+
*/
|
|
103
|
+
exports.Dividerish = Dividerish;
|
|
104
|
+
const AccountRow = ({
|
|
105
|
+
account,
|
|
106
|
+
theme,
|
|
107
|
+
switching,
|
|
108
|
+
disabled,
|
|
109
|
+
onPress
|
|
110
|
+
}) => {
|
|
111
|
+
const accent = (0, _types.resolveAccentHex)(account.color, theme.colors.primary);
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_theme.BloomColorScope, {
|
|
113
|
+
colorPreset: (0, _types.toPreset)(account.color),
|
|
114
|
+
asChild: true,
|
|
115
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
116
|
+
style: [_styles.authChooserStyles.accountRow, {
|
|
117
|
+
borderColor: account.isCurrent ? accent : theme.colors.border,
|
|
118
|
+
backgroundColor: theme.colors.card
|
|
119
|
+
}, disabled && !switching ? _styles.authChooserStyles.rowDisabled : null],
|
|
120
|
+
onPress: onPress,
|
|
121
|
+
disabled: disabled,
|
|
122
|
+
accessibilityRole: "button",
|
|
123
|
+
accessibilityState: {
|
|
124
|
+
selected: account.isCurrent,
|
|
125
|
+
disabled
|
|
126
|
+
},
|
|
127
|
+
accessibilityLabel: account.displayName,
|
|
128
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
129
|
+
style: [_styles.authChooserStyles.avatarRing, {
|
|
130
|
+
borderColor: account.isCurrent ? accent : 'transparent'
|
|
131
|
+
}],
|
|
132
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.Avatar, {
|
|
133
|
+
source: account.avatarUrl ?? undefined,
|
|
134
|
+
variant: "thumb",
|
|
135
|
+
name: account.displayName,
|
|
136
|
+
size: ROW_AVATAR_SIZE
|
|
137
|
+
})
|
|
138
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
139
|
+
style: _styles.authChooserStyles.rowMeta,
|
|
140
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
141
|
+
style: [_styles.authChooserStyles.rowName, {
|
|
142
|
+
color: theme.colors.text
|
|
143
|
+
}],
|
|
144
|
+
numberOfLines: 1,
|
|
145
|
+
children: account.displayName
|
|
146
|
+
}), account.email ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
147
|
+
style: [_styles.authChooserStyles.rowHandle, {
|
|
148
|
+
color: theme.colors.textSecondary
|
|
149
|
+
}],
|
|
150
|
+
numberOfLines: 1,
|
|
151
|
+
children: account.email
|
|
152
|
+
}) : null]
|
|
153
|
+
}), switching ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
|
|
154
|
+
name: "loading",
|
|
155
|
+
size: 20,
|
|
156
|
+
color: accent
|
|
157
|
+
}) : account.isCurrent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
|
|
158
|
+
name: "check-circle",
|
|
159
|
+
size: 20,
|
|
160
|
+
color: accent
|
|
161
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
|
|
162
|
+
name: "chevron-right",
|
|
163
|
+
size: 20,
|
|
164
|
+
color: theme.colors.textSecondary
|
|
165
|
+
})]
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
exports.AccountRow = AccountRow;
|
|
170
|
+
//# sourceMappingURL=primitives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_MaterialCommunityIcons","_interopRequireDefault","_avatar","_typography","_theme","_styles","_types","_jsxRuntime","e","__esModule","default","ROW_AVATAR_SIZE","HoverPressable","baseClassName","hoverClassName","rest","hovered","setHovered","useState","jsx","Pressable","className","onHoverIn","onHoverOut","exports","SubtleLink","label","theme","onPress","disabled","testID","accessibilityRole","accessibilityLabel","style","styles","footerLink","children","Text","linkText","color","colors","textSecondary","Dividerish","jsxs","View","dividerRow","dividerLine","backgroundColor","border","dividerText","AccountRow","account","switching","accent","resolveAccentHex","primary","BloomColorScope","colorPreset","toPreset","asChild","accountRow","borderColor","isCurrent","card","rowDisabled","accessibilityState","selected","displayName","avatarRing","Avatar","source","avatarUrl","undefined","variant","name","size","rowMeta","rowName","text","numberOfLines","email","rowHandle"],"sourceRoot":"../../../../../src","sources":["ui/components/authChooser/primitives.tsx"],"mappings":";;;;;;AAOA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAEA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAAiE,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAfjE;AACA;AACA;AACA;AACA;;AAaA,kEACA,MAAMG,eAAe,GAAG,EAAE;AAO1B;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,cAA6C,GAAGA,CAAC;EAC5DC,aAAa;EACbC,cAAc;EACd,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC7C,oBACE,IAAAX,WAAA,CAAAY,GAAA,EAACpB,YAAA,CAAAqB,SAAS;IAAA,GACJL,IAAI;IACRM,SAAS,EAAEL,OAAO,GAAG,GAAGH,aAAa,IAAIC,cAAc,EAAE,GAAGD,aAAc;IAC1ES,SAAS,EAAEA,CAAA,KAAML,UAAU,CAAC,IAAI,CAAE;IAClCM,UAAU,EAAEA,CAAA,KAAMN,UAAU,CAAC,KAAK;EAAE,CACrC,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPAO,OAAA,CAAAZ,cAAA,GAAAA,cAAA;AAQO,MAAMa,UAMX,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,OAAO;EAAEC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