@oxyhq/services 23.0.2 → 23.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/lib/commonjs/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +60 -0
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +39 -0
- package/lib/commonjs/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/commonjs/assets/icons/OxyServices.js +51 -0
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/illustrations/HighFive.js +58 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/commonjs/index.js +897 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/notifications/deviceNotifications.js +443 -0
- package/lib/commonjs/notifications/deviceNotifications.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +198 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/commonjs/ui/client.js +137 -0
- package/lib/commonjs/ui/client.js.map +1 -0
- package/lib/commonjs/ui/components/AvatarCameraBadge.js +43 -0
- package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -0
- package/lib/commonjs/ui/components/FollowButton.js +257 -0
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +195 -0
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAuthChooser.js +401 -0
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAuthPrompt.js +124 -0
- package/lib/commonjs/ui/components/OxyAuthPrompt.js.map +1 -0
- package/lib/commonjs/ui/components/OxyConsentScreen.js +497 -0
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +44 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/commonjs/ui/components/OxyPayButton.js +66 -0
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +313 -0
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInButton.js +289 -0
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
- 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 +348 -0
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +79 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js +296 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -0
- package/lib/commonjs/ui/components/SettingsIcon.js +45 -0
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -0
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +63 -0
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js +229 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -0
- 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/authChooser/styles.js +219 -0
- 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/feedback/constants.js +59 -0
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/types.js +6 -0
- package/lib/commonjs/ui/components/feedback/types.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js +52 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +61 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +125 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +431 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +172 -0
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +64 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/commonjs/ui/components/internal/PinInput.js +116 -0
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -0
- package/lib/commonjs/ui/components/logo/LogoIcon.js +61 -0
- package/lib/commonjs/ui/components/logo/LogoIcon.js.map +1 -0
- package/lib/commonjs/ui/components/logo/LogoText.js +48 -0
- package/lib/commonjs/ui/components/logo/LogoText.js.map +1 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +133 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/commonjs/ui/components/oauthNavigation.js +83 -0
- package/lib/commonjs/ui/components/oauthNavigation.js.map +1 -0
- package/lib/commonjs/ui/components/passkeyHubPopup.js +33 -0
- package/lib/commonjs/ui/components/passkeyHubPopup.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +327 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +105 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +149 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +84 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +195 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/constants.js +53 -0
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js +401 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/commonjs/ui/components/payment/types.js +6 -0
- package/lib/commonjs/ui/components/payment/types.js.map +1 -0
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +223 -0
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
- package/lib/commonjs/ui/components/styles/overlay.js +83 -0
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -0
- package/lib/commonjs/ui/components/styles/shadow.js +127 -0
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -0
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +83 -0
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js +13 -0
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -0
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js +9 -0
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js +50 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -0
- package/lib/commonjs/ui/constants/spacing.js +50 -0
- package/lib/commonjs/ui/constants/spacing.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +1235 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
- package/lib/commonjs/ui/context/commitSessionFlow.js +104 -0
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +316 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js +64 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/commonjs/ui/context/oxyContextTypes.js +6 -0
- package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/commonjs/ui/context/passkeyFlow.js +118 -0
- package/lib/commonjs/ui/context/passkeyFlow.js.map +1 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +111 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +182 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +40 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +681 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +197 -0
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/paymentTypes.js +2 -0
- package/lib/commonjs/ui/hooks/queries/paymentTypes.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +222 -0
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +326 -0
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +49 -0
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +129 -0
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +144 -0
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +93 -0
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +170 -0
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/userCache.js +286 -0
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/userCacheRelationship.js +31 -0
- package/lib/commonjs/ui/hooks/queries/userCacheRelationship.js.map +1 -0
- package/lib/commonjs/ui/hooks/queryClient.js +208 -0
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAssets.js +227 -0
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAsyncAction.js +95 -0
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAuth.js +125 -0
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +106 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -0
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +73 -0
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +71 -0
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFollow.js +331 -0
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFollow.types.js +6 -0
- package/lib/commonjs/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/commonjs/ui/hooks/useI18n.js +22 -0
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -0
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +193 -0
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useMutationStatus.js +86 -0
- package/lib/commonjs/ui/hooks/useMutationStatus.js.map +1 -0
- package/lib/commonjs/ui/hooks/useOnlineStatus.js +34 -0
- package/lib/commonjs/ui/hooks/useOnlineStatus.js.map +1 -0
- package/lib/commonjs/ui/hooks/useOxyEvent.js +28 -0
- package/lib/commonjs/ui/hooks/useOxyEvent.js.map +1 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js +134 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/commonjs/ui/hooks/useQueryClient.js +20 -0
- package/lib/commonjs/ui/hooks/useQueryClient.js.map +1 -0
- package/lib/commonjs/ui/hooks/useReduceMotion.js +57 -0
- package/lib/commonjs/ui/hooks/useReduceMotion.js.map +1 -0
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +163 -0
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js +290 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js +132 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/commonjs/ui/hooks/useStorage.js +45 -0
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js +142 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +64 -0
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js.map +1 -0
- package/lib/commonjs/ui/index.js +178 -0
- package/lib/commonjs/ui/index.js.map +1 -0
- package/lib/commonjs/ui/isFrontend.js +10 -0
- package/lib/commonjs/ui/isFrontend.js.map +1 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js +86 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +62 -0
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +98 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js +68 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +146 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +147 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaces.js +338 -0
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -0
- package/lib/commonjs/ui/oauth/browserAuthTransport.js +170 -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/oauthHandshake.js +53 -0
- package/lib/commonjs/ui/oauth/oauthHandshake.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthPopup.js +276 -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 +401 -0
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +239 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +184 -0
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js +373 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +987 -0
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +307 -0
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +169 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +318 -0
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +546 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileScreen.js +168 -0
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FAQScreen.js +162 -0
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +590 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +1529 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FollowersListScreen.js +17 -0
- package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FollowingListScreen.js +17 -0
- package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +123 -0
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +165 -0
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +235 -0
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +127 -0
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +188 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +647 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/NotificationsScreen.js +150 -0
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +278 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js +194 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +958 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +502 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +462 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +132 -0
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +138 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js +61 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserListScreen.js +302 -0
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +467 -0
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +64 -0
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +121 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +552 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +85 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +506 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js +44 -0
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js +79 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/commonjs/ui/screens/linkFormat.js +38 -0
- package/lib/commonjs/ui/screens/linkFormat.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +94 -0
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +184 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +86 -0
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +223 -0
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +512 -0
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +90 -0
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/trustTier.js +23 -0
- package/lib/commonjs/ui/screens/trust/trustTier.js.map +1 -0
- package/lib/commonjs/ui/server.js +86 -0
- package/lib/commonjs/ui/server.js.map +1 -0
- package/lib/commonjs/ui/session/authStore.js +39 -0
- package/lib/commonjs/ui/session/authStore.js.map +1 -0
- package/lib/commonjs/ui/session/createSessionClient.js +58 -0
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -0
- 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 +71 -0
- package/lib/commonjs/ui/session/index.js.map +1 -0
- 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 +75 -0
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -0
- package/lib/commonjs/ui/stores/accountStore.js +221 -0
- package/lib/commonjs/ui/stores/accountStore.js.map +1 -0
- package/lib/commonjs/ui/stores/assetStore.js +225 -0
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -0
- package/lib/commonjs/ui/stores/authStore.js +70 -0
- package/lib/commonjs/ui/stores/authStore.js.map +1 -0
- package/lib/commonjs/ui/stores/followStore.js +549 -0
- package/lib/commonjs/ui/stores/followStore.js.map +1 -0
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js +19 -0
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js.map +1 -0
- package/lib/commonjs/ui/types/fileManagement.js +6 -0
- package/lib/commonjs/ui/types/fileManagement.js.map +1 -0
- package/lib/commonjs/ui/types/navigation.js +6 -0
- package/lib/commonjs/ui/types/navigation.js.map +1 -0
- package/lib/commonjs/ui/types/surfaceScreen.js +6 -0
- package/lib/commonjs/ui/types/surfaceScreen.js.map +1 -0
- package/lib/commonjs/ui/utils/avatarUtils.js +72 -0
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/colorUtils.js +49 -0
- package/lib/commonjs/ui/utils/colorUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/commonsStoreLinks.js +42 -0
- package/lib/commonjs/ui/utils/commonsStoreLinks.js.map +1 -0
- package/lib/commonjs/ui/utils/deliveryPlatform.js +58 -0
- package/lib/commonjs/ui/utils/deliveryPlatform.js.map +1 -0
- package/lib/commonjs/ui/utils/deviceCredential.js +23 -0
- package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -0
- package/lib/commonjs/ui/utils/errorHandlers.js +137 -0
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -0
- package/lib/commonjs/ui/utils/fileManagement.js +147 -0
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -0
- package/lib/commonjs/ui/utils/iconNames.js +133 -0
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -0
- package/lib/commonjs/ui/utils/isWebBrowser.js +13 -0
- package/lib/commonjs/ui/utils/isWebBrowser.js.map +1 -0
- package/lib/commonjs/ui/utils/netConnectivity.js +28 -0
- package/lib/commonjs/ui/utils/netConnectivity.js.map +1 -0
- package/lib/commonjs/ui/utils/oauthReturn.js +126 -0
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js +61 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/storageHelpers.js +119 -0
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/userUtils.js +70 -0
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -0
- package/lib/commonjs/utils/hookUtils.js +421 -0
- package/lib/commonjs/utils/hookUtils.js.map +1 -0
- package/lib/commonjs/webauthn/passkeyClient.js +39 -0
- package/lib/commonjs/webauthn/passkeyClient.js.map +1 -0
- package/lib/commonjs/webauthn/passkeyClient.native.js +34 -0
- package/lib/commonjs/webauthn/passkeyClient.native.js.map +1 -0
- package/lib/commonjs/webauthn/passkeyClient.web.js +57 -0
- package/lib/commonjs/webauthn/passkeyClient.web.js.map +1 -0
- package/lib/module/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +60 -0
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/assets/illustrations/HighFive.tsx +39 -0
- package/lib/module/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/module/assets/icons/OxyServices.js +45 -0
- package/lib/module/assets/icons/OxyServices.js.map +1 -0
- package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/illustrations/HighFive.js +53 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/module/index.js +203 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/notifications/deviceNotifications.js +433 -0
- package/lib/module/notifications/deviceNotifications.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/ui/boot/runProviderColdBoot.js +192 -0
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/module/ui/client.js +39 -0
- package/lib/module/ui/client.js.map +1 -0
- package/lib/module/ui/components/AvatarCameraBadge.js +40 -0
- package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -0
- package/lib/module/ui/components/FollowButton.js +253 -0
- package/lib/module/ui/components/FollowButton.js.map +1 -0
- package/lib/module/ui/components/OxyAccountDialogScreen.js +190 -0
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/module/ui/components/OxyAuthChooser.js +396 -0
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -0
- package/lib/module/ui/components/OxyAuthPrompt.js +118 -0
- package/lib/module/ui/components/OxyAuthPrompt.js.map +1 -0
- package/lib/module/ui/components/OxyConsentScreen.js +491 -0
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -0
- package/lib/module/ui/components/OxyOAuthCallback.js +40 -0
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/module/ui/components/OxyPayButton.js +62 -0
- package/lib/module/ui/components/OxyPayButton.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +310 -0
- package/lib/module/ui/components/OxyProvider.js.map +1 -0
- package/lib/module/ui/components/OxySignInButton.js +284 -0
- package/lib/module/ui/components/OxySignInButton.js.map +1 -0
- 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 +342 -0
- package/lib/module/ui/components/ProfileButton.js.map +1 -0
- package/lib/module/ui/components/ProfileSummaryCard.js +74 -0
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/module/ui/components/RequireOxyAuth.js +292 -0
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -0
- package/lib/module/ui/components/SettingsIcon.js +40 -0
- package/lib/module/ui/components/SettingsIcon.js.map +1 -0
- package/lib/module/ui/components/SurfaceHeaderAction.js +58 -0
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/module/ui/components/SurfaceScreen.js +224 -0
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -0
- 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/authChooser/styles.js +216 -0
- 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/feedback/constants.js +55 -0
- package/lib/module/ui/components/feedback/constants.js.map +1 -0
- package/lib/module/ui/components/feedback/types.js +4 -0
- package/lib/module/ui/components/feedback/types.js.map +1 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js +47 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +55 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +119 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js +425 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js +166 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js +59 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/module/ui/components/internal/PinInput.js +111 -0
- package/lib/module/ui/components/internal/PinInput.js.map +1 -0
- package/lib/module/ui/components/logo/LogoIcon.js +55 -0
- package/lib/module/ui/components/logo/LogoIcon.js.map +1 -0
- package/lib/module/ui/components/logo/LogoText.js +42 -0
- package/lib/module/ui/components/logo/LogoText.js.map +1 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js +127 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/module/ui/components/oauthNavigation.js +80 -0
- package/lib/module/ui/components/oauthNavigation.js.map +1 -0
- package/lib/module/ui/components/passkeyHubPopup.js +29 -0
- package/lib/module/ui/components/passkeyHubPopup.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +322 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js +100 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js +144 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +79 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +190 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/module/ui/components/payment/constants.js +47 -0
- package/lib/module/ui/components/payment/constants.js.map +1 -0
- package/lib/module/ui/components/payment/paymentStyles.js +396 -0
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/module/ui/components/payment/types.js +4 -0
- package/lib/module/ui/components/payment/types.js.map +1 -0
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +216 -0
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
- package/lib/module/ui/components/styles/overlay.js +80 -0
- package/lib/module/ui/components/styles/overlay.js.map +1 -0
- package/lib/module/ui/components/styles/shadow.js +123 -0
- package/lib/module/ui/components/styles/shadow.js.map +1 -0
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js +78 -0
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js +9 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -0
- package/lib/module/ui/components/utils/roundLayoutSize.js +4 -0
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/module/ui/components/utils/splitStyles.js +46 -0
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -0
- package/lib/module/ui/constants/spacing.js +45 -0
- package/lib/module/ui/constants/spacing.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +1230 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -0
- package/lib/module/ui/context/commitSessionFlow.js +100 -0
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -0
- package/lib/module/ui/context/hooks/useAuthOperations.js +311 -0
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/module/ui/context/oxyContextHelpers.js +57 -0
- package/lib/module/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/module/ui/context/oxyContextTypes.js +4 -0
- package/lib/module/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/module/ui/context/passkeyFlow.js +111 -0
- package/lib/module/ui/context/passkeyFlow.js.map +1 -0
- package/lib/module/ui/context/useOxyAccountGraph.js +107 -0
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js +178 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js +36 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +672 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +189 -0
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -0
- package/lib/module/ui/hooks/queries/paymentTypes.js +2 -0
- package/lib/module/ui/hooks/queries/paymentTypes.js.map +1 -0
- package/lib/module/ui/hooks/queries/queryKeys.js +207 -0
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -0
- package/lib/module/ui/hooks/queries/useAccountQueries.js +315 -0
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useAuthMethods.js +45 -0
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -0
- package/lib/module/ui/hooks/queries/useFileQueries.js +120 -0
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +136 -0
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +86 -0
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useServicesQueries.js +161 -0
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/userCache.js +282 -0
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/module/ui/hooks/queries/userCacheRelationship.js +27 -0
- package/lib/module/ui/hooks/queries/userCacheRelationship.js.map +1 -0
- package/lib/module/ui/hooks/queryClient.js +201 -0
- package/lib/module/ui/hooks/queryClient.js.map +1 -0
- package/lib/module/ui/hooks/useAssets.js +221 -0
- package/lib/module/ui/hooks/useAssets.js.map +1 -0
- package/lib/module/ui/hooks/useAsyncAction.js +89 -0
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/module/ui/hooks/useAuth.js +121 -0
- package/lib/module/ui/hooks/useAuth.js.map +1 -0
- package/lib/module/ui/hooks/useAvatarPicker.js +103 -0
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -0
- package/lib/module/ui/hooks/useDeviceManagement.js +68 -0
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -0
- package/lib/module/ui/hooks/useFileDownloadUrl.js +66 -0
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -0
- package/lib/module/ui/hooks/useFileFiltering.js +72 -0
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/module/ui/hooks/useFollow.js +324 -0
- package/lib/module/ui/hooks/useFollow.js.map +1 -0
- package/lib/module/ui/hooks/useFollow.types.js +4 -0
- package/lib/module/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/module/ui/hooks/useI18n.js +18 -0
- package/lib/module/ui/hooks/useI18n.js.map +1 -0
- package/lib/module/ui/hooks/useLanguageManagement.js +185 -0
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/module/ui/hooks/useMutationStatus.js +82 -0
- package/lib/module/ui/hooks/useMutationStatus.js.map +1 -0
- package/lib/module/ui/hooks/useOnlineStatus.js +30 -0
- package/lib/module/ui/hooks/useOnlineStatus.js.map +1 -0
- package/lib/module/ui/hooks/useOxyEvent.js +25 -0
- package/lib/module/ui/hooks/useOxyEvent.js.map +1 -0
- package/lib/module/ui/hooks/useProfileEditing.js +129 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/module/ui/hooks/useQueryClient.js +15 -0
- package/lib/module/ui/hooks/useQueryClient.js.map +1 -0
- package/lib/module/ui/hooks/useReduceMotion.js +53 -0
- package/lib/module/ui/hooks/useReduceMotion.js.map +1 -0
- package/lib/module/ui/hooks/useResolvedFileUrls.js +157 -0
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -0
- package/lib/module/ui/hooks/useSessionManagement.js +286 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -0
- package/lib/module/ui/hooks/useSettingToggle.js +126 -0
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/module/ui/hooks/useStorage.js +40 -0
- package/lib/module/ui/hooks/useStorage.js.map +1 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js +138 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/module/ui/hooks/useSwitchableAccounts.js +60 -0
- package/lib/module/ui/hooks/useSwitchableAccounts.js.map +1 -0
- package/lib/module/ui/index.js +49 -0
- package/lib/module/ui/index.js.map +1 -0
- package/lib/module/ui/isFrontend.js +6 -0
- package/lib/module/ui/isFrontend.js.map +1 -0
- package/lib/module/ui/navigation/accountDialogManager.js +76 -0
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -0
- package/lib/module/ui/navigation/bottomSheetManager.js +56 -0
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +92 -0
- package/lib/module/ui/navigation/routes.js.map +1 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js +63 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/module/ui/navigation/surfaceNavStack.js +143 -0
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -0
- package/lib/module/ui/navigation/surfaceRegistry.js +141 -0
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -0
- package/lib/module/ui/navigation/surfaces.js +325 -0
- package/lib/module/ui/navigation/surfaces.js.map +1 -0
- package/lib/module/ui/oauth/browserAuthTransport.js +167 -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/oauthHandshake.js +50 -0
- package/lib/module/ui/oauth/oauthHandshake.js.map +1 -0
- package/lib/module/ui/oauth/oauthPopup.js +268 -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 +396 -0
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +235 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountVerificationScreen.js +179 -0
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -0
- package/lib/module/ui/screens/AppInfoScreen.js +368 -0
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/module/ui/screens/AvatarCropScreen.js +984 -0
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -0
- package/lib/module/ui/screens/ChangeAvatarScreen.js +304 -0
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js +164 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -0
- package/lib/module/ui/screens/CreateAccountScreen.js +313 -0
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js +541 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/module/ui/screens/EditProfileScreen.js +163 -0
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/FAQScreen.js +157 -0
- package/lib/module/ui/screens/FAQScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +588 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +1525 -0
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/FollowersListScreen.js +12 -0
- package/lib/module/ui/screens/FollowersListScreen.js.map +1 -0
- package/lib/module/ui/screens/FollowingListScreen.js +12 -0
- package/lib/module/ui/screens/FollowingListScreen.js.map +1 -0
- package/lib/module/ui/screens/HelpSupportScreen.js +118 -0
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -0
- package/lib/module/ui/screens/HistoryViewScreen.js +160 -0
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -0
- package/lib/module/ui/screens/LanguageSelectorScreen.js +229 -0
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +122 -0
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js +185 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/module/ui/screens/ManageAccountScreen.js +642 -0
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/NotificationsScreen.js +145 -0
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js +273 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/module/ui/screens/PreferencesScreen.js +189 -0
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +953 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js +497 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +457 -0
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/SavesCollectionsScreen.js +127 -0
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js +133 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/UserLinksScreen.js +57 -0
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -0
- package/lib/module/ui/screens/UserListScreen.js +297 -0
- package/lib/module/ui/screens/UserListScreen.js.map +1 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +462 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js +59 -0
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js +116 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +548 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js +80 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +502 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js +39 -0
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/shared.js +70 -0
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/module/ui/screens/linkFormat.js +31 -0
- package/lib/module/ui/screens/linkFormat.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +89 -0
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +179 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +81 -0
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +218 -0
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +507 -0
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +88 -0
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/trustTier.js +19 -0
- package/lib/module/ui/screens/trust/trustTier.js.map +1 -0
- package/lib/module/ui/server.js +56 -0
- package/lib/module/ui/server.js.map +1 -0
- package/lib/module/ui/session/authStore.js +35 -0
- package/lib/module/ui/session/authStore.js.map +1 -0
- package/lib/module/ui/session/createSessionClient.js +55 -0
- package/lib/module/ui/session/createSessionClient.js.map +1 -0
- 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 +20 -0
- package/lib/module/ui/session/index.js.map +1 -0
- 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 +71 -0
- package/lib/module/ui/session/tokenTransport.js.map +1 -0
- package/lib/module/ui/stores/accountStore.js +213 -0
- package/lib/module/ui/stores/accountStore.js.map +1 -0
- package/lib/module/ui/stores/assetStore.js +212 -0
- package/lib/module/ui/stores/assetStore.js.map +1 -0
- package/lib/module/ui/stores/authStore.js +66 -0
- package/lib/module/ui/stores/authStore.js.map +1 -0
- package/lib/module/ui/stores/followStore.js +544 -0
- package/lib/module/ui/stores/followStore.js.map +1 -0
- package/lib/module/ui/stores/resetSessionScopedStores.js +16 -0
- package/lib/module/ui/stores/resetSessionScopedStores.js.map +1 -0
- package/lib/module/ui/types/fileManagement.js +4 -0
- package/lib/module/ui/types/fileManagement.js.map +1 -0
- package/lib/module/ui/types/navigation.js +4 -0
- package/lib/module/ui/types/navigation.js.map +1 -0
- package/lib/module/ui/types/surfaceScreen.js +4 -0
- package/lib/module/ui/types/surfaceScreen.js.map +1 -0
- package/lib/module/ui/utils/avatarUtils.js +68 -0
- package/lib/module/ui/utils/avatarUtils.js.map +1 -0
- package/lib/module/ui/utils/colorUtils.js +13 -0
- package/lib/module/ui/utils/colorUtils.js.map +1 -0
- package/lib/module/ui/utils/commonsStoreLinks.js +37 -0
- package/lib/module/ui/utils/commonsStoreLinks.js.map +1 -0
- package/lib/module/ui/utils/deliveryPlatform.js +55 -0
- package/lib/module/ui/utils/deliveryPlatform.js.map +1 -0
- package/lib/module/ui/utils/deviceCredential.js +18 -0
- package/lib/module/ui/utils/deviceCredential.js.map +1 -0
- package/lib/module/ui/utils/errorHandlers.js +129 -0
- package/lib/module/ui/utils/errorHandlers.js.map +1 -0
- package/lib/module/ui/utils/fileManagement.js +140 -0
- package/lib/module/ui/utils/fileManagement.js.map +1 -0
- package/lib/module/ui/utils/iconNames.js +124 -0
- package/lib/module/ui/utils/iconNames.js.map +1 -0
- package/lib/module/ui/utils/isWebBrowser.js +11 -0
- package/lib/module/ui/utils/isWebBrowser.js.map +1 -0
- package/lib/module/ui/utils/netConnectivity.js +23 -0
- package/lib/module/ui/utils/netConnectivity.js.map +1 -0
- package/lib/module/ui/utils/oauthReturn.js +122 -0
- package/lib/module/ui/utils/oauthReturn.js.map +1 -0
- package/lib/module/ui/utils/sessionHelpers.js +55 -0
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -0
- package/lib/module/ui/utils/storageHelpers.js +111 -0
- package/lib/module/ui/utils/storageHelpers.js.map +1 -0
- package/lib/module/ui/utils/userUtils.js +64 -0
- package/lib/module/ui/utils/userUtils.js.map +1 -0
- package/lib/module/utils/hookUtils.js +403 -0
- package/lib/module/utils/hookUtils.js.map +1 -0
- package/lib/module/webauthn/passkeyClient.js +33 -0
- package/lib/module/webauthn/passkeyClient.js.map +1 -0
- package/lib/module/webauthn/passkeyClient.native.js +28 -0
- package/lib/module/webauthn/passkeyClient.native.js.map +1 -0
- package/lib/module/webauthn/passkeyClient.web.js +52 -0
- package/lib/module/webauthn/passkeyClient.web.js.map +1 -0
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +24 -0
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/commonjs/assets/illustrations/HighFive.d.ts +8 -0
- package/lib/typescript/commonjs/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +100 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts +192 -0
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +60 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/client.d.ts +30 -0
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts +4 -0
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts +39 -0
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +54 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts +59 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts +45 -0
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts +29 -0
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +112 -0
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -0
- 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/ProfileButton.d.ts +56 -0
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +55 -0
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -0
- 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/commonjs/ui/components/authChooser/styles.d.ts +209 -0
- 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/feedback/constants.d.ts +5 -0
- package/lib/typescript/commonjs/ui/components/feedback/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/feedback/types.d.ts +46 -0
- package/lib/typescript/commonjs/ui/components/feedback/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/feedback/useFeedbackForm.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +17 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +24 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +14 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/icon/FAIRWalletIcon.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoIcon.d.ts +22 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts +22 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/oauthNavigation.d.ts +43 -0
- package/lib/typescript/commonjs/ui/components/oauthNavigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/passkeyHubPopup.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/passkeyHubPopup.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts +14 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/constants.d.ts +7 -0
- package/lib/typescript/commonjs/ui/components/payment/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts +389 -0
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts +28 -0
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts +3 -0
- package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/utils/hasTouchHandler.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/utils/hasTouchHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/utils/roundLayoutSize.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/utils/roundLayoutSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/utils/splitStyles.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/utils/splitStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/constants/spacing.d.ts +33 -0
- package/lib/typescript/commonjs/ui/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +7 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts +39 -0
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +74 -0
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +189 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +96 -0
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +32 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +87 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +30 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +297 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +23 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/paymentTypes.d.ts +137 -0
- package/lib/typescript/commonjs/ui/hooks/queries/paymentTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +137 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +87 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +212 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +50 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +63 -0
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +25 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +44 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +96 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCacheRelationship.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCacheRelationship.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +66 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +35 -0
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts +51 -0
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +107 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +34 -0
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceManagement.d.ts +27 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts +19 -0
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +108 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.types.d.ts +35 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts +5 -0
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts +69 -0
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts +23 -0
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts +14 -0
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyEvent.d.ts +8 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +42 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useQueryClient.d.ts +7 -0
- package/lib/typescript/commonjs/ui/hooks/useQueryClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts +14 -0
- package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +48 -0
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +41 -0
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts +57 -0
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts +16 -0
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +45 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +23 -0
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts +39 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/isFrontend.d.ts +3 -0
- package/lib/typescript/commonjs/ui/isFrontend.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +44 -0
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +34 -0
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +6 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +75 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +194 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +110 -0
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -0
- 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/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 +83 -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/AccountMembersScreen.d.ts +10 -0
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts +12 -0
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts +58 -0
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts +38 -0
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts +11 -0
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts +14 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts +12 -0
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts +12 -0
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts +7 -0
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts +15 -0
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts +15 -0
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts +14 -0
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +43 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +51 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts +37 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +38 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts +23 -0
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/trustTier.d.ts +9 -0
- package/lib/typescript/commonjs/ui/screens/trust/trustTier.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/server.d.ts +36 -0
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +25 -0
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +40 -0
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -0
- 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 +19 -0
- package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -0
- 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 +33 -0
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/accountStore.d.ts +27 -0
- package/lib/typescript/commonjs/ui/stores/accountStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +54 -0
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts +17 -0
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts +30 -0
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts +10 -0
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts +51 -0
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +120 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts +38 -0
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +24 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts +10 -0
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/commonsStoreLinks.d.ts +24 -0
- package/lib/typescript/commonjs/ui/utils/commonsStoreLinks.d.ts.map +1 -0
- 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/deviceCredential.d.ts +8 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts +35 -0
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +55 -0
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/isWebBrowser.d.ts +9 -0
- package/lib/typescript/commonjs/ui/utils/isWebBrowser.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts +17 -0
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +48 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +48 -0
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +28 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts +30 -0
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/hookUtils.d.ts +102 -0
- package/lib/typescript/commonjs/utils/hookUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +20 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +15 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +36 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +1 -0
- package/lib/typescript/module/assets/icons/OxyServices.d.ts +24 -0
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/module/assets/illustrations/HighFive.d.ts +8 -0
- package/lib/typescript/module/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +100 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/notifications/deviceNotifications.d.ts +192 -0
- package/lib/typescript/module/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +60 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/module/ui/client.d.ts +30 -0
- package/lib/typescript/module/ui/client.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts +4 -0
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/FollowButton.d.ts +39 -0
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +40 -0
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +54 -0
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts +59 -0
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts +45 -0
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts +29 -0
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +40 -0
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +112 -0
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -0
- 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/ProfileButton.d.ts +56 -0
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +55 -0
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +15 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +23 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -0
- 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/module/ui/components/authChooser/styles.d.ts +209 -0
- 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/feedback/constants.d.ts +5 -0
- package/lib/typescript/module/ui/components/feedback/constants.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/feedback/types.d.ts +46 -0
- package/lib/typescript/module/ui/components/feedback/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/feedback/useFeedbackForm.d.ts +9 -0
- package/lib/typescript/module/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +17 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +24 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +16 -0
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +14 -0
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/icon/FAIRWalletIcon.d.ts +9 -0
- package/lib/typescript/module/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/internal/PinInput.d.ts +23 -0
- package/lib/typescript/module/ui/components/internal/PinInput.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/logo/LogoIcon.d.ts +22 -0
- package/lib/typescript/module/ui/components/logo/LogoIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts +22 -0
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +26 -0
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/oauthNavigation.d.ts +43 -0
- package/lib/typescript/module/ui/components/oauthNavigation.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/passkeyHubPopup.d.ts +23 -0
- package/lib/typescript/module/ui/components/passkeyHubPopup.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts +14 -0
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts +16 -0
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/constants.d.ts +7 -0
- package/lib/typescript/module/ui/components/payment/constants.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts +389 -0
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/types.d.ts +40 -0
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts +28 -0
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/styles/overlay.d.ts +6 -0
- package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/styles/shadow.d.ts +3 -0
- package/lib/typescript/module/ui/components/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/utils/hasTouchHandler.d.ts +6 -0
- package/lib/typescript/module/ui/components/utils/hasTouchHandler.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/utils/roundLayoutSize.d.ts +2 -0
- package/lib/typescript/module/ui/components/utils/roundLayoutSize.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/utils/splitStyles.d.ts +20 -0
- package/lib/typescript/module/ui/components/utils/splitStyles.d.ts.map +1 -0
- package/lib/typescript/module/ui/constants/spacing.d.ts +33 -0
- package/lib/typescript/module/ui/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts +7 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts +39 -0
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +74 -0
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +189 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts +96 -0
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +32 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +87 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +30 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +297 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +23 -0
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/paymentTypes.d.ts +137 -0
- package/lib/typescript/module/ui/hooks/queries/paymentTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +137 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +87 -0
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +212 -0
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +50 -0
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +63 -0
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +25 -0
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +44 -0
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +96 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/userCacheRelationship.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/queries/userCacheRelationship.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +66 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +35 -0
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts +51 -0
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +107 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +34 -0
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useDeviceManagement.d.ts +27 -0
- package/lib/typescript/module/ui/hooks/useDeviceManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts +19 -0
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFollow.d.ts +108 -0
- package/lib/typescript/module/ui/hooks/useFollow.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFollow.types.d.ts +35 -0
- package/lib/typescript/module/ui/hooks/useFollow.types.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useI18n.d.ts +5 -0
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts +69 -0
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts +23 -0
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts +14 -0
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useOxyEvent.d.ts +8 -0
- package/lib/typescript/module/ui/hooks/useOxyEvent.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +42 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useQueryClient.d.ts +7 -0
- package/lib/typescript/module/ui/hooks/useQueryClient.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts +14 -0
- package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +48 -0
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +41 -0
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts +57 -0
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useStorage.d.ts +16 -0
- package/lib/typescript/module/ui/hooks/useStorage.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +45 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +23 -0
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts.map +1 -0
- package/lib/typescript/module/ui/index.d.ts +39 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/isFrontend.d.ts +3 -0
- package/lib/typescript/module/ui/isFrontend.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +44 -0
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +34 -0
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts +6 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +75 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +194 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaces.d.ts +110 -0
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -0
- 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/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 +83 -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/AccountMembersScreen.d.ts +10 -0
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts +12 -0
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts +58 -0
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts +38 -0
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts +11 -0
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts +14 -0
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts +12 -0
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts +12 -0
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts +7 -0
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts +15 -0
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts +15 -0
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts +18 -0
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts +14 -0
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +43 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +51 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts +37 -0
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +38 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/linkFormat.d.ts +23 -0
- package/lib/typescript/module/ui/screens/linkFormat.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/trustTier.d.ts +9 -0
- package/lib/typescript/module/ui/screens/trust/trustTier.d.ts.map +1 -0
- package/lib/typescript/module/ui/server.d.ts +36 -0
- package/lib/typescript/module/ui/server.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/authStore.d.ts +25 -0
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +40 -0
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -0
- 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 +19 -0
- package/lib/typescript/module/ui/session/index.d.ts.map +1 -0
- 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 +33 -0
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/accountStore.d.ts +27 -0
- package/lib/typescript/module/ui/stores/accountStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/assetStore.d.ts +54 -0
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/authStore.d.ts +17 -0
- package/lib/typescript/module/ui/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/followStore.d.ts +30 -0
- package/lib/typescript/module/ui/stores/followStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts +10 -0
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/fileManagement.d.ts +51 -0
- package/lib/typescript/module/ui/types/fileManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/navigation.d.ts +120 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts +38 -0
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts +24 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/colorUtils.d.ts +10 -0
- package/lib/typescript/module/ui/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/commonsStoreLinks.d.ts +24 -0
- package/lib/typescript/module/ui/utils/commonsStoreLinks.d.ts.map +1 -0
- 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/deviceCredential.d.ts +8 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts +35 -0
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +55 -0
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/isWebBrowser.d.ts +9 -0
- package/lib/typescript/module/ui/utils/isWebBrowser.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts +17 -0
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts +48 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +48 -0
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts +28 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/userUtils.d.ts +30 -0
- package/lib/typescript/module/ui/utils/userUtils.d.ts.map +1 -0
- package/lib/typescript/module/utils/hookUtils.d.ts +102 -0
- package/lib/typescript/module/utils/hookUtils.d.ts.map +1 -0
- package/lib/typescript/module/webauthn/passkeyClient.d.ts +20 -0
- package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +1 -0
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +15 -0
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +1 -0
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +36 -0
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +1 -0
- package/lib/typescript/nativewind-env.d.ts +1 -0
- package/lib/typescript/types/expo-crypto.d.ts +29 -0
- package/lib/typescript/types/expo-document-picker.d.ts +36 -0
- package/lib/typescript/types/expo-haptics.d.ts +42 -0
- package/lib/typescript/types/expo-secure-store.d.ts +22 -0
- package/lib/typescript/types/express.d.ts +24 -0
- package/lib/typescript/types/react-native-classname.d.ts +39 -0
- package/lib/typescript/types/react-native-web-style.d.ts +27 -0
- package/package.json +3 -3
- package/src/ui/screens/FollowersListScreen.tsx +3 -0
- package/src/ui/screens/FollowingListScreen.tsx +3 -0
- package/src/ui/screens/UserListScreen.tsx +14 -4
|
@@ -0,0 +1,1230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
+
import { Linking } from 'react-native';
|
|
5
|
+
import { io } from 'socket.io-client';
|
|
6
|
+
import { OxyServices, oxyClient } from '@oxyhq/core';
|
|
7
|
+
import { KeyManager, establishIdentitySession, installAuthRefreshHandler, startTokenRefreshScheduler, createAccountDialogController, logger as loggerUtil } from '@oxyhq/core';
|
|
8
|
+
import { registerAccountDialogControls, notifyAccountDialogVisibility } from "../navigation/accountDialogManager.js";
|
|
9
|
+
import { redirectToAuthorize } from "../components/oauthNavigation.js";
|
|
10
|
+
import { openPasskeyHubPopup } from "../components/passkeyHubPopup.js";
|
|
11
|
+
import { startWebOAuthSignIn } from "../oauth/browserAuthTransport.js";
|
|
12
|
+
import { isWebBrowser } from "../utils/isWebBrowser.js";
|
|
13
|
+
import { resolveDeliveryPlatform } from "../utils/deliveryPlatform.js";
|
|
14
|
+
import { runProviderColdBoot } from "../boot/runProviderColdBoot.js";
|
|
15
|
+
import { loadPersistedDeviceCredential } from "../utils/deviceCredential.js";
|
|
16
|
+
import { useAuthStore } from "../stores/authStore.js";
|
|
17
|
+
import { useShallow } from 'zustand/react/shallow';
|
|
18
|
+
import { useLanguageManagement } from "../hooks/useLanguageManagement.js";
|
|
19
|
+
import { useSessionManagement } from "../hooks/useSessionManagement.js";
|
|
20
|
+
import { useAuthOperations, clearPersistedAuthSafe } from "./hooks/useAuthOperations.js";
|
|
21
|
+
import { useDeviceManagement } from "../hooks/useDeviceManagement.js";
|
|
22
|
+
import { getStorageKeys, createPlatformStorage } from "../utils/storageHelpers.js";
|
|
23
|
+
import { showBottomSheet as globalShowBottomSheet } from "../navigation/bottomSheetManager.js";
|
|
24
|
+
import { presentDetached, topRouteSurface } from "../navigation/surfaces.js";
|
|
25
|
+
import { useQueryClient, onlineManager } from '@tanstack/react-query';
|
|
26
|
+
import { clearQueryCache } from "../hooks/queryClient.js";
|
|
27
|
+
import { useAvatarPicker } from "../hooks/useAvatarPicker.js";
|
|
28
|
+
import { useAccountStore } from "../stores/accountStore.js";
|
|
29
|
+
import { createSessionClient, createIdentitySessionBinding, createPlatformAuthStateStore, deviceStateToClientSessions, activeSessionIdOf, activeUserOf, accountIdsOf, IdentityBoundSessionError } from "../session/index.js";
|
|
30
|
+
import { DEFAULT_SESSION_VALIDITY_MS, loadUseFollowHook } from "./oxyContextHelpers.js";
|
|
31
|
+
import { commitDeviceSetAndResolve } from "./commitSessionFlow.js";
|
|
32
|
+
import { runPasskeyLogin, runPasskeyRegister, runPasskeyAdd } from "./passkeyFlow.js";
|
|
33
|
+
import { isPasskeySupported, runRegistrationCeremony, runAuthenticationCeremony } from '../../webauthn/passkeyClient';
|
|
34
|
+
import { queryKeys } from "../hooks/queries/queryKeys.js";
|
|
35
|
+
import { useOxyAccountGraph } from "./useOxyAccountGraph.js";
|
|
36
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
37
|
+
const OxyContext = /*#__PURE__*/createContext(null);
|
|
38
|
+
export const OxyProvider = ({
|
|
39
|
+
children,
|
|
40
|
+
oxyServices: providedOxyServices,
|
|
41
|
+
baseURL,
|
|
42
|
+
authWebUrl,
|
|
43
|
+
authRedirectUri,
|
|
44
|
+
authorizeBaseUrl,
|
|
45
|
+
storageKeyPrefix = 'oxy_session',
|
|
46
|
+
clientId: clientIdProp,
|
|
47
|
+
sessionMode = 'account',
|
|
48
|
+
webAuthMode = 'popup',
|
|
49
|
+
onAuthStateChange,
|
|
50
|
+
onError
|
|
51
|
+
}) => {
|
|
52
|
+
const oxyServicesRef = useRef(null);
|
|
53
|
+
if (!oxyServicesRef.current) {
|
|
54
|
+
if (providedOxyServices) {
|
|
55
|
+
oxyServicesRef.current = providedOxyServices;
|
|
56
|
+
} else if (baseURL) {
|
|
57
|
+
// `authWebUrl` now only points the OAuth "Sign in with Oxy" third-party
|
|
58
|
+
// link builder at the central auth host; there is no cold-boot redirect.
|
|
59
|
+
oxyServicesRef.current = new OxyServices({
|
|
60
|
+
baseURL,
|
|
61
|
+
authWebUrl,
|
|
62
|
+
authRedirectUri
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
throw new Error('Either oxyServices or baseURL must be provided to OxyContextProvider');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const oxyServices = oxyServicesRef.current;
|
|
69
|
+
|
|
70
|
+
// The device-first persisted auth-state store (per-origin zero-cookie device
|
|
71
|
+
// credential on web; SecureStore session blob on native). Built ONCE per
|
|
72
|
+
// provider mount.
|
|
73
|
+
const authStoreRef = useRef(null);
|
|
74
|
+
if (!authStoreRef.current) {
|
|
75
|
+
authStoreRef.current = createPlatformAuthStateStore();
|
|
76
|
+
}
|
|
77
|
+
const authStore = authStoreRef.current;
|
|
78
|
+
|
|
79
|
+
// Identity-bound session binding (`sessionMode: 'identity'`) — the platform pin
|
|
80
|
+
// store plus the memoised pinned account id every lane below binds to. Built
|
|
81
|
+
// ONCE per provider mount and ONLY in identity mode: an account-mode provider
|
|
82
|
+
// never constructs one, so `identity` is `null` there and every branch keyed on
|
|
83
|
+
// it collapses to today's behaviour.
|
|
84
|
+
//
|
|
85
|
+
// Like `oxyServices` / `baseURL`, `sessionMode` is mount-time configuration: it
|
|
86
|
+
// is read once and a later change does not re-bind the provider. Latching it
|
|
87
|
+
// this way also fails SAFE — a provider that started identity-bound can never
|
|
88
|
+
// be downgraded mid-flight into following the device's active account.
|
|
89
|
+
const identityRef = useRef(null);
|
|
90
|
+
if (sessionMode === 'identity' && !identityRef.current) {
|
|
91
|
+
identityRef.current = createIdentitySessionBinding();
|
|
92
|
+
}
|
|
93
|
+
const identity = identityRef.current;
|
|
94
|
+
const isIdentityBound = identity !== null;
|
|
95
|
+
const {
|
|
96
|
+
user,
|
|
97
|
+
isAuthenticated,
|
|
98
|
+
isLoading,
|
|
99
|
+
error,
|
|
100
|
+
loginSuccess,
|
|
101
|
+
loginFailure,
|
|
102
|
+
logoutStore
|
|
103
|
+
} = useAuthStore(useShallow(state => ({
|
|
104
|
+
user: state.user,
|
|
105
|
+
isAuthenticated: state.isAuthenticated,
|
|
106
|
+
isLoading: state.isLoading,
|
|
107
|
+
error: state.error,
|
|
108
|
+
loginSuccess: state.loginSuccess,
|
|
109
|
+
loginFailure: state.loginFailure,
|
|
110
|
+
logoutStore: state.logout
|
|
111
|
+
})));
|
|
112
|
+
const [tokenReady, setTokenReady] = useState(true);
|
|
113
|
+
const [hasAccessToken, setHasAccessToken] = useState(() => Boolean(oxyServices.getAccessToken()));
|
|
114
|
+
const [authResolved, setAuthResolved] = useState(false);
|
|
115
|
+
const authResolvedRef = useRef(false);
|
|
116
|
+
const userRef = useRef(user);
|
|
117
|
+
const isAuthenticatedRef = useRef(isAuthenticated);
|
|
118
|
+
userRef.current = user;
|
|
119
|
+
isAuthenticatedRef.current = isAuthenticated;
|
|
120
|
+
const [initialized, setInitialized] = useState(false);
|
|
121
|
+
const [accountDialogOpen, setAccountDialogOpen] = useState(false);
|
|
122
|
+
const setAuthState = useAuthStore.setState;
|
|
123
|
+
|
|
124
|
+
// Keep the shared `oxyClient` singleton's token store in lockstep with the
|
|
125
|
+
// session owned by THIS provider's instance (many apps build API clients
|
|
126
|
+
// against the exported singleton while passing only `baseURL` here). Skipped
|
|
127
|
+
// when the app passed the singleton itself as `oxyServices`.
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
if (oxyServices === oxyClient) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const applyToSingleton = accessToken => {
|
|
133
|
+
if (accessToken) {
|
|
134
|
+
oxyClient.setTokens(accessToken);
|
|
135
|
+
} else {
|
|
136
|
+
oxyClient.clearTokens();
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
applyToSingleton(oxyServices.getAccessToken());
|
|
140
|
+
return oxyServices.onTokensChanged(applyToSingleton);
|
|
141
|
+
}, [oxyServices]);
|
|
142
|
+
const logger = useCallback((message, err) => {
|
|
143
|
+
if (__DEV__) {
|
|
144
|
+
loggerUtil.warn(message, {
|
|
145
|
+
component: 'OxyContext'
|
|
146
|
+
}, err);
|
|
147
|
+
}
|
|
148
|
+
}, []);
|
|
149
|
+
const storageKeys = useMemo(() => getStorageKeys(storageKeyPrefix), [storageKeyPrefix]);
|
|
150
|
+
const clientId = useMemo(() => {
|
|
151
|
+
const trimmed = clientIdProp?.trim();
|
|
152
|
+
return trimmed ? trimmed : null;
|
|
153
|
+
}, [clientIdProp]);
|
|
154
|
+
|
|
155
|
+
// Local display/bookkeeping storage (session id list, language). Distinct
|
|
156
|
+
// from `authStore` (the durable credential blob). Exposed as an awaitable so
|
|
157
|
+
// a persistence write is never dropped because it raced storage init.
|
|
158
|
+
const storageRef = useRef(null);
|
|
159
|
+
const [storage, setStorage] = useState(null);
|
|
160
|
+
const buildStorageDeferred = () => {
|
|
161
|
+
let resolve = () => undefined;
|
|
162
|
+
const promise = new Promise(res => {
|
|
163
|
+
resolve = res;
|
|
164
|
+
});
|
|
165
|
+
return {
|
|
166
|
+
promise,
|
|
167
|
+
resolve
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
const storageReadyRef = useRef(null);
|
|
171
|
+
if (storageReadyRef.current === null) {
|
|
172
|
+
storageReadyRef.current = buildStorageDeferred();
|
|
173
|
+
}
|
|
174
|
+
const storageReady = storageReadyRef.current;
|
|
175
|
+
useEffect(() => {
|
|
176
|
+
let mounted = true;
|
|
177
|
+
createPlatformStorage().then(storageInstance => {
|
|
178
|
+
storageRef.current = storageInstance;
|
|
179
|
+
storageReady.resolve(storageInstance);
|
|
180
|
+
if (mounted) {
|
|
181
|
+
setStorage(storageInstance);
|
|
182
|
+
}
|
|
183
|
+
}).catch(err => {
|
|
184
|
+
if (mounted) {
|
|
185
|
+
logger('Failed to initialize storage', err);
|
|
186
|
+
onError?.({
|
|
187
|
+
message: 'Failed to initialize storage',
|
|
188
|
+
code: 'STORAGE_INIT_ERROR',
|
|
189
|
+
status: 500
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
return () => {
|
|
194
|
+
mounted = false;
|
|
195
|
+
};
|
|
196
|
+
}, [logger, onError, storageReady]);
|
|
197
|
+
const {
|
|
198
|
+
currentLanguage,
|
|
199
|
+
languages: currentLanguages,
|
|
200
|
+
metadata: currentLanguageMetadata,
|
|
201
|
+
languageName: currentLanguageName,
|
|
202
|
+
nativeLanguageName: currentNativeLanguageName,
|
|
203
|
+
setLanguage
|
|
204
|
+
} = useLanguageManagement({
|
|
205
|
+
storage,
|
|
206
|
+
languageKey: storageKeys.language,
|
|
207
|
+
user,
|
|
208
|
+
onError,
|
|
209
|
+
logger
|
|
210
|
+
});
|
|
211
|
+
const queryClient = useQueryClient();
|
|
212
|
+
const {
|
|
213
|
+
sessions,
|
|
214
|
+
activeSessionId,
|
|
215
|
+
setActiveSessionId,
|
|
216
|
+
updateSessions,
|
|
217
|
+
switchSession,
|
|
218
|
+
clearSessionState,
|
|
219
|
+
saveActiveSessionId
|
|
220
|
+
} = useSessionManagement({
|
|
221
|
+
oxyServices,
|
|
222
|
+
storage,
|
|
223
|
+
storageKeyPrefix,
|
|
224
|
+
loginSuccess,
|
|
225
|
+
logoutStore,
|
|
226
|
+
onAuthStateChange,
|
|
227
|
+
onError,
|
|
228
|
+
setAuthError: message => setAuthState({
|
|
229
|
+
error: message
|
|
230
|
+
}),
|
|
231
|
+
logger,
|
|
232
|
+
setTokenReady,
|
|
233
|
+
queryClient
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// Refs so callbacks below can invoke the latest session-management functions
|
|
237
|
+
// without widening dependency arrays.
|
|
238
|
+
const switchSessionRef = useRef(switchSession);
|
|
239
|
+
switchSessionRef.current = switchSession;
|
|
240
|
+
const clearSessionStateRef = useRef(clearSessionState);
|
|
241
|
+
clearSessionStateRef.current = clearSessionState;
|
|
242
|
+
const setActiveSessionIdRef = useRef(setActiveSessionId);
|
|
243
|
+
setActiveSessionIdRef.current = setActiveSessionId;
|
|
244
|
+
const loginSuccessRef = useRef(loginSuccess);
|
|
245
|
+
loginSuccessRef.current = loginSuccess;
|
|
246
|
+
const onAuthStateChangeRef = useRef(onAuthStateChange);
|
|
247
|
+
onAuthStateChangeRef.current = onAuthStateChange;
|
|
248
|
+
|
|
249
|
+
// Flip the auth-resolution gate (`authResolved` + `tokenReady`) the moment a
|
|
250
|
+
// session commits or the boot concludes signed out. Idempotent + monotonic.
|
|
251
|
+
const markAuthResolved = useCallback(() => {
|
|
252
|
+
if (authResolvedRef.current) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
authResolvedRef.current = true;
|
|
256
|
+
setTokenReady(true);
|
|
257
|
+
setAuthResolved(true);
|
|
258
|
+
}, []);
|
|
259
|
+
const markAuthResolvedRef = useRef(markAuthResolved);
|
|
260
|
+
markAuthResolvedRef.current = markAuthResolved;
|
|
261
|
+
|
|
262
|
+
// Server-authoritative device session client. Built ONCE per `oxyServices`
|
|
263
|
+
// instance. Device-scoped sockets connect with deviceId+deviceSecret when no
|
|
264
|
+
// bearer is planted yet, so cross-origin apps sync via `session_state` after
|
|
265
|
+
// the one-shot join redirect.
|
|
266
|
+
const sessionClientPairRef = useRef(null);
|
|
267
|
+
if (!sessionClientPairRef.current) {
|
|
268
|
+
sessionClientPairRef.current = createSessionClient(oxyServices, origin => {
|
|
269
|
+
// Erase the DURABLE device credential only on a `request`-origin verdict
|
|
270
|
+
// (a REST sign-out / revocation). A `push`-origin empty state is a socket
|
|
271
|
+
// broadcast that may be a transient reconnect artifact — clearing the
|
|
272
|
+
// credential on it would strand the user signed out with no way back, so
|
|
273
|
+
// we clear only the local UI session and keep the credential (a dead one
|
|
274
|
+
// re-mints to `no_active_session` and resolves signed-out on next boot).
|
|
275
|
+
if (origin === 'request') {
|
|
276
|
+
clearPersistedAuthSafe(authStore, logger);
|
|
277
|
+
}
|
|
278
|
+
void clearSessionStateRef.current().catch(clearError => {
|
|
279
|
+
logger('Failed to clear local state on remote sign-out', clearError);
|
|
280
|
+
});
|
|
281
|
+
},
|
|
282
|
+
// `null` for every account-mode provider — identical to omitting the
|
|
283
|
+
// option — and the pinned account id once an identity-bound provider has
|
|
284
|
+
// resolved its pin. Read through the ref so the resolver stays stable for
|
|
285
|
+
// the client's lifetime while still seeing later resolutions.
|
|
286
|
+
() => identityRef.current?.getPinnedAccountId() ?? null);
|
|
287
|
+
}
|
|
288
|
+
const {
|
|
289
|
+
client: sessionClient,
|
|
290
|
+
host: sessionClientHost
|
|
291
|
+
} = sessionClientPairRef.current;
|
|
292
|
+
|
|
293
|
+
// Re-establishment lane for an identity-bound provider whose pin is missing or
|
|
294
|
+
// whose pinned account is no longer part of this device's session set (another
|
|
295
|
+
// app signed it out, or the device was re-provisioned). Adopting whichever
|
|
296
|
+
// account the device is currently switched to is exactly the drift
|
|
297
|
+
// `sessionMode: 'identity'` exists to prevent, so the only correct answer is to
|
|
298
|
+
// re-derive the session from the local identity key.
|
|
299
|
+
//
|
|
300
|
+
// Bounded on purpose: at most ONE attempt per applied device revision, and
|
|
301
|
+
// never two concurrently — a repeated failure (locked keychain, offline, no
|
|
302
|
+
// local identity) must never spin a sign-in loop against the server. Nothing
|
|
303
|
+
// awaits it, so it can never deadlock against the projection that triggers it;
|
|
304
|
+
// the `bootstrap()` below re-applies device state, whose notify re-runs the
|
|
305
|
+
// projection with the pin now resolved.
|
|
306
|
+
const identityEstablishRef = useRef({
|
|
307
|
+
revision: null,
|
|
308
|
+
inFlight: false
|
|
309
|
+
});
|
|
310
|
+
const reestablishIdentitySession = useCallback((binding, revision) => {
|
|
311
|
+
const tracker = identityEstablishRef.current;
|
|
312
|
+
if (tracker.inFlight || tracker.revision === revision) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
tracker.revision = revision;
|
|
316
|
+
tracker.inFlight = true;
|
|
317
|
+
void (async () => {
|
|
318
|
+
const established = await establishIdentitySession({
|
|
319
|
+
oxy: oxyServices,
|
|
320
|
+
store: authStore,
|
|
321
|
+
binding: binding.binding
|
|
322
|
+
});
|
|
323
|
+
if (!established) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
// The verify wrote a fresh pin; adopt it before re-reading device state
|
|
327
|
+
// so the notify that follows projects against the new binding.
|
|
328
|
+
await binding.refreshPinnedAccountId();
|
|
329
|
+
await sessionClient.bootstrap();
|
|
330
|
+
})().catch(establishError => {
|
|
331
|
+
logger('Failed to re-establish the identity-bound session', establishError);
|
|
332
|
+
}).finally(() => {
|
|
333
|
+
tracker.inFlight = false;
|
|
334
|
+
});
|
|
335
|
+
}, [oxyServices, authStore, sessionClient, logger]);
|
|
336
|
+
|
|
337
|
+
// Projects `client.getState()` onto the exposed `sessions`/`activeSessionId`/
|
|
338
|
+
// `user`. Sole authority for both locally-initiated mutations (switch/logout)
|
|
339
|
+
// AND remotely-pushed `session_state` over the `device:<deviceId>` socket.
|
|
340
|
+
const syncFromClient = useCallback(async () => {
|
|
341
|
+
const state = sessionClient.getState();
|
|
342
|
+
if (state === null) {
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
if (state.accounts.length === 0) {
|
|
346
|
+
// Clear the LOCAL UI session on any applied empty state, but NEVER the
|
|
347
|
+
// durable device credential here: `syncFromClient` runs for socket-pushed
|
|
348
|
+
// (possibly transient) states too, and wiping the credential on one would
|
|
349
|
+
// strand the user signed out. The credential wipe is gated on a
|
|
350
|
+
// `request`-origin verdict in `onUnauthenticated` above.
|
|
351
|
+
sessionClientHost.setCurrentAccountId(null);
|
|
352
|
+
await clearSessionState();
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
// Last-write-wins guard: capture the revision this projection is for, then
|
|
356
|
+
// after the async profile fetch bail if a fresher state has landed.
|
|
357
|
+
const capturedRevision = state.revision;
|
|
358
|
+
// Resolve the pin BEFORE the profile fetch (memoised: one storage + keychain
|
|
359
|
+
// read per boot) so every projection below is bound on the FIRST pass over a
|
|
360
|
+
// freshly applied state. Deferring it would let a sibling app's switch render
|
|
361
|
+
// once as this client's user before the pin corrected it. `null` for every
|
|
362
|
+
// account-mode provider, where each projection falls back to the device's
|
|
363
|
+
// active account exactly as before.
|
|
364
|
+
const pinnedAccountId = identity ? await identity.ensurePinnedAccountId() : null;
|
|
365
|
+
const ids = accountIdsOf(state);
|
|
366
|
+
let users = [];
|
|
367
|
+
try {
|
|
368
|
+
users = ids.length > 0 ? await oxyServices.getUsersByIds(ids) : [];
|
|
369
|
+
} catch (fetchError) {
|
|
370
|
+
logger('Failed to resolve account profiles during syncFromClient', fetchError);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
const latest = sessionClient.getState();
|
|
374
|
+
if (!latest || latest.revision !== capturedRevision) {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
if (identity && (pinnedAccountId === null || activeSessionIdOf(latest, pinnedAccountId) === null)) {
|
|
378
|
+
// Either no verified pin, or the pinned account left this device's session
|
|
379
|
+
// set. Projecting anything here would mean projecting SOMEBODY ELSE's
|
|
380
|
+
// account, so leave the current projection untouched and re-derive the
|
|
381
|
+
// session from the local identity key instead.
|
|
382
|
+
reestablishIdentitySession(identity, latest.revision);
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
const usersById = new Map(users.map(resolvedUser => [resolvedUser.id, resolvedUser]));
|
|
386
|
+
updateSessions(deviceStateToClientSessions(latest, usersById, pinnedAccountId));
|
|
387
|
+
setActiveSessionId(activeSessionIdOf(latest, pinnedAccountId));
|
|
388
|
+
const activeUser = activeUserOf(latest, usersById, pinnedAccountId);
|
|
389
|
+
if (activeUser) {
|
|
390
|
+
loginSuccess(activeUser);
|
|
391
|
+
}
|
|
392
|
+
// The host's current account feeds the socket handshake and the bearer's
|
|
393
|
+
// token-account comparisons, so it tracks the PIN — never the account another
|
|
394
|
+
// app switched the device to.
|
|
395
|
+
sessionClientHost.setCurrentAccountId(pinnedAccountId ?? latest.activeAccountId);
|
|
396
|
+
}, [identity, oxyServices, reestablishIdentitySession, sessionClient, sessionClientHost, updateSessions, setActiveSessionId, loginSuccess, clearSessionState, logger]);
|
|
397
|
+
const syncFromClientRef = useRef(syncFromClient);
|
|
398
|
+
syncFromClientRef.current = syncFromClient;
|
|
399
|
+
const syncDeviceCredentialToHost = useCallback(async () => {
|
|
400
|
+
const cred = await loadPersistedDeviceCredential(authStore);
|
|
401
|
+
sessionClientHost.setDeviceCredential(cred);
|
|
402
|
+
}, [authStore, sessionClientHost]);
|
|
403
|
+
useEffect(() => {
|
|
404
|
+
return sessionClient.subscribe(() => {
|
|
405
|
+
void syncFromClient();
|
|
406
|
+
});
|
|
407
|
+
}, [sessionClient, syncFromClient]);
|
|
408
|
+
const {
|
|
409
|
+
signIn,
|
|
410
|
+
logout,
|
|
411
|
+
logoutAll
|
|
412
|
+
} = useAuthOperations({
|
|
413
|
+
oxyServices,
|
|
414
|
+
store: authStore,
|
|
415
|
+
storage,
|
|
416
|
+
activeSessionId,
|
|
417
|
+
setActiveSessionId,
|
|
418
|
+
updateSessions,
|
|
419
|
+
saveActiveSessionId,
|
|
420
|
+
clearSessionState,
|
|
421
|
+
switchSession,
|
|
422
|
+
sessionClient,
|
|
423
|
+
syncFromClient,
|
|
424
|
+
onAuthStateChange,
|
|
425
|
+
onError,
|
|
426
|
+
loginSuccess,
|
|
427
|
+
loginFailure,
|
|
428
|
+
logoutStore,
|
|
429
|
+
setAuthState,
|
|
430
|
+
logger,
|
|
431
|
+
...(identity ? {
|
|
432
|
+
identityBinding: identity.binding,
|
|
433
|
+
refreshPinnedAccountId: () => identity.refreshPinnedAccountId()
|
|
434
|
+
} : {})
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
// "That wasn't me": repudiating a flagged sign-in IS revoking the device
|
|
438
|
+
// session that just committed — the same server-authoritative
|
|
439
|
+
// `sessionClient.signOut(...)` path `logout` uses, which also clears the
|
|
440
|
+
// persisted device credential + local state when no sibling account remains.
|
|
441
|
+
// No dedicated "report suspicious" API endpoint exists (or is needed).
|
|
442
|
+
const revokeSuspiciousSignIn = useCallback(async () => {
|
|
443
|
+
await logout();
|
|
444
|
+
}, [logout]);
|
|
445
|
+
const clearAllAccountData = useCallback(async () => {
|
|
446
|
+
queryClient.clear();
|
|
447
|
+
if (storage) {
|
|
448
|
+
try {
|
|
449
|
+
await clearQueryCache(storage);
|
|
450
|
+
} catch (error) {
|
|
451
|
+
logger('Failed to clear persisted query cache', error);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
await clearSessionState();
|
|
455
|
+
// Explicit FULL wipe: also drop the persisted device credential so a reload
|
|
456
|
+
// finds nothing to restore.
|
|
457
|
+
await authStore.clear();
|
|
458
|
+
useAccountStore.getState().reset();
|
|
459
|
+
oxyServices.clearCache();
|
|
460
|
+
}, [queryClient, storage, clearSessionState, authStore, logger, oxyServices]);
|
|
461
|
+
const {
|
|
462
|
+
getDeviceSessions,
|
|
463
|
+
logoutAllDeviceSessions,
|
|
464
|
+
updateDeviceName
|
|
465
|
+
} = useDeviceManagement({
|
|
466
|
+
oxyServices,
|
|
467
|
+
activeSessionId,
|
|
468
|
+
onError,
|
|
469
|
+
clearSessionState,
|
|
470
|
+
logger
|
|
471
|
+
});
|
|
472
|
+
const useFollowHook = loadUseFollowHook();
|
|
473
|
+
|
|
474
|
+
// Token-change side effects: an invalidated bearer (HttpService clears tokens
|
|
475
|
+
// on an unrecoverable 401 and emits `null`) must locally sign out an
|
|
476
|
+
// authenticated user so `isAuthenticated` never lingers true with no token.
|
|
477
|
+
// The persisted store is NOT cleared here — the refresh handler already
|
|
478
|
+
// cleared it if the family was revoked; a transient null leaves it intact so a
|
|
479
|
+
// later reload can still restore.
|
|
480
|
+
const clearingInvalidTokenRef = useRef(false);
|
|
481
|
+
useEffect(() => {
|
|
482
|
+
const handleTokenChange = accessToken => {
|
|
483
|
+
setHasAccessToken(Boolean(accessToken));
|
|
484
|
+
if (accessToken) {
|
|
485
|
+
setTokenReady(true);
|
|
486
|
+
if (sessionClient.getState()?.accounts.length) {
|
|
487
|
+
void syncFromClientRef.current();
|
|
488
|
+
}
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
if (userRef.current || isAuthenticatedRef.current) {
|
|
492
|
+
setTokenReady(false);
|
|
493
|
+
if (clearingInvalidTokenRef.current) {
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
clearingInvalidTokenRef.current = true;
|
|
497
|
+
clearSessionStateRef.current().catch(clearError => {
|
|
498
|
+
logger('Failed to clear invalidated auth session', clearError);
|
|
499
|
+
}).finally(() => {
|
|
500
|
+
clearingInvalidTokenRef.current = false;
|
|
501
|
+
if (authResolvedRef.current) {
|
|
502
|
+
setTokenReady(true);
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
if (authResolvedRef.current) {
|
|
508
|
+
setTokenReady(true);
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
handleTokenChange(oxyServices.getAccessToken());
|
|
512
|
+
return oxyServices.onTokensChanged(handleTokenChange);
|
|
513
|
+
}, [logger, oxyServices, sessionClient]);
|
|
514
|
+
|
|
515
|
+
// Unified in-session refresh (SDK-owned; every RP inherits it). Installs the
|
|
516
|
+
// ONE core refresh handler (re-mint from the persisted zero-cookie device
|
|
517
|
+
// credential via `POST /session/device/token`) plus the proactive scheduler
|
|
518
|
+
// that refreshes ~60s before expiry and on tab-focus. Replaces the deleted
|
|
519
|
+
// services-local `inSessionTokenRefresh` module.
|
|
520
|
+
// An identity binding turns every re-mint pinned: it targets the pinned
|
|
521
|
+
// account instead of the device's active one, and its recovery arm becomes the
|
|
522
|
+
// PRIMARY-key identity sign-in rather than the cross-app shared keychain.
|
|
523
|
+
useEffect(() => {
|
|
524
|
+
const dispose = installAuthRefreshHandler({
|
|
525
|
+
oxy: oxyServices,
|
|
526
|
+
store: authStore,
|
|
527
|
+
...(identity ? {
|
|
528
|
+
identity: identity.binding
|
|
529
|
+
} : {})
|
|
530
|
+
});
|
|
531
|
+
const scheduler = startTokenRefreshScheduler(oxyServices);
|
|
532
|
+
return () => {
|
|
533
|
+
scheduler.dispose();
|
|
534
|
+
dispose();
|
|
535
|
+
};
|
|
536
|
+
}, [oxyServices, authStore, identity]);
|
|
537
|
+
|
|
538
|
+
// ── Session commit funnel ────────────────────────────────────────────────
|
|
539
|
+
// The single place a session becomes committed: plant tokens, persist the
|
|
540
|
+
// zero-cookie device credential (`deviceId` + `deviceSecret`), register the
|
|
541
|
+
// account into the server-authoritative device set, and hydrate the full user.
|
|
542
|
+
// Used by the QR device flow (`handleWebSession`), password sign-in, 2FA
|
|
543
|
+
// completion, and the cold boot.
|
|
544
|
+
const commitSession = useCallback(async (input, options) => {
|
|
545
|
+
if (input.accessToken) {
|
|
546
|
+
oxyServices.setTokens(input.accessToken);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// Persist the durable blob when the zero-cookie device credential is present.
|
|
550
|
+
if (input.deviceId && input.deviceSecret) {
|
|
551
|
+
try {
|
|
552
|
+
const prior = await authStore.load();
|
|
553
|
+
const next = {
|
|
554
|
+
sessionId: input.sessionId || prior?.sessionId || '',
|
|
555
|
+
userId: input.userId || prior?.userId || '',
|
|
556
|
+
deviceId: input.deviceId,
|
|
557
|
+
deviceSecret: input.deviceSecret,
|
|
558
|
+
...(input.accessToken ? {
|
|
559
|
+
accessToken: input.accessToken
|
|
560
|
+
} : {}),
|
|
561
|
+
...(input.expiresAt ? {
|
|
562
|
+
expiresAt: input.expiresAt
|
|
563
|
+
} : {})
|
|
564
|
+
};
|
|
565
|
+
await authStore.save(next);
|
|
566
|
+
sessionClientHost.setDeviceCredential({
|
|
567
|
+
deviceId: input.deviceId,
|
|
568
|
+
deviceSecret: input.deviceSecret
|
|
569
|
+
});
|
|
570
|
+
} catch (persistError) {
|
|
571
|
+
logger('Failed to persist auth state on commit', persistError);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// Fast local mirror so the UI updates before the server round-trip; the
|
|
576
|
+
// SessionClient projection below overwrites it with server truth.
|
|
577
|
+
if (input.userId) {
|
|
578
|
+
const now = new Date();
|
|
579
|
+
updateSessions([{
|
|
580
|
+
sessionId: input.sessionId,
|
|
581
|
+
deviceId: input.deviceId ?? '',
|
|
582
|
+
expiresAt: input.expiresAt || new Date(now.getTime() + DEFAULT_SESSION_VALIDITY_MS).toISOString(),
|
|
583
|
+
lastActive: now.toISOString(),
|
|
584
|
+
userId: input.userId,
|
|
585
|
+
isCurrent: true
|
|
586
|
+
}], {
|
|
587
|
+
merge: true
|
|
588
|
+
});
|
|
589
|
+
setActiveSessionId(input.sessionId);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// Register into the device set, hydrate the full user, and flip the
|
|
593
|
+
// auth-resolution gate. A deliberate sign-in ACTIVATES the account and
|
|
594
|
+
// BLOCKS on the reconcile (register + socket + sessions projection) before
|
|
595
|
+
// resolving — unchanged ordering. The cold boot resolves auth from the
|
|
596
|
+
// profile fetch FIRST and reconciles the device set in the background, so
|
|
597
|
+
// first paint is not held behind those extra round-trips. Reconcile is
|
|
598
|
+
// best-effort — a failure never fails the sign-in (cold boot re-registers
|
|
599
|
+
// on the next load).
|
|
600
|
+
await commitDeviceSetAndResolve({
|
|
601
|
+
activate: options.activate,
|
|
602
|
+
userId: input.userId,
|
|
603
|
+
fallbackUser: input.user ?? null,
|
|
604
|
+
registerAndActivate: userId => sessionClient.registerAndActivate(userId),
|
|
605
|
+
addCurrentAccount: () => sessionClient.addCurrentAccount(),
|
|
606
|
+
startSocket: () => sessionClient.start(),
|
|
607
|
+
syncFromClient,
|
|
608
|
+
getCurrentUser: () => oxyServices.getCurrentUser(),
|
|
609
|
+
loginSuccess,
|
|
610
|
+
onAuthStateChange: onAuthStateChangeRef.current,
|
|
611
|
+
markAuthResolved: markAuthResolvedRef.current
|
|
612
|
+
});
|
|
613
|
+
}, [oxyServices, authStore, updateSessions, setActiveSessionId, sessionClient, sessionClientHost, syncFromClient, loginSuccess, logger]);
|
|
614
|
+
const commitSessionRef = useRef(commitSession);
|
|
615
|
+
commitSessionRef.current = commitSession;
|
|
616
|
+
|
|
617
|
+
// Public `handleWebSession`: commit a session from the QR device flow. It is a
|
|
618
|
+
// deliberate sign-in on THIS device, so it activates the account.
|
|
619
|
+
const handleWebSession = useCallback(async session => {
|
|
620
|
+
if (!session?.user || !session?.sessionId || !session.accessToken) {
|
|
621
|
+
throw new Error('Session response did not include a usable session');
|
|
622
|
+
}
|
|
623
|
+
await commitSession({
|
|
624
|
+
sessionId: session.sessionId,
|
|
625
|
+
accessToken: session.accessToken,
|
|
626
|
+
deviceSecret: session.deviceSecret,
|
|
627
|
+
deviceId: session.deviceId,
|
|
628
|
+
expiresAt: session.expiresAt,
|
|
629
|
+
userId: session.user.id,
|
|
630
|
+
user: session.user
|
|
631
|
+
}, {
|
|
632
|
+
activate: true
|
|
633
|
+
});
|
|
634
|
+
}, [commitSession]);
|
|
635
|
+
|
|
636
|
+
// Commit a minted graph-SWITCH session through the same funnel as
|
|
637
|
+
// `handleWebSession`. Nothing extra to do IN-PLACE: the switch already
|
|
638
|
+
// propagates across tabs/apps via the server's `session_state` socket
|
|
639
|
+
// broadcast.
|
|
640
|
+
const commitSwitchedSession = useCallback(async session => {
|
|
641
|
+
if (!session?.user || !session?.sessionId || !session.accessToken) {
|
|
642
|
+
throw new Error('Session response did not include a usable session');
|
|
643
|
+
}
|
|
644
|
+
await commitSession({
|
|
645
|
+
sessionId: session.sessionId,
|
|
646
|
+
accessToken: session.accessToken,
|
|
647
|
+
deviceSecret: session.deviceSecret,
|
|
648
|
+
deviceId: session.deviceId,
|
|
649
|
+
expiresAt: session.expiresAt,
|
|
650
|
+
userId: session.user.id,
|
|
651
|
+
user: session.user
|
|
652
|
+
}, {
|
|
653
|
+
activate: true
|
|
654
|
+
});
|
|
655
|
+
}, [commitSession]);
|
|
656
|
+
|
|
657
|
+
// ── Web third-party OAuth sign-in ──────────────────────────────────────────
|
|
658
|
+
// The shared operation `OxySignInButton` (and any RP-owned button) delegates
|
|
659
|
+
// to, so no consumer ever writes popup listeners or a token exchange. The
|
|
660
|
+
// transport picks popup vs redirect from `webAuthMode`; both lanes land on the
|
|
661
|
+
// SAME completion path (`completeOAuthCode`) and the same commit funnel here.
|
|
662
|
+
const startWebOAuthSignInForContext = useCallback(options => startWebOAuthSignIn({
|
|
663
|
+
mode: webAuthMode,
|
|
664
|
+
oxyServices,
|
|
665
|
+
clientId,
|
|
666
|
+
authorizeBaseUrl,
|
|
667
|
+
identityBound: isIdentityBound,
|
|
668
|
+
commitSession: input => commitSessionRef.current(input, {
|
|
669
|
+
activate: true
|
|
670
|
+
})
|
|
671
|
+
}, options), [webAuthMode, oxyServices, clientId, authorizeBaseUrl, isIdentityBound]);
|
|
672
|
+
|
|
673
|
+
// ── Unified account dialog ─────────────────────────────────────────────────
|
|
674
|
+
// The single account-chooser + sign-in surface. Built ONCE per provider mount
|
|
675
|
+
// and bound to the live `oxyServices` + `sessionClient` + this provider's
|
|
676
|
+
// commit funnels. Both funnels are threaded through refs so the controller
|
|
677
|
+
// keeps STABLE commit callbacks (rebuilding the controller on every
|
|
678
|
+
// commit-identity change would drop its subscription + state).
|
|
679
|
+
const handleWebSessionRef = useRef(handleWebSession);
|
|
680
|
+
handleWebSessionRef.current = handleWebSession;
|
|
681
|
+
const commitSwitchedSessionRef = useRef(commitSwitchedSession);
|
|
682
|
+
commitSwitchedSessionRef.current = commitSwitchedSession;
|
|
683
|
+
|
|
684
|
+
// The live AccountDialog surface (a stacked Bloom surface), while open — the
|
|
685
|
+
// SINGLE source of truth for "is the account dialog open". Held so
|
|
686
|
+
// `openAccountDialog` can no-op when already open and `closeAccountDialog` /
|
|
687
|
+
// `onSignedIn` can dismiss it. Its present→settle lifecycle is what drives the
|
|
688
|
+
// reactive `accountDialogOpen` mirror below: presenting flips it true, the
|
|
689
|
+
// surface settling (`result.finally`) flips it false — no other write site.
|
|
690
|
+
const accountDialogSurfaceRef = useRef(null);
|
|
691
|
+
|
|
692
|
+
// When the account dialog is shown by MORPHING an already-open route surface
|
|
693
|
+
// (e.g. ManageAccount → the account switcher) it is pushed as a frame ONTO that
|
|
694
|
+
// surface rather than presented as its own. This holds that host surface so the
|
|
695
|
+
// close path can pop the AccountDialog frame back to it. `null` when the dialog
|
|
696
|
+
// is its OWN detached surface (opened cold, with no surface underneath).
|
|
697
|
+
const accountDialogHostRef = useRef(null);
|
|
698
|
+
|
|
699
|
+
// The single teardown for the account dialog wherever it lives: pop the morphed
|
|
700
|
+
// frame back to its host surface (reshaping Manage ← switcher), or dismiss the
|
|
701
|
+
// detached surface (whose settle then flips `accountDialogOpen`). Reads only
|
|
702
|
+
// stable refs + `setAccountDialogOpen`, so its identity never changes.
|
|
703
|
+
const dismissAccountDialogSurface = useCallback(() => {
|
|
704
|
+
const host = accountDialogHostRef.current;
|
|
705
|
+
if (host) {
|
|
706
|
+
accountDialogHostRef.current = null;
|
|
707
|
+
setAccountDialogOpen(false);
|
|
708
|
+
host.goBack();
|
|
709
|
+
return;
|
|
710
|
+
}
|
|
711
|
+
accountDialogSurfaceRef.current?.dismiss();
|
|
712
|
+
}, []);
|
|
713
|
+
|
|
714
|
+
// Never built while identity-bound: the dialog exists to CHOOSE an account,
|
|
715
|
+
// and an identity-bound client has exactly one — the owner of the local
|
|
716
|
+
// identity key. Leaving it `null` (the same shape consumers see with no
|
|
717
|
+
// provider mounted) keeps its QR/polling machinery off entirely instead of
|
|
718
|
+
// relying on UI-level filtering to hide it.
|
|
719
|
+
const accountDialogControllerRef = useRef(null);
|
|
720
|
+
if (!isIdentityBound && !accountDialogControllerRef.current) {
|
|
721
|
+
accountDialogControllerRef.current = createAccountDialogController({
|
|
722
|
+
oxyServices,
|
|
723
|
+
sessionClient,
|
|
724
|
+
clientId,
|
|
725
|
+
locale: currentLanguage,
|
|
726
|
+
// Same statically-injected `io` as the SessionClient: gives the QR flow an
|
|
727
|
+
// instant `/auth-session` `auth_update` wake instead of a slow poll.
|
|
728
|
+
socketFactory: io,
|
|
729
|
+
commitSession: session => handleWebSessionRef.current(session),
|
|
730
|
+
commitSwitchedSession: session => commitSwitchedSessionRef.current(session),
|
|
731
|
+
onSignedIn: () => {
|
|
732
|
+
// Close the dialog: pop the morphed frame back to its host surface, or
|
|
733
|
+
// dismiss the detached surface (whose settle flips `accountDialogOpen`).
|
|
734
|
+
dismissAccountDialogSurface();
|
|
735
|
+
},
|
|
736
|
+
openUrl: url => {
|
|
737
|
+
if (isWebBrowser()) {
|
|
738
|
+
redirectToAuthorize(url);
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
void Linking.openURL(url);
|
|
742
|
+
},
|
|
743
|
+
// Native-only probe so the controller can detect an installed Commons and
|
|
744
|
+
// deep-link straight into its approve screen (keeping the QR/polling live
|
|
745
|
+
// as fallback). `undefined` on web mirrors the `openUrl` split — the
|
|
746
|
+
// controller short-circuits, so `redirectToAuthorize` never runs for the
|
|
747
|
+
// `oxycommons://` payload.
|
|
748
|
+
canOpenApp: isWebBrowser() ? undefined : url => Linking.canOpenURL(url),
|
|
749
|
+
// Web-only: lets `startPasskeyHubSignIn` open the auth.oxy.so passkey hub
|
|
750
|
+
// popup (b2) for a non-Oxy origin. `undefined` on native — there is no
|
|
751
|
+
// popup concept there, and off-origin passkey sign-in isn't reachable
|
|
752
|
+
// (Commons owns the native flow).
|
|
753
|
+
openPopup: isWebBrowser() ? openPasskeyHubPopup : undefined,
|
|
754
|
+
// Which surface a sign-in starts from — a FACT only this consumer can
|
|
755
|
+
// supply (headless core never touches a platform global). It decides
|
|
756
|
+
// whether automatic delivery may take the same-device Commons deep link;
|
|
757
|
+
// without it the controller stays `'unknown'` and that route never fires.
|
|
758
|
+
platform: resolveDeliveryPlatform()
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
const accountDialogController = accountDialogControllerRef.current;
|
|
762
|
+
const openAccountDialog = useCallback(view => {
|
|
763
|
+
if (isIdentityBound) {
|
|
764
|
+
// No controller was built, and there is nothing to choose: this app's user
|
|
765
|
+
// is fixed to the owner of the local identity key.
|
|
766
|
+
if (__DEV__) {
|
|
767
|
+
loggerUtil.warn('openAccountDialog ignored: the session is identity-bound (sessionMode: "identity")', {
|
|
768
|
+
component: 'OxyContext',
|
|
769
|
+
method: 'openAccountDialog'
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
const nextView = view ?? 'accounts';
|
|
775
|
+
accountDialogControllerRef.current?.setView(nextView);
|
|
776
|
+
|
|
777
|
+
// Its own detached surface is already open → just re-point the view above.
|
|
778
|
+
if (accountDialogSurfaceRef.current) {
|
|
779
|
+
setAccountDialogOpen(true);
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// When a route surface (e.g. ManageAccount) is already open, MORPH it in
|
|
784
|
+
// place: push the AccountDialog as a frame ONTO that surface, so the panel
|
|
785
|
+
// reshapes from that surface to the switcher and a back returns to it. With no
|
|
786
|
+
// surface open (opened cold from a sign-in button), present the dialog as its
|
|
787
|
+
// OWN detached surface — kept OUT of the `showBottomSheet` route-surface
|
|
788
|
+
// lineage so closing the bottom-sheet session never touches it and vice-versa.
|
|
789
|
+
// `navigate` is idempotent for the top frame (it replaces rather than
|
|
790
|
+
// duplicates), so calling this while already morphed in just re-points the
|
|
791
|
+
// view, and calling it after a back re-pushes the frame — no stale guard.
|
|
792
|
+
const host = topRouteSurface();
|
|
793
|
+
if (host) {
|
|
794
|
+
accountDialogHostRef.current = host;
|
|
795
|
+
host.navigate('AccountDialog', {
|
|
796
|
+
initialView: nextView
|
|
797
|
+
});
|
|
798
|
+
setAccountDialogOpen(true);
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
const instance = presentDetached('AccountDialog', {
|
|
802
|
+
initialView: nextView
|
|
803
|
+
}, {
|
|
804
|
+
placement: {
|
|
805
|
+
base: 'bottom',
|
|
806
|
+
md: 'center'
|
|
807
|
+
},
|
|
808
|
+
dismissOnBackdrop: false,
|
|
809
|
+
maxWidth: 420
|
|
810
|
+
});
|
|
811
|
+
accountDialogSurfaceRef.current = instance;
|
|
812
|
+
// The surface settling is the ONE place `accountDialogOpen` flips false for
|
|
813
|
+
// the detached path — covering every dismiss (close button, `onSignedIn`,
|
|
814
|
+
// programmatic `closeAccountDialog`, host unmount). The morphed path clears
|
|
815
|
+
// its own state in `dismissAccountDialogSurface`.
|
|
816
|
+
instance.result.finally(() => {
|
|
817
|
+
if (accountDialogSurfaceRef.current === instance) {
|
|
818
|
+
accountDialogSurfaceRef.current = null;
|
|
819
|
+
setAccountDialogOpen(false);
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
setAccountDialogOpen(true);
|
|
823
|
+
}, [isIdentityBound]);
|
|
824
|
+
const closeAccountDialog = useCallback(() => {
|
|
825
|
+
accountDialogControllerRef.current?.cancelSignIn();
|
|
826
|
+
dismissAccountDialogSurface();
|
|
827
|
+
}, [dismissAccountDialogSurface]);
|
|
828
|
+
|
|
829
|
+
// Start driving the dialog on mount; tear it down on unmount.
|
|
830
|
+
useEffect(() => {
|
|
831
|
+
const controller = accountDialogControllerRef.current;
|
|
832
|
+
controller?.start();
|
|
833
|
+
return () => controller?.destroy();
|
|
834
|
+
}, []);
|
|
835
|
+
|
|
836
|
+
// Expose the live open/close controls to the imperative manager so
|
|
837
|
+
// Imperative `openAccountDialog('signin')` (and app-level sign-in handlers) works.
|
|
838
|
+
useEffect(() => registerAccountDialogControls({
|
|
839
|
+
open: openAccountDialog,
|
|
840
|
+
close: closeAccountDialog
|
|
841
|
+
}), [openAccountDialog, closeAccountDialog]);
|
|
842
|
+
|
|
843
|
+
// Broadcast visibility so `OxySignInButton`'s "Signing in…" affordance stays
|
|
844
|
+
// accurate regardless of what opened or dismissed the dialog.
|
|
845
|
+
useEffect(() => {
|
|
846
|
+
notifyAccountDialogVisibility(accountDialogOpen);
|
|
847
|
+
}, [accountDialogOpen]);
|
|
848
|
+
|
|
849
|
+
// ── Passkey (WebAuthn) ─────────────────────────────────────────────────────
|
|
850
|
+
// Web-only sign-in / registration via the browser WebAuthn ceremony. The fixed
|
|
851
|
+
// `options → ceremony → verify → commit` ordering lives in the pure
|
|
852
|
+
// `passkeyFlow` helpers (deps-injected, unit-tested); these wrappers supply the
|
|
853
|
+
// real deps (core `webauthn*` methods, the platform ceremony client, and the
|
|
854
|
+
// `commitSession` funnel). All three GATE on `isPasskeySupported()` so a native
|
|
855
|
+
// / unsupported surface throws loudly instead of stalling in a ceremony.
|
|
856
|
+
|
|
857
|
+
// Passkey sign-in. No `username` → usernameless (discoverable) flow. With a
|
|
858
|
+
// `username` → username-first: the server scopes `allowCredentials` to that
|
|
859
|
+
// user's passkeys so a non-discoverable hardware key (U2F/security key) can
|
|
860
|
+
// be selected.
|
|
861
|
+
const signInWithPasskey = useCallback(async opts => {
|
|
862
|
+
const persisted = await authStore.load();
|
|
863
|
+
await runPasskeyLogin({
|
|
864
|
+
isSupported: isPasskeySupported,
|
|
865
|
+
getLoginOptions: username => oxyServices.webauthnLoginOptions(username),
|
|
866
|
+
runCeremony: runAuthenticationCeremony,
|
|
867
|
+
loginVerify: (response, envelope) => oxyServices.webauthnLoginVerify(response, envelope),
|
|
868
|
+
commit: input => commitSession(input, {
|
|
869
|
+
activate: true
|
|
870
|
+
}),
|
|
871
|
+
username: opts?.username,
|
|
872
|
+
deviceId: persisted?.deviceId,
|
|
873
|
+
deviceName: opts?.deviceName,
|
|
874
|
+
deviceFingerprint: opts?.deviceFingerprint
|
|
875
|
+
});
|
|
876
|
+
}, [oxyServices, authStore, commitSession]);
|
|
877
|
+
|
|
878
|
+
// Create a brand-new account whose first auth method is a passkey.
|
|
879
|
+
const registerWithPasskey = useCallback(async params => {
|
|
880
|
+
await runPasskeyRegister({
|
|
881
|
+
isSupported: isPasskeySupported,
|
|
882
|
+
getRegisterOptions: username => oxyServices.webauthnRegisterOptions(username),
|
|
883
|
+
runCeremony: runRegistrationCeremony,
|
|
884
|
+
registerVerify: (response, envelope) => oxyServices.webauthnRegisterVerify(response, envelope),
|
|
885
|
+
commit: input => commitSession(input, {
|
|
886
|
+
activate: true
|
|
887
|
+
}),
|
|
888
|
+
username: params.username,
|
|
889
|
+
deviceName: params.deviceName
|
|
890
|
+
});
|
|
891
|
+
}, [oxyServices, commitSession]);
|
|
892
|
+
|
|
893
|
+
// Add a passkey to the already-signed-in account (bearer present). No new
|
|
894
|
+
// session is committed — just refresh the linked auth-methods list.
|
|
895
|
+
const addPasskey = useCallback(async params => {
|
|
896
|
+
await runPasskeyAdd({
|
|
897
|
+
isSupported: isPasskeySupported,
|
|
898
|
+
getRegisterOptions: () => oxyServices.webauthnRegisterOptions(),
|
|
899
|
+
runCeremony: runRegistrationCeremony,
|
|
900
|
+
registerVerify: (response, envelope) => oxyServices.webauthnRegisterVerify(response, envelope),
|
|
901
|
+
onLinked: () => {
|
|
902
|
+
void queryClient.invalidateQueries({
|
|
903
|
+
queryKey: queryKeys.authMethods.all
|
|
904
|
+
});
|
|
905
|
+
},
|
|
906
|
+
deviceName: params?.deviceName
|
|
907
|
+
});
|
|
908
|
+
}, [oxyServices, queryClient]);
|
|
909
|
+
|
|
910
|
+
// Remove a passkey from the already-signed-in account by credential id. Not a
|
|
911
|
+
// ceremony — a plain unlink — so it needs no `isPasskeySupported` gate; it just
|
|
912
|
+
// refreshes the linked auth-methods list on success.
|
|
913
|
+
const removePasskey = useCallback(async credentialId => {
|
|
914
|
+
await oxyServices.removePasskey(credentialId);
|
|
915
|
+
void queryClient.invalidateQueries({
|
|
916
|
+
queryKey: queryKeys.authMethods.all
|
|
917
|
+
});
|
|
918
|
+
}, [oxyServices, queryClient]);
|
|
919
|
+
|
|
920
|
+
// ── Cold boot ────────────────────────────────────────────────────────────
|
|
921
|
+
// Device-first session restore via `runProviderColdBoot` (see boot/runProviderColdBoot.ts).
|
|
922
|
+
const runColdBoot = useCallback(async () => {
|
|
923
|
+
// Resolve the pin BEFORE any boot lane runs: `getPinnedAccountId()` is a
|
|
924
|
+
// SYNCHRONOUS read on `SessionClient`'s apply path, and a stale `null` there
|
|
925
|
+
// would let a pinned client behave like an account-mode one for the first
|
|
926
|
+
// state it applies (including re-electing the device's active account).
|
|
927
|
+
if (identity) {
|
|
928
|
+
await identity.ensurePinnedAccountId();
|
|
929
|
+
}
|
|
930
|
+
await runProviderColdBoot({
|
|
931
|
+
oxyServices,
|
|
932
|
+
authStore,
|
|
933
|
+
clientId: clientIdProp,
|
|
934
|
+
authRedirectUri,
|
|
935
|
+
sessionMode,
|
|
936
|
+
identity: identity?.binding,
|
|
937
|
+
sessionClient,
|
|
938
|
+
syncDeviceCredentialToHost,
|
|
939
|
+
commitSession: (input, options) => commitSessionRef.current(input, options),
|
|
940
|
+
markAuthResolved: () => markAuthResolvedRef.current(),
|
|
941
|
+
setTokenReady
|
|
942
|
+
});
|
|
943
|
+
// The boot may have (re-)established the identity session or cleared a pin
|
|
944
|
+
// whose key no longer exists, so re-resolve rather than trusting the memo
|
|
945
|
+
// taken before it ran.
|
|
946
|
+
if (identity) {
|
|
947
|
+
await identity.refreshPinnedAccountId();
|
|
948
|
+
}
|
|
949
|
+
}, [oxyServices, authStore, clientIdProp, authRedirectUri, sessionMode, identity, syncDeviceCredentialToHost, sessionClient]);
|
|
950
|
+
useEffect(() => {
|
|
951
|
+
if (initialized) {
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
if (!storage) {
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
setInitialized(true);
|
|
958
|
+
runColdBoot().catch(error => {
|
|
959
|
+
if (__DEV__) {
|
|
960
|
+
logger('Cold boot failed', error);
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
}, [runColdBoot, storage, initialized, logger]);
|
|
964
|
+
|
|
965
|
+
// Reconcile device state when the tab returns to foreground (background tabs may
|
|
966
|
+
// miss socket pushes or have stale bearer tokens).
|
|
967
|
+
useEffect(() => {
|
|
968
|
+
if (!isWebBrowser()) return;
|
|
969
|
+
const onVisibility = () => {
|
|
970
|
+
if (document.visibilityState !== 'visible') return;
|
|
971
|
+
const reconcile = async () => {
|
|
972
|
+
if (!oxyServices.getAccessToken() && sessionClientHost.getDeviceCredential()) {
|
|
973
|
+
// Route through the ONE shared single-flight the scheduler/preflight/401
|
|
974
|
+
// use — never a private mint lane — so a tab-focus reconcile can't
|
|
975
|
+
// double-rotate the device secret against them.
|
|
976
|
+
await oxyServices.httpService.refreshAccessToken('preflight');
|
|
977
|
+
}
|
|
978
|
+
if (!oxyServices.getAccessToken() && !sessionClientHost.getDeviceCredential()) {
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
await sessionClient.bootstrap();
|
|
982
|
+
await syncFromClient();
|
|
983
|
+
};
|
|
984
|
+
void reconcile().catch(() => undefined);
|
|
985
|
+
};
|
|
986
|
+
document.addEventListener('visibilitychange', onVisibility);
|
|
987
|
+
return () => document.removeEventListener('visibilitychange', onVisibility);
|
|
988
|
+
}, [oxyServices, sessionClient, sessionClientHost, syncFromClient]);
|
|
989
|
+
|
|
990
|
+
// Reconnect heal: when connectivity transitions offline→online while there is
|
|
991
|
+
// no live access token but a persisted device credential exists, re-mint ONCE
|
|
992
|
+
// through the SAME shared single-flight lane the scheduler / tab-focus
|
|
993
|
+
// reconcile / 401 path use — never a private mint lane, so this can't
|
|
994
|
+
// double-rotate the device secret against them. A device that cold-booted
|
|
995
|
+
// OFFLINE skipped the network mint step, so its session is otherwise only
|
|
996
|
+
// recovered by the next scheduled re-mint; healing on the reconnect edge makes
|
|
997
|
+
// recovery immediate. `onlineManager` is fed by OxyProvider's existing NetInfo
|
|
998
|
+
// (native) / `navigator.onLine` (web) listener, so this reuses the one
|
|
999
|
+
// connectivity signal instead of opening a second NetInfo subscription. Works
|
|
1000
|
+
// on native and web alike.
|
|
1001
|
+
useEffect(() => {
|
|
1002
|
+
// Seed from the current verdict so the first callback heals only on a
|
|
1003
|
+
// genuine offline→online edge, never an initial subscribe fan-out.
|
|
1004
|
+
let previousOnline = onlineManager.isOnline();
|
|
1005
|
+
return onlineManager.subscribe(online => {
|
|
1006
|
+
const wasOffline = previousOnline === false;
|
|
1007
|
+
previousOnline = online;
|
|
1008
|
+
if (!online || !wasOffline) {
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
void (async () => {
|
|
1012
|
+
if (oxyServices.getAccessToken() || !sessionClientHost.getDeviceCredential()) {
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
await oxyServices.httpService.refreshAccessToken('preflight');
|
|
1016
|
+
if (!oxyServices.getAccessToken()) {
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
await sessionClient.bootstrap();
|
|
1020
|
+
await syncFromClient();
|
|
1021
|
+
})().catch(() => undefined);
|
|
1022
|
+
});
|
|
1023
|
+
}, [oxyServices, sessionClient, sessionClientHost, syncFromClient]);
|
|
1024
|
+
|
|
1025
|
+
// Exposed `refreshSessions`: re-bootstrap the server-authoritative device
|
|
1026
|
+
// state and reproject — the manual counterpart to the realtime socket.
|
|
1027
|
+
const refreshSessionsForContext = useCallback(async () => {
|
|
1028
|
+
await sessionClient.bootstrap();
|
|
1029
|
+
await syncFromClient();
|
|
1030
|
+
}, [sessionClient, syncFromClient]);
|
|
1031
|
+
|
|
1032
|
+
// Exposed `switchSession`: route through the server-authoritative
|
|
1033
|
+
// `SessionClient`. Resolve the target account from the current device state,
|
|
1034
|
+
// ask the server to switch, reproject, and return the now-active user.
|
|
1035
|
+
//
|
|
1036
|
+
// Identity-bound providers reject: this is the session-keyed twin of
|
|
1037
|
+
// `switchToAccount`, so leaving it live would be a bypass around the same rule.
|
|
1038
|
+
const switchSessionForContext = useCallback(async sessionId => {
|
|
1039
|
+
if (isIdentityBound) {
|
|
1040
|
+
throw new IdentityBoundSessionError('switchSession');
|
|
1041
|
+
}
|
|
1042
|
+
const targetAccountId = sessionClient.getState()?.accounts.find(account => account.sessionId === sessionId)?.accountId;
|
|
1043
|
+
if (!targetAccountId) {
|
|
1044
|
+
throw new Error(`No device account found for session "${sessionId}"`);
|
|
1045
|
+
}
|
|
1046
|
+
await sessionClient.switchAccount(targetAccountId);
|
|
1047
|
+
await syncFromClient();
|
|
1048
|
+
const activeUser = useAuthStore.getState().user;
|
|
1049
|
+
if (!activeUser) {
|
|
1050
|
+
throw new Error('Active account profile could not be resolved after switch');
|
|
1051
|
+
}
|
|
1052
|
+
return activeUser;
|
|
1053
|
+
}, [isIdentityBound, sessionClient, syncFromClient]);
|
|
1054
|
+
|
|
1055
|
+
// Thin passthroughs to the platform-agnostic KeyManager. NOTE: both now THROW
|
|
1056
|
+
// `IdentityUnavailableError` (from `@oxyhq/core`) when identity storage is
|
|
1057
|
+
// locked/unreadable, instead of flattening that into `false`/`null`. We keep
|
|
1058
|
+
// the signatures and deliberately let the typed error PROPAGATE to the caller
|
|
1059
|
+
// — a locked keychain must never be misreported as "no identity". `hasIdentity`
|
|
1060
|
+
// still resolves `false` and `getPublicKey` still resolves `null` for a genuine
|
|
1061
|
+
// absence.
|
|
1062
|
+
const hasIdentity = useCallback(async () => KeyManager.hasIdentity(), []);
|
|
1063
|
+
const getPublicKey = useCallback(async () => KeyManager.getPublicKey(), []);
|
|
1064
|
+
const showBottomSheetForContext = useCallback(screenOrConfig => {
|
|
1065
|
+
globalShowBottomSheet(screenOrConfig);
|
|
1066
|
+
}, []);
|
|
1067
|
+
const {
|
|
1068
|
+
openAvatarPicker
|
|
1069
|
+
} = useAvatarPicker({
|
|
1070
|
+
oxyServices,
|
|
1071
|
+
currentLanguage,
|
|
1072
|
+
activeSessionId,
|
|
1073
|
+
queryClient
|
|
1074
|
+
});
|
|
1075
|
+
const {
|
|
1076
|
+
accounts,
|
|
1077
|
+
refreshAccounts,
|
|
1078
|
+
switchToAccount,
|
|
1079
|
+
createAccount: createAccountFn
|
|
1080
|
+
} = useOxyAccountGraph({
|
|
1081
|
+
isAuthenticated,
|
|
1082
|
+
tokenReady,
|
|
1083
|
+
initialized,
|
|
1084
|
+
identityBound: isIdentityBound,
|
|
1085
|
+
oxyServices,
|
|
1086
|
+
sessionClient,
|
|
1087
|
+
syncFromClient,
|
|
1088
|
+
commitSession,
|
|
1089
|
+
queryClient,
|
|
1090
|
+
accountDialogControllerRef,
|
|
1091
|
+
clearSessionStateRef
|
|
1092
|
+
});
|
|
1093
|
+
const canUsePrivateApi = authResolved && isAuthenticated && tokenReady && hasAccessToken;
|
|
1094
|
+
const isPrivateApiPending = !authResolved || isAuthenticated && (!tokenReady || !hasAccessToken);
|
|
1095
|
+
const contextValue = useMemo(() => ({
|
|
1096
|
+
user,
|
|
1097
|
+
sessions,
|
|
1098
|
+
activeSessionId,
|
|
1099
|
+
isAuthenticated,
|
|
1100
|
+
isLoading,
|
|
1101
|
+
isTokenReady: tokenReady,
|
|
1102
|
+
hasAccessToken,
|
|
1103
|
+
canUsePrivateApi,
|
|
1104
|
+
isPrivateApiPending,
|
|
1105
|
+
isAuthResolved: authResolved,
|
|
1106
|
+
isStorageReady: storage !== null,
|
|
1107
|
+
sessionMode: isIdentityBound ? 'identity' : 'account',
|
|
1108
|
+
webAuthMode,
|
|
1109
|
+
error,
|
|
1110
|
+
currentLanguage,
|
|
1111
|
+
currentLanguages,
|
|
1112
|
+
currentLanguageMetadata,
|
|
1113
|
+
currentLanguageName,
|
|
1114
|
+
currentNativeLanguageName,
|
|
1115
|
+
hasIdentity,
|
|
1116
|
+
getPublicKey,
|
|
1117
|
+
signIn,
|
|
1118
|
+
signInWithPasskey,
|
|
1119
|
+
registerWithPasskey,
|
|
1120
|
+
addPasskey,
|
|
1121
|
+
removePasskey,
|
|
1122
|
+
revokeSuspiciousSignIn,
|
|
1123
|
+
handleWebSession,
|
|
1124
|
+
startWebOAuthSignIn: startWebOAuthSignInForContext,
|
|
1125
|
+
logout,
|
|
1126
|
+
logoutAll,
|
|
1127
|
+
switchSession: switchSessionForContext,
|
|
1128
|
+
removeSession: logout,
|
|
1129
|
+
refreshSessions: refreshSessionsForContext,
|
|
1130
|
+
setLanguage,
|
|
1131
|
+
getDeviceSessions,
|
|
1132
|
+
logoutAllDeviceSessions,
|
|
1133
|
+
updateDeviceName,
|
|
1134
|
+
clearSessionState,
|
|
1135
|
+
clearAllAccountData,
|
|
1136
|
+
storageKeyPrefix,
|
|
1137
|
+
clientId,
|
|
1138
|
+
oxyServices,
|
|
1139
|
+
sessionClient,
|
|
1140
|
+
useFollow: useFollowHook,
|
|
1141
|
+
showBottomSheet: showBottomSheetForContext,
|
|
1142
|
+
openAvatarPicker,
|
|
1143
|
+
accountDialogController,
|
|
1144
|
+
isAccountDialogOpen: accountDialogOpen,
|
|
1145
|
+
openAccountDialog,
|
|
1146
|
+
closeAccountDialog,
|
|
1147
|
+
accounts,
|
|
1148
|
+
switchToAccount,
|
|
1149
|
+
refreshAccounts,
|
|
1150
|
+
createAccount: createAccountFn
|
|
1151
|
+
}), [user, sessions, activeSessionId, isAuthenticated, isLoading, tokenReady, hasAccessToken, canUsePrivateApi, isPrivateApiPending, authResolved, storage, isIdentityBound, webAuthMode, error, currentLanguage, currentLanguages, currentLanguageMetadata, currentLanguageName, currentNativeLanguageName, hasIdentity, getPublicKey, signIn, signInWithPasskey, registerWithPasskey, addPasskey, removePasskey, revokeSuspiciousSignIn, handleWebSession, startWebOAuthSignInForContext, logout, logoutAll, switchSessionForContext, refreshSessionsForContext, setLanguage, getDeviceSessions, logoutAllDeviceSessions, updateDeviceName, clearSessionState, clearAllAccountData, storageKeyPrefix, clientId, oxyServices, sessionClient, useFollowHook, showBottomSheetForContext, openAvatarPicker, accountDialogController, accountDialogOpen, openAccountDialog, closeAccountDialog, accounts, switchToAccount, refreshAccounts, createAccountFn]);
|
|
1152
|
+
return /*#__PURE__*/_jsx(OxyContext.Provider, {
|
|
1153
|
+
value: contextValue,
|
|
1154
|
+
children: children
|
|
1155
|
+
});
|
|
1156
|
+
};
|
|
1157
|
+
export const OxyContextProvider = OxyProvider;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Loading-state stub used when `useOxy()` is called outside an OxyProvider.
|
|
1161
|
+
* All async methods reject with a clear error so misuse is caught early.
|
|
1162
|
+
*/
|
|
1163
|
+
const PROVIDER_MISSING_ERROR_MESSAGE = 'OxyProvider is not mounted. Wrap your app in <OxyProvider> before calling useOxy() methods.';
|
|
1164
|
+
const rejectMissingProvider = () => Promise.reject(new Error(PROVIDER_MISSING_ERROR_MESSAGE));
|
|
1165
|
+
const LOADING_STATE_OXY_SERVICES = new OxyServices({
|
|
1166
|
+
baseURL: 'about:blank'
|
|
1167
|
+
});
|
|
1168
|
+
const LOADING_STATE = {
|
|
1169
|
+
user: null,
|
|
1170
|
+
sessions: [],
|
|
1171
|
+
activeSessionId: null,
|
|
1172
|
+
isAuthenticated: false,
|
|
1173
|
+
isLoading: true,
|
|
1174
|
+
isTokenReady: false,
|
|
1175
|
+
hasAccessToken: false,
|
|
1176
|
+
canUsePrivateApi: false,
|
|
1177
|
+
isPrivateApiPending: true,
|
|
1178
|
+
isAuthResolved: false,
|
|
1179
|
+
isStorageReady: false,
|
|
1180
|
+
sessionMode: 'account',
|
|
1181
|
+
webAuthMode: 'popup',
|
|
1182
|
+
error: null,
|
|
1183
|
+
currentLanguage: 'en-US',
|
|
1184
|
+
currentLanguages: [],
|
|
1185
|
+
currentLanguageMetadata: null,
|
|
1186
|
+
currentLanguageName: 'English (United States)',
|
|
1187
|
+
currentNativeLanguageName: 'English (United States)',
|
|
1188
|
+
hasIdentity: () => Promise.resolve(false),
|
|
1189
|
+
getPublicKey: () => Promise.resolve(null),
|
|
1190
|
+
signIn: () => rejectMissingProvider(),
|
|
1191
|
+
signInWithPasskey: () => rejectMissingProvider(),
|
|
1192
|
+
registerWithPasskey: () => rejectMissingProvider(),
|
|
1193
|
+
addPasskey: () => rejectMissingProvider(),
|
|
1194
|
+
removePasskey: () => rejectMissingProvider(),
|
|
1195
|
+
revokeSuspiciousSignIn: () => rejectMissingProvider(),
|
|
1196
|
+
handleWebSession: () => rejectMissingProvider(),
|
|
1197
|
+
startWebOAuthSignIn: () => rejectMissingProvider(),
|
|
1198
|
+
logout: () => rejectMissingProvider(),
|
|
1199
|
+
logoutAll: () => rejectMissingProvider(),
|
|
1200
|
+
switchSession: () => rejectMissingProvider(),
|
|
1201
|
+
removeSession: () => rejectMissingProvider(),
|
|
1202
|
+
refreshSessions: () => rejectMissingProvider(),
|
|
1203
|
+
setLanguage: () => rejectMissingProvider(),
|
|
1204
|
+
getDeviceSessions: () => Promise.resolve([]),
|
|
1205
|
+
logoutAllDeviceSessions: () => rejectMissingProvider(),
|
|
1206
|
+
updateDeviceName: () => rejectMissingProvider(),
|
|
1207
|
+
clearSessionState: () => rejectMissingProvider(),
|
|
1208
|
+
clearAllAccountData: () => rejectMissingProvider(),
|
|
1209
|
+
storageKeyPrefix: 'oxy_session',
|
|
1210
|
+
clientId: null,
|
|
1211
|
+
oxyServices: LOADING_STATE_OXY_SERVICES,
|
|
1212
|
+
sessionClient: null,
|
|
1213
|
+
openAvatarPicker: () => {},
|
|
1214
|
+
accountDialogController: null,
|
|
1215
|
+
isAccountDialogOpen: false,
|
|
1216
|
+
openAccountDialog: () => {},
|
|
1217
|
+
closeAccountDialog: () => {},
|
|
1218
|
+
accounts: [],
|
|
1219
|
+
switchToAccount: () => rejectMissingProvider(),
|
|
1220
|
+
refreshAccounts: () => rejectMissingProvider(),
|
|
1221
|
+
createAccount: () => rejectMissingProvider()
|
|
1222
|
+
};
|
|
1223
|
+
export const useOxy = () => {
|
|
1224
|
+
const context = useContext(OxyContext);
|
|
1225
|
+
if (!context) {
|
|
1226
|
+
return LOADING_STATE;
|
|
1227
|
+
}
|
|
1228
|
+
return context;
|
|
1229
|
+
};
|
|
1230
|
+
//# sourceMappingURL=OxyContext.js.map
|