@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,19 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
|
+
const fonts_1 = require("../styles/fonts");
|
|
10
|
+
const sonner_1 = require("../../lib/sonner");
|
|
11
|
+
const confirmAction_1 = require("../utils/confirmAction");
|
|
12
|
+
const vector_icons_1 = require("@expo/vector-icons");
|
|
13
|
+
const useI18n_1 = require("../hooks/useI18n");
|
|
14
|
+
const useThemeStyles_1 = require("../hooks/useThemeStyles");
|
|
15
|
+
const themeUtils_1 = require("../utils/themeUtils");
|
|
16
|
+
const useColorScheme_1 = require("../hooks/useColorScheme");
|
|
17
|
+
const OxyContext_1 = require("../context/OxyContext");
|
|
19
18
|
const PremiumSubscriptionScreen = ({
|
|
20
19
|
onClose,
|
|
21
20
|
theme,
|
|
@@ -26,23 +25,22 @@ const PremiumSubscriptionScreen = ({
|
|
|
26
25
|
const {
|
|
27
26
|
user,
|
|
28
27
|
oxyServices
|
|
29
|
-
} = (0,
|
|
30
|
-
const [loading, setLoading] = (0,
|
|
31
|
-
const [subscription, setSubscription] = (0,
|
|
32
|
-
const [plans, setPlans] = (0,
|
|
33
|
-
const [individualFeatures, setIndividualFeatures] = (0,
|
|
34
|
-
const [selectedPlan, setSelectedPlan] = (0,
|
|
35
|
-
const [processingPayment, setProcessingPayment] = (0,
|
|
36
|
-
const [billingInterval, setBillingInterval] = (0,
|
|
37
|
-
const [activeTab, setActiveTab] = (0,
|
|
38
|
-
const [currentAppPackage, setCurrentAppPackage] = (0,
|
|
39
|
-
|
|
28
|
+
} = (0, OxyContext_1.useOxy)();
|
|
29
|
+
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
30
|
+
const [subscription, setSubscription] = (0, react_1.useState)(null);
|
|
31
|
+
const [plans, setPlans] = (0, react_1.useState)([]);
|
|
32
|
+
const [individualFeatures, setIndividualFeatures] = (0, react_1.useState)([]);
|
|
33
|
+
const [selectedPlan, setSelectedPlan] = (0, react_1.useState)(null);
|
|
34
|
+
const [processingPayment, setProcessingPayment] = (0, react_1.useState)(false);
|
|
35
|
+
const [billingInterval, setBillingInterval] = (0, react_1.useState)('month');
|
|
36
|
+
const [activeTab, setActiveTab] = (0, react_1.useState)('plans');
|
|
37
|
+
const [currentAppPackage, setCurrentAppPackage] = (0, react_1.useState)('mention'); // Default to mention for demo
|
|
40
38
|
const {
|
|
41
39
|
t
|
|
42
|
-
} = (0,
|
|
43
|
-
const colorScheme = (0,
|
|
44
|
-
const normalizedTheme = (0,
|
|
45
|
-
const themeStyles = (0,
|
|
40
|
+
} = (0, useI18n_1.useI18n)();
|
|
41
|
+
const colorScheme = (0, useColorScheme_1.useColorScheme)();
|
|
42
|
+
const normalizedTheme = (0, themeUtils_1.normalizeTheme)(theme);
|
|
43
|
+
const themeStyles = (0, useThemeStyles_1.useThemeStyles)(normalizedTheme, colorScheme);
|
|
46
44
|
// Extract commonly used colors for readability
|
|
47
45
|
const {
|
|
48
46
|
textColor,
|
|
@@ -55,7 +53,6 @@ const PremiumSubscriptionScreen = ({
|
|
|
55
53
|
isDarkTheme
|
|
56
54
|
} = themeStyles;
|
|
57
55
|
const warningColor = '#FF9500';
|
|
58
|
-
|
|
59
56
|
// TODO: Replace mock data with actual API integration
|
|
60
57
|
// Should fetch plans from oxyServices.getSubscriptionPlans() and individual features from oxyServices.getIndividualFeatures()
|
|
61
58
|
// Oxy+ subscription plans
|
|
@@ -117,7 +114,6 @@ const PremiumSubscriptionScreen = ({
|
|
|
117
114
|
features: ['Everything in Oxy+ Premium', 'Advanced analytics and insights', 'Promotional tools and resources', 'Content monetization features', 'Creator support program', 'Revenue sharing opportunities'],
|
|
118
115
|
includedFeatures: ['reading-mode-plus', 'custom-themes', 'analytics-basic', 'analytics-advanced', 'group-management', 'creator-tools', 'monetization-features']
|
|
119
116
|
}];
|
|
120
|
-
|
|
121
117
|
// Individual feature subscriptions
|
|
122
118
|
const mockIndividualFeatures = [{
|
|
123
119
|
id: 'analytics-basic',
|
|
@@ -218,10 +214,10 @@ const PremiumSubscriptionScreen = ({
|
|
|
218
214
|
canBePurchasedSeparately: true,
|
|
219
215
|
includedInPlans: ['oxy-premium', 'oxy-creator']
|
|
220
216
|
}];
|
|
221
|
-
(0,
|
|
217
|
+
(0, react_1.useEffect)(() => {
|
|
222
218
|
detectCurrentApp();
|
|
223
219
|
}, []);
|
|
224
|
-
(0,
|
|
220
|
+
(0, react_1.useEffect)(() => {
|
|
225
221
|
if (currentAppPackage) {
|
|
226
222
|
loadSubscriptionData();
|
|
227
223
|
}
|
|
@@ -229,43 +225,33 @@ const PremiumSubscriptionScreen = ({
|
|
|
229
225
|
const detectCurrentApp = () => {
|
|
230
226
|
// In a real implementation, this would detect the actual app package name
|
|
231
227
|
// For now, we'll use a mock detection based on available methods
|
|
232
|
-
|
|
233
228
|
// Real app detection methods you could use:
|
|
234
229
|
// 1. Check bundle identifier in React Native:
|
|
235
230
|
// import DeviceInfo from 'react-native-device-info';
|
|
236
231
|
// const bundleId = DeviceInfo.getBundleId();
|
|
237
232
|
// Example: com.oxy.mention -> 'mention'
|
|
238
|
-
|
|
239
233
|
// 2. Environment variables or build configuration
|
|
240
234
|
// const appPackage = __DEV__ ? process.env.APP_PACKAGE : 'mention';
|
|
241
|
-
|
|
242
235
|
// 3. Check specific app capabilities or modules
|
|
243
236
|
// if (typeof MentionModule !== 'undefined') return 'mention';
|
|
244
237
|
// if (typeof OxyWorkspaceModule !== 'undefined') return 'oxy-workspace';
|
|
245
|
-
|
|
246
238
|
// 4. Use build-time configuration with Metro or similar
|
|
247
239
|
// const appPackage = require('../config/app.json').packageName;
|
|
248
|
-
|
|
249
240
|
// For demo purposes, we'll simulate different apps
|
|
250
241
|
// You would replace this with actual app detection logic
|
|
251
|
-
|
|
252
242
|
// IMPORTANT: This ensures subscription restrictions work properly:
|
|
253
243
|
// - Mention+ plan can only be subscribed to when app package == 'mention'
|
|
254
244
|
// - Other app-specific plans follow the same pattern
|
|
255
245
|
// - Ecosystem plans work across all apps
|
|
256
|
-
|
|
257
246
|
const detectedApp = 'mention'; // This would be dynamic in real implementation
|
|
258
|
-
|
|
259
247
|
setCurrentAppPackage(detectedApp);
|
|
260
248
|
};
|
|
261
249
|
const loadSubscriptionData = async () => {
|
|
262
250
|
try {
|
|
263
251
|
setLoading(true);
|
|
264
|
-
|
|
265
252
|
// Filter plans available for current app
|
|
266
253
|
const availablePlans = mockPlans.filter(plan => plan.applicableApps.includes(currentAppPackage));
|
|
267
254
|
setPlans(availablePlans);
|
|
268
|
-
|
|
269
255
|
// Mock current subscription
|
|
270
256
|
let currentSubscription = null;
|
|
271
257
|
if (user?.isPremium) {
|
|
@@ -279,7 +265,6 @@ const PremiumSubscriptionScreen = ({
|
|
|
279
265
|
};
|
|
280
266
|
setSubscription(currentSubscription);
|
|
281
267
|
}
|
|
282
|
-
|
|
283
268
|
// Filter features available for current app and update based on current subscription
|
|
284
269
|
const availableFeatures = mockIndividualFeatures.filter(feature => feature.applicableApps.includes(currentAppPackage));
|
|
285
270
|
const updatedFeatures = availableFeatures.map(feature => {
|
|
@@ -295,7 +280,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
295
280
|
if (__DEV__) {
|
|
296
281
|
console.error('Failed to load subscription data:', error);
|
|
297
282
|
}
|
|
298
|
-
|
|
283
|
+
sonner_1.toast.error('Failed to load subscription information');
|
|
299
284
|
} finally {
|
|
300
285
|
setLoading(false);
|
|
301
286
|
}
|
|
@@ -308,23 +293,20 @@ const PremiumSubscriptionScreen = ({
|
|
|
308
293
|
// Check if plan is available for current app
|
|
309
294
|
const selectedPlan = mockPlans.find(plan => plan.id === planId);
|
|
310
295
|
if (!selectedPlan?.applicableApps.includes(currentAppPackage)) {
|
|
311
|
-
|
|
296
|
+
sonner_1.toast.error(t('premium.toasts.planUnavailable', {
|
|
312
297
|
app: currentAppPackage
|
|
313
298
|
}) || `This plan is not available for the current app (${currentAppPackage})`);
|
|
314
299
|
return;
|
|
315
300
|
}
|
|
316
|
-
|
|
317
301
|
// Special restriction for Mention+ plan - only available in mention app
|
|
318
302
|
if (planId === 'mention-plus' && currentAppPackage !== 'mention') {
|
|
319
|
-
|
|
303
|
+
sonner_1.toast.error(t('premium.toasts.mentionOnly') || 'Mention+ is only available in the Mention app');
|
|
320
304
|
return;
|
|
321
305
|
}
|
|
322
306
|
setProcessingPayment(true);
|
|
323
|
-
|
|
324
307
|
// Mock payment processing
|
|
325
308
|
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
326
|
-
|
|
327
|
-
|
|
309
|
+
sonner_1.toast.success(t('premium.toasts.activated') || 'Subscription activated successfully!');
|
|
328
310
|
// Mock subscription update
|
|
329
311
|
setSubscription({
|
|
330
312
|
id: `sub_${Date.now()}`,
|
|
@@ -334,29 +316,28 @@ const PremiumSubscriptionScreen = ({
|
|
|
334
316
|
currentPeriodEnd: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
|
|
335
317
|
cancelAtPeriodEnd: false
|
|
336
318
|
});
|
|
337
|
-
|
|
338
319
|
// Reload data to update feature states
|
|
339
320
|
loadSubscriptionData();
|
|
340
321
|
} catch (error) {
|
|
341
322
|
if (__DEV__) {
|
|
342
323
|
console.error('Payment failed:', error);
|
|
343
324
|
}
|
|
344
|
-
|
|
325
|
+
sonner_1.toast.error(t('premium.toasts.paymentFailed') || 'Payment failed. Please try again.');
|
|
345
326
|
} finally {
|
|
346
327
|
setProcessingPayment(false);
|
|
347
328
|
}
|
|
348
329
|
};
|
|
349
330
|
const handleCancelSubscription = () => {
|
|
350
|
-
(0,
|
|
331
|
+
(0, confirmAction_1.confirmAction)(t('premium.confirms.cancelSub') || 'Are you sure you want to cancel your subscription? You will lose access to premium features at the end of your current billing period.', async () => {
|
|
351
332
|
try {
|
|
352
333
|
// Mock cancellation
|
|
353
334
|
setSubscription(prev => prev ? {
|
|
354
335
|
...prev,
|
|
355
336
|
cancelAtPeriodEnd: true
|
|
356
337
|
} : null);
|
|
357
|
-
|
|
338
|
+
sonner_1.toast.success(t('premium.toasts.willCancel') || 'Subscription will be canceled at the end of the billing period');
|
|
358
339
|
} catch (error) {
|
|
359
|
-
|
|
340
|
+
sonner_1.toast.error(t('premium.toasts.cancelFailed') || 'Failed to cancel subscription');
|
|
360
341
|
}
|
|
361
342
|
});
|
|
362
343
|
};
|
|
@@ -366,9 +347,9 @@ const PremiumSubscriptionScreen = ({
|
|
|
366
347
|
...prev,
|
|
367
348
|
cancelAtPeriodEnd: false
|
|
368
349
|
} : null);
|
|
369
|
-
|
|
350
|
+
sonner_1.toast.success(t('premium.toasts.reactivated') || 'Subscription reactivated successfully');
|
|
370
351
|
} catch (error) {
|
|
371
|
-
|
|
352
|
+
sonner_1.toast.error(t('premium.toasts.reactivateFailed') || 'Failed to reactivate subscription');
|
|
372
353
|
}
|
|
373
354
|
};
|
|
374
355
|
const formatPrice = (price, currency, interval) => {
|
|
@@ -389,22 +370,20 @@ const PremiumSubscriptionScreen = ({
|
|
|
389
370
|
// Check if feature is available for current app
|
|
390
371
|
const selectedFeature = mockIndividualFeatures.find(feature => feature.id === featureId);
|
|
391
372
|
if (!selectedFeature?.applicableApps.includes(currentAppPackage)) {
|
|
392
|
-
|
|
373
|
+
sonner_1.toast.error(`This feature is not available for the current app (${currentAppPackage})`);
|
|
393
374
|
return;
|
|
394
375
|
}
|
|
395
|
-
|
|
396
376
|
// Special restrictions for app-specific features
|
|
397
377
|
if (selectedFeature.appScope === 'specific') {
|
|
398
378
|
// For features that are only available in specific apps, enforce strict matching
|
|
399
379
|
const hasExactMatch = selectedFeature.applicableApps.length === 1 && selectedFeature.applicableApps[0] === currentAppPackage;
|
|
400
380
|
if (!hasExactMatch && selectedFeature.applicableApps.length === 1) {
|
|
401
381
|
const requiredApp = selectedFeature.applicableApps[0];
|
|
402
|
-
|
|
382
|
+
sonner_1.toast.error(`${selectedFeature.name} is only available in the ${requiredApp} app`);
|
|
403
383
|
return;
|
|
404
384
|
}
|
|
405
385
|
}
|
|
406
386
|
setProcessingPayment(true);
|
|
407
|
-
|
|
408
387
|
// Mock feature subscription
|
|
409
388
|
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
410
389
|
setIndividualFeatures(prev => prev.map(feature => feature.id === featureId ? {
|
|
@@ -412,21 +391,21 @@ const PremiumSubscriptionScreen = ({
|
|
|
412
391
|
isSubscribed: true
|
|
413
392
|
} : feature));
|
|
414
393
|
const feature = individualFeatures.find(f => f.id === featureId);
|
|
415
|
-
|
|
394
|
+
sonner_1.toast.success(t('premium.toasts.featureSubscribed', {
|
|
416
395
|
name: feature?.name ?? ''
|
|
417
396
|
}) ?? `Subscribed to ${feature?.name} successfully!`);
|
|
418
397
|
} catch (error) {
|
|
419
398
|
if (__DEV__) {
|
|
420
399
|
console.error('Feature subscription failed:', error);
|
|
421
400
|
}
|
|
422
|
-
|
|
401
|
+
sonner_1.toast.error(t('premium.toasts.featureSubscribeFailed') || 'Feature subscription failed. Please try again.');
|
|
423
402
|
} finally {
|
|
424
403
|
setProcessingPayment(false);
|
|
425
404
|
}
|
|
426
405
|
};
|
|
427
406
|
const handleFeatureUnsubscribe = async featureId => {
|
|
428
407
|
const feature = individualFeatures.find(f => f.id === featureId);
|
|
429
|
-
(0,
|
|
408
|
+
(0, confirmAction_1.confirmAction)(t('premium.confirms.unsubscribeFeature', {
|
|
430
409
|
name: feature?.name ?? ''
|
|
431
410
|
}) ?? `Are you sure you want to unsubscribe from ${feature?.name}?`, async () => {
|
|
432
411
|
try {
|
|
@@ -434,11 +413,11 @@ const PremiumSubscriptionScreen = ({
|
|
|
434
413
|
...f,
|
|
435
414
|
isSubscribed: false
|
|
436
415
|
} : f));
|
|
437
|
-
|
|
416
|
+
sonner_1.toast.success(t('premium.toasts.featureUnsubscribed', {
|
|
438
417
|
name: feature?.name ?? ''
|
|
439
418
|
}) ?? `Unsubscribed from ${feature?.name}`);
|
|
440
419
|
} catch (error) {
|
|
441
|
-
|
|
420
|
+
sonner_1.toast.error(t('premium.toasts.featureUnsubscribeFailed') || 'Failed to unsubscribe from feature');
|
|
442
421
|
}
|
|
443
422
|
});
|
|
444
423
|
};
|
|
@@ -454,26 +433,26 @@ const PremiumSubscriptionScreen = ({
|
|
|
454
433
|
};
|
|
455
434
|
return appNames[packageName] || packageName;
|
|
456
435
|
};
|
|
457
|
-
return
|
|
436
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
458
437
|
style: [styles.header, {
|
|
459
438
|
borderBottomColor: borderColor
|
|
460
439
|
}],
|
|
461
|
-
children: [
|
|
440
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
462
441
|
style: styles.backButton,
|
|
463
442
|
onPress: goBack,
|
|
464
|
-
children:
|
|
443
|
+
children: (0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
465
444
|
name: "arrow-back",
|
|
466
445
|
size: 24,
|
|
467
446
|
color: textColor
|
|
468
447
|
})
|
|
469
|
-
}),
|
|
448
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
470
449
|
style: styles.headerTitleContainer,
|
|
471
|
-
children: [
|
|
450
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
472
451
|
style: [styles.headerTitle, {
|
|
473
452
|
color: textColor
|
|
474
453
|
}],
|
|
475
454
|
children: t('premium.title') || 'Oxy+ Subscriptions'
|
|
476
|
-
}),
|
|
455
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
477
456
|
style: [styles.currentAppText, {
|
|
478
457
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
479
458
|
}],
|
|
@@ -481,10 +460,10 @@ const PremiumSubscriptionScreen = ({
|
|
|
481
460
|
app: getAppDisplayName(currentAppPackage)
|
|
482
461
|
}) || `for ${getAppDisplayName(currentAppPackage)}`
|
|
483
462
|
})]
|
|
484
|
-
}), onClose &&
|
|
463
|
+
}), onClose && (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
485
464
|
style: styles.closeButton,
|
|
486
465
|
onPress: onClose,
|
|
487
|
-
children:
|
|
466
|
+
children: (0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
488
467
|
name: "close",
|
|
489
468
|
size: 24,
|
|
490
469
|
color: textColor
|
|
@@ -497,55 +476,55 @@ const PremiumSubscriptionScreen = ({
|
|
|
497
476
|
const currentPlan = getCurrentPlan();
|
|
498
477
|
if (!currentPlan) return null;
|
|
499
478
|
const statusColor = subscription.status === 'active' ? successColor : subscription.status === 'trialing' ? warningColor : dangerColor;
|
|
500
|
-
return
|
|
479
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
501
480
|
style: styles.section,
|
|
502
|
-
children: [
|
|
481
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
503
482
|
style: [styles.sectionTitle, {
|
|
504
483
|
color: textColor
|
|
505
484
|
}],
|
|
506
485
|
children: t('premium.current.title') || 'Current Subscription'
|
|
507
|
-
}),
|
|
486
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
508
487
|
style: [styles.currentSubscriptionCard, {
|
|
509
488
|
backgroundColor: secondaryBackgroundColor,
|
|
510
489
|
borderColor
|
|
511
490
|
}],
|
|
512
|
-
children: [
|
|
491
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
513
492
|
style: styles.subscriptionHeader,
|
|
514
|
-
children: [
|
|
515
|
-
children: [
|
|
493
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
494
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
516
495
|
style: [styles.planName, {
|
|
517
496
|
color: textColor
|
|
518
497
|
}],
|
|
519
498
|
children: currentPlan.name
|
|
520
|
-
}),
|
|
499
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.Text, {
|
|
521
500
|
style: [styles.planPrice, {
|
|
522
501
|
color: primaryColor
|
|
523
502
|
}],
|
|
524
503
|
children: ["$", currentPlan.price, "/month"]
|
|
525
504
|
})]
|
|
526
|
-
}),
|
|
505
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
527
506
|
style: [styles.statusBadge, {
|
|
528
507
|
backgroundColor: statusColor
|
|
529
508
|
}],
|
|
530
|
-
children:
|
|
509
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
531
510
|
style: styles.statusText,
|
|
532
511
|
children: subscription.status.toUpperCase()
|
|
533
512
|
})
|
|
534
513
|
})]
|
|
535
|
-
}),
|
|
514
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
536
515
|
style: [styles.subscriptionDetail, {
|
|
537
516
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
538
517
|
}],
|
|
539
518
|
children: t('premium.current.renewsOn', {
|
|
540
519
|
date: new Date(subscription.currentPeriodEnd).toLocaleDateString()
|
|
541
520
|
}) || `Renews on ${new Date(subscription.currentPeriodEnd).toLocaleDateString()}`
|
|
542
|
-
}), subscription.cancelAtPeriodEnd &&
|
|
521
|
+
}), subscription.cancelAtPeriodEnd && (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
543
522
|
style: styles.cancelNotice,
|
|
544
|
-
children: [
|
|
523
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
545
524
|
name: "warning",
|
|
546
525
|
size: 16,
|
|
547
526
|
color: warningColor
|
|
548
|
-
}),
|
|
527
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
549
528
|
style: [styles.cancelText, {
|
|
550
529
|
color: warningColor
|
|
551
530
|
}],
|
|
@@ -553,31 +532,31 @@ const PremiumSubscriptionScreen = ({
|
|
|
553
532
|
date: new Date(subscription.currentPeriodEnd).toLocaleDateString()
|
|
554
533
|
}) || `Subscription will cancel on ${new Date(subscription.currentPeriodEnd).toLocaleDateString()}`
|
|
555
534
|
})]
|
|
556
|
-
}),
|
|
535
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
557
536
|
style: styles.subscriptionActions,
|
|
558
|
-
children: [subscription.cancelAtPeriodEnd ?
|
|
537
|
+
children: [subscription.cancelAtPeriodEnd ? (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
559
538
|
style: [styles.actionButton, {
|
|
560
539
|
backgroundColor: successColor
|
|
561
540
|
}],
|
|
562
541
|
onPress: handleReactivateSubscription,
|
|
563
|
-
children:
|
|
542
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
564
543
|
style: styles.actionButtonText,
|
|
565
544
|
children: t('premium.actions.reactivate') || 'Reactivate'
|
|
566
545
|
})
|
|
567
|
-
}) :
|
|
546
|
+
}) : (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
568
547
|
style: [styles.actionButton, {
|
|
569
548
|
backgroundColor: dangerColor
|
|
570
549
|
}],
|
|
571
550
|
onPress: handleCancelSubscription,
|
|
572
|
-
children:
|
|
551
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
573
552
|
style: styles.actionButtonText,
|
|
574
553
|
children: t('premium.actions.cancelSubBtn') || 'Cancel Subscription'
|
|
575
554
|
})
|
|
576
|
-
}),
|
|
555
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
577
556
|
style: [styles.actionButton, styles.secondaryButton, {
|
|
578
557
|
borderColor
|
|
579
558
|
}],
|
|
580
|
-
children:
|
|
559
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
581
560
|
style: [styles.actionButtonText, {
|
|
582
561
|
color: textColor
|
|
583
562
|
}],
|
|
@@ -588,34 +567,34 @@ const PremiumSubscriptionScreen = ({
|
|
|
588
567
|
})]
|
|
589
568
|
});
|
|
590
569
|
};
|
|
591
|
-
const renderBillingToggle = () =>
|
|
570
|
+
const renderBillingToggle = () => (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
592
571
|
style: styles.section,
|
|
593
|
-
children: [
|
|
572
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
594
573
|
style: styles.billingToggle,
|
|
595
|
-
children: [
|
|
574
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
596
575
|
style: [styles.billingOption, billingInterval === 'month' && {
|
|
597
576
|
backgroundColor: primaryColor
|
|
598
577
|
}],
|
|
599
578
|
onPress: () => setBillingInterval('month'),
|
|
600
|
-
children:
|
|
579
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
601
580
|
style: [styles.billingOptionText, {
|
|
602
581
|
color: billingInterval === 'month' ? '#FFFFFF' : textColor
|
|
603
582
|
}],
|
|
604
583
|
children: t('premium.billing.monthly') || 'Monthly'
|
|
605
584
|
})
|
|
606
|
-
}),
|
|
585
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
607
586
|
style: [styles.billingOption, billingInterval === 'year' && {
|
|
608
587
|
backgroundColor: primaryColor
|
|
609
588
|
}],
|
|
610
589
|
onPress: () => setBillingInterval('year'),
|
|
611
|
-
children:
|
|
590
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
612
591
|
style: [styles.billingOptionText, {
|
|
613
592
|
color: billingInterval === 'year' ? '#FFFFFF' : textColor
|
|
614
593
|
}],
|
|
615
594
|
children: t('premium.billing.yearly') || 'Yearly'
|
|
616
595
|
})
|
|
617
596
|
})]
|
|
618
|
-
}), billingInterval === 'year' &&
|
|
597
|
+
}), billingInterval === 'year' && (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
619
598
|
style: [styles.savingsText, {
|
|
620
599
|
color: successColor
|
|
621
600
|
}],
|
|
@@ -658,7 +637,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
658
637
|
};
|
|
659
638
|
};
|
|
660
639
|
const availability = getAvailabilityStatus();
|
|
661
|
-
return
|
|
640
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
662
641
|
style: [styles.planCard, {
|
|
663
642
|
backgroundColor: secondaryBackgroundColor,
|
|
664
643
|
borderColor
|
|
@@ -668,53 +647,53 @@ const PremiumSubscriptionScreen = ({
|
|
|
668
647
|
}, plan.isPopular && styles.popularPlan, !availability.available && {
|
|
669
648
|
opacity: 0.6
|
|
670
649
|
}],
|
|
671
|
-
children: [plan.isPopular &&
|
|
650
|
+
children: [plan.isPopular && (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
672
651
|
style: [styles.popularBadge, {
|
|
673
652
|
backgroundColor: primaryColor
|
|
674
653
|
}],
|
|
675
|
-
children:
|
|
654
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
676
655
|
style: styles.popularText,
|
|
677
656
|
children: "MOST POPULAR"
|
|
678
657
|
})
|
|
679
|
-
}), isAppSpecific &&
|
|
658
|
+
}), isAppSpecific && (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
680
659
|
style: [styles.appSpecificBadge, {
|
|
681
660
|
backgroundColor: isAvailableForCurrentApp ? successColor : warningColor
|
|
682
661
|
}],
|
|
683
|
-
children:
|
|
662
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
684
663
|
style: styles.appSpecificText,
|
|
685
664
|
children: isAvailableForCurrentApp ? t('premium.plan.badge.appExclusive') || 'App Exclusive' : t('premium.plan.badge.notAvailable') || 'Not Available'
|
|
686
665
|
})
|
|
687
|
-
}),
|
|
666
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
688
667
|
style: styles.planHeader,
|
|
689
|
-
children: [
|
|
668
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
690
669
|
style: [styles.planName, {
|
|
691
670
|
color: textColor
|
|
692
671
|
}],
|
|
693
672
|
children: plan.name
|
|
694
|
-
}),
|
|
673
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
695
674
|
style: [styles.planDescription, {
|
|
696
675
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
697
676
|
}],
|
|
698
677
|
children: plan.description
|
|
699
|
-
}),
|
|
678
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
700
679
|
style: [styles.planAppScope, {
|
|
701
680
|
color: isDarkTheme ? '#888888' : '#999999'
|
|
702
681
|
}],
|
|
703
682
|
children: getAppScopeText()
|
|
704
|
-
}), !availability.available &&
|
|
683
|
+
}), !availability.available && (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
705
684
|
style: [styles.planRestrictionText, {
|
|
706
685
|
color: dangerColor
|
|
707
686
|
}],
|
|
708
687
|
children: availability.reason
|
|
709
688
|
})]
|
|
710
|
-
}),
|
|
689
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
711
690
|
style: styles.planPricing,
|
|
712
|
-
children: [
|
|
691
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
713
692
|
style: [styles.planPrice, {
|
|
714
693
|
color: textColor
|
|
715
694
|
}],
|
|
716
695
|
children: pricing.formatted
|
|
717
|
-
}),
|
|
696
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
718
697
|
style: [styles.planInterval, {
|
|
719
698
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
720
699
|
}],
|
|
@@ -722,49 +701,49 @@ const PremiumSubscriptionScreen = ({
|
|
|
722
701
|
interval: pricing.interval
|
|
723
702
|
}) || `per ${pricing.interval}`
|
|
724
703
|
})]
|
|
725
|
-
}),
|
|
704
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
726
705
|
style: styles.planFeatures,
|
|
727
|
-
children: plan.features.map((feature, index) =>
|
|
706
|
+
children: plan.features.map((feature, index) => (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
728
707
|
style: styles.featureItem,
|
|
729
|
-
children: [
|
|
708
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
730
709
|
name: "checkmark",
|
|
731
710
|
size: 16,
|
|
732
711
|
color: successColor
|
|
733
|
-
}),
|
|
712
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
734
713
|
style: [styles.featureText, {
|
|
735
714
|
color: textColor
|
|
736
715
|
}],
|
|
737
716
|
children: feature
|
|
738
717
|
})]
|
|
739
718
|
}, index))
|
|
740
|
-
}), isCurrentPlan ?
|
|
719
|
+
}), isCurrentPlan ? (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
741
720
|
style: [styles.currentPlanButton, {
|
|
742
721
|
backgroundColor: successColor
|
|
743
722
|
}],
|
|
744
|
-
children:
|
|
723
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
745
724
|
style: styles.currentPlanText,
|
|
746
725
|
children: t('premium.plan.current') || 'Current Plan'
|
|
747
726
|
})
|
|
748
|
-
}) : !availability.available ?
|
|
727
|
+
}) : !availability.available ? (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
749
728
|
style: [styles.unavailablePlanButton, {
|
|
750
729
|
backgroundColor: isDarkTheme ? '#444444' : '#E0E0E0'
|
|
751
730
|
}],
|
|
752
|
-
children:
|
|
731
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
753
732
|
style: [styles.unavailablePlanText, {
|
|
754
733
|
color: isDarkTheme ? '#888888' : '#999999'
|
|
755
734
|
}],
|
|
756
735
|
children: t('premium.plan.notAvailableInApp') || 'Not Available in Current App'
|
|
757
736
|
})
|
|
758
|
-
}) :
|
|
737
|
+
}) : (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
759
738
|
style: [styles.selectPlanButton, {
|
|
760
739
|
backgroundColor: plan.isPopular ? primaryColor : borderColor
|
|
761
740
|
}],
|
|
762
741
|
onPress: () => handleSubscribe(plan.id),
|
|
763
742
|
disabled: processingPayment,
|
|
764
|
-
children: processingPayment ?
|
|
743
|
+
children: processingPayment ? (0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, {
|
|
765
744
|
color: "#FFFFFF",
|
|
766
745
|
size: "small"
|
|
767
|
-
}) :
|
|
746
|
+
}) : (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
768
747
|
style: [styles.selectPlanText, {
|
|
769
748
|
color: plan.isPopular ? '#FFFFFF' : textColor
|
|
770
749
|
}],
|
|
@@ -775,31 +754,31 @@ const PremiumSubscriptionScreen = ({
|
|
|
775
754
|
})]
|
|
776
755
|
}, plan.id);
|
|
777
756
|
};
|
|
778
|
-
const renderTabNavigation = () =>
|
|
757
|
+
const renderTabNavigation = () => (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
779
758
|
style: styles.section,
|
|
780
|
-
children:
|
|
759
|
+
children: (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
781
760
|
style: [styles.tabContainer, {
|
|
782
761
|
borderBottomColor: borderColor
|
|
783
762
|
}],
|
|
784
|
-
children: [
|
|
763
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
785
764
|
style: [styles.tab, activeTab === 'plans' && {
|
|
786
765
|
borderBottomColor: primaryColor,
|
|
787
766
|
borderBottomWidth: 2
|
|
788
767
|
}],
|
|
789
768
|
onPress: () => setActiveTab('plans'),
|
|
790
|
-
children:
|
|
769
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
791
770
|
style: [styles.tabText, {
|
|
792
771
|
color: activeTab === 'plans' ? primaryColor : textColor
|
|
793
772
|
}],
|
|
794
773
|
children: t('premium.tabs.plans') || 'Full Plans'
|
|
795
774
|
})
|
|
796
|
-
}),
|
|
775
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
797
776
|
style: [styles.tab, activeTab === 'features' && {
|
|
798
777
|
borderBottomColor: primaryColor,
|
|
799
778
|
borderBottomWidth: 2
|
|
800
779
|
}],
|
|
801
780
|
onPress: () => setActiveTab('features'),
|
|
802
|
-
children:
|
|
781
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
803
782
|
style: [styles.tabText, {
|
|
804
783
|
color: activeTab === 'features' ? primaryColor : textColor
|
|
805
784
|
}],
|
|
@@ -853,7 +832,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
853
832
|
apps: feature.applicableApps.join(', ')
|
|
854
833
|
}) || `Available in: ${feature.applicableApps.join(', ')}`;
|
|
855
834
|
};
|
|
856
|
-
return
|
|
835
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
857
836
|
style: [styles.featureCard, {
|
|
858
837
|
backgroundColor: secondaryBackgroundColor,
|
|
859
838
|
borderColor
|
|
@@ -864,53 +843,53 @@ const PremiumSubscriptionScreen = ({
|
|
|
864
843
|
borderColor: primaryColor,
|
|
865
844
|
borderWidth: 2
|
|
866
845
|
}],
|
|
867
|
-
children: [
|
|
846
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
868
847
|
style: styles.featureHeader,
|
|
869
|
-
children: [
|
|
848
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
870
849
|
style: styles.featureIconContainer,
|
|
871
|
-
children:
|
|
850
|
+
children: (0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
872
851
|
name: getCategoryIcon(feature.category),
|
|
873
852
|
size: 24,
|
|
874
853
|
color: getCategoryColor(feature.category)
|
|
875
854
|
})
|
|
876
|
-
}),
|
|
855
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
877
856
|
style: styles.featureInfo,
|
|
878
|
-
children: [
|
|
857
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
879
858
|
style: styles.featureNameRow,
|
|
880
|
-
children: [
|
|
859
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
881
860
|
style: [styles.featureName, {
|
|
882
861
|
color: textColor
|
|
883
862
|
}],
|
|
884
863
|
children: feature.name
|
|
885
|
-
}), isIncludedInCurrentPlan &&
|
|
864
|
+
}), isIncludedInCurrentPlan && (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
886
865
|
style: [styles.includedBadge, {
|
|
887
866
|
backgroundColor: primaryColor
|
|
888
867
|
}],
|
|
889
|
-
children:
|
|
868
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
890
869
|
style: styles.includedBadgeText,
|
|
891
870
|
children: "Included"
|
|
892
871
|
})
|
|
893
872
|
})]
|
|
894
|
-
}),
|
|
873
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
895
874
|
style: [styles.featureDescription, {
|
|
896
875
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
897
876
|
}],
|
|
898
877
|
children: feature.description
|
|
899
|
-
}),
|
|
878
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
900
879
|
style: [styles.appScopeText, {
|
|
901
880
|
color: isDarkTheme ? '#888888' : '#999999'
|
|
902
881
|
}],
|
|
903
882
|
children: getAppScopeText()
|
|
904
883
|
})]
|
|
905
884
|
})]
|
|
906
|
-
}), !isIncludedInCurrentPlan &&
|
|
885
|
+
}), !isIncludedInCurrentPlan && (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
907
886
|
style: styles.featurePricing,
|
|
908
|
-
children: [
|
|
887
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
909
888
|
style: [styles.featurePrice, {
|
|
910
889
|
color: textColor
|
|
911
890
|
}],
|
|
912
891
|
children: pricing.formatted
|
|
913
|
-
}),
|
|
892
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
914
893
|
style: [styles.featureInterval, {
|
|
915
894
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
916
895
|
}],
|
|
@@ -918,62 +897,62 @@ const PremiumSubscriptionScreen = ({
|
|
|
918
897
|
interval: pricing.interval
|
|
919
898
|
}) || `per ${pricing.interval}`
|
|
920
899
|
})]
|
|
921
|
-
}), isIncludedInCurrentPlan ?
|
|
900
|
+
}), isIncludedInCurrentPlan ? (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
922
901
|
style: [styles.includedInPlanButton, {
|
|
923
902
|
backgroundColor: primaryColor
|
|
924
903
|
}],
|
|
925
|
-
children: [
|
|
904
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
926
905
|
name: "checkmark-circle",
|
|
927
906
|
size: 16,
|
|
928
907
|
color: "#FFFFFF"
|
|
929
|
-
}),
|
|
908
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
930
909
|
style: styles.includedInPlanText,
|
|
931
910
|
children: t('premium.feature.includedInPlan') || 'Included in your plan'
|
|
932
911
|
})]
|
|
933
|
-
}) : isSubscribed ?
|
|
912
|
+
}) : isSubscribed ? (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
934
913
|
style: styles.featureActions,
|
|
935
|
-
children: [
|
|
914
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
936
915
|
style: [styles.subscribedButton, {
|
|
937
916
|
backgroundColor: successColor
|
|
938
917
|
}],
|
|
939
|
-
children: [
|
|
918
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
940
919
|
name: "checkmark",
|
|
941
920
|
size: 16,
|
|
942
921
|
color: "#FFFFFF"
|
|
943
|
-
}),
|
|
922
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
944
923
|
style: styles.subscribedText,
|
|
945
924
|
children: t('premium.feature.subscribed') || 'Subscribed'
|
|
946
925
|
})]
|
|
947
|
-
}),
|
|
926
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
948
927
|
style: [styles.unsubscribeButton, {
|
|
949
928
|
borderColor: dangerColor
|
|
950
929
|
}],
|
|
951
930
|
onPress: () => handleFeatureUnsubscribe(feature.id),
|
|
952
|
-
children:
|
|
931
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
953
932
|
style: [styles.unsubscribeText, {
|
|
954
933
|
color: dangerColor
|
|
955
934
|
}],
|
|
956
935
|
children: t('premium.actions.unsubscribe') || 'Unsubscribe'
|
|
957
936
|
})
|
|
958
937
|
})]
|
|
959
|
-
}) : canPurchase ?
|
|
938
|
+
}) : canPurchase ? (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
960
939
|
style: [styles.subscribeFeatureButton, {
|
|
961
940
|
backgroundColor: primaryColor
|
|
962
941
|
}],
|
|
963
942
|
onPress: () => handleFeatureSubscribe(feature.id),
|
|
964
943
|
disabled: processingPayment,
|
|
965
|
-
children: processingPayment ?
|
|
944
|
+
children: processingPayment ? (0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, {
|
|
966
945
|
color: "#FFFFFF",
|
|
967
946
|
size: "small"
|
|
968
|
-
}) :
|
|
947
|
+
}) : (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
969
948
|
style: styles.subscribeFeatureText,
|
|
970
949
|
children: t('premium.actions.subscribe') || 'Subscribe'
|
|
971
950
|
})
|
|
972
|
-
}) :
|
|
951
|
+
}) : (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
973
952
|
style: [styles.unavailableButton, {
|
|
974
953
|
backgroundColor: isDarkTheme ? '#444444' : '#E0E0E0'
|
|
975
954
|
}],
|
|
976
|
-
children:
|
|
955
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
977
956
|
style: [styles.unavailableText, {
|
|
978
957
|
color: isDarkTheme ? '#888888' : '#999999'
|
|
979
958
|
}],
|
|
@@ -984,14 +963,14 @@ const PremiumSubscriptionScreen = ({
|
|
|
984
963
|
};
|
|
985
964
|
const renderIndividualFeatures = () => {
|
|
986
965
|
const categories = ['analytics', 'customization', 'content', 'networking', 'productivity'];
|
|
987
|
-
return
|
|
966
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
988
967
|
style: styles.section,
|
|
989
|
-
children: [
|
|
968
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
990
969
|
style: [styles.sectionTitle, {
|
|
991
970
|
color: textColor
|
|
992
971
|
}],
|
|
993
972
|
children: "Individual Features"
|
|
994
|
-
}),
|
|
973
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
995
974
|
style: [styles.sectionSubtitle, {
|
|
996
975
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
997
976
|
}],
|
|
@@ -999,9 +978,9 @@ const PremiumSubscriptionScreen = ({
|
|
|
999
978
|
}), categories.map(category => {
|
|
1000
979
|
const categoryFeatures = individualFeatures.filter(f => f.category === category);
|
|
1001
980
|
if (categoryFeatures.length === 0) return null;
|
|
1002
|
-
return
|
|
981
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1003
982
|
style: styles.categorySection,
|
|
1004
|
-
children: [
|
|
983
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1005
984
|
style: [styles.categoryTitle, {
|
|
1006
985
|
color: textColor
|
|
1007
986
|
}],
|
|
@@ -1011,29 +990,27 @@ const PremiumSubscriptionScreen = ({
|
|
|
1011
990
|
})]
|
|
1012
991
|
});
|
|
1013
992
|
};
|
|
1014
|
-
|
|
1015
993
|
// Add this for testing different app contexts (remove in production)
|
|
1016
|
-
const [showAppSwitcher, setShowAppSwitcher] = (0,
|
|
1017
|
-
|
|
994
|
+
const [showAppSwitcher, setShowAppSwitcher] = (0, react_1.useState)(__DEV__); // Only show in development
|
|
1018
995
|
const renderAppSwitcher = () => {
|
|
1019
996
|
if (!showAppSwitcher) return null;
|
|
1020
997
|
const testApps = ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator'];
|
|
1021
|
-
return
|
|
998
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1022
999
|
style: [styles.appSwitcher, {
|
|
1023
1000
|
backgroundColor: isDarkTheme ? '#333333' : '#F0F0F0',
|
|
1024
1001
|
borderColor
|
|
1025
1002
|
}],
|
|
1026
|
-
children: [
|
|
1003
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1027
1004
|
style: [styles.appSwitcherTitle, {
|
|
1028
1005
|
color: textColor
|
|
1029
1006
|
}],
|
|
1030
1007
|
children: "\uD83E\uDDEA Test App Context (Dev Only)"
|
|
1031
|
-
}),
|
|
1008
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, {
|
|
1032
1009
|
horizontal: true,
|
|
1033
1010
|
showsHorizontalScrollIndicator: false,
|
|
1034
|
-
children:
|
|
1011
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
1035
1012
|
style: styles.appSwitcherButtons,
|
|
1036
|
-
children: testApps.map(app =>
|
|
1013
|
+
children: testApps.map(app => (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, {
|
|
1037
1014
|
style: [styles.appSwitcherButton, {
|
|
1038
1015
|
backgroundColor: currentAppPackage === app ? primaryColor : 'transparent',
|
|
1039
1016
|
borderColor: primaryColor
|
|
@@ -1041,7 +1018,7 @@ const PremiumSubscriptionScreen = ({
|
|
|
1041
1018
|
onPress: () => {
|
|
1042
1019
|
setCurrentAppPackage(app);
|
|
1043
1020
|
},
|
|
1044
|
-
children:
|
|
1021
|
+
children: (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1045
1022
|
style: [styles.appSwitcherButtonText, {
|
|
1046
1023
|
color: currentAppPackage === app ? '#FFFFFF' : textColor
|
|
1047
1024
|
}],
|
|
@@ -1053,15 +1030,15 @@ const PremiumSubscriptionScreen = ({
|
|
|
1053
1030
|
});
|
|
1054
1031
|
};
|
|
1055
1032
|
if (loading) {
|
|
1056
|
-
return
|
|
1033
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1057
1034
|
style: [styles.container, {
|
|
1058
1035
|
backgroundColor,
|
|
1059
1036
|
justifyContent: 'center'
|
|
1060
1037
|
}],
|
|
1061
|
-
children: [
|
|
1038
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, {
|
|
1062
1039
|
size: "large",
|
|
1063
1040
|
color: primaryColor
|
|
1064
|
-
}),
|
|
1041
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1065
1042
|
style: [styles.loadingText, {
|
|
1066
1043
|
color: textColor
|
|
1067
1044
|
}],
|
|
@@ -1069,100 +1046,100 @@ const PremiumSubscriptionScreen = ({
|
|
|
1069
1046
|
})]
|
|
1070
1047
|
});
|
|
1071
1048
|
}
|
|
1072
|
-
return
|
|
1049
|
+
return (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1073
1050
|
style: [styles.container, {
|
|
1074
1051
|
backgroundColor
|
|
1075
1052
|
}],
|
|
1076
|
-
children: [renderHeader(), renderAppSwitcher(),
|
|
1053
|
+
children: [renderHeader(), renderAppSwitcher(), (0, jsx_runtime_1.jsxs)(react_native_1.ScrollView, {
|
|
1077
1054
|
style: styles.content,
|
|
1078
1055
|
showsVerticalScrollIndicator: false,
|
|
1079
|
-
children: [subscription && renderCurrentSubscription(), !subscription &&
|
|
1056
|
+
children: [subscription && renderCurrentSubscription(), !subscription && (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1080
1057
|
style: styles.section,
|
|
1081
|
-
children: [
|
|
1058
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1082
1059
|
style: [styles.sectionTitle, {
|
|
1083
1060
|
color: textColor
|
|
1084
1061
|
}],
|
|
1085
1062
|
children: t('premium.choosePlan') || 'Choose Your Plan'
|
|
1086
|
-
}),
|
|
1063
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1087
1064
|
style: [styles.sectionSubtitle, {
|
|
1088
1065
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
1089
1066
|
}],
|
|
1090
1067
|
children: t('premium.choosePlanSubtitle') || 'Unlock premium features and take your experience to the next level'
|
|
1091
1068
|
})]
|
|
1092
|
-
}), !subscription && renderTabNavigation(), !subscription && activeTab === 'plans' && renderBillingToggle(), activeTab === 'plans' ?
|
|
1069
|
+
}), !subscription && renderTabNavigation(), !subscription && activeTab === 'plans' && renderBillingToggle(), activeTab === 'plans' ? (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1093
1070
|
style: styles.section,
|
|
1094
|
-
children: [!subscription &&
|
|
1071
|
+
children: [!subscription && (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1095
1072
|
style: [styles.sectionTitle, {
|
|
1096
1073
|
color: textColor
|
|
1097
1074
|
}],
|
|
1098
1075
|
children: t('premium.availablePlans') || 'Available Plans'
|
|
1099
1076
|
}), plans.map(renderPlanCard)]
|
|
1100
|
-
}) : renderIndividualFeatures(),
|
|
1077
|
+
}) : renderIndividualFeatures(), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1101
1078
|
style: styles.section,
|
|
1102
|
-
children: [
|
|
1079
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1103
1080
|
style: [styles.sectionTitle, {
|
|
1104
1081
|
color: textColor
|
|
1105
1082
|
}],
|
|
1106
1083
|
children: t('premium.why') || 'Why Go Premium?'
|
|
1107
|
-
}),
|
|
1084
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1108
1085
|
style: [styles.benefitsCard, {
|
|
1109
1086
|
backgroundColor: secondaryBackgroundColor,
|
|
1110
1087
|
borderColor
|
|
1111
1088
|
}],
|
|
1112
|
-
children: [
|
|
1089
|
+
children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1113
1090
|
style: styles.benefitItem,
|
|
1114
|
-
children: [
|
|
1091
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
1115
1092
|
name: "flash",
|
|
1116
1093
|
size: 24,
|
|
1117
1094
|
color: primaryColor
|
|
1118
|
-
}),
|
|
1095
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1119
1096
|
style: styles.benefitContent,
|
|
1120
|
-
children: [
|
|
1097
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1121
1098
|
style: [styles.benefitTitle, {
|
|
1122
1099
|
color: textColor
|
|
1123
1100
|
}],
|
|
1124
1101
|
children: t('premium.benefits.performance.title') || 'Enhanced Performance'
|
|
1125
|
-
}),
|
|
1102
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1126
1103
|
style: [styles.benefitDescription, {
|
|
1127
1104
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
1128
1105
|
}],
|
|
1129
1106
|
children: t('premium.benefits.performance.desc') || 'Faster processing and priority access to our servers'
|
|
1130
1107
|
})]
|
|
1131
1108
|
})]
|
|
1132
|
-
}),
|
|
1109
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1133
1110
|
style: styles.benefitItem,
|
|
1134
|
-
children: [
|
|
1111
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
1135
1112
|
name: "shield-checkmark",
|
|
1136
1113
|
size: 24,
|
|
1137
1114
|
color: successColor
|
|
1138
|
-
}),
|
|
1115
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1139
1116
|
style: styles.benefitContent,
|
|
1140
|
-
children: [
|
|
1117
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1141
1118
|
style: [styles.benefitTitle, {
|
|
1142
1119
|
color: textColor
|
|
1143
1120
|
}],
|
|
1144
1121
|
children: t('premium.benefits.security.title') || 'Advanced Security'
|
|
1145
|
-
}),
|
|
1122
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1146
1123
|
style: [styles.benefitDescription, {
|
|
1147
1124
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
1148
1125
|
}],
|
|
1149
1126
|
children: t('premium.benefits.security.desc') || 'Enhanced encryption and security features'
|
|
1150
1127
|
})]
|
|
1151
1128
|
})]
|
|
1152
|
-
}),
|
|
1129
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1153
1130
|
style: styles.benefitItem,
|
|
1154
|
-
children: [
|
|
1131
|
+
children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, {
|
|
1155
1132
|
name: "headset",
|
|
1156
1133
|
size: 24,
|
|
1157
1134
|
color: warningColor
|
|
1158
|
-
}),
|
|
1135
|
+
}), (0, jsx_runtime_1.jsxs)(react_native_1.View, {
|
|
1159
1136
|
style: styles.benefitContent,
|
|
1160
|
-
children: [
|
|
1137
|
+
children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1161
1138
|
style: [styles.benefitTitle, {
|
|
1162
1139
|
color: textColor
|
|
1163
1140
|
}],
|
|
1164
1141
|
children: t('premium.benefits.support.title') || 'Priority Support'
|
|
1165
|
-
}),
|
|
1142
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.Text, {
|
|
1166
1143
|
style: [styles.benefitDescription, {
|
|
1167
1144
|
color: isDarkTheme ? '#BBBBBB' : '#666666'
|
|
1168
1145
|
}],
|
|
@@ -1171,13 +1148,13 @@ const PremiumSubscriptionScreen = ({
|
|
|
1171
1148
|
})]
|
|
1172
1149
|
})]
|
|
1173
1150
|
})]
|
|
1174
|
-
}),
|
|
1151
|
+
}), (0, jsx_runtime_1.jsx)(react_native_1.View, {
|
|
1175
1152
|
style: styles.bottomSpacing
|
|
1176
1153
|
})]
|
|
1177
1154
|
})]
|
|
1178
1155
|
});
|
|
1179
1156
|
};
|
|
1180
|
-
const styles =
|
|
1157
|
+
const styles = react_native_1.StyleSheet.create({
|
|
1181
1158
|
container: {
|
|
1182
1159
|
flex: 1
|
|
1183
1160
|
},
|
|
@@ -1196,7 +1173,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1196
1173
|
headerTitle: {
|
|
1197
1174
|
fontSize: 20,
|
|
1198
1175
|
fontWeight: '600',
|
|
1199
|
-
fontFamily:
|
|
1176
|
+
fontFamily: fonts_1.fontFamilies.interSemiBold
|
|
1200
1177
|
},
|
|
1201
1178
|
headerTitleContainer: {
|
|
1202
1179
|
flex: 1,
|
|
@@ -1219,7 +1196,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1219
1196
|
sectionTitle: {
|
|
1220
1197
|
fontSize: 24,
|
|
1221
1198
|
fontWeight: 'bold',
|
|
1222
|
-
fontFamily:
|
|
1199
|
+
fontFamily: fonts_1.fontFamilies.interBold,
|
|
1223
1200
|
marginBottom: 8
|
|
1224
1201
|
},
|
|
1225
1202
|
sectionSubtitle: {
|
|
@@ -1641,5 +1618,64 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
1641
1618
|
fontWeight: '500'
|
|
1642
1619
|
}
|
|
1643
1620
|
});
|
|
1621
|
+
exports.default = PremiumSubscriptionScreen;
|
|
1622
|
+
//# sourceMappingURL=PremiumSubscriptionScreen.js.map/ App-specific plan styles
|
|
1623
|
+
appSpecificBadge: {
|
|
1624
|
+
position: 'absolute',
|
|
1625
|
+
top: 16,
|
|
1626
|
+
right: 16,
|
|
1627
|
+
paddingHorizontal: 8,
|
|
1628
|
+
paddingVertical: 4,
|
|
1629
|
+
borderRadius: 12,
|
|
1630
|
+
zIndex: 1
|
|
1631
|
+
},
|
|
1632
|
+
appSpecificText: {
|
|
1633
|
+
color: '#FFFFFF',
|
|
1634
|
+
fontSize: 12,
|
|
1635
|
+
fontWeight: '600'
|
|
1636
|
+
},
|
|
1637
|
+
planRestrictionText: {
|
|
1638
|
+
fontSize: 12,
|
|
1639
|
+
fontWeight: '500',
|
|
1640
|
+
marginTop: 4,
|
|
1641
|
+
fontStyle: 'italic'
|
|
1642
|
+
},
|
|
1643
|
+
unavailablePlanButton: {
|
|
1644
|
+
paddingVertical: 16,
|
|
1645
|
+
borderRadius: 12,
|
|
1646
|
+
alignItems: 'center'
|
|
1647
|
+
},
|
|
1648
|
+
unavailablePlanText: {
|
|
1649
|
+
fontSize: 16,
|
|
1650
|
+
fontWeight: '600'
|
|
1651
|
+
},
|
|
1652
|
+
// App switcher styles (for development/testing)
|
|
1653
|
+
appSwitcher: {
|
|
1654
|
+
padding: 16,
|
|
1655
|
+
borderBottomWidth: 1,
|
|
1656
|
+
margin: 16,
|
|
1657
|
+
borderRadius: 12,
|
|
1658
|
+
borderWidth: 1
|
|
1659
|
+
},
|
|
1660
|
+
appSwitcherTitle: {
|
|
1661
|
+
fontSize: 14,
|
|
1662
|
+
fontWeight: '600',
|
|
1663
|
+
marginBottom: 12
|
|
1664
|
+
},
|
|
1665
|
+
appSwitcherButtons: {
|
|
1666
|
+
flexDirection: 'row',
|
|
1667
|
+
gap: 8
|
|
1668
|
+
},
|
|
1669
|
+
appSwitcherButton: {
|
|
1670
|
+
paddingHorizontal: 12,
|
|
1671
|
+
paddingVertical: 6,
|
|
1672
|
+
borderRadius: 8,
|
|
1673
|
+
borderWidth: 1
|
|
1674
|
+
},
|
|
1675
|
+
appSwitcherButtonText: {
|
|
1676
|
+
fontSize: 12,
|
|
1677
|
+
fontWeight: '500'
|
|
1678
|
+
}
|
|
1679
|
+
});
|
|
1644
1680
|
var _default = exports.default = PremiumSubscriptionScreen;
|
|
1645
1681
|
//# sourceMappingURL=PremiumSubscriptionScreen.js.map
|