@etsoo/react 1.3.76 → 1.3.77
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.d.ts +2 -1
- package/lib/app/ReactApp.js +3 -1
- package/lib/app/ServiceApp.d.ts +2 -1
- package/lib/app/ServiceApp.js +3 -2
- package/package.json +1 -1
- package/src/app/ReactApp.ts +3 -1
- package/src/app/ServiceApp.ts +3 -2
package/lib/app/ReactApp.d.ts
CHANGED
|
@@ -85,8 +85,9 @@ export declare class ReactApp<S extends IAppSettings, D extends IUser, P extends
|
|
|
85
85
|
* Constructor
|
|
86
86
|
* @param settings Settings
|
|
87
87
|
* @param name Application name
|
|
88
|
+
* @param globalFields Global fields
|
|
88
89
|
*/
|
|
89
|
-
constructor(settings: S, name: string);
|
|
90
|
+
constructor(settings: S, name: string, globalFields: string[]);
|
|
90
91
|
/**
|
|
91
92
|
* Change culture
|
|
92
93
|
* @param culture New culture definition
|
package/lib/app/ReactApp.js
CHANGED
|
@@ -54,9 +54,11 @@ export class ReactApp extends CoreApp {
|
|
|
54
54
|
* Constructor
|
|
55
55
|
* @param settings Settings
|
|
56
56
|
* @param name Application name
|
|
57
|
+
* @param globalFields Global fields
|
|
57
58
|
*/
|
|
58
|
-
constructor(settings, name) {
|
|
59
|
+
constructor(settings, name, globalFields) {
|
|
59
60
|
super(settings, ReactApp.createApi(settings), ReactApp.createNotifier(), new WindowStorage([
|
|
61
|
+
...globalFields,
|
|
60
62
|
CoreApp.deviceIdField,
|
|
61
63
|
CoreApp.headerTokenField,
|
|
62
64
|
CoreApp.serversideDeviceIdField
|
package/lib/app/ServiceApp.d.ts
CHANGED
|
@@ -30,8 +30,9 @@ export declare class ServiceApp<P extends IServicePageData = IServicePageData, U
|
|
|
30
30
|
* Constructor
|
|
31
31
|
* @param settings Settings
|
|
32
32
|
* @param name Application name
|
|
33
|
+
* @param globalFields Global fields
|
|
33
34
|
*/
|
|
34
|
-
constructor(settings: S, name: string);
|
|
35
|
+
constructor(settings: S, name: string, globalFields: string[]);
|
|
35
36
|
/**
|
|
36
37
|
* Go to the login page
|
|
37
38
|
*/
|
package/lib/app/ServiceApp.js
CHANGED
|
@@ -13,9 +13,10 @@ export class ServiceApp extends ReactApp {
|
|
|
13
13
|
* Constructor
|
|
14
14
|
* @param settings Settings
|
|
15
15
|
* @param name Application name
|
|
16
|
+
* @param globalFields Global fields
|
|
16
17
|
*/
|
|
17
|
-
constructor(settings, name) {
|
|
18
|
-
super(settings, name);
|
|
18
|
+
constructor(settings, name, globalFields) {
|
|
19
|
+
super(settings, name, globalFields);
|
|
19
20
|
/**
|
|
20
21
|
* Service passphrase
|
|
21
22
|
*/
|
package/package.json
CHANGED
package/src/app/ReactApp.ts
CHANGED
|
@@ -182,13 +182,15 @@ export class ReactApp<
|
|
|
182
182
|
* Constructor
|
|
183
183
|
* @param settings Settings
|
|
184
184
|
* @param name Application name
|
|
185
|
+
* @param globalFields Global fields
|
|
185
186
|
*/
|
|
186
|
-
constructor(settings: S, name: string) {
|
|
187
|
+
constructor(settings: S, name: string, globalFields: string[]) {
|
|
187
188
|
super(
|
|
188
189
|
settings,
|
|
189
190
|
ReactApp.createApi(settings),
|
|
190
191
|
ReactApp.createNotifier(),
|
|
191
192
|
new WindowStorage([
|
|
193
|
+
...globalFields,
|
|
192
194
|
CoreApp.deviceIdField,
|
|
193
195
|
CoreApp.headerTokenField,
|
|
194
196
|
CoreApp.serversideDeviceIdField
|
package/src/app/ServiceApp.ts
CHANGED
|
@@ -50,9 +50,10 @@ export class ServiceApp<
|
|
|
50
50
|
* Constructor
|
|
51
51
|
* @param settings Settings
|
|
52
52
|
* @param name Application name
|
|
53
|
+
* @param globalFields Global fields
|
|
53
54
|
*/
|
|
54
|
-
constructor(settings: S, name: string) {
|
|
55
|
-
super(settings, name);
|
|
55
|
+
constructor(settings: S, name: string, globalFields: string[]) {
|
|
56
|
+
super(settings, name, globalFields);
|
|
56
57
|
|
|
57
58
|
// Check
|
|
58
59
|
if (settings.serviceId == null || settings.serviceEndpoint == null) {
|