@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
|
@@ -1,447 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef, useImperativeHandle, useRef, useEffect, useState, useCallback, useMemo } from 'react';
|
|
1
|
+
import { forwardRef } from 'react';
|
|
3
2
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get('window');
|
|
38
|
-
|
|
39
|
-
const SPRING_CONFIG = {
|
|
40
|
-
damping: 25,
|
|
41
|
-
stiffness: 300,
|
|
42
|
-
mass: 0.8,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export interface BottomSheetRef {
|
|
46
|
-
present: () => void;
|
|
47
|
-
dismiss: () => void;
|
|
48
|
-
close: () => void;
|
|
49
|
-
expand: () => void;
|
|
50
|
-
collapse: () => void;
|
|
51
|
-
scrollTo: (y: number, animated?: boolean) => void;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface BottomSheetProps {
|
|
55
|
-
children: React.ReactNode;
|
|
56
|
-
onDismiss?: () => void;
|
|
57
|
-
enablePanDownToClose?: boolean;
|
|
58
|
-
backgroundComponent?: (props: { style?: StyleProp<ViewStyle> }) => React.ReactElement | null;
|
|
59
|
-
backdropComponent?: (props: { style?: StyleProp<ViewStyle>; onPress?: () => void }) => React.ReactElement | null;
|
|
60
|
-
style?: StyleProp<ViewStyle>;
|
|
61
|
-
enableHandlePanningGesture?: boolean;
|
|
62
|
-
onDismissAttempt?: () => boolean;
|
|
63
|
-
detached?: boolean; // If true, shows with margins and rounded corners. If false, full width with rounded top only.
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const BottomSheet = forwardRef((props: BottomSheetProps, ref: React.ForwardedRef<BottomSheetRef>) => {
|
|
67
|
-
const {
|
|
68
|
-
children,
|
|
69
|
-
onDismiss,
|
|
70
|
-
enablePanDownToClose = true,
|
|
71
|
-
backgroundComponent,
|
|
72
|
-
backdropComponent,
|
|
73
|
-
style,
|
|
74
|
-
enableHandlePanningGesture = true,
|
|
75
|
-
onDismissAttempt,
|
|
76
|
-
detached = false,
|
|
77
|
-
} = props;
|
|
78
|
-
|
|
79
|
-
const insets = useSafeAreaInsets();
|
|
80
|
-
const theme = useTheme();
|
|
81
|
-
const [visible, setVisible] = useState(false);
|
|
82
|
-
const [rendered, setRendered] = useState(false); // keep mounted for exit animation
|
|
83
|
-
const closeTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
84
|
-
const hasClosedRef = useRef(false);
|
|
85
|
-
const scrollViewRef = useRef<Animated.ScrollView>(null);
|
|
86
|
-
|
|
87
|
-
const translateY = useSharedValue(SCREEN_HEIGHT);
|
|
88
|
-
const opacity = useSharedValue(0);
|
|
89
|
-
const scrollOffsetY = useSharedValue(0);
|
|
90
|
-
const isScrollAtTop = useSharedValue(true);
|
|
91
|
-
const allowPanClose = useSharedValue(true);
|
|
92
|
-
const keyboardHeight = useSharedValue(0);
|
|
93
|
-
const context = useSharedValue({ y: 0 });
|
|
94
|
-
|
|
95
|
-
useKeyboardHandler({
|
|
96
|
-
onMove: (e) => {
|
|
97
|
-
'worklet';
|
|
98
|
-
keyboardHeight.value = e.height;
|
|
99
|
-
},
|
|
100
|
-
onEnd: (e) => {
|
|
101
|
-
'worklet';
|
|
102
|
-
keyboardHeight.value = e.height;
|
|
103
|
-
},
|
|
104
|
-
}, []);
|
|
105
|
-
|
|
106
|
-
// Dismiss callbacks
|
|
107
|
-
const safeClose = useCallback(() => {
|
|
108
|
-
if (onDismissAttempt?.()) {
|
|
109
|
-
onDismiss?.();
|
|
110
|
-
} else if (!onDismissAttempt) {
|
|
111
|
-
onDismiss?.();
|
|
112
|
-
}
|
|
113
|
-
}, [onDismiss, onDismissAttempt]);
|
|
114
|
-
|
|
115
|
-
const finishClose = useCallback(() => {
|
|
116
|
-
if (hasClosedRef.current) return;
|
|
117
|
-
hasClosedRef.current = true;
|
|
118
|
-
safeClose();
|
|
119
|
-
setRendered(false);
|
|
120
|
-
}, [safeClose]);
|
|
121
|
-
|
|
122
|
-
// biome-ignore lint/correctness/useExhaustiveDependencies: opacity and translateY are Reanimated SharedValues (stable refs) that should not be listed as dependencies
|
|
123
|
-
useEffect(() => {
|
|
124
|
-
if (visible) {
|
|
125
|
-
if (closeTimeoutRef.current) {
|
|
126
|
-
clearTimeout(closeTimeoutRef.current);
|
|
127
|
-
closeTimeoutRef.current = null;
|
|
128
|
-
}
|
|
129
|
-
hasClosedRef.current = false;
|
|
130
|
-
opacity.value = withTiming(1, { duration: 250 });
|
|
131
|
-
translateY.value = withSpring(0, SPRING_CONFIG);
|
|
132
|
-
} else if (rendered) {
|
|
133
|
-
opacity.value = withTiming(0, { duration: 250 }, (finished) => {
|
|
134
|
-
if (finished) {
|
|
135
|
-
runOnJS(finishClose)();
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
translateY.value = withSpring(SCREEN_HEIGHT, { ...SPRING_CONFIG, stiffness: 250 });
|
|
139
|
-
|
|
140
|
-
// Fallback timer to ensure close completes (especially on web)
|
|
141
|
-
if (closeTimeoutRef.current) {
|
|
142
|
-
clearTimeout(closeTimeoutRef.current);
|
|
143
|
-
}
|
|
144
|
-
closeTimeoutRef.current = setTimeout(() => {
|
|
145
|
-
finishClose();
|
|
146
|
-
closeTimeoutRef.current = null;
|
|
147
|
-
}, 300);
|
|
148
|
-
}
|
|
149
|
-
}, [visible, rendered, finishClose]);
|
|
150
|
-
|
|
151
|
-
// Clear pending timeout on unmount
|
|
152
|
-
useEffect(() => () => {
|
|
153
|
-
if (closeTimeoutRef.current) {
|
|
154
|
-
clearTimeout(closeTimeoutRef.current);
|
|
155
|
-
closeTimeoutRef.current = null;
|
|
156
|
-
}
|
|
157
|
-
}, []);
|
|
158
|
-
|
|
159
|
-
// Apply web scrollbar styles when colors change
|
|
160
|
-
useEffect(() => {
|
|
161
|
-
if (Platform.OS === 'web') {
|
|
162
|
-
createWebScrollbarStyle(theme.colors.border);
|
|
163
|
-
}
|
|
164
|
-
}, [theme.colors.border]);
|
|
165
|
-
|
|
166
|
-
const present = useCallback(() => {
|
|
167
|
-
setRendered(true);
|
|
168
|
-
setVisible(true);
|
|
169
|
-
}, []);
|
|
170
|
-
const dismiss = useCallback(() => {
|
|
171
|
-
setVisible(false);
|
|
172
|
-
}, []);
|
|
173
|
-
|
|
174
|
-
const scrollTo = useCallback((y: number, animated = true) => {
|
|
175
|
-
scrollViewRef.current?.scrollTo({ y, animated });
|
|
176
|
-
}, []);
|
|
177
|
-
|
|
178
|
-
useImperativeHandle(ref, () => ({
|
|
179
|
-
present,
|
|
180
|
-
dismiss,
|
|
181
|
-
close: dismiss,
|
|
182
|
-
expand: present,
|
|
183
|
-
collapse: dismiss,
|
|
184
|
-
scrollTo,
|
|
185
|
-
}), [present, dismiss, scrollTo]);
|
|
186
|
-
|
|
187
|
-
const nativeGesture = useMemo(() => Gesture.Native(), []);
|
|
188
|
-
|
|
189
|
-
const panGesture = Gesture.Pan()
|
|
190
|
-
.enabled(enablePanDownToClose)
|
|
191
|
-
.simultaneousWithExternalGesture(nativeGesture)
|
|
192
|
-
.onStart(() => {
|
|
193
|
-
'worklet';
|
|
194
|
-
context.value = { y: translateY.value };
|
|
195
|
-
allowPanClose.value = scrollOffsetY.value <= 8;
|
|
196
|
-
})
|
|
197
|
-
.onUpdate((event) => {
|
|
198
|
-
'worklet';
|
|
199
|
-
if (!allowPanClose.value) {
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
const newTranslateY = context.value.y + event.translationY;
|
|
203
|
-
// If user is scrolling down while content isn't at (or near) the top, let ScrollView handle it
|
|
204
|
-
const atTopOrNearTop = scrollOffsetY.value <= 8; // slightly larger tolerance for smoother handoff
|
|
205
|
-
if (event.translationY > 0 && !atTopOrNearTop) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
if (newTranslateY >= 0) {
|
|
209
|
-
translateY.value = newTranslateY;
|
|
210
|
-
} else if (detached) {
|
|
211
|
-
// Only allow overdrag (pulling up beyond top) when detached
|
|
212
|
-
translateY.value = newTranslateY * 0.3;
|
|
213
|
-
} else {
|
|
214
|
-
// In normal mode, prevent overdrag - clamp to 0
|
|
215
|
-
translateY.value = 0;
|
|
216
|
-
}
|
|
217
|
-
})
|
|
218
|
-
.onEnd((event) => {
|
|
219
|
-
'worklet';
|
|
220
|
-
if (!allowPanClose.value) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
const velocity = event.velocityY;
|
|
224
|
-
const distance = translateY.value;
|
|
225
|
-
// Require a deeper pull to close (more like native bottom sheets)
|
|
226
|
-
const closeThreshold = Math.max(140, SCREEN_HEIGHT * 0.25);
|
|
227
|
-
const fastSwipeThreshold = 900;
|
|
228
|
-
const shouldClose =
|
|
229
|
-
velocity > fastSwipeThreshold ||
|
|
230
|
-
(distance > closeThreshold && velocity > -300);
|
|
231
|
-
|
|
232
|
-
if (shouldClose) {
|
|
233
|
-
translateY.value = withSpring(SCREEN_HEIGHT, {
|
|
234
|
-
...SPRING_CONFIG,
|
|
235
|
-
velocity: velocity,
|
|
236
|
-
});
|
|
237
|
-
opacity.value = withTiming(0, { duration: 250 }, (finished) => {
|
|
238
|
-
if (finished) {
|
|
239
|
-
runOnJS(finishClose)();
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
} else {
|
|
243
|
-
translateY.value = withSpring(0, {
|
|
244
|
-
...SPRING_CONFIG,
|
|
245
|
-
velocity: velocity,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
const backdropStyle = useAnimatedStyle(() => ({
|
|
251
|
-
opacity: opacity.value,
|
|
252
|
-
}));
|
|
253
|
-
|
|
254
|
-
const sheetStyle = useAnimatedStyle(() => {
|
|
255
|
-
const scale = interpolate(translateY.value, [0, SCREEN_HEIGHT], [1, 0.95]);
|
|
256
|
-
return {
|
|
257
|
-
transform: [
|
|
258
|
-
{ translateY: translateY.value - keyboardHeight.value },
|
|
259
|
-
{ scale },
|
|
260
|
-
],
|
|
261
|
-
};
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
const sheetHeightStyle = useAnimatedStyle(() => ({
|
|
265
|
-
maxHeight: SCREEN_HEIGHT - keyboardHeight.value - insets.top - (detached ? insets.bottom + 16 : 0),
|
|
266
|
-
}), [insets.top, insets.bottom, detached]);
|
|
267
|
-
|
|
268
|
-
const sheetMarginStyle = useAnimatedStyle(() => {
|
|
269
|
-
// Only add margin when detached, otherwise extend behind safe area
|
|
270
|
-
if (detached) {
|
|
271
|
-
return {
|
|
272
|
-
marginBottom: keyboardHeight.value > 0 ? 16 : insets.bottom + 16,
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
return {
|
|
276
|
-
marginBottom: 0,
|
|
277
|
-
};
|
|
278
|
-
}, [insets.bottom, detached]);
|
|
279
|
-
|
|
280
|
-
const handleBackdropPress = useCallback(() => {
|
|
281
|
-
// Always animate close on backdrop press
|
|
282
|
-
if (onDismissAttempt && !onDismissAttempt()) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
dismiss();
|
|
286
|
-
}, [onDismissAttempt, dismiss]);
|
|
287
|
-
|
|
288
|
-
const scrollHandler = useAnimatedScrollHandler({
|
|
289
|
-
onScroll: (event) => {
|
|
290
|
-
scrollOffsetY.value = event.contentOffset.y;
|
|
291
|
-
isScrollAtTop.value = event.contentOffset.y <= 0;
|
|
292
|
-
},
|
|
293
|
-
});
|
|
294
|
-
|
|
295
|
-
const dynamicStyles = useMemo(() => {
|
|
296
|
-
return StyleSheet.create({
|
|
297
|
-
handle: {
|
|
298
|
-
...styles.handle,
|
|
299
|
-
backgroundColor: theme.isDark ? theme.colors.border : theme.colors.borderLight,
|
|
300
|
-
},
|
|
301
|
-
sheet: {
|
|
302
|
-
...styles.sheet,
|
|
303
|
-
...(detached ? styles.sheetDetached : styles.sheetNormal),
|
|
304
|
-
backgroundColor: theme.colors.background,
|
|
305
|
-
},
|
|
306
|
-
scrollContent: {
|
|
307
|
-
...styles.scrollContent,
|
|
308
|
-
// In normal mode, don't add padding here - screens handle their own padding
|
|
309
|
-
// The sheet extends behind safe area, and screens add padding as needed
|
|
310
|
-
},
|
|
311
|
-
});
|
|
312
|
-
}, [theme.colors.background, theme.colors.border, theme.colors.borderLight, theme.isDark, detached]);
|
|
313
|
-
|
|
314
|
-
if (!rendered) return null;
|
|
315
|
-
|
|
3
|
+
BottomSheet as BloomBottomSheet,
|
|
4
|
+
type BottomSheetProps as BloomBottomSheetProps,
|
|
5
|
+
type BottomSheetRef,
|
|
6
|
+
} from '@oxyhq/bloom/bottom-sheet';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Thin wrapper around `@oxyhq/bloom`'s `BottomSheet` (>=0.4.0).
|
|
10
|
+
*
|
|
11
|
+
* Bloom is the canonical bottom-sheet primitive for the Oxy ecosystem; this
|
|
12
|
+
* wrapper exists only to inject service-specific defaults so the 29+ screens
|
|
13
|
+
* mounted by `BottomSheetRouter` keep the exact UX they had under the
|
|
14
|
+
* pre-refactor in-tree implementation:
|
|
15
|
+
*
|
|
16
|
+
* - `manualActivation: true` — the body pan uses RNGH's manualActivation
|
|
17
|
+
* with scroll-handoff, the only RNGH 2.x pattern that doesn't steal
|
|
18
|
+
* vertical events from inner scrollers on Android. The previous in-tree
|
|
19
|
+
* implementation always ran in this mode.
|
|
20
|
+
* - `dynamicBackdrop: true` — backdrop dims proportionally with drag
|
|
21
|
+
* distance (iOS Photos style). The previous in-tree implementation
|
|
22
|
+
* always did this.
|
|
23
|
+
*
|
|
24
|
+
* Consumers (`BottomSheetRouter`, primarily) can still override either default
|
|
25
|
+
* by passing the prop explicitly — for example, per-route via `getSheetConfig`.
|
|
26
|
+
*
|
|
27
|
+
* Public API (name + ref shape) is identical to the previous in-tree
|
|
28
|
+
* implementation, so external consumers and `BottomSheetRouter` need no
|
|
29
|
+
* changes beyond the new pass-through props.
|
|
30
|
+
*/
|
|
31
|
+
export type BottomSheetProps = BloomBottomSheetProps;
|
|
32
|
+
export type { BottomSheetRef };
|
|
33
|
+
|
|
34
|
+
const BottomSheet = forwardRef<BottomSheetRef, BottomSheetProps>((props, ref) => {
|
|
35
|
+
const { manualActivation = true, dynamicBackdrop = true, ...rest } = props;
|
|
316
36
|
return (
|
|
317
|
-
<
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
<Pressable style={styles.backdropTouchable} onPress={handleBackdropPress}>
|
|
324
|
-
<View style={StyleSheet.absoluteFill} />
|
|
325
|
-
</Pressable>
|
|
326
|
-
)}
|
|
327
|
-
</Animated.View>
|
|
328
|
-
|
|
329
|
-
<GestureDetector gesture={panGesture}>
|
|
330
|
-
<Animated.View style={[dynamicStyles.sheet, sheetMarginStyle, sheetStyle, sheetHeightStyle]}>
|
|
331
|
-
{backgroundComponent?.({ style: styles.background })}
|
|
332
|
-
|
|
333
|
-
<View style={dynamicStyles.handle} />
|
|
334
|
-
|
|
335
|
-
<GestureDetector gesture={nativeGesture}>
|
|
336
|
-
<Animated.ScrollView
|
|
337
|
-
ref={scrollViewRef}
|
|
338
|
-
style={[
|
|
339
|
-
styles.scrollView,
|
|
340
|
-
Platform.OS === 'web' && ({
|
|
341
|
-
scrollbarWidth: 'thin',
|
|
342
|
-
scrollbarColor: `${theme.colors.border} transparent`,
|
|
343
|
-
} as ViewStyle),
|
|
344
|
-
]}
|
|
345
|
-
contentContainerStyle={dynamicStyles.scrollContent}
|
|
346
|
-
showsVerticalScrollIndicator={false}
|
|
347
|
-
keyboardShouldPersistTaps="handled"
|
|
348
|
-
onScroll={scrollHandler}
|
|
349
|
-
scrollEventThrottle={16}
|
|
350
|
-
{...(Platform.OS === 'web' ? { className: 'bottom-sheet-scrollview' } : undefined)}
|
|
351
|
-
onLayout={() => {
|
|
352
|
-
if (Platform.OS === 'web') {
|
|
353
|
-
createWebScrollbarStyle(theme.colors.border);
|
|
354
|
-
}
|
|
355
|
-
}}
|
|
356
|
-
>
|
|
357
|
-
{children}
|
|
358
|
-
</Animated.ScrollView>
|
|
359
|
-
</GestureDetector>
|
|
360
|
-
</Animated.View>
|
|
361
|
-
</GestureDetector>
|
|
362
|
-
</View>
|
|
363
|
-
</Modal>
|
|
37
|
+
<BloomBottomSheet
|
|
38
|
+
ref={ref}
|
|
39
|
+
manualActivation={manualActivation}
|
|
40
|
+
dynamicBackdrop={dynamicBackdrop}
|
|
41
|
+
{...rest}
|
|
42
|
+
/>
|
|
364
43
|
);
|
|
365
44
|
});
|
|
366
45
|
|
|
367
46
|
BottomSheet.displayName = 'BottomSheet';
|
|
368
47
|
|
|
369
|
-
|
|
370
|
-
backdrop: {
|
|
371
|
-
flex: 1,
|
|
372
|
-
},
|
|
373
|
-
backdropTouchable: {
|
|
374
|
-
flex: 1,
|
|
375
|
-
},
|
|
376
|
-
sheet: {
|
|
377
|
-
position: 'absolute',
|
|
378
|
-
bottom: 0,
|
|
379
|
-
overflow: 'hidden',
|
|
380
|
-
maxWidth: 800,
|
|
381
|
-
alignSelf: 'center',
|
|
382
|
-
marginHorizontal: 'auto',
|
|
383
|
-
},
|
|
384
|
-
sheetDetached: {
|
|
385
|
-
left: 16,
|
|
386
|
-
right: 16,
|
|
387
|
-
borderRadius: 24,
|
|
388
|
-
},
|
|
389
|
-
sheetNormal: {
|
|
390
|
-
left: 0,
|
|
391
|
-
right: 0,
|
|
392
|
-
borderTopLeftRadius: 24,
|
|
393
|
-
borderTopRightRadius: 24,
|
|
394
|
-
},
|
|
395
|
-
handle: {
|
|
396
|
-
position: 'absolute',
|
|
397
|
-
top: 10,
|
|
398
|
-
left: '50%',
|
|
399
|
-
marginLeft: -18,
|
|
400
|
-
width: 36,
|
|
401
|
-
height: 5,
|
|
402
|
-
borderRadius: 3,
|
|
403
|
-
zIndex: 100,
|
|
404
|
-
},
|
|
405
|
-
background: {
|
|
406
|
-
...StyleSheet.absoluteFillObject,
|
|
407
|
-
},
|
|
408
|
-
scrollView: {
|
|
409
|
-
flex: 1,
|
|
410
|
-
},
|
|
411
|
-
scrollContent: {
|
|
412
|
-
flexGrow: 1,
|
|
413
|
-
},
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
// Create web scrollbar styles dynamically based on theme
|
|
417
|
-
const createWebScrollbarStyle = (borderColor: string) => {
|
|
418
|
-
if (Platform.OS !== 'web' || typeof document === 'undefined') return;
|
|
419
|
-
|
|
420
|
-
const styleId = 'bottom-sheet-scrollbar-style';
|
|
421
|
-
let styleElement = document.getElementById(styleId) as HTMLStyleElement;
|
|
422
|
-
|
|
423
|
-
if (!styleElement) {
|
|
424
|
-
styleElement = document.createElement('style');
|
|
425
|
-
styleElement.id = styleId;
|
|
426
|
-
document.head.appendChild(styleElement);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
styleElement.textContent = `
|
|
430
|
-
.bottom-sheet-scrollview::-webkit-scrollbar {
|
|
431
|
-
width: 6px;
|
|
432
|
-
}
|
|
433
|
-
.bottom-sheet-scrollview::-webkit-scrollbar-track {
|
|
434
|
-
background: transparent;
|
|
435
|
-
border-radius: 10px;
|
|
436
|
-
}
|
|
437
|
-
.bottom-sheet-scrollview::-webkit-scrollbar-thumb {
|
|
438
|
-
background: ${borderColor};
|
|
439
|
-
border-radius: 10px;
|
|
440
|
-
}
|
|
441
|
-
.bottom-sheet-scrollview::-webkit-scrollbar-thumb:hover {
|
|
442
|
-
background: ${borderColor};
|
|
443
|
-
}
|
|
444
|
-
`;
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export default BottomSheet;
|
|
48
|
+
export default BottomSheet;
|
|
@@ -2,7 +2,7 @@ import React, { useRef, useEffect, useCallback, useMemo, type ErrorInfo } from '
|
|
|
2
2
|
import { BackHandler, View, StyleSheet, Text, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import { useStore } from 'zustand';
|
|
4
4
|
import type { RouteName } from '../navigation/routes';
|
|
5
|
-
import { getScreenComponent, isValidRoute } from '../navigation/routes';
|
|
5
|
+
import { getScreenComponent, getSheetConfig, isValidRoute } from '../navigation/routes';
|
|
6
6
|
import type { BaseScreenProps } from '../types/navigation';
|
|
7
7
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
8
8
|
import BottomSheet, { type BottomSheetRef } from './BottomSheet';
|
|
@@ -209,6 +209,13 @@ const BottomSheetRouter: React.FC<BottomSheetRouterProps> = ({ onScreenChange, o
|
|
|
209
209
|
};
|
|
210
210
|
}, [navigate, handleGoBack, theme.mode, currentScreen, currentStep, screenProps, handleStepChange, scrollTo]);
|
|
211
211
|
|
|
212
|
+
// Route-level sheet config (e.g. whether the sheet provides its own
|
|
213
|
+
// ScrollView or yields scrolling to a VirtualizedList inside the screen).
|
|
214
|
+
const sheetConfig = useMemo(
|
|
215
|
+
() => getSheetConfig(currentScreen, screenProps),
|
|
216
|
+
[currentScreen, screenProps],
|
|
217
|
+
);
|
|
218
|
+
|
|
212
219
|
return (
|
|
213
220
|
<BottomSheet
|
|
214
221
|
ref={sheetRef}
|
|
@@ -218,6 +225,10 @@ const BottomSheetRouter: React.FC<BottomSheetRouterProps> = ({ onScreenChange, o
|
|
|
218
225
|
style={styles.container}
|
|
219
226
|
onDismiss={handleDismiss}
|
|
220
227
|
onDismissAttempt={handleDismissAttempt}
|
|
228
|
+
scrollable={sheetConfig.scrollable}
|
|
229
|
+
manualActivation={sheetConfig.manualActivation}
|
|
230
|
+
dynamicBackdrop={sheetConfig.dynamicBackdrop}
|
|
231
|
+
handleComponent={sheetConfig.handleComponent}
|
|
221
232
|
>
|
|
222
233
|
{ScreenComponent && currentScreen && (
|
|
223
234
|
<ScreenErrorBoundary screenName={currentScreen}>
|
|
@@ -9,8 +9,7 @@ import {
|
|
|
9
9
|
ActivityIndicator
|
|
10
10
|
} from 'react-native';
|
|
11
11
|
import { useOxy } from '../context/OxyContext';
|
|
12
|
-
import {
|
|
13
|
-
import { toast } from '../../lib/sonner';
|
|
12
|
+
import { toast } from '@oxyhq/bloom';
|
|
14
13
|
import { useFollowForButton } from '../hooks/useFollow';
|
|
15
14
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
16
15
|
import type { OxyServices } from '@oxyhq/core';
|
|
@@ -94,7 +93,7 @@ const FollowButtonInner = memo(function FollowButtonInner({
|
|
|
94
93
|
{showLoadingState && isLoading ? (
|
|
95
94
|
<ActivityIndicator
|
|
96
95
|
size="small"
|
|
97
|
-
color={isFollowing ? colors.text :
|
|
96
|
+
color={isFollowing ? colors.text : colors.negativeForeground}
|
|
98
97
|
/>
|
|
99
98
|
) : (
|
|
100
99
|
<Text
|
|
@@ -159,7 +158,6 @@ function getBaseButtonStyle(size: string, style?: StyleProp<ViewStyle>): StylePr
|
|
|
159
158
|
|
|
160
159
|
function getBaseTextStyle(size: string, textStyle?: StyleProp<TextStyle>): StyleProp<TextStyle> {
|
|
161
160
|
const baseTextStyle: TextStyle = {
|
|
162
|
-
fontFamily: fontFamilies.interSemiBold,
|
|
163
161
|
fontWeight: '600',
|
|
164
162
|
};
|
|
165
163
|
|
|
@@ -13,7 +13,6 @@ import AnimatedReanimated, { useAnimatedStyle, interpolate, Extrapolation, type
|
|
|
13
13
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
14
14
|
import { Ionicons } from '@expo/vector-icons';
|
|
15
15
|
import OxyIcon from './icon/OxyIcon';
|
|
16
|
-
import { fontFamilies } from '../styles/fonts';
|
|
17
16
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
18
17
|
|
|
19
18
|
// Calculate header height based on platform and variant
|
|
@@ -406,14 +405,12 @@ const styles = StyleSheet.create({
|
|
|
406
405
|
titleDefault: {
|
|
407
406
|
fontSize: 18,
|
|
408
407
|
fontWeight: '700',
|
|
409
|
-
fontFamily: fontFamilies.interBold,
|
|
410
408
|
letterSpacing: -0.5,
|
|
411
409
|
lineHeight: 22,
|
|
412
410
|
},
|
|
413
411
|
titleLarge: {
|
|
414
412
|
fontSize: 28,
|
|
415
413
|
fontWeight: '800',
|
|
416
|
-
fontFamily: fontFamilies.interExtraBold,
|
|
417
414
|
letterSpacing: -1,
|
|
418
415
|
lineHeight: 34,
|
|
419
416
|
marginBottom: 3,
|
|
@@ -421,7 +418,6 @@ const styles = StyleSheet.create({
|
|
|
421
418
|
titleMinimal: {
|
|
422
419
|
fontSize: 16,
|
|
423
420
|
fontWeight: '600',
|
|
424
|
-
fontFamily: fontFamilies.interSemiBold,
|
|
425
421
|
letterSpacing: -0.3,
|
|
426
422
|
lineHeight: 20,
|
|
427
423
|
},
|
|
@@ -475,7 +471,6 @@ const styles = StyleSheet.create({
|
|
|
475
471
|
actionText: {
|
|
476
472
|
fontSize: 14,
|
|
477
473
|
fontWeight: '600',
|
|
478
|
-
fontFamily: fontFamilies.interSemiBold,
|
|
479
474
|
letterSpacing: -0.2,
|
|
480
475
|
},
|
|
481
476
|
loadingContainer: {
|
|
@@ -4,6 +4,9 @@ import {
|
|
|
4
4
|
Image,
|
|
5
5
|
type ImageSourcePropType,
|
|
6
6
|
Platform,
|
|
7
|
+
type StyleProp,
|
|
8
|
+
type ImageStyle,
|
|
9
|
+
type TextStyle,
|
|
7
10
|
} from 'react-native';
|
|
8
11
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
9
12
|
import { useInternalTheme } from './theming';
|
|
@@ -19,13 +22,15 @@ export type IconSource =
|
|
|
19
22
|
| Readonly<{ source: IconSourceBase; direction: 'rtl' | 'ltr' | 'auto' }>
|
|
20
23
|
| ((props: IconProps & { color: string }) => React.ReactNode);
|
|
21
24
|
|
|
25
|
+
type IconStyle = StyleProp<ImageStyle> | StyleProp<TextStyle>;
|
|
26
|
+
|
|
22
27
|
type IconProps = {
|
|
23
28
|
/**
|
|
24
29
|
* Size of icon.
|
|
25
30
|
*/
|
|
26
31
|
size: number;
|
|
27
32
|
allowFontScaling?: boolean;
|
|
28
|
-
style?:
|
|
33
|
+
style?: IconStyle;
|
|
29
34
|
};
|
|
30
35
|
|
|
31
36
|
const isImageSource = (source: any) =>
|
|
@@ -150,7 +155,10 @@ const Icon = ({
|
|
|
150
155
|
);
|
|
151
156
|
}if (typeof s === 'string') {
|
|
152
157
|
// String icons - use MaterialCommunityIcons from @expo/vector-icons
|
|
153
|
-
// This is the default icon library used by react-native-paper
|
|
158
|
+
// This is the default icon library used by react-native-paper.
|
|
159
|
+
// The package ships a literal-union for `name`, but the local
|
|
160
|
+
// module augmentation in src/types/expo-vector-icons.d.ts widens it
|
|
161
|
+
// to `string` so dynamic names compile without a cast.
|
|
154
162
|
const styleArray = Array.isArray(rest.style)
|
|
155
163
|
? rest.style
|
|
156
164
|
: rest.style
|
|
@@ -158,8 +166,7 @@ const Icon = ({
|
|
|
158
166
|
: [];
|
|
159
167
|
return (
|
|
160
168
|
<MaterialCommunityIcons
|
|
161
|
-
|
|
162
|
-
name={s as any}
|
|
169
|
+
name={s}
|
|
163
170
|
size={size}
|
|
164
171
|
color={iconColor}
|
|
165
172
|
style={[
|
|
@@ -167,8 +174,7 @@ const Icon = ({
|
|
|
167
174
|
transform: [{ scaleX: direction === 'rtl' ? -1 : 1 }],
|
|
168
175
|
},
|
|
169
176
|
...styleArray,
|
|
170
|
-
|
|
171
|
-
] as any}
|
|
177
|
+
]}
|
|
172
178
|
testID={testID}
|
|
173
179
|
{...accessibilityProps}
|
|
174
180
|
/>
|
|
@@ -191,9 +191,6 @@ const IconButton = forwardRef<View, Props>(
|
|
|
191
191
|
rippleColor={rippleColor}
|
|
192
192
|
accessibilityLabel={accessibilityLabel}
|
|
193
193
|
style={[styles.touchable, contentStyle]}
|
|
194
|
-
// @ts-expect-error We keep old a11y props for backwards compat with old RN versions
|
|
195
|
-
accessibilityTraits={disabled ? ['button', 'disabled'] : 'button'}
|
|
196
|
-
accessibilityComponentType="button"
|
|
197
194
|
accessibilityRole="button"
|
|
198
195
|
accessibilityState={{ disabled }}
|
|
199
196
|
disabled={disabled}
|
|
@@ -2,7 +2,6 @@ import type React from 'react';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { TouchableOpacity, Text, View, StyleSheet, type ViewStyle, type TextStyle, type StyleProp, type LayoutChangeEvent } from 'react-native';
|
|
4
4
|
import { useTheme } from '@oxyhq/bloom/theme';
|
|
5
|
-
import { fontFamilies } from '../styles/fonts';
|
|
6
5
|
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen';
|
|
7
6
|
import OxyLogo from './OxyLogo';
|
|
8
7
|
|
|
@@ -117,7 +116,6 @@ const styles = StyleSheet.create({
|
|
|
117
116
|
alignItems: 'center',
|
|
118
117
|
},
|
|
119
118
|
text: {
|
|
120
|
-
fontFamily: fontFamilies.inter,
|
|
121
119
|
fontWeight: '700',
|
|
122
120
|
},
|
|
123
121
|
});
|