@selfcommunity/react-ui 0.5.0-alpha.0 → 0.5.0-alpha.1
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/cjs/components/AccountRecover/AccountRecover.d.ts +12 -5
- package/lib/cjs/components/AccountRecover/AccountRecover.d.ts.map +1 -1
- package/lib/cjs/components/AccountRecover/AccountRecover.js +19 -8
- package/lib/cjs/components/AccountRecover/AccountRecover.js.map +1 -1
- package/lib/cjs/components/AccountReset/AccountReset.d.ts +13 -6
- package/lib/cjs/components/AccountReset/AccountReset.d.ts.map +1 -1
- package/lib/cjs/components/AccountReset/AccountReset.js +25 -9
- package/lib/cjs/components/AccountReset/AccountReset.js.map +1 -1
- package/lib/cjs/components/AccountVerify/AccountVerify.d.ts +7 -0
- package/lib/cjs/components/AccountVerify/AccountVerify.d.ts.map +1 -1
- package/lib/cjs/components/AccountVerify/AccountVerify.js +8 -3
- package/lib/cjs/components/AccountVerify/AccountVerify.js.map +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.d.ts +12 -5
- package/lib/esm/components/AccountRecover/AccountRecover.d.ts.map +1 -1
- package/lib/esm/components/AccountRecover/AccountRecover.js +21 -10
- package/lib/esm/components/AccountRecover/AccountRecover.js.map +1 -1
- package/lib/esm/components/AccountReset/AccountReset.d.ts +13 -6
- package/lib/esm/components/AccountReset/AccountReset.d.ts.map +1 -1
- package/lib/esm/components/AccountReset/AccountReset.js +27 -11
- package/lib/esm/components/AccountReset/AccountReset.js.map +1 -1
- package/lib/esm/components/AccountVerify/AccountVerify.d.ts +7 -0
- package/lib/esm/components/AccountVerify/AccountVerify.d.ts.map +1 -1
- package/lib/esm/components/AccountVerify/AccountVerify.js +8 -3
- package/lib/esm/components/AccountVerify/AccountVerify.js.map +1 -1
- package/lib/umd/react-ui.js +2 -2
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +4 -4
|
@@ -12,26 +12,29 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React, { useState } from 'react';
|
|
13
13
|
import { styled } from '@mui/material/styles';
|
|
14
14
|
import { useSCUser } from '@selfcommunity/react-core';
|
|
15
|
-
import { Button, Typography } from '@mui/material';
|
|
15
|
+
import { Box, Button, Typography } from '@mui/material';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
|
-
import { FormattedMessage } from 'react-intl';
|
|
17
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
18
18
|
import { useThemeProps } from '@mui/system';
|
|
19
19
|
import { AccountService, formatHttpError } from '@selfcommunity/api-services';
|
|
20
20
|
import PasswordTextField from '../../shared/PasswordTextField';
|
|
21
21
|
const PREFIX = 'SCAccountReset';
|
|
22
22
|
const classes = {
|
|
23
23
|
root: `${PREFIX}-root`,
|
|
24
|
-
|
|
24
|
+
form: `${PREFIX}-form`,
|
|
25
|
+
password: `${PREFIX}-password`,
|
|
26
|
+
success: `${PREFIX}-success`,
|
|
27
|
+
error: `${PREFIX}-error`
|
|
25
28
|
};
|
|
26
|
-
const Root = styled(
|
|
29
|
+
const Root = styled(Box, {
|
|
27
30
|
name: PREFIX,
|
|
28
31
|
slot: 'Root',
|
|
29
32
|
overridesResolver: (props, styles) => styles.root
|
|
30
33
|
})(({ theme }) => ({
|
|
31
|
-
[
|
|
34
|
+
[`& .${classes.form} .MuiTextField-root, &.${classes.root} .MuiButton-root`]: {
|
|
32
35
|
margin: theme.spacing(1, 0, 1, 0)
|
|
33
36
|
},
|
|
34
|
-
[
|
|
37
|
+
[`& .${classes.form} .MuiTypography-root`]: {
|
|
35
38
|
margin: theme.spacing(1, 0, 1, 0)
|
|
36
39
|
}
|
|
37
40
|
}));
|
|
@@ -54,7 +57,10 @@ const Root = styled('form', {
|
|
|
54
57
|
|Rule Name|Global class|Description|
|
|
55
58
|
|---|---|---|
|
|
56
59
|
|root|.SCAccountReset-root|Styles applied to the root element.|
|
|
60
|
+
|form|.SCAccountReset-form|Styles applied to the form element.|
|
|
57
61
|
|email|.SCAccountReset-password|Styles applied to the password TextField.|
|
|
62
|
+
|success|.SCAccountRecover-success|Styles applied to the success Typography.|
|
|
63
|
+
|error|.SCAccountRecover-error|Styles applied to the error Typography.|
|
|
58
64
|
|
|
59
65
|
*
|
|
60
66
|
* @param inProps
|
|
@@ -65,14 +71,16 @@ export default function AccountReset(inProps) {
|
|
|
65
71
|
name: PREFIX
|
|
66
72
|
});
|
|
67
73
|
// PROPS
|
|
68
|
-
const { className, onSuccess = null, TextFieldProps = { variant: 'outlined', fullWidth: true }, ButtonProps = { variant: 'contained' }, validationCode } = props, rest = __rest(props, ["className", "onSuccess", "TextFieldProps", "ButtonProps", "validationCode"]);
|
|
74
|
+
const { className, onSuccess = null, TextFieldProps = { variant: 'outlined', fullWidth: true }, ButtonProps = { variant: 'contained' }, validationCode, successAction = null } = props, rest = __rest(props, ["className", "onSuccess", "TextFieldProps", "ButtonProps", "validationCode", "successAction"]);
|
|
69
75
|
// STATE
|
|
70
76
|
const [password, setPassword] = useState('');
|
|
71
77
|
const [passwordError, setPasswordError] = useState('');
|
|
72
78
|
const [validationCodeError, setValidationCodeError] = useState('');
|
|
73
79
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
80
|
+
const [isSucceed, setIsSucceed] = useState(false);
|
|
74
81
|
// CONTEXT
|
|
75
82
|
const scUserContext = useSCUser();
|
|
83
|
+
const intl = useIntl();
|
|
76
84
|
// HANDLERS
|
|
77
85
|
const handleChange = (event) => {
|
|
78
86
|
setPassword(event.target.value);
|
|
@@ -82,10 +90,12 @@ export default function AccountReset(inProps) {
|
|
|
82
90
|
event.stopPropagation();
|
|
83
91
|
setIsSubmitting(true);
|
|
84
92
|
AccountService.reset({ validation_code: validationCode, password })
|
|
85
|
-
.then((res) =>
|
|
93
|
+
.then((res) => {
|
|
94
|
+
setIsSucceed(true);
|
|
95
|
+
onSuccess && onSuccess();
|
|
96
|
+
})
|
|
86
97
|
.catch((error) => {
|
|
87
98
|
const _error = formatHttpError(error);
|
|
88
|
-
console.log(_error);
|
|
89
99
|
if (_error.passwordError) {
|
|
90
100
|
setPasswordError(_error.passwordError.error);
|
|
91
101
|
}
|
|
@@ -101,8 +111,14 @@ export default function AccountReset(inProps) {
|
|
|
101
111
|
return null;
|
|
102
112
|
}
|
|
103
113
|
// RENDER
|
|
104
|
-
|
|
105
|
-
|
|
114
|
+
if (isSucceed) {
|
|
115
|
+
return (React.createElement(Typography, null,
|
|
116
|
+
React.createElement(FormattedMessage, { id: "ui.accountReset.success", defaultMessage: "ui.accountReset.success" })));
|
|
117
|
+
}
|
|
118
|
+
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), isSucceed ? (React.createElement(React.Fragment, null,
|
|
119
|
+
React.createElement(Typography, { className: classes.success }, intl.formatMessage({ id: 'ui.accountReset.success', defaultMessage: 'ui.accountReset.success' })),
|
|
120
|
+
successAction)) : validationCodeError ? (React.createElement(Typography, { className: classes.error },
|
|
121
|
+
React.createElement(FormattedMessage, { id: "ui.accountReset.code.error", defaultMessage: "ui.accountReset.code.error" }))) : (React.createElement("form", { className: classes.form, onSubmit: handleSubmit },
|
|
106
122
|
React.createElement(PasswordTextField, Object.assign({ className: classes.password, disabled: isSubmitting, label: React.createElement(FormattedMessage, { id: "ui.accountReset.password.label", defaultMessage: "ui.accountReset.password.label" }) }, TextFieldProps, { value: password, onChange: handleChange, error: Boolean(passwordError), helperText: passwordError })),
|
|
107
123
|
React.createElement(Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !password || isSubmitting }),
|
|
108
124
|
React.createElement(FormattedMessage, { id: "ui.accountReset.submit", defaultMessage: "ui.accountReset.submit" }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountReset.js","sourceRoot":"","sources":["../../../../src/components/AccountReset/AccountReset.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,MAAM,E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10
|
* @default empty string
|
|
11
11
|
*/
|
|
12
12
|
validationCode: string;
|
|
13
|
+
/**
|
|
14
|
+
* Callback triggered on success sign in
|
|
15
|
+
* @default null
|
|
16
|
+
*/
|
|
17
|
+
onSuccess?: () => void;
|
|
13
18
|
/**
|
|
14
19
|
* Action component to display after success message
|
|
15
20
|
* */
|
|
@@ -38,6 +43,8 @@ export interface AccountVerifyProps {
|
|
|
38
43
|
|Rule Name|Global class|Description|
|
|
39
44
|
|---|---|---|
|
|
40
45
|
|root|.SCAccountVerify-root|Styles applied to the root element.|
|
|
46
|
+
|success|.SCAccountRecover-success|Styles applied to the success Typography.|
|
|
47
|
+
|error|.SCAccountRecover-error|Styles applied to the error Typography.|
|
|
41
48
|
|
|
42
49
|
*
|
|
43
50
|
* @param inProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountVerify.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountVerify.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA8BjD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB;;SAEK;IACL,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAiD9E"}
|
|
@@ -19,7 +19,9 @@ import { AccountService } from '@selfcommunity/api-services';
|
|
|
19
19
|
import { FormattedMessage } from 'react-intl';
|
|
20
20
|
const PREFIX = 'SCAccountVerify';
|
|
21
21
|
const classes = {
|
|
22
|
-
root: `${PREFIX}-root
|
|
22
|
+
root: `${PREFIX}-root`,
|
|
23
|
+
success: `${PREFIX}-success`,
|
|
24
|
+
error: `${PREFIX}-error`
|
|
23
25
|
};
|
|
24
26
|
const Root = styled(Typography, {
|
|
25
27
|
name: PREFIX,
|
|
@@ -52,6 +54,8 @@ const Root = styled(Typography, {
|
|
|
52
54
|
|Rule Name|Global class|Description|
|
|
53
55
|
|---|---|---|
|
|
54
56
|
|root|.SCAccountVerify-root|Styles applied to the root element.|
|
|
57
|
+
|success|.SCAccountRecover-success|Styles applied to the success Typography.|
|
|
58
|
+
|error|.SCAccountRecover-error|Styles applied to the error Typography.|
|
|
55
59
|
|
|
56
60
|
*
|
|
57
61
|
* @param inProps
|
|
@@ -73,7 +77,8 @@ export default function AccountVerify(inProps) {
|
|
|
73
77
|
setIsValidating(true);
|
|
74
78
|
setError(false);
|
|
75
79
|
AccountService.verify({ validation_code: validationCode })
|
|
76
|
-
.
|
|
80
|
+
.then(() => onSuccess && onSuccess())
|
|
81
|
+
.catch(() => setError(true))
|
|
77
82
|
.then(() => setIsValidating(false));
|
|
78
83
|
}, [validationCode]);
|
|
79
84
|
if (scUserContext.user !== null) {
|
|
@@ -81,7 +86,7 @@ export default function AccountVerify(inProps) {
|
|
|
81
86
|
return null;
|
|
82
87
|
}
|
|
83
88
|
// RENDER
|
|
84
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), isValidating ? (React.createElement(React.Fragment, null,
|
|
89
|
+
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className, { [classes.error]: error, [classes.success]: !isValidating && !error }) }, rest), isValidating ? (React.createElement(React.Fragment, null,
|
|
85
90
|
React.createElement(CircularProgress, null),
|
|
86
91
|
React.createElement(FormattedMessage, { id: "ui.accountVerify.verifying", defaultMessage: "ui.accountVerify.verifying" }))) : error ? (React.createElement(FormattedMessage, { id: "ui.accountVerify.error", defaultMessage: "ui.accountVerify.error" })) : (React.createElement(React.Fragment, null,
|
|
87
92
|
React.createElement(FormattedMessage, { id: "ui.accountVerify.success", defaultMessage: "ui.accountVerify.success" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountVerify.js","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAoB,SAAS,EAAC,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountVerify.js","sourceRoot":"","sources":["../../../../src/components/AccountVerify/AccountVerify.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAoB,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAC,gBAAgB,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,GAAG,iBAAiB,CAAC;AAEjC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,OAAO,EAAE,GAAG,MAAM,UAAU;IAC5B,KAAK,EAAE,GAAG,MAAM,Q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