@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
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
7
6
|
exports.useSettingToggle = useSettingToggle;
|
|
8
7
|
exports.useSettingToggles = useSettingToggles;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const sonner_1 = require("../../lib/sonner");
|
|
11
10
|
/**
|
|
12
11
|
* Hook for handling boolean toggle settings with optimistic updates.
|
|
13
12
|
* Automatically reverts to the previous value if the save fails.
|
|
@@ -30,31 +29,29 @@ function useSettingToggle(options) {
|
|
|
30
29
|
revertOnError = true,
|
|
31
30
|
showSuccessToast = false
|
|
32
31
|
} = options;
|
|
33
|
-
const [value, setValue] = (0,
|
|
34
|
-
const [isSaving, setIsSaving] = (0,
|
|
35
|
-
|
|
32
|
+
const [value, setValue] = (0, react_1.useState)(initialValue);
|
|
33
|
+
const [isSaving, setIsSaving] = (0, react_1.useState)(false);
|
|
36
34
|
// Update value when initialValue changes (e.g., from server)
|
|
37
|
-
(0,
|
|
35
|
+
(0, react_1.useEffect)(() => {
|
|
38
36
|
setValue(initialValue);
|
|
39
37
|
}, [initialValue]);
|
|
40
|
-
const toggle = (0,
|
|
38
|
+
const toggle = (0, react_1.useCallback)(async () => {
|
|
41
39
|
const previousValue = value;
|
|
42
40
|
const newValue = !value;
|
|
43
|
-
|
|
44
41
|
// Optimistic update
|
|
45
42
|
setValue(newValue);
|
|
46
43
|
setIsSaving(true);
|
|
47
44
|
try {
|
|
48
45
|
await onSave(newValue);
|
|
49
46
|
if (showSuccessToast && successMessage) {
|
|
50
|
-
|
|
47
|
+
sonner_1.toast.success(successMessage);
|
|
51
48
|
}
|
|
52
49
|
} catch (err) {
|
|
53
50
|
// Revert on error
|
|
54
51
|
if (revertOnError) {
|
|
55
52
|
setValue(previousValue);
|
|
56
53
|
}
|
|
57
|
-
|
|
54
|
+
sonner_1.toast.error(errorMessage || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
58
55
|
} finally {
|
|
59
56
|
setIsSaving(false);
|
|
60
57
|
}
|
|
@@ -66,7 +63,6 @@ function useSettingToggle(options) {
|
|
|
66
63
|
setValue
|
|
67
64
|
};
|
|
68
65
|
}
|
|
69
|
-
|
|
70
66
|
/**
|
|
71
67
|
* Hook for managing multiple toggle settings at once.
|
|
72
68
|
* Useful when you have several related boolean settings.
|
|
@@ -78,17 +74,15 @@ function useSettingToggles(options) {
|
|
|
78
74
|
errorMessage = 'Failed to save setting',
|
|
79
75
|
revertOnError = true
|
|
80
76
|
} = options;
|
|
81
|
-
const [values, setValues] = (0,
|
|
82
|
-
const [savingKeys, setSavingKeys] = (0,
|
|
83
|
-
|
|
77
|
+
const [values, setValues] = (0, react_1.useState)(initialValues);
|
|
78
|
+
const [savingKeys, setSavingKeys] = (0, react_1.useState)(new Set());
|
|
84
79
|
// Update values when initialValues change
|
|
85
|
-
(0,
|
|
80
|
+
(0, react_1.useEffect)(() => {
|
|
86
81
|
setValues(initialValues);
|
|
87
82
|
}, [initialValues]);
|
|
88
|
-
const toggle = (0,
|
|
83
|
+
const toggle = (0, react_1.useCallback)(async key => {
|
|
89
84
|
const previousValue = values[key];
|
|
90
85
|
const newValue = !previousValue;
|
|
91
|
-
|
|
92
86
|
// Optimistic update
|
|
93
87
|
setValues(prev => ({
|
|
94
88
|
...prev,
|
|
@@ -106,7 +100,7 @@ function useSettingToggles(options) {
|
|
|
106
100
|
}));
|
|
107
101
|
}
|
|
108
102
|
const message = typeof errorMessage === 'function' ? errorMessage(key) : errorMessage;
|
|
109
|
-
|
|
103
|
+
sonner_1.toast.error(message || (err instanceof Error ? err.message : null) || 'An error occurred');
|
|
110
104
|
} finally {
|
|
111
105
|
setSavingKeys(prev => {
|
|
112
106
|
const next = new Set(prev);
|
|
@@ -115,7 +109,7 @@ function useSettingToggles(options) {
|
|
|
115
109
|
});
|
|
116
110
|
}
|
|
117
111
|
}, [values, onSave, errorMessage, revertOnError]);
|
|
118
|
-
const setValuesExternal = (0,
|
|
112
|
+
const setValuesExternal = (0, react_1.useCallback)(newValues => {
|
|
119
113
|
setValues(prev => ({
|
|
120
114
|
...prev,
|
|
121
115
|
...newValues
|
|
@@ -128,5 +122,5 @@ function useSettingToggles(options) {
|
|
|
128
122
|
setValues: setValuesExternal
|
|
129
123
|
};
|
|
130
124
|
}
|
|
131
|
-
|
|
132
|
-
//# sourceMappingURL=useSettingToggle.js.map
|
|
125
|
+
exports.default = useSettingToggle;
|
|
126
|
+
//# sourceMappingURL=useSettingToggle.js.mapgURL=useSettingToggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","useSettingToggle","useSettingToggles","react_1","require","sonner_1","options","initialValue","onSave","successMessage","errorMessage","revertOnError","showSuccessToast","setValue","useState","isSaving","setIsSaving","useEffect","toggle","useCallback","previousValue","newValue","toast","success","err","error","Error","message","initialValues","values","setValues","savingKeys","setSavingKeys","Set","key","prev","add","next","delete","setValuesExternal","newValues","default"],"sourceRoot":"../../../../src","sources":["ui/hooks/useSettingToggle.js"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,gBAAgB,GAAGA,gBAAgB;AAC3CF,OAAO,CAACG,iBAAiB,GAAGA,iBAAiB;AAC7C,MAAMC,OAAO,GAAGC,OAAO,CAAC,OAA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
-
|
|
8
|
-
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const storageHelpers_1 = require("../utils/storageHelpers");
|
|
9
9
|
/**
|
|
10
10
|
* Simple React hook that initializes platform-appropriate storage.
|
|
11
11
|
* Returns storage instance once ready, or null if initialization failed.
|
|
@@ -14,14 +14,14 @@ const useStorage = ({
|
|
|
14
14
|
onError,
|
|
15
15
|
logger
|
|
16
16
|
} = {}) => {
|
|
17
|
-
const [storage, setStorage] = (0,
|
|
18
|
-
const initRef = (0,
|
|
19
|
-
(0,
|
|
17
|
+
const [storage, setStorage] = (0, react_1.useState)(null);
|
|
18
|
+
const initRef = (0, react_1.useRef)(null);
|
|
19
|
+
(0, react_1.useEffect)(() => {
|
|
20
20
|
// Prevent multiple initializations
|
|
21
21
|
if (initRef.current) return;
|
|
22
22
|
initRef.current = (async () => {
|
|
23
23
|
try {
|
|
24
|
-
const storageInstance = await (0,
|
|
24
|
+
const storageInstance = await (0, storageHelpers_1.createPlatformStorage)();
|
|
25
25
|
setStorage(storageInstance);
|
|
26
26
|
} catch (err) {
|
|
27
27
|
const message = err instanceof Error ? err.message : 'Failed to initialize storage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","useStorage","react_1","require","storageHelpers_1","onError","logger","storage","setStorage","useState","initRef","useRef","useEffect","current","storageInstance","createPlatformStorage","err","message","Error","code","status","isReady"],"sourceRoot":"../../../../src","sources":["ui/hooks/useStorage.js"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,UAAU,GAAG,KAAK,CAAC;AAC3B,MAAMC,OAAO,GAAGC,OAAO,CAAC,OAAO,CAAC;AAChC,MAAMC,gBAAgB,GAAGD,OAAO,CAAC,yBAAyB,CAAC;AAC3D;AACA;AACA;AACA;AACA,MAAMF,UAAU,GAAGA,CAAC;EAAEI,OAAO;EAAEC;AAAQ,CAAC,GAAG,CAAC,CAAC,KAAK;EAC9C,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAEN,OAAO,CAACO,QAAQ,EAAE,IAAI,CAAC;EACzD,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAER,OAAO,CAACS,MAAM,EAAE,IAAI,CAAC;EACzC,CAAC,CAAC,EAAET,OAAO,CAACU,SAAS,EAAE,MAAM;IACzB;IACA,IAAIF,OAAO,CAACG,OAAO,EACf;IACJH,OAAO,CAACG,OAAO,GAAG,CAAC,YAAY;MAC3B,IAAI;QACA,MAAMC,eAAe,GAAG,MAAM,CAAC,CAAC,EAAEV,gBAAgB,CAACW,qBAAqB,EAAE,CAAC;QAC3EP,UAAU,CAACM,eAAe,CAAC;MAC/B,CAAC,CACD,OAAOE,GAAG,EAAE;QACR,MAAMC,OAAO,GAAGD,GAAG,YAAYE,KAAK,GAAGF,GAAG,CAACC,OAAO,GAAG,8BAA8B;QACnF,IAAIX,MAAM,EAAE;UACRA,MAAM,CAACW,OAAO,EAAED,GAAG,CAAC;QACxB;QACAX,OAAO,GAAG;UACNY,OAAO;UACPE,IAAI,EAAE,oBAAoB;UAC1BC,MAAM,EAAE;QACZ,CAAC,CAAC;MACN;IACJ,CAAC,EAAE,CAAC;EACR,CAAC,EAAE,CAACd,MAAM,EAAED,OAAO,CAAC,CAAC;EACrB,OAAO;IACHE,OAAO;IACPc,OAAO,EAAEd,OAAO,KAAK;EACzB,CAAC;AACL,CAAC;AACDR,OAAO,CAACE,UAAU,GAAGA,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","useThemeColors","react_1","require","useColorScheme_1","theme_1","colorScheme","useColorScheme","useMemo","Colors"],"sourceRoot":"../../../../src","sources":["ui/hooks/useThemeColors.js"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,cAAc,GAAG,KAAK,CAAC;AAC/B,MAAMC,OAAO,GAAGC,OAAO,CAAC,OAAO,CAAC;AAChC,MAAMC,gBAAgB,GAAGD,OAAO,CAAC,kBAAkB,CAAC;AACpD,MAAME,OAAO,GAAGF,OAAO,CAAC,oBAAoB,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMF,cAAc,GAAGA,CAAA,KAAM;EACzB,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAEF,gBAAgB,CAACG,cAAc,EAAE,CAAC;EAC1D,OAAO,CAAC,CAAC,EAAEL,OAAO,CAACM,OAAO,EAAE,MAAM;IAC9B,OAAOH,OAAO,CAACI,MAAM,CAACH,WAAW,IAAI,OAAO,CAAC;EACjD,CAAC,EAAE,CAACA,WAAW,CAAC,CAAC;AACrB,CAAC;AACDP,OAAO,CAACE,cAAc,GAAGA,cAAc","ignoreList":[]}
|
|
@@ -4,24 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useThemeStyles = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const useColorScheme_1 = require("./useColorScheme");
|
|
9
|
+
const theme_1 = require("../constants/theme");
|
|
10
|
+
const themeUtils_1 = require("../utils/themeUtils");
|
|
11
11
|
/**
|
|
12
12
|
* Reusable hook for theme styles
|
|
13
13
|
* Replaces duplicated themeStyles useMemo pattern across multiple screens
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* Provides consistent theme colors across all service screens:
|
|
16
16
|
* - Base colors (text, background, borders)
|
|
17
17
|
* - Semantic colors (primary, danger, success)
|
|
18
18
|
* - Theme-aware calculations
|
|
19
19
|
* - Normalized color scheme and Colors object
|
|
20
|
-
*
|
|
20
|
+
*
|
|
21
21
|
* @param theme - Theme string ('light' | 'dark')
|
|
22
22
|
* @param colorSchemeFromHook - Optional color scheme from useColorScheme() hook. If not provided, will call useColorScheme() internally.
|
|
23
23
|
* @returns ThemeStyles object with consistent color values
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```tsx
|
|
27
27
|
* const themeStyles = useThemeStyles(theme);
|
|
@@ -29,7 +29,7 @@ var _themeUtils = require("../utils/themeUtils.js");
|
|
|
29
29
|
* <Text style={{ color: themeStyles.textColor }}>Hello</Text>
|
|
30
30
|
* </View>
|
|
31
31
|
* ```
|
|
32
|
-
*
|
|
32
|
+
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```tsx
|
|
35
35
|
* const colorScheme = useColorScheme();
|
|
@@ -38,12 +38,12 @@ var _themeUtils = require("../utils/themeUtils.js");
|
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
const useThemeStyles = (theme, colorSchemeFromHook) => {
|
|
41
|
-
const hookColorScheme = (0,
|
|
41
|
+
const hookColorScheme = (0, useColorScheme_1.useColorScheme)();
|
|
42
42
|
const colorSchemeToUse = colorSchemeFromHook ?? hookColorScheme;
|
|
43
|
-
return (0,
|
|
44
|
-
const colorScheme = (0,
|
|
43
|
+
return (0, react_1.useMemo)(() => {
|
|
44
|
+
const colorScheme = (0, themeUtils_1.normalizeColorScheme)(colorSchemeToUse, theme);
|
|
45
45
|
const isDarkTheme = colorScheme === 'dark';
|
|
46
|
-
const colors =
|
|
46
|
+
const colors = theme_1.Colors[colorScheme];
|
|
47
47
|
return {
|
|
48
48
|
// Base colors
|
|
49
49
|
textColor: isDarkTheme ? '#FFFFFF' : '#000000',
|
|
@@ -52,7 +52,6 @@ const useThemeStyles = (theme, colorSchemeFromHook) => {
|
|
|
52
52
|
borderColor: isDarkTheme ? '#444444' : '#E0E0E0',
|
|
53
53
|
mutedTextColor: '#8E8E93',
|
|
54
54
|
// Same for both themes
|
|
55
|
-
|
|
56
55
|
// Semantic colors (consistent across themes)
|
|
57
56
|
primaryColor: '#007AFF',
|
|
58
57
|
dangerColor: '#FF3B30',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","useThemeStyles","react_1","require","useColorScheme_1","theme_1","themeUtils_1","theme","colorSchemeFromHook","hookColorScheme","useColorScheme","colorSchemeToUse","useMemo","colorScheme","normalizeColorScheme","isDarkTheme","colors","Colors","textColor","backgroundColor","secondaryBackgroundColor","borderColor","mutedTextColor","primaryColor","dangerColor","successColor"],"sourceRoot":"../../../../src","sources":["ui/hooks/useThemeStyles.js"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,cAAc,GAAG,KAAK,CAAC;AAC/B,MAAMC,OAAO,GAAGC,OAAO,CAAC,OAAO,CAAC;AAChC,MAAMC,gBAAgB,GAAGD,OAAO,CAAC,kBAAkB,CAAC;AACpD,MAAME,OAAO,GAAGF,OAAO,CAAC,oBAAoB,CAAC;AAC7C,MAAMG,YAAY,GAAGH,OAAO,CAAC,qBAAqB,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMF,cAAc,GAAGA,CAACM,KAAK,EAAEC,mBAAmB,KAAK;EACnD,MAAMC,eAAe,GAAG,CAAC,CAAC,EAAEL,gBAAgB,CAACM,cAAc,EAAE,CAAC;EAC9D,MAAMC,gBAAgB,GAAGH,mBAAmB,IAAIC,eAAe;EAC/D,OAAO,CAAC,CAAC,EAAEP,OAAO,CAACU,OAAO,EAAE,MAAM;IAC9B,MAAMC,WAAW,GAAG,CAAC,CAAC,EAAEP,YAAY,CAACQ,oBAAoB,EAAEH,gBAAgB,EAAEJ,KAAK,CAAC;IACnF,MAAMQ,WAAW,GAAGF,WAAW,KAAK,MAAM;IAC1C,MAAMG,MAAM,GAAGX,OAAO,CAACY,MAAM,CAACJ,WAAW,CAAC;IAC1C,OAAO;MACH;MACAK,SAAS,EAAEH,WAAW,GAAG,SAAS,GAAG,SAAS;MAC9CI,eAAe,EAAEJ,WAAW,GAAG,SAAS,GAAG,SAAS;MACpDK,wBAAwB,EAAEL,WAAW,GAAG,SAAS,GAAG,SAAS;MAC7DM,WAAW,EAAEN,WAAW,GAAG,SAAS,GAAG,SAAS;MAChDO,cAAc,EAAE,SAAS;MAAE;MAC3B;MACAC,YAAY,EAAE,SAAS;MACvBC,WAAW,EAAE,SAAS;MACtBC,YAAY,EAAE,SAAS;MACvB;MACAV,WAAW;MACX;MACAF,WAAW;MACXG;IACJ,CAAC;EACL,CAAC,EAAE,CAACT,KAAK,EAAEI,gBAAgB,CAAC,CAAC;AACjC,CAAC;AACDZ,OAAO,CAACE,cAAc,GAAGA,cAAc","ignoreList":[]}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isWebBrowser = isWebBrowser;
|
|
7
|
-
exports.useWebSSO = useWebSSO;
|
|
8
|
-
var _react = require("react");
|
|
9
3
|
/**
|
|
10
4
|
* Web SSO Hook
|
|
11
5
|
*
|
|
@@ -22,14 +16,18 @@ var _react = require("react");
|
|
|
22
16
|
*
|
|
23
17
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/FedCM_API
|
|
24
18
|
*/
|
|
25
|
-
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports.useWebSSO = useWebSSO;
|
|
23
|
+
exports.isWebBrowser = isWebBrowser;
|
|
24
|
+
const react_1 = require("react");
|
|
26
25
|
/**
|
|
27
26
|
* Check if we're running in a web browser environment (not React Native)
|
|
28
27
|
*/
|
|
29
28
|
function isWebBrowser() {
|
|
30
29
|
return typeof window !== 'undefined' && typeof document !== 'undefined' && typeof document.documentElement !== 'undefined';
|
|
31
30
|
}
|
|
32
|
-
|
|
33
31
|
/**
|
|
34
32
|
* Check if we're on the identity provider domain (where FedCM would authenticate against itself)
|
|
35
33
|
* Only auth.oxy.so is the IdP - accounts.oxy.so is a client app like any other
|
|
@@ -39,7 +37,6 @@ function isIdentityProvider() {
|
|
|
39
37
|
const hostname = window.location.hostname;
|
|
40
38
|
return hostname === 'auth.oxy.so';
|
|
41
39
|
}
|
|
42
|
-
|
|
43
40
|
/**
|
|
44
41
|
* Hook for automatic cross-domain web SSO
|
|
45
42
|
*
|
|
@@ -63,22 +60,19 @@ function useWebSSO({
|
|
|
63
60
|
onError,
|
|
64
61
|
enabled = true
|
|
65
62
|
}) {
|
|
66
|
-
const isCheckingRef = (0,
|
|
67
|
-
const hasCheckedRef = (0,
|
|
68
|
-
|
|
63
|
+
const isCheckingRef = (0, react_1.useRef)(false);
|
|
64
|
+
const hasCheckedRef = (0, react_1.useRef)(false);
|
|
69
65
|
// Check FedCM support once
|
|
70
66
|
const fedCMSupported = isWebBrowser() && oxyServices.isFedCMSupported?.();
|
|
71
|
-
const checkSSO = (0,
|
|
67
|
+
const checkSSO = (0, react_1.useCallback)(async () => {
|
|
72
68
|
if (!isWebBrowser() || isCheckingRef.current) {
|
|
73
69
|
return null;
|
|
74
70
|
}
|
|
75
|
-
|
|
76
71
|
// Don't use FedCM on the auth domain itself - it would authenticate against itself
|
|
77
72
|
if (isIdentityProvider()) {
|
|
78
73
|
onSSOUnavailable?.();
|
|
79
74
|
return null;
|
|
80
75
|
}
|
|
81
|
-
|
|
82
76
|
// FedCM is the only reliable cross-domain SSO mechanism
|
|
83
77
|
if (!fedCMSupported) {
|
|
84
78
|
onSSOUnavailable?.();
|
|
@@ -101,13 +95,12 @@ function useWebSSO({
|
|
|
101
95
|
isCheckingRef.current = false;
|
|
102
96
|
}
|
|
103
97
|
}, [oxyServices, onSessionFound, onSSOUnavailable, onError, fedCMSupported]);
|
|
104
|
-
|
|
105
98
|
/**
|
|
106
99
|
* Trigger interactive FedCM sign-in
|
|
107
100
|
* This shows the browser's native "Sign in with Oxy" prompt.
|
|
108
101
|
* Use this when silent mediation fails (user hasn't previously consented).
|
|
109
102
|
*/
|
|
110
|
-
const signInWithFedCM = (0,
|
|
103
|
+
const signInWithFedCM = (0, react_1.useCallback)(async () => {
|
|
111
104
|
if (!isWebBrowser() || isCheckingRef.current) {
|
|
112
105
|
return null;
|
|
113
106
|
}
|
|
@@ -130,9 +123,8 @@ function useWebSSO({
|
|
|
130
123
|
isCheckingRef.current = false;
|
|
131
124
|
}
|
|
132
125
|
}, [oxyServices, onSessionFound, onError, fedCMSupported]);
|
|
133
|
-
|
|
134
126
|
// Auto-check SSO on mount (web only, FedCM only, not on auth domain)
|
|
135
|
-
(0,
|
|
127
|
+
(0, react_1.useEffect)(() => {
|
|
136
128
|
if (!enabled || !isWebBrowser() || hasCheckedRef.current || isIdentityProvider()) {
|
|
137
129
|
if (isIdentityProvider()) {
|
|
138
130
|
onSSOUnavailable?.();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","useWebSSO","isWebBrowser","react_1","require","window","document","documentElement","isIdentityProvider","hostname","location","oxyServices","onSessionFound","onSSOUnavailable","onError","enabled","isCheckingRef","useRef","hasCheckedRef","fedCMSupported","isFedCMSupported","checkSSO","useCallback","current","session","silentSignInWithFedCM","error","Error","String","signInWithFedCM","useEffect","isChecking"],"sourceRoot":"../../../../src","sources":["ui/hooks/useWebSSO.js"],"mappings":"AAAA,YAAY;;AACZ;AACA;A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CAAC;MACrD,IAAIL,OAAO,EAAE;QACT,MAAMZ,cAAc,CAACY,OAAO,CAAC;QAC7B,OAAOA,OAAO;MAClB;MACA,OAAO,IAAI;IACf,CAAC,CACD,OAAOE,KAAK,EAAE;MACVZ,OAAO,GAAGY,KAAK,YAAYC,KAAK,GAAGD,KAAK,GAAG,IAAIC,KAAK,CAACC,MAAM,CAACF,KAAK,CAAC,CAAC,CAAC;MACpE,OAAO,IAAI;IACf,CAAC,SACO;MACJV,aAAa,CAACO,OAAO,GAAG,KAAK;IACjC;EACJ,CAAC,EAAE,CAACZ,WAAW,EAAEC,cAAc,EAAEE,OAAO,EAAEK,cAAc,CAAC,CAAC;EAC1D;EACA,CAAC,CAAC,EAAEhB,OAAO,CAAC2B,SAAS,EAAE,MAAM;IACzB,IAAI,CAACf,OAAO,IAAI,CAACb,YAAY,CAAC,CAAC,IAAIgB,aAAa,CAACK,OAAO,IAAIf,kBAAkB,CAAC,CAAC,EAAE;MAC9E,IAAIA,kBAAkB,CAAC,CAAC,EAAE;QACtBK,gBAAgB,GAAG,CAAC;MACxB;MACA;IACJ;IACAK,aAAa,CAACK,OAAO,GAAG,IAAI;IAC5B,IAAIJ,cAAc,EAAE;MAChBE,QAAQ,CAAC,CAAC;IACd,CAAC,MACI;MACDR,gBAAgB,GAAG,CAAC;IACxB;EACJ,CAAC,EAAE,CAACE,OAAO,EAAEM,QAAQ,EAAEF,cAAc,EAAEN,gBAAgB,CAAC,CAAC;EACzD,OAAO;IACHQ,QAAQ;IACRQ,eAAe;IACfE,UAAU,EAAEf,aAAa,CAACO,OAAO;IACjCH,gBAAgB,EAAED;EACtB,CAAC;AACL","ignoreList":[]}
|
package/lib/commonjs/ui/index.js
CHANGED
|
@@ -1,38 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
3
8
|
Object.defineProperty(exports, "__esModule", {
|
|
4
9
|
value: true
|
|
5
10
|
});
|
|
6
|
-
exports.
|
|
7
|
-
Object.defineProperty(exports, "extractErrorMessage", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _errorHandlers.extractErrorMessage;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
exports.fontStyles = exports.fontFamilies = void 0;
|
|
14
|
-
Object.defineProperty(exports, "handleAuthError", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return _errorHandlers.handleAuthError;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "isInvalidSessionError", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return _errorHandlers.isInvalidSessionError;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "isTimeoutOrNetworkError", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () {
|
|
29
|
-
return _errorHandlers.isTimeoutOrNetworkError;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
exports.useStorage = exports.useOxy = exports.useFollow = exports.useAuthStore = exports.useAuth = exports.useAccountStore = exports.toast = exports.setupFonts = void 0;
|
|
33
|
-
var _isFrontend = _interopRequireDefault(require("./isFrontend.js"));
|
|
34
|
-
var _errorHandlers = require("./utils/errorHandlers.js");
|
|
35
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
exports.extractErrorMessage = exports.isTimeoutOrNetworkError = exports.isInvalidSessionError = exports.handleAuthError = exports.useStorage = exports.toast = exports.fontStyles = exports.fontFamilies = exports.useAccountStore = exports.useAuthStore = exports.ProfileScreen = exports.useFollow = exports.useAuth = exports.useOxy = exports.OxyIcon = exports.setupFonts = exports.FontLoader = exports.OxyPayButton = exports.FollowButton = exports.Avatar = exports.OxyLogo = exports.OxySignInButton = exports.OxyProvider = void 0;
|
|
36
12
|
/**
|
|
37
13
|
* UI Component exports - Frontend Only (with backend-safe fallbacks)
|
|
38
14
|
*
|
|
@@ -51,28 +27,28 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
51
27
|
* // SSR (noops)
|
|
52
28
|
* import { OxyProvider, useOxy } from '@oxyhq/services/ui/server';
|
|
53
29
|
*/
|
|
54
|
-
|
|
30
|
+
const isFrontend_1 = __importDefault(require("./isFrontend"));
|
|
55
31
|
// UI exports
|
|
56
|
-
let OxyProvider
|
|
57
|
-
let OxySignInButton
|
|
58
|
-
let OxyLogo
|
|
59
|
-
let Avatar
|
|
60
|
-
let FollowButton
|
|
61
|
-
let OxyPayButton
|
|
62
|
-
let FontLoader
|
|
63
|
-
let setupFonts
|
|
64
|
-
let OxyIcon
|
|
65
|
-
let useOxy
|
|
66
|
-
let useAuth
|
|
67
|
-
let useFollow
|
|
68
|
-
let ProfileScreen
|
|
69
|
-
let useAuthStore
|
|
70
|
-
let useAccountStore
|
|
71
|
-
let fontFamilies
|
|
72
|
-
let fontStyles
|
|
73
|
-
let toast
|
|
74
|
-
let useStorage
|
|
75
|
-
if (
|
|
32
|
+
let OxyProvider;
|
|
33
|
+
let OxySignInButton;
|
|
34
|
+
let OxyLogo;
|
|
35
|
+
let Avatar;
|
|
36
|
+
let FollowButton;
|
|
37
|
+
let OxyPayButton;
|
|
38
|
+
let FontLoader;
|
|
39
|
+
let setupFonts;
|
|
40
|
+
let OxyIcon;
|
|
41
|
+
let useOxy;
|
|
42
|
+
let useAuth;
|
|
43
|
+
let useFollow;
|
|
44
|
+
let ProfileScreen;
|
|
45
|
+
let useAuthStore;
|
|
46
|
+
let useAccountStore;
|
|
47
|
+
let fontFamilies;
|
|
48
|
+
let fontStyles;
|
|
49
|
+
let toast;
|
|
50
|
+
let useStorage;
|
|
51
|
+
if (isFrontend_1.default) {
|
|
76
52
|
exports.OxyProvider = OxyProvider = require('./components/OxyProvider').default;
|
|
77
53
|
exports.OxySignInButton = OxySignInButton = require('./components/OxySignInButton').default;
|
|
78
54
|
exports.OxyLogo = OxyLogo = require('./components/OxyLogo').default;
|
|
@@ -120,6 +96,40 @@ if (_isFrontend.default) {
|
|
|
120
96
|
exports.toast = toast = () => {};
|
|
121
97
|
exports.useStorage = useStorage = () => noopStorageResult;
|
|
122
98
|
}
|
|
99
|
+
// Export error handler utilities (pure functions, no conditional needed)
|
|
100
|
+
var errorHandlers_1 = require("./utils/errorHandlers");
|
|
101
|
+
Object.defineProperty(exports, "handleAuthError", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return errorHandlers_1.handleAuthError;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "isInvalidSessionError", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () {
|
|
110
|
+
return errorHandlers_1.isInvalidSessionError;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "isTimeoutOrNetworkError", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () {
|
|
116
|
+
return errorHandlers_1.isTimeoutOrNetworkError;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "extractErrorMessage", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () {
|
|
122
|
+
return errorHandlers_1.extractErrorMessage;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
//# sourceMappingURL=index.js.mapopComponent;
|
|
126
|
+
exports.useAuthStore = useAuthStore = noopHook;
|
|
127
|
+
exports.useAccountStore = useAccountStore = noopHook;
|
|
128
|
+
exports.fontFamilies = fontFamilies = {};
|
|
129
|
+
exports.fontStyles = fontStyles = {};
|
|
130
|
+
exports.toast = toast = () => {};
|
|
131
|
+
exports.useStorage = useStorage = () => noopStorageResult;
|
|
132
|
+
}
|
|
123
133
|
|
|
124
134
|
// Export error handler utilities (pure functions, no conditional needed)
|
|
125
135
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__importDefault","mod","__esModule","Object","defineProperty","exports","value","extractErrorMessage","isTimeoutOrNetworkError","isInvalidSessionError","handleAuthError","useStorage","toast","fontStyles","fontFamilies","useAccountStore","useAuthStore","ProfileScreen","useFollow","useAuth","useOxy","OxyIcon","setupFonts","FontLoader","OxyPayButton","FollowButton","Avatar","OxyLogo","OxySignInButton","OxyProvider","isFrontend_1","require","default","noopComponent","noopHook","noopStorageResult","storage","isReady","errorHandlers_1","enumerable","get"],"sourceRoot":"../../../src","sources":["ui/index.js"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,eAAe,GAAI,UAAQ,SAAKA,eAAe,IAAK,UAAUC,GAAG,EAAE;EACnE,OAAQA,GAAG,IAAIA,GAAG,CAACC,UAAU,GAAID,GAAG,GAAG;IAAE,SAAS,EAAEA;EAAI,CAAC;AAC7D,CAAC;AACDE,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,mBAAmB,GAAGF,OAAO,CAACG,uBAAuB,GAAGH,OAAO,CAACI,qBAAqB,GAAGJ,OAAO,CAACK,eAAe,GAAGL,OAAO,CAACM,UAAU,GAAGN,OAAO,CAACO,KAAK,GAAGP,OAAO,CAACQ,UAAU,GAAGR,OAAO,CAACS,YAAY,GAAGT,OAAO,CAACU,eAAe,GAAGV,OAAO,CAACW,YAAY,GAAGX,OAAO,CAACY,aAAa,GAAGZ,OAAO,CAACa,SAAS,GAAGb,OAAO,CAACc,OAAO,GAAGd,OAAO,CAACe,MAAM,GAAGf,OAAO,CAACgB,OAAO,GAAGhB,OAAO,CAACiB,UAAU,GAAGjB,OAAO,CAACkB,UAAU,GAAGlB,OAAO,CAACmB,YAAY,GAAGnB,OAAO,CAACoB,YAAY,GAAGpB,OAAO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AAO,EAAE,iBAAiB,EAAE;EAAEkC,UAAU,EAAE,IAAI;EAAEC,GAAG,EAAE,SAAAA,CAAA,EAAY;IAAE,OAAOF,eAAe,CAAC5B,eAAe;EAAE;AAAE,CAAC,CAAC;AACrIP,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,uBAAuB,EAAE;EAAEkC,UAAU,EAAE,IAAI;EAAEC,GAAG,EAAE,SAAAA,CAAA,EAAY;IAAE,OAAOF,eAAe,CAAC7B,qBAAqB;EAAE;AAAE,CAAC,CAAC;AACjJN,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,yBAAyB,EAAE;EAAEkC,UAAU,EAAE,IAAI;EAAEC,GAAG,EAAE,SAAAA,CAAA,EAAY;IAAE,OAAOF,eAAe,CAAC9B,uBAAuB;EAAE;AAAE,CAAC,CAAC;AACrJL,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,qBAAqB,EAAE;EAAEkC,UAAU,EAAE,IAAI;EAAEC,GAAG,EAAE,SAAAA,CAAA,EAAY;IAAE,OAAOF,eAAe,CAAC/B,mBAAmB;EAAE;AAAE,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
7
6
|
// Utility to detect if running in a frontend (browser or React Native) environment
|
|
8
7
|
const isFrontend = typeof window !== 'undefined' || typeof navigator !== 'undefined' && navigator.product === 'ReactNative';
|
|
9
|
-
|
|
8
|
+
exports.default = isFrontend;
|
|
9
|
+
//# sourceMappingURL=isFrontend.js.mapd;
|
|
10
10
|
//# sourceMappingURL=isFrontend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","isFrontend","window","navigator","product","default"],"sourceRoot":"../../../src","sources":["ui/isFrontend.js"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7D;AACA,MAAMC,UAAU,GAAG,OAAOC,MAAM,KAAK,WAAW,IAC3C,OAAOC,SAAS,KAAK,WAAW,IAAIA,SAAS,CAACC,OAAO,KAAK,aAAc;AAC7EL,OAAO,CAACM,OAAO,GAAGJ,UAAU","ignoreList":[]}
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
{"version":3,"names":["_routes","require","_vanilla","initialState","currentScreen","screenProps","currentStep","undefined","history","isOpen","fullScreen","bottomSheetStore","exports","createStore","getState","showBottomSheet","screenOrConfig","screen","props","isValidRoute","__DEV__","console","warn","state","setState","step","initialStep","closeBottomSheet","goBack","length","prev","slice","updateState","updates"],"sourceRoot":"../../../../src","sources":["ui/navigation/bottomSheetManager.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA;AACA;AACA;;AAWA,MAAME,YAA8B,GAAG;EACnCC,aAAa,EAAE,IAAI;EACnBC,WAAW,EAAE,CAAC,CAAC;EACfC,WAAW,EAAEC,SAAS;EACtBC,OAAO,EAAE,EAAE;EACXC,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE;AAChB,CAAC;AAEM,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,oBAAW,EAAmB,MAAMV,YAAY,CAAC;AAE1E,MAAMW,QAAQ,GAAGA,CAAA,KAAMH,gBAAgB,CAACG,QAAQ,CAAC,CAAC;AAACF,OAAA,CAAAE,QAAA,GAAAA,QAAA;AAEnD,MAAMC,eAAe,GACxBC,cAAwG,IACjG;EACP,MAAMC,MAAM,GAAG,OAAOD,cAAc,KAAK,QAAQ,GAAGA,cAAc,GAAGA,cAAc,CAACC,MAAM;EAC1F,MAAMC,KAAK,GAAG,OAAOF,cAAc,KAAK,QAAQ,GAAG,CAAC,CAAC,GAAIA,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