@oxyhq/services 19.0.1 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +5 -12
- package/lib/commonjs/assets/icons/OxyServices.js +7 -7
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/index.js +56 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +121 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/commonjs/ui/client.js +10 -17
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +28 -92
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +127 -241
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialog.js +22 -18
- package/lib/commonjs/ui/components/OxyAccountDialog.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +4 -6
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +45 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/commonjs/ui/components/OxyPayButton.js +20 -71
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +3 -3
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +30 -135
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +4 -2
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +99 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js +7 -10
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +9 -9
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +20 -23
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +6 -6
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +14 -9
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +55 -55
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +13 -13
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +129 -260
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/oxyContextHelpers.js +64 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/commonjs/ui/{components/TextField/Adornment/types.js → context/oxyContextTypes.js} +1 -1
- package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +91 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/commonjs/ui/hooks/queryClient.js +9 -18
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +7 -5
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +2 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/index.js +10 -17
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +5 -44
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +9 -8
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -3
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +8 -19
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +8 -8
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -1105
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -8
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +0 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +5 -4
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +9 -49
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +6 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +247 -224
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +21 -20
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +4 -4
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +12 -11
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -2
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +7 -8
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +114 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +512 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +59 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +475 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js +67 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +4 -7
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +3 -3
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +4 -5
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +2 -2
- package/lib/commonjs/ui/utils/crossOriginRestore.js +109 -0
- package/lib/commonjs/ui/utils/crossOriginRestore.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/oauthReturn.js +82 -0
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
- package/lib/commonjs/ui/utils/storageHelpers.js +1 -2
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/assets/assets/icons/OxyServices.tsx +5 -12
- package/lib/module/assets/icons/OxyServices.js +7 -7
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/index.js +10 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +116 -0
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/module/ui/client.js +3 -4
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +28 -92
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/Header.js +127 -241
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialog.js +22 -18
- package/lib/module/ui/components/OxyAccountDialog.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +4 -5
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyOAuthCallback.js +41 -0
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/module/ui/components/OxyPayButton.js +21 -71
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +3 -3
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +34 -139
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +5 -3
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +95 -0
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/module/ui/components/RequireOxyAuth.js +7 -9
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +9 -9
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +20 -23
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +6 -6
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +14 -8
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +54 -54
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +13 -13
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +128 -259
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/oxyContextHelpers.js +57 -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/useOxyAccountGraph.js +87 -0
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/module/ui/hooks/queryClient.js +8 -17
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +7 -5
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +2 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/index.js +2 -3
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +4 -41
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +8 -7
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +2 -3
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +7 -18
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +8 -8
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +53 -1098
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +9 -8
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +5 -4
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +11 -51
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -7
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +247 -224
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +19 -18
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +3 -3
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +12 -11
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +3 -2
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +2 -2
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +6 -6
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +110 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +509 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js +55 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +471 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/shared.js +58 -0
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +4 -7
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +3 -2
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js +2 -3
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +2 -2
- package/lib/module/ui/utils/crossOriginRestore.js +101 -0
- package/lib/module/ui/utils/crossOriginRestore.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/oauthReturn.js +78 -0
- package/lib/module/ui/utils/oauthReturn.js.map +1 -0
- package/lib/module/ui/utils/storageHelpers.js +1 -2
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +0 -5
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +11 -6
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +29 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/client.d.ts +3 -4
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Header.d.ts +16 -21
- package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +3 -7
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- 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/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -10
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -185
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +123 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +26 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +2 -3
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +7 -5
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +2 -3
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +4 -34
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- 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 +38 -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 +39 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +34 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +2 -3
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -2
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -18
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts +24 -0
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.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/oauthReturn.d.ts +25 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +0 -11
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -1
- package/lib/typescript/module/assets/icons/OxyServices.d.ts +0 -5
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +11 -6
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +29 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/module/ui/client.d.ts +3 -4
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Header.d.ts +16 -21
- package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +3 -7
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -13
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- 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/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts +6 -10
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -185
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +123 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +26 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +2 -3
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +7 -5
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +2 -3
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +4 -34
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- 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 +38 -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 +39 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +34 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +2 -3
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -2
- package/lib/typescript/module/ui/types/navigation.d.ts +2 -18
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts +24 -0
- package/lib/typescript/module/ui/utils/crossOriginRestore.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/oauthReturn.d.ts +25 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts +0 -11
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -1
- package/package.json +29 -17
- package/src/assets/icons/OxyServices.tsx +5 -12
- package/src/index.ts +16 -10
- package/src/ui/boot/runProviderColdBoot.ts +150 -0
- package/src/ui/client.ts +3 -4
- package/src/ui/components/FollowButton.tsx +30 -95
- package/src/ui/components/Header.tsx +135 -405
- package/src/ui/components/OxyAccountDialog.tsx +18 -16
- package/src/ui/components/OxyConsentScreen.tsx +2 -2
- package/src/ui/components/OxyOAuthCallback.tsx +38 -0
- package/src/ui/components/OxyPayButton.tsx +11 -60
- package/src/ui/components/OxyProvider.tsx +3 -3
- package/src/ui/components/OxySignInButton.tsx +35 -134
- package/src/ui/components/ProfileButton.tsx +8 -3
- package/src/ui/components/ProfileSummaryCard.tsx +123 -0
- package/src/ui/components/RequireOxyAuth.tsx +3 -3
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +1 -3
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +9 -9
- package/src/ui/components/fileManagement/FileViewer.tsx +20 -22
- package/src/ui/components/fileManagement/UploadPreview.tsx +6 -6
- package/src/ui/components/modals/DeleteAccountModal.tsx +7 -7
- package/src/ui/components/payment/PaymentDetailsStep.tsx +49 -39
- package/src/ui/components/payment/paymentStyles.ts +14 -14
- package/src/ui/components/payment/types.ts +6 -10
- package/src/ui/context/OxyContext.tsx +136 -470
- package/src/ui/context/oxyContextHelpers.ts +58 -0
- package/src/ui/context/oxyContextTypes.ts +124 -0
- package/src/ui/context/useOxyAccountGraph.ts +114 -0
- package/src/ui/hooks/queryClient.ts +9 -20
- package/src/ui/hooks/useAuth.ts +7 -5
- package/src/ui/hooks/useSessionManagement.ts +2 -0
- package/src/ui/index.ts +2 -3
- package/src/ui/navigation/accountDialogManager.ts +4 -40
- package/src/ui/screens/ConnectedAppsScreen.tsx +8 -11
- package/src/ui/screens/EditProfileFieldScreen.tsx +2 -3
- package/src/ui/screens/EditProfileScreen.tsx +8 -14
- package/src/ui/screens/FAQScreen.tsx +7 -8
- package/src/ui/screens/FeedbackScreen.tsx +0 -1
- package/src/ui/screens/FileManagementScreen.tsx +54 -1158
- package/src/ui/screens/HistoryViewScreen.tsx +4 -4
- package/src/ui/screens/LanguageSelectorScreen.tsx +0 -1
- package/src/ui/screens/LegalDocumentsScreen.tsx +4 -3
- package/src/ui/screens/ManageAccountScreen.tsx +14 -47
- package/src/ui/screens/PaymentGatewayScreen.tsx +3 -7
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +33 -31
- package/src/ui/screens/PrivacySettingsScreen.tsx +14 -16
- package/src/ui/screens/ProfileScreen.tsx +3 -3
- package/src/ui/screens/SavesCollectionsScreen.tsx +11 -12
- package/src/ui/screens/SearchSettingsScreen.tsx +2 -2
- package/src/ui/screens/UserListScreen.tsx +2 -2
- package/src/ui/screens/WelcomeNewUserScreen.tsx +6 -7
- package/src/ui/screens/fileManagement/FileListSection.tsx +126 -0
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +611 -0
- package/src/ui/screens/fileManagement/UploadBar.tsx +48 -0
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +497 -0
- package/src/ui/screens/fileManagement/shared.ts +65 -0
- package/src/ui/screens/trust/TrustCenterScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustFAQScreen.tsx +4 -10
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustRulesScreen.tsx +2 -2
- package/src/ui/server.ts +2 -3
- package/src/ui/session/createSessionClient.ts +2 -2
- package/src/ui/types/navigation.ts +2 -18
- package/src/ui/utils/crossOriginRestore.ts +129 -0
- package/src/ui/utils/deviceCredential.ts +17 -0
- package/src/ui/utils/oauthReturn.ts +101 -0
- package/src/ui/utils/storageHelpers.ts +0 -12
- package/lib/commonjs/ui/components/ActivityIndicator.js +0 -203
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/AutoHeightScrollView.js +0 -46
- package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -181
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -106
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/commonjs/ui/components/EmptyState.js +0 -41
- package/lib/commonjs/ui/components/EmptyState.js.map +0 -1
- package/lib/commonjs/ui/components/HelperText.js +0 -95
- package/lib/commonjs/ui/components/HelperText.js.map +0 -1
- package/lib/commonjs/ui/components/Icon.js +0 -112
- package/lib/commonjs/ui/components/Icon.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -153
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/utils.js +0 -155
- package/lib/commonjs/ui/components/IconButton/utils.js.map +0 -1
- package/lib/commonjs/ui/components/LoadingState.js +0 -47
- package/lib/commonjs/ui/components/LoadingState.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -110
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -134
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -84
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +0 -423
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/commonjs/ui/components/Surface.js +0 -258
- package/lib/commonjs/ui/components/Surface.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js +0 -46
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +0 -53
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -153
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +0 -144
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +0 -137
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js +0 -22
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +0 -62
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +0 -176
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +0 -84
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +0 -381
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -365
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/constants.js +0 -50
- package/lib/commonjs/ui/components/TextField/constants.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +0 -489
- package/lib/commonjs/ui/components/TextField/helpers.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/types.js +0 -6
- package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField.js +0 -335
- package/lib/commonjs/ui/components/TextField.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +0 -12
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +0 -258
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +0 -107
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +0 -56
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js +0 -59
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/types.js +0 -26
- package/lib/commonjs/ui/components/Typography/types.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +0 -33
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -26
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/theming.js +0 -128
- package/lib/commonjs/ui/components/theming.js.map +0 -1
- package/lib/commonjs/ui/components/types.js +0 -6
- package/lib/commonjs/ui/components/types.js.map +0 -1
- package/lib/commonjs/ui/components/utils/forwardRef.js +0 -18
- package/lib/commonjs/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/commonjs/ui/constants/iconColors.js +0 -84
- package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
- package/lib/commonjs/ui/constants/theme.js +0 -124
- package/lib/commonjs/ui/constants/theme.js.map +0 -1
- package/lib/commonjs/ui/context/ThemeContext.js +0 -36
- package/lib/commonjs/ui/context/ThemeContext.js.map +0 -1
- package/lib/commonjs/ui/hooks/useColorScheme.js +0 -29
- package/lib/commonjs/ui/hooks/useColorScheme.js.map +0 -1
- package/lib/commonjs/ui/styles/authStyles.js +0 -334
- package/lib/commonjs/ui/styles/authStyles.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -153
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/module/ui/components/ActivityIndicator.js +0 -198
- package/lib/module/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/module/ui/components/AutoHeightScrollView.js +0 -41
- package/lib/module/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/module/ui/components/Avatar.js +0 -177
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/CrossFadeIcon.js +0 -101
- package/lib/module/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/module/ui/components/EmptyState.js +0 -36
- package/lib/module/ui/components/EmptyState.js.map +0 -1
- package/lib/module/ui/components/HelperText.js +0 -90
- package/lib/module/ui/components/HelperText.js.map +0 -1
- package/lib/module/ui/components/Icon.js +0 -106
- package/lib/module/ui/components/Icon.js.map +0 -1
- package/lib/module/ui/components/IconButton/IconButton.js +0 -148
- package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/module/ui/components/IconButton/utils.js +0 -149
- package/lib/module/ui/components/IconButton/utils.js.map +0 -1
- package/lib/module/ui/components/LoadingState.js +0 -42
- package/lib/module/ui/components/LoadingState.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -104
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -129
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -80
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/StepBasedScreen.js +0 -418
- package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/module/ui/components/Surface.js +0 -252
- package/lib/module/ui/components/Surface.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Outline.js +0 -40
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Underline.js +0 -47
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -146
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -141
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +0 -135
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/enums.js +0 -18
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/types.js +0 -4
- package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js +0 -57
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/InputLabel.js +0 -171
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/LabelBackground.js +0 -78
- package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldFlat.js +0 -376
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +0 -359
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/module/ui/components/TextField/constants.js +0 -46
- package/lib/module/ui/components/TextField/constants.js.map +0 -1
- package/lib/module/ui/components/TextField/helpers.js +0 -471
- package/lib/module/ui/components/TextField/helpers.js.map +0 -1
- package/lib/module/ui/components/TextField/types.js +0 -4
- package/lib/module/ui/components/TextField/types.js.map +0 -1
- package/lib/module/ui/components/TextField.js +0 -329
- package/lib/module/ui/components/TextField.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/Pressable.js +0 -9
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +0 -253
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -101
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/utils.js +0 -50
- package/lib/module/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/module/ui/components/Typography/AnimatedText.js +0 -54
- package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/module/ui/components/Typography/types.js +0 -22
- package/lib/module/ui/components/Typography/types.js.map +0 -1
- package/lib/module/ui/components/feedback/ProgressIndicator.js +0 -28
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -22
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/theming.js +0 -123
- package/lib/module/ui/components/theming.js.map +0 -1
- package/lib/module/ui/components/types.js +0 -4
- package/lib/module/ui/components/types.js.map +0 -1
- package/lib/module/ui/components/utils/forwardRef.js +0 -13
- package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/module/ui/constants/iconColors.js +0 -78
- package/lib/module/ui/constants/iconColors.js.map +0 -1
- package/lib/module/ui/constants/theme.js +0 -120
- package/lib/module/ui/constants/theme.js.map +0 -1
- package/lib/module/ui/context/ThemeContext.js +0 -29
- package/lib/module/ui/context/ThemeContext.js.map +0 -1
- package/lib/module/ui/hooks/useColorScheme.js +0 -26
- package/lib/module/ui/hooks/useColorScheme.js.map +0 -1
- package/lib/module/ui/styles/authStyles.js +0 -329
- package/lib/module/ui/styles/authStyles.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -147
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Icon.d.ts +0 -61
- package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/commonjs/ui/components/LoadingState.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts +0 -16
- package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts +0 -21
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +0 -17
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/theming.d.ts +0 -8
- package/lib/typescript/commonjs/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/types.d.ts +0 -81
- package/lib/typescript/commonjs/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/commonjs/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/constants/theme.d.ts +0 -98
- package/lib/typescript/commonjs/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts +0 -8
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts +0 -328
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/theme.d.ts +0 -75
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/module/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +0 -28
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/module/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/module/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Icon.d.ts +0 -61
- package/lib/typescript/module/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/module/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/module/ui/components/LoadingState.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/OxyLogo.d.ts +0 -16
- package/lib/typescript/module/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ProfileCard.d.ts +0 -21
- package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/module/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts +0 -28
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/module/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +0 -17
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +0 -20
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/module/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/module/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/module/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/module/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts +0 -11
- package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/theming.d.ts +0 -8
- package/lib/typescript/module/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/types.d.ts +0 -81
- package/lib/typescript/module/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/module/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/module/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/module/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/module/ui/constants/theme.d.ts +0 -98
- package/lib/typescript/module/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts +0 -8
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/authStyles.d.ts +0 -328
- package/lib/typescript/module/ui/styles/authStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/theme.d.ts +0 -75
- package/lib/typescript/module/ui/styles/theme.d.ts.map +0 -1
- package/src/ui/components/ActivityIndicator.tsx +0 -254
- package/src/ui/components/AutoHeightScrollView.tsx +0 -50
- package/src/ui/components/Avatar.tsx +0 -284
- package/src/ui/components/CrossFadeIcon.tsx +0 -140
- package/src/ui/components/EmptyState.tsx +0 -39
- package/src/ui/components/HelperText.tsx +0 -149
- package/src/ui/components/Icon.tsx +0 -189
- package/src/ui/components/IconButton/IconButton.tsx +0 -232
- package/src/ui/components/IconButton/utils.ts +0 -190
- package/src/ui/components/LoadingState.tsx +0 -46
- package/src/ui/components/OxyLogo.tsx +0 -82
- package/src/ui/components/ProfileCard.tsx +0 -137
- package/src/ui/components/QuickActions.tsx +0 -91
- package/src/ui/components/StepBasedScreen.tsx +0 -499
- package/src/ui/components/Surface.tsx +0 -384
- package/src/ui/components/TextField/Addons/Outline.tsx +0 -64
- package/src/ui/components/TextField/Addons/Underline.tsx +0 -78
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +0 -205
- package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +0 -212
- package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +0 -195
- package/src/ui/components/TextField/Adornment/enums.tsx +0 -12
- package/src/ui/components/TextField/Adornment/types.tsx +0 -11
- package/src/ui/components/TextField/Adornment/utils.ts +0 -66
- package/src/ui/components/TextField/Label/InputLabel.tsx +0 -219
- package/src/ui/components/TextField/Label/LabelBackground.tsx +0 -100
- package/src/ui/components/TextField/TextFieldFlat.tsx +0 -488
- package/src/ui/components/TextField/TextFieldOutlined.tsx +0 -464
- package/src/ui/components/TextField/constants.tsx +0 -48
- package/src/ui/components/TextField/helpers.tsx +0 -611
- package/src/ui/components/TextField/types.tsx +0 -160
- package/src/ui/components/TextField.tsx +0 -574
- package/src/ui/components/TouchableRipple/Pressable.tsx +0 -42
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +0 -146
- package/src/ui/components/TouchableRipple/TouchableRipple.tsx +0 -347
- package/src/ui/components/TouchableRipple/utils.ts +0 -66
- package/src/ui/components/Typography/AnimatedText.tsx +0 -106
- package/src/ui/components/Typography/types.tsx +0 -22
- package/src/ui/components/feedback/ProgressIndicator.tsx +0 -35
- package/src/ui/components/icon/OxyIcon.tsx +0 -31
- package/src/ui/components/theming.tsx +0 -126
- package/src/ui/components/types.tsx +0 -93
- package/src/ui/components/utils/forwardRef.tsx +0 -23
- package/src/ui/constants/iconColors.ts +0 -88
- package/src/ui/constants/theme.ts +0 -121
- package/src/ui/context/ThemeContext.tsx +0 -41
- package/src/ui/context/__tests__/OxyContext.coldBoot.test.tsx +0 -166
- package/src/ui/hooks/useColorScheme.ts +0 -24
- package/src/ui/styles/authStyles.ts +0 -348
- package/src/ui/styles/theme.ts +0 -169
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFileUploadState = exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _bloom = require("@oxyhq/bloom");
|
|
9
|
+
var _fileStore = require("../../../stores/fileStore.js");
|
|
10
|
+
var _fileManagement = require("../../../utils/fileManagement.js");
|
|
11
|
+
var _shared = require("../shared.js");
|
|
12
|
+
/** Dependencies threaded into the upload-state hook from the orchestrator. */
|
|
13
|
+
|
|
14
|
+
/** Public surface returned to the orchestrator. */
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Owns the self-contained document-picking + upload-preview state and handlers
|
|
18
|
+
* extracted from FileManagementScreen. Behaviour is preserved verbatim — the
|
|
19
|
+
* orchestrator simply threads in the values these handlers depend on and
|
|
20
|
+
* consumes the returned state/handlers.
|
|
21
|
+
*/
|
|
22
|
+
const useFileUploadState = ({
|
|
23
|
+
targetUserId,
|
|
24
|
+
uploadFileMutation,
|
|
25
|
+
defaultVisibility,
|
|
26
|
+
selectMode,
|
|
27
|
+
multiSelect,
|
|
28
|
+
afterSelect,
|
|
29
|
+
onSelect,
|
|
30
|
+
goBack,
|
|
31
|
+
onClose,
|
|
32
|
+
selectedIds,
|
|
33
|
+
setSelectedIds,
|
|
34
|
+
loadFiles,
|
|
35
|
+
t
|
|
36
|
+
}) => {
|
|
37
|
+
const [isPickingDocument, setIsPickingDocument] = (0, _react.useState)(false);
|
|
38
|
+
const [pendingFiles, setPendingFiles] = (0, _react.useState)([]);
|
|
39
|
+
const [showUploadPreview, setShowUploadPreview] = (0, _react.useState)(false);
|
|
40
|
+
const uploadStartRef = (0, _react.useRef)(null);
|
|
41
|
+
const MIN_BANNER_MS = 600;
|
|
42
|
+
const storeSetUploading = (0, _fileStore.useFileStore)(s => s.setUploading);
|
|
43
|
+
const storeSetUploadProgress = (0, _fileStore.useFileStore)(s => s.setUploadProgress);
|
|
44
|
+
const endUpload = (0, _react.useCallback)(() => {
|
|
45
|
+
const started = uploadStartRef.current;
|
|
46
|
+
const elapsed = started ? Date.now() - started : MIN_BANNER_MS;
|
|
47
|
+
const remaining = elapsed < MIN_BANNER_MS ? MIN_BANNER_MS - elapsed : 0;
|
|
48
|
+
setTimeout(() => {
|
|
49
|
+
_fileStore.useFileStore.getState().setUploading(false);
|
|
50
|
+
uploadStartRef.current = null;
|
|
51
|
+
}, remaining);
|
|
52
|
+
}, []);
|
|
53
|
+
const processFileUploads = async selectedFiles => {
|
|
54
|
+
if (selectedFiles.length === 0) return [];
|
|
55
|
+
if (!targetUserId) return []; // Guard clause to ensure userId is defined
|
|
56
|
+
const uploadedFiles = [];
|
|
57
|
+
try {
|
|
58
|
+
storeSetUploadProgress({
|
|
59
|
+
current: 0,
|
|
60
|
+
total: selectedFiles.length
|
|
61
|
+
});
|
|
62
|
+
const maxSize = 50 * 1024 * 1024; // 50MB
|
|
63
|
+
const oversizedFiles = selectedFiles.filter(file => (0, _shared.candidateSize)(file) > maxSize);
|
|
64
|
+
if (oversizedFiles.length > 0) {
|
|
65
|
+
const fileList = oversizedFiles.map(f => (0, _shared.candidateName)(f, 'file')).join(', ');
|
|
66
|
+
_bloom.toast.error(t('fileManagement.toasts.filesTooLarge', {
|
|
67
|
+
files: fileList
|
|
68
|
+
}));
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
let successCount = 0;
|
|
72
|
+
let failureCount = 0;
|
|
73
|
+
const errors = [];
|
|
74
|
+
for (let i = 0; i < selectedFiles.length; i++) {
|
|
75
|
+
storeSetUploadProgress({
|
|
76
|
+
current: i + 1,
|
|
77
|
+
total: selectedFiles.length
|
|
78
|
+
});
|
|
79
|
+
const raw = selectedFiles[i];
|
|
80
|
+
const fileName = (0, _shared.candidateName)(raw, `file-${i + 1}`);
|
|
81
|
+
const fileSize = (0, _shared.candidateSize)(raw);
|
|
82
|
+
const fileType = (0, _shared.candidateType)(raw);
|
|
83
|
+
const optimisticId = `temp-${Date.now()}-${i}-${Math.random().toString(36).substr(2, 9)}`; // Unique ID per file
|
|
84
|
+
|
|
85
|
+
try {
|
|
86
|
+
// Validate file before upload
|
|
87
|
+
if (!raw || !fileName || fileSize <= 0) {
|
|
88
|
+
const errorMsg = `Invalid file: ${fileName}`;
|
|
89
|
+
if (__DEV__) {
|
|
90
|
+
console.error('Upload validation failed:', {
|
|
91
|
+
file: raw,
|
|
92
|
+
error: errorMsg
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
failureCount++;
|
|
96
|
+
errors.push(`${fileName}: Invalid file (missing name or size)`);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
const optimisticFile = {
|
|
100
|
+
id: optimisticId,
|
|
101
|
+
filename: fileName,
|
|
102
|
+
contentType: fileType,
|
|
103
|
+
length: fileSize,
|
|
104
|
+
chunkSize: 0,
|
|
105
|
+
uploadDate: new Date().toISOString(),
|
|
106
|
+
metadata: {
|
|
107
|
+
uploading: true
|
|
108
|
+
},
|
|
109
|
+
variants: []
|
|
110
|
+
};
|
|
111
|
+
_fileStore.useFileStore.getState().addFile(optimisticFile, {
|
|
112
|
+
prepend: true
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// Use the mutation hook with authentication handling
|
|
116
|
+
const result = await uploadFileMutation.mutateAsync({
|
|
117
|
+
file: raw,
|
|
118
|
+
visibility: defaultVisibility
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
// Attempt to refresh file list incrementally – fetch single file metadata if API allows
|
|
122
|
+
const f = result?.file ?? result?.files?.[0];
|
|
123
|
+
if (f) {
|
|
124
|
+
const merged = {
|
|
125
|
+
id: f.id,
|
|
126
|
+
filename: f.originalName || f.sha256 || fileName,
|
|
127
|
+
contentType: f.mime || fileType,
|
|
128
|
+
length: f.size || fileSize,
|
|
129
|
+
chunkSize: 0,
|
|
130
|
+
uploadDate: f.createdAt || new Date().toISOString(),
|
|
131
|
+
metadata: f.metadata || {},
|
|
132
|
+
variants: f.variants || []
|
|
133
|
+
};
|
|
134
|
+
// Remove optimistic then add real
|
|
135
|
+
_fileStore.useFileStore.getState().removeFile(optimisticId);
|
|
136
|
+
_fileStore.useFileStore.getState().addFile(merged, {
|
|
137
|
+
prepend: true
|
|
138
|
+
});
|
|
139
|
+
uploadedFiles.push(merged);
|
|
140
|
+
successCount++;
|
|
141
|
+
} else {
|
|
142
|
+
// Fallback: will reconcile on later list refresh
|
|
143
|
+
_fileStore.useFileStore.getState().updateFile(optimisticId, {
|
|
144
|
+
metadata: {
|
|
145
|
+
uploading: false
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
if (__DEV__) {
|
|
149
|
+
console.warn('Upload completed but no file data returned:', {
|
|
150
|
+
fileName,
|
|
151
|
+
result
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
// Still count as success if upload didn't throw
|
|
155
|
+
successCount++;
|
|
156
|
+
}
|
|
157
|
+
} catch (error) {
|
|
158
|
+
failureCount++;
|
|
159
|
+
const errorMessage = (0, _shared.getErrorMessage)(error) || 'Upload failed';
|
|
160
|
+
const fullError = `${fileName}: ${errorMessage}`;
|
|
161
|
+
errors.push(fullError);
|
|
162
|
+
if (__DEV__) {
|
|
163
|
+
console.error('File upload failed:', {
|
|
164
|
+
fileName,
|
|
165
|
+
fileSize,
|
|
166
|
+
fileType,
|
|
167
|
+
error: errorMessage,
|
|
168
|
+
stack: error instanceof Error ? error.stack : undefined
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Remove optimistic file on error (use the same optimisticId from above)
|
|
173
|
+
_fileStore.useFileStore.getState().removeFile(optimisticId);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Show success/error messages
|
|
178
|
+
if (successCount > 0) {
|
|
179
|
+
_bloom.toast.success(t('fileManagement.toasts.uploadSuccess', {
|
|
180
|
+
count: successCount
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
if (failureCount > 0) {
|
|
184
|
+
// Show detailed error message with first few errors
|
|
185
|
+
const errorDetails = errors.length > 0 ? `\n${errors.slice(0, 3).join('\n')}${errors.length > 3 ? `\n...and ${errors.length - 3} more` : ''}` : '';
|
|
186
|
+
_bloom.toast.error(`${t('fileManagement.toasts.uploadFailed', {
|
|
187
|
+
count: failureCount
|
|
188
|
+
})}${errorDetails}`);
|
|
189
|
+
}
|
|
190
|
+
// Silent background refresh to ensure metadata/variants updated
|
|
191
|
+
setTimeout(() => {
|
|
192
|
+
loadFiles('silent');
|
|
193
|
+
}, 1200);
|
|
194
|
+
} catch (error) {
|
|
195
|
+
_bloom.toast.error((0, _shared.getErrorMessage)(error) || t('fileManagement.toasts.uploadError'));
|
|
196
|
+
} finally {
|
|
197
|
+
storeSetUploadProgress(null);
|
|
198
|
+
}
|
|
199
|
+
return uploadedFiles;
|
|
200
|
+
};
|
|
201
|
+
const handleFileSelection = (0, _react.useCallback)(async selectedFiles => {
|
|
202
|
+
const MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB
|
|
203
|
+
const processedFiles = [];
|
|
204
|
+
for (const file of selectedFiles) {
|
|
205
|
+
// Validate file has required properties
|
|
206
|
+
if (!file) {
|
|
207
|
+
if (__DEV__) {
|
|
208
|
+
console.error('Invalid file: file is null or undefined');
|
|
209
|
+
}
|
|
210
|
+
_bloom.toast.error(t('fileManagement.toasts.invalidFileMissing'));
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
const name = (0, _shared.candidateName)(file, '');
|
|
214
|
+
if (!name) {
|
|
215
|
+
if (__DEV__) {
|
|
216
|
+
console.error('Invalid file: missing or invalid name property', file);
|
|
217
|
+
}
|
|
218
|
+
_bloom.toast.error(t('fileManagement.toasts.invalidFileName'));
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
const size = file.size;
|
|
222
|
+
if (size === undefined || size === null || Number.isNaN(size)) {
|
|
223
|
+
if (__DEV__) {
|
|
224
|
+
console.error('Invalid file: missing or invalid size property', file);
|
|
225
|
+
}
|
|
226
|
+
_bloom.toast.error(t('fileManagement.toasts.invalidFileSize', {
|
|
227
|
+
name
|
|
228
|
+
}));
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
if (size <= 0) {
|
|
232
|
+
if (__DEV__) {
|
|
233
|
+
console.error('Invalid file: file size is zero or negative', file);
|
|
234
|
+
}
|
|
235
|
+
_bloom.toast.error(t('fileManagement.toasts.fileEmpty', {
|
|
236
|
+
name
|
|
237
|
+
}));
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Validate file size
|
|
242
|
+
if (size > MAX_FILE_SIZE) {
|
|
243
|
+
_bloom.toast.error(t('fileManagement.toasts.fileTooLarge', {
|
|
244
|
+
name,
|
|
245
|
+
maxSize: (0, _fileManagement.formatFileSize)(MAX_FILE_SIZE)
|
|
246
|
+
}));
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
const fileType = (0, _shared.candidateType)(file);
|
|
250
|
+
|
|
251
|
+
// Generate preview for images - unified approach
|
|
252
|
+
let preview;
|
|
253
|
+
if (fileType.startsWith('image/')) {
|
|
254
|
+
// Try to use file URI from expo-document-picker if available (works on all platforms)
|
|
255
|
+
const fileUri = (0, _shared.candidateUri)(file);
|
|
256
|
+
if (fileUri && (fileUri.startsWith('file://') || fileUri.startsWith('content://') || fileUri.startsWith('http://') || fileUri.startsWith('https://') || fileUri.startsWith('blob:'))) {
|
|
257
|
+
preview = fileUri;
|
|
258
|
+
} else {
|
|
259
|
+
// Fallback: create blob URL if possible (works on web only)
|
|
260
|
+
try {
|
|
261
|
+
if (typeof File !== 'undefined' && file instanceof File || typeof Blob !== 'undefined' && file instanceof Blob) {
|
|
262
|
+
preview = URL.createObjectURL(file);
|
|
263
|
+
}
|
|
264
|
+
} catch (error) {
|
|
265
|
+
if (__DEV__) {
|
|
266
|
+
console.warn('Failed to create preview URL:', error);
|
|
267
|
+
}
|
|
268
|
+
// Preview is optional, continue without it
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
processedFiles.push({
|
|
273
|
+
file,
|
|
274
|
+
preview,
|
|
275
|
+
size,
|
|
276
|
+
name,
|
|
277
|
+
type: fileType
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
if (processedFiles.length === 0) {
|
|
281
|
+
_bloom.toast.error(t('fileManagement.toasts.noValidFiles'));
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// Show preview modal for user to review files before upload
|
|
286
|
+
setPendingFiles(processedFiles);
|
|
287
|
+
setShowUploadPreview(true);
|
|
288
|
+
}, [t]);
|
|
289
|
+
const handleConfirmUpload = async () => {
|
|
290
|
+
if (pendingFiles.length === 0) return;
|
|
291
|
+
setShowUploadPreview(false);
|
|
292
|
+
uploadStartRef.current = Date.now();
|
|
293
|
+
storeSetUploading(true);
|
|
294
|
+
storeSetUploadProgress(null);
|
|
295
|
+
try {
|
|
296
|
+
const filesToUpload = pendingFiles.map(pf => pf.file);
|
|
297
|
+
storeSetUploadProgress({
|
|
298
|
+
current: 0,
|
|
299
|
+
total: filesToUpload.length
|
|
300
|
+
});
|
|
301
|
+
const uploadedFiles = await processFileUploads(filesToUpload);
|
|
302
|
+
|
|
303
|
+
// Cleanup preview URLs
|
|
304
|
+
pendingFiles.forEach(pf => {
|
|
305
|
+
if (pf.preview) {
|
|
306
|
+
URL.revokeObjectURL(pf.preview);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
setPendingFiles([]);
|
|
310
|
+
|
|
311
|
+
// If in selectMode, automatically select the uploaded file(s)
|
|
312
|
+
if (selectMode && uploadedFiles.length > 0) {
|
|
313
|
+
// Wait a bit for the file store to update and ensure file is available
|
|
314
|
+
setTimeout(() => {
|
|
315
|
+
const fileToSelect = uploadedFiles[0];
|
|
316
|
+
if (!multiSelect && fileToSelect) {
|
|
317
|
+
// Single select mode - directly call onSelect callback
|
|
318
|
+
onSelect?.(fileToSelect);
|
|
319
|
+
if (afterSelect === 'back') {
|
|
320
|
+
goBack?.();
|
|
321
|
+
} else if (afterSelect === 'close') {
|
|
322
|
+
onClose?.();
|
|
323
|
+
}
|
|
324
|
+
} else if (multiSelect) {
|
|
325
|
+
// Multi-select mode - add all uploaded files to selection
|
|
326
|
+
uploadedFiles.forEach(file => {
|
|
327
|
+
if (!selectedIds.has(file.id)) {
|
|
328
|
+
setSelectedIds(prev => new Set(prev).add(file.id));
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}, 500);
|
|
333
|
+
}
|
|
334
|
+
endUpload();
|
|
335
|
+
} catch (error) {
|
|
336
|
+
_bloom.toast.error((0, _shared.getErrorMessage)(error) || t('fileManagement.toasts.uploadError'));
|
|
337
|
+
endUpload();
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
const handleCancelUpload = () => {
|
|
341
|
+
// Cleanup preview URLs
|
|
342
|
+
pendingFiles.forEach(pf => {
|
|
343
|
+
if (pf.preview) {
|
|
344
|
+
URL.revokeObjectURL(pf.preview);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
setPendingFiles([]);
|
|
348
|
+
setShowUploadPreview(false);
|
|
349
|
+
};
|
|
350
|
+
const removePendingFile = index => {
|
|
351
|
+
const file = pendingFiles[index];
|
|
352
|
+
if (file.preview) {
|
|
353
|
+
URL.revokeObjectURL(file.preview);
|
|
354
|
+
}
|
|
355
|
+
const updated = pendingFiles.filter((_, i) => i !== index);
|
|
356
|
+
setPendingFiles(updated);
|
|
357
|
+
if (updated.length === 0) {
|
|
358
|
+
setShowUploadPreview(false);
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Handle file upload - opens document picker and processes selected files
|
|
364
|
+
* Expo 54 compatible - works on web, iOS, and Android
|
|
365
|
+
*/
|
|
366
|
+
const handleFileUpload = async () => {
|
|
367
|
+
// Prevent concurrent document picker calls
|
|
368
|
+
if (isPickingDocument) {
|
|
369
|
+
_bloom.toast.error(t('fileManagement.toasts.waitForSelection'));
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
try {
|
|
373
|
+
setIsPickingDocument(true);
|
|
374
|
+
|
|
375
|
+
// Lazy load expo-document-picker
|
|
376
|
+
const picker = await (0, _shared.loadDocumentPicker)();
|
|
377
|
+
|
|
378
|
+
// Use expo-document-picker (works on all platforms including web)
|
|
379
|
+
// On web, it uses the native file input and provides File objects directly
|
|
380
|
+
const result = await picker.getDocumentAsync({
|
|
381
|
+
type: '*/*',
|
|
382
|
+
multiple: true,
|
|
383
|
+
copyToCacheDirectory: true
|
|
384
|
+
});
|
|
385
|
+
if (result.canceled) {
|
|
386
|
+
setIsPickingDocument(false);
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
if (!result.assets || result.assets.length === 0) {
|
|
390
|
+
setIsPickingDocument(false);
|
|
391
|
+
_bloom.toast.error(t('fileManagement.toasts.noFilesSelected'));
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// Convert expo document picker results to File-like objects
|
|
396
|
+
// According to Expo 54 docs, expo-document-picker returns assets with:
|
|
397
|
+
// - uri: file URI (file://, content://, or blob URL)
|
|
398
|
+
// - name: file name
|
|
399
|
+
// - size: file size in bytes
|
|
400
|
+
// - mimeType: MIME type of the file
|
|
401
|
+
// - file: (optional) native File object (usually only on web)
|
|
402
|
+
const files = [];
|
|
403
|
+
const errors = [];
|
|
404
|
+
|
|
405
|
+
// Process files in parallel for better performance
|
|
406
|
+
// This allows multiple files to be converted simultaneously
|
|
407
|
+
const conversionPromises = result.assets.map((doc, index) => (0, _fileManagement.convertDocumentPickerAssetToFile)(doc, index).then(file => {
|
|
408
|
+
if (file) {
|
|
409
|
+
// Validate file has required properties before adding
|
|
410
|
+
if (!file.name || file.size === undefined) {
|
|
411
|
+
errors.push(`File "${doc.name || 'file'}" is invalid: missing required properties`);
|
|
412
|
+
return null;
|
|
413
|
+
}
|
|
414
|
+
return file;
|
|
415
|
+
}
|
|
416
|
+
return null;
|
|
417
|
+
}).catch(error => {
|
|
418
|
+
errors.push(`File "${doc.name || 'file'}": ${(0, _shared.getErrorMessage)(error) || 'Failed to process'}`);
|
|
419
|
+
return null;
|
|
420
|
+
}));
|
|
421
|
+
const convertedFiles = await Promise.all(conversionPromises);
|
|
422
|
+
|
|
423
|
+
// Filter out null values
|
|
424
|
+
for (const file of convertedFiles) {
|
|
425
|
+
if (file) {
|
|
426
|
+
files.push(file);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// Show errors if any
|
|
431
|
+
if (errors.length > 0) {
|
|
432
|
+
const errorMessage = errors.slice(0, 3).join('\n') + (errors.length > 3 ? `\n...and ${errors.length - 3} more` : '');
|
|
433
|
+
_bloom.toast.error(t('fileManagement.toasts.loadSomeFailed', {
|
|
434
|
+
errors: errorMessage
|
|
435
|
+
}));
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// Process successfully converted files
|
|
439
|
+
if (files.length > 0) {
|
|
440
|
+
await handleFileSelection(files);
|
|
441
|
+
} else {
|
|
442
|
+
// Files were selected but none could be converted
|
|
443
|
+
_bloom.toast.error(t('fileManagement.toasts.noFilesProcessed'));
|
|
444
|
+
}
|
|
445
|
+
} catch (error) {
|
|
446
|
+
if (__DEV__) {
|
|
447
|
+
console.error('File upload error:', error);
|
|
448
|
+
}
|
|
449
|
+
if ((0, _shared.getErrorMessage)(error)?.includes('expo-document-picker') || (0, _shared.getErrorMessage)(error)?.includes('Different document picking in progress')) {
|
|
450
|
+
if ((0, _shared.getErrorMessage)(error)?.includes('Different document picking in progress')) {
|
|
451
|
+
_bloom.toast.error(t('fileManagement.toasts.waitForSelection'));
|
|
452
|
+
} else {
|
|
453
|
+
_bloom.toast.error(t('fileManagement.toasts.filePickerNotAvailable'));
|
|
454
|
+
}
|
|
455
|
+
} else {
|
|
456
|
+
_bloom.toast.error((0, _shared.getErrorMessage)(error) || t('fileManagement.toasts.selectFilesFailed'));
|
|
457
|
+
}
|
|
458
|
+
} finally {
|
|
459
|
+
// Always reset the picking state, even if there was an error
|
|
460
|
+
setIsPickingDocument(false);
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
return {
|
|
464
|
+
isPickingDocument,
|
|
465
|
+
pendingFiles,
|
|
466
|
+
showUploadPreview,
|
|
467
|
+
handleFileUpload,
|
|
468
|
+
handleConfirmUpload,
|
|
469
|
+
handleCancelUpload,
|
|
470
|
+
removePendingFile
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
exports.useFileUploadState = useFileUploadState;
|
|
474
|
+
var _default = exports.default = useFileUploadState;
|
|
475
|
+
//# sourceMappingURL=useFileUploadState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_bloom","_fileStore","_fileManagement","_shared","useFileUploadState","targetUserId","uploadFileMutation","defaultVisibility","selectMode","multiSelect","afterSelect","onSelect","goBack","onClose","selectedIds","setSelectedIds","loadFiles","t","isPickingDocument","setIsPickingDocument","useState","pendingFiles","setPendingFiles","showUploadPreview","setShowUploadPreview","uploadStartRef","useRef","MIN_BANNER_MS","storeSetUploading","useFileStore","s","setUploading","storeSetUploadProgress","setUploadProgress","endUpload","useCallback","started","current","elapsed","Date","now","remaining","setTimeout","getState","processFileUploads","selectedFiles","length","uploadedFiles","total","maxSize","oversizedFiles","filter","file","candidateSize","fileList","map","f","candidateName","join","toast","error","files","successCount","failureCount","errors","i","raw","fileName","fileSize","fileType","candidateType","optimisticId","Math","random","toString","substr","errorMsg","__DEV__","console","push","optimisticFile","id","filename","contentType","chunkSize","uploadDate","toISOString","metadata","uploading","variants","addFile","prepend","result","mutateAsync","visibility","merged","originalName","sha256","mime","size","createdAt","removeFile","updateFile","warn","errorMessage","getErrorMessage","fullError","stack","Error","undefined","success","count","errorDetails","slice","handleFileSelection","MAX_FILE_SIZE","processedFiles","name","Number","isNaN","formatFileSize","preview","startsWith","fileUri","candidateUri","File","Blob","URL","createObjectURL","type","handleConfirmUpload","filesToUpload","pf","forEach","revokeObjectURL","fileToSelect","has","prev","Set","add","handleCancelUpload","removePendingFile","index","updated","_","handleFileUpload","picker","loadDocumentPicker","getDocumentAsync","multiple","copyToCacheDirectory","canceled","assets","conversionPromises","doc","convertDocumentPickerAssetToFile","then","catch","convertedFiles","Promise","all","includes","exports","_default","default"],"sourceRoot":"../../../../../../src","sources":["ui/screens/fileManagement/hooks/useFileUploadState.ts"],"m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CAAC,CAAC;QAClE;MACJ,CAAC,MAAM;QACH0C,YAAK,CAACC,KAAK,CAAC,IAAA6C,uBAAe,EAAC7C,KAAK,CAAC,IAAI3C,CAAC,CAAC,yCAAyC,CAAC,CAAC;MACvF;IACJ,CAAC,SAAS;MACN;MACAE,oBAAoB,CAAC,KAAK,CAAC;IAC/B;EACJ,CAAC;EAED,OAAO;IACHD,iBAAiB;IACjBG,YAAY;IACZE,iBAAiB;IACjB0H,gBAAgB;IAChBf,mBAAmB;IACnBU,kBAAkB;IAClBC;EACJ,CAAC;AACL,CAAC;AAACqB,OAAA,CAAA9J,kBAAA,GAAAA,kBAAA;AAAA,IAAA+J,QAAA,GAAAD,OAAA,CAAAE,OAAA,GAEahK,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.loadDocumentPicker = exports.getErrorMessage = exports.candidateUri = exports.candidateType = exports.candidateSize = exports.candidateName = void 0;
|
|
7
|
+
var _core = require("@oxyhq/core");
|
|
8
|
+
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); }
|
|
9
|
+
// Lazy load expo-document-picker (optional dependency).
|
|
10
|
+
// This allows the screen to work even if expo-document-picker is not installed.
|
|
11
|
+
let DocumentPicker = null;
|
|
12
|
+
const loadDocumentPicker = async () => {
|
|
13
|
+
if (DocumentPicker) return DocumentPicker;
|
|
14
|
+
try {
|
|
15
|
+
DocumentPicker = await Promise.resolve().then(() => _interopRequireWildcard(require('expo-document-picker')));
|
|
16
|
+
return DocumentPicker;
|
|
17
|
+
} catch (error) {
|
|
18
|
+
throw new Error('expo-document-picker is not installed. Please install it: npx expo install expo-document-picker');
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Extract error message from unknown error type.
|
|
24
|
+
* Delegates to the canonical `getErrorMessage` in `@oxyhq/core` and returns
|
|
25
|
+
* `undefined` for empty results (so callers can fall back to a translated
|
|
26
|
+
* message via `||`).
|
|
27
|
+
*/
|
|
28
|
+
exports.loadDocumentPicker = loadDocumentPicker;
|
|
29
|
+
const getErrorMessage = error => {
|
|
30
|
+
if (error == null) return undefined;
|
|
31
|
+
const message = (0, _core.getErrorMessage)(error, '');
|
|
32
|
+
return message ? message : undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A picker-produced file ready to upload. On web this is a real `File`
|
|
37
|
+
* (carrying an optional `uri` for preview). On native, it's an
|
|
38
|
+
* {@link RNFileDescriptor} — passed straight to FormData by `assetUpload`.
|
|
39
|
+
*/
|
|
40
|
+
exports.getErrorMessage = getErrorMessage;
|
|
41
|
+
/** Returns the display name for either a web File or an RN descriptor. */
|
|
42
|
+
const candidateName = (candidate, fallback) => candidate.name && typeof candidate.name === 'string' ? candidate.name : fallback;
|
|
43
|
+
|
|
44
|
+
/** Returns the byte size for either a web File or an RN descriptor (0 if unknown). */
|
|
45
|
+
exports.candidateName = candidateName;
|
|
46
|
+
const candidateSize = candidate => {
|
|
47
|
+
const size = candidate.size;
|
|
48
|
+
return typeof size === 'number' && Number.isFinite(size) ? size : 0;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** Returns the mime type for either a web File or an RN descriptor. */
|
|
52
|
+
exports.candidateSize = candidateSize;
|
|
53
|
+
const candidateType = candidate => {
|
|
54
|
+
const value = candidate.type;
|
|
55
|
+
return typeof value === 'string' && value.length > 0 ? value : 'application/octet-stream';
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** Returns the preview URI for an upload candidate, if available. */
|
|
59
|
+
exports.candidateType = candidateType;
|
|
60
|
+
const candidateUri = candidate => {
|
|
61
|
+
const uri = candidate.uri;
|
|
62
|
+
return typeof uri === 'string' && uri.length > 0 ? uri : undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** A processed file ready for review in the upload preview modal. */
|
|
66
|
+
exports.candidateUri = candidateUri;
|
|
67
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_core","require","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DocumentPicker","loadDocumentPicker","Promise","resolve","then","error","Error","exports","getErrorMessage","undefined","message","getOxyErrorMessage","candidateName","candidate","fallback","name","candidateSize","size","Number","isFinite","candidateType","value","type","length","candidateUri","uri"],"sourceRoot":"../../../../../src","sources":["ui/screens/fileManagement/shared.ts"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAAoE,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA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ACO,MAAMI,aAAa,GAAGA,CAACC,SAA0B,EAAEC,QAAgB,KACrED,SAAS,CAACE,IAAI,IAAI,OAAOF,SAAS,CAACE,IAAI,KAAK,QAAQ,GAAGF,SAAS,CAACE,IAAI,GAAGD,QAAS;;AAEtF;AAAAP,OAAA,CAAAK,aAAA,GAAAA,aAAA;AACO,MAAMI,aAAa,GAAIH,SAA0B,IAAa;EACjE,MAAMI,IAAI,GAAIJ,SAAS,CAAuBI,IAAI;EAClD,OAAO,OAAOA,IAAI,KAAK,QAAQ,IAAIC,MAAM,CAACC,QAAQ,CAACF,IAAI,CAAC,GAAGA,IAAI,GAAG,CAAC;AACvE,CAAC;;AAED;AAAAV,OAAA,CAAAS,aAAA,GAAAA,aAAA;AACO,MAAMI,aAAa,GAAIP,SAA0B,IAAa;EACjE,MAAMQ,KAAK,GAAIR,SAAS,CAAuBS,IAAI;EACnD,OAAO,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACE,MAAM,GAAG,CAAC,GAAGF,KAAK,GAAG,0BAA0B;AAC7F,CAAC;;AAED;AAAAd,OAAA,CAAAa,aAAA,GAAAA,aAAA;AACO,MAAMI,YAAY,GAAIX,SAA0B,IAAyB;EAC5E,MAAMY,GAAG,GAAIZ,SAAS,CAAsBY,GAAG;EAC/C,OAAO,OAAOA,GAAG,KAAK,QAAQ,IAAIA,GAAG,CAACF,MAAM,GAAG,CAAC,GAAGE,GAAG,GAAGhB,SAAS;AACtE,CAAC;;AAED;AAAAF,OAAA,CAAAiB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@ var _typography = require("@oxyhq/bloom/typography");
|
|
|
13
13
|
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
14
14
|
var _Header = _interopRequireDefault(require("../../components/Header.js"));
|
|
15
15
|
var _SettingsIcon = require("../../components/SettingsIcon.js");
|
|
16
|
-
var
|
|
16
|
+
var _loading = require("@oxyhq/bloom/loading");
|
|
17
17
|
var _useI18n = require("../../hooks/useI18n.js");
|
|
18
18
|
var _OxyContext = require("../../context/OxyContext.js");
|
|
19
19
|
var _trustTier = require("./trustTier.js");
|
|
@@ -80,7 +80,8 @@ const TrustCenterScreen = ({
|
|
|
80
80
|
elevation: "subtle"
|
|
81
81
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
82
82
|
style: styles.center,
|
|
83
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
83
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
|
|
84
|
+
size: "large",
|
|
84
85
|
color: primaryColor
|
|
85
86
|
})
|
|
86
87
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_chip","_theme","_typography","_settingsList","_Header","_interopRequireDefault","_SettingsIcon","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_chip","_theme","_typography","_settingsList","_Header","_interopRequireDefault","_SettingsIcon","_loading","_useI18n","_OxyContext","_trustTier","_jsxRuntime","e","__esModule","default","TrustCenterScreen","onClose","goBack","navigate","user","oxyServices","isAuthenticated","useOxy","t","useI18n","reputationTotal","setReputationTotal","useState","trustTier","setTrustTier","transactions","setTransactions","isLoading","setIsLoading","error","setError","bloomTheme","useTheme","primaryColor","colors","primary","useEffect","Promise","all","getReputationBalance","id","getReputationTransactions","then","balance","txns","total","Array","isArray","catch","err","Error","message","finally","trustTierLabel","useMemo","getTrustTierLabel","title","jsxs","View","className","children","jsx","onBack","elevation","style","styles","center","Text","Loading","size","color","ScrollView","contentContainerClassName","H1","Chip","variant","startIcon","Ionicons","name","infoText","SettingsListGroup","SettingsListItem","icon","SettingsIcon","warning","onPress","info","success","secondary","length","textTertiary","showChevron","disabled","map","entry","points","reason","actionType","description","category","createdAt","Date","toLocaleString","rightElement","StyleSheet","create","flex","alignItems","justifyContent","maxWidth","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui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