@oxyhq/services 6.9.46 → 6.10.1
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 +36 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +0 -20
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/ActingAsBanner.js +0 -4
- package/lib/commonjs/ui/components/ActingAsBanner.js.map +1 -1
- package/lib/commonjs/ui/components/ActivityIndicator.js +1 -1
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +1 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -2
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheet.js +33 -398
- package/lib/commonjs/ui/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +8 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +3 -5
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +0 -5
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/Icon.js +6 -7
- package/lib/commonjs/ui/components/Icon.js.map +1 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js +1 -5
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +0 -2
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +100 -37
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +23 -9
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +11 -8
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/QuickActions.js +2 -2
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +139 -284
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +0 -2
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/TextField.js +0 -1
- package/lib/commonjs/ui/components/TextField.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +0 -2
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +0 -2
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +80 -76
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +6 -8
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +18 -23
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/styles.js +213 -25
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/commonjs/ui/components/logo/LogoIcon.js +63 -0
- package/lib/commonjs/ui/components/logo/LogoIcon.js.map +1 -0
- package/lib/commonjs/ui/components/logo/LogoText.js +50 -0
- package/lib/commonjs/ui/components/logo/LogoText.js.map +1 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +54 -88
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +2 -2
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +2 -10
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/components/styles/overlay.js +7 -9
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -1
- package/lib/commonjs/ui/components/theming.js +0 -1
- package/lib/commonjs/ui/components/theming.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +34 -21
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +1 -3
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/hooks/index.js +32 -12
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +10 -5
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +34 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +235 -57
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +17 -13
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/index.js +6 -0
- package/lib/commonjs/ui/hooks/queries/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +2 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +80 -3
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +36 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +168 -70
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js +7 -7
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +0 -8
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +71 -20
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +12 -41
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/commonjs/ui/hooks/useMutationStatus.js +86 -0
- package/lib/commonjs/ui/hooks/useMutationStatus.js.map +1 -0
- package/lib/commonjs/ui/hooks/useOnlineStatus.js +33 -0
- package/lib/commonjs/ui/hooks/useOnlineStatus.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSessionSocket.js +101 -130
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js +4 -4
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/index.js +1 -11
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +55 -3
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +16 -16
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +108 -123
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +20 -19
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +204 -161
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +18 -18
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +22 -23
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +939 -0
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +13 -20
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +10 -13
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +4 -4
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +17 -15
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +797 -159
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +8 -9
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +29 -21
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +3 -5
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +5 -5
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +2 -2
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +75 -73
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +32 -21
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +4 -3
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +3 -3
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +57 -56
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +2 -3
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +39 -22
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +18 -21
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -3
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +6 -10
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +6 -6
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +13 -19
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +5 -5
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +0 -5
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +0 -5
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/index.js +0 -11
- package/lib/commonjs/ui/styles/index.js.map +1 -1
- package/lib/commonjs/ui/styles/spacing.js +1 -42
- package/lib/commonjs/ui/styles/spacing.js.map +1 -1
- package/lib/commonjs/ui/styles/theme.js +0 -4
- package/lib/commonjs/ui/styles/theme.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +58 -39
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js +3 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/userUtils.js +33 -16
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
- package/lib/module/index.js +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +0 -6
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/ActingAsBanner.js +0 -4
- package/lib/module/ui/components/ActingAsBanner.js.map +1 -1
- package/lib/module/ui/components/ActivityIndicator.js +1 -1
- package/lib/module/ui/components/ActivityIndicator.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +0 -2
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/BottomSheet.js +35 -400
- package/lib/module/ui/components/BottomSheet.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +9 -1
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +2 -4
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/Header.js +0 -5
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/Icon.js +6 -7
- package/lib/module/ui/components/Icon.js.map +1 -1
- package/lib/module/ui/components/IconButton/IconButton.js +1 -5
- package/lib/module/ui/components/IconButton/IconButton.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +0 -2
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +103 -40
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +23 -9
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +11 -8
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js +2 -2
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +137 -284
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +0 -2
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/TextField.js +0 -1
- package/lib/module/ui/components/TextField.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +0 -2
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +0 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +80 -75
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +6 -7
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +18 -22
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/fileManagement/styles.js +212 -24
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/components/logo/LogoIcon.js +56 -0
- package/lib/module/ui/components/logo/LogoIcon.js.map +1 -0
- package/lib/module/ui/components/logo/LogoText.js +43 -0
- package/lib/module/ui/components/logo/LogoText.js.map +1 -0
- package/lib/module/ui/components/modals/DeleteAccountModal.js +55 -88
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +2 -10
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/components/styles/overlay.js +8 -8
- package/lib/module/ui/components/styles/overlay.js.map +1 -1
- package/lib/module/ui/components/theming.js +0 -1
- package/lib/module/ui/components/theming.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +32 -19
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +1 -3
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/index.js +5 -3
- package/lib/module/ui/hooks/index.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +6 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationKeys.js +30 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +231 -52
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +9 -5
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/index.js +1 -1
- package/lib/module/ui/hooks/queries/index.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +2 -1
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +80 -3
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +35 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js +166 -68
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +3 -3
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +0 -3
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +73 -22
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +11 -39
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/module/ui/hooks/useMutationStatus.js +82 -0
- package/lib/module/ui/hooks/useMutationStatus.js.map +1 -0
- package/lib/module/ui/hooks/useOnlineStatus.js +29 -0
- package/lib/module/ui/hooks/useOnlineStatus.js.map +1 -0
- package/lib/module/ui/hooks/useSessionSocket.js +101 -130
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/index.js +1 -10
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +54 -2
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +15 -14
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +96 -111
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +19 -18
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +189 -145
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +15 -15
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +14 -15
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +936 -0
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -0
- package/lib/module/ui/screens/CreateManagedAccountScreen.js +11 -18
- package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +8 -11
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +3 -3
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +14 -12
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +764 -125
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +2 -3
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +26 -17
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +1 -3
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +3 -3
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +2 -2
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +60 -57
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +27 -16
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +4 -3
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +2 -2
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +48 -47
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +2 -3
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +40 -23
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +16 -19
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -3
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +6 -10
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +6 -6
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +13 -19
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +5 -5
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js +0 -4
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +0 -5
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/index.js +0 -1
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/styles/spacing.js +0 -42
- package/lib/module/ui/styles/spacing.js.map +1 -1
- package/lib/module/ui/styles/theme.js +0 -4
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +54 -36
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js +3 -1
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/ui/utils/userUtils.js +34 -16
- package/lib/module/ui/utils/userUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +7 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +0 -2
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ActingAsBanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts +27 -27
- package/lib/typescript/commonjs/ui/components/BottomSheet.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/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Icon.d.ts +3 -2
- package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts +4 -1
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +0 -2
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +3 -2
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/styles.d.ts +200 -17
- package/lib/typescript/commonjs/ui/components/fileManagement/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/logo/LogoIcon.d.ts +22 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts +22 -0
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts +0 -7
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts +3 -1
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/theming.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/types.d.ts.map +1 -1
- 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/index.d.ts +5 -3
- package/lib/typescript/commonjs/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +11 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +25 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +161 -9
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/index.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +1 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +22 -8
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +13 -3
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +7 -5
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +57 -9
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +0 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +10 -2
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts +2 -6
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts +23 -0
- package/lib/typescript/commonjs/ui/hooks/useMutationStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts +13 -0
- package/lib/typescript/commonjs/ui/hooks/useOnlineStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSessionSocket.d.ts +1 -2
- package/lib/typescript/commonjs/ui/hooks/useSessionSocket.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +1 -4
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +48 -2
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.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 +49 -0
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -0
- 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/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.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/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/SessionManagementScreen.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/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +0 -2
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts +0 -4
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/index.d.ts +0 -1
- package/lib/typescript/commonjs/ui/styles/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/spacing.d.ts +0 -36
- package/lib/typescript/commonjs/ui/styles/spacing.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/theme.d.ts +0 -1
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +39 -12
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +3 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts +19 -18
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +7 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +0 -2
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ActingAsBanner.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheet.d.ts +27 -27
- package/lib/typescript/module/ui/components/BottomSheet.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/Header.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Icon.d.ts +3 -2
- package/lib/typescript/module/ui/components/Icon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileCard.d.ts +4 -1
- package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +2 -2
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts +2 -2
- package/lib/typescript/module/ui/components/TextField/types.d.ts +0 -1
- package/lib/typescript/module/ui/components/TextField/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts +0 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +0 -2
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +3 -2
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/styles.d.ts +200 -17
- package/lib/typescript/module/ui/components/fileManagement/styles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/logo/LogoIcon.d.ts +22 -0
- package/lib/typescript/module/ui/components/logo/LogoIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts +22 -0
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +2 -2
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts +0 -7
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/styles/overlay.d.ts +3 -1
- package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/theming.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/types.d.ts.map +1 -1
- 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/index.d.ts +5 -3
- package/lib/typescript/module/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +11 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +25 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +161 -9
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useServicesMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/index.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +1 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +22 -8
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +13 -3
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +7 -5
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +57 -9
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +0 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +10 -2
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts +2 -6
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts +23 -0
- package/lib/typescript/module/ui/hooks/useMutationStatus.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts +13 -0
- package/lib/typescript/module/ui/hooks/useOnlineStatus.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSessionSocket.d.ts +1 -2
- package/lib/typescript/module/ui/hooks/useSessionSocket.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +1 -4
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +48 -2
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.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 +49 -0
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -0
- 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/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.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/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/SessionManagementScreen.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/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +0 -2
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/authStyles.d.ts +0 -4
- package/lib/typescript/module/ui/styles/authStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/index.d.ts +0 -1
- package/lib/typescript/module/ui/styles/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/spacing.d.ts +0 -36
- package/lib/typescript/module/ui/styles/spacing.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/theme.d.ts +0 -1
- package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +39 -12
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +3 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/userUtils.d.ts +19 -18
- package/lib/typescript/module/ui/utils/userUtils.d.ts.map +1 -1
- package/lib/typescript/types/expo-vector-icons.d.ts +7 -4
- package/package.json +64 -31
- package/src/index.ts +11 -4
- package/src/types/expo-vector-icons.d.ts +7 -4
- package/src/ui/client.ts +0 -6
- package/src/ui/components/ActingAsBanner.tsx +0 -4
- package/src/ui/components/ActivityIndicator.tsx +1 -1
- package/src/ui/components/Avatar.tsx +0 -2
- package/src/ui/components/BottomSheet.tsx +41 -440
- package/src/ui/components/BottomSheetRouter.tsx +12 -1
- package/src/ui/components/FollowButton.tsx +2 -4
- package/src/ui/components/Header.tsx +0 -5
- package/src/ui/components/Icon.tsx +12 -6
- package/src/ui/components/IconButton/IconButton.tsx +0 -3
- package/src/ui/components/OxyPayButton.tsx +0 -2
- package/src/ui/components/OxyProvider.tsx +127 -48
- package/src/ui/components/OxySignInButton.tsx +21 -9
- package/src/ui/components/ProfileCard.tsx +13 -10
- package/src/ui/components/QuickActions.tsx +2 -2
- package/src/ui/components/SignInModal.tsx +80 -199
- package/src/ui/components/StepBasedScreen.tsx +0 -2
- package/src/ui/components/TextField/Addons/Outline.tsx +2 -2
- package/src/ui/components/TextField/helpers.tsx +2 -2
- package/src/ui/components/TextField/types.tsx +0 -1
- package/src/ui/components/TextField.tsx +1 -2
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +1 -1
- package/src/ui/components/feedback/feedbackStyles.ts +0 -2
- package/src/ui/components/fileManagement/AnimatedButton.tsx +0 -1
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +71 -65
- package/src/ui/components/fileManagement/FileViewer.tsx +6 -9
- package/src/ui/components/fileManagement/UploadPreview.tsx +21 -25
- package/src/ui/components/fileManagement/styles.ts +206 -18
- package/src/ui/components/logo/LogoIcon.tsx +70 -0
- package/src/ui/components/logo/LogoText.tsx +70 -0
- package/src/ui/components/modals/DeleteAccountModal.tsx +56 -91
- package/src/ui/components/payment/PaymentDetailsStep.tsx +1 -1
- package/src/ui/components/payment/PaymentReviewStep.tsx +1 -1
- package/src/ui/components/payment/PaymentSuccessStep.tsx +1 -1
- package/src/ui/components/payment/paymentStyles.ts +0 -8
- package/src/ui/components/styles/overlay.tsx +17 -8
- package/src/ui/components/theming.tsx +0 -1
- package/src/ui/components/types.tsx +3 -2
- package/src/ui/context/OxyContext.tsx +34 -19
- package/src/ui/context/hooks/useAuthOperations.ts +1 -3
- package/src/ui/hooks/index.ts +11 -4
- package/src/ui/hooks/mutations/mutationFactory.ts +16 -1
- package/src/ui/hooks/mutations/mutationKeys.ts +28 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +251 -59
- package/src/ui/hooks/mutations/useServicesMutations.ts +10 -4
- package/src/ui/hooks/queries/index.ts +1 -0
- package/src/ui/hooks/queries/queryKeys.ts +2 -0
- package/src/ui/hooks/queries/useAccountQueries.ts +83 -3
- package/src/ui/hooks/queries/useSecurityQueries.ts +42 -2
- package/src/ui/hooks/queryClient.ts +194 -69
- package/src/ui/hooks/useAsyncAction.ts +3 -3
- package/src/ui/hooks/useAuth.ts +0 -2
- package/src/ui/hooks/useAvatarPicker.ts +108 -27
- package/src/ui/hooks/useFileDownloadUrl.ts +15 -39
- package/src/ui/hooks/useMutationStatus.ts +111 -0
- package/src/ui/hooks/useOnlineStatus.ts +29 -0
- package/src/ui/hooks/useSessionSocket.ts +136 -126
- package/src/ui/hooks/useSettingToggle.ts +1 -1
- package/src/ui/index.ts +0 -12
- package/src/ui/navigation/routes.ts +93 -2
- package/src/ui/screens/AccountCenterScreen.tsx +15 -13
- package/src/ui/screens/AccountOverviewScreen.tsx +94 -104
- package/src/ui/screens/AccountSettingsScreen.tsx +18 -17
- package/src/ui/screens/AccountSwitcherScreen.tsx +331 -298
- package/src/ui/screens/AccountVerificationScreen.tsx +15 -15
- package/src/ui/screens/AppInfoScreen.tsx +8 -13
- package/src/ui/screens/AvatarCropScreen.tsx +1073 -0
- package/src/ui/screens/CreateManagedAccountScreen.tsx +5 -16
- package/src/ui/screens/EditProfileFieldScreen.tsx +5 -10
- package/src/ui/screens/FAQScreen.tsx +3 -3
- package/src/ui/screens/FeedbackScreen.tsx +14 -12
- package/src/ui/screens/FileManagementScreen.tsx +885 -124
- package/src/ui/screens/HelpSupportScreen.tsx +2 -3
- package/src/ui/screens/HistoryViewScreen.tsx +24 -9
- package/src/ui/screens/LanguageSelectorScreen.tsx +1 -3
- package/src/ui/screens/LegalDocumentsScreen.tsx +3 -3
- package/src/ui/screens/PaymentGatewayScreen.tsx +2 -2
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +51 -56
- package/src/ui/screens/PrivacySettingsScreen.tsx +22 -20
- package/src/ui/screens/ProfileScreen.tsx +1 -2
- package/src/ui/screens/SavesCollectionsScreen.tsx +2 -2
- package/src/ui/screens/SessionManagementScreen.tsx +35 -47
- package/src/ui/screens/UserLinksScreen.tsx +1 -2
- package/src/ui/screens/UserListScreen.tsx +30 -19
- package/src/ui/screens/WelcomeNewUserScreen.tsx +14 -18
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +0 -3
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +4 -8
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +1 -1
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +3 -4
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +13 -18
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +3 -4
- package/src/ui/server.ts +0 -4
- package/src/ui/styles/authStyles.ts +0 -5
- package/src/ui/styles/index.ts +0 -1
- package/src/ui/styles/spacing.ts +0 -43
- package/src/ui/styles/theme.ts +0 -4
- package/src/ui/utils/fileManagement.ts +66 -38
- package/src/ui/utils/sessionHelpers.ts +3 -1
- package/src/ui/utils/userUtils.ts +45 -29
- package/lib/commonjs/lib/sonner-safe.js +0 -32
- package/lib/commonjs/lib/sonner-safe.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +0 -19
- package/lib/commonjs/lib/sonner.js.map +0 -1
- package/lib/commonjs/lib/sonner.native.js +0 -24
- package/lib/commonjs/lib/sonner.native.js.map +0 -1
- package/lib/commonjs/lib/sonner.web.js +0 -24
- package/lib/commonjs/lib/sonner.web.js.map +0 -1
- package/lib/commonjs/ui/hooks/useThemeColors.js +0 -33
- package/lib/commonjs/ui/hooks/useThemeColors.js.map +0 -1
- package/lib/commonjs/ui/hooks/useThemeStyles.js +0 -38
- package/lib/commonjs/ui/hooks/useThemeStyles.js.map +0 -1
- package/lib/commonjs/ui/styles/fonts.js +0 -84
- package/lib/commonjs/ui/styles/fonts.js.map +0 -1
- package/lib/module/lib/sonner-safe.js +0 -29
- package/lib/module/lib/sonner-safe.js.map +0 -1
- package/lib/module/lib/sonner.js +0 -14
- package/lib/module/lib/sonner.js.map +0 -1
- package/lib/module/lib/sonner.native.js +0 -19
- package/lib/module/lib/sonner.native.js.map +0 -1
- package/lib/module/lib/sonner.web.js +0 -19
- package/lib/module/lib/sonner.web.js.map +0 -1
- package/lib/module/ui/hooks/useThemeColors.js +0 -29
- package/lib/module/ui/hooks/useThemeColors.js.map +0 -1
- package/lib/module/ui/hooks/useThemeStyles.js +0 -33
- package/lib/module/ui/hooks/useThemeStyles.js.map +0 -1
- package/lib/module/ui/styles/fonts.js +0 -81
- package/lib/module/ui/styles/fonts.js.map +0 -1
- package/lib/typescript/commonjs/lib/sonner-safe.d.ts +0 -9
- package/lib/typescript/commonjs/lib/sonner-safe.d.ts.map +0 -1
- package/lib/typescript/commonjs/lib/sonner.d.ts +0 -12
- package/lib/typescript/commonjs/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/commonjs/lib/sonner.native.d.ts +0 -15
- package/lib/typescript/commonjs/lib/sonner.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/lib/sonner.web.d.ts +0 -15
- package/lib/typescript/commonjs/lib/sonner.web.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useThemeColors.d.ts +0 -87
- package/lib/typescript/commonjs/ui/hooks/useThemeColors.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useThemeStyles.d.ts +0 -22
- package/lib/typescript/commonjs/ui/hooks/useThemeStyles.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/fonts.d.ts +0 -21
- package/lib/typescript/commonjs/ui/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/module/lib/sonner-safe.d.ts +0 -9
- package/lib/typescript/module/lib/sonner-safe.d.ts.map +0 -1
- package/lib/typescript/module/lib/sonner.d.ts +0 -12
- package/lib/typescript/module/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/module/lib/sonner.native.d.ts +0 -15
- package/lib/typescript/module/lib/sonner.native.d.ts.map +0 -1
- package/lib/typescript/module/lib/sonner.web.d.ts +0 -15
- package/lib/typescript/module/lib/sonner.web.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useThemeColors.d.ts +0 -87
- package/lib/typescript/module/ui/hooks/useThemeColors.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useThemeStyles.d.ts +0 -22
- package/lib/typescript/module/ui/hooks/useThemeStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/fonts.d.ts +0 -21
- package/lib/typescript/module/ui/styles/fonts.d.ts.map +0 -1
- package/src/lib/sonner-safe.ts +0 -31
- package/src/lib/sonner.native.ts +0 -28
- package/src/lib/sonner.ts +0 -11
- package/src/lib/sonner.web.ts +0 -28
- package/src/ui/hooks/useThemeColors.ts +0 -27
- package/src/ui/hooks/useThemeStyles.ts +0 -50
- package/src/ui/styles/fonts.ts +0 -77
|
@@ -12,10 +12,8 @@ import {
|
|
|
12
12
|
} from 'react-native';
|
|
13
13
|
import type { BaseScreenProps } from '../types/navigation';
|
|
14
14
|
import { screenContentStyle } from '../constants/spacing';
|
|
15
|
-
import { toast } from '
|
|
15
|
+
import { Dialog, toast, useDialogControl } from '@oxyhq/bloom';
|
|
16
16
|
import type { ClientSession } from '@oxyhq/core';
|
|
17
|
-
import * as Prompt from '@oxyhq/bloom/prompt';
|
|
18
|
-
import { usePromptControl } from '@oxyhq/bloom/prompt';
|
|
19
17
|
import { Header } from '../components';
|
|
20
18
|
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
21
19
|
import { SettingsIcon } from '../components/SettingsIcon';
|
|
@@ -23,16 +21,6 @@ import { useTheme } from '@oxyhq/bloom/theme';
|
|
|
23
21
|
import { useOxy } from '../context/OxyContext';
|
|
24
22
|
import { useI18n } from '../hooks/useI18n';
|
|
25
23
|
|
|
26
|
-
// Button background colors for session actions
|
|
27
|
-
const SWITCH_BUTTON_BG = {
|
|
28
|
-
dark: '#1E2A38',
|
|
29
|
-
light: '#E6F2FF',
|
|
30
|
-
} as const;
|
|
31
|
-
|
|
32
|
-
const LOGOUT_BUTTON_BG = {
|
|
33
|
-
dark: '#3A1E1E',
|
|
34
|
-
light: '#FFEBEE',
|
|
35
|
-
} as const;
|
|
36
24
|
|
|
37
25
|
const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
38
26
|
onClose,
|
|
@@ -57,16 +45,15 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
57
45
|
const [pendingLogoutSessionId, setPendingLogoutSessionId] = useState<string | null>(null);
|
|
58
46
|
|
|
59
47
|
// Prompt controls
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
48
|
+
const logoutSessionDialog = useDialogControl();
|
|
49
|
+
const logoutOtherSessionsDialog = useDialogControl();
|
|
50
|
+
const logoutAllSessionsDialog = useDialogControl();
|
|
63
51
|
|
|
64
52
|
// Use bloom theme for non-style color props (ActivityIndicator, icon colors, etc.)
|
|
65
53
|
const bloomTheme = useTheme();
|
|
66
|
-
const isDarkTheme = bloomTheme.isDark;
|
|
67
54
|
const primaryColor = bloomTheme.colors.primary;
|
|
68
55
|
const dangerColor = bloomTheme.colors.error;
|
|
69
|
-
const successColor = bloomTheme.colors.success
|
|
56
|
+
const successColor = bloomTheme.colors.success;
|
|
70
57
|
|
|
71
58
|
// Memoized load sessions function - prevents unnecessary re-renders
|
|
72
59
|
const loadSessions = useCallback(async (isRefresh = false) => {
|
|
@@ -93,8 +80,8 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
93
80
|
// Confirm logout session - opens prompt
|
|
94
81
|
const confirmLogoutSession = useCallback((sessionId: string) => {
|
|
95
82
|
setPendingLogoutSessionId(sessionId);
|
|
96
|
-
|
|
97
|
-
}, [
|
|
83
|
+
logoutSessionDialog.open();
|
|
84
|
+
}, [logoutSessionDialog]);
|
|
98
85
|
|
|
99
86
|
// Handle logout session - executes after prompt confirmation
|
|
100
87
|
const handleLogoutSession = useCallback(async () => {
|
|
@@ -127,8 +114,8 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
127
114
|
toast.info(t('sessionManagement.toasts.noOtherSessions'));
|
|
128
115
|
return;
|
|
129
116
|
}
|
|
130
|
-
|
|
131
|
-
}, [otherSessionsCount,
|
|
117
|
+
logoutOtherSessionsDialog.open();
|
|
118
|
+
}, [otherSessionsCount, logoutOtherSessionsDialog, t]);
|
|
132
119
|
|
|
133
120
|
// Handle logout other sessions - executes after prompt confirmation
|
|
134
121
|
const handleLogoutOtherSessions = useCallback(async () => {
|
|
@@ -153,8 +140,8 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
153
140
|
|
|
154
141
|
// Confirm logout all sessions - opens prompt
|
|
155
142
|
const confirmLogoutAllSessions = useCallback(() => {
|
|
156
|
-
|
|
157
|
-
}, [
|
|
143
|
+
logoutAllSessionsDialog.open();
|
|
144
|
+
}, [logoutAllSessionsDialog]);
|
|
158
145
|
|
|
159
146
|
// Handle logout all sessions - executes after prompt confirmation
|
|
160
147
|
const handleLogoutAllSessions = useCallback(async () => {
|
|
@@ -236,7 +223,7 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
236
223
|
<View style={styles.sessionActionsRow}>
|
|
237
224
|
<TouchableOpacity
|
|
238
225
|
onPress={() => handleSwitchSession(session.sessionId)}
|
|
239
|
-
style={[styles.sessionPillButton, { backgroundColor:
|
|
226
|
+
style={[styles.sessionPillButton, { backgroundColor: bloomTheme.colors.primarySubtle, borderColor: primaryColor }]}
|
|
240
227
|
disabled={switchLoading === session.sessionId || actionLoading === session.sessionId}
|
|
241
228
|
>
|
|
242
229
|
{switchLoading === session.sessionId ? (
|
|
@@ -247,7 +234,7 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
247
234
|
</TouchableOpacity>
|
|
248
235
|
<TouchableOpacity
|
|
249
236
|
onPress={() => confirmLogoutSession(session.sessionId)}
|
|
250
|
-
style={[styles.sessionPillButton, { backgroundColor:
|
|
237
|
+
style={[styles.sessionPillButton, { backgroundColor: bloomTheme.colors.negativeSubtle, borderColor: dangerColor }]}
|
|
251
238
|
disabled={actionLoading === session.sessionId || switchLoading === session.sessionId}
|
|
252
239
|
>
|
|
253
240
|
{actionLoading === session.sessionId ? (
|
|
@@ -259,14 +246,14 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
259
246
|
</View>
|
|
260
247
|
) : (
|
|
261
248
|
<View style={styles.sessionActionsRow}>
|
|
262
|
-
<Text style={[styles.currentBadgeText, { color: successColor }]}>{t('sessionManagement.active')}</Text>
|
|
249
|
+
<Text style={[styles.currentBadgeText, { color: successColor, backgroundColor: `${successColor}20` }]}>{t('sessionManagement.active')}</Text>
|
|
263
250
|
</View>
|
|
264
251
|
),
|
|
265
252
|
selected: isCurrent,
|
|
266
253
|
dense: true,
|
|
267
254
|
};
|
|
268
255
|
});
|
|
269
|
-
}, [userSessions, activeSessionId, formatRelative, successColor, primaryColor,
|
|
256
|
+
}, [userSessions, activeSessionId, formatRelative, successColor, primaryColor, bloomTheme.colors.primarySubtle, bloomTheme.colors.negativeSubtle, switchLoading, actionLoading, handleSwitchSession, confirmLogoutSession, dangerColor, t]);
|
|
270
257
|
|
|
271
258
|
const bulkItems = useMemo(() => [
|
|
272
259
|
{
|
|
@@ -327,7 +314,7 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
327
314
|
{userSessions.length > 0 ? (
|
|
328
315
|
<>
|
|
329
316
|
{lastRefreshed && (
|
|
330
|
-
<Text style={[styles.metaText, { color:
|
|
317
|
+
<Text style={[styles.metaText, { color: bloomTheme.colors.textTertiary, marginBottom: 6 }]}>{t('sessionManagement.lastRefreshed', { time: formatRelative(lastRefreshed.toISOString()) })}</Text>
|
|
331
318
|
)}
|
|
332
319
|
<View style={styles.fullBleed}>
|
|
333
320
|
<SettingsListGroup>
|
|
@@ -363,7 +350,7 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
363
350
|
</>
|
|
364
351
|
) : (
|
|
365
352
|
<View style={styles.emptyState}>
|
|
366
|
-
<Text style={[styles.emptyStateText, { color:
|
|
353
|
+
<Text style={[styles.emptyStateText, { color: bloomTheme.colors.textSecondary }]}>{t('sessionManagement.empty')}</Text>
|
|
367
354
|
</View>
|
|
368
355
|
)}
|
|
369
356
|
</ScrollView>
|
|
@@ -372,29 +359,32 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
372
359
|
<Text style={styles.closeButtonText} className="text-primary">{t('sessionManagement.close')}</Text>
|
|
373
360
|
</TouchableOpacity>
|
|
374
361
|
</View>
|
|
375
|
-
<
|
|
376
|
-
control={
|
|
362
|
+
<Dialog
|
|
363
|
+
control={logoutSessionDialog}
|
|
377
364
|
title={t('sessionManagement.confirms.logoutSessionTitle') || 'Log Out Session'}
|
|
378
365
|
description={t('sessionManagement.confirms.logoutSession')}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
366
|
+
actions={[
|
|
367
|
+
{ label: t('sessionManagement.logout') || 'Log Out', color: 'destructive', onPress: handleLogoutSession },
|
|
368
|
+
{ label: t('common.cancel') || 'Cancel', color: 'cancel' },
|
|
369
|
+
]}
|
|
382
370
|
/>
|
|
383
|
-
<
|
|
384
|
-
control={
|
|
371
|
+
<Dialog
|
|
372
|
+
control={logoutOtherSessionsDialog}
|
|
385
373
|
title={t('sessionManagement.confirms.logoutOthersTitle') || 'Log Out Other Sessions'}
|
|
386
374
|
description={t('sessionManagement.confirms.logoutOthers', { count: otherSessionsCount })}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
375
|
+
actions={[
|
|
376
|
+
{ label: t('sessionManagement.logoutOthers.title') || 'Log Out Others', color: 'destructive', onPress: handleLogoutOtherSessions },
|
|
377
|
+
{ label: t('common.cancel') || 'Cancel', color: 'cancel' },
|
|
378
|
+
]}
|
|
390
379
|
/>
|
|
391
|
-
<
|
|
392
|
-
control={
|
|
380
|
+
<Dialog
|
|
381
|
+
control={logoutAllSessionsDialog}
|
|
393
382
|
title={t('sessionManagement.confirms.logoutAllTitle') || 'Log Out All Sessions'}
|
|
394
383
|
description={t('sessionManagement.confirms.logoutAll')}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
384
|
+
actions={[
|
|
385
|
+
{ label: t('sessionManagement.logoutAll.title') || 'Log Out All', color: 'destructive', onPress: handleLogoutAllSessions },
|
|
386
|
+
{ label: t('common.cancel') || 'Cancel', color: 'cancel' },
|
|
387
|
+
]}
|
|
398
388
|
/>
|
|
399
389
|
</View>
|
|
400
390
|
);
|
|
@@ -415,7 +405,6 @@ const styles = StyleSheet.create({
|
|
|
415
405
|
...screenContentStyle,
|
|
416
406
|
paddingTop: 0, // Header handles top spacing
|
|
417
407
|
},
|
|
418
|
-
// Removed legacy session card & bulk action styles (now using GroupedSection)
|
|
419
408
|
sessionActionsRow: {
|
|
420
409
|
flexDirection: 'row',
|
|
421
410
|
gap: 8,
|
|
@@ -440,7 +429,6 @@ const styles = StyleSheet.create({
|
|
|
440
429
|
fontWeight: '600',
|
|
441
430
|
paddingHorizontal: 10,
|
|
442
431
|
paddingVertical: 4,
|
|
443
|
-
backgroundColor: '#2E7D3215',
|
|
444
432
|
borderRadius: 16,
|
|
445
433
|
overflow: 'hidden',
|
|
446
434
|
textTransform: 'uppercase',
|
|
@@ -52,7 +52,7 @@ const UserLinksScreen: React.FC<UserLinksScreenProps> = ({
|
|
|
52
52
|
{links.map((link) => (
|
|
53
53
|
<SettingsListItem
|
|
54
54
|
key={link.id}
|
|
55
|
-
icon={<SettingsIcon name="link" color=
|
|
55
|
+
icon={<SettingsIcon name="link" color={bloomTheme.colors.success} />}
|
|
56
56
|
title={link.title || link.url}
|
|
57
57
|
description={link.description || link.url}
|
|
58
58
|
onPress={() => handleLinkPress(link.url)}
|
|
@@ -67,7 +67,6 @@ const UserLinksScreen: React.FC<UserLinksScreenProps> = ({
|
|
|
67
67
|
const styles = StyleSheet.create({
|
|
68
68
|
container: {
|
|
69
69
|
flex: 1,
|
|
70
|
-
backgroundColor: '#f2f2f2',
|
|
71
70
|
},
|
|
72
71
|
content: {
|
|
73
72
|
flex: 1,
|
|
@@ -16,7 +16,7 @@ import { FollowButton } from '../components';
|
|
|
16
16
|
import { Ionicons } from '@expo/vector-icons';
|
|
17
17
|
import { useI18n } from '../hooks/useI18n';
|
|
18
18
|
import { useOxy } from '../context/OxyContext';
|
|
19
|
-
import { logger } from '@oxyhq/core';
|
|
19
|
+
import { logger, getAccountDisplayName, getAccountFallbackHandle } from '@oxyhq/core';
|
|
20
20
|
import type { User } from '@oxyhq/core';
|
|
21
21
|
|
|
22
22
|
type ListMode = 'followers' | 'following';
|
|
@@ -48,7 +48,7 @@ const UserListScreen: React.FC<UserListScreenProps> = ({
|
|
|
48
48
|
|
|
49
49
|
const bloomTheme = useTheme();
|
|
50
50
|
const styles = createStyles();
|
|
51
|
-
const { t } = useI18n();
|
|
51
|
+
const { t, locale } = useI18n();
|
|
52
52
|
|
|
53
53
|
const currentUserId = currentUser?.id || (currentUser?._id as string | undefined);
|
|
54
54
|
|
|
@@ -70,12 +70,21 @@ const UserListScreen: React.FC<UserListScreenProps> = ({
|
|
|
70
70
|
}
|
|
71
71
|
setError(null);
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
: await oxyServices.getUserFollowing(userId, { limit: PAGE_SIZE, offset });
|
|
73
|
+
let newUsers: User[];
|
|
74
|
+
let total: number;
|
|
75
|
+
let hasMore: boolean;
|
|
77
76
|
|
|
78
|
-
|
|
77
|
+
if (mode === 'followers') {
|
|
78
|
+
const result = await oxyServices.getUserFollowers(userId, { limit: PAGE_SIZE, offset });
|
|
79
|
+
newUsers = result.followers;
|
|
80
|
+
total = result.total;
|
|
81
|
+
hasMore = result.hasMore;
|
|
82
|
+
} else {
|
|
83
|
+
const result = await oxyServices.getUserFollowing(userId, { limit: PAGE_SIZE, offset });
|
|
84
|
+
newUsers = result.following;
|
|
85
|
+
total = result.total;
|
|
86
|
+
hasMore = result.hasMore;
|
|
87
|
+
}
|
|
79
88
|
|
|
80
89
|
if (offset === 0 || isRefresh) {
|
|
81
90
|
setUsers(newUsers);
|
|
@@ -83,8 +92,8 @@ const UserListScreen: React.FC<UserListScreenProps> = ({
|
|
|
83
92
|
setUsers((prev) => [...prev, ...newUsers]);
|
|
84
93
|
}
|
|
85
94
|
|
|
86
|
-
setTotal(
|
|
87
|
-
setHasMore(
|
|
95
|
+
setTotal(total);
|
|
96
|
+
setHasMore(hasMore);
|
|
88
97
|
} catch (err) {
|
|
89
98
|
logger.error(`Failed to fetch ${mode}`, err instanceof Error ? err : new Error(String(err)), {
|
|
90
99
|
component: 'UserListScreen',
|
|
@@ -141,18 +150,21 @@ const UserListScreen: React.FC<UserListScreenProps> = ({
|
|
|
141
150
|
? oxyServices.getFileDownloadUrl(item.avatar, 'thumb')
|
|
142
151
|
: undefined
|
|
143
152
|
}
|
|
144
|
-
name={item
|
|
153
|
+
name={getAccountDisplayName(item, locale)}
|
|
145
154
|
size={48}
|
|
146
155
|
/>
|
|
147
156
|
<View style={styles.userInfo}>
|
|
148
157
|
<Text style={styles.userName} className="text-foreground" numberOfLines={1}>
|
|
149
|
-
{item
|
|
158
|
+
{getAccountDisplayName(item, locale)}
|
|
150
159
|
</Text>
|
|
151
|
-
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
{(() => {
|
|
161
|
+
const handle = getAccountFallbackHandle(item);
|
|
162
|
+
return handle ? (
|
|
163
|
+
<Text style={styles.userHandle} className="text-muted-foreground" numberOfLines={1}>
|
|
164
|
+
{item.username ? `@${handle}` : handle}
|
|
165
|
+
</Text>
|
|
166
|
+
) : null;
|
|
167
|
+
})()}
|
|
156
168
|
{description ? (
|
|
157
169
|
<Text style={styles.userBio} className="text-foreground" numberOfLines={2}>
|
|
158
170
|
{description}
|
|
@@ -167,7 +179,7 @@ const UserListScreen: React.FC<UserListScreenProps> = ({
|
|
|
167
179
|
</TouchableOpacity>
|
|
168
180
|
);
|
|
169
181
|
},
|
|
170
|
-
[bloomTheme, styles, handleUserPress, currentUserId, oxyServices]
|
|
182
|
+
[bloomTheme, styles, handleUserPress, currentUserId, oxyServices, locale]
|
|
171
183
|
);
|
|
172
184
|
|
|
173
185
|
const renderEmpty = useCallback(() => {
|
|
@@ -241,7 +253,7 @@ const UserListScreen: React.FC<UserListScreenProps> = ({
|
|
|
241
253
|
<Ionicons name="alert-circle" size={48} color={bloomTheme.colors.error} />
|
|
242
254
|
<Text style={styles.errorText} className="text-destructive">{error}</Text>
|
|
243
255
|
<TouchableOpacity style={styles.retryButton} className="bg-primary" onPress={() => fetchUsers(0)}>
|
|
244
|
-
<Text style={styles.retryButtonText}>{t('common.retry') || 'Retry'}</Text>
|
|
256
|
+
<Text style={[styles.retryButtonText, { color: bloomTheme.colors.negativeForeground }]}>{t('common.retry') || 'Retry'}</Text>
|
|
245
257
|
</TouchableOpacity>
|
|
246
258
|
</View>
|
|
247
259
|
</View>
|
|
@@ -340,7 +352,6 @@ const createStyles = () =>
|
|
|
340
352
|
borderRadius: 8,
|
|
341
353
|
},
|
|
342
354
|
retryButtonText: {
|
|
343
|
-
color: '#fff',
|
|
344
355
|
fontSize: 16,
|
|
345
356
|
fontWeight: '600',
|
|
346
357
|
},
|
|
@@ -5,16 +5,14 @@ import AnimatedReanimated, { useSharedValue, useAnimatedStyle, withTiming } from
|
|
|
5
5
|
import type { BaseScreenProps } from '../types/navigation';
|
|
6
6
|
import Avatar from '../components/Avatar';
|
|
7
7
|
import { Ionicons } from '@expo/vector-icons';
|
|
8
|
-
import { toast } from '
|
|
8
|
+
import { toast } from '@oxyhq/bloom';
|
|
9
9
|
import { useAuthStore } from '../stores/authStore';
|
|
10
10
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
11
|
-
import { fontFamilies } from '../styles/fonts';
|
|
12
|
-
import { normalizeTheme } from '../utils/themeUtils';
|
|
13
11
|
import { Button } from '@oxyhq/bloom/button';
|
|
14
12
|
import { useI18n } from '../hooks/useI18n';
|
|
15
13
|
import { useOxy } from '../context/OxyContext';
|
|
16
14
|
import { useUpdateProfile } from '../hooks/mutations/useAccountMutations';
|
|
17
|
-
import { updateAvatarVisibility } from '@oxyhq/core';
|
|
15
|
+
import { updateAvatarVisibility, getAccountDisplayName } from '@oxyhq/core';
|
|
18
16
|
|
|
19
17
|
const GAP = 12;
|
|
20
18
|
const INNER_GAP = 8;
|
|
@@ -65,7 +63,7 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
|
|
|
65
63
|
}) => {
|
|
66
64
|
// Use useOxy() hook for OxyContext values
|
|
67
65
|
const { user, oxyServices } = useOxy();
|
|
68
|
-
const { t } = useI18n();
|
|
66
|
+
const { t, locale } = useI18n();
|
|
69
67
|
const updateProfileMutation = useUpdateProfile();
|
|
70
68
|
const currentUser = user || newUser; // fallback
|
|
71
69
|
const bloomTheme = useTheme();
|
|
@@ -74,8 +72,7 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
|
|
|
74
72
|
border: bloomTheme.colors.border,
|
|
75
73
|
text: bloomTheme.colors.text,
|
|
76
74
|
};
|
|
77
|
-
const
|
|
78
|
-
const styles = useMemo(() => createStyles(normalizedTheme), [normalizedTheme]);
|
|
75
|
+
const styles = useMemo(() => createStyles(bloomTheme.colors), [bloomTheme.colors]);
|
|
79
76
|
|
|
80
77
|
// Animation state
|
|
81
78
|
const fadeAnim = useRef(new Animated.Value(1)).current;
|
|
@@ -95,9 +92,11 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
|
|
|
95
92
|
|
|
96
93
|
const avatarUri = selectedAvatarId ? oxyServices.getFileDownloadUrl(selectedAvatarId, 'thumb') : undefined;
|
|
97
94
|
|
|
98
|
-
// Steps content
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
// Steps content. Use the canonical helper so partially-onboarded accounts
|
|
96
|
+
// (publicKey only) still get a friendly greeting instead of a blank one.
|
|
97
|
+
const welcomeName = getAccountDisplayName(currentUser ?? null, locale);
|
|
98
|
+
const welcomeTitle = currentUser
|
|
99
|
+
? (t('welcomeNew.welcome.titleWithName', { username: welcomeName }) || `Welcome, ${welcomeName} 👋`)
|
|
101
100
|
: (t('welcomeNew.welcome.title') || 'Welcome 👋');
|
|
102
101
|
const steps: Array<{ key: string; title: string; bullets?: string[]; body?: string; showAvatar?: boolean; }> = [
|
|
103
102
|
{ key: 'welcome', title: welcomeTitle, body: t('welcomeNew.welcome.body') || "You just created an account in a calm, ethical space. A few quick things — then you're in." },
|
|
@@ -260,14 +259,14 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
|
|
|
260
259
|
<View style={[styles.avatarSection, styles.sectionSpacing]}>
|
|
261
260
|
<Avatar
|
|
262
261
|
size={120}
|
|
263
|
-
name={
|
|
262
|
+
name={welcomeName}
|
|
264
263
|
uri={avatarUri}
|
|
265
264
|
|
|
266
265
|
backgroundColor={`${colors.primary}20`}
|
|
267
266
|
style={styles.avatar}
|
|
268
267
|
/>
|
|
269
268
|
<TouchableOpacity style={styles.changeAvatarButton} className="bg-primary" onPress={openAvatarPicker}>
|
|
270
|
-
<Ionicons name="image-outline" size={18} color=
|
|
269
|
+
<Ionicons name="image-outline" size={18} color={bloomTheme.colors.negativeForeground} />
|
|
271
270
|
<Text style={styles.changeAvatarText}>{avatarUri ? (t('welcomeNew.avatar.change') || 'Change Avatar') : (t('welcomeNew.avatar.add') || 'Add Avatar')}</Text>
|
|
272
271
|
</TouchableOpacity>
|
|
273
272
|
</View>
|
|
@@ -282,9 +281,7 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
|
|
|
282
281
|
|
|
283
282
|
};
|
|
284
283
|
|
|
285
|
-
const createStyles = (
|
|
286
|
-
const isDark = theme === 'dark';
|
|
287
|
-
const border = isDark ? '#333333' : '#E0E0E0';
|
|
284
|
+
const createStyles = (colors: ReturnType<typeof useTheme>['colors']) => {
|
|
288
285
|
return StyleSheet.create({
|
|
289
286
|
container: {
|
|
290
287
|
width: '100%',
|
|
@@ -308,7 +305,6 @@ const createStyles = (theme: string) => {
|
|
|
308
305
|
},
|
|
309
306
|
title: {
|
|
310
307
|
fontSize: 42,
|
|
311
|
-
fontFamily: fontFamilies.interBold,
|
|
312
308
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
313
309
|
letterSpacing: -1,
|
|
314
310
|
textAlign: 'left',
|
|
@@ -355,7 +351,7 @@ const createStyles = (theme: string) => {
|
|
|
355
351
|
...(Platform.OS === 'web' ? { boxShadow: 'none' } : null),
|
|
356
352
|
},
|
|
357
353
|
changeAvatarText: {
|
|
358
|
-
color:
|
|
354
|
+
color: colors.negativeForeground,
|
|
359
355
|
fontSize: 15,
|
|
360
356
|
fontWeight: '600',
|
|
361
357
|
},
|
|
@@ -371,7 +367,7 @@ const createStyles = (theme: string) => {
|
|
|
371
367
|
width: 6,
|
|
372
368
|
borderRadius: 3,
|
|
373
369
|
marginHorizontal: 3,
|
|
374
|
-
backgroundColor: border,
|
|
370
|
+
backgroundColor: colors.border,
|
|
375
371
|
},
|
|
376
372
|
});
|
|
377
373
|
};
|
|
@@ -4,7 +4,6 @@ import type { BaseScreenProps } from '../../types/navigation';
|
|
|
4
4
|
import { Header } from '../../components';
|
|
5
5
|
import { useI18n } from '../../hooks/useI18n';
|
|
6
6
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
7
|
-
import { fontFamilies } from '../../styles/fonts';
|
|
8
7
|
|
|
9
8
|
const KarmaAboutScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
|
|
10
9
|
const { t } = useI18n();
|
|
@@ -49,7 +48,6 @@ const KarmaAboutScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
|
|
|
49
48
|
const styles = StyleSheet.create({
|
|
50
49
|
container: { flex: 1 },
|
|
51
50
|
title: {
|
|
52
|
-
fontFamily: fontFamilies.interBold,
|
|
53
51
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined, // Only apply fontWeight on web
|
|
54
52
|
fontSize: 54,
|
|
55
53
|
margin: 24,
|
|
@@ -59,7 +57,6 @@ const styles = StyleSheet.create({
|
|
|
59
57
|
section: {
|
|
60
58
|
fontSize: 18,
|
|
61
59
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
62
|
-
fontFamily: fontFamilies.interBold,
|
|
63
60
|
marginTop: 24,
|
|
64
61
|
marginBottom: 8
|
|
65
62
|
},
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
Platform,
|
|
12
12
|
} from 'react-native';
|
|
13
13
|
import type { BaseScreenProps } from '../../types/navigation';
|
|
14
|
-
import { fontFamilies } from '../../styles/fonts';
|
|
15
14
|
import { Ionicons } from '@expo/vector-icons';
|
|
16
15
|
import { useI18n } from '../../hooks/useI18n';
|
|
17
16
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
@@ -40,8 +39,8 @@ const KarmaCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
40
39
|
const themeColors = Colors[normalizedColorScheme];
|
|
41
40
|
// Override primaryColor for Karma screens (purple instead of blue)
|
|
42
41
|
const primaryColor = '#d169e5';
|
|
43
|
-
const dangerColor = bloomTheme.colors.error
|
|
44
|
-
const mutedTextColor = bloomTheme.
|
|
42
|
+
const dangerColor = bloomTheme.colors.error;
|
|
43
|
+
const mutedTextColor = bloomTheme.colors.textTertiary;
|
|
45
44
|
|
|
46
45
|
// Icon colors from theme
|
|
47
46
|
const iconLeaderboard = themeColors.iconPayments;
|
|
@@ -89,7 +88,7 @@ const KarmaCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
89
88
|
<ScrollView style={styles.scrollView} contentContainerStyle={styles.scrollContainer}>
|
|
90
89
|
<View style={styles.walletHeader}>
|
|
91
90
|
<Text style={[styles.karmaAmount, { color: primaryColor }]}>{karmaTotal ?? 0}</Text>
|
|
92
|
-
<Text style={[styles.karmaLabel, { color: bloomTheme.
|
|
91
|
+
<Text style={[styles.karmaLabel, { color: bloomTheme.colors.textTertiary }]}>
|
|
93
92
|
{t('karma.center.balance') || 'Karma Balance'}
|
|
94
93
|
</Text>
|
|
95
94
|
<View style={styles.actionContainer}>
|
|
@@ -149,7 +148,7 @@ const KarmaCenterScreen: React.FC<BaseScreenProps> = ({
|
|
|
149
148
|
<Text style={[styles.historyDesc, { color: bloomTheme.colors.text }]}>
|
|
150
149
|
{entry.reason || (t('karma.center.noDescription') || 'No description')}
|
|
151
150
|
</Text>
|
|
152
|
-
<Text style={[styles.historyDate, { color: bloomTheme.
|
|
151
|
+
<Text style={[styles.historyDate, { color: bloomTheme.colors.textTertiary }]}>
|
|
153
152
|
{entry.createdAt ? new Date(entry.createdAt).toLocaleString() : ''}
|
|
154
153
|
</Text>
|
|
155
154
|
</View>
|
|
@@ -183,13 +182,11 @@ const styles = StyleSheet.create({
|
|
|
183
182
|
karmaLabel: {
|
|
184
183
|
fontSize: 16,
|
|
185
184
|
marginBottom: 18,
|
|
186
|
-
fontFamily: fontFamilies.inter,
|
|
187
185
|
},
|
|
188
186
|
karmaAmount: {
|
|
189
187
|
fontSize: 48,
|
|
190
188
|
fontWeight: 'bold',
|
|
191
189
|
marginBottom: 4,
|
|
192
|
-
fontFamily: fontFamilies.inter,
|
|
193
190
|
},
|
|
194
191
|
actionContainer: {
|
|
195
192
|
marginBottom: 18,
|
|
@@ -228,7 +225,6 @@ const styles = StyleSheet.create({
|
|
|
228
225
|
sectionTitle: {
|
|
229
226
|
fontSize: 18,
|
|
230
227
|
fontWeight: Platform.OS === 'web' ? '600' : undefined,
|
|
231
|
-
fontFamily: fontFamilies.interSemiBold,
|
|
232
228
|
marginTop: 8,
|
|
233
229
|
alignSelf: 'flex-start',
|
|
234
230
|
marginLeft: 24,
|
|
@@ -73,7 +73,7 @@ const KarmaFAQScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
|
|
|
73
73
|
<TextInput
|
|
74
74
|
style={[styles.searchInput, { color: bloomTheme.colors.text }]}
|
|
75
75
|
placeholder={t('karma.faq.search') || 'Search FAQ...'}
|
|
76
|
-
placeholderTextColor={bloomTheme.
|
|
76
|
+
placeholderTextColor={bloomTheme.colors.textTertiary}
|
|
77
77
|
value={search}
|
|
78
78
|
onChangeText={setSearch}
|
|
79
79
|
returnKeyType="search"
|
|
@@ -41,7 +41,7 @@ const KarmaLeaderboardScreen: React.FC<BaseScreenProps> = ({ goBack, theme, navi
|
|
|
41
41
|
{isLoading ? (
|
|
42
42
|
<ActivityIndicator size="large" color={primaryColor} style={{ marginTop: 40 }} />
|
|
43
43
|
) : error ? (
|
|
44
|
-
<Text style={[styles.error, { color:
|
|
44
|
+
<Text style={[styles.error, { color: bloomTheme.colors.error }]}>{error}</Text>
|
|
45
45
|
) : (
|
|
46
46
|
<ScrollView contentContainerStyle={styles.listContainer}>
|
|
47
47
|
{leaderboard.length === 0 ? (
|
|
@@ -50,7 +50,7 @@ const KarmaLeaderboardScreen: React.FC<BaseScreenProps> = ({ goBack, theme, navi
|
|
|
50
50
|
leaderboard.map((entry, idx) => (
|
|
51
51
|
<TouchableOpacity
|
|
52
52
|
key={entry.userId}
|
|
53
|
-
style={[styles.row, idx < 3 && { backgroundColor:
|
|
53
|
+
style={[styles.row, { borderColor: bloomTheme.colors.border }, idx < 3 && { backgroundColor: bloomTheme.colors.primarySubtle }]}
|
|
54
54
|
onPress={() => navigate?.('Profile', { userId: entry.userId, username: entry.username })}
|
|
55
55
|
activeOpacity={0.7}
|
|
56
56
|
>
|
|
@@ -76,13 +76,12 @@ const styles = StyleSheet.create({
|
|
|
76
76
|
paddingVertical: 12,
|
|
77
77
|
paddingHorizontal: 20,
|
|
78
78
|
borderBottomWidth: 1,
|
|
79
|
-
borderColor: '#eee',
|
|
80
79
|
},
|
|
81
80
|
rank: { fontSize: 20, width: 32, textAlign: 'center', fontWeight: 'bold' },
|
|
82
81
|
avatar: { marginHorizontal: 8 },
|
|
83
82
|
username: { flex: 1, fontSize: 16, marginLeft: 8 },
|
|
84
83
|
karma: { fontSize: 18, fontWeight: 'bold', marginLeft: 12 },
|
|
85
|
-
placeholder: { fontSize: 16,
|
|
84
|
+
placeholder: { fontSize: 16, textAlign: 'center', marginTop: 40 },
|
|
86
85
|
error: { fontSize: 16, textAlign: 'center', marginTop: 40 },
|
|
87
86
|
});
|
|
88
87
|
|