@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,44 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { View,
|
|
5
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
4
|
+
import { View, ScrollView } from 'react-native';
|
|
6
5
|
import Header from "../../components/Header.js";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
6
|
+
import EmptyState from "../../components/EmptyState.js";
|
|
7
|
+
import { SearchInput } from '@oxyhq/bloom/search-input';
|
|
8
|
+
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@oxyhq/bloom/accordion';
|
|
9
|
+
import { Text } from '@oxyhq/bloom/typography';
|
|
9
10
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
10
|
-
import {
|
|
11
|
-
import { useColorScheme } from "../../hooks/useColorScheme.js";
|
|
12
|
-
import { Colors } from "../../constants/theme.js";
|
|
11
|
+
import { useI18n } from "../../hooks/useI18n.js";
|
|
13
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const FAQ_KEYS = ['what', 'earn', 'lose', 'use', 'transfer', 'support'];
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
|
-
* TrustFAQScreen
|
|
16
|
+
* TrustFAQScreen
|
|
18
17
|
*
|
|
19
|
-
*
|
|
20
|
-
* -
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* - React.memo wrapper to prevent re-renders when props haven't changed
|
|
18
|
+
* Frequently asked questions about Oxy Trust, rendered with the shared Bloom
|
|
19
|
+
* Accordion (single-expand) + SearchInput. Styling is centralized Bloom token
|
|
20
|
+
* classes; the Bloom Accordion owns its own expand/collapse animation, so no
|
|
21
|
+
* `LayoutAnimation` is used here.
|
|
24
22
|
*/
|
|
25
23
|
const TrustFAQScreen = ({
|
|
26
|
-
goBack
|
|
27
|
-
theme
|
|
24
|
+
goBack
|
|
28
25
|
}) => {
|
|
29
26
|
const {
|
|
30
27
|
t
|
|
31
28
|
} = useI18n();
|
|
32
|
-
const [expanded, setExpanded] = useState(null);
|
|
33
|
-
const [search, setSearch] = useState('');
|
|
34
|
-
|
|
35
|
-
// Memoize theme-related calculations to prevent unnecessary recalculations
|
|
36
29
|
const bloomTheme = useTheme();
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const colors = Colors[normalizedColorScheme];
|
|
40
|
-
|
|
41
|
-
// Memoize filtered FAQs to prevent filtering on every render
|
|
30
|
+
const [search, setSearch] = useState('');
|
|
31
|
+
const [expanded, setExpanded] = useState(undefined);
|
|
42
32
|
const faqs = useMemo(() => FAQ_KEYS.map(key => ({
|
|
43
33
|
id: key,
|
|
44
34
|
q: t(`trust.faq.items.${key}.q`) || '',
|
|
@@ -49,132 +39,52 @@ const TrustFAQScreen = ({
|
|
|
49
39
|
const searchLower = search.toLowerCase();
|
|
50
40
|
return faqs.filter(faq => faq.q.toLowerCase().includes(searchLower) || faq.a.toLowerCase().includes(searchLower));
|
|
51
41
|
}, [search, faqs]);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const handleToggle = useCallback(id => {
|
|
55
|
-
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
56
|
-
setExpanded(prev => prev === id ? null : id);
|
|
42
|
+
const handleAccordionChange = useCallback(value => {
|
|
43
|
+
setExpanded(Array.isArray(value) ? value[0] : value);
|
|
57
44
|
}, []);
|
|
58
45
|
return /*#__PURE__*/_jsxs(View, {
|
|
59
|
-
|
|
60
|
-
backgroundColor: bloomTheme.colors.background
|
|
61
|
-
}],
|
|
46
|
+
className: "flex-1 bg-bg",
|
|
62
47
|
children: [/*#__PURE__*/_jsx(Header, {
|
|
63
48
|
title: t('trust.faq.title') || 'Trust FAQ',
|
|
64
49
|
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust',
|
|
65
50
|
subtitleVariant: "muted",
|
|
66
51
|
onBack: goBack,
|
|
67
52
|
elevation: "subtle"
|
|
68
|
-
}), /*#__PURE__*/
|
|
69
|
-
|
|
53
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
54
|
+
className: "px-screen-margin pt-space-20 pb-space-12",
|
|
55
|
+
children: /*#__PURE__*/_jsx(SearchInput, {
|
|
56
|
+
label: t('trust.faq.search') || 'Search FAQ...',
|
|
57
|
+
value: search,
|
|
58
|
+
onChangeText: setSearch,
|
|
59
|
+
onClearText: () => setSearch(''),
|
|
60
|
+
accessibilityLabel: "Search Trust FAQ"
|
|
61
|
+
})
|
|
62
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
63
|
+
className: "flex-1 px-screen-margin",
|
|
70
64
|
showsVerticalScrollIndicator: false,
|
|
71
|
-
children:
|
|
72
|
-
|
|
73
|
-
backgroundColor: colors.card
|
|
74
|
-
}],
|
|
75
|
-
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
76
|
-
name: "search",
|
|
77
|
-
size: 22,
|
|
78
|
-
color: colors.icon
|
|
79
|
-
}), /*#__PURE__*/_jsx(TextInput, {
|
|
80
|
-
style: [styles.searchInput, {
|
|
81
|
-
color: bloomTheme.colors.text
|
|
82
|
-
}],
|
|
83
|
-
placeholder: t('trust.faq.search') || 'Search FAQ...',
|
|
84
|
-
placeholderTextColor: bloomTheme.colors.textTertiary,
|
|
85
|
-
value: search,
|
|
86
|
-
onChangeText: setSearch,
|
|
87
|
-
returnKeyType: "search"
|
|
88
|
-
})]
|
|
89
|
-
}), filteredFaqs.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
90
|
-
style: [styles.noResults, {
|
|
91
|
-
color: colors.secondaryText
|
|
92
|
-
}],
|
|
93
|
-
children: t('trust.faq.noResults', {
|
|
65
|
+
children: filteredFaqs.length === 0 ? /*#__PURE__*/_jsx(EmptyState, {
|
|
66
|
+
message: t('trust.faq.noResults', {
|
|
94
67
|
query: search
|
|
95
|
-
}) || `No FAQ items found matching "${search}"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
})
|
|
114
|
-
}), isExpanded && /*#__PURE__*/_jsx(View, {
|
|
115
|
-
style: [styles.answerContainer, {
|
|
116
|
-
backgroundColor: colors.card
|
|
117
|
-
}, isLast && styles.lastAnswerContainer],
|
|
118
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
119
|
-
style: [styles.answer, {
|
|
120
|
-
color: bloomTheme.colors.text
|
|
121
|
-
}],
|
|
122
|
-
children: faq.a
|
|
123
|
-
})
|
|
124
|
-
})]
|
|
125
|
-
}, faq.id);
|
|
126
|
-
})
|
|
127
|
-
})]
|
|
68
|
+
}) || `No FAQ items found matching "${search}"`,
|
|
69
|
+
textColor: bloomTheme.colors.text
|
|
70
|
+
}) : /*#__PURE__*/_jsx(Accordion, {
|
|
71
|
+
type: "single",
|
|
72
|
+
value: expanded,
|
|
73
|
+
onValueChange: handleAccordionChange,
|
|
74
|
+
children: filteredFaqs.map(faq => /*#__PURE__*/_jsxs(AccordionItem, {
|
|
75
|
+
value: faq.id,
|
|
76
|
+
children: [/*#__PURE__*/_jsx(AccordionTrigger, {
|
|
77
|
+
children: faq.q
|
|
78
|
+
}), /*#__PURE__*/_jsx(AccordionContent, {
|
|
79
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
80
|
+
className: "font-sans text-bodyMedium text-text-secondary",
|
|
81
|
+
children: faq.a
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
}, faq.id))
|
|
85
|
+
})
|
|
128
86
|
})]
|
|
129
87
|
});
|
|
130
88
|
};
|
|
131
|
-
const styles = StyleSheet.create({
|
|
132
|
-
container: {
|
|
133
|
-
flex: 1
|
|
134
|
-
},
|
|
135
|
-
contentContainer: {
|
|
136
|
-
paddingHorizontal: 24,
|
|
137
|
-
paddingTop: 20,
|
|
138
|
-
paddingBottom: 40
|
|
139
|
-
},
|
|
140
|
-
searchContainer: {
|
|
141
|
-
flexDirection: 'row',
|
|
142
|
-
alignItems: 'center',
|
|
143
|
-
paddingHorizontal: 14,
|
|
144
|
-
paddingVertical: 10,
|
|
145
|
-
marginBottom: 12,
|
|
146
|
-
borderRadius: 999,
|
|
147
|
-
gap: 10
|
|
148
|
-
},
|
|
149
|
-
searchInput: {
|
|
150
|
-
flex: 1,
|
|
151
|
-
fontSize: 16,
|
|
152
|
-
lineHeight: 20
|
|
153
|
-
},
|
|
154
|
-
groupedSectionContainer: {
|
|
155
|
-
width: '100%'
|
|
156
|
-
},
|
|
157
|
-
faqItemWrapper: {
|
|
158
|
-
width: '100%'
|
|
159
|
-
},
|
|
160
|
-
answerContainer: {
|
|
161
|
-
paddingHorizontal: 10,
|
|
162
|
-
paddingTop: 4,
|
|
163
|
-
paddingBottom: 12
|
|
164
|
-
},
|
|
165
|
-
lastAnswerContainer: {
|
|
166
|
-
borderBottomLeftRadius: 18,
|
|
167
|
-
borderBottomRightRadius: 18
|
|
168
|
-
},
|
|
169
|
-
answer: {
|
|
170
|
-
fontSize: 14,
|
|
171
|
-
lineHeight: 20
|
|
172
|
-
},
|
|
173
|
-
noResults: {
|
|
174
|
-
fontSize: 16,
|
|
175
|
-
marginTop: 32,
|
|
176
|
-
textAlign: 'center'
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
89
|
export default /*#__PURE__*/React.memo(TrustFAQScreen);
|
|
180
90
|
//# sourceMappingURL=TrustFAQScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useMemo","useCallback","View","
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","useCallback","View","ScrollView","Header","EmptyState","SearchInput","Accordion","AccordionItem","AccordionTrigger","AccordionContent","Text","useTheme","useI18n","jsx","_jsx","jsxs","_jsxs","FAQ_KEYS","TrustFAQScreen","goBack","t","bloomTheme","search","setSearch","expanded","setExpanded","undefined","faqs","map","key","id","q","a","filteredFaqs","trim","searchLower","toLowerCase","filter","faq","includes","handleAccordionChange","value","Array","isArray","className","children","title","subtitle","subtitleVariant","onBack","elevation","label","onChangeText","onClearText","accessibilityLabel","showsVerticalScrollIndicator","length","message","query","textColor","colors","text","type","onValueChange","memo"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustFAQScreen.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,162 +1,229 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import { View,
|
|
3
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { View, StyleSheet, ActivityIndicator, FlatList, TouchableOpacity } from 'react-native';
|
|
5
|
+
import { getAccountDisplayName, logger } from '@oxyhq/core';
|
|
6
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
7
|
+
import { H6, Text } from '@oxyhq/bloom/typography';
|
|
8
|
+
import { Chip } from '@oxyhq/bloom/chip';
|
|
9
|
+
import { Button } from '@oxyhq/bloom/button';
|
|
10
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
5
11
|
import Avatar from "../../components/Avatar.js";
|
|
6
12
|
import Header from "../../components/Header.js";
|
|
7
13
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
8
|
-
import { useTheme } from '@oxyhq/bloom/theme';
|
|
9
14
|
import { useOxy } from "../../context/OxyContext.js";
|
|
10
15
|
import { getTrustTierLabel } from "./trustTier.js";
|
|
11
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const AVATAR_SIZE = 40;
|
|
18
|
+
const EMPTY_ICON_SIZE = 64;
|
|
19
|
+
const ERROR_ICON_SIZE = 48;
|
|
20
|
+
/** Ranks within the podium (1–3) get a highlighted row surface. */
|
|
21
|
+
const PODIUM_RANK = 3;
|
|
12
22
|
const TrustLeaderboardScreen = ({
|
|
13
23
|
goBack,
|
|
14
|
-
theme,
|
|
15
24
|
navigate
|
|
16
25
|
}) => {
|
|
17
|
-
// Use useOxy() hook for OxyContext values
|
|
18
26
|
const {
|
|
19
|
-
oxyServices
|
|
27
|
+
oxyServices,
|
|
28
|
+
user: currentUser
|
|
20
29
|
} = useOxy();
|
|
21
30
|
const {
|
|
22
|
-
t
|
|
31
|
+
t,
|
|
32
|
+
locale
|
|
23
33
|
} = useI18n();
|
|
34
|
+
const bloomTheme = useTheme();
|
|
24
35
|
const [leaderboard, setLeaderboard] = useState([]);
|
|
25
36
|
const [isLoading, setIsLoading] = useState(true);
|
|
26
37
|
const [error, setError] = useState(null);
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const primaryColor = '#d169e5';
|
|
30
|
-
useEffect(() => {
|
|
38
|
+
const currentUserId = currentUser?.id ?? '';
|
|
39
|
+
const loadLeaderboard = useCallback(() => {
|
|
31
40
|
setIsLoading(true);
|
|
32
41
|
setError(null);
|
|
33
|
-
oxyServices.getReputationLeaderboard().then(data => setLeaderboard(Array.isArray(data) ? data : [])).catch(err =>
|
|
42
|
+
oxyServices.getReputationLeaderboard().then(data => setLeaderboard(Array.isArray(data) ? data : [])).catch(err => {
|
|
43
|
+
logger.error('Failed to load trust leaderboard', err instanceof Error ? err : new Error(String(err)), {
|
|
44
|
+
component: 'TrustLeaderboardScreen'
|
|
45
|
+
});
|
|
46
|
+
setError(err instanceof Error ? err.message : null);
|
|
47
|
+
}).finally(() => setIsLoading(false));
|
|
34
48
|
}, [oxyServices]);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
loadLeaderboard();
|
|
51
|
+
}, [loadLeaderboard]);
|
|
52
|
+
const title = t('trust.leaderboard.title') || 'Trust Leaderboard';
|
|
53
|
+
const subtitle = t('trust.leaderboard.subtitle') || 'Top contributors in the community';
|
|
54
|
+
const handleEntryPress = useCallback(entry => {
|
|
55
|
+
navigate?.('Profile', {
|
|
56
|
+
userId: entry.user.id,
|
|
57
|
+
username: entry.user.username
|
|
58
|
+
});
|
|
59
|
+
}, [navigate]);
|
|
60
|
+
const renderEntry = useCallback(({
|
|
61
|
+
item
|
|
62
|
+
}) => {
|
|
63
|
+
const displayName = getAccountDisplayName(item.user, locale);
|
|
64
|
+
const isViewer = currentUserId !== '' && item.user.id === currentUserId;
|
|
65
|
+
const isPodium = item.rank <= PODIUM_RANK;
|
|
66
|
+
// Viewer's own row and podium ranks get a subtle highlighted surface.
|
|
67
|
+
const highlightClass = isViewer || isPodium ? 'bg-fill-secondary' : '';
|
|
68
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
69
|
+
style: styles.row,
|
|
70
|
+
className: `px-screen-margin py-space-12 gap-space-12 rounded-radius-12 ${highlightClass}`,
|
|
71
|
+
onPress: () => handleEntryPress(item),
|
|
72
|
+
activeOpacity: 0.7,
|
|
73
|
+
accessibilityRole: "button",
|
|
74
|
+
accessibilityLabel: `${displayName}, ${t('trust.leaderboard.rankLabel', {
|
|
75
|
+
rank: item.rank
|
|
76
|
+
}) || `rank ${item.rank}`}`,
|
|
77
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
78
|
+
className: "text-text-secondary font-bold text-subtitle text-center",
|
|
79
|
+
style: styles.rank,
|
|
80
|
+
numberOfLines: 1,
|
|
81
|
+
children: item.rank
|
|
82
|
+
}), /*#__PURE__*/_jsx(Avatar, {
|
|
83
|
+
uri: item.user.avatar ? oxyServices.getFileDownloadUrl(item.user.avatar, 'thumb') : undefined,
|
|
84
|
+
name: displayName,
|
|
85
|
+
size: AVATAR_SIZE
|
|
86
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
87
|
+
style: styles.userColumn,
|
|
88
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
89
|
+
className: "text-text font-medium text-base",
|
|
90
|
+
numberOfLines: 1,
|
|
91
|
+
children: displayName
|
|
92
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
93
|
+
style: styles.tierRow,
|
|
94
|
+
className: "mt-space-4",
|
|
95
|
+
children: /*#__PURE__*/_jsx(Chip, {
|
|
96
|
+
size: "small",
|
|
97
|
+
variant: "soft",
|
|
98
|
+
color: isPodium ? 'primary' : 'default',
|
|
99
|
+
children: getTrustTierLabel(item.trustTier, t)
|
|
100
|
+
})
|
|
101
|
+
})]
|
|
102
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
103
|
+
className: "text-text font-bold text-base",
|
|
104
|
+
numberOfLines: 1,
|
|
105
|
+
children: item.total
|
|
106
|
+
})]
|
|
107
|
+
});
|
|
108
|
+
}, [oxyServices, locale, currentUserId, handleEntryPress, t]);
|
|
109
|
+
const keyExtractor = useCallback((item, index) => item.user.id || `entry-${index}`, []);
|
|
110
|
+
const ItemSeparator = useMemo(() => () => /*#__PURE__*/_jsx(View, {
|
|
111
|
+
style: styles.separator,
|
|
112
|
+
className: "border-b border-border-image"
|
|
113
|
+
}), []);
|
|
114
|
+
if (isLoading) {
|
|
115
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
116
|
+
className: "flex-1 bg-bg",
|
|
117
|
+
children: [/*#__PURE__*/_jsx(Header, {
|
|
118
|
+
title: title,
|
|
119
|
+
subtitle: subtitle,
|
|
120
|
+
onBack: goBack,
|
|
121
|
+
elevation: "subtle"
|
|
122
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
123
|
+
style: styles.center,
|
|
124
|
+
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
125
|
+
size: "large",
|
|
126
|
+
color: bloomTheme.colors.primary
|
|
127
|
+
})
|
|
128
|
+
})]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
if (error) {
|
|
132
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
133
|
+
className: "flex-1 bg-bg",
|
|
134
|
+
children: [/*#__PURE__*/_jsx(Header, {
|
|
135
|
+
title: title,
|
|
136
|
+
subtitle: subtitle,
|
|
137
|
+
onBack: goBack,
|
|
138
|
+
elevation: "subtle"
|
|
139
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
140
|
+
style: styles.center,
|
|
141
|
+
className: "px-space-32 gap-space-16",
|
|
142
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
143
|
+
name: "alert-circle",
|
|
144
|
+
size: ERROR_ICON_SIZE,
|
|
145
|
+
color: bloomTheme.colors.error
|
|
146
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
147
|
+
className: "text-text-secondary text-base text-center",
|
|
148
|
+
children: error || t('trust.leaderboard.error') || 'Failed to load leaderboard'
|
|
149
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
150
|
+
variant: "primary",
|
|
151
|
+
onPress: loadLeaderboard,
|
|
152
|
+
children: t('common.retry') || 'Retry'
|
|
153
|
+
})]
|
|
154
|
+
})]
|
|
155
|
+
});
|
|
156
|
+
}
|
|
35
157
|
return /*#__PURE__*/_jsxs(View, {
|
|
36
|
-
|
|
37
|
-
backgroundColor: bloomTheme.colors.background
|
|
38
|
-
}],
|
|
158
|
+
className: "flex-1 bg-bg",
|
|
39
159
|
children: [/*#__PURE__*/_jsx(Header, {
|
|
40
|
-
title:
|
|
41
|
-
subtitle:
|
|
160
|
+
title: title,
|
|
161
|
+
subtitle: subtitle,
|
|
42
162
|
onBack: goBack,
|
|
43
163
|
elevation: "subtle"
|
|
44
|
-
}),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
66
|
-
style: [styles.row, {
|
|
67
|
-
borderColor: bloomTheme.colors.border
|
|
68
|
-
}, entry.rank <= 3 && {
|
|
69
|
-
backgroundColor: bloomTheme.colors.primarySubtle
|
|
70
|
-
}],
|
|
71
|
-
onPress: () => navigate?.('Profile', {
|
|
72
|
-
userId: entry.user.id,
|
|
73
|
-
username
|
|
74
|
-
}),
|
|
75
|
-
activeOpacity: 0.7,
|
|
76
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
77
|
-
style: [styles.rank, {
|
|
78
|
-
color: primaryColor
|
|
79
|
-
}],
|
|
80
|
-
children: entry.rank
|
|
81
|
-
}), /*#__PURE__*/_jsx(Avatar, {
|
|
82
|
-
name: username || 'User',
|
|
83
|
-
size: 40,
|
|
84
|
-
style: styles.avatar
|
|
85
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
86
|
-
style: styles.userColumn,
|
|
87
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
88
|
-
style: [styles.username, {
|
|
89
|
-
color: bloomTheme.colors.text
|
|
90
|
-
}],
|
|
91
|
-
numberOfLines: 1,
|
|
92
|
-
children: displayName
|
|
93
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
94
|
-
style: [styles.tier, {
|
|
95
|
-
color: bloomTheme.colors.textTertiary
|
|
96
|
-
}],
|
|
97
|
-
numberOfLines: 1,
|
|
98
|
-
children: getTrustTierLabel(entry.trustTier, t)
|
|
99
|
-
})]
|
|
100
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
101
|
-
style: [styles.reputation, {
|
|
102
|
-
color: primaryColor
|
|
103
|
-
}],
|
|
104
|
-
children: entry.total
|
|
105
|
-
})]
|
|
106
|
-
}, entry.user.id);
|
|
164
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
165
|
+
data: leaderboard,
|
|
166
|
+
renderItem: renderEntry,
|
|
167
|
+
keyExtractor: keyExtractor,
|
|
168
|
+
contentContainerStyle: styles.listContent,
|
|
169
|
+
className: "px-space-8 pt-space-12",
|
|
170
|
+
ItemSeparatorComponent: ItemSeparator,
|
|
171
|
+
ListEmptyComponent: /*#__PURE__*/_jsxs(View, {
|
|
172
|
+
style: styles.emptyContainer,
|
|
173
|
+
className: "px-space-32 gap-space-8",
|
|
174
|
+
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
175
|
+
name: "trophy-outline",
|
|
176
|
+
size: EMPTY_ICON_SIZE,
|
|
177
|
+
color: bloomTheme.colors.textSecondary
|
|
178
|
+
}), /*#__PURE__*/_jsx(H6, {
|
|
179
|
+
className: "text-text text-center mt-space-8",
|
|
180
|
+
children: t('trust.leaderboard.empty') || 'No leaderboard data'
|
|
181
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
182
|
+
className: "text-text-secondary text-sm text-center",
|
|
183
|
+
children: t('trust.leaderboard.emptyDesc') || 'Top contributors will appear here as the community grows.'
|
|
184
|
+
})]
|
|
107
185
|
})
|
|
108
186
|
})]
|
|
109
187
|
});
|
|
110
188
|
};
|
|
189
|
+
|
|
190
|
+
// Layout-only styles: flex centering, measured rank column width, separator
|
|
191
|
+
// inset, and row flex layout. Colors, spacing, radius, and typography roles
|
|
192
|
+
// live on Bloom components + NativeWind token classes.
|
|
111
193
|
const styles = StyleSheet.create({
|
|
112
|
-
|
|
113
|
-
flex: 1
|
|
194
|
+
center: {
|
|
195
|
+
flex: 1,
|
|
196
|
+
justifyContent: 'center',
|
|
197
|
+
alignItems: 'center'
|
|
114
198
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
199
|
+
listContent: {
|
|
200
|
+
flexGrow: 1,
|
|
201
|
+
paddingBottom: 40
|
|
118
202
|
},
|
|
119
203
|
row: {
|
|
120
204
|
flexDirection: 'row',
|
|
121
|
-
alignItems: 'center'
|
|
122
|
-
paddingVertical: 12,
|
|
123
|
-
paddingHorizontal: 20,
|
|
124
|
-
borderBottomWidth: 1
|
|
205
|
+
alignItems: 'center'
|
|
125
206
|
},
|
|
126
207
|
rank: {
|
|
127
|
-
|
|
128
|
-
width: 32,
|
|
129
|
-
textAlign: 'center',
|
|
130
|
-
fontWeight: 'bold'
|
|
131
|
-
},
|
|
132
|
-
avatar: {
|
|
133
|
-
marginHorizontal: 8
|
|
208
|
+
width: 28
|
|
134
209
|
},
|
|
135
210
|
userColumn: {
|
|
136
|
-
flex: 1
|
|
137
|
-
marginLeft: 8
|
|
138
|
-
},
|
|
139
|
-
username: {
|
|
140
|
-
fontSize: 16
|
|
141
|
-
},
|
|
142
|
-
tier: {
|
|
143
|
-
fontSize: 12,
|
|
144
|
-
marginTop: 1
|
|
211
|
+
flex: 1
|
|
145
212
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
marginLeft: 12
|
|
213
|
+
tierRow: {
|
|
214
|
+
flexDirection: 'row',
|
|
215
|
+
alignItems: 'flex-start'
|
|
150
216
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
217
|
+
// Inset the hairline separator to align with the start of the entry's text
|
|
218
|
+
// content (rank column + avatar + screen margin + gaps).
|
|
219
|
+
separator: {
|
|
220
|
+
marginLeft: 80
|
|
155
221
|
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
222
|
+
emptyContainer: {
|
|
223
|
+
flex: 1,
|
|
224
|
+
justifyContent: 'center',
|
|
225
|
+
alignItems: 'center',
|
|
226
|
+
paddingTop: 80
|
|
160
227
|
}
|
|
161
228
|
});
|
|
162
229
|
export default TrustLeaderboardScreen;
|