@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
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
View,
|
|
4
|
-
Text,
|
|
5
|
-
TextInput,
|
|
6
|
-
TouchableOpacity,
|
|
7
|
-
StyleSheet,
|
|
8
|
-
ScrollView,
|
|
9
4
|
Platform,
|
|
10
5
|
Image,
|
|
6
|
+
StyleSheet,
|
|
7
|
+
ScrollView,
|
|
8
|
+
TouchableOpacity,
|
|
11
9
|
type TextInputProps,
|
|
12
10
|
KeyboardAvoidingView,
|
|
13
11
|
} from 'react-native';
|
|
14
12
|
import { Ionicons } from '@expo/vector-icons';
|
|
15
13
|
import type { BaseScreenProps } from '../types/navigation';
|
|
16
14
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
15
|
+
import { H1, Text } from '@oxyhq/bloom/typography';
|
|
16
|
+
import { Button } from '@oxyhq/bloom/button';
|
|
17
|
+
import { TextField, TextFieldInput } from '@oxyhq/bloom/text-field';
|
|
17
18
|
import { normalizeTheme } from '@oxyhq/core';
|
|
18
19
|
import Header from '../components/Header';
|
|
19
20
|
import { useI18n } from '../hooks/useI18n';
|
|
@@ -70,6 +71,9 @@ type EditableListItem = {
|
|
|
70
71
|
coordinates?: { lat: number; lon: number };
|
|
71
72
|
};
|
|
72
73
|
|
|
74
|
+
const getLinkTitle = (url: string) => url.replace(/^https?:\/\//, '').replace(/\/$/, '');
|
|
75
|
+
const getLinkDescription = (url: string) => `Link to ${url}`;
|
|
76
|
+
|
|
73
77
|
/**
|
|
74
78
|
* EditProfileFieldScreen - A dedicated screen for editing profile fields
|
|
75
79
|
*
|
|
@@ -281,14 +285,16 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
281
285
|
...link,
|
|
282
286
|
id: String(link.id || `link-${i}`),
|
|
283
287
|
url: String(link.url || ''),
|
|
284
|
-
title: String(link.title || ''),
|
|
288
|
+
title: String(link.title || getLinkTitle(String(link.url || ''))),
|
|
289
|
+
description: String(link.description || getLinkDescription(String(link.url || ''))),
|
|
285
290
|
})));
|
|
286
291
|
} else {
|
|
287
292
|
setListItems(links.map((item, i) => {
|
|
288
293
|
return {
|
|
289
294
|
id: `link-${i}`,
|
|
290
295
|
url: item,
|
|
291
|
-
title: item
|
|
296
|
+
title: getLinkTitle(item),
|
|
297
|
+
description: getLinkDescription(item),
|
|
292
298
|
};
|
|
293
299
|
}));
|
|
294
300
|
}
|
|
@@ -353,7 +359,8 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
353
359
|
const newItem = {
|
|
354
360
|
id: `link-${Date.now()}`,
|
|
355
361
|
url: newItemValue.trim(),
|
|
356
|
-
title: newItemValue.
|
|
362
|
+
title: getLinkTitle(newItemValue.trim()),
|
|
363
|
+
description: getLinkDescription(newItemValue.trim()),
|
|
357
364
|
};
|
|
358
365
|
setListItems(prev => [...prev, newItem]);
|
|
359
366
|
}
|
|
@@ -383,8 +390,8 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
383
390
|
linksMetadata: listItems.map(item => ({
|
|
384
391
|
id: item.id,
|
|
385
392
|
url: String(item.url || ''),
|
|
386
|
-
|
|
387
|
-
|
|
393
|
+
title: String(item.title || getLinkTitle(String(item.url || ''))),
|
|
394
|
+
description: String(item.description || getLinkDescription(String(item.url || ''))),
|
|
388
395
|
...(item.image !== undefined && { image: String(item.image) }),
|
|
389
396
|
})),
|
|
390
397
|
links: listItems.map(item => String(item.url || '')),
|
|
@@ -419,32 +426,28 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
419
426
|
|
|
420
427
|
// Render a single field input
|
|
421
428
|
const renderField = (field: FieldConfig['fields'][0], index: number) => {
|
|
422
|
-
const
|
|
429
|
+
const error = fieldErrors[field.key];
|
|
423
430
|
|
|
424
431
|
return (
|
|
425
|
-
<View key={field.key}
|
|
426
|
-
<
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
{
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
{...field.inputProps}
|
|
445
|
-
/>
|
|
446
|
-
{fieldErrors[field.key] && (
|
|
447
|
-
<Text style={[styles.errorText, { color: bloomTheme.colors.error }]}>{fieldErrors[field.key]}</Text>
|
|
432
|
+
<View key={field.key} className="gap-space-8">
|
|
433
|
+
<TextField isInvalid={Boolean(error)}>
|
|
434
|
+
<TextFieldInput
|
|
435
|
+
floatingLabel
|
|
436
|
+
label={field.label}
|
|
437
|
+
value={fieldValues[field.key] || ''}
|
|
438
|
+
onChangeText={(value) => handleFieldChange(field.key, value)}
|
|
439
|
+
isInvalid={Boolean(error)}
|
|
440
|
+
autoFocus={index === 0}
|
|
441
|
+
{...field.inputProps}
|
|
442
|
+
/>
|
|
443
|
+
</TextField>
|
|
444
|
+
{error && (
|
|
445
|
+
<Text
|
|
446
|
+
className="text-caption px-space-4"
|
|
447
|
+
style={{ color: bloomTheme.colors.negative }}
|
|
448
|
+
>
|
|
449
|
+
{error}
|
|
450
|
+
</Text>
|
|
448
451
|
)}
|
|
449
452
|
</View>
|
|
450
453
|
);
|
|
@@ -455,83 +458,67 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
455
458
|
const addLabel = fieldType === 'locations'
|
|
456
459
|
? (t('editProfile.items.locations.add') || 'Add Location')
|
|
457
460
|
: (t('editProfile.items.links.add') || 'Add Link');
|
|
458
|
-
const placeholder = fieldType === 'locations'
|
|
459
|
-
? (t('editProfile.items.locations.placeholder') || 'Enter location name')
|
|
460
|
-
: (t('editProfile.items.links.placeholder') || 'Enter URL');
|
|
461
461
|
const listTitle = fieldType === 'locations'
|
|
462
462
|
? (t('editProfile.items.locations.yourLocations') || 'Your Locations')
|
|
463
463
|
: (t('editProfile.items.links.yourLinks') || 'Your Links');
|
|
464
464
|
|
|
465
465
|
return (
|
|
466
466
|
<>
|
|
467
|
-
<View
|
|
468
|
-
<
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
{
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
placeholder={placeholder}
|
|
483
|
-
placeholderTextColor={bloomTheme.colors.textSecondary}
|
|
484
|
-
selectionColor={bloomTheme.colors.primary}
|
|
485
|
-
autoCapitalize="none"
|
|
486
|
-
autoCorrect={false}
|
|
487
|
-
onSubmitEditing={handleAddItem}
|
|
488
|
-
returnKeyType="done"
|
|
489
|
-
keyboardType={fieldType === 'links' ? 'url' : 'default'}
|
|
490
|
-
/>
|
|
491
|
-
<TouchableOpacity
|
|
492
|
-
style={[
|
|
493
|
-
styles.addButton,
|
|
494
|
-
{ backgroundColor: newItemValue.trim() ? bloomTheme.colors.primary : bloomTheme.colors.border }
|
|
495
|
-
]}
|
|
496
|
-
onPress={handleAddItem}
|
|
497
|
-
disabled={!newItemValue.trim()}
|
|
498
|
-
>
|
|
499
|
-
<Ionicons name="add" size={20} color={bloomTheme.colors.negativeForeground} />
|
|
500
|
-
</TouchableOpacity>
|
|
467
|
+
<View className="flex-row items-center gap-space-8">
|
|
468
|
+
<View className="flex-1">
|
|
469
|
+
<TextField>
|
|
470
|
+
<TextFieldInput
|
|
471
|
+
floatingLabel
|
|
472
|
+
label={addLabel}
|
|
473
|
+
value={newItemValue}
|
|
474
|
+
onChangeText={setNewItemValue}
|
|
475
|
+
autoCapitalize="none"
|
|
476
|
+
autoCorrect={false}
|
|
477
|
+
onSubmitEditing={handleAddItem}
|
|
478
|
+
returnKeyType="done"
|
|
479
|
+
keyboardType={fieldType === 'links' ? 'url' : 'default'}
|
|
480
|
+
/>
|
|
481
|
+
</TextField>
|
|
501
482
|
</View>
|
|
483
|
+
<Button
|
|
484
|
+
variant="icon"
|
|
485
|
+
onPress={handleAddItem}
|
|
486
|
+
disabled={!newItemValue.trim()}
|
|
487
|
+
accessibilityLabel={addLabel}
|
|
488
|
+
icon={<Ionicons name="add" size={20} color={bloomTheme.colors.primaryForeground} />}
|
|
489
|
+
/>
|
|
502
490
|
</View>
|
|
503
491
|
|
|
504
492
|
{listItems.length > 0 && (
|
|
505
|
-
<View
|
|
506
|
-
<Text
|
|
493
|
+
<View className="mt-space-8 gap-space-12">
|
|
494
|
+
<Text className="text-sectionTitle font-sectionTitle text-text">
|
|
507
495
|
{listTitle} ({listItems.length})
|
|
508
496
|
</Text>
|
|
509
497
|
{listItems.map((item) => (
|
|
510
498
|
<View
|
|
511
499
|
key={item.id}
|
|
512
|
-
|
|
513
|
-
styles.listItem,
|
|
514
|
-
{ backgroundColor: bloomTheme.colors.card, borderColor: bloomTheme.colors.border }
|
|
515
|
-
]}
|
|
500
|
+
className="flex-row items-center gap-space-12 p-space-16 rounded-radius-12 border-hairline border-border-image bg-fill"
|
|
516
501
|
>
|
|
517
502
|
{fieldType === 'links' && item.image && (
|
|
518
503
|
<Image source={{ uri: item.image }} style={styles.linkImage} />
|
|
519
504
|
)}
|
|
520
|
-
<View
|
|
521
|
-
<Text
|
|
505
|
+
<View className="flex-1 gap-space-4">
|
|
506
|
+
<Text className="text-subtitle font-subtitle text-text" numberOfLines={1}>
|
|
522
507
|
{fieldType === 'locations' ? item.name : (item.title || item.url)}
|
|
523
508
|
</Text>
|
|
524
509
|
{fieldType === 'links' && (
|
|
525
|
-
<Text
|
|
510
|
+
<Text className="text-bodySmall font-bodySmall text-text-secondary" numberOfLines={1}>
|
|
526
511
|
{item.url}
|
|
527
512
|
</Text>
|
|
528
513
|
)}
|
|
529
514
|
</View>
|
|
530
515
|
<TouchableOpacity
|
|
531
516
|
onPress={() => handleRemoveItem(item.id)}
|
|
532
|
-
|
|
517
|
+
className="p-space-8"
|
|
518
|
+
accessibilityRole="button"
|
|
519
|
+
accessibilityLabel={t('common.remove') || 'Remove'}
|
|
533
520
|
>
|
|
534
|
-
<Ionicons name="trash-outline" size={18} color={bloomTheme.colors.
|
|
521
|
+
<Ionicons name="trash-outline" size={18} color={bloomTheme.colors.negative} />
|
|
535
522
|
</TouchableOpacity>
|
|
536
523
|
</View>
|
|
537
524
|
))}
|
|
@@ -543,7 +530,7 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
543
530
|
|
|
544
531
|
return (
|
|
545
532
|
<KeyboardAvoidingView
|
|
546
|
-
|
|
533
|
+
className="flex-1 bg-bg"
|
|
547
534
|
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
|
|
548
535
|
>
|
|
549
536
|
<Header
|
|
@@ -562,25 +549,25 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
562
549
|
/>
|
|
563
550
|
|
|
564
551
|
<ScrollView
|
|
565
|
-
|
|
566
|
-
|
|
552
|
+
className="flex-1"
|
|
553
|
+
contentContainerClassName="px-screen-margin pt-space-24 pb-space-32 gap-space-24"
|
|
567
554
|
showsVerticalScrollIndicator={false}
|
|
568
555
|
keyboardShouldPersistTaps="handled"
|
|
569
556
|
>
|
|
570
557
|
{/* Big Title */}
|
|
571
|
-
<View
|
|
572
|
-
<
|
|
558
|
+
<View className="gap-space-8">
|
|
559
|
+
<H1 className="text-headerBold font-headerBold text-text">
|
|
573
560
|
{fieldConfig.title}
|
|
574
|
-
</
|
|
561
|
+
</H1>
|
|
575
562
|
{fieldConfig.subtitle && (
|
|
576
|
-
<Text
|
|
563
|
+
<Text className="text-body font-body text-text-secondary">
|
|
577
564
|
{fieldConfig.subtitle}
|
|
578
565
|
</Text>
|
|
579
566
|
)}
|
|
580
567
|
</View>
|
|
581
568
|
|
|
582
569
|
{/* Form Content */}
|
|
583
|
-
<View
|
|
570
|
+
<View className="gap-space-16 p-space-16 rounded-radius-20 bg-fill">
|
|
584
571
|
{fieldConfig.isList ? renderListContent() : fieldConfig.fields.map(renderField)}
|
|
585
572
|
</View>
|
|
586
573
|
</ScrollView>
|
|
@@ -589,111 +576,11 @@ const EditProfileFieldScreen: React.FC<EditProfileFieldScreenProps> = ({
|
|
|
589
576
|
};
|
|
590
577
|
|
|
591
578
|
const styles = StyleSheet.create({
|
|
592
|
-
container: {
|
|
593
|
-
flex: 1,
|
|
594
|
-
},
|
|
595
|
-
content: {
|
|
596
|
-
flex: 1,
|
|
597
|
-
},
|
|
598
|
-
contentContainer: {
|
|
599
|
-
padding: 16,
|
|
600
|
-
paddingTop: 24,
|
|
601
|
-
paddingBottom: 40,
|
|
602
|
-
},
|
|
603
|
-
titleContainer: {
|
|
604
|
-
marginBottom: 24,
|
|
605
|
-
},
|
|
606
|
-
bigTitle: {
|
|
607
|
-
fontSize: 34,
|
|
608
|
-
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
609
|
-
lineHeight: 40,
|
|
610
|
-
marginBottom: 8,
|
|
611
|
-
letterSpacing: -0.5,
|
|
612
|
-
},
|
|
613
|
-
bigSubtitle: {
|
|
614
|
-
fontSize: 16,
|
|
615
|
-
lineHeight: 22,
|
|
616
|
-
opacity: 0.7,
|
|
617
|
-
marginTop: 4,
|
|
618
|
-
},
|
|
619
|
-
formCard: {
|
|
620
|
-
borderRadius: 16,
|
|
621
|
-
padding: 16,
|
|
622
|
-
gap: 16,
|
|
623
|
-
},
|
|
624
|
-
inputGroup: {
|
|
625
|
-
gap: 8,
|
|
626
|
-
},
|
|
627
|
-
label: {
|
|
628
|
-
fontSize: 14,
|
|
629
|
-
fontWeight: '600',
|
|
630
|
-
},
|
|
631
|
-
input: {
|
|
632
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
633
|
-
borderRadius: 12,
|
|
634
|
-
padding: 16,
|
|
635
|
-
fontSize: 16,
|
|
636
|
-
minHeight: 52,
|
|
637
|
-
},
|
|
638
|
-
textArea: {
|
|
639
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
640
|
-
borderRadius: 12,
|
|
641
|
-
padding: 16,
|
|
642
|
-
fontSize: 16,
|
|
643
|
-
minHeight: 140,
|
|
644
|
-
},
|
|
645
|
-
errorText: {
|
|
646
|
-
fontSize: 12,
|
|
647
|
-
marginTop: 4,
|
|
648
|
-
},
|
|
649
|
-
addItemRow: {
|
|
650
|
-
flexDirection: 'row',
|
|
651
|
-
gap: 8,
|
|
652
|
-
alignItems: 'center',
|
|
653
|
-
},
|
|
654
|
-
addButton: {
|
|
655
|
-
width: 52,
|
|
656
|
-
height: 52,
|
|
657
|
-
borderRadius: 12,
|
|
658
|
-
alignItems: 'center',
|
|
659
|
-
justifyContent: 'center',
|
|
660
|
-
},
|
|
661
|
-
listSection: {
|
|
662
|
-
marginTop: 8,
|
|
663
|
-
},
|
|
664
|
-
listTitle: {
|
|
665
|
-
fontSize: 16,
|
|
666
|
-
fontWeight: '600',
|
|
667
|
-
marginBottom: 12,
|
|
668
|
-
},
|
|
669
|
-
listItem: {
|
|
670
|
-
flexDirection: 'row',
|
|
671
|
-
alignItems: 'center',
|
|
672
|
-
padding: 16,
|
|
673
|
-
borderRadius: 12,
|
|
674
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
675
|
-
gap: 12,
|
|
676
|
-
marginBottom: 8,
|
|
677
|
-
},
|
|
678
|
-
listItemContent: {
|
|
679
|
-
flex: 1,
|
|
680
|
-
gap: 4,
|
|
681
|
-
},
|
|
682
|
-
listItemTitle: {
|
|
683
|
-
fontSize: 16,
|
|
684
|
-
fontWeight: '500',
|
|
685
|
-
},
|
|
686
|
-
listItemSubtitle: {
|
|
687
|
-
fontSize: 13,
|
|
688
|
-
},
|
|
689
579
|
linkImage: {
|
|
690
580
|
width: 40,
|
|
691
581
|
height: 40,
|
|
692
582
|
borderRadius: 8,
|
|
693
583
|
},
|
|
694
|
-
removeButton: {
|
|
695
|
-
padding: 8,
|
|
696
|
-
},
|
|
697
584
|
});
|
|
698
585
|
|
|
699
586
|
export default React.memo(EditProfileFieldScreen);
|