@etsoo/react 1.3.75 → 1.3.76
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/ReactApp.js +6 -1
- package/package.json +6 -6
- package/src/app/ReactApp.ts +6 -1
package/lib/app/ReactApp.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CoreApp, createClient } from '@etsoo/appscript';
|
|
2
|
+
import { WindowStorage } from '@etsoo/shared';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { NotifierMU } from '../mu/NotifierMU';
|
|
4
5
|
import { ProgressCount } from '../mu/ProgressCount';
|
|
@@ -55,7 +56,11 @@ export class ReactApp extends CoreApp {
|
|
|
55
56
|
* @param name Application name
|
|
56
57
|
*/
|
|
57
58
|
constructor(settings, name) {
|
|
58
|
-
super(settings, ReactApp.createApi(settings), ReactApp.createNotifier(),
|
|
59
|
+
super(settings, ReactApp.createApi(settings), ReactApp.createNotifier(), new WindowStorage([
|
|
60
|
+
CoreApp.deviceIdField,
|
|
61
|
+
CoreApp.headerTokenField,
|
|
62
|
+
CoreApp.serversideDeviceIdField
|
|
63
|
+
]), name);
|
|
59
64
|
/**
|
|
60
65
|
* User state
|
|
61
66
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.76",
|
|
4
4
|
"description": "TypeScript ReactJs framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"@emotion/style": "^0.8.0",
|
|
52
52
|
"@emotion/styled": "^11.6.0",
|
|
53
|
-
"@etsoo/appscript": "^1.1.
|
|
53
|
+
"@etsoo/appscript": "^1.1.93",
|
|
54
54
|
"@etsoo/notificationbase": "^1.0.95",
|
|
55
|
-
"@etsoo/shared": "^1.0.
|
|
55
|
+
"@etsoo/shared": "^1.0.83",
|
|
56
56
|
"@mui/icons-material": "^5.2.5",
|
|
57
57
|
"@mui/material": "^5.2.5",
|
|
58
58
|
"@reach/router": "^1.3.4",
|
|
59
59
|
"@types/pica": "^5.1.3",
|
|
60
60
|
"@types/pulltorefreshjs": "^0.1.5",
|
|
61
|
-
"@types/reach__router": "^1.3.
|
|
62
|
-
"@types/react": "^17.0.
|
|
61
|
+
"@types/reach__router": "^1.3.10",
|
|
62
|
+
"@types/react": "^17.0.38",
|
|
63
63
|
"@types/react-avatar-editor": "^10.3.6",
|
|
64
64
|
"@types/react-dom": "^17.0.11",
|
|
65
65
|
"@types/react-input-mask": "^3.0.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"eslint": "^8.5.0",
|
|
87
87
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
88
88
|
"eslint-plugin-import": "^2.25.3",
|
|
89
|
-
"eslint-plugin-react": "^7.
|
|
89
|
+
"eslint-plugin-react": "^7.28.0",
|
|
90
90
|
"jest": "^27.4.5",
|
|
91
91
|
"react-test-renderer": "^17.0.2",
|
|
92
92
|
"ts-jest": "^27.1.2",
|
package/src/app/ReactApp.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
IUserData
|
|
8
8
|
} from '@etsoo/appscript';
|
|
9
9
|
import { NotificationRenderProps } from '@etsoo/notificationbase';
|
|
10
|
-
import { DataTypes } from '@etsoo/shared';
|
|
10
|
+
import { DataTypes, WindowStorage } from '@etsoo/shared';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { NotifierMU } from '../mu/NotifierMU';
|
|
13
13
|
import { ProgressCount } from '../mu/ProgressCount';
|
|
@@ -188,6 +188,11 @@ export class ReactApp<
|
|
|
188
188
|
settings,
|
|
189
189
|
ReactApp.createApi(settings),
|
|
190
190
|
ReactApp.createNotifier(),
|
|
191
|
+
new WindowStorage([
|
|
192
|
+
CoreApp.deviceIdField,
|
|
193
|
+
CoreApp.headerTokenField,
|
|
194
|
+
CoreApp.serversideDeviceIdField
|
|
195
|
+
]),
|
|
191
196
|
name
|
|
192
197
|
);
|
|
193
198
|
this.cultureState = new CultureState(settings.currentCulture);
|