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