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