@oxyhq/services 22.8.7 → 22.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +24 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +150 -0
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/commonjs/ui/components/OxyAuthChooser.js +137 -40
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +9 -29
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js +63 -0
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js +193 -0
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +46 -29
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +47 -23
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/oxyAuthChooserStyles.js +22 -12
- package/lib/commonjs/ui/components/oxyAuthChooserStyles.js.map +1 -1
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +83 -0
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +49 -4
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +34 -39
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js +46 -0
- package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +14 -2
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +38 -56
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +7 -57
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js +68 -0
- package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js +98 -0
- package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js +152 -0
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -0
- package/lib/commonjs/ui/navigation/surfaces.js +256 -0
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +214 -283
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +88 -118
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +22 -36
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +219 -226
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -14
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +24 -39
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js +136 -158
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +29 -36
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +101 -109
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +10 -15
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +8 -16
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +219 -206
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +62 -69
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +63 -79
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +69 -98
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +8 -14
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +77 -94
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +99 -134
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +69 -76
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +3 -8
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +67 -74
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +55 -91
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +291 -304
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +100 -114
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +38 -45
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +44 -57
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +24 -31
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +14 -24
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +1 -1
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +9 -7
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +66 -75
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +111 -139
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +13 -20
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +14 -27
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +68 -85
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +28 -36
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/types/surfaceScreen.js +6 -0
- package/lib/commonjs/ui/types/surfaceScreen.js.map +1 -0
- package/lib/module/index.js +12 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +145 -0
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -0
- package/lib/module/ui/components/OxyAuthChooser.js +137 -40
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +1 -1
- package/lib/module/ui/components/OxyProvider.js +10 -30
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js +58 -0
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -0
- package/lib/module/ui/components/SurfaceScreen.js +188 -0
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +46 -29
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +46 -23
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/oxyAuthChooserStyles.js +22 -12
- package/lib/module/ui/components/oxyAuthChooserStyles.js.map +1 -1
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js +78 -0
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +49 -4
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +34 -39
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceHeader.js +42 -0
- package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -0
- package/lib/module/ui/hooks/useSwitchableAccounts.js +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +14 -2
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +37 -53
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +6 -56
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaceBackBridge.js +63 -0
- package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -0
- package/lib/module/ui/navigation/surfaceNavStack.js +95 -0
- package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -0
- package/lib/module/ui/navigation/surfaceRegistry.js +146 -0
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -0
- package/lib/module/ui/navigation/surfaces.js +244 -0
- package/lib/module/ui/navigation/surfaces.js.map +1 -0
- package/lib/module/ui/screens/AccountMembersScreen.js +218 -286
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +92 -121
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +25 -38
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +220 -227
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +10 -14
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +26 -40
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js +139 -160
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +32 -38
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +102 -110
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +11 -15
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +10 -17
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +222 -208
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +64 -70
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +65 -81
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +71 -99
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +10 -15
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +78 -94
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +102 -137
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +71 -77
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -9
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +69 -75
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +58 -93
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +293 -305
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +102 -116
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +40 -46
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +46 -58
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +26 -32
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +14 -24
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +1 -1
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +8 -7
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +67 -75
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +112 -139
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +15 -21
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +14 -26
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +69 -85
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +30 -37
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/types/surfaceScreen.js +4 -0
- package/lib/module/ui/types/surfaceScreen.js.map +1 -0
- 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/OxyAccountDialogScreen.d.ts +39 -0
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +3 -3
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.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/ProfileButton.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +17 -2
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts +19 -9
- package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +7 -11
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +31 -0
- package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +14 -2
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +24 -16
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +2 -60
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +51 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +135 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +79 -0
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.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 +0 -4
- 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/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/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 +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/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/fileManagement/hooks/useFileUploadState.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/types/navigation.d.ts +8 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts +38 -0
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +39 -0
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +3 -3
- package/lib/typescript/module/ui/components/OxyAuthChooser.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/ProfileButton.d.ts +2 -2
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +16 -0
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +26 -0
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +17 -2
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts +19 -9
- package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +7 -11
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +31 -0
- package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +14 -2
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +24 -16
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +2 -60
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +51 -0
- package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +135 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaces.d.ts +79 -0
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.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 +0 -4
- 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/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/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 +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/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/fileManagement/hooks/useFileUploadState.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/types/navigation.d.ts +8 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts +38 -0
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +12 -5
- package/src/ui/components/OxyAccountDialogScreen.tsx +148 -0
- package/src/ui/components/OxyAuthChooser.tsx +153 -33
- package/src/ui/components/OxyConsentScreen.tsx +1 -1
- package/src/ui/components/OxyProvider.tsx +12 -34
- package/src/ui/components/ProfileButton.tsx +2 -2
- package/src/ui/components/RequireOxyAuth.tsx +1 -1
- package/src/ui/components/SurfaceHeaderAction.tsx +60 -0
- package/src/ui/components/SurfaceScreen.tsx +226 -0
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +50 -36
- package/src/ui/components/modals/DeleteAccountModal.tsx +47 -26
- package/src/ui/components/oxyAuthChooserStyles.ts +22 -12
- package/src/ui/components/surfaces/ActionSheetSurface.tsx +98 -0
- package/src/ui/context/OxyContext.tsx +43 -3
- package/src/ui/hooks/useAvatarPicker.ts +53 -66
- package/src/ui/hooks/useSurfaceHeader.ts +56 -0
- package/src/ui/hooks/useSwitchableAccounts.ts +1 -1
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +39 -0
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +68 -0
- package/src/ui/navigation/accountDialogManager.ts +14 -2
- package/src/ui/navigation/bottomSheetManager.ts +46 -73
- package/src/ui/navigation/routes.ts +7 -106
- package/src/ui/navigation/surfaceBackBridge.ts +69 -0
- package/src/ui/navigation/surfaceNavStack.ts +110 -0
- package/src/ui/navigation/surfaceRegistry.ts +240 -0
- package/src/ui/navigation/surfaces.ts +272 -0
- package/src/ui/screens/AccountMembersScreen.tsx +39 -100
- package/src/ui/screens/AccountSettingsScreen.tsx +32 -54
- package/src/ui/screens/AccountVerificationScreen.tsx +23 -51
- package/src/ui/screens/AppInfoScreen.tsx +6 -13
- package/src/ui/screens/AvatarCropScreen.tsx +8 -17
- package/src/ui/screens/ConnectedAppsScreen.tsx +39 -60
- package/src/ui/screens/CreateAccountScreen.tsx +13 -39
- package/src/ui/screens/EditProfileFieldScreen.tsx +30 -48
- package/src/ui/screens/EditProfileScreen.tsx +7 -16
- package/src/ui/screens/FAQScreen.tsx +9 -13
- package/src/ui/screens/FeedbackScreen.tsx +8 -22
- package/src/ui/screens/FileManagementScreen.tsx +191 -188
- package/src/ui/screens/HelpSupportScreen.tsx +7 -13
- package/src/ui/screens/HistoryViewScreen.tsx +26 -31
- package/src/ui/screens/LanguageSelectorScreen.tsx +12 -46
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +8 -16
- package/src/ui/screens/LegalDocumentsScreen.tsx +7 -22
- package/src/ui/screens/ManageAccountScreen.tsx +96 -165
- package/src/ui/screens/NotificationsScreen.tsx +7 -13
- package/src/ui/screens/PaymentGatewayScreen.tsx +3 -10
- package/src/ui/screens/PreferencesScreen.tsx +7 -13
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +52 -90
- package/src/ui/screens/PrivacySettingsScreen.tsx +9 -21
- package/src/ui/screens/ProfileScreen.tsx +9 -11
- package/src/ui/screens/SavesCollectionsScreen.tsx +7 -13
- package/src/ui/screens/SearchSettingsScreen.tsx +9 -21
- package/src/ui/screens/UserLinksScreen.tsx +7 -14
- package/src/ui/screens/UserListScreen.tsx +2 -5
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +1 -1
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +9 -7
- package/src/ui/screens/trust/TrustAboutScreen.tsx +10 -17
- package/src/ui/screens/trust/TrustCenterScreen.tsx +9 -28
- package/src/ui/screens/trust/TrustFAQScreen.tsx +15 -18
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +3 -5
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +11 -26
- package/src/ui/screens/trust/TrustRulesScreen.tsx +10 -13
- package/src/ui/types/navigation.ts +8 -0
- package/src/ui/types/surfaceScreen.ts +38 -0
- package/lib/commonjs/ui/components/BottomSheet.js +0 -49
- package/lib/commonjs/ui/components/BottomSheet.js.map +0 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +0 -298
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +0 -1
- package/lib/commonjs/ui/components/Header.js +0 -305
- package/lib/commonjs/ui/components/Header.js.map +0 -1
- package/lib/commonjs/ui/components/OxyAccountDialog.js +0 -259
- package/lib/commonjs/ui/components/OxyAccountDialog.js.map +0 -1
- package/lib/module/ui/components/BottomSheet.js +0 -45
- package/lib/module/ui/components/BottomSheet.js.map +0 -1
- package/lib/module/ui/components/BottomSheetRouter.js +0 -292
- package/lib/module/ui/components/BottomSheetRouter.js.map +0 -1
- package/lib/module/ui/components/Header.js +0 -299
- package/lib/module/ui/components/Header.js.map +0 -1
- package/lib/module/ui/components/OxyAccountDialog.js +0 -254
- package/lib/module/ui/components/OxyAccountDialog.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts +0 -29
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts +0 -9
- package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Header.d.ts +0 -33
- package/lib/typescript/commonjs/ui/components/Header.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +0 -37
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/BottomSheet.d.ts +0 -29
- package/lib/typescript/module/ui/components/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts +0 -9
- package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Header.d.ts +0 -33
- package/lib/typescript/module/ui/components/Header.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +0 -37
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +0 -1
- package/src/ui/components/BottomSheet.tsx +0 -48
- package/src/ui/components/BottomSheetRouter.tsx +0 -310
- package/src/ui/components/Header.tsx +0 -224
- package/src/ui/components/OxyAccountDialog.tsx +0 -243
- package/src/ui/navigation/__tests__/getSheetConfig.test.ts +0 -36
|
@@ -1,95 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { View
|
|
3
|
+
import { View } from 'react-native';
|
|
4
4
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
5
5
|
import { H4, Text } from '@oxyhq/bloom/typography';
|
|
6
6
|
import { IconCircle } from '@oxyhq/bloom/icon-circle';
|
|
7
7
|
import { BenefitList, BenefitRow } from '@oxyhq/bloom/benefit-list';
|
|
8
8
|
import * as Icons from '@oxyhq/bloom/icons';
|
|
9
|
-
import Header from "../../components/Header.js";
|
|
10
9
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
10
|
+
import { useSurfaceHeader } from "../../hooks/useSurfaceHeader.js";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const TrustAboutScreen = ({
|
|
13
|
-
goBack
|
|
14
|
-
}) => {
|
|
12
|
+
const TrustAboutScreen = () => {
|
|
15
13
|
const {
|
|
16
14
|
t
|
|
17
15
|
} = useI18n();
|
|
18
16
|
const bloomTheme = useTheme();
|
|
19
17
|
const iconColor = bloomTheme.colors.primary;
|
|
18
|
+
useSurfaceHeader({
|
|
19
|
+
title: t('trust.about.title') || 'About Oxy Trust',
|
|
20
|
+
subtitle: t('trust.about.subtitle') || 'Learn about the reputation system'
|
|
21
|
+
});
|
|
20
22
|
return /*#__PURE__*/_jsxs(View, {
|
|
21
|
-
className: "
|
|
22
|
-
children: [/*#__PURE__*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
elevation: "subtle"
|
|
27
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
28
|
-
className: "flex-1 px-screen-margin",
|
|
29
|
-
showsVerticalScrollIndicator: false,
|
|
30
|
-
contentContainerClassName: "pb-space-32",
|
|
31
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
32
|
-
className: "items-center py-space-24 gap-space-12",
|
|
33
|
-
children: [/*#__PURE__*/_jsx(IconCircle, {
|
|
34
|
-
icon: Icons.ShieldCheck_Stroke2_Corner0_Rounded
|
|
35
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
36
|
-
className: "font-sans text-body text-text-secondary text-center",
|
|
37
|
-
children: t('trust.about.intro') || 'Oxy Trust is a recognition of your positive actions in the Oxy Ecosystem. Reputation cannot be sent or received directly, only earned by contributing to the community.'
|
|
38
|
-
})]
|
|
39
|
-
}), /*#__PURE__*/_jsx(H4, {
|
|
40
|
-
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
41
|
-
children: t('trust.about.how.title') || 'How to Earn Reputation'
|
|
42
|
-
}), /*#__PURE__*/_jsxs(BenefitList, {
|
|
43
|
-
className: "mb-space-24",
|
|
44
|
-
accessibilityLabel: t('trust.about.how.title') || 'How to Earn Reputation',
|
|
45
|
-
children: [/*#__PURE__*/_jsx(BenefitRow, {
|
|
46
|
-
icon: /*#__PURE__*/_jsx(Icons.UserCircle_Stroke2_Corner0_Rounded, {
|
|
47
|
-
size: "sm",
|
|
48
|
-
style: {
|
|
49
|
-
color: iconColor
|
|
50
|
-
}
|
|
51
|
-
}),
|
|
52
|
-
label: t('trust.about.how.help') || 'Helping other users'
|
|
53
|
-
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
54
|
-
icon: /*#__PURE__*/_jsx(Icons.Flag_Stroke2_Corner0_Rounded, {
|
|
55
|
-
size: "sm",
|
|
56
|
-
style: {
|
|
57
|
-
color: iconColor
|
|
58
|
-
}
|
|
59
|
-
}),
|
|
60
|
-
label: t('trust.about.how.report') || 'Reporting bugs'
|
|
61
|
-
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
62
|
-
icon: /*#__PURE__*/_jsx(Icons.PencilLine_Stroke2_Corner0_Rounded, {
|
|
63
|
-
size: "sm",
|
|
64
|
-
style: {
|
|
65
|
-
color: iconColor
|
|
66
|
-
}
|
|
67
|
-
}),
|
|
68
|
-
label: t('trust.about.how.contribute') || 'Contributing content'
|
|
69
|
-
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
70
|
-
icon: /*#__PURE__*/_jsx(Icons.Calendar_Stroke2_Corner0_Rounded, {
|
|
71
|
-
size: "sm",
|
|
72
|
-
style: {
|
|
73
|
-
color: iconColor
|
|
74
|
-
}
|
|
75
|
-
}),
|
|
76
|
-
label: t('trust.about.how.participate') || 'Participating in events'
|
|
77
|
-
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
78
|
-
icon: /*#__PURE__*/_jsx(Icons.Sparkle_Stroke2_Corner0_Rounded, {
|
|
79
|
-
size: "sm",
|
|
80
|
-
style: {
|
|
81
|
-
color: iconColor
|
|
82
|
-
}
|
|
83
|
-
}),
|
|
84
|
-
label: t('trust.about.how.other') || 'Other positive actions'
|
|
85
|
-
})]
|
|
86
|
-
}), /*#__PURE__*/_jsx(H4, {
|
|
87
|
-
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
88
|
-
children: t('trust.about.why.title') || 'Why Oxy Trust?'
|
|
23
|
+
className: "px-screen-margin pt-space-16 pb-space-32",
|
|
24
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
25
|
+
className: "items-center py-space-24 gap-space-12",
|
|
26
|
+
children: [/*#__PURE__*/_jsx(IconCircle, {
|
|
27
|
+
icon: Icons.ShieldCheck_Stroke2_Corner0_Rounded
|
|
89
28
|
}), /*#__PURE__*/_jsx(Text, {
|
|
90
|
-
className: "font-sans text-body text-text-secondary",
|
|
91
|
-
children: t('trust.about.
|
|
29
|
+
className: "font-sans text-body text-text-secondary text-center",
|
|
30
|
+
children: t('trust.about.intro') || 'Oxy Trust is a recognition of your positive actions in the Oxy Ecosystem. Reputation cannot be sent or received directly, only earned by contributing to the community.'
|
|
31
|
+
})]
|
|
32
|
+
}), /*#__PURE__*/_jsx(H4, {
|
|
33
|
+
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
34
|
+
children: t('trust.about.how.title') || 'How to Earn Reputation'
|
|
35
|
+
}), /*#__PURE__*/_jsxs(BenefitList, {
|
|
36
|
+
className: "mb-space-24",
|
|
37
|
+
accessibilityLabel: t('trust.about.how.title') || 'How to Earn Reputation',
|
|
38
|
+
children: [/*#__PURE__*/_jsx(BenefitRow, {
|
|
39
|
+
icon: /*#__PURE__*/_jsx(Icons.UserCircle_Stroke2_Corner0_Rounded, {
|
|
40
|
+
size: "sm",
|
|
41
|
+
style: {
|
|
42
|
+
color: iconColor
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
label: t('trust.about.how.help') || 'Helping other users'
|
|
46
|
+
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
47
|
+
icon: /*#__PURE__*/_jsx(Icons.Flag_Stroke2_Corner0_Rounded, {
|
|
48
|
+
size: "sm",
|
|
49
|
+
style: {
|
|
50
|
+
color: iconColor
|
|
51
|
+
}
|
|
52
|
+
}),
|
|
53
|
+
label: t('trust.about.how.report') || 'Reporting bugs'
|
|
54
|
+
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
55
|
+
icon: /*#__PURE__*/_jsx(Icons.PencilLine_Stroke2_Corner0_Rounded, {
|
|
56
|
+
size: "sm",
|
|
57
|
+
style: {
|
|
58
|
+
color: iconColor
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
label: t('trust.about.how.contribute') || 'Contributing content'
|
|
62
|
+
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
63
|
+
icon: /*#__PURE__*/_jsx(Icons.Calendar_Stroke2_Corner0_Rounded, {
|
|
64
|
+
size: "sm",
|
|
65
|
+
style: {
|
|
66
|
+
color: iconColor
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
label: t('trust.about.how.participate') || 'Participating in events'
|
|
70
|
+
}), /*#__PURE__*/_jsx(BenefitRow, {
|
|
71
|
+
icon: /*#__PURE__*/_jsx(Icons.Sparkle_Stroke2_Corner0_Rounded, {
|
|
72
|
+
size: "sm",
|
|
73
|
+
style: {
|
|
74
|
+
color: iconColor
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
label: t('trust.about.how.other') || 'Other positive actions'
|
|
92
78
|
})]
|
|
79
|
+
}), /*#__PURE__*/_jsx(H4, {
|
|
80
|
+
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
81
|
+
children: t('trust.about.why.title') || 'Why Oxy Trust?'
|
|
82
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
83
|
+
className: "font-sans text-body text-text-secondary",
|
|
84
|
+
children: t('trust.about.why.text') || 'Your reputation and trust tier unlock special features and recognition in the Oxy Ecosystem. The more you contribute, the more you earn!'
|
|
93
85
|
})]
|
|
94
86
|
});
|
|
95
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","
|
|
1
|
+
{"version":3,"names":["View","useTheme","H4","Text","IconCircle","BenefitList","BenefitRow","Icons","useI18n","useSurfaceHeader","jsx","_jsx","jsxs","_jsxs","TrustAboutScreen","t","bloomTheme","iconColor","colors","primary","title","subtitle","className","children","icon","ShieldCheck_Stroke2_Corner0_Rounded","accessibilityLabel","UserCircle_Stroke2_Corner0_Rounded","size","style","color","label","Flag_Stroke2_Corner0_Rounded","PencilLine_Stroke2_Corner0_Rounded","Calendar_Stroke2_Corner0_Rounded","Sparkle_Stroke2_Corner0_Rounded"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustAboutScreen.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SAASC,WAAW,EAAEC,UAAU,QAAQ,2BAA2B;AACnE,OAAO,KAAKC,KAAK,MAAM,oBAAoB;AAE3C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,gBAAgB,QAAQ,iCAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhE,MAAMC,gBAA2C,GAAGA,CAAA,KAAM;EACtD,MAAM;IAAEC;EAAE,CAAC,GAAGP,OAAO,CAAC,CAAC;EACvB,MAAMQ,UAAU,GAAGf,QAAQ,CAAC,CAAC;EAC7B,MAAMgB,SAAS,GAAGD,UAAU,CAACE,MAAM,CAACC,OAAO;EAE3CV,gBAAgB,CAAC;IACbW,KAAK,EAAEL,CAAC,CAAC,mBAAmB,CAAC,IAAI,iBAAiB;IAClDM,QAAQ,EAAEN,CAAC,CAAC,sBAAsB,CAAC,IAAI;EAC3C,CAAC,CAAC;EAEF,oBACQF,KAAA,CAACb,IAAI;IAACsB,SAAS,EAAC,0CAA0C;IAAAC,QAAA,gBACtDV,KAAA,CAACb,IAAI;MAACsB,SAAS,EAAC,uCAAuC;MAAAC,QAAA,gBACnDZ,IAAA,CAACP,UAAU;QAACoB,IAAI,EAAEjB,KAAK,CAACkB;MAAoC,CAAE,CAAC,eAC/Dd,IAAA,CAACR,IAAI;QA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C,KAAK,EAAEb;UAAU;QAAE,CAAE,CAAE;QACxFc,KAAK,EAAEhB,CAAC,CAAC,6BAA6B,CAAC,IAAI;MAA0B,CACxE,CAAC,eACFJ,IAAA,CAACL,UAAU;QACPkB,IAAI,eAAEb,IAAA,CAACJ,KAAK,CAAC4B,+BAA+B;UAACP,IAAI,EAAC,IAAI;UAACC,KAAK,EAAE;YAAEC,KAAK,EAAEb;UAAU;QAAE,CAAE,CAAE;QACvFc,KAAK,EAAEhB,CAAC,CAAC,uBAAuB,CAAC,IAAI;MAAyB,CACjE,CAAC;IAAA,CACO,CAAC,eAEdJ,IAAA,CAACT,EAAE;MAACoB,SAAS,EAAC,qEAAqE;MAAAC,QAAA,EAC9ER,CAAC,CAAC,uBAAuB,CAAC,IAAI;IAAgB,CAC/C,CAAC,eACLJ,IAAA,CAACR,IAAI;MAACmB,SAAS,EAAC,yCAAyC;MAAAC,QAAA,EACpDR,CAAC,CAAC,sBAAsB,CAAC,IAAI;IAA0I,CACtK,CAAC;EAAA,CACL,CAAC;AAEnB,CAAC;AAED,eAAeD,gBAAgB","ignoreList":[]}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useEffect, useMemo, useState } from 'react';
|
|
4
|
-
import { View,
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
5
|
import { Ionicons } from '@expo/vector-icons';
|
|
6
6
|
import { Chip } from '@oxyhq/bloom/chip';
|
|
7
7
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
8
8
|
import { H1, Text } from '@oxyhq/bloom/typography';
|
|
9
9
|
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
10
|
-
import Header from "../../components/Header.js";
|
|
11
10
|
import { SettingsIcon } from "../../components/SettingsIcon.js";
|
|
12
11
|
import { Loading } from '@oxyhq/bloom/loading';
|
|
13
12
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
13
|
+
import { useSurfaceHeader } from "../../hooks/useSurfaceHeader.js";
|
|
14
14
|
import { useOxy } from "../../context/OxyContext.js";
|
|
15
15
|
import { getTrustTierLabel } from "./trustTier.js";
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const TrustCenterScreen = ({
|
|
18
|
-
onClose,
|
|
19
|
-
goBack,
|
|
20
18
|
navigate
|
|
21
19
|
}) => {
|
|
22
20
|
// Reputation/trust is the ACTIVE account's standing (the org/project/bot
|
|
@@ -50,154 +48,129 @@ const TrustCenterScreen = ({
|
|
|
50
48
|
}, [user, oxyServices, t]);
|
|
51
49
|
const trustTierLabel = useMemo(() => trustTier ? getTrustTierLabel(trustTier, t) : null, [trustTier, t]);
|
|
52
50
|
const title = t('trust.center.title') || 'Trust Center';
|
|
51
|
+
useSurfaceHeader({
|
|
52
|
+
title
|
|
53
|
+
});
|
|
53
54
|
if (!isAuthenticated) {
|
|
54
|
-
return /*#__PURE__*/
|
|
55
|
-
className: "
|
|
56
|
-
children:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
61
|
-
style: styles.center,
|
|
62
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
63
|
-
className: "text-text font-medium text-base",
|
|
64
|
-
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
65
|
-
})
|
|
66
|
-
})]
|
|
55
|
+
return /*#__PURE__*/_jsx(View, {
|
|
56
|
+
className: "items-center py-space-40",
|
|
57
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
58
|
+
className: "text-text font-medium text-base",
|
|
59
|
+
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
60
|
+
})
|
|
67
61
|
});
|
|
68
62
|
}
|
|
69
63
|
if (isLoading) {
|
|
70
|
-
return /*#__PURE__*/
|
|
71
|
-
className: "
|
|
72
|
-
children:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
77
|
-
style: styles.center,
|
|
78
|
-
children: /*#__PURE__*/_jsx(Loading, {
|
|
79
|
-
size: "large",
|
|
80
|
-
color: primaryColor
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
64
|
+
return /*#__PURE__*/_jsx(View, {
|
|
65
|
+
className: "items-center py-space-40",
|
|
66
|
+
children: /*#__PURE__*/_jsx(Loading, {
|
|
67
|
+
size: "large",
|
|
68
|
+
color: primaryColor
|
|
69
|
+
})
|
|
83
70
|
});
|
|
84
71
|
}
|
|
85
72
|
return /*#__PURE__*/_jsxs(View, {
|
|
86
|
-
className: "
|
|
87
|
-
children: [/*#__PURE__*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
elevation: "subtle"
|
|
91
|
-
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
92
|
-
className: "flex-1",
|
|
93
|
-
contentContainerClassName: "px-screen-margin pb-space-24",
|
|
94
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
95
|
-
className: "items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16",
|
|
96
|
-
children: [/*#__PURE__*/_jsx(H1, {
|
|
97
|
-
style: {
|
|
98
|
-
color: primaryColor
|
|
99
|
-
},
|
|
100
|
-
children: reputationTotal ?? 0
|
|
101
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
102
|
-
className: "text-text-tertiary text-base mt-space-2 mb-space-12",
|
|
103
|
-
children: t('trust.center.balance') || 'Reputation Balance'
|
|
104
|
-
}), trustTierLabel ? /*#__PURE__*/_jsx(Chip, {
|
|
105
|
-
variant: "soft",
|
|
106
|
-
color: "primary",
|
|
107
|
-
startIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
108
|
-
name: "shield-checkmark-outline",
|
|
109
|
-
size: 14,
|
|
110
|
-
color: primaryColor
|
|
111
|
-
}),
|
|
112
|
-
children: trustTierLabel
|
|
113
|
-
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
114
|
-
className: "text-text-tertiary text-sm text-center mt-space-16",
|
|
115
|
-
style: styles.infoText,
|
|
116
|
-
children: t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'
|
|
117
|
-
})]
|
|
118
|
-
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
119
|
-
title: t('trust.center.actions.title') || 'Explore',
|
|
120
|
-
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
121
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
122
|
-
name: "trophy",
|
|
123
|
-
color: bloomTheme.colors.warning
|
|
124
|
-
}),
|
|
125
|
-
title: t('trust.center.actions.leaderboard') || 'Leaderboard',
|
|
126
|
-
onPress: () => navigate?.('TrustLeaderboard')
|
|
127
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
128
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
129
|
-
name: "file-document",
|
|
130
|
-
color: bloomTheme.colors.info
|
|
131
|
-
}),
|
|
132
|
-
title: t('trust.center.actions.rules') || 'Rules',
|
|
133
|
-
onPress: () => navigate?.('TrustRules')
|
|
134
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
135
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
136
|
-
name: "gift",
|
|
137
|
-
color: bloomTheme.colors.success
|
|
138
|
-
}),
|
|
139
|
-
title: t('trust.center.actions.rewards') || 'Rewards',
|
|
140
|
-
onPress: () => navigate?.('TrustRewards')
|
|
141
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
142
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
143
|
-
name: "star",
|
|
144
|
-
color: bloomTheme.colors.primary
|
|
145
|
-
}),
|
|
146
|
-
title: t('trust.center.actions.about') || 'About',
|
|
147
|
-
onPress: () => navigate?.('AboutTrust')
|
|
148
|
-
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
149
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
150
|
-
name: "help-circle",
|
|
151
|
-
color: bloomTheme.colors.secondary
|
|
152
|
-
}),
|
|
153
|
-
title: t('trust.center.actions.faq') || 'FAQ',
|
|
154
|
-
onPress: () => navigate?.('TrustFAQ')
|
|
155
|
-
})]
|
|
156
|
-
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
157
|
-
title: t('trust.center.history') || 'Reputation History',
|
|
158
|
-
children: transactions.length === 0 ? /*#__PURE__*/_jsx(SettingsListItem, {
|
|
159
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
160
|
-
name: "history",
|
|
161
|
-
color: bloomTheme.colors.textTertiary
|
|
162
|
-
}),
|
|
163
|
-
title: t('trust.center.noHistory') || 'No reputation history yet.',
|
|
164
|
-
showChevron: false,
|
|
165
|
-
disabled: true
|
|
166
|
-
}) : transactions.map(entry => /*#__PURE__*/_jsx(SettingsListItem, {
|
|
167
|
-
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
168
|
-
name: entry.points > 0 ? 'plus-circle' : 'minus-circle',
|
|
169
|
-
color: entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error
|
|
170
|
-
}),
|
|
171
|
-
title: entry.reason || entry.actionType || t('trust.center.noDescription') || 'No description',
|
|
172
|
-
description: `${entry.category}${entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''}`,
|
|
173
|
-
rightElement: /*#__PURE__*/_jsx(Chip, {
|
|
174
|
-
variant: "soft",
|
|
175
|
-
size: "small",
|
|
176
|
-
color: entry.points > 0 ? 'success' : 'error',
|
|
177
|
-
children: `${entry.points > 0 ? '+' : ''}${entry.points}`
|
|
178
|
-
}),
|
|
179
|
-
showChevron: false
|
|
180
|
-
}, entry.id))
|
|
181
|
-
}), error ? /*#__PURE__*/_jsx(Text, {
|
|
182
|
-
className: "text-sm text-center mt-space-16",
|
|
73
|
+
className: "px-screen-margin pt-space-16 pb-space-24",
|
|
74
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
75
|
+
className: "items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16",
|
|
76
|
+
children: [/*#__PURE__*/_jsx(H1, {
|
|
183
77
|
style: {
|
|
184
|
-
color:
|
|
78
|
+
color: primaryColor
|
|
185
79
|
},
|
|
186
|
-
children:
|
|
187
|
-
})
|
|
188
|
-
|
|
80
|
+
children: reputationTotal ?? 0
|
|
81
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
82
|
+
className: "text-text-tertiary text-base mt-space-2 mb-space-12",
|
|
83
|
+
children: t('trust.center.balance') || 'Reputation Balance'
|
|
84
|
+
}), trustTierLabel ? /*#__PURE__*/_jsx(Chip, {
|
|
85
|
+
variant: "soft",
|
|
86
|
+
color: "primary",
|
|
87
|
+
startIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
88
|
+
name: "shield-checkmark-outline",
|
|
89
|
+
size: 14,
|
|
90
|
+
color: primaryColor
|
|
91
|
+
}),
|
|
92
|
+
children: trustTierLabel
|
|
93
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
94
|
+
className: "text-text-tertiary text-sm text-center mt-space-16",
|
|
95
|
+
style: styles.infoText,
|
|
96
|
+
children: t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'
|
|
97
|
+
})]
|
|
98
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
99
|
+
title: t('trust.center.actions.title') || 'Explore',
|
|
100
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
101
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
102
|
+
name: "trophy",
|
|
103
|
+
color: bloomTheme.colors.warning
|
|
104
|
+
}),
|
|
105
|
+
title: t('trust.center.actions.leaderboard') || 'Leaderboard',
|
|
106
|
+
onPress: () => navigate?.('TrustLeaderboard')
|
|
107
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
108
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
109
|
+
name: "file-document",
|
|
110
|
+
color: bloomTheme.colors.info
|
|
111
|
+
}),
|
|
112
|
+
title: t('trust.center.actions.rules') || 'Rules',
|
|
113
|
+
onPress: () => navigate?.('TrustRules')
|
|
114
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
115
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
116
|
+
name: "gift",
|
|
117
|
+
color: bloomTheme.colors.success
|
|
118
|
+
}),
|
|
119
|
+
title: t('trust.center.actions.rewards') || 'Rewards',
|
|
120
|
+
onPress: () => navigate?.('TrustRewards')
|
|
121
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
122
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
123
|
+
name: "star",
|
|
124
|
+
color: bloomTheme.colors.primary
|
|
125
|
+
}),
|
|
126
|
+
title: t('trust.center.actions.about') || 'About',
|
|
127
|
+
onPress: () => navigate?.('AboutTrust')
|
|
128
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
129
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
130
|
+
name: "help-circle",
|
|
131
|
+
color: bloomTheme.colors.secondary
|
|
132
|
+
}),
|
|
133
|
+
title: t('trust.center.actions.faq') || 'FAQ',
|
|
134
|
+
onPress: () => navigate?.('TrustFAQ')
|
|
135
|
+
})]
|
|
136
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
137
|
+
title: t('trust.center.history') || 'Reputation History',
|
|
138
|
+
children: transactions.length === 0 ? /*#__PURE__*/_jsx(SettingsListItem, {
|
|
139
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
140
|
+
name: "history",
|
|
141
|
+
color: bloomTheme.colors.textTertiary
|
|
142
|
+
}),
|
|
143
|
+
title: t('trust.center.noHistory') || 'No reputation history yet.',
|
|
144
|
+
showChevron: false,
|
|
145
|
+
disabled: true
|
|
146
|
+
}) : transactions.map(entry => /*#__PURE__*/_jsx(SettingsListItem, {
|
|
147
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
148
|
+
name: entry.points > 0 ? 'plus-circle' : 'minus-circle',
|
|
149
|
+
color: entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error
|
|
150
|
+
}),
|
|
151
|
+
title: entry.reason || entry.actionType || t('trust.center.noDescription') || 'No description',
|
|
152
|
+
description: `${entry.category}${entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''}`,
|
|
153
|
+
rightElement: /*#__PURE__*/_jsx(Chip, {
|
|
154
|
+
variant: "soft",
|
|
155
|
+
size: "small",
|
|
156
|
+
color: entry.points > 0 ? 'success' : 'error',
|
|
157
|
+
children: `${entry.points > 0 ? '+' : ''}${entry.points}`
|
|
158
|
+
}),
|
|
159
|
+
showChevron: false
|
|
160
|
+
}, entry.id))
|
|
161
|
+
}), error ? /*#__PURE__*/_jsx(Text, {
|
|
162
|
+
className: "text-sm text-center mt-space-16",
|
|
163
|
+
style: {
|
|
164
|
+
color: bloomTheme.colors.error
|
|
165
|
+
},
|
|
166
|
+
children: error
|
|
167
|
+
}) : null]
|
|
189
168
|
});
|
|
190
169
|
};
|
|
191
170
|
|
|
192
|
-
// Layout-only styles:
|
|
193
|
-
//
|
|
194
|
-
// roles live here — those use Bloom token classes.
|
|
171
|
+
// Layout-only styles: the info caption's measured max width. No color, spacing,
|
|
172
|
+
// radius, or typography roles live here — those use Bloom token classes.
|
|
195
173
|
const styles = StyleSheet.create({
|
|
196
|
-
center: {
|
|
197
|
-
flex: 1,
|
|
198
|
-
alignItems: 'center',
|
|
199
|
-
justifyContent: 'center'
|
|
200
|
-
},
|
|
201
174
|
infoText: {
|
|
202
175
|
maxWidth: 320
|
|
203
176
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useMemo","useState","View","
|
|
1
|
+
{"version":3,"names":["useEffect","useMemo","useState","View","StyleSheet","Ionicons","Chip","useTheme","H1","Text","SettingsListGroup","SettingsListItem","SettingsIcon","Loading","useI18n","useSurfaceHeader","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","TrustCenterScreen","navigate","user","oxyServices","isAuthenticated","t","reputationTotal","setReputationTotal","trustTier","setTrustTier","transactions","setTransactions","isLoading","setIsLoading","error","setError","bloomTheme","primaryColor","colors","primary","Promise","all","getReputationBalance","id","getReputationTransactions","then","balance","txns","total","Array","isArray","catch","err","Error","message","finally","trustTierLabel","title","className","children","size","color","style","variant","startIcon","name","styles","infoText","icon","warning","onPress","info","success","secondary","length","textTertiary","showChevron","disabled","map","entry","points","reason","actionType","description","category","createdAt","Date","toLocaleString","rightElement","create","maxWidth"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustCenterScreen.tsx"],"mappings":";;AACA,SAASA,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAEhF,SAASC,YAAY,QAAQ,kCAA+B;AAC5D,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,iBAA4C,GAAGA,CAAC;EAClDC;AACJ,CAAC,KAAK;EACF;EACA;EACA,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;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ED,KAAK,EAAEzB,UAAU,CAACE,MAAM,CAACJ;MAAM,CAAE;MAAAyB,QAAA,EAEzCzB;IAAK,CACJ,CAAC,GACP,IAAI;EAAA,CACN,CAAC;AAEnB,CAAC;;AAED;AACA;AACA,MAAMgC,MAAM,GAAGhE,UAAU,CAACuF,MAAM,CAAC;EAC7BtB,QAAQ,EAAE;IACNuB,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;AAEF,eAAetE,iBAAiB","ignoreList":[]}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { View
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { useSurfaceHeader } from "../../hooks/useSurfaceHeader.js";
|
|
6
|
+
import { Search } from '@oxyhq/bloom/search';
|
|
7
7
|
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@oxyhq/bloom/accordion';
|
|
8
8
|
import { Text } from '@oxyhq/bloom/typography';
|
|
9
9
|
import { useI18n } from "../../hooks/useI18n.js";
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
11
|
const FAQ_KEYS = ['what', 'earn', 'lose', 'use', 'transfer', 'support'];
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* TrustFAQScreen
|
|
15
15
|
*
|
|
16
16
|
* Frequently asked questions about Oxy Trust, rendered with the shared Bloom
|
|
17
|
-
* Accordion (single-expand) +
|
|
17
|
+
* Accordion (single-expand) + Search. Styling is centralized Bloom token
|
|
18
18
|
* classes; the Bloom Accordion owns its own expand/collapse animation, so no
|
|
19
19
|
* `LayoutAnimation` is used here.
|
|
20
20
|
*/
|
|
21
|
-
const TrustFAQScreen = ({
|
|
22
|
-
goBack
|
|
23
|
-
}) => {
|
|
21
|
+
const TrustFAQScreen = () => {
|
|
24
22
|
const {
|
|
25
23
|
t
|
|
26
24
|
} = useI18n();
|
|
25
|
+
useSurfaceHeader({
|
|
26
|
+
title: t('trust.faq.title') || 'Trust FAQ',
|
|
27
|
+
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust'
|
|
28
|
+
});
|
|
27
29
|
const [search, setSearch] = useState('');
|
|
28
30
|
const [expanded, setExpanded] = useState(undefined);
|
|
29
31
|
const faqs = useMemo(() => FAQ_KEYS.map(key => ({
|
|
@@ -39,26 +41,18 @@ const TrustFAQScreen = ({
|
|
|
39
41
|
const handleAccordionChange = useCallback(value => {
|
|
40
42
|
setExpanded(Array.isArray(value) ? value[0] : value);
|
|
41
43
|
}, []);
|
|
42
|
-
return /*#__PURE__*/_jsxs(
|
|
43
|
-
|
|
44
|
-
children: [/*#__PURE__*/_jsx(Header, {
|
|
45
|
-
title: t('trust.faq.title') || 'Trust FAQ',
|
|
46
|
-
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust',
|
|
47
|
-
subtitleVariant: "muted",
|
|
48
|
-
onBack: goBack,
|
|
49
|
-
elevation: "subtle"
|
|
50
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
44
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
45
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
51
46
|
className: "px-screen-margin pt-space-20 pb-space-12",
|
|
52
|
-
children: /*#__PURE__*/_jsx(
|
|
47
|
+
children: /*#__PURE__*/_jsx(Search, {
|
|
53
48
|
label: t('trust.faq.search') || 'Search FAQ...',
|
|
54
49
|
value: search,
|
|
55
50
|
onChangeText: setSearch,
|
|
56
51
|
onClearText: () => setSearch(''),
|
|
57
52
|
accessibilityLabel: "Search Trust FAQ"
|
|
58
53
|
})
|
|
59
|
-
}), /*#__PURE__*/_jsx(
|
|
60
|
-
className: "
|
|
61
|
-
showsVerticalScrollIndicator: false,
|
|
54
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
55
|
+
className: "px-screen-margin",
|
|
62
56
|
children: filteredFaqs.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
63
57
|
className: "text-text-secondary text-center p-space-40",
|
|
64
58
|
children: t('trust.faq.noResults', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useMemo","useCallback","View","
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","useCallback","View","useSurfaceHeader","Search","Accordion","AccordionItem","AccordionTrigger","AccordionContent","Text","useI18n","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","FAQ_KEYS","TrustFAQScreen","t","title","subtitle","search","setSearch","expanded","setExpanded","undefined","faqs","map","key","id","q","a","filteredFaqs","trim","searchLower","toLowerCase","filter","faq","includes","handleAccordionChange","value","Array","isArray","children","className","label","onChangeText","onClearText","accessibilityLabel","length","query","type","onValueChange","memo"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustFAQScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC7D,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SACIC,SAAS,EACTC,aAAa,EACbC,gBAAgB,EAChBC,gBAAgB,QACb,wBAAwB;AAC/B,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SAASC,OAAO,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAE9C,MAAMC,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,CAAU;;AAEhF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,cAAyC,GAAGA,CAAA,KAAM;EAC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