@etsoo/materialui 1.4.16 → 1.4.18
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/app/ServiceApp.d.ts +5 -0
- package/lib/app/ServiceApp.js +10 -0
- package/package.json +3 -3
- package/src/app/ServiceApp.ts +12 -0
package/lib/app/ServiceApp.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ export declare class ServiceApp<U extends IServiceUser = IServiceUser, P extends
|
|
|
39
39
|
* @param data Login parameters
|
|
40
40
|
*/
|
|
41
41
|
toLoginPage(data?: AppLoginParams): void;
|
|
42
|
+
/**
|
|
43
|
+
* Signout, with userLogout and toLoginPage
|
|
44
|
+
* @param action Callback
|
|
45
|
+
*/
|
|
46
|
+
signout(action?: () => void | boolean): Promise<void>;
|
|
42
47
|
/**
|
|
43
48
|
* User login extended
|
|
44
49
|
* @param user New user
|
package/lib/app/ServiceApp.js
CHANGED
|
@@ -74,6 +74,16 @@ export class ServiceApp extends ReactApp {
|
|
|
74
74
|
// Make sure apply new device id for new login
|
|
75
75
|
this.clearDeviceId();
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Signout, with userLogout and toLoginPage
|
|
79
|
+
* @param action Callback
|
|
80
|
+
*/
|
|
81
|
+
signout(action) {
|
|
82
|
+
// Clear core token
|
|
83
|
+
this.storage.setData(coreTokenKey, undefined);
|
|
84
|
+
// Super call
|
|
85
|
+
return super.signout(action);
|
|
86
|
+
}
|
|
77
87
|
/**
|
|
78
88
|
* User login extended
|
|
79
89
|
* @param user New user
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@emotion/css": "^11.13.4",
|
|
51
51
|
"@emotion/react": "^11.13.3",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|
|
53
|
-
"@etsoo/appscript": "^1.5.
|
|
53
|
+
"@etsoo/appscript": "^1.5.61",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.52",
|
|
55
|
-
"@etsoo/react": "^1.7.
|
|
55
|
+
"@etsoo/react": "^1.7.90",
|
|
56
56
|
"@etsoo/shared": "^1.2.51",
|
|
57
57
|
"@mui/icons-material": "^6.1.4",
|
|
58
58
|
"@mui/material": "^6.1.4",
|
package/src/app/ServiceApp.ts
CHANGED
|
@@ -115,6 +115,18 @@ export class ServiceApp<
|
|
|
115
115
|
this.clearDeviceId();
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Signout, with userLogout and toLoginPage
|
|
120
|
+
* @param action Callback
|
|
121
|
+
*/
|
|
122
|
+
override signout(action?: () => void | boolean) {
|
|
123
|
+
// Clear core token
|
|
124
|
+
this.storage.setData(coreTokenKey, undefined);
|
|
125
|
+
|
|
126
|
+
// Super call
|
|
127
|
+
return super.signout(action);
|
|
128
|
+
}
|
|
129
|
+
|
|
118
130
|
/**
|
|
119
131
|
* User login extended
|
|
120
132
|
* @param user New user
|