@oxyhq/services 10.5.0 → 11.1.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.map +1 -1
- package/lib/commonjs/ui/components/AccountMenu.js +9 -5
- package/lib/commonjs/ui/components/AccountMenu.js.map +1 -1
- package/lib/commonjs/ui/components/AnotherDeviceQR.js +51 -56
- package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +1 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +18 -5
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +23 -7
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +20 -1
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +19 -9
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +4 -2
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +153 -19
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +6 -17
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +5 -5
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +38 -38
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +2 -2
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +3 -3
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +16 -12
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +10 -6
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +6 -5
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js +40 -2
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js +21 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +100 -108
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +227 -273
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -4
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +20 -37
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +89 -201
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +80 -208
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +56 -208
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +303 -352
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +20 -20
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +77 -89
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +43 -58
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +67 -90
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +77 -177
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +113 -107
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +55 -114
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +67 -85
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +71 -135
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +15 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +65 -83
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +378 -1023
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +294 -242
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +192 -305
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +57 -97
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +41 -41
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +17 -24
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +83 -214
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +115 -77
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +70 -57
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +136 -332
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +47 -137
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +182 -115
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +138 -214
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +54 -92
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/activeAuthuser.js +15 -9
- package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/AccountMenu.js +10 -6
- package/lib/module/ui/components/AccountMenu.js.map +1 -1
- package/lib/module/ui/components/AnotherDeviceQR.js +50 -56
- package/lib/module/ui/components/AnotherDeviceQR.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +2 -1
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +18 -5
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +23 -7
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +20 -1
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +19 -9
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +4 -2
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +154 -20
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +6 -17
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +5 -5
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +38 -38
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +2 -2
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +3 -3
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +16 -12
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +9 -6
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js +6 -5
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useOxyAuthSession.js +40 -2
- package/lib/module/ui/hooks/useOxyAuthSession.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js +21 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +4 -3
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +101 -109
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +228 -275
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +10 -4
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +19 -39
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateManagedAccountScreen.js +90 -202
- package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +77 -205
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +55 -207
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +301 -350
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +20 -20
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +78 -90
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +44 -59
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +68 -91
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +75 -177
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +116 -108
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +52 -112
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +68 -86
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +69 -134
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +16 -10
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +66 -84
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +366 -1012
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +295 -243
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +189 -302
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +58 -98
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +42 -42
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +18 -25
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +81 -212
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +114 -76
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +69 -57
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +135 -332
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +48 -138
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +184 -117
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +132 -208
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +58 -94
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/utils/activeAuthuser.js +15 -9
- package/lib/module/ui/utils/activeAuthuser.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +12 -2
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +3 -2
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +34 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +3 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +22 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +3 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +2 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AccountMenu.d.ts +2 -0
- package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +12 -2
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +3 -2
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +34 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +3 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +22 -0
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +3 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +2 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -1
- package/lib/typescript/types/expo-haptics.d.ts +42 -0
- package/package.json +24 -31
- package/src/index.ts +1 -0
- package/src/types/expo-haptics.d.ts +42 -0
- package/src/ui/components/AccountMenu.tsx +11 -5
- package/src/ui/components/AnotherDeviceQR.tsx +53 -45
- package/src/ui/components/BottomSheetRouter.tsx +2 -1
- package/src/ui/components/FollowButton.tsx +24 -5
- package/src/ui/components/OxyProvider.tsx +22 -8
- package/src/ui/components/SignInModal.tsx +21 -2
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +9 -9
- package/src/ui/components/fileManagement/UploadPreview.tsx +2 -2
- package/src/ui/context/OxyContext.tsx +178 -21
- package/src/ui/context/hooks/useAuthOperations.ts +6 -17
- package/src/ui/hooks/mutations/mutationFactory.ts +5 -5
- package/src/ui/hooks/mutations/useAccountMutations.ts +38 -38
- package/src/ui/hooks/mutations/useServicesMutations.ts +2 -2
- package/src/ui/hooks/queries/queryKeys.ts +6 -3
- package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
- package/src/ui/hooks/queries/usePaymentQueries.ts +12 -12
- package/src/ui/hooks/queries/useServicesQueries.ts +9 -6
- package/src/ui/hooks/queryClient.ts +5 -5
- package/src/ui/hooks/useOxyAuthSession.ts +76 -2
- package/src/ui/hooks/useProfileEditing.ts +24 -0
- package/src/ui/hooks/useSessionManagement.ts +9 -6
- package/src/ui/screens/AccountVerificationScreen.tsx +101 -113
- package/src/ui/screens/AppInfoScreen.tsx +200 -238
- package/src/ui/screens/AvatarCropScreen.tsx +17 -4
- package/src/ui/screens/ConnectedAppsScreen.tsx +16 -34
- package/src/ui/screens/CreateManagedAccountScreen.tsx +94 -170
- package/src/ui/screens/EditProfileFieldScreen.tsx +77 -190
- package/src/ui/screens/FAQScreen.tsx +77 -208
- package/src/ui/screens/FeedbackScreen.tsx +330 -239
- package/src/ui/screens/FileManagementScreen.tsx +20 -20
- package/src/ui/screens/HelpSupportScreen.tsx +67 -82
- package/src/ui/screens/HistoryViewScreen.tsx +32 -38
- package/src/ui/screens/LanguageSelectorScreen.tsx +79 -93
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +81 -164
- package/src/ui/screens/LegalDocumentsScreen.tsx +184 -123
- package/src/ui/screens/ManageAccountScreen.tsx +48 -114
- package/src/ui/screens/NotificationsScreen.tsx +107 -106
- package/src/ui/screens/OxyAuthScreen.tsx +76 -109
- package/src/ui/screens/PaymentGatewayScreen.tsx +16 -7
- package/src/ui/screens/PreferencesScreen.tsx +96 -116
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +419 -872
- package/src/ui/screens/PrivacySettingsScreen.tsx +203 -185
- package/src/ui/screens/ProfileScreen.tsx +158 -200
- package/src/ui/screens/SavesCollectionsScreen.tsx +78 -125
- package/src/ui/screens/SearchSettingsScreen.tsx +52 -41
- package/src/ui/screens/UserLinksScreen.tsx +18 -25
- package/src/ui/screens/UserListScreen.tsx +95 -188
- package/src/ui/screens/WelcomeNewUserScreen.tsx +109 -36
- package/src/ui/screens/trust/TrustAboutScreen.tsx +52 -41
- package/src/ui/screens/trust/TrustCenterScreen.tsx +184 -222
- package/src/ui/screens/trust/TrustFAQScreen.tsx +64 -124
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +190 -67
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +147 -182
- package/src/ui/screens/trust/TrustRulesScreen.tsx +77 -50
- package/src/ui/utils/activeAuthuser.ts +15 -9
- package/src/ui/utils/avatarUtils.ts +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js +0 -72
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +0 -261
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/module/ui/components/feedback/FormInput.js +0 -67
- package/lib/module/ui/components/feedback/FormInput.js.map +0 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +0 -256
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/FormInput.d.ts +0 -20
- package/lib/typescript/module/ui/components/feedback/FormInput.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
- package/src/ui/components/feedback/FormInput.tsx +0 -84
- package/src/ui/components/feedback/feedbackStyles.ts +0 -246
|
@@ -7,14 +7,16 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _bloom = require("@oxyhq/bloom");
|
|
10
|
+
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
11
|
+
var _switch = require("@oxyhq/bloom/switch");
|
|
12
|
+
var _button = require("@oxyhq/bloom/button");
|
|
13
|
+
var _theme = require("@oxyhq/bloom/theme");
|
|
10
14
|
var _Header = _interopRequireDefault(require("../components/Header.js"));
|
|
11
15
|
var _Avatar = _interopRequireDefault(require("../components/Avatar.js"));
|
|
12
16
|
var _LoadingState = _interopRequireDefault(require("../components/LoadingState.js"));
|
|
13
17
|
var _EmptyState = _interopRequireDefault(require("../components/EmptyState.js"));
|
|
14
|
-
var
|
|
15
|
-
var _switch = require("@oxyhq/bloom/switch");
|
|
18
|
+
var _SettingsIcon = require("../components/SettingsIcon.js");
|
|
16
19
|
var _useI18n = require("../hooks/useI18n.js");
|
|
17
|
-
var _theme = require("@oxyhq/bloom/theme");
|
|
18
20
|
var _useSettingToggle = require("../hooks/useSettingToggle.js");
|
|
19
21
|
var _core = require("@oxyhq/core");
|
|
20
22
|
var _OxyContext = require("../context/OxyContext.js");
|
|
@@ -44,7 +46,6 @@ const DEFAULT_PRIVACY_SETTINGS = {
|
|
|
44
46
|
};
|
|
45
47
|
const PrivacySettingsScreen = ({
|
|
46
48
|
onClose,
|
|
47
|
-
theme,
|
|
48
49
|
goBack
|
|
49
50
|
}) => {
|
|
50
51
|
const {
|
|
@@ -55,6 +56,7 @@ const PrivacySettingsScreen = ({
|
|
|
55
56
|
t,
|
|
56
57
|
locale
|
|
57
58
|
} = (0, _useI18n.useI18n)();
|
|
59
|
+
const bloomTheme = (0, _theme.useTheme)();
|
|
58
60
|
const [isLoading, setIsLoading] = (0, _react.useState)(true);
|
|
59
61
|
const [blockedUsers, setBlockedUsers] = (0, _react.useState)([]);
|
|
60
62
|
const [restrictedUsers, setRestrictedUsers] = (0, _react.useState)([]);
|
|
@@ -190,12 +192,9 @@ const PrivacySettingsScreen = ({
|
|
|
190
192
|
avatar
|
|
191
193
|
};
|
|
192
194
|
}, [locale]);
|
|
193
|
-
const bloomTheme = (0, _theme.useTheme)();
|
|
194
195
|
if (isLoading) {
|
|
195
196
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
196
|
-
|
|
197
|
-
backgroundColor: bloomTheme.colors.background
|
|
198
|
-
}],
|
|
197
|
+
className: "flex-1 bg-bg",
|
|
199
198
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
200
199
|
title: t('privacySettings.title') || 'Privacy Settings',
|
|
201
200
|
onBack: goBack || onClose,
|
|
@@ -207,250 +206,303 @@ const PrivacySettingsScreen = ({
|
|
|
207
206
|
});
|
|
208
207
|
}
|
|
209
208
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
210
|
-
|
|
211
|
-
backgroundColor: bloomTheme.colors.background
|
|
212
|
-
}],
|
|
209
|
+
className: "flex-1 bg-bg",
|
|
213
210
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
214
211
|
title: t('privacySettings.title') || 'Privacy Settings',
|
|
215
212
|
onBack: goBack || onClose,
|
|
216
213
|
variant: "minimal",
|
|
217
214
|
elevation: "subtle"
|
|
218
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
219
|
-
|
|
220
|
-
children:
|
|
221
|
-
|
|
222
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
223
|
-
title: t('privacySettings.
|
|
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
|
-
|
|
215
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
216
|
+
className: "flex-1",
|
|
217
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
218
|
+
className: "px-screen-margin pb-space-24",
|
|
219
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
220
|
+
title: t('privacySettings.sections.account') || 'ACCOUNT PRIVACY',
|
|
221
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
222
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
223
|
+
name: "lock-outline",
|
|
224
|
+
color: bloomTheme.colors.primary
|
|
225
|
+
}),
|
|
226
|
+
title: t('privacySettings.isPrivateAccount') || 'Private Account',
|
|
227
|
+
description: t('privacySettings.isPrivateAccountDesc') || 'Only approved followers can see your posts',
|
|
228
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
229
|
+
value: settings.isPrivateAccount,
|
|
230
|
+
onValueChange: () => toggle('isPrivateAccount'),
|
|
231
|
+
disabled: isSaving
|
|
232
|
+
}),
|
|
233
|
+
showChevron: false
|
|
234
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
235
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
236
|
+
name: "account-eye-outline",
|
|
237
|
+
color: bloomTheme.colors.info
|
|
238
|
+
}),
|
|
239
|
+
title: t('privacySettings.profileVisibility') || 'Profile Visibility',
|
|
240
|
+
description: t('privacySettings.profileVisibilityDesc') || 'Control who can view your profile',
|
|
241
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
242
|
+
value: settings.profileVisibility,
|
|
243
|
+
onValueChange: () => toggle('profileVisibility'),
|
|
244
|
+
disabled: isSaving
|
|
245
|
+
}),
|
|
246
|
+
showChevron: false
|
|
247
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
248
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
249
|
+
name: "circle-outline",
|
|
250
|
+
color: bloomTheme.colors.success
|
|
251
|
+
}),
|
|
252
|
+
title: t('privacySettings.hideOnlineStatus') || 'Hide Online Status',
|
|
253
|
+
description: t('privacySettings.hideOnlineStatusDesc') || 'Don\'t show when you\'re online',
|
|
254
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
255
|
+
value: settings.hideOnlineStatus,
|
|
256
|
+
onValueChange: () => toggle('hideOnlineStatus'),
|
|
257
|
+
disabled: isSaving
|
|
258
|
+
}),
|
|
259
|
+
showChevron: false
|
|
260
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
261
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
262
|
+
name: "clock-outline",
|
|
263
|
+
color: bloomTheme.colors.secondary
|
|
264
|
+
}),
|
|
265
|
+
title: t('privacySettings.hideLastSeen') || 'Hide Last Seen',
|
|
266
|
+
description: t('privacySettings.hideLastSeenDesc') || 'Don\'t show when you were last active',
|
|
267
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
268
|
+
value: settings.hideLastSeen,
|
|
269
|
+
onValueChange: () => toggle('hideLastSeen'),
|
|
270
|
+
disabled: isSaving
|
|
271
|
+
}),
|
|
272
|
+
showChevron: false
|
|
273
|
+
})]
|
|
274
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
275
|
+
title: t('privacySettings.sections.interactions') || 'INTERACTIONS',
|
|
276
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
277
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
278
|
+
name: "tag-outline",
|
|
279
|
+
color: bloomTheme.colors.primary
|
|
280
|
+
}),
|
|
281
|
+
title: t('privacySettings.allowTagging') || 'Allow Tagging',
|
|
282
|
+
description: t('privacySettings.allowTaggingDesc') || 'Let others tag you in posts',
|
|
283
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
284
|
+
value: settings.allowTagging,
|
|
285
|
+
onValueChange: () => toggle('allowTagging'),
|
|
286
|
+
disabled: isSaving
|
|
287
|
+
}),
|
|
288
|
+
showChevron: false
|
|
289
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
290
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
291
|
+
name: "at",
|
|
292
|
+
color: bloomTheme.colors.info
|
|
293
|
+
}),
|
|
294
|
+
title: t('privacySettings.allowMentions') || 'Allow Mentions',
|
|
295
|
+
description: t('privacySettings.allowMentionsDesc') || 'Let others mention you',
|
|
296
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
297
|
+
value: settings.allowMentions,
|
|
298
|
+
onValueChange: () => toggle('allowMentions'),
|
|
299
|
+
disabled: isSaving
|
|
300
|
+
}),
|
|
301
|
+
showChevron: false
|
|
302
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
303
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
304
|
+
name: "message-outline",
|
|
305
|
+
color: bloomTheme.colors.success
|
|
306
|
+
}),
|
|
307
|
+
title: t('privacySettings.allowDirectMessages') || 'Allow Direct Messages',
|
|
308
|
+
description: t('privacySettings.allowDirectMessagesDesc') || 'Let others send you direct messages',
|
|
309
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
310
|
+
value: settings.allowDirectMessages,
|
|
311
|
+
onValueChange: () => toggle('allowDirectMessages'),
|
|
312
|
+
disabled: isSaving
|
|
313
|
+
}),
|
|
314
|
+
showChevron: false
|
|
315
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
316
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
317
|
+
name: "check-all",
|
|
318
|
+
color: bloomTheme.colors.secondary
|
|
319
|
+
}),
|
|
320
|
+
title: t('privacySettings.hideReadReceipts') || 'Hide Read Receipts',
|
|
321
|
+
description: t('privacySettings.hideReadReceiptsDesc') || 'Don\'t show read receipts in messages',
|
|
322
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
323
|
+
value: settings.hideReadReceipts,
|
|
324
|
+
onValueChange: () => toggle('hideReadReceipts'),
|
|
325
|
+
disabled: isSaving
|
|
326
|
+
}),
|
|
327
|
+
showChevron: false
|
|
328
|
+
})]
|
|
329
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
330
|
+
title: t('privacySettings.sections.activity') || 'ACTIVITY & DATA',
|
|
331
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
332
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
333
|
+
name: "pulse",
|
|
334
|
+
color: bloomTheme.colors.primary
|
|
335
|
+
}),
|
|
336
|
+
title: t('privacySettings.showActivity') || 'Show Activity Status',
|
|
337
|
+
description: t('privacySettings.showActivityDesc') || 'Display your activity on your profile',
|
|
338
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
339
|
+
value: settings.showActivity,
|
|
340
|
+
onValueChange: () => toggle('showActivity'),
|
|
341
|
+
disabled: isSaving
|
|
342
|
+
}),
|
|
343
|
+
showChevron: false
|
|
344
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
345
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
346
|
+
name: "database-outline",
|
|
347
|
+
color: bloomTheme.colors.info
|
|
348
|
+
}),
|
|
349
|
+
title: t('privacySettings.dataSharing') || 'Data Sharing',
|
|
350
|
+
description: t('privacySettings.dataSharingDesc') || 'Allow sharing data for personalization',
|
|
351
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
352
|
+
value: settings.dataSharing,
|
|
353
|
+
onValueChange: () => toggle('dataSharing'),
|
|
354
|
+
disabled: isSaving
|
|
355
|
+
}),
|
|
356
|
+
showChevron: false
|
|
357
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
358
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
359
|
+
name: "map-marker-outline",
|
|
360
|
+
color: bloomTheme.colors.warning
|
|
361
|
+
}),
|
|
362
|
+
title: t('privacySettings.locationSharing') || 'Location Sharing',
|
|
363
|
+
description: t('privacySettings.locationSharingDesc') || 'Share your location',
|
|
364
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
365
|
+
value: settings.locationSharing,
|
|
366
|
+
onValueChange: () => toggle('locationSharing'),
|
|
367
|
+
disabled: isSaving
|
|
368
|
+
}),
|
|
369
|
+
showChevron: false
|
|
370
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
371
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
372
|
+
name: "chart-line",
|
|
373
|
+
color: bloomTheme.colors.secondary
|
|
374
|
+
}),
|
|
375
|
+
title: t('privacySettings.analyticsSharing') || 'Analytics Sharing',
|
|
376
|
+
description: t('privacySettings.analyticsSharingDesc') || 'Allow analytics data collection',
|
|
377
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
378
|
+
value: settings.analyticsSharing,
|
|
379
|
+
onValueChange: () => toggle('analyticsSharing'),
|
|
380
|
+
disabled: isSaving
|
|
381
|
+
}),
|
|
382
|
+
showChevron: false
|
|
383
|
+
})]
|
|
384
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
385
|
+
title: t('privacySettings.sections.content') || 'CONTENT & SAFETY',
|
|
386
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
387
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
388
|
+
name: "eye-off-outline",
|
|
389
|
+
color: bloomTheme.colors.warning
|
|
390
|
+
}),
|
|
391
|
+
title: t('privacySettings.sensitiveContent') || 'Show Sensitive Content',
|
|
392
|
+
description: t('privacySettings.sensitiveContentDesc') || 'Allow sensitive or explicit content',
|
|
393
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
394
|
+
value: settings.sensitiveContent,
|
|
395
|
+
onValueChange: () => toggle('sensitiveContent'),
|
|
396
|
+
disabled: isSaving
|
|
397
|
+
}),
|
|
398
|
+
showChevron: false
|
|
399
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
400
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
401
|
+
name: "filter-outline",
|
|
402
|
+
color: bloomTheme.colors.success
|
|
403
|
+
}),
|
|
404
|
+
title: t('privacySettings.autoFilter') || 'Auto Filter',
|
|
405
|
+
description: t('privacySettings.autoFilterDesc') || 'Automatically filter inappropriate content',
|
|
406
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
407
|
+
value: settings.autoFilter,
|
|
408
|
+
onValueChange: () => toggle('autoFilter'),
|
|
409
|
+
disabled: isSaving
|
|
410
|
+
}),
|
|
411
|
+
showChevron: false
|
|
412
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
413
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
414
|
+
name: "volume-off",
|
|
415
|
+
color: bloomTheme.colors.info
|
|
416
|
+
}),
|
|
417
|
+
title: t('privacySettings.muteKeywords') || 'Mute Keywords',
|
|
418
|
+
description: t('privacySettings.muteKeywordsDesc') || 'Hide posts containing muted keywords',
|
|
419
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
420
|
+
value: settings.muteKeywords,
|
|
421
|
+
onValueChange: () => toggle('muteKeywords'),
|
|
422
|
+
disabled: isSaving
|
|
423
|
+
}),
|
|
424
|
+
showChevron: false
|
|
425
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
426
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
427
|
+
name: "cellphone-screenshot",
|
|
428
|
+
color: bloomTheme.colors.secondary
|
|
429
|
+
}),
|
|
430
|
+
title: t('privacySettings.blockScreenshots') || 'Block Screenshots',
|
|
431
|
+
description: t('privacySettings.blockScreenshotsDesc') || 'Prevent screenshots of your content',
|
|
432
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
433
|
+
value: settings.blockScreenshots,
|
|
434
|
+
onValueChange: () => toggle('blockScreenshots'),
|
|
435
|
+
disabled: isSaving
|
|
436
|
+
}),
|
|
437
|
+
showChevron: false
|
|
438
|
+
})]
|
|
439
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
440
|
+
title: t('privacySettings.sections.blockedUsers') || 'BLOCKED USERS',
|
|
441
|
+
children: isLoadingUsers ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoadingState.default, {
|
|
442
|
+
color: bloomTheme.colors.text,
|
|
443
|
+
size: "small"
|
|
444
|
+
}) : blockedUsers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyState.default, {
|
|
445
|
+
message: t('privacySettings.noBlockedUsers') || 'No blocked users',
|
|
446
|
+
textColor: bloomTheme.colors.textSecondary
|
|
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__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
455
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
456
|
+
uri: avatarUri,
|
|
457
|
+
name: displayName,
|
|
458
|
+
size: 20
|
|
459
|
+
}),
|
|
460
|
+
title: displayName,
|
|
461
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
462
|
+
variant: "destructive",
|
|
463
|
+
size: "small",
|
|
464
|
+
onPress: () => handleUnblock(userId),
|
|
465
|
+
children: t('privacySettings.unblock') || 'Unblock'
|
|
466
|
+
}),
|
|
467
|
+
showChevron: false
|
|
468
|
+
}, userId);
|
|
350
469
|
})
|
|
351
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.
|
|
352
|
-
title: t('privacySettings.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
470
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
471
|
+
title: t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS',
|
|
472
|
+
children: isLoadingUsers ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoadingState.default, {
|
|
473
|
+
color: bloomTheme.colors.text,
|
|
474
|
+
size: "small"
|
|
475
|
+
}) : restrictedUsers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyState.default, {
|
|
476
|
+
message: t('privacySettings.noRestrictedUsers') || 'No restricted users',
|
|
477
|
+
textColor: bloomTheme.colors.textSecondary
|
|
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__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
486
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
487
|
+
uri: avatarUri,
|
|
488
|
+
name: displayName,
|
|
489
|
+
size: 20
|
|
490
|
+
}),
|
|
491
|
+
title: displayName,
|
|
492
|
+
description: t('privacySettings.restrictedDescription') || 'Limited interactions',
|
|
493
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
494
|
+
variant: "secondary",
|
|
495
|
+
size: "small",
|
|
496
|
+
onPress: () => handleUnrestrict(userId),
|
|
497
|
+
children: t('privacySettings.unrestrict') || 'Unrestrict'
|
|
498
|
+
}),
|
|
499
|
+
showChevron: false
|
|
500
|
+
}, userId);
|
|
358
501
|
})
|
|
359
502
|
})]
|
|
360
|
-
})
|
|
361
|
-
title: t('privacySettings.sections.blockedUsers') || 'BLOCKED USERS',
|
|
362
|
-
children: isLoadingUsers ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoadingState.default, {
|
|
363
|
-
color: bloomTheme.colors.text,
|
|
364
|
-
size: "small"
|
|
365
|
-
}) : blockedUsers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyState.default, {
|
|
366
|
-
message: t('privacySettings.noBlockedUsers') || 'No blocked users',
|
|
367
|
-
textColor: bloomTheme.colors.textSecondary
|
|
368
|
-
}) : blockedUsers.map(blocked => {
|
|
369
|
-
const {
|
|
370
|
-
userId,
|
|
371
|
-
displayName,
|
|
372
|
-
avatar
|
|
373
|
-
} = extractUserInfo(blocked, 'blockedId');
|
|
374
|
-
const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
|
|
375
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
376
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
377
|
-
uri: avatarUri,
|
|
378
|
-
name: displayName,
|
|
379
|
-
size: 20
|
|
380
|
-
}),
|
|
381
|
-
title: displayName,
|
|
382
|
-
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
383
|
-
onPress: () => handleUnblock(userId),
|
|
384
|
-
style: [styles.actionButton, {
|
|
385
|
-
backgroundColor: bloomTheme.colors.backgroundSecondary
|
|
386
|
-
}],
|
|
387
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
388
|
-
style: [styles.actionButtonText, {
|
|
389
|
-
color: bloomTheme.colors.error
|
|
390
|
-
}],
|
|
391
|
-
children: t('privacySettings.unblock') || 'Unblock'
|
|
392
|
-
})
|
|
393
|
-
})
|
|
394
|
-
}, userId);
|
|
395
|
-
})
|
|
396
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
397
|
-
title: t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS',
|
|
398
|
-
children: isLoadingUsers ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoadingState.default, {
|
|
399
|
-
color: bloomTheme.colors.text,
|
|
400
|
-
size: "small"
|
|
401
|
-
}) : restrictedUsers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyState.default, {
|
|
402
|
-
message: t('privacySettings.noRestrictedUsers') || 'No restricted users',
|
|
403
|
-
textColor: bloomTheme.colors.textSecondary
|
|
404
|
-
}) : restrictedUsers.map(restricted => {
|
|
405
|
-
const {
|
|
406
|
-
userId,
|
|
407
|
-
displayName,
|
|
408
|
-
avatar
|
|
409
|
-
} = extractUserInfo(restricted, 'restrictedId');
|
|
410
|
-
const avatarUri = avatar && oxyServices ? oxyServices.getFileDownloadUrl(avatar, 'thumb') : undefined;
|
|
411
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
412
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
413
|
-
uri: avatarUri,
|
|
414
|
-
name: displayName,
|
|
415
|
-
size: 20
|
|
416
|
-
}),
|
|
417
|
-
title: displayName,
|
|
418
|
-
description: t('privacySettings.restrictedDescription') || 'Limited interactions',
|
|
419
|
-
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
420
|
-
onPress: () => handleUnrestrict(userId),
|
|
421
|
-
style: [styles.actionButton, {
|
|
422
|
-
backgroundColor: bloomTheme.colors.backgroundSecondary
|
|
423
|
-
}],
|
|
424
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
425
|
-
style: [styles.actionButtonText, {
|
|
426
|
-
color: bloomTheme.colors.primary
|
|
427
|
-
}],
|
|
428
|
-
children: t('privacySettings.unrestrict') || 'Unrestrict'
|
|
429
|
-
})
|
|
430
|
-
})
|
|
431
|
-
}, userId);
|
|
432
|
-
})
|
|
433
|
-
})]
|
|
503
|
+
})
|
|
434
504
|
})]
|
|
435
505
|
});
|
|
436
506
|
};
|
|
437
|
-
const styles = _reactNative.StyleSheet.create({
|
|
438
|
-
container: {
|
|
439
|
-
flex: 1
|
|
440
|
-
},
|
|
441
|
-
content: {
|
|
442
|
-
flex: 1,
|
|
443
|
-
padding: 16
|
|
444
|
-
},
|
|
445
|
-
actionButton: {
|
|
446
|
-
paddingHorizontal: 16,
|
|
447
|
-
paddingVertical: 8,
|
|
448
|
-
borderRadius: 8
|
|
449
|
-
},
|
|
450
|
-
actionButtonText: {
|
|
451
|
-
fontSize: 14,
|
|
452
|
-
fontWeight: '600'
|
|
453
|
-
}
|
|
454
|
-
});
|
|
455
507
|
var _default = exports.default = /*#__PURE__*/_react.default.memo(PrivacySettingsScreen);
|
|
456
508
|
//# sourceMappingURL=PrivacySettingsScreen.js.map
|