@oxyhq/services 5.13.12 → 5.13.16
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 +10 -0
- package/lib/commonjs/core/OxyServices.base.js +271 -0
- package/lib/commonjs/core/OxyServices.base.js.map +1 -0
- package/lib/commonjs/core/OxyServices.errors.js +26 -0
- package/lib/commonjs/core/OxyServices.errors.js.map +1 -0
- package/lib/commonjs/core/OxyServices.js +58 -2009
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.analytics.js +60 -0
- package/lib/commonjs/core/mixins/OxyServices.analytics.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.assets.js +406 -0
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.auth.js +303 -0
- package/lib/commonjs/core/mixins/OxyServices.auth.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.developer.js +115 -0
- package/lib/commonjs/core/mixins/OxyServices.developer.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.devices.js +119 -0
- package/lib/commonjs/core/mixins/OxyServices.devices.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.karma.js +117 -0
- package/lib/commonjs/core/mixins/OxyServices.karma.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.language.js +124 -0
- package/lib/commonjs/core/mixins/OxyServices.language.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.location.js +55 -0
- package/lib/commonjs/core/mixins/OxyServices.location.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.payment.js +66 -0
- package/lib/commonjs/core/mixins/OxyServices.payment.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.privacy.js +174 -0
- package/lib/commonjs/core/mixins/OxyServices.privacy.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.totp.js +53 -0
- package/lib/commonjs/core/mixins/OxyServices.totp.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.user.js +389 -0
- package/lib/commonjs/core/mixins/OxyServices.user.js.map +1 -0
- package/lib/commonjs/core/mixins/OxyServices.utility.js +161 -0
- package/lib/commonjs/core/mixins/OxyServices.utility.js.map +1 -0
- package/lib/commonjs/core/mixins/index.js +39 -0
- package/lib/commonjs/core/mixins/index.js.map +1 -0
- package/lib/commonjs/core/mixins/mixinHelpers.js +62 -0
- package/lib/commonjs/core/mixins/mixinHelpers.js.map +1 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +26 -47
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +239 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/utils/apiUtils.js +0 -14
- package/lib/commonjs/utils/apiUtils.js.map +1 -1
- package/lib/commonjs/utils/asyncUtils.js +0 -20
- package/lib/commonjs/utils/asyncUtils.js.map +1 -1
- package/lib/module/core/OxyServices.base.js +265 -0
- package/lib/module/core/OxyServices.base.js.map +1 -0
- package/lib/module/core/OxyServices.errors.js +20 -0
- package/lib/module/core/OxyServices.errors.js.map +1 -0
- package/lib/module/core/OxyServices.js +43 -2005
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.analytics.js +56 -0
- package/lib/module/core/mixins/OxyServices.analytics.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.assets.js +402 -0
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.auth.js +299 -0
- package/lib/module/core/mixins/OxyServices.auth.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.developer.js +111 -0
- package/lib/module/core/mixins/OxyServices.developer.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.devices.js +115 -0
- package/lib/module/core/mixins/OxyServices.devices.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.karma.js +113 -0
- package/lib/module/core/mixins/OxyServices.karma.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.language.js +120 -0
- package/lib/module/core/mixins/OxyServices.language.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.location.js +51 -0
- package/lib/module/core/mixins/OxyServices.location.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.payment.js +62 -0
- package/lib/module/core/mixins/OxyServices.payment.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.privacy.js +170 -0
- package/lib/module/core/mixins/OxyServices.privacy.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.totp.js +49 -0
- package/lib/module/core/mixins/OxyServices.totp.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.user.js +385 -0
- package/lib/module/core/mixins/OxyServices.user.js.map +1 -0
- package/lib/module/core/mixins/OxyServices.utility.js +156 -0
- package/lib/module/core/mixins/OxyServices.utility.js.map +1 -0
- package/lib/module/core/mixins/index.js +36 -0
- package/lib/module/core/mixins/index.js.map +1 -0
- package/lib/module/core/mixins/mixinHelpers.js +56 -0
- package/lib/module/core/mixins/mixinHelpers.js.map +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +26 -47
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/navigation/types.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +241 -3
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/utils/apiUtils.js +0 -13
- package/lib/module/utils/apiUtils.js.map +1 -1
- package/lib/module/utils/asyncUtils.js +0 -20
- package/lib/module/utils/asyncUtils.js.map +1 -1
- package/lib/typescript/core/OxyServices.base.d.ts +123 -0
- package/lib/typescript/core/OxyServices.base.d.ts.map +1 -0
- package/lib/typescript/core/OxyServices.d.ts +969 -682
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/core/OxyServices.errors.d.ts +12 -0
- package/lib/typescript/core/OxyServices.errors.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts +70 -0
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts +159 -0
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts +168 -0
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts +103 -0
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts +93 -0
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts +89 -0
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.language.d.ts +85 -0
- package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.location.d.ts +68 -0
- package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts +74 -0
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts +126 -0
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.totp.d.ts +69 -0
- package/lib/typescript/core/mixins/OxyServices.totp.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.user.d.ts +189 -0
- package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +1 -0
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts +97 -0
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +1 -0
- package/lib/typescript/core/mixins/index.d.ts +898 -0
- package/lib/typescript/core/mixins/index.d.ts.map +1 -0
- package/lib/typescript/core/mixins/mixinHelpers.d.ts +32 -0
- package/lib/typescript/core/mixins/mixinHelpers.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/models/interfaces.d.ts +36 -0
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +2 -6
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/types.d.ts +0 -1
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/utils/apiUtils.d.ts +0 -7
- package/lib/typescript/utils/apiUtils.d.ts.map +1 -1
- package/lib/typescript/utils/asyncUtils.d.ts +0 -11
- package/lib/typescript/utils/asyncUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/OxyServices.base.ts +311 -0
- package/src/core/OxyServices.errors.ts +26 -0
- package/src/core/OxyServices.ts +43 -2026
- package/src/core/mixins/OxyServices.analytics.ts +53 -0
- package/src/core/mixins/OxyServices.assets.ts +390 -0
- package/src/core/mixins/OxyServices.auth.ts +275 -0
- package/src/core/mixins/OxyServices.developer.ts +114 -0
- package/src/core/mixins/OxyServices.devices.ts +103 -0
- package/src/core/mixins/OxyServices.karma.ts +111 -0
- package/src/core/mixins/OxyServices.language.ts +127 -0
- package/src/core/mixins/OxyServices.location.ts +46 -0
- package/src/core/mixins/OxyServices.payment.ts +59 -0
- package/src/core/mixins/OxyServices.privacy.ts +182 -0
- package/src/core/mixins/OxyServices.totp.ts +36 -0
- package/src/core/mixins/OxyServices.user.ts +380 -0
- package/src/core/mixins/OxyServices.utility.ts +187 -0
- package/src/core/mixins/index.ts +58 -0
- package/src/core/mixins/mixinHelpers.ts +69 -0
- package/src/index.ts +4 -0
- package/src/models/interfaces.ts +40 -0
- package/src/ui/context/OxyContext.tsx +35 -53
- package/src/ui/navigation/types.ts +0 -1
- package/src/ui/screens/PrivacySettingsScreen.tsx +240 -2
- package/src/utils/apiUtils.ts +0 -14
- package/src/utils/asyncUtils.ts +0 -20
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +0 -192
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +0 -1
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +0 -142
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +0 -1
- package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js +0 -113
- package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js.map +0 -1
- package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js +0 -132
- package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js.map +0 -1
- package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js +0 -83
- package/lib/commonjs/ui/screens/internal/SignUpSummaryStep.js.map +0 -1
- package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js +0 -58
- package/lib/commonjs/ui/screens/internal/SignUpWelcomeStep.js.map +0 -1
- package/lib/module/ui/screens/internal/SignInPasswordStep.js +0 -186
- package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +0 -1
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +0 -136
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +0 -1
- package/lib/module/ui/screens/internal/SignUpIdentityStep.js +0 -108
- package/lib/module/ui/screens/internal/SignUpIdentityStep.js.map +0 -1
- package/lib/module/ui/screens/internal/SignUpSecurityStep.js +0 -127
- package/lib/module/ui/screens/internal/SignUpSecurityStep.js.map +0 -1
- package/lib/module/ui/screens/internal/SignUpSummaryStep.js +0 -78
- package/lib/module/ui/screens/internal/SignUpSummaryStep.js.map +0 -1
- package/lib/module/ui/screens/internal/SignUpWelcomeStep.js +0 -53
- package/lib/module/ui/screens/internal/SignUpWelcomeStep.js.map +0 -1
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +0 -28
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +0 -25
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts +0 -20
- package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts +0 -24
- package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts +0 -15
- package/lib/typescript/ui/screens/internal/SignUpSummaryStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts +0 -13
- package/lib/typescript/ui/screens/internal/SignUpWelcomeStep.d.ts.map +0 -1
- package/src/ui/screens/internal/SignInPasswordStep.tsx +0 -184
- package/src/ui/screens/internal/SignInUsernameStep.tsx +0 -145
- package/src/ui/screens/internal/SignUpIdentityStep.tsx +0 -112
- package/src/ui/screens/internal/SignUpSecurityStep.tsx +0 -132
- package/src/ui/screens/internal/SignUpSummaryStep.tsx +0 -66
- package/src/ui/screens/internal/SignUpWelcomeStep.tsx +0 -52
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _GroupedPillButtons = _interopRequireDefault(require("../../components/internal/GroupedPillButtons"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const SignUpSummaryStep = ({
|
|
12
|
-
styles,
|
|
13
|
-
fadeAnim,
|
|
14
|
-
slideAnim,
|
|
15
|
-
colors,
|
|
16
|
-
formData,
|
|
17
|
-
isLoading,
|
|
18
|
-
handleSignUp,
|
|
19
|
-
prevStep
|
|
20
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
21
|
-
style: [styles.stepContainer, {
|
|
22
|
-
opacity: fadeAnim,
|
|
23
|
-
transform: [{
|
|
24
|
-
translateX: slideAnim
|
|
25
|
-
}]
|
|
26
|
-
}],
|
|
27
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
28
|
-
style: styles.modernHeader,
|
|
29
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
30
|
-
style: [styles.stepTitle, {
|
|
31
|
-
color: colors.text
|
|
32
|
-
}],
|
|
33
|
-
children: "Ready to join"
|
|
34
|
-
})
|
|
35
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
36
|
-
style: styles.summaryContainer,
|
|
37
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
38
|
-
style: styles.summaryRow,
|
|
39
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
40
|
-
style: [styles.summaryLabel, {
|
|
41
|
-
color: colors.secondaryText
|
|
42
|
-
}],
|
|
43
|
-
children: "Username:"
|
|
44
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
45
|
-
style: [styles.summaryValue, {
|
|
46
|
-
color: colors.text
|
|
47
|
-
}],
|
|
48
|
-
children: formData.username
|
|
49
|
-
})]
|
|
50
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
51
|
-
style: styles.summaryRow,
|
|
52
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
53
|
-
style: [styles.summaryLabel, {
|
|
54
|
-
color: colors.secondaryText
|
|
55
|
-
}],
|
|
56
|
-
children: "Email:"
|
|
57
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
58
|
-
style: [styles.summaryValue, {
|
|
59
|
-
color: colors.text
|
|
60
|
-
}],
|
|
61
|
-
children: formData.email
|
|
62
|
-
})]
|
|
63
|
-
})]
|
|
64
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
65
|
-
buttons: [{
|
|
66
|
-
text: 'Back',
|
|
67
|
-
onPress: prevStep,
|
|
68
|
-
icon: 'arrow-back',
|
|
69
|
-
variant: 'transparent'
|
|
70
|
-
}, {
|
|
71
|
-
text: 'Create Account',
|
|
72
|
-
onPress: handleSignUp,
|
|
73
|
-
icon: 'checkmark',
|
|
74
|
-
variant: 'primary',
|
|
75
|
-
disabled: isLoading,
|
|
76
|
-
loading: isLoading,
|
|
77
|
-
testID: 'signup-button'
|
|
78
|
-
}],
|
|
79
|
-
colors: colors
|
|
80
|
-
})]
|
|
81
|
-
});
|
|
82
|
-
var _default = exports.default = SignUpSummaryStep;
|
|
83
|
-
//# sourceMappingURL=SignUpSummaryStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_GroupedPillButtons","_interopRequireDefault","_jsxRuntime","e","__esModule","default","SignUpSummaryStep","styles","fadeAnim","slideAnim","colors","formData","isLoading","handleSignUp","prevStep","jsxs","Animated","View","style","stepContainer","opacity","transform","translateX","children","jsx","modernHeader","Text","stepTitle","color","text","summaryContainer","summaryRow","summaryLabel","secondaryText","summaryValue","username","email","buttons","onPress","icon","variant","disabled","loading","testID","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/screens/internal/SignUpSummaryStep.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8E,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,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AA,CAAAxC,OAAA,GAEaC,iBAAiB","ignoreList":[]}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _HighFive = _interopRequireDefault(require("../../../assets/illustrations/HighFive"));
|
|
9
|
-
var _GroupedPillButtons = _interopRequireDefault(require("../../components/internal/GroupedPillButtons"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const SignUpWelcomeStep = ({
|
|
13
|
-
styles,
|
|
14
|
-
fadeAnim,
|
|
15
|
-
slideAnim,
|
|
16
|
-
colors,
|
|
17
|
-
nextStep,
|
|
18
|
-
navigate
|
|
19
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
20
|
-
style: [styles.stepContainer, {
|
|
21
|
-
opacity: fadeAnim,
|
|
22
|
-
transform: [{
|
|
23
|
-
translateX: slideAnim
|
|
24
|
-
}]
|
|
25
|
-
}],
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HighFive.default, {
|
|
27
|
-
width: 100,
|
|
28
|
-
height: 100
|
|
29
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
30
|
-
style: styles.modernHeader,
|
|
31
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
32
|
-
style: [styles.modernTitle, {
|
|
33
|
-
color: colors.text
|
|
34
|
-
}],
|
|
35
|
-
children: "Welcome to Oxy"
|
|
36
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
37
|
-
style: [styles.modernSubtitle, {
|
|
38
|
-
color: colors.secondaryText
|
|
39
|
-
}],
|
|
40
|
-
children: "We're excited to have you join us. Let's get your account set up in just a few easy steps."
|
|
41
|
-
})]
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
43
|
-
buttons: [{
|
|
44
|
-
text: 'Sign In',
|
|
45
|
-
onPress: () => navigate('SignIn'),
|
|
46
|
-
icon: 'log-in-outline',
|
|
47
|
-
variant: 'transparent'
|
|
48
|
-
}, {
|
|
49
|
-
text: 'Get Started',
|
|
50
|
-
onPress: nextStep,
|
|
51
|
-
icon: 'arrow-forward',
|
|
52
|
-
variant: 'primary'
|
|
53
|
-
}],
|
|
54
|
-
colors: colors
|
|
55
|
-
})]
|
|
56
|
-
});
|
|
57
|
-
var _default = exports.default = SignUpWelcomeStep;
|
|
58
|
-
//# sourceMappingURL=SignUpWelcomeStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_HighFive","_interopRequireDefault","_GroupedPillButtons","_jsxRuntime","e","__esModule","default","SignUpWelcomeStep","styles","fadeAnim","slideAnim","colors","nextStep","navigate","jsxs","Animated","View","style","stepContainer","opacity","transform","translateX","children","jsx","width","height","modernHeader","Text","modernTitle","color","text","modernSubtitle","secondaryText","buttons","onPress","icon","variant","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/screens/internal/SignUpWelcomeStep.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAA8E,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAW9E,MAAMG,iBAAmD,GAAGA,CAAC;EACzDC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,MAAM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AI,EAAE,eAAe;MACrBC,OAAO,EAAE;IACb,CAAC,CACH;IACFzB,MAAM,EAAEA;EAAO,CAClB,CAAC;AAAA,CACS,CAClB;AAAC,IAAA0B,QAAA,GAAAC,OAAA,CAAAhC,OAAA,GAEaC,iBAAiB","ignoreList":[]}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useRef, useCallback, useEffect } from 'react';
|
|
4
|
-
import { View, Text, TouchableOpacity, StatusBar } from 'react-native';
|
|
5
|
-
import Animated, { useAnimatedStyle } from 'react-native-reanimated';
|
|
6
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
7
|
-
import Avatar from '../../components/Avatar';
|
|
8
|
-
import { useI18n } from '../../hooks/useI18n';
|
|
9
|
-
import { useOxy } from '../../context/OxyContext';
|
|
10
|
-
import GroupedPillButtons from '../../components/internal/GroupedPillButtons';
|
|
11
|
-
import TextField from '../../components/internal/TextField';
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
const SignInPasswordStep = ({
|
|
14
|
-
styles,
|
|
15
|
-
fadeAnim,
|
|
16
|
-
slideAnim,
|
|
17
|
-
scaleAnim,
|
|
18
|
-
colors,
|
|
19
|
-
userProfile,
|
|
20
|
-
username,
|
|
21
|
-
theme,
|
|
22
|
-
logoAnim,
|
|
23
|
-
errorMessage,
|
|
24
|
-
isInputFocused,
|
|
25
|
-
password,
|
|
26
|
-
showPassword,
|
|
27
|
-
handleInputFocus,
|
|
28
|
-
handleInputBlur,
|
|
29
|
-
handlePasswordChange,
|
|
30
|
-
handleSignIn: parentHandleSignIn,
|
|
31
|
-
isLoading,
|
|
32
|
-
prevStep,
|
|
33
|
-
navigate
|
|
34
|
-
}) => {
|
|
35
|
-
const inputRef = useRef(null);
|
|
36
|
-
const {
|
|
37
|
-
t
|
|
38
|
-
} = useI18n();
|
|
39
|
-
const {
|
|
40
|
-
oxyServices
|
|
41
|
-
} = useOxy();
|
|
42
|
-
|
|
43
|
-
// Animated styles - properly memoized to prevent re-renders
|
|
44
|
-
const containerAnimatedStyle = useAnimatedStyle(() => {
|
|
45
|
-
return {
|
|
46
|
-
opacity: fadeAnim.value,
|
|
47
|
-
transform: [{
|
|
48
|
-
translateX: slideAnim.value
|
|
49
|
-
}, {
|
|
50
|
-
scale: scaleAnim.value
|
|
51
|
-
}]
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
const logoAnimatedStyle = useAnimatedStyle(() => {
|
|
55
|
-
return {
|
|
56
|
-
transform: [{
|
|
57
|
-
scale: logoAnim.value
|
|
58
|
-
}]
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// Focus password input on error or when step becomes active
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
if (errorMessage) {
|
|
65
|
-
setTimeout(() => {
|
|
66
|
-
inputRef.current?.focus();
|
|
67
|
-
}, 0);
|
|
68
|
-
}
|
|
69
|
-
}, [errorMessage]);
|
|
70
|
-
const handleSignIn = useCallback(() => {
|
|
71
|
-
if (!password || errorMessage) {
|
|
72
|
-
setTimeout(() => {
|
|
73
|
-
inputRef.current?.focus();
|
|
74
|
-
}, 0);
|
|
75
|
-
}
|
|
76
|
-
parentHandleSignIn();
|
|
77
|
-
}, [password, errorMessage, parentHandleSignIn]);
|
|
78
|
-
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
79
|
-
style: [styles.stepContainer, containerAnimatedStyle],
|
|
80
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
81
|
-
style: styles.modernUserProfileContainer,
|
|
82
|
-
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
83
|
-
style: logoAnimatedStyle,
|
|
84
|
-
children: /*#__PURE__*/_jsx(Avatar, {
|
|
85
|
-
name: userProfile?.displayName || userProfile?.name || username,
|
|
86
|
-
size: 100,
|
|
87
|
-
theme: theme,
|
|
88
|
-
backgroundColor: colors.primary + '20',
|
|
89
|
-
uri: userProfile?.avatar && oxyServices ? oxyServices.getFileDownloadUrl(userProfile.avatar, 'thumb') : undefined
|
|
90
|
-
})
|
|
91
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
92
|
-
style: [styles.modernUserDisplayName, {
|
|
93
|
-
color: colors.text
|
|
94
|
-
}],
|
|
95
|
-
children: userProfile?.displayName || userProfile?.name || username
|
|
96
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
|
97
|
-
style: [styles.modernUsernameSubtext, {
|
|
98
|
-
color: colors.secondaryText
|
|
99
|
-
}],
|
|
100
|
-
children: ["@", username]
|
|
101
|
-
})]
|
|
102
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
103
|
-
style: styles.modernInputContainer,
|
|
104
|
-
children: [/*#__PURE__*/_jsx(TextField, {
|
|
105
|
-
ref: inputRef,
|
|
106
|
-
label: t('common.labels.password'),
|
|
107
|
-
leading: /*#__PURE__*/_jsx(Ionicons, {
|
|
108
|
-
name: "lock-closed-outline",
|
|
109
|
-
size: 24,
|
|
110
|
-
color: colors.secondaryText
|
|
111
|
-
}),
|
|
112
|
-
value: password,
|
|
113
|
-
onChangeText: handlePasswordChange,
|
|
114
|
-
onFocus: handleInputFocus,
|
|
115
|
-
onBlur: handleInputBlur,
|
|
116
|
-
secureTextEntry: !showPassword,
|
|
117
|
-
autoCapitalize: "none",
|
|
118
|
-
autoCorrect: false,
|
|
119
|
-
testID: "password-input",
|
|
120
|
-
variant: "filled",
|
|
121
|
-
error: errorMessage || undefined,
|
|
122
|
-
onSubmitEditing: handleSignIn,
|
|
123
|
-
autoFocus: true
|
|
124
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
125
|
-
style: {
|
|
126
|
-
flexDirection: 'row',
|
|
127
|
-
alignItems: 'center',
|
|
128
|
-
marginBottom: 16
|
|
129
|
-
},
|
|
130
|
-
children: [/*#__PURE__*/_jsxs(Text, {
|
|
131
|
-
style: [styles.footerText, {
|
|
132
|
-
color: colors.text
|
|
133
|
-
}],
|
|
134
|
-
children: [t('signin.forgotPrompt') || 'Forgot your password?', " "]
|
|
135
|
-
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
136
|
-
onPress: () => navigate('RecoverAccount', {
|
|
137
|
-
returnTo: 'SignIn',
|
|
138
|
-
returnStep: 1,
|
|
139
|
-
returnData: {
|
|
140
|
-
username,
|
|
141
|
-
userProfile
|
|
142
|
-
}
|
|
143
|
-
}),
|
|
144
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
145
|
-
style: [styles.modernLinkText, {
|
|
146
|
-
color: colors.primary
|
|
147
|
-
}],
|
|
148
|
-
children: t('common.links.recoverAccount')
|
|
149
|
-
})
|
|
150
|
-
})]
|
|
151
|
-
})]
|
|
152
|
-
}), /*#__PURE__*/_jsx(GroupedPillButtons, {
|
|
153
|
-
buttons: [{
|
|
154
|
-
text: t('common.actions.back'),
|
|
155
|
-
onPress: prevStep,
|
|
156
|
-
icon: 'arrow-back',
|
|
157
|
-
variant: 'transparent'
|
|
158
|
-
}, {
|
|
159
|
-
text: t('common.actions.signIn'),
|
|
160
|
-
onPress: handleSignIn,
|
|
161
|
-
icon: 'log-in',
|
|
162
|
-
variant: 'primary',
|
|
163
|
-
loading: isLoading,
|
|
164
|
-
testID: 'login-button'
|
|
165
|
-
}],
|
|
166
|
-
colors: colors
|
|
167
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
168
|
-
style: styles.securityNotice,
|
|
169
|
-
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
170
|
-
name: "shield-checkmark",
|
|
171
|
-
size: 14,
|
|
172
|
-
color: colors.secondaryText
|
|
173
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
174
|
-
style: [styles.securityText, {
|
|
175
|
-
color: colors.secondaryText
|
|
176
|
-
}],
|
|
177
|
-
children: t('signin.security.dataSecure') || 'Your data is encrypted and secure'
|
|
178
|
-
})]
|
|
179
|
-
}), /*#__PURE__*/_jsx(StatusBar, {
|
|
180
|
-
barStyle: theme === 'dark' ? 'light-content' : 'dark-content',
|
|
181
|
-
backgroundColor: colors.background
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
export default SignInPasswordStep;
|
|
186
|
-
//# sourceMappingURL=SignInPasswordStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useRef","useCallback","useEffect","View","Text","TouchableOpacity","StatusBar","Animated","useAnimatedStyle","Ionicons","Avatar","useI18n","useOxy","GroupedPillButtons","TextField","jsx","_jsx","jsxs","_jsxs","SignInPasswordStep","styles","fadeAnim","slideAnim","scaleAnim","colors","userProfile","username","theme","logoAnim","errorMessage","isInputFocused","password","showPassword","handleInputFocus","handleInputBlur","handlePasswordChange","handleSignIn","parentHandleSignIn","isLoading","prevStep","navigate","inputRef","t","oxyServices","containerAnimatedStyle","opacity","value","transform","translateX","scale","logoAnimatedStyle","setTimeout","current","focus","style","stepContainer","children","modernUserProfileContainer","name","displayName","size","backgroundColor","primary","uri","avatar","getFileDownloadUrl","undefined","modernUserDisplayName","color","text","modernUsernameSubtext","secondaryText","modernInputContainer","ref","label","leading","onChangeText","onFocus","onBlur","secureTextEntry","autoCapitalize","autoCorrect","testID","variant","error","onSubmitEditing","autoFocus","flexDirection","alignItems","marginBottom","footerText","onPress","returnTo","returnStep","returnData","modernLinkText","buttons","icon","loading","securityNotice","securityText","barStyle","background"],"sourceRoot":"../../../../../src","sources":["ui/screens/internal/SignInPasswordStep.tsx"],"mappings":";;AAEA,SAASA,MAAM,EAAEC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AACtD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAkBC,SAAS,QAAQ,cAAc;AACtF,OAAOC,QAAQ,IACXC,gBAAgB,QAEb,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,SAASC,MAAM,QAAQ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EAAE,CAAClC,MAAM,CAACgF,YAAY,EAAE;UAAEhC,KAAK,EAAE5C,MAAM,CAAC+C;QAAc,CAAC,CAAE;QAAAf,QAAA,EAC/Dd,CAAC,CAAC,4BAA4B,CAAC,IAAI;MAAmC,CACrE,CAAC;IAAA,CACL,CAAC,eACP1B,IAAA,CAACV,SAAS;MACN+F,QAAQ,EAAE1E,KAAK,KAAK,MAAM,GAAG,eAAe,GAAG,cAAe;MAC9DkC,eAAe,EAAErC,MAAM,CAAC8E;IAAW,CACtC,CAAC;EAAA,CACS,CAAC;AAExB,CAAC;AAED,eAAenF,kBAAkB","ignoreList":[]}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useRef } from 'react';
|
|
4
|
-
import { View, Text } from 'react-native';
|
|
5
|
-
import Animated, { useAnimatedStyle } from 'react-native-reanimated';
|
|
6
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
7
|
-
import { useI18n } from '../../hooks/useI18n';
|
|
8
|
-
import HighFive from '../../../assets/illustrations/HighFive';
|
|
9
|
-
import GroupedPillButtons from '../../components/internal/GroupedPillButtons';
|
|
10
|
-
import TextField from '../../components/internal/TextField';
|
|
11
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
const SignInUsernameStep = ({
|
|
13
|
-
styles,
|
|
14
|
-
fadeAnim,
|
|
15
|
-
slideAnim,
|
|
16
|
-
scaleAnim,
|
|
17
|
-
colors,
|
|
18
|
-
isAddAccountMode,
|
|
19
|
-
user,
|
|
20
|
-
errorMessage,
|
|
21
|
-
isInputFocused,
|
|
22
|
-
username,
|
|
23
|
-
validationStatus,
|
|
24
|
-
userProfile,
|
|
25
|
-
isValidating,
|
|
26
|
-
handleInputFocus,
|
|
27
|
-
handleInputBlur,
|
|
28
|
-
handleUsernameChange,
|
|
29
|
-
handleUsernameContinue: parentHandleUsernameContinue,
|
|
30
|
-
navigate
|
|
31
|
-
}) => {
|
|
32
|
-
const inputRef = useRef(null);
|
|
33
|
-
const {
|
|
34
|
-
t
|
|
35
|
-
} = useI18n();
|
|
36
|
-
|
|
37
|
-
// Animated styles - properly memoized to prevent re-renders
|
|
38
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
39
|
-
return {
|
|
40
|
-
opacity: fadeAnim.value,
|
|
41
|
-
transform: [{
|
|
42
|
-
translateX: slideAnim.value
|
|
43
|
-
}, {
|
|
44
|
-
scale: scaleAnim.value
|
|
45
|
-
}]
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
const handleUsernameContinue = () => {
|
|
49
|
-
if (!username || validationStatus === 'invalid') {
|
|
50
|
-
setTimeout(() => {
|
|
51
|
-
inputRef.current?.focus();
|
|
52
|
-
}, 0);
|
|
53
|
-
}
|
|
54
|
-
parentHandleUsernameContinue();
|
|
55
|
-
};
|
|
56
|
-
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
57
|
-
style: [styles.stepContainer, animatedStyle],
|
|
58
|
-
children: [/*#__PURE__*/_jsx(HighFive, {
|
|
59
|
-
width: 100,
|
|
60
|
-
height: 100
|
|
61
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
62
|
-
style: styles.modernHeader,
|
|
63
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
64
|
-
style: [styles.modernTitle, {
|
|
65
|
-
color: colors.text
|
|
66
|
-
}],
|
|
67
|
-
children: isAddAccountMode ? t('signin.addAccountTitle') || 'Add Another Account' : t('signin.title') || 'Sign In'
|
|
68
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
69
|
-
style: [styles.modernSubtitle, {
|
|
70
|
-
color: colors.secondaryText
|
|
71
|
-
}],
|
|
72
|
-
children: isAddAccountMode ? t('signin.addAccountSubtitle') || 'Sign in with another account' : t('signin.subtitle') || 'Sign in to continue your journey'
|
|
73
|
-
})]
|
|
74
|
-
}), isAddAccountMode && /*#__PURE__*/_jsxs(View, {
|
|
75
|
-
style: [styles.modernInfoCard, {
|
|
76
|
-
backgroundColor: colors.inputBackground
|
|
77
|
-
}],
|
|
78
|
-
children: [/*#__PURE__*/_jsx(Ionicons, {
|
|
79
|
-
name: "information-circle",
|
|
80
|
-
size: 20,
|
|
81
|
-
color: colors.primary
|
|
82
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
|
83
|
-
style: [styles.modernInfoText, {
|
|
84
|
-
color: colors.text
|
|
85
|
-
}],
|
|
86
|
-
children: [t('signin.currentlySignedInAs') || 'Currently signed in as', " ", /*#__PURE__*/_jsx(Text, {
|
|
87
|
-
style: {
|
|
88
|
-
fontWeight: 'bold'
|
|
89
|
-
},
|
|
90
|
-
children: user?.name?.full || user?.username
|
|
91
|
-
})]
|
|
92
|
-
})]
|
|
93
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
94
|
-
style: styles.modernInputContainer,
|
|
95
|
-
children: /*#__PURE__*/_jsx(TextField, {
|
|
96
|
-
ref: inputRef,
|
|
97
|
-
label: t('common.labels.username'),
|
|
98
|
-
leading: /*#__PURE__*/_jsx(Ionicons, {
|
|
99
|
-
name: "person-outline",
|
|
100
|
-
size: 24,
|
|
101
|
-
color: colors.secondaryText
|
|
102
|
-
}),
|
|
103
|
-
value: username,
|
|
104
|
-
onChangeText: handleUsernameChange,
|
|
105
|
-
onFocus: handleInputFocus,
|
|
106
|
-
onBlur: handleInputBlur,
|
|
107
|
-
autoCapitalize: "none",
|
|
108
|
-
autoCorrect: false,
|
|
109
|
-
testID: "username-input",
|
|
110
|
-
variant: "filled",
|
|
111
|
-
error: validationStatus === 'invalid' ? errorMessage : undefined,
|
|
112
|
-
loading: validationStatus === 'validating',
|
|
113
|
-
success: validationStatus === 'valid',
|
|
114
|
-
onSubmitEditing: handleUsernameContinue,
|
|
115
|
-
autoFocus: true
|
|
116
|
-
})
|
|
117
|
-
}), /*#__PURE__*/_jsx(GroupedPillButtons, {
|
|
118
|
-
buttons: [{
|
|
119
|
-
text: t('common.links.signUp') || 'Sign Up',
|
|
120
|
-
onPress: () => navigate('SignUp'),
|
|
121
|
-
icon: 'person-add',
|
|
122
|
-
variant: 'transparent'
|
|
123
|
-
}, {
|
|
124
|
-
text: t('common.actions.continue'),
|
|
125
|
-
onPress: handleUsernameContinue,
|
|
126
|
-
icon: 'arrow-forward',
|
|
127
|
-
variant: 'primary',
|
|
128
|
-
loading: isValidating,
|
|
129
|
-
testID: 'username-next-button'
|
|
130
|
-
}],
|
|
131
|
-
colors: colors
|
|
132
|
-
})]
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
|
-
export default SignInUsernameStep;
|
|
136
|
-
//# sourceMappingURL=SignInUsernameStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useRef","View","Text","Animated","useAnimatedStyle","Ionicons","useI18n","HighFive","GroupedPillButtons","TextField","jsx","_jsx","jsxs","_jsxs","SignInUsernameStep","styles","fadeAnim","slideAnim","scaleAnim","colors","isAddAccountMode","user","errorMessage","isInputFocused","username","validationStatus","userProfile","isValidating","handleInputFocus","handleInputBlur","handleUsernameChange","handleUsernameContinue","parentHandleUsernameContinue","navigate","inputRef","t","animatedStyle","opacity","value","transform","translateX","scale","setTimeout","current","focus","style","stepContainer","children","width","height","modernHeader","modernTitle","color","text","modernSubtitle","secondaryText","modernInfoCard","backgroundColor","inputBackground","name","size","primary","modernInfoText","fontWeight","full","modernInputContainer","ref","label","leading","onChangeText","onFocus","onBlur","autoCapitalize","autoCorrect","testID","variant","error","undefined","loading","success","onSubmitEditing","autoFocus","buttons","onPress","icon"],"sourceRoot":"../../../../../src","sources":["ui/screens/internal/SignInUsernameStep.tsx"],"mappings":";;AACA,SAASA,MAAM,QAAQ,OAAO;AAC9B,SAAyBC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzD,OAAOC,QAAQ,IACXC,gBAAgB,QAEb,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,OAAOC,QAAQ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B,CAAC,CAAC,yBAAyB,CAAC;QAClCgD,OAAO,EAAEpD,sBAAsB;QAC/BqD,IAAI,EAAE,eAAe;QACrBT,OAAO,EAAE,SAAS;QAClBG,OAAO,EAAEnD,YAAY;QACrB+C,MAAM,EAAE;MACZ,CAAC,CACH;MACFvD,MAAM,EAAEA;IAAO,CAClB,CAAC;EAAA,CACS,CAAC;AAExB,CAAC;AAED,eAAeL,kBAAkB","ignoreList":[]}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useRef } from 'react';
|
|
4
|
-
import { View, Text, Animated } from 'react-native';
|
|
5
|
-
import GroupedPillButtons from '../../components/internal/GroupedPillButtons';
|
|
6
|
-
import TextField from '../../components/internal/TextField';
|
|
7
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const SignUpIdentityStep = ({
|
|
10
|
-
styles,
|
|
11
|
-
fadeAnim,
|
|
12
|
-
slideAnim,
|
|
13
|
-
colors,
|
|
14
|
-
formData,
|
|
15
|
-
validationState,
|
|
16
|
-
updateField,
|
|
17
|
-
setErrorMessage,
|
|
18
|
-
prevStep,
|
|
19
|
-
handleIdentityNext: parentHandleIdentityNext,
|
|
20
|
-
ValidationMessage,
|
|
21
|
-
validateEmail,
|
|
22
|
-
navigate
|
|
23
|
-
}) => {
|
|
24
|
-
const inputRef = useRef(null);
|
|
25
|
-
const handleIdentityNext = () => {
|
|
26
|
-
if (!formData.username || validationState.status === 'invalid') {
|
|
27
|
-
setTimeout(() => {
|
|
28
|
-
inputRef.current?.focus();
|
|
29
|
-
}, 0);
|
|
30
|
-
}
|
|
31
|
-
parentHandleIdentityNext();
|
|
32
|
-
};
|
|
33
|
-
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
34
|
-
style: [styles.stepContainer, {
|
|
35
|
-
opacity: fadeAnim,
|
|
36
|
-
transform: [{
|
|
37
|
-
translateX: slideAnim
|
|
38
|
-
}]
|
|
39
|
-
}],
|
|
40
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
41
|
-
style: styles.modernHeader,
|
|
42
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
43
|
-
style: [styles.stepTitle, {
|
|
44
|
-
color: colors.text
|
|
45
|
-
}],
|
|
46
|
-
children: "Who are you?"
|
|
47
|
-
})
|
|
48
|
-
}), /*#__PURE__*/_jsx(TextField, {
|
|
49
|
-
ref: inputRef,
|
|
50
|
-
leading: /*#__PURE__*/_jsx(Ionicons, {
|
|
51
|
-
name: "person-outline",
|
|
52
|
-
size: 24,
|
|
53
|
-
color: colors.secondaryText
|
|
54
|
-
}),
|
|
55
|
-
label: "Username",
|
|
56
|
-
value: formData.username,
|
|
57
|
-
onChangeText: text => {
|
|
58
|
-
updateField('username', text);
|
|
59
|
-
setErrorMessage('');
|
|
60
|
-
},
|
|
61
|
-
autoCapitalize: "none",
|
|
62
|
-
autoCorrect: false,
|
|
63
|
-
testID: "username-input",
|
|
64
|
-
variant: "filled",
|
|
65
|
-
error: validationState.status === 'invalid' ? validationState.message : undefined,
|
|
66
|
-
loading: validationState.status === 'validating',
|
|
67
|
-
success: validationState.status === 'valid',
|
|
68
|
-
onSubmitEditing: handleIdentityNext,
|
|
69
|
-
autoFocus: true
|
|
70
|
-
}), /*#__PURE__*/_jsx(ValidationMessage, {
|
|
71
|
-
validationState: validationState,
|
|
72
|
-
colors: colors,
|
|
73
|
-
styles: styles
|
|
74
|
-
}), /*#__PURE__*/_jsx(TextField, {
|
|
75
|
-
leading: /*#__PURE__*/_jsx(Ionicons, {
|
|
76
|
-
name: "mail-outline",
|
|
77
|
-
size: 24,
|
|
78
|
-
color: colors.secondaryText
|
|
79
|
-
}),
|
|
80
|
-
label: "Email",
|
|
81
|
-
value: formData.email,
|
|
82
|
-
onChangeText: text => {
|
|
83
|
-
updateField('email', text);
|
|
84
|
-
},
|
|
85
|
-
keyboardType: "email-address",
|
|
86
|
-
autoCapitalize: "none",
|
|
87
|
-
autoCorrect: false,
|
|
88
|
-
testID: "email-input",
|
|
89
|
-
variant: "filled",
|
|
90
|
-
error: formData.email && !validateEmail(formData.email) ? 'Please enter a valid email address' : undefined
|
|
91
|
-
}), /*#__PURE__*/_jsx(GroupedPillButtons, {
|
|
92
|
-
buttons: [{
|
|
93
|
-
text: 'Back',
|
|
94
|
-
onPress: prevStep,
|
|
95
|
-
icon: 'arrow-back',
|
|
96
|
-
variant: 'transparent'
|
|
97
|
-
}, {
|
|
98
|
-
text: 'Next',
|
|
99
|
-
onPress: handleIdentityNext,
|
|
100
|
-
icon: 'arrow-forward',
|
|
101
|
-
variant: 'primary'
|
|
102
|
-
}],
|
|
103
|
-
colors: colors
|
|
104
|
-
})]
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
export default SignUpIdentityStep;
|
|
108
|
-
//# sourceMappingURL=SignUpIdentityStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useRef","View","Text","Animated","GroupedPillButtons","TextField","Ionicons","jsx","_jsx","jsxs","_jsxs","SignUpIdentityStep","styles","fadeAnim","slideAnim","colors","formData","validationState","updateField","setErrorMessage","prevStep","handleIdentityNext","parentHandleIdentityNext","ValidationMessage","validateEmail","navigate","inputRef","username","status","setTimeout","current","focus","style","stepContainer","opacity","transform","translateX","children","modernHeader","stepTitle","color","text","ref","leading","name","size","secondaryText","label","value","onChangeText","autoCapitalize","autoCorrect","testID","variant","error","message","undefined","loading","success","onSubmitEditing","autoFocus","email","keyboardType","buttons","onPress","icon"],"sourceRoot":"../../../../../src","sources":["ui/screens/internal/SignUpIdentityStep.tsx"],"mappings":";;AACA,SAASA,MAAM,QAAQ,OAAO;AAC9B,SAASC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,QAA0C,cAAc;AACrF,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,SAAS,MAAM,qCAAqC;AAE3D,SAASC,QA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