@oxyhq/services 5.21.6 → 5.22.0
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/README.md +201 -2
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/core/HttpService.js +87 -2
- package/lib/commonjs/core/HttpService.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +3 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/commonjs/crypto/keyManager.js +67 -22
- package/lib/commonjs/crypto/keyManager.js.map +1 -1
- package/lib/commonjs/i18n/locales/en-US.json +3 -3
- package/lib/commonjs/i18n/locales/es-ES.json +240 -19
- package/lib/commonjs/index.js +66 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/Avatar.js +1 -1
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +1 -1
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +34 -34
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +4 -4
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +2 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +2 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +57 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/styles.js +17 -17
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +7 -7
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +177 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -123
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +2 -32
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +2 -31
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +2 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +13 -5
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +273 -1820
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +2 -2
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +640 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +41 -23
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -3
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -2
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +3 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +11 -12
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +12 -4
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +15 -5
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +2 -4
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +5 -4
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/fonts.js +27 -27
- package/lib/commonjs/ui/styles/fonts.js.map +1 -1
- package/lib/commonjs/ui/styles/theme.js +3 -3
- package/lib/commonjs/ui/styles/theme.js.map +1 -1
- package/lib/commonjs/ui/utils/authHelpers.js +164 -0
- package/lib/commonjs/ui/utils/authHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/avatarUtils.js +18 -61
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/web.js +682 -0
- package/lib/commonjs/web.js.map +1 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/core/HttpService.js +87 -2
- package/lib/module/core/HttpService.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.assets.js +3 -1
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/module/crypto/keyManager.js +67 -22
- package/lib/module/crypto/keyManager.js.map +1 -1
- package/lib/module/i18n/locales/en-US.json +3 -3
- package/lib/module/i18n/locales/es-ES.json +240 -19
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +1 -1
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +34 -34
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/Header.js +4 -4
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +1 -1
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +2 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +1 -1
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +2 -1
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +2 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +50 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/module/ui/components/fileManagement/styles.js +17 -17
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +7 -7
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +173 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +10 -122
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +2 -32
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +2 -31
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js +72 -0
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +2 -0
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +13 -5
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +277 -1824
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +3 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +2 -2
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +635 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +41 -23
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +9 -3
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +4 -2
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +3 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +11 -12
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +12 -4
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +3 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +15 -5
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +3 -1
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +2 -4
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +5 -4
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/fonts.js +27 -27
- package/lib/module/ui/styles/fonts.js.map +1 -1
- package/lib/module/ui/styles/theme.js +3 -3
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/ui/utils/authHelpers.js +154 -0
- package/lib/module/ui/utils/authHelpers.js.map +1 -0
- package/lib/module/ui/utils/avatarUtils.js +18 -61
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/web.js +75 -0
- package/lib/module/web.js.map +1 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts +5 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +6 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +76 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/fonts.d.ts +7 -7
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts +99 -0
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +54 -0
- package/lib/typescript/commonjs/web.d.ts.map +1 -0
- package/lib/typescript/module/core/HttpService.d.ts +5 -0
- package/lib/typescript/module/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/module/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +6 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +76 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/fonts.d.ts +7 -7
- package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/authHelpers.d.ts +99 -0
- package/lib/typescript/module/ui/utils/authHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +54 -0
- package/lib/typescript/module/web.d.ts.map +1 -0
- package/package.json +27 -41
- package/src/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/src/core/HttpService.ts +91 -0
- package/src/core/mixins/OxyServices.assets.ts +1 -1
- package/src/crypto/keyManager.ts +23 -22
- package/src/i18n/locales/en-US.json +3 -3
- package/src/i18n/locales/es-ES.json +240 -19
- package/src/index.ts +25 -0
- package/src/ui/components/Avatar.tsx +1 -1
- package/src/ui/components/FollowButton.tsx +1 -1
- package/src/ui/components/FontLoader.tsx +34 -34
- package/src/ui/components/Header.tsx +4 -4
- package/src/ui/components/OxyPayButton.tsx +1 -1
- package/src/ui/components/OxySignInButton.tsx +2 -1
- package/src/ui/components/ProfileCard.tsx +1 -1
- package/src/ui/components/SectionTitle.tsx +1 -1
- package/src/ui/components/StepBasedScreen.tsx +2 -1
- package/src/ui/components/feedback/feedbackStyles.ts +2 -1
- package/src/ui/components/fileManagement/AnimatedButton.tsx +56 -0
- package/src/ui/components/fileManagement/styles.ts +17 -17
- package/src/ui/components/payment/paymentStyles.ts +7 -7
- package/src/ui/hooks/mutations/mutationFactory.ts +215 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +48 -136
- package/src/ui/hooks/queries/useAccountQueries.ts +6 -33
- package/src/ui/hooks/queries/useServicesQueries.ts +6 -32
- package/src/ui/hooks/useFileFiltering.ts +115 -0
- package/src/ui/navigation/routes.ts +3 -0
- package/src/ui/screens/AccountCenterScreen.tsx +4 -2
- package/src/ui/screens/AccountOverviewScreen.tsx +13 -5
- package/src/ui/screens/AccountSettingsScreen.tsx +35 -1511
- package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
- package/src/ui/screens/AccountVerificationScreen.tsx +3 -1
- package/src/ui/screens/AppInfoScreen.tsx +2 -2
- package/src/ui/screens/EditProfileFieldScreen.tsx +685 -0
- package/src/ui/screens/FileManagementScreen.tsx +35 -17
- package/src/ui/screens/HistoryViewScreen.tsx +9 -3
- package/src/ui/screens/LanguageSelectorScreen.tsx +4 -2
- package/src/ui/screens/LegalDocumentsScreen.tsx +3 -1
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +11 -13
- package/src/ui/screens/PrivacySettingsScreen.tsx +12 -4
- package/src/ui/screens/SearchSettingsScreen.tsx +3 -1
- package/src/ui/screens/SessionManagementScreen.tsx +15 -5
- package/src/ui/screens/UserLinksScreen.tsx +3 -1
- package/src/ui/screens/WelcomeNewUserScreen.tsx +2 -1
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +6 -8
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +3 -3
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +3 -3
- package/src/ui/styles/authStyles.ts +4 -4
- package/src/ui/styles/fonts.ts +26 -26
- package/src/ui/styles/theme.ts +3 -5
- package/src/ui/utils/authHelpers.ts +183 -0
- package/src/ui/utils/avatarUtils.ts +25 -65
- package/src/web.ts +230 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/ui/components/profile/EditBioModal.js +0 -181
- package/lib/commonjs/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +0 -204
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditEmailModal.js +0 -184
- package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditFieldModal.js +0 -412
- package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLinksModal.js +0 -315
- package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLocationModal.js +0 -273
- package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js +0 -180
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/ui/components/profile/EditBioModal.js +0 -175
- package/lib/module/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditDisplayNameModal.js +0 -198
- package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditEmailModal.js +0 -178
- package/lib/module/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditFieldModal.js +0 -406
- package/lib/module/ui/components/profile/EditFieldModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLinksModal.js +0 -309
- package/lib/module/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLocationModal.js +0 -267
- package/lib/module/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditUsernameModal.js +0 -174
- package/lib/module/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +0 -110
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +0 -110
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/src/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/src/ui/components/profile/EditBioModal.tsx +0 -184
- package/src/ui/components/profile/EditDisplayNameModal.tsx +0 -203
- package/src/ui/components/profile/EditEmailModal.tsx +0 -188
- package/src/ui/components/profile/EditFieldModal.tsx +0 -465
- package/src/ui/components/profile/EditLinksModal.tsx +0 -316
- package/src/ui/components/profile/EditLocationModal.tsx +0 -278
- package/src/ui/components/profile/EditUsernameModal.tsx +0 -183
|
@@ -524,7 +524,9 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
524
524
|
// Validate file before upload
|
|
525
525
|
if (!raw || !raw.name || raw.size === undefined || raw.size <= 0) {
|
|
526
526
|
const errorMsg = `Invalid file: ${fileName}`;
|
|
527
|
-
|
|
527
|
+
if (__DEV__) {
|
|
528
|
+
console.error('Upload validation failed:', { file: raw, error: errorMsg });
|
|
529
|
+
}
|
|
528
530
|
failureCount++;
|
|
529
531
|
errors.push(`${fileName}: Invalid file (missing name or size)`);
|
|
530
532
|
continue;
|
|
@@ -549,8 +551,8 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
549
551
|
});
|
|
550
552
|
|
|
551
553
|
// Attempt to refresh file list incrementally – fetch single file metadata if API allows
|
|
552
|
-
|
|
553
|
-
|
|
554
|
+
const f = result?.file ?? result?.files?.[0];
|
|
555
|
+
if (f) {
|
|
554
556
|
const merged: FileMetadata = {
|
|
555
557
|
id: f.id,
|
|
556
558
|
filename: f.originalName || f.sha256 || raw.name,
|
|
@@ -569,7 +571,9 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
569
571
|
} else {
|
|
570
572
|
// Fallback: will reconcile on later list refresh
|
|
571
573
|
useFileStore.getState().updateFile(optimisticId, { metadata: { uploading: false } as any });
|
|
572
|
-
|
|
574
|
+
if (__DEV__) {
|
|
575
|
+
console.warn('Upload completed but no file data returned:', { fileName, result });
|
|
576
|
+
}
|
|
573
577
|
// Still count as success if upload didn't throw
|
|
574
578
|
successCount++;
|
|
575
579
|
}
|
|
@@ -578,13 +582,15 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
578
582
|
const errorMessage = error.message || error.toString() || 'Upload failed';
|
|
579
583
|
const fullError = `${fileName}: ${errorMessage}`;
|
|
580
584
|
errors.push(fullError);
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
585
|
+
if (__DEV__) {
|
|
586
|
+
console.error('File upload failed:', {
|
|
587
|
+
fileName,
|
|
588
|
+
fileSize: raw.size,
|
|
589
|
+
fileType: raw.type,
|
|
590
|
+
error: errorMessage,
|
|
591
|
+
stack: error.stack
|
|
592
|
+
});
|
|
593
|
+
}
|
|
588
594
|
|
|
589
595
|
// Remove optimistic file on error (use the same optimisticId from above)
|
|
590
596
|
useFileStore.getState().removeFile(optimisticId);
|
|
@@ -619,25 +625,33 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
619
625
|
for (const file of selectedFiles) {
|
|
620
626
|
// Validate file has required properties
|
|
621
627
|
if (!file) {
|
|
622
|
-
|
|
628
|
+
if (__DEV__) {
|
|
629
|
+
console.error('Invalid file: file is null or undefined');
|
|
630
|
+
}
|
|
623
631
|
toast.error('Invalid file: file is missing');
|
|
624
632
|
continue;
|
|
625
633
|
}
|
|
626
634
|
|
|
627
635
|
if (!file.name || typeof file.name !== 'string') {
|
|
628
|
-
|
|
636
|
+
if (__DEV__) {
|
|
637
|
+
console.error('Invalid file: missing or invalid name property', file);
|
|
638
|
+
}
|
|
629
639
|
toast.error('Invalid file: missing file name');
|
|
630
640
|
continue;
|
|
631
641
|
}
|
|
632
642
|
|
|
633
643
|
if (file.size === undefined || file.size === null || isNaN(file.size)) {
|
|
634
|
-
|
|
644
|
+
if (__DEV__) {
|
|
645
|
+
console.error('Invalid file: missing or invalid size property', file);
|
|
646
|
+
}
|
|
635
647
|
toast.error(`Invalid file "${file.name || 'unknown'}": missing file size`);
|
|
636
648
|
continue;
|
|
637
649
|
}
|
|
638
650
|
|
|
639
651
|
if (file.size <= 0) {
|
|
640
|
-
|
|
652
|
+
if (__DEV__) {
|
|
653
|
+
console.error('Invalid file: file size is zero or negative', file);
|
|
654
|
+
}
|
|
641
655
|
toast.error(`File "${file.name}" is empty`);
|
|
642
656
|
continue;
|
|
643
657
|
}
|
|
@@ -668,7 +682,9 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
668
682
|
preview = URL.createObjectURL(file);
|
|
669
683
|
}
|
|
670
684
|
} catch (error: any) {
|
|
671
|
-
|
|
685
|
+
if (__DEV__) {
|
|
686
|
+
console.warn('Failed to create preview URL:', error);
|
|
687
|
+
}
|
|
672
688
|
// Preview is optional, continue without it
|
|
673
689
|
}
|
|
674
690
|
}
|
|
@@ -858,7 +874,9 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
|
|
|
858
874
|
toast.error('No files could be processed. Please try selecting files again.');
|
|
859
875
|
}
|
|
860
876
|
} catch (error: any) {
|
|
861
|
-
|
|
877
|
+
if (__DEV__) {
|
|
878
|
+
console.error('File upload error:', error);
|
|
879
|
+
}
|
|
862
880
|
if (error.message?.includes('expo-document-picker') || error.message?.includes('Different document picking in progress')) {
|
|
863
881
|
if (error.message?.includes('Different document picking in progress')) {
|
|
864
882
|
toast.error('Please wait for the current file selection to complete');
|
|
@@ -48,7 +48,9 @@ const HistoryViewScreen: React.FC<BaseScreenProps> = ({
|
|
|
48
48
|
removeItem: storage.removeItem.bind(storage),
|
|
49
49
|
};
|
|
50
50
|
} catch (error) {
|
|
51
|
-
|
|
51
|
+
if (__DEV__) {
|
|
52
|
+
console.error('AsyncStorage not available:', error);
|
|
53
|
+
}
|
|
52
54
|
throw new Error('AsyncStorage is required in React Native environment');
|
|
53
55
|
}
|
|
54
56
|
} else {
|
|
@@ -122,7 +124,9 @@ const HistoryViewScreen: React.FC<BaseScreenProps> = ({
|
|
|
122
124
|
|
|
123
125
|
toast.success(t('history.deleteLast15Minutes.success') || 'Last 15 minutes deleted');
|
|
124
126
|
} catch (error) {
|
|
125
|
-
|
|
127
|
+
if (__DEV__) {
|
|
128
|
+
console.error('Failed to delete history:', error);
|
|
129
|
+
}
|
|
126
130
|
toast.error(t('history.deleteLast15Minutes.error') || 'Failed to delete history');
|
|
127
131
|
} finally {
|
|
128
132
|
setIsDeleting(false);
|
|
@@ -146,7 +150,9 @@ const HistoryViewScreen: React.FC<BaseScreenProps> = ({
|
|
|
146
150
|
|
|
147
151
|
toast.success(t('history.clearAll.success') || 'History cleared');
|
|
148
152
|
} catch (error) {
|
|
149
|
-
|
|
153
|
+
if (__DEV__) {
|
|
154
|
+
console.error('Failed to clear history:', error);
|
|
155
|
+
}
|
|
150
156
|
toast.error(t('history.clearAll.error') || 'Failed to clear history');
|
|
151
157
|
} finally {
|
|
152
158
|
setIsDeleting(false);
|
|
@@ -86,7 +86,9 @@ const LanguageSelectorScreen: React.FC<LanguageSelectorScreenProps> = ({
|
|
|
86
86
|
|
|
87
87
|
} catch (error) {
|
|
88
88
|
// Only show error if local storage also failed
|
|
89
|
-
|
|
89
|
+
if (__DEV__) {
|
|
90
|
+
console.error('Error saving language preference:', error);
|
|
91
|
+
}
|
|
90
92
|
toast.error('Failed to save language preference');
|
|
91
93
|
setIsLoading(false);
|
|
92
94
|
}
|
|
@@ -177,7 +179,7 @@ const styles = StyleSheet.create({
|
|
|
177
179
|
bigTitle: {
|
|
178
180
|
fontSize: 34,
|
|
179
181
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
180
|
-
fontFamily: fontFamilies.
|
|
182
|
+
fontFamily: fontFamilies.interBold,
|
|
181
183
|
lineHeight: 40,
|
|
182
184
|
marginBottom: 8,
|
|
183
185
|
letterSpacing: -0.5,
|
|
@@ -57,7 +57,9 @@ const LegalDocumentsScreen: React.FC<BaseScreenProps> = ({
|
|
|
57
57
|
toast.error(t('legal.openError') || 'Failed to open document');
|
|
58
58
|
}
|
|
59
59
|
} catch (error) {
|
|
60
|
-
|
|
60
|
+
if (__DEV__) {
|
|
61
|
+
console.error(`Failed to open ${policyKey} policy:`, error);
|
|
62
|
+
}
|
|
61
63
|
toast.error(t('legal.openError') || 'Failed to open document');
|
|
62
64
|
} finally {
|
|
63
65
|
setLoading(false);
|
|
@@ -342,10 +342,6 @@ const PremiumSubscriptionScreen: React.FC<BaseScreenProps> = ({
|
|
|
342
342
|
const detectedApp = 'mention'; // This would be dynamic in real implementation
|
|
343
343
|
|
|
344
344
|
setCurrentAppPackage(detectedApp);
|
|
345
|
-
|
|
346
|
-
// Log for debugging
|
|
347
|
-
console.log('Detected app package:', detectedApp);
|
|
348
|
-
console.log('Available plans for this app will be filtered accordingly');
|
|
349
345
|
};
|
|
350
346
|
|
|
351
347
|
const loadSubscriptionData = async () => {
|
|
@@ -391,7 +387,9 @@ const PremiumSubscriptionScreen: React.FC<BaseScreenProps> = ({
|
|
|
391
387
|
setIndividualFeatures(updatedFeatures);
|
|
392
388
|
|
|
393
389
|
} catch (error) {
|
|
394
|
-
|
|
390
|
+
if (__DEV__) {
|
|
391
|
+
console.error('Failed to load subscription data:', error);
|
|
392
|
+
}
|
|
395
393
|
toast.error('Failed to load subscription information');
|
|
396
394
|
} finally {
|
|
397
395
|
setLoading(false);
|
|
@@ -407,20 +405,16 @@ const PremiumSubscriptionScreen: React.FC<BaseScreenProps> = ({
|
|
|
407
405
|
// Check if plan is available for current app
|
|
408
406
|
const selectedPlan = mockPlans.find(plan => plan.id === planId);
|
|
409
407
|
if (!selectedPlan?.applicableApps.includes(currentAppPackage)) {
|
|
410
|
-
console.log(`❌ Subscription blocked: Plan "${selectedPlan?.name}" not available for app "${currentAppPackage}"`);
|
|
411
408
|
toast.error(t('premium.toasts.planUnavailable', { app: currentAppPackage }) || `This plan is not available for the current app (${currentAppPackage})`);
|
|
412
409
|
return;
|
|
413
410
|
}
|
|
414
411
|
|
|
415
412
|
// Special restriction for Mention+ plan - only available in mention app
|
|
416
413
|
if (planId === 'mention-plus' && currentAppPackage !== 'mention') {
|
|
417
|
-
console.log(`❌ Subscription blocked: Mention+ plan requires app to be "mention", current app is "${currentAppPackage}"`);
|
|
418
414
|
toast.error(t('premium.toasts.mentionOnly') || 'Mention+ is only available in the Mention app');
|
|
419
415
|
return;
|
|
420
416
|
}
|
|
421
417
|
|
|
422
|
-
console.log(`✅ Subscription allowed: Plan "${selectedPlan.name}" is available for app "${currentAppPackage}"`);
|
|
423
|
-
|
|
424
418
|
setProcessingPayment(true);
|
|
425
419
|
|
|
426
420
|
// Mock payment processing
|
|
@@ -442,7 +436,9 @@ const PremiumSubscriptionScreen: React.FC<BaseScreenProps> = ({
|
|
|
442
436
|
loadSubscriptionData();
|
|
443
437
|
|
|
444
438
|
} catch (error) {
|
|
445
|
-
|
|
439
|
+
if (__DEV__) {
|
|
440
|
+
console.error('Payment failed:', error);
|
|
441
|
+
}
|
|
446
442
|
toast.error(t('premium.toasts.paymentFailed') || 'Payment failed. Please try again.');
|
|
447
443
|
} finally {
|
|
448
444
|
setProcessingPayment(false);
|
|
@@ -533,7 +529,9 @@ const PremiumSubscriptionScreen: React.FC<BaseScreenProps> = ({
|
|
|
533
529
|
toast.success((t('premium.toasts.featureSubscribed', { name: feature?.name ?? '' }) ?? `Subscribed to ${feature?.name} successfully!`));
|
|
534
530
|
|
|
535
531
|
} catch (error) {
|
|
536
|
-
|
|
532
|
+
if (__DEV__) {
|
|
533
|
+
console.error('Feature subscription failed:', error);
|
|
534
|
+
}
|
|
537
535
|
toast.error(t('premium.toasts.featureSubscribeFailed') || 'Feature subscription failed. Please try again.');
|
|
538
536
|
} finally {
|
|
539
537
|
setProcessingPayment(false);
|
|
@@ -1168,7 +1166,7 @@ const styles = StyleSheet.create({
|
|
|
1168
1166
|
headerTitle: {
|
|
1169
1167
|
fontSize: 20,
|
|
1170
1168
|
fontWeight: '600',
|
|
1171
|
-
fontFamily: fontFamilies.
|
|
1169
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
1172
1170
|
},
|
|
1173
1171
|
headerTitleContainer: {
|
|
1174
1172
|
flex: 1,
|
|
@@ -1191,7 +1189,7 @@ const styles = StyleSheet.create({
|
|
|
1191
1189
|
sectionTitle: {
|
|
1192
1190
|
fontSize: 24,
|
|
1193
1191
|
fontWeight: 'bold',
|
|
1194
|
-
fontFamily: fontFamilies.
|
|
1192
|
+
fontFamily: fontFamilies.interBold,
|
|
1195
1193
|
marginBottom: 8,
|
|
1196
1194
|
},
|
|
1197
1195
|
sectionSubtitle: {
|
|
@@ -96,7 +96,9 @@ const PrivacySettingsScreen: React.FC<BaseScreenProps> = ({
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
} catch (error) {
|
|
99
|
-
|
|
99
|
+
if (__DEV__) {
|
|
100
|
+
console.error('Failed to load privacy settings:', error);
|
|
101
|
+
}
|
|
100
102
|
toast.error(t('privacySettings.loadError') || 'Failed to load privacy settings');
|
|
101
103
|
} finally {
|
|
102
104
|
setIsLoading(false);
|
|
@@ -119,7 +121,9 @@ const PrivacySettingsScreen: React.FC<BaseScreenProps> = ({
|
|
|
119
121
|
setBlockedUsers(blocked);
|
|
120
122
|
setRestrictedUsers(restricted);
|
|
121
123
|
} catch (error) {
|
|
122
|
-
|
|
124
|
+
if (__DEV__) {
|
|
125
|
+
console.error('Failed to load blocked/restricted users:', error);
|
|
126
|
+
}
|
|
123
127
|
} finally {
|
|
124
128
|
setIsLoadingUsers(false);
|
|
125
129
|
}
|
|
@@ -138,7 +142,9 @@ const PrivacySettingsScreen: React.FC<BaseScreenProps> = ({
|
|
|
138
142
|
}));
|
|
139
143
|
toast.success(t('privacySettings.userUnblocked') || 'User unblocked');
|
|
140
144
|
} catch (error) {
|
|
141
|
-
|
|
145
|
+
if (__DEV__) {
|
|
146
|
+
console.error('Failed to unblock user:', error);
|
|
147
|
+
}
|
|
142
148
|
toast.error(t('privacySettings.unblockError') || 'Failed to unblock user');
|
|
143
149
|
}
|
|
144
150
|
}, [oxyServices, t]);
|
|
@@ -153,7 +159,9 @@ const PrivacySettingsScreen: React.FC<BaseScreenProps> = ({
|
|
|
153
159
|
}));
|
|
154
160
|
toast.success(t('privacySettings.userUnrestricted') || 'User unrestricted');
|
|
155
161
|
} catch (error) {
|
|
156
|
-
|
|
162
|
+
if (__DEV__) {
|
|
163
|
+
console.error('Failed to unrestrict user:', error);
|
|
164
|
+
}
|
|
157
165
|
toast.error(t('privacySettings.unrestrictError') || 'Failed to unrestrict user');
|
|
158
166
|
}
|
|
159
167
|
}, [oxyServices, t]);
|
|
@@ -64,7 +64,9 @@ const SearchSettingsScreen: React.FC<BaseScreenProps> = ({
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
} catch (error) {
|
|
67
|
-
|
|
67
|
+
if (__DEV__) {
|
|
68
|
+
console.error('Failed to load search settings:', error);
|
|
69
|
+
}
|
|
68
70
|
} finally {
|
|
69
71
|
setIsLoading(false);
|
|
70
72
|
}
|
|
@@ -70,7 +70,9 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
70
70
|
await refreshSessions();
|
|
71
71
|
setLastRefreshed(new Date());
|
|
72
72
|
} catch (error) {
|
|
73
|
-
|
|
73
|
+
if (__DEV__) {
|
|
74
|
+
console.error('Failed to load sessions:', error);
|
|
75
|
+
}
|
|
74
76
|
if (Platform.OS === 'web') {
|
|
75
77
|
toast.error('Failed to load sessions. Please try again.');
|
|
76
78
|
} else {
|
|
@@ -95,7 +97,9 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
95
97
|
await refreshSessions();
|
|
96
98
|
toast.success('Session logged out successfully');
|
|
97
99
|
} catch (error) {
|
|
98
|
-
|
|
100
|
+
if (__DEV__) {
|
|
101
|
+
console.error('Logout session failed:', error);
|
|
102
|
+
}
|
|
99
103
|
toast.error('Failed to logout session. Please try again.');
|
|
100
104
|
} finally {
|
|
101
105
|
setActionLoading(null);
|
|
@@ -128,7 +132,9 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
128
132
|
await refreshSessions();
|
|
129
133
|
toast.success('Other sessions logged out successfully');
|
|
130
134
|
} catch (error) {
|
|
131
|
-
|
|
135
|
+
if (__DEV__) {
|
|
136
|
+
console.error('Logout other sessions failed:', error);
|
|
137
|
+
}
|
|
132
138
|
toast.error('Failed to logout other sessions. Please try again.');
|
|
133
139
|
} finally {
|
|
134
140
|
setActionLoading(null);
|
|
@@ -146,7 +152,9 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
146
152
|
setActionLoading('all');
|
|
147
153
|
await logoutAll();
|
|
148
154
|
} catch (error) {
|
|
149
|
-
|
|
155
|
+
if (__DEV__) {
|
|
156
|
+
console.error('Logout all sessions failed:', error);
|
|
157
|
+
}
|
|
150
158
|
toast.error('Failed to logout all sessions. Please try again.');
|
|
151
159
|
} finally {
|
|
152
160
|
setActionLoading(null);
|
|
@@ -181,7 +189,9 @@ const SessionManagementScreen: React.FC<BaseScreenProps> = ({
|
|
|
181
189
|
await switchSession(sessionId);
|
|
182
190
|
toast.success('Switched session');
|
|
183
191
|
} catch (e) {
|
|
184
|
-
|
|
192
|
+
if (__DEV__) {
|
|
193
|
+
console.error('Switch session failed', e);
|
|
194
|
+
}
|
|
185
195
|
toast.error('Failed to switch session');
|
|
186
196
|
} finally {
|
|
187
197
|
setSwitchLoading(null);
|
|
@@ -7,6 +7,7 @@ import { Ionicons } from '@expo/vector-icons';
|
|
|
7
7
|
import { toast } from '../../lib/sonner';
|
|
8
8
|
import { useAuthStore } from '../stores/authStore';
|
|
9
9
|
import { useThemeColors } from '../styles';
|
|
10
|
+
import { fontFamilies } from '../styles/fonts';
|
|
10
11
|
import { normalizeTheme } from '../utils/themeUtils';
|
|
11
12
|
import GroupedPillButtons from '../components/internal/GroupedPillButtons';
|
|
12
13
|
import { useI18n } from '../hooks/useI18n';
|
|
@@ -275,7 +276,7 @@ const createStyles = (theme: string) => {
|
|
|
275
276
|
},
|
|
276
277
|
title: {
|
|
277
278
|
fontSize: 42,
|
|
278
|
-
fontFamily:
|
|
279
|
+
fontFamily: fontFamilies.interBold,
|
|
279
280
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
280
281
|
letterSpacing: -1,
|
|
281
282
|
textAlign: 'left',
|
|
@@ -53,21 +53,19 @@ const KarmaAboutScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
|
|
|
53
53
|
const styles = StyleSheet.create({
|
|
54
54
|
container: { flex: 1 },
|
|
55
55
|
title: {
|
|
56
|
-
fontFamily:
|
|
57
|
-
? 'Phudu' // Use CSS font name directly for web
|
|
58
|
-
: 'Phudu-Bold', // Use exact font name as registered with Font.loadAsync
|
|
56
|
+
fontFamily: fontFamilies.interBold,
|
|
59
57
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined, // Only apply fontWeight on web
|
|
60
58
|
fontSize: 54,
|
|
61
59
|
margin: 24,
|
|
62
60
|
marginBottom: 24,
|
|
63
61
|
},
|
|
64
62
|
contentContainer: { padding: 24, paddingTop: 20 },
|
|
65
|
-
section: {
|
|
66
|
-
fontSize: 18,
|
|
63
|
+
section: {
|
|
64
|
+
fontSize: 18,
|
|
67
65
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
68
|
-
fontFamily: fontFamilies.
|
|
69
|
-
marginTop: 24,
|
|
70
|
-
marginBottom: 8
|
|
66
|
+
fontFamily: fontFamilies.interBold,
|
|
67
|
+
marginTop: 24,
|
|
68
|
+
marginBottom: 8
|
|
71
69
|
},
|
|
72
70
|
paragraph: { fontSize: 16, marginBottom: 12 },
|
|
73
71
|
});
|
|
@@ -179,13 +179,13 @@ const styles = StyleSheet.create({
|
|
|
179
179
|
karmaLabel: {
|
|
180
180
|
fontSize: 16,
|
|
181
181
|
marginBottom: 18,
|
|
182
|
-
fontFamily: fontFamilies.
|
|
182
|
+
fontFamily: fontFamilies.inter,
|
|
183
183
|
},
|
|
184
184
|
karmaAmount: {
|
|
185
185
|
fontSize: 48,
|
|
186
186
|
fontWeight: 'bold',
|
|
187
187
|
marginBottom: 4,
|
|
188
|
-
fontFamily: fontFamilies.
|
|
188
|
+
fontFamily: fontFamilies.inter,
|
|
189
189
|
},
|
|
190
190
|
actionContainer: {
|
|
191
191
|
marginBottom: 18,
|
|
@@ -224,7 +224,7 @@ const styles = StyleSheet.create({
|
|
|
224
224
|
sectionTitle: {
|
|
225
225
|
fontSize: 18,
|
|
226
226
|
fontWeight: Platform.OS === 'web' ? '600' : undefined,
|
|
227
|
-
fontFamily: fontFamilies.
|
|
227
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
228
228
|
marginTop: 8,
|
|
229
229
|
alignSelf: 'flex-start',
|
|
230
230
|
marginLeft: 24,
|
|
@@ -458,7 +458,7 @@ const styles = StyleSheet.create({
|
|
|
458
458
|
currentKarma: {
|
|
459
459
|
fontSize: 36,
|
|
460
460
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
461
|
-
fontFamily: fontFamilies.
|
|
461
|
+
fontFamily: fontFamilies.interBold,
|
|
462
462
|
marginBottom: 4,
|
|
463
463
|
},
|
|
464
464
|
achievementStats: {
|
|
@@ -467,7 +467,7 @@ const styles = StyleSheet.create({
|
|
|
467
467
|
achievementCount: {
|
|
468
468
|
fontSize: 36,
|
|
469
469
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
470
|
-
fontFamily: fontFamilies.
|
|
470
|
+
fontFamily: fontFamilies.interBold,
|
|
471
471
|
marginBottom: 4,
|
|
472
472
|
},
|
|
473
473
|
achievementCountLabel: {
|
|
@@ -496,7 +496,7 @@ const styles = StyleSheet.create({
|
|
|
496
496
|
sectionTitle: {
|
|
497
497
|
fontSize: 20,
|
|
498
498
|
fontWeight: Platform.OS === 'web' ? '600' : undefined,
|
|
499
|
-
fontFamily: fontFamilies.
|
|
499
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
500
500
|
marginTop: 8,
|
|
501
501
|
},
|
|
502
502
|
achievementsGrid: {
|
|
@@ -32,7 +32,7 @@ export const createAuthStyles = (colors: AuthThemeColors, theme: string) => Styl
|
|
|
32
32
|
marginBottom: 24,
|
|
33
33
|
},
|
|
34
34
|
modernTitle: {
|
|
35
|
-
fontFamily:
|
|
35
|
+
fontFamily: fontFamilies.interBold,
|
|
36
36
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
37
37
|
fontSize: 62,
|
|
38
38
|
lineHeight: 74.4, // 62 * 1.2
|
|
@@ -47,7 +47,7 @@ export const createAuthStyles = (colors: AuthThemeColors, theme: string) => Styl
|
|
|
47
47
|
opacity: 0.8,
|
|
48
48
|
},
|
|
49
49
|
welcomeTitle: {
|
|
50
|
-
fontFamily:
|
|
50
|
+
fontFamily: fontFamilies.interBold,
|
|
51
51
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
52
52
|
fontSize: 42,
|
|
53
53
|
lineHeight: 50.4, // 42 * 1.2
|
|
@@ -56,7 +56,7 @@ export const createAuthStyles = (colors: AuthThemeColors, theme: string) => Styl
|
|
|
56
56
|
letterSpacing: -1,
|
|
57
57
|
},
|
|
58
58
|
stepTitle: {
|
|
59
|
-
fontFamily:
|
|
59
|
+
fontFamily: fontFamilies.interBold,
|
|
60
60
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
61
61
|
fontSize: 42,
|
|
62
62
|
lineHeight: 50.4, // 42 * 1.2
|
|
@@ -257,7 +257,7 @@ export const createAuthStyles = (colors: AuthThemeColors, theme: string) => Styl
|
|
|
257
257
|
borderColor: '#FFFFFF',
|
|
258
258
|
},
|
|
259
259
|
modernUserDisplayName: {
|
|
260
|
-
fontFamily:
|
|
260
|
+
fontFamily: fontFamilies.interBold,
|
|
261
261
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
262
262
|
fontSize: 42,
|
|
263
263
|
marginBottom: 4,
|
package/src/ui/styles/fonts.ts
CHANGED
|
@@ -2,51 +2,51 @@ import { Platform, type TextStyle } from 'react-native';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Font family names for use across the app
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
* For web platforms, we use the CSS font name with weights
|
|
7
7
|
* For native platforms, we use the specific static font file names
|
|
8
8
|
*/
|
|
9
9
|
export const fontFamilies = {
|
|
10
10
|
// Regular weight (400)
|
|
11
|
-
|
|
12
|
-
web: '
|
|
13
|
-
default: '
|
|
11
|
+
inter: Platform.select({
|
|
12
|
+
web: 'Inter', // Web projects will use standard CSS font name
|
|
13
|
+
default: 'Inter-Regular' // Native projects use the specific weight font
|
|
14
14
|
}),
|
|
15
15
|
|
|
16
16
|
// Light weight (300)
|
|
17
|
-
|
|
18
|
-
web: '
|
|
19
|
-
default: '
|
|
17
|
+
interLight: Platform.select({
|
|
18
|
+
web: 'Inter', // Web uses CSS weight
|
|
19
|
+
default: 'Inter-Light' // Native uses specific font
|
|
20
20
|
}),
|
|
21
21
|
|
|
22
22
|
// Medium weight (500)
|
|
23
|
-
|
|
24
|
-
web: '
|
|
25
|
-
default: '
|
|
23
|
+
interMedium: Platform.select({
|
|
24
|
+
web: 'Inter', // Web uses CSS weight
|
|
25
|
+
default: 'Inter-Medium' // Native uses specific font
|
|
26
26
|
}),
|
|
27
27
|
|
|
28
28
|
// SemiBold weight (600)
|
|
29
|
-
|
|
30
|
-
web: '
|
|
31
|
-
default: '
|
|
29
|
+
interSemiBold: Platform.select({
|
|
30
|
+
web: 'Inter', // Web uses CSS weight
|
|
31
|
+
default: 'Inter-SemiBold' // Native uses specific font
|
|
32
32
|
}),
|
|
33
33
|
|
|
34
34
|
// Bold weight (700)
|
|
35
|
-
|
|
36
|
-
web: '
|
|
37
|
-
default: '
|
|
35
|
+
interBold: Platform.select({
|
|
36
|
+
web: 'Inter', // Web uses CSS weight
|
|
37
|
+
default: 'Inter-Bold' // Native uses specific font
|
|
38
38
|
}),
|
|
39
39
|
|
|
40
40
|
// ExtraBold weight (800)
|
|
41
|
-
|
|
42
|
-
web: '
|
|
43
|
-
default: '
|
|
41
|
+
interExtraBold: Platform.select({
|
|
42
|
+
web: 'Inter', // Web uses CSS weight
|
|
43
|
+
default: 'Inter-ExtraBold' // Native uses specific font
|
|
44
44
|
}),
|
|
45
45
|
|
|
46
46
|
// Black weight (900)
|
|
47
|
-
|
|
48
|
-
web: '
|
|
49
|
-
default: '
|
|
47
|
+
interBlack: Platform.select({
|
|
48
|
+
web: 'Inter', // Web uses CSS weight
|
|
49
|
+
default: 'Inter-Black' // Native uses specific font
|
|
50
50
|
}),
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -55,22 +55,22 @@ export const fontFamilies = {
|
|
|
55
55
|
*/
|
|
56
56
|
export const fontStyles: Record<string, TextStyle> = {
|
|
57
57
|
titleLarge: {
|
|
58
|
-
fontFamily:
|
|
58
|
+
fontFamily: fontFamilies.interBold,
|
|
59
59
|
fontSize: 54,
|
|
60
60
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined, // Only apply fontWeight on web
|
|
61
61
|
},
|
|
62
62
|
titleMedium: {
|
|
63
|
-
fontFamily:
|
|
63
|
+
fontFamily: fontFamilies.interBold,
|
|
64
64
|
fontSize: 24,
|
|
65
65
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined, // Only apply fontWeight on web
|
|
66
66
|
},
|
|
67
67
|
titleSmall: {
|
|
68
|
-
fontFamily:
|
|
68
|
+
fontFamily: fontFamilies.interBold,
|
|
69
69
|
fontSize: 20,
|
|
70
70
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined, // Only apply fontWeight on web
|
|
71
71
|
},
|
|
72
72
|
buttonText: {
|
|
73
|
-
fontFamily:
|
|
73
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
74
74
|
fontSize: 16,
|
|
75
75
|
fontWeight: Platform.OS === 'web' ? '600' : undefined, // Only apply fontWeight on web
|
|
76
76
|
},
|
package/src/ui/styles/theme.ts
CHANGED
|
@@ -57,9 +57,7 @@ const createTheme = (isDark: boolean): Theme => {
|
|
|
57
57
|
colors,
|
|
58
58
|
fonts: {
|
|
59
59
|
title: {
|
|
60
|
-
fontFamily:
|
|
61
|
-
? 'Phudu'
|
|
62
|
-
: 'Phudu-Bold',
|
|
60
|
+
fontFamily: fontFamilies.interBold,
|
|
63
61
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
64
62
|
fontSize: 34,
|
|
65
63
|
},
|
|
@@ -68,7 +66,7 @@ const createTheme = (isDark: boolean): Theme => {
|
|
|
68
66
|
lineHeight: 24,
|
|
69
67
|
},
|
|
70
68
|
button: {
|
|
71
|
-
fontFamily: fontFamilies.
|
|
69
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
72
70
|
fontSize: 16,
|
|
73
71
|
fontWeight: '600',
|
|
74
72
|
color: '#FFFFFF',
|
|
@@ -121,7 +119,7 @@ export const createCommonStyles = (theme: 'light' | 'dark') => {
|
|
|
121
119
|
marginTop: 24,
|
|
122
120
|
},
|
|
123
121
|
buttonText: {
|
|
124
|
-
fontFamily: fontFamilies.
|
|
122
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
125
123
|
fontSize: 16,
|
|
126
124
|
fontWeight: '600',
|
|
127
125
|
color: '#FFFFFF',
|