@oxyhq/services 11.0.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 +8 -3
- 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,24 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { View,
|
|
4
|
+
import { View, StyleSheet, ScrollView } from 'react-native';
|
|
5
5
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
6
6
|
import { normalizeTheme } from '@oxyhq/core';
|
|
7
7
|
import { Ionicons } from '@expo/vector-icons';
|
|
8
8
|
import { toast } from '@oxyhq/bloom';
|
|
9
|
-
import
|
|
9
|
+
import { H1, Text } from '@oxyhq/bloom/typography';
|
|
10
|
+
import { SearchInput } from '@oxyhq/bloom/search-input';
|
|
10
11
|
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
12
|
+
import Header from "../components/Header.js";
|
|
11
13
|
import { useI18n } from "../hooks/useI18n.js";
|
|
12
14
|
import { SUPPORTED_LANGUAGES } from '@oxyhq/core';
|
|
13
15
|
import { useOxy } from "../context/OxyContext.js";
|
|
14
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
// Size (in dp) of the circular flag chip rendered as each row's leading icon.
|
|
18
|
+
const FLAG_CHIP_SIZE = 40;
|
|
19
|
+
// Selected-row check indicator size (dp).
|
|
20
|
+
const CHECK_ICON_SIZE = 24;
|
|
21
|
+
|
|
15
22
|
/**
|
|
16
23
|
* LanguageSelectorScreen - Optimized for performance
|
|
17
|
-
*
|
|
24
|
+
*
|
|
18
25
|
* Performance optimizations:
|
|
19
|
-
* - useMemo for language
|
|
26
|
+
* - useMemo for the filtered language list to prevent recreation on every render
|
|
20
27
|
* - useCallback for handlers to prevent unnecessary re-renders
|
|
21
|
-
* - Memoized
|
|
28
|
+
* - Memoized component to prevent unnecessary re-renders
|
|
22
29
|
*/
|
|
23
30
|
const LanguageSelectorScreen = ({
|
|
24
31
|
goBack,
|
|
@@ -39,6 +46,7 @@ const LanguageSelectorScreen = ({
|
|
|
39
46
|
const bloomTheme = useTheme();
|
|
40
47
|
const normalizedTheme = normalizeTheme(theme);
|
|
41
48
|
const [isLoading, setIsLoading] = useState(false);
|
|
49
|
+
const [query, setQuery] = useState('');
|
|
42
50
|
|
|
43
51
|
// Memoize the language select handler to prevent recreation on every render
|
|
44
52
|
const handleLanguageSelect = useCallback(async languageId => {
|
|
@@ -90,35 +98,16 @@ const LanguageSelectorScreen = ({
|
|
|
90
98
|
}
|
|
91
99
|
}, [currentLanguage, isLoading, isAuthenticated, user?.id, oxyServices, setLanguage, t, onClose, goBack]);
|
|
92
100
|
|
|
93
|
-
//
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
style: [styles.languageFlag, {
|
|
102
|
-
backgroundColor: `${language.color}15`
|
|
103
|
-
}],
|
|
104
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
105
|
-
style: styles.flagEmoji,
|
|
106
|
-
children: language.flag
|
|
107
|
-
})
|
|
108
|
-
}),
|
|
109
|
-
onPress: () => handleLanguageSelect(language.id),
|
|
110
|
-
rightElement: isSelected ? /*#__PURE__*/_jsx(Ionicons, {
|
|
111
|
-
name: "checkmark-circle",
|
|
112
|
-
size: 24,
|
|
113
|
-
color: bloomTheme.colors.primary
|
|
114
|
-
}) : undefined,
|
|
115
|
-
showChevron: false
|
|
116
|
-
};
|
|
117
|
-
}), [currentLanguage, handleLanguageSelect, bloomTheme]);
|
|
101
|
+
// Filter the supported languages by the search query (name + native name).
|
|
102
|
+
const filteredLanguages = useMemo(() => {
|
|
103
|
+
const normalized = query.trim().toLowerCase();
|
|
104
|
+
if (!normalized) {
|
|
105
|
+
return SUPPORTED_LANGUAGES;
|
|
106
|
+
}
|
|
107
|
+
return SUPPORTED_LANGUAGES.filter(language => language.name.toLowerCase().includes(normalized) || language.nativeName.toLowerCase().includes(normalized));
|
|
108
|
+
}, [query]);
|
|
118
109
|
return /*#__PURE__*/_jsxs(View, {
|
|
119
|
-
|
|
120
|
-
backgroundColor: bloomTheme.colors.background
|
|
121
|
-
}],
|
|
110
|
+
className: "flex-1 bg-bg",
|
|
122
111
|
children: [/*#__PURE__*/_jsx(Header, {
|
|
123
112
|
title: "",
|
|
124
113
|
subtitle: "",
|
|
@@ -127,85 +116,73 @@ const LanguageSelectorScreen = ({
|
|
|
127
116
|
variant: "minimal",
|
|
128
117
|
elevation: "none"
|
|
129
118
|
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
130
|
-
|
|
131
|
-
|
|
119
|
+
className: "flex-1",
|
|
120
|
+
contentContainerClassName: "px-screen-margin pt-space-24 pb-space-24",
|
|
132
121
|
showsVerticalScrollIndicator: false,
|
|
133
122
|
removeClippedSubviews: true,
|
|
123
|
+
keyboardShouldPersistTaps: "handled",
|
|
134
124
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
135
|
-
|
|
136
|
-
children: [/*#__PURE__*/_jsx(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}],
|
|
125
|
+
className: "mb-space-16",
|
|
126
|
+
children: [/*#__PURE__*/_jsx(H1, {
|
|
127
|
+
className: "text-text",
|
|
128
|
+
style: styles.bigTitle,
|
|
140
129
|
children: t('language.title')
|
|
141
|
-
}), t('language.subtitle')
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}],
|
|
130
|
+
}), t('language.subtitle') ? /*#__PURE__*/_jsx(Text, {
|
|
131
|
+
className: "text-text-secondary mt-space-2",
|
|
132
|
+
style: styles.bigSubtitle,
|
|
145
133
|
children: t('language.subtitle')
|
|
146
|
-
})]
|
|
134
|
+
}) : null]
|
|
147
135
|
}), /*#__PURE__*/_jsx(View, {
|
|
148
|
-
|
|
149
|
-
children: /*#__PURE__*/_jsx(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
136
|
+
className: "mb-space-16",
|
|
137
|
+
children: /*#__PURE__*/_jsx(SearchInput, {
|
|
138
|
+
value: query,
|
|
139
|
+
onChangeText: setQuery,
|
|
140
|
+
onClearText: () => setQuery(''),
|
|
141
|
+
label: t('language.search') || 'Search languages'
|
|
142
|
+
})
|
|
143
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
144
|
+
children: filteredLanguages.map(language => {
|
|
145
|
+
const isSelected = currentLanguage === language.id;
|
|
146
|
+
return /*#__PURE__*/_jsx(SettingsListItem, {
|
|
147
|
+
icon: /*#__PURE__*/_jsx(View, {
|
|
148
|
+
className: "bg-fill-secondary items-center justify-center",
|
|
149
|
+
style: styles.languageFlag,
|
|
150
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
151
|
+
style: styles.flagEmoji,
|
|
152
|
+
children: language.flag
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
title: language.name,
|
|
156
|
+
description: language.nativeName,
|
|
157
|
+
onPress: () => handleLanguageSelect(language.id),
|
|
158
|
+
rightElement: isSelected ? /*#__PURE__*/_jsx(Ionicons, {
|
|
159
|
+
name: "checkmark-circle",
|
|
160
|
+
size: CHECK_ICON_SIZE,
|
|
161
|
+
color: bloomTheme.colors.primary
|
|
162
|
+
}) : undefined,
|
|
163
|
+
showChevron: false
|
|
164
|
+
}, language.id);
|
|
163
165
|
})
|
|
164
166
|
})]
|
|
165
167
|
})]
|
|
166
168
|
});
|
|
167
169
|
};
|
|
170
|
+
|
|
171
|
+
// StyleSheet retained ONLY for measured layout (sizes / line metrics) — no colors.
|
|
168
172
|
const styles = StyleSheet.create({
|
|
169
|
-
container: {
|
|
170
|
-
flex: 1
|
|
171
|
-
},
|
|
172
|
-
content: {
|
|
173
|
-
flex: 1
|
|
174
|
-
},
|
|
175
|
-
contentContainer: {
|
|
176
|
-
padding: 16,
|
|
177
|
-
paddingTop: 24
|
|
178
|
-
},
|
|
179
|
-
titleContainer: {
|
|
180
|
-
marginBottom: 32,
|
|
181
|
-
paddingTop: 0
|
|
182
|
-
},
|
|
183
173
|
bigTitle: {
|
|
184
174
|
fontSize: 34,
|
|
185
|
-
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
186
175
|
lineHeight: 40,
|
|
187
|
-
marginBottom: 8,
|
|
188
176
|
letterSpacing: -0.5
|
|
189
177
|
},
|
|
190
178
|
bigSubtitle: {
|
|
191
179
|
fontSize: 16,
|
|
192
|
-
lineHeight: 22
|
|
193
|
-
opacity: 0.7,
|
|
194
|
-
marginTop: 4
|
|
195
|
-
},
|
|
196
|
-
sectionContainer: {
|
|
197
|
-
marginBottom: 8
|
|
198
|
-
},
|
|
199
|
-
materialCard: {
|
|
200
|
-
borderRadius: 12,
|
|
201
|
-
overflow: 'hidden'
|
|
180
|
+
lineHeight: 22
|
|
202
181
|
},
|
|
203
182
|
languageFlag: {
|
|
204
|
-
width:
|
|
205
|
-
height:
|
|
206
|
-
borderRadius:
|
|
207
|
-
alignItems: 'center',
|
|
208
|
-
justifyContent: 'center'
|
|
183
|
+
width: FLAG_CHIP_SIZE,
|
|
184
|
+
height: FLAG_CHIP_SIZE,
|
|
185
|
+
borderRadius: FLAG_CHIP_SIZE / 2
|
|
209
186
|
},
|
|
210
187
|
flagEmoji: {
|
|
211
188
|
fontSize: 20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useMemo","useCallback","View","
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","useCallback","View","StyleSheet","ScrollView","useTheme","normalizeTheme","Ionicons","toast","H1","Text","SearchInput","SettingsListGroup","SettingsListItem","Header","useI18n","SUPPORTED_LANGUAGES","useOxy","jsx","_jsx","jsxs","_jsxs","FLAG_CHIP_SIZE","CHECK_ICON_SIZE","LanguageSelectorScreen","goBack","onClose","theme","user","currentLanguage","setLanguage","oxyServices","isAuthenticated","t","bloomTheme","normalizedTheme","isLoading","setIsLoading","query","setQuery","handleLanguageSelect","languageId","serverSyncFailed","id","updateProfile","language","e","__DEV__","console","warn","Error","message","selectedLang","find","lang","success","name","error","filteredLanguages","normalized","trim","toLowerCase","filter","includes","nativeName","className","children","title","subtitle","onBack","variant","elevation","contentContainerClassName","showsVerticalScrollIndicator","removeClippedSubviews","keyboardShouldPersistTaps","style","styles","bigTitle","bigSubtitle","value","onChangeText","onClearText","label","map","isSelected","icon","languageFlag","flagEmoji","flag","description","onPress","rightElement","size","color","colors","primary","undefined","showChevron","create","fontSize","lineHeight","letterSpacing","width","height","borderRadius","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LanguageSelectorScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC7D,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAE3D,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,cAAc,QAAQ,aAAa;AAC5C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAChF,OAAOC,MAAM,MAAM,yBAAsB;AACzC,SAASC,OAAO,QAAQ,qBAAkB;AAC1C,SAASC,mBAAmB,QAAQ,aAAa;AACjD,SAASC,MAAM,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAI/C;AACA,MAAMC,cAAc,GAAG,EAAE;AACzB;AACA,MAAMC,eAAe,GAAG,EAAE;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAA6D,GAAGA,CAAC;EACnEC,MAAM;EACNC,OAAO;EACPC;AACJ,CAAC,KAAK;EACF;EACA,MAAM;IAAEC,IAAI;IAAEC,eAAe;IAAEC,WAAW;IAAEC,WAAW;IAAEC;EAAgB,CAAC,GAAGf,MAAM,CAAC,CAAC;EACrF,MAAM;IAAEgB;EAAE,CAAC,GAAGlB,OAAO,CAAC,CAAC;EACvB,MAAMmB,UAAU,GAAG7B,QAAQ,CAAC,CAAC;EAC7B,MAAM8B,eAAe,GAAG7B,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
|
+
import { useCallback, useState } from 'react';
|
|
4
|
+
import { View, ScrollView, StyleSheet } from 'react-native';
|
|
6
5
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
6
|
+
import { Text } from '@oxyhq/bloom/typography';
|
|
7
|
+
import { IconCircle } from '@oxyhq/bloom/icon-circle';
|
|
8
|
+
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@oxyhq/bloom/accordion';
|
|
9
|
+
import * as Icons from '@oxyhq/bloom/icons';
|
|
10
|
+
import Header from "../components/Header.js";
|
|
7
11
|
import { useI18n } from "../hooks/useI18n.js";
|
|
8
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
13
|
const INFO_SECTIONS = [{
|
|
10
14
|
id: 'what',
|
|
11
15
|
titleKey: 'learnMoreUsernames.sections.what.title',
|
|
12
16
|
contentKey: 'learnMoreUsernames.sections.what.content',
|
|
13
|
-
|
|
17
|
+
Icon: Icons.At_Stroke2_Corner0_Rounded
|
|
14
18
|
}, {
|
|
15
19
|
id: 'rules',
|
|
16
20
|
titleKey: 'learnMoreUsernames.sections.rules.title',
|
|
17
21
|
contentKey: 'learnMoreUsernames.sections.rules.content',
|
|
18
|
-
|
|
22
|
+
Icon: Icons.BulletList_Stroke2_Corner0_Rounded
|
|
19
23
|
}, {
|
|
20
24
|
id: 'unique',
|
|
21
25
|
titleKey: 'learnMoreUsernames.sections.unique.title',
|
|
22
26
|
contentKey: 'learnMoreUsernames.sections.unique.content',
|
|
23
|
-
|
|
27
|
+
Icon: Icons.Key_Stroke2_Corner2_Rounded
|
|
24
28
|
}, {
|
|
25
29
|
id: 'change',
|
|
26
30
|
titleKey: 'learnMoreUsernames.sections.change.title',
|
|
27
31
|
contentKey: 'learnMoreUsernames.sections.change.content',
|
|
28
|
-
|
|
32
|
+
Icon: Icons.ArrowRotateClockwise_Stroke2_Corner0_Rounded
|
|
29
33
|
}, {
|
|
30
34
|
id: 'tips',
|
|
31
35
|
titleKey: 'learnMoreUsernames.sections.tips.title',
|
|
32
36
|
contentKey: 'learnMoreUsernames.sections.tips.content',
|
|
33
|
-
|
|
37
|
+
Icon: Icons.Sparkle_Stroke2_Corner0_Rounded
|
|
34
38
|
}];
|
|
35
39
|
const LearnMoreUsernamesScreen = ({
|
|
36
|
-
|
|
40
|
+
onClose,
|
|
41
|
+
goBack
|
|
37
42
|
}) => {
|
|
38
43
|
const bloomTheme = useTheme();
|
|
39
44
|
const {
|
|
40
45
|
t
|
|
41
46
|
} = useI18n();
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return next;
|
|
53
|
-
});
|
|
47
|
+
// Start with the first section expanded.
|
|
48
|
+
const [expandedIds, setExpandedIds] = useState(['what']);
|
|
49
|
+
const handleAccordionChange = useCallback(value => {
|
|
50
|
+
if (Array.isArray(value)) {
|
|
51
|
+
setExpandedIds(value);
|
|
52
|
+
} else if (value == null) {
|
|
53
|
+
setExpandedIds([]);
|
|
54
|
+
} else {
|
|
55
|
+
setExpandedIds([value]);
|
|
56
|
+
}
|
|
54
57
|
}, []);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
59
|
+
className: "flex-1 bg-bg",
|
|
60
|
+
children: [/*#__PURE__*/_jsx(Header, {
|
|
61
|
+
title: t('learnMoreUsernames.introTitle'),
|
|
62
|
+
onBack: goBack || onClose,
|
|
63
|
+
variant: "minimal",
|
|
64
|
+
elevation: "subtle"
|
|
65
|
+
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
66
|
+
className: "flex-1 px-screen-margin",
|
|
62
67
|
showsVerticalScrollIndicator: false,
|
|
63
|
-
|
|
68
|
+
contentContainerClassName: "pb-space-32",
|
|
64
69
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
65
|
-
|
|
66
|
-
children: [/*#__PURE__*/_jsx(
|
|
67
|
-
|
|
68
|
-
backgroundColor: `${bloomTheme.colors.primary}15`
|
|
69
|
-
}],
|
|
70
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
71
|
-
name: "at",
|
|
72
|
-
size: 32,
|
|
73
|
-
color: bloomTheme.colors.primary
|
|
74
|
-
})
|
|
75
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
76
|
-
style: [styles.introTitle, {
|
|
77
|
-
color: bloomTheme.colors.text
|
|
78
|
-
}],
|
|
79
|
-
children: t('learnMoreUsernames.introTitle')
|
|
70
|
+
className: "items-center py-space-24 gap-space-12",
|
|
71
|
+
children: [/*#__PURE__*/_jsx(IconCircle, {
|
|
72
|
+
icon: Icons.At_Stroke2_Corner0_Rounded
|
|
80
73
|
}), /*#__PURE__*/_jsx(Text, {
|
|
81
|
-
|
|
82
|
-
color: bloomTheme.colors.textSecondary
|
|
83
|
-
}],
|
|
74
|
+
className: "font-sans text-body text-text-secondary text-center",
|
|
84
75
|
children: t('learnMoreUsernames.introText')
|
|
85
76
|
})]
|
|
86
|
-
}),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}],
|
|
107
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
108
|
-
name: section.icon,
|
|
109
|
-
size: 20,
|
|
110
|
-
color: bloomTheme.colors.primary
|
|
77
|
+
}), /*#__PURE__*/_jsx(Accordion, {
|
|
78
|
+
type: "multiple",
|
|
79
|
+
value: expandedIds,
|
|
80
|
+
onValueChange: handleAccordionChange,
|
|
81
|
+
children: INFO_SECTIONS.map(({
|
|
82
|
+
id,
|
|
83
|
+
titleKey,
|
|
84
|
+
contentKey,
|
|
85
|
+
Icon
|
|
86
|
+
}) => /*#__PURE__*/_jsxs(AccordionItem, {
|
|
87
|
+
value: id,
|
|
88
|
+
children: [/*#__PURE__*/_jsx(AccordionTrigger, {
|
|
89
|
+
icon: /*#__PURE__*/_jsx(View, {
|
|
90
|
+
className: "bg-fill-secondary rounded-radius-12",
|
|
91
|
+
style: styles.iconSquare,
|
|
92
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
93
|
+
size: "md",
|
|
94
|
+
style: {
|
|
95
|
+
color: bloomTheme.colors.primary
|
|
96
|
+
}
|
|
111
97
|
})
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}],
|
|
116
|
-
children: sectionTitle
|
|
117
|
-
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
118
|
-
name: isExpanded ? 'chevron-up' : 'chevron-down',
|
|
119
|
-
size: 20,
|
|
120
|
-
color: bloomTheme.colors.textSecondary
|
|
121
|
-
})]
|
|
122
|
-
}), isExpanded && /*#__PURE__*/_jsx(View, {
|
|
123
|
-
style: [styles.sectionContent, {
|
|
124
|
-
borderTopColor: bloomTheme.colors.border
|
|
125
|
-
}],
|
|
98
|
+
}),
|
|
99
|
+
children: t(titleKey)
|
|
100
|
+
}), /*#__PURE__*/_jsx(AccordionContent, {
|
|
126
101
|
children: /*#__PURE__*/_jsx(Text, {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}],
|
|
130
|
-
children: t(section.contentKey)
|
|
102
|
+
className: "font-sans text-bodyMedium text-text-secondary",
|
|
103
|
+
children: t(contentKey)
|
|
131
104
|
})
|
|
132
105
|
})]
|
|
133
|
-
},
|
|
134
|
-
}), /*#__PURE__*/_jsx(
|
|
135
|
-
|
|
136
|
-
children:
|
|
137
|
-
style: [styles.footerText, {
|
|
138
|
-
color: bloomTheme.colors.textSecondary
|
|
139
|
-
}],
|
|
140
|
-
children: t('learnMoreUsernames.footer')
|
|
141
|
-
})
|
|
106
|
+
}, id))
|
|
107
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
108
|
+
className: "font-sans text-caption text-text-tertiary text-center mt-space-16",
|
|
109
|
+
children: t('learnMoreUsernames.footer')
|
|
142
110
|
})]
|
|
143
|
-
})
|
|
111
|
+
})]
|
|
144
112
|
});
|
|
145
113
|
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
contentContainer: {
|
|
154
|
-
padding: 16,
|
|
155
|
-
paddingBottom: 32
|
|
156
|
-
},
|
|
157
|
-
introSection: {
|
|
158
|
-
alignItems: 'center',
|
|
159
|
-
paddingVertical: 24,
|
|
160
|
-
paddingHorizontal: 16
|
|
161
|
-
},
|
|
162
|
-
introIcon: {
|
|
163
|
-
width: 64,
|
|
164
|
-
height: 64,
|
|
165
|
-
borderRadius: 32,
|
|
166
|
-
alignItems: 'center',
|
|
167
|
-
justifyContent: 'center',
|
|
168
|
-
marginBottom: 16
|
|
169
|
-
},
|
|
170
|
-
introTitle: {
|
|
171
|
-
fontSize: 24,
|
|
172
|
-
fontWeight: '700',
|
|
173
|
-
marginBottom: 8,
|
|
174
|
-
textAlign: 'center'
|
|
175
|
-
},
|
|
176
|
-
introText: {
|
|
177
|
-
fontSize: 16,
|
|
178
|
-
lineHeight: 24,
|
|
179
|
-
textAlign: 'center'
|
|
180
|
-
},
|
|
181
|
-
section: {
|
|
182
|
-
borderRadius: 12,
|
|
183
|
-
borderWidth: 1,
|
|
184
|
-
marginBottom: 12,
|
|
185
|
-
overflow: 'hidden'
|
|
186
|
-
},
|
|
187
|
-
sectionFirst: {
|
|
188
|
-
marginTop: 8
|
|
189
|
-
},
|
|
190
|
-
sectionHeader: {
|
|
191
|
-
flexDirection: 'row',
|
|
192
|
-
alignItems: 'center',
|
|
193
|
-
padding: 16
|
|
194
|
-
},
|
|
195
|
-
sectionIconContainer: {
|
|
114
|
+
|
|
115
|
+
// Measured layout only (no color): fixed-size square that hosts the leading
|
|
116
|
+
// section icon inside the accordion trigger. Color comes from the
|
|
117
|
+
// `bg-fill-secondary` token class on the View.
|
|
118
|
+
const styles = StyleSheet.create({
|
|
119
|
+
iconSquare: {
|
|
196
120
|
width: 36,
|
|
197
121
|
height: 36,
|
|
198
|
-
borderRadius: 18,
|
|
199
122
|
alignItems: 'center',
|
|
200
|
-
justifyContent: 'center'
|
|
201
|
-
marginRight: 12
|
|
202
|
-
},
|
|
203
|
-
sectionTitle: {
|
|
204
|
-
flex: 1,
|
|
205
|
-
fontSize: 16,
|
|
206
|
-
fontWeight: '600',
|
|
207
|
-
marginRight: 12
|
|
208
|
-
},
|
|
209
|
-
sectionContent: {
|
|
210
|
-
padding: 16,
|
|
211
|
-
paddingTop: 12,
|
|
212
|
-
borderTopWidth: 1
|
|
213
|
-
},
|
|
214
|
-
sectionText: {
|
|
215
|
-
fontSize: 14,
|
|
216
|
-
lineHeight: 22
|
|
217
|
-
},
|
|
218
|
-
footer: {
|
|
219
|
-
marginTop: 16,
|
|
220
|
-
paddingHorizontal: 16
|
|
221
|
-
},
|
|
222
|
-
footerText: {
|
|
223
|
-
fontSize: 14,
|
|
224
|
-
textAlign: 'center',
|
|
225
|
-
lineHeight: 20
|
|
123
|
+
justifyContent: 'center'
|
|
226
124
|
}
|
|
227
125
|
});
|
|
228
126
|
export default LearnMoreUsernamesScreen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useCallback","useState","View","ScrollView","StyleSheet","useTheme","Text","IconCircle","Accordion","AccordionItem","AccordionTrigger","AccordionContent","Icons","Header","useI18n","jsx","_jsx","jsxs","_jsxs","INFO_SECTIONS","id","titleKey","contentKey","Icon","At_Stroke2_Corner0_Rounded","BulletList_Stroke2_Corner0_Rounded","Key_Stroke2_Corner2_Rounded","ArrowRotateClockwise_Stroke2_Corner0_Rounded","Sparkle_Stroke2_Corner0_Rounded","LearnMoreUsernamesScreen","onClose","goBack","bloomTheme","t","expandedIds","setExpandedIds","handleAccordionChange","value","Array","isArray","className","children","title","onBack","variant","elevation","showsVerticalScrollIndicator","contentContainerClassName","icon","type","onValueChange","map","style","styles","iconSquare","size","color","colors","primary","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["ui/screens/LearnMoreUsernamesScreen.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC7C,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,IAAI,QAAQ,yBAAyB;AAC9C,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SACIC,SAAS,EACTC,aAAa,EACbC,gBAAgB,EAChBC,gBAAgB,QACb,wBAAwB;AAC/B,OAAO,KAAKC,KAAK,MAAM,oBAAoB;AAG3C,OAAOC,MAAM,MAAM,yBAAsB;AACzC,SAASC,OAAO,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS3C,MAAMC,aAA4B,GAAG,CACjC;EACIC,EAAE,EAAE,MAAM;EACVC,QAAQ,EAAE,wCAAwC;EAClDC,UAAU,EAAE,0CAA0C;EACtDC,IAAI,EAAEX,KAAK,CAACY;AAChB,CAAC,EACD;EACIJ,EAAE,EAAE,OAAO;EACXC,QAAQ,EAAE,yCAAyC;EACnDC,UAAU,EAAE,2CAA2C;EACvDC,IAAI,EAAEX,KAAK,CAACa;AAChB,CAAC,EACD;EACIL,EAAE,EAAE,QAAQ;EACZC,QAAQ,EAAE,0CAA0C;EACpDC,UAAU,EAAE,4CAA4C;EACxDC,IAAI,EAAEX,KAAK,CAACc;AAChB,CAAC,EACD;EACIN,EAAE,EAAE,QAAQ;EACZC,QAAQ,EAAE,0CAA0C;EACpDC,UAAU,EAAE,4CAA4C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