@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
|
@@ -16,9 +16,6 @@ var _OxyContext = require("../context/OxyContext.js");
|
|
|
16
16
|
var _useAccountQueries = require("../hooks/queries/useAccountQueries.js");
|
|
17
17
|
var _useAccountMutations = require("../hooks/mutations/useAccountMutations.js");
|
|
18
18
|
var _useSettingToggle = require("../hooks/useSettingToggle.js");
|
|
19
|
-
var _useColorScheme = require("../hooks/useColorScheme.js");
|
|
20
|
-
var _theme2 = require("../constants/theme.js");
|
|
21
|
-
var _core = require("@oxyhq/core");
|
|
22
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
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); }
|
|
@@ -39,15 +36,12 @@ const DEFAULT_VALUES = {
|
|
|
39
36
|
*/
|
|
40
37
|
const NotificationsScreen = ({
|
|
41
38
|
onClose,
|
|
42
|
-
theme,
|
|
43
39
|
goBack
|
|
44
40
|
}) => {
|
|
45
41
|
const bloomTheme = (0, _theme.useTheme)();
|
|
46
42
|
const {
|
|
47
43
|
t
|
|
48
44
|
} = (0, _useI18n.useI18n)();
|
|
49
|
-
const colorScheme = (0, _useColorScheme.useColorScheme)();
|
|
50
|
-
const palette = (0, _react.useMemo)(() => _theme2.Colors[(0, _core.normalizeColorScheme)(colorScheme, (0, _core.normalizeTheme)(theme))], [colorScheme, theme]);
|
|
51
45
|
const {
|
|
52
46
|
isAuthenticated
|
|
53
47
|
} = (0, _OxyContext.useOxy)();
|
|
@@ -83,93 +77,81 @@ const NotificationsScreen = ({
|
|
|
83
77
|
});
|
|
84
78
|
const isSaving = savingKeys.size > 0;
|
|
85
79
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
86
|
-
|
|
87
|
-
backgroundColor: bloomTheme.colors.background
|
|
88
|
-
}],
|
|
80
|
+
className: "flex-1 bg-bg",
|
|
89
81
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
90
82
|
title: t('notifications.title') || 'Notifications',
|
|
91
83
|
onBack: goBack || onClose,
|
|
92
84
|
variant: "minimal",
|
|
93
85
|
elevation: "subtle"
|
|
94
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
87
|
+
className: "flex-1",
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
89
|
+
className: "px-screen-margin pb-space-24",
|
|
90
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
91
|
+
title: t('notifications.sections.channels') || 'Channels',
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
93
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
94
|
+
name: "bell",
|
|
95
|
+
color: bloomTheme.colors.primary
|
|
96
|
+
}),
|
|
97
|
+
title: t('notifications.items.push.title') || 'Push notifications',
|
|
98
|
+
description: t('notifications.items.push.subtitle') || 'Real-time alerts on your devices',
|
|
99
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
100
|
+
value: values.pushEnabled,
|
|
101
|
+
onValueChange: () => toggle('pushEnabled'),
|
|
102
|
+
disabled: isSaving
|
|
103
|
+
}),
|
|
104
|
+
showChevron: false
|
|
105
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
106
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
107
|
+
name: "email",
|
|
108
|
+
color: bloomTheme.colors.info
|
|
109
|
+
}),
|
|
110
|
+
title: t('notifications.items.emailDigest.title') || 'Email digest',
|
|
111
|
+
description: t('notifications.items.emailDigest.subtitle') || 'Periodic summary of your account activity',
|
|
112
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
113
|
+
value: values.emailDigest,
|
|
114
|
+
onValueChange: () => toggle('emailDigest'),
|
|
115
|
+
disabled: isSaving
|
|
116
|
+
}),
|
|
117
|
+
showChevron: false
|
|
118
|
+
})]
|
|
119
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
120
|
+
title: t('notifications.sections.alerts') || 'Alerts',
|
|
121
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
122
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
123
|
+
name: "shield-check",
|
|
124
|
+
color: bloomTheme.colors.success
|
|
125
|
+
}),
|
|
126
|
+
title: t('notifications.items.securityAlerts.title') || 'Security alerts',
|
|
127
|
+
description: t('notifications.items.securityAlerts.subtitle') || 'Sign-ins, recovery codes, and key changes',
|
|
128
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
129
|
+
value: values.securityAlerts,
|
|
130
|
+
onValueChange: () => toggle('securityAlerts'),
|
|
131
|
+
disabled: isSaving
|
|
132
|
+
}),
|
|
133
|
+
showChevron: false
|
|
134
|
+
})
|
|
135
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
136
|
+
title: t('notifications.sections.marketing') || 'Marketing',
|
|
137
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
138
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
139
|
+
name: "megaphone",
|
|
140
|
+
color: bloomTheme.colors.secondary
|
|
141
|
+
}),
|
|
142
|
+
title: t('notifications.items.marketingEmails.title') || 'Marketing emails',
|
|
143
|
+
description: t('notifications.items.marketingEmails.subtitle') || 'Product news and occasional offers',
|
|
144
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
145
|
+
value: values.marketingEmails,
|
|
146
|
+
onValueChange: () => toggle('marketingEmails'),
|
|
147
|
+
disabled: isSaving
|
|
148
|
+
}),
|
|
149
|
+
showChevron: false
|
|
150
|
+
})
|
|
125
151
|
})]
|
|
126
|
-
})
|
|
127
|
-
title: t('notifications.sections.alerts') || 'Alerts',
|
|
128
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
129
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
130
|
-
name: "shield-check",
|
|
131
|
-
color: palette.iconSecurity
|
|
132
|
-
}),
|
|
133
|
-
title: t('notifications.items.securityAlerts.title') || 'Security alerts',
|
|
134
|
-
description: t('notifications.items.securityAlerts.subtitle') || 'Sign-ins, recovery codes, and key changes',
|
|
135
|
-
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
136
|
-
value: values.securityAlerts,
|
|
137
|
-
onValueChange: () => toggle('securityAlerts'),
|
|
138
|
-
disabled: isSaving
|
|
139
|
-
}),
|
|
140
|
-
showChevron: false
|
|
141
|
-
})
|
|
142
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
143
|
-
title: t('notifications.sections.marketing') || 'Marketing',
|
|
144
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
145
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
146
|
-
name: "megaphone",
|
|
147
|
-
color: palette.iconSharing
|
|
148
|
-
}),
|
|
149
|
-
title: t('notifications.items.marketingEmails.title') || 'Marketing emails',
|
|
150
|
-
description: t('notifications.items.marketingEmails.subtitle') || 'Product news and occasional offers',
|
|
151
|
-
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_switch.Switch, {
|
|
152
|
-
value: values.marketingEmails,
|
|
153
|
-
onValueChange: () => toggle('marketingEmails'),
|
|
154
|
-
disabled: isSaving
|
|
155
|
-
}),
|
|
156
|
-
showChevron: false
|
|
157
|
-
})
|
|
158
|
-
})]
|
|
152
|
+
})
|
|
159
153
|
})]
|
|
160
154
|
});
|
|
161
155
|
};
|
|
162
|
-
const styles = _reactNative.StyleSheet.create({
|
|
163
|
-
container: {
|
|
164
|
-
flex: 1
|
|
165
|
-
},
|
|
166
|
-
scroll: {
|
|
167
|
-
flex: 1
|
|
168
|
-
},
|
|
169
|
-
scrollContent: {
|
|
170
|
-
paddingHorizontal: 16,
|
|
171
|
-
paddingBottom: 24
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
156
|
var _default = exports.default = /*#__PURE__*/_react.default.memo(NotificationsScreen);
|
|
175
157
|
//# sourceMappingURL=NotificationsScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_settingsList","_switch","_theme","_Header","_interopRequireDefault","_SettingsIcon","_useI18n","_OxyContext","_useAccountQueries","_useAccountMutations","_useSettingToggle","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_settingsList","_switch","_theme","_Header","_interopRequireDefault","_SettingsIcon","_useI18n","_OxyContext","_useAccountQueries","_useAccountMutations","_useSettingToggle","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_VALUES","pushEnabled","emailDigest","securityAlerts","marketingEmails","NotificationsScreen","onClose","goBack","bloomTheme","useTheme","useI18n","isAuthenticated","useOxy","data","user","useCurrentUser","enabled","updateMutation","useUpdateNotificationPreferences","initialValues","useMemo","prefs","notificationPreferences","handleSave","useCallback","key","value","patch","mutateAsync","values","toggle","savingKeys","useSettingToggles","onSave","errorMessage","isSaving","size","jsxs","View","className","children","jsx","title","onBack","variant","elevation","ScrollView","SettingsListGroup","SettingsListItem","icon","SettingsIcon","name","color","colors","primary","description","rightElement","Switch","onValueChange","disabled","showChevron","info","success","secondary","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/NotificationsScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AACA,IAAAW,oBAAA,GAAAX,OAAA;AACA,IAAAY,iBAAA,GAAAZ,OAAA;AAA8D,IAAAa,WAAA,GAAAb,OAAA;AAAA,SAAAM,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAf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me");
|
|
9
9
|
var _button = require("@oxyhq/bloom/button");
|
|
10
10
|
var _loading = require("@oxyhq/bloom/loading");
|
|
11
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
12
|
+
var _iconCircle = require("@oxyhq/bloom/icon-circle");
|
|
13
|
+
var Icons = _interopRequireWildcard(require("@oxyhq/bloom/icons"));
|
|
11
14
|
var _OxyContext = require("../context/OxyContext.js");
|
|
12
15
|
var _OxyLogo = _interopRequireDefault(require("../components/OxyLogo.js"));
|
|
13
16
|
var _AnotherDeviceQR = _interopRequireDefault(require("../components/AnotherDeviceQR.js"));
|
|
17
|
+
var _LoadingState = _interopRequireDefault(require("../components/LoadingState.js"));
|
|
14
18
|
var _useOxyAuthSession = require("../hooks/useOxyAuthSession.js");
|
|
15
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
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); }
|
|
17
22
|
/**
|
|
18
23
|
* OxyAuthScreen - Sign in with Oxy (native bottom-sheet container)
|
|
19
24
|
*
|
|
@@ -43,190 +48,121 @@ const OxyAuthScreen = ({
|
|
|
43
48
|
} = (0, _OxyContext.useOxy)();
|
|
44
49
|
const {
|
|
45
50
|
qrData,
|
|
51
|
+
qrPayload,
|
|
46
52
|
isLoading,
|
|
47
53
|
error,
|
|
48
54
|
isWaiting,
|
|
49
55
|
openAuthApproval,
|
|
56
|
+
openSameDeviceApproval,
|
|
50
57
|
retry
|
|
51
58
|
} = (0, _useOxyAuthSession.useOxyAuthSession)(oxyServices, clientId, switchSession, {
|
|
52
59
|
onSignedIn: onAuthenticated
|
|
53
60
|
});
|
|
54
61
|
if (isLoading) {
|
|
55
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
})
|
|
62
|
-
style: styles.loadingText,
|
|
63
|
-
className: "text-muted-foreground",
|
|
64
|
-
children: "Preparing sign in..."
|
|
65
|
-
})]
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
63
|
+
className: "flex-1 items-center justify-center bg-bg",
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoadingState.default, {
|
|
65
|
+
size: "large",
|
|
66
|
+
color: bloomTheme.colors.primary,
|
|
67
|
+
message: "Preparing sign in..."
|
|
68
|
+
})
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
71
|
if (error) {
|
|
69
72
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
className: "text-destructive",
|
|
73
|
+
className: "flex-1 items-center justify-center bg-bg px-screen-margin gap-space-16",
|
|
74
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconCircle.IconCircle, {
|
|
75
|
+
icon: Icons.Warning_Stroke2_Corner0_Rounded
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
77
|
+
className: "font-sans text-body text-text-secondary text-center",
|
|
76
78
|
children: error
|
|
77
79
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
78
80
|
variant: "primary",
|
|
81
|
+
fullWidth: true,
|
|
82
|
+
className: "w-full",
|
|
79
83
|
onPress: retry,
|
|
80
|
-
|
|
84
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icons.ArrowRotateClockwise_Stroke2_Corner0_Rounded, {
|
|
85
|
+
size: "sm",
|
|
86
|
+
style: {
|
|
87
|
+
color: bloomTheme.colors.primaryForeground
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
81
90
|
children: "Try Again"
|
|
82
91
|
})]
|
|
83
92
|
});
|
|
84
93
|
}
|
|
85
94
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
86
|
-
|
|
87
|
-
backgroundColor: bloomTheme.colors.background
|
|
88
|
-
}],
|
|
95
|
+
className: "flex-1 items-center justify-center bg-bg px-screen-margin",
|
|
89
96
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
90
|
-
|
|
97
|
+
className: "items-center mb-space-24 gap-space-12",
|
|
91
98
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
|
|
92
99
|
variant: "icon",
|
|
93
|
-
size:
|
|
94
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
95
|
-
|
|
96
|
-
className: "text-foreground",
|
|
100
|
+
size: 56
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
102
|
+
className: "text-headerBold font-headerBold text-text text-center",
|
|
97
103
|
children: "Sign in to Oxy"
|
|
98
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
99
|
-
|
|
100
|
-
className: "text-muted-foreground",
|
|
104
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
105
|
+
className: "font-sans text-body text-text-secondary text-center",
|
|
101
106
|
children: "Continue with your Oxy identity to sign in securely"
|
|
102
107
|
})]
|
|
103
108
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
104
109
|
variant: "primary",
|
|
110
|
+
size: "large",
|
|
111
|
+
fullWidth: true,
|
|
112
|
+
className: "w-full",
|
|
105
113
|
onPress: openAuthApproval,
|
|
106
114
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
|
|
107
115
|
variant: "icon",
|
|
108
116
|
size: 20,
|
|
109
|
-
fillColor: bloomTheme.colors.primaryForeground
|
|
110
|
-
style: styles.buttonIcon
|
|
117
|
+
fillColor: bloomTheme.colors.primaryForeground
|
|
111
118
|
}),
|
|
112
|
-
style: styles.primaryButton,
|
|
113
119
|
children: "Continue with Oxy"
|
|
120
|
+
}), qrPayload && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
121
|
+
variant: "secondary",
|
|
122
|
+
size: "large",
|
|
123
|
+
fullWidth: true,
|
|
124
|
+
className: "w-full mt-space-12",
|
|
125
|
+
onPress: openSameDeviceApproval,
|
|
126
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
|
|
127
|
+
variant: "icon",
|
|
128
|
+
size: 20,
|
|
129
|
+
fillColor: bloomTheme.colors.text
|
|
130
|
+
}),
|
|
131
|
+
children: "Sign in with the Oxy app"
|
|
114
132
|
}), isWaiting && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
115
|
-
|
|
133
|
+
className: "flex-row items-center mt-space-16 gap-space-8",
|
|
116
134
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
|
|
117
|
-
size: "small"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
style: styles.statusText,
|
|
121
|
-
className: "text-muted-foreground",
|
|
135
|
+
size: "small"
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
137
|
+
className: "font-sans text-body text-text-secondary",
|
|
122
138
|
children: "Waiting for authorization..."
|
|
123
139
|
})]
|
|
124
140
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
125
|
-
|
|
141
|
+
className: "w-full mt-space-24",
|
|
126
142
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AnotherDeviceQR.default, {
|
|
127
|
-
qrData: qrData
|
|
143
|
+
qrData: qrData,
|
|
144
|
+
qrPayload: qrPayload
|
|
128
145
|
})
|
|
129
146
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
130
|
-
|
|
131
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
147
|
+
className: "flex-row flex-wrap justify-center items-center mt-space-24",
|
|
148
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
149
|
+
className: "font-sans text-body text-text-secondary",
|
|
150
|
+
children: "Don't have an Oxy account?"
|
|
151
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
152
|
+
variant: "text",
|
|
153
|
+
size: "small",
|
|
136
154
|
onPress: () => _reactNative.Linking.openURL(_useOxyAuthSession.OXY_ACCOUNTS_WEB_URL),
|
|
137
|
-
|
|
138
|
-
children:
|
|
139
|
-
style: styles.footerLink,
|
|
140
|
-
className: "text-primary",
|
|
141
|
-
children: "Create one"
|
|
142
|
-
})
|
|
155
|
+
accessibilityLabel: "Create an Oxy account",
|
|
156
|
+
children: "Create one"
|
|
143
157
|
})]
|
|
144
|
-
}), goBack && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
145
|
-
|
|
158
|
+
}), goBack && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
159
|
+
variant: "text",
|
|
146
160
|
onPress: goBack,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
className: "text-muted-foreground",
|
|
151
|
-
children: "Cancel"
|
|
152
|
-
})
|
|
161
|
+
className: "mt-space-8",
|
|
162
|
+
accessibilityLabel: "Cancel",
|
|
163
|
+
children: "Cancel"
|
|
153
164
|
})]
|
|
154
165
|
});
|
|
155
166
|
};
|
|
156
|
-
const styles = _reactNative.StyleSheet.create({
|
|
157
|
-
container: {
|
|
158
|
-
flex: 1,
|
|
159
|
-
padding: 24,
|
|
160
|
-
alignItems: 'center',
|
|
161
|
-
justifyContent: 'center'
|
|
162
|
-
},
|
|
163
|
-
header: {
|
|
164
|
-
alignItems: 'center',
|
|
165
|
-
marginBottom: 28
|
|
166
|
-
},
|
|
167
|
-
title: {
|
|
168
|
-
fontSize: 24,
|
|
169
|
-
fontWeight: 'bold',
|
|
170
|
-
marginTop: 16,
|
|
171
|
-
textAlign: 'center'
|
|
172
|
-
},
|
|
173
|
-
subtitle: {
|
|
174
|
-
fontSize: 14,
|
|
175
|
-
marginTop: 8,
|
|
176
|
-
textAlign: 'center'
|
|
177
|
-
},
|
|
178
|
-
primaryButton: {
|
|
179
|
-
width: '100%',
|
|
180
|
-
borderRadius: 12
|
|
181
|
-
},
|
|
182
|
-
buttonIcon: {
|
|
183
|
-
marginRight: 10
|
|
184
|
-
},
|
|
185
|
-
statusContainer: {
|
|
186
|
-
flexDirection: 'row',
|
|
187
|
-
alignItems: 'center',
|
|
188
|
-
marginTop: 20
|
|
189
|
-
},
|
|
190
|
-
statusSpinner: {
|
|
191
|
-
flex: undefined
|
|
192
|
-
},
|
|
193
|
-
statusText: {
|
|
194
|
-
marginLeft: 8,
|
|
195
|
-
fontSize: 14
|
|
196
|
-
},
|
|
197
|
-
qrSection: {
|
|
198
|
-
width: '100%',
|
|
199
|
-
marginTop: 24
|
|
200
|
-
},
|
|
201
|
-
footer: {
|
|
202
|
-
flexDirection: 'row',
|
|
203
|
-
flexWrap: 'wrap',
|
|
204
|
-
justifyContent: 'center',
|
|
205
|
-
marginTop: 28
|
|
206
|
-
},
|
|
207
|
-
footerText: {
|
|
208
|
-
fontSize: 14
|
|
209
|
-
},
|
|
210
|
-
footerLink: {
|
|
211
|
-
fontSize: 14,
|
|
212
|
-
fontWeight: '600'
|
|
213
|
-
},
|
|
214
|
-
cancelButton: {
|
|
215
|
-
marginTop: 16,
|
|
216
|
-
padding: 12
|
|
217
|
-
},
|
|
218
|
-
cancelText: {
|
|
219
|
-
fontSize: 14
|
|
220
|
-
},
|
|
221
|
-
loadingText: {
|
|
222
|
-
marginTop: 16,
|
|
223
|
-
fontSize: 14
|
|
224
|
-
},
|
|
225
|
-
errorText: {
|
|
226
|
-
fontSize: 14,
|
|
227
|
-
textAlign: 'center',
|
|
228
|
-
marginBottom: 16
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
167
|
var _default = exports.default = OxyAuthScreen;
|
|
232
168
|
//# sourceMappingURL=OxyAuthScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_theme","_button","_loading","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","_button","_loading","_typography","_iconCircle","Icons","_interopRequireWildcard","_OxyContext","_OxyLogo","_interopRequireDefault","_AnotherDeviceQR","_LoadingState","_useOxyAuthSession","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OxyAuthScreen","goBack","onAuthenticated","bloomTheme","useTheme","oxyServices","switchSession","clientId","useOxy","qrData","qrPayload","isLoading","error","isWaiting","openAuthApproval","openSameDeviceApproval","retry","useOxyAuthSession","onSignedIn","jsx","View","className","children","size","color","colors","primary","message","jsxs","IconCircle","icon","Warning_Stroke2_Corner0_Rounded","Text","Button","variant","fullWidth","onPress","ArrowRotateClockwise_Stroke2_Corner0_Rounded","style","primaryForeground","H4","fillColor","text","Loading","Linking","openURL","OXY_ACCOUNTS_WEB_URL","accessibilityLabel","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/screens/OxyAuthScreen.tsx"],"mappings":";;;;;;AAkBA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;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,SAAS,EAAC,oBAAoB;MAAAC,QAAA,eAClC,IAAA1C,WAAA,CAAAuC,GAAA,EAAC1C,gBAAA,CAAAM,OAAe;QAAC0B,MAAM,EAAEA,MAAO;QAACC,SAAS,EAAEA;MAAU,CAAE;IAAC,CACrD,CAAC,eAGP,IAAA9B,WAAA,CAAAgD,IAAA,EAAC/D,YAAA,CAAAuD,IAAI;MAACC,SAAS,EAAC,4DAA4D;MAAAC,QAAA,gBAC1E,IAAA1C,WAAA,CAAAuC,GAAA,EAACjD,WAAA,CAAA8D,IAAI;QAACX,SAAS,EAAC,yCAAyC;QAAAC,QAAA,EAAC;MAE1D,CAAM,CAAC,eACP,IAAA1C,WAAA,CAAAuC,GAAA,EAACnD,OAAA,CAAAiE,MAAM;QACLC,OAAO,EAAC,MAAM;QACdX,IAAI,EAAC,OAAO;QACZa,OAAO,EAAEA,CAAA,KAAMQ,oBAAO,CAACC,OAAO,CAACC,uCAAoB,CAAE;QACrDC,kBAAkB,EAAC,uBAAuB;QAAAzB,QAAA,EAC3C;MAED,CAAQ,CAAC;IAAA,CACL,CAAC,EAGNrB,MAAM,iBACL,IAAArB,WAAA,CAAAuC,GAAA,EAACnD,OAAA,CAAAiE,MAAM;MAACC,OAAO,EAAC,MAAM;MAACE,OAAO,EAAEnC,MAAO;MAACoB,SAAS,EAAC,YAAY;MAAC0B,kBAAkB,EAAC,QAAQ;MAAAzB,QAAA,EAAC;IAE3F,CAAQ,CACT;EAAA,CACG,CAAC;AAEX,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,CAAAlE,OAAA,GAEaiB,aAAa","ignoreList":[]}
|
|
@@ -9,6 +9,8 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _theme = require("../styles/theme.js");
|
|
10
10
|
var _core = require("@oxyhq/core");
|
|
11
11
|
var _button = require("@oxyhq/bloom/button");
|
|
12
|
+
var _theme2 = require("@oxyhq/bloom/theme");
|
|
13
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
12
14
|
var _vectorIcons = require("@expo/vector-icons");
|
|
13
15
|
var _useI18n = require("../hooks/useI18n.js");
|
|
14
16
|
var _reactNativeQrcodeSvg = _interopRequireDefault(require("react-native-qrcode-svg"));
|
|
@@ -18,7 +20,6 @@ var _PaymentDetailsStep = _interopRequireDefault(require("../components/payment/
|
|
|
18
20
|
var _PaymentReviewStep = _interopRequireDefault(require("../components/payment/PaymentReviewStep.js"));
|
|
19
21
|
var _PaymentSuccessStep = _interopRequireDefault(require("../components/payment/PaymentSuccessStep.js"));
|
|
20
22
|
var _constants = require("../components/payment/constants.js");
|
|
21
|
-
var _paymentStyles = require("../components/payment/paymentStyles.js");
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
25
|
const getUniqueItemTypes = items => {
|
|
@@ -62,11 +63,13 @@ const PaymentGatewayScreen = props => {
|
|
|
62
63
|
const scaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
63
64
|
const progressAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0.2)).current;
|
|
64
65
|
const normalizedTheme = (0, _core.normalizeTheme)(theme);
|
|
66
|
+
// `colors` (PaymentColors) is the contract the wizard step components consume.
|
|
65
67
|
const colors = (0, _theme.useThemeColors)(normalizedTheme);
|
|
68
|
+
// Bloom theme drives screen-shell icon roles (no hardcoded hex).
|
|
69
|
+
const bloomTheme = (0, _theme2.useTheme)();
|
|
66
70
|
const {
|
|
67
71
|
t
|
|
68
72
|
} = (0, _useI18n.useI18n)();
|
|
69
|
-
const styles = (0, _react.useMemo)(() => (0, _paymentStyles.createPaymentStyles)(colors), [colors]);
|
|
70
73
|
|
|
71
74
|
// Determine if the payment is for a recurring item (subscription)
|
|
72
75
|
const isRecurring = paymentItems.length > 0 && paymentItems[0].type === 'subscription';
|
|
@@ -165,9 +168,13 @@ const PaymentGatewayScreen = props => {
|
|
|
165
168
|
// Validate amount
|
|
166
169
|
if (!amount || Number.isNaN(Number(amount)) || Number(amount) <= 0) {
|
|
167
170
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
168
|
-
|
|
169
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
170
|
-
|
|
171
|
+
className: "flex-1 bg-bg items-center justify-center px-screen-margin gap-space-24",
|
|
172
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
173
|
+
name: "alert-circle-outline",
|
|
174
|
+
size: 48,
|
|
175
|
+
color: bloomTheme.colors.error
|
|
176
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
177
|
+
className: "text-text text-center",
|
|
171
178
|
children: t('payment.errors.invalidAmount')
|
|
172
179
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
173
180
|
variant: "primary",
|
|
@@ -255,11 +262,10 @@ const PaymentGatewayScreen = props => {
|
|
|
255
262
|
}
|
|
256
263
|
};
|
|
257
264
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
258
|
-
|
|
259
|
-
backgroundColor: colors.background
|
|
260
|
-
}],
|
|
265
|
+
className: "flex-1 bg-bg",
|
|
261
266
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
262
|
-
|
|
267
|
+
className: "flex-1",
|
|
268
|
+
contentContainerClassName: "p-space-16",
|
|
263
269
|
showsVerticalScrollIndicator: false,
|
|
264
270
|
children: renderCurrentStep()
|
|
265
271
|
})
|