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