@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
|
@@ -29,6 +29,9 @@ export interface ProfileUpdateData {
|
|
|
29
29
|
links?: string[];
|
|
30
30
|
linksMetadata?: ProfileLinkMetadata[];
|
|
31
31
|
avatar?: string;
|
|
32
|
+
phone?: string;
|
|
33
|
+
address?: string;
|
|
34
|
+
birthday?: string;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
type ProfileFieldValue = string | ProfileLocation[] | ProfileLinkMetadata[];
|
|
@@ -81,6 +84,15 @@ export const useProfileEditing = () => {
|
|
|
81
84
|
if (updates.avatar !== undefined) {
|
|
82
85
|
updateData.avatar = updates.avatar;
|
|
83
86
|
}
|
|
87
|
+
if (updates.phone !== undefined) {
|
|
88
|
+
updateData.phone = updates.phone;
|
|
89
|
+
}
|
|
90
|
+
if (updates.address !== undefined) {
|
|
91
|
+
updateData.address = updates.address;
|
|
92
|
+
}
|
|
93
|
+
if (updates.birthday !== undefined) {
|
|
94
|
+
updateData.birthday = updates.birthday;
|
|
95
|
+
}
|
|
84
96
|
|
|
85
97
|
// Handle name field
|
|
86
98
|
if (updates.firstName !== undefined || updates.lastName !== undefined) {
|
|
@@ -124,6 +136,18 @@ export const useProfileEditing = () => {
|
|
|
124
136
|
if (typeof value !== 'string') return false;
|
|
125
137
|
updates.bio = value;
|
|
126
138
|
break;
|
|
139
|
+
case 'phone':
|
|
140
|
+
if (typeof value !== 'string') return false;
|
|
141
|
+
updates.phone = value;
|
|
142
|
+
break;
|
|
143
|
+
case 'address':
|
|
144
|
+
if (typeof value !== 'string') return false;
|
|
145
|
+
updates.address = value;
|
|
146
|
+
break;
|
|
147
|
+
case 'birthday':
|
|
148
|
+
if (typeof value !== 'string') return false;
|
|
149
|
+
updates.birthday = value;
|
|
150
|
+
break;
|
|
127
151
|
case 'location':
|
|
128
152
|
if (!isProfileLocationArray(value)) return false;
|
|
129
153
|
updates.locations = value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { isDev, type ApiError, type User } from '@oxyhq/core';
|
|
3
3
|
import type { ClientSession } from '@oxyhq/core';
|
|
4
4
|
import { mergeSessions, normalizeAndSortSessions, sessionsArraysEqual } from '@oxyhq/core';
|
|
5
5
|
import { fetchSessionsWithFallback, validateSessionBatch } from '../utils/sessionHelpers';
|
|
@@ -30,7 +30,7 @@ export interface UseSessionManagementResult {
|
|
|
30
30
|
sessions: ClientSession[];
|
|
31
31
|
activeSessionId: string | null;
|
|
32
32
|
setActiveSessionId: (sessionId: string | null) => void;
|
|
33
|
-
updateSessions: (incoming: ClientSession[], options?: { merge?: boolean }) => void;
|
|
33
|
+
updateSessions: (incoming: ClientSession[], options?: { merge?: boolean; preserveSessionIds?: string[] }) => void;
|
|
34
34
|
switchSession: (sessionId: string) => Promise<User>;
|
|
35
35
|
refreshSessions: (activeUserId?: string) => Promise<void>;
|
|
36
36
|
clearSessionState: () => Promise<void>;
|
|
@@ -86,7 +86,7 @@ export const useSessionManagement = ({
|
|
|
86
86
|
} catch (error) {
|
|
87
87
|
if (logger) {
|
|
88
88
|
logger(DEFAULT_SAVE_ERROR_MESSAGE, error);
|
|
89
|
-
} else if (
|
|
89
|
+
} else if (isDev()) {
|
|
90
90
|
console.warn('Failed to save session IDs:', error);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -95,14 +95,17 @@ export const useSessionManagement = ({
|
|
|
95
95
|
);
|
|
96
96
|
|
|
97
97
|
const updateSessions = useCallback(
|
|
98
|
-
(incoming: ClientSession[], options: { merge?: boolean } = {}): void => {
|
|
98
|
+
(incoming: ClientSession[], options: { merge?: boolean; preserveSessionIds?: string[] } = {}): void => {
|
|
99
99
|
setSessions((prevSessions) => {
|
|
100
100
|
const processed = options.merge
|
|
101
101
|
? mergeSessions(prevSessions, incoming, activeSessionIdRef.current, false)
|
|
102
102
|
: normalizeAndSortSessions(incoming, activeSessionIdRef.current, false);
|
|
103
103
|
|
|
104
104
|
if (storage) {
|
|
105
|
-
void saveSessionIds(
|
|
105
|
+
void saveSessionIds([
|
|
106
|
+
...processed.map((session) => session.sessionId),
|
|
107
|
+
...(options.preserveSessionIds ?? []),
|
|
108
|
+
]);
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
if (sessionsArraysEqual(prevSessions, processed)) {
|
|
@@ -309,7 +312,7 @@ export const useSessionManagement = ({
|
|
|
309
312
|
});
|
|
310
313
|
updateSessions(deviceSessions, { merge: true });
|
|
311
314
|
} catch (error) {
|
|
312
|
-
if (
|
|
315
|
+
if (isDev()) {
|
|
313
316
|
console.warn('Failed to synchronize sessions after switch:', error);
|
|
314
317
|
}
|
|
315
318
|
}
|
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import React, { useState, useCallback } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
View,
|
|
4
|
-
Text,
|
|
5
|
-
StyleSheet,
|
|
6
4
|
ScrollView,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
StyleSheet,
|
|
6
|
+
Platform,
|
|
7
|
+
KeyboardAvoidingView,
|
|
10
8
|
} from 'react-native';
|
|
11
9
|
import type { BaseScreenProps } from '../types/navigation';
|
|
12
10
|
import { Dialog, toast, useDialogControl } from '@oxyhq/bloom';
|
|
11
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
12
|
+
import { H4, Text } from '@oxyhq/bloom/typography';
|
|
13
|
+
import { Button } from '@oxyhq/bloom/button';
|
|
14
|
+
import { TextField, TextFieldInput } from '@oxyhq/bloom/text-field';
|
|
15
|
+
import { IconCircle } from '@oxyhq/bloom/icon-circle';
|
|
16
|
+
import { BenefitList, BenefitRow } from '@oxyhq/bloom/benefit-list';
|
|
17
|
+
import * as Icons from '@oxyhq/bloom/icons';
|
|
13
18
|
import Header from '../components/Header';
|
|
14
|
-
import { SettingsListGroup } from '@oxyhq/bloom/settings-list';
|
|
15
19
|
import { useI18n } from '../hooks/useI18n';
|
|
16
|
-
import { useTheme } from '@oxyhq/bloom/theme';
|
|
17
20
|
import { useOxy } from '../context/OxyContext';
|
|
18
21
|
|
|
19
22
|
const AccountVerificationScreen: React.FC<BaseScreenProps> = ({
|
|
20
23
|
onClose,
|
|
21
|
-
theme,
|
|
22
24
|
goBack,
|
|
23
25
|
}) => {
|
|
24
26
|
// Use useOxy() hook for OxyContext values
|
|
25
|
-
const { oxyServices
|
|
27
|
+
const { oxyServices } = useOxy();
|
|
26
28
|
const { t } = useI18n();
|
|
29
|
+
const bloomTheme = useTheme();
|
|
30
|
+
|
|
27
31
|
const [reason, setReason] = useState('');
|
|
28
32
|
const [evidence, setEvidence] = useState('');
|
|
29
33
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
30
34
|
const [successMessage, setSuccessMessage] = useState('');
|
|
31
35
|
|
|
32
|
-
const bloomTheme = useTheme();
|
|
33
|
-
|
|
34
36
|
// Dialog controls
|
|
35
37
|
const successDialog = useDialogControl();
|
|
36
38
|
|
|
@@ -74,90 +76,117 @@ const AccountVerificationScreen: React.FC<BaseScreenProps> = ({
|
|
|
74
76
|
}
|
|
75
77
|
}, [reason, evidence, oxyServices, t, successDialog]);
|
|
76
78
|
|
|
79
|
+
const canSubmit = Boolean(reason.trim()) && !isSubmitting;
|
|
80
|
+
|
|
77
81
|
return (
|
|
78
|
-
<
|
|
82
|
+
<KeyboardAvoidingView
|
|
83
|
+
className="flex-1 bg-bg"
|
|
84
|
+
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
|
|
85
|
+
>
|
|
79
86
|
<Header
|
|
80
87
|
title={t('accountVerification.title') || 'Account Verification'}
|
|
81
|
-
|
|
82
88
|
onBack={goBack || onClose}
|
|
83
89
|
variant="minimal"
|
|
84
90
|
elevation="subtle"
|
|
85
91
|
/>
|
|
86
92
|
|
|
87
|
-
<ScrollView
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
<ScrollView
|
|
94
|
+
className="flex-1 px-screen-margin"
|
|
95
|
+
showsVerticalScrollIndicator={false}
|
|
96
|
+
contentContainerClassName="pb-space-32"
|
|
97
|
+
keyboardShouldPersistTaps="handled"
|
|
98
|
+
>
|
|
99
|
+
{/* Hero */}
|
|
100
|
+
<View className="items-center py-space-24 gap-space-12">
|
|
101
|
+
<IconCircle icon={Icons.Verified_Stroke2_Corner2_Rounded} />
|
|
102
|
+
<H4 className="text-headerBold font-headerBold text-text text-center">
|
|
103
|
+
{t('accountVerification.heroTitle') || 'Get a verified badge'}
|
|
104
|
+
</H4>
|
|
105
|
+
<Text className="font-sans text-body text-text-secondary text-center">
|
|
90
106
|
{t('accountVerification.description') || 'Request a verified badge for your account. Verified accounts help establish authenticity and credibility.'}
|
|
91
107
|
</Text>
|
|
92
|
-
</
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
</View>
|
|
109
|
+
|
|
110
|
+
{/* Benefits */}
|
|
111
|
+
<BenefitList
|
|
112
|
+
className="mb-space-24"
|
|
113
|
+
accessibilityLabel={t('accountVerification.sections.benefits') || 'What verification gives you'}
|
|
114
|
+
>
|
|
115
|
+
<BenefitRow
|
|
116
|
+
icon={<Icons.ShieldCheck_Stroke2_Corner0_Rounded size="sm" style={{ color: bloomTheme.colors.primary }} />}
|
|
117
|
+
label={t('accountVerification.benefits.authenticity') || 'Confirms your identity is authentic and trusted'}
|
|
118
|
+
/>
|
|
119
|
+
<BenefitRow
|
|
120
|
+
icon={<Icons.Verified_Stroke2_Corner2_Rounded size="sm" style={{ color: bloomTheme.colors.primary }} />}
|
|
121
|
+
label={t('accountVerification.benefits.badge') || 'Displays a verified badge across the platform'}
|
|
122
|
+
/>
|
|
123
|
+
<BenefitRow
|
|
124
|
+
icon={<Icons.Sparkle_Stroke2_Corner0_Rounded size="sm" style={{ color: bloomTheme.colors.primary }} />}
|
|
125
|
+
label={t('accountVerification.benefits.credibility') || 'Builds credibility with people who follow you'}
|
|
126
|
+
/>
|
|
127
|
+
</BenefitList>
|
|
128
|
+
|
|
129
|
+
{/* Verification request form */}
|
|
130
|
+
<Text className="text-sectionTitle font-sectionTitle text-text-secondary mb-space-12">
|
|
131
|
+
{t('accountVerification.sections.request') || 'VERIFICATION REQUEST'}
|
|
132
|
+
</Text>
|
|
133
|
+
|
|
134
|
+
<View className="gap-space-16 p-space-16 rounded-radius-20 bg-fill">
|
|
135
|
+
<TextField>
|
|
136
|
+
<TextFieldInput
|
|
137
|
+
floatingLabel
|
|
138
|
+
label={t('accountVerification.reasonLabel') || 'Reason for Verification *'}
|
|
105
139
|
value={reason}
|
|
106
140
|
onChangeText={setReason}
|
|
107
141
|
placeholder={t('accountVerification.reasonPlaceholder') || 'Explain why you need a verified badge (e.g., public figure, brand, organization)'}
|
|
108
|
-
placeholderTextColor={bloomTheme.colors.textSecondary}
|
|
109
142
|
multiline
|
|
110
143
|
numberOfLines={4}
|
|
111
144
|
textAlignVertical="top"
|
|
112
145
|
editable={!isSubmitting}
|
|
146
|
+
style={styles.multiline}
|
|
113
147
|
/>
|
|
114
|
-
</
|
|
115
|
-
|
|
116
|
-
<
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
<TextInput
|
|
121
|
-
style={[
|
|
122
|
-
styles.textInput,
|
|
123
|
-
styles.textArea,
|
|
124
|
-
]}
|
|
125
|
-
className="bg-secondary text-foreground border-border"
|
|
148
|
+
</TextField>
|
|
149
|
+
|
|
150
|
+
<TextField>
|
|
151
|
+
<TextFieldInput
|
|
152
|
+
floatingLabel
|
|
153
|
+
label={t('accountVerification.evidenceLabel') || 'Evidence (Optional)'}
|
|
126
154
|
value={evidence}
|
|
127
155
|
onChangeText={setEvidence}
|
|
128
156
|
placeholder={t('accountVerification.evidencePlaceholder') || 'Provide any supporting documentation or links (e.g., official website, social media profiles)'}
|
|
129
|
-
placeholderTextColor={bloomTheme.colors.textSecondary}
|
|
130
157
|
multiline
|
|
131
158
|
numberOfLines={4}
|
|
132
159
|
textAlignVertical="top"
|
|
133
160
|
editable={!isSubmitting}
|
|
161
|
+
style={styles.multiline}
|
|
134
162
|
/>
|
|
135
|
-
</
|
|
136
|
-
</
|
|
137
|
-
|
|
138
|
-
<
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<Text
|
|
163
|
+
</TextField>
|
|
164
|
+
</View>
|
|
165
|
+
|
|
166
|
+
<Button
|
|
167
|
+
variant="primary"
|
|
168
|
+
size="large"
|
|
169
|
+
fullWidth
|
|
170
|
+
className="mt-space-24"
|
|
171
|
+
onPress={handleSubmit}
|
|
172
|
+
disabled={!canSubmit}
|
|
173
|
+
loading={isSubmitting}
|
|
174
|
+
accessibilityLabel={t('accountVerification.submit') || 'Submit Request'}
|
|
175
|
+
>
|
|
176
|
+
{t('accountVerification.submit') || 'Submit Request'}
|
|
177
|
+
</Button>
|
|
178
|
+
|
|
179
|
+
<View className="flex-row items-start gap-space-8 mt-space-24">
|
|
180
|
+
<Icons.CircleInfo_Stroke2_Corner0_Rounded
|
|
181
|
+
size="sm"
|
|
182
|
+
style={{ color: bloomTheme.colors.textTertiary }}
|
|
183
|
+
/>
|
|
184
|
+
<Text className="flex-1 font-sans text-caption text-text-tertiary">
|
|
157
185
|
{t('accountVerification.note') || 'Note: Verification requests are reviewed manually and may take several days. We will notify you once your request has been reviewed.'}
|
|
158
186
|
</Text>
|
|
159
|
-
</
|
|
187
|
+
</View>
|
|
160
188
|
</ScrollView>
|
|
189
|
+
|
|
161
190
|
<Dialog
|
|
162
191
|
control={successDialog}
|
|
163
192
|
title={t('accountVerification.successTitle') || 'Request Submitted'}
|
|
@@ -169,57 +198,16 @@ const AccountVerificationScreen: React.FC<BaseScreenProps> = ({
|
|
|
169
198
|
},
|
|
170
199
|
]}
|
|
171
200
|
/>
|
|
172
|
-
</
|
|
201
|
+
</KeyboardAvoidingView>
|
|
173
202
|
);
|
|
174
203
|
};
|
|
175
204
|
|
|
205
|
+
// Measured layout only (no color): give the multiline inputs a comfortable
|
|
206
|
+
// minimum height so the floating-label textarea has room. Colors/typography
|
|
207
|
+
// come from the Bloom TextFieldInput chrome + token classes.
|
|
176
208
|
const styles = StyleSheet.create({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
content: {
|
|
181
|
-
flex: 1,
|
|
182
|
-
padding: 16,
|
|
183
|
-
},
|
|
184
|
-
description: {
|
|
185
|
-
fontSize: 16,
|
|
186
|
-
lineHeight: 24,
|
|
187
|
-
marginBottom: 8,
|
|
188
|
-
},
|
|
189
|
-
inputGroup: {
|
|
190
|
-
marginBottom: 24,
|
|
191
|
-
},
|
|
192
|
-
label: {
|
|
193
|
-
fontSize: 16,
|
|
194
|
-
fontWeight: '500',
|
|
195
|
-
marginBottom: 8,
|
|
196
|
-
},
|
|
197
|
-
textInput: {
|
|
198
|
-
borderWidth: 1,
|
|
199
|
-
borderRadius: 8,
|
|
200
|
-
padding: 12,
|
|
201
|
-
fontSize: 16,
|
|
202
|
-
minHeight: 44,
|
|
203
|
-
},
|
|
204
|
-
textArea: {
|
|
205
|
-
minHeight: 100,
|
|
206
|
-
paddingTop: 12,
|
|
207
|
-
},
|
|
208
|
-
submitButton: {
|
|
209
|
-
borderRadius: 8,
|
|
210
|
-
padding: 16,
|
|
211
|
-
alignItems: 'center',
|
|
212
|
-
justifyContent: 'center',
|
|
213
|
-
minHeight: 50,
|
|
214
|
-
},
|
|
215
|
-
submitButtonText: {
|
|
216
|
-
fontSize: 16,
|
|
217
|
-
fontWeight: '600',
|
|
218
|
-
},
|
|
219
|
-
note: {
|
|
220
|
-
fontSize: 14,
|
|
221
|
-
lineHeight: 20,
|
|
222
|
-
fontStyle: 'italic',
|
|
209
|
+
multiline: {
|
|
210
|
+
minHeight: 96,
|
|
223
211
|
},
|
|
224
212
|
});
|
|
225
213
|
|