@oxyhq/services 22.9.0 → 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/{OxyAccountDialog.js → OxyAccountDialogScreen.js} +25 -125
- 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/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 +52 -5
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- 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 +23 -9
- 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/routes.js +3 -3
- 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/surfaceRegistry.js +52 -8
- package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js +42 -5
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- 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/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/module/index.js +12 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/{OxyAccountDialog.js → OxyAccountDialogScreen.js} +27 -127
- 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/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 +53 -6
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- 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 +23 -9
- 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/routes.js +3 -3
- 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/surfaceRegistry.js +52 -8
- package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js +42 -5
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- 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/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/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/{OxyAccountDialog.d.ts → OxyAccountDialogScreen.d.ts} +4 -4
- 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/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 +4 -2
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- 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/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +31 -13
- package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- 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/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/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/{OxyAccountDialog.d.ts → OxyAccountDialogScreen.d.ts} +4 -4
- 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/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 +4 -2
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- 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/surfaceBackBridge.d.ts +16 -0
- package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +31 -13
- package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- 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/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/package.json +2 -2
- package/src/index.ts +12 -5
- package/src/ui/components/{OxyAccountDialog.tsx → OxyAccountDialogScreen.tsx} +21 -110
- package/src/ui/components/OxyAuthChooser.tsx +153 -33
- package/src/ui/components/OxyConsentScreen.tsx +1 -1
- 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 +66 -6
- 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 +22 -8
- 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__/surfaceNavStack.test.ts +68 -0
- package/src/ui/navigation/accountDialogManager.ts +14 -2
- package/src/ui/navigation/routes.ts +3 -3
- package/src/ui/navigation/surfaceBackBridge.ts +69 -0
- package/src/ui/navigation/surfaceRegistry.ts +80 -14
- package/src/ui/navigation/surfaces.ts +33 -5
- 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/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/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.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.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.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.map +0 -1
- package/src/ui/components/Header.tsx +0 -224
|
@@ -10,92 +10,83 @@ var _typography = require("@oxyhq/bloom/typography");
|
|
|
10
10
|
var _iconCircle = require("@oxyhq/bloom/icon-circle");
|
|
11
11
|
var _benefitList = require("@oxyhq/bloom/benefit-list");
|
|
12
12
|
var Icons = _interopRequireWildcard(require("@oxyhq/bloom/icons"));
|
|
13
|
-
var _Header = _interopRequireDefault(require("../../components/Header.js"));
|
|
14
13
|
var _useI18n = require("../../hooks/useI18n.js");
|
|
14
|
+
var _useSurfaceHeader = require("../../hooks/useSurfaceHeader.js");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
-
const TrustAboutScreen = ({
|
|
19
|
-
goBack
|
|
20
|
-
}) => {
|
|
17
|
+
const TrustAboutScreen = () => {
|
|
21
18
|
const {
|
|
22
19
|
t
|
|
23
20
|
} = (0, _useI18n.useI18n)();
|
|
24
21
|
const bloomTheme = (0, _theme.useTheme)();
|
|
25
22
|
const iconColor = bloomTheme.colors.primary;
|
|
23
|
+
(0, _useSurfaceHeader.useSurfaceHeader)({
|
|
24
|
+
title: t('trust.about.title') || 'About Oxy Trust',
|
|
25
|
+
subtitle: t('trust.about.subtitle') || 'Learn about the reputation system'
|
|
26
|
+
});
|
|
26
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
27
|
-
className: "
|
|
28
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
elevation: "subtle"
|
|
33
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
34
|
-
className: "flex-1 px-screen-margin",
|
|
35
|
-
showsVerticalScrollIndicator: false,
|
|
36
|
-
contentContainerClassName: "pb-space-32",
|
|
37
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
38
|
-
className: "items-center py-space-24 gap-space-12",
|
|
39
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconCircle.IconCircle, {
|
|
40
|
-
icon: Icons.ShieldCheck_Stroke2_Corner0_Rounded
|
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
42
|
-
className: "font-sans text-body text-text-secondary text-center",
|
|
43
|
-
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.'
|
|
44
|
-
})]
|
|
45
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
46
|
-
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
47
|
-
children: t('trust.about.how.title') || 'How to Earn Reputation'
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_benefitList.BenefitList, {
|
|
49
|
-
className: "mb-space-24",
|
|
50
|
-
accessibilityLabel: t('trust.about.how.title') || 'How to Earn Reputation',
|
|
51
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
52
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.UserCircle_Stroke2_Corner0_Rounded, {
|
|
53
|
-
size: "sm",
|
|
54
|
-
style: {
|
|
55
|
-
color: iconColor
|
|
56
|
-
}
|
|
57
|
-
}),
|
|
58
|
-
label: t('trust.about.how.help') || 'Helping other users'
|
|
59
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
60
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.Flag_Stroke2_Corner0_Rounded, {
|
|
61
|
-
size: "sm",
|
|
62
|
-
style: {
|
|
63
|
-
color: iconColor
|
|
64
|
-
}
|
|
65
|
-
}),
|
|
66
|
-
label: t('trust.about.how.report') || 'Reporting bugs'
|
|
67
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
68
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.PencilLine_Stroke2_Corner0_Rounded, {
|
|
69
|
-
size: "sm",
|
|
70
|
-
style: {
|
|
71
|
-
color: iconColor
|
|
72
|
-
}
|
|
73
|
-
}),
|
|
74
|
-
label: t('trust.about.how.contribute') || 'Contributing content'
|
|
75
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
76
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.Calendar_Stroke2_Corner0_Rounded, {
|
|
77
|
-
size: "sm",
|
|
78
|
-
style: {
|
|
79
|
-
color: iconColor
|
|
80
|
-
}
|
|
81
|
-
}),
|
|
82
|
-
label: t('trust.about.how.participate') || 'Participating in events'
|
|
83
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
84
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.Sparkle_Stroke2_Corner0_Rounded, {
|
|
85
|
-
size: "sm",
|
|
86
|
-
style: {
|
|
87
|
-
color: iconColor
|
|
88
|
-
}
|
|
89
|
-
}),
|
|
90
|
-
label: t('trust.about.how.other') || 'Other positive actions'
|
|
91
|
-
})]
|
|
92
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
93
|
-
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
94
|
-
children: t('trust.about.why.title') || 'Why Oxy Trust?'
|
|
28
|
+
className: "px-screen-margin pt-space-16 pb-space-32",
|
|
29
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
30
|
+
className: "items-center py-space-24 gap-space-12",
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconCircle.IconCircle, {
|
|
32
|
+
icon: Icons.ShieldCheck_Stroke2_Corner0_Rounded
|
|
95
33
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
96
|
-
className: "font-sans text-body text-text-secondary",
|
|
97
|
-
children: t('trust.about.
|
|
34
|
+
className: "font-sans text-body text-text-secondary text-center",
|
|
35
|
+
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.'
|
|
36
|
+
})]
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
38
|
+
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
39
|
+
children: t('trust.about.how.title') || 'How to Earn Reputation'
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_benefitList.BenefitList, {
|
|
41
|
+
className: "mb-space-24",
|
|
42
|
+
accessibilityLabel: t('trust.about.how.title') || 'How to Earn Reputation',
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
44
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.UserCircle_Stroke2_Corner0_Rounded, {
|
|
45
|
+
size: "sm",
|
|
46
|
+
style: {
|
|
47
|
+
color: iconColor
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
label: t('trust.about.how.help') || 'Helping other users'
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
52
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.Flag_Stroke2_Corner0_Rounded, {
|
|
53
|
+
size: "sm",
|
|
54
|
+
style: {
|
|
55
|
+
color: iconColor
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
label: t('trust.about.how.report') || 'Reporting bugs'
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
60
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.PencilLine_Stroke2_Corner0_Rounded, {
|
|
61
|
+
size: "sm",
|
|
62
|
+
style: {
|
|
63
|
+
color: iconColor
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
label: t('trust.about.how.contribute') || 'Contributing content'
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
68
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.Calendar_Stroke2_Corner0_Rounded, {
|
|
69
|
+
size: "sm",
|
|
70
|
+
style: {
|
|
71
|
+
color: iconColor
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
label: t('trust.about.how.participate') || 'Participating in events'
|
|
75
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_benefitList.BenefitRow, {
|
|
76
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.Sparkle_Stroke2_Corner0_Rounded, {
|
|
77
|
+
size: "sm",
|
|
78
|
+
style: {
|
|
79
|
+
color: iconColor
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
label: t('trust.about.how.other') || 'Other positive actions'
|
|
98
83
|
})]
|
|
84
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
85
|
+
className: "text-sectionTitle font-sectionTitle text-text-secondary mb-space-12",
|
|
86
|
+
children: t('trust.about.why.title') || 'Why Oxy Trust?'
|
|
87
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
88
|
+
className: "font-sans text-body text-text-secondary",
|
|
89
|
+
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!'
|
|
99
90
|
})]
|
|
100
91
|
});
|
|
101
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_theme","_typography","_iconCircle","_benefitList","Icons","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","_typography","_iconCircle","_benefitList","Icons","_interopRequireWildcard","_useI18n","_useSurfaceHeader","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TrustAboutScreen","useI18n","bloomTheme","useTheme","iconColor","colors","primary","useSurfaceHeader","title","subtitle","jsxs","View","className","children","jsx","IconCircle","icon","ShieldCheck_Stroke2_Corner0_Rounded","Text","H4","BenefitList","accessibilityLabel","BenefitRow","UserCircle_Stroke2_Corner0_Rounded","size","style","color","label","Flag_Stroke2_Corner0_Rounded","PencilLine_Stroke2_Corner0_Rounded","Calendar_Stroke2_Corner0_Rounded","Sparkle_Stroke2_Corner0_Rounded","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustAboutScreen.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AAAgE,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAM,wB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A,EAACzC,WAAA,CAAA8C,EAAE;MAACP,SAAS,EAAC,qEAAqE;MAAAC,QAAA,EAC9E/B,CAAC,CAAC,uBAAuB,CAAC,IAAI;IAAgB,CAC/C,CAAC,eACL,IAAAF,WAAA,CAAAkC,GAAA,EAACzC,WAAA,CAAA6C,IAAI;MAACN,SAAS,EAAC,yCAAyC;MAAAC,QAAA,EACpD/B,CAAC,CAAC,sBAAsB,CAAC,IAAI;IAA0I,CACtK,CAAC;EAAA,CACL,CAAC;AAEnB,CAAC;AAAC,IAAAkD,QAAA,GAAAC,OAAA,CAAA1C,OAAA,GAEaS,gBAAgB","ignoreList":[]}
|
|
@@ -11,17 +11,14 @@ var _chip = require("@oxyhq/bloom/chip");
|
|
|
11
11
|
var _theme = require("@oxyhq/bloom/theme");
|
|
12
12
|
var _typography = require("@oxyhq/bloom/typography");
|
|
13
13
|
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
14
|
-
var _Header = _interopRequireDefault(require("../../components/Header.js"));
|
|
15
14
|
var _SettingsIcon = require("../../components/SettingsIcon.js");
|
|
16
15
|
var _loading = require("@oxyhq/bloom/loading");
|
|
17
16
|
var _useI18n = require("../../hooks/useI18n.js");
|
|
17
|
+
var _useSurfaceHeader = require("../../hooks/useSurfaceHeader.js");
|
|
18
18
|
var _OxyContext = require("../../context/OxyContext.js");
|
|
19
19
|
var _trustTier = require("./trustTier.js");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
21
|
const TrustCenterScreen = ({
|
|
23
|
-
onClose,
|
|
24
|
-
goBack,
|
|
25
22
|
navigate
|
|
26
23
|
}) => {
|
|
27
24
|
// Reputation/trust is the ACTIVE account's standing (the org/project/bot
|
|
@@ -55,154 +52,129 @@ const TrustCenterScreen = ({
|
|
|
55
52
|
}, [user, oxyServices, t]);
|
|
56
53
|
const trustTierLabel = (0, _react.useMemo)(() => trustTier ? (0, _trustTier.getTrustTierLabel)(trustTier, t) : null, [trustTier, t]);
|
|
57
54
|
const title = t('trust.center.title') || 'Trust Center';
|
|
55
|
+
(0, _useSurfaceHeader.useSurfaceHeader)({
|
|
56
|
+
title
|
|
57
|
+
});
|
|
58
58
|
if (!isAuthenticated) {
|
|
59
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
60
|
-
className: "
|
|
61
|
-
children:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
66
|
-
style: styles.center,
|
|
67
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
68
|
-
className: "text-text font-medium text-base",
|
|
69
|
-
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
70
|
-
})
|
|
71
|
-
})]
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
60
|
+
className: "items-center py-space-40",
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
62
|
+
className: "text-text font-medium text-base",
|
|
63
|
+
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
64
|
+
})
|
|
72
65
|
});
|
|
73
66
|
}
|
|
74
67
|
if (isLoading) {
|
|
75
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
76
|
-
className: "
|
|
77
|
-
children:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
82
|
-
style: styles.center,
|
|
83
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
|
|
84
|
-
size: "large",
|
|
85
|
-
color: primaryColor
|
|
86
|
-
})
|
|
87
|
-
})]
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
69
|
+
className: "items-center py-space-40",
|
|
70
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
|
|
71
|
+
size: "large",
|
|
72
|
+
color: primaryColor
|
|
73
|
+
})
|
|
88
74
|
});
|
|
89
75
|
}
|
|
90
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
91
|
-
className: "
|
|
92
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
elevation: "subtle"
|
|
96
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
97
|
-
className: "flex-1",
|
|
98
|
-
contentContainerClassName: "px-screen-margin pb-space-24",
|
|
99
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
100
|
-
className: "items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16",
|
|
101
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H1, {
|
|
102
|
-
style: {
|
|
103
|
-
color: primaryColor
|
|
104
|
-
},
|
|
105
|
-
children: reputationTotal ?? 0
|
|
106
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
107
|
-
className: "text-text-tertiary text-base mt-space-2 mb-space-12",
|
|
108
|
-
children: t('trust.center.balance') || 'Reputation Balance'
|
|
109
|
-
}), trustTierLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_chip.Chip, {
|
|
110
|
-
variant: "soft",
|
|
111
|
-
color: "primary",
|
|
112
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
113
|
-
name: "shield-checkmark-outline",
|
|
114
|
-
size: 14,
|
|
115
|
-
color: primaryColor
|
|
116
|
-
}),
|
|
117
|
-
children: trustTierLabel
|
|
118
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
119
|
-
className: "text-text-tertiary text-sm text-center mt-space-16",
|
|
120
|
-
style: styles.infoText,
|
|
121
|
-
children: t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'
|
|
122
|
-
})]
|
|
123
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
124
|
-
title: t('trust.center.actions.title') || 'Explore',
|
|
125
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
126
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
127
|
-
name: "trophy",
|
|
128
|
-
color: bloomTheme.colors.warning
|
|
129
|
-
}),
|
|
130
|
-
title: t('trust.center.actions.leaderboard') || 'Leaderboard',
|
|
131
|
-
onPress: () => navigate?.('TrustLeaderboard')
|
|
132
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
133
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
134
|
-
name: "file-document",
|
|
135
|
-
color: bloomTheme.colors.info
|
|
136
|
-
}),
|
|
137
|
-
title: t('trust.center.actions.rules') || 'Rules',
|
|
138
|
-
onPress: () => navigate?.('TrustRules')
|
|
139
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
140
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
141
|
-
name: "gift",
|
|
142
|
-
color: bloomTheme.colors.success
|
|
143
|
-
}),
|
|
144
|
-
title: t('trust.center.actions.rewards') || 'Rewards',
|
|
145
|
-
onPress: () => navigate?.('TrustRewards')
|
|
146
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
147
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
148
|
-
name: "star",
|
|
149
|
-
color: bloomTheme.colors.primary
|
|
150
|
-
}),
|
|
151
|
-
title: t('trust.center.actions.about') || 'About',
|
|
152
|
-
onPress: () => navigate?.('AboutTrust')
|
|
153
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
154
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
155
|
-
name: "help-circle",
|
|
156
|
-
color: bloomTheme.colors.secondary
|
|
157
|
-
}),
|
|
158
|
-
title: t('trust.center.actions.faq') || 'FAQ',
|
|
159
|
-
onPress: () => navigate?.('TrustFAQ')
|
|
160
|
-
})]
|
|
161
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
162
|
-
title: t('trust.center.history') || 'Reputation History',
|
|
163
|
-
children: transactions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
164
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
165
|
-
name: "history",
|
|
166
|
-
color: bloomTheme.colors.textTertiary
|
|
167
|
-
}),
|
|
168
|
-
title: t('trust.center.noHistory') || 'No reputation history yet.',
|
|
169
|
-
showChevron: false,
|
|
170
|
-
disabled: true
|
|
171
|
-
}) : transactions.map(entry => /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
172
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
173
|
-
name: entry.points > 0 ? 'plus-circle' : 'minus-circle',
|
|
174
|
-
color: entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error
|
|
175
|
-
}),
|
|
176
|
-
title: entry.reason || entry.actionType || t('trust.center.noDescription') || 'No description',
|
|
177
|
-
description: `${entry.category}${entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''}`,
|
|
178
|
-
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chip.Chip, {
|
|
179
|
-
variant: "soft",
|
|
180
|
-
size: "small",
|
|
181
|
-
color: entry.points > 0 ? 'success' : 'error',
|
|
182
|
-
children: `${entry.points > 0 ? '+' : ''}${entry.points}`
|
|
183
|
-
}),
|
|
184
|
-
showChevron: false
|
|
185
|
-
}, entry.id))
|
|
186
|
-
}), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
187
|
-
className: "text-sm text-center mt-space-16",
|
|
77
|
+
className: "px-screen-margin pt-space-16 pb-space-24",
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
79
|
+
className: "items-center bg-fill-secondary rounded-radius-20 px-space-20 py-space-24 mb-space-16",
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H1, {
|
|
188
81
|
style: {
|
|
189
|
-
color:
|
|
82
|
+
color: primaryColor
|
|
190
83
|
},
|
|
191
|
-
children:
|
|
192
|
-
})
|
|
193
|
-
|
|
84
|
+
children: reputationTotal ?? 0
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
86
|
+
className: "text-text-tertiary text-base mt-space-2 mb-space-12",
|
|
87
|
+
children: t('trust.center.balance') || 'Reputation Balance'
|
|
88
|
+
}), trustTierLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_chip.Chip, {
|
|
89
|
+
variant: "soft",
|
|
90
|
+
color: "primary",
|
|
91
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
92
|
+
name: "shield-checkmark-outline",
|
|
93
|
+
size: 14,
|
|
94
|
+
color: primaryColor
|
|
95
|
+
}),
|
|
96
|
+
children: trustTierLabel
|
|
97
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
98
|
+
className: "text-text-tertiary text-sm text-center mt-space-16",
|
|
99
|
+
style: styles.infoText,
|
|
100
|
+
children: t('trust.center.info') || 'Reputation can only be earned by positive actions in the Oxy Ecosystem. It cannot be sent or received directly.'
|
|
101
|
+
})]
|
|
102
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
103
|
+
title: t('trust.center.actions.title') || 'Explore',
|
|
104
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
105
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
106
|
+
name: "trophy",
|
|
107
|
+
color: bloomTheme.colors.warning
|
|
108
|
+
}),
|
|
109
|
+
title: t('trust.center.actions.leaderboard') || 'Leaderboard',
|
|
110
|
+
onPress: () => navigate?.('TrustLeaderboard')
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
112
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
113
|
+
name: "file-document",
|
|
114
|
+
color: bloomTheme.colors.info
|
|
115
|
+
}),
|
|
116
|
+
title: t('trust.center.actions.rules') || 'Rules',
|
|
117
|
+
onPress: () => navigate?.('TrustRules')
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
119
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
120
|
+
name: "gift",
|
|
121
|
+
color: bloomTheme.colors.success
|
|
122
|
+
}),
|
|
123
|
+
title: t('trust.center.actions.rewards') || 'Rewards',
|
|
124
|
+
onPress: () => navigate?.('TrustRewards')
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
126
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
127
|
+
name: "star",
|
|
128
|
+
color: bloomTheme.colors.primary
|
|
129
|
+
}),
|
|
130
|
+
title: t('trust.center.actions.about') || 'About',
|
|
131
|
+
onPress: () => navigate?.('AboutTrust')
|
|
132
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
133
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
134
|
+
name: "help-circle",
|
|
135
|
+
color: bloomTheme.colors.secondary
|
|
136
|
+
}),
|
|
137
|
+
title: t('trust.center.actions.faq') || 'FAQ',
|
|
138
|
+
onPress: () => navigate?.('TrustFAQ')
|
|
139
|
+
})]
|
|
140
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
141
|
+
title: t('trust.center.history') || 'Reputation History',
|
|
142
|
+
children: transactions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
143
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
144
|
+
name: "history",
|
|
145
|
+
color: bloomTheme.colors.textTertiary
|
|
146
|
+
}),
|
|
147
|
+
title: t('trust.center.noHistory') || 'No reputation history yet.',
|
|
148
|
+
showChevron: false,
|
|
149
|
+
disabled: true
|
|
150
|
+
}) : transactions.map(entry => /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
151
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
152
|
+
name: entry.points > 0 ? 'plus-circle' : 'minus-circle',
|
|
153
|
+
color: entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error
|
|
154
|
+
}),
|
|
155
|
+
title: entry.reason || entry.actionType || t('trust.center.noDescription') || 'No description',
|
|
156
|
+
description: `${entry.category}${entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''}`,
|
|
157
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_chip.Chip, {
|
|
158
|
+
variant: "soft",
|
|
159
|
+
size: "small",
|
|
160
|
+
color: entry.points > 0 ? 'success' : 'error',
|
|
161
|
+
children: `${entry.points > 0 ? '+' : ''}${entry.points}`
|
|
162
|
+
}),
|
|
163
|
+
showChevron: false
|
|
164
|
+
}, entry.id))
|
|
165
|
+
}), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
166
|
+
className: "text-sm text-center mt-space-16",
|
|
167
|
+
style: {
|
|
168
|
+
color: bloomTheme.colors.error
|
|
169
|
+
},
|
|
170
|
+
children: error
|
|
171
|
+
}) : null]
|
|
194
172
|
});
|
|
195
173
|
};
|
|
196
174
|
|
|
197
|
-
// Layout-only styles:
|
|
198
|
-
//
|
|
199
|
-
// roles live here — those use Bloom token classes.
|
|
175
|
+
// Layout-only styles: the info caption's measured max width. No color, spacing,
|
|
176
|
+
// radius, or typography roles live here — those use Bloom token classes.
|
|
200
177
|
const styles = _reactNative.StyleSheet.create({
|
|
201
|
-
center: {
|
|
202
|
-
flex: 1,
|
|
203
|
-
alignItems: 'center',
|
|
204
|
-
justifyContent: 'center'
|
|
205
|
-
},
|
|
206
178
|
infoText: {
|
|
207
179
|
maxWidth: 320
|
|
208
180
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_chip","_theme","_typography","_settingsList","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_chip","_theme","_typography","_settingsList","_SettingsIcon","_loading","_useI18n","_useSurfaceHeader","_OxyContext","_trustTier","_jsxRuntime","TrustCenterScreen","navigate","user","oxyServices","isAuthenticated","useOxy","t","useI18n","reputationTotal","setReputationTotal","useState","trustTier","setTrustTier","transactions","setTransactions","isLoading","setIsLoading","error","setError","bloomTheme","useTheme","primaryColor","colors","primary","useEffect","Promise","all","getReputationBalance","id","getReputationTransactions","then","balance","txns","total","Array","isArray","catch","err","Error","message","finally","trustTierLabel","useMemo","getTrustTierLabel","title","useSurfaceHeader","jsx","View","className","children","Text","Loading","size","color","jsxs","H1","style","Chip","variant","startIcon","Ionicons","name","styles","infoText","SettingsListGroup","SettingsListItem","icon","SettingsIcon","warning","onPress","info","success","secondary","length","textTertiary","showChevron","disabled","map","entry","points","reason","actionType","description","category","createdAt","Date","toLocaleString","rightElement","StyleSheet","create","maxWidth","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustCenterScreen.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAEA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAAgD,IAAAa,WAAA,GAAAb,OAAA;AAEhD,MAAMc,iBAA4C,GAAGA,CAAC;EAClDC;AACJ,CAAC,KAAK;EACF;EACA;EACA,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAgB,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EACvD,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,MAAM,CAACC,eAAe,EAAEC,kBAAkB,CAAC,GAAG,IAAAC,eAAQ,EAAgB,IAAI,CAAC;EAC3E,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAG,IAAAF,eAAQ,EAAmB,IAAI,CAAC;EAClE,MAAM,CAACG,YA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,IACZF,KAAK,CAACG,UAAU,IACf3E,CAAC,CAAC,4BAA4B,CAAC,IAAI,gBACvC;QACD4E,WAAW,EACP,GAAGJ,KAAK,CAACK,QAAQ,GACbL,KAAK,CAACM,SAAS,GACT,MAAM,IAAIC,IAAI,CAACP,KAAK,CAACM,SAAS,CAAC,CAACE,cAAc,CAAC,CAAC,EAAE,GAClD,EAAE,EAEf;QACDC,YAAY,eACR,IAAAxF,WAAA,CAAA+C,GAAA,EAACzD,KAAA,CAAAoE,IAAI;UACDC,OAAO,EAAC,MAAM;UACdN,IAAI,EAAC,OAAO;UACZC,KAAK,EAAEyB,KAAK,CAACC,MAAM,GAAG,CAAC,GAAG,SAAS,GAAG,OAAQ;UAAA9B,QAAA,EAE7C,GAAG6B,KAAK,CAACC,MAAM,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,GAAGD,KAAK,CAACC,MAAM;QAAE,CAC9C,CACT;QACDJ,WAAW,EAAE;MAAM,GApCdG,KAAK,CAAClD,EAqCd,CACJ;IACJ,CACc,CAAC,EAEnBX,KAAK,gBACF,IAAAlB,WAAA,CAAA+C,GAAA,EAACvD,WAAA,CAAA2D,IAAI;MACDF,SAAS,EAAC,iCAAiC;MAC3CQ,KAAK,EAAE;QAAEH,KAAK,EAAElC,UAAU,CAACG,MAAM,CAACL;MAAM,CAAE;MAAAgC,QAAA,EAEzChC;IAAK,CACJ,CAAC,GACP,IAAI;EAAA,CACN,CAAC;AAEnB,CAAC;;AAED;AACA;AACA,MAAM6C,MAAM,GAAG0B,uBAAU,CAACC,MAAM,CAAC;EAC7B1B,QAAQ,EAAE;IACN2B,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEY7F,iBAAiB","ignoreList":[]}
|
|
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _useSurfaceHeader = require("../../hooks/useSurfaceHeader.js");
|
|
10
|
+
var _search = require("@oxyhq/bloom/search");
|
|
11
11
|
var _accordion = require("@oxyhq/bloom/accordion");
|
|
12
12
|
var _typography = require("@oxyhq/bloom/typography");
|
|
13
13
|
var _useI18n = require("../../hooks/useI18n.js");
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
16
|
const FAQ_KEYS = ['what', 'earn', 'lose', 'use', 'transfer', 'support'];
|
|
18
17
|
|
|
@@ -20,16 +19,18 @@ const FAQ_KEYS = ['what', 'earn', 'lose', 'use', 'transfer', 'support'];
|
|
|
20
19
|
* TrustFAQScreen
|
|
21
20
|
*
|
|
22
21
|
* Frequently asked questions about Oxy Trust, rendered with the shared Bloom
|
|
23
|
-
* Accordion (single-expand) +
|
|
22
|
+
* Accordion (single-expand) + Search. Styling is centralized Bloom token
|
|
24
23
|
* classes; the Bloom Accordion owns its own expand/collapse animation, so no
|
|
25
24
|
* `LayoutAnimation` is used here.
|
|
26
25
|
*/
|
|
27
|
-
const TrustFAQScreen = ({
|
|
28
|
-
goBack
|
|
29
|
-
}) => {
|
|
26
|
+
const TrustFAQScreen = () => {
|
|
30
27
|
const {
|
|
31
28
|
t
|
|
32
29
|
} = (0, _useI18n.useI18n)();
|
|
30
|
+
(0, _useSurfaceHeader.useSurfaceHeader)({
|
|
31
|
+
title: t('trust.faq.title') || 'Trust FAQ',
|
|
32
|
+
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust'
|
|
33
|
+
});
|
|
33
34
|
const [search, setSearch] = (0, _react.useState)('');
|
|
34
35
|
const [expanded, setExpanded] = (0, _react.useState)(undefined);
|
|
35
36
|
const faqs = (0, _react.useMemo)(() => FAQ_KEYS.map(key => ({
|
|
@@ -45,26 +46,18 @@ const TrustFAQScreen = ({
|
|
|
45
46
|
const handleAccordionChange = (0, _react.useCallback)(value => {
|
|
46
47
|
setExpanded(Array.isArray(value) ? value[0] : value);
|
|
47
48
|
}, []);
|
|
48
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
49
|
-
|
|
50
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
51
|
-
title: t('trust.faq.title') || 'Trust FAQ',
|
|
52
|
-
subtitle: t('trust.faq.subtitle') || 'Frequently asked questions about Oxy Trust',
|
|
53
|
-
subtitleVariant: "muted",
|
|
54
|
-
onBack: goBack,
|
|
55
|
-
elevation: "subtle"
|
|
56
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
57
51
|
className: "px-screen-margin pt-space-20 pb-space-12",
|
|
58
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_search.Search, {
|
|
59
53
|
label: t('trust.faq.search') || 'Search FAQ...',
|
|
60
54
|
value: search,
|
|
61
55
|
onChangeText: setSearch,
|
|
62
56
|
onClearText: () => setSearch(''),
|
|
63
57
|
accessibilityLabel: "Search Trust FAQ"
|
|
64
58
|
})
|
|
65
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.
|
|
66
|
-
className: "
|
|
67
|
-
showsVerticalScrollIndicator: false,
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
60
|
+
className: "px-screen-margin",
|
|
68
61
|
children: filteredFaqs.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
69
62
|
className: "text-text-secondary text-center p-space-40",
|
|
70
63
|
children: t('trust.faq.noResults', {
|