@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,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ASSET_DOWNLOAD_URLS_QUERY_KEY = void 0;
|
|
7
|
-
exports.fileThumbSource = fileThumbSource;
|
|
8
|
-
exports.isOptimisticFile = isOptimisticFile;
|
|
9
|
-
exports.useResolvedFileUrls = useResolvedFileUrls;
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _reactQuery = require("@tanstack/react-query");
|
|
12
|
-
/**
|
|
13
|
-
* The variant-aware batch resolver contract (`@oxyhq/core`).
|
|
14
|
-
*
|
|
15
|
-
* `getFileDownloadUrls` takes a per-file `{ fileId, variant }` list and returns
|
|
16
|
-
* a map keyed by `fileId`; ids that are denied or missing are OMITTED (never an
|
|
17
|
-
* empty string), and PRIVATE assets resolve to a working scoped-media-token
|
|
18
|
-
* stream URL. Typed here rather than `Pick<OxyServices, …>` so this file states
|
|
19
|
-
* the exact contract it depends on.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Private-safe grid/thumbnail URL resolution.
|
|
24
|
-
*
|
|
25
|
-
* The synchronous `oxyServices.getFileDownloadUrl(id, variant)` always yields
|
|
26
|
-
* the public CDN origin (`cloud.oxy.so/<id>`), which 404s for PRIVATE assets —
|
|
27
|
-
* and uploads default to private. Thumbnails and previews therefore have to be
|
|
28
|
-
* resolved through the authenticated batch endpoint, which returns a working
|
|
29
|
-
* `/assets/:id/stream?…&mt=<scoped media token>` URL for private files.
|
|
30
|
-
*
|
|
31
|
-
* This hook resolves an ENTIRE page of files in ONE (chunked) batch request
|
|
32
|
-
* rather than N per-tile calls, and caches the result in React Query keyed by
|
|
33
|
-
* the (fileId, variant) set. `staleTime` is deliberately shorter than the
|
|
34
|
-
* server media-token TTL so a tile never renders a URL whose token has already
|
|
35
|
-
* expired.
|
|
36
|
-
*
|
|
37
|
-
* Optimistic (`temp-…` / `uploading`) entries are NEVER resolved here — an
|
|
38
|
-
* asset URL must never be built from an id the server does not yet know. Their
|
|
39
|
-
* preview comes from the locally-picked uri (see {@link fileThumbSource}).
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/** Server media-token lifetime we request for each resolved URL (seconds). */
|
|
43
|
-
const ASSET_URL_TTL_SECONDS = 600; // 10 minutes
|
|
44
|
-
/**
|
|
45
|
-
* Refresh window. Kept below {@link ASSET_URL_TTL_SECONDS} so React Query
|
|
46
|
-
* re-resolves in the background before a rendered URL's token can die.
|
|
47
|
-
*/
|
|
48
|
-
const ASSET_URL_STALE_MS = 5 * 60 * 1000; // 5 minutes
|
|
49
|
-
const ASSET_URL_GC_MS = 30 * 60 * 1000;
|
|
50
|
-
/** Server-side batch cap for `POST /assets/batch-access` — chunk beyond this. */
|
|
51
|
-
const BATCH_CAP = 100;
|
|
52
|
-
|
|
53
|
-
/** React Query prefix — scoped media URLs must never leak across accounts. */
|
|
54
|
-
const ASSET_DOWNLOAD_URLS_QUERY_KEY = exports.ASSET_DOWNLOAD_URLS_QUERY_KEY = 'assetDownloadUrls';
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* True when a file is an optimistic placeholder that has not been persisted by
|
|
58
|
-
* the server yet — either its id is still the client-minted `temp-…` id, or it
|
|
59
|
-
* carries the `uploading` flag. Mirrors the `temp-` id guard precedent in
|
|
60
|
-
* `@oxyhq/core`'s `avatarUtils.updateAvatarVisibility`.
|
|
61
|
-
*/
|
|
62
|
-
function isOptimisticFile(file) {
|
|
63
|
-
if (typeof file.id === 'string' && file.id.startsWith('temp-')) return true;
|
|
64
|
-
return file.metadata?.uploading === true;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/** Grid thumbnail variant for a file, or `undefined` when it needs no URL. */
|
|
68
|
-
function thumbVariantFor(file) {
|
|
69
|
-
if (file.contentType.startsWith('video/')) return 'poster';
|
|
70
|
-
if (file.contentType.startsWith('image/')) return 'thumb';
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Locally-picked preview uri stashed on an optimistic entry's metadata by the
|
|
76
|
-
* upload flow, if present.
|
|
77
|
-
*/
|
|
78
|
-
function localPreviewUri(file) {
|
|
79
|
-
const uri = file.metadata?.localPreviewUri;
|
|
80
|
-
return typeof uri === 'string' && uri.length > 0 ? uri : undefined;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Resolve the image source for a grid tile.
|
|
85
|
-
*
|
|
86
|
-
* - Optimistic entry → its locally-picked preview uri (never an asset URL).
|
|
87
|
-
* - Persisted entry → the private-safe URL from {@link useResolvedFileUrls},
|
|
88
|
-
* or `undefined` while it is still resolving / was denied (tile shows a
|
|
89
|
-
* placeholder instead of a guaranteed-404 CDN URL).
|
|
90
|
-
*/
|
|
91
|
-
function fileThumbSource(file, resolved) {
|
|
92
|
-
if (isOptimisticFile(file)) {
|
|
93
|
-
return localPreviewUri(file);
|
|
94
|
-
}
|
|
95
|
-
return resolved.get(file.id);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Batch-resolve private-safe thumbnail URLs for the given files.
|
|
100
|
-
*
|
|
101
|
-
* Only image/video, non-optimistic files are resolved (documents render an
|
|
102
|
-
* icon, optimistic entries render their local preview). Returns a stable
|
|
103
|
-
* `Map<fileId, url>`; missing entries mean "not resolved yet or access denied".
|
|
104
|
-
*/
|
|
105
|
-
function useResolvedFileUrls(oxyServices, files, /** Active viewer account id — media tokens are minted per user; must be in the query key. */
|
|
106
|
-
viewerId) {
|
|
107
|
-
const viewerKey = viewerId ?? '';
|
|
108
|
-
const requests = (0, _react.useMemo)(() => {
|
|
109
|
-
const list = [];
|
|
110
|
-
for (const file of files) {
|
|
111
|
-
if (isOptimisticFile(file)) continue;
|
|
112
|
-
const variant = thumbVariantFor(file);
|
|
113
|
-
if (!variant) continue;
|
|
114
|
-
list.push({
|
|
115
|
-
fileId: file.id,
|
|
116
|
-
variant
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return list;
|
|
120
|
-
}, [files]);
|
|
121
|
-
|
|
122
|
-
// A content signature so the query key is stable across renders while the
|
|
123
|
-
// resolvable set is unchanged (the `files` array is a fresh reference every
|
|
124
|
-
// render). Sorted so ordering churn does not force a refetch.
|
|
125
|
-
const signature = (0, _react.useMemo)(() => requests.map(r => `${r.fileId}:${r.variant ?? ''}`).sort().join('|'), [requests]);
|
|
126
|
-
const query = (0, _reactQuery.useQuery)({
|
|
127
|
-
queryKey: [ASSET_DOWNLOAD_URLS_QUERY_KEY, viewerKey, signature],
|
|
128
|
-
enabled: requests.length > 0 && viewerKey.length > 0,
|
|
129
|
-
staleTime: ASSET_URL_STALE_MS,
|
|
130
|
-
gcTime: ASSET_URL_GC_MS,
|
|
131
|
-
// Keep previously-resolved URLs on screen while the SAME viewer's file set
|
|
132
|
-
// grows (pagination), but never carry another account's scoped media tokens
|
|
133
|
-
// across a switch — `keepPreviousData` alone would do that.
|
|
134
|
-
placeholderData: (previousData, previousQuery) => {
|
|
135
|
-
if (!previousData || !previousQuery) return undefined;
|
|
136
|
-
const prevViewer = previousQuery.queryKey[1];
|
|
137
|
-
if (prevViewer !== viewerKey) return undefined;
|
|
138
|
-
return previousData;
|
|
139
|
-
},
|
|
140
|
-
queryFn: async () => {
|
|
141
|
-
const merged = {};
|
|
142
|
-
for (let i = 0; i < requests.length; i += BATCH_CAP) {
|
|
143
|
-
const chunk = requests.slice(i, i + BATCH_CAP);
|
|
144
|
-
const urls = await oxyServices.getFileDownloadUrls(chunk, {
|
|
145
|
-
expiresIn: ASSET_URL_TTL_SECONDS
|
|
146
|
-
});
|
|
147
|
-
Object.assign(merged, urls);
|
|
148
|
-
}
|
|
149
|
-
return merged;
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
return (0, _react.useMemo)(() => {
|
|
153
|
-
const map = new Map();
|
|
154
|
-
const data = query.data;
|
|
155
|
-
if (data) {
|
|
156
|
-
for (const [id, url] of Object.entries(data)) {
|
|
157
|
-
if (typeof url === 'string' && url.length > 0) map.set(id, url);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return map;
|
|
161
|
-
}, [query.data]);
|
|
162
|
-
}
|
|
163
|
-
//# sourceMappingURL=useResolvedFileUrls.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactQuery","ASSET_URL_TTL_SECONDS","ASSET_URL_STALE_MS","ASSET_URL_GC_MS","BATCH_CAP","ASSET_DOWNLOAD_URLS_QUERY_KEY","exports","isOptimisticFile","file","id","startsWith","metadata","uploading","thumbVariantFor","contentType","undefined","localPreviewUri","uri","length","fileThumbSource","resolved","get","useResolvedFileUrls","oxyServices","files","viewerId","viewerKey","requests","useMemo","list","variant","push","fileId","signature","map","r","sort","join","query","useQuery","queryKey","enabled","staleTime","gcTime","placeholderData","previousData","previousQuery","prevViewer","queryFn","merged","i","chunk","slice","urls","getFileDownloadUrls","expiresIn","Object","assign","Map","data","url","entries","set"],"sourceRoot":"../../../../src","sources":["ui/hooks/useResolvedFileUrls.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,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C4B,GAAG,CAACrD,EAAE,EAAEmD,GAAG,CAAC;MACjE;IACF;IACA,OAAO1B,GAAG;EACZ,CAAC,EAAE,CAACI,KAAK,CAACqB,IAAI,CAAC,CAAC;AAClB","ignoreList":[]}
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useSessionManagement = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _core = require("@oxyhq/core");
|
|
9
|
-
var _sessionHelpers = require("../utils/sessionHelpers.js");
|
|
10
|
-
var _storageHelpers = require("../utils/storageHelpers.js");
|
|
11
|
-
var _errorHandlers = require("../utils/errorHandlers.js");
|
|
12
|
-
var _queryClient = require("./queryClient.js");
|
|
13
|
-
var _isWebBrowser = require("../utils/isWebBrowser.js");
|
|
14
|
-
var _resetSessionScopedStores = require("../stores/resetSessionScopedStores.js");
|
|
15
|
-
const DEFAULT_SAVE_ERROR_MESSAGE = 'Failed to save session data';
|
|
16
|
-
const CLEAR_STORAGE_ERROR = 'Failed to clear storage';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Manage session state, persistence, and high-level multi-session operations.
|
|
20
|
-
*
|
|
21
|
-
* @param options - Session management configuration
|
|
22
|
-
*/
|
|
23
|
-
const useSessionManagement = ({
|
|
24
|
-
oxyServices,
|
|
25
|
-
storage,
|
|
26
|
-
storageKeyPrefix,
|
|
27
|
-
loginSuccess,
|
|
28
|
-
logoutStore,
|
|
29
|
-
onAuthStateChange,
|
|
30
|
-
onError,
|
|
31
|
-
setAuthError,
|
|
32
|
-
logger,
|
|
33
|
-
setTokenReady,
|
|
34
|
-
queryClient
|
|
35
|
-
}) => {
|
|
36
|
-
const [sessions, setSessions] = (0, _react.useState)([]);
|
|
37
|
-
const [activeSessionId, setActiveSessionId] = (0, _react.useState)(null);
|
|
38
|
-
|
|
39
|
-
// Refs to avoid recreating callbacks when sessions/activeSessionId change
|
|
40
|
-
const sessionsRef = (0, _react.useRef)(sessions);
|
|
41
|
-
sessionsRef.current = sessions;
|
|
42
|
-
const activeSessionIdRef = (0, _react.useRef)(activeSessionId);
|
|
43
|
-
activeSessionIdRef.current = activeSessionId;
|
|
44
|
-
const refreshInFlightRef = (0, _react.useRef)(null);
|
|
45
|
-
const removedSessionsRef = (0, _react.useRef)(new Set());
|
|
46
|
-
const lastRefreshRef = (0, _react.useRef)(0);
|
|
47
|
-
const storageKeys = (0, _react.useMemo)(() => (0, _storageHelpers.getStorageKeys)(storageKeyPrefix), [storageKeyPrefix]);
|
|
48
|
-
const saveSessionIds = (0, _react.useCallback)(async sessionIds => {
|
|
49
|
-
if (!storage) return;
|
|
50
|
-
try {
|
|
51
|
-
const uniqueIds = Array.from(new Set(sessionIds));
|
|
52
|
-
await storage.setItem(storageKeys.sessionIds, JSON.stringify(uniqueIds));
|
|
53
|
-
} catch (error) {
|
|
54
|
-
if (logger) {
|
|
55
|
-
logger(DEFAULT_SAVE_ERROR_MESSAGE, error);
|
|
56
|
-
} else if ((0, _core.isDev)()) {
|
|
57
|
-
console.warn('Failed to save session IDs:', error);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}, [logger, storage, storageKeys.sessionIds]);
|
|
61
|
-
const updateSessions = (0, _react.useCallback)((incoming, options = {}) => {
|
|
62
|
-
setSessions(prevSessions => {
|
|
63
|
-
const processed = options.merge ? (0, _core.mergeSessions)(prevSessions, incoming, activeSessionIdRef.current, false) : (0, _core.normalizeAndSortSessions)(incoming, activeSessionIdRef.current, false);
|
|
64
|
-
if (storage) {
|
|
65
|
-
void saveSessionIds([...processed.map(session => session.sessionId), ...(options.preserveSessionIds ?? [])]);
|
|
66
|
-
}
|
|
67
|
-
if ((0, _core.sessionsArraysEqual)(prevSessions, processed)) {
|
|
68
|
-
return prevSessions;
|
|
69
|
-
}
|
|
70
|
-
return processed;
|
|
71
|
-
});
|
|
72
|
-
}, [saveSessionIds, storage]);
|
|
73
|
-
const saveActiveSessionId = (0, _react.useCallback)(async sessionId => {
|
|
74
|
-
if (!storage) return;
|
|
75
|
-
try {
|
|
76
|
-
await storage.setItem(storageKeys.activeSessionId, sessionId);
|
|
77
|
-
} catch (error) {
|
|
78
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
79
|
-
defaultMessage: DEFAULT_SAVE_ERROR_MESSAGE,
|
|
80
|
-
code: 'SESSION_PERSISTENCE_ERROR',
|
|
81
|
-
onError,
|
|
82
|
-
setAuthError,
|
|
83
|
-
logger
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}, [logger, onError, setAuthError, storage, storageKeys.activeSessionId]);
|
|
87
|
-
const removeActiveSessionId = (0, _react.useCallback)(async () => {
|
|
88
|
-
if (!storage) return;
|
|
89
|
-
try {
|
|
90
|
-
await storage.removeItem(storageKeys.activeSessionId);
|
|
91
|
-
} catch (error) {
|
|
92
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
93
|
-
defaultMessage: DEFAULT_SAVE_ERROR_MESSAGE,
|
|
94
|
-
code: 'SESSION_PERSISTENCE_ERROR',
|
|
95
|
-
onError,
|
|
96
|
-
setAuthError,
|
|
97
|
-
logger
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}, [logger, onError, setAuthError, storage, storageKeys.activeSessionId]);
|
|
101
|
-
const clearSessionStorage = (0, _react.useCallback)(async () => {
|
|
102
|
-
if (!storage) return;
|
|
103
|
-
try {
|
|
104
|
-
await storage.removeItem(storageKeys.activeSessionId);
|
|
105
|
-
await storage.removeItem(storageKeys.sessionIds);
|
|
106
|
-
// Note: Identity sync state ('oxy_identity_synced') is managed by accounts app
|
|
107
|
-
} catch (error) {
|
|
108
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
109
|
-
defaultMessage: CLEAR_STORAGE_ERROR,
|
|
110
|
-
code: 'STORAGE_ERROR',
|
|
111
|
-
onError,
|
|
112
|
-
setAuthError,
|
|
113
|
-
logger
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}, [logger, onError, setAuthError, storage, storageKeys.activeSessionId, storageKeys.sessionIds]);
|
|
117
|
-
const clearSessionState = (0, _react.useCallback)(async () => {
|
|
118
|
-
setSessions([]);
|
|
119
|
-
setActiveSessionId(null);
|
|
120
|
-
logoutStore();
|
|
121
|
-
(0, _resetSessionScopedStores.resetSessionScopedStores)();
|
|
122
|
-
|
|
123
|
-
// Clear the access token on the client instance. Without this the
|
|
124
|
-
// TokenStore retained the stale bearer until the next 401, leaving the
|
|
125
|
-
// instance "logged in" at the HTTP layer and — via OxyProvider's
|
|
126
|
-
// token-change mirror — leaking that stale token onto the shared
|
|
127
|
-
// `oxyClient` singleton after sign-out. Clearing here fires
|
|
128
|
-
// `onTokensChanged(null)`, propagating the logged-out state everywhere.
|
|
129
|
-
oxyServices.clearTokens();
|
|
130
|
-
|
|
131
|
-
// Clear TanStack Query cache (in-memory)
|
|
132
|
-
if (queryClient) {
|
|
133
|
-
queryClient.clear();
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Clear persisted query cache
|
|
137
|
-
if (storage) {
|
|
138
|
-
try {
|
|
139
|
-
await (0, _queryClient.clearQueryCache)(storage);
|
|
140
|
-
} catch (error) {
|
|
141
|
-
if (logger) {
|
|
142
|
-
logger('Failed to clear persisted query cache', error);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
await clearSessionStorage();
|
|
147
|
-
onAuthStateChange?.(null);
|
|
148
|
-
}, [clearSessionStorage, logoutStore, onAuthStateChange, oxyServices, queryClient, storage, logger]);
|
|
149
|
-
const activateSession = (0, _react.useCallback)(async (sessionId, user) => {
|
|
150
|
-
setTokenReady?.(true);
|
|
151
|
-
setActiveSessionId(sessionId);
|
|
152
|
-
loginSuccess(user);
|
|
153
|
-
await saveActiveSessionId(sessionId);
|
|
154
|
-
onAuthStateChange?.(user);
|
|
155
|
-
}, [loginSuccess, onAuthStateChange, saveActiveSessionId, setTokenReady]);
|
|
156
|
-
const removalTimerIdsRef = (0, _react.useRef)(new Set());
|
|
157
|
-
const trackRemovedSession = (0, _react.useCallback)(sessionId => {
|
|
158
|
-
removedSessionsRef.current.add(sessionId);
|
|
159
|
-
const timerId = setTimeout(() => {
|
|
160
|
-
removedSessionsRef.current.delete(sessionId);
|
|
161
|
-
removalTimerIdsRef.current.delete(timerId);
|
|
162
|
-
}, 5000);
|
|
163
|
-
removalTimerIdsRef.current.add(timerId);
|
|
164
|
-
}, []);
|
|
165
|
-
(0, _react.useEffect)(() => {
|
|
166
|
-
return () => {
|
|
167
|
-
removalTimerIdsRef.current.forEach(clearTimeout);
|
|
168
|
-
};
|
|
169
|
-
}, []);
|
|
170
|
-
const switchSession = (0, _react.useCallback)(async sessionId => {
|
|
171
|
-
try {
|
|
172
|
-
// On web, the bearer must already be in memory (planted by
|
|
173
|
-
// `claimSessionByToken`, a cold-boot silent-restore step, or a prior
|
|
174
|
-
// `SessionClient` sync) before validating — there is no client-side
|
|
175
|
-
// `oxy_rt` refresh-cookie slot to fall back on; the device account SET
|
|
176
|
-
// is server-authoritative via `SessionClient` now. The native path
|
|
177
|
-
// arrives here only after a bearer has been planted by
|
|
178
|
-
// `claimSessionByToken` or secure shared-session restore.
|
|
179
|
-
if ((0, _isWebBrowser.isWebBrowser)() && !oxyServices.getAccessToken()) {
|
|
180
|
-
throw new Error('Session is invalid or expired');
|
|
181
|
-
}
|
|
182
|
-
const validation = await oxyServices.validateSession(sessionId, {
|
|
183
|
-
useHeaderValidation: true
|
|
184
|
-
});
|
|
185
|
-
if (!validation?.valid) {
|
|
186
|
-
throw new Error('Session is invalid or expired');
|
|
187
|
-
}
|
|
188
|
-
if (!validation.user) {
|
|
189
|
-
throw new Error('User data not available from session validation');
|
|
190
|
-
}
|
|
191
|
-
const user = validation.user;
|
|
192
|
-
await activateSession(sessionId, user);
|
|
193
|
-
try {
|
|
194
|
-
const deviceSessions = await (0, _sessionHelpers.fetchSessionsWithFallback)(oxyServices, sessionId, {
|
|
195
|
-
fallbackUserId: user.id,
|
|
196
|
-
logger
|
|
197
|
-
});
|
|
198
|
-
updateSessions(deviceSessions, {
|
|
199
|
-
merge: true
|
|
200
|
-
});
|
|
201
|
-
} catch (error) {
|
|
202
|
-
if ((0, _core.isDev)()) {
|
|
203
|
-
console.warn('Failed to synchronize sessions after switch:', error);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return user;
|
|
207
|
-
} catch (error) {
|
|
208
|
-
const invalidSession = (0, _errorHandlers.isInvalidSessionError)(error);
|
|
209
|
-
if (invalidSession) {
|
|
210
|
-
// Server authority (`SessionClient` bootstrap/sync) reconciles which
|
|
211
|
-
// account is actually active — just drop the invalid session from
|
|
212
|
-
// the local view rather than guessing at a replacement.
|
|
213
|
-
updateSessions(sessionsRef.current.filter(session => session.sessionId !== sessionId), {
|
|
214
|
-
merge: false
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
218
|
-
defaultMessage: 'Failed to switch session',
|
|
219
|
-
code: invalidSession ? 'INVALID_SESSION' : 'SESSION_SWITCH_ERROR',
|
|
220
|
-
onError,
|
|
221
|
-
setAuthError,
|
|
222
|
-
logger
|
|
223
|
-
});
|
|
224
|
-
throw error instanceof Error ? error : new Error('Failed to switch session');
|
|
225
|
-
}
|
|
226
|
-
}, [activateSession, logger, onError, oxyServices, setAuthError, updateSessions]);
|
|
227
|
-
const refreshSessions = (0, _react.useCallback)(async activeUserId => {
|
|
228
|
-
// Capture the active session id once so the async closure below uses a
|
|
229
|
-
// narrowed, non-null local instead of re-reading the ref (which the
|
|
230
|
-
// compiler cannot prove stays non-null across awaits).
|
|
231
|
-
const activeSessionId = activeSessionIdRef.current;
|
|
232
|
-
if (!activeSessionId) return;
|
|
233
|
-
if (refreshInFlightRef.current) {
|
|
234
|
-
await refreshInFlightRef.current;
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
const now = Date.now();
|
|
238
|
-
if (now - lastRefreshRef.current < 500) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
lastRefreshRef.current = now;
|
|
242
|
-
const refreshPromise = (async () => {
|
|
243
|
-
try {
|
|
244
|
-
const deviceSessions = await (0, _sessionHelpers.fetchSessionsWithFallback)(oxyServices, activeSessionId, {
|
|
245
|
-
fallbackUserId: activeUserId,
|
|
246
|
-
logger
|
|
247
|
-
});
|
|
248
|
-
updateSessions(deviceSessions, {
|
|
249
|
-
merge: true
|
|
250
|
-
});
|
|
251
|
-
} catch (error) {
|
|
252
|
-
if ((0, _errorHandlers.isInvalidSessionError)(error)) {
|
|
253
|
-
// Server authority (`SessionClient` bootstrap/sync) reconciles
|
|
254
|
-
// which account is actually active — just clear local state
|
|
255
|
-
// rather than guessing at a replacement session.
|
|
256
|
-
await clearSessionState();
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
(0, _errorHandlers.handleAuthError)(error, {
|
|
260
|
-
defaultMessage: 'Failed to refresh sessions',
|
|
261
|
-
code: 'SESSION_REFRESH_ERROR',
|
|
262
|
-
onError,
|
|
263
|
-
setAuthError,
|
|
264
|
-
logger
|
|
265
|
-
});
|
|
266
|
-
} finally {
|
|
267
|
-
refreshInFlightRef.current = null;
|
|
268
|
-
lastRefreshRef.current = Date.now();
|
|
269
|
-
}
|
|
270
|
-
})();
|
|
271
|
-
refreshInFlightRef.current = refreshPromise;
|
|
272
|
-
await refreshPromise;
|
|
273
|
-
}, [clearSessionState, logger, onError, oxyServices, setAuthError, updateSessions]);
|
|
274
|
-
const isRefreshInFlight = Boolean(refreshInFlightRef.current);
|
|
275
|
-
return {
|
|
276
|
-
sessions,
|
|
277
|
-
activeSessionId,
|
|
278
|
-
setActiveSessionId,
|
|
279
|
-
updateSessions,
|
|
280
|
-
switchSession,
|
|
281
|
-
refreshSessions,
|
|
282
|
-
clearSessionState,
|
|
283
|
-
saveActiveSessionId,
|
|
284
|
-
trackRemovedSession,
|
|
285
|
-
storageKeys,
|
|
286
|
-
isRefreshInFlight
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
exports.useSessionManagement = useSessionManagement;
|
|
290
|
-
//# sourceMappingURL=useSessionManagement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_core","_sessionHelpers","_storageHelpers","_errorHandlers","_queryClient","_isWebBrowser","_resetSessionScopedStores","DEFAULT_SAVE_ERROR_MESSAGE","CLEAR_STORAGE_ERROR","useSessionManagement","oxyServices","storage","storageKeyPrefix","loginSuccess","logoutStore","onAuthStateChange","onError","setAuthError","logger","setTokenReady","queryClient","sessions","setSessions","useState","activeSessionId","setActiveSessionId","sessionsRef","useRef","current","activeSessionIdRef","refreshInFlightRef","removedSessionsRef","Set","lastRefreshRef","storageKeys","useMemo","getStorageKeys","saveSessionIds","useCallback","sessionIds","uniqueIds","Array","from","setItem","JSON","stringify","error","isDev","console","warn","updateSessions","incoming","options","prevSessions","processed","merge","mergeSessions","normalizeAndSortSessions","map","session","sessionId","preserveSessionIds","sessionsArraysEqual","saveActiveSessionId","handleAuthError","defaultMessage","code","removeActiveSessionId","removeItem","clearSessionStorage","clearSessionState","resetSessionScopedStores","clearTokens","clear","clearQueryCache","activateSession","user","removalTimerIdsRef","trackRemovedSession","add","timerId","setTimeout","delete","useEffect","forEach","clearTimeout","switchSession","isWebBrowser","getAccessToken","Error","validation","validateSession","useHeaderValidation","valid","deviceSessions","fetchSessionsWithFallback","fallbackUserId","id","invalidSession","isInvalidSessionError","filter","refreshSessions","activeUserId","now","Date","refreshPromise","isRefreshInFlight","Boolean","exports"],"sourceRoot":"../../../../src","sources":["ui/hooks/useSessionManagement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,cA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AAO,GAAG6E,cAAc;IAC3C,MAAMA,cAAc;EACtB,CAAC,EACD,CACEnC,iBAAiB,EACjBpD,MAAM,EACNF,OAAO,EACPN,WAAW,EACXO,YAAY,EACZiC,cAAc,CAElB,CAAC;EAED,MAAMwD,iBAAiB,GAAGC,OAAO,CAAC7E,kBAAkB,CAACF,OAAO,CAAC;EAE7D,OAAO;IACLP,QAAQ;IACRG,eAAe;IACfC,kBAAkB;IAClByB,cAAc;IACdoC,aAAa;IACbe,eAAe;IACf/B,iBAAiB;IACjBP,mBAAmB;IACnBe,mBAAmB;IACnB5C,WAAW;IACXwE;EACF,CAAC;AACH,CAAC;AAACE,OAAA,CAAAnG,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
exports.useSettingToggle = useSettingToggle;
|
|
8
|
-
exports.useSettingToggles = useSettingToggles;
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _toast = require("@oxyhq/bloom/toast");
|
|
11
|
-
/**
|
|
12
|
-
* Hook for handling boolean toggle settings with optimistic updates.
|
|
13
|
-
* Automatically reverts to the previous value if the save fails.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* const { value, toggle, isSaving } = useSettingToggle({
|
|
17
|
-
* initialValue: user.notificationsEnabled,
|
|
18
|
-
* onSave: (value) => api.updateNotifications(value),
|
|
19
|
-
* errorMessage: 'Failed to update notifications',
|
|
20
|
-
* });
|
|
21
|
-
*
|
|
22
|
-
* <Switch value={value} onValueChange={toggle} disabled={isSaving} />
|
|
23
|
-
*/
|
|
24
|
-
function useSettingToggle(options) {
|
|
25
|
-
const {
|
|
26
|
-
initialValue,
|
|
27
|
-
onSave,
|
|
28
|
-
successMessage,
|
|
29
|
-
errorMessage = 'Failed to save setting',
|
|
30
|
-
revertOnError = true,
|
|
31
|
-
showSuccessToast = false
|
|
32
|
-
} = options;
|
|
33
|
-
const [value, setValue] = (0, _react.useState)(initialValue);
|
|
34
|
-
const [isSaving, setIsSaving] = (0, _react.useState)(false);
|
|
35
|
-
|
|
36
|
-
// Update value when initialValue changes (e.g., from server)
|
|
37
|
-
(0, _react.useEffect)(() => {
|
|
38
|
-
setValue(initialValue);
|
|
39
|
-
}, [initialValue]);
|
|
40
|
-
const toggle = (0, _react.useCallback)(async () => {
|
|
41
|
-
const previousValue = value;
|
|
42
|
-
const newValue = !value;
|
|
43
|
-
|
|
44
|
-
// Optimistic update
|
|
45
|
-
setValue(newValue);
|
|
46
|
-
setIsSaving(true);
|
|
47
|
-
try {
|
|
48
|
-
await onSave(newValue);
|
|
49
|
-
if (showSuccessToast && successMessage) {
|
|
50
|
-
_toast.toast.success(successMessage);
|
|
51
|
-
}
|
|
52
|
-
} catch (err) {
|
|
53
|
-
// Revert on error
|
|
54
|
-
if (revertOnError) {
|
|
55
|
-
setValue(previousValue);
|
|
56
|
-
}
|
|
57
|
-
_toast.toast.error(errorMessage || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
58
|
-
} finally {
|
|
59
|
-
setIsSaving(false);
|
|
60
|
-
}
|
|
61
|
-
}, [value, onSave, successMessage, errorMessage, revertOnError, showSuccessToast]);
|
|
62
|
-
return {
|
|
63
|
-
value,
|
|
64
|
-
isSaving,
|
|
65
|
-
toggle,
|
|
66
|
-
setValue
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Hook for managing multiple toggle settings at once.
|
|
72
|
-
* Useful when you have several related boolean settings.
|
|
73
|
-
*/
|
|
74
|
-
function useSettingToggles(options) {
|
|
75
|
-
const {
|
|
76
|
-
initialValues,
|
|
77
|
-
onSave,
|
|
78
|
-
errorMessage = 'Failed to save setting',
|
|
79
|
-
revertOnError = true
|
|
80
|
-
} = options;
|
|
81
|
-
const [values, setValues] = (0, _react.useState)(initialValues);
|
|
82
|
-
const [savingKeys, setSavingKeys] = (0, _react.useState)(new Set());
|
|
83
|
-
|
|
84
|
-
// Update values when initialValues change
|
|
85
|
-
(0, _react.useEffect)(() => {
|
|
86
|
-
setValues(initialValues);
|
|
87
|
-
}, [initialValues]);
|
|
88
|
-
const toggle = (0, _react.useCallback)(async key => {
|
|
89
|
-
const previousValue = values[key];
|
|
90
|
-
const newValue = !previousValue;
|
|
91
|
-
|
|
92
|
-
// Optimistic update
|
|
93
|
-
setValues(prev => ({
|
|
94
|
-
...prev,
|
|
95
|
-
[key]: newValue
|
|
96
|
-
}));
|
|
97
|
-
setSavingKeys(prev => new Set(prev).add(key));
|
|
98
|
-
try {
|
|
99
|
-
await onSave(key, newValue);
|
|
100
|
-
} catch (err) {
|
|
101
|
-
// Revert on error
|
|
102
|
-
if (revertOnError) {
|
|
103
|
-
setValues(prev => ({
|
|
104
|
-
...prev,
|
|
105
|
-
[key]: previousValue
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
const message = typeof errorMessage === 'function' ? errorMessage(key) : errorMessage;
|
|
109
|
-
_toast.toast.error(message || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
110
|
-
} finally {
|
|
111
|
-
setSavingKeys(prev => {
|
|
112
|
-
const next = new Set(prev);
|
|
113
|
-
next.delete(key);
|
|
114
|
-
return next;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}, [values, onSave, errorMessage, revertOnError]);
|
|
118
|
-
const setValuesExternal = (0, _react.useCallback)(newValues => {
|
|
119
|
-
setValues(prev => ({
|
|
120
|
-
...prev,
|
|
121
|
-
...newValues
|
|
122
|
-
}));
|
|
123
|
-
}, []);
|
|
124
|
-
return {
|
|
125
|
-
values,
|
|
126
|
-
savingKeys,
|
|
127
|
-
toggle,
|
|
128
|
-
setValues: setValuesExternal
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
var _default = exports.default = useSettingToggle;
|
|
132
|
-
//# sourceMappingURL=useSettingToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_toast","useSettingToggle","options","initialValue","onSave","successMessage","errorMessage","revertOnError","showSuccessToast","value","setValue","useState","isSaving","setIsSaving","useEffect","toggle","useCallback","previousValue","newValue","toast","success","err","error","Error","message","useSettingToggles","initialValues","values","setValues","savingKeys","setSavingKeys","Set","key","prev","add","next","delete","setValuesExternal","newValues","_default","exports","default"],"sourceRoot":"../../../../src","sources":["ui/hooks/useSettingToggle.ts"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,gBAAgBA,CAACC,OAAgC,EAA0B;EACvF,MAAM;IACFC,YAAY;IACZC,MAAM;IACNC,cAAc;IACdC,YAAY,GAAG,wBAAwB;IACvCC,aAAa,GAAG,IAAI;IACpBC,gBAAgB,GAAG;EACvB,CAAC,GAAGN,OAAO;EAEX,MAAM,CAACO,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACR,YAAY,CAAC;EAChD,MAAM,CAACS,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAF,eAAQ,EAAC,KAAK,CAAC;;EAE/C;EACA,IAAAG,gBAAS,EAAC,MAAM;IACZJ,QAAQ,CAACP,YAAY,CAAC;EAC1B,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,MAAMY,MAAM,GAAG,IAAAC,kBAAW,EAAC,YAAY;IACnC,MAAMC,aAAa,GAAGR,KAAK;IAC3B,MAAMS,QAAQ,GAAG,CAACT,KAAK;;IAEvB;IACAC,QAAQ,CAACQ,QAAQ,CAAC;IAClBL,WAAW,CAAC,IAAI,CAAC;IAEjB,IAAI;MACA,MAAMT,MAAM,CAACc,QAAQ,CAAC;MAEtB,IAAIV,gBAAgB,IAA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AAgB","ignoreList":[]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useStorage = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _storageHelpers = require("../utils/storageHelpers.js");
|
|
9
|
-
/**
|
|
10
|
-
* Simple React hook that initializes platform-appropriate storage.
|
|
11
|
-
* Returns storage instance once ready, or null if initialization failed.
|
|
12
|
-
*/
|
|
13
|
-
const useStorage = ({
|
|
14
|
-
onError,
|
|
15
|
-
logger
|
|
16
|
-
} = {}) => {
|
|
17
|
-
const [storage, setStorage] = (0, _react.useState)(null);
|
|
18
|
-
const initRef = (0, _react.useRef)(null);
|
|
19
|
-
(0, _react.useEffect)(() => {
|
|
20
|
-
// Prevent multiple initializations
|
|
21
|
-
if (initRef.current) return;
|
|
22
|
-
initRef.current = (async () => {
|
|
23
|
-
try {
|
|
24
|
-
const storageInstance = await (0, _storageHelpers.createPlatformStorage)();
|
|
25
|
-
setStorage(storageInstance);
|
|
26
|
-
} catch (err) {
|
|
27
|
-
const message = err instanceof Error ? err.message : 'Failed to initialize storage';
|
|
28
|
-
if (logger) {
|
|
29
|
-
logger(message, err);
|
|
30
|
-
}
|
|
31
|
-
onError?.({
|
|
32
|
-
message,
|
|
33
|
-
code: 'STORAGE_INIT_ERROR',
|
|
34
|
-
status: 500
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
})();
|
|
38
|
-
}, [logger, onError]);
|
|
39
|
-
return {
|
|
40
|
-
storage,
|
|
41
|
-
isReady: storage !== null
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
exports.useStorage = useStorage;
|
|
45
|
-
//# sourceMappingURL=useStorage.js.map
|