@etsoo/materialui 1.4.96 → 1.4.97

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.
@@ -210,6 +210,10 @@ class ReactApp extends appscript_1.CoreApp {
210
210
  // Destruct
211
211
  const { onFailure = (type) => {
212
212
  console.log(`Try login failed: ${type}.`);
213
+ if (globalThis.navigator.onLine &&
214
+ !type.includes('"title":"Failed to fetch"')) {
215
+ this.clearCacheToken();
216
+ }
213
217
  this.toLoginPage(rest);
214
218
  }, onSuccess, ...rest } = data ?? {};
215
219
  // Check status
@@ -202,6 +202,10 @@ export class ReactApp extends CoreApp {
202
202
  // Destruct
203
203
  const { onFailure = (type) => {
204
204
  console.log(`Try login failed: ${type}.`);
205
+ if (globalThis.navigator.onLine &&
206
+ !type.includes('"title":"Failed to fetch"')) {
207
+ this.clearCacheToken();
208
+ }
205
209
  this.toLoginPage(rest);
206
210
  }, onSuccess, ...rest } = data ?? {};
207
211
  // Check status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.4.96",
3
+ "version": "1.4.97",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -40,13 +40,13 @@
40
40
  "@dnd-kit/sortable": "^10.0.0",
41
41
  "@emotion/react": "^11.14.0",
42
42
  "@emotion/styled": "^11.14.0",
43
- "@etsoo/appscript": "^1.6.13",
43
+ "@etsoo/appscript": "^1.6.16",
44
44
  "@etsoo/notificationbase": "^1.1.59",
45
45
  "@etsoo/react": "^1.8.32",
46
46
  "@etsoo/shared": "^1.2.62",
47
- "@mui/icons-material": "^6.4.5",
48
- "@mui/material": "^6.4.4",
49
- "@mui/x-data-grid": "^7.27.1",
47
+ "@mui/icons-material": "^6.4.6",
48
+ "@mui/material": "^6.4.6",
49
+ "@mui/x-data-grid": "^7.27.2",
50
50
  "chart.js": "^4.4.8",
51
51
  "chartjs-plugin-datalabels": "^2.2.0",
52
52
  "eventemitter3": "^5.0.1",
@@ -355,6 +355,12 @@ export class ReactApp<S extends IAppSettings, D extends IUser>
355
355
  const {
356
356
  onFailure = (type: string) => {
357
357
  console.log(`Try login failed: ${type}.`);
358
+ if (
359
+ globalThis.navigator.onLine &&
360
+ !type.includes('"title":"Failed to fetch"')
361
+ ) {
362
+ this.clearCacheToken();
363
+ }
358
364
  this.toLoginPage(rest);
359
365
  },
360
366
  onSuccess,