@oxyhq/services 6.9.13 → 6.9.15
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/assets/assets/icons/OxyServices.d.ts +28 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.js +53 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.d.ts +7 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.js +41 -0
- package/lib/commonjs/assets/icons/OxyServices.js +52 -13
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/assets/illustrations/HighFive.js +57 -18
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -1
- package/lib/commonjs/index.js +190 -200
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lib/sonner-safe.js.map +1 -0
- package/lib/commonjs/lib/sonner.js +16 -5
- package/lib/commonjs/lib/sonner.js.map +1 -1
- package/lib/commonjs/lib/sonner.native.js +45 -8
- package/lib/commonjs/lib/sonner.native.js.map +1 -1
- package/lib/commonjs/lib/sonner.web.js +45 -8
- package/lib/commonjs/lib/sonner.web.js.map +1 -1
- package/lib/commonjs/ui/client.js +88 -66
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/ActivityIndicator.js +26 -0
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +1 -0
- package/lib/commonjs/ui/components/Avatar.js +27 -39
- package/lib/commonjs/ui/components/Avatar.js.map +1 -0
- package/lib/commonjs/ui/components/BottomSheet.js +20 -0
- package/lib/commonjs/ui/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js +103 -65
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -0
- package/lib/commonjs/ui/components/CrossFadeIcon.js +30 -0
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +1 -0
- package/lib/commonjs/ui/components/EmptyState.js +13 -10
- package/lib/commonjs/ui/components/EmptyState.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +81 -52
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +52 -17
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +29 -27
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +11 -10
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +34 -0
- package/lib/commonjs/ui/components/Header.js.map +1 -0
- package/lib/commonjs/ui/components/HelperText.js +26 -0
- package/lib/commonjs/ui/components/HelperText.js.map +1 -0
- package/lib/commonjs/ui/components/Icon.js +12 -12
- package/lib/commonjs/ui/components/Icon.js.map +1 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +1 -0
- package/lib/commonjs/ui/components/IconButton/utils.js +8 -4
- package/lib/commonjs/ui/components/IconButton/utils.js.map +1 -1
- package/lib/commonjs/ui/components/LoadingState.js +14 -11
- package/lib/commonjs/ui/components/LoadingState.js.map +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +53 -14
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +19 -17
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +35 -31
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
- package/lib/commonjs/ui/components/QuickActions.js +16 -16
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -1
- package/lib/commonjs/ui/components/Section.js +15 -12
- package/lib/commonjs/ui/components/Section.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +13 -14
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/SettingRow.js.map +1 -0
- package/lib/commonjs/ui/components/SignInModal.js +132 -115
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +85 -71
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/Surface.js +79 -37
- package/lib/commonjs/ui/components/Surface.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +6 -8
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +74 -29
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +27 -23
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +31 -27
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js +11 -11
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +23 -21
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +37 -10
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +2 -1
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +106 -65
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +33 -0
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/constants.js +35 -25
- package/lib/commonjs/ui/components/TextField/constants.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +44 -43
- package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/types.js.map +1 -0
- package/lib/commonjs/ui/components/TextField.js +76 -35
- package/lib/commonjs/ui/components/TextField.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +64 -30
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +68 -26
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +10 -6
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +1 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +1 -0
- package/lib/commonjs/ui/components/Typography/types.js +3 -3
- package/lib/commonjs/ui/components/Typography/types.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +1 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -0
- package/lib/commonjs/ui/components/feedback/index.js +10 -0
- package/lib/commonjs/ui/components/feedback/index.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/types.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js +5 -5
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +13 -14
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +77 -66
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +127 -118
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +20 -0
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/commonjs/ui/components/icon/index.js +12 -7
- package/lib/commonjs/ui/components/icon/index.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +62 -54
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +22 -21
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +52 -41
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/modals/index.js +8 -3
- package/lib/commonjs/ui/components/modals/index.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +89 -70
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -0
- package/lib/commonjs/ui/components/payment/index.js +15 -0
- package/lib/commonjs/ui/components/payment/index.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +10 -10
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/components/payment/types.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +59 -27
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/components/styles/overlay.js +4 -6
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -1
- package/lib/commonjs/ui/components/styles/shadow.js +7 -7
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -1
- package/lib/commonjs/ui/components/theming.js +4 -6
- package/lib/commonjs/ui/components/theming.js.map +1 -1
- package/lib/commonjs/ui/components/types.js.map +1 -1
- package/lib/commonjs/ui/components/utils/forwardRef.js +43 -3
- package/lib/commonjs/ui/components/utils/forwardRef.js.map +1 -1
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js +1 -7
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/commonjs/ui/constants/iconColors.js +12 -16
- package/lib/commonjs/ui/constants/iconColors.js.map +1 -0
- package/lib/commonjs/ui/constants/spacing.js.map +1 -1
- package/lib/commonjs/ui/constants/theme.js +8 -9
- package/lib/commonjs/ui/constants/theme.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +1 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
- package/lib/commonjs/ui/context/ThemeContext.js +27 -4
- package/lib/commonjs/ui/context/ThemeContext.js.map +2 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +27 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/commonjs/ui/hooks/index.js +27 -26
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/index.js +31 -22
- package/lib/commonjs/ui/hooks/mutations/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +83 -106
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +45 -53
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/index.js +50 -39
- package/lib/commonjs/ui/hooks/queries/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +6 -0
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +33 -39
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +11 -12
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -0
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +28 -32
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +10 -17
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js +13 -26
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAuth.js +23 -28
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +3 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useColorScheme.js +6 -8
- package/lib/commonjs/ui/hooks/useColorScheme.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +10 -10
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +7 -7
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js +7 -9
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +67 -75
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.types.js +5 -0
- package/lib/commonjs/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/commonjs/ui/hooks/useI18n.js +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +16 -17
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useQueryClient.js +2 -2
- package/lib/commonjs/ui/hooks/useQueryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +40 -44
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +34 -39
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js +16 -22
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/hooks/useStorage.js +6 -6
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -1
- package/lib/commonjs/ui/hooks/useThemeColors.js +1 -1
- package/lib/commonjs/ui/hooks/useThemeColors.js.map +1 -1
- package/lib/commonjs/ui/hooks/useThemeStyles.js +12 -13
- package/lib/commonjs/ui/hooks/useThemeStyles.js.map +1 -1
- package/lib/commonjs/ui/hooks/useWebSSO.js +11 -19
- package/lib/commonjs/ui/hooks/useWebSSO.js.map +1 -1
- package/lib/commonjs/ui/index.js +61 -51
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/isFrontend.js +2 -2
- package/lib/commonjs/ui/isFrontend.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +6 -12
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +75 -66
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +164 -133
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +150 -133
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +83 -44
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +19 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +61 -54
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +155 -137
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FollowersListScreen.js +9 -6
- package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FollowingListScreen.js +9 -6
- package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +75 -36
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +79 -43
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +82 -50
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +35 -31
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +23 -0
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +120 -107
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +63 -69
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +241 -205
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +114 -81
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +128 -102
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +31 -0
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +69 -32
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +120 -85
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +91 -72
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +80 -45
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +29 -29
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +47 -58
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/stores/accountStore.js +1 -1
- package/lib/commonjs/ui/stores/accountStore.js.map +1 -0
- package/lib/commonjs/ui/stores/assetStore.js +13 -16
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +5 -6
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/stores/fileStore.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +3 -10
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +12 -12
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/fonts.js +18 -19
- package/lib/commonjs/ui/styles/fonts.js.map +1 -1
- package/lib/commonjs/ui/styles/index.js.map +1 -0
- package/lib/commonjs/ui/styles/spacing.js +11 -0
- package/lib/commonjs/ui/styles/spacing.js.map +1 -0
- package/lib/commonjs/ui/styles/theme.js +11 -12
- package/lib/commonjs/ui/styles/theme.js.map +1 -1
- package/lib/commonjs/ui/types/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/types/navigation.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +11 -16
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/colorUtils.js +17 -0
- package/lib/commonjs/ui/utils/colorUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/confirmAction.js +1 -1
- package/lib/commonjs/ui/utils/confirmAction.js.map +1 -1
- package/lib/commonjs/ui/utils/errorHandlers.js +1 -0
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +22 -38
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/storageHelpers.js +7 -12
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/themeUtils.js +15 -0
- package/lib/commonjs/ui/utils/themeUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/userUtils.js +6 -9
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
- package/lib/commonjs/utils/hookUtils.js +60 -79
- package/lib/commonjs/utils/hookUtils.js.map +1 -1
- package/lib/module/assets/assets/icons/OxyServices.d.ts +28 -0
- package/lib/module/assets/assets/icons/OxyServices.js +53 -0
- package/lib/module/assets/assets/illustrations/HighFive.d.ts +7 -0
- package/lib/module/assets/assets/illustrations/HighFive.js +41 -0
- package/lib/module/assets/icons/OxyServices.js +12 -0
- package/lib/module/assets/icons/OxyServices.js.map +1 -0
- package/lib/module/assets/illustrations/HighFive.js +15 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/index.js +406 -34
- package/lib/module/index.js.map +1 -1
- package/lib/module/lib/sonner-safe.js +7 -8
- package/lib/module/lib/sonner-safe.js.map +1 -1
- package/lib/module/lib/sonner.js +17 -1
- package/lib/module/lib/sonner.js.map +1 -1
- package/lib/module/lib/sonner.native.js +45 -0
- package/lib/module/lib/sonner.native.js.map +1 -1
- package/lib/module/lib/sonner.web.js +48 -6
- package/lib/module/lib/sonner.web.js.map +1 -1
- package/lib/module/ui/client.js +165 -25
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/ActivityIndicator.js +69 -27
- package/lib/module/ui/components/ActivityIndicator.js.map +1 -1
- package/lib/module/ui/components/AutoHeightScrollView.js +13 -9
- package/lib/module/ui/components/AutoHeightScrollView.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +8 -0
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/BottomSheet.js +99 -0
- package/lib/module/ui/components/BottomSheet.js.map +1 -0
- package/lib/module/ui/components/BottomSheetRouter.js +105 -61
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/CrossFadeIcon.js +60 -16
- package/lib/module/ui/components/CrossFadeIcon.js.map +1 -1
- package/lib/module/ui/components/EmptyState.js +15 -7
- package/lib/module/ui/components/EmptyState.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +84 -50
- package/lib/module/ui/components/FollowButton.js.map +1 -0
- package/lib/module/ui/components/FontLoader.js +57 -17
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +31 -27
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +13 -9
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/Header.js +102 -57
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/HelperText.js +55 -13
- package/lib/module/ui/components/HelperText.js.map +1 -1
- package/lib/module/ui/components/Icon.js +19 -13
- package/lib/module/ui/components/Icon.js.map +1 -0
- package/lib/module/ui/components/IconButton/IconButton.js +31 -24
- package/lib/module/ui/components/IconButton/IconButton.js.map +1 -0
- package/lib/module/ui/components/IconButton/utils.js +14 -4
- package/lib/module/ui/components/IconButton/utils.js.map +1 -1
- package/lib/module/ui/components/LoadingState.js +12 -0
- package/lib/module/ui/components/LoadingState.js.map +1 -0
- package/lib/module/ui/components/OxyLogo.js +13 -0
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +14 -0
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +39 -48
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +42 -37
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +37 -29
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js +18 -15
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/Section.js +16 -0
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +15 -12
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/SettingRow.js +17 -0
- package/lib/module/ui/components/SettingRow.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +142 -115
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +43 -0
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -0
- package/lib/module/ui/components/Surface.js +82 -34
- package/lib/module/ui/components/Surface.js.map +1 -1
- package/lib/module/ui/components/TextField/Addons/Outline.js +8 -0
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +1 -0
- package/lib/module/ui/components/TextField/Addons/Underline.js +12 -8
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +62 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +15 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +33 -28
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/enums.js +13 -9
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/types.js +3 -0
- package/lib/module/ui/components/TextField/Adornment/types.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/utils.js +7 -2
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/module/ui/components/TextField/Label/InputLabel.js +25 -18
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +1 -0
- package/lib/module/ui/components/TextField/TextFieldFlat.js +109 -63
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +1 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +109 -61
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +1 -1
- package/lib/module/ui/components/TextField/constants.js +23 -0
- package/lib/module/ui/components/TextField/constants.js.map +1 -0
- package/lib/module/ui/components/TextField/helpers.js +69 -50
- package/lib/module/ui/components/TextField/helpers.js.map +1 -1
- package/lib/module/ui/components/TextField/types.js +3 -1
- package/lib/module/ui/components/TextField/types.js.map +1 -1
- package/lib/module/ui/components/TextField.js +64 -0
- package/lib/module/ui/components/TextField.js.map +1 -0
- package/lib/module/ui/components/TouchableRipple/Pressable.js +7 -6
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +67 -28
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +47 -0
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/utils.js +16 -6
- package/lib/module/ui/components/TouchableRipple/utils.js.map +1 -1
- package/lib/module/ui/components/Typography/AnimatedText.js +8 -0
- package/lib/module/ui/components/Typography/AnimatedText.js.map +1 -0
- package/lib/module/ui/components/Typography/types.js +7 -3
- package/lib/module/ui/components/Typography/types.js.map +1 -1
- package/lib/module/ui/components/feedback/FormInput.js +20 -12
- package/lib/module/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/module/ui/components/feedback/ProgressIndicator.js +10 -0
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +1 -0
- package/lib/module/ui/components/feedback/constants.js +7 -3
- package/lib/module/ui/components/feedback/constants.js.map +1 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +15 -10
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/module/ui/components/feedback/index.js +56 -5
- package/lib/module/ui/components/feedback/index.js.map +1 -1
- package/lib/module/ui/components/feedback/types.js +3 -0
- package/lib/module/ui/components/feedback/types.js.map +1 -0
- package/lib/module/ui/components/feedback/useFeedbackForm.js +11 -6
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +10 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +72 -67
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +38 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js +27 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/fileManagement/styles.js +24 -20
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/components/icon/FAIRWalletIcon.js +58 -14
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -0
- package/lib/module/ui/components/icon/OxyIcon.js +5 -0
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/module/ui/components/icon/index.js +23 -2
- package/lib/module/ui/components/icon/index.js.map +1 -1
- package/lib/module/ui/components/index.js +111 -0
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +11 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +15 -12
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +48 -40
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/modals/index.js +16 -1
- package/lib/module/ui/components/modals/index.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +77 -69
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +25 -17
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +13 -0
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +18 -0
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +29 -0
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -0
- package/lib/module/ui/components/payment/constants.js +7 -0
- package/lib/module/ui/components/payment/constants.js.map +1 -0
- package/lib/module/ui/components/payment/index.js +73 -0
- package/lib/module/ui/components/payment/index.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +9 -0
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -0
- package/lib/module/ui/components/payment/types.js +3 -1
- package/lib/module/ui/components/payment/types.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +62 -25
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/components/styles/overlay.js +13 -0
- package/lib/module/ui/components/styles/overlay.js.map +1 -1
- package/lib/module/ui/components/styles/shadow.js +12 -8
- package/lib/module/ui/components/styles/shadow.js.map +1 -1
- package/lib/module/ui/components/theming.js +9 -6
- package/lib/module/ui/components/theming.js.map +1 -1
- package/lib/module/ui/components/types.js +3 -1
- package/lib/module/ui/components/types.js.map +1 -1
- package/lib/module/ui/components/utils/forwardRef.js +40 -0
- package/lib/module/ui/components/utils/forwardRef.js.map +1 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js +5 -1
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/module/ui/components/utils/roundLayoutSize.js +6 -1
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -1
- package/lib/module/ui/components/utils/splitStyles.js +5 -7
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/module/ui/constants/iconColors.js +16 -14
- package/lib/module/ui/constants/iconColors.js.map +1 -1
- package/lib/module/ui/constants/spacing.js +24 -25
- package/lib/module/ui/constants/spacing.js.map +1 -1
- package/lib/module/ui/constants/theme.js +7 -4
- package/lib/module/ui/constants/theme.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +17 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -0
- package/lib/module/ui/context/ThemeContext.js +13 -7
- package/lib/module/ui/context/ThemeContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +68 -39
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/index.js +64 -0
- package/lib/module/ui/hooks/index.js.map +1 -0
- package/lib/module/ui/hooks/mutations/index.js +67 -5
- package/lib/module/ui/hooks/mutations/index.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +7 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +92 -109
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +54 -54
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/index.js +114 -0
- package/lib/module/ui/hooks/queries/index.js.map +1 -0
- package/lib/module/ui/hooks/queries/queryKeys.js +39 -36
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +44 -40
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +17 -12
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -0
- package/lib/module/ui/hooks/queries/useServicesQueries.js +37 -33
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js +17 -17
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js +19 -26
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +20 -16
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +24 -20
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +16 -13
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useColorScheme.js +3 -0
- package/lib/module/ui/hooks/useColorScheme.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +16 -11
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +15 -9
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -0
- package/lib/module/ui/hooks/useFileFiltering.js +9 -0
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/module/ui/hooks/useFollow.js +75 -77
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.types.js +6 -0
- package/lib/module/ui/hooks/useFollow.types.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +7 -0
- package/lib/module/ui/hooks/useI18n.js.map +1 -0
- package/lib/module/ui/hooks/useLanguageManagement.js +22 -18
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/module/ui/hooks/useProfileEditing.js +9 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/module/ui/hooks/useQueryClient.js +5 -0
- package/lib/module/ui/hooks/useQueryClient.js.map +1 -0
- package/lib/module/ui/hooks/useSessionManagement.js +46 -45
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSessionSocket.js +15 -0
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js +14 -0
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -0
- package/lib/module/ui/hooks/useStorage.js +12 -7
- package/lib/module/ui/hooks/useStorage.js.map +1 -0
- package/lib/module/ui/hooks/useThemeColors.js +14 -10
- package/lib/module/ui/hooks/useThemeColors.js.map +1 -0
- package/lib/module/ui/hooks/useThemeStyles.js +18 -14
- package/lib/module/ui/hooks/useThemeStyles.js.map +1 -1
- package/lib/module/ui/hooks/useWebSSO.js +12 -16
- package/lib/module/ui/hooks/useWebSSO.js.map +1 -1
- package/lib/module/ui/index.js +74 -46
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/isFrontend.js +4 -1
- package/lib/module/ui/isFrontend.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +17 -0
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +8 -14
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +71 -65
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +167 -131
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +88 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js +88 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountVerificationScreen.js +86 -42
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +79 -76
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +114 -89
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +38 -0
- package/lib/module/ui/screens/FAQScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +58 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +149 -0
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/FollowersListScreen.js +8 -0
- package/lib/module/ui/screens/FollowersListScreen.js.map +1 -1
- package/lib/module/ui/screens/FollowingListScreen.js +12 -4
- package/lib/module/ui/screens/FollowingListScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +45 -0
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +81 -41
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +71 -0
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +33 -31
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +72 -35
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +50 -0
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js +28 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +186 -205
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +56 -0
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +102 -101
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +55 -0
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js +39 -0
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/SessionManagementScreen.js +81 -89
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +21 -18
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +69 -0
- package/lib/module/ui/screens/UserListScreen.js.map +1 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +123 -82
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +29 -26
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +74 -72
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +83 -43
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +30 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +81 -80
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/server.js +50 -29
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/stores/accountStore.js +7 -0
- package/lib/module/ui/stores/accountStore.js.map +1 -0
- package/lib/module/ui/stores/assetStore.js +24 -14
- package/lib/module/ui/stores/assetStore.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +8 -5
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/stores/fileStore.js +6 -0
- package/lib/module/ui/stores/fileStore.js.map +1 -0
- package/lib/module/ui/stores/followStore.js +6 -9
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +17 -12
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/fonts.js +8 -0
- package/lib/module/ui/styles/fonts.js.map +1 -0
- package/lib/module/ui/styles/index.js +26 -4
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/styles/spacing.js +54 -0
- package/lib/module/ui/styles/spacing.js.map +1 -1
- package/lib/module/ui/styles/theme.js +19 -13
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/ui/types/fileManagement.js +3 -1
- package/lib/module/ui/types/fileManagement.js.map +1 -0
- package/lib/module/ui/types/navigation.js +3 -1
- package/lib/module/ui/types/navigation.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +5 -0
- package/lib/module/ui/utils/avatarUtils.js.map +1 -0
- package/lib/module/ui/utils/colorUtils.js +44 -0
- package/lib/module/ui/utils/colorUtils.js.map +1 -0
- package/lib/module/ui/utils/confirmAction.js +7 -0
- package/lib/module/ui/utils/confirmAction.js.map +1 -1
- package/lib/module/ui/utils/errorHandlers.js +16 -18
- package/lib/module/ui/utils/errorHandlers.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +6 -0
- package/lib/module/ui/utils/fileManagement.js.map +1 -0
- package/lib/module/ui/utils/iconNames.js +24 -20
- package/lib/module/ui/utils/iconNames.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js +17 -15
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/ui/utils/storageHelpers.js +12 -10
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/ui/utils/themeUtils.js +35 -2
- package/lib/module/ui/utils/themeUtils.js.map +1 -0
- package/lib/module/ui/utils/userUtils.js +10 -6
- package/lib/module/ui/utils/userUtils.js.map +1 -1
- package/lib/module/utils/hookUtils.js +82 -83
- package/lib/module/utils/hookUtils.js.map +1 -1
- package/lib/typescript/assets/icons/OxyServices.d.ts +28 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts +7 -0
- package/lib/typescript/index.d.ts +46 -0
- package/lib/typescript/lib/sonner-safe.d.ts +8 -0
- package/lib/typescript/lib/sonner.d.ts +11 -0
- package/lib/typescript/lib/sonner.native.d.ts +14 -0
- package/lib/typescript/lib/sonner.web.d.ts +14 -0
- package/lib/typescript/ui/client.d.ts +30 -0
- package/lib/typescript/ui/components/ActivityIndicator.d.ts +44 -0
- package/lib/typescript/ui/components/AutoHeightScrollView.d.ts +22 -0
- package/lib/typescript/ui/components/Avatar.d.ts +60 -0
- package/lib/typescript/ui/components/BottomSheet.d.ts +28 -0
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts +8 -0
- package/lib/typescript/ui/components/CrossFadeIcon.d.ts +26 -0
- package/lib/typescript/ui/components/EmptyState.d.ts +7 -0
- package/lib/typescript/ui/components/FollowButton.d.ts +28 -0
- package/lib/typescript/ui/components/FontLoader.d.ts +14 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts +23 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts +29 -0
- package/lib/typescript/ui/components/Header.d.ts +37 -0
- package/lib/typescript/ui/components/HelperText.d.ts +46 -0
- package/lib/typescript/ui/components/Icon.d.ts +59 -0
- package/lib/typescript/ui/components/IconButton/IconButton.d.ts +98 -0
- package/lib/typescript/ui/components/IconButton/utils.d.ts +18 -0
- package/lib/typescript/ui/components/LoadingState.d.ts +8 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts +28 -0
- package/lib/typescript/ui/components/OxyPayButton.d.ts +28 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts +37 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts +64 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts +17 -0
- package/lib/typescript/ui/components/QuickActions.d.ts +14 -0
- package/lib/typescript/ui/components/Section.d.ts +11 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts +9 -0
- package/lib/typescript/ui/components/SettingRow.d.ts +19 -0
- package/lib/typescript/ui/components/SignInModal.d.ts +17 -0
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +25 -0
- package/lib/typescript/ui/components/Surface.d.ts +75 -0
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts +15 -0
- package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts +18 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +44 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts +72 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts +77 -0
- package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts +12 -0
- package/lib/typescript/ui/components/TextField/Adornment/types.d.ts +11 -0
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts +11 -0
- package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts +4 -0
- package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts +3 -0
- package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts +3 -0
- package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts +3 -0
- package/lib/typescript/ui/components/TextField/constants.d.ts +31 -0
- package/lib/typescript/ui/components/TextField/helpers.d.ts +96 -0
- package/lib/typescript/ui/components/TextField/types.d.ts +155 -0
- package/lib/typescript/ui/components/TextField.d.ts +191 -0
- package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts +12 -0
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts +61 -0
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts +24 -0
- package/lib/typescript/ui/components/TouchableRipple/utils.d.ts +10 -0
- package/lib/typescript/ui/components/Typography/AnimatedText.d.ts +34 -0
- package/lib/typescript/ui/components/Typography/types.d.ts +18 -0
- package/lib/typescript/ui/components/feedback/FormInput.d.ts +19 -0
- package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts +10 -0
- package/lib/typescript/ui/components/feedback/constants.d.ts +4 -0
- package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts +279 -0
- package/lib/typescript/ui/components/feedback/index.d.ts +6 -0
- package/lib/typescript/ui/components/feedback/types.d.ts +45 -0
- package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts +8 -0
- package/lib/typescript/ui/components/fileManagement/AnimatedButton.d.ts +15 -0
- package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts +14 -0
- package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts +17 -0
- package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts +20 -0
- package/lib/typescript/ui/components/fileManagement/styles.d.ts +859 -0
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +9 -0
- package/lib/typescript/ui/components/icon/index.d.ts +3 -0
- package/lib/typescript/ui/components/index.d.ts +16 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +23 -0
- package/lib/typescript/ui/components/internal/PinInput.d.ts +22 -0
- package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts +18 -0
- package/lib/typescript/ui/components/modals/index.d.ts +1 -0
- package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts +20 -0
- package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts +13 -0
- package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts +15 -0
- package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts +9 -0
- package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts +14 -0
- package/lib/typescript/ui/components/payment/constants.d.ts +6 -0
- package/lib/typescript/ui/components/payment/index.d.ts +8 -0
- package/lib/typescript/ui/components/payment/paymentStyles.d.ts +395 -0
- package/lib/typescript/ui/components/payment/types.d.ts +39 -0
- package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts +26 -0
- package/lib/typescript/ui/components/styles/overlay.d.ts +3 -0
- package/lib/typescript/ui/components/styles/shadow.d.ts +2 -0
- package/lib/typescript/ui/components/theming.d.ts +7 -0
- package/lib/typescript/ui/components/types.d.ts +80 -0
- package/lib/typescript/ui/components/utils/forwardRef.d.ts +11 -0
- package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts +5 -0
- package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts +1 -0
- package/lib/typescript/ui/components/utils/splitStyles.d.ts +19 -0
- package/lib/typescript/ui/constants/iconColors.d.ts +129 -0
- package/lib/typescript/ui/constants/spacing.d.ts +32 -0
- package/lib/typescript/ui/constants/theme.d.ts +96 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +75 -0
- package/lib/typescript/ui/context/ThemeContext.d.ts +18 -0
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +39 -0
- package/lib/typescript/ui/hooks/index.d.ts +6 -0
- package/lib/typescript/ui/hooks/mutations/index.d.ts +8 -0
- package/lib/typescript/ui/hooks/mutations/mutationFactory.d.ts +75 -0
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts +42 -0
- package/lib/typescript/ui/hooks/mutations/useServicesMutations.d.ts +22 -0
- package/lib/typescript/ui/hooks/queries/index.d.ts +10 -0
- package/lib/typescript/ui/hooks/queries/queryKeys.d.ts +64 -0
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts +42 -0
- package/lib/typescript/ui/hooks/queries/useSecurityQueries.d.ts +14 -0
- package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts +30 -0
- package/lib/typescript/ui/hooks/queryClient.d.ts +18 -0
- package/lib/typescript/ui/hooks/useAssets.d.ts +34 -0
- package/lib/typescript/ui/hooks/useAsyncAction.d.ts +50 -0
- package/lib/typescript/ui/hooks/useAuth.d.ts +77 -0
- package/lib/typescript/ui/hooks/useAvatarPicker.d.ts +24 -0
- package/lib/typescript/ui/hooks/useColorScheme.d.ts +7 -0
- package/lib/typescript/ui/hooks/useDeviceManagement.d.ts +26 -0
- package/lib/typescript/ui/hooks/useFileDownloadUrl.d.ts +21 -0
- package/lib/typescript/ui/hooks/useFileFiltering.d.ts +28 -0
- package/lib/typescript/ui/hooks/useFollow.d.ts +92 -0
- package/lib/typescript/ui/hooks/useFollow.types.d.ts +32 -0
- package/lib/typescript/ui/hooks/useI18n.d.ts +4 -0
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts +24 -0
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts +35 -0
- package/lib/typescript/ui/hooks/useQueryClient.d.ts +6 -0
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts +40 -0
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts +14 -0
- package/lib/typescript/ui/hooks/useSettingToggle.d.ts +56 -0
- package/lib/typescript/ui/hooks/useStorage.d.ts +15 -0
- package/lib/typescript/ui/hooks/useThemeColors.d.ts +93 -0
- package/lib/typescript/ui/hooks/useThemeStyles.d.ts +44 -0
- package/lib/typescript/ui/hooks/useWebSSO.d.ts +57 -0
- package/lib/typescript/ui/index.d.ts +23 -0
- package/lib/typescript/ui/isFrontend.d.ts +2 -0
- package/lib/typescript/ui/navigation/bottomSheetManager.d.ts +26 -0
- package/lib/typescript/ui/navigation/routes.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +7 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/EditProfileFieldScreen.d.ts +12 -0
- package/lib/typescript/ui/screens/FAQScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/FollowersListScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/FollowingListScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts +6 -0
- package/lib/typescript/ui/screens/LearnMoreUsernamesScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts +16 -0
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +14 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts +14 -0
- package/lib/typescript/ui/screens/UserListScreen.d.ts +10 -0
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts +12 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +4 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +4 -0
- package/lib/typescript/ui/server.d.ts +40 -0
- package/lib/typescript/ui/stores/accountStore.d.ts +26 -0
- package/lib/typescript/ui/stores/assetStore.d.ts +53 -0
- package/lib/typescript/ui/stores/authStore.d.ts +16 -0
- package/lib/typescript/ui/stores/fileStore.d.ts +30 -0
- package/lib/typescript/ui/stores/followStore.d.ts +24 -0
- package/lib/typescript/ui/styles/authStyles.d.ts +331 -0
- package/lib/typescript/ui/styles/fonts.d.ts +20 -0
- package/lib/typescript/ui/styles/index.d.ts +4 -0
- package/lib/typescript/ui/styles/spacing.d.ts +48 -0
- package/lib/typescript/ui/styles/theme.d.ts +67 -0
- package/lib/typescript/ui/types/fileManagement.d.ts +40 -0
- package/lib/typescript/ui/types/navigation.d.ts +36 -0
- package/lib/typescript/ui/utils/avatarUtils.d.ts +22 -0
- package/lib/typescript/ui/utils/colorUtils.d.ts +9 -0
- package/lib/typescript/ui/utils/confirmAction.d.ts +6 -0
- package/lib/typescript/ui/utils/errorHandlers.d.ts +34 -0
- package/lib/typescript/ui/utils/fileManagement.d.ts +86 -0
- package/lib/typescript/ui/utils/iconNames.d.ts +111 -0
- package/lib/typescript/ui/utils/sessionHelpers.d.ts +64 -0
- package/lib/typescript/ui/utils/storageHelpers.d.ts +27 -0
- package/lib/typescript/ui/utils/themeUtils.d.ts +10 -0
- package/lib/typescript/ui/utils/userUtils.d.ts +28 -0
- package/lib/typescript/utils/hookUtils.d.ts +101 -0
- package/package.json +3 -3
- package/src/assets/icons/OxyServices.d.ts +28 -0
- package/src/assets/icons/OxyServices.js +53 -0
- package/src/assets/illustrations/HighFive.d.ts +7 -0
- package/src/assets/illustrations/HighFive.js +41 -0
- package/src/index.d.ts +46 -0
- package/src/index.js +127 -0
- package/src/lib/sonner-safe.d.ts +8 -0
- package/src/lib/sonner-safe.js +28 -0
- package/src/lib/sonner.d.ts +11 -0
- package/src/lib/sonner.js +16 -0
- package/src/lib/sonner.native.d.ts +14 -0
- package/src/lib/sonner.native.js +46 -0
- package/src/lib/sonner.web.d.ts +14 -0
- package/src/lib/sonner.web.js +46 -0
- package/src/ui/client.d.ts +30 -0
- package/src/ui/client.js +64 -0
- package/src/ui/components/ActivityIndicator.d.ts +44 -0
- package/src/ui/components/ActivityIndicator.js +184 -0
- package/src/ui/components/AutoHeightScrollView.d.ts +22 -0
- package/src/ui/components/AutoHeightScrollView.js +33 -0
- package/src/ui/components/Avatar.d.ts +60 -0
- package/src/ui/components/Avatar.js +146 -0
- package/src/ui/components/BottomSheet.d.ts +28 -0
- package/src/ui/components/BottomSheet.js +374 -0
- package/src/ui/components/BottomSheetRouter.d.ts +8 -0
- package/src/ui/components/BottomSheetRouter.js +211 -0
- package/src/ui/components/CrossFadeIcon.d.ts +26 -0
- package/src/ui/components/CrossFadeIcon.js +111 -0
- package/src/ui/components/EmptyState.d.ts +7 -0
- package/src/ui/components/EmptyState.js +27 -0
- package/src/ui/components/FollowButton.d.ts +28 -0
- package/src/ui/components/FollowButton.js +197 -0
- package/src/ui/components/FontLoader.d.ts +14 -0
- package/src/ui/components/FontLoader.js +185 -0
- package/src/ui/components/GroupedItem.d.ts +23 -0
- package/src/ui/components/GroupedItem.js +84 -0
- package/src/ui/components/GroupedSection.d.ts +29 -0
- package/src/ui/components/GroupedSection.js +13 -0
- package/src/ui/components/Header.d.ts +37 -0
- package/src/ui/components/Header.js +400 -0
- package/src/ui/components/HelperText.d.ts +46 -0
- package/src/ui/components/HelperText.js +119 -0
- package/src/ui/components/Icon.d.ts +59 -0
- package/src/ui/components/Icon.js +108 -0
- package/src/ui/components/IconButton/IconButton.d.ts +98 -0
- package/src/ui/components/IconButton/IconButton.js +90 -0
- package/src/ui/components/IconButton/utils.d.ts +18 -0
- package/src/ui/components/IconButton/utils.js +119 -0
- package/src/ui/components/LoadingState.d.ts +8 -0
- package/src/ui/components/LoadingState.js +29 -0
- package/src/ui/components/OxyLogo.d.ts +28 -0
- package/src/ui/components/OxyLogo.js +53 -0
- package/src/ui/components/OxyPayButton.d.ts +28 -0
- package/src/ui/components/OxyPayButton.js +76 -0
- package/src/ui/components/OxyProvider.d.ts +37 -0
- package/src/ui/components/OxyProvider.js +197 -0
- package/src/ui/components/OxySignInButton.d.ts +64 -0
- package/src/ui/components/OxySignInButton.js +145 -0
- package/src/ui/components/ProfileCard.d.ts +17 -0
- package/src/ui/components/ProfileCard.js +82 -0
- package/src/ui/components/QuickActions.d.ts +14 -0
- package/src/ui/components/QuickActions.js +62 -0
- package/src/ui/components/Section.d.ts +11 -0
- package/src/ui/components/Section.js +24 -0
- package/src/ui/components/SectionTitle.d.ts +9 -0
- package/src/ui/components/SectionTitle.js +21 -0
- package/src/ui/components/SettingRow.d.ts +19 -0
- package/src/ui/components/SettingRow.js +38 -0
- package/src/ui/components/SignInModal.d.ts +17 -0
- package/src/ui/components/SignInModal.js +428 -0
- package/src/ui/components/StepBasedScreen.d.ts +25 -0
- package/src/ui/components/StepBasedScreen.js +372 -0
- package/src/ui/components/Surface.d.ts +75 -0
- package/src/ui/components/Surface.js +239 -0
- package/src/ui/components/TextField/Addons/Outline.d.ts +15 -0
- package/src/ui/components/TextField/Addons/Outline.js +30 -0
- package/src/ui/components/TextField/Addons/Underline.d.ts +18 -0
- package/src/ui/components/TextField/Addons/Underline.js +45 -0
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +44 -0
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.js +132 -0
- package/src/ui/components/TextField/Adornment/TextFieldAffix.d.ts +72 -0
- package/src/ui/components/TextField/Adornment/TextFieldAffix.js +88 -0
- package/src/ui/components/TextField/Adornment/TextFieldIcon.d.ts +77 -0
- package/src/ui/components/TextField/Adornment/TextFieldIcon.js +91 -0
- package/src/ui/components/TextField/Adornment/enums.d.ts +12 -0
- package/src/ui/components/TextField/Adornment/enums.js +18 -0
- package/src/ui/components/TextField/Adornment/types.d.ts +11 -0
- package/src/ui/components/TextField/Adornment/types.js +2 -0
- package/src/ui/components/TextField/Adornment/utils.d.ts +11 -0
- package/src/ui/components/TextField/Adornment/utils.js +50 -0
- package/src/ui/components/TextField/Label/InputLabel.d.ts +4 -0
- package/src/ui/components/TextField/Label/InputLabel.js +125 -0
- package/src/ui/components/TextField/Label/LabelBackground.d.ts +3 -0
- package/src/ui/components/TextField/Label/LabelBackground.js +71 -0
- package/src/ui/components/TextField/TextFieldFlat.d.ts +3 -0
- package/src/ui/components/TextField/TextFieldFlat.js +347 -0
- package/src/ui/components/TextField/TextFieldOutlined.d.ts +3 -0
- package/src/ui/components/TextField/TextFieldOutlined.js +313 -0
- package/src/ui/components/TextField/constants.d.ts +31 -0
- package/src/ui/components/TextField/constants.js +40 -0
- package/src/ui/components/TextField/helpers.d.ts +96 -0
- package/src/ui/components/TextField/helpers.js +388 -0
- package/src/ui/components/TextField/types.d.ts +155 -0
- package/src/ui/components/TextField/types.js +2 -0
- package/src/ui/components/TextField.d.ts +191 -0
- package/src/ui/components/TextField.js +291 -0
- package/src/ui/components/TouchableRipple/Pressable.d.ts +12 -0
- package/src/ui/components/TouchableRipple/Pressable.js +5 -0
- package/src/ui/components/TouchableRipple/TouchableRipple.d.ts +61 -0
- package/src/ui/components/TouchableRipple/TouchableRipple.js +246 -0
- package/src/ui/components/TouchableRipple/TouchableRipple.native.d.ts +24 -0
- package/src/ui/components/TouchableRipple/TouchableRipple.native.js +99 -0
- package/src/ui/components/TouchableRipple/utils.d.ts +10 -0
- package/src/ui/components/TouchableRipple/utils.js +40 -0
- package/src/ui/components/Typography/AnimatedText.d.ts +34 -0
- package/src/ui/components/Typography/AnimatedText.js +49 -0
- package/src/ui/components/Typography/types.d.ts +18 -0
- package/src/ui/components/Typography/types.js +22 -0
- package/src/ui/components/feedback/FormInput.d.ts +19 -0
- package/src/ui/components/feedback/FormInput.js +26 -0
- package/src/ui/components/feedback/ProgressIndicator.d.ts +10 -0
- package/src/ui/components/feedback/ProgressIndicator.js +16 -0
- package/src/ui/components/feedback/constants.d.ts +4 -0
- package/src/ui/components/feedback/constants.js +21 -0
- package/src/ui/components/feedback/feedbackStyles.d.ts +279 -0
- package/src/ui/components/feedback/feedbackStyles.js +250 -0
- package/src/ui/components/feedback/index.d.ts +6 -0
- package/src/ui/components/feedback/index.js +18 -0
- package/src/ui/components/feedback/types.d.ts +45 -0
- package/src/ui/components/feedback/types.js +2 -0
- package/src/ui/components/feedback/useFeedbackForm.d.ts +8 -0
- package/src/ui/components/feedback/useFeedbackForm.js +42 -0
- package/src/ui/components/fileManagement/AnimatedButton.d.ts +15 -0
- package/src/ui/components/fileManagement/AnimatedButton.js +29 -0
- package/src/ui/components/fileManagement/FileDetailsModal.d.ts +14 -0
- package/src/ui/components/fileManagement/FileDetailsModal.js +22 -0
- package/src/ui/components/fileManagement/FileViewer.d.ts +17 -0
- package/src/ui/components/fileManagement/FileViewer.js +138 -0
- package/src/ui/components/fileManagement/UploadPreview.d.ts +20 -0
- package/src/ui/components/fileManagement/UploadPreview.js +35 -0
- package/src/ui/components/fileManagement/styles.d.ts +859 -0
- package/src/ui/components/fileManagement/styles.js +861 -0
- package/src/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
- package/src/ui/components/icon/FAIRWalletIcon.js +54 -0
- package/src/ui/components/icon/OxyIcon.d.ts +9 -0
- package/src/ui/components/icon/OxyIcon.js +9 -0
- package/src/ui/components/icon/index.d.ts +3 -0
- package/src/ui/components/icon/index.js +10 -0
- package/src/ui/components/index.d.ts +16 -0
- package/src/ui/components/index.js +42 -0
- package/src/ui/components/internal/GroupedPillButtons.d.ts +23 -0
- package/src/ui/components/internal/GroupedPillButtons.js +149 -0
- package/src/ui/components/internal/PinInput.d.ts +22 -0
- package/src/ui/components/internal/PinInput.js +76 -0
- package/src/ui/components/modals/DeleteAccountModal.d.ts +18 -0
- package/src/ui/components/modals/DeleteAccountModal.js +154 -0
- package/src/ui/components/modals/index.d.ts +1 -0
- package/src/ui/components/modals/index.js +8 -0
- package/src/ui/components/payment/PaymentDetailsStep.d.ts +20 -0
- package/src/ui/components/payment/PaymentDetailsStep.js +65 -0
- package/src/ui/components/payment/PaymentMethodStep.d.ts +13 -0
- package/src/ui/components/payment/PaymentMethodStep.js +54 -0
- package/src/ui/components/payment/PaymentReviewStep.d.ts +15 -0
- package/src/ui/components/payment/PaymentReviewStep.js +88 -0
- package/src/ui/components/payment/PaymentSuccessStep.d.ts +9 -0
- package/src/ui/components/payment/PaymentSuccessStep.js +35 -0
- package/src/ui/components/payment/PaymentSummaryStep.d.ts +14 -0
- package/src/ui/components/payment/PaymentSummaryStep.js +60 -0
- package/src/ui/components/payment/constants.d.ts +6 -0
- package/src/ui/components/payment/constants.js +38 -0
- package/src/ui/components/payment/index.d.ts +8 -0
- package/src/ui/components/payment/index.js +24 -0
- package/src/ui/components/payment/paymentStyles.d.ts +395 -0
- package/src/ui/components/payment/paymentStyles.js +399 -0
- package/src/ui/components/payment/types.d.ts +39 -0
- package/src/ui/components/payment/types.js +2 -0
- package/src/ui/components/photogrid/JustifiedPhotoGrid.d.ts +26 -0
- package/src/ui/components/photogrid/JustifiedPhotoGrid.js +122 -0
- package/src/ui/components/styles/overlay.d.ts +3 -0
- package/src/ui/components/styles/overlay.js +81 -0
- package/src/ui/components/styles/shadow.d.ts +2 -0
- package/src/ui/components/styles/shadow.js +123 -0
- package/src/ui/components/theming.d.ts +7 -0
- package/src/ui/components/theming.js +111 -0
- package/src/ui/components/types.d.ts +80 -0
- package/src/ui/components/types.js +2 -0
- package/src/ui/components/utils/forwardRef.d.ts +11 -0
- package/src/ui/components/utils/forwardRef.js +46 -0
- package/src/ui/components/utils/hasTouchHandler.d.ts +5 -0
- package/src/ui/components/utils/hasTouchHandler.js +14 -0
- package/src/ui/components/utils/roundLayoutSize.d.ts +1 -0
- package/src/ui/components/utils/roundLayoutSize.js +5 -0
- package/src/ui/components/utils/splitStyles.d.ts +19 -0
- package/src/ui/components/utils/splitStyles.js +40 -0
- package/src/ui/constants/iconColors.d.ts +129 -0
- package/src/ui/constants/iconColors.js +76 -0
- package/src/ui/constants/spacing.d.ts +32 -0
- package/src/ui/constants/spacing.js +40 -0
- package/src/ui/constants/theme.d.ts +96 -0
- package/src/ui/constants/theme.js +118 -0
- package/src/ui/context/OxyContext.d.ts +75 -0
- package/src/ui/context/OxyContext.js +522 -0
- package/src/ui/context/ThemeContext.d.ts +18 -0
- package/src/ui/context/ThemeContext.js +25 -0
- package/src/ui/context/hooks/useAuthOperations.d.ts +39 -0
- package/src/ui/context/hooks/useAuthOperations.js +318 -0
- package/src/ui/hooks/index.d.ts +6 -0
- package/src/ui/hooks/index.js +19 -0
- package/src/ui/hooks/mutations/index.d.ts +8 -0
- package/src/ui/hooks/mutations/index.js +23 -0
- package/src/ui/hooks/mutations/mutationFactory.d.ts +75 -0
- package/src/ui/hooks/mutations/mutationFactory.js +126 -0
- package/src/ui/hooks/mutations/useAccountMutations.d.ts +42 -0
- package/src/ui/hooks/mutations/useAccountMutations.js +274 -0
- package/src/ui/hooks/mutations/useServicesMutations.d.ts +22 -0
- package/src/ui/hooks/mutations/useServicesMutations.js +149 -0
- package/src/ui/hooks/queries/index.d.ts +10 -0
- package/src/ui/hooks/queries/index.js +35 -0
- package/src/ui/hooks/queries/queryKeys.d.ts +64 -0
- package/src/ui/hooks/queries/queryKeys.js +82 -0
- package/src/ui/hooks/queries/useAccountQueries.d.ts +42 -0
- package/src/ui/hooks/queries/useAccountQueries.js +141 -0
- package/src/ui/hooks/queries/useSecurityQueries.d.ts +14 -0
- package/src/ui/hooks/queries/useSecurityQueries.js +45 -0
- package/src/ui/hooks/queries/useServicesQueries.d.ts +30 -0
- package/src/ui/hooks/queries/useServicesQueries.js +113 -0
- package/src/ui/hooks/queryClient.d.ts +18 -0
- package/src/ui/hooks/queryClient.js +111 -0
- package/src/ui/hooks/useAssets.d.ts +34 -0
- package/src/ui/hooks/useAssets.js +204 -0
- package/src/ui/hooks/useAsyncAction.d.ts +50 -0
- package/src/ui/hooks/useAsyncAction.js +77 -0
- package/src/ui/hooks/useAuth.d.ts +77 -0
- package/src/ui/hooks/useAuth.js +135 -0
- package/src/ui/hooks/useAvatarPicker.d.ts +24 -0
- package/src/ui/hooks/useAvatarPicker.js +44 -0
- package/src/ui/hooks/useColorScheme.d.ts +7 -0
- package/src/ui/hooks/useColorScheme.js +23 -0
- package/src/ui/hooks/useDeviceManagement.d.ts +26 -0
- package/src/ui/hooks/useDeviceManagement.js +69 -0
- package/src/ui/hooks/useFileDownloadUrl.d.ts +21 -0
- package/src/ui/hooks/useFileDownloadUrl.js +104 -0
- package/src/ui/hooks/useFileFiltering.d.ts +28 -0
- package/src/ui/hooks/useFileFiltering.js +80 -0
- package/src/ui/hooks/useFollow.d.ts +92 -0
- package/src/ui/hooks/useFollow.js +216 -0
- package/src/ui/hooks/useFollow.types.d.ts +32 -0
- package/src/ui/hooks/useFollow.types.js +4 -0
- package/src/ui/hooks/useI18n.d.ts +4 -0
- package/src/ui/hooks/useI18n.js +13 -0
- package/src/ui/hooks/useLanguageManagement.d.ts +24 -0
- package/src/ui/hooks/useLanguageManagement.js +108 -0
- package/src/ui/hooks/useProfileEditing.d.ts +35 -0
- package/src/ui/hooks/useProfileEditing.js +101 -0
- package/src/ui/hooks/useQueryClient.d.ts +6 -0
- package/src/ui/hooks/useQueryClient.js +16 -0
- package/src/ui/hooks/useSessionManagement.d.ts +40 -0
- package/src/ui/hooks/useSessionManagement.js +312 -0
- package/src/ui/hooks/useSessionSocket.d.ts +14 -0
- package/src/ui/hooks/useSessionSocket.js +209 -0
- package/src/ui/hooks/useSettingToggle.d.ts +56 -0
- package/src/ui/hooks/useSettingToggle.js +97 -0
- package/src/ui/hooks/useStorage.d.ts +15 -0
- package/src/ui/hooks/useStorage.js +40 -0
- package/src/ui/hooks/useThemeColors.d.ts +93 -0
- package/src/ui/hooks/useThemeColors.js +27 -0
- package/src/ui/hooks/useThemeStyles.d.ts +44 -0
- package/src/ui/hooks/useThemeStyles.js +63 -0
- package/src/ui/hooks/useWebSSO.d.ts +57 -0
- package/src/ui/hooks/useWebSSO.js +146 -0
- package/src/ui/index.d.ts +23 -0
- package/src/ui/index.js +97 -0
- package/src/ui/isFrontend.d.ts +2 -0
- package/src/ui/isFrontend.js +6 -0
- package/src/ui/navigation/bottomSheetManager.d.ts +26 -0
- package/src/ui/navigation/bottomSheetManager.js +68 -0
- package/src/ui/navigation/routes.d.ts +5 -0
- package/src/ui/navigation/routes.js +75 -0
- package/src/ui/screens/AccountCenterScreen.d.ts +4 -0
- package/src/ui/screens/AccountCenterScreen.js +202 -0
- package/src/ui/screens/AccountOverviewScreen.d.ts +4 -0
- package/src/ui/screens/AccountOverviewScreen.js +648 -0
- package/src/ui/screens/AccountSettingsScreen.d.ts +7 -0
- package/src/ui/screens/AccountSettingsScreen.js +480 -0
- package/src/ui/screens/AccountSwitcherScreen.d.ts +4 -0
- package/src/ui/screens/AccountSwitcherScreen.js +482 -0
- package/src/ui/screens/AccountVerificationScreen.d.ts +4 -0
- package/src/ui/screens/AccountVerificationScreen.js +164 -0
- package/src/ui/screens/AppInfoScreen.d.ts +4 -0
- package/src/ui/screens/AppInfoScreen.js +373 -0
- package/src/ui/screens/EditProfileFieldScreen.d.ts +12 -0
- package/src/ui/screens/EditProfileFieldScreen.js +549 -0
- package/src/ui/screens/FAQScreen.d.ts +4 -0
- package/src/ui/screens/FAQScreen.js +182 -0
- package/src/ui/screens/FeedbackScreen.d.ts +4 -0
- package/src/ui/screens/FeedbackScreen.js +160 -0
- package/src/ui/screens/FileManagementScreen.d.ts +4 -0
- package/src/ui/screens/FileManagementScreen.js +1473 -0
- package/src/ui/screens/FollowersListScreen.d.ts +8 -0
- package/src/ui/screens/FollowersListScreen.js +11 -0
- package/src/ui/screens/FollowingListScreen.d.ts +8 -0
- package/src/ui/screens/FollowingListScreen.js +11 -0
- package/src/ui/screens/HelpSupportScreen.d.ts +4 -0
- package/src/ui/screens/HelpSupportScreen.js +140 -0
- package/src/ui/screens/HistoryViewScreen.d.ts +4 -0
- package/src/ui/screens/HistoryViewScreen.js +225 -0
- package/src/ui/screens/LanguageSelectorScreen.d.ts +6 -0
- package/src/ui/screens/LanguageSelectorScreen.js +178 -0
- package/src/ui/screens/LearnMoreUsernamesScreen.d.ts +4 -0
- package/src/ui/screens/LearnMoreUsernamesScreen.js +150 -0
- package/src/ui/screens/LegalDocumentsScreen.d.ts +4 -0
- package/src/ui/screens/LegalDocumentsScreen.js +185 -0
- package/src/ui/screens/OxyAuthScreen.d.ts +16 -0
- package/src/ui/screens/OxyAuthScreen.js +431 -0
- package/src/ui/screens/PaymentGatewayScreen.d.ts +14 -0
- package/src/ui/screens/PaymentGatewayScreen.js +171 -0
- package/src/ui/screens/PremiumSubscriptionScreen.d.ts +4 -0
- package/src/ui/screens/PremiumSubscriptionScreen.js +1080 -0
- package/src/ui/screens/PrivacySettingsScreen.d.ts +4 -0
- package/src/ui/screens/PrivacySettingsScreen.js +252 -0
- package/src/ui/screens/ProfileScreen.d.ts +8 -0
- package/src/ui/screens/ProfileScreen.js +254 -0
- package/src/ui/screens/SavesCollectionsScreen.d.ts +4 -0
- package/src/ui/screens/SavesCollectionsScreen.js +150 -0
- package/src/ui/screens/SearchSettingsScreen.d.ts +4 -0
- package/src/ui/screens/SearchSettingsScreen.js +109 -0
- package/src/ui/screens/SessionManagementScreen.d.ts +4 -0
- package/src/ui/screens/SessionManagementScreen.js +320 -0
- package/src/ui/screens/UserLinksScreen.d.ts +14 -0
- package/src/ui/screens/UserLinksScreen.js +57 -0
- package/src/ui/screens/UserListScreen.d.ts +10 -0
- package/src/ui/screens/UserListScreen.js +249 -0
- package/src/ui/screens/WelcomeNewUserScreen.d.ts +12 -0
- package/src/ui/screens/WelcomeNewUserScreen.js +304 -0
- package/src/ui/screens/karma/KarmaAboutScreen.d.ts +4 -0
- package/src/ui/screens/karma/KarmaAboutScreen.js +39 -0
- package/src/ui/screens/karma/KarmaCenterScreen.d.ts +4 -0
- package/src/ui/screens/karma/KarmaCenterScreen.js +159 -0
- package/src/ui/screens/karma/KarmaFAQScreen.d.ts +4 -0
- package/src/ui/screens/karma/KarmaFAQScreen.js +143 -0
- package/src/ui/screens/karma/KarmaLeaderboardScreen.d.ts +4 -0
- package/src/ui/screens/karma/KarmaLeaderboardScreen.js +56 -0
- package/src/ui/screens/karma/KarmaRewardsScreen.d.ts +4 -0
- package/src/ui/screens/karma/KarmaRewardsScreen.js +460 -0
- package/src/ui/screens/karma/KarmaRulesScreen.d.ts +4 -0
- package/src/ui/screens/karma/KarmaRulesScreen.js +47 -0
- package/src/ui/server.d.ts +40 -0
- package/src/ui/server.js +57 -0
- package/src/ui/stores/accountStore.d.ts +26 -0
- package/src/ui/stores/accountStore.js +196 -0
- package/src/ui/stores/assetStore.d.ts +53 -0
- package/src/ui/stores/assetStore.js +192 -0
- package/src/ui/stores/authStore.d.ts +16 -0
- package/src/ui/stores/authStore.js +47 -0
- package/src/ui/stores/fileStore.d.ts +30 -0
- package/src/ui/stores/fileStore.js +113 -0
- package/src/ui/stores/followStore.d.ts +24 -0
- package/src/ui/stores/followStore.js +154 -0
- package/src/ui/styles/authStyles.d.ts +331 -0
- package/src/ui/styles/authStyles.js +332 -0
- package/src/ui/styles/fonts.d.ts +20 -0
- package/src/ui/styles/fonts.js +72 -0
- package/src/ui/styles/index.d.ts +4 -0
- package/src/ui/styles/index.js +20 -0
- package/src/ui/styles/spacing.d.ts +48 -0
- package/src/ui/styles/spacing.js +63 -0
- package/src/ui/styles/theme.d.ts +67 -0
- package/src/ui/styles/theme.js +114 -0
- package/src/ui/types/fileManagement.d.ts +40 -0
- package/src/ui/types/fileManagement.js +2 -0
- package/src/ui/types/navigation.d.ts +36 -0
- package/src/ui/types/navigation.js +2 -0
- package/src/ui/utils/avatarUtils.d.ts +22 -0
- package/src/ui/utils/avatarUtils.js +52 -0
- package/src/ui/utils/colorUtils.d.ts +9 -0
- package/src/ui/utils/colorUtils.js +19 -0
- package/src/ui/utils/confirmAction.d.ts +6 -0
- package/src/ui/utils/confirmAction.js +22 -0
- package/src/ui/utils/errorHandlers.d.ts +34 -0
- package/src/ui/utils/errorHandlers.js +128 -0
- package/src/ui/utils/fileManagement.d.ts +86 -0
- package/src/ui/utils/fileManagement.js +238 -0
- package/src/ui/utils/iconNames.d.ts +111 -0
- package/src/ui/utils/iconNames.js +124 -0
- package/src/ui/utils/sessionHelpers.d.ts +64 -0
- package/src/ui/utils/sessionHelpers.js +90 -0
- package/src/ui/utils/storageHelpers.d.ts +27 -0
- package/src/ui/utils/storageHelpers.js +114 -0
- package/src/ui/utils/themeUtils.d.ts +10 -0
- package/src/ui/utils/themeUtils.js +17 -0
- package/src/ui/utils/userUtils.d.ts +28 -0
- package/src/ui/utils/userUtils.js +54 -0
- package/src/utils/hookUtils.d.ts +101 -0
- package/src/utils/hookUtils.js +373 -0
|
@@ -1,10 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
value: v
|
|
23
|
+
});
|
|
24
|
+
} : function (o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = this && this.__importStar || function () {
|
|
28
|
+
var ownKeys = function (o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
}();
|
|
44
|
+
Object.defineProperty(exports, "__esModule", {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
47
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
48
|
+
const React = __importStar(require("react"));
|
|
49
|
+
const react_native_1 = require("react-native");
|
|
50
|
+
const Icon_1 = __importStar(require("./Icon"));
|
|
51
|
+
const theming_1 = require("./theming");
|
|
8
52
|
const CrossFadeIcon = ({
|
|
9
53
|
color,
|
|
10
54
|
size,
|
|
@@ -12,12 +56,12 @@ const CrossFadeIcon = ({
|
|
|
12
56
|
theme: themeOverrides,
|
|
13
57
|
testID = 'cross-fade-icon'
|
|
14
58
|
}) => {
|
|
15
|
-
const theme = useInternalTheme(themeOverrides);
|
|
59
|
+
const theme = (0, theming_1.useInternalTheme)(themeOverrides);
|
|
16
60
|
const [currentIcon, setCurrentIcon] = React.useState(() => source);
|
|
17
61
|
const [previousIcon, setPreviousIcon] = React.useState(null);
|
|
18
62
|
const {
|
|
19
63
|
current: fade
|
|
20
|
-
} = React.useRef(new Animated.Value(1));
|
|
64
|
+
} = React.useRef(new react_native_1.Animated.Value(1));
|
|
21
65
|
const {
|
|
22
66
|
scale
|
|
23
67
|
} = theme.animation;
|
|
@@ -26,9 +70,9 @@ const CrossFadeIcon = ({
|
|
|
26
70
|
setCurrentIcon(() => source);
|
|
27
71
|
}
|
|
28
72
|
React.useEffect(() => {
|
|
29
|
-
if (isValidIcon(previousIcon) && !isEqualIcon(previousIcon, currentIcon)) {
|
|
73
|
+
if ((0, Icon_1.isValidIcon)(previousIcon) && !(0, Icon_1.isEqualIcon)(previousIcon, currentIcon)) {
|
|
30
74
|
fade.setValue(1);
|
|
31
|
-
Animated.timing(fade, {
|
|
75
|
+
react_native_1.Animated.timing(fade, {
|
|
32
76
|
duration: scale * 200,
|
|
33
77
|
toValue: 0,
|
|
34
78
|
useNativeDriver: true
|
|
@@ -48,12 +92,12 @@ const CrossFadeIcon = ({
|
|
|
48
92
|
inputRange: [0, 1],
|
|
49
93
|
outputRange: ['0deg', '-180deg']
|
|
50
94
|
}) : '0deg';
|
|
51
|
-
return
|
|
95
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
52
96
|
style: [styles.content, {
|
|
53
97
|
height: size,
|
|
54
98
|
width: size
|
|
55
99
|
}],
|
|
56
|
-
children: [previousIcon ?
|
|
100
|
+
children: [previousIcon ? (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, {
|
|
57
101
|
style: [styles.icon, {
|
|
58
102
|
opacity: opacityPrev,
|
|
59
103
|
transform: [{
|
|
@@ -61,13 +105,13 @@ const CrossFadeIcon = ({
|
|
|
61
105
|
}]
|
|
62
106
|
}],
|
|
63
107
|
testID: `${testID}-previous`,
|
|
64
|
-
children:
|
|
108
|
+
children: (0, jsx_runtime_1.jsx)(Icon_1.default, {
|
|
65
109
|
source: previousIcon,
|
|
66
110
|
size: size,
|
|
67
111
|
color: color,
|
|
68
112
|
theme: theme
|
|
69
113
|
})
|
|
70
|
-
}) : null,
|
|
114
|
+
}) : null, (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, {
|
|
71
115
|
style: [styles.icon, {
|
|
72
116
|
opacity: opacityNext,
|
|
73
117
|
transform: [{
|
|
@@ -75,7 +119,7 @@ const CrossFadeIcon = ({
|
|
|
75
119
|
}]
|
|
76
120
|
}],
|
|
77
121
|
testID: `${testID}-current`,
|
|
78
|
-
children:
|
|
122
|
+
children: (0, jsx_runtime_1.jsx)(Icon_1.default, {
|
|
79
123
|
source: currentIcon,
|
|
80
124
|
size: size,
|
|
81
125
|
color: color,
|
|
@@ -84,8 +128,8 @@ const CrossFadeIcon = ({
|
|
|
84
128
|
})]
|
|
85
129
|
});
|
|
86
130
|
};
|
|
87
|
-
|
|
88
|
-
const styles = StyleSheet.create({
|
|
131
|
+
exports.default = CrossFadeIcon;
|
|
132
|
+
const styles = react_native_1.StyleSheet.create({
|
|
89
133
|
content: {
|
|
90
134
|
alignItems: 'center',
|
|
91
135
|
justifyContent: 'center'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__createBinding","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","v","value","__importStar","ownKeys","getOwnPropertyNames","ar","prototype","hasOwnProperty","call","length","mod","result","i","exports","jsx_runtime_1","require","React","react_native_1","Icon_1","theming_1","CrossFadeIcon","color","size","source","theme","themeOverrides","testID","useInternalTheme","currentIcon","setCurrentIcon","useState","previousIcon","setPreviousIcon","current","fade","useRef","Animated","Value","scale","animation","useEffect","isValidIcon","isEqualIcon","setValue","timing","duration","toValue","useNativeDriver","start","opacityPrev","opacityNext","interpolate","inputRange","outputRange","rotatePrev","rotateNext","jsxs","View","style","styles","content","height","width","children","jsx","icon","opacity","transform","rotate","default","StyleSheet","alignItems","justifyContent","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["ui/components/CrossFadeIcon.js"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,eAAe,GAAI,IAAI,IAAI,IAAI,CAACA,eAAe,KAAMC,MAAM,CAACC,MAAM,GAAI,UAASC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE;EAC5F,IAAIA,EAAE,KAAKC,SAAS,EAAED,EAAE,GAAGD,CAAC;EAC5B,IAAIG,IAAI,GAAGP,MAAM,CAACQ,wBAAwB,CAACL,CAAC,EAAEC,CAAC,CAAC;EAChD,IAAI,CAACG,I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Aa,CAACkD,GAAG,EAAE/C,cAAc,CAACmB,QAAQ,CAACqB,IAAI,EAAE;MAAEC,KAAK,EAAE,CAC1NC,MAAM,CAACM,IAAI,EACX;QACIC,OAAO,EAAEhB,WAAW;QACpBiB,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAEb;QAAW,CAAC;MACtC,CAAC,CACJ;MAAE7B,MAAM,EAAE,GAAGA,MAAM,UAAU;MAAEqC,QAAQ,EAAE,CAAC,CAAC,EAAEjD,aAAa,CAACkD,GAAG,EAAE9C,MAAM,CAACmD,OAAO,EAAE;QAAE9C,MAAM,EAAEK,WAAW;QAAEN,IAAI,EAAEA,IAAI;QAAED,KAAK,EAAEA,KAAK;QAAEG,KAAK,EAAEA;MAAM,CAAC;IAAE,CAAC,CAAC;EAAE,CAAC,CAAC;AACxK,CAAC;AACDX,OAAO,CAACwD,OAAO,GAAGjD,aAAa;AAC/B,MAAMuC,MAAM,GAAG1C,cAAc,CAACqD,UAAU,CAACrF,MAAM,CAAC;EAC5C2E,OAAO,EAAE;IACLW,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDP,IAAI,EAAE;IACFQ,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACZ;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
|
+
const react_1 = __importDefault(require("react"));
|
|
13
|
+
const react_native_1 = require("react-native");
|
|
6
14
|
/**
|
|
7
15
|
* Reusable empty state component
|
|
8
16
|
* Provides consistent empty state displays across screens
|
|
@@ -11,9 +19,9 @@ const EmptyState = ({
|
|
|
11
19
|
message,
|
|
12
20
|
textColor
|
|
13
21
|
}) => {
|
|
14
|
-
return
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
15
23
|
style: styles.container,
|
|
16
|
-
children:
|
|
24
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
17
25
|
style: [styles.message, textColor ? {
|
|
18
26
|
color: textColor
|
|
19
27
|
} : undefined],
|
|
@@ -21,7 +29,7 @@ const EmptyState = ({
|
|
|
21
29
|
})
|
|
22
30
|
});
|
|
23
31
|
};
|
|
24
|
-
const styles = StyleSheet.create({
|
|
32
|
+
const styles = react_native_1.StyleSheet.create({
|
|
25
33
|
container: {
|
|
26
34
|
padding: 40,
|
|
27
35
|
alignItems: 'center',
|
|
@@ -32,5 +40,5 @@ const styles = StyleSheet.create({
|
|
|
32
40
|
textAlign: 'center'
|
|
33
41
|
}
|
|
34
42
|
});
|
|
35
|
-
|
|
43
|
+
exports.default = react_1.default.memo(EmptyState);
|
|
36
44
|
//# sourceMappingURL=EmptyState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__importDefault","mod","__esModule","Object","defineProperty","exports","value","jsx_runtime_1","require","react_1","react_native_1","EmptyState","message","textColor","jsx","View","style","styles","container","children","Text","color","undefined","StyleSheet","create","padding","alignItems","justifyContent","fontSize","textAlign","default","memo"],"sourceRoot":"../../../../src","sources":["ui/components/EmptyState.js"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,eAAe,GAAI,IAAI,IAAI,IAAI,CAACA,eAAe,IAAK,UAAUC,GAAG,EAAE;EACnE,OAAQA,GAAG,IAAIA,GAAG,CAACC,UAAU,GAAID,GAAG,GAAG;IAAE,SA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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
value: v
|
|
23
|
+
});
|
|
24
|
+
} : function (o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = this && this.__importStar || function () {
|
|
28
|
+
var ownKeys = function (o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
}();
|
|
44
|
+
Object.defineProperty(exports, "__esModule", {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
47
|
+
exports.FollowButton = void 0;
|
|
48
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
const react_1 = require("react");
|
|
50
|
+
const react_native_1 = require("react-native");
|
|
51
|
+
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
52
|
+
const OxyContext_1 = require("../context/OxyContext");
|
|
53
|
+
const fonts_1 = require("../styles/fonts");
|
|
54
|
+
const sonner_1 = require("../../lib/sonner");
|
|
55
|
+
const useFollow_1 = require("../hooks/useFollow");
|
|
56
|
+
const theme_1 = require("../styles/theme");
|
|
12
57
|
// Create animated TouchableOpacity
|
|
13
|
-
const AnimatedTouchableOpacity =
|
|
14
|
-
const AnimatedText =
|
|
58
|
+
const AnimatedTouchableOpacity = react_native_reanimated_1.default.createAnimatedComponent(react_native_1.TouchableOpacity);
|
|
59
|
+
const AnimatedText = react_native_reanimated_1.default.createAnimatedComponent(react_native_1.Text);
|
|
15
60
|
/**
|
|
16
61
|
* Inner component that handles all hooks and rendering.
|
|
17
62
|
*
|
|
@@ -25,7 +70,7 @@ const AnimatedText = Animated.createAnimatedComponent(Text);
|
|
|
25
70
|
* N buttons would all re-render on any context change (session socket events,
|
|
26
71
|
* token refreshes, etc.).
|
|
27
72
|
*/
|
|
28
|
-
const FollowButtonInner =
|
|
73
|
+
const FollowButtonInner = (0, react_1.memo)(function FollowButtonInner({
|
|
29
74
|
userId,
|
|
30
75
|
oxyServices,
|
|
31
76
|
initiallyFollowing = false,
|
|
@@ -38,8 +83,7 @@ const FollowButtonInner = /*#__PURE__*/memo(function FollowButtonInner({
|
|
|
38
83
|
preventParentActions = true,
|
|
39
84
|
theme = 'light'
|
|
40
85
|
}) {
|
|
41
|
-
const colors = useThemeColors(theme);
|
|
42
|
-
|
|
86
|
+
const colors = (0, theme_1.useThemeColors)(theme);
|
|
43
87
|
// Uses granular Zustand selectors — only re-renders when THIS user's data changes
|
|
44
88
|
const {
|
|
45
89
|
isFollowing,
|
|
@@ -47,26 +91,23 @@ const FollowButtonInner = /*#__PURE__*/memo(function FollowButtonInner({
|
|
|
47
91
|
toggleFollow,
|
|
48
92
|
setFollowStatus,
|
|
49
93
|
fetchStatus
|
|
50
|
-
} = useFollowForButton(userId, oxyServices);
|
|
51
|
-
|
|
94
|
+
} = (0, useFollow_1.useFollowForButton)(userId, oxyServices);
|
|
52
95
|
// Animation values
|
|
53
|
-
const animationProgress = useSharedValue(isFollowing ? 1 : 0);
|
|
54
|
-
const scale = useSharedValue(1);
|
|
55
|
-
|
|
96
|
+
const animationProgress = (0, react_native_reanimated_1.useSharedValue)(isFollowing ? 1 : 0);
|
|
97
|
+
const scale = (0, react_native_reanimated_1.useSharedValue)(1);
|
|
56
98
|
// Stable press handler — depends on primitives only
|
|
57
|
-
const handlePress = useCallback(async event => {
|
|
99
|
+
const handlePress = (0, react_1.useCallback)(async event => {
|
|
58
100
|
if (preventParentActions && event && event.preventDefault) {
|
|
59
101
|
event.preventDefault();
|
|
60
102
|
event.stopPropagation?.();
|
|
61
103
|
}
|
|
62
104
|
if (disabled || isLoading) return;
|
|
63
|
-
|
|
64
105
|
// Press animation
|
|
65
|
-
scale.value = withTiming(0.95, {
|
|
106
|
+
scale.value = (0, react_native_reanimated_1.withTiming)(0.95, {
|
|
66
107
|
duration: 100
|
|
67
108
|
}, finished => {
|
|
68
109
|
if (finished) {
|
|
69
|
-
scale.value = withSpring(1, {
|
|
110
|
+
scale.value = (0, react_native_reanimated_1.withSpring)(1, {
|
|
70
111
|
damping: 15,
|
|
71
112
|
stiffness: 200
|
|
72
113
|
});
|
|
@@ -77,66 +118,61 @@ const FollowButtonInner = /*#__PURE__*/memo(function FollowButtonInner({
|
|
|
77
118
|
if (onFollowChange) onFollowChange(!isFollowing);
|
|
78
119
|
} catch (err) {
|
|
79
120
|
const error = err instanceof Error ? err : new Error(String(err));
|
|
80
|
-
toast.error(error.message || 'Failed to update follow status');
|
|
121
|
+
sonner_1.toast.error(error.message || 'Failed to update follow status');
|
|
81
122
|
}
|
|
82
123
|
}, [disabled, isLoading, toggleFollow, onFollowChange, isFollowing, preventParentActions, scale]);
|
|
83
|
-
|
|
84
124
|
// Set initial follow status on mount if provided and not already set
|
|
85
|
-
useEffect(() => {
|
|
125
|
+
(0, react_1.useEffect)(() => {
|
|
86
126
|
if (userId && !isFollowing && initiallyFollowing) {
|
|
87
127
|
setFollowStatus(initiallyFollowing);
|
|
88
128
|
}
|
|
89
129
|
// Intentional: only run on mount with initial values
|
|
90
130
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
91
131
|
}, [userId, initiallyFollowing]);
|
|
92
|
-
|
|
93
132
|
// Fetch latest follow status from backend on mount
|
|
94
|
-
useEffect(() => {
|
|
133
|
+
(0, react_1.useEffect)(() => {
|
|
95
134
|
if (userId) {
|
|
96
135
|
fetchStatus();
|
|
97
136
|
}
|
|
98
137
|
}, [userId, fetchStatus]);
|
|
99
|
-
|
|
100
138
|
// Animate button on follow/unfollow
|
|
101
|
-
useEffect(() => {
|
|
102
|
-
animationProgress.value = withTiming(isFollowing ? 1 : 0, {
|
|
139
|
+
(0, react_1.useEffect)(() => {
|
|
140
|
+
animationProgress.value = (0, react_native_reanimated_1.withTiming)(isFollowing ? 1 : 0, {
|
|
103
141
|
duration: 300,
|
|
104
|
-
easing: Easing.inOut(Easing.ease)
|
|
142
|
+
easing: react_native_reanimated_1.Easing.inOut(react_native_reanimated_1.Easing.ease)
|
|
105
143
|
});
|
|
106
144
|
}, [isFollowing, animationProgress]);
|
|
107
|
-
|
|
108
145
|
// Animated styles
|
|
109
|
-
const animatedButtonStyle = useAnimatedStyle(() => {
|
|
146
|
+
const animatedButtonStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
|
|
110
147
|
return {
|
|
111
148
|
transform: [{
|
|
112
149
|
scale: scale.value
|
|
113
150
|
}],
|
|
114
|
-
backgroundColor: interpolateColor(animationProgress.value, [0, 1], [colors.background, colors.primary]),
|
|
115
|
-
borderColor: interpolateColor(animationProgress.value, [0, 1], [colors.border, colors.primary])
|
|
151
|
+
backgroundColor: (0, react_native_reanimated_1.interpolateColor)(animationProgress.value, [0, 1], [colors.background, colors.primary]),
|
|
152
|
+
borderColor: (0, react_native_reanimated_1.interpolateColor)(animationProgress.value, [0, 1], [colors.border, colors.primary])
|
|
116
153
|
};
|
|
117
154
|
}, [colors]);
|
|
118
|
-
const animatedTextStyle = useAnimatedStyle(() => {
|
|
155
|
+
const animatedTextStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
|
|
119
156
|
return {
|
|
120
|
-
color: interpolateColor(animationProgress.value, [0, 1], [colors.text, '#FFFFFF'])
|
|
157
|
+
color: (0, react_native_reanimated_1.interpolateColor)(animationProgress.value, [0, 1], [colors.text, '#FFFFFF'])
|
|
121
158
|
};
|
|
122
159
|
}, [colors]);
|
|
123
160
|
const baseButtonStyle = getBaseButtonStyle(size, style);
|
|
124
161
|
const baseTextStyle = getBaseTextStyle(size, textStyle);
|
|
125
|
-
return
|
|
162
|
+
return (0, jsx_runtime_1.jsx)(AnimatedTouchableOpacity, {
|
|
126
163
|
style: [baseButtonStyle, animatedButtonStyle],
|
|
127
164
|
onPress: handlePress,
|
|
128
165
|
disabled: disabled || isLoading,
|
|
129
166
|
activeOpacity: 0.8,
|
|
130
|
-
children: showLoadingState && isLoading ?
|
|
167
|
+
children: showLoadingState && isLoading ? (0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, {
|
|
131
168
|
size: "small",
|
|
132
169
|
color: isFollowing ? '#FFFFFF' : colors.primary
|
|
133
|
-
}) :
|
|
170
|
+
}) : (0, jsx_runtime_1.jsx)(AnimatedText, {
|
|
134
171
|
style: [baseTextStyle, animatedTextStyle],
|
|
135
172
|
children: isFollowing ? 'Following' : 'Follow'
|
|
136
173
|
})
|
|
137
174
|
});
|
|
138
175
|
});
|
|
139
|
-
|
|
140
176
|
/**
|
|
141
177
|
* Outer wrapper that handles the "should we render?" check.
|
|
142
178
|
*
|
|
@@ -153,21 +189,20 @@ const FollowButton = props => {
|
|
|
153
189
|
oxyServices,
|
|
154
190
|
isAuthenticated,
|
|
155
191
|
user: currentUser
|
|
156
|
-
} = useOxy();
|
|
192
|
+
} = (0, OxyContext_1.useOxy)();
|
|
157
193
|
const currentUserId = currentUser?.id ? String(currentUser.id).trim() : '';
|
|
158
194
|
const targetUserId = props.userId ? String(props.userId).trim() : '';
|
|
159
|
-
|
|
160
195
|
// Don't render if not authenticated or viewing own profile
|
|
161
196
|
if (!isAuthenticated || !targetUserId || currentUserId && currentUserId === targetUserId) {
|
|
162
197
|
return null;
|
|
163
198
|
}
|
|
164
|
-
return
|
|
199
|
+
return (0, jsx_runtime_1.jsx)(FollowButtonInner, {
|
|
165
200
|
...props,
|
|
166
201
|
userId: targetUserId,
|
|
167
202
|
oxyServices: oxyServices
|
|
168
203
|
});
|
|
169
204
|
};
|
|
170
|
-
|
|
205
|
+
exports.FollowButton = FollowButton;
|
|
171
206
|
// Pure helper functions (no hooks, no state) extracted outside the component
|
|
172
207
|
function getBaseButtonStyle(size, style) {
|
|
173
208
|
const baseStyle = {
|
|
@@ -175,7 +210,7 @@ function getBaseButtonStyle(size, style) {
|
|
|
175
210
|
alignItems: 'center',
|
|
176
211
|
justifyContent: 'center',
|
|
177
212
|
borderWidth: 1,
|
|
178
|
-
...Platform.select({
|
|
213
|
+
...react_native_1.Platform.select({
|
|
179
214
|
web: {},
|
|
180
215
|
default: {
|
|
181
216
|
shadowColor: '#000',
|
|
@@ -216,7 +251,7 @@ function getBaseButtonStyle(size, style) {
|
|
|
216
251
|
}
|
|
217
252
|
function getBaseTextStyle(size, textStyle) {
|
|
218
253
|
const baseTextStyle = {
|
|
219
|
-
fontFamily: fontFamilies.interSemiBold,
|
|
254
|
+
fontFamily: fonts_1.fontFamilies.interSemiBold,
|
|
220
255
|
fontWeight: '600'
|
|
221
256
|
};
|
|
222
257
|
let sizeTextStyle;
|
|
@@ -235,6 +270,5 @@ function getBaseTextStyle(size, textStyle) {
|
|
|
235
270
|
}
|
|
236
271
|
return [baseTextStyle, sizeTextStyle, textStyle];
|
|
237
272
|
}
|
|
238
|
-
|
|
239
|
-
export default FollowButton;
|
|
273
|
+
exports.default = FollowButton;
|
|
240
274
|
//# sourceMappingURL=FollowButton.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
{"version":3,"names":["React","useEffect","useCallback","memo","TouchableOpacity","Text","Platform","ActivityIndicator","Animated","useSharedValue","useAnimatedStyle","withSpring","interpolateColor","Easing","withTiming","useOxy","fontFamilies","toast","useFollowForButton","useThemeColors","jsx","_jsx","AnimatedTouchableOpacity","createAnimatedComponent","AnimatedText","FollowButtonInner","userId","oxyServices","initiallyFollowing","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","theme","colors","isFollowing","isLoading","toggleFollow","setFollowStatus","fetchStatus","animationProgress","scale","handlePress","event","preventDefault","stopPropagation","value","duration","finished","damping","stiffness","err","error","Error","String","message","easing","inOut","ease","animatedButtonStyle","transform","backgroundColor","background","primary","borderColor","border","animatedTextStyle","color","text","baseButtonStyle","getBaseButtonStyle","baseTextStyle","getBaseTextStyle","onPress","activeOpacity","children","FollowButton","props","isAuthenticated","user","currentUser","currentUserId","id","trim","targetUserId","baseStyle","flexDirection","alignItems","justifyContent","borderWidth","select","web","default","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","sizeStyle","paddingVertical","paddingHorizontal","minWidth","borderRadius","fontFamily","interSemiBold","fontWeight","sizeTextStyle","fontSize"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,WAAW,EAAEC,IAAI,QAAQ,OAAO;AAC3D,SACEC,gBAAgB,EAChBC,IAAI,EAKJC,QAAQ,EACRC,iBAAiB,QACZ,cAAc;AACrB,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAA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AAgBA,CAACxD,IAAI,EAAEG,SAAS,EAAE;EACvC,MAAMoD,aAAa,GAAG;IAClBoC,UAAU,EAAE1G,OAAO,CAAC2G,YAAY,CAACC,aAAa;IAC9CC,UAAU,EAAE;EAChB,CAAC;EACD,IAAIC,aAAa;EACjB,IAAI/F,IAAI,KAAK,OAAO,EAAE;IAClB+F,aAAa,GAAG;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACpC,CAAC,MACI,IAAIhG,IAAI,KAAK,OAAO,EAAE;IACvB+F,aAAa,GAAG;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACpC,CAAC,MACI;IACDD,aAAa,GAAG;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACpC;EACA,OAAO,CAACzC,aAAa,EAAEwC,aAAa,EAAE5F,SAAS,CAAC;AACpD;AACA1B,OAAO,CAACa,OAAO,GAAGZ,YAAY","ignoreList":[]}
|
|
@@ -1,14 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
} : function (o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
});
|
|
19
|
+
var __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
value: v
|
|
23
|
+
});
|
|
24
|
+
} : function (o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = this && this.__importStar || function () {
|
|
28
|
+
var ownKeys = function (o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
}();
|
|
44
|
+
Object.defineProperty(exports, "__esModule", {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
47
|
+
exports.setupFonts = exports.FontLoader = void 0;
|
|
48
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
49
|
+
const react_1 = require("react");
|
|
50
|
+
const react_native_1 = require("react-native");
|
|
51
|
+
const Font = __importStar(require("expo-font"));
|
|
7
52
|
/**
|
|
8
53
|
* Get the Inter font sources for both native and web environments
|
|
9
54
|
* This is specifically designed to work when distributed as an npm package
|
|
10
55
|
*/
|
|
11
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
12
56
|
const getInterFonts = () => {
|
|
13
57
|
try {
|
|
14
58
|
// For both development and when used as a package
|
|
@@ -29,17 +73,16 @@ const getInterFonts = () => {
|
|
|
29
73
|
return null;
|
|
30
74
|
}
|
|
31
75
|
};
|
|
32
|
-
|
|
33
76
|
/**
|
|
34
77
|
* FontLoader component that loads custom fonts in the background while rendering children immediately
|
|
35
78
|
* This works in both the package development and when consumed as an npm package
|
|
36
79
|
* Children render immediately with system fonts as fallback until custom fonts are loaded
|
|
37
80
|
*/
|
|
38
|
-
|
|
81
|
+
const FontLoader = ({
|
|
39
82
|
children
|
|
40
83
|
}) => {
|
|
41
|
-
const [fontState, setFontState] = useState('loading');
|
|
42
|
-
useEffect(() => {
|
|
84
|
+
const [fontState, setFontState] = (0, react_1.useState)('loading');
|
|
85
|
+
(0, react_1.useEffect)(() => {
|
|
43
86
|
const loadFonts = async () => {
|
|
44
87
|
try {
|
|
45
88
|
// Get all the font weights
|
|
@@ -47,7 +90,6 @@ export const FontLoader = ({
|
|
|
47
90
|
if (!interFonts) {
|
|
48
91
|
throw new Error('Inter font files not found');
|
|
49
92
|
}
|
|
50
|
-
|
|
51
93
|
// Load all the static Inter fonts with their respective weights
|
|
52
94
|
await Font.loadAsync(interFonts);
|
|
53
95
|
setFontState('loaded');
|
|
@@ -60,36 +102,33 @@ export const FontLoader = ({
|
|
|
60
102
|
};
|
|
61
103
|
loadFonts();
|
|
62
104
|
}, []);
|
|
63
|
-
|
|
64
105
|
// Always render children immediately - fonts will load in background
|
|
65
106
|
// If fonts aren't loaded yet, the app will use system fonts as fallback
|
|
66
107
|
if (fontState === 'error' && __DEV__) {
|
|
67
108
|
console.warn('Fonts failed to load. Using system fonts instead.');
|
|
68
109
|
}
|
|
69
|
-
|
|
70
110
|
// Render children immediately, even while fonts are loading
|
|
71
111
|
// Fonts will apply when they're ready, otherwise system fonts are used
|
|
72
|
-
return
|
|
112
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {
|
|
73
113
|
children: children
|
|
74
114
|
});
|
|
75
115
|
};
|
|
76
|
-
|
|
116
|
+
exports.FontLoader = FontLoader;
|
|
77
117
|
/**
|
|
78
118
|
* Setup fonts for applications consuming this package
|
|
79
119
|
* This should be called by applications using your package
|
|
80
120
|
*/
|
|
81
|
-
|
|
121
|
+
const setupFonts = async () => {
|
|
82
122
|
try {
|
|
83
123
|
const interFonts = getInterFonts();
|
|
84
124
|
if (!interFonts) {
|
|
85
125
|
throw new Error('Inter font files not found');
|
|
86
126
|
}
|
|
87
|
-
if (Platform.OS === 'web') {
|
|
127
|
+
if (react_native_1.Platform.OS === 'web') {
|
|
88
128
|
// For web platform, dynamically inject CSS to load the fonts
|
|
89
129
|
if (typeof document !== 'undefined') {
|
|
90
130
|
// Create a style element
|
|
91
131
|
const style = document.createElement('style');
|
|
92
|
-
|
|
93
132
|
// Define @font-face rules for each font weight
|
|
94
133
|
const fontFaceRules = `
|
|
95
134
|
@font-face {
|
|
@@ -154,4 +193,5 @@ export const setupFonts = async () => {
|
|
|
154
193
|
return false;
|
|
155
194
|
}
|
|
156
195
|
};
|
|
196
|
+
exports.setupFonts = setupFonts;
|
|
157
197
|
//# sourceMappingURL=FontLoader.js.map
|