@zengenti/contensis-react-base 4.0.1-beta.1 → 4.0.1-beta.10
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 +27 -23
- 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 +29 -25
- 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/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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,88 +1,104 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "4.0.1-beta.
|
|
3
|
+
"version": "4.0.1-beta.10",
|
|
4
4
|
"repository": "https://github.com/zengenti/contensis-react-base",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "Turbocharge your React web apps with Contensis. This package handles all dependencies for creating full featured web apps in React with Contensis and Site View. Routing is driven by Site View, Redux is used for global state management and server-side rendering (SSR) is handled for you. Also taking care of intricate hosting issues such as cache invalidation and supporting authenticated content where required.",
|
|
7
7
|
"main": "cjs/contensis-react-base.js",
|
|
8
8
|
"module": "esm/contensis-react-base.js",
|
|
9
9
|
"types": "models",
|
|
10
|
+
"bin": {
|
|
11
|
+
"crb": "./cjs/build.js"
|
|
12
|
+
},
|
|
10
13
|
"scripts": {
|
|
11
14
|
"start": "npm run roll:watch",
|
|
12
15
|
"build": "npm run clean:lib && tspc && npm run roll:lib",
|
|
13
|
-
"roll:lib": "cross-env NODE_ENV=production rollup
|
|
14
|
-
"roll:watch": "cross-env NODE_ENV=production rollup
|
|
16
|
+
"roll:lib": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.lib.mjs",
|
|
17
|
+
"roll:watch": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.lib.mjs --watch",
|
|
15
18
|
"clean:lib": "rimraf ./models && rimraf ./esm && rimraf ./cjs",
|
|
16
19
|
"lint": "eslint ./src",
|
|
17
20
|
"lint:fix": "eslint --fix ./src",
|
|
18
21
|
"package-lock": "npm i --package-lock-only --workspaces false"
|
|
19
22
|
},
|
|
20
23
|
"keywords": [],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20.19.0"
|
|
26
|
+
},
|
|
21
27
|
"author": "http://Zengenti.com",
|
|
28
|
+
"overrides": {
|
|
29
|
+
"flatted": ">=3.4.2",
|
|
30
|
+
"follow-redirects": ">=1.16.0",
|
|
31
|
+
"path-to-regexp": ">=8.4.0",
|
|
32
|
+
"serialize-javascript": "^7.0.5",
|
|
33
|
+
"uuid": ">=11.1.1"
|
|
34
|
+
},
|
|
22
35
|
"devDependencies": {
|
|
23
|
-
"@babel/core": "^7.
|
|
36
|
+
"@babel/core": "^7.29.0",
|
|
24
37
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
25
38
|
"@babel/plugin-transform-export-namespace-from": "^7.27.1",
|
|
26
|
-
"@babel/plugin-transform-optional-chaining": "^7.
|
|
27
|
-
"@babel/preset-env": "^7.
|
|
28
|
-
"@babel/preset-react": "^7.
|
|
29
|
-
"@babel/preset-typescript": "^7.
|
|
30
|
-
"@eslint/js": "^9.
|
|
39
|
+
"@babel/plugin-transform-optional-chaining": "^7.28.6",
|
|
40
|
+
"@babel/preset-env": "^7.29.5",
|
|
41
|
+
"@babel/preset-react": "^7.28.5",
|
|
42
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
43
|
+
"@eslint/js": "^9.39.4",
|
|
31
44
|
"@loadable/babel-plugin": "^5.16.1",
|
|
32
|
-
"@rollup/plugin-alias": "^
|
|
33
|
-
"@rollup/plugin-babel": "^
|
|
34
|
-
"@rollup/plugin-commonjs": "^
|
|
45
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
46
|
+
"@rollup/plugin-babel": "^7.0.0",
|
|
47
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
35
48
|
"@rollup/plugin-json": "^6.1.0",
|
|
36
49
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
37
50
|
"@types/babel__core": "^7.20.5",
|
|
38
51
|
"@types/deep-equal": "^1.0.4",
|
|
39
52
|
"@types/events": "^3.0.3",
|
|
40
|
-
"@types/express": "^5.0.
|
|
53
|
+
"@types/express": "^5.0.6",
|
|
54
|
+
"@types/http-proxy": "^1.17.17",
|
|
41
55
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
42
56
|
"@types/loadable__component": "^5.13.10",
|
|
43
57
|
"@types/loadable__server": "^5.12.11",
|
|
44
|
-
"@types/node": "^20.
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/react": "^18.3.23",
|
|
58
|
+
"@types/node": "^20.19.41",
|
|
59
|
+
"@types/react": "^18.3.29",
|
|
47
60
|
"@types/react-dom": "^18.3.7",
|
|
61
|
+
"@types/webpack": "^5.28.5",
|
|
62
|
+
"@types/webpack-dev-server": "^4.7.2",
|
|
48
63
|
"@types/webpack-env": "^1.18.8",
|
|
49
|
-
"babel-plugin-module-resolver": "^5.0.
|
|
64
|
+
"babel-plugin-module-resolver": "^5.0.3",
|
|
50
65
|
"babel-plugin-styled-components": "^2.1.4",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
66
|
+
"cac": "^7.0.0",
|
|
67
|
+
"cross-env": "^10.1.0",
|
|
68
|
+
"eslint": "^9.39.4",
|
|
53
69
|
"eslint-config-prettier": "^10.1.8",
|
|
54
70
|
"eslint-plugin-import": "^2.32.0",
|
|
55
71
|
"eslint-plugin-prettier": "^5.5.3",
|
|
56
72
|
"eslint-plugin-react": "^7.37.5",
|
|
57
|
-
"eslint-plugin-react-hooks": "^
|
|
73
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
58
74
|
"fs-extra": "^11.2.0",
|
|
59
|
-
"globals": "^
|
|
75
|
+
"globals": "^17.6.0",
|
|
60
76
|
"prettier": "^3.6.2",
|
|
61
|
-
"rimraf": "^6.
|
|
62
|
-
"rollup": "^4.
|
|
77
|
+
"rimraf": "^6.1.3",
|
|
78
|
+
"rollup": "^4.60.4",
|
|
63
79
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
64
|
-
"ts-patch": "^
|
|
65
|
-
"typescript": "^
|
|
66
|
-
"typescript-eslint": "^8.
|
|
67
|
-
"typescript-transform-paths": "^
|
|
80
|
+
"ts-patch": "^4.0.1",
|
|
81
|
+
"typescript": "^6.0.3",
|
|
82
|
+
"typescript-eslint": "^8.59.4",
|
|
83
|
+
"typescript-transform-paths": "^4.0.0"
|
|
68
84
|
},
|
|
69
85
|
"dependencies": {
|
|
70
86
|
"@loadable/component": "^5.16.7",
|
|
71
87
|
"@loadable/server": "^5.16.7",
|
|
72
|
-
"@reduxjs/toolkit": "^2.
|
|
88
|
+
"@reduxjs/toolkit": "^2.12.0",
|
|
73
89
|
"app-root-path": "^3.1.0",
|
|
74
90
|
"await-to-js": "^3.0.0",
|
|
75
|
-
"chalk": "^
|
|
91
|
+
"chalk": "^5.6.2",
|
|
76
92
|
"contensis-delivery-api": "^1.6.1",
|
|
77
93
|
"contensis-management-api": "^2.4.0",
|
|
78
94
|
"custom-env": "^2.0.6",
|
|
79
95
|
"deep-equal": "^2.2.3",
|
|
80
96
|
"deepmerge": "^4.3.1",
|
|
81
|
-
"express": "^5.1
|
|
97
|
+
"express": "^5.2.1",
|
|
82
98
|
"history": "^5.3.0",
|
|
83
99
|
"http-proxy": "^1.18.1",
|
|
84
|
-
"immer": "^
|
|
85
|
-
"immutable": "4.
|
|
100
|
+
"immer": "^11.1.8",
|
|
101
|
+
"immutable": "^4.3.8",
|
|
86
102
|
"isomorphic-fetch": "^3.0.0",
|
|
87
103
|
"jsonpath-mapper": "^2.0.3",
|
|
88
104
|
"lodash": "^4.18.1",
|
|
@@ -91,14 +107,15 @@
|
|
|
91
107
|
"minify-css-string": "^1.0.0",
|
|
92
108
|
"minimist": "^1.2.8",
|
|
93
109
|
"oidc-client": "^1.11.5",
|
|
94
|
-
"
|
|
110
|
+
"path-to-regexp": ">=8.4.0",
|
|
111
|
+
"query-string": "^7.1.3",
|
|
95
112
|
"react": "^18.3.1",
|
|
96
113
|
"react-cookie": "^8.0.1",
|
|
97
114
|
"react-dom": "^18.3.1",
|
|
98
115
|
"react-helmet": "^6.1.0",
|
|
99
116
|
"react-helmet-async": "^2.0.5",
|
|
100
117
|
"react-loadable": "^5.5.0",
|
|
101
|
-
"react-redux": "^9.
|
|
118
|
+
"react-redux": "^9.3.0",
|
|
102
119
|
"react-router-dom": "^6.30.3",
|
|
103
120
|
"react-router-hash-link": "^2.4.3",
|
|
104
121
|
"redux": "^5.0.1",
|
|
@@ -106,9 +123,9 @@
|
|
|
106
123
|
"redux-injectors-19": "^1.0.1",
|
|
107
124
|
"redux-saga": "^1.3.0",
|
|
108
125
|
"redux-thunk": "^3.1.0",
|
|
109
|
-
"reselect": "^5.
|
|
126
|
+
"reselect": "^5.2.0",
|
|
110
127
|
"serialize-javascript": "^7.0.5",
|
|
111
|
-
"styled-components": "^6.4.
|
|
128
|
+
"styled-components": "^6.4.2",
|
|
112
129
|
"universal-cookie-express": "^8.0.1",
|
|
113
130
|
"xxhashjs": "^0.2.2"
|
|
114
131
|
}
|