@oxyhq/services 11.0.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/AccountMenu.js +9 -5
- package/lib/commonjs/ui/components/AccountMenu.js.map +1 -1
- package/lib/commonjs/ui/components/AnotherDeviceQR.js +51 -56
- package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +1 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +18 -5
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +23 -7
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +20 -1
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +19 -9
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +4 -2
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +153 -19
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +6 -17
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +5 -5
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +38 -38
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +2 -2
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +3 -3
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +16 -12
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +10 -6
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +6 -5
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js +40 -2
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js +21 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +100 -108
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +227 -273
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -4
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +20 -37
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +89 -201
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +80 -208
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +56 -208
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +303 -352
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +20 -20
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +77 -89
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +43 -58
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +67 -90
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +77 -177
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +113 -107
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +55 -114
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +67 -85
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +71 -135
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +15 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +65 -83
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +378 -1023
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +294 -242
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +194 -333
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +57 -97
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +41 -41
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +17 -24
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +83 -214
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +115 -77
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +70 -57
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +136 -332
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +47 -137
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +182 -115
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +138 -214
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +54 -92
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/activeAuthuser.js +15 -9
- package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/AccountMenu.js +10 -6
- package/lib/module/ui/components/AccountMenu.js.map +1 -1
- package/lib/module/ui/components/AnotherDeviceQR.js +50 -56
- package/lib/module/ui/components/AnotherDeviceQR.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +2 -1
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +18 -5
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/OxyLogo.js +1 -1
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +23 -7
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +20 -1
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +19 -9
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +4 -2
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +154 -20
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +6 -17
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +5 -5
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +38 -38
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +2 -2
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +3 -3
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +16 -12
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +9 -6
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js +6 -5
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useOxyAuthSession.js +40 -2
- package/lib/module/ui/hooks/useOxyAuthSession.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js +21 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +4 -3
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +101 -109
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +228 -275
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +10 -4
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +19 -39
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateManagedAccountScreen.js +90 -202
- package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +77 -205
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +55 -207
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +301 -350
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +20 -20
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +78 -90
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +44 -59
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +68 -91
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +75 -177
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +116 -108
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +52 -112
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +68 -86
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +69 -134
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +16 -10
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +66 -84
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +366 -1012
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +295 -243
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +192 -331
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +58 -98
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +42 -42
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +18 -25
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +81 -212
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +114 -76
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +69 -57
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +135 -332
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +48 -138
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +184 -117
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +132 -208
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +58 -94
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/utils/activeAuthuser.js +15 -9
- package/lib/module/ui/utils/activeAuthuser.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +12 -2
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +3 -2
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +34 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +6 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +22 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +3 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +2 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.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/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.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/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.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/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AccountMenu.d.ts +2 -0
- package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +12 -2
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +3 -2
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +34 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +6 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +22 -0
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +3 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +2 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.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/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.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/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.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/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -1
- package/lib/typescript/types/expo-haptics.d.ts +42 -0
- package/package.json +8 -3
- package/src/index.ts +2 -0
- package/src/types/expo-haptics.d.ts +42 -0
- package/src/ui/components/AccountMenu.tsx +11 -5
- package/src/ui/components/AnotherDeviceQR.tsx +53 -45
- package/src/ui/components/BottomSheetRouter.tsx +2 -1
- package/src/ui/components/FollowButton.tsx +24 -5
- package/src/ui/components/OxyLogo.tsx +1 -1
- package/src/ui/components/OxyProvider.tsx +22 -8
- package/src/ui/components/SignInModal.tsx +21 -2
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +9 -9
- package/src/ui/components/fileManagement/UploadPreview.tsx +2 -2
- package/src/ui/context/OxyContext.tsx +178 -21
- package/src/ui/context/hooks/useAuthOperations.ts +6 -17
- package/src/ui/hooks/mutations/mutationFactory.ts +5 -5
- package/src/ui/hooks/mutations/useAccountMutations.ts +38 -38
- package/src/ui/hooks/mutations/useServicesMutations.ts +2 -2
- package/src/ui/hooks/queries/queryKeys.ts +6 -3
- package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
- package/src/ui/hooks/queries/usePaymentQueries.ts +12 -12
- package/src/ui/hooks/queries/useServicesQueries.ts +9 -6
- package/src/ui/hooks/queryClient.ts +5 -5
- package/src/ui/hooks/useOxyAuthSession.ts +76 -2
- package/src/ui/hooks/useProfileEditing.ts +24 -0
- package/src/ui/hooks/useSessionManagement.ts +9 -6
- package/src/ui/screens/AccountVerificationScreen.tsx +101 -113
- package/src/ui/screens/AppInfoScreen.tsx +200 -238
- package/src/ui/screens/AvatarCropScreen.tsx +17 -4
- package/src/ui/screens/ConnectedAppsScreen.tsx +16 -34
- package/src/ui/screens/CreateManagedAccountScreen.tsx +94 -170
- package/src/ui/screens/EditProfileFieldScreen.tsx +77 -190
- package/src/ui/screens/FAQScreen.tsx +77 -208
- package/src/ui/screens/FeedbackScreen.tsx +330 -239
- package/src/ui/screens/FileManagementScreen.tsx +20 -20
- package/src/ui/screens/HelpSupportScreen.tsx +67 -82
- package/src/ui/screens/HistoryViewScreen.tsx +32 -38
- package/src/ui/screens/LanguageSelectorScreen.tsx +79 -93
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +81 -164
- package/src/ui/screens/LegalDocumentsScreen.tsx +184 -123
- package/src/ui/screens/ManageAccountScreen.tsx +48 -114
- package/src/ui/screens/NotificationsScreen.tsx +107 -106
- package/src/ui/screens/OxyAuthScreen.tsx +76 -109
- package/src/ui/screens/PaymentGatewayScreen.tsx +16 -7
- package/src/ui/screens/PreferencesScreen.tsx +96 -116
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +419 -872
- package/src/ui/screens/PrivacySettingsScreen.tsx +203 -185
- package/src/ui/screens/ProfileScreen.tsx +162 -246
- package/src/ui/screens/SavesCollectionsScreen.tsx +78 -125
- package/src/ui/screens/SearchSettingsScreen.tsx +52 -41
- package/src/ui/screens/UserLinksScreen.tsx +18 -25
- package/src/ui/screens/UserListScreen.tsx +95 -188
- package/src/ui/screens/WelcomeNewUserScreen.tsx +109 -36
- package/src/ui/screens/trust/TrustAboutScreen.tsx +52 -41
- package/src/ui/screens/trust/TrustCenterScreen.tsx +184 -222
- package/src/ui/screens/trust/TrustFAQScreen.tsx +64 -124
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +190 -67
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +147 -182
- package/src/ui/screens/trust/TrustRulesScreen.tsx +77 -50
- package/src/ui/utils/activeAuthuser.ts +15 -9
- package/src/ui/utils/avatarUtils.ts +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js +0 -72
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +0 -261
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/module/ui/components/feedback/FormInput.js +0 -67
- package/lib/module/ui/components/feedback/FormInput.js.map +0 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +0 -256
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/FormInput.d.ts +0 -20
- package/lib/typescript/module/ui/components/feedback/FormInput.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
- package/src/ui/components/feedback/FormInput.tsx +0 -84
- package/src/ui/components/feedback/feedbackStyles.ts +0 -246
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
View,
|
|
5
|
-
Text,
|
|
6
|
-
TouchableOpacity,
|
|
7
|
-
StyleSheet,
|
|
8
|
-
ActivityIndicator,
|
|
9
|
-
ScrollView,
|
|
10
|
-
Platform,
|
|
11
|
-
} from 'react-native';
|
|
3
|
+
import { View, ScrollView, StyleSheet } from 'react-native';
|
|
12
4
|
import type { ReputationTransaction, TrustTier } from '@oxyhq/core';
|
|
13
|
-
import type { BaseScreenProps } from '../../types/navigation';
|
|
14
5
|
import { Ionicons } from '@expo/vector-icons';
|
|
15
|
-
import {
|
|
6
|
+
import { Chip } from '@oxyhq/bloom/chip';
|
|
16
7
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
8
|
+
import { H1, Text } from '@oxyhq/bloom/typography';
|
|
9
|
+
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
10
|
+
import type { BaseScreenProps } from '../../types/navigation';
|
|
11
|
+
import Header from '../../components/Header';
|
|
12
|
+
import { SettingsIcon } from '../../components/SettingsIcon';
|
|
13
|
+
import LoadingState from '../../components/LoadingState';
|
|
14
|
+
import { useI18n } from '../../hooks/useI18n';
|
|
21
15
|
import { useOxy } from '../../context/OxyContext';
|
|
22
16
|
import { getTrustTierLabel } from './trustTier';
|
|
23
17
|
|
|
24
18
|
const TrustCenterScreen: React.FC<BaseScreenProps> = ({
|
|
25
|
-
|
|
26
|
-
navigate,
|
|
19
|
+
onClose,
|
|
27
20
|
goBack,
|
|
21
|
+
navigate,
|
|
28
22
|
}) => {
|
|
29
23
|
// Use useOxy() hook for OxyContext values
|
|
30
24
|
const { user, oxyServices, isAuthenticated } = useOxy();
|
|
@@ -36,20 +30,7 @@ const TrustCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
36
30
|
const [error, setError] = useState<string | null>(null);
|
|
37
31
|
|
|
38
32
|
const bloomTheme = useTheme();
|
|
39
|
-
const
|
|
40
|
-
const normalizedColorScheme = normalizeColorScheme(colorScheme);
|
|
41
|
-
const themeColors = Colors[normalizedColorScheme];
|
|
42
|
-
// Override primaryColor for Oxy Trust screens (purple instead of blue)
|
|
43
|
-
const primaryColor = '#d169e5';
|
|
44
|
-
const dangerColor = bloomTheme.colors.error;
|
|
45
|
-
const mutedTextColor = bloomTheme.colors.textTertiary;
|
|
46
|
-
|
|
47
|
-
// Icon colors from theme
|
|
48
|
-
const iconLeaderboard = themeColors.iconPayments;
|
|
49
|
-
const iconRules = themeColors.iconSecurity;
|
|
50
|
-
const iconAbout = themeColors.iconPayments;
|
|
51
|
-
const iconRewards = themeColors.iconStorage;
|
|
52
|
-
const iconFAQ = themeColors.iconPersonalInfo;
|
|
33
|
+
const primaryColor = bloomTheme.colors.primary;
|
|
53
34
|
|
|
54
35
|
useEffect(() => {
|
|
55
36
|
if (!user) return;
|
|
@@ -78,232 +59,213 @@ const TrustCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
78
59
|
[trustTier, t],
|
|
79
60
|
);
|
|
80
61
|
|
|
62
|
+
const title = t('trust.center.title') || 'Trust Center';
|
|
63
|
+
|
|
81
64
|
if (!isAuthenticated) {
|
|
82
65
|
return (
|
|
83
|
-
<View
|
|
84
|
-
<
|
|
66
|
+
<View className="flex-1 bg-bg">
|
|
67
|
+
<Header title={title} onBack={goBack || onClose} elevation="subtle" />
|
|
68
|
+
<View style={styles.center}>
|
|
69
|
+
<Text className="text-text font-medium text-base">
|
|
70
|
+
{t('common.status.notSignedIn') || 'Not signed in'}
|
|
71
|
+
</Text>
|
|
72
|
+
</View>
|
|
85
73
|
</View>
|
|
86
74
|
);
|
|
87
75
|
}
|
|
88
76
|
|
|
89
77
|
if (isLoading) {
|
|
90
78
|
return (
|
|
91
|
-
<View
|
|
92
|
-
<
|
|
79
|
+
<View className="flex-1 bg-bg">
|
|
80
|
+
<Header title={title} onBack={goBack || onClose} elevation="subtle" />
|
|
81
|
+
<View style={styles.center}>
|
|
82
|
+
<LoadingState color={primaryColor} />
|
|
83
|
+
</View>
|
|
93
84
|
</View>
|
|
94
85
|
);
|
|
95
86
|
}
|
|
96
87
|
|
|
97
88
|
return (
|
|
98
|
-
<View
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
<View className="flex-1 bg-bg">
|
|
90
|
+
<Header title={title} onBack={goBack || onClose} elevation="subtle" />
|
|
91
|
+
<ScrollView
|
|
92
|
+
className="flex-1"
|
|
93
|
+
contentContainerClassName="px-screen-margin pb-space-24"
|
|
94
|
+
>
|
|
95
|
+
{/* Balance hero card */}
|
|
96
|
+
<View className="items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16">
|
|
97
|
+
<H1 style={{ color: primaryColor }}>{reputationTotal ?? 0}</H1>
|
|
98
|
+
<Text className="text-text-tertiary text-base mt-space-2 mb-space-12">
|
|
103
99
|
{t('trust.center.balance') || 'Reputation Balance'}
|
|
104
100
|
</Text>
|
|
105
|
-
{trustTierLabel
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<View style={[styles.actionIcon, { backgroundColor: iconAbout }]}>
|
|
127
|
-
<Ionicons name="star-outline" size={28} color={darkenColor(iconAbout)} />
|
|
128
|
-
</View>
|
|
129
|
-
<Text style={[styles.actionLabel, { color: mutedTextColor }]}>{t('trust.center.actions.about') || 'About'}</Text>
|
|
130
|
-
</TouchableOpacity>
|
|
131
|
-
</View>
|
|
132
|
-
<View style={styles.actionRow}>
|
|
133
|
-
<TouchableOpacity style={styles.actionIconWrapper} onPress={() => navigate?.('TrustRewards')}>
|
|
134
|
-
<View style={[styles.actionIcon, { backgroundColor: iconRewards }]}>
|
|
135
|
-
<Ionicons name="gift-outline" size={28} color={darkenColor(iconRewards)} />
|
|
136
|
-
</View>
|
|
137
|
-
<Text style={[styles.actionLabel, { color: mutedTextColor }]}>{t('trust.center.actions.rewards') || 'Rewards'}</Text>
|
|
138
|
-
</TouchableOpacity>
|
|
139
|
-
<TouchableOpacity style={styles.actionIconWrapper} onPress={() => navigate?.('TrustFAQ')}>
|
|
140
|
-
<View style={[styles.actionIcon, { backgroundColor: iconFAQ }]}>
|
|
141
|
-
<Ionicons name="help-circle-outline" size={28} color={darkenColor(iconFAQ)} />
|
|
142
|
-
</View>
|
|
143
|
-
<Text style={[styles.actionLabel, { color: mutedTextColor }]}>{t('trust.center.actions.faq') || 'FAQ'}</Text>
|
|
144
|
-
</TouchableOpacity>
|
|
145
|
-
</View>
|
|
146
|
-
</View>
|
|
147
|
-
<Text style={[styles.infoText, { color: mutedTextColor }]}>
|
|
148
|
-
{t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'}
|
|
101
|
+
{trustTierLabel ? (
|
|
102
|
+
<Chip
|
|
103
|
+
variant="soft"
|
|
104
|
+
color="primary"
|
|
105
|
+
startIcon={
|
|
106
|
+
<Ionicons
|
|
107
|
+
name="shield-checkmark-outline"
|
|
108
|
+
size={14}
|
|
109
|
+
color={primaryColor}
|
|
110
|
+
/>
|
|
111
|
+
}
|
|
112
|
+
>
|
|
113
|
+
{trustTierLabel}
|
|
114
|
+
</Chip>
|
|
115
|
+
) : null}
|
|
116
|
+
<Text
|
|
117
|
+
className="text-text-tertiary text-sm text-center mt-space-16"
|
|
118
|
+
style={styles.infoText}
|
|
119
|
+
>
|
|
120
|
+
{t('trust.center.info') ||
|
|
121
|
+
'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'}
|
|
149
122
|
</Text>
|
|
150
123
|
</View>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
124
|
+
|
|
125
|
+
{/* Trust actions */}
|
|
126
|
+
<SettingsListGroup
|
|
127
|
+
title={t('trust.center.actions.title') || 'Explore'}
|
|
128
|
+
>
|
|
129
|
+
<SettingsListItem
|
|
130
|
+
icon={
|
|
131
|
+
<SettingsIcon
|
|
132
|
+
name="trophy"
|
|
133
|
+
color={bloomTheme.colors.warning}
|
|
134
|
+
/>
|
|
135
|
+
}
|
|
136
|
+
title={t('trust.center.actions.leaderboard') || 'Leaderboard'}
|
|
137
|
+
onPress={() => navigate?.('TrustLeaderboard')}
|
|
138
|
+
/>
|
|
139
|
+
<SettingsListItem
|
|
140
|
+
icon={
|
|
141
|
+
<SettingsIcon
|
|
142
|
+
name="file-document"
|
|
143
|
+
color={bloomTheme.colors.info}
|
|
144
|
+
/>
|
|
145
|
+
}
|
|
146
|
+
title={t('trust.center.actions.rules') || 'Rules'}
|
|
147
|
+
onPress={() => navigate?.('TrustRules')}
|
|
148
|
+
/>
|
|
149
|
+
<SettingsListItem
|
|
150
|
+
icon={
|
|
151
|
+
<SettingsIcon
|
|
152
|
+
name="gift"
|
|
153
|
+
color={bloomTheme.colors.success}
|
|
154
|
+
/>
|
|
155
|
+
}
|
|
156
|
+
title={t('trust.center.actions.rewards') || 'Rewards'}
|
|
157
|
+
onPress={() => navigate?.('TrustRewards')}
|
|
158
|
+
/>
|
|
159
|
+
<SettingsListItem
|
|
160
|
+
icon={
|
|
161
|
+
<SettingsIcon
|
|
162
|
+
name="star"
|
|
163
|
+
color={bloomTheme.colors.primary}
|
|
164
|
+
/>
|
|
165
|
+
}
|
|
166
|
+
title={t('trust.center.actions.about') || 'About'}
|
|
167
|
+
onPress={() => navigate?.('AboutTrust')}
|
|
168
|
+
/>
|
|
169
|
+
<SettingsListItem
|
|
170
|
+
icon={
|
|
171
|
+
<SettingsIcon
|
|
172
|
+
name="help-circle"
|
|
173
|
+
color={bloomTheme.colors.secondary}
|
|
174
|
+
/>
|
|
175
|
+
}
|
|
176
|
+
title={t('trust.center.actions.faq') || 'FAQ'}
|
|
177
|
+
onPress={() => navigate?.('TrustFAQ')}
|
|
178
|
+
/>
|
|
179
|
+
</SettingsListGroup>
|
|
180
|
+
|
|
181
|
+
{/* Reputation history */}
|
|
182
|
+
<SettingsListGroup
|
|
183
|
+
title={t('trust.center.history') || 'Reputation History'}
|
|
184
|
+
>
|
|
155
185
|
{transactions.length === 0 ? (
|
|
156
|
-
<
|
|
157
|
-
{
|
|
158
|
-
|
|
186
|
+
<SettingsListItem
|
|
187
|
+
icon={
|
|
188
|
+
<SettingsIcon
|
|
189
|
+
name="history"
|
|
190
|
+
color={bloomTheme.colors.textTertiary}
|
|
191
|
+
/>
|
|
192
|
+
}
|
|
193
|
+
title={
|
|
194
|
+
t('trust.center.noHistory') || 'No reputation history yet.'
|
|
195
|
+
}
|
|
196
|
+
showChevron={false}
|
|
197
|
+
disabled
|
|
198
|
+
/>
|
|
159
199
|
) : (
|
|
160
200
|
transactions.map((entry) => (
|
|
161
|
-
<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
{
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
201
|
+
<SettingsListItem
|
|
202
|
+
key={entry.id}
|
|
203
|
+
icon={
|
|
204
|
+
<SettingsIcon
|
|
205
|
+
name={
|
|
206
|
+
entry.points > 0
|
|
207
|
+
? 'plus-circle'
|
|
208
|
+
: 'minus-circle'
|
|
209
|
+
}
|
|
210
|
+
color={
|
|
211
|
+
entry.points > 0
|
|
212
|
+
? bloomTheme.colors.success
|
|
213
|
+
: bloomTheme.colors.error
|
|
214
|
+
}
|
|
215
|
+
/>
|
|
216
|
+
}
|
|
217
|
+
title={
|
|
218
|
+
entry.reason ||
|
|
219
|
+
entry.actionType ||
|
|
220
|
+
(t('trust.center.noDescription') || 'No description')
|
|
221
|
+
}
|
|
222
|
+
description={
|
|
223
|
+
`${entry.category}${
|
|
224
|
+
entry.createdAt
|
|
225
|
+
? ` · ${new Date(entry.createdAt).toLocaleString()}`
|
|
226
|
+
: ''
|
|
227
|
+
}`
|
|
228
|
+
}
|
|
229
|
+
rightElement={
|
|
230
|
+
<Chip
|
|
231
|
+
variant="soft"
|
|
232
|
+
size="small"
|
|
233
|
+
color={entry.points > 0 ? 'success' : 'error'}
|
|
234
|
+
>
|
|
235
|
+
{`${entry.points > 0 ? '+' : ''}${entry.points}`}
|
|
236
|
+
</Chip>
|
|
237
|
+
}
|
|
238
|
+
showChevron={false}
|
|
239
|
+
/>
|
|
177
240
|
))
|
|
178
241
|
)}
|
|
179
|
-
</
|
|
180
|
-
|
|
242
|
+
</SettingsListGroup>
|
|
243
|
+
|
|
244
|
+
{error ? (
|
|
245
|
+
<Text
|
|
246
|
+
className="text-sm text-center mt-space-16"
|
|
247
|
+
style={{ color: bloomTheme.colors.error }}
|
|
248
|
+
>
|
|
249
|
+
{error}
|
|
250
|
+
</Text>
|
|
251
|
+
) : null}
|
|
181
252
|
</ScrollView>
|
|
182
253
|
</View>
|
|
183
254
|
);
|
|
184
255
|
};
|
|
185
256
|
|
|
257
|
+
// Layout-only styles: flex centering for the empty/loading branches and the
|
|
258
|
+
// info caption's measured max width. No color, spacing, radius, or typography
|
|
259
|
+
// roles live here — those use Bloom token classes.
|
|
186
260
|
const styles = StyleSheet.create({
|
|
187
|
-
|
|
188
|
-
flex: 1,
|
|
189
|
-
},
|
|
190
|
-
scrollView: {
|
|
261
|
+
center: {
|
|
191
262
|
flex: 1,
|
|
192
|
-
},
|
|
193
|
-
scrollContainer: {
|
|
194
|
-
padding: 0,
|
|
195
|
-
alignItems: 'center',
|
|
196
|
-
},
|
|
197
|
-
walletHeader: {
|
|
198
|
-
alignItems: 'center',
|
|
199
|
-
paddingTop: 36,
|
|
200
|
-
paddingBottom: 24,
|
|
201
|
-
width: '100%',
|
|
202
|
-
backgroundColor: 'transparent',
|
|
203
|
-
},
|
|
204
|
-
reputationLabel: {
|
|
205
|
-
fontSize: 16,
|
|
206
|
-
marginBottom: 12,
|
|
207
|
-
},
|
|
208
|
-
reputationAmount: {
|
|
209
|
-
fontSize: 48,
|
|
210
|
-
fontWeight: 'bold',
|
|
211
|
-
marginBottom: 4,
|
|
212
|
-
},
|
|
213
|
-
tierBadge: {
|
|
214
|
-
flexDirection: 'row',
|
|
215
|
-
alignItems: 'center',
|
|
216
|
-
gap: 6,
|
|
217
|
-
borderWidth: 1,
|
|
218
|
-
borderRadius: 999,
|
|
219
|
-
paddingHorizontal: 12,
|
|
220
|
-
paddingVertical: 5,
|
|
221
|
-
marginBottom: 18,
|
|
222
|
-
},
|
|
223
|
-
tierBadgeText: {
|
|
224
|
-
fontSize: 13,
|
|
225
|
-
fontWeight: '600',
|
|
226
|
-
},
|
|
227
|
-
actionContainer: {
|
|
228
|
-
marginBottom: 18,
|
|
229
|
-
gap: 8,
|
|
230
|
-
},
|
|
231
|
-
actionRow: {
|
|
232
|
-
flexDirection: 'row',
|
|
233
|
-
justifyContent: 'center',
|
|
234
|
-
gap: 2,
|
|
235
|
-
},
|
|
236
|
-
actionIconWrapper: {
|
|
237
|
-
alignItems: 'center',
|
|
238
|
-
width: 72,
|
|
239
|
-
},
|
|
240
|
-
actionIcon: {
|
|
241
|
-
width: 56,
|
|
242
|
-
height: 56,
|
|
243
|
-
borderRadius: 28,
|
|
244
263
|
alignItems: 'center',
|
|
245
264
|
justifyContent: 'center',
|
|
246
|
-
marginBottom: 6,
|
|
247
|
-
},
|
|
248
|
-
actionIconText: {
|
|
249
|
-
fontSize: 28,
|
|
250
|
-
},
|
|
251
|
-
actionLabel: {
|
|
252
|
-
fontSize: 10,
|
|
253
265
|
},
|
|
254
266
|
infoText: {
|
|
255
|
-
fontSize: 13,
|
|
256
|
-
textAlign: 'center',
|
|
257
|
-
marginTop: 8,
|
|
258
|
-
marginBottom: 8,
|
|
259
267
|
maxWidth: 320,
|
|
260
268
|
},
|
|
261
|
-
sectionTitle: {
|
|
262
|
-
fontSize: 18,
|
|
263
|
-
fontWeight: Platform.OS === 'web' ? '600' : undefined,
|
|
264
|
-
marginTop: 8,
|
|
265
|
-
alignSelf: 'flex-start',
|
|
266
|
-
marginLeft: 24,
|
|
267
|
-
},
|
|
268
|
-
historyContainer: {
|
|
269
|
-
borderRadius: 15,
|
|
270
|
-
overflow: 'hidden',
|
|
271
|
-
marginBottom: 20,
|
|
272
|
-
width: '100%',
|
|
273
|
-
paddingHorizontal: 12,
|
|
274
|
-
},
|
|
275
|
-
historyItem: {
|
|
276
|
-
padding: 14,
|
|
277
|
-
borderBottomWidth: 1,
|
|
278
|
-
},
|
|
279
|
-
historyPoints: {
|
|
280
|
-
fontSize: 16,
|
|
281
|
-
fontWeight: '700',
|
|
282
|
-
},
|
|
283
|
-
historyDesc: {
|
|
284
|
-
fontSize: 15,
|
|
285
|
-
marginTop: 2,
|
|
286
|
-
},
|
|
287
|
-
historyMetaRow: {
|
|
288
|
-
flexDirection: 'row',
|
|
289
|
-
alignItems: 'center',
|
|
290
|
-
justifyContent: 'space-between',
|
|
291
|
-
marginTop: 2,
|
|
292
|
-
},
|
|
293
|
-
historyCategory: {
|
|
294
|
-
fontSize: 12,
|
|
295
|
-
fontWeight: '600',
|
|
296
|
-
textTransform: 'capitalize',
|
|
297
|
-
},
|
|
298
|
-
historyDate: {
|
|
299
|
-
fontSize: 13,
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
message: {
|
|
303
|
-
fontSize: 16,
|
|
304
|
-
textAlign: 'center',
|
|
305
|
-
marginTop: 24,
|
|
306
|
-
},
|
|
307
269
|
});
|
|
308
270
|
|
|
309
271
|
export default TrustCenterScreen;
|