@peassoft/mnr-web-topline 2.2.0 → 3.0.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/dist/css/index.css +2 -2
- package/dist/en/parts/profile/ui/password-change-confirmation/index.js +1 -0
- package/dist/en/parts/profile/ui/password-change-form/use-state-with-validation-reset.js +1 -1
- package/dist/en/parts/shell/ui/shell/index.js +4 -2
- package/dist/ru/parts/profile/ui/password-change-confirmation/index.js +1 -0
- package/dist/ru/parts/profile/ui/password-change-form/use-state-with-validation-reset.js +1 -1
- package/dist/ru/parts/shell/ui/shell/index.js +4 -2
- package/package.json +4 -3
package/dist/css/index.css
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
.topline_shell_userMenu {
|
|
104
104
|
position: absolute;
|
|
105
|
-
z-index:
|
|
105
|
+
z-index: 2;
|
|
106
106
|
bottom: 0;
|
|
107
107
|
right: 0;
|
|
108
108
|
width: 300px;
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
|
|
204
204
|
.topline_c_modal_overlay {
|
|
205
205
|
position: fixed;
|
|
206
|
-
z-index:
|
|
206
|
+
z-index: 2;
|
|
207
207
|
top: 0;
|
|
208
208
|
bottom: 0;
|
|
209
209
|
left: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useCallback } from 'react';
|
|
1
|
+
import React, { useState, useCallback } from 'react';
|
|
2
2
|
export default function useStateWithValidationReset(initialState, validationSetFn, validationResetValue) {
|
|
3
3
|
const [value, setValue] = useState(initialState);
|
|
4
4
|
const handleChange = useCallback(newVal => {
|
|
@@ -27,8 +27,10 @@ export default function Shell() {
|
|
|
27
27
|
const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);
|
|
28
28
|
const [modalWindowActive, setModalWindowOpen] = useState(null);
|
|
29
29
|
const handleRenderingError = useCallback(e => {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
if (e instanceof Error) {
|
|
31
|
+
logError(e);
|
|
32
|
+
onError(e);
|
|
33
|
+
}
|
|
32
34
|
}, [onError]);
|
|
33
35
|
const handleClickOnUserAvatar = useCallback(isOpen => setIsUserMenuOpen(isOpen), []);
|
|
34
36
|
const closeUserMenu = useCallback(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useCallback } from 'react';
|
|
1
|
+
import React, { useState, useCallback } from 'react';
|
|
2
2
|
export default function useStateWithValidationReset(initialState, validationSetFn, validationResetValue) {
|
|
3
3
|
const [value, setValue] = useState(initialState);
|
|
4
4
|
const handleChange = useCallback(newVal => {
|
|
@@ -27,8 +27,10 @@ export default function Shell() {
|
|
|
27
27
|
const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);
|
|
28
28
|
const [modalWindowActive, setModalWindowOpen] = useState(null);
|
|
29
29
|
const handleRenderingError = useCallback(e => {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
if (e instanceof Error) {
|
|
31
|
+
logError(e);
|
|
32
|
+
onError(e);
|
|
33
|
+
}
|
|
32
34
|
}, [onError]);
|
|
33
35
|
const handleClickOnUserAvatar = useCallback(isOpen => setIsUserMenuOpen(isOpen), []);
|
|
34
36
|
const closeUserMenu = useCallback(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peassoft/mnr-web-topline",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Peassoft Topline widget for mem'n'rev web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@memnrev/dict-replacer": "^0.1.0",
|
|
31
31
|
"@memnrev/eslint-v9-config": "^0.4.0",
|
|
32
32
|
"@microsoft/api-extractor": "^7.38.0",
|
|
33
|
+
"@peassoft/mnr-web-ui-kit": "^2.1.0",
|
|
33
34
|
"@types/md5": "^2.3.3",
|
|
34
35
|
"@types/react": "^19.0.2",
|
|
35
36
|
"@types/react-dom": "^19.0.2",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"sass": "^1.52.1",
|
|
50
51
|
"sass-loader": "^16.0.4",
|
|
51
52
|
"style-loader": "^4.0.0",
|
|
52
|
-
"stylelint": "^
|
|
53
|
+
"stylelint": "^17.0.0",
|
|
53
54
|
"stylelint-config-sass-guidelines": "^12.1.0",
|
|
54
55
|
"ts-loader": "^9.4.4",
|
|
55
56
|
"typescript": "^5.2.2",
|
|
@@ -60,7 +61,6 @@
|
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"@memnrev/web-error": "^0.4.1",
|
|
63
|
-
"@peassoft/mnr-web-ui-kit": "^2.0.0",
|
|
64
64
|
"email-validator": "^2.0.4",
|
|
65
65
|
"md5": "^2.3.0",
|
|
66
66
|
"react-error-boundary": "^6.0.0",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"uuid": "^13.0.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
+
"@peassoft/mnr-web-ui-kit": ">= 2.1 < 3",
|
|
71
72
|
"react": ">= 19 < 20",
|
|
72
73
|
"react-dom": ">= 19 < 20"
|
|
73
74
|
}
|