@oxyhq/services 5.11.9 → 5.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/ui/components/AnimationExample.js +213 -0
- package/lib/commonjs/ui/components/AnimationExample.js.map +1 -0
- package/lib/commonjs/ui/components/FollowButton.js +58 -47
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +2 -1
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +3 -0
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +26 -12
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +69 -33
- 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/StepBasedScreen.README.md +337 -0
- package/lib/commonjs/ui/components/StepBasedScreen.js +361 -0
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js +3 -3
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +0 -7
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
- package/lib/commonjs/ui/components/internal/TextField.js +8 -4
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +161 -0
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +103 -44
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.types.js +2 -0
- package/lib/commonjs/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js +10 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +26 -14
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +3 -3
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +64 -15
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +4 -4
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +72 -75
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +286 -126
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +322 -0
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +56 -56
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js +87 -219
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +176 -174
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +138 -244
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +143 -744
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +386 -0
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +25 -15
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +16 -9
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js +110 -0
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js +138 -0
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js +141 -0
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js +165 -0
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js +150 -0
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js +171 -0
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js +163 -0
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js +170 -0
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js +72 -0
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js.map +1 -0
- package/lib/commonjs/ui/styles/authStyles.js +1 -1
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/components/AnimationExample.js +209 -0
- package/lib/module/ui/components/AnimationExample.js.map +1 -0
- package/lib/module/ui/components/FollowButton.js +58 -47
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +2 -1
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +3 -0
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/Header.js +26 -12
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +70 -34
- 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.map +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.README.md +337 -0
- package/lib/module/ui/components/StepBasedScreen.js +356 -0
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -1
- package/lib/module/ui/components/icon/OxyIcon.js +3 -3
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/module/ui/components/index.js +0 -1
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +1 -1
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/components/internal/TextField.js +8 -4
- package/lib/module/ui/components/internal/TextField.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +156 -0
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +103 -45
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.types.js +2 -0
- package/lib/module/ui/hooks/useFollow.types.js.map +1 -0
- package/lib/module/ui/navigation/OxyRouter.js +10 -0
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +12 -1
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +3 -3
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +64 -15
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +4 -4
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +72 -75
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +285 -125
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +319 -0
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +56 -56
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/RecoverAccountScreen.js +91 -222
- package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +177 -175
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +140 -246
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/SignUpScreen.js +145 -745
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +382 -0
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -0
- package/lib/module/ui/screens/internal/SignInPasswordStep.js +23 -14
- package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +15 -9
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverRequestStep.js +105 -0
- package/lib/module/ui/screens/steps/RecoverRequestStep.js.map +1 -0
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js +133 -0
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js.map +1 -0
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js +136 -0
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignInPasswordStep.js +160 -0
- package/lib/module/ui/screens/steps/SignInPasswordStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignInUsernameStep.js +145 -0
- package/lib/module/ui/screens/steps/SignInUsernameStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js +166 -0
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js +158 -0
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js +165 -0
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js +67 -0
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js.map +1 -0
- package/lib/module/ui/styles/authStyles.js +1 -1
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/typescript/models/interfaces.d.ts +5 -8
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/models/session.d.ts +1 -4
- package/lib/typescript/models/session.d.ts.map +1 -1
- package/lib/typescript/ui/components/AnimationExample.d.ts +4 -0
- package/lib/typescript/ui/components/AnimationExample.d.ts.map +1 -0
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/Header.d.ts +9 -0
- package/lib/typescript/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyPayButton.d.ts +2 -2
- package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts +1 -3
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/ui/components/Section.d.ts +2 -1
- package/lib/typescript/ui/components/Section.d.ts.map +1 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +2 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -1
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +24 -0
- package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +2 -1
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +1 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -1
- package/lib/typescript/ui/components/index.d.ts +0 -1
- package/lib/typescript/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts +9 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
- package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts +27 -0
- package/lib/typescript/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +8 -3
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useFollow.types.d.ts +33 -0
- package/lib/typescript/ui/hooks/useFollow.types.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/types.d.ts +5 -0
- 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/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +18 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts +7 -0
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +2 -9
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts +13 -0
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +5 -5
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +4 -4
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts +21 -0
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts +18 -0
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts +24 -0
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts +27 -0
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts +27 -0
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts +25 -0
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts +26 -0
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts +16 -0
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts +13 -0
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts.map +1 -0
- package/lib/typescript/ui/styles/authStyles.d.ts +1 -1
- package/package.json +10 -3
- package/src/models/interfaces.ts +7 -8
- package/src/models/session.ts +1 -4
- package/src/ui/components/AnimationExample.tsx +195 -0
- package/src/ui/components/FollowButton.tsx +65 -45
- package/src/ui/components/GroupedItem.tsx +1 -0
- package/src/ui/components/GroupedSection.tsx +1 -1
- package/src/ui/components/Header.tsx +37 -13
- package/src/ui/components/OxyPayButton.tsx +2 -2
- package/src/ui/components/OxyProvider.tsx +67 -33
- package/src/ui/components/ProfileCard.tsx +6 -8
- package/src/ui/components/Section.tsx +7 -7
- package/src/ui/components/SectionTitle.tsx +2 -2
- package/src/ui/components/StepBasedScreen.README.md +337 -0
- package/src/ui/components/StepBasedScreen.tsx +417 -0
- package/src/ui/components/icon/FAIRWalletIcon.tsx +2 -2
- package/src/ui/components/icon/OxyIcon.tsx +10 -11
- package/src/ui/components/index.ts +0 -1
- package/src/ui/components/internal/PinInput.tsx +13 -4
- package/src/ui/components/internal/TextField.tsx +12 -6
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +158 -0
- package/src/ui/context/OxyContext.tsx +90 -59
- package/src/ui/hooks/useFollow.types.ts +33 -0
- package/src/ui/navigation/OxyRouter.tsx +10 -0
- package/src/ui/navigation/types.ts +6 -0
- package/src/ui/screens/AccountCenterScreen.tsx +13 -7
- package/src/ui/screens/AccountOverviewScreen.tsx +3 -3
- package/src/ui/screens/AccountSettingsScreen.tsx +65 -13
- package/src/ui/screens/AccountSwitcherScreen.tsx +4 -4
- package/src/ui/screens/FeedbackScreen.tsx +57 -80
- package/src/ui/screens/FileManagementScreen.tsx +278 -175
- package/src/ui/screens/LanguageSelectorScreen.tsx +322 -0
- package/src/ui/screens/PaymentGatewayScreen.tsx +2 -2
- package/src/ui/screens/ProfileScreen.tsx +60 -55
- package/src/ui/screens/RecoverAccountScreen.tsx +98 -211
- package/src/ui/screens/SessionManagementScreen.tsx +148 -151
- package/src/ui/screens/SignInScreen.tsx +148 -290
- package/src/ui/screens/SignUpScreen.tsx +147 -751
- package/src/ui/screens/WelcomeNewUserScreen.tsx +272 -0
- package/src/ui/screens/internal/SignInPasswordStep.tsx +28 -13
- package/src/ui/screens/internal/SignInUsernameStep.tsx +21 -11
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +1 -1
- package/src/ui/screens/steps/RecoverRequestStep.tsx +130 -0
- package/src/ui/screens/steps/RecoverSuccessStep.tsx +131 -0
- package/src/ui/screens/steps/RecoverVerifyStep.tsx +153 -0
- package/src/ui/screens/steps/SignInPasswordStep.tsx +172 -0
- package/src/ui/screens/steps/SignInUsernameStep.tsx +176 -0
- package/src/ui/screens/steps/SignUpIdentityStep.tsx +204 -0
- package/src/ui/screens/steps/SignUpSecurityStep.tsx +191 -0
- package/src/ui/screens/steps/SignUpSummaryStep.tsx +130 -0
- package/src/ui/screens/steps/SignUpWelcomeStep.tsx +65 -0
- package/src/ui/styles/authStyles.ts +1 -1
|
@@ -5,242 +5,110 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
10
|
-
var _TextField = _interopRequireDefault(require("../components/internal/TextField"));
|
|
11
|
-
var _GroupedPillButtons = _interopRequireDefault(require("../components/internal/GroupedPillButtons"));
|
|
12
|
-
var _HighFive = _interopRequireDefault(require("../../assets/illustrations/HighFive"));
|
|
13
8
|
var _styles = require("../styles");
|
|
14
|
-
var
|
|
9
|
+
var _StepBasedScreen = _interopRequireDefault(require("../components/StepBasedScreen"));
|
|
10
|
+
var _RecoverRequestStep = _interopRequireDefault(require("./steps/RecoverRequestStep"));
|
|
11
|
+
var _RecoverVerifyStep = _interopRequireDefault(require("./steps/RecoverVerifyStep"));
|
|
12
|
+
var _RecoverSuccessStep = _interopRequireDefault(require("./steps/RecoverSuccessStep"));
|
|
15
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
// Constants
|
|
17
16
|
const PIN_LENGTH = 6;
|
|
17
|
+
|
|
18
|
+
// Main component
|
|
18
19
|
const RecoverAccountScreen = ({
|
|
19
20
|
navigate,
|
|
20
21
|
goBack,
|
|
21
22
|
theme,
|
|
22
|
-
|
|
23
|
-
returnStep,
|
|
24
|
-
returnData
|
|
23
|
+
oxyServices
|
|
25
24
|
}) => {
|
|
25
|
+
const colors = (0, _styles.useThemeColors)(theme);
|
|
26
|
+
|
|
27
|
+
// Form state
|
|
26
28
|
const [identifier, setIdentifier] = (0, _react.useState)('');
|
|
29
|
+
const [verificationCode, setVerificationCode] = (0, _react.useState)('');
|
|
27
30
|
const [isLoading, setIsLoading] = (0, _react.useState)(false);
|
|
28
31
|
const [errorMessage, setErrorMessage] = (0, _react.useState)('');
|
|
29
32
|
const [successMessage, setSuccessMessage] = (0, _react.useState)('');
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
|
|
34
|
+
// Handle back navigation
|
|
35
|
+
const handleBack = (0, _react.useCallback)(() => {
|
|
36
|
+
navigate('SignIn');
|
|
37
|
+
}, [navigate]);
|
|
38
|
+
|
|
39
|
+
// Step configurations
|
|
40
|
+
const steps = [{
|
|
41
|
+
id: 'request',
|
|
42
|
+
component: _RecoverRequestStep.default,
|
|
43
|
+
canProceed: () => identifier.trim().length >= 3,
|
|
44
|
+
onEnter: () => {
|
|
45
|
+
// Reset messages when entering request step
|
|
46
|
+
setErrorMessage('');
|
|
47
|
+
setSuccessMessage('');
|
|
42
48
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
}, {
|
|
50
|
+
id: 'verify',
|
|
51
|
+
component: _RecoverVerifyStep.default,
|
|
52
|
+
canProceed: () => verificationCode.length === PIN_LENGTH,
|
|
53
|
+
onEnter: () => {
|
|
54
|
+
// Simulate sending verification code
|
|
55
|
+
setIsLoading(true);
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
setIsLoading(false);
|
|
58
|
+
setSuccessMessage('A 6-digit code has been sent to your email or phone.');
|
|
59
|
+
}, 1000);
|
|
51
60
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
const handleVerifyCode = async () => {
|
|
60
|
-
setErrorMessage('');
|
|
61
|
-
setSuccessMessage('');
|
|
62
|
-
if (code.length !== PIN_LENGTH) {
|
|
63
|
-
setErrorMessage('Please enter the 6-digit code.');
|
|
64
|
-
return;
|
|
61
|
+
}, {
|
|
62
|
+
id: 'success',
|
|
63
|
+
component: _RecoverSuccessStep.default,
|
|
64
|
+
canProceed: () => true,
|
|
65
|
+
onEnter: () => {
|
|
66
|
+
setSuccessMessage('Your account has been verified! You can now reset your password.');
|
|
65
67
|
}
|
|
66
|
-
|
|
67
|
-
setTimeout(() => {
|
|
68
|
-
setIsLoading(false);
|
|
69
|
-
if (code === '123456') {
|
|
70
|
-
// Simulate correct code
|
|
71
|
-
setStep('done');
|
|
72
|
-
setSuccessMessage('Your account has been verified! You can now reset your password.');
|
|
73
|
-
} else {
|
|
74
|
-
setErrorMessage('Invalid code. Please try again.');
|
|
75
|
-
}
|
|
76
|
-
}, 1200);
|
|
77
|
-
};
|
|
68
|
+
}];
|
|
78
69
|
|
|
79
|
-
//
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
122
|
-
contentContainerStyle: styles.scrollContent,
|
|
123
|
-
showsVerticalScrollIndicator: false,
|
|
124
|
-
keyboardShouldPersistTaps: "handled",
|
|
125
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
126
|
-
style: [styles.stepContainer, {
|
|
127
|
-
opacity: fadeAnim,
|
|
128
|
-
transform: [{
|
|
129
|
-
translateX: slideAnim
|
|
130
|
-
}]
|
|
131
|
-
}],
|
|
132
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HighFive.default, {
|
|
133
|
-
width: 100,
|
|
134
|
-
height: 100
|
|
135
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
136
|
-
style: styles.modernHeader,
|
|
137
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
138
|
-
style: [styles.modernTitle, {
|
|
139
|
-
color: colors.text
|
|
140
|
-
}],
|
|
141
|
-
children: "Recover Account"
|
|
142
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
143
|
-
style: [styles.modernSubtitle, {
|
|
144
|
-
color: colors.secondaryText
|
|
145
|
-
}],
|
|
146
|
-
children: "Enter your email or username to receive a 6-digit code."
|
|
147
|
-
})]
|
|
148
|
-
}), step === 'request' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
149
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
150
|
-
ref: identifierRef,
|
|
151
|
-
label: "Email or Username",
|
|
152
|
-
leading: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
153
|
-
name: "mail-outline",
|
|
154
|
-
size: 24,
|
|
155
|
-
color: colors.secondaryText
|
|
156
|
-
}),
|
|
157
|
-
value: identifier,
|
|
158
|
-
onChangeText: setIdentifier,
|
|
159
|
-
autoCapitalize: "none",
|
|
160
|
-
autoCorrect: false,
|
|
161
|
-
variant: "filled",
|
|
162
|
-
error: errorMessage || undefined,
|
|
163
|
-
editable: !isLoading,
|
|
164
|
-
autoFocus: true,
|
|
165
|
-
testID: "recover-identifier-input",
|
|
166
|
-
onSubmitEditing: handleRequestWithFocus
|
|
167
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
168
|
-
buttons: [{
|
|
169
|
-
text: 'Back',
|
|
170
|
-
onPress: handleBack,
|
|
171
|
-
icon: 'arrow-back',
|
|
172
|
-
variant: 'transparent'
|
|
173
|
-
}, {
|
|
174
|
-
text: 'Send Code',
|
|
175
|
-
onPress: handleRequest,
|
|
176
|
-
icon: 'mail-open-outline',
|
|
177
|
-
variant: 'primary',
|
|
178
|
-
loading: isLoading,
|
|
179
|
-
disabled: isLoading
|
|
180
|
-
}],
|
|
181
|
-
colors: colors
|
|
182
|
-
})]
|
|
183
|
-
}), step === 'code' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
184
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PinInput.default, {
|
|
185
|
-
value: code,
|
|
186
|
-
onChange: setCode,
|
|
187
|
-
length: PIN_LENGTH,
|
|
188
|
-
disabled: isLoading,
|
|
189
|
-
autoFocus: true,
|
|
190
|
-
colors: colors
|
|
191
|
-
}), successMessage && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
192
|
-
style: styles.belowInputMessage,
|
|
193
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
194
|
-
name: "checkmark-circle",
|
|
195
|
-
size: 16,
|
|
196
|
-
color: colors.success
|
|
197
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
198
|
-
style: [styles.belowInputText, {
|
|
199
|
-
color: colors.success
|
|
200
|
-
}],
|
|
201
|
-
children: successMessage
|
|
202
|
-
})]
|
|
203
|
-
}), errorMessage ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
204
|
-
style: [styles.successText, {
|
|
205
|
-
color: colors.error,
|
|
206
|
-
marginBottom: 12
|
|
207
|
-
}],
|
|
208
|
-
children: errorMessage
|
|
209
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
210
|
-
buttons: [{
|
|
211
|
-
text: 'Back',
|
|
212
|
-
onPress: handleBack,
|
|
213
|
-
icon: 'arrow-back',
|
|
214
|
-
variant: 'transparent'
|
|
215
|
-
}, {
|
|
216
|
-
text: 'Verify Code',
|
|
217
|
-
onPress: handleVerifyCode,
|
|
218
|
-
icon: 'checkmark-circle-outline',
|
|
219
|
-
variant: 'primary',
|
|
220
|
-
loading: isLoading,
|
|
221
|
-
disabled: isLoading
|
|
222
|
-
}],
|
|
223
|
-
colors: colors
|
|
224
|
-
})]
|
|
225
|
-
}), step === 'done' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
226
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
227
|
-
style: [styles.successText, {
|
|
228
|
-
color: colors.success,
|
|
229
|
-
marginBottom: 24
|
|
230
|
-
}],
|
|
231
|
-
children: successMessage
|
|
232
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
233
|
-
buttons: [{
|
|
234
|
-
text: 'Back',
|
|
235
|
-
onPress: handleBack,
|
|
236
|
-
icon: 'arrow-back',
|
|
237
|
-
variant: 'primary'
|
|
238
|
-
}],
|
|
239
|
-
colors: colors
|
|
240
|
-
})]
|
|
241
|
-
})]
|
|
242
|
-
})
|
|
243
|
-
})]
|
|
70
|
+
// Handle completion
|
|
71
|
+
const handleComplete = (0, _react.useCallback)(stepData => {
|
|
72
|
+
// Final step completed - could navigate to password reset
|
|
73
|
+
console.log('Account recovery completed');
|
|
74
|
+
}, []);
|
|
75
|
+
|
|
76
|
+
// Step data for the reusable component
|
|
77
|
+
const stepData = [
|
|
78
|
+
// Request step
|
|
79
|
+
{
|
|
80
|
+
identifier,
|
|
81
|
+
setIdentifier,
|
|
82
|
+
errorMessage,
|
|
83
|
+
setErrorMessage,
|
|
84
|
+
isLoading,
|
|
85
|
+
setIsLoading
|
|
86
|
+
},
|
|
87
|
+
// Verify step
|
|
88
|
+
{
|
|
89
|
+
verificationCode,
|
|
90
|
+
setVerificationCode,
|
|
91
|
+
errorMessage,
|
|
92
|
+
setErrorMessage,
|
|
93
|
+
successMessage,
|
|
94
|
+
setSuccessMessage,
|
|
95
|
+
isLoading,
|
|
96
|
+
setIsLoading
|
|
97
|
+
},
|
|
98
|
+
// Success step
|
|
99
|
+
{
|
|
100
|
+
successMessage
|
|
101
|
+
}];
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepBasedScreen.default, {
|
|
103
|
+
steps: steps,
|
|
104
|
+
stepData: stepData,
|
|
105
|
+
onComplete: handleComplete,
|
|
106
|
+
navigate: navigate,
|
|
107
|
+
goBack: handleBack,
|
|
108
|
+
theme: theme,
|
|
109
|
+
oxyServices: oxyServices,
|
|
110
|
+
showProgressIndicator: true,
|
|
111
|
+
enableAnimations: true
|
|
244
112
|
});
|
|
245
113
|
};
|
|
246
114
|
var _default = exports.default = RecoverAccountScreen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","
|
|
1
|
+
{"version":3,"names":["_react","require","_styles","_StepBasedScreen","_interopRequireDefault","_RecoverRequestStep","_RecoverVerifyStep","_RecoverSuccessStep","_jsxRuntime","e","__esModule","default","PIN_LENGTH","RecoverAccountScreen","navigate","goBack","theme","oxyServices","colors","useThemeColors","identifier","setIdentifier","useState","verificationCode","setVerificationCode","isLoading","setIsLoading","errorMessage","setErrorMessage","successMessage","setSuccessMessage","handleBack","useCallback","steps","id","component","RecoverRequestStep","canProceed","trim","length","onEnter","RecoverVerifyStep","setTimeout","RecoverSuccessStep","handleComplete","stepData","console","log","jsx","onComplete","showProgressIndicator","enableAnimations","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/screens/RecoverAccountScreen.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAC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