@peassoft/mnr-web-topline 0.3.0 → 0.3.2
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/dist/en/modules/env/index.js +1 -1
- package/dist/en/parts/login/ui/login/index.js +5 -1
- package/dist/en/parts/password-recovery/ui/step-one/index.js +5 -1
- package/dist/en/parts/password-recovery/ui/step-two/index.js +5 -1
- package/dist/en/parts/shell/ui/user-avatar/index.js +2 -0
- package/dist/en/parts/signup/ui/signup/index.js +7 -3
- package/dist/ru/modules/env/index.js +1 -1
- package/dist/ru/parts/login/ui/login/index.js +5 -1
- package/dist/ru/parts/password-recovery/ui/step-one/index.js +5 -1
- package/dist/ru/parts/password-recovery/ui/step-two/index.js +5 -1
- package/dist/ru/parts/shell/ui/user-avatar/index.js +2 -0
- package/dist/ru/parts/signup/ui/signup/index.js +7 -3
- package/package.json +5 -5
|
@@ -70,7 +70,11 @@ export default function Login(props) {
|
|
|
70
70
|
title: "Log In",
|
|
71
71
|
onClose: onClose,
|
|
72
72
|
children: [_jsxs("form", {
|
|
73
|
-
children: [_jsx(InputField
|
|
73
|
+
children: [_jsx(InputField
|
|
74
|
+
// No idea why the rule thinks it's an error
|
|
75
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
76
|
+
// No idea why the rule thinks it's an error
|
|
77
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
74
78
|
ref: globalRefs.modalFirstItem,
|
|
75
79
|
type: 'email',
|
|
76
80
|
autocompleteAttribute: 'username',
|
|
@@ -44,7 +44,11 @@ export default function StepOne(props) {
|
|
|
44
44
|
children: [_jsx("p", {
|
|
45
45
|
children: "We will send you an email message with a code for password recovery."
|
|
46
46
|
}), _jsxs("form", {
|
|
47
|
-
children: [_jsx(InputField
|
|
47
|
+
children: [_jsx(InputField
|
|
48
|
+
// No idea why the rule thinks it's an error
|
|
49
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
50
|
+
// No idea why the rule thinks it's an error
|
|
51
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
48
52
|
ref: globalRefs.modalFirstItem,
|
|
49
53
|
type: 'email',
|
|
50
54
|
autocompleteAttribute: 'username',
|
|
@@ -81,7 +81,11 @@ export default function StepTwo(props) {
|
|
|
81
81
|
}), _jsx("p", {
|
|
82
82
|
children: "Enter that secret code and your new password into the fields below."
|
|
83
83
|
}), _jsxs("form", {
|
|
84
|
-
children: [_jsx(InputField
|
|
84
|
+
children: [_jsx(InputField
|
|
85
|
+
// No idea why the rule thinks it's an error
|
|
86
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
87
|
+
// No idea why the rule thinks it's an error
|
|
88
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
85
89
|
ref: globalRefs.modalFirstItem,
|
|
86
90
|
type: 'text',
|
|
87
91
|
label: "Secret code from email. Required",
|
|
@@ -19,6 +19,8 @@ export default function UserAvatar(props) {
|
|
|
19
19
|
const handleClick = useCallback(() => onClick(!isUserMenuOpen), [onClick, isUserMenuOpen]);
|
|
20
20
|
return _jsx("button", {
|
|
21
21
|
type: 'button',
|
|
22
|
+
// No idea why the rule thinks it's an error
|
|
23
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
22
24
|
ref: globalRefs.userAvatar,
|
|
23
25
|
className: 'topline_shell_userAvatar',
|
|
24
26
|
"aria-label": isUserMenuOpen ? "Close user menu." : "Open user menu.",
|
|
@@ -30,7 +30,7 @@ export default function Signup(props) {
|
|
|
30
30
|
handleUserChange
|
|
31
31
|
} = useContext(ToplineContext);
|
|
32
32
|
const handleEmailChange = useCallback(newValue => setEmail(newValue.trim()), []);
|
|
33
|
-
const handleUserNameChange = useCallback(newValue => setUserName(newValue
|
|
33
|
+
const handleUserNameChange = useCallback(newValue => setUserName(newValue), []);
|
|
34
34
|
const handlePasswordChange = useCallback(newValue => setPassword(newValue.trim()), []);
|
|
35
35
|
const handlePasswordConfirmationChange = useCallback(newValue => setPasswordConfirmation(newValue.trim()), []);
|
|
36
36
|
const handleEmailBlur = useCallback(() => setIsEmailValid(validateEmail(email)), [email]);
|
|
@@ -56,7 +56,7 @@ export default function Signup(props) {
|
|
|
56
56
|
email,
|
|
57
57
|
password,
|
|
58
58
|
...(userName ? {
|
|
59
|
-
userName
|
|
59
|
+
userName: userName.trim()
|
|
60
60
|
} : {}),
|
|
61
61
|
uiLang: document.documentElement.lang
|
|
62
62
|
};
|
|
@@ -88,7 +88,11 @@ export default function Signup(props) {
|
|
|
88
88
|
title: "Create an account",
|
|
89
89
|
onClose: onClose,
|
|
90
90
|
children: [_jsxs("form", {
|
|
91
|
-
children: [_jsx(InputField
|
|
91
|
+
children: [_jsx(InputField
|
|
92
|
+
// No idea why the rule thinks it's an error
|
|
93
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
94
|
+
// No idea why the rule thinks it's an error
|
|
95
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
92
96
|
ref: globalRefs.modalFirstItem,
|
|
93
97
|
type: 'email',
|
|
94
98
|
autocompleteAttribute: 'username',
|
|
@@ -70,7 +70,11 @@ export default function Login(props) {
|
|
|
70
70
|
title: "Войти в аккаунт",
|
|
71
71
|
onClose: onClose,
|
|
72
72
|
children: [_jsxs("form", {
|
|
73
|
-
children: [_jsx(InputField
|
|
73
|
+
children: [_jsx(InputField
|
|
74
|
+
// No idea why the rule thinks it's an error
|
|
75
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
76
|
+
// No idea why the rule thinks it's an error
|
|
77
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
74
78
|
ref: globalRefs.modalFirstItem,
|
|
75
79
|
type: 'email',
|
|
76
80
|
autocompleteAttribute: 'username',
|
|
@@ -44,7 +44,11 @@ export default function StepOne(props) {
|
|
|
44
44
|
children: [_jsx("p", {
|
|
45
45
|
children: "Мы вышлем вам email сообщение с кодом для восстановления парля."
|
|
46
46
|
}), _jsxs("form", {
|
|
47
|
-
children: [_jsx(InputField
|
|
47
|
+
children: [_jsx(InputField
|
|
48
|
+
// No idea why the rule thinks it's an error
|
|
49
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
50
|
+
// No idea why the rule thinks it's an error
|
|
51
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
48
52
|
ref: globalRefs.modalFirstItem,
|
|
49
53
|
type: 'email',
|
|
50
54
|
autocompleteAttribute: 'username',
|
|
@@ -81,7 +81,11 @@ export default function StepTwo(props) {
|
|
|
81
81
|
}), _jsx("p", {
|
|
82
82
|
children: "Введите секретный код и ваш новый пароль."
|
|
83
83
|
}), _jsxs("form", {
|
|
84
|
-
children: [_jsx(InputField
|
|
84
|
+
children: [_jsx(InputField
|
|
85
|
+
// No idea why the rule thinks it's an error
|
|
86
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
87
|
+
// No idea why the rule thinks it's an error
|
|
88
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
85
89
|
ref: globalRefs.modalFirstItem,
|
|
86
90
|
type: 'text',
|
|
87
91
|
label: "Секретный код из emal. Обязательное поле",
|
|
@@ -19,6 +19,8 @@ export default function UserAvatar(props) {
|
|
|
19
19
|
const handleClick = useCallback(() => onClick(!isUserMenuOpen), [onClick, isUserMenuOpen]);
|
|
20
20
|
return _jsx("button", {
|
|
21
21
|
type: 'button',
|
|
22
|
+
// No idea why the rule thinks it's an error
|
|
23
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
22
24
|
ref: globalRefs.userAvatar,
|
|
23
25
|
className: 'topline_shell_userAvatar',
|
|
24
26
|
"aria-label": isUserMenuOpen ? "Закрыть меню пользователя." : "Открыть меню пользователя.",
|
|
@@ -30,7 +30,7 @@ export default function Signup(props) {
|
|
|
30
30
|
handleUserChange
|
|
31
31
|
} = useContext(ToplineContext);
|
|
32
32
|
const handleEmailChange = useCallback(newValue => setEmail(newValue.trim()), []);
|
|
33
|
-
const handleUserNameChange = useCallback(newValue => setUserName(newValue
|
|
33
|
+
const handleUserNameChange = useCallback(newValue => setUserName(newValue), []);
|
|
34
34
|
const handlePasswordChange = useCallback(newValue => setPassword(newValue.trim()), []);
|
|
35
35
|
const handlePasswordConfirmationChange = useCallback(newValue => setPasswordConfirmation(newValue.trim()), []);
|
|
36
36
|
const handleEmailBlur = useCallback(() => setIsEmailValid(validateEmail(email)), [email]);
|
|
@@ -56,7 +56,7 @@ export default function Signup(props) {
|
|
|
56
56
|
email,
|
|
57
57
|
password,
|
|
58
58
|
...(userName ? {
|
|
59
|
-
userName
|
|
59
|
+
userName: userName.trim()
|
|
60
60
|
} : {}),
|
|
61
61
|
uiLang: document.documentElement.lang
|
|
62
62
|
};
|
|
@@ -88,7 +88,11 @@ export default function Signup(props) {
|
|
|
88
88
|
title: "Создать аккаунт",
|
|
89
89
|
onClose: onClose,
|
|
90
90
|
children: [_jsxs("form", {
|
|
91
|
-
children: [_jsx(InputField
|
|
91
|
+
children: [_jsx(InputField
|
|
92
|
+
// No idea why the rule thinks it's an error
|
|
93
|
+
/* eslint-disable-next-line react-hooks/refs */, {
|
|
94
|
+
// No idea why the rule thinks it's an error
|
|
95
|
+
/* eslint-disable-next-line react-hooks/refs */
|
|
92
96
|
ref: globalRefs.modalFirstItem,
|
|
93
97
|
type: 'email',
|
|
94
98
|
autocompleteAttribute: 'username',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peassoft/mnr-web-topline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Peassoft Topline widget for mem'n'rev web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"@babel/cli": "^7.17.10",
|
|
25
25
|
"@babel/core": "^7.16.0",
|
|
26
26
|
"@babel/preset-env": "^7.16.4",
|
|
27
|
-
"@memnrev/browserslist-config": "^0.
|
|
27
|
+
"@memnrev/browserslist-config": "^0.2.0",
|
|
28
28
|
"@memnrev/dict-builder": "^0.1.0",
|
|
29
29
|
"@memnrev/dict-loader": "^0.2.0",
|
|
30
30
|
"@memnrev/dict-replacer": "^0.1.0",
|
|
31
|
-
"@memnrev/eslint-v9-config": "^0.
|
|
31
|
+
"@memnrev/eslint-v9-config": "^0.4.0",
|
|
32
32
|
"@microsoft/api-extractor": "^7.38.0",
|
|
33
33
|
"@peassoft/mnr-web-ui-kit": "^0.1.2",
|
|
34
|
-
"@types/jest": "^
|
|
34
|
+
"@types/jest": "^30.0.0",
|
|
35
35
|
"@types/md5": "^2.3.3",
|
|
36
36
|
"@types/react": "^19.0.2",
|
|
37
37
|
"@types/react-dom": "^19.0.2",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"css-loader": "^7.1.2",
|
|
44
44
|
"eslint": "^9.8.0",
|
|
45
45
|
"html-webpack-plugin": "^5.3.2",
|
|
46
|
-
"jest": "^
|
|
46
|
+
"jest": "^30.0.0",
|
|
47
47
|
"postcss": "^8.3.6",
|
|
48
48
|
"postcss-loader": "^8.0.0",
|
|
49
49
|
"postcss-normalize": "^13.0.1",
|