@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
|
@@ -10,20 +10,27 @@ var _theme = require("@oxyhq/bloom/theme");
|
|
|
10
10
|
var _core = require("@oxyhq/core");
|
|
11
11
|
var _vectorIcons = require("@expo/vector-icons");
|
|
12
12
|
var _bloom = require("@oxyhq/bloom");
|
|
13
|
-
var
|
|
13
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
14
|
+
var _searchInput = require("@oxyhq/bloom/search-input");
|
|
14
15
|
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
16
|
+
var _Header = _interopRequireDefault(require("../components/Header.js"));
|
|
15
17
|
var _useI18n = require("../hooks/useI18n.js");
|
|
16
18
|
var _OxyContext = require("../context/OxyContext.js");
|
|
17
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
|
+
// Size (in dp) of the circular flag chip rendered as each row's leading icon.
|
|
23
|
+
const FLAG_CHIP_SIZE = 40;
|
|
24
|
+
// Selected-row check indicator size (dp).
|
|
25
|
+
const CHECK_ICON_SIZE = 24;
|
|
26
|
+
|
|
20
27
|
/**
|
|
21
28
|
* LanguageSelectorScreen - Optimized for performance
|
|
22
|
-
*
|
|
29
|
+
*
|
|
23
30
|
* Performance optimizations:
|
|
24
|
-
* - useMemo for language
|
|
31
|
+
* - useMemo for the filtered language list to prevent recreation on every render
|
|
25
32
|
* - useCallback for handlers to prevent unnecessary re-renders
|
|
26
|
-
* - Memoized
|
|
33
|
+
* - Memoized component to prevent unnecessary re-renders
|
|
27
34
|
*/
|
|
28
35
|
const LanguageSelectorScreen = ({
|
|
29
36
|
goBack,
|
|
@@ -44,6 +51,7 @@ const LanguageSelectorScreen = ({
|
|
|
44
51
|
const bloomTheme = (0, _theme.useTheme)();
|
|
45
52
|
const normalizedTheme = (0, _core.normalizeTheme)(theme);
|
|
46
53
|
const [isLoading, setIsLoading] = (0, _react.useState)(false);
|
|
54
|
+
const [query, setQuery] = (0, _react.useState)('');
|
|
47
55
|
|
|
48
56
|
// Memoize the language select handler to prevent recreation on every render
|
|
49
57
|
const handleLanguageSelect = (0, _react.useCallback)(async languageId => {
|
|
@@ -95,35 +103,16 @@ const LanguageSelectorScreen = ({
|
|
|
95
103
|
}
|
|
96
104
|
}, [currentLanguage, isLoading, isAuthenticated, user?.id, oxyServices, setLanguage, t, onClose, goBack]);
|
|
97
105
|
|
|
98
|
-
//
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
style: [styles.languageFlag, {
|
|
107
|
-
backgroundColor: `${language.color}15`
|
|
108
|
-
}],
|
|
109
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
110
|
-
style: styles.flagEmoji,
|
|
111
|
-
children: language.flag
|
|
112
|
-
})
|
|
113
|
-
}),
|
|
114
|
-
onPress: () => handleLanguageSelect(language.id),
|
|
115
|
-
rightElement: isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
116
|
-
name: "checkmark-circle",
|
|
117
|
-
size: 24,
|
|
118
|
-
color: bloomTheme.colors.primary
|
|
119
|
-
}) : undefined,
|
|
120
|
-
showChevron: false
|
|
121
|
-
};
|
|
122
|
-
}), [currentLanguage, handleLanguageSelect, bloomTheme]);
|
|
106
|
+
// Filter the supported languages by the search query (name + native name).
|
|
107
|
+
const filteredLanguages = (0, _react.useMemo)(() => {
|
|
108
|
+
const normalized = query.trim().toLowerCase();
|
|
109
|
+
if (!normalized) {
|
|
110
|
+
return _core.SUPPORTED_LANGUAGES;
|
|
111
|
+
}
|
|
112
|
+
return _core.SUPPORTED_LANGUAGES.filter(language => language.name.toLowerCase().includes(normalized) || language.nativeName.toLowerCase().includes(normalized));
|
|
113
|
+
}, [query]);
|
|
123
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
124
|
-
|
|
125
|
-
backgroundColor: bloomTheme.colors.background
|
|
126
|
-
}],
|
|
115
|
+
className: "flex-1 bg-bg",
|
|
127
116
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
128
117
|
title: "",
|
|
129
118
|
subtitle: "",
|
|
@@ -132,85 +121,73 @@ const LanguageSelectorScreen = ({
|
|
|
132
121
|
variant: "minimal",
|
|
133
122
|
elevation: "none"
|
|
134
123
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
135
|
-
|
|
136
|
-
|
|
124
|
+
className: "flex-1",
|
|
125
|
+
contentContainerClassName: "px-screen-margin pt-space-24 pb-space-24",
|
|
137
126
|
showsVerticalScrollIndicator: false,
|
|
138
127
|
removeClippedSubviews: true,
|
|
128
|
+
keyboardShouldPersistTaps: "handled",
|
|
139
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
140
|
-
|
|
141
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}],
|
|
130
|
+
className: "mb-space-16",
|
|
131
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H1, {
|
|
132
|
+
className: "text-text",
|
|
133
|
+
style: styles.bigTitle,
|
|
145
134
|
children: t('language.title')
|
|
146
|
-
}), t('language.subtitle')
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}],
|
|
135
|
+
}), t('language.subtitle') ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
136
|
+
className: "text-text-secondary mt-space-2",
|
|
137
|
+
style: styles.bigSubtitle,
|
|
150
138
|
children: t('language.subtitle')
|
|
151
|
-
})]
|
|
139
|
+
}) : null]
|
|
152
140
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
153
|
-
|
|
154
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
141
|
+
className: "mb-space-16",
|
|
142
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_searchInput.SearchInput, {
|
|
143
|
+
value: query,
|
|
144
|
+
onChangeText: setQuery,
|
|
145
|
+
onClearText: () => setQuery(''),
|
|
146
|
+
label: t('language.search') || 'Search languages'
|
|
147
|
+
})
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
149
|
+
children: filteredLanguages.map(language => {
|
|
150
|
+
const isSelected = currentLanguage === language.id;
|
|
151
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
152
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
153
|
+
className: "bg-fill-secondary items-center justify-center",
|
|
154
|
+
style: styles.languageFlag,
|
|
155
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
156
|
+
style: styles.flagEmoji,
|
|
157
|
+
children: language.flag
|
|
158
|
+
})
|
|
159
|
+
}),
|
|
160
|
+
title: language.name,
|
|
161
|
+
description: language.nativeName,
|
|
162
|
+
onPress: () => handleLanguageSelect(language.id),
|
|
163
|
+
rightElement: isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
164
|
+
name: "checkmark-circle",
|
|
165
|
+
size: CHECK_ICON_SIZE,
|
|
166
|
+
color: bloomTheme.colors.primary
|
|
167
|
+
}) : undefined,
|
|
168
|
+
showChevron: false
|
|
169
|
+
}, language.id);
|
|
168
170
|
})
|
|
169
171
|
})]
|
|
170
172
|
})]
|
|
171
173
|
});
|
|
172
174
|
};
|
|
175
|
+
|
|
176
|
+
// StyleSheet retained ONLY for measured layout (sizes / line metrics) — no colors.
|
|
173
177
|
const styles = _reactNative.StyleSheet.create({
|
|
174
|
-
container: {
|
|
175
|
-
flex: 1
|
|
176
|
-
},
|
|
177
|
-
content: {
|
|
178
|
-
flex: 1
|
|
179
|
-
},
|
|
180
|
-
contentContainer: {
|
|
181
|
-
padding: 16,
|
|
182
|
-
paddingTop: 24
|
|
183
|
-
},
|
|
184
|
-
titleContainer: {
|
|
185
|
-
marginBottom: 32,
|
|
186
|
-
paddingTop: 0
|
|
187
|
-
},
|
|
188
178
|
bigTitle: {
|
|
189
179
|
fontSize: 34,
|
|
190
|
-
fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
|
|
191
180
|
lineHeight: 40,
|
|
192
|
-
marginBottom: 8,
|
|
193
181
|
letterSpacing: -0.5
|
|
194
182
|
},
|
|
195
183
|
bigSubtitle: {
|
|
196
184
|
fontSize: 16,
|
|
197
|
-
lineHeight: 22
|
|
198
|
-
opacity: 0.7,
|
|
199
|
-
marginTop: 4
|
|
200
|
-
},
|
|
201
|
-
sectionContainer: {
|
|
202
|
-
marginBottom: 8
|
|
203
|
-
},
|
|
204
|
-
materialCard: {
|
|
205
|
-
borderRadius: 12,
|
|
206
|
-
overflow: 'hidden'
|
|
185
|
+
lineHeight: 22
|
|
207
186
|
},
|
|
208
187
|
languageFlag: {
|
|
209
|
-
width:
|
|
210
|
-
height:
|
|
211
|
-
borderRadius:
|
|
212
|
-
alignItems: 'center',
|
|
213
|
-
justifyContent: 'center'
|
|
188
|
+
width: FLAG_CHIP_SIZE,
|
|
189
|
+
height: FLAG_CHIP_SIZE,
|
|
190
|
+
borderRadius: FLAG_CHIP_SIZE / 2
|
|
214
191
|
},
|
|
215
192
|
flagEmoji: {
|
|
216
193
|
fontSize: 20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_theme","_core","_vectorIcons","_bloom","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_theme","_core","_vectorIcons","_bloom","_typography","_searchInput","_settingsList","_Header","_interopRequireDefault","_useI18n","_OxyContext","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FLAG_CHIP_SIZE","CHECK_ICON_SIZE","LanguageSelectorScreen","goBack","onClose","theme","user","currentLanguage","setLanguage","oxyServices","isAuthenticated","useOxy","useI18n","bloomTheme","useTheme","normalizedTheme","normalizeTheme","isLoading","setIsLoading","useState","query","setQuery","handleLanguageSelect","useCallback","languageId","serverSyncFailed","id","updateProfile","language","__DEV__","console","warn","Error","message","selectedLang","SUPPORTED_LANGUAGES","find","lang","toast","success","name","error","filteredLanguages","useMemo","normalized","trim","toLowerCase","filter","includes","nativeName","jsxs","View","className","children","jsx","title","subtitle","onBack","variant","elevation","ScrollView","contentContainerClassName","showsVerticalScrollIndicator","removeClippedSubviews","keyboardShouldPersistTaps","H1","style","styles","bigTitle","Text","bigSubtitle","SearchInput","value","onChangeText","onClearText","label","SettingsListGroup","map","isSelected","SettingsListItem","icon","languageFlag","flagEmoji","flag","description","onPress","rightElement","Ionicons","size","color","colors","primary","undefined","showChevron","StyleSheet","create","fontSize","lineHeight","letterSpacing","width","height","borderRadius","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/LanguageSelectorScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAC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ACjD4D,YAAY,EACRR,UAAU,gBACN,IAAAlG,WAAA,CAAA0E,GAAA,EAACnF,YAAA,CAAAoH,QAAQ;cACL/C,IAAI,EAAC,kBAAkB;cACvBgD,IAAI,EAAEvF,eAAgB;cACtBwF,KAAK,EAAE5E,UAAU,CAAC6E,MAAM,CAACC;YAAQ,CACpC,CAAC,GACFC,SACP;YACDC,WAAW,EAAE;UAAM,GArBdjE,QAAQ,CAACF,EAsBjB,CAAC;QAEV,CAAC;MAAC,CACa,CAAC;IAAA,CACZ,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;;AAED;AACA,MAAMyC,MAAM,GAAG2B,uBAAU,CAACC,MAAM,CAAC;EAC7B3B,QAAQ,EAAE;IACN4B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,CAAC;EACpB,CAAC;EACD5B,WAAW,EAAE;IACT0B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDhB,YAAY,EAAE;IACVkB,KAAK,EAAEnG,cAAc;IACrBoG,MAAM,EAAEpG,cAAc;IACtBqG,YAAY,EAAErG,cAAc,GAAG;EACnC,CAAC;EACDkF,SAAS,EAAE;IACPc,QAAQ,EAAE;EACd;AACJ,CAAC,CAAC;;AAEF;AAAA,IAAAM,QAAA,GAAAC,OAAA,CAAAxH,OAAA,gBACeyH,cAAK,CAACC,IAAI,CAACvG,sBAAsB,CAAC","ignoreList":[]}
|
|
@@ -6,227 +6,127 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
10
9
|
var _theme = require("@oxyhq/bloom/theme");
|
|
10
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
11
|
+
var _iconCircle = require("@oxyhq/bloom/icon-circle");
|
|
12
|
+
var _accordion = require("@oxyhq/bloom/accordion");
|
|
13
|
+
var Icons = _interopRequireWildcard(require("@oxyhq/bloom/icons"));
|
|
14
|
+
var _Header = _interopRequireDefault(require("../components/Header.js"));
|
|
11
15
|
var _useI18n = require("../hooks/useI18n.js");
|
|
12
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
19
|
const INFO_SECTIONS = [{
|
|
14
20
|
id: 'what',
|
|
15
21
|
titleKey: 'learnMoreUsernames.sections.what.title',
|
|
16
22
|
contentKey: 'learnMoreUsernames.sections.what.content',
|
|
17
|
-
|
|
23
|
+
Icon: Icons.At_Stroke2_Corner0_Rounded
|
|
18
24
|
}, {
|
|
19
25
|
id: 'rules',
|
|
20
26
|
titleKey: 'learnMoreUsernames.sections.rules.title',
|
|
21
27
|
contentKey: 'learnMoreUsernames.sections.rules.content',
|
|
22
|
-
|
|
28
|
+
Icon: Icons.BulletList_Stroke2_Corner0_Rounded
|
|
23
29
|
}, {
|
|
24
30
|
id: 'unique',
|
|
25
31
|
titleKey: 'learnMoreUsernames.sections.unique.title',
|
|
26
32
|
contentKey: 'learnMoreUsernames.sections.unique.content',
|
|
27
|
-
|
|
33
|
+
Icon: Icons.Key_Stroke2_Corner2_Rounded
|
|
28
34
|
}, {
|
|
29
35
|
id: 'change',
|
|
30
36
|
titleKey: 'learnMoreUsernames.sections.change.title',
|
|
31
37
|
contentKey: 'learnMoreUsernames.sections.change.content',
|
|
32
|
-
|
|
38
|
+
Icon: Icons.ArrowRotateClockwise_Stroke2_Corner0_Rounded
|
|
33
39
|
}, {
|
|
34
40
|
id: 'tips',
|
|
35
41
|
titleKey: 'learnMoreUsernames.sections.tips.title',
|
|
36
42
|
contentKey: 'learnMoreUsernames.sections.tips.content',
|
|
37
|
-
|
|
43
|
+
Icon: Icons.Sparkle_Stroke2_Corner0_Rounded
|
|
38
44
|
}];
|
|
39
45
|
const LearnMoreUsernamesScreen = ({
|
|
40
|
-
|
|
46
|
+
onClose,
|
|
47
|
+
goBack
|
|
41
48
|
}) => {
|
|
42
49
|
const bloomTheme = (0, _theme.useTheme)();
|
|
43
50
|
const {
|
|
44
51
|
t
|
|
45
52
|
} = (0, _useI18n.useI18n)();
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return next;
|
|
57
|
-
});
|
|
53
|
+
// Start with the first section expanded.
|
|
54
|
+
const [expandedIds, setExpandedIds] = (0, _react.useState)(['what']);
|
|
55
|
+
const handleAccordionChange = (0, _react.useCallback)(value => {
|
|
56
|
+
if (Array.isArray(value)) {
|
|
57
|
+
setExpandedIds(value);
|
|
58
|
+
} else if (value == null) {
|
|
59
|
+
setExpandedIds([]);
|
|
60
|
+
} else {
|
|
61
|
+
setExpandedIds([value]);
|
|
62
|
+
}
|
|
58
63
|
}, []);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
65
|
+
className: "flex-1 bg-bg",
|
|
66
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
67
|
+
title: t('learnMoreUsernames.introTitle'),
|
|
68
|
+
onBack: goBack || onClose,
|
|
69
|
+
variant: "minimal",
|
|
70
|
+
elevation: "subtle"
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
72
|
+
className: "flex-1 px-screen-margin",
|
|
66
73
|
showsVerticalScrollIndicator: false,
|
|
67
|
-
|
|
74
|
+
contentContainerClassName: "pb-space-32",
|
|
68
75
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
69
|
-
|
|
70
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
75
|
-
name: "at",
|
|
76
|
-
size: 32,
|
|
77
|
-
color: bloomTheme.colors.primary
|
|
78
|
-
})
|
|
79
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
80
|
-
style: [styles.introTitle, {
|
|
81
|
-
color: bloomTheme.colors.text
|
|
82
|
-
}],
|
|
83
|
-
children: t('learnMoreUsernames.introTitle')
|
|
84
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
85
|
-
style: [styles.introText, {
|
|
86
|
-
color: bloomTheme.colors.textSecondary
|
|
87
|
-
}],
|
|
76
|
+
className: "items-center py-space-24 gap-space-12",
|
|
77
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconCircle.IconCircle, {
|
|
78
|
+
icon: Icons.At_Stroke2_Corner0_Rounded
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
80
|
+
className: "font-sans text-body text-text-secondary text-center",
|
|
88
81
|
children: t('learnMoreUsernames.introText')
|
|
89
82
|
})]
|
|
90
|
-
}),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}],
|
|
111
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
112
|
-
name: section.icon,
|
|
113
|
-
size: 20,
|
|
114
|
-
color: bloomTheme.colors.primary
|
|
83
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accordion.Accordion, {
|
|
84
|
+
type: "multiple",
|
|
85
|
+
value: expandedIds,
|
|
86
|
+
onValueChange: handleAccordionChange,
|
|
87
|
+
children: INFO_SECTIONS.map(({
|
|
88
|
+
id,
|
|
89
|
+
titleKey,
|
|
90
|
+
contentKey,
|
|
91
|
+
Icon
|
|
92
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_accordion.AccordionItem, {
|
|
93
|
+
value: id,
|
|
94
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_accordion.AccordionTrigger, {
|
|
95
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
96
|
+
className: "bg-fill-secondary rounded-radius-12",
|
|
97
|
+
style: styles.iconSquare,
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
99
|
+
size: "md",
|
|
100
|
+
style: {
|
|
101
|
+
color: bloomTheme.colors.primary
|
|
102
|
+
}
|
|
115
103
|
})
|
|
116
|
-
}),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
name: isExpanded ? 'chevron-up' : 'chevron-down',
|
|
123
|
-
size: 20,
|
|
124
|
-
color: bloomTheme.colors.textSecondary
|
|
125
|
-
})]
|
|
126
|
-
}), isExpanded && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
127
|
-
style: [styles.sectionContent, {
|
|
128
|
-
borderTopColor: bloomTheme.colors.border
|
|
129
|
-
}],
|
|
130
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
131
|
-
style: [styles.sectionText, {
|
|
132
|
-
color: bloomTheme.colors.textSecondary
|
|
133
|
-
}],
|
|
134
|
-
children: t(section.contentKey)
|
|
104
|
+
}),
|
|
105
|
+
children: t(titleKey)
|
|
106
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_accordion.AccordionContent, {
|
|
107
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
108
|
+
className: "font-sans text-bodyMedium text-text-secondary",
|
|
109
|
+
children: t(contentKey)
|
|
135
110
|
})
|
|
136
111
|
})]
|
|
137
|
-
},
|
|
138
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
139
|
-
|
|
140
|
-
children:
|
|
141
|
-
style: [styles.footerText, {
|
|
142
|
-
color: bloomTheme.colors.textSecondary
|
|
143
|
-
}],
|
|
144
|
-
children: t('learnMoreUsernames.footer')
|
|
145
|
-
})
|
|
112
|
+
}, id))
|
|
113
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
114
|
+
className: "font-sans text-caption text-text-tertiary text-center mt-space-16",
|
|
115
|
+
children: t('learnMoreUsernames.footer')
|
|
146
116
|
})]
|
|
147
|
-
})
|
|
117
|
+
})]
|
|
148
118
|
});
|
|
149
119
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
contentContainer: {
|
|
158
|
-
padding: 16,
|
|
159
|
-
paddingBottom: 32
|
|
160
|
-
},
|
|
161
|
-
introSection: {
|
|
162
|
-
alignItems: 'center',
|
|
163
|
-
paddingVertical: 24,
|
|
164
|
-
paddingHorizontal: 16
|
|
165
|
-
},
|
|
166
|
-
introIcon: {
|
|
167
|
-
width: 64,
|
|
168
|
-
height: 64,
|
|
169
|
-
borderRadius: 32,
|
|
170
|
-
alignItems: 'center',
|
|
171
|
-
justifyContent: 'center',
|
|
172
|
-
marginBottom: 16
|
|
173
|
-
},
|
|
174
|
-
introTitle: {
|
|
175
|
-
fontSize: 24,
|
|
176
|
-
fontWeight: '700',
|
|
177
|
-
marginBottom: 8,
|
|
178
|
-
textAlign: 'center'
|
|
179
|
-
},
|
|
180
|
-
introText: {
|
|
181
|
-
fontSize: 16,
|
|
182
|
-
lineHeight: 24,
|
|
183
|
-
textAlign: 'center'
|
|
184
|
-
},
|
|
185
|
-
section: {
|
|
186
|
-
borderRadius: 12,
|
|
187
|
-
borderWidth: 1,
|
|
188
|
-
marginBottom: 12,
|
|
189
|
-
overflow: 'hidden'
|
|
190
|
-
},
|
|
191
|
-
sectionFirst: {
|
|
192
|
-
marginTop: 8
|
|
193
|
-
},
|
|
194
|
-
sectionHeader: {
|
|
195
|
-
flexDirection: 'row',
|
|
196
|
-
alignItems: 'center',
|
|
197
|
-
padding: 16
|
|
198
|
-
},
|
|
199
|
-
sectionIconContainer: {
|
|
120
|
+
|
|
121
|
+
// Measured layout only (no color): fixed-size square that hosts the leading
|
|
122
|
+
// section icon inside the accordion trigger. Color comes from the
|
|
123
|
+
// `bg-fill-secondary` token class on the View.
|
|
124
|
+
const styles = _reactNative.StyleSheet.create({
|
|
125
|
+
iconSquare: {
|
|
200
126
|
width: 36,
|
|
201
127
|
height: 36,
|
|
202
|
-
borderRadius: 18,
|
|
203
128
|
alignItems: 'center',
|
|
204
|
-
justifyContent: 'center'
|
|
205
|
-
marginRight: 12
|
|
206
|
-
},
|
|
207
|
-
sectionTitle: {
|
|
208
|
-
flex: 1,
|
|
209
|
-
fontSize: 16,
|
|
210
|
-
fontWeight: '600',
|
|
211
|
-
marginRight: 12
|
|
212
|
-
},
|
|
213
|
-
sectionContent: {
|
|
214
|
-
padding: 16,
|
|
215
|
-
paddingTop: 12,
|
|
216
|
-
borderTopWidth: 1
|
|
217
|
-
},
|
|
218
|
-
sectionText: {
|
|
219
|
-
fontSize: 14,
|
|
220
|
-
lineHeight: 22
|
|
221
|
-
},
|
|
222
|
-
footer: {
|
|
223
|
-
marginTop: 16,
|
|
224
|
-
paddingHorizontal: 16
|
|
225
|
-
},
|
|
226
|
-
footerText: {
|
|
227
|
-
fontSize: 14,
|
|
228
|
-
textAlign: 'center',
|
|
229
|
-
lineHeight: 20
|
|
129
|
+
justifyContent: 'center'
|
|
230
130
|
}
|
|
231
131
|
});
|
|
232
132
|
var _default = exports.default = LearnMoreUsernamesScreen;
|