@oxy.so/services 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +51 -0
- package/README.md +857 -0
- package/android/build.gradle +21 -0
- package/android/src/main/AndroidManifest.xml +10 -0
- package/android/src/main/java/so/oxy/devicesession/OxyDeviceSessionModule.kt +178 -0
- package/android/src/main/java/so/oxy/devicesession/OxyDeviceSessionProvider.kt +99 -0
- package/android/src/main/java/so/oxy/devicesession/OxyDeviceSessionStore.kt +115 -0
- package/android/src/main/java/so/oxy/identity/OxyIdentityModule.kt +84 -0
- package/android/src/main/java/so/oxy/identity/OxyIdentityProvider.kt +77 -0
- package/android/src/main/java/so/oxy/identity/OxyIdentityStore.kt +65 -0
- package/android/src/main/java/so/oxy/session/OxyBackgroundSession.kt +184 -0
- package/android/src/main/java/so/oxy/session/OxyBackgroundSessionApi.kt +162 -0
- package/android/src/main/java/so/oxy/session/OxyBackgroundSessionModule.kt +116 -0
- package/android/src/main/java/so/oxy/session/OxyBackgroundSessionStore.kt +179 -0
- package/android/src/main/java/so/oxy/session/OxyBackgroundToken.kt +61 -0
- package/android/src/main/java/so/oxy/storage/OxyEncryptedPrefs.kt +241 -0
- package/expo-module.config.json +13 -0
- package/ios/OxyIdentity.podspec +28 -0
- package/ios/OxyIdentityModule.swift +33 -0
- package/lib/commonjs/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf.d.ts +3 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf.d.ts +3 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +375 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +60 -0
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +39 -0
- package/lib/commonjs/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +375 -0
- package/lib/commonjs/assets/icons/OxyServices.js +51 -0
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/illustrations/HighFive.js +58 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/commonjs/index.js +990 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/notifications/deviceNotifications.js +443 -0
- package/lib/commonjs/notifications/deviceNotifications.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/analytics/productAnalytics.js +82 -0
- package/lib/commonjs/ui/analytics/productAnalytics.js.map +1 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +206 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/commonjs/ui/client.js +135 -0
- package/lib/commonjs/ui/client.js.map +1 -0
- package/lib/commonjs/ui/components/AvatarCameraBadge.js +43 -0
- package/lib/commonjs/ui/components/AvatarCameraBadge.js.map +1 -0
- package/lib/commonjs/ui/components/FollowButton.js +255 -0
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
- package/lib/commonjs/ui/components/FollowTargetButton.js +351 -0
- package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.js +15 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.js.map +1 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.native.js +16 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.native.js.map +1 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.web.js +15 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.web.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +178 -0
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAuthChooser.js +493 -0
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAuthPrompt.js +124 -0
- package/lib/commonjs/ui/components/OxyAuthPrompt.js.map +1 -0
- package/lib/commonjs/ui/components/OxyConsentScreen.js +502 -0
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +44 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/commonjs/ui/components/OxyPayButton.js +66 -0
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +244 -0
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInButton.js +322 -0
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js +147 -0
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileButton.js +342 -0
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +79 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js +296 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -0
- package/lib/commonjs/ui/components/SettingsIcon.js +45 -0
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -0
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +63 -0
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js +257 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +667 -0
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js +108 -0
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js +106 -0
- package/lib/commonjs/ui/components/authChooser/SignInRequestView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/SignUpView.js +188 -0
- package/lib/commonjs/ui/components/authChooser/SignUpView.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js +77 -0
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/primitives.js +183 -0
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js +161 -0
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/signInProgress.js +59 -0
- package/lib/commonjs/ui/components/authChooser/signInProgress.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/styles.js +219 -0
- package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/types.js +81 -0
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -0
- package/lib/commonjs/ui/components/authChooser/useUsernameAvailability.js +50 -0
- package/lib/commonjs/ui/components/authChooser/useUsernameAvailability.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/constants.js +59 -0
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/types.js +6 -0
- package/lib/commonjs/ui/components/feedback/types.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js +52 -0
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +61 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +125 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +431 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +172 -0
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +64 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/commonjs/ui/components/internal/PinInput.js +118 -0
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -0
- package/lib/commonjs/ui/components/logo/LogoIcon.js +61 -0
- package/lib/commonjs/ui/components/logo/LogoIcon.js.map +1 -0
- package/lib/commonjs/ui/components/logo/LogoText.js +48 -0
- package/lib/commonjs/ui/components/logo/LogoText.js.map +1 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +133 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/commonjs/ui/components/oauthNavigation.js +88 -0
- package/lib/commonjs/ui/components/oauthNavigation.js.map +1 -0
- package/lib/commonjs/ui/components/passkeyHubPopup.js +33 -0
- package/lib/commonjs/ui/components/passkeyHubPopup.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +327 -0
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +105 -0
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +149 -0
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +84 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +195 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/constants.js +53 -0
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js +401 -0
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/commonjs/ui/components/payment/types.js +6 -0
- package/lib/commonjs/ui/components/payment/types.js.map +1 -0
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +223 -0
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
- package/lib/commonjs/ui/components/styles/overlay.js +83 -0
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -0
- package/lib/commonjs/ui/components/styles/shadow.js +127 -0
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -0
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +83 -0
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js +13 -0
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -0
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js +9 -0
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js +50 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -0
- package/lib/commonjs/ui/constants/spacing.js +50 -0
- package/lib/commonjs/ui/constants/spacing.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +1248 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
- package/lib/commonjs/ui/context/commitSessionFlow.js +149 -0
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +331 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js +35 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/commonjs/ui/context/oxyContextTypes.js +6 -0
- package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/commonjs/ui/context/passkeyFlow.js +118 -0
- package/lib/commonjs/ui/context/passkeyFlow.js.map +1 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +100 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js +42 -0
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +182 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +40 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +675 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +197 -0
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/paymentTypes.js +2 -0
- package/lib/commonjs/ui/hooks/queries/paymentTypes.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +222 -0
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +326 -0
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js +49 -0
- package/lib/commonjs/ui/hooks/queries/useAuthMethods.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +129 -0
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +145 -0
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +93 -0
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +170 -0
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/userCache.js +440 -0
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/userCacheRelationship.js +31 -0
- package/lib/commonjs/ui/hooks/queries/userCacheRelationship.js.map +1 -0
- package/lib/commonjs/ui/hooks/queryClient.js +223 -0
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAssets.js +227 -0
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAsyncAction.js +95 -0
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAuth.js +152 -0
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +106 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -0
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +73 -0
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +57 -0
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +71 -0
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFollow.js +331 -0
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFollow.types.js +6 -0
- package/lib/commonjs/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFollowTarget.js +160 -0
- package/lib/commonjs/ui/hooks/useFollowTarget.js.map +1 -0
- package/lib/commonjs/ui/hooks/useI18n.js +41 -0
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -0
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +193 -0
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useMutationStatus.js +86 -0
- package/lib/commonjs/ui/hooks/useMutationStatus.js.map +1 -0
- package/lib/commonjs/ui/hooks/useOnlineStatus.js +34 -0
- package/lib/commonjs/ui/hooks/useOnlineStatus.js.map +1 -0
- package/lib/commonjs/ui/hooks/useOxyEvent.js +28 -0
- package/lib/commonjs/ui/hooks/useOxyEvent.js.map +1 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js +134 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/commonjs/ui/hooks/useQueryClient.js +20 -0
- package/lib/commonjs/ui/hooks/useQueryClient.js.map +1 -0
- package/lib/commonjs/ui/hooks/useReduceMotion.js +57 -0
- package/lib/commonjs/ui/hooks/useReduceMotion.js.map +1 -0
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +163 -0
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js +183 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js +132 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/commonjs/ui/hooks/useStorage.js +45 -0
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js +142 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/commonjs/ui/icons/Ionicons.js +13 -0
- package/lib/commonjs/ui/icons/Ionicons.js.map +1 -0
- package/lib/commonjs/ui/icons/MaterialCommunityIcons.js +13 -0
- package/lib/commonjs/ui/icons/MaterialCommunityIcons.js.map +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +362 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -0
- package/lib/commonjs/ui/index.js +148 -0
- package/lib/commonjs/ui/index.js.map +1 -0
- package/lib/commonjs/ui/isFrontend.js +10 -0
- package/lib/commonjs/ui/isFrontend.js.map +1 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js +105 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +62 -0
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +110 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js +68 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +146 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +147 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaces.js +339 -0
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -0
- package/lib/commonjs/ui/oauth/browserAuthTransport.js +170 -0
- package/lib/commonjs/ui/oauth/browserAuthTransport.js.map +1 -0
- package/lib/commonjs/ui/oauth/completeOAuthCode.js +78 -0
- package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -0
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +245 -0
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -0
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js +48 -0
- package/lib/commonjs/ui/oauth/legacyRedirectLanes.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthHandshake.js +53 -0
- package/lib/commonjs/ui/oauth/oauthHandshake.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthPopup.js +276 -0
- package/lib/commonjs/ui/oauth/oauthPopup.js.map +1 -0
- package/lib/commonjs/ui/oauth/oauthPopupMessages.js +150 -0
- package/lib/commonjs/ui/oauth/oauthPopupMessages.js.map +1 -0
- package/lib/commonjs/ui/oauth/types.js +2 -0
- package/lib/commonjs/ui/oauth/types.js.map +1 -0
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +433 -0
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -0
- package/lib/commonjs/ui/runtime/index.js +63 -0
- package/lib/commonjs/ui/runtime/index.js.map +1 -0
- package/lib/commonjs/ui/runtime/runtimeContext.js +83 -0
- package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -0
- package/lib/commonjs/ui/runtime/types.js +6 -0
- package/lib/commonjs/ui/runtime/types.js.map +1 -0
- package/lib/commonjs/ui/runtime/useRuntimeSnapshot.js +57 -0
- package/lib/commonjs/ui/runtime/useRuntimeSnapshot.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +443 -0
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +264 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +184 -0
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js +373 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +987 -0
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js +306 -0
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +169 -0
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +428 -0
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +546 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileScreen.js +167 -0
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FAQScreen.js +162 -0
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +592 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +1529 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FollowersListScreen.js +17 -0
- package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FollowingListScreen.js +17 -0
- package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +123 -0
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +165 -0
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +235 -0
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +127 -0
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +188 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +647 -0
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/NotificationsScreen.js +150 -0
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +278 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js +194 -0
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +958 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +501 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +473 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +132 -0
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +138 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js +61 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserListScreen.js +301 -0
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +467 -0
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +64 -0
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +121 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +552 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +85 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +506 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js +44 -0
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js +79 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/commonjs/ui/screens/index.js +63 -0
- package/lib/commonjs/ui/screens/index.js.map +1 -0
- package/lib/commonjs/ui/screens/linkFormat.js +38 -0
- package/lib/commonjs/ui/screens/linkFormat.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +94 -0
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +185 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +86 -0
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +222 -0
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +512 -0
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +92 -0
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -0
- package/lib/commonjs/ui/server.js +85 -0
- package/lib/commonjs/ui/server.js.map +1 -0
- package/lib/commonjs/ui/session/authStore.js +75 -0
- package/lib/commonjs/ui/session/authStore.js.map +1 -0
- package/lib/commonjs/ui/session/backgroundSession.js +258 -0
- package/lib/commonjs/ui/session/backgroundSession.js.map +1 -0
- package/lib/commonjs/ui/session/createSessionClient.js +56 -0
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -0
- package/lib/commonjs/ui/session/identityBinding.js +95 -0
- package/lib/commonjs/ui/session/identityBinding.js.map +1 -0
- package/lib/commonjs/ui/session/index.js +78 -0
- package/lib/commonjs/ui/session/index.js.map +1 -0
- package/lib/commonjs/ui/session/nativeSecureStorage.js +90 -0
- package/lib/commonjs/ui/session/nativeSecureStorage.js.map +1 -0
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +306 -0
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -0
- package/lib/commonjs/ui/session/tokenTransport.js +75 -0
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -0
- package/lib/commonjs/ui/session/useBackgroundSessionSync.js +81 -0
- package/lib/commonjs/ui/session/useBackgroundSessionSync.js.map +1 -0
- package/lib/commonjs/ui/stores/assetStore.js +225 -0
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -0
- package/lib/commonjs/ui/stores/authStore.js +169 -0
- package/lib/commonjs/ui/stores/authStore.js.map +1 -0
- package/lib/commonjs/ui/stores/followStore.js +551 -0
- package/lib/commonjs/ui/stores/followStore.js.map +1 -0
- package/lib/commonjs/ui/stores/followTargetStore.js +152 -0
- package/lib/commonjs/ui/stores/followTargetStore.js.map +1 -0
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js +21 -0
- package/lib/commonjs/ui/stores/resetSessionScopedStores.js.map +1 -0
- package/lib/commonjs/ui/types/fileManagement.js +6 -0
- package/lib/commonjs/ui/types/fileManagement.js.map +1 -0
- package/lib/commonjs/ui/types/navigation.js +6 -0
- package/lib/commonjs/ui/types/navigation.js.map +1 -0
- package/lib/commonjs/ui/types/surfaceScreen.js +6 -0
- package/lib/commonjs/ui/types/surfaceScreen.js.map +1 -0
- package/lib/commonjs/ui/utils/avatarUtils.js +43 -0
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/colorUtils.js +49 -0
- package/lib/commonjs/ui/utils/colorUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/commonsStoreLinks.js +42 -0
- package/lib/commonjs/ui/utils/commonsStoreLinks.js.map +1 -0
- package/lib/commonjs/ui/utils/deliveryPlatform.js +58 -0
- package/lib/commonjs/ui/utils/deliveryPlatform.js.map +1 -0
- package/lib/commonjs/ui/utils/deviceCredential.js +23 -0
- package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -0
- package/lib/commonjs/ui/utils/errorHandlers.js +145 -0
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -0
- package/lib/commonjs/ui/utils/fileManagement.js +147 -0
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -0
- package/lib/commonjs/ui/utils/iconNames.js +133 -0
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -0
- package/lib/commonjs/ui/utils/isWebBrowser.js +13 -0
- package/lib/commonjs/ui/utils/isWebBrowser.js.map +1 -0
- package/lib/commonjs/ui/utils/netConnectivity.js +28 -0
- package/lib/commonjs/ui/utils/netConnectivity.js.map +1 -0
- package/lib/commonjs/ui/utils/oauthReturn.js +126 -0
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js +61 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/storageHelpers.js +120 -0
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/userUtils.js +69 -0
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -0
- package/lib/commonjs/utils/hookUtils.js +421 -0
- package/lib/commonjs/utils/hookUtils.js.map +1 -0
- package/lib/commonjs/webauthn/passkeyClient.js +39 -0
- package/lib/commonjs/webauthn/passkeyClient.js.map +1 -0
- package/lib/commonjs/webauthn/passkeyClient.native.js +34 -0
- package/lib/commonjs/webauthn/passkeyClient.native.js.map +1 -0
- package/lib/commonjs/webauthn/passkeyClient.web.js +57 -0
- package/lib/commonjs/webauthn/passkeyClient.web.js.map +1 -0
- package/lib/module/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf.d.ts +3 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf.d.ts +3 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +375 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +60 -0
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/assets/illustrations/HighFive.tsx +39 -0
- package/lib/module/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +375 -0
- package/lib/module/assets/icons/OxyServices.js +45 -0
- package/lib/module/assets/icons/OxyServices.js.map +1 -0
- package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/illustrations/HighFive.js +53 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/module/index.js +224 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/notifications/deviceNotifications.js +433 -0
- package/lib/module/notifications/deviceNotifications.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/ui/analytics/productAnalytics.js +76 -0
- package/lib/module/ui/analytics/productAnalytics.js.map +1 -0
- package/lib/module/ui/boot/runProviderColdBoot.js +200 -0
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/module/ui/client.js +38 -0
- package/lib/module/ui/client.js.map +1 -0
- package/lib/module/ui/components/AvatarCameraBadge.js +40 -0
- package/lib/module/ui/components/AvatarCameraBadge.js.map +1 -0
- package/lib/module/ui/components/FollowButton.js +251 -0
- package/lib/module/ui/components/FollowButton.js.map +1 -0
- package/lib/module/ui/components/FollowTargetButton.js +345 -0
- package/lib/module/ui/components/FollowTargetButton.js.map +1 -0
- package/lib/module/ui/components/KeyboardBoundary.js +10 -0
- package/lib/module/ui/components/KeyboardBoundary.js.map +1 -0
- package/lib/module/ui/components/KeyboardBoundary.native.js +12 -0
- package/lib/module/ui/components/KeyboardBoundary.native.js.map +1 -0
- package/lib/module/ui/components/KeyboardBoundary.web.js +10 -0
- package/lib/module/ui/components/KeyboardBoundary.web.js.map +1 -0
- package/lib/module/ui/components/OxyAccountDialogScreen.js +173 -0
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/module/ui/components/OxyAuthChooser.js +490 -0
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -0
- package/lib/module/ui/components/OxyAuthPrompt.js +118 -0
- package/lib/module/ui/components/OxyAuthPrompt.js.map +1 -0
- package/lib/module/ui/components/OxyConsentScreen.js +496 -0
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -0
- package/lib/module/ui/components/OxyOAuthCallback.js +40 -0
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/module/ui/components/OxyPayButton.js +62 -0
- package/lib/module/ui/components/OxyPayButton.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +239 -0
- package/lib/module/ui/components/OxyProvider.js.map +1 -0
- package/lib/module/ui/components/OxySignInButton.js +317 -0
- package/lib/module/ui/components/OxySignInButton.js.map +1 -0
- package/lib/module/ui/components/OxySignInRequestSurface.js +141 -0
- package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -0
- package/lib/module/ui/components/ProfileButton.js +336 -0
- package/lib/module/ui/components/ProfileButton.js.map +1 -0
- package/lib/module/ui/components/ProfileSummaryCard.js +74 -0
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/module/ui/components/RequireOxyAuth.js +292 -0
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -0
- package/lib/module/ui/components/SettingsIcon.js +40 -0
- package/lib/module/ui/components/SettingsIcon.js.map +1 -0
- package/lib/module/ui/components/SurfaceHeaderAction.js +58 -0
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/module/ui/components/SurfaceScreen.js +252 -0
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -0
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +663 -0
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -0
- package/lib/module/ui/components/authChooser/SignInEntryView.js +103 -0
- package/lib/module/ui/components/authChooser/SignInEntryView.js.map +1 -0
- package/lib/module/ui/components/authChooser/SignInRequestView.js +101 -0
- package/lib/module/ui/components/authChooser/SignInRequestView.js.map +1 -0
- package/lib/module/ui/components/authChooser/SignUpView.js +184 -0
- package/lib/module/ui/components/authChooser/SignUpView.js.map +1 -0
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js +73 -0
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js.map +1 -0
- package/lib/module/ui/components/authChooser/primitives.js +176 -0
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -0
- package/lib/module/ui/components/authChooser/requestSurfaces.js +151 -0
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -0
- package/lib/module/ui/components/authChooser/signInProgress.js +55 -0
- package/lib/module/ui/components/authChooser/signInProgress.js.map +1 -0
- package/lib/module/ui/components/authChooser/styles.js +216 -0
- package/lib/module/ui/components/authChooser/styles.js.map +1 -0
- package/lib/module/ui/components/authChooser/types.js +77 -0
- package/lib/module/ui/components/authChooser/types.js.map +1 -0
- package/lib/module/ui/components/authChooser/useUsernameAvailability.js +46 -0
- package/lib/module/ui/components/authChooser/useUsernameAvailability.js.map +1 -0
- package/lib/module/ui/components/feedback/constants.js +55 -0
- package/lib/module/ui/components/feedback/constants.js.map +1 -0
- package/lib/module/ui/components/feedback/types.js +4 -0
- package/lib/module/ui/components/feedback/types.js.map +1 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js +47 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +55 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +119 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js +425 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js +166 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js +59 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/module/ui/components/internal/PinInput.js +113 -0
- package/lib/module/ui/components/internal/PinInput.js.map +1 -0
- package/lib/module/ui/components/logo/LogoIcon.js +55 -0
- package/lib/module/ui/components/logo/LogoIcon.js.map +1 -0
- package/lib/module/ui/components/logo/LogoText.js +42 -0
- package/lib/module/ui/components/logo/LogoText.js.map +1 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js +127 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -0
- package/lib/module/ui/components/oauthNavigation.js +85 -0
- package/lib/module/ui/components/oauthNavigation.js.map +1 -0
- package/lib/module/ui/components/passkeyHubPopup.js +29 -0
- package/lib/module/ui/components/passkeyHubPopup.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +322 -0
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js +100 -0
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js +144 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +79 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +190 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/module/ui/components/payment/constants.js +47 -0
- package/lib/module/ui/components/payment/constants.js.map +1 -0
- package/lib/module/ui/components/payment/paymentStyles.js +396 -0
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/module/ui/components/payment/types.js +4 -0
- package/lib/module/ui/components/payment/types.js.map +1 -0
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +216 -0
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
- package/lib/module/ui/components/styles/overlay.js +80 -0
- package/lib/module/ui/components/styles/overlay.js.map +1 -0
- package/lib/module/ui/components/styles/shadow.js +123 -0
- package/lib/module/ui/components/styles/shadow.js.map +1 -0
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js +78 -0
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js +9 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -0
- package/lib/module/ui/components/utils/roundLayoutSize.js +4 -0
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/module/ui/components/utils/splitStyles.js +46 -0
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -0
- package/lib/module/ui/constants/spacing.js +45 -0
- package/lib/module/ui/constants/spacing.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +1239 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -0
- package/lib/module/ui/context/commitSessionFlow.js +144 -0
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -0
- package/lib/module/ui/context/hooks/useAuthOperations.js +326 -0
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/module/ui/context/oxyContextHelpers.js +29 -0
- package/lib/module/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/module/ui/context/oxyContextTypes.js +4 -0
- package/lib/module/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/module/ui/context/passkeyFlow.js +111 -0
- package/lib/module/ui/context/passkeyFlow.js.map +1 -0
- package/lib/module/ui/context/useOxyAccountGraph.js +96 -0
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/module/ui/hooks/accountDialogSnapshot.js +38 -0
- package/lib/module/ui/hooks/accountDialogSnapshot.js.map +1 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js +178 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js +36 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +666 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +189 -0
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -0
- package/lib/module/ui/hooks/queries/paymentTypes.js +2 -0
- package/lib/module/ui/hooks/queries/paymentTypes.js.map +1 -0
- package/lib/module/ui/hooks/queries/queryKeys.js +207 -0
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -0
- package/lib/module/ui/hooks/queries/useAccountQueries.js +315 -0
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useAuthMethods.js +45 -0
- package/lib/module/ui/hooks/queries/useAuthMethods.js.map +1 -0
- package/lib/module/ui/hooks/queries/useFileQueries.js +120 -0
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +137 -0
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +86 -0
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useServicesQueries.js +161 -0
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/userCache.js +433 -0
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/module/ui/hooks/queries/userCacheRelationship.js +27 -0
- package/lib/module/ui/hooks/queries/userCacheRelationship.js.map +1 -0
- package/lib/module/ui/hooks/queryClient.js +215 -0
- package/lib/module/ui/hooks/queryClient.js.map +1 -0
- package/lib/module/ui/hooks/useAssets.js +221 -0
- package/lib/module/ui/hooks/useAssets.js.map +1 -0
- package/lib/module/ui/hooks/useAsyncAction.js +89 -0
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/module/ui/hooks/useAuth.js +148 -0
- package/lib/module/ui/hooks/useAuth.js.map +1 -0
- package/lib/module/ui/hooks/useAvatarPicker.js +103 -0
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -0
- package/lib/module/ui/hooks/useDeviceManagement.js +68 -0
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -0
- package/lib/module/ui/hooks/useDeviceSwitcher.js +53 -0
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -0
- package/lib/module/ui/hooks/useFileDownloadUrl.js +66 -0
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -0
- package/lib/module/ui/hooks/useFileFiltering.js +72 -0
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/module/ui/hooks/useFollow.js +324 -0
- package/lib/module/ui/hooks/useFollow.js.map +1 -0
- package/lib/module/ui/hooks/useFollow.types.js +4 -0
- package/lib/module/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/module/ui/hooks/useFollowTarget.js +156 -0
- package/lib/module/ui/hooks/useFollowTarget.js.map +1 -0
- package/lib/module/ui/hooks/useI18n.js +38 -0
- package/lib/module/ui/hooks/useI18n.js.map +1 -0
- package/lib/module/ui/hooks/useLanguageManagement.js +185 -0
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/module/ui/hooks/useMutationStatus.js +82 -0
- package/lib/module/ui/hooks/useMutationStatus.js.map +1 -0
- package/lib/module/ui/hooks/useOnlineStatus.js +30 -0
- package/lib/module/ui/hooks/useOnlineStatus.js.map +1 -0
- package/lib/module/ui/hooks/useOxyEvent.js +25 -0
- package/lib/module/ui/hooks/useOxyEvent.js.map +1 -0
- package/lib/module/ui/hooks/useProfileEditing.js +129 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/module/ui/hooks/useQueryClient.js +15 -0
- package/lib/module/ui/hooks/useQueryClient.js.map +1 -0
- package/lib/module/ui/hooks/useReduceMotion.js +53 -0
- package/lib/module/ui/hooks/useReduceMotion.js.map +1 -0
- package/lib/module/ui/hooks/useResolvedFileUrls.js +157 -0
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -0
- package/lib/module/ui/hooks/useSessionManagement.js +178 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -0
- package/lib/module/ui/hooks/useSettingToggle.js +126 -0
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/module/ui/hooks/useStorage.js +40 -0
- package/lib/module/ui/hooks/useStorage.js.map +1 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js +138 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/module/ui/icons/Ionicons.js +8 -0
- package/lib/module/ui/icons/Ionicons.js.map +1 -0
- package/lib/module/ui/icons/MaterialCommunityIcons.js +8 -0
- package/lib/module/ui/icons/MaterialCommunityIcons.js.map +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js +358 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -0
- package/lib/module/ui/index.js +44 -0
- package/lib/module/ui/index.js.map +1 -0
- package/lib/module/ui/isFrontend.js +6 -0
- package/lib/module/ui/isFrontend.js.map +1 -0
- package/lib/module/ui/navigation/accountDialogManager.js +94 -0
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -0
- package/lib/module/ui/navigation/bottomSheetManager.js +56 -0
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +104 -0
- package/lib/module/ui/navigation/routes.js.map +1 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js +63 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/module/ui/navigation/surfaceNavStack.js +143 -0
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -0
- package/lib/module/ui/navigation/surfaceRegistry.js +141 -0
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -0
- package/lib/module/ui/navigation/surfaces.js +325 -0
- package/lib/module/ui/navigation/surfaces.js.map +1 -0
- package/lib/module/ui/oauth/browserAuthTransport.js +167 -0
- package/lib/module/ui/oauth/browserAuthTransport.js.map +1 -0
- package/lib/module/ui/oauth/completeOAuthCode.js +75 -0
- package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -0
- package/lib/module/ui/oauth/explicitOAuthConsent.js +241 -0
- package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -0
- package/lib/module/ui/oauth/legacyRedirectLanes.js +44 -0
- package/lib/module/ui/oauth/legacyRedirectLanes.js.map +1 -0
- package/lib/module/ui/oauth/oauthHandshake.js +50 -0
- package/lib/module/ui/oauth/oauthHandshake.js.map +1 -0
- package/lib/module/ui/oauth/oauthPopup.js +268 -0
- package/lib/module/ui/oauth/oauthPopup.js.map +1 -0
- package/lib/module/ui/oauth/oauthPopupMessages.js +144 -0
- package/lib/module/ui/oauth/oauthPopupMessages.js.map +1 -0
- package/lib/module/ui/oauth/types.js +2 -0
- package/lib/module/ui/oauth/types.js.map +1 -0
- package/lib/module/ui/runtime/createOxyRuntime.js +430 -0
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -0
- package/lib/module/ui/runtime/index.js +15 -0
- package/lib/module/ui/runtime/index.js.map +1 -0
- package/lib/module/ui/runtime/runtimeContext.js +75 -0
- package/lib/module/ui/runtime/runtimeContext.js.map +1 -0
- package/lib/module/ui/runtime/types.js +4 -0
- package/lib/module/ui/runtime/types.js.map +1 -0
- package/lib/module/ui/runtime/useRuntimeSnapshot.js +52 -0
- package/lib/module/ui/runtime/useRuntimeSnapshot.js.map +1 -0
- package/lib/module/ui/screens/AccountMembersScreen.js +438 -0
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +260 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountVerificationScreen.js +179 -0
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -0
- package/lib/module/ui/screens/AppInfoScreen.js +368 -0
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/module/ui/screens/AvatarCropScreen.js +984 -0
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -0
- package/lib/module/ui/screens/ChangeAvatarScreen.js +303 -0
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js +164 -0
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -0
- package/lib/module/ui/screens/CreateAccountScreen.js +423 -0
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js +541 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/module/ui/screens/EditProfileScreen.js +162 -0
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/FAQScreen.js +157 -0
- package/lib/module/ui/screens/FAQScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +590 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +1525 -0
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/FollowersListScreen.js +12 -0
- package/lib/module/ui/screens/FollowersListScreen.js.map +1 -0
- package/lib/module/ui/screens/FollowingListScreen.js +12 -0
- package/lib/module/ui/screens/FollowingListScreen.js.map +1 -0
- package/lib/module/ui/screens/HelpSupportScreen.js +118 -0
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -0
- package/lib/module/ui/screens/HistoryViewScreen.js +160 -0
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -0
- package/lib/module/ui/screens/LanguageSelectorScreen.js +229 -0
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +122 -0
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js +185 -0
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/module/ui/screens/ManageAccountScreen.js +642 -0
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -0
- package/lib/module/ui/screens/NotificationsScreen.js +145 -0
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js +273 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/module/ui/screens/PreferencesScreen.js +189 -0
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +953 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js +496 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +468 -0
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/SavesCollectionsScreen.js +127 -0
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js +133 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/UserLinksScreen.js +57 -0
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -0
- package/lib/module/ui/screens/UserListScreen.js +296 -0
- package/lib/module/ui/screens/UserListScreen.js.map +1 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +462 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js +59 -0
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js +116 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +548 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js +80 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +502 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js +39 -0
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/shared.js +70 -0
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/module/ui/screens/index.js +20 -0
- package/lib/module/ui/screens/index.js.map +1 -0
- package/lib/module/ui/screens/linkFormat.js +31 -0
- package/lib/module/ui/screens/linkFormat.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +89 -0
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +180 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +81 -0
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +217 -0
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +507 -0
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +90 -0
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -0
- package/lib/module/ui/server.js +55 -0
- package/lib/module/ui/server.js.map +1 -0
- package/lib/module/ui/session/authStore.js +70 -0
- package/lib/module/ui/session/authStore.js.map +1 -0
- package/lib/module/ui/session/backgroundSession.js +252 -0
- package/lib/module/ui/session/backgroundSession.js.map +1 -0
- package/lib/module/ui/session/createSessionClient.js +53 -0
- package/lib/module/ui/session/createSessionClient.js.map +1 -0
- package/lib/module/ui/session/identityBinding.js +89 -0
- package/lib/module/ui/session/identityBinding.js.map +1 -0
- package/lib/module/ui/session/index.js +21 -0
- package/lib/module/ui/session/index.js.map +1 -0
- package/lib/module/ui/session/nativeSecureStorage.js +88 -0
- package/lib/module/ui/session/nativeSecureStorage.js.map +1 -0
- package/lib/module/ui/session/sharedDeviceCredentialStore.js +302 -0
- package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -0
- package/lib/module/ui/session/tokenTransport.js +71 -0
- package/lib/module/ui/session/tokenTransport.js.map +1 -0
- package/lib/module/ui/session/useBackgroundSessionSync.js +76 -0
- package/lib/module/ui/session/useBackgroundSessionSync.js.map +1 -0
- package/lib/module/ui/stores/assetStore.js +212 -0
- package/lib/module/ui/stores/assetStore.js.map +1 -0
- package/lib/module/ui/stores/authStore.js +165 -0
- package/lib/module/ui/stores/authStore.js.map +1 -0
- package/lib/module/ui/stores/followStore.js +546 -0
- package/lib/module/ui/stores/followStore.js.map +1 -0
- package/lib/module/ui/stores/followTargetStore.js +143 -0
- package/lib/module/ui/stores/followTargetStore.js.map +1 -0
- package/lib/module/ui/stores/resetSessionScopedStores.js +18 -0
- package/lib/module/ui/stores/resetSessionScopedStores.js.map +1 -0
- package/lib/module/ui/types/fileManagement.js +4 -0
- package/lib/module/ui/types/fileManagement.js.map +1 -0
- package/lib/module/ui/types/navigation.js +4 -0
- package/lib/module/ui/types/navigation.js.map +1 -0
- package/lib/module/ui/types/surfaceScreen.js +4 -0
- package/lib/module/ui/types/surfaceScreen.js.map +1 -0
- package/lib/module/ui/utils/avatarUtils.js +40 -0
- package/lib/module/ui/utils/avatarUtils.js.map +1 -0
- package/lib/module/ui/utils/colorUtils.js +13 -0
- package/lib/module/ui/utils/colorUtils.js.map +1 -0
- package/lib/module/ui/utils/commonsStoreLinks.js +37 -0
- package/lib/module/ui/utils/commonsStoreLinks.js.map +1 -0
- package/lib/module/ui/utils/deliveryPlatform.js +55 -0
- package/lib/module/ui/utils/deliveryPlatform.js.map +1 -0
- package/lib/module/ui/utils/deviceCredential.js +18 -0
- package/lib/module/ui/utils/deviceCredential.js.map +1 -0
- package/lib/module/ui/utils/errorHandlers.js +137 -0
- package/lib/module/ui/utils/errorHandlers.js.map +1 -0
- package/lib/module/ui/utils/fileManagement.js +140 -0
- package/lib/module/ui/utils/fileManagement.js.map +1 -0
- package/lib/module/ui/utils/iconNames.js +124 -0
- package/lib/module/ui/utils/iconNames.js.map +1 -0
- package/lib/module/ui/utils/isWebBrowser.js +11 -0
- package/lib/module/ui/utils/isWebBrowser.js.map +1 -0
- package/lib/module/ui/utils/netConnectivity.js +23 -0
- package/lib/module/ui/utils/netConnectivity.js.map +1 -0
- package/lib/module/ui/utils/oauthReturn.js +122 -0
- package/lib/module/ui/utils/oauthReturn.js.map +1 -0
- package/lib/module/ui/utils/sessionHelpers.js +55 -0
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -0
- package/lib/module/ui/utils/storageHelpers.js +111 -0
- package/lib/module/ui/utils/storageHelpers.js.map +1 -0
- package/lib/module/ui/utils/userUtils.js +63 -0
- package/lib/module/ui/utils/userUtils.js.map +1 -0
- package/lib/module/utils/hookUtils.js +403 -0
- package/lib/module/utils/hookUtils.js.map +1 -0
- package/lib/module/webauthn/passkeyClient.js +33 -0
- package/lib/module/webauthn/passkeyClient.js.map +1 -0
- package/lib/module/webauthn/passkeyClient.native.js +28 -0
- package/lib/module/webauthn/passkeyClient.native.js.map +1 -0
- package/lib/module/webauthn/passkeyClient.web.js +52 -0
- package/lib/module/webauthn/passkeyClient.web.js.map +1 -0
- package/lib/typescript/assets/fonts/icons/OxyServicesIonicons.ttf.d.ts +3 -0
- package/lib/typescript/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf.d.ts +3 -0
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +24 -0
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/commonjs/assets/illustrations/HighFive.d.ts +8 -0
- package/lib/typescript/commonjs/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +103 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts +192 -0
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/ui/analytics/productAnalytics.d.ts +26 -0
- package/lib/typescript/commonjs/ui/analytics/productAnalytics.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +60 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/client.d.ts +29 -0
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts +4 -0
- package/lib/typescript/commonjs/ui/components/AvatarCameraBadge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts +39 -0
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts +158 -0
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.native.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.web.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +54 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts +59 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts +45 -0
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts +29 -0
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +113 -0
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts +108 -0
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +59 -0
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +55 -0
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +45 -0
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignInRequestView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignUpView.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/authChooser/SignUpView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +67 -0
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts +63 -0
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/authChooser/signInProgress.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts +209 -0
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +141 -0
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/authChooser/useUsernameAvailability.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/authChooser/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/feedback/constants.d.ts +5 -0
- package/lib/typescript/commonjs/ui/components/feedback/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/feedback/types.d.ts +46 -0
- package/lib/typescript/commonjs/ui/components/feedback/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/feedback/useFeedbackForm.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +17 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +24 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +14 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/icon/FAIRWalletIcon.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoIcon.d.ts +22 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts +22 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/oauthNavigation.d.ts +52 -0
- package/lib/typescript/commonjs/ui/components/oauthNavigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/passkeyHubPopup.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/passkeyHubPopup.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts +14 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/constants.d.ts +7 -0
- package/lib/typescript/commonjs/ui/components/payment/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts +389 -0
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts +28 -0
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts +3 -0
- package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/utils/hasTouchHandler.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/utils/hasTouchHandler.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/utils/roundLayoutSize.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/utils/roundLayoutSize.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/utils/splitStyles.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/utils/splitStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/constants/spacing.d.ts +33 -0
- package/lib/typescript/commonjs/ui/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +41 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts +81 -0
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +70 -0
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +5 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +232 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts +96 -0
- package/lib/typescript/commonjs/ui/context/passkeyFlow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +30 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +15 -0
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +87 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +30 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +301 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts +23 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/paymentTypes.d.ts +138 -0
- package/lib/typescript/commonjs/ui/hooks/queries/paymentTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +137 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +87 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts +206 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAuthMethods.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +50 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts +64 -0
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +25 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +44 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +173 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCacheRelationship.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCacheRelationship.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +68 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +35 -0
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts +51 -0
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +115 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +34 -0
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceManagement.d.ts +27 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +49 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts +19 -0
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts +108 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.types.d.ts +35 -0
- package/lib/typescript/commonjs/ui/hooks/useFollow.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useFollowTarget.d.ts +50 -0
- package/lib/typescript/commonjs/ui/hooks/useFollowTarget.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts +18 -0
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts +69 -0
- package/lib/typescript/commonjs/ui/hooks/useLanguageManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts +23 -0
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts +14 -0
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyEvent.d.ts +8 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +42 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useQueryClient.d.ts +7 -0
- package/lib/typescript/commonjs/ui/hooks/useQueryClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts +14 -0
- package/lib/typescript/commonjs/ui/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +48 -0
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +46 -0
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts +57 -0
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts +16 -0
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +45 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +3 -0
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +3 -0
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +356 -0
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts +34 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/isFrontend.d.ts +3 -0
- package/lib/typescript/commonjs/ui/isFrontend.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +54 -0
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +34 -0
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +20 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +75 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +194 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +110 -0
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts +56 -0
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/completeOAuthCode.d.ts +49 -0
- package/lib/typescript/commonjs/ui/oauth/completeOAuthCode.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/explicitOAuthConsent.d.ts +59 -0
- package/lib/typescript/commonjs/ui/oauth/explicitOAuthConsent.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts +40 -0
- package/lib/typescript/commonjs/ui/oauth/legacyRedirectLanes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts +50 -0
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts +83 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopupMessages.d.ts +67 -0
- package/lib/typescript/commonjs/ui/oauth/oauthPopupMessages.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/oauth/types.d.ts +176 -0
- package/lib/typescript/commonjs/ui/oauth/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +144 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/index.d.ts +16 -0
- package/lib/typescript/commonjs/ui/runtime/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +43 -0
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/types.d.ts +89 -0
- package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/useRuntimeSnapshot.d.ts +23 -0
- package/lib/typescript/commonjs/ui/runtime/useRuntimeSnapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts +10 -0
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts +12 -0
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts +58 -0
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts +38 -0
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts +11 -0
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts +14 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts +12 -0
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts +12 -0
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts +7 -0
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts +15 -0
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts +15 -0
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts +14 -0
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +43 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +51 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts +37 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +38 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts +23 -0
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts +5 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/server.d.ts +35 -0
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +76 -0
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts +42 -0
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +40 -0
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts +66 -0
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/index.d.ts +20 -0
- package/lib/typescript/commonjs/ui/session/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts +25 -0
- package/lib/typescript/commonjs/ui/session/nativeSecureStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +32 -0
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +33 -0
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/useBackgroundSessionSync.d.ts +23 -0
- package/lib/typescript/commonjs/ui/session/useBackgroundSessionSync.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +54 -0
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts +61 -0
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts +30 -0
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/followTargetStore.d.ts +84 -0
- package/lib/typescript/commonjs/ui/stores/followTargetStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts +10 -0
- package/lib/typescript/commonjs/ui/stores/resetSessionScopedStores.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts +51 -0
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +156 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts +38 -0
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +16 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts +10 -0
- package/lib/typescript/commonjs/ui/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/commonsStoreLinks.d.ts +24 -0
- package/lib/typescript/commonjs/ui/utils/commonsStoreLinks.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/deliveryPlatform.d.ts +33 -0
- package/lib/typescript/commonjs/ui/utils/deliveryPlatform.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +8 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts +35 -0
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +55 -0
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/isWebBrowser.d.ts +9 -0
- package/lib/typescript/commonjs/ui/utils/isWebBrowser.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts +17 -0
- package/lib/typescript/commonjs/ui/utils/netConnectivity.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +48 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +48 -0
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +32 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts +23 -0
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/hookUtils.d.ts +102 -0
- package/lib/typescript/commonjs/utils/hookUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts +20 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.d.ts.map +1 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts +15 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts +36 -0
- package/lib/typescript/commonjs/webauthn/passkeyClient.web.d.ts.map +1 -0
- package/lib/typescript/module/assets/icons/OxyServices.d.ts +24 -0
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/module/assets/illustrations/HighFive.d.ts +8 -0
- package/lib/typescript/module/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +103 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/notifications/deviceNotifications.d.ts +192 -0
- package/lib/typescript/module/notifications/deviceNotifications.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/ui/analytics/productAnalytics.d.ts +26 -0
- package/lib/typescript/module/ui/analytics/productAnalytics.d.ts.map +1 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +60 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/module/ui/client.d.ts +29 -0
- package/lib/typescript/module/ui/client.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts +4 -0
- package/lib/typescript/module/ui/components/AvatarCameraBadge.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/FollowButton.d.ts +39 -0
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts +158 -0
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.d.ts +6 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.native.d.ts +6 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.native.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.web.d.ts +6 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.web.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +40 -0
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +54 -0
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts +59 -0
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts +45 -0
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts +29 -0
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +40 -0
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +113 -0
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts +108 -0
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +59 -0
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +55 -0
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +15 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +23 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +45 -0
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts +34 -0
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts +34 -0
- package/lib/typescript/module/ui/components/authChooser/SignInRequestView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/SignUpView.d.ts +34 -0
- package/lib/typescript/module/ui/components/authChooser/SignUpView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts +38 -0
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +67 -0
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts +63 -0
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts +26 -0
- package/lib/typescript/module/ui/components/authChooser/signInProgress.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts +209 -0
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +141 -0
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/authChooser/useUsernameAvailability.d.ts +16 -0
- package/lib/typescript/module/ui/components/authChooser/useUsernameAvailability.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/feedback/constants.d.ts +5 -0
- package/lib/typescript/module/ui/components/feedback/constants.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/feedback/types.d.ts +46 -0
- package/lib/typescript/module/ui/components/feedback/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/feedback/useFeedbackForm.d.ts +9 -0
- package/lib/typescript/module/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +17 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +24 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +16 -0
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +14 -0
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/icon/FAIRWalletIcon.d.ts +9 -0
- package/lib/typescript/module/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/internal/PinInput.d.ts +23 -0
- package/lib/typescript/module/ui/components/internal/PinInput.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/logo/LogoIcon.d.ts +22 -0
- package/lib/typescript/module/ui/components/logo/LogoIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts +22 -0
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +26 -0
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/oauthNavigation.d.ts +52 -0
- package/lib/typescript/module/ui/components/oauthNavigation.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/passkeyHubPopup.d.ts +23 -0
- package/lib/typescript/module/ui/components/passkeyHubPopup.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts +14 -0
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts +16 -0
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/constants.d.ts +7 -0
- package/lib/typescript/module/ui/components/payment/constants.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts +389 -0
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/payment/types.d.ts +40 -0
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts +28 -0
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/styles/overlay.d.ts +6 -0
- package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/styles/shadow.d.ts +3 -0
- package/lib/typescript/module/ui/components/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/utils/hasTouchHandler.d.ts +6 -0
- package/lib/typescript/module/ui/components/utils/hasTouchHandler.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/utils/roundLayoutSize.d.ts +2 -0
- package/lib/typescript/module/ui/components/utils/roundLayoutSize.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/utils/splitStyles.d.ts +20 -0
- package/lib/typescript/module/ui/components/utils/splitStyles.d.ts.map +1 -0
- package/lib/typescript/module/ui/constants/spacing.d.ts +33 -0
- package/lib/typescript/module/ui/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts +41 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts +81 -0
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +70 -0
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +5 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +232 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts +96 -0
- package/lib/typescript/module/ui/context/passkeyFlow.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +30 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +15 -0
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +87 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +30 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +301 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts +23 -0
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/paymentTypes.d.ts +138 -0
- package/lib/typescript/module/ui/hooks/queries/paymentTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +137 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +87 -0
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts +206 -0
- package/lib/typescript/module/ui/hooks/queries/useAuthMethods.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +50 -0
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts +64 -0
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +25 -0
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +44 -0
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +173 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queries/userCacheRelationship.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/queries/userCacheRelationship.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +68 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +35 -0
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts +51 -0
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +115 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +34 -0
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useDeviceManagement.d.ts +27 -0
- package/lib/typescript/module/ui/hooks/useDeviceManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +49 -0
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts +19 -0
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFollow.d.ts +108 -0
- package/lib/typescript/module/ui/hooks/useFollow.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFollow.types.d.ts +35 -0
- package/lib/typescript/module/ui/hooks/useFollow.types.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useFollowTarget.d.ts +50 -0
- package/lib/typescript/module/ui/hooks/useFollowTarget.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useI18n.d.ts +18 -0
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts +69 -0
- package/lib/typescript/module/ui/hooks/useLanguageManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts +23 -0
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts +14 -0
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useOxyEvent.d.ts +8 -0
- package/lib/typescript/module/ui/hooks/useOxyEvent.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +42 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useQueryClient.d.ts +7 -0
- package/lib/typescript/module/ui/hooks/useQueryClient.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts +14 -0
- package/lib/typescript/module/ui/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +48 -0
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +46 -0
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts +57 -0
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useStorage.d.ts +16 -0
- package/lib/typescript/module/ui/hooks/useStorage.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +45 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +3 -0
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +3 -0
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +356 -0
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -0
- package/lib/typescript/module/ui/index.d.ts +34 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/isFrontend.d.ts +3 -0
- package/lib/typescript/module/ui/isFrontend.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +54 -0
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +34 -0
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts +20 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +75 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +194 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaces.d.ts +110 -0
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts +56 -0
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/completeOAuthCode.d.ts +49 -0
- package/lib/typescript/module/ui/oauth/completeOAuthCode.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/explicitOAuthConsent.d.ts +59 -0
- package/lib/typescript/module/ui/oauth/explicitOAuthConsent.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts +40 -0
- package/lib/typescript/module/ui/oauth/legacyRedirectLanes.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts +50 -0
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts +83 -0
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/oauthPopupMessages.d.ts +67 -0
- package/lib/typescript/module/ui/oauth/oauthPopupMessages.d.ts.map +1 -0
- package/lib/typescript/module/ui/oauth/types.d.ts +176 -0
- package/lib/typescript/module/ui/oauth/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +144 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/index.d.ts +16 -0
- package/lib/typescript/module/ui/runtime/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +43 -0
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/types.d.ts +89 -0
- package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/useRuntimeSnapshot.d.ts +23 -0
- package/lib/typescript/module/ui/runtime/useRuntimeSnapshot.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts +10 -0
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts +12 -0
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts +58 -0
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts +38 -0
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts +11 -0
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts +14 -0
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts +12 -0
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts +12 -0
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts +7 -0
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts +15 -0
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts +15 -0
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts +18 -0
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts +14 -0
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts +23 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +43 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +51 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts +37 -0
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +38 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/index.d.ts +18 -0
- package/lib/typescript/module/ui/screens/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/linkFormat.d.ts +23 -0
- package/lib/typescript/module/ui/screens/linkFormat.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts +5 -0
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/server.d.ts +35 -0
- package/lib/typescript/module/ui/server.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/authStore.d.ts +76 -0
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/backgroundSession.d.ts +42 -0
- package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +40 -0
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/identityBinding.d.ts +66 -0
- package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/index.d.ts +20 -0
- package/lib/typescript/module/ui/session/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts +25 -0
- package/lib/typescript/module/ui/session/nativeSecureStorage.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +32 -0
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/tokenTransport.d.ts +33 -0
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/useBackgroundSessionSync.d.ts +23 -0
- package/lib/typescript/module/ui/session/useBackgroundSessionSync.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/assetStore.d.ts +54 -0
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/authStore.d.ts +61 -0
- package/lib/typescript/module/ui/stores/authStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/followStore.d.ts +30 -0
- package/lib/typescript/module/ui/stores/followStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/followTargetStore.d.ts +84 -0
- package/lib/typescript/module/ui/stores/followTargetStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts +10 -0
- package/lib/typescript/module/ui/stores/resetSessionScopedStores.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/fileManagement.d.ts +51 -0
- package/lib/typescript/module/ui/types/fileManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/navigation.d.ts +156 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts +38 -0
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts +16 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/colorUtils.d.ts +10 -0
- package/lib/typescript/module/ui/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/commonsStoreLinks.d.ts +24 -0
- package/lib/typescript/module/ui/utils/commonsStoreLinks.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/deliveryPlatform.d.ts +33 -0
- package/lib/typescript/module/ui/utils/deliveryPlatform.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts +8 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts +35 -0
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +55 -0
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/isWebBrowser.d.ts +9 -0
- package/lib/typescript/module/ui/utils/isWebBrowser.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts +17 -0
- package/lib/typescript/module/ui/utils/netConnectivity.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts +48 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +48 -0
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts +32 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/userUtils.d.ts +23 -0
- package/lib/typescript/module/ui/utils/userUtils.d.ts.map +1 -0
- package/lib/typescript/module/utils/hookUtils.d.ts +102 -0
- package/lib/typescript/module/utils/hookUtils.d.ts.map +1 -0
- package/lib/typescript/module/webauthn/passkeyClient.d.ts +20 -0
- package/lib/typescript/module/webauthn/passkeyClient.d.ts.map +1 -0
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts +15 -0
- package/lib/typescript/module/webauthn/passkeyClient.native.d.ts.map +1 -0
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts +36 -0
- package/lib/typescript/module/webauthn/passkeyClient.web.d.ts.map +1 -0
- package/lib/typescript/nativewind-env.d.ts +1 -0
- package/lib/typescript/types/assets.d.ts +4 -0
- package/lib/typescript/types/expo-crypto.d.ts +29 -0
- package/lib/typescript/types/expo-document-picker.d.ts +36 -0
- package/lib/typescript/types/expo-haptics.d.ts +42 -0
- package/lib/typescript/types/expo-image-picker.d.ts +35 -0
- package/lib/typescript/types/expo-secure-store.d.ts +22 -0
- package/lib/typescript/types/express.d.ts +24 -0
- package/lib/typescript/types/react-native-classname.d.ts +39 -0
- package/lib/typescript/types/react-native-web-style.d.ts +27 -0
- package/package.json +320 -0
- package/plugins/withSharedDeviceSessionProvider.js +102 -0
- package/plugins/withSharedDeviceSessionReader.js +57 -0
- package/plugins/withSharedIdentityProvider.js +83 -0
- package/plugins/withSharedIdentityReader.js +46 -0
- package/src/__tests__/esmSourcePurity.test.ts +61 -0
- package/src/assets/OxyLogo.svg +1 -0
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf.d.ts +3 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf.d.ts +3 -0
- package/src/assets/fonts/icons/manifest.json +375 -0
- package/src/assets/icons/OxyServices.tsx +60 -0
- package/src/assets/icons/logo_OxyServices.svg +1 -0
- package/src/assets/illustrations/HighFive.tsx +39 -0
- package/src/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/src/index.ts +410 -0
- package/src/nativewind-env.d.ts +1 -0
- package/src/notifications/deviceNotifications.ts +477 -0
- package/src/types/assets.d.ts +4 -0
- package/src/types/expo-crypto.d.ts +29 -0
- package/src/types/expo-document-picker.d.ts +36 -0
- package/src/types/expo-haptics.d.ts +42 -0
- package/src/types/expo-image-picker.d.ts +35 -0
- package/src/types/expo-secure-store.d.ts +22 -0
- package/src/types/express.d.ts +24 -0
- package/src/types/react-native-classname.d.ts +39 -0
- package/src/types/react-native-web-style.d.ts +27 -0
- package/src/ui/analytics/productAnalytics.tsx +114 -0
- package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +215 -0
- package/src/ui/boot/runProviderColdBoot.ts +244 -0
- package/src/ui/client.ts +46 -0
- package/src/ui/components/AvatarCameraBadge.tsx +36 -0
- package/src/ui/components/FollowButton.tsx +312 -0
- package/src/ui/components/FollowTargetButton.tsx +427 -0
- package/src/ui/components/KeyboardBoundary.native.tsx +7 -0
- package/src/ui/components/KeyboardBoundary.tsx +4 -0
- package/src/ui/components/KeyboardBoundary.web.tsx +4 -0
- package/src/ui/components/OxyAccountDialogScreen.tsx +181 -0
- package/src/ui/components/OxyAuthChooser.tsx +554 -0
- package/src/ui/components/OxyAuthPrompt.tsx +162 -0
- package/src/ui/components/OxyConsentScreen.tsx +504 -0
- package/src/ui/components/OxyOAuthCallback.tsx +38 -0
- package/src/ui/components/OxyPayButton.tsx +74 -0
- package/src/ui/components/OxyProvider.tsx +255 -0
- package/src/ui/components/OxySignInButton.tsx +423 -0
- package/src/ui/components/OxySignInRequestSurface.tsx +202 -0
- package/src/ui/components/ProfileButton.tsx +400 -0
- package/src/ui/components/ProfileSummaryCard.tsx +100 -0
- package/src/ui/components/RequireOxyAuth.tsx +266 -0
- package/src/ui/components/SettingsIcon.tsx +44 -0
- package/src/ui/components/SurfaceHeaderAction.tsx +60 -0
- package/src/ui/components/SurfaceScreen.tsx +284 -0
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +155 -0
- package/src/ui/components/__tests__/followTargetButton.test.ts +258 -0
- package/src/ui/components/authChooser/AccountsMenuView.tsx +733 -0
- package/src/ui/components/authChooser/SignInEntryView.tsx +144 -0
- package/src/ui/components/authChooser/SignInRequestView.tsx +130 -0
- package/src/ui/components/authChooser/SignUpView.tsx +174 -0
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +88 -0
- package/src/ui/components/authChooser/primitives.tsx +158 -0
- package/src/ui/components/authChooser/requestSurfaces.tsx +128 -0
- package/src/ui/components/authChooser/signInProgress.ts +58 -0
- package/src/ui/components/authChooser/styles.ts +213 -0
- package/src/ui/components/authChooser/types.ts +159 -0
- package/src/ui/components/authChooser/useUsernameAvailability.ts +60 -0
- package/src/ui/components/feedback/constants.ts +22 -0
- package/src/ui/components/feedback/types.ts +52 -0
- package/src/ui/components/feedback/useFeedbackForm.ts +44 -0
- package/src/ui/components/fileManagement/AnimatedButton.tsx +64 -0
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +129 -0
- package/src/ui/components/fileManagement/FileViewer.tsx +412 -0
- package/src/ui/components/fileManagement/UploadPreview.tsx +175 -0
- package/src/ui/components/icon/FAIRWalletIcon.tsx +49 -0
- package/src/ui/components/internal/PinInput.tsx +123 -0
- package/src/ui/components/logo/LogoIcon.tsx +71 -0
- package/src/ui/components/logo/LogoText.tsx +71 -0
- package/src/ui/components/modals/DeleteAccountModal.tsx +131 -0
- package/src/ui/components/oauthNavigation.ts +114 -0
- package/src/ui/components/passkeyHubPopup.ts +28 -0
- package/src/ui/components/payment/PaymentDetailsStep.tsx +232 -0
- package/src/ui/components/payment/PaymentMethodStep.tsx +90 -0
- package/src/ui/components/payment/PaymentReviewStep.tsx +125 -0
- package/src/ui/components/payment/PaymentSuccessStep.tsx +66 -0
- package/src/ui/components/payment/PaymentSummaryStep.tsx +158 -0
- package/src/ui/components/payment/constants.ts +39 -0
- package/src/ui/components/payment/paymentStyles.ts +389 -0
- package/src/ui/components/payment/types.ts +45 -0
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +232 -0
- package/src/ui/components/photogrid/__tests__/chunkPhotos.test.ts +51 -0
- package/src/ui/components/styles/overlay.tsx +97 -0
- package/src/ui/components/styles/shadow.tsx +131 -0
- package/src/ui/components/surfaces/ActionSheetSurface.tsx +98 -0
- package/src/ui/components/utils/hasTouchHandler.tsx +23 -0
- package/src/ui/components/utils/roundLayoutSize.ts +2 -0
- package/src/ui/components/utils/splitStyles.ts +60 -0
- package/src/ui/constants/spacing.ts +45 -0
- package/src/ui/context/OxyContext.tsx +1449 -0
- package/src/ui/context/__tests__/commitSessionFlow.test.ts +333 -0
- package/src/ui/context/__tests__/passkeyFlow.test.ts +244 -0
- package/src/ui/context/commitSessionFlow.ts +193 -0
- package/src/ui/context/hooks/useAuthOperations.ts +425 -0
- package/src/ui/context/oxyContextHelpers.ts +28 -0
- package/src/ui/context/oxyContextTypes.ts +239 -0
- package/src/ui/context/passkeyFlow.ts +154 -0
- package/src/ui/context/useOxyAccountGraph.ts +123 -0
- package/src/ui/hooks/accountDialogSnapshot.ts +37 -0
- package/src/ui/hooks/mutations/mutationFactory.ts +230 -0
- package/src/ui/hooks/mutations/mutationKeys.ts +39 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +686 -0
- package/src/ui/hooks/mutations/useServicesMutations.ts +170 -0
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +427 -0
- package/src/ui/hooks/queries/__tests__/userCacheClear.test.ts +301 -0
- package/src/ui/hooks/queries/paymentTypes.ts +142 -0
- package/src/ui/hooks/queries/queryKeys.ts +221 -0
- package/src/ui/hooks/queries/useAccountQueries.ts +307 -0
- package/src/ui/hooks/queries/useAuthMethods.ts +45 -0
- package/src/ui/hooks/queries/useFileQueries.ts +162 -0
- package/src/ui/hooks/queries/usePaymentQueries.ts +137 -0
- package/src/ui/hooks/queries/useSecurityQueries.ts +104 -0
- package/src/ui/hooks/queries/useServicesQueries.ts +157 -0
- package/src/ui/hooks/queries/userCache.ts +530 -0
- package/src/ui/hooks/queries/userCacheRelationship.ts +33 -0
- package/src/ui/hooks/queryClient.ts +244 -0
- package/src/ui/hooks/useAssets.ts +270 -0
- package/src/ui/hooks/useAsyncAction.ts +129 -0
- package/src/ui/hooks/useAuth.ts +246 -0
- package/src/ui/hooks/useAvatarPicker.ts +138 -0
- package/src/ui/hooks/useDeviceManagement.ts +108 -0
- package/src/ui/hooks/useDeviceSwitcher.ts +110 -0
- package/src/ui/hooks/useFileDownloadUrl.ts +87 -0
- package/src/ui/hooks/useFileFiltering.ts +114 -0
- package/src/ui/hooks/useFollow.ts +364 -0
- package/src/ui/hooks/useFollow.types.ts +36 -0
- package/src/ui/hooks/useFollowTarget.ts +223 -0
- package/src/ui/hooks/useI18n.ts +32 -0
- package/src/ui/hooks/useLanguageManagement.ts +254 -0
- package/src/ui/hooks/useMutationStatus.ts +111 -0
- package/src/ui/hooks/useOnlineStatus.ts +30 -0
- package/src/ui/hooks/useOxyEvent.ts +22 -0
- package/src/ui/hooks/useProfileEditing.ts +168 -0
- package/src/ui/hooks/useQueryClient.ts +17 -0
- package/src/ui/hooks/useReduceMotion.ts +58 -0
- package/src/ui/hooks/useResolvedFileUrls.ts +170 -0
- package/src/ui/hooks/useSessionManagement.ts +228 -0
- package/src/ui/hooks/useSettingToggle.ts +151 -0
- package/src/ui/hooks/useStorage.ts +52 -0
- package/src/ui/hooks/useSurfaceHeader.ts +194 -0
- package/src/ui/icons/Ionicons.ts +11 -0
- package/src/ui/icons/MaterialCommunityIcons.ts +11 -0
- package/src/ui/icons/subsetGlyphMaps.ts +356 -0
- package/src/ui/index.ts +52 -0
- package/src/ui/isFrontend.ts +5 -0
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +101 -0
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +181 -0
- package/src/ui/navigation/accountDialogManager.ts +114 -0
- package/src/ui/navigation/bottomSheetManager.ts +60 -0
- package/src/ui/navigation/routes.ts +140 -0
- package/src/ui/navigation/surfaceBackBridge.ts +69 -0
- package/src/ui/navigation/surfaceNavStack.ts +177 -0
- package/src/ui/navigation/surfaceRegistry.ts +286 -0
- package/src/ui/navigation/surfaces.ts +356 -0
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +335 -0
- package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +142 -0
- package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +258 -0
- package/src/ui/oauth/__tests__/oauthPopup.test.ts +352 -0
- package/src/ui/oauth/__tests__/oauthPopupMessages.test.ts +189 -0
- package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +174 -0
- package/src/ui/oauth/browserAuthTransport.ts +193 -0
- package/src/ui/oauth/completeOAuthCode.ts +93 -0
- package/src/ui/oauth/explicitOAuthConsent.ts +272 -0
- package/src/ui/oauth/legacyRedirectLanes.ts +43 -0
- package/src/ui/oauth/oauthHandshake.ts +74 -0
- package/src/ui/oauth/oauthPopup.ts +277 -0
- package/src/ui/oauth/oauthPopupMessages.ts +145 -0
- package/src/ui/oauth/types.ts +150 -0
- package/src/ui/runtime/createOxyRuntime.ts +623 -0
- package/src/ui/runtime/index.ts +34 -0
- package/src/ui/runtime/runtimeContext.tsx +111 -0
- package/src/ui/runtime/types.ts +110 -0
- package/src/ui/runtime/useRuntimeSnapshot.ts +52 -0
- package/src/ui/screens/AccountMembersScreen.tsx +477 -0
- package/src/ui/screens/AccountSettingsScreen.tsx +278 -0
- package/src/ui/screens/AccountVerificationScreen.tsx +186 -0
- package/src/ui/screens/AppInfoScreen.tsx +354 -0
- package/src/ui/screens/AvatarCropScreen.tsx +1169 -0
- package/src/ui/screens/ChangeAvatarScreen.tsx +369 -0
- package/src/ui/screens/ConnectedAppsScreen.tsx +181 -0
- package/src/ui/screens/CreateAccountScreen.tsx +490 -0
- package/src/ui/screens/EditProfileFieldScreen.tsx +607 -0
- package/src/ui/screens/EditProfileScreen.tsx +143 -0
- package/src/ui/screens/FAQScreen.tsx +200 -0
- package/src/ui/screens/FeedbackScreen.tsx +766 -0
- package/src/ui/screens/FileManagementScreen.tsx +1422 -0
- package/src/ui/screens/FollowersListScreen.tsx +17 -0
- package/src/ui/screens/FollowingListScreen.tsx +17 -0
- package/src/ui/screens/HelpSupportScreen.tsx +111 -0
- package/src/ui/screens/HistoryViewScreen.tsx +128 -0
- package/src/ui/screens/LanguageSelectorScreen.tsx +264 -0
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +144 -0
- package/src/ui/screens/LegalDocumentsScreen.tsx +234 -0
- package/src/ui/screens/ManageAccountScreen.tsx +943 -0
- package/src/ui/screens/NotificationsScreen.tsx +184 -0
- package/src/ui/screens/PaymentGatewayScreen.tsx +297 -0
- package/src/ui/screens/PreferencesScreen.tsx +235 -0
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +1103 -0
- package/src/ui/screens/PrivacySettingsScreen.tsx +422 -0
- package/src/ui/screens/ProfileScreen.tsx +375 -0
- package/src/ui/screens/SavesCollectionsScreen.tsx +167 -0
- package/src/ui/screens/SearchSettingsScreen.tsx +142 -0
- package/src/ui/screens/UserLinksScreen.tsx +63 -0
- package/src/ui/screens/UserListScreen.tsx +330 -0
- package/src/ui/screens/WelcomeNewUserScreen.tsx +380 -0
- package/src/ui/screens/__tests__/linkFormat.test.ts +73 -0
- package/src/ui/screens/__tests__/photoGridLayout.test.ts +57 -0
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +56 -0
- package/src/ui/screens/fileManagement/FileListSection.tsx +127 -0
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +634 -0
- package/src/ui/screens/fileManagement/UploadBar.tsx +70 -0
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +565 -0
- package/src/ui/screens/fileManagement/photoGridLayout.ts +45 -0
- package/src/ui/screens/fileManagement/shared.ts +88 -0
- package/src/ui/screens/index.ts +17 -0
- package/src/ui/screens/linkFormat.ts +37 -0
- package/src/ui/screens/trust/TrustAboutScreen.tsx +70 -0
- package/src/ui/screens/trust/TrustCenterScreen.tsx +253 -0
- package/src/ui/screens/trust/TrustFAQScreen.tsx +101 -0
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +222 -0
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +579 -0
- package/src/ui/screens/trust/TrustRulesScreen.tsx +113 -0
- package/src/ui/server.ts +58 -0
- package/src/ui/session/__tests__/authStore.test.ts +90 -0
- package/src/ui/session/__tests__/backgroundSession.test.ts +392 -0
- package/src/ui/session/__tests__/createSessionClient.test.ts +111 -0
- package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +289 -0
- package/src/ui/session/__tests__/tokenTransport.test.ts +163 -0
- package/src/ui/session/authStore.ts +106 -0
- package/src/ui/session/backgroundSession.ts +313 -0
- package/src/ui/session/createSessionClient.ts +59 -0
- package/src/ui/session/identityBinding.ts +116 -0
- package/src/ui/session/index.ts +25 -0
- package/src/ui/session/nativeSecureStorage.ts +98 -0
- package/src/ui/session/sharedDeviceCredentialStore.ts +318 -0
- package/src/ui/session/tokenTransport.ts +70 -0
- package/src/ui/session/useBackgroundSessionSync.ts +92 -0
- package/src/ui/stores/__tests__/followStore.test.ts +181 -0
- package/src/ui/stores/__tests__/resetSessionScopedStores.test.ts +23 -0
- package/src/ui/stores/assetStore.ts +281 -0
- package/src/ui/stores/authStore.ts +191 -0
- package/src/ui/stores/followStore.ts +446 -0
- package/src/ui/stores/followTargetStore.ts +153 -0
- package/src/ui/stores/resetSessionScopedStores.ts +15 -0
- package/src/ui/types/fileManagement.ts +61 -0
- package/src/ui/types/navigation.ts +175 -0
- package/src/ui/types/surfaceScreen.ts +38 -0
- package/src/ui/utils/avatarUtils.ts +56 -0
- package/src/ui/utils/colorUtils.ts +18 -0
- package/src/ui/utils/commonsStoreLinks.ts +38 -0
- package/src/ui/utils/deliveryPlatform.ts +65 -0
- package/src/ui/utils/deviceCredential.ts +17 -0
- package/src/ui/utils/errorHandlers.ts +202 -0
- package/src/ui/utils/fileManagement.ts +170 -0
- package/src/ui/utils/iconNames.ts +136 -0
- package/src/ui/utils/isWebBrowser.ts +8 -0
- package/src/ui/utils/netConnectivity.ts +27 -0
- package/src/ui/utils/oauthReturn.ts +138 -0
- package/src/ui/utils/sessionHelpers.ts +88 -0
- package/src/ui/utils/storageHelpers.ts +129 -0
- package/src/ui/utils/userUtils.ts +69 -0
- package/src/utils/hookUtils.ts +423 -0
- package/src/webauthn/passkeyClient.native.ts +26 -0
- package/src/webauthn/passkeyClient.ts +31 -0
- package/src/webauthn/passkeyClient.web.ts +56 -0
|
@@ -0,0 +1,1422 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useState, useCallback, useMemo, useRef } from 'react';
|
|
3
|
+
import {
|
|
4
|
+
View,
|
|
5
|
+
Text,
|
|
6
|
+
TouchableOpacity,
|
|
7
|
+
StyleSheet,
|
|
8
|
+
ScrollView,
|
|
9
|
+
ActivityIndicator,
|
|
10
|
+
RefreshControl,
|
|
11
|
+
TextInput,
|
|
12
|
+
useWindowDimensions,
|
|
13
|
+
} from 'react-native';
|
|
14
|
+
import { useQueryClient } from '@tanstack/react-query';
|
|
15
|
+
import { Image as ExpoImage } from 'expo-image';
|
|
16
|
+
import type { FileManagementScreenProps } from '../types/fileManagement';
|
|
17
|
+
import { toast } from '@oxy.so/bloom/toast';
|
|
18
|
+
import { surfaces } from '@oxy.so/bloom/surfaces';
|
|
19
|
+
import * as Skeleton from '@oxy.so/bloom/skeleton';
|
|
20
|
+
import Ionicons from '../icons/Ionicons';
|
|
21
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
22
|
+
import { Pressable } from 'react-native';
|
|
23
|
+
import type { FileMetadata } from '@oxy.so/core';
|
|
24
|
+
import { queryKeys } from '../hooks/queries/queryKeys';
|
|
25
|
+
import { useUserFilesInfinite, removeFileFromCache, patchFileMetadataInCache } from '../hooks/queries/useFileQueries';
|
|
26
|
+
import { useSurfaceHeader, type SurfaceHeaderContent } from '../hooks/useSurfaceHeader';
|
|
27
|
+
import { SurfaceHeaderAction } from '../components/SurfaceHeaderAction';
|
|
28
|
+
import JustifiedPhotoGrid from '../components/photogrid/JustifiedPhotoGrid';
|
|
29
|
+
import { useTheme } from '@oxy.so/bloom/theme';
|
|
30
|
+
import { useOxy } from '../context/OxyContext';
|
|
31
|
+
import { useI18n } from '../hooks/useI18n';
|
|
32
|
+
import { useReduceMotion } from '../hooks/useReduceMotion';
|
|
33
|
+
import { useUploadFile } from '../hooks/mutations/useAccountMutations';
|
|
34
|
+
import {
|
|
35
|
+
formatFileSize,
|
|
36
|
+
getFileIcon,
|
|
37
|
+
} from '../utils/fileManagement';
|
|
38
|
+
import { useResolvedFileUrls, fileThumbSource } from '../hooks/useResolvedFileUrls';
|
|
39
|
+
import { FileViewer } from '../components/fileManagement/FileViewer';
|
|
40
|
+
import { presentFileDetails } from '../components/fileManagement/FileDetailsModal';
|
|
41
|
+
import { UploadPreview } from '../components/fileManagement/UploadPreview';
|
|
42
|
+
import { presentActionSheet } from '../components/surfaces/ActionSheetSurface';
|
|
43
|
+
import { getErrorMessage } from './fileManagement/shared';
|
|
44
|
+
import { useFileUploadState } from './fileManagement/hooks/useFileUploadState';
|
|
45
|
+
import PhotoPickerView from './fileManagement/PhotoPickerSection';
|
|
46
|
+
import FileListSection, { type FileListItem } from './fileManagement/FileListSection';
|
|
47
|
+
import FileLibraryError from './fileManagement/FileLibraryError';
|
|
48
|
+
import UploadBar from './fileManagement/UploadBar';
|
|
49
|
+
import { AnimatedButton } from '../components/fileManagement/AnimatedButton';
|
|
50
|
+
|
|
51
|
+
// Genuinely-inline-only styles: `viewModeButton` is spread into an Animated.View
|
|
52
|
+
// style array (interpolated backgroundColor), and the photo tiles are
|
|
53
|
+
// `expo-image` (no className remap). Everything else uses NativeWind classNames.
|
|
54
|
+
// Nav-header slot layout for this screen's action row + review-mode back button.
|
|
55
|
+
const fmHeaderStyles = StyleSheet.create({
|
|
56
|
+
actionsRow: {
|
|
57
|
+
flexDirection: 'row',
|
|
58
|
+
gap: 8,
|
|
59
|
+
},
|
|
60
|
+
backButton: {
|
|
61
|
+
width: 36,
|
|
62
|
+
height: 36,
|
|
63
|
+
borderRadius: 18,
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const screenStyles = StyleSheet.create({
|
|
70
|
+
viewModeButton: {
|
|
71
|
+
paddingHorizontal: 10,
|
|
72
|
+
paddingVertical: 6,
|
|
73
|
+
borderRadius: 999,
|
|
74
|
+
minWidth: 36,
|
|
75
|
+
alignItems: 'center',
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
marginHorizontal: 1,
|
|
78
|
+
},
|
|
79
|
+
justifiedPhotoImage: { width: '100%', height: '100%', borderRadius: 6 },
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
83
|
+
onClose,
|
|
84
|
+
goBack,
|
|
85
|
+
navigate,
|
|
86
|
+
dismiss,
|
|
87
|
+
userId,
|
|
88
|
+
containerWidth,
|
|
89
|
+
selectMode = false,
|
|
90
|
+
multiSelect = false,
|
|
91
|
+
onSelect,
|
|
92
|
+
onPicked,
|
|
93
|
+
onConfirmSelection,
|
|
94
|
+
initialSelectedIds = [],
|
|
95
|
+
maxSelection,
|
|
96
|
+
disabledMimeTypes = [],
|
|
97
|
+
afterSelect = 'close',
|
|
98
|
+
allowUploadInSelectMode = true,
|
|
99
|
+
defaultVisibility = 'private',
|
|
100
|
+
linkContext,
|
|
101
|
+
}) => {
|
|
102
|
+
// Use useOxy() hook for OxyContext values. Files are owned by the ACTIVE
|
|
103
|
+
// account (the org/project/bot when switched, else the personal user): the
|
|
104
|
+
// default file owner and every "is this mine?" ownership check resolve
|
|
105
|
+
// against `user`, so switching shows/manages that account's files.
|
|
106
|
+
const { user, oxyServices } = useOxy();
|
|
107
|
+
const { t } = useI18n();
|
|
108
|
+
const queryClient = useQueryClient();
|
|
109
|
+
const uploadFileMutation = useUploadFile();
|
|
110
|
+
|
|
111
|
+
// Files are owned by the ACTIVE account. `targetUserId` scopes the query key,
|
|
112
|
+
// so switching accounts (or an explicit `userId` prop) shows that account's
|
|
113
|
+
// library with no manual reset.
|
|
114
|
+
const targetUserId = userId || user?.id;
|
|
115
|
+
|
|
116
|
+
// The file list is React Query's, NOT a store: infinite-paginated, fetched on
|
|
117
|
+
// mount + on owner change, edited optimistically via cache helpers. The
|
|
118
|
+
// rendered list is the flattened pages.
|
|
119
|
+
const filesQuery = useUserFilesInfinite(targetUserId);
|
|
120
|
+
const files = useMemo(
|
|
121
|
+
() => filesQuery.data?.pages.flatMap((page) => page.files) ?? [],
|
|
122
|
+
[filesQuery.data],
|
|
123
|
+
);
|
|
124
|
+
// No owner resolved yet reads as "loading" (matches the old skeleton-until-
|
|
125
|
+
// first-load behaviour); `isLoading` is the first-page fetch only.
|
|
126
|
+
const isLoadingFiles = !targetUserId || filesQuery.isLoading;
|
|
127
|
+
const isRefreshingFiles = filesQuery.isRefetching;
|
|
128
|
+
const isFetchingMore = filesQuery.isFetchingNextPage;
|
|
129
|
+
const hasMoreFiles = filesQuery.hasNextPage ?? false;
|
|
130
|
+
// Terminal load failure with nothing cached — render a DISTINCT error state
|
|
131
|
+
// (not the empty state) so a failed load never looks like an empty library.
|
|
132
|
+
const hasLoadError = filesQuery.isError && files.length === 0;
|
|
133
|
+
const invalidateFiles = useCallback(() => {
|
|
134
|
+
queryClient.invalidateQueries({ queryKey: queryKeys.files.list(targetUserId) });
|
|
135
|
+
}, [queryClient, targetUserId]);
|
|
136
|
+
|
|
137
|
+
const { width: windowWidth } = useWindowDimensions();
|
|
138
|
+
// Prefer an explicit sheet width from the router; fall back to the window
|
|
139
|
+
// so photo grids never size against a hardcoded 400px default.
|
|
140
|
+
const safeContainerWidth: number =
|
|
141
|
+
typeof containerWidth === 'number' && containerWidth > 0
|
|
142
|
+
? containerWidth
|
|
143
|
+
: windowWidth;
|
|
144
|
+
// In-flight delete target (local UI state — was in the file store).
|
|
145
|
+
const [deletingId, setDeletingId] = useState<string | null>(null);
|
|
146
|
+
// In selectMode we never open the detailed viewer
|
|
147
|
+
const [openedFile, setOpenedFile] = useState<FileMetadata | null>(null);
|
|
148
|
+
const [fileContent, setFileContent] = useState<string | null>(null);
|
|
149
|
+
const [loadingFileContent, setLoadingFileContent] = useState(false);
|
|
150
|
+
const [showFileDetailsInViewer, setShowFileDetailsInViewer] = useState(false);
|
|
151
|
+
// Reduce-motion preference, read as an external store (no effect). Passed to
|
|
152
|
+
// `PhotoPickerView` to skip cell stagger animations.
|
|
153
|
+
const reduceMotion = useReduceMotion();
|
|
154
|
+
|
|
155
|
+
// Image-only picker mode: when the consumer restricts to image MIME types
|
|
156
|
+
// (e.g. avatar picker), photos grid is the more useful default view.
|
|
157
|
+
const isImageOnlyPicker = useMemo(() => {
|
|
158
|
+
if (!selectMode) return false;
|
|
159
|
+
if (disabledMimeTypes.length === 0) return false;
|
|
160
|
+
const blocksVideos = disabledMimeTypes.some(mt => mt === 'video/' || mt.startsWith('video/'));
|
|
161
|
+
const blocksAudio = disabledMimeTypes.some(mt => mt === 'audio/' || mt.startsWith('audio/'));
|
|
162
|
+
const blocksDocs = disabledMimeTypes.some(mt =>
|
|
163
|
+
mt === 'application/pdf' ||
|
|
164
|
+
mt === 'application/' ||
|
|
165
|
+
mt.startsWith('application/')
|
|
166
|
+
);
|
|
167
|
+
return blocksVideos && blocksAudio && blocksDocs;
|
|
168
|
+
}, [disabledMimeTypes, selectMode]);
|
|
169
|
+
|
|
170
|
+
const [viewMode, setViewMode] = useState<'all' | 'photos' | 'videos' | 'documents' | 'audio'>(
|
|
171
|
+
isImageOnlyPicker ? 'photos' : 'all',
|
|
172
|
+
);
|
|
173
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
174
|
+
const [sortBy, setSortBy] = useState<'date' | 'size' | 'name' | 'type'>('date');
|
|
175
|
+
const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('desc');
|
|
176
|
+
// Derived filtered and sorted files (avoid setState loops)
|
|
177
|
+
const filteredFiles = useMemo(() => {
|
|
178
|
+
let filteredByMode = files;
|
|
179
|
+
if (viewMode === 'photos') {
|
|
180
|
+
filteredByMode = files.filter(file => file.contentType.startsWith('image/'));
|
|
181
|
+
} else if (viewMode === 'videos') {
|
|
182
|
+
filteredByMode = files.filter(file => file.contentType.startsWith('video/'));
|
|
183
|
+
} else if (viewMode === 'documents') {
|
|
184
|
+
filteredByMode = files.filter(file =>
|
|
185
|
+
file.contentType.includes('pdf') ||
|
|
186
|
+
file.contentType.includes('document') ||
|
|
187
|
+
file.contentType.includes('text') ||
|
|
188
|
+
file.contentType.includes('msword') ||
|
|
189
|
+
file.contentType.includes('excel') ||
|
|
190
|
+
file.contentType.includes('spreadsheet') ||
|
|
191
|
+
file.contentType.includes('presentation') ||
|
|
192
|
+
file.contentType.includes('powerpoint')
|
|
193
|
+
);
|
|
194
|
+
} else if (viewMode === 'audio') {
|
|
195
|
+
filteredByMode = files.filter(file => file.contentType.startsWith('audio/'));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
let filtered = filteredByMode;
|
|
199
|
+
if (searchQuery.trim()) {
|
|
200
|
+
const query = searchQuery.toLowerCase();
|
|
201
|
+
filtered = filteredByMode.filter(file =>
|
|
202
|
+
file.filename.toLowerCase().includes(query) ||
|
|
203
|
+
file.contentType.toLowerCase().includes(query) ||
|
|
204
|
+
(file.metadata?.description?.toLowerCase().includes(query))
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// Sort files
|
|
209
|
+
const sorted = [...filtered].sort((a, b) => {
|
|
210
|
+
let comparison = 0;
|
|
211
|
+
if (sortBy === 'date') {
|
|
212
|
+
const dateA = new Date(a.uploadDate || 0).getTime();
|
|
213
|
+
const dateB = new Date(b.uploadDate || 0).getTime();
|
|
214
|
+
comparison = dateA - dateB;
|
|
215
|
+
} else if (sortBy === 'size') {
|
|
216
|
+
comparison = (a.length || 0) - (b.length || 0);
|
|
217
|
+
} else if (sortBy === 'name') {
|
|
218
|
+
comparison = (a.filename || '').localeCompare(b.filename || '');
|
|
219
|
+
} else if (sortBy === 'type') {
|
|
220
|
+
comparison = (a.contentType || '').localeCompare(b.contentType || '');
|
|
221
|
+
}
|
|
222
|
+
return sortOrder === 'asc' ? comparison : -comparison;
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
return sorted;
|
|
226
|
+
}, [files, searchQuery, viewMode, sortBy, sortOrder]);
|
|
227
|
+
// Selection state. `initialSelectedIds` is the INITIAL selection only (lazy
|
|
228
|
+
// init) — there is no prop→state sync effect, since no caller mutates it
|
|
229
|
+
// after mount.
|
|
230
|
+
const [selectedIds, setSelectedIds] = useState<Set<string>>(() => new Set(initialSelectedIds));
|
|
231
|
+
const scrollViewRef = useRef<ScrollView>(null);
|
|
232
|
+
const photoScrollViewRef = useRef<ScrollView>(null);
|
|
233
|
+
|
|
234
|
+
// Scroll the browse list/grid to a just-selected file. Driven directly from
|
|
235
|
+
// the selection event handler (double-rAF so the selection re-render has
|
|
236
|
+
// committed first) — not an effect. No-ops in the image-only picker, whose
|
|
237
|
+
// own FlatList is not either ScrollView ref.
|
|
238
|
+
const scrollToSelectedFile = useCallback((fileId: string) => {
|
|
239
|
+
if (viewMode === 'all' && scrollViewRef.current) {
|
|
240
|
+
const itemIndex = filteredFiles.findIndex(file => file.id === fileId);
|
|
241
|
+
if (itemIndex < 0) return;
|
|
242
|
+
// GroupedItem dense rows are ~65px, +30px when a description wraps.
|
|
243
|
+
const baseItemHeight = 65;
|
|
244
|
+
const descriptionHeight = 30;
|
|
245
|
+
let scrollPosition = 0;
|
|
246
|
+
for (let i = 0; i <= itemIndex && i < filteredFiles.length; i++) {
|
|
247
|
+
scrollPosition += baseItemHeight;
|
|
248
|
+
if (filteredFiles[i].metadata?.description) scrollPosition += descriptionHeight;
|
|
249
|
+
}
|
|
250
|
+
// Offset for the header/controls/search/stats chrome (~250px) so the
|
|
251
|
+
// item lands near the top, not under the chrome.
|
|
252
|
+
const finalScrollPosition = 250 + scrollPosition - 150;
|
|
253
|
+
requestAnimationFrame(() => {
|
|
254
|
+
requestAnimationFrame(() => {
|
|
255
|
+
scrollViewRef.current?.scrollTo({ y: Math.max(0, finalScrollPosition), animated: true });
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
} else if (viewMode === 'photos' && photoScrollViewRef.current) {
|
|
259
|
+
const photos = filteredFiles.filter(file => file.contentType.startsWith('image/'));
|
|
260
|
+
const photoIndex = photos.findIndex(p => p.id === fileId);
|
|
261
|
+
if (photoIndex < 0) return;
|
|
262
|
+
// Rough estimate for the justified grid (3 photos/row, variable heights).
|
|
263
|
+
const row = Math.floor(photoIndex / 3);
|
|
264
|
+
const finalScrollPosition = row * (150 + 4) - 100;
|
|
265
|
+
requestAnimationFrame(() => {
|
|
266
|
+
requestAnimationFrame(() => {
|
|
267
|
+
photoScrollViewRef.current?.scrollTo({ y: Math.max(0, finalScrollPosition), animated: true });
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}, [viewMode, filteredFiles]);
|
|
272
|
+
|
|
273
|
+
const toggleSelect = useCallback(async (file: FileMetadata) => {
|
|
274
|
+
// Selection is allowed in regular mode too (for bulk operations).
|
|
275
|
+
if (disabledMimeTypes.length) {
|
|
276
|
+
const blocked = disabledMimeTypes.some(mt => file.contentType === mt || file.contentType.startsWith(mt.endsWith('/') ? mt : `${mt}/`));
|
|
277
|
+
if (blocked) {
|
|
278
|
+
toast.error(t('fileManagement.toasts.fileTypeBlocked'));
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Update file visibility if it differs from defaultVisibility
|
|
284
|
+
const fileVisibility = (file.metadata as Record<string, unknown> | undefined)?.visibility || 'private';
|
|
285
|
+
if (fileVisibility !== defaultVisibility) {
|
|
286
|
+
try {
|
|
287
|
+
await oxyServices.assetUpdateVisibility(file.id, defaultVisibility);
|
|
288
|
+
} catch (error) {
|
|
289
|
+
// Continue anyway - selection shouldn't fail if visibility update fails
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// Link file to entity if linkContext is provided
|
|
294
|
+
if (linkContext) {
|
|
295
|
+
try {
|
|
296
|
+
await oxyServices.assetLink(
|
|
297
|
+
file.id,
|
|
298
|
+
linkContext.app,
|
|
299
|
+
linkContext.entityType,
|
|
300
|
+
linkContext.entityId,
|
|
301
|
+
defaultVisibility,
|
|
302
|
+
linkContext.webhookUrl
|
|
303
|
+
);
|
|
304
|
+
} catch (error) {
|
|
305
|
+
// Continue anyway - selection shouldn't fail if linking fails
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (!multiSelect) {
|
|
310
|
+
if (onPicked) {
|
|
311
|
+
// Forward-navigation picker (e.g. the avatar flow): hand the file
|
|
312
|
+
// to the caller, which pushes the NEXT frame (the cropper) on top
|
|
313
|
+
// of this picker. The picker frame stays below so Back returns here
|
|
314
|
+
// to re-pick — no dismiss, no session close.
|
|
315
|
+
onPicked(file);
|
|
316
|
+
} else if (onSelect) {
|
|
317
|
+
// Legacy callback caller (inbox, WelcomeNewUser): keep the
|
|
318
|
+
// callback + afterSelect behaviour unchanged.
|
|
319
|
+
onSelect(file);
|
|
320
|
+
if (afterSelect === 'back') {
|
|
321
|
+
goBack?.();
|
|
322
|
+
} else if (afterSelect === 'close') {
|
|
323
|
+
onClose?.();
|
|
324
|
+
}
|
|
325
|
+
} else {
|
|
326
|
+
// Promise-based picker: resolve the surface's present() promise
|
|
327
|
+
// with the picked file.
|
|
328
|
+
dismiss?.(file);
|
|
329
|
+
}
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
setSelectedIds(prev => {
|
|
333
|
+
const next = new Set(prev);
|
|
334
|
+
const already = next.has(file.id);
|
|
335
|
+
if (!already) {
|
|
336
|
+
if (maxSelection && next.size >= maxSelection) {
|
|
337
|
+
toast.error(t('fileManagement.toasts.maxSelection', { max: maxSelection }));
|
|
338
|
+
return prev;
|
|
339
|
+
}
|
|
340
|
+
next.add(file.id);
|
|
341
|
+
} else {
|
|
342
|
+
next.delete(file.id);
|
|
343
|
+
}
|
|
344
|
+
return next;
|
|
345
|
+
});
|
|
346
|
+
scrollToSelectedFile(file.id);
|
|
347
|
+
}, [multiSelect, onPicked, onSelect, onClose, goBack, dismiss, disabledMimeTypes, maxSelection, afterSelect, defaultVisibility, oxyServices, linkContext, t, scrollToSelectedFile]);
|
|
348
|
+
|
|
349
|
+
const confirmMultiSelection = useCallback(async () => {
|
|
350
|
+
if (!selectMode || !multiSelect) return;
|
|
351
|
+
const map: Record<string, FileMetadata> = {};
|
|
352
|
+
for (const f of files) { map[f.id] = f; }
|
|
353
|
+
const chosen = Array.from(selectedIds).map(id => map[id]).filter(Boolean);
|
|
354
|
+
|
|
355
|
+
// Update visibility and link files if needed
|
|
356
|
+
const updatePromises = chosen.map(async (file) => {
|
|
357
|
+
// Update visibility if needed
|
|
358
|
+
const fileVisibility = (file.metadata as Record<string, unknown> | undefined)?.visibility || 'private';
|
|
359
|
+
if (fileVisibility !== defaultVisibility) {
|
|
360
|
+
try {
|
|
361
|
+
await oxyServices.assetUpdateVisibility(file.id, defaultVisibility);
|
|
362
|
+
} catch (error) {
|
|
363
|
+
// Visibility update failed, continue with selection
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// Link file to entity if linkContext provided
|
|
368
|
+
if (linkContext) {
|
|
369
|
+
try {
|
|
370
|
+
await oxyServices.assetLink(
|
|
371
|
+
file.id,
|
|
372
|
+
linkContext.app,
|
|
373
|
+
linkContext.entityType,
|
|
374
|
+
linkContext.entityId,
|
|
375
|
+
defaultVisibility,
|
|
376
|
+
linkContext.webhookUrl
|
|
377
|
+
);
|
|
378
|
+
} catch (error) {
|
|
379
|
+
// File linking failed, continue with selection
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
// Wait for all updates (but don't block on failures)
|
|
385
|
+
await Promise.allSettled(updatePromises);
|
|
386
|
+
|
|
387
|
+
if (onConfirmSelection) {
|
|
388
|
+
// Legacy callback caller (inbox): keep the callback + close.
|
|
389
|
+
onConfirmSelection(chosen);
|
|
390
|
+
onClose?.();
|
|
391
|
+
} else {
|
|
392
|
+
// Promise-based picker: resolve the surface with the chosen files.
|
|
393
|
+
dismiss?.(chosen);
|
|
394
|
+
}
|
|
395
|
+
}, [selectMode, multiSelect, selectedIds, files, onConfirmSelection, onClose, dismiss, defaultVisibility, oxyServices, linkContext]);
|
|
396
|
+
|
|
397
|
+
// Private-safe thumbnail URLs for the currently-shown files, resolved in
|
|
398
|
+
// ONE batch per page (not N per-tile) and cached by React Query. Uploads
|
|
399
|
+
// default to private, so the synchronous public-CDN URL would 404 for
|
|
400
|
+
// every private thumbnail.
|
|
401
|
+
const resolvedThumbUrls = useResolvedFileUrls(oxyServices, filteredFiles, user?.id);
|
|
402
|
+
|
|
403
|
+
// Image source for a grid tile: the resolved private-safe URL for a
|
|
404
|
+
// persisted file, or the locally-picked preview for an in-flight optimistic
|
|
405
|
+
// entry. Never builds an asset URL from a `temp-…`/uploading id.
|
|
406
|
+
const thumbSourceFor = useCallback(
|
|
407
|
+
(file: FileMetadata): string | undefined => fileThumbSource(file, resolvedThumbUrls),
|
|
408
|
+
[resolvedThumbUrls],
|
|
409
|
+
);
|
|
410
|
+
|
|
411
|
+
const bloomTheme = useTheme();
|
|
412
|
+
const { colors } = bloomTheme;
|
|
413
|
+
// FileManagementScreen uses a slightly elevated page background.
|
|
414
|
+
const backgroundColor = colors.backgroundSecondary;
|
|
415
|
+
const borderColor = colors.border;
|
|
416
|
+
|
|
417
|
+
// Self-contained document-picking + upload-preview state and handlers.
|
|
418
|
+
// Optimistic uploads edit the file query cache directly (see
|
|
419
|
+
// useFileQueries), so no loader is threaded in.
|
|
420
|
+
const {
|
|
421
|
+
isPickingDocument,
|
|
422
|
+
pendingFiles,
|
|
423
|
+
showUploadPreview,
|
|
424
|
+
uploading,
|
|
425
|
+
uploadProgress,
|
|
426
|
+
handleFileUpload,
|
|
427
|
+
handleConfirmUpload,
|
|
428
|
+
handleCancelUpload,
|
|
429
|
+
removePendingFile,
|
|
430
|
+
} = useFileUploadState({
|
|
431
|
+
targetUserId,
|
|
432
|
+
uploadFileMutation,
|
|
433
|
+
defaultVisibility,
|
|
434
|
+
selectMode,
|
|
435
|
+
multiSelect,
|
|
436
|
+
afterSelect,
|
|
437
|
+
onSelect,
|
|
438
|
+
onPicked,
|
|
439
|
+
goBack,
|
|
440
|
+
onClose,
|
|
441
|
+
imagesOnly: isImageOnlyPicker,
|
|
442
|
+
selectedIds,
|
|
443
|
+
setSelectedIds,
|
|
444
|
+
t,
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
const confirmFileDelete = useCallback(async (fileId: string, filename: string) => {
|
|
448
|
+
const confirmed = await surfaces.confirm({
|
|
449
|
+
title: t('fileManagement.deleteFile') || 'Delete File',
|
|
450
|
+
description: t('fileManagement.confirms.deleteFile', { filename }),
|
|
451
|
+
confirmLabel: t('fileManagement.confirm') || 'Delete',
|
|
452
|
+
cancelLabel: t('common.cancel') || 'Cancel',
|
|
453
|
+
destructive: true,
|
|
454
|
+
});
|
|
455
|
+
if (!confirmed) return;
|
|
456
|
+
|
|
457
|
+
try {
|
|
458
|
+
setDeletingId(fileId);
|
|
459
|
+
await oxyServices.deleteFile(fileId);
|
|
460
|
+
|
|
461
|
+
toast.success(t('fileManagement.toasts.deleteSuccess'));
|
|
462
|
+
|
|
463
|
+
// Remove from the query cache, then reconcile against the server.
|
|
464
|
+
removeFileFromCache(queryClient, targetUserId, fileId);
|
|
465
|
+
invalidateFiles();
|
|
466
|
+
} catch (error: unknown) {
|
|
467
|
+
// Provide specific error messages
|
|
468
|
+
if (getErrorMessage(error)?.includes('File not found') || getErrorMessage(error)?.includes('404')) {
|
|
469
|
+
toast.error(t('fileManagement.toasts.fileNotFound'));
|
|
470
|
+
// It's already gone server-side — reconcile the list.
|
|
471
|
+
invalidateFiles();
|
|
472
|
+
} else if (getErrorMessage(error)?.includes('permission') || getErrorMessage(error)?.includes('403')) {
|
|
473
|
+
toast.error(t('fileManagement.toasts.noPermission'));
|
|
474
|
+
} else {
|
|
475
|
+
toast.error(getErrorMessage(error) || t('fileManagement.toasts.deleteFailed'));
|
|
476
|
+
}
|
|
477
|
+
} finally {
|
|
478
|
+
setDeletingId(null);
|
|
479
|
+
}
|
|
480
|
+
}, [oxyServices, queryClient, targetUserId, invalidateFiles, t]);
|
|
481
|
+
|
|
482
|
+
const confirmBulkDelete = useCallback(async () => {
|
|
483
|
+
if (selectedIds.size === 0) return;
|
|
484
|
+
|
|
485
|
+
const confirmed = await surfaces.confirm({
|
|
486
|
+
title: t('fileManagement.deleteFiles') || 'Delete Files',
|
|
487
|
+
description: t('fileManagement.confirms.deleteFiles', { count: selectedIds.size }),
|
|
488
|
+
confirmLabel: t('fileManagement.confirm') || 'Delete',
|
|
489
|
+
cancelLabel: t('common.cancel') || 'Cancel',
|
|
490
|
+
destructive: true,
|
|
491
|
+
});
|
|
492
|
+
if (!confirmed) return;
|
|
493
|
+
|
|
494
|
+
try {
|
|
495
|
+
const deletePromises = Array.from(selectedIds).map(async (fileId) => {
|
|
496
|
+
try {
|
|
497
|
+
await oxyServices.deleteFile(fileId);
|
|
498
|
+
removeFileFromCache(queryClient, targetUserId, fileId);
|
|
499
|
+
return { success: true, fileId };
|
|
500
|
+
} catch (error: unknown) {
|
|
501
|
+
return { success: false, fileId, error };
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
|
|
505
|
+
const results = await Promise.allSettled(deletePromises);
|
|
506
|
+
const successful = results.filter(r => r.status === 'fulfilled' && r.value.success).length;
|
|
507
|
+
const failed = results.length - successful;
|
|
508
|
+
|
|
509
|
+
if (successful > 0) {
|
|
510
|
+
toast.success(t('fileManagement.toasts.bulkDeleteSuccess', { count: successful }));
|
|
511
|
+
}
|
|
512
|
+
if (failed > 0) {
|
|
513
|
+
toast.error(t('fileManagement.toasts.bulkDeleteFailed', { count: failed }));
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
setSelectedIds(new Set());
|
|
517
|
+
invalidateFiles();
|
|
518
|
+
} catch (error: unknown) {
|
|
519
|
+
toast.error(getErrorMessage(error) || t('fileManagement.toasts.bulkDeleteError'));
|
|
520
|
+
}
|
|
521
|
+
}, [selectedIds, oxyServices, queryClient, targetUserId, invalidateFiles, t]);
|
|
522
|
+
|
|
523
|
+
const handleBulkVisibilityChange = useCallback(async (visibility: 'private' | 'public' | 'unlisted') => {
|
|
524
|
+
if (selectedIds.size === 0) return;
|
|
525
|
+
|
|
526
|
+
try {
|
|
527
|
+
const updatePromises = Array.from(selectedIds).map(async (fileId) => {
|
|
528
|
+
try {
|
|
529
|
+
await oxyServices.assetUpdateVisibility(fileId, visibility);
|
|
530
|
+
return { success: true, fileId };
|
|
531
|
+
} catch (error: unknown) {
|
|
532
|
+
return { success: false, fileId, error };
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
|
|
536
|
+
const results = await Promise.allSettled(updatePromises);
|
|
537
|
+
const successful = results.filter(r => r.status === 'fulfilled' && r.value.success).length;
|
|
538
|
+
const failed = results.length - successful;
|
|
539
|
+
|
|
540
|
+
if (successful > 0) {
|
|
541
|
+
toast.success(t('fileManagement.toasts.visibilitySuccess', { count: successful, visibility }));
|
|
542
|
+
// Reflect the new visibility in the cached files.
|
|
543
|
+
for (const fileId of selectedIds) {
|
|
544
|
+
patchFileMetadataInCache(queryClient, targetUserId, fileId, { visibility });
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
if (failed > 0) {
|
|
548
|
+
toast.error(t('fileManagement.toasts.visibilityFailed', { count: failed }));
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
invalidateFiles();
|
|
552
|
+
} catch (error: unknown) {
|
|
553
|
+
toast.error(getErrorMessage(error) || t('fileManagement.toasts.visibilityError'));
|
|
554
|
+
}
|
|
555
|
+
}, [selectedIds, oxyServices, queryClient, targetUserId, invalidateFiles, t]);
|
|
556
|
+
|
|
557
|
+
const handleVisibilityChange = useCallback(async () => {
|
|
558
|
+
if (selectedIds.size === 0) return;
|
|
559
|
+
const visibility = await presentActionSheet<'private' | 'public' | 'unlisted'>({
|
|
560
|
+
title: t('fileManagement.changeVisibility') || 'Change Visibility',
|
|
561
|
+
message: t('fileManagement.changeVisibilityConfirm', { count: selectedIds.size }),
|
|
562
|
+
options: [
|
|
563
|
+
{ label: t('fileManagement.private') || 'Private', value: 'private' },
|
|
564
|
+
{ label: t('fileManagement.public') || 'Public', value: 'public' },
|
|
565
|
+
{ label: t('fileManagement.unlisted') || 'Unlisted', value: 'unlisted' },
|
|
566
|
+
],
|
|
567
|
+
cancelLabel: t('common.cancel') || 'Cancel',
|
|
568
|
+
});
|
|
569
|
+
if (visibility) await handleBulkVisibilityChange(visibility);
|
|
570
|
+
}, [selectedIds.size, handleBulkVisibilityChange, t]);
|
|
571
|
+
|
|
572
|
+
// Unified download function - works on all platforms
|
|
573
|
+
const handleFileDownload = useCallback(async (fileId: string, filename: string) => {
|
|
574
|
+
try {
|
|
575
|
+
// Resolve an authenticated, private-safe URL. The synchronous
|
|
576
|
+
// `getFileDownloadUrl` yields the public CDN origin, which 404s for
|
|
577
|
+
// private assets (the default visibility).
|
|
578
|
+
const downloadUrl = await oxyServices.getFileDownloadUrlAsync(fileId);
|
|
579
|
+
|
|
580
|
+
// For web platforms, use link download
|
|
581
|
+
if (typeof window !== 'undefined' && window.document) {
|
|
582
|
+
try {
|
|
583
|
+
// Try simple link download first
|
|
584
|
+
const link = document.createElement('a');
|
|
585
|
+
link.href = downloadUrl;
|
|
586
|
+
link.download = filename;
|
|
587
|
+
link.target = '_blank';
|
|
588
|
+
document.body.appendChild(link);
|
|
589
|
+
link.click();
|
|
590
|
+
document.body.removeChild(link);
|
|
591
|
+
toast.success(t('fileManagement.toasts.downloadStarted'));
|
|
592
|
+
} catch (linkError) {
|
|
593
|
+
// Fallback to authenticated download
|
|
594
|
+
const blob = await oxyServices.getFileContentAsBlob(fileId);
|
|
595
|
+
const url = URL.createObjectURL(blob);
|
|
596
|
+
|
|
597
|
+
const link = document.createElement('a');
|
|
598
|
+
link.href = url;
|
|
599
|
+
link.download = filename;
|
|
600
|
+
document.body.appendChild(link);
|
|
601
|
+
link.click();
|
|
602
|
+
document.body.removeChild(link);
|
|
603
|
+
|
|
604
|
+
// Clean up the blob URL
|
|
605
|
+
URL.revokeObjectURL(url);
|
|
606
|
+
toast.success(t('fileManagement.toasts.downloadSuccess'));
|
|
607
|
+
}
|
|
608
|
+
} else {
|
|
609
|
+
// For mobile, open the URL (user can save from browser)
|
|
610
|
+
// Note: This is a simplified approach - for full mobile support,
|
|
611
|
+
// consider using expo-file-system or react-native-fs
|
|
612
|
+
toast.info(t('fileManagement.toasts.downloadMobile'));
|
|
613
|
+
}
|
|
614
|
+
} catch (error: unknown) {
|
|
615
|
+
toast.error(getErrorMessage(error) || t('fileManagement.toasts.downloadFailed'));
|
|
616
|
+
}
|
|
617
|
+
}, [oxyServices, t]);
|
|
618
|
+
|
|
619
|
+
const handleFileOpen = useCallback(async (file: FileMetadata) => {
|
|
620
|
+
if (selectMode) {
|
|
621
|
+
toggleSelect(file);
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
try {
|
|
625
|
+
setLoadingFileContent(true);
|
|
626
|
+
setOpenedFile(file);
|
|
627
|
+
|
|
628
|
+
// For text files, images, and other viewable content, try to load the content
|
|
629
|
+
if (file.contentType.startsWith('text/') ||
|
|
630
|
+
file.contentType.includes('json') ||
|
|
631
|
+
file.contentType.includes('xml') ||
|
|
632
|
+
file.contentType.includes('javascript') ||
|
|
633
|
+
file.contentType.includes('typescript') ||
|
|
634
|
+
file.contentType.startsWith('image/') ||
|
|
635
|
+
file.contentType.includes('pdf') ||
|
|
636
|
+
file.contentType.startsWith('video/') ||
|
|
637
|
+
file.contentType.startsWith('audio/')) {
|
|
638
|
+
|
|
639
|
+
try {
|
|
640
|
+
if (file.contentType.startsWith('image/') ||
|
|
641
|
+
file.contentType.includes('pdf') ||
|
|
642
|
+
file.contentType.startsWith('video/') ||
|
|
643
|
+
file.contentType.startsWith('audio/')) {
|
|
644
|
+
// For images, PDFs, videos, and audio, we render the URL
|
|
645
|
+
// directly. Resolve the authenticated, private-safe URL —
|
|
646
|
+
// the synchronous public-CDN URL 404s for private assets.
|
|
647
|
+
const downloadUrl = await oxyServices.getFileDownloadUrlAsync(file.id);
|
|
648
|
+
setFileContent(downloadUrl);
|
|
649
|
+
} else {
|
|
650
|
+
// For text files, get the content using authenticated request
|
|
651
|
+
const content = await oxyServices.getFileContentAsText(file.id);
|
|
652
|
+
setFileContent(content);
|
|
653
|
+
}
|
|
654
|
+
} catch (error: unknown) {
|
|
655
|
+
if (getErrorMessage(error)?.includes('404') || getErrorMessage(error)?.includes('not found')) {
|
|
656
|
+
toast.error(t('fileManagement.toasts.fileNotFoundContent'));
|
|
657
|
+
} else {
|
|
658
|
+
toast.error(t('fileManagement.toasts.loadContentFailed'));
|
|
659
|
+
}
|
|
660
|
+
setFileContent(null);
|
|
661
|
+
}
|
|
662
|
+
} else {
|
|
663
|
+
// For non-viewable files, don't load content
|
|
664
|
+
setFileContent(null);
|
|
665
|
+
}
|
|
666
|
+
} catch (error: unknown) {
|
|
667
|
+
toast.error(getErrorMessage(error) || t('fileManagement.toasts.openFailed'));
|
|
668
|
+
} finally {
|
|
669
|
+
setLoadingFileContent(false);
|
|
670
|
+
}
|
|
671
|
+
}, [selectMode, toggleSelect, oxyServices, t]);
|
|
672
|
+
|
|
673
|
+
const handleCloseFile = useCallback(() => {
|
|
674
|
+
setOpenedFile(null);
|
|
675
|
+
setFileContent(null);
|
|
676
|
+
setShowFileDetailsInViewer(false);
|
|
677
|
+
// Don't reset view mode when closing a file
|
|
678
|
+
}, []);
|
|
679
|
+
|
|
680
|
+
const showFileDetailsModal = useCallback((file: FileMetadata) => {
|
|
681
|
+
presentFileDetails({
|
|
682
|
+
file,
|
|
683
|
+
onDownload: handleFileDownload,
|
|
684
|
+
onDelete: confirmFileDelete,
|
|
685
|
+
isOwner: user?.id === targetUserId,
|
|
686
|
+
});
|
|
687
|
+
}, [handleFileDownload, confirmFileDelete, user?.id, targetUserId]);
|
|
688
|
+
|
|
689
|
+
const renderJustifiedPhotoItem = useCallback((photo: FileMetadata, width: number, height: number, isLast: boolean) => {
|
|
690
|
+
const downloadUrl = thumbSourceFor(photo);
|
|
691
|
+
|
|
692
|
+
return (
|
|
693
|
+
<TouchableOpacity
|
|
694
|
+
key={photo.id}
|
|
695
|
+
className="rounded-[6px] overflow-hidden relative"
|
|
696
|
+
style={{
|
|
697
|
+
width,
|
|
698
|
+
height,
|
|
699
|
+
...(selectMode && selectedIds.has(photo.id) ? { borderWidth: 2, borderColor: colors.primary } : {}),
|
|
700
|
+
...(selectMode && multiSelect && selectedIds.size > 0 && !selectedIds.has(photo.id) ? { opacity: 0.4 } : {}),
|
|
701
|
+
}}
|
|
702
|
+
onPress={() => handleFileOpen(photo)}
|
|
703
|
+
activeOpacity={0.8}
|
|
704
|
+
>
|
|
705
|
+
<View className="w-full h-full relative rounded-[6px] overflow-hidden">
|
|
706
|
+
<ExpoImage
|
|
707
|
+
source={{ uri: downloadUrl }}
|
|
708
|
+
style={screenStyles.justifiedPhotoImage}
|
|
709
|
+
contentFit="cover"
|
|
710
|
+
transition={120}
|
|
711
|
+
cachePolicy="memory-disk"
|
|
712
|
+
onError={() => {
|
|
713
|
+
// Photo failed to load, will show placeholder
|
|
714
|
+
}}
|
|
715
|
+
accessibilityLabel={photo.filename}
|
|
716
|
+
/>
|
|
717
|
+
{selectMode && (
|
|
718
|
+
<View className="absolute top-[4px] right-[4px] rounded-[12px] p-[2px]" style={{ backgroundColor: 'rgba(0,0,0,0.4)' }}>
|
|
719
|
+
<Ionicons name={selectedIds.has(photo.id) ? 'checkmark-circle' : 'ellipse-outline'} size={20} color={selectedIds.has(photo.id) ? colors.primary : colors.text} />
|
|
720
|
+
</View>
|
|
721
|
+
)}
|
|
722
|
+
</View>
|
|
723
|
+
</TouchableOpacity>
|
|
724
|
+
);
|
|
725
|
+
}, [thumbSourceFor, selectMode, selectedIds, multiSelect, colors.primary, colors.text, handleFileOpen]);
|
|
726
|
+
|
|
727
|
+
// SettingsListItem-based file items (for 'all' view)
|
|
728
|
+
const groupedFileItems: FileListItem[] = useMemo(() => {
|
|
729
|
+
// filteredFiles is already sorted, so just use it directly
|
|
730
|
+
const sortedFiles = filteredFiles;
|
|
731
|
+
|
|
732
|
+
return sortedFiles.map((file) => {
|
|
733
|
+
const isImage = file.contentType.startsWith('image/');
|
|
734
|
+
const isPDF = file.contentType.includes('pdf');
|
|
735
|
+
const isVideo = file.contentType.startsWith('video/');
|
|
736
|
+
const hasPreview = isImage || isPDF || isVideo;
|
|
737
|
+
const isSelected = selectedIds.has(file.id);
|
|
738
|
+
|
|
739
|
+
// Create icon for preview thumbnails (36x36)
|
|
740
|
+
let fileIcon: React.ReactNode | undefined;
|
|
741
|
+
if (hasPreview) {
|
|
742
|
+
if (isImage) {
|
|
743
|
+
fileIcon = (
|
|
744
|
+
<View style={{ width: 36, height: 36, borderRadius: 18, overflow: 'hidden' }}>
|
|
745
|
+
<ExpoImage
|
|
746
|
+
source={{ uri: thumbSourceFor(file) }}
|
|
747
|
+
style={{ width: 36, height: 36 }}
|
|
748
|
+
contentFit="cover"
|
|
749
|
+
transition={120}
|
|
750
|
+
cachePolicy="memory-disk"
|
|
751
|
+
onError={() => {
|
|
752
|
+
// Image preview failed to load - will fallback to icon
|
|
753
|
+
}}
|
|
754
|
+
accessibilityLabel={file.filename}
|
|
755
|
+
/>
|
|
756
|
+
</View>
|
|
757
|
+
);
|
|
758
|
+
} else if (isVideo) {
|
|
759
|
+
fileIcon = (
|
|
760
|
+
<View style={{ width: 36, height: 36, borderRadius: 18, overflow: 'hidden', backgroundColor: '#000000', position: 'relative' }}>
|
|
761
|
+
<ExpoImage
|
|
762
|
+
source={{ uri: thumbSourceFor(file) }}
|
|
763
|
+
style={{ width: 36, height: 36 }}
|
|
764
|
+
contentFit="cover"
|
|
765
|
+
transition={120}
|
|
766
|
+
cachePolicy="memory-disk"
|
|
767
|
+
onError={(_: unknown) => {
|
|
768
|
+
// If thumbnail not available, we still show icon overlay
|
|
769
|
+
}}
|
|
770
|
+
accessibilityLabel={`${file.filename} video thumbnail`}
|
|
771
|
+
/>
|
|
772
|
+
<View style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, alignItems: 'center', justifyContent: 'center', backgroundColor: 'rgba(0,0,0,0.25)' }}>
|
|
773
|
+
<Ionicons name="play" size={16} color="#FFFFFF" />
|
|
774
|
+
</View>
|
|
775
|
+
</View>
|
|
776
|
+
);
|
|
777
|
+
} else if (isPDF) {
|
|
778
|
+
fileIcon = (
|
|
779
|
+
<View style={{ width: 36, height: 36, borderRadius: 18, alignItems: 'center', justifyContent: 'center', backgroundColor: '#FF6B6B20' }}>
|
|
780
|
+
<Ionicons name="document" size={20} color={colors.primary} />
|
|
781
|
+
</View>
|
|
782
|
+
);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return {
|
|
787
|
+
id: file.id,
|
|
788
|
+
icon: fileIcon ?? (!hasPreview ? <Ionicons name={getFileIcon(file.contentType)} size={20} color={colors.primary} /> : undefined),
|
|
789
|
+
title: file.filename,
|
|
790
|
+
description: `${formatFileSize(file.length)} • ${new Date(file.uploadDate).toLocaleDateString()}`,
|
|
791
|
+
onPress: () => {
|
|
792
|
+
// Support selection in regular mode with long press or if already selecting
|
|
793
|
+
if (!selectMode && selectedIds.size > 0) {
|
|
794
|
+
// If already in selection mode (some files selected), toggle selection
|
|
795
|
+
toggleSelect(file);
|
|
796
|
+
} else {
|
|
797
|
+
handleFileOpen(file);
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
// Hide action buttons when selecting (in selectMode or bulk operations mode)
|
|
801
|
+
rightElement: (!selectMode && selectedIds.size === 0) ? (
|
|
802
|
+
<View className="flex-row items-center gap-[6px] ml-[12px]">
|
|
803
|
+
{(isImage || isVideo || file.contentType.includes('pdf')) && (
|
|
804
|
+
<TouchableOpacity
|
|
805
|
+
className="w-[34px] h-[34px] rounded-[8px] items-center justify-center"
|
|
806
|
+
style={{ backgroundColor: colors.backgroundSecondary }}
|
|
807
|
+
onPress={() => handleFileOpen(file)}
|
|
808
|
+
>
|
|
809
|
+
<Ionicons name="eye" size={18} color={colors.primary} />
|
|
810
|
+
</TouchableOpacity>
|
|
811
|
+
)}
|
|
812
|
+
<TouchableOpacity
|
|
813
|
+
className="w-[34px] h-[34px] rounded-[8px] items-center justify-center"
|
|
814
|
+
style={{ backgroundColor: colors.backgroundSecondary }}
|
|
815
|
+
onPress={() => handleFileDownload(file.id, file.filename)}
|
|
816
|
+
>
|
|
817
|
+
<Ionicons name="download" size={18} color={colors.primary} />
|
|
818
|
+
</TouchableOpacity>
|
|
819
|
+
<TouchableOpacity
|
|
820
|
+
className="w-[34px] h-[34px] rounded-[8px] items-center justify-center"
|
|
821
|
+
style={{ backgroundColor: colors.negativeSubtle }}
|
|
822
|
+
onPress={() => confirmFileDelete(file.id, file.filename)}
|
|
823
|
+
disabled={deletingId === file.id}
|
|
824
|
+
>
|
|
825
|
+
{deletingId === file.id ? (
|
|
826
|
+
<ActivityIndicator size="small" color={colors.error} />
|
|
827
|
+
) : (
|
|
828
|
+
<Ionicons name="trash" size={18} color={colors.error} />
|
|
829
|
+
)}
|
|
830
|
+
</TouchableOpacity>
|
|
831
|
+
</View>
|
|
832
|
+
) : undefined,
|
|
833
|
+
};
|
|
834
|
+
});
|
|
835
|
+
}, [filteredFiles, colors, deletingId, toggleSelect, handleFileDownload, confirmFileDelete, handleFileOpen, thumbSourceFor, selectMode, selectedIds]);
|
|
836
|
+
|
|
837
|
+
// Browse-themed terminal load-failure state — DISTINCT from the empty state.
|
|
838
|
+
const renderLoadError = () => (
|
|
839
|
+
<FileLibraryError
|
|
840
|
+
title={t('fileManagement.loadError.title')}
|
|
841
|
+
description={t('fileManagement.loadError.description')}
|
|
842
|
+
retryLabel={t('fileManagement.retry')}
|
|
843
|
+
onRetry={() => filesQuery.refetch()}
|
|
844
|
+
iconColor={colors.error}
|
|
845
|
+
titleColor={colors.text}
|
|
846
|
+
descriptionColor={colors.textSecondary}
|
|
847
|
+
buttonColor={colors.primary}
|
|
848
|
+
/>
|
|
849
|
+
);
|
|
850
|
+
|
|
851
|
+
// Browse "photos" view. The justified grid owns its own dimension
|
|
852
|
+
// measurement + reflow (see JustifiedPhotoGrid); this only supplies the
|
|
853
|
+
// photo set, the private-safe URL resolver, and the tile renderer.
|
|
854
|
+
const renderPhotoGrid = () => {
|
|
855
|
+
const photos = filteredFiles.filter(file => file.contentType.startsWith('image/'));
|
|
856
|
+
|
|
857
|
+
if (photos.length === 0) {
|
|
858
|
+
if (hasLoadError) return renderLoadError();
|
|
859
|
+
return (
|
|
860
|
+
<View className="items-center py-[40px] px-[24px]">
|
|
861
|
+
<Ionicons name="images-outline" size={64} color={colors.textTertiary} />
|
|
862
|
+
<Text className="text-[24px] font-bold mt-[16px] mb-[8px]" style={{ color: colors.text }}>{t('fileManagement.emptyPhotos.title')}</Text>
|
|
863
|
+
<Text className="text-[16px] text-center leading-[24px] mb-[32px]" style={{ color: colors.textSecondary }}> {
|
|
864
|
+
user?.id === targetUserId
|
|
865
|
+
? t('fileManagement.emptyPhotos.ownDescription')
|
|
866
|
+
: t('fileManagement.emptyPhotos.otherDescription')
|
|
867
|
+
} </Text>
|
|
868
|
+
{user?.id === targetUserId && (
|
|
869
|
+
<TouchableOpacity
|
|
870
|
+
className="flex-row items-center px-[24px] py-[12px] rounded-[24px] gap-[8px]"
|
|
871
|
+
style={{ backgroundColor: colors.primary }}
|
|
872
|
+
onPress={handleFileUpload}
|
|
873
|
+
disabled={uploading || isPickingDocument}
|
|
874
|
+
>
|
|
875
|
+
{(uploading || isPickingDocument) ? (
|
|
876
|
+
<ActivityIndicator size="small" color="#FFFFFF" />
|
|
877
|
+
) : (
|
|
878
|
+
<>
|
|
879
|
+
<Ionicons name="cloud-upload" size={20} color="#FFFFFF" />
|
|
880
|
+
<Text className="text-white text-[16px] font-semibold">{t('fileManagement.uploadPhotos')}</Text>
|
|
881
|
+
</>
|
|
882
|
+
)}
|
|
883
|
+
</TouchableOpacity>
|
|
884
|
+
)}
|
|
885
|
+
</View>
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
return (
|
|
890
|
+
<ScrollView
|
|
891
|
+
ref={photoScrollViewRef}
|
|
892
|
+
className="flex-1"
|
|
893
|
+
contentContainerClassName="p-[10px]"
|
|
894
|
+
refreshControl={
|
|
895
|
+
<RefreshControl
|
|
896
|
+
refreshing={isRefreshingFiles}
|
|
897
|
+
onRefresh={() => filesQuery.refetch()}
|
|
898
|
+
tintColor={colors.primary}
|
|
899
|
+
/>
|
|
900
|
+
}
|
|
901
|
+
showsVerticalScrollIndicator={false}
|
|
902
|
+
onScroll={({ nativeEvent }) => {
|
|
903
|
+
const { layoutMeasurement, contentOffset, contentSize } = nativeEvent;
|
|
904
|
+
const distanceFromBottom = contentSize.height - (contentOffset.y + layoutMeasurement.height);
|
|
905
|
+
if (distanceFromBottom < 200 && !isFetchingMore && hasMoreFiles) {
|
|
906
|
+
filesQuery.fetchNextPage();
|
|
907
|
+
}
|
|
908
|
+
}}
|
|
909
|
+
scrollEventThrottle={250}
|
|
910
|
+
>
|
|
911
|
+
<JustifiedPhotoGrid
|
|
912
|
+
photos={photos}
|
|
913
|
+
getThumbUrl={thumbSourceFor}
|
|
914
|
+
renderJustifiedPhotoItem={renderJustifiedPhotoItem}
|
|
915
|
+
textColor={colors.text}
|
|
916
|
+
containerWidth={
|
|
917
|
+
typeof containerWidth === 'number' && containerWidth > 0
|
|
918
|
+
? containerWidth
|
|
919
|
+
: undefined
|
|
920
|
+
}
|
|
921
|
+
/>
|
|
922
|
+
</ScrollView>
|
|
923
|
+
);
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
const renderEmptyState = () => hasLoadError ? renderLoadError() : (
|
|
927
|
+
<View className="items-center py-[40px] px-[24px]">
|
|
928
|
+
<Ionicons name="folder-open-outline" size={64} color={colors.textTertiary} />
|
|
929
|
+
<Text className="text-[24px] font-bold mt-[16px] mb-[8px]" style={{ color: colors.text }}>{t('fileManagement.emptyFiles.title')}</Text>
|
|
930
|
+
<Text className="text-[16px] text-center leading-[24px] mb-[32px]" style={{ color: colors.textSecondary }}>
|
|
931
|
+
{user?.id === targetUserId
|
|
932
|
+
? t('fileManagement.emptyFiles.ownDescription')
|
|
933
|
+
: t('fileManagement.emptyFiles.otherDescription')
|
|
934
|
+
}
|
|
935
|
+
</Text>
|
|
936
|
+
{user?.id === targetUserId && (
|
|
937
|
+
<TouchableOpacity
|
|
938
|
+
className="flex-row items-center px-[24px] py-[12px] rounded-[24px] gap-[8px]"
|
|
939
|
+
style={{ backgroundColor: colors.primary }}
|
|
940
|
+
onPress={handleFileUpload}
|
|
941
|
+
disabled={uploading || isPickingDocument}
|
|
942
|
+
>
|
|
943
|
+
{(uploading || isPickingDocument) ? (
|
|
944
|
+
<ActivityIndicator size="small" color="#FFFFFF" />
|
|
945
|
+
) : (
|
|
946
|
+
<>
|
|
947
|
+
<Ionicons name="cloud-upload" size={20} color="#FFFFFF" />
|
|
948
|
+
<Text className="text-white text-[16px] font-semibold">{t('fileManagement.uploadFiles')}</Text>
|
|
949
|
+
</>
|
|
950
|
+
)}
|
|
951
|
+
</TouchableOpacity>
|
|
952
|
+
)}
|
|
953
|
+
</View>
|
|
954
|
+
);
|
|
955
|
+
|
|
956
|
+
// Loading state — Bloom's shared `Skeleton` primitives own the shimmer, so
|
|
957
|
+
// this is pure layout: the top chrome (header / controls / search) plus a
|
|
958
|
+
// photo grid of shimmering tiles sized with the same 3-per-row geometry the
|
|
959
|
+
// real photo grid uses. No hand-rolled `Animated` shimmer.
|
|
960
|
+
//
|
|
961
|
+
// The image-only picker owns its OWN loading skeleton (rendered by
|
|
962
|
+
// `PhotoPickerView` when its photo list is still loading), so it inherits the
|
|
963
|
+
// picker's placement-aware container width / columns / tile size and the
|
|
964
|
+
// Dialog-vs-bottom-sheet sizing. Skipping the browse chrome here is what keeps
|
|
965
|
+
// the picker from flashing the wrong (file-manager) skeleton inside the Dialog.
|
|
966
|
+
// The Dialog owns the nav header; this screen contributes its state-dependent
|
|
967
|
+
// title/subtitle + action slots. The image-only picker mode is headerless
|
|
968
|
+
// (PhotoPickerView owns its own bar), so this config is simply ignored there.
|
|
969
|
+
const fmHeaderRight = useMemo<React.ReactNode>(() => {
|
|
970
|
+
const actions = selectMode && multiSelect
|
|
971
|
+
? [
|
|
972
|
+
{ key: 'clear', label: t('fileManagement.clear'), onPress: () => setSelectedIds(new Set()), disabled: selectedIds.size === 0 },
|
|
973
|
+
{ key: 'confirm', label: t('fileManagement.confirm'), onPress: confirmMultiSelection, disabled: selectedIds.size === 0 },
|
|
974
|
+
]
|
|
975
|
+
: !selectMode && selectedIds.size > 0
|
|
976
|
+
? [
|
|
977
|
+
{ key: 'clear', label: t('fileManagement.clear'), onPress: () => setSelectedIds(new Set()), disabled: false },
|
|
978
|
+
{ key: 'delete', label: t('fileManagement.delete', { count: selectedIds.size }), onPress: confirmBulkDelete, disabled: false },
|
|
979
|
+
{ key: 'visibility', label: t('fileManagement.visibility'), onPress: handleVisibilityChange, disabled: false },
|
|
980
|
+
]
|
|
981
|
+
: [];
|
|
982
|
+
if (actions.length === 0) return undefined;
|
|
983
|
+
return (
|
|
984
|
+
<View style={fmHeaderStyles.actionsRow}>
|
|
985
|
+
{actions.map((a) => (
|
|
986
|
+
<SurfaceHeaderAction key={a.key} label={a.label} onPress={a.onPress} disabled={a.disabled} />
|
|
987
|
+
))}
|
|
988
|
+
</View>
|
|
989
|
+
);
|
|
990
|
+
}, [selectMode, multiSelect, selectedIds, t, confirmMultiSelection, confirmBulkDelete, handleVisibilityChange]);
|
|
991
|
+
|
|
992
|
+
const fmHeaderBack = useMemo<React.ReactNode>(() => (
|
|
993
|
+
<Pressable
|
|
994
|
+
onPress={handleCancelUpload}
|
|
995
|
+
accessibilityRole="button"
|
|
996
|
+
accessibilityLabel={t('common.back') || 'Back'}
|
|
997
|
+
hitSlop={8}
|
|
998
|
+
style={fmHeaderStyles.backButton}
|
|
999
|
+
>
|
|
1000
|
+
<Ionicons name="chevron-back" size={20} color={colors.text} />
|
|
1001
|
+
</Pressable>
|
|
1002
|
+
), [handleCancelUpload, colors.text, t]);
|
|
1003
|
+
|
|
1004
|
+
// --- Image-only picker: shared-header chrome -----------------------------
|
|
1005
|
+
// The flagship photo picker now rides the SAME Dialog nav header as every
|
|
1006
|
+
// screen (Cancel / "Choose Photo" / Upload) instead of painting its own bar.
|
|
1007
|
+
// Ownership + upload permission gate the Upload action, mirroring the picker's
|
|
1008
|
+
// empty-state upload button.
|
|
1009
|
+
const isOwner = user?.id === targetUserId;
|
|
1010
|
+
const allowUpload = isOwner && allowUploadInSelectMode;
|
|
1011
|
+
|
|
1012
|
+
// Cancel = the nav bar's back affordance. A forward-nav picker (`onPicked`,
|
|
1013
|
+
// e.g. the avatar flow) pops its own frame; legacy callback callers keep their
|
|
1014
|
+
// close/back behaviour; a promise-based picker dismisses its surface.
|
|
1015
|
+
const pickerCancel = useCallback(() => {
|
|
1016
|
+
if (onPicked) {
|
|
1017
|
+
// Forward-nav picker: Cancel/back pops THIS frame, returning to the
|
|
1018
|
+
// frame that opened the picker — never closes the whole session.
|
|
1019
|
+
goBack?.();
|
|
1020
|
+
} else if (onSelect || onConfirmSelection) {
|
|
1021
|
+
if (onClose) onClose();
|
|
1022
|
+
else goBack?.();
|
|
1023
|
+
} else {
|
|
1024
|
+
dismiss?.();
|
|
1025
|
+
}
|
|
1026
|
+
}, [onPicked, onSelect, onConfirmSelection, onClose, goBack, dismiss]);
|
|
1027
|
+
|
|
1028
|
+
// The picker's ONE trailing CTA, declared through the Dialog header's
|
|
1029
|
+
// `primaryAction` (a proper Bloom Button with loading/disabled) — the
|
|
1030
|
+
// multi-select confirm ("Done (N)") or, single-select, the Upload action whose
|
|
1031
|
+
// loading state reflects an in-flight device upload. Memoized so the header
|
|
1032
|
+
// does not thrash.
|
|
1033
|
+
const pickerPrimaryAction = useMemo<SurfaceHeaderContent['primaryAction']>(() => {
|
|
1034
|
+
if (multiSelect) {
|
|
1035
|
+
return {
|
|
1036
|
+
label: t('fileManagement.doneWithCount', { count: selectedIds.size }),
|
|
1037
|
+
onPress: confirmMultiSelection,
|
|
1038
|
+
disabled: selectedIds.size === 0,
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
if (isOwner && allowUpload) {
|
|
1042
|
+
return {
|
|
1043
|
+
label: t('fileManagement.upload'),
|
|
1044
|
+
onPress: handleFileUpload,
|
|
1045
|
+
loading: uploading || isPickingDocument,
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
return undefined;
|
|
1049
|
+
}, [
|
|
1050
|
+
multiSelect, selectedIds.size, confirmMultiSelection, isOwner, allowUpload,
|
|
1051
|
+
t, handleFileUpload, uploading, isPickingDocument,
|
|
1052
|
+
]);
|
|
1053
|
+
|
|
1054
|
+
useSurfaceHeader(
|
|
1055
|
+
showUploadPreview
|
|
1056
|
+
? {
|
|
1057
|
+
title: t('fileManagement.reviewFiles'),
|
|
1058
|
+
subtitle: t('fileManagement.readyToUpload', { count: pendingFiles.length }),
|
|
1059
|
+
left: fmHeaderBack,
|
|
1060
|
+
largeTitle: false,
|
|
1061
|
+
}
|
|
1062
|
+
: isImageOnlyPicker
|
|
1063
|
+
? {
|
|
1064
|
+
// ONE shared header — Cancel (back) / "Choose Photo" / Upload — in
|
|
1065
|
+
// `onImage` tone so the chrome stays legible over the black grid.
|
|
1066
|
+
title: t('fileManagement.choosePhoto'),
|
|
1067
|
+
largeTitle: false,
|
|
1068
|
+
onBack: pickerCancel,
|
|
1069
|
+
primaryAction: pickerPrimaryAction,
|
|
1070
|
+
tone: 'onImage',
|
|
1071
|
+
}
|
|
1072
|
+
: {
|
|
1073
|
+
title: selectMode
|
|
1074
|
+
? (multiSelect ? (maxSelection ? t('fileManagement.selectedWithMax', { count: selectedIds.size, max: maxSelection }) : t('fileManagement.selected', { count: selectedIds.size })) : t('fileManagement.selectFile'))
|
|
1075
|
+
: (viewMode === 'photos' ? t('fileManagement.photos') : t('fileManagement.title')),
|
|
1076
|
+
subtitle: selectMode
|
|
1077
|
+
? (multiSelect ? t('fileManagement.available', { count: filteredFiles.length }) : t('fileManagement.tapToSelect'))
|
|
1078
|
+
: (filteredFiles.length === 1 ? t('fileManagement.itemCount', { count: filteredFiles.length }) : t('fileManagement.itemCount_plural', { count: filteredFiles.length })),
|
|
1079
|
+
right: fmHeaderRight,
|
|
1080
|
+
largeTitle: false,
|
|
1081
|
+
},
|
|
1082
|
+
);
|
|
1083
|
+
|
|
1084
|
+
if (isLoadingFiles && !isImageOnlyPicker) {
|
|
1085
|
+
const GRID_PADDING = 10;
|
|
1086
|
+
const TILE_GAP = 4;
|
|
1087
|
+
const GRID_COLUMNS = 3;
|
|
1088
|
+
const GRID_ROWS = 6;
|
|
1089
|
+
const tileSize = Math.floor(
|
|
1090
|
+
(safeContainerWidth - GRID_PADDING * 2 - TILE_GAP * (GRID_COLUMNS - 1)) / GRID_COLUMNS,
|
|
1091
|
+
);
|
|
1092
|
+
|
|
1093
|
+
return (
|
|
1094
|
+
<View className="flex-1" style={{ backgroundColor }}>
|
|
1095
|
+
{/* Header */}
|
|
1096
|
+
<View
|
|
1097
|
+
className="flex-row items-center justify-between px-[16px] py-[12px]"
|
|
1098
|
+
style={{ borderBottomColor: colors.border, borderBottomWidth: StyleSheet.hairlineWidth }}
|
|
1099
|
+
>
|
|
1100
|
+
<Skeleton.Box width={44} height={44} borderRadius={12} />
|
|
1101
|
+
<Skeleton.Col style={{ alignItems: 'center', marginHorizontal: 16, gap: 6 }}>
|
|
1102
|
+
<Skeleton.Box width={140} height={20} />
|
|
1103
|
+
<Skeleton.Box width={100} height={14} />
|
|
1104
|
+
</Skeleton.Col>
|
|
1105
|
+
<Skeleton.Box width={44} height={44} borderRadius={12} />
|
|
1106
|
+
</View>
|
|
1107
|
+
|
|
1108
|
+
{/* Controls bar */}
|
|
1109
|
+
<Skeleton.Row style={{ alignItems: 'center', justifyContent: 'space-between', paddingHorizontal: 12, paddingVertical: 12 }}>
|
|
1110
|
+
<Skeleton.Box width={100} height={36} borderRadius={18} />
|
|
1111
|
+
<Skeleton.Box width={44} height={44} borderRadius={22} />
|
|
1112
|
+
</Skeleton.Row>
|
|
1113
|
+
|
|
1114
|
+
{/* Search bar */}
|
|
1115
|
+
<View className="mx-[12px] mb-[12px]">
|
|
1116
|
+
<Skeleton.Box width="100%" height={44} borderRadius={22} />
|
|
1117
|
+
</View>
|
|
1118
|
+
|
|
1119
|
+
{/* Photo grid — static skeleton placeholders; index keys are stable */}
|
|
1120
|
+
<View style={{ padding: GRID_PADDING, gap: TILE_GAP }}>
|
|
1121
|
+
{Array.from({ length: GRID_ROWS }, (_, row) => (
|
|
1122
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: fixed-size skeleton grid, order never changes
|
|
1123
|
+
<Skeleton.Row key={`skeleton-row-${row}`} style={{ gap: TILE_GAP }}>
|
|
1124
|
+
{Array.from({ length: GRID_COLUMNS }, (_, col) => (
|
|
1125
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: fixed-size skeleton grid, order never changes
|
|
1126
|
+
<Skeleton.Box key={`skeleton-${row}-${col}`} width={tileSize} height={tileSize} borderRadius={6} />
|
|
1127
|
+
))}
|
|
1128
|
+
</Skeleton.Row>
|
|
1129
|
+
))}
|
|
1130
|
+
</View>
|
|
1131
|
+
</View>
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
// Dedicated flagship-style photo picker view used in the avatar-picker
|
|
1136
|
+
// context (selectMode + image-only filter). The picker is intentionally
|
|
1137
|
+
// minimal: black backdrop, edge-to-edge grid, translucent header. The
|
|
1138
|
+
// standalone file manager (non-picker browse) keeps the existing UI.
|
|
1139
|
+
if (isImageOnlyPicker && !showUploadPreview) {
|
|
1140
|
+
const photosOnly = filteredFiles.filter(
|
|
1141
|
+
(file) => file.contentType.startsWith('image/'),
|
|
1142
|
+
);
|
|
1143
|
+
|
|
1144
|
+
// Chrome (Cancel / "Choose Photo" / Upload) lives on the shared Dialog nav
|
|
1145
|
+
// header (see the `useSurfaceHeader` call above); the picker owns only the
|
|
1146
|
+
// full-bleed photo grid as content.
|
|
1147
|
+
return (
|
|
1148
|
+
<PhotoPickerView
|
|
1149
|
+
photos={photosOnly}
|
|
1150
|
+
selectedIds={selectedIds}
|
|
1151
|
+
multiSelect={multiSelect}
|
|
1152
|
+
maxSelection={maxSelection}
|
|
1153
|
+
allowUpload={allowUpload}
|
|
1154
|
+
refreshing={isRefreshingFiles}
|
|
1155
|
+
uploading={uploading}
|
|
1156
|
+
isPickingDocument={isPickingDocument}
|
|
1157
|
+
hasMore={hasMoreFiles}
|
|
1158
|
+
loadingMore={isFetchingMore}
|
|
1159
|
+
loading={isLoadingFiles}
|
|
1160
|
+
loadError={hasLoadError}
|
|
1161
|
+
onRetry={() => filesQuery.refetch()}
|
|
1162
|
+
reduceMotion={reduceMotion}
|
|
1163
|
+
getThumbUrl={thumbSourceFor}
|
|
1164
|
+
primaryColor={colors.primary}
|
|
1165
|
+
isOwner={isOwner}
|
|
1166
|
+
onTogglePhoto={toggleSelect}
|
|
1167
|
+
// Long-press preview surfaces the file-detail panel on the stack.
|
|
1168
|
+
onPreviewPhoto={(file) => showFileDetailsModal(file)}
|
|
1169
|
+
onUpload={handleFileUpload}
|
|
1170
|
+
onRefresh={() => filesQuery.refetch()}
|
|
1171
|
+
onLoadMore={() => filesQuery.fetchNextPage()}
|
|
1172
|
+
t={t}
|
|
1173
|
+
/>
|
|
1174
|
+
);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
// If a file is opened, show the file viewer
|
|
1178
|
+
if (!selectMode && openedFile) {
|
|
1179
|
+
return (
|
|
1180
|
+
<FileViewer
|
|
1181
|
+
file={openedFile}
|
|
1182
|
+
fileContent={fileContent}
|
|
1183
|
+
loadingFileContent={loadingFileContent}
|
|
1184
|
+
showFileDetailsInViewer={showFileDetailsInViewer}
|
|
1185
|
+
onToggleDetails={() => setShowFileDetailsInViewer(!showFileDetailsInViewer)}
|
|
1186
|
+
onClose={handleCloseFile}
|
|
1187
|
+
onDownload={handleFileDownload}
|
|
1188
|
+
onDelete={confirmFileDelete}
|
|
1189
|
+
isOwner={user?.id === targetUserId}
|
|
1190
|
+
/>
|
|
1191
|
+
);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
// If upload preview is showing, render it inline instead of the file list
|
|
1195
|
+
if (showUploadPreview) {
|
|
1196
|
+
return (
|
|
1197
|
+
<View className="flex-1">
|
|
1198
|
+
<UploadPreview
|
|
1199
|
+
pendingFiles={pendingFiles}
|
|
1200
|
+
onConfirm={handleConfirmUpload}
|
|
1201
|
+
onCancel={handleCancelUpload}
|
|
1202
|
+
onRemoveFile={removePendingFile}
|
|
1203
|
+
inline={true}
|
|
1204
|
+
/>
|
|
1205
|
+
</View>
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
return (
|
|
1210
|
+
<View className="flex-1">
|
|
1211
|
+
<View className="flex-row items-center justify-between px-[12px] py-[12px] gap-[12px]">
|
|
1212
|
+
<ScrollView
|
|
1213
|
+
horizontal
|
|
1214
|
+
showsHorizontalScrollIndicator={false}
|
|
1215
|
+
className="flex-1"
|
|
1216
|
+
style={{ maxWidth: '80%' }}
|
|
1217
|
+
>
|
|
1218
|
+
<View
|
|
1219
|
+
className="flex-row rounded-full p-[2px] overflow-hidden"
|
|
1220
|
+
style={{ backgroundColor: colors.card }}
|
|
1221
|
+
>
|
|
1222
|
+
<AnimatedButton
|
|
1223
|
+
isSelected={viewMode === 'all'}
|
|
1224
|
+
onPress={() => setViewMode('all')}
|
|
1225
|
+
icon={viewMode === 'all' ? 'folder' : 'folder-outline'}
|
|
1226
|
+
primaryColor={colors.primary}
|
|
1227
|
+
textColor={colors.text}
|
|
1228
|
+
style={screenStyles.viewModeButton}
|
|
1229
|
+
accessibilityLabel={t('fileManagement.a11y.viewAll') || 'Show all files'}
|
|
1230
|
+
/>
|
|
1231
|
+
<AnimatedButton
|
|
1232
|
+
isSelected={viewMode === 'photos'}
|
|
1233
|
+
onPress={() => setViewMode('photos')}
|
|
1234
|
+
icon={viewMode === 'photos' ? 'image-multiple' : 'image-multiple-outline'}
|
|
1235
|
+
primaryColor={colors.primary}
|
|
1236
|
+
textColor={colors.text}
|
|
1237
|
+
style={screenStyles.viewModeButton}
|
|
1238
|
+
accessibilityLabel={t('fileManagement.a11y.viewPhotos') || 'Show photos only'}
|
|
1239
|
+
/>
|
|
1240
|
+
<AnimatedButton
|
|
1241
|
+
isSelected={viewMode === 'videos'}
|
|
1242
|
+
onPress={() => setViewMode('videos')}
|
|
1243
|
+
icon={viewMode === 'videos' ? 'video' : 'video-outline'}
|
|
1244
|
+
primaryColor={colors.primary}
|
|
1245
|
+
textColor={colors.text}
|
|
1246
|
+
style={screenStyles.viewModeButton}
|
|
1247
|
+
accessibilityLabel={t('fileManagement.a11y.viewVideos') || 'Show videos only'}
|
|
1248
|
+
/>
|
|
1249
|
+
<AnimatedButton
|
|
1250
|
+
isSelected={viewMode === 'documents'}
|
|
1251
|
+
onPress={() => setViewMode('documents')}
|
|
1252
|
+
icon={viewMode === 'documents' ? 'file-document' : 'file-document-outline'}
|
|
1253
|
+
primaryColor={colors.primary}
|
|
1254
|
+
textColor={colors.text}
|
|
1255
|
+
style={screenStyles.viewModeButton}
|
|
1256
|
+
accessibilityLabel={t('fileManagement.a11y.viewDocuments') || 'Show documents only'}
|
|
1257
|
+
/>
|
|
1258
|
+
<AnimatedButton
|
|
1259
|
+
isSelected={viewMode === 'audio'}
|
|
1260
|
+
onPress={() => setViewMode('audio')}
|
|
1261
|
+
icon={viewMode === 'audio' ? 'music-note' : 'music-note-outline'}
|
|
1262
|
+
primaryColor={colors.primary}
|
|
1263
|
+
textColor={colors.text}
|
|
1264
|
+
style={screenStyles.viewModeButton}
|
|
1265
|
+
accessibilityLabel={t('fileManagement.a11y.viewAudio') || 'Show audio only'}
|
|
1266
|
+
/>
|
|
1267
|
+
</View>
|
|
1268
|
+
</ScrollView>
|
|
1269
|
+
<TouchableOpacity
|
|
1270
|
+
className="flex-row items-center justify-center px-[10px] py-[6px] rounded-full min-w-[36px] gap-[4px]"
|
|
1271
|
+
style={{ backgroundColor: colors.card }}
|
|
1272
|
+
accessibilityRole="button"
|
|
1273
|
+
accessibilityLabel={t('fileManagement.a11y.sortBy', {
|
|
1274
|
+
field: sortBy,
|
|
1275
|
+
order: sortOrder === 'asc' ? 'ascending' : 'descending',
|
|
1276
|
+
}) || `Sort by ${sortBy}, ${sortOrder === 'asc' ? 'ascending' : 'descending'}`}
|
|
1277
|
+
onPress={() => {
|
|
1278
|
+
// Cycle through sort options: date -> size -> name -> type -> date
|
|
1279
|
+
const sortOrder: Array<'date' | 'size' | 'name' | 'type'> = ['date', 'size', 'name', 'type'];
|
|
1280
|
+
const currentIndex = sortOrder.indexOf(sortBy);
|
|
1281
|
+
const nextIndex = (currentIndex + 1) % sortOrder.length;
|
|
1282
|
+
setSortBy(sortOrder[nextIndex]);
|
|
1283
|
+
// Toggle order when cycling back to date
|
|
1284
|
+
if (nextIndex === 0) {
|
|
1285
|
+
setSortOrder(prev => prev === 'asc' ? 'desc' : 'asc');
|
|
1286
|
+
}
|
|
1287
|
+
}}
|
|
1288
|
+
>
|
|
1289
|
+
<MaterialCommunityIcons
|
|
1290
|
+
name={
|
|
1291
|
+
sortBy === 'date' ? 'calendar' :
|
|
1292
|
+
sortBy === 'size' ? 'sort-numeric-variant' :
|
|
1293
|
+
sortBy === 'name' ? 'sort-alphabetical-variant' : 'file-document-outline'
|
|
1294
|
+
}
|
|
1295
|
+
size={16}
|
|
1296
|
+
color={colors.text}
|
|
1297
|
+
/>
|
|
1298
|
+
<MaterialCommunityIcons
|
|
1299
|
+
name={sortOrder === 'asc' ? 'arrow-up' : 'arrow-down'}
|
|
1300
|
+
size={14}
|
|
1301
|
+
color={colors.textSecondary}
|
|
1302
|
+
/>
|
|
1303
|
+
</TouchableOpacity>
|
|
1304
|
+
{user?.id === targetUserId && (!selectMode || allowUploadInSelectMode) && (
|
|
1305
|
+
<TouchableOpacity
|
|
1306
|
+
className="h-[44px] w-[44px] rounded-[22px] items-center justify-center"
|
|
1307
|
+
style={{ backgroundColor: colors.primary }}
|
|
1308
|
+
onPress={handleFileUpload}
|
|
1309
|
+
disabled={uploading || isPickingDocument}
|
|
1310
|
+
accessibilityRole="button"
|
|
1311
|
+
accessibilityLabel={t('fileManagement.a11y.uploadFile') || 'Upload file'}
|
|
1312
|
+
accessibilityState={{ busy: uploading || isPickingDocument }}
|
|
1313
|
+
>
|
|
1314
|
+
{uploading ? (
|
|
1315
|
+
<View className="items-center justify-center">
|
|
1316
|
+
<ActivityIndicator size="small" color="#FFFFFF" />
|
|
1317
|
+
{uploadProgress && (
|
|
1318
|
+
<Text className="text-white text-[10px] font-semibold mt-[2px]">
|
|
1319
|
+
{uploadProgress.current}/{uploadProgress.total}
|
|
1320
|
+
</Text>
|
|
1321
|
+
)}
|
|
1322
|
+
</View>
|
|
1323
|
+
) : isPickingDocument ? (
|
|
1324
|
+
<ActivityIndicator size="small" color="#FFFFFF" />
|
|
1325
|
+
) : (
|
|
1326
|
+
<Ionicons name="add" size={22} color="#FFFFFF" />
|
|
1327
|
+
)}
|
|
1328
|
+
</TouchableOpacity>
|
|
1329
|
+
)}
|
|
1330
|
+
</View>
|
|
1331
|
+
|
|
1332
|
+
{/* Search Bar */}
|
|
1333
|
+
{files.length > 0 && (viewMode === 'all' || files.some(f => f.contentType.startsWith('image/'))) && (
|
|
1334
|
+
<View
|
|
1335
|
+
className="flex-row items-center px-[14px] py-[10px] mx-[12px] mb-[12px] rounded-full gap-[10px]"
|
|
1336
|
+
style={{ backgroundColor: colors.card }}
|
|
1337
|
+
>
|
|
1338
|
+
<Ionicons name="search" size={22} color={colors.icon} />
|
|
1339
|
+
<TextInput
|
|
1340
|
+
className="flex-1 text-[16px] leading-[20px]"
|
|
1341
|
+
style={{ color: colors.text }}
|
|
1342
|
+
placeholder={viewMode === 'photos' ? t('fileManagement.searchPhotos') : t('fileManagement.searchFiles')}
|
|
1343
|
+
placeholderTextColor={colors.textSecondary}
|
|
1344
|
+
value={searchQuery}
|
|
1345
|
+
onChangeText={setSearchQuery}
|
|
1346
|
+
/>
|
|
1347
|
+
{searchQuery.length > 0 && (
|
|
1348
|
+
<TouchableOpacity
|
|
1349
|
+
onPress={() => setSearchQuery('')}
|
|
1350
|
+
className="p-[4px] rounded-[12px] items-center justify-center"
|
|
1351
|
+
>
|
|
1352
|
+
<Ionicons name="close-circle" size={22} color={colors.icon} />
|
|
1353
|
+
</TouchableOpacity>
|
|
1354
|
+
)}
|
|
1355
|
+
</View>
|
|
1356
|
+
)}
|
|
1357
|
+
|
|
1358
|
+
{/* File Stats */}
|
|
1359
|
+
{files.length > 0 && (
|
|
1360
|
+
<View
|
|
1361
|
+
className="flex-row px-[14px] py-[10px] mx-[12px] mb-[12px] rounded-[18px]"
|
|
1362
|
+
style={{ backgroundColor: colors.card }}
|
|
1363
|
+
>
|
|
1364
|
+
<View className="flex-1 items-center py-[4px]">
|
|
1365
|
+
<Text className="text-[20px] font-extrabold leading-[24px]" style={{ color: colors.text, letterSpacing: -0.5 }}>{filteredFiles.length}</Text>
|
|
1366
|
+
<Text className="text-[12px] font-medium mt-[2px]" style={{ color: colors.textSecondary, letterSpacing: 0.2 }}>
|
|
1367
|
+
{searchQuery.length > 0 ? t('fileManagement.found') : (filteredFiles.length === 1 ? (viewMode === 'photos' ? t('fileManagement.photo') : t('fileManagement.file')) : (viewMode === 'photos' ? t('fileManagement.photos_stat') : t('fileManagement.files')))}
|
|
1368
|
+
</Text>
|
|
1369
|
+
</View>
|
|
1370
|
+
<View className="flex-1 items-center py-[4px]">
|
|
1371
|
+
<Text className="text-[20px] font-extrabold leading-[24px]" style={{ color: colors.text, letterSpacing: -0.5 }}>
|
|
1372
|
+
{formatFileSize(filteredFiles.reduce((total, file) => total + file.length, 0))}
|
|
1373
|
+
</Text>
|
|
1374
|
+
<Text className="text-[12px] font-medium mt-[2px]" style={{ color: colors.textSecondary, letterSpacing: 0.2 }}>
|
|
1375
|
+
{searchQuery.length > 0 ? t('fileManagement.size') : t('fileManagement.totalSize')}
|
|
1376
|
+
</Text>
|
|
1377
|
+
</View>
|
|
1378
|
+
{searchQuery.length > 0 && (
|
|
1379
|
+
<View className="flex-1 items-center py-[4px]">
|
|
1380
|
+
<Text className="text-[20px] font-extrabold leading-[24px]" style={{ color: colors.text, letterSpacing: -0.5 }}>{files.length}</Text>
|
|
1381
|
+
<Text className="text-[12px] font-medium mt-[2px]" style={{ color: colors.textSecondary, letterSpacing: 0.2 }}>
|
|
1382
|
+
{t('fileManagement.total')}
|
|
1383
|
+
</Text>
|
|
1384
|
+
</View>
|
|
1385
|
+
)}
|
|
1386
|
+
</View>
|
|
1387
|
+
)}
|
|
1388
|
+
|
|
1389
|
+
{/* File List */}
|
|
1390
|
+
{viewMode === 'photos' ? (
|
|
1391
|
+
renderPhotoGrid()
|
|
1392
|
+
) : (
|
|
1393
|
+
<FileListSection
|
|
1394
|
+
scrollViewRef={scrollViewRef}
|
|
1395
|
+
filteredFiles={filteredFiles}
|
|
1396
|
+
searchQuery={searchQuery}
|
|
1397
|
+
items={groupedFileItems}
|
|
1398
|
+
paging={{ loadingMore: isFetchingMore, hasMore: hasMoreFiles }}
|
|
1399
|
+
refreshing={isRefreshingFiles}
|
|
1400
|
+
colors={colors}
|
|
1401
|
+
t={t}
|
|
1402
|
+
onRefresh={() => filesQuery.refetch()}
|
|
1403
|
+
onLoadMore={() => filesQuery.fetchNextPage()}
|
|
1404
|
+
onClearSearch={() => setSearchQuery('')}
|
|
1405
|
+
renderEmptyState={renderEmptyState}
|
|
1406
|
+
/>
|
|
1407
|
+
)}
|
|
1408
|
+
|
|
1409
|
+
{/* Uploading banner overlay with progress */}
|
|
1410
|
+
{!selectMode && uploading && (
|
|
1411
|
+
<UploadBar
|
|
1412
|
+
uploadProgress={uploadProgress}
|
|
1413
|
+
isDark={bloomTheme.isDark}
|
|
1414
|
+
colors={colors}
|
|
1415
|
+
t={t}
|
|
1416
|
+
/>
|
|
1417
|
+
)}
|
|
1418
|
+
</View>
|
|
1419
|
+
);
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
export default FileManagementScreen;
|