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