@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,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { View
|
|
4
|
+
import { View } from 'react-native';
|
|
5
5
|
import { toast } from '@oxyhq/bloom';
|
|
6
6
|
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
7
7
|
import { Switch } from '@oxyhq/bloom/switch';
|
|
8
8
|
import { Button } from '@oxyhq/bloom/button';
|
|
9
9
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
10
|
-
import Header from "../components/Header.js";
|
|
11
10
|
import { Avatar } from '@oxyhq/bloom/avatar';
|
|
12
11
|
import { Loading } from '@oxyhq/bloom/loading';
|
|
13
12
|
import { Text } from '@oxyhq/bloom/typography';
|
|
14
13
|
import { SettingsIcon } from "../components/SettingsIcon.js";
|
|
15
14
|
import { useI18n } from "../hooks/useI18n.js";
|
|
15
|
+
import { useSurfaceHeader } from "../hooks/useSurfaceHeader.js";
|
|
16
16
|
import { useSettingToggles } from "../hooks/useSettingToggle.js";
|
|
17
17
|
import { getAccountDisplayName } from '@oxyhq/core';
|
|
18
18
|
import { useOxy } from "../context/OxyContext.js";
|
|
19
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
const DEFAULT_PRIVACY_SETTINGS = {
|
|
21
21
|
isPrivateAccount: false,
|
|
22
22
|
hideOnlineStatus: false,
|
|
@@ -52,6 +52,9 @@ const PrivacySettingsScreen = ({
|
|
|
52
52
|
t,
|
|
53
53
|
locale
|
|
54
54
|
} = useI18n();
|
|
55
|
+
useSurfaceHeader({
|
|
56
|
+
title: t('privacySettings.title') || 'Privacy Settings'
|
|
57
|
+
});
|
|
55
58
|
const bloomTheme = useTheme();
|
|
56
59
|
const [isLoading, setIsLoading] = useState(true);
|
|
57
60
|
const [blockedUsers, setBlockedUsers] = useState([]);
|
|
@@ -192,316 +195,301 @@ const PrivacySettingsScreen = ({
|
|
|
192
195
|
};
|
|
193
196
|
}, [locale]);
|
|
194
197
|
if (isLoading) {
|
|
195
|
-
return /*#__PURE__*/
|
|
196
|
-
|
|
197
|
-
children: [/*#__PURE__*/_jsx(Header, {
|
|
198
|
-
title: t('privacySettings.title') || 'Privacy Settings',
|
|
199
|
-
onBack: goBack || onClose,
|
|
200
|
-
variant: "minimal",
|
|
201
|
-
elevation: "subtle"
|
|
202
|
-
}), /*#__PURE__*/_jsx(Loading, {
|
|
198
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
199
|
+
children: /*#__PURE__*/_jsx(Loading, {
|
|
203
200
|
size: "large",
|
|
204
201
|
color: bloomTheme.colors.text
|
|
205
|
-
})
|
|
202
|
+
})
|
|
206
203
|
});
|
|
207
204
|
}
|
|
208
|
-
return /*#__PURE__*/
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
205
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
206
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
207
|
+
className: "px-screen-margin pb-space-24",
|
|
208
|
+
children: [/*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
209
|
+
title: t('privacySettings.sections.account') || 'ACCOUNT PRIVACY',
|
|
210
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
211
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
212
|
+
name: "lock-outline",
|
|
213
|
+
color: bloomTheme.colors.primary
|
|
214
|
+
}),
|
|
215
|
+
title: t('privacySettings.isPrivateAccount') || 'Private Account',
|
|
216
|
+
description: t('privacySettings.isPrivateAccountDesc') || 'Only approved followers can see your posts',
|
|
217
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
218
|
+
value: settings.isPrivateAccount,
|
|
219
|
+
onValueChange: () => toggle('isPrivateAccount'),
|
|
220
|
+
disabled: isSaving
|
|
221
|
+
}),
|
|
222
|
+
showChevron: false
|
|
223
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
224
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
225
|
+
name: "account-eye-outline",
|
|
226
|
+
color: bloomTheme.colors.info
|
|
227
|
+
}),
|
|
228
|
+
title: t('privacySettings.profileVisibility') || 'Profile Visibility',
|
|
229
|
+
description: t('privacySettings.profileVisibilityDesc') || 'Control who can view your profile',
|
|
230
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
231
|
+
value: settings.profileVisibility,
|
|
232
|
+
onValueChange: () => toggle('profileVisibility'),
|
|
233
|
+
disabled: isSaving
|
|
234
|
+
}),
|
|
235
|
+
showChevron: false
|
|
236
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
237
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
238
|
+
name: "circle-outline",
|
|
239
|
+
color: bloomTheme.colors.success
|
|
240
|
+
}),
|
|
241
|
+
title: t('privacySettings.hideOnlineStatus') || 'Hide Online Status',
|
|
242
|
+
description: t('privacySettings.hideOnlineStatusDesc') || 'Don\'t show when you\'re online',
|
|
243
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
244
|
+
value: settings.hideOnlineStatus,
|
|
245
|
+
onValueChange: () => toggle('hideOnlineStatus'),
|
|
246
|
+
disabled: isSaving
|
|
247
|
+
}),
|
|
248
|
+
showChevron: false
|
|
249
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
250
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
251
|
+
name: "clock-outline",
|
|
252
|
+
color: bloomTheme.colors.secondary
|
|
253
|
+
}),
|
|
254
|
+
title: t('privacySettings.hideLastSeen') || 'Hide Last Seen',
|
|
255
|
+
description: t('privacySettings.hideLastSeenDesc') || 'Don\'t show when you were last active',
|
|
256
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
257
|
+
value: settings.hideLastSeen,
|
|
258
|
+
onValueChange: () => toggle('hideLastSeen'),
|
|
259
|
+
disabled: isSaving
|
|
260
|
+
}),
|
|
261
|
+
showChevron: false
|
|
262
|
+
})]
|
|
263
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
264
|
+
title: t('privacySettings.sections.interactions') || 'INTERACTIONS',
|
|
265
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
266
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
267
|
+
name: "tag-outline",
|
|
268
|
+
color: bloomTheme.colors.primary
|
|
269
|
+
}),
|
|
270
|
+
title: t('privacySettings.allowTagging') || 'Allow Tagging',
|
|
271
|
+
description: t('privacySettings.allowTaggingDesc') || 'Let others tag you in posts',
|
|
272
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
273
|
+
value: settings.allowTagging,
|
|
274
|
+
onValueChange: () => toggle('allowTagging'),
|
|
275
|
+
disabled: isSaving
|
|
276
|
+
}),
|
|
277
|
+
showChevron: false
|
|
278
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
279
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
280
|
+
name: "at",
|
|
281
|
+
color: bloomTheme.colors.info
|
|
282
|
+
}),
|
|
283
|
+
title: t('privacySettings.allowMentions') || 'Allow Mentions',
|
|
284
|
+
description: t('privacySettings.allowMentionsDesc') || 'Let others mention you',
|
|
285
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
286
|
+
value: settings.allowMentions,
|
|
287
|
+
onValueChange: () => toggle('allowMentions'),
|
|
288
|
+
disabled: isSaving
|
|
289
|
+
}),
|
|
290
|
+
showChevron: false
|
|
291
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
292
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
293
|
+
name: "message-outline",
|
|
294
|
+
color: bloomTheme.colors.success
|
|
295
|
+
}),
|
|
296
|
+
title: t('privacySettings.allowDirectMessages') || 'Allow Direct Messages',
|
|
297
|
+
description: t('privacySettings.allowDirectMessagesDesc') || 'Let others send you direct messages',
|
|
298
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
299
|
+
value: settings.allowDirectMessages,
|
|
300
|
+
onValueChange: () => toggle('allowDirectMessages'),
|
|
301
|
+
disabled: isSaving
|
|
302
|
+
}),
|
|
303
|
+
showChevron: false
|
|
304
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
305
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
306
|
+
name: "check-all",
|
|
307
|
+
color: bloomTheme.colors.secondary
|
|
308
|
+
}),
|
|
309
|
+
title: t('privacySettings.hideReadReceipts') || 'Hide Read Receipts',
|
|
310
|
+
description: t('privacySettings.hideReadReceiptsDesc') || 'Don\'t show read receipts in messages',
|
|
311
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
312
|
+
value: settings.hideReadReceipts,
|
|
313
|
+
onValueChange: () => toggle('hideReadReceipts'),
|
|
314
|
+
disabled: isSaving
|
|
315
|
+
}),
|
|
316
|
+
showChevron: false
|
|
317
|
+
})]
|
|
318
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
319
|
+
title: t('privacySettings.sections.activity') || 'ACTIVITY & DATA',
|
|
320
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
321
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
322
|
+
name: "pulse",
|
|
323
|
+
color: bloomTheme.colors.primary
|
|
324
|
+
}),
|
|
325
|
+
title: t('privacySettings.showActivity') || 'Show Activity Status',
|
|
326
|
+
description: t('privacySettings.showActivityDesc') || 'Display your activity on your profile',
|
|
327
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
328
|
+
value: settings.showActivity,
|
|
329
|
+
onValueChange: () => toggle('showActivity'),
|
|
330
|
+
disabled: isSaving
|
|
331
|
+
}),
|
|
332
|
+
showChevron: false
|
|
333
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
334
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
335
|
+
name: "database-outline",
|
|
336
|
+
color: bloomTheme.colors.info
|
|
337
|
+
}),
|
|
338
|
+
title: t('privacySettings.dataSharing') || 'Data Sharing',
|
|
339
|
+
description: t('privacySettings.dataSharingDesc') || 'Allow sharing data for personalization',
|
|
340
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
341
|
+
value: settings.dataSharing,
|
|
342
|
+
onValueChange: () => toggle('dataSharing'),
|
|
343
|
+
disabled: isSaving
|
|
344
|
+
}),
|
|
345
|
+
showChevron: false
|
|
346
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
347
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
348
|
+
name: "map-marker-outline",
|
|
349
|
+
color: bloomTheme.colors.warning
|
|
350
|
+
}),
|
|
351
|
+
title: t('privacySettings.locationSharing') || 'Location Sharing',
|
|
352
|
+
description: t('privacySettings.locationSharingDesc') || 'Share your location',
|
|
353
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
354
|
+
value: settings.locationSharing,
|
|
355
|
+
onValueChange: () => toggle('locationSharing'),
|
|
356
|
+
disabled: isSaving
|
|
357
|
+
}),
|
|
358
|
+
showChevron: false
|
|
359
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
360
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
361
|
+
name: "chart-line",
|
|
362
|
+
color: bloomTheme.colors.secondary
|
|
363
|
+
}),
|
|
364
|
+
title: t('privacySettings.analyticsSharing') || 'Analytics Sharing',
|
|
365
|
+
description: t('privacySettings.analyticsSharingDesc') || 'Allow analytics data collection',
|
|
366
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
367
|
+
value: settings.analyticsSharing,
|
|
368
|
+
onValueChange: () => toggle('analyticsSharing'),
|
|
369
|
+
disabled: isSaving
|
|
370
|
+
}),
|
|
371
|
+
showChevron: false
|
|
372
|
+
})]
|
|
373
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
374
|
+
title: t('privacySettings.sections.content') || 'CONTENT & SAFETY',
|
|
375
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
376
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
377
|
+
name: "eye-off-outline",
|
|
378
|
+
color: bloomTheme.colors.warning
|
|
379
|
+
}),
|
|
380
|
+
title: t('privacySettings.sensitiveContent') || 'Show Sensitive Content',
|
|
381
|
+
description: t('privacySettings.sensitiveContentDesc') || 'Allow sensitive or explicit content',
|
|
382
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
383
|
+
value: settings.sensitiveContent,
|
|
384
|
+
onValueChange: () => toggle('sensitiveContent'),
|
|
385
|
+
disabled: isSaving
|
|
386
|
+
}),
|
|
387
|
+
showChevron: false
|
|
388
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
389
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
390
|
+
name: "filter-outline",
|
|
391
|
+
color: bloomTheme.colors.success
|
|
392
|
+
}),
|
|
393
|
+
title: t('privacySettings.autoFilter') || 'Auto Filter',
|
|
394
|
+
description: t('privacySettings.autoFilterDesc') || 'Automatically filter inappropriate content',
|
|
395
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
396
|
+
value: settings.autoFilter,
|
|
397
|
+
onValueChange: () => toggle('autoFilter'),
|
|
398
|
+
disabled: isSaving
|
|
399
|
+
}),
|
|
400
|
+
showChevron: false
|
|
401
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
402
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
403
|
+
name: "volume-off",
|
|
404
|
+
color: bloomTheme.colors.info
|
|
405
|
+
}),
|
|
406
|
+
title: t('privacySettings.muteKeywords') || 'Mute Keywords',
|
|
407
|
+
description: t('privacySettings.muteKeywordsDesc') || 'Hide posts containing muted keywords',
|
|
408
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
409
|
+
value: settings.muteKeywords,
|
|
410
|
+
onValueChange: () => toggle('muteKeywords'),
|
|
411
|
+
disabled: isSaving
|
|
412
|
+
}),
|
|
413
|
+
showChevron: false
|
|
414
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
415
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
416
|
+
name: "cellphone-screenshot",
|
|
417
|
+
color: bloomTheme.colors.secondary
|
|
418
|
+
}),
|
|
419
|
+
title: t('privacySettings.blockScreenshots') || 'Block Screenshots',
|
|
420
|
+
description: t('privacySettings.blockScreenshotsDesc') || 'Prevent screenshots of your content',
|
|
421
|
+
rightElement: /*#__PURE__*/_jsx(Switch, {
|
|
422
|
+
value: settings.blockScreenshots,
|
|
423
|
+
onValueChange: () => toggle('blockScreenshots'),
|
|
424
|
+
disabled: isSaving
|
|
425
|
+
}),
|
|
426
|
+
showChevron: false
|
|
427
|
+
})]
|
|
428
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
429
|
+
title: t('privacySettings.sections.blockedUsers') || 'BLOCKED USERS',
|
|
430
|
+
children: isLoadingUsers ? /*#__PURE__*/_jsx(Loading, {
|
|
431
|
+
size: "small",
|
|
432
|
+
color: bloomTheme.colors.text
|
|
433
|
+
}) : blockedUsers.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
434
|
+
className: "text-text-secondary text-center p-space-40",
|
|
435
|
+
children: t('privacySettings.noBlockedUsers') || 'No blocked users'
|
|
436
|
+
}) : blockedUsers.map(blocked => {
|
|
437
|
+
const {
|
|
438
|
+
userId,
|
|
439
|
+
displayName,
|
|
440
|
+
avatar
|
|
441
|
+
} = extractUserInfo(blocked, 'blockedId');
|
|
442
|
+
const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
|
|
443
|
+
return /*#__PURE__*/_jsx(SettingsListItem, {
|
|
444
|
+
icon: /*#__PURE__*/_jsx(Avatar, {
|
|
445
|
+
source: avatarUri,
|
|
446
|
+
name: displayName,
|
|
447
|
+
size: 20
|
|
448
|
+
}),
|
|
449
|
+
title: displayName,
|
|
450
|
+
rightElement: /*#__PURE__*/_jsx(Button, {
|
|
451
|
+
variant: "destructive",
|
|
452
|
+
size: "small",
|
|
453
|
+
onPress: () => handleUnblock(userId),
|
|
454
|
+
children: t('privacySettings.unblock') || 'Unblock'
|
|
423
455
|
}),
|
|
424
456
|
showChevron: false
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
457
|
+
}, userId);
|
|
458
|
+
})
|
|
459
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
460
|
+
title: t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS',
|
|
461
|
+
children: isLoadingUsers ? /*#__PURE__*/_jsx(Loading, {
|
|
462
|
+
size: "small",
|
|
463
|
+
color: bloomTheme.colors.text
|
|
464
|
+
}) : restrictedUsers.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
465
|
+
className: "text-text-secondary text-center p-space-40",
|
|
466
|
+
children: t('privacySettings.noRestrictedUsers') || 'No restricted users'
|
|
467
|
+
}) : restrictedUsers.map(restricted => {
|
|
468
|
+
const {
|
|
469
|
+
userId,
|
|
470
|
+
displayName,
|
|
471
|
+
avatar
|
|
472
|
+
} = extractUserInfo(restricted, 'restrictedId');
|
|
473
|
+
const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
|
|
474
|
+
return /*#__PURE__*/_jsx(SettingsListItem, {
|
|
475
|
+
icon: /*#__PURE__*/_jsx(Avatar, {
|
|
476
|
+
source: avatarUri,
|
|
477
|
+
name: displayName,
|
|
478
|
+
size: 20
|
|
479
|
+
}),
|
|
480
|
+
title: displayName,
|
|
481
|
+
description: t('privacySettings.restrictedDescription') || 'Limited interactions',
|
|
482
|
+
rightElement: /*#__PURE__*/_jsx(Button, {
|
|
483
|
+
variant: "secondary",
|
|
484
|
+
size: "small",
|
|
485
|
+
onPress: () => handleUnrestrict(userId),
|
|
486
|
+
children: t('privacySettings.unrestrict') || 'Unrestrict'
|
|
436
487
|
}),
|
|
437
488
|
showChevron: false
|
|
438
|
-
})
|
|
439
|
-
})
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
size: "small",
|
|
443
|
-
color: bloomTheme.colors.text
|
|
444
|
-
}) : blockedUsers.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
445
|
-
className: "text-text-secondary text-center p-space-40",
|
|
446
|
-
children: t('privacySettings.noBlockedUsers') || 'No blocked users'
|
|
447
|
-
}) : blockedUsers.map(blocked => {
|
|
448
|
-
const {
|
|
449
|
-
userId,
|
|
450
|
-
displayName,
|
|
451
|
-
avatar
|
|
452
|
-
} = extractUserInfo(blocked, 'blockedId');
|
|
453
|
-
const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
|
|
454
|
-
return /*#__PURE__*/_jsx(SettingsListItem, {
|
|
455
|
-
icon: /*#__PURE__*/_jsx(Avatar, {
|
|
456
|
-
source: avatarUri,
|
|
457
|
-
name: displayName,
|
|
458
|
-
size: 20
|
|
459
|
-
}),
|
|
460
|
-
title: displayName,
|
|
461
|
-
rightElement: /*#__PURE__*/_jsx(Button, {
|
|
462
|
-
variant: "destructive",
|
|
463
|
-
size: "small",
|
|
464
|
-
onPress: () => handleUnblock(userId),
|
|
465
|
-
children: t('privacySettings.unblock') || 'Unblock'
|
|
466
|
-
}),
|
|
467
|
-
showChevron: false
|
|
468
|
-
}, userId);
|
|
469
|
-
})
|
|
470
|
-
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
471
|
-
title: t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS',
|
|
472
|
-
children: isLoadingUsers ? /*#__PURE__*/_jsx(Loading, {
|
|
473
|
-
size: "small",
|
|
474
|
-
color: bloomTheme.colors.text
|
|
475
|
-
}) : restrictedUsers.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
476
|
-
className: "text-text-secondary text-center p-space-40",
|
|
477
|
-
children: t('privacySettings.noRestrictedUsers') || 'No restricted users'
|
|
478
|
-
}) : restrictedUsers.map(restricted => {
|
|
479
|
-
const {
|
|
480
|
-
userId,
|
|
481
|
-
displayName,
|
|
482
|
-
avatar
|
|
483
|
-
} = extractUserInfo(restricted, 'restrictedId');
|
|
484
|
-
const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
|
|
485
|
-
return /*#__PURE__*/_jsx(SettingsListItem, {
|
|
486
|
-
icon: /*#__PURE__*/_jsx(Avatar, {
|
|
487
|
-
source: avatarUri,
|
|
488
|
-
name: displayName,
|
|
489
|
-
size: 20
|
|
490
|
-
}),
|
|
491
|
-
title: displayName,
|
|
492
|
-
description: t('privacySettings.restrictedDescription') || 'Limited interactions',
|
|
493
|
-
rightElement: /*#__PURE__*/_jsx(Button, {
|
|
494
|
-
variant: "secondary",
|
|
495
|
-
size: "small",
|
|
496
|
-
onPress: () => handleUnrestrict(userId),
|
|
497
|
-
children: t('privacySettings.unrestrict') || 'Unrestrict'
|
|
498
|
-
}),
|
|
499
|
-
showChevron: false
|
|
500
|
-
}, userId);
|
|
501
|
-
})
|
|
502
|
-
})]
|
|
503
|
-
})
|
|
504
|
-
})]
|
|
489
|
+
}, userId);
|
|
490
|
+
})
|
|
491
|
+
})]
|
|
492
|
+
})
|
|
505
493
|
});
|
|
506
494
|
};
|
|
507
495
|
export default /*#__PURE__*/React.memo(PrivacySettingsScreen);
|