@zengenti/contensis-react-base 4.0.1-beta.4 → 4.0.1-beta.6
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-BPOOl6WT.js → App-B4lM6agZ.js} +12 -12
- package/cjs/{App-BPOOl6WT.js.map → App-B4lM6agZ.js.map} +1 -1
- package/cjs/{ChangePassword.container-C4Du3Wb1.js → ChangePassword.container-BoqpDiwG.js} +7 -5
- package/cjs/ChangePassword.container-BoqpDiwG.js.map +1 -0
- package/cjs/{ContensisDeliveryApi-MfcvdfDR.js → ContensisDeliveryApi-DK6h38qF.js} +3 -3
- package/cjs/ContensisDeliveryApi-DK6h38qF.js.map +1 -0
- package/cjs/{RouteLoader-DJeM8cym.js → RouteLoader-BiOaN1UR.js} +4 -4
- package/cjs/{RouteLoader-DJeM8cym.js.map → RouteLoader-BiOaN1UR.js.map} +1 -1
- package/cjs/{SSRContext-tMufQDHY.js → SSRContext-CLXEw_2_.js} +2 -2
- package/cjs/{SSRContext-tMufQDHY.js.map → SSRContext-CLXEw_2_.js.map} +1 -1
- package/cjs/{VersionInfo-zFPsvS8q.js → VersionInfo-CpP1IGb1.js} +3 -3
- package/cjs/{VersionInfo-zFPsvS8q.js.map → VersionInfo-CpP1IGb1.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 +13 -13
- package/cjs/dev-server-globals.js +21 -0
- package/cjs/dev-server-globals.js.map +1 -0
- package/cjs/{matchGroups-dqONU-vY.js → matchGroups-DLmGn1r9.js} +2 -2
- package/cjs/{matchGroups-dqONU-vY.js.map → matchGroups-DLmGn1r9.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-QxP64pWP.js} +8 -6
- package/cjs/sagas-QxP64pWP.js.map +1 -0
- package/cjs/search.js +6 -6
- package/cjs/{selectors-BrxJ8-F8.js → selectors-Q46vKF5x.js} +8 -9
- package/cjs/selectors-Q46vKF5x.js.map +1 -0
- package/cjs/{store-B7SJs5Hf.js → store-KMrEU1xg.js} +2 -2
- package/cjs/{store-B7SJs5Hf.js.map → store-KMrEU1xg.js.map} +1 -1
- package/cjs/user.js +3 -3
- package/cjs/{util-eOjxDjxF.js → util-DN9QA3ad.js} +5 -2
- package/cjs/util-DN9QA3ad.js.map +1 -0
- package/cjs/util.js +6 -6
- package/cjs/{version-rFG9Y6_B.js → version-CeiM6ens.js} +2 -2
- package/cjs/{version-rFG9Y6_B.js.map → version-CeiM6ens.js.map} +1 -1
- package/cjs/{version-yjHMrfVz.js → version-YZhB8Qpj.js} +3 -3
- package/cjs/{version-yjHMrfVz.js.map → version-YZhB8Qpj.js.map} +1 -1
- package/esm/{App-CXpRkfiq.js → App-B4DZvIeM.js} +13 -13
- package/esm/{App-CXpRkfiq.js.map → App-B4DZvIeM.js.map} +1 -1
- package/esm/{ChangePassword.container-CUBtn82K.js → ChangePassword.container-DtqL0Qfl.js} +8 -6
- package/esm/ChangePassword.container-DtqL0Qfl.js.map +1 -0
- package/esm/{ContensisDeliveryApi-LWYXevZ1.js → ContensisDeliveryApi-Bunv_SAl.js} +3 -3
- package/esm/ContensisDeliveryApi-Bunv_SAl.js.map +1 -0
- package/esm/{RouteLoader-CzrlySZf.js → RouteLoader-DUIGFY9l.js} +7 -7
- package/esm/{RouteLoader-CzrlySZf.js.map → RouteLoader-DUIGFY9l.js.map} +1 -1
- package/esm/{SSRContext-Bxtg1KGv.js → SSRContext-DR0HqYeN.js} +2 -2
- package/esm/{SSRContext-Bxtg1KGv.js.map → SSRContext-DR0HqYeN.js.map} +1 -1
- package/esm/{VersionInfo-By2ZCZOh.js → VersionInfo-CYROPZ_C.js} +6 -6
- package/esm/{VersionInfo-By2ZCZOh.js.map → VersionInfo-CYROPZ_C.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 +15 -15
- 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-DOA5huT8.js} +3 -3
- package/esm/{matchGroups-_w8BwzCC.js.map → matchGroups-DOA5huT8.js.map} +1 -1
- package/esm/redux.js +7 -7
- package/esm/routing.js +7 -7
- package/esm/{sagas-Fr9yRduO.js → sagas-ihPDAPBT.js} +10 -8
- package/esm/sagas-ihPDAPBT.js.map +1 -0
- package/esm/search.js +9 -9
- package/esm/{selectors-8ROQrTd7.js → selectors-CWU-QA6Y.js} +7 -4
- package/esm/selectors-CWU-QA6Y.js.map +1 -0
- package/esm/{selectors-DcmvOeX2.js → selectors-D4ulaTom.js} +2 -2
- package/esm/{selectors-DcmvOeX2.js.map → selectors-D4ulaTom.js.map} +1 -1
- package/esm/{store-B4IrBYHm.js → store-D2EkBct5.js} +3 -3
- package/esm/{store-B4IrBYHm.js.map → store-D2EkBct5.js.map} +1 -1
- package/esm/user.js +5 -5
- package/esm/{util-Bl2u6LpY.js → util-C6G2Ax0o.js} +6 -3
- package/esm/util-C6G2Ax0o.js.map +1 -0
- package/esm/util.js +6 -6
- package/esm/{version-BQAL8sQO.js → version-D5HlSpAe.js} +3 -3
- package/esm/{version-BQAL8sQO.js.map → version-D5HlSpAe.js.map} +1 -1
- package/esm/{version-CA9Mdm3A.js → version-D_MNGWLg.js} +4 -4
- package/esm/{version-CA9Mdm3A.js.map → version-D_MNGWLg.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/routing/redux/selectors.d.ts +4 -4
- 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/util/ContensisDeliveryApi.d.ts +1 -1
- package/models/util/donotuse_useHistory.d.ts +3 -3
- package/models/util/navigation.d.ts +1 -1
- package/package.json +34 -26
- package/cjs/ChangePassword.container-C4Du3Wb1.js.map +0 -1
- package/cjs/ContensisDeliveryApi-MfcvdfDR.js.map +0 -1
- package/cjs/sagas-BCy9u6zA.js.map +0 -1
- package/cjs/selectors-BrxJ8-F8.js.map +0 -1
- package/cjs/util-eOjxDjxF.js.map +0 -1
- package/esm/ChangePassword.container-CUBtn82K.js.map +0 -1
- package/esm/ContensisDeliveryApi-LWYXevZ1.js.map +0 -1
- package/esm/sagas-Fr9yRduO.js.map +0 -1
- package/esm/selectors-8ROQrTd7.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;
|
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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
|
};
|
|
@@ -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,23 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "4.0.1-beta.
|
|
3
|
+
"version": "4.0.1-beta.6",
|
|
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",
|
|
22
28
|
"devDependencies": {
|
|
23
29
|
"@babel/core": "^7.28.0",
|
|
@@ -27,11 +33,11 @@
|
|
|
27
33
|
"@babel/preset-env": "^7.28.0",
|
|
28
34
|
"@babel/preset-react": "^7.27.1",
|
|
29
35
|
"@babel/preset-typescript": "^7.27.1",
|
|
30
|
-
"@eslint/js": "^9.
|
|
36
|
+
"@eslint/js": "^9.39.4",
|
|
31
37
|
"@loadable/babel-plugin": "^5.16.1",
|
|
32
|
-
"@rollup/plugin-alias": "^
|
|
33
|
-
"@rollup/plugin-babel": "^
|
|
34
|
-
"@rollup/plugin-commonjs": "^
|
|
38
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
39
|
+
"@rollup/plugin-babel": "^7.0.0",
|
|
40
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
35
41
|
"@rollup/plugin-json": "^6.1.0",
|
|
36
42
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
37
43
|
"@types/babel__core": "^7.20.5",
|
|
@@ -42,37 +48,39 @@
|
|
|
42
48
|
"@types/loadable__component": "^5.13.10",
|
|
43
49
|
"@types/loadable__server": "^5.12.11",
|
|
44
50
|
"@types/node": "^20.17.8",
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/react": "^18.3.23",
|
|
51
|
+
"@types/react": "^18.3.29",
|
|
47
52
|
"@types/react-dom": "^18.3.7",
|
|
53
|
+
"@types/webpack": "^5.28.0",
|
|
54
|
+
"@types/webpack-dev-server": "^4.7.0",
|
|
48
55
|
"@types/webpack-env": "^1.18.8",
|
|
49
56
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
50
57
|
"babel-plugin-styled-components": "^2.1.4",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
58
|
+
"cac": "^7.0.0",
|
|
59
|
+
"cross-env": "^10.1.0",
|
|
60
|
+
"eslint": "^9.39.4",
|
|
53
61
|
"eslint-config-prettier": "^10.1.8",
|
|
54
62
|
"eslint-plugin-import": "^2.32.0",
|
|
55
63
|
"eslint-plugin-prettier": "^5.5.3",
|
|
56
64
|
"eslint-plugin-react": "^7.37.5",
|
|
57
|
-
"eslint-plugin-react-hooks": "^
|
|
65
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
58
66
|
"fs-extra": "^11.2.0",
|
|
59
|
-
"globals": "^
|
|
67
|
+
"globals": "^17.6.0",
|
|
60
68
|
"prettier": "^3.6.2",
|
|
61
69
|
"rimraf": "^6.0.1",
|
|
62
|
-
"rollup": "^4.
|
|
70
|
+
"rollup": "^4.60.4",
|
|
63
71
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
64
|
-
"ts-patch": "^
|
|
65
|
-
"typescript": "^
|
|
66
|
-
"typescript-eslint": "^8.
|
|
67
|
-
"typescript-transform-paths": "^
|
|
72
|
+
"ts-patch": "^4.0.1",
|
|
73
|
+
"typescript": "^6.0.3",
|
|
74
|
+
"typescript-eslint": "^8.59.4",
|
|
75
|
+
"typescript-transform-paths": "^4.0.0"
|
|
68
76
|
},
|
|
69
77
|
"dependencies": {
|
|
70
78
|
"@loadable/component": "^5.16.7",
|
|
71
79
|
"@loadable/server": "^5.16.7",
|
|
72
|
-
"@reduxjs/toolkit": "^2.
|
|
80
|
+
"@reduxjs/toolkit": "^2.12.0",
|
|
73
81
|
"app-root-path": "^3.1.0",
|
|
74
82
|
"await-to-js": "^3.0.0",
|
|
75
|
-
"chalk": "^
|
|
83
|
+
"chalk": "^5.6.2",
|
|
76
84
|
"contensis-delivery-api": "^1.6.1",
|
|
77
85
|
"contensis-management-api": "^2.4.0",
|
|
78
86
|
"custom-env": "^2.0.6",
|
|
@@ -81,8 +89,8 @@
|
|
|
81
89
|
"express": "^5.1.0",
|
|
82
90
|
"history": "^5.3.0",
|
|
83
91
|
"http-proxy": "^1.18.1",
|
|
84
|
-
"immer": "^
|
|
85
|
-
"immutable": "4.
|
|
92
|
+
"immer": "^11.1.8",
|
|
93
|
+
"immutable": "^4.3.8",
|
|
86
94
|
"isomorphic-fetch": "^3.0.0",
|
|
87
95
|
"jsonpath-mapper": "^2.0.3",
|
|
88
96
|
"lodash": "^4.18.1",
|
|
@@ -91,14 +99,14 @@
|
|
|
91
99
|
"minify-css-string": "^1.0.0",
|
|
92
100
|
"minimist": "^1.2.8",
|
|
93
101
|
"oidc-client": "^1.11.5",
|
|
94
|
-
"query-string": "^
|
|
102
|
+
"query-string": "^7.1.3",
|
|
95
103
|
"react": "^18.3.1",
|
|
96
104
|
"react-cookie": "^8.0.1",
|
|
97
105
|
"react-dom": "^18.3.1",
|
|
98
106
|
"react-helmet": "^6.1.0",
|
|
99
107
|
"react-helmet-async": "^2.0.5",
|
|
100
108
|
"react-loadable": "^5.5.0",
|
|
101
|
-
"react-redux": "^9.
|
|
109
|
+
"react-redux": "^9.3.0",
|
|
102
110
|
"react-router-dom": "^6.30.3",
|
|
103
111
|
"react-router-hash-link": "^2.4.3",
|
|
104
112
|
"redux": "^5.0.1",
|
|
@@ -106,9 +114,9 @@
|
|
|
106
114
|
"redux-injectors-19": "^1.0.1",
|
|
107
115
|
"redux-saga": "^1.3.0",
|
|
108
116
|
"redux-thunk": "^3.1.0",
|
|
109
|
-
"reselect": "^5.
|
|
117
|
+
"reselect": "^5.2.0",
|
|
110
118
|
"serialize-javascript": "^7.0.5",
|
|
111
|
-
"styled-components": "^6.4.
|
|
119
|
+
"styled-components": "^6.4.2",
|
|
112
120
|
"universal-cookie-express": "^8.0.1",
|
|
113
121
|
"xxhashjs": "^0.2.2"
|
|
114
122
|
}
|