@etsoo/react 1.7.24 → 1.7.25
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/states/UserState.js +3 -3
- package/package.json +19 -19
package/lib/states/UserState.js
CHANGED
|
@@ -37,9 +37,9 @@ export class UserState {
|
|
|
37
37
|
};
|
|
38
38
|
case UserActionType.Logout:
|
|
39
39
|
return {
|
|
40
|
-
...state,
|
|
40
|
+
...state, // Keep other user data
|
|
41
41
|
lastChangedFields: undefined,
|
|
42
|
-
token: undefined,
|
|
42
|
+
token: undefined, // Remove token
|
|
43
43
|
authorized: false // Flag as unauthorized
|
|
44
44
|
};
|
|
45
45
|
case UserActionType.Update:
|
|
@@ -55,7 +55,7 @@ export class UserState {
|
|
|
55
55
|
if (state.authorized === false)
|
|
56
56
|
return state;
|
|
57
57
|
return {
|
|
58
|
-
...state,
|
|
58
|
+
...state, // Keep other user data and token for refresh
|
|
59
59
|
lastChangedFields: undefined,
|
|
60
60
|
authorized: false // Flag as unauthorized
|
|
61
61
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.25",
|
|
4
4
|
"description": "TypeScript ReactJs UI Independent Framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -48,31 +48,31 @@
|
|
|
48
48
|
"@dnd-kit/core": "^6.1.0",
|
|
49
49
|
"@dnd-kit/sortable": "^8.0.0",
|
|
50
50
|
"@emotion/css": "^11.11.2",
|
|
51
|
-
"@emotion/react": "^11.11.
|
|
51
|
+
"@emotion/react": "^11.11.3",
|
|
52
52
|
"@emotion/styled": "^11.11.0",
|
|
53
|
-
"@etsoo/appscript": "^1.4.
|
|
54
|
-
"@etsoo/notificationbase": "^1.1.
|
|
55
|
-
"@etsoo/shared": "^1.2.
|
|
56
|
-
"@types/react": "^18.2.
|
|
57
|
-
"@types/react-dom": "^18.2.
|
|
53
|
+
"@etsoo/appscript": "^1.4.74",
|
|
54
|
+
"@etsoo/notificationbase": "^1.1.35",
|
|
55
|
+
"@etsoo/shared": "^1.2.26",
|
|
56
|
+
"@types/react": "^18.2.58",
|
|
57
|
+
"@types/react-dom": "^18.2.19",
|
|
58
58
|
"@types/react-window": "^1.8.8",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0",
|
|
61
|
-
"react-router-dom": "^6.
|
|
62
|
-
"react-window": "^1.8.
|
|
61
|
+
"react-router-dom": "^6.22.1",
|
|
62
|
+
"react-window": "^1.8.10"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@babel/cli": "^7.23.
|
|
66
|
-
"@babel/core": "^7.23.
|
|
67
|
-
"@babel/plugin-transform-runtime": "^7.23.
|
|
68
|
-
"@babel/preset-env": "^7.23.
|
|
69
|
-
"@babel/runtime-corejs3": "^7.23.
|
|
70
|
-
"@testing-library/jest-dom": "^6.
|
|
71
|
-
"@testing-library/react": "^14.1
|
|
72
|
-
"@types/jest": "^29.5.
|
|
65
|
+
"@babel/cli": "^7.23.9",
|
|
66
|
+
"@babel/core": "^7.23.9",
|
|
67
|
+
"@babel/plugin-transform-runtime": "^7.23.9",
|
|
68
|
+
"@babel/preset-env": "^7.23.9",
|
|
69
|
+
"@babel/runtime-corejs3": "^7.23.9",
|
|
70
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
71
|
+
"@testing-library/react": "^14.2.1",
|
|
72
|
+
"@types/jest": "^29.5.12",
|
|
73
73
|
"jest": "^29.7.0",
|
|
74
74
|
"jest-environment-jsdom": "^29.7.0",
|
|
75
|
-
"ts-jest": "^29.1.
|
|
76
|
-
"typescript": "^5.
|
|
75
|
+
"ts-jest": "^29.1.2",
|
|
76
|
+
"typescript": "^5.3.3"
|
|
77
77
|
}
|
|
78
78
|
}
|