@zengenti/contensis-react-base 4.0.1-beta.1 → 4.0.1-beta.11
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/cjs/{App-Bg1MzW4V.js → App-95IjaQXT.js} +26 -22
- package/cjs/App-95IjaQXT.js.map +1 -0
- package/cjs/{ChangePassword.container-C4Du3Wb1.js → ChangePassword.container-CVwXfQjB.js} +7 -5
- package/cjs/ChangePassword.container-CVwXfQjB.js.map +1 -0
- package/cjs/{ContensisDeliveryApi-MfcvdfDR.js → ContensisDeliveryApi-vsHVQ_Ci.js} +46 -21
- package/cjs/ContensisDeliveryApi-vsHVQ_Ci.js.map +1 -0
- package/cjs/{RouteLoader-DJeM8cym.js → RouteLoader-NjuQ0VMn.js} +11 -7
- package/cjs/RouteLoader-NjuQ0VMn.js.map +1 -0
- package/cjs/{SSRContext-tMufQDHY.js → SSRContext-WPN0QwEg.js} +2 -2
- package/cjs/{SSRContext-tMufQDHY.js.map → SSRContext-WPN0QwEg.js.map} +1 -1
- package/cjs/{VersionInfo-zFPsvS8q.js → VersionInfo-BygZuA9D.js} +3 -3
- package/cjs/{VersionInfo-zFPsvS8q.js.map → VersionInfo-BygZuA9D.js.map} +1 -1
- package/cjs/build.js +219 -0
- package/cjs/build.js.map +1 -0
- package/cjs/client.js +13 -13
- package/cjs/contensis-react-base.js +39 -24
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/dev-server-globals.js +21 -0
- package/cjs/dev-server-globals.js.map +1 -0
- package/cjs/{matchGroups-dqONU-vY.js → matchGroups-D8QZEd1p.js} +2 -2
- package/cjs/{matchGroups-dqONU-vY.js.map → matchGroups-D8QZEd1p.js.map} +1 -1
- package/cjs/redux.js +7 -7
- package/cjs/redux.js.map +1 -1
- package/cjs/routing.js +10 -10
- package/cjs/{sagas-BCy9u6zA.js → sagas-BG31QdkC.js} +8 -6
- package/cjs/sagas-BG31QdkC.js.map +1 -0
- package/cjs/search.js +6 -6
- package/cjs/{selectors-BrxJ8-F8.js → selectors-BnaBk5xL.js} +24 -20
- package/cjs/selectors-BnaBk5xL.js.map +1 -0
- package/cjs/{store-B7SJs5Hf.js → store-Ccwrx5Do.js} +14 -8
- package/cjs/store-Ccwrx5Do.js.map +1 -0
- package/cjs/user.js +3 -3
- package/cjs/{util-eOjxDjxF.js → util-LE7KTRCU.js} +5 -2
- package/cjs/util-LE7KTRCU.js.map +1 -0
- package/cjs/util.js +6 -6
- package/cjs/{version-yjHMrfVz.js → version-AE19NqSo.js} +3 -3
- package/cjs/{version-yjHMrfVz.js.map → version-AE19NqSo.js.map} +1 -1
- package/cjs/{version-rFG9Y6_B.js → version-CaRCM9vq.js} +2 -2
- package/cjs/{version-rFG9Y6_B.js.map → version-CaRCM9vq.js.map} +1 -1
- package/esm/{App-Bplaqueq.js → App-DvfrUH4b.js} +27 -23
- package/esm/App-DvfrUH4b.js.map +1 -0
- package/esm/{ChangePassword.container-CUBtn82K.js → ChangePassword.container-BlSy5eHk.js} +8 -6
- package/esm/ChangePassword.container-BlSy5eHk.js.map +1 -0
- package/esm/{ContensisDeliveryApi-LWYXevZ1.js → ContensisDeliveryApi-Czq1gBOi.js} +46 -21
- package/esm/ContensisDeliveryApi-Czq1gBOi.js.map +1 -0
- package/esm/{RouteLoader-CzrlySZf.js → RouteLoader-CAVJs2rj.js} +14 -10
- package/esm/RouteLoader-CAVJs2rj.js.map +1 -0
- package/esm/{SSRContext-Bxtg1KGv.js → SSRContext-DqqZUlqT.js} +2 -2
- package/esm/{SSRContext-Bxtg1KGv.js.map → SSRContext-DqqZUlqT.js.map} +1 -1
- package/esm/{VersionInfo-By2ZCZOh.js → VersionInfo-BinQYaU1.js} +6 -6
- package/esm/{VersionInfo-By2ZCZOh.js.map → VersionInfo-BinQYaU1.js.map} +1 -1
- package/esm/build.js +208 -0
- package/esm/build.js.map +1 -0
- package/esm/client.js +15 -15
- package/esm/contensis-react-base.js +41 -26
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/dev-server-globals.js +15 -0
- package/esm/dev-server-globals.js.map +1 -0
- package/esm/i18n.js +2 -2
- package/esm/{matchGroups-_w8BwzCC.js → matchGroups-C2_rxOIO.js} +3 -3
- package/esm/{matchGroups-_w8BwzCC.js.map → matchGroups-C2_rxOIO.js.map} +1 -1
- package/esm/redux.js +7 -7
- package/esm/routing.js +7 -7
- package/esm/{sagas-Fr9yRduO.js → sagas-BN4gNmmc.js} +10 -8
- package/esm/sagas-BN4gNmmc.js.map +1 -0
- package/esm/search.js +9 -9
- package/esm/{selectors-DcmvOeX2.js → selectors-D4ulaTom.js} +2 -2
- package/esm/{selectors-DcmvOeX2.js.map → selectors-D4ulaTom.js.map} +1 -1
- package/esm/{selectors-8ROQrTd7.js → selectors-Dj45vPZR.js} +21 -13
- package/esm/selectors-Dj45vPZR.js.map +1 -0
- package/esm/{store-B4IrBYHm.js → store-Cxe7mlLh.js} +16 -10
- package/esm/store-Cxe7mlLh.js.map +1 -0
- package/esm/user.js +5 -5
- package/esm/{util-Bl2u6LpY.js → util-DHWbLSvO.js} +6 -3
- package/esm/util-DHWbLSvO.js.map +1 -0
- package/esm/util.js +6 -6
- package/esm/{version-CA9Mdm3A.js → version-Cy-gb20a.js} +4 -4
- package/esm/{version-CA9Mdm3A.js.map → version-Cy-gb20a.js.map} +1 -1
- package/esm/{version-BQAL8sQO.js → version-hQnuV0n7.js} +3 -3
- package/esm/{version-BQAL8sQO.js.map → version-hQnuV0n7.js.map} +1 -1
- package/models/build/cli.d.ts +2 -0
- package/models/build/dev-server-runtime-globals.d.ts +1 -0
- package/models/build/dev-server.d.ts +12 -0
- package/models/i18n/redux/slice.d.ts +170 -60
- package/models/models/config/ServerConfig.d.ts +9 -0
- package/models/routing/redux/actions.d.ts +17 -1
- package/models/routing/redux/selectors.d.ts +4 -4
- package/models/routing/redux/types.d.ts +1 -1
- package/models/search/redux/sagas.d.ts +1 -1
- package/models/server/features/reverse-proxy/index.d.ts +3 -2
- package/models/server/util/getVersionInfo.d.ts +8 -0
- package/models/user/redux/sagas/login.d.ts +1 -1
- package/models/user/util/OidcUserManager.d.ts +2 -18
- package/models/util/ContensisDeliveryApi.d.ts +1 -1
- package/models/util/donotuse_useHistory.d.ts +3 -3
- package/models/util/env.d.ts +1 -0
- package/models/util/navigation.d.ts +1 -1
- package/package.json +53 -36
- package/cjs/App-Bg1MzW4V.js.map +0 -1
- package/cjs/ChangePassword.container-C4Du3Wb1.js.map +0 -1
- package/cjs/ContensisDeliveryApi-MfcvdfDR.js.map +0 -1
- package/cjs/RouteLoader-DJeM8cym.js.map +0 -1
- package/cjs/sagas-BCy9u6zA.js.map +0 -1
- package/cjs/selectors-BrxJ8-F8.js.map +0 -1
- package/cjs/store-B7SJs5Hf.js.map +0 -1
- package/cjs/util-eOjxDjxF.js.map +0 -1
- package/esm/App-Bplaqueq.js.map +0 -1
- package/esm/ChangePassword.container-CUBtn82K.js.map +0 -1
- package/esm/ContensisDeliveryApi-LWYXevZ1.js.map +0 -1
- package/esm/RouteLoader-CzrlySZf.js.map +0 -1
- package/esm/sagas-Fr9yRduO.js.map +0 -1
- package/esm/selectors-8ROQrTd7.js.map +0 -1
- package/esm/store-B4IrBYHm.js.map +0 -1
- package/esm/util-Bl2u6LpY.js.map +0 -1
|
@@ -18,76 +18,131 @@ declare const i18nSlice: import("@reduxjs/toolkit").Slice<{
|
|
|
18
18
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
19
19
|
error: Error | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
GET_ENTRY_URI_ERROR(draft:
|
|
21
|
+
GET_ENTRY_URI_ERROR(draft: {
|
|
22
22
|
currentLanguage: string;
|
|
23
|
-
dictionary:
|
|
23
|
+
dictionary: {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
};
|
|
24
26
|
locales: {
|
|
25
|
-
[
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
};
|
|
29
|
+
routes: {
|
|
30
|
+
[x: string]: {
|
|
31
|
+
[x: string]: string;
|
|
32
|
+
};
|
|
26
33
|
};
|
|
27
|
-
routes: LocaleRoutes;
|
|
28
34
|
primaryLanguage: string;
|
|
29
35
|
supportedLanguages: string[];
|
|
30
36
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
31
|
-
error:
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
error: {
|
|
38
|
+
name: string;
|
|
39
|
+
message: string;
|
|
40
|
+
stack?: string | undefined;
|
|
41
|
+
cause?: unknown;
|
|
42
|
+
} | undefined;
|
|
43
|
+
}, { payload }: PayloadAction<Error>): void;
|
|
44
|
+
INIT_LOCALES(draft: {
|
|
34
45
|
currentLanguage: string;
|
|
35
|
-
dictionary:
|
|
46
|
+
dictionary: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
};
|
|
36
49
|
locales: {
|
|
37
|
-
[
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
};
|
|
52
|
+
routes: {
|
|
53
|
+
[x: string]: {
|
|
54
|
+
[x: string]: string;
|
|
55
|
+
};
|
|
38
56
|
};
|
|
39
|
-
routes: LocaleRoutes;
|
|
40
57
|
primaryLanguage: string;
|
|
41
58
|
supportedLanguages: string[];
|
|
42
59
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
43
|
-
error:
|
|
44
|
-
|
|
60
|
+
error: {
|
|
61
|
+
name: string;
|
|
62
|
+
message: string;
|
|
63
|
+
stack?: string | undefined;
|
|
64
|
+
cause?: unknown;
|
|
65
|
+
} | undefined;
|
|
66
|
+
}, { payload, }: PayloadAction<{
|
|
45
67
|
locales: Locales;
|
|
46
68
|
routes: LocaleRoutes;
|
|
47
69
|
} & I18nAppConfig>): void;
|
|
48
|
-
SET_LANGUAGE(draft:
|
|
70
|
+
SET_LANGUAGE(draft: {
|
|
49
71
|
currentLanguage: string;
|
|
50
|
-
dictionary:
|
|
72
|
+
dictionary: {
|
|
73
|
+
[x: string]: any;
|
|
74
|
+
};
|
|
51
75
|
locales: {
|
|
52
|
-
[
|
|
76
|
+
[x: string]: any;
|
|
77
|
+
};
|
|
78
|
+
routes: {
|
|
79
|
+
[x: string]: {
|
|
80
|
+
[x: string]: string;
|
|
81
|
+
};
|
|
53
82
|
};
|
|
54
|
-
routes: LocaleRoutes;
|
|
55
83
|
primaryLanguage: string;
|
|
56
84
|
supportedLanguages: string[];
|
|
57
85
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
58
|
-
error:
|
|
59
|
-
|
|
86
|
+
error: {
|
|
87
|
+
name: string;
|
|
88
|
+
message: string;
|
|
89
|
+
stack?: string | undefined;
|
|
90
|
+
cause?: unknown;
|
|
91
|
+
} | undefined;
|
|
92
|
+
}, { payload, }: PayloadAction<{
|
|
60
93
|
language: string;
|
|
61
94
|
dictionary: LocaleDictionary;
|
|
62
95
|
redirect?: string;
|
|
63
96
|
}>): void;
|
|
64
|
-
SET_LOCALES(draft:
|
|
97
|
+
SET_LOCALES(draft: {
|
|
65
98
|
currentLanguage: string;
|
|
66
|
-
dictionary:
|
|
99
|
+
dictionary: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
};
|
|
67
102
|
locales: {
|
|
68
|
-
[
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
};
|
|
105
|
+
routes: {
|
|
106
|
+
[x: string]: {
|
|
107
|
+
[x: string]: string;
|
|
108
|
+
};
|
|
69
109
|
};
|
|
70
|
-
routes: LocaleRoutes;
|
|
71
110
|
primaryLanguage: string;
|
|
72
111
|
supportedLanguages: string[];
|
|
73
112
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
74
|
-
error:
|
|
75
|
-
|
|
113
|
+
error: {
|
|
114
|
+
name: string;
|
|
115
|
+
message: string;
|
|
116
|
+
stack?: string | undefined;
|
|
117
|
+
cause?: unknown;
|
|
118
|
+
} | undefined;
|
|
119
|
+
}, { payload, }: PayloadAction<{
|
|
76
120
|
locales: Locales;
|
|
77
121
|
} & I18nAppConfig>): void;
|
|
78
122
|
/** UPDATE_LANGUAGE action triggers updateLanguage saga and ends with SET_LANGUAGE */
|
|
79
|
-
UPDATE_LANGUAGE(_draft:
|
|
123
|
+
UPDATE_LANGUAGE(_draft: {
|
|
80
124
|
currentLanguage: string;
|
|
81
|
-
dictionary:
|
|
125
|
+
dictionary: {
|
|
126
|
+
[x: string]: any;
|
|
127
|
+
};
|
|
82
128
|
locales: {
|
|
83
|
-
[
|
|
129
|
+
[x: string]: any;
|
|
130
|
+
};
|
|
131
|
+
routes: {
|
|
132
|
+
[x: string]: {
|
|
133
|
+
[x: string]: string;
|
|
134
|
+
};
|
|
84
135
|
};
|
|
85
|
-
routes: LocaleRoutes;
|
|
86
136
|
primaryLanguage: string;
|
|
87
137
|
supportedLanguages: string[];
|
|
88
138
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
89
|
-
error:
|
|
90
|
-
|
|
139
|
+
error: {
|
|
140
|
+
name: string;
|
|
141
|
+
message: string;
|
|
142
|
+
stack?: string | undefined;
|
|
143
|
+
cause?: unknown;
|
|
144
|
+
} | undefined;
|
|
145
|
+
}, _: PayloadAction<UpdateLanguageActionPayload>): void;
|
|
91
146
|
}, "i18n", "i18n", import("@reduxjs/toolkit").SliceSelectors<{
|
|
92
147
|
currentLanguage: string;
|
|
93
148
|
dictionary: LocaleDictionary;
|
|
@@ -101,76 +156,131 @@ declare const i18nSlice: import("@reduxjs/toolkit").Slice<{
|
|
|
101
156
|
error: Error | undefined;
|
|
102
157
|
}>>;
|
|
103
158
|
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
104
|
-
GET_ENTRY_URI_ERROR(draft:
|
|
159
|
+
GET_ENTRY_URI_ERROR(draft: {
|
|
105
160
|
currentLanguage: string;
|
|
106
|
-
dictionary:
|
|
161
|
+
dictionary: {
|
|
162
|
+
[x: string]: any;
|
|
163
|
+
};
|
|
107
164
|
locales: {
|
|
108
|
-
[
|
|
165
|
+
[x: string]: any;
|
|
166
|
+
};
|
|
167
|
+
routes: {
|
|
168
|
+
[x: string]: {
|
|
169
|
+
[x: string]: string;
|
|
170
|
+
};
|
|
109
171
|
};
|
|
110
|
-
routes: LocaleRoutes;
|
|
111
172
|
primaryLanguage: string;
|
|
112
173
|
supportedLanguages: string[];
|
|
113
174
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
114
|
-
error:
|
|
115
|
-
|
|
116
|
-
|
|
175
|
+
error: {
|
|
176
|
+
name: string;
|
|
177
|
+
message: string;
|
|
178
|
+
stack?: string | undefined;
|
|
179
|
+
cause?: unknown;
|
|
180
|
+
} | undefined;
|
|
181
|
+
}, { payload }: PayloadAction<Error>): void;
|
|
182
|
+
INIT_LOCALES(draft: {
|
|
117
183
|
currentLanguage: string;
|
|
118
|
-
dictionary:
|
|
184
|
+
dictionary: {
|
|
185
|
+
[x: string]: any;
|
|
186
|
+
};
|
|
119
187
|
locales: {
|
|
120
|
-
[
|
|
188
|
+
[x: string]: any;
|
|
189
|
+
};
|
|
190
|
+
routes: {
|
|
191
|
+
[x: string]: {
|
|
192
|
+
[x: string]: string;
|
|
193
|
+
};
|
|
121
194
|
};
|
|
122
|
-
routes: LocaleRoutes;
|
|
123
195
|
primaryLanguage: string;
|
|
124
196
|
supportedLanguages: string[];
|
|
125
197
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
126
|
-
error:
|
|
127
|
-
|
|
198
|
+
error: {
|
|
199
|
+
name: string;
|
|
200
|
+
message: string;
|
|
201
|
+
stack?: string | undefined;
|
|
202
|
+
cause?: unknown;
|
|
203
|
+
} | undefined;
|
|
204
|
+
}, { payload, }: PayloadAction<{
|
|
128
205
|
locales: Locales;
|
|
129
206
|
routes: LocaleRoutes;
|
|
130
207
|
} & I18nAppConfig>): void;
|
|
131
|
-
SET_LANGUAGE(draft:
|
|
208
|
+
SET_LANGUAGE(draft: {
|
|
132
209
|
currentLanguage: string;
|
|
133
|
-
dictionary:
|
|
210
|
+
dictionary: {
|
|
211
|
+
[x: string]: any;
|
|
212
|
+
};
|
|
134
213
|
locales: {
|
|
135
|
-
[
|
|
214
|
+
[x: string]: any;
|
|
215
|
+
};
|
|
216
|
+
routes: {
|
|
217
|
+
[x: string]: {
|
|
218
|
+
[x: string]: string;
|
|
219
|
+
};
|
|
136
220
|
};
|
|
137
|
-
routes: LocaleRoutes;
|
|
138
221
|
primaryLanguage: string;
|
|
139
222
|
supportedLanguages: string[];
|
|
140
223
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
141
|
-
error:
|
|
142
|
-
|
|
224
|
+
error: {
|
|
225
|
+
name: string;
|
|
226
|
+
message: string;
|
|
227
|
+
stack?: string | undefined;
|
|
228
|
+
cause?: unknown;
|
|
229
|
+
} | undefined;
|
|
230
|
+
}, { payload, }: PayloadAction<{
|
|
143
231
|
language: string;
|
|
144
232
|
dictionary: LocaleDictionary;
|
|
145
233
|
redirect?: string;
|
|
146
234
|
}>): void;
|
|
147
|
-
SET_LOCALES(draft:
|
|
235
|
+
SET_LOCALES(draft: {
|
|
148
236
|
currentLanguage: string;
|
|
149
|
-
dictionary:
|
|
237
|
+
dictionary: {
|
|
238
|
+
[x: string]: any;
|
|
239
|
+
};
|
|
150
240
|
locales: {
|
|
151
|
-
[
|
|
241
|
+
[x: string]: any;
|
|
242
|
+
};
|
|
243
|
+
routes: {
|
|
244
|
+
[x: string]: {
|
|
245
|
+
[x: string]: string;
|
|
246
|
+
};
|
|
152
247
|
};
|
|
153
|
-
routes: LocaleRoutes;
|
|
154
248
|
primaryLanguage: string;
|
|
155
249
|
supportedLanguages: string[];
|
|
156
250
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
157
|
-
error:
|
|
158
|
-
|
|
251
|
+
error: {
|
|
252
|
+
name: string;
|
|
253
|
+
message: string;
|
|
254
|
+
stack?: string | undefined;
|
|
255
|
+
cause?: unknown;
|
|
256
|
+
} | undefined;
|
|
257
|
+
}, { payload, }: PayloadAction<{
|
|
159
258
|
locales: Locales;
|
|
160
259
|
} & I18nAppConfig>): void;
|
|
161
260
|
/** UPDATE_LANGUAGE action triggers updateLanguage saga and ends with SET_LANGUAGE */
|
|
162
|
-
UPDATE_LANGUAGE(_draft:
|
|
261
|
+
UPDATE_LANGUAGE(_draft: {
|
|
163
262
|
currentLanguage: string;
|
|
164
|
-
dictionary:
|
|
263
|
+
dictionary: {
|
|
264
|
+
[x: string]: any;
|
|
265
|
+
};
|
|
165
266
|
locales: {
|
|
166
|
-
[
|
|
267
|
+
[x: string]: any;
|
|
268
|
+
};
|
|
269
|
+
routes: {
|
|
270
|
+
[x: string]: {
|
|
271
|
+
[x: string]: string;
|
|
272
|
+
};
|
|
167
273
|
};
|
|
168
|
-
routes: LocaleRoutes;
|
|
169
274
|
primaryLanguage: string;
|
|
170
275
|
supportedLanguages: string[];
|
|
171
276
|
resolver: ((language: string) => Promise<LocaleDictionary> | LocaleDictionary) | undefined;
|
|
172
|
-
error:
|
|
173
|
-
|
|
277
|
+
error: {
|
|
278
|
+
name: string;
|
|
279
|
+
message: string;
|
|
280
|
+
stack?: string | undefined;
|
|
281
|
+
cause?: unknown;
|
|
282
|
+
} | undefined;
|
|
283
|
+
}, _: PayloadAction<UpdateLanguageActionPayload>): void;
|
|
174
284
|
}, "i18n">, reducer: import("../../../node_modules/redux").Reducer<{
|
|
175
285
|
currentLanguage: string;
|
|
176
286
|
dictionary: LocaleDictionary;
|
|
@@ -22,9 +22,14 @@ export type ServerConfig = AppConfig & {
|
|
|
22
22
|
*/
|
|
23
23
|
renderToString?: boolean;
|
|
24
24
|
scripts?: {
|
|
25
|
+
/** Custom attributes to include with rendered script tags */
|
|
25
26
|
attributes?: {
|
|
26
27
|
[key: string]: string;
|
|
27
28
|
};
|
|
29
|
+
/** Serve the "startup.js" script from a versioned alias
|
|
30
|
+
* - avoids caching issues when environment variables have changed
|
|
31
|
+
* - Example: `startup-${packagejson.version}.js`
|
|
32
|
+
*/
|
|
28
33
|
startup?: string;
|
|
29
34
|
};
|
|
30
35
|
staticFolderPath?: string;
|
|
@@ -32,6 +37,10 @@ export type ServerConfig = AppConfig & {
|
|
|
32
37
|
staticRoutePath?: string;
|
|
33
38
|
/** Additional static route paths */
|
|
34
39
|
staticRoutePaths?: string[];
|
|
40
|
+
styles?: {
|
|
41
|
+
/** Render inline style tags for CSS Modules in SSR (default: false) */
|
|
42
|
+
inline?: boolean;
|
|
43
|
+
};
|
|
35
44
|
stats?: string;
|
|
36
45
|
templates: {
|
|
37
46
|
html: string;
|
|
@@ -5,4 +5,20 @@ export declare const setNavigationPath: (path: string, contentPath: string, loca
|
|
|
5
5
|
export declare const setCurrentProject: (project: string, allowedGroups: any, hostname: string) => any;
|
|
6
6
|
export declare const setRoute: (path: string, state?: any) => any;
|
|
7
7
|
export declare const setRouteEntry: (entry: Entry) => any;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Represents a single API call record stored in Redux state.
|
|
10
|
+
* Used for SSR surrogate key tracking and performance metrics.
|
|
11
|
+
*/
|
|
12
|
+
export interface ApiMetrics {
|
|
13
|
+
context: 'ssr' | 'client';
|
|
14
|
+
statusCode: number;
|
|
15
|
+
contentLength?: number;
|
|
16
|
+
duration?: number;
|
|
17
|
+
url: string;
|
|
18
|
+
/** Only populated during SSR — meaningless client-side. */
|
|
19
|
+
surrogateKeys?: string[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Record API call metrics. Surrogate keys are only included during SSR.
|
|
23
|
+
*/
|
|
24
|
+
export declare const setApiMetrics: (metrics: ApiMetrics) => any;
|
|
@@ -17,18 +17,18 @@ export declare const selectCurrentPath: (state: AppState) => any;
|
|
|
17
17
|
export declare const selectCurrentLocation: (state: AppState) => any;
|
|
18
18
|
export declare const selectCurrentSearch: (state: AppState) => any;
|
|
19
19
|
export declare const selectCurrentHash: (state: AppState) => any;
|
|
20
|
-
export declare const selectQueryStringAsObject: ((state: AppState) =>
|
|
20
|
+
export declare const selectQueryStringAsObject: ((state: AppState) => import("query-string").ParsedQuery<string>) & {
|
|
21
21
|
clearCache: () => void;
|
|
22
22
|
resultsCount: () => number;
|
|
23
23
|
resetResultsCount: () => void;
|
|
24
24
|
} & {
|
|
25
|
-
resultFunc: (resultFuncArgs_0: any) =>
|
|
26
|
-
memoizedResultFunc: ((resultFuncArgs_0: any) =>
|
|
25
|
+
resultFunc: (resultFuncArgs_0: any) => import("query-string").ParsedQuery<string>;
|
|
26
|
+
memoizedResultFunc: ((resultFuncArgs_0: any) => import("query-string").ParsedQuery<string>) & {
|
|
27
27
|
clearCache: () => void;
|
|
28
28
|
resultsCount: () => number;
|
|
29
29
|
resetResultsCount: () => void;
|
|
30
30
|
};
|
|
31
|
-
lastResult: () =>
|
|
31
|
+
lastResult: () => import("query-string").ParsedQuery<string>;
|
|
32
32
|
dependencies: [(state: AppState) => any];
|
|
33
33
|
recomputations: () => number;
|
|
34
34
|
resetRecomputations: () => void;
|
|
@@ -4,7 +4,7 @@ export declare const SET_NODE = "@ROUTING/_SET_NODE";
|
|
|
4
4
|
export declare const SET_ANCESTORS = "@ROUTING/_SET_ANCESTORS";
|
|
5
5
|
export declare const SET_SIBLINGS = "@ROUTING/_SET_SIBLINGS";
|
|
6
6
|
export declare const SET_ENTRY_ID = "@ROUTING/_SET_ENTRY_ID";
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const SET_API_METRICS = "@ROUTING/_SET_API_METRICS";
|
|
8
8
|
export declare const SET_NAVIGATION_PATH = "@ROUTING/_SET_NAVIGATION_PATH";
|
|
9
9
|
export declare const SET_TARGET_PROJECT = "@ROUTING/_SET_TARGET_PROJECT";
|
|
10
10
|
export declare const SET_ROUTE = "@ROUTING/_SET_ROUTE";
|
|
@@ -5,7 +5,7 @@ export declare const searchSagas: import("redux-saga/effects").ForkEffect<never>
|
|
|
5
5
|
export declare function setRouteFilters(action: InitListingAction | SetRouteFiltersOptions): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<InitListingAction> | import("redux-saga/effects").CallEffect<void>, void, any>;
|
|
6
6
|
export declare function doSearch(action: TriggerSearchAction): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<InitListingAction> | import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
|
|
7
7
|
type: string;
|
|
8
|
-
config?: import("
|
|
8
|
+
config?: import("..").SearchFacet | import("..").Listing;
|
|
9
9
|
context: Context | string;
|
|
10
10
|
debug?: import("../models/SearchActions").DebugFlags;
|
|
11
11
|
defaultLang?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Express } from 'express';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import httpProxy from 'http-proxy';
|
|
3
|
+
export declare const assetProxy: httpProxy<import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>>;
|
|
4
|
+
export declare const deliveryProxy: httpProxy<import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>>;
|
|
4
5
|
declare const reverseProxies: (app: Express, reverseProxyPaths?: string[]) => void;
|
|
5
6
|
export default reverseProxies;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Arguably deprecated functionality driven by a version.json file
|
|
3
|
+
* injected into the container from the CI build process.
|
|
4
|
+
* This is used to provide version information for the application
|
|
5
|
+
* such as the commit id and the build number.
|
|
6
|
+
* @param staticFolderPath if the app is not built into the `dist/static` folder, we can provide a different path to the static folder.
|
|
7
|
+
* @returns version.json as a JSON object, or an empty object if the file cannot be read.
|
|
8
|
+
*/
|
|
1
9
|
export declare const getVersionInfo: (staticFolderPath: string) => any;
|
|
@@ -23,6 +23,6 @@ export declare function handleRequiresLoginSaga(action: any): Generator<import("
|
|
|
23
23
|
}>>, any, [any, any]>> | import("redux-saga/effects").PutEffect<{
|
|
24
24
|
type: string;
|
|
25
25
|
cookies: any;
|
|
26
|
-
securityToken:
|
|
26
|
+
securityToken: string | (string | null)[] | null;
|
|
27
27
|
}>, any, any>;
|
|
28
28
|
export declare function refreshSecurityToken(): Generator<any, void, unknown>;
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
import { UserManagerSettings } from 'oidc-client';
|
|
2
|
-
export declare const userManagerConfig:
|
|
3
|
-
authority: string;
|
|
4
|
-
client_id: string;
|
|
5
|
-
redirect_uri: string;
|
|
6
|
-
post_logout_redirect_uri: string;
|
|
7
|
-
response_type: string;
|
|
8
|
-
scope: string;
|
|
9
|
-
filterProtocolClaims: boolean;
|
|
10
|
-
} | {
|
|
11
|
-
authority?: undefined;
|
|
12
|
-
client_id?: undefined;
|
|
13
|
-
redirect_uri?: undefined;
|
|
14
|
-
post_logout_redirect_uri?: undefined;
|
|
15
|
-
response_type?: undefined;
|
|
16
|
-
scope?: undefined;
|
|
17
|
-
filterProtocolClaims?: undefined;
|
|
18
|
-
};
|
|
1
|
+
import type { UserManagerSettings } from 'oidc-client';
|
|
2
|
+
export declare const userManagerConfig: UserManagerSettings;
|
|
19
3
|
export declare const createUserManager: (config: UserManagerSettings) => Promise<import("oidc-client").UserManager | undefined>;
|
|
@@ -10,7 +10,7 @@ export declare class DeliveryApi {
|
|
|
10
10
|
cookies?: CookieObject;
|
|
11
11
|
ssr?: SSRContext;
|
|
12
12
|
constructor(ssr?: SSRContext);
|
|
13
|
-
getClientSideVersionStatus: () =>
|
|
13
|
+
getClientSideVersionStatus: () => string | (string | null)[] | null;
|
|
14
14
|
getServerSideVersionStatus: (request: Request) => "published" | "latest" | undefined;
|
|
15
15
|
getVersionStatusFromHeaders: (headers: IncomingHttpHeaders) => string | string[] | null;
|
|
16
16
|
getVersionStatusFromHostname: (currentHostname: string) => "published" | "latest";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @deprecated ponyfill for useHistory hook in react-router v5 removed in v6 */
|
|
2
2
|
export declare const useHistory: () => {
|
|
3
|
-
push: import("react-router
|
|
4
|
-
replace: import("react-router
|
|
5
|
-
location: import("react-router
|
|
3
|
+
push: import("react-router").NavigateFunction;
|
|
4
|
+
replace: import("react-router").NavigateFunction;
|
|
5
|
+
location: import("react-router").Location<any>;
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isSSR: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function queryParams(search: any):
|
|
1
|
+
export function queryParams(search: any): import("query-string").ParsedQuery<string>;
|
|
2
2
|
export function routeParams(staticRoute: any): any;
|
|
3
3
|
export function buildUrl(route: any, params: any): any;
|
|
4
4
|
export function clientHostname(): string;
|