@oxyhq/services 5.11.12 → 5.12.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 +48 -7
- package/lib/commonjs/core/OxyServices.js +162 -12
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/i18n/index.js +40 -0
- package/lib/commonjs/i18n/index.js.map +1 -0
- package/lib/commonjs/i18n/locales/en-US.json +681 -0
- package/lib/commonjs/i18n/locales/es-ES.json +689 -0
- package/lib/commonjs/ui/components/GroupedItem.js +2 -1
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +4 -3
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +110 -103
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +5 -1
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/Section.js +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +16 -16
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +15 -3
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +10 -4
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +128 -12
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js +22 -0
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js +11 -131
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +127 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -0
- package/lib/commonjs/ui/navigation/types.js +7 -0
- package/lib/commonjs/ui/navigation/types.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +55 -47
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +69 -61
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +378 -37
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +52 -34
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +40 -36
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +105 -78
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +92 -60
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +21 -11
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js +30 -8
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +47 -26
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +31 -24
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +11 -7
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +12 -6
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +11 -7
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +15 -11
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +19 -27
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +8 -4
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +14 -10
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +7 -3
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js +19 -14
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverResetPasswordStep.js +130 -0
- package/lib/commonjs/ui/screens/steps/RecoverResetPasswordStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js +13 -13
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js +14 -20
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js +22 -8
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignInTotpStep.js +161 -0
- package/lib/commonjs/ui/screens/steps/SignInTotpStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js +12 -6
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js +10 -6
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js +10 -6
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js +34 -4
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js +9 -10
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +1 -2
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/utils/deviceManager.js +1 -1
- package/lib/commonjs/utils/deviceManager.js.map +1 -1
- package/lib/commonjs/utils/validationUtils.js +4 -2
- package/lib/commonjs/utils/validationUtils.js.map +1 -1
- package/lib/module/core/OxyServices.js +162 -12
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/i18n/index.js +35 -0
- package/lib/module/i18n/index.js.map +1 -0
- package/lib/module/i18n/locales/en-US.json +681 -0
- package/lib/module/i18n/locales/es-ES.json +689 -0
- package/lib/module/ui/components/GroupedItem.js +2 -1
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/Header.js +4 -3
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +109 -103
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +5 -1
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/Section.js +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +16 -16
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +15 -3
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +9 -4
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +128 -12
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js +18 -0
- package/lib/module/ui/hooks/useI18n.js.map +1 -0
- package/lib/module/ui/navigation/OxyRouter.js +7 -124
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +122 -0
- package/lib/module/ui/navigation/routes.js.map +1 -0
- package/lib/module/ui/navigation/types.js +19 -1
- package/lib/module/ui/navigation/types.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +55 -47
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +69 -61
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +378 -37
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +52 -34
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +40 -36
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +107 -80
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +92 -60
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +21 -11
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/RecoverAccountScreen.js +30 -8
- package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +47 -26
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +31 -24
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInPasswordStep.js +11 -7
- package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +12 -6
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +11 -7
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +15 -11
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +19 -27
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +8 -4
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +14 -10
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +7 -3
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverRequestStep.js +19 -14
- package/lib/module/ui/screens/steps/RecoverRequestStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverResetPasswordStep.js +125 -0
- package/lib/module/ui/screens/steps/RecoverResetPasswordStep.js.map +1 -0
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js +13 -13
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js +14 -20
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignInPasswordStep.js +22 -8
- package/lib/module/ui/screens/steps/SignInPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignInTotpStep.js +156 -0
- package/lib/module/ui/screens/steps/SignInTotpStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignInUsernameStep.js +12 -6
- package/lib/module/ui/screens/steps/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js +10 -6
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js +10 -6
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js +34 -4
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js.map +1 -1
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js +9 -10
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +1 -2
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/utils/deviceManager.js +1 -1
- package/lib/module/utils/deviceManager.js.map +1 -1
- package/lib/module/utils/validationUtils.js +4 -2
- package/lib/module/utils/validationUtils.js.map +1 -1
- package/lib/typescript/core/OxyServices.d.ts +57 -3
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/i18n/index.d.ts +4 -0
- package/lib/typescript/i18n/index.d.ts.map +1 -0
- package/lib/typescript/models/interfaces.d.ts +4 -0
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +2 -1
- package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts +6 -3
- package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +7 -4
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useI18n.d.ts +5 -0
- package/lib/typescript/ui/hooks/useI18n.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/routes.d.ts +9 -0
- package/lib/typescript/ui/navigation/routes.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/types.d.ts +24 -10
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +2 -1
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts +4 -1
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverResetPasswordStep.d.ts +24 -0
- package/lib/typescript/ui/screens/steps/RecoverResetPasswordStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts +2 -1
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts +3 -1
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts +1 -0
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignInTotpStep.d.ts +19 -0
- package/lib/typescript/ui/screens/steps/SignInTotpStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts +2 -1
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts +2 -1
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts +2 -1
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts +2 -1
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts +2 -1
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts.map +1 -1
- package/lib/typescript/ui/styles/authStyles.d.ts +0 -1
- package/lib/typescript/ui/styles/authStyles.d.ts.map +1 -1
- package/lib/typescript/utils/validationUtils.d.ts.map +1 -1
- package/package.json +49 -15
- package/src/core/OxyServices.ts +138 -19
- package/src/i18n/index.ts +39 -0
- package/src/i18n/locales/en-US.json +681 -0
- package/src/i18n/locales/es-ES.json +689 -0
- package/src/models/interfaces.ts +6 -1
- package/src/ui/components/GroupedItem.tsx +2 -1
- package/src/ui/components/Header.tsx +4 -3
- package/src/ui/components/OxyProvider.tsx +105 -112
- package/src/ui/components/ProfileCard.tsx +5 -1
- package/src/ui/components/Section.tsx +1 -1
- package/src/ui/components/StepBasedScreen.tsx +16 -13
- package/src/ui/components/internal/GroupedPillButtons.tsx +10 -6
- package/src/ui/components/internal/PinInput.tsx +15 -6
- package/src/ui/context/OxyContext.tsx +123 -20
- package/src/ui/hooks/useI18n.ts +12 -0
- package/src/ui/navigation/OxyRouter.tsx +15 -134
- package/src/ui/navigation/routes.ts +153 -0
- package/src/ui/navigation/types.ts +28 -10
- package/src/ui/screens/AccountCenterScreen.tsx +47 -45
- package/src/ui/screens/AccountOverviewScreen.tsx +68 -70
- package/src/ui/screens/AccountSettingsScreen.tsx +265 -41
- package/src/ui/screens/AccountSwitcherScreen.tsx +35 -33
- package/src/ui/screens/FeedbackScreen.tsx +39 -37
- package/src/ui/screens/LanguageSelectorScreen.tsx +99 -70
- package/src/ui/screens/PaymentGatewayScreen.tsx +5 -5
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +56 -54
- package/src/ui/screens/ProfileScreen.tsx +14 -8
- package/src/ui/screens/RecoverAccountScreen.tsx +29 -8
- package/src/ui/screens/SignInScreen.tsx +39 -30
- package/src/ui/screens/WelcomeNewUserScreen.tsx +31 -17
- package/src/ui/screens/internal/SignInPasswordStep.tsx +11 -8
- package/src/ui/screens/internal/SignInUsernameStep.tsx +10 -8
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +23 -11
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +21 -11
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +15 -33
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +6 -4
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +28 -10
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +5 -3
- package/src/ui/screens/steps/RecoverRequestStep.tsx +20 -17
- package/src/ui/screens/steps/RecoverResetPasswordStep.tsx +133 -0
- package/src/ui/screens/steps/RecoverSuccessStep.tsx +12 -19
- package/src/ui/screens/steps/RecoverVerifyStep.tsx +15 -24
- package/src/ui/screens/steps/SignInPasswordStep.tsx +19 -6
- package/src/ui/screens/steps/SignInTotpStep.tsx +129 -0
- package/src/ui/screens/steps/SignInUsernameStep.tsx +11 -10
- package/src/ui/screens/steps/SignUpIdentityStep.tsx +10 -11
- package/src/ui/screens/steps/SignUpSecurityStep.tsx +10 -11
- package/src/ui/screens/steps/SignUpSummaryStep.tsx +24 -9
- package/src/ui/screens/steps/SignUpWelcomeStep.tsx +8 -14
- package/src/ui/styles/authStyles.ts +0 -1
- package/src/utils/deviceManager.ts +1 -1
- package/src/utils/validationUtils.ts +5 -3
|
@@ -6,75 +6,83 @@ import { useOxy } from '../context/OxyContext';
|
|
|
6
6
|
import { useThemeColors } from '../styles';
|
|
7
7
|
import { Ionicons } from '@expo/vector-icons';
|
|
8
8
|
import { toast } from '../../lib/sonner';
|
|
9
|
-
import { Header, GroupedSection } from '../components';
|
|
9
|
+
import { Header, Section, GroupedSection } from '../components';
|
|
10
|
+
import { useI18n } from '../hooks/useI18n';
|
|
10
11
|
|
|
11
12
|
// Supported languages with their metadata
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
const SUPPORTED_LANGUAGES = [{
|
|
14
|
-
id: 'en',
|
|
15
|
+
id: 'en-US',
|
|
15
16
|
name: 'English',
|
|
16
17
|
nativeName: 'English',
|
|
17
18
|
flag: '🇺🇸',
|
|
18
19
|
icon: 'language-outline',
|
|
19
20
|
color: '#007AFF'
|
|
20
21
|
}, {
|
|
21
|
-
id: 'es',
|
|
22
|
+
id: 'es-ES',
|
|
22
23
|
name: 'Spanish',
|
|
23
24
|
nativeName: 'Español',
|
|
24
25
|
flag: '🇪🇸',
|
|
25
26
|
icon: 'language-outline',
|
|
26
27
|
color: '#FF3B30'
|
|
27
28
|
}, {
|
|
28
|
-
id: '
|
|
29
|
+
id: 'ca-ES',
|
|
30
|
+
name: 'Catalan',
|
|
31
|
+
nativeName: 'Català',
|
|
32
|
+
flag: '🇪🇸',
|
|
33
|
+
icon: 'language-outline',
|
|
34
|
+
color: '#0CA678'
|
|
35
|
+
}, {
|
|
36
|
+
id: 'fr-FR',
|
|
29
37
|
name: 'French',
|
|
30
38
|
nativeName: 'Français',
|
|
31
39
|
flag: '🇫🇷',
|
|
32
40
|
icon: 'language-outline',
|
|
33
41
|
color: '#5856D6'
|
|
34
42
|
}, {
|
|
35
|
-
id: 'de',
|
|
43
|
+
id: 'de-DE',
|
|
36
44
|
name: 'German',
|
|
37
45
|
nativeName: 'Deutsch',
|
|
38
46
|
flag: '🇩🇪',
|
|
39
47
|
icon: 'language-outline',
|
|
40
48
|
color: '#FF9500'
|
|
41
49
|
}, {
|
|
42
|
-
id: 'it',
|
|
50
|
+
id: 'it-IT',
|
|
43
51
|
name: 'Italian',
|
|
44
52
|
nativeName: 'Italiano',
|
|
45
53
|
flag: '🇮🇹',
|
|
46
54
|
icon: 'language-outline',
|
|
47
55
|
color: '#34C759'
|
|
48
56
|
}, {
|
|
49
|
-
id: 'pt',
|
|
57
|
+
id: 'pt-PT',
|
|
50
58
|
name: 'Portuguese',
|
|
51
59
|
nativeName: 'Português',
|
|
52
60
|
flag: '🇵🇹',
|
|
53
61
|
icon: 'language-outline',
|
|
54
62
|
color: '#AF52DE'
|
|
55
63
|
}, {
|
|
56
|
-
id: 'ja',
|
|
64
|
+
id: 'ja-JP',
|
|
57
65
|
name: 'Japanese',
|
|
58
66
|
nativeName: '日本語',
|
|
59
67
|
flag: '🇯🇵',
|
|
60
68
|
icon: 'language-outline',
|
|
61
69
|
color: '#FF2D92'
|
|
62
70
|
}, {
|
|
63
|
-
id: 'ko',
|
|
71
|
+
id: 'ko-KR',
|
|
64
72
|
name: 'Korean',
|
|
65
73
|
nativeName: '한국어',
|
|
66
74
|
flag: '🇰🇷',
|
|
67
75
|
icon: 'language-outline',
|
|
68
76
|
color: '#32D74B'
|
|
69
77
|
}, {
|
|
70
|
-
id: 'zh',
|
|
78
|
+
id: 'zh-CN',
|
|
71
79
|
name: 'Chinese',
|
|
72
80
|
nativeName: '中文',
|
|
73
81
|
flag: '🇨🇳',
|
|
74
82
|
icon: 'language-outline',
|
|
75
83
|
color: '#FF9F0A'
|
|
76
84
|
}, {
|
|
77
|
-
id: 'ar',
|
|
85
|
+
id: 'ar-SA',
|
|
78
86
|
name: 'Arabic',
|
|
79
87
|
nativeName: 'العربية',
|
|
80
88
|
flag: '🇸🇦',
|
|
@@ -83,14 +91,20 @@ const SUPPORTED_LANGUAGES = [{
|
|
|
83
91
|
}];
|
|
84
92
|
const LanguageSelectorScreen = ({
|
|
85
93
|
goBack,
|
|
94
|
+
onClose,
|
|
86
95
|
theme,
|
|
87
96
|
navigate
|
|
88
97
|
}) => {
|
|
89
98
|
const {
|
|
90
99
|
user,
|
|
91
100
|
currentLanguage,
|
|
92
|
-
setLanguage
|
|
101
|
+
setLanguage,
|
|
102
|
+
oxyServices,
|
|
103
|
+
isAuthenticated
|
|
93
104
|
} = useOxy();
|
|
105
|
+
const {
|
|
106
|
+
t
|
|
107
|
+
} = useI18n();
|
|
94
108
|
const colors = useThemeColors(theme);
|
|
95
109
|
const [isLoading, setIsLoading] = useState(false);
|
|
96
110
|
const handleLanguageSelect = async languageId => {
|
|
@@ -99,12 +113,26 @@ const LanguageSelectorScreen = ({
|
|
|
99
113
|
}
|
|
100
114
|
setIsLoading(true);
|
|
101
115
|
try {
|
|
102
|
-
//
|
|
116
|
+
// If signed in, persist preference to backend user settings
|
|
117
|
+
if (isAuthenticated && user?.id) {
|
|
118
|
+
try {
|
|
119
|
+
await oxyServices.updateProfile({
|
|
120
|
+
language: languageId
|
|
121
|
+
});
|
|
122
|
+
} catch (e) {
|
|
123
|
+
console.warn('Failed to update language on server, falling back to local storage', e);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Always persist locally for immediate UX and for guests
|
|
103
128
|
await setLanguage(languageId);
|
|
104
129
|
const selectedLang = SUPPORTED_LANGUAGES.find(lang => lang.id === languageId);
|
|
105
|
-
toast.success(
|
|
130
|
+
toast.success(t('language.changed', {
|
|
131
|
+
lang: selectedLang?.name || languageId
|
|
132
|
+
}));
|
|
106
133
|
setIsLoading(false);
|
|
107
|
-
|
|
134
|
+
// Close the bottom sheet if possible; otherwise, go back
|
|
135
|
+
if (onClose) onClose();else goBack();
|
|
108
136
|
} catch (error) {
|
|
109
137
|
console.error('Error saving language preference:', error);
|
|
110
138
|
toast.error('Failed to save language preference');
|
|
@@ -117,43 +145,72 @@ const LanguageSelectorScreen = ({
|
|
|
117
145
|
id: language.id,
|
|
118
146
|
title: language.name,
|
|
119
147
|
subtitle: language.nativeName,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
customContent: /*#__PURE__*/_jsx(View, {
|
|
125
|
-
style: styles.languageFlag,
|
|
148
|
+
customIcon: /*#__PURE__*/_jsx(View, {
|
|
149
|
+
style: [styles.languageFlag, {
|
|
150
|
+
backgroundColor: `${language.color}20`
|
|
151
|
+
}],
|
|
126
152
|
children: /*#__PURE__*/_jsx(Text, {
|
|
127
153
|
style: styles.flagEmoji,
|
|
128
154
|
children: language.flag
|
|
129
155
|
})
|
|
130
|
-
})
|
|
156
|
+
}),
|
|
157
|
+
iconColor: language.color,
|
|
158
|
+
selected: currentLanguage === language.id,
|
|
159
|
+
onPress: () => handleLanguageSelect(language.id),
|
|
160
|
+
dense: true
|
|
131
161
|
}));
|
|
132
162
|
return /*#__PURE__*/_jsxs(View, {
|
|
133
163
|
style: [styles.container, {
|
|
134
|
-
backgroundColor:
|
|
164
|
+
backgroundColor: '#f2f2f2'
|
|
135
165
|
}],
|
|
136
166
|
children: [/*#__PURE__*/_jsx(Header, {
|
|
137
|
-
title:
|
|
138
|
-
subtitle:
|
|
167
|
+
title: t('language.title'),
|
|
168
|
+
subtitle: t('language.subtitle'),
|
|
139
169
|
theme: theme,
|
|
140
|
-
onBack: goBack,
|
|
170
|
+
onBack: onClose || goBack,
|
|
171
|
+
variant: "minimal",
|
|
141
172
|
elevation: "subtle"
|
|
142
173
|
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
143
174
|
style: styles.content,
|
|
144
175
|
showsVerticalScrollIndicator: false,
|
|
145
|
-
children: [/*#__PURE__*/
|
|
146
|
-
|
|
176
|
+
children: [currentLanguage && /*#__PURE__*/_jsx(Section, {
|
|
177
|
+
title: t('language.current'),
|
|
178
|
+
theme: theme,
|
|
179
|
+
isFirst: true,
|
|
180
|
+
children: (() => {
|
|
181
|
+
const current = SUPPORTED_LANGUAGES.find(lang => lang.id === currentLanguage);
|
|
182
|
+
if (!current) return null;
|
|
183
|
+
return /*#__PURE__*/_jsx(GroupedSection, {
|
|
184
|
+
items: [{
|
|
185
|
+
id: `current-${current.id}`,
|
|
186
|
+
title: current.name,
|
|
187
|
+
subtitle: current.nativeName,
|
|
188
|
+
customIcon: /*#__PURE__*/_jsx(View, {
|
|
189
|
+
style: [styles.languageFlag, {
|
|
190
|
+
backgroundColor: `${current.color}20`
|
|
191
|
+
}],
|
|
192
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
193
|
+
style: styles.flagEmoji,
|
|
194
|
+
children: current.flag
|
|
195
|
+
})
|
|
196
|
+
}),
|
|
197
|
+
iconColor: current.color,
|
|
198
|
+
selected: false,
|
|
199
|
+
showChevron: false,
|
|
200
|
+
dense: true,
|
|
201
|
+
disabled: true
|
|
202
|
+
}],
|
|
203
|
+
theme: theme
|
|
204
|
+
});
|
|
205
|
+
})()
|
|
206
|
+
}), /*#__PURE__*/_jsxs(Section, {
|
|
207
|
+
title: t('language.available'),
|
|
208
|
+
theme: theme,
|
|
147
209
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
148
|
-
style: [styles.sectionTitle, {
|
|
149
|
-
color: colors.secondaryText
|
|
150
|
-
}],
|
|
151
|
-
children: "Available Languages"
|
|
152
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
153
210
|
style: [styles.sectionDescription, {
|
|
154
211
|
color: colors.secondaryText
|
|
155
212
|
}],
|
|
156
|
-
children:
|
|
213
|
+
children: t('language.subtitle')
|
|
157
214
|
}), /*#__PURE__*/_jsx(View, {
|
|
158
215
|
style: styles.languageList,
|
|
159
216
|
children: /*#__PURE__*/_jsx(GroupedSection, {
|
|
@@ -161,8 +218,8 @@ const LanguageSelectorScreen = ({
|
|
|
161
218
|
theme: theme
|
|
162
219
|
})
|
|
163
220
|
})]
|
|
164
|
-
}), /*#__PURE__*/_jsx(
|
|
165
|
-
|
|
221
|
+
}), /*#__PURE__*/_jsx(Section, {
|
|
222
|
+
theme: theme,
|
|
166
223
|
children: /*#__PURE__*/_jsxs(View, {
|
|
167
224
|
style: [styles.infoCard, {
|
|
168
225
|
backgroundColor: colors.inputBackground,
|
|
@@ -187,45 +244,6 @@ const LanguageSelectorScreen = ({
|
|
|
187
244
|
children: ["\u2022 Language changes apply immediately", '\n', "\u2022 Your preference is saved automatically", '\n', "\u2022 All text and interface elements will update", '\n', "\u2022 You can change this setting anytime"]
|
|
188
245
|
})]
|
|
189
246
|
})
|
|
190
|
-
}), currentLanguage && /*#__PURE__*/_jsxs(View, {
|
|
191
|
-
style: styles.currentSection,
|
|
192
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
193
|
-
style: [styles.currentLabel, {
|
|
194
|
-
color: colors.secondaryText
|
|
195
|
-
}],
|
|
196
|
-
children: "Current Language"
|
|
197
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
198
|
-
style: [styles.currentLanguage, {
|
|
199
|
-
backgroundColor: colors.inputBackground,
|
|
200
|
-
borderColor: colors.primary
|
|
201
|
-
}],
|
|
202
|
-
children: (() => {
|
|
203
|
-
const current = SUPPORTED_LANGUAGES.find(lang => lang.id === currentLanguage);
|
|
204
|
-
return current ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
205
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
206
|
-
style: styles.currentFlag,
|
|
207
|
-
children: current.flag
|
|
208
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
209
|
-
style: styles.currentInfo,
|
|
210
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
211
|
-
style: [styles.currentName, {
|
|
212
|
-
color: colors.text
|
|
213
|
-
}],
|
|
214
|
-
children: current.name
|
|
215
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
216
|
-
style: [styles.currentNative, {
|
|
217
|
-
color: colors.secondaryText
|
|
218
|
-
}],
|
|
219
|
-
children: current.nativeName
|
|
220
|
-
})]
|
|
221
|
-
}), /*#__PURE__*/_jsx(Ionicons, {
|
|
222
|
-
name: "checkmark-circle",
|
|
223
|
-
size: 20,
|
|
224
|
-
color: colors.primary
|
|
225
|
-
})]
|
|
226
|
-
}) : null;
|
|
227
|
-
})()
|
|
228
|
-
})]
|
|
229
247
|
})]
|
|
230
248
|
})]
|
|
231
249
|
});
|
|
@@ -255,12 +273,14 @@ const styles = StyleSheet.create({
|
|
|
255
273
|
marginTop: 8
|
|
256
274
|
},
|
|
257
275
|
languageFlag: {
|
|
276
|
+
width: 38,
|
|
277
|
+
height: 38,
|
|
278
|
+
borderRadius: 19,
|
|
258
279
|
alignItems: 'center',
|
|
259
|
-
justifyContent: 'center'
|
|
260
|
-
marginRight: 8
|
|
280
|
+
justifyContent: 'center'
|
|
261
281
|
},
|
|
262
282
|
flagEmoji: {
|
|
263
|
-
fontSize:
|
|
283
|
+
fontSize: 18
|
|
264
284
|
},
|
|
265
285
|
infoSection: {
|
|
266
286
|
marginBottom: 24
|
|
@@ -300,9 +320,16 @@ const styles = StyleSheet.create({
|
|
|
300
320
|
borderWidth: 2
|
|
301
321
|
},
|
|
302
322
|
currentFlag: {
|
|
303
|
-
|
|
323
|
+
width: 38,
|
|
324
|
+
height: 38,
|
|
325
|
+
borderRadius: 19,
|
|
326
|
+
alignItems: 'center',
|
|
327
|
+
justifyContent: 'center',
|
|
304
328
|
marginRight: 12
|
|
305
329
|
},
|
|
330
|
+
currentFlagEmoji: {
|
|
331
|
+
fontSize: 18
|
|
332
|
+
},
|
|
306
333
|
currentInfo: {
|
|
307
334
|
flex: 1
|
|
308
335
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","View","Text","StyleSheet","ScrollView","useOxy","useThemeColors","Ionicons","toast","Header","
|
|
1
|
+
{"version":3,"names":["useState","View","Text","StyleSheet","ScrollView","useOxy","useThemeColors","Ionicons","toast","Header","Section","GroupedSection","useI18n","jsx","_jsx","jsxs","_jsxs","SUPPORTED_LANGUAGES","id","name","nativeName","flag","icon","color","LanguageSelectorScreen","goBack","onClose","theme","navigate","user","currentLanguage","setLanguage","oxyServices","isAuthenticated","t","colors","isLoading","setIsLoading","handleLanguageSelect","languageId","updateProfile","language","e","console","warn","selectedLang","find","lang","success","error","languageItems","map","title","subtitle","customIcon","style","styles","languageFlag","backgroundColor","children","flagEmoji","iconColor","selected","onPress","dense","container","onBack","variant","elevation","content","showsVerticalScrollIndicator","isFirst","current","items","showChevron","disabled","sectionDescription","secondaryText","languageList","infoCard","inputBackground","borderColor","border","infoHeader","size","primary","infoTitle","text","infoText","create","flex","padding","section","marginBottom","sectionTitle","fontSize","fontWeight","lineHeight","marginTop","width","height","borderRadius","alignItems","justifyContent","infoSection","borderWidth","flexDirection","marginLeft","currentSection","currentLabel","currentFlag","marginRight","currentFlagEmoji","currentInfo","currentName","currentNative"],"sourceRo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IACZC,UAAU,EAAE,KAAK;IACjBH,YAAY,EAAE;EAClB,CAAC;EACD/D,eAAe,EAAE;IACb4E,aAAa,EAAE,KAAK;IACpBJ,UAAU,EAAE,QAAQ;IACpBX,OAAO,EAAE,EAAE;IACXU,YAAY,EAAE,EAAE;IAChBI,WAAW,EAAE;EACjB,CAAC;EACDK,WAAW,EAAE;IACTX,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBQ,WAAW,EAAE;EACjB,CAAC;EACDC,gBAAgB,EAAE;IACdjB,QAAQ,EAAE;EACd,CAAC;EACDkB,WAAW,EAAE;IACTvB,IAAI,EAAE;EACV,CAAC;EACDwB,WAAW,EAAE;IACTnB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACDmB,aAAa,EAAE;IACXpB,QAAQ,EAAE,EAAE;IACZG,SAAS,EAAE;EACf;AACJ,CAAC,CAAC;AAEF,eAAe1E,sBAAsB","ignoreList":[]}
|
|
@@ -283,7 +283,7 @@ const PaymentGatewayScreen = props => {
|
|
|
283
283
|
success: true
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
navigate('
|
|
286
|
+
navigate('AccountOverview');
|
|
287
287
|
}, [onPaymentResult, navigate]);
|
|
288
288
|
|
|
289
289
|
// Handle close/cancel: return failure result if payment is not completed
|