@oxyhq/services 6.9.15 → 6.9.17
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/icons/OxyServices.js +13 -52
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/assets/illustrations/HighFive.js +18 -57
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -1
- package/lib/commonjs/index.js +201 -190
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/lib/sonner-safe.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +5 -16
- package/lib/commonjs/lib/sonner.js.map +1 -1
- package/lib/commonjs/lib/sonner.native.js +8 -45
- package/lib/commonjs/lib/sonner.native.js.map +1 -1
- package/lib/commonjs/lib/sonner.web.js +8 -45
- package/lib/commonjs/lib/sonner.web.js.map +1 -1
- package/lib/commonjs/ui/client.js +66 -88
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/ActivityIndicator.js +0 -26
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/Avatar.js +39 -27
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/BottomSheet.js +0 -20
- package/lib/commonjs/ui/components/BottomSheet.js.map +0 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +65 -103
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +0 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -30
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/commonjs/ui/components/EmptyState.js +10 -13
- package/lib/commonjs/ui/components/EmptyState.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +52 -81
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +17 -52
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +27 -29
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +10 -11
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +0 -34
- package/lib/commonjs/ui/components/Header.js.map +0 -1
- package/lib/commonjs/ui/components/HelperText.js +0 -26
- package/lib/commonjs/ui/components/HelperText.js.map +0 -1
- 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 +0 -1
- package/lib/commonjs/ui/components/IconButton/utils.js +4 -8
- package/lib/commonjs/ui/components/IconButton/utils.js.map +1 -1
- package/lib/commonjs/ui/components/LoadingState.js +11 -14
- package/lib/commonjs/ui/components/LoadingState.js.map +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +14 -53
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +17 -19
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
- 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 +31 -35
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- 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 +12 -15
- package/lib/commonjs/ui/components/Section.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +14 -13
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/SettingRow.js.map +0 -1
- package/lib/commonjs/ui/components/SignInModal.js +115 -132
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +71 -85
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/Surface.js +37 -79
- package/lib/commonjs/ui/components/Surface.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +8 -6
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +29 -74
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +23 -27
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +27 -31
- 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 +0 -1
- 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 +21 -23
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +10 -37
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +1 -2
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +65 -106
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -33
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/constants.js +25 -35
- package/lib/commonjs/ui/components/TextField/constants.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +43 -44
- package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField.js +35 -76
- 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 +30 -64
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +26 -68
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +6 -10
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +1 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
- 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 +0 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +1 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/index.js +0 -10
- 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 +14 -13
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +0 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +66 -77
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +118 -127
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +0 -1
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +0 -1
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js +0 -20
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +7 -12
- package/lib/commonjs/ui/components/icon/index.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +54 -62
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +21 -22
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +41 -52
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/modals/index.js +3 -8
- package/lib/commonjs/ui/components/modals/index.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +70 -89
- 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 +0 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +0 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +0 -1
- package/lib/commonjs/ui/components/payment/constants.js.map +0 -1
- package/lib/commonjs/ui/components/payment/index.js +0 -15
- 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 +27 -59
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/components/styles/overlay.js +6 -4
- 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 +6 -4
- 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 +3 -43
- 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 +0 -1
- package/lib/commonjs/ui/components/utils/splitStyles.js +7 -1
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/commonjs/ui/constants/iconColors.js +16 -12
- package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
- package/lib/commonjs/ui/constants/spacing.js.map +1 -1
- package/lib/commonjs/ui/constants/theme.js +9 -8
- package/lib/commonjs/ui/constants/theme.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +0 -1
- package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
- package/lib/commonjs/ui/context/ThemeContext.js +4 -27
- package/lib/commonjs/ui/context/ThemeContext.js.map +1 -2
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +0 -27
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +0 -1
- package/lib/commonjs/ui/hooks/index.js +26 -27
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/index.js +22 -31
- 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 +106 -83
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +53 -45
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/index.js +39 -50
- package/lib/commonjs/ui/hooks/queries/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +0 -6
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +39 -33
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js +12 -11
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +0 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +32 -28
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +17 -10
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js +26 -13
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +0 -1
- package/lib/commonjs/ui/hooks/useAuth.js +21 -24
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +0 -3
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useColorScheme.js +8 -6
- 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 +9 -7
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +75 -67
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.types.js +0 -5
- package/lib/commonjs/ui/hooks/useFollow.types.js.map +0 -1
- 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 +17 -16
- 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 +44 -40
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +39 -34
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js +22 -16
- 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 +13 -12
- package/lib/commonjs/ui/hooks/useThemeStyles.js.map +1 -1
- package/lib/commonjs/ui/hooks/useWebSSO.js +19 -11
- package/lib/commonjs/ui/hooks/useWebSSO.js.map +1 -1
- package/lib/commonjs/ui/index.js +138 -112
- 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 +0 -1
- package/lib/commonjs/ui/navigation/routes.js +12 -6
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +66 -75
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +133 -164
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +133 -150
- 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 +44 -83
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +0 -19
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +54 -61
- package/lib/commonjs/ui/screens/FAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +137 -155
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FollowersListScreen.js +6 -9
- package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FollowingListScreen.js +6 -9
- package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +36 -75
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +43 -79
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +50 -82
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +31 -35
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +0 -23
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +107 -120
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +69 -63
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +205 -241
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +81 -114
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +102 -128
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +0 -31
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +32 -69
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- 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 +85 -120
- 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 +72 -91
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +45 -80
- 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 +0 -1
- 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 +58 -47
- 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 +0 -1
- package/lib/commonjs/ui/stores/assetStore.js +16 -13
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +6 -5
- 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 +10 -3
- 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 +19 -18
- package/lib/commonjs/ui/styles/fonts.js.map +1 -1
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/commonjs/ui/styles/spacing.js +0 -11
- package/lib/commonjs/ui/styles/spacing.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +12 -11
- 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 +16 -11
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/colorUtils.js +0 -17
- package/lib/commonjs/ui/utils/colorUtils.js.map +0 -1
- 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 +0 -1
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +38 -22
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/iconNames.js.map +0 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/storageHelpers.js +12 -7
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/themeUtils.js +0 -15
- package/lib/commonjs/ui/utils/themeUtils.js.map +0 -1
- package/lib/commonjs/ui/utils/userUtils.js +9 -6
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
- package/lib/commonjs/utils/hookUtils.js +79 -60
- package/lib/commonjs/utils/hookUtils.js.map +1 -1
- package/lib/module/assets/icons/OxyServices.js +0 -12
- package/lib/module/assets/icons/OxyServices.js.map +0 -1
- package/lib/module/assets/illustrations/HighFive.js +0 -15
- package/lib/module/assets/illustrations/HighFive.js.map +0 -1
- package/lib/module/index.js +35 -406
- package/lib/module/index.js.map +1 -1
- package/lib/module/lib/sonner-safe.js +8 -7
- package/lib/module/lib/sonner-safe.js.map +1 -1
- package/lib/module/lib/sonner.js +1 -17
- package/lib/module/lib/sonner.js.map +1 -1
- package/lib/module/lib/sonner.native.js +0 -45
- package/lib/module/lib/sonner.native.js.map +1 -1
- package/lib/module/lib/sonner.web.js +6 -48
- package/lib/module/lib/sonner.web.js.map +1 -1
- package/lib/module/ui/client.js +25 -165
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/ActivityIndicator.js +27 -69
- package/lib/module/ui/components/ActivityIndicator.js.map +1 -1
- package/lib/module/ui/components/AutoHeightScrollView.js +9 -13
- package/lib/module/ui/components/AutoHeightScrollView.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +0 -8
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/BottomSheet.js +0 -99
- package/lib/module/ui/components/BottomSheet.js.map +0 -1
- package/lib/module/ui/components/BottomSheetRouter.js +61 -105
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/CrossFadeIcon.js +16 -60
- package/lib/module/ui/components/CrossFadeIcon.js.map +1 -1
- package/lib/module/ui/components/EmptyState.js +7 -15
- package/lib/module/ui/components/EmptyState.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +50 -84
- package/lib/module/ui/components/FollowButton.js.map +0 -1
- package/lib/module/ui/components/FontLoader.js +17 -57
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +27 -31
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +9 -13
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/Header.js +57 -102
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/HelperText.js +13 -55
- package/lib/module/ui/components/HelperText.js.map +1 -1
- package/lib/module/ui/components/Icon.js +13 -19
- package/lib/module/ui/components/Icon.js.map +0 -1
- package/lib/module/ui/components/IconButton/IconButton.js +24 -31
- package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/module/ui/components/IconButton/utils.js +4 -14
- package/lib/module/ui/components/IconButton/utils.js.map +1 -1
- package/lib/module/ui/components/LoadingState.js +0 -12
- package/lib/module/ui/components/LoadingState.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -13
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +0 -14
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +48 -39
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +37 -42
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +29 -37
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js +15 -18
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/Section.js +0 -16
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +12 -15
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/SettingRow.js +0 -17
- package/lib/module/ui/components/SettingRow.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +115 -142
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +0 -43
- package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/module/ui/components/Surface.js +34 -82
- package/lib/module/ui/components/Surface.js.map +1 -1
- package/lib/module/ui/components/TextField/Addons/Outline.js +0 -8
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Underline.js +8 -12
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -62
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -15
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +28 -33
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/enums.js +9 -13
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/types.js +0 -3
- package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js +2 -7
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/module/ui/components/TextField/Label/InputLabel.js +18 -25
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldFlat.js +63 -109
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +1 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +61 -109
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +1 -1
- package/lib/module/ui/components/TextField/constants.js +0 -23
- package/lib/module/ui/components/TextField/constants.js.map +0 -1
- package/lib/module/ui/components/TextField/helpers.js +50 -69
- package/lib/module/ui/components/TextField/helpers.js.map +1 -1
- package/lib/module/ui/components/TextField/types.js +1 -3
- package/lib/module/ui/components/TextField/types.js.map +1 -1
- package/lib/module/ui/components/TextField.js +0 -64
- package/lib/module/ui/components/TextField.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/Pressable.js +6 -7
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +28 -67
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -47
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/utils.js +6 -16
- package/lib/module/ui/components/TouchableRipple/utils.js.map +1 -1
- package/lib/module/ui/components/Typography/AnimatedText.js +0 -8
- package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/module/ui/components/Typography/types.js +3 -7
- package/lib/module/ui/components/Typography/types.js.map +1 -1
- package/lib/module/ui/components/feedback/FormInput.js +12 -20
- package/lib/module/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/module/ui/components/feedback/ProgressIndicator.js +0 -10
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/module/ui/components/feedback/constants.js +3 -7
- package/lib/module/ui/components/feedback/constants.js.map +1 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +10 -15
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/module/ui/components/feedback/index.js +5 -56
- package/lib/module/ui/components/feedback/index.js.map +1 -1
- package/lib/module/ui/components/feedback/types.js +0 -3
- package/lib/module/ui/components/feedback/types.js.map +0 -1
- package/lib/module/ui/components/feedback/useFeedbackForm.js +6 -11
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +0 -10
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +0 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +67 -72
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +0 -38
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +0 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +0 -27
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/fileManagement/styles.js +20 -24
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/components/icon/FAIRWalletIcon.js +14 -58
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -5
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/icon/index.js +2 -23
- package/lib/module/ui/components/icon/index.js.map +1 -1
- package/lib/module/ui/components/index.js +0 -111
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +0 -11
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +12 -15
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +40 -48
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/modals/index.js +1 -16
- package/lib/module/ui/components/modals/index.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +69 -77
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +17 -25
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +0 -13
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +0 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +0 -18
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +0 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +0 -29
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +0 -1
- package/lib/module/ui/components/payment/constants.js +0 -7
- package/lib/module/ui/components/payment/constants.js.map +0 -1
- package/lib/module/ui/components/payment/index.js +0 -73
- package/lib/module/ui/components/payment/index.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +0 -9
- package/lib/module/ui/components/payment/paymentStyles.js.map +0 -1
- package/lib/module/ui/components/payment/types.js +1 -3
- package/lib/module/ui/components/payment/types.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +25 -62
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/components/styles/overlay.js +0 -13
- package/lib/module/ui/components/styles/overlay.js.map +1 -1
- package/lib/module/ui/components/styles/shadow.js +8 -12
- package/lib/module/ui/components/styles/shadow.js.map +1 -1
- package/lib/module/ui/components/theming.js +6 -9
- package/lib/module/ui/components/theming.js.map +1 -1
- package/lib/module/ui/components/types.js +1 -3
- package/lib/module/ui/components/types.js.map +1 -1
- package/lib/module/ui/components/utils/forwardRef.js +0 -40
- package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/module/ui/components/utils/hasTouchHandler.js +1 -5
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/module/ui/components/utils/roundLayoutSize.js +1 -6
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -1
- package/lib/module/ui/components/utils/splitStyles.js +7 -5
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/module/ui/constants/iconColors.js +14 -16
- package/lib/module/ui/constants/iconColors.js.map +1 -1
- package/lib/module/ui/constants/spacing.js +25 -24
- package/lib/module/ui/constants/spacing.js.map +1 -1
- package/lib/module/ui/constants/theme.js +4 -7
- package/lib/module/ui/constants/theme.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +0 -17
- package/lib/module/ui/context/OxyContext.js.map +0 -1
- package/lib/module/ui/context/ThemeContext.js +7 -13
- package/lib/module/ui/context/ThemeContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +39 -68
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/index.js +0 -64
- package/lib/module/ui/hooks/index.js.map +0 -1
- package/lib/module/ui/hooks/mutations/index.js +5 -67
- package/lib/module/ui/hooks/mutations/index.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +0 -7
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +0 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +109 -92
- 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 +0 -114
- package/lib/module/ui/hooks/queries/index.js.map +0 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +36 -39
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +40 -44
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js +12 -17
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +0 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +33 -37
- 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 +26 -19
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js +16 -20
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +18 -25
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js +13 -16
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useColorScheme.js +0 -3
- package/lib/module/ui/hooks/useColorScheme.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +11 -16
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +9 -15
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +0 -1
- package/lib/module/ui/hooks/useFileFiltering.js +0 -9
- package/lib/module/ui/hooks/useFileFiltering.js.map +0 -1
- package/lib/module/ui/hooks/useFollow.js +77 -75
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.types.js +0 -6
- package/lib/module/ui/hooks/useFollow.types.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +0 -7
- package/lib/module/ui/hooks/useI18n.js.map +0 -1
- package/lib/module/ui/hooks/useLanguageManagement.js +18 -22
- package/lib/module/ui/hooks/useLanguageManagement.js.map +0 -1
- package/lib/module/ui/hooks/useProfileEditing.js +0 -9
- package/lib/module/ui/hooks/useProfileEditing.js.map +0 -1
- package/lib/module/ui/hooks/useQueryClient.js +0 -5
- package/lib/module/ui/hooks/useQueryClient.js.map +0 -1
- package/lib/module/ui/hooks/useSessionManagement.js +45 -46
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSessionSocket.js +0 -15
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js +0 -14
- package/lib/module/ui/hooks/useSettingToggle.js.map +0 -1
- package/lib/module/ui/hooks/useStorage.js +7 -12
- package/lib/module/ui/hooks/useStorage.js.map +0 -1
- package/lib/module/ui/hooks/useThemeColors.js +10 -14
- package/lib/module/ui/hooks/useThemeColors.js.map +0 -1
- package/lib/module/ui/hooks/useThemeStyles.js +14 -18
- package/lib/module/ui/hooks/useThemeStyles.js.map +1 -1
- package/lib/module/ui/hooks/useWebSSO.js +16 -12
- package/lib/module/ui/hooks/useWebSSO.js.map +1 -1
- package/lib/module/ui/index.js +37 -117
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/isFrontend.js +1 -4
- package/lib/module/ui/isFrontend.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +0 -17
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +14 -8
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +65 -71
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +131 -167
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -88
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -88
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +42 -86
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +76 -79
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +89 -114
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +0 -38
- package/lib/module/ui/screens/FAQScreen.js.map +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -58
- package/lib/module/ui/screens/FeedbackScreen.js.map +0 -1
- package/lib/module/ui/screens/FileManagementScreen.js +0 -149
- package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/FollowersListScreen.js +0 -8
- package/lib/module/ui/screens/FollowersListScreen.js.map +1 -1
- package/lib/module/ui/screens/FollowingListScreen.js +4 -12
- package/lib/module/ui/screens/FollowingListScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +0 -45
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +41 -81
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -71
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +0 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +31 -33
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +35 -72
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +0 -50
- package/lib/module/ui/screens/OxyAuthScreen.js.map +0 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +0 -28
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +205 -186
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +0 -56
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/ProfileScreen.js +101 -102
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +0 -55
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +0 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +0 -39
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +89 -81
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +18 -21
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +0 -69
- package/lib/module/ui/screens/UserListScreen.js.map +0 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +82 -123
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +26 -29
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +72 -74
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +43 -83
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -30
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +80 -81
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/server.js +29 -50
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/stores/accountStore.js +0 -7
- package/lib/module/ui/stores/accountStore.js.map +0 -1
- package/lib/module/ui/stores/assetStore.js +14 -24
- package/lib/module/ui/stores/assetStore.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +5 -8
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/stores/fileStore.js +0 -6
- package/lib/module/ui/stores/fileStore.js.map +0 -1
- package/lib/module/ui/stores/followStore.js +9 -6
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +12 -17
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/fonts.js +0 -8
- package/lib/module/ui/styles/fonts.js.map +0 -1
- package/lib/module/ui/styles/index.js +4 -26
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/styles/spacing.js +0 -54
- package/lib/module/ui/styles/spacing.js.map +1 -1
- package/lib/module/ui/styles/theme.js +13 -19
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/ui/types/fileManagement.js +1 -3
- package/lib/module/ui/types/fileManagement.js.map +0 -1
- package/lib/module/ui/types/navigation.js +1 -3
- package/lib/module/ui/types/navigation.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +0 -5
- package/lib/module/ui/utils/avatarUtils.js.map +0 -1
- package/lib/module/ui/utils/colorUtils.js +0 -44
- package/lib/module/ui/utils/colorUtils.js.map +0 -1
- package/lib/module/ui/utils/confirmAction.js +0 -7
- package/lib/module/ui/utils/confirmAction.js.map +1 -1
- package/lib/module/ui/utils/errorHandlers.js +18 -16
- package/lib/module/ui/utils/errorHandlers.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -6
- package/lib/module/ui/utils/fileManagement.js.map +0 -1
- package/lib/module/ui/utils/iconNames.js +20 -24
- package/lib/module/ui/utils/iconNames.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js +15 -17
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/ui/utils/storageHelpers.js +10 -12
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/ui/utils/themeUtils.js +2 -35
- package/lib/module/ui/utils/themeUtils.js.map +0 -1
- package/lib/module/ui/utils/userUtils.js +6 -10
- package/lib/module/ui/utils/userUtils.js.map +1 -1
- package/lib/module/utils/hookUtils.js +83 -82
- package/lib/module/utils/hookUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +0 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +28 -21
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +0 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +28 -21
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/ui/hooks/useAuth.ts +0 -2
- package/src/ui/index.ts +33 -104
- package/lib/commonjs/assets/assets/icons/OxyServices.d.ts +0 -28
- package/lib/commonjs/assets/assets/icons/OxyServices.js +0 -53
- package/lib/commonjs/assets/assets/illustrations/HighFive.d.ts +0 -7
- package/lib/commonjs/assets/assets/illustrations/HighFive.js +0 -41
- package/lib/module/assets/assets/icons/OxyServices.d.ts +0 -28
- package/lib/module/assets/assets/icons/OxyServices.js +0 -53
- package/lib/module/assets/assets/illustrations/HighFive.d.ts +0 -7
- package/lib/module/assets/assets/illustrations/HighFive.js +0 -41
- package/lib/typescript/assets/icons/OxyServices.d.ts +0 -28
- package/lib/typescript/assets/illustrations/HighFive.d.ts +0 -7
- package/lib/typescript/index.d.ts +0 -46
- package/lib/typescript/lib/sonner-safe.d.ts +0 -8
- package/lib/typescript/lib/sonner.d.ts +0 -11
- package/lib/typescript/lib/sonner.native.d.ts +0 -14
- package/lib/typescript/lib/sonner.web.d.ts +0 -14
- package/lib/typescript/ui/client.d.ts +0 -30
- package/lib/typescript/ui/components/ActivityIndicator.d.ts +0 -44
- package/lib/typescript/ui/components/AutoHeightScrollView.d.ts +0 -22
- package/lib/typescript/ui/components/Avatar.d.ts +0 -60
- package/lib/typescript/ui/components/BottomSheet.d.ts +0 -28
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts +0 -8
- package/lib/typescript/ui/components/CrossFadeIcon.d.ts +0 -26
- package/lib/typescript/ui/components/EmptyState.d.ts +0 -7
- package/lib/typescript/ui/components/FollowButton.d.ts +0 -28
- package/lib/typescript/ui/components/FontLoader.d.ts +0 -14
- package/lib/typescript/ui/components/GroupedItem.d.ts +0 -23
- package/lib/typescript/ui/components/GroupedSection.d.ts +0 -29
- package/lib/typescript/ui/components/Header.d.ts +0 -37
- package/lib/typescript/ui/components/HelperText.d.ts +0 -46
- package/lib/typescript/ui/components/Icon.d.ts +0 -59
- package/lib/typescript/ui/components/IconButton/IconButton.d.ts +0 -98
- package/lib/typescript/ui/components/IconButton/utils.d.ts +0 -18
- package/lib/typescript/ui/components/LoadingState.d.ts +0 -8
- package/lib/typescript/ui/components/OxyLogo.d.ts +0 -28
- package/lib/typescript/ui/components/OxyPayButton.d.ts +0 -28
- package/lib/typescript/ui/components/OxyProvider.d.ts +0 -37
- package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -64
- package/lib/typescript/ui/components/ProfileCard.d.ts +0 -17
- package/lib/typescript/ui/components/QuickActions.d.ts +0 -14
- package/lib/typescript/ui/components/Section.d.ts +0 -11
- package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
- package/lib/typescript/ui/components/SettingRow.d.ts +0 -19
- package/lib/typescript/ui/components/SignInModal.d.ts +0 -17
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +0 -25
- package/lib/typescript/ui/components/Surface.d.ts +0 -75
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts +0 -15
- package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts +0 -18
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -44
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -72
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -77
- package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts +0 -12
- package/lib/typescript/ui/components/TextField/Adornment/types.d.ts +0 -11
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts +0 -11
- package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts +0 -4
- package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts +0 -3
- package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts +0 -3
- package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts +0 -3
- package/lib/typescript/ui/components/TextField/constants.d.ts +0 -31
- package/lib/typescript/ui/components/TextField/helpers.d.ts +0 -96
- package/lib/typescript/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/ui/components/TextField.d.ts +0 -191
- package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts +0 -12
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -61
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -24
- package/lib/typescript/ui/components/TouchableRipple/utils.d.ts +0 -10
- package/lib/typescript/ui/components/Typography/AnimatedText.d.ts +0 -34
- package/lib/typescript/ui/components/Typography/types.d.ts +0 -18
- package/lib/typescript/ui/components/feedback/FormInput.d.ts +0 -19
- package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts +0 -10
- package/lib/typescript/ui/components/feedback/constants.d.ts +0 -4
- package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/ui/components/feedback/index.d.ts +0 -6
- package/lib/typescript/ui/components/feedback/types.d.ts +0 -45
- package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts +0 -8
- package/lib/typescript/ui/components/fileManagement/AnimatedButton.d.ts +0 -15
- package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts +0 -14
- package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts +0 -17
- package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts +0 -20
- package/lib/typescript/ui/components/fileManagement/styles.d.ts +0 -859
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +0 -8
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +0 -9
- package/lib/typescript/ui/components/icon/index.d.ts +0 -3
- package/lib/typescript/ui/components/index.d.ts +0 -16
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +0 -23
- package/lib/typescript/ui/components/internal/PinInput.d.ts +0 -22
- package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts +0 -18
- package/lib/typescript/ui/components/modals/index.d.ts +0 -1
- package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts +0 -20
- package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts +0 -13
- package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts +0 -15
- package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts +0 -9
- package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts +0 -14
- package/lib/typescript/ui/components/payment/constants.d.ts +0 -6
- package/lib/typescript/ui/components/payment/index.d.ts +0 -8
- package/lib/typescript/ui/components/payment/paymentStyles.d.ts +0 -395
- package/lib/typescript/ui/components/payment/types.d.ts +0 -39
- package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts +0 -26
- package/lib/typescript/ui/components/styles/overlay.d.ts +0 -3
- package/lib/typescript/ui/components/styles/shadow.d.ts +0 -2
- package/lib/typescript/ui/components/theming.d.ts +0 -7
- package/lib/typescript/ui/components/types.d.ts +0 -80
- package/lib/typescript/ui/components/utils/forwardRef.d.ts +0 -11
- package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts +0 -5
- package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts +0 -1
- package/lib/typescript/ui/components/utils/splitStyles.d.ts +0 -19
- package/lib/typescript/ui/constants/iconColors.d.ts +0 -129
- package/lib/typescript/ui/constants/spacing.d.ts +0 -32
- package/lib/typescript/ui/constants/theme.d.ts +0 -96
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -75
- package/lib/typescript/ui/context/ThemeContext.d.ts +0 -18
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +0 -39
- package/lib/typescript/ui/hooks/index.d.ts +0 -6
- package/lib/typescript/ui/hooks/mutations/index.d.ts +0 -8
- package/lib/typescript/ui/hooks/mutations/mutationFactory.d.ts +0 -75
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts +0 -42
- package/lib/typescript/ui/hooks/mutations/useServicesMutations.d.ts +0 -22
- package/lib/typescript/ui/hooks/queries/index.d.ts +0 -10
- package/lib/typescript/ui/hooks/queries/queryKeys.d.ts +0 -64
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts +0 -42
- package/lib/typescript/ui/hooks/queries/useSecurityQueries.d.ts +0 -14
- package/lib/typescript/ui/hooks/queries/useServicesQueries.d.ts +0 -30
- package/lib/typescript/ui/hooks/queryClient.d.ts +0 -18
- package/lib/typescript/ui/hooks/useAssets.d.ts +0 -34
- package/lib/typescript/ui/hooks/useAsyncAction.d.ts +0 -50
- package/lib/typescript/ui/hooks/useAuth.d.ts +0 -77
- package/lib/typescript/ui/hooks/useAvatarPicker.d.ts +0 -24
- package/lib/typescript/ui/hooks/useColorScheme.d.ts +0 -7
- package/lib/typescript/ui/hooks/useDeviceManagement.d.ts +0 -26
- package/lib/typescript/ui/hooks/useFileDownloadUrl.d.ts +0 -21
- package/lib/typescript/ui/hooks/useFileFiltering.d.ts +0 -28
- package/lib/typescript/ui/hooks/useFollow.d.ts +0 -92
- package/lib/typescript/ui/hooks/useFollow.types.d.ts +0 -32
- package/lib/typescript/ui/hooks/useI18n.d.ts +0 -4
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts +0 -24
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts +0 -35
- package/lib/typescript/ui/hooks/useQueryClient.d.ts +0 -6
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts +0 -40
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts +0 -14
- package/lib/typescript/ui/hooks/useSettingToggle.d.ts +0 -56
- package/lib/typescript/ui/hooks/useStorage.d.ts +0 -15
- package/lib/typescript/ui/hooks/useThemeColors.d.ts +0 -93
- package/lib/typescript/ui/hooks/useThemeStyles.d.ts +0 -44
- package/lib/typescript/ui/hooks/useWebSSO.d.ts +0 -57
- package/lib/typescript/ui/index.d.ts +0 -23
- package/lib/typescript/ui/isFrontend.d.ts +0 -2
- package/lib/typescript/ui/navigation/bottomSheetManager.d.ts +0 -26
- package/lib/typescript/ui/navigation/routes.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -7
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/EditProfileFieldScreen.d.ts +0 -12
- package/lib/typescript/ui/screens/FAQScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/FollowersListScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/FollowingListScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts +0 -6
- package/lib/typescript/ui/screens/LearnMoreUsernamesScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts +0 -16
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +0 -14
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts +0 -14
- package/lib/typescript/ui/screens/UserListScreen.d.ts +0 -10
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts +0 -12
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -4
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -4
- package/lib/typescript/ui/server.d.ts +0 -40
- package/lib/typescript/ui/stores/accountStore.d.ts +0 -26
- package/lib/typescript/ui/stores/assetStore.d.ts +0 -53
- package/lib/typescript/ui/stores/authStore.d.ts +0 -16
- package/lib/typescript/ui/stores/fileStore.d.ts +0 -30
- package/lib/typescript/ui/stores/followStore.d.ts +0 -24
- package/lib/typescript/ui/styles/authStyles.d.ts +0 -331
- package/lib/typescript/ui/styles/fonts.d.ts +0 -20
- package/lib/typescript/ui/styles/index.d.ts +0 -4
- package/lib/typescript/ui/styles/spacing.d.ts +0 -48
- package/lib/typescript/ui/styles/theme.d.ts +0 -67
- package/lib/typescript/ui/types/fileManagement.d.ts +0 -40
- package/lib/typescript/ui/types/navigation.d.ts +0 -36
- package/lib/typescript/ui/utils/avatarUtils.d.ts +0 -22
- package/lib/typescript/ui/utils/colorUtils.d.ts +0 -9
- package/lib/typescript/ui/utils/confirmAction.d.ts +0 -6
- package/lib/typescript/ui/utils/errorHandlers.d.ts +0 -34
- package/lib/typescript/ui/utils/fileManagement.d.ts +0 -86
- package/lib/typescript/ui/utils/iconNames.d.ts +0 -111
- package/lib/typescript/ui/utils/sessionHelpers.d.ts +0 -64
- package/lib/typescript/ui/utils/storageHelpers.d.ts +0 -27
- package/lib/typescript/ui/utils/themeUtils.d.ts +0 -10
- package/lib/typescript/ui/utils/userUtils.d.ts +0 -28
- package/lib/typescript/utils/hookUtils.d.ts +0 -101
- package/src/assets/icons/OxyServices.d.ts +0 -28
- package/src/assets/icons/OxyServices.js +0 -53
- package/src/assets/illustrations/HighFive.d.ts +0 -7
- package/src/assets/illustrations/HighFive.js +0 -41
- package/src/index.d.ts +0 -46
- package/src/index.js +0 -127
- package/src/lib/sonner-safe.d.ts +0 -8
- package/src/lib/sonner-safe.js +0 -28
- package/src/lib/sonner.d.ts +0 -11
- package/src/lib/sonner.js +0 -16
- package/src/lib/sonner.native.d.ts +0 -14
- package/src/lib/sonner.native.js +0 -46
- package/src/lib/sonner.web.d.ts +0 -14
- package/src/lib/sonner.web.js +0 -46
- package/src/ui/client.d.ts +0 -30
- package/src/ui/client.js +0 -64
- package/src/ui/components/ActivityIndicator.d.ts +0 -44
- package/src/ui/components/ActivityIndicator.js +0 -184
- package/src/ui/components/AutoHeightScrollView.d.ts +0 -22
- package/src/ui/components/AutoHeightScrollView.js +0 -33
- package/src/ui/components/Avatar.d.ts +0 -60
- package/src/ui/components/Avatar.js +0 -146
- package/src/ui/components/BottomSheet.d.ts +0 -28
- package/src/ui/components/BottomSheet.js +0 -374
- package/src/ui/components/BottomSheetRouter.d.ts +0 -8
- package/src/ui/components/BottomSheetRouter.js +0 -211
- package/src/ui/components/CrossFadeIcon.d.ts +0 -26
- package/src/ui/components/CrossFadeIcon.js +0 -111
- package/src/ui/components/EmptyState.d.ts +0 -7
- package/src/ui/components/EmptyState.js +0 -27
- package/src/ui/components/FollowButton.d.ts +0 -28
- package/src/ui/components/FollowButton.js +0 -197
- package/src/ui/components/FontLoader.d.ts +0 -14
- package/src/ui/components/FontLoader.js +0 -185
- package/src/ui/components/GroupedItem.d.ts +0 -23
- package/src/ui/components/GroupedItem.js +0 -84
- package/src/ui/components/GroupedSection.d.ts +0 -29
- package/src/ui/components/GroupedSection.js +0 -13
- package/src/ui/components/Header.d.ts +0 -37
- package/src/ui/components/Header.js +0 -400
- package/src/ui/components/HelperText.d.ts +0 -46
- package/src/ui/components/HelperText.js +0 -119
- package/src/ui/components/Icon.d.ts +0 -59
- package/src/ui/components/Icon.js +0 -108
- package/src/ui/components/IconButton/IconButton.d.ts +0 -98
- package/src/ui/components/IconButton/IconButton.js +0 -90
- package/src/ui/components/IconButton/utils.d.ts +0 -18
- package/src/ui/components/IconButton/utils.js +0 -119
- package/src/ui/components/LoadingState.d.ts +0 -8
- package/src/ui/components/LoadingState.js +0 -29
- package/src/ui/components/OxyLogo.d.ts +0 -28
- package/src/ui/components/OxyLogo.js +0 -53
- package/src/ui/components/OxyPayButton.d.ts +0 -28
- package/src/ui/components/OxyPayButton.js +0 -76
- package/src/ui/components/OxyProvider.d.ts +0 -37
- package/src/ui/components/OxyProvider.js +0 -197
- package/src/ui/components/OxySignInButton.d.ts +0 -64
- package/src/ui/components/OxySignInButton.js +0 -145
- package/src/ui/components/ProfileCard.d.ts +0 -17
- package/src/ui/components/ProfileCard.js +0 -82
- package/src/ui/components/QuickActions.d.ts +0 -14
- package/src/ui/components/QuickActions.js +0 -62
- package/src/ui/components/Section.d.ts +0 -11
- package/src/ui/components/Section.js +0 -24
- package/src/ui/components/SectionTitle.d.ts +0 -9
- package/src/ui/components/SectionTitle.js +0 -21
- package/src/ui/components/SettingRow.d.ts +0 -19
- package/src/ui/components/SettingRow.js +0 -38
- package/src/ui/components/SignInModal.d.ts +0 -17
- package/src/ui/components/SignInModal.js +0 -428
- package/src/ui/components/StepBasedScreen.d.ts +0 -25
- package/src/ui/components/StepBasedScreen.js +0 -372
- package/src/ui/components/Surface.d.ts +0 -75
- package/src/ui/components/Surface.js +0 -239
- package/src/ui/components/TextField/Addons/Outline.d.ts +0 -15
- package/src/ui/components/TextField/Addons/Outline.js +0 -30
- package/src/ui/components/TextField/Addons/Underline.d.ts +0 -18
- package/src/ui/components/TextField/Addons/Underline.js +0 -45
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -44
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -132
- package/src/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -72
- package/src/ui/components/TextField/Adornment/TextFieldAffix.js +0 -88
- package/src/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -77
- package/src/ui/components/TextField/Adornment/TextFieldIcon.js +0 -91
- package/src/ui/components/TextField/Adornment/enums.d.ts +0 -12
- package/src/ui/components/TextField/Adornment/enums.js +0 -18
- package/src/ui/components/TextField/Adornment/types.d.ts +0 -11
- package/src/ui/components/TextField/Adornment/types.js +0 -2
- package/src/ui/components/TextField/Adornment/utils.d.ts +0 -11
- package/src/ui/components/TextField/Adornment/utils.js +0 -50
- package/src/ui/components/TextField/Label/InputLabel.d.ts +0 -4
- package/src/ui/components/TextField/Label/InputLabel.js +0 -125
- package/src/ui/components/TextField/Label/LabelBackground.d.ts +0 -3
- package/src/ui/components/TextField/Label/LabelBackground.js +0 -71
- package/src/ui/components/TextField/TextFieldFlat.d.ts +0 -3
- package/src/ui/components/TextField/TextFieldFlat.js +0 -347
- package/src/ui/components/TextField/TextFieldOutlined.d.ts +0 -3
- package/src/ui/components/TextField/TextFieldOutlined.js +0 -313
- package/src/ui/components/TextField/constants.d.ts +0 -31
- package/src/ui/components/TextField/constants.js +0 -40
- package/src/ui/components/TextField/helpers.d.ts +0 -96
- package/src/ui/components/TextField/helpers.js +0 -388
- package/src/ui/components/TextField/types.d.ts +0 -155
- package/src/ui/components/TextField/types.js +0 -2
- package/src/ui/components/TextField.d.ts +0 -191
- package/src/ui/components/TextField.js +0 -291
- package/src/ui/components/TouchableRipple/Pressable.d.ts +0 -12
- package/src/ui/components/TouchableRipple/Pressable.js +0 -5
- package/src/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -61
- package/src/ui/components/TouchableRipple/TouchableRipple.js +0 -246
- package/src/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -24
- package/src/ui/components/TouchableRipple/TouchableRipple.native.js +0 -99
- package/src/ui/components/TouchableRipple/utils.d.ts +0 -10
- package/src/ui/components/TouchableRipple/utils.js +0 -40
- package/src/ui/components/Typography/AnimatedText.d.ts +0 -34
- package/src/ui/components/Typography/AnimatedText.js +0 -49
- package/src/ui/components/Typography/types.d.ts +0 -18
- package/src/ui/components/Typography/types.js +0 -22
- package/src/ui/components/feedback/FormInput.d.ts +0 -19
- package/src/ui/components/feedback/FormInput.js +0 -26
- package/src/ui/components/feedback/ProgressIndicator.d.ts +0 -10
- package/src/ui/components/feedback/ProgressIndicator.js +0 -16
- package/src/ui/components/feedback/constants.d.ts +0 -4
- package/src/ui/components/feedback/constants.js +0 -21
- package/src/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/src/ui/components/feedback/feedbackStyles.js +0 -250
- package/src/ui/components/feedback/index.d.ts +0 -6
- package/src/ui/components/feedback/index.js +0 -18
- package/src/ui/components/feedback/types.d.ts +0 -45
- package/src/ui/components/feedback/types.js +0 -2
- package/src/ui/components/feedback/useFeedbackForm.d.ts +0 -8
- package/src/ui/components/feedback/useFeedbackForm.js +0 -42
- package/src/ui/components/fileManagement/AnimatedButton.d.ts +0 -15
- package/src/ui/components/fileManagement/AnimatedButton.js +0 -29
- package/src/ui/components/fileManagement/FileDetailsModal.d.ts +0 -14
- package/src/ui/components/fileManagement/FileDetailsModal.js +0 -22
- package/src/ui/components/fileManagement/FileViewer.d.ts +0 -17
- package/src/ui/components/fileManagement/FileViewer.js +0 -138
- package/src/ui/components/fileManagement/UploadPreview.d.ts +0 -20
- package/src/ui/components/fileManagement/UploadPreview.js +0 -35
- package/src/ui/components/fileManagement/styles.d.ts +0 -859
- package/src/ui/components/fileManagement/styles.js +0 -861
- package/src/ui/components/icon/FAIRWalletIcon.d.ts +0 -8
- package/src/ui/components/icon/FAIRWalletIcon.js +0 -54
- package/src/ui/components/icon/OxyIcon.d.ts +0 -9
- package/src/ui/components/icon/OxyIcon.js +0 -9
- package/src/ui/components/icon/index.d.ts +0 -3
- package/src/ui/components/icon/index.js +0 -10
- package/src/ui/components/index.d.ts +0 -16
- package/src/ui/components/index.js +0 -42
- package/src/ui/components/internal/GroupedPillButtons.d.ts +0 -23
- package/src/ui/components/internal/GroupedPillButtons.js +0 -149
- package/src/ui/components/internal/PinInput.d.ts +0 -22
- package/src/ui/components/internal/PinInput.js +0 -76
- package/src/ui/components/modals/DeleteAccountModal.d.ts +0 -18
- package/src/ui/components/modals/DeleteAccountModal.js +0 -154
- package/src/ui/components/modals/index.d.ts +0 -1
- package/src/ui/components/modals/index.js +0 -8
- package/src/ui/components/payment/PaymentDetailsStep.d.ts +0 -20
- package/src/ui/components/payment/PaymentDetailsStep.js +0 -65
- package/src/ui/components/payment/PaymentMethodStep.d.ts +0 -13
- package/src/ui/components/payment/PaymentMethodStep.js +0 -54
- package/src/ui/components/payment/PaymentReviewStep.d.ts +0 -15
- package/src/ui/components/payment/PaymentReviewStep.js +0 -88
- package/src/ui/components/payment/PaymentSuccessStep.d.ts +0 -9
- package/src/ui/components/payment/PaymentSuccessStep.js +0 -35
- package/src/ui/components/payment/PaymentSummaryStep.d.ts +0 -14
- package/src/ui/components/payment/PaymentSummaryStep.js +0 -60
- package/src/ui/components/payment/constants.d.ts +0 -6
- package/src/ui/components/payment/constants.js +0 -38
- package/src/ui/components/payment/index.d.ts +0 -8
- package/src/ui/components/payment/index.js +0 -24
- package/src/ui/components/payment/paymentStyles.d.ts +0 -395
- package/src/ui/components/payment/paymentStyles.js +0 -399
- package/src/ui/components/payment/types.d.ts +0 -39
- package/src/ui/components/payment/types.js +0 -2
- package/src/ui/components/photogrid/JustifiedPhotoGrid.d.ts +0 -26
- package/src/ui/components/photogrid/JustifiedPhotoGrid.js +0 -122
- package/src/ui/components/styles/overlay.d.ts +0 -3
- package/src/ui/components/styles/overlay.js +0 -81
- package/src/ui/components/styles/shadow.d.ts +0 -2
- package/src/ui/components/styles/shadow.js +0 -123
- package/src/ui/components/theming.d.ts +0 -7
- package/src/ui/components/theming.js +0 -111
- package/src/ui/components/types.d.ts +0 -80
- package/src/ui/components/types.js +0 -2
- package/src/ui/components/utils/forwardRef.d.ts +0 -11
- package/src/ui/components/utils/forwardRef.js +0 -46
- package/src/ui/components/utils/hasTouchHandler.d.ts +0 -5
- package/src/ui/components/utils/hasTouchHandler.js +0 -14
- package/src/ui/components/utils/roundLayoutSize.d.ts +0 -1
- package/src/ui/components/utils/roundLayoutSize.js +0 -5
- package/src/ui/components/utils/splitStyles.d.ts +0 -19
- package/src/ui/components/utils/splitStyles.js +0 -40
- package/src/ui/constants/iconColors.d.ts +0 -129
- package/src/ui/constants/iconColors.js +0 -76
- package/src/ui/constants/spacing.d.ts +0 -32
- package/src/ui/constants/spacing.js +0 -40
- package/src/ui/constants/theme.d.ts +0 -96
- package/src/ui/constants/theme.js +0 -118
- package/src/ui/context/OxyContext.d.ts +0 -75
- package/src/ui/context/OxyContext.js +0 -522
- package/src/ui/context/ThemeContext.d.ts +0 -18
- package/src/ui/context/ThemeContext.js +0 -25
- package/src/ui/context/hooks/useAuthOperations.d.ts +0 -39
- package/src/ui/context/hooks/useAuthOperations.js +0 -318
- package/src/ui/hooks/index.d.ts +0 -6
- package/src/ui/hooks/index.js +0 -19
- package/src/ui/hooks/mutations/index.d.ts +0 -8
- package/src/ui/hooks/mutations/index.js +0 -23
- package/src/ui/hooks/mutations/mutationFactory.d.ts +0 -75
- package/src/ui/hooks/mutations/mutationFactory.js +0 -126
- package/src/ui/hooks/mutations/useAccountMutations.d.ts +0 -42
- package/src/ui/hooks/mutations/useAccountMutations.js +0 -274
- package/src/ui/hooks/mutations/useServicesMutations.d.ts +0 -22
- package/src/ui/hooks/mutations/useServicesMutations.js +0 -149
- package/src/ui/hooks/queries/index.d.ts +0 -10
- package/src/ui/hooks/queries/index.js +0 -35
- package/src/ui/hooks/queries/queryKeys.d.ts +0 -64
- package/src/ui/hooks/queries/queryKeys.js +0 -82
- package/src/ui/hooks/queries/useAccountQueries.d.ts +0 -42
- package/src/ui/hooks/queries/useAccountQueries.js +0 -141
- package/src/ui/hooks/queries/useSecurityQueries.d.ts +0 -14
- package/src/ui/hooks/queries/useSecurityQueries.js +0 -45
- package/src/ui/hooks/queries/useServicesQueries.d.ts +0 -30
- package/src/ui/hooks/queries/useServicesQueries.js +0 -113
- package/src/ui/hooks/queryClient.d.ts +0 -18
- package/src/ui/hooks/queryClient.js +0 -111
- package/src/ui/hooks/useAssets.d.ts +0 -34
- package/src/ui/hooks/useAssets.js +0 -204
- package/src/ui/hooks/useAsyncAction.d.ts +0 -50
- package/src/ui/hooks/useAsyncAction.js +0 -77
- package/src/ui/hooks/useAuth.d.ts +0 -77
- package/src/ui/hooks/useAuth.js +0 -135
- package/src/ui/hooks/useAvatarPicker.d.ts +0 -24
- package/src/ui/hooks/useAvatarPicker.js +0 -44
- package/src/ui/hooks/useColorScheme.d.ts +0 -7
- package/src/ui/hooks/useColorScheme.js +0 -23
- package/src/ui/hooks/useDeviceManagement.d.ts +0 -26
- package/src/ui/hooks/useDeviceManagement.js +0 -69
- package/src/ui/hooks/useFileDownloadUrl.d.ts +0 -21
- package/src/ui/hooks/useFileDownloadUrl.js +0 -104
- package/src/ui/hooks/useFileFiltering.d.ts +0 -28
- package/src/ui/hooks/useFileFiltering.js +0 -80
- package/src/ui/hooks/useFollow.d.ts +0 -92
- package/src/ui/hooks/useFollow.js +0 -216
- package/src/ui/hooks/useFollow.types.d.ts +0 -32
- package/src/ui/hooks/useFollow.types.js +0 -4
- package/src/ui/hooks/useI18n.d.ts +0 -4
- package/src/ui/hooks/useI18n.js +0 -13
- package/src/ui/hooks/useLanguageManagement.d.ts +0 -24
- package/src/ui/hooks/useLanguageManagement.js +0 -108
- package/src/ui/hooks/useProfileEditing.d.ts +0 -35
- package/src/ui/hooks/useProfileEditing.js +0 -101
- package/src/ui/hooks/useQueryClient.d.ts +0 -6
- package/src/ui/hooks/useQueryClient.js +0 -16
- package/src/ui/hooks/useSessionManagement.d.ts +0 -40
- package/src/ui/hooks/useSessionManagement.js +0 -312
- package/src/ui/hooks/useSessionSocket.d.ts +0 -14
- package/src/ui/hooks/useSessionSocket.js +0 -209
- package/src/ui/hooks/useSettingToggle.d.ts +0 -56
- package/src/ui/hooks/useSettingToggle.js +0 -97
- package/src/ui/hooks/useStorage.d.ts +0 -15
- package/src/ui/hooks/useStorage.js +0 -40
- package/src/ui/hooks/useThemeColors.d.ts +0 -93
- package/src/ui/hooks/useThemeColors.js +0 -27
- package/src/ui/hooks/useThemeStyles.d.ts +0 -44
- package/src/ui/hooks/useThemeStyles.js +0 -63
- package/src/ui/hooks/useWebSSO.d.ts +0 -57
- package/src/ui/hooks/useWebSSO.js +0 -146
- package/src/ui/index.d.ts +0 -23
- package/src/ui/index.js +0 -97
- package/src/ui/isFrontend.d.ts +0 -2
- package/src/ui/isFrontend.js +0 -6
- package/src/ui/navigation/bottomSheetManager.d.ts +0 -26
- package/src/ui/navigation/bottomSheetManager.js +0 -68
- package/src/ui/navigation/routes.d.ts +0 -5
- package/src/ui/navigation/routes.js +0 -75
- package/src/ui/screens/AccountCenterScreen.d.ts +0 -4
- package/src/ui/screens/AccountCenterScreen.js +0 -202
- package/src/ui/screens/AccountOverviewScreen.d.ts +0 -4
- package/src/ui/screens/AccountOverviewScreen.js +0 -648
- package/src/ui/screens/AccountSettingsScreen.d.ts +0 -7
- package/src/ui/screens/AccountSettingsScreen.js +0 -480
- package/src/ui/screens/AccountSwitcherScreen.d.ts +0 -4
- package/src/ui/screens/AccountSwitcherScreen.js +0 -482
- package/src/ui/screens/AccountVerificationScreen.d.ts +0 -4
- package/src/ui/screens/AccountVerificationScreen.js +0 -164
- package/src/ui/screens/AppInfoScreen.d.ts +0 -4
- package/src/ui/screens/AppInfoScreen.js +0 -373
- package/src/ui/screens/EditProfileFieldScreen.d.ts +0 -12
- package/src/ui/screens/EditProfileFieldScreen.js +0 -549
- package/src/ui/screens/FAQScreen.d.ts +0 -4
- package/src/ui/screens/FAQScreen.js +0 -182
- package/src/ui/screens/FeedbackScreen.d.ts +0 -4
- package/src/ui/screens/FeedbackScreen.js +0 -160
- package/src/ui/screens/FileManagementScreen.d.ts +0 -4
- package/src/ui/screens/FileManagementScreen.js +0 -1473
- package/src/ui/screens/FollowersListScreen.d.ts +0 -8
- package/src/ui/screens/FollowersListScreen.js +0 -11
- package/src/ui/screens/FollowingListScreen.d.ts +0 -8
- package/src/ui/screens/FollowingListScreen.js +0 -11
- package/src/ui/screens/HelpSupportScreen.d.ts +0 -4
- package/src/ui/screens/HelpSupportScreen.js +0 -140
- package/src/ui/screens/HistoryViewScreen.d.ts +0 -4
- package/src/ui/screens/HistoryViewScreen.js +0 -225
- package/src/ui/screens/LanguageSelectorScreen.d.ts +0 -6
- package/src/ui/screens/LanguageSelectorScreen.js +0 -178
- package/src/ui/screens/LearnMoreUsernamesScreen.d.ts +0 -4
- package/src/ui/screens/LearnMoreUsernamesScreen.js +0 -150
- package/src/ui/screens/LegalDocumentsScreen.d.ts +0 -4
- package/src/ui/screens/LegalDocumentsScreen.js +0 -185
- package/src/ui/screens/OxyAuthScreen.d.ts +0 -16
- package/src/ui/screens/OxyAuthScreen.js +0 -431
- package/src/ui/screens/PaymentGatewayScreen.d.ts +0 -14
- package/src/ui/screens/PaymentGatewayScreen.js +0 -171
- package/src/ui/screens/PremiumSubscriptionScreen.d.ts +0 -4
- package/src/ui/screens/PremiumSubscriptionScreen.js +0 -1080
- package/src/ui/screens/PrivacySettingsScreen.d.ts +0 -4
- package/src/ui/screens/PrivacySettingsScreen.js +0 -252
- package/src/ui/screens/ProfileScreen.d.ts +0 -8
- package/src/ui/screens/ProfileScreen.js +0 -254
- package/src/ui/screens/SavesCollectionsScreen.d.ts +0 -4
- package/src/ui/screens/SavesCollectionsScreen.js +0 -150
- package/src/ui/screens/SearchSettingsScreen.d.ts +0 -4
- package/src/ui/screens/SearchSettingsScreen.js +0 -109
- package/src/ui/screens/SessionManagementScreen.d.ts +0 -4
- package/src/ui/screens/SessionManagementScreen.js +0 -320
- package/src/ui/screens/UserLinksScreen.d.ts +0 -14
- package/src/ui/screens/UserLinksScreen.js +0 -57
- package/src/ui/screens/UserListScreen.d.ts +0 -10
- package/src/ui/screens/UserListScreen.js +0 -249
- package/src/ui/screens/WelcomeNewUserScreen.d.ts +0 -12
- package/src/ui/screens/WelcomeNewUserScreen.js +0 -304
- package/src/ui/screens/karma/KarmaAboutScreen.d.ts +0 -4
- package/src/ui/screens/karma/KarmaAboutScreen.js +0 -39
- package/src/ui/screens/karma/KarmaCenterScreen.d.ts +0 -4
- package/src/ui/screens/karma/KarmaCenterScreen.js +0 -159
- package/src/ui/screens/karma/KarmaFAQScreen.d.ts +0 -4
- package/src/ui/screens/karma/KarmaFAQScreen.js +0 -143
- package/src/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -4
- package/src/ui/screens/karma/KarmaLeaderboardScreen.js +0 -56
- package/src/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -4
- package/src/ui/screens/karma/KarmaRewardsScreen.js +0 -460
- package/src/ui/screens/karma/KarmaRulesScreen.d.ts +0 -4
- package/src/ui/screens/karma/KarmaRulesScreen.js +0 -47
- package/src/ui/server.d.ts +0 -40
- package/src/ui/server.js +0 -57
- package/src/ui/stores/accountStore.d.ts +0 -26
- package/src/ui/stores/accountStore.js +0 -196
- package/src/ui/stores/assetStore.d.ts +0 -53
- package/src/ui/stores/assetStore.js +0 -192
- package/src/ui/stores/authStore.d.ts +0 -16
- package/src/ui/stores/authStore.js +0 -47
- package/src/ui/stores/fileStore.d.ts +0 -30
- package/src/ui/stores/fileStore.js +0 -113
- package/src/ui/stores/followStore.d.ts +0 -24
- package/src/ui/stores/followStore.js +0 -154
- package/src/ui/styles/authStyles.d.ts +0 -331
- package/src/ui/styles/authStyles.js +0 -332
- package/src/ui/styles/fonts.d.ts +0 -20
- package/src/ui/styles/fonts.js +0 -72
- package/src/ui/styles/index.d.ts +0 -4
- package/src/ui/styles/index.js +0 -20
- package/src/ui/styles/spacing.d.ts +0 -48
- package/src/ui/styles/spacing.js +0 -63
- package/src/ui/styles/theme.d.ts +0 -67
- package/src/ui/styles/theme.js +0 -114
- package/src/ui/types/fileManagement.d.ts +0 -40
- package/src/ui/types/fileManagement.js +0 -2
- package/src/ui/types/navigation.d.ts +0 -36
- package/src/ui/types/navigation.js +0 -2
- package/src/ui/utils/avatarUtils.d.ts +0 -22
- package/src/ui/utils/avatarUtils.js +0 -52
- package/src/ui/utils/colorUtils.d.ts +0 -9
- package/src/ui/utils/colorUtils.js +0 -19
- package/src/ui/utils/confirmAction.d.ts +0 -6
- package/src/ui/utils/confirmAction.js +0 -22
- package/src/ui/utils/errorHandlers.d.ts +0 -34
- package/src/ui/utils/errorHandlers.js +0 -128
- package/src/ui/utils/fileManagement.d.ts +0 -86
- package/src/ui/utils/fileManagement.js +0 -238
- package/src/ui/utils/iconNames.d.ts +0 -111
- package/src/ui/utils/iconNames.js +0 -124
- package/src/ui/utils/sessionHelpers.d.ts +0 -64
- package/src/ui/utils/sessionHelpers.js +0 -90
- package/src/ui/utils/storageHelpers.d.ts +0 -27
- package/src/ui/utils/storageHelpers.js +0 -114
- package/src/ui/utils/themeUtils.d.ts +0 -10
- package/src/ui/utils/themeUtils.js +0 -17
- package/src/ui/utils/userUtils.d.ts +0 -28
- package/src/ui/utils/userUtils.js +0 -54
- package/src/utils/hookUtils.d.ts +0 -101
- package/src/utils/hookUtils.js +0 -373
|
@@ -1,1080 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const react_native_1 = require("react-native");
|
|
6
|
-
const fonts_1 = require("../styles/fonts");
|
|
7
|
-
const sonner_1 = require("../../lib/sonner");
|
|
8
|
-
const confirmAction_1 = require("../utils/confirmAction");
|
|
9
|
-
const vector_icons_1 = require("@expo/vector-icons");
|
|
10
|
-
const useI18n_1 = require("../hooks/useI18n");
|
|
11
|
-
const useThemeStyles_1 = require("../hooks/useThemeStyles");
|
|
12
|
-
const themeUtils_1 = require("../utils/themeUtils");
|
|
13
|
-
const useColorScheme_1 = require("../hooks/useColorScheme");
|
|
14
|
-
const OxyContext_1 = require("../context/OxyContext");
|
|
15
|
-
const PremiumSubscriptionScreen = ({ onClose, theme, navigate, goBack, }) => {
|
|
16
|
-
// Use useOxy() hook for OxyContext values
|
|
17
|
-
const { user, oxyServices } = (0, OxyContext_1.useOxy)();
|
|
18
|
-
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
19
|
-
const [subscription, setSubscription] = (0, react_1.useState)(null);
|
|
20
|
-
const [plans, setPlans] = (0, react_1.useState)([]);
|
|
21
|
-
const [individualFeatures, setIndividualFeatures] = (0, react_1.useState)([]);
|
|
22
|
-
const [selectedPlan, setSelectedPlan] = (0, react_1.useState)(null);
|
|
23
|
-
const [processingPayment, setProcessingPayment] = (0, react_1.useState)(false);
|
|
24
|
-
const [billingInterval, setBillingInterval] = (0, react_1.useState)('month');
|
|
25
|
-
const [activeTab, setActiveTab] = (0, react_1.useState)('plans');
|
|
26
|
-
const [currentAppPackage, setCurrentAppPackage] = (0, react_1.useState)('mention'); // Default to mention for demo
|
|
27
|
-
const { t } = (0, useI18n_1.useI18n)();
|
|
28
|
-
const colorScheme = (0, useColorScheme_1.useColorScheme)();
|
|
29
|
-
const normalizedTheme = (0, themeUtils_1.normalizeTheme)(theme);
|
|
30
|
-
const themeStyles = (0, useThemeStyles_1.useThemeStyles)(normalizedTheme, colorScheme);
|
|
31
|
-
// Extract commonly used colors for readability
|
|
32
|
-
const { textColor, backgroundColor, secondaryBackgroundColor, borderColor, primaryColor, successColor, dangerColor, isDarkTheme } = themeStyles;
|
|
33
|
-
const warningColor = '#FF9500';
|
|
34
|
-
// TODO: Replace mock data with actual API integration
|
|
35
|
-
// Should fetch plans from oxyServices.getSubscriptionPlans() and individual features from oxyServices.getIndividualFeatures()
|
|
36
|
-
// Oxy+ subscription plans
|
|
37
|
-
const mockPlans = [
|
|
38
|
-
{
|
|
39
|
-
id: 'mention-plus',
|
|
40
|
-
name: 'Mention+',
|
|
41
|
-
description: 'Enhanced features for better social experience',
|
|
42
|
-
price: 4.99,
|
|
43
|
-
currency: 'USD',
|
|
44
|
-
interval: 'month',
|
|
45
|
-
appScope: 'specific',
|
|
46
|
-
applicableApps: ['mention'], // Only available in mention app
|
|
47
|
-
features: [
|
|
48
|
-
'Undo posts option',
|
|
49
|
-
'Improved reading mode',
|
|
50
|
-
'Organize bookmarks into folders',
|
|
51
|
-
'Early access to select features',
|
|
52
|
-
'Edit posts capability',
|
|
53
|
-
'Enhanced customization options'
|
|
54
|
-
],
|
|
55
|
-
includedFeatures: ['reading-mode-plus', 'custom-themes']
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: 'oxy-insider',
|
|
59
|
-
name: 'Oxy+ Insider',
|
|
60
|
-
description: 'Exclusive access to behind-the-scenes content',
|
|
61
|
-
price: 9.99,
|
|
62
|
-
currency: 'USD',
|
|
63
|
-
interval: 'month',
|
|
64
|
-
appScope: 'ecosystem',
|
|
65
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator'],
|
|
66
|
-
features: [
|
|
67
|
-
'Everything in Mention+',
|
|
68
|
-
'Behind-the-scenes updates from creators',
|
|
69
|
-
'Early access to new features',
|
|
70
|
-
'Dedicated support team',
|
|
71
|
-
'Exclusive content access',
|
|
72
|
-
'Beta feature testing'
|
|
73
|
-
],
|
|
74
|
-
includedFeatures: ['reading-mode-plus', 'custom-themes', 'analytics-basic'],
|
|
75
|
-
isPopular: true
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 'oxy-connect',
|
|
79
|
-
name: 'Oxy+ Connect',
|
|
80
|
-
description: 'Advanced networking and community features',
|
|
81
|
-
price: 14.99,
|
|
82
|
-
currency: 'USD',
|
|
83
|
-
interval: 'month',
|
|
84
|
-
appScope: 'ecosystem',
|
|
85
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator'],
|
|
86
|
-
features: [
|
|
87
|
-
'Everything in Oxy+ Insider',
|
|
88
|
-
'Create and join private groups',
|
|
89
|
-
'Advanced search and filtering tools',
|
|
90
|
-
'Customizable profile highlighting',
|
|
91
|
-
'Enhanced connection features',
|
|
92
|
-
'Priority in community events'
|
|
93
|
-
],
|
|
94
|
-
includedFeatures: ['reading-mode-plus', 'custom-themes', 'analytics-basic', 'group-management']
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: 'oxy-premium',
|
|
98
|
-
name: 'Oxy+ Premium',
|
|
99
|
-
description: 'Complete premium experience with all perks',
|
|
100
|
-
price: 24.99,
|
|
101
|
-
currency: 'USD',
|
|
102
|
-
interval: 'month',
|
|
103
|
-
appScope: 'ecosystem',
|
|
104
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator', 'oxy-analytics'],
|
|
105
|
-
features: [
|
|
106
|
-
'Everything in Oxy+ Connect',
|
|
107
|
-
'Priority customer support',
|
|
108
|
-
'Access to premium content and events',
|
|
109
|
-
'Advanced analytics dashboard',
|
|
110
|
-
'VIP community status',
|
|
111
|
-
'Exclusive premium events'
|
|
112
|
-
],
|
|
113
|
-
includedFeatures: ['reading-mode-plus', 'custom-themes', 'analytics-basic', 'analytics-advanced', 'group-management']
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: 'oxy-creator',
|
|
117
|
-
name: 'Oxy+ Creator',
|
|
118
|
-
description: 'Professional tools for content creators',
|
|
119
|
-
price: 39.99,
|
|
120
|
-
currency: 'USD',
|
|
121
|
-
interval: 'month',
|
|
122
|
-
appScope: 'ecosystem',
|
|
123
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator', 'oxy-analytics', 'oxy-studio'],
|
|
124
|
-
features: [
|
|
125
|
-
'Everything in Oxy+ Premium',
|
|
126
|
-
'Advanced analytics and insights',
|
|
127
|
-
'Promotional tools and resources',
|
|
128
|
-
'Content monetization features',
|
|
129
|
-
'Creator support program',
|
|
130
|
-
'Revenue sharing opportunities'
|
|
131
|
-
],
|
|
132
|
-
includedFeatures: ['reading-mode-plus', 'custom-themes', 'analytics-basic', 'analytics-advanced', 'group-management', 'creator-tools', 'monetization-features']
|
|
133
|
-
}
|
|
134
|
-
];
|
|
135
|
-
// Individual feature subscriptions
|
|
136
|
-
const mockIndividualFeatures = [
|
|
137
|
-
{
|
|
138
|
-
id: 'analytics-basic',
|
|
139
|
-
name: 'Basic Analytics',
|
|
140
|
-
description: 'View post performance and engagement metrics',
|
|
141
|
-
price: 2.99,
|
|
142
|
-
currency: 'USD',
|
|
143
|
-
interval: 'month',
|
|
144
|
-
category: 'analytics',
|
|
145
|
-
appScope: 'ecosystem',
|
|
146
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace'],
|
|
147
|
-
canBePurchasedSeparately: true,
|
|
148
|
-
includedInPlans: ['oxy-insider', 'oxy-connect', 'oxy-premium', 'oxy-creator']
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: 'analytics-advanced',
|
|
152
|
-
name: 'Advanced Analytics',
|
|
153
|
-
description: 'Detailed insights, trends, and audience demographics',
|
|
154
|
-
price: 7.99,
|
|
155
|
-
currency: 'USD',
|
|
156
|
-
interval: 'month',
|
|
157
|
-
category: 'analytics',
|
|
158
|
-
appScope: 'ecosystem',
|
|
159
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator', 'oxy-analytics'],
|
|
160
|
-
canBePurchasedSeparately: true,
|
|
161
|
-
includedInPlans: ['oxy-premium', 'oxy-creator']
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
id: 'custom-themes',
|
|
165
|
-
name: 'Custom Themes',
|
|
166
|
-
description: 'Personalize your app with custom colors and layouts',
|
|
167
|
-
price: 1.99,
|
|
168
|
-
currency: 'USD',
|
|
169
|
-
interval: 'month',
|
|
170
|
-
category: 'customization',
|
|
171
|
-
appScope: 'ecosystem',
|
|
172
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator'],
|
|
173
|
-
canBePurchasedSeparately: false, // Included in all plans
|
|
174
|
-
includedInPlans: ['mention-plus', 'oxy-insider', 'oxy-connect', 'oxy-premium', 'oxy-creator']
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
id: 'reading-mode-plus',
|
|
178
|
-
name: 'Reading Mode Plus',
|
|
179
|
-
description: 'Enhanced reading experience with focus modes',
|
|
180
|
-
price: 1.99,
|
|
181
|
-
currency: 'USD',
|
|
182
|
-
interval: 'month',
|
|
183
|
-
category: 'content',
|
|
184
|
-
appScope: 'specific',
|
|
185
|
-
applicableApps: ['mention', 'oxy-social'],
|
|
186
|
-
canBePurchasedSeparately: false, // Included in all plans
|
|
187
|
-
includedInPlans: ['mention-plus', 'oxy-insider', 'oxy-connect', 'oxy-premium', 'oxy-creator']
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
id: 'group-management',
|
|
191
|
-
name: 'Group Management',
|
|
192
|
-
description: 'Create and manage private groups and communities',
|
|
193
|
-
price: 4.99,
|
|
194
|
-
currency: 'USD',
|
|
195
|
-
interval: 'month',
|
|
196
|
-
category: 'networking',
|
|
197
|
-
appScope: 'ecosystem',
|
|
198
|
-
applicableApps: ['mention', 'oxy-social', 'oxy-workspace'],
|
|
199
|
-
canBePurchasedSeparately: true,
|
|
200
|
-
includedInPlans: ['oxy-connect', 'oxy-premium', 'oxy-creator']
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
id: 'creator-tools',
|
|
204
|
-
name: 'Creator Tools Suite',
|
|
205
|
-
description: 'Professional content creation and editing tools',
|
|
206
|
-
price: 9.99,
|
|
207
|
-
currency: 'USD',
|
|
208
|
-
interval: 'month',
|
|
209
|
-
category: 'productivity',
|
|
210
|
-
appScope: 'specific',
|
|
211
|
-
applicableApps: ['oxy-creator', 'oxy-studio'],
|
|
212
|
-
canBePurchasedSeparately: true,
|
|
213
|
-
includedInPlans: ['oxy-creator']
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
id: 'monetization-features',
|
|
217
|
-
name: 'Monetization Features',
|
|
218
|
-
description: 'Revenue sharing, sponsorship tools, and creator fund access',
|
|
219
|
-
price: 12.99,
|
|
220
|
-
currency: 'USD',
|
|
221
|
-
interval: 'month',
|
|
222
|
-
category: 'productivity',
|
|
223
|
-
appScope: 'specific',
|
|
224
|
-
applicableApps: ['oxy-creator'],
|
|
225
|
-
canBePurchasedSeparately: true,
|
|
226
|
-
includedInPlans: ['oxy-creator']
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
id: 'workspace-collaboration',
|
|
230
|
-
name: 'Workspace Collaboration',
|
|
231
|
-
description: 'Advanced team features and project management tools',
|
|
232
|
-
price: 6.99,
|
|
233
|
-
currency: 'USD',
|
|
234
|
-
interval: 'month',
|
|
235
|
-
category: 'productivity',
|
|
236
|
-
appScope: 'specific',
|
|
237
|
-
applicableApps: ['oxy-workspace'],
|
|
238
|
-
canBePurchasedSeparately: true,
|
|
239
|
-
includedInPlans: ['oxy-premium', 'oxy-creator']
|
|
240
|
-
}
|
|
241
|
-
];
|
|
242
|
-
(0, react_1.useEffect)(() => {
|
|
243
|
-
detectCurrentApp();
|
|
244
|
-
}, []);
|
|
245
|
-
(0, react_1.useEffect)(() => {
|
|
246
|
-
if (currentAppPackage) {
|
|
247
|
-
loadSubscriptionData();
|
|
248
|
-
}
|
|
249
|
-
}, [currentAppPackage, user?.isPremium]);
|
|
250
|
-
const detectCurrentApp = () => {
|
|
251
|
-
// In a real implementation, this would detect the actual app package name
|
|
252
|
-
// For now, we'll use a mock detection based on available methods
|
|
253
|
-
// Real app detection methods you could use:
|
|
254
|
-
// 1. Check bundle identifier in React Native:
|
|
255
|
-
// import DeviceInfo from 'react-native-device-info';
|
|
256
|
-
// const bundleId = DeviceInfo.getBundleId();
|
|
257
|
-
// Example: com.oxy.mention -> 'mention'
|
|
258
|
-
// 2. Environment variables or build configuration
|
|
259
|
-
// const appPackage = __DEV__ ? process.env.APP_PACKAGE : 'mention';
|
|
260
|
-
// 3. Check specific app capabilities or modules
|
|
261
|
-
// if (typeof MentionModule !== 'undefined') return 'mention';
|
|
262
|
-
// if (typeof OxyWorkspaceModule !== 'undefined') return 'oxy-workspace';
|
|
263
|
-
// 4. Use build-time configuration with Metro or similar
|
|
264
|
-
// const appPackage = require('../config/app.json').packageName;
|
|
265
|
-
// For demo purposes, we'll simulate different apps
|
|
266
|
-
// You would replace this with actual app detection logic
|
|
267
|
-
// IMPORTANT: This ensures subscription restrictions work properly:
|
|
268
|
-
// - Mention+ plan can only be subscribed to when app package == 'mention'
|
|
269
|
-
// - Other app-specific plans follow the same pattern
|
|
270
|
-
// - Ecosystem plans work across all apps
|
|
271
|
-
const detectedApp = 'mention'; // This would be dynamic in real implementation
|
|
272
|
-
setCurrentAppPackage(detectedApp);
|
|
273
|
-
};
|
|
274
|
-
const loadSubscriptionData = async () => {
|
|
275
|
-
try {
|
|
276
|
-
setLoading(true);
|
|
277
|
-
// Filter plans available for current app
|
|
278
|
-
const availablePlans = mockPlans.filter(plan => plan.applicableApps.includes(currentAppPackage));
|
|
279
|
-
setPlans(availablePlans);
|
|
280
|
-
// Mock current subscription
|
|
281
|
-
let currentSubscription = null;
|
|
282
|
-
if (user?.isPremium) {
|
|
283
|
-
currentSubscription = {
|
|
284
|
-
id: 'sub_12345',
|
|
285
|
-
planId: 'oxy-insider',
|
|
286
|
-
status: 'active',
|
|
287
|
-
currentPeriodStart: new Date().toISOString(),
|
|
288
|
-
currentPeriodEnd: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
|
|
289
|
-
cancelAtPeriodEnd: false
|
|
290
|
-
};
|
|
291
|
-
setSubscription(currentSubscription);
|
|
292
|
-
}
|
|
293
|
-
// Filter features available for current app and update based on current subscription
|
|
294
|
-
const availableFeatures = mockIndividualFeatures.filter(feature => feature.applicableApps.includes(currentAppPackage));
|
|
295
|
-
const updatedFeatures = availableFeatures.map(feature => {
|
|
296
|
-
const isIncludedInCurrentPlan = !!(currentSubscription &&
|
|
297
|
-
feature.includedInPlans.includes(currentSubscription.planId));
|
|
298
|
-
return {
|
|
299
|
-
...feature,
|
|
300
|
-
isIncludedInCurrentPlan,
|
|
301
|
-
isSubscribed: !!isIncludedInCurrentPlan // Mock some individual subscriptions
|
|
302
|
-
};
|
|
303
|
-
});
|
|
304
|
-
setIndividualFeatures(updatedFeatures);
|
|
305
|
-
}
|
|
306
|
-
catch (error) {
|
|
307
|
-
if (__DEV__) {
|
|
308
|
-
console.error('Failed to load subscription data:', error);
|
|
309
|
-
}
|
|
310
|
-
sonner_1.toast.error('Failed to load subscription information');
|
|
311
|
-
}
|
|
312
|
-
finally {
|
|
313
|
-
setLoading(false);
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
const handlePlanSelection = (planId) => {
|
|
317
|
-
setSelectedPlan(planId);
|
|
318
|
-
};
|
|
319
|
-
const handleSubscribe = async (planId) => {
|
|
320
|
-
try {
|
|
321
|
-
// Check if plan is available for current app
|
|
322
|
-
const selectedPlan = mockPlans.find(plan => plan.id === planId);
|
|
323
|
-
if (!selectedPlan?.applicableApps.includes(currentAppPackage)) {
|
|
324
|
-
sonner_1.toast.error(t('premium.toasts.planUnavailable', { app: currentAppPackage }) || `This plan is not available for the current app (${currentAppPackage})`);
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
|
-
// Special restriction for Mention+ plan - only available in mention app
|
|
328
|
-
if (planId === 'mention-plus' && currentAppPackage !== 'mention') {
|
|
329
|
-
sonner_1.toast.error(t('premium.toasts.mentionOnly') || 'Mention+ is only available in the Mention app');
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
setProcessingPayment(true);
|
|
333
|
-
// Mock payment processing
|
|
334
|
-
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
335
|
-
sonner_1.toast.success(t('premium.toasts.activated') || 'Subscription activated successfully!');
|
|
336
|
-
// Mock subscription update
|
|
337
|
-
setSubscription({
|
|
338
|
-
id: `sub_${Date.now()}`,
|
|
339
|
-
planId,
|
|
340
|
-
status: 'active',
|
|
341
|
-
currentPeriodStart: new Date().toISOString(),
|
|
342
|
-
currentPeriodEnd: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
|
|
343
|
-
cancelAtPeriodEnd: false
|
|
344
|
-
});
|
|
345
|
-
// Reload data to update feature states
|
|
346
|
-
loadSubscriptionData();
|
|
347
|
-
}
|
|
348
|
-
catch (error) {
|
|
349
|
-
if (__DEV__) {
|
|
350
|
-
console.error('Payment failed:', error);
|
|
351
|
-
}
|
|
352
|
-
sonner_1.toast.error(t('premium.toasts.paymentFailed') || 'Payment failed. Please try again.');
|
|
353
|
-
}
|
|
354
|
-
finally {
|
|
355
|
-
setProcessingPayment(false);
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const handleCancelSubscription = () => {
|
|
359
|
-
(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 () => {
|
|
360
|
-
try {
|
|
361
|
-
// Mock cancellation
|
|
362
|
-
setSubscription(prev => prev ? {
|
|
363
|
-
...prev,
|
|
364
|
-
cancelAtPeriodEnd: true
|
|
365
|
-
} : null);
|
|
366
|
-
sonner_1.toast.success(t('premium.toasts.willCancel') || 'Subscription will be canceled at the end of the billing period');
|
|
367
|
-
}
|
|
368
|
-
catch (error) {
|
|
369
|
-
sonner_1.toast.error(t('premium.toasts.cancelFailed') || 'Failed to cancel subscription');
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
};
|
|
373
|
-
const handleReactivateSubscription = async () => {
|
|
374
|
-
try {
|
|
375
|
-
setSubscription(prev => prev ? {
|
|
376
|
-
...prev,
|
|
377
|
-
cancelAtPeriodEnd: false
|
|
378
|
-
} : null);
|
|
379
|
-
sonner_1.toast.success(t('premium.toasts.reactivated') || 'Subscription reactivated successfully');
|
|
380
|
-
}
|
|
381
|
-
catch (error) {
|
|
382
|
-
sonner_1.toast.error(t('premium.toasts.reactivateFailed') || 'Failed to reactivate subscription');
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
const formatPrice = (price, currency, interval) => {
|
|
386
|
-
const yearlyPrice = interval === 'year' ? price : price * 12 * 0.8; // 20% discount for yearly
|
|
387
|
-
const displayPrice = billingInterval === 'year' ? yearlyPrice : price;
|
|
388
|
-
return {
|
|
389
|
-
price: displayPrice,
|
|
390
|
-
formatted: `$${displayPrice.toFixed(2)}`,
|
|
391
|
-
interval: billingInterval === 'year' ? 'year' : 'month'
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
const getCurrentPlan = () => {
|
|
395
|
-
if (!subscription)
|
|
396
|
-
return null;
|
|
397
|
-
return plans.find(plan => plan.id === subscription.planId);
|
|
398
|
-
};
|
|
399
|
-
const handleFeatureSubscribe = async (featureId) => {
|
|
400
|
-
try {
|
|
401
|
-
// Check if feature is available for current app
|
|
402
|
-
const selectedFeature = mockIndividualFeatures.find(feature => feature.id === featureId);
|
|
403
|
-
if (!selectedFeature?.applicableApps.includes(currentAppPackage)) {
|
|
404
|
-
sonner_1.toast.error(`This feature is not available for the current app (${currentAppPackage})`);
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
// Special restrictions for app-specific features
|
|
408
|
-
if (selectedFeature.appScope === 'specific') {
|
|
409
|
-
// For features that are only available in specific apps, enforce strict matching
|
|
410
|
-
const hasExactMatch = selectedFeature.applicableApps.length === 1 &&
|
|
411
|
-
selectedFeature.applicableApps[0] === currentAppPackage;
|
|
412
|
-
if (!hasExactMatch && selectedFeature.applicableApps.length === 1) {
|
|
413
|
-
const requiredApp = selectedFeature.applicableApps[0];
|
|
414
|
-
sonner_1.toast.error(`${selectedFeature.name} is only available in the ${requiredApp} app`);
|
|
415
|
-
return;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
setProcessingPayment(true);
|
|
419
|
-
// Mock feature subscription
|
|
420
|
-
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
421
|
-
setIndividualFeatures(prev => prev.map(feature => feature.id === featureId
|
|
422
|
-
? { ...feature, isSubscribed: true }
|
|
423
|
-
: feature));
|
|
424
|
-
const feature = individualFeatures.find(f => f.id === featureId);
|
|
425
|
-
sonner_1.toast.success((t('premium.toasts.featureSubscribed', { name: feature?.name ?? '' }) ?? `Subscribed to ${feature?.name} successfully!`));
|
|
426
|
-
}
|
|
427
|
-
catch (error) {
|
|
428
|
-
if (__DEV__) {
|
|
429
|
-
console.error('Feature subscription failed:', error);
|
|
430
|
-
}
|
|
431
|
-
sonner_1.toast.error(t('premium.toasts.featureSubscribeFailed') || 'Feature subscription failed. Please try again.');
|
|
432
|
-
}
|
|
433
|
-
finally {
|
|
434
|
-
setProcessingPayment(false);
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
const handleFeatureUnsubscribe = async (featureId) => {
|
|
438
|
-
const feature = individualFeatures.find(f => f.id === featureId);
|
|
439
|
-
(0, confirmAction_1.confirmAction)((t('premium.confirms.unsubscribeFeature', { name: feature?.name ?? '' }) ?? `Are you sure you want to unsubscribe from ${feature?.name}?`), async () => {
|
|
440
|
-
try {
|
|
441
|
-
setIndividualFeatures(prev => prev.map(f => f.id === featureId
|
|
442
|
-
? { ...f, isSubscribed: false }
|
|
443
|
-
: f));
|
|
444
|
-
sonner_1.toast.success((t('premium.toasts.featureUnsubscribed', { name: feature?.name ?? '' }) ?? `Unsubscribed from ${feature?.name}`));
|
|
445
|
-
}
|
|
446
|
-
catch (error) {
|
|
447
|
-
sonner_1.toast.error(t('premium.toasts.featureUnsubscribeFailed') || 'Failed to unsubscribe from feature');
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
};
|
|
451
|
-
const renderHeader = () => {
|
|
452
|
-
const getAppDisplayName = (packageName) => {
|
|
453
|
-
const appNames = {
|
|
454
|
-
'mention': 'Mention',
|
|
455
|
-
'oxy-social': 'Oxy Social',
|
|
456
|
-
'oxy-workspace': 'Oxy Workspace',
|
|
457
|
-
'oxy-creator': 'Oxy Creator',
|
|
458
|
-
'oxy-analytics': 'Oxy Analytics',
|
|
459
|
-
'oxy-studio': 'Oxy Studio'
|
|
460
|
-
};
|
|
461
|
-
return appNames[packageName] || packageName;
|
|
462
|
-
};
|
|
463
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.header, { borderBottomColor: borderColor }], children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: styles.backButton, onPress: goBack, children: (0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "arrow-back", size: 24, color: textColor }) }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.headerTitleContainer, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.headerTitle, { color: textColor }], children: t('premium.title') || 'Oxy+ Subscriptions' }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.currentAppText, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.forApp', { app: getAppDisplayName(currentAppPackage) }) || `for ${getAppDisplayName(currentAppPackage)}` })] }), onClose && ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: styles.closeButton, onPress: onClose, children: (0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "close", size: 24, color: textColor }) }))] }));
|
|
464
|
-
};
|
|
465
|
-
const renderCurrentSubscription = () => {
|
|
466
|
-
if (!subscription)
|
|
467
|
-
return null;
|
|
468
|
-
const currentPlan = getCurrentPlan();
|
|
469
|
-
if (!currentPlan)
|
|
470
|
-
return null;
|
|
471
|
-
const statusColor = subscription.status === 'active' ? successColor :
|
|
472
|
-
subscription.status === 'trialing' ? warningColor :
|
|
473
|
-
dangerColor;
|
|
474
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.section, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionTitle, { color: textColor }], children: t('premium.current.title') || 'Current Subscription' }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.currentSubscriptionCard, { backgroundColor: secondaryBackgroundColor, borderColor }], children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.subscriptionHeader, children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planName, { color: textColor }], children: currentPlan.name }), (0, jsx_runtime_1.jsxs)(react_native_1.Text, { style: [styles.planPrice, { color: primaryColor }], children: ["$", currentPlan.price, "/month"] })] }), (0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.statusBadge, { backgroundColor: statusColor }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.statusText, children: subscription.status.toUpperCase() }) })] }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.subscriptionDetail, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.current.renewsOn', { date: new Date(subscription.currentPeriodEnd).toLocaleDateString() }) || `Renews on ${new Date(subscription.currentPeriodEnd).toLocaleDateString()}` }), subscription.cancelAtPeriodEnd && ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.cancelNotice, children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "warning", size: 16, color: warningColor }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.cancelText, { color: warningColor }], children: t('premium.current.willCancelOn', { date: new Date(subscription.currentPeriodEnd).toLocaleDateString() }) || `Subscription will cancel on ${new Date(subscription.currentPeriodEnd).toLocaleDateString()}` })] })), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.subscriptionActions, children: [subscription.cancelAtPeriodEnd ? ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [styles.actionButton, { backgroundColor: successColor }], onPress: handleReactivateSubscription, children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.actionButtonText, children: t('premium.actions.reactivate') || 'Reactivate' }) })) : ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [styles.actionButton, { backgroundColor: dangerColor }], onPress: handleCancelSubscription, children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.actionButtonText, children: t('premium.actions.cancelSubBtn') || 'Cancel Subscription' }) })), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [styles.actionButton, styles.secondaryButton, { borderColor }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.actionButtonText, { color: textColor }], children: t('premium.actions.manageBilling') || 'Manage Billing' }) })] })] })] }));
|
|
475
|
-
};
|
|
476
|
-
const renderBillingToggle = () => ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.section, children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.billingToggle, children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [
|
|
477
|
-
styles.billingOption,
|
|
478
|
-
billingInterval === 'month' && { backgroundColor: primaryColor }
|
|
479
|
-
], onPress: () => setBillingInterval('month'), children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [
|
|
480
|
-
styles.billingOptionText,
|
|
481
|
-
{ color: billingInterval === 'month' ? '#FFFFFF' : textColor }
|
|
482
|
-
], children: t('premium.billing.monthly') || 'Monthly' }) }), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [
|
|
483
|
-
styles.billingOption,
|
|
484
|
-
billingInterval === 'year' && { backgroundColor: primaryColor }
|
|
485
|
-
], onPress: () => setBillingInterval('year'), children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [
|
|
486
|
-
styles.billingOptionText,
|
|
487
|
-
{ color: billingInterval === 'year' ? '#FFFFFF' : textColor }
|
|
488
|
-
], children: t('premium.billing.yearly') || 'Yearly' }) })] }), billingInterval === 'year' && ((0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.savingsText, { color: successColor }], children: t('premium.billing.saveYearly') || '💰 Save 20% with yearly billing' }))] }));
|
|
489
|
-
const renderPlanCard = (plan) => {
|
|
490
|
-
const pricing = formatPrice(plan.price, plan.currency, plan.interval);
|
|
491
|
-
const isSelected = selectedPlan === plan.id;
|
|
492
|
-
const isCurrentPlan = subscription?.planId === plan.id;
|
|
493
|
-
const isAppSpecific = plan.appScope === 'specific' && plan.applicableApps.length === 1;
|
|
494
|
-
const isAvailableForCurrentApp = plan.applicableApps.includes(currentAppPackage);
|
|
495
|
-
const getAppScopeText = () => {
|
|
496
|
-
if (plan.appScope === 'ecosystem') {
|
|
497
|
-
return t('premium.plan.scope.allApps') || 'Works across all Oxy apps';
|
|
498
|
-
}
|
|
499
|
-
if (isAppSpecific) {
|
|
500
|
-
const appName = plan.applicableApps[0];
|
|
501
|
-
return t('premium.plan.scope.exclusive', { app: appName }) || `Exclusive to ${appName} app`;
|
|
502
|
-
}
|
|
503
|
-
return t('premium.plan.scope.availableIn', { apps: plan.applicableApps.join(', ') }) || `Available in: ${plan.applicableApps.join(', ')}`;
|
|
504
|
-
};
|
|
505
|
-
const getAvailabilityStatus = () => {
|
|
506
|
-
if (isAppSpecific && !isAvailableForCurrentApp) {
|
|
507
|
-
const requiredApp = plan.applicableApps[0];
|
|
508
|
-
return {
|
|
509
|
-
available: false,
|
|
510
|
-
reason: t('premium.plan.scope.exclusive', { app: requiredApp }) || `Only available in ${requiredApp} app`
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
return { available: true, reason: null };
|
|
514
|
-
};
|
|
515
|
-
const availability = getAvailabilityStatus();
|
|
516
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
|
|
517
|
-
styles.planCard,
|
|
518
|
-
{ backgroundColor: secondaryBackgroundColor, borderColor },
|
|
519
|
-
isSelected && { borderColor: primaryColor, borderWidth: 2 },
|
|
520
|
-
plan.isPopular && styles.popularPlan,
|
|
521
|
-
!availability.available && { opacity: 0.6 }
|
|
522
|
-
], children: [plan.isPopular && ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.popularBadge, { backgroundColor: primaryColor }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.popularText, children: "MOST POPULAR" }) })), isAppSpecific && ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.appSpecificBadge, {
|
|
523
|
-
backgroundColor: isAvailableForCurrentApp ? successColor : warningColor
|
|
524
|
-
}], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.appSpecificText, children: isAvailableForCurrentApp ? (t('premium.plan.badge.appExclusive') || 'App Exclusive') : (t('premium.plan.badge.notAvailable') || 'Not Available') }) })), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.planHeader, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planName, { color: textColor }], children: plan.name }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planDescription, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: plan.description }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planAppScope, { color: isDarkTheme ? '#888888' : '#999999' }], children: getAppScopeText() }), !availability.available && ((0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planRestrictionText, { color: dangerColor }], children: availability.reason }))] }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.planPricing, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planPrice, { color: textColor }], children: pricing.formatted }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.planInterval, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.plan.perInterval', { interval: pricing.interval }) || `per ${pricing.interval}` })] }), (0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.planFeatures, children: plan.features.map((feature, index) => ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.featureItem, children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "checkmark", size: 16, color: successColor }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.featureText, { color: textColor }], children: feature })] }, index))) }), isCurrentPlan ? ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.currentPlanButton, { backgroundColor: successColor }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.currentPlanText, children: t('premium.plan.current') || 'Current Plan' }) })) : !availability.available ? ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.unavailablePlanButton, { backgroundColor: isDarkTheme ? '#444444' : '#E0E0E0' }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.unavailablePlanText, { color: isDarkTheme ? '#888888' : '#999999' }], children: t('premium.plan.notAvailableInApp') || 'Not Available in Current App' }) })) : ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [
|
|
525
|
-
styles.selectPlanButton,
|
|
526
|
-
{ backgroundColor: plan.isPopular ? primaryColor : borderColor }
|
|
527
|
-
], onPress: () => handleSubscribe(plan.id), disabled: processingPayment, children: processingPayment ? ((0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, { color: "#FFFFFF", size: "small" })) : ((0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [
|
|
528
|
-
styles.selectPlanText,
|
|
529
|
-
{ color: plan.isPopular ? '#FFFFFF' : textColor }
|
|
530
|
-
], children: t('premium.actions.subscribeTo', { name: plan.name }) || `Subscribe to ${plan.name}` })) }))] }, plan.id));
|
|
531
|
-
};
|
|
532
|
-
const renderTabNavigation = () => ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.section, children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.tabContainer, { borderBottomColor: borderColor }], children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [
|
|
533
|
-
styles.tab,
|
|
534
|
-
activeTab === 'plans' && { borderBottomColor: primaryColor, borderBottomWidth: 2 }
|
|
535
|
-
], onPress: () => setActiveTab('plans'), children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [
|
|
536
|
-
styles.tabText,
|
|
537
|
-
{ color: activeTab === 'plans' ? primaryColor : textColor }
|
|
538
|
-
], children: t('premium.tabs.plans') || 'Full Plans' }) }), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [
|
|
539
|
-
styles.tab,
|
|
540
|
-
activeTab === 'features' && { borderBottomColor: primaryColor, borderBottomWidth: 2 }
|
|
541
|
-
], onPress: () => setActiveTab('features'), children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [
|
|
542
|
-
styles.tabText,
|
|
543
|
-
{ color: activeTab === 'features' ? primaryColor : textColor }
|
|
544
|
-
], children: t('premium.tabs.features') || 'Individual Features' }) })] }) }));
|
|
545
|
-
const renderFeatureCard = (feature) => {
|
|
546
|
-
const pricing = formatPrice(feature.price, feature.currency, feature.interval);
|
|
547
|
-
const isSubscribed = feature.isSubscribed;
|
|
548
|
-
const isIncludedInCurrentPlan = feature.isIncludedInCurrentPlan;
|
|
549
|
-
const canPurchase = feature.canBePurchasedSeparately && !isIncludedInCurrentPlan;
|
|
550
|
-
const getCategoryColor = (category) => {
|
|
551
|
-
switch (category) {
|
|
552
|
-
case 'analytics': return '#FF9500';
|
|
553
|
-
case 'customization': return '#5856D6';
|
|
554
|
-
case 'content': return '#30D158';
|
|
555
|
-
case 'networking': return '#007AFF';
|
|
556
|
-
case 'productivity': return '#FF3B30';
|
|
557
|
-
default: return primaryColor;
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
const getCategoryIcon = (category) => {
|
|
561
|
-
switch (category) {
|
|
562
|
-
case 'analytics': return 'analytics';
|
|
563
|
-
case 'customization': return 'color-palette';
|
|
564
|
-
case 'content': return 'document-text';
|
|
565
|
-
case 'networking': return 'people';
|
|
566
|
-
case 'productivity': return 'briefcase';
|
|
567
|
-
default: return 'star';
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
const getAppScopeText = () => {
|
|
571
|
-
if (feature.appScope === 'ecosystem') {
|
|
572
|
-
return t('premium.feature.scope.allApps');
|
|
573
|
-
}
|
|
574
|
-
return t('premium.feature.scope.availableIn', { apps: feature.applicableApps.join(', ') }) || `Available in: ${feature.applicableApps.join(', ')}`;
|
|
575
|
-
};
|
|
576
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
|
|
577
|
-
styles.featureCard,
|
|
578
|
-
{ backgroundColor: secondaryBackgroundColor, borderColor },
|
|
579
|
-
isSubscribed && { borderColor: successColor, borderWidth: 2 },
|
|
580
|
-
isIncludedInCurrentPlan && { borderColor: primaryColor, borderWidth: 2 }
|
|
581
|
-
], children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.featureHeader, children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.featureIconContainer, children: (0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: getCategoryIcon(feature.category), size: 24, color: getCategoryColor(feature.category) }) }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.featureInfo, children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.featureNameRow, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.featureName, { color: textColor }], children: feature.name }), isIncludedInCurrentPlan && ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.includedBadge, { backgroundColor: primaryColor }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.includedBadgeText, children: "Included" }) }))] }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.featureDescription, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: feature.description }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.appScopeText, { color: isDarkTheme ? '#888888' : '#999999' }], children: getAppScopeText() })] })] }), !isIncludedInCurrentPlan && ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.featurePricing, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.featurePrice, { color: textColor }], children: pricing.formatted }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.featureInterval, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.plan.perInterval', { interval: pricing.interval }) || `per ${pricing.interval}` })] })), isIncludedInCurrentPlan ? ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.includedInPlanButton, { backgroundColor: primaryColor }], children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "checkmark-circle", size: 16, color: "#FFFFFF" }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.includedInPlanText, children: t('premium.feature.includedInPlan') || 'Included in your plan' })] })) : isSubscribed ? ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.featureActions, children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.subscribedButton, { backgroundColor: successColor }], children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "checkmark", size: 16, color: "#FFFFFF" }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.subscribedText, children: t('premium.feature.subscribed') || 'Subscribed' })] }), (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [styles.unsubscribeButton, { borderColor: dangerColor }], onPress: () => handleFeatureUnsubscribe(feature.id), children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.unsubscribeText, { color: dangerColor }], children: t('premium.actions.unsubscribe') || 'Unsubscribe' }) })] })) : canPurchase ? ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [styles.subscribeFeatureButton, { backgroundColor: primaryColor }], onPress: () => handleFeatureSubscribe(feature.id), disabled: processingPayment, children: processingPayment ? ((0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, { color: "#FFFFFF", size: "small" })) : ((0, jsx_runtime_1.jsx)(react_native_1.Text, { style: styles.subscribeFeatureText, children: t('premium.actions.subscribe') || 'Subscribe' })) })) : ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: [styles.unavailableButton, { backgroundColor: isDarkTheme ? '#444444' : '#E0E0E0' }], children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.unavailableText, { color: isDarkTheme ? '#888888' : '#999999' }], children: "Only available in subscription plans" }) }))] }, feature.id));
|
|
582
|
-
};
|
|
583
|
-
const renderIndividualFeatures = () => {
|
|
584
|
-
const categories = ['analytics', 'customization', 'content', 'networking', 'productivity'];
|
|
585
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.section, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionTitle, { color: textColor }], children: "Individual Features" }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionSubtitle, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: "Subscribe to specific features you need. Some features are included in subscription plans." }), categories.map(category => {
|
|
586
|
-
const categoryFeatures = individualFeatures.filter(f => f.category === category);
|
|
587
|
-
if (categoryFeatures.length === 0)
|
|
588
|
-
return null;
|
|
589
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.categorySection, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.categoryTitle, { color: textColor }], children: category.charAt(0).toUpperCase() + category.slice(1) }), categoryFeatures.map(renderFeatureCard)] }, category));
|
|
590
|
-
})] }));
|
|
591
|
-
};
|
|
592
|
-
// Add this for testing different app contexts (remove in production)
|
|
593
|
-
const [showAppSwitcher, setShowAppSwitcher] = (0, react_1.useState)(__DEV__); // Only show in development
|
|
594
|
-
const renderAppSwitcher = () => {
|
|
595
|
-
if (!showAppSwitcher)
|
|
596
|
-
return null;
|
|
597
|
-
const testApps = ['mention', 'oxy-social', 'oxy-workspace', 'oxy-creator'];
|
|
598
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.appSwitcher, { backgroundColor: isDarkTheme ? '#333333' : '#F0F0F0', borderColor }], children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.appSwitcherTitle, { color: textColor }], children: "\uD83E\uDDEA Test App Context (Dev Only)" }), (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: (0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.appSwitcherButtons, children: testApps.map(app => ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, { style: [
|
|
599
|
-
styles.appSwitcherButton,
|
|
600
|
-
{
|
|
601
|
-
backgroundColor: currentAppPackage === app ? primaryColor : 'transparent',
|
|
602
|
-
borderColor: primaryColor,
|
|
603
|
-
}
|
|
604
|
-
], onPress: () => {
|
|
605
|
-
setCurrentAppPackage(app);
|
|
606
|
-
}, children: (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [
|
|
607
|
-
styles.appSwitcherButtonText,
|
|
608
|
-
{ color: currentAppPackage === app ? '#FFFFFF' : textColor }
|
|
609
|
-
], children: app }) }, app))) }) })] }));
|
|
610
|
-
};
|
|
611
|
-
if (loading) {
|
|
612
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.container, { backgroundColor, justifyContent: 'center' }], children: [(0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, { size: "large", color: primaryColor }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.loadingText, { color: textColor }], children: t('premium.loading') || 'Loading subscription plans...' })] }));
|
|
613
|
-
}
|
|
614
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.container, { backgroundColor }], children: [renderHeader(), renderAppSwitcher(), (0, jsx_runtime_1.jsxs)(react_native_1.ScrollView, { style: styles.content, showsVerticalScrollIndicator: false, children: [subscription && renderCurrentSubscription(), !subscription && ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.section, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionTitle, { color: textColor }], children: t('premium.choosePlan') || 'Choose Your Plan' }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionSubtitle, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.choosePlanSubtitle') || 'Unlock premium features and take your experience to the next level' })] })), !subscription && renderTabNavigation(), !subscription && activeTab === 'plans' && renderBillingToggle(), activeTab === 'plans' ? ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.section, children: [!subscription && ((0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionTitle, { color: textColor }], children: t('premium.availablePlans') || 'Available Plans' })), plans.map(renderPlanCard)] })) : (renderIndividualFeatures()), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.section, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.sectionTitle, { color: textColor }], children: t('premium.why') || 'Why Go Premium?' }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.benefitsCard, { backgroundColor: secondaryBackgroundColor, borderColor }], children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.benefitItem, children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "flash", size: 24, color: primaryColor }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.benefitContent, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.benefitTitle, { color: textColor }], children: t('premium.benefits.performance.title') || 'Enhanced Performance' }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.benefitDescription, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.benefits.performance.desc') || 'Faster processing and priority access to our servers' })] })] }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.benefitItem, children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "shield-checkmark", size: 24, color: successColor }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.benefitContent, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.benefitTitle, { color: textColor }], children: t('premium.benefits.security.title') || 'Advanced Security' }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.benefitDescription, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.benefits.security.desc') || 'Enhanced encryption and security features' })] })] }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.benefitItem, children: [(0, jsx_runtime_1.jsx)(vector_icons_1.Ionicons, { name: "headset", size: 24, color: warningColor }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.benefitContent, children: [(0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.benefitTitle, { color: textColor }], children: t('premium.benefits.support.title') || 'Priority Support' }), (0, jsx_runtime_1.jsx)(react_native_1.Text, { style: [styles.benefitDescription, { color: isDarkTheme ? '#BBBBBB' : '#666666' }], children: t('premium.benefits.support.desc') || 'Get help faster with our premium support team' })] })] })] })] }), (0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.bottomSpacing })] })] }));
|
|
615
|
-
};
|
|
616
|
-
const styles = react_native_1.StyleSheet.create({
|
|
617
|
-
container: {
|
|
618
|
-
flex: 1,
|
|
619
|
-
},
|
|
620
|
-
header: {
|
|
621
|
-
flexDirection: 'row',
|
|
622
|
-
alignItems: 'center',
|
|
623
|
-
justifyContent: 'space-between',
|
|
624
|
-
paddingHorizontal: 20,
|
|
625
|
-
paddingTop: 20,
|
|
626
|
-
paddingBottom: 16,
|
|
627
|
-
borderBottomWidth: 1,
|
|
628
|
-
},
|
|
629
|
-
backButton: {
|
|
630
|
-
padding: 8,
|
|
631
|
-
},
|
|
632
|
-
headerTitle: {
|
|
633
|
-
fontSize: 20,
|
|
634
|
-
fontWeight: '600',
|
|
635
|
-
fontFamily: fonts_1.fontFamilies.interSemiBold,
|
|
636
|
-
},
|
|
637
|
-
headerTitleContainer: {
|
|
638
|
-
flex: 1,
|
|
639
|
-
alignItems: 'center',
|
|
640
|
-
},
|
|
641
|
-
currentAppText: {
|
|
642
|
-
fontSize: 14,
|
|
643
|
-
marginTop: 2,
|
|
644
|
-
fontStyle: 'italic',
|
|
645
|
-
},
|
|
646
|
-
closeButton: {
|
|
647
|
-
padding: 8,
|
|
648
|
-
},
|
|
649
|
-
content: {
|
|
650
|
-
flex: 1,
|
|
651
|
-
},
|
|
652
|
-
section: {
|
|
653
|
-
padding: 20,
|
|
654
|
-
},
|
|
655
|
-
sectionTitle: {
|
|
656
|
-
fontSize: 24,
|
|
657
|
-
fontWeight: 'bold',
|
|
658
|
-
fontFamily: fonts_1.fontFamilies.interBold,
|
|
659
|
-
marginBottom: 8,
|
|
660
|
-
},
|
|
661
|
-
sectionSubtitle: {
|
|
662
|
-
fontSize: 16,
|
|
663
|
-
lineHeight: 22,
|
|
664
|
-
},
|
|
665
|
-
loadingText: {
|
|
666
|
-
fontSize: 16,
|
|
667
|
-
textAlign: 'center',
|
|
668
|
-
marginTop: 16,
|
|
669
|
-
},
|
|
670
|
-
currentSubscriptionCard: {
|
|
671
|
-
borderRadius: 16,
|
|
672
|
-
padding: 20,
|
|
673
|
-
borderWidth: 1,
|
|
674
|
-
},
|
|
675
|
-
subscriptionHeader: {
|
|
676
|
-
flexDirection: 'row',
|
|
677
|
-
justifyContent: 'space-between',
|
|
678
|
-
alignItems: 'flex-start',
|
|
679
|
-
marginBottom: 12,
|
|
680
|
-
},
|
|
681
|
-
planName: {
|
|
682
|
-
fontSize: 20,
|
|
683
|
-
fontWeight: 'bold',
|
|
684
|
-
marginBottom: 4,
|
|
685
|
-
},
|
|
686
|
-
planPrice: {
|
|
687
|
-
fontSize: 16,
|
|
688
|
-
fontWeight: '600',
|
|
689
|
-
},
|
|
690
|
-
statusBadge: {
|
|
691
|
-
paddingHorizontal: 12,
|
|
692
|
-
paddingVertical: 4,
|
|
693
|
-
borderRadius: 12,
|
|
694
|
-
},
|
|
695
|
-
statusText: {
|
|
696
|
-
color: '#FFFFFF',
|
|
697
|
-
fontSize: 12,
|
|
698
|
-
fontWeight: '600',
|
|
699
|
-
},
|
|
700
|
-
subscriptionDetail: {
|
|
701
|
-
fontSize: 14,
|
|
702
|
-
marginBottom: 16,
|
|
703
|
-
},
|
|
704
|
-
cancelNotice: {
|
|
705
|
-
flexDirection: 'row',
|
|
706
|
-
alignItems: 'center',
|
|
707
|
-
padding: 12,
|
|
708
|
-
backgroundColor: 'rgba(255, 149, 0, 0.1)',
|
|
709
|
-
borderRadius: 8,
|
|
710
|
-
marginBottom: 16,
|
|
711
|
-
},
|
|
712
|
-
cancelText: {
|
|
713
|
-
fontSize: 14,
|
|
714
|
-
marginLeft: 8,
|
|
715
|
-
flex: 1,
|
|
716
|
-
},
|
|
717
|
-
subscriptionActions: {
|
|
718
|
-
flexDirection: 'row',
|
|
719
|
-
gap: 12,
|
|
720
|
-
},
|
|
721
|
-
actionButton: {
|
|
722
|
-
flex: 1,
|
|
723
|
-
paddingVertical: 12,
|
|
724
|
-
paddingHorizontal: 16,
|
|
725
|
-
borderRadius: 8,
|
|
726
|
-
alignItems: 'center',
|
|
727
|
-
},
|
|
728
|
-
secondaryButton: {
|
|
729
|
-
backgroundColor: 'transparent',
|
|
730
|
-
borderWidth: 1,
|
|
731
|
-
},
|
|
732
|
-
actionButtonText: {
|
|
733
|
-
color: '#FFFFFF',
|
|
734
|
-
fontSize: 14,
|
|
735
|
-
fontWeight: '600',
|
|
736
|
-
},
|
|
737
|
-
billingToggle: {
|
|
738
|
-
flexDirection: 'row',
|
|
739
|
-
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
740
|
-
borderRadius: 8,
|
|
741
|
-
padding: 4,
|
|
742
|
-
marginBottom: 12,
|
|
743
|
-
},
|
|
744
|
-
billingOption: {
|
|
745
|
-
flex: 1,
|
|
746
|
-
paddingVertical: 12,
|
|
747
|
-
borderRadius: 6,
|
|
748
|
-
alignItems: 'center',
|
|
749
|
-
},
|
|
750
|
-
billingOptionText: {
|
|
751
|
-
fontSize: 16,
|
|
752
|
-
fontWeight: '600',
|
|
753
|
-
},
|
|
754
|
-
savingsText: {
|
|
755
|
-
fontSize: 14,
|
|
756
|
-
textAlign: 'center',
|
|
757
|
-
fontWeight: '600',
|
|
758
|
-
},
|
|
759
|
-
planCard: {
|
|
760
|
-
borderRadius: 16,
|
|
761
|
-
padding: 20,
|
|
762
|
-
marginBottom: 16,
|
|
763
|
-
borderWidth: 1,
|
|
764
|
-
position: 'relative',
|
|
765
|
-
},
|
|
766
|
-
popularPlan: {
|
|
767
|
-
borderWidth: 2,
|
|
768
|
-
},
|
|
769
|
-
popularBadge: {
|
|
770
|
-
position: 'absolute',
|
|
771
|
-
top: -1,
|
|
772
|
-
left: 20,
|
|
773
|
-
right: 20,
|
|
774
|
-
paddingVertical: 8,
|
|
775
|
-
borderTopLeftRadius: 16,
|
|
776
|
-
borderTopRightRadius: 16,
|
|
777
|
-
alignItems: 'center',
|
|
778
|
-
},
|
|
779
|
-
popularText: {
|
|
780
|
-
color: '#FFFFFF',
|
|
781
|
-
fontSize: 12,
|
|
782
|
-
fontWeight: 'bold',
|
|
783
|
-
},
|
|
784
|
-
planHeader: {
|
|
785
|
-
marginBottom: 16,
|
|
786
|
-
marginTop: 16,
|
|
787
|
-
},
|
|
788
|
-
planDescription: {
|
|
789
|
-
fontSize: 14,
|
|
790
|
-
lineHeight: 20,
|
|
791
|
-
},
|
|
792
|
-
planAppScope: {
|
|
793
|
-
fontSize: 12,
|
|
794
|
-
fontStyle: 'italic',
|
|
795
|
-
marginTop: 4,
|
|
796
|
-
},
|
|
797
|
-
planPricing: {
|
|
798
|
-
flexDirection: 'row',
|
|
799
|
-
alignItems: 'baseline',
|
|
800
|
-
marginBottom: 20,
|
|
801
|
-
},
|
|
802
|
-
planInterval: {
|
|
803
|
-
fontSize: 14,
|
|
804
|
-
marginLeft: 4,
|
|
805
|
-
},
|
|
806
|
-
planFeatures: {
|
|
807
|
-
marginBottom: 24,
|
|
808
|
-
},
|
|
809
|
-
featureItem: {
|
|
810
|
-
flexDirection: 'row',
|
|
811
|
-
alignItems: 'center',
|
|
812
|
-
marginBottom: 8,
|
|
813
|
-
},
|
|
814
|
-
featureText: {
|
|
815
|
-
fontSize: 14,
|
|
816
|
-
marginLeft: 8,
|
|
817
|
-
flex: 1,
|
|
818
|
-
},
|
|
819
|
-
selectPlanButton: {
|
|
820
|
-
paddingVertical: 16,
|
|
821
|
-
borderRadius: 12,
|
|
822
|
-
alignItems: 'center',
|
|
823
|
-
},
|
|
824
|
-
selectPlanText: {
|
|
825
|
-
fontSize: 16,
|
|
826
|
-
fontWeight: '600',
|
|
827
|
-
},
|
|
828
|
-
currentPlanButton: {
|
|
829
|
-
paddingVertical: 16,
|
|
830
|
-
borderRadius: 12,
|
|
831
|
-
alignItems: 'center',
|
|
832
|
-
},
|
|
833
|
-
currentPlanText: {
|
|
834
|
-
color: '#FFFFFF',
|
|
835
|
-
fontSize: 16,
|
|
836
|
-
fontWeight: '600',
|
|
837
|
-
},
|
|
838
|
-
benefitsCard: {
|
|
839
|
-
borderRadius: 16,
|
|
840
|
-
padding: 20,
|
|
841
|
-
borderWidth: 1,
|
|
842
|
-
},
|
|
843
|
-
benefitItem: {
|
|
844
|
-
flexDirection: 'row',
|
|
845
|
-
alignItems: 'flex-start',
|
|
846
|
-
marginBottom: 20,
|
|
847
|
-
},
|
|
848
|
-
benefitContent: {
|
|
849
|
-
marginLeft: 16,
|
|
850
|
-
flex: 1,
|
|
851
|
-
},
|
|
852
|
-
benefitTitle: {
|
|
853
|
-
fontSize: 16,
|
|
854
|
-
fontWeight: '600',
|
|
855
|
-
marginBottom: 4,
|
|
856
|
-
},
|
|
857
|
-
benefitDescription: {
|
|
858
|
-
fontSize: 14,
|
|
859
|
-
lineHeight: 20,
|
|
860
|
-
},
|
|
861
|
-
bottomSpacing: {
|
|
862
|
-
height: 40,
|
|
863
|
-
},
|
|
864
|
-
// Tab Navigation Styles
|
|
865
|
-
tabContainer: {
|
|
866
|
-
flexDirection: 'row',
|
|
867
|
-
borderBottomWidth: 1,
|
|
868
|
-
marginBottom: 20,
|
|
869
|
-
},
|
|
870
|
-
tab: {
|
|
871
|
-
flex: 1,
|
|
872
|
-
paddingVertical: 12,
|
|
873
|
-
paddingHorizontal: 16,
|
|
874
|
-
alignItems: 'center',
|
|
875
|
-
},
|
|
876
|
-
tabText: {
|
|
877
|
-
fontSize: 16,
|
|
878
|
-
fontWeight: '600',
|
|
879
|
-
},
|
|
880
|
-
// Individual Feature Styles
|
|
881
|
-
featureCard: {
|
|
882
|
-
borderRadius: 12,
|
|
883
|
-
borderWidth: 1,
|
|
884
|
-
padding: 16,
|
|
885
|
-
marginBottom: 12,
|
|
886
|
-
},
|
|
887
|
-
featureHeader: {
|
|
888
|
-
flexDirection: 'row',
|
|
889
|
-
alignItems: 'flex-start',
|
|
890
|
-
marginBottom: 12,
|
|
891
|
-
},
|
|
892
|
-
featureIconContainer: {
|
|
893
|
-
width: 40,
|
|
894
|
-
height: 40,
|
|
895
|
-
borderRadius: 20,
|
|
896
|
-
backgroundColor: 'rgba(0, 122, 255, 0.1)',
|
|
897
|
-
justifyContent: 'center',
|
|
898
|
-
alignItems: 'center',
|
|
899
|
-
marginRight: 12,
|
|
900
|
-
},
|
|
901
|
-
featureInfo: {
|
|
902
|
-
flex: 1,
|
|
903
|
-
},
|
|
904
|
-
featureName: {
|
|
905
|
-
fontSize: 16,
|
|
906
|
-
fontWeight: '600',
|
|
907
|
-
marginBottom: 4,
|
|
908
|
-
},
|
|
909
|
-
featureDescription: {
|
|
910
|
-
fontSize: 14,
|
|
911
|
-
lineHeight: 20,
|
|
912
|
-
},
|
|
913
|
-
featurePricing: {
|
|
914
|
-
alignItems: 'center',
|
|
915
|
-
marginBottom: 16,
|
|
916
|
-
},
|
|
917
|
-
featurePrice: {
|
|
918
|
-
fontSize: 20,
|
|
919
|
-
fontWeight: 'bold',
|
|
920
|
-
},
|
|
921
|
-
featureInterval: {
|
|
922
|
-
fontSize: 14,
|
|
923
|
-
marginTop: 2,
|
|
924
|
-
},
|
|
925
|
-
featureActions: {
|
|
926
|
-
flexDirection: 'row',
|
|
927
|
-
gap: 8,
|
|
928
|
-
},
|
|
929
|
-
subscribedButton: {
|
|
930
|
-
flex: 1,
|
|
931
|
-
flexDirection: 'row',
|
|
932
|
-
justifyContent: 'center',
|
|
933
|
-
alignItems: 'center',
|
|
934
|
-
paddingVertical: 12,
|
|
935
|
-
borderRadius: 8,
|
|
936
|
-
gap: 6,
|
|
937
|
-
},
|
|
938
|
-
subscribedText: {
|
|
939
|
-
color: '#FFFFFF',
|
|
940
|
-
fontSize: 16,
|
|
941
|
-
fontWeight: '600',
|
|
942
|
-
},
|
|
943
|
-
unsubscribeButton: {
|
|
944
|
-
flex: 1,
|
|
945
|
-
justifyContent: 'center',
|
|
946
|
-
alignItems: 'center',
|
|
947
|
-
paddingVertical: 12,
|
|
948
|
-
borderRadius: 8,
|
|
949
|
-
borderWidth: 1,
|
|
950
|
-
},
|
|
951
|
-
unsubscribeText: {
|
|
952
|
-
fontSize: 16,
|
|
953
|
-
fontWeight: '600',
|
|
954
|
-
},
|
|
955
|
-
subscribeFeatureButton: {
|
|
956
|
-
justifyContent: 'center',
|
|
957
|
-
alignItems: 'center',
|
|
958
|
-
paddingVertical: 12,
|
|
959
|
-
borderRadius: 8,
|
|
960
|
-
},
|
|
961
|
-
subscribeFeatureText: {
|
|
962
|
-
color: '#FFFFFF',
|
|
963
|
-
fontSize: 16,
|
|
964
|
-
fontWeight: '600',
|
|
965
|
-
},
|
|
966
|
-
categorySection: {
|
|
967
|
-
marginBottom: 24,
|
|
968
|
-
},
|
|
969
|
-
categoryTitle: {
|
|
970
|
-
fontSize: 18,
|
|
971
|
-
fontWeight: '600',
|
|
972
|
-
marginBottom: 12,
|
|
973
|
-
},
|
|
974
|
-
// New styles for enhanced feature cards
|
|
975
|
-
featureNameRow: {
|
|
976
|
-
flexDirection: 'row',
|
|
977
|
-
alignItems: 'center',
|
|
978
|
-
justifyContent: 'space-between',
|
|
979
|
-
marginBottom: 4,
|
|
980
|
-
},
|
|
981
|
-
includedBadge: {
|
|
982
|
-
paddingHorizontal: 8,
|
|
983
|
-
paddingVertical: 2,
|
|
984
|
-
borderRadius: 12,
|
|
985
|
-
marginLeft: 8,
|
|
986
|
-
},
|
|
987
|
-
includedBadgeText: {
|
|
988
|
-
color: '#FFFFFF',
|
|
989
|
-
fontSize: 10,
|
|
990
|
-
fontWeight: '600',
|
|
991
|
-
textTransform: 'uppercase',
|
|
992
|
-
},
|
|
993
|
-
appScopeText: {
|
|
994
|
-
fontSize: 12,
|
|
995
|
-
marginTop: 4,
|
|
996
|
-
fontStyle: 'italic',
|
|
997
|
-
},
|
|
998
|
-
includedInPlanButton: {
|
|
999
|
-
flexDirection: 'row',
|
|
1000
|
-
justifyContent: 'center',
|
|
1001
|
-
alignItems: 'center',
|
|
1002
|
-
paddingVertical: 12,
|
|
1003
|
-
borderRadius: 8,
|
|
1004
|
-
gap: 6,
|
|
1005
|
-
},
|
|
1006
|
-
includedInPlanText: {
|
|
1007
|
-
color: '#FFFFFF',
|
|
1008
|
-
fontSize: 14,
|
|
1009
|
-
fontWeight: '600',
|
|
1010
|
-
},
|
|
1011
|
-
unavailableButton: {
|
|
1012
|
-
justifyContent: 'center',
|
|
1013
|
-
alignItems: 'center',
|
|
1014
|
-
paddingVertical: 12,
|
|
1015
|
-
borderRadius: 8,
|
|
1016
|
-
},
|
|
1017
|
-
unavailableText: {
|
|
1018
|
-
fontSize: 14,
|
|
1019
|
-
fontWeight: '500',
|
|
1020
|
-
textAlign: 'center',
|
|
1021
|
-
},
|
|
1022
|
-
// App-specific plan styles
|
|
1023
|
-
appSpecificBadge: {
|
|
1024
|
-
position: 'absolute',
|
|
1025
|
-
top: 16,
|
|
1026
|
-
right: 16,
|
|
1027
|
-
paddingHorizontal: 8,
|
|
1028
|
-
paddingVertical: 4,
|
|
1029
|
-
borderRadius: 12,
|
|
1030
|
-
zIndex: 1,
|
|
1031
|
-
},
|
|
1032
|
-
appSpecificText: {
|
|
1033
|
-
color: '#FFFFFF',
|
|
1034
|
-
fontSize: 12,
|
|
1035
|
-
fontWeight: '600',
|
|
1036
|
-
},
|
|
1037
|
-
planRestrictionText: {
|
|
1038
|
-
fontSize: 12,
|
|
1039
|
-
fontWeight: '500',
|
|
1040
|
-
marginTop: 4,
|
|
1041
|
-
fontStyle: 'italic',
|
|
1042
|
-
},
|
|
1043
|
-
unavailablePlanButton: {
|
|
1044
|
-
paddingVertical: 16,
|
|
1045
|
-
borderRadius: 12,
|
|
1046
|
-
alignItems: 'center',
|
|
1047
|
-
},
|
|
1048
|
-
unavailablePlanText: {
|
|
1049
|
-
fontSize: 16,
|
|
1050
|
-
fontWeight: '600',
|
|
1051
|
-
},
|
|
1052
|
-
// App switcher styles (for development/testing)
|
|
1053
|
-
appSwitcher: {
|
|
1054
|
-
padding: 16,
|
|
1055
|
-
borderBottomWidth: 1,
|
|
1056
|
-
margin: 16,
|
|
1057
|
-
borderRadius: 12,
|
|
1058
|
-
borderWidth: 1,
|
|
1059
|
-
},
|
|
1060
|
-
appSwitcherTitle: {
|
|
1061
|
-
fontSize: 14,
|
|
1062
|
-
fontWeight: '600',
|
|
1063
|
-
marginBottom: 12,
|
|
1064
|
-
},
|
|
1065
|
-
appSwitcherButtons: {
|
|
1066
|
-
flexDirection: 'row',
|
|
1067
|
-
gap: 8,
|
|
1068
|
-
},
|
|
1069
|
-
appSwitcherButton: {
|
|
1070
|
-
paddingHorizontal: 12,
|
|
1071
|
-
paddingVertical: 6,
|
|
1072
|
-
borderRadius: 8,
|
|
1073
|
-
borderWidth: 1,
|
|
1074
|
-
},
|
|
1075
|
-
appSwitcherButtonText: {
|
|
1076
|
-
fontSize: 12,
|
|
1077
|
-
fontWeight: '500',
|
|
1078
|
-
},
|
|
1079
|
-
});
|
|
1080
|
-
exports.default = PremiumSubscriptionScreen;
|