@etsoo/materialui 1.6.85 → 1.6.86
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.
|
@@ -69,7 +69,7 @@ export declare class ServiceApp<U extends IServiceUser = IServiceUser, S extends
|
|
|
69
69
|
* Save core system data
|
|
70
70
|
* @param data Data
|
|
71
71
|
*/
|
|
72
|
-
protected saveCoreToken(data: ApiRefreshTokenDto): void
|
|
72
|
+
protected saveCoreToken(data: ApiRefreshTokenDto): Promise<void>;
|
|
73
73
|
/**
|
|
74
74
|
* On switch organization handler
|
|
75
75
|
* This method is called when the organization is switched successfully
|
|
@@ -149,11 +149,11 @@ class ServiceApp extends ReactApp_1.ReactApp {
|
|
|
149
149
|
* Save core system data
|
|
150
150
|
* @param data Data
|
|
151
151
|
*/
|
|
152
|
-
saveCoreToken(data) {
|
|
152
|
+
async saveCoreToken(data) {
|
|
153
153
|
// Hold the core system access token
|
|
154
154
|
this.coreAccessToken = data.accessToken;
|
|
155
155
|
// Cache the core system refresh token
|
|
156
|
-
this.storage.setData(coreTokenKey, this.encrypt(data.refreshToken));
|
|
156
|
+
this.storage.setData(coreTokenKey, await this.encrypt(data.refreshToken));
|
|
157
157
|
// Exchange tokens
|
|
158
158
|
this.exchangeTokenAll(data);
|
|
159
159
|
}
|
|
@@ -69,7 +69,7 @@ export declare class ServiceApp<U extends IServiceUser = IServiceUser, S extends
|
|
|
69
69
|
* Save core system data
|
|
70
70
|
* @param data Data
|
|
71
71
|
*/
|
|
72
|
-
protected saveCoreToken(data: ApiRefreshTokenDto): void
|
|
72
|
+
protected saveCoreToken(data: ApiRefreshTokenDto): Promise<void>;
|
|
73
73
|
/**
|
|
74
74
|
* On switch organization handler
|
|
75
75
|
* This method is called when the organization is switched successfully
|
|
@@ -146,11 +146,11 @@ export class ServiceApp extends ReactApp {
|
|
|
146
146
|
* Save core system data
|
|
147
147
|
* @param data Data
|
|
148
148
|
*/
|
|
149
|
-
saveCoreToken(data) {
|
|
149
|
+
async saveCoreToken(data) {
|
|
150
150
|
// Hold the core system access token
|
|
151
151
|
this.coreAccessToken = data.accessToken;
|
|
152
152
|
// Cache the core system refresh token
|
|
153
|
-
this.storage.setData(coreTokenKey, this.encrypt(data.refreshToken));
|
|
153
|
+
this.storage.setData(coreTokenKey, await this.encrypt(data.refreshToken));
|
|
154
154
|
// Exchange tokens
|
|
155
155
|
this.exchangeTokenAll(data);
|
|
156
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.86",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/ETSOO/ReactMU#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@base-ui/react": "^1.
|
|
39
|
+
"@base-ui/react": "^1.8.0",
|
|
40
40
|
"@dnd-kit/react": "^0.5.0",
|
|
41
41
|
"@emotion/react": "^11.14.0",
|
|
42
42
|
"@emotion/styled": "^11.14.1",
|
|
43
|
-
"@etsoo/appscript": "^1.6.
|
|
43
|
+
"@etsoo/appscript": "^1.6.77",
|
|
44
44
|
"@etsoo/notificationbase": "^1.1.75",
|
|
45
|
-
"@etsoo/react": "^1.9.
|
|
45
|
+
"@etsoo/react": "^1.9.2",
|
|
46
46
|
"@etsoo/shared": "^1.2.91",
|
|
47
47
|
"@mui/icons-material": "^9.4.0",
|
|
48
48
|
"@mui/material": "^9.4.0",
|
|
49
|
-
"@mui/x-data-grid": "^9.
|
|
49
|
+
"@mui/x-data-grid": "^9.13.0",
|
|
50
50
|
"chart.js": "^4.5.1",
|
|
51
51
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
52
52
|
"dompurify": "^3.4.14",
|
package/src/app/ServiceApp.ts
CHANGED
|
@@ -198,12 +198,12 @@ export class ServiceApp<
|
|
|
198
198
|
* Save core system data
|
|
199
199
|
* @param data Data
|
|
200
200
|
*/
|
|
201
|
-
protected saveCoreToken(data: ApiRefreshTokenDto) {
|
|
201
|
+
protected async saveCoreToken(data: ApiRefreshTokenDto) {
|
|
202
202
|
// Hold the core system access token
|
|
203
203
|
this.coreAccessToken = data.accessToken;
|
|
204
204
|
|
|
205
205
|
// Cache the core system refresh token
|
|
206
|
-
this.storage.setData(coreTokenKey, this.encrypt(data.refreshToken));
|
|
206
|
+
this.storage.setData(coreTokenKey, await this.encrypt(data.refreshToken));
|
|
207
207
|
|
|
208
208
|
// Exchange tokens
|
|
209
209
|
this.exchangeTokenAll(data);
|