@zengenti/contensis-react-base 3.3.1 → 3.3.2-beta.0
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/contensis-react-base.js +3 -3655
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/sagas-Cw3Nu9eE.js +5818 -0
- package/cjs/sagas-Cw3Nu9eE.js.map +1 -0
- package/cjs/search.js +32 -16
- package/cjs/search.js.map +1 -1
- package/esm/contensis-react-base.js +2 -3654
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/sagas-DHsYghyI.js +5724 -0
- package/esm/sagas-DHsYghyI.js.map +1 -0
- package/esm/search.js +32 -16
- package/esm/search.js.map +1 -1
- package/models/search/models/Queries.d.ts +3 -2
- package/models/search/models/Search.d.ts +3 -1
- package/models/search/models/SearchActions.d.ts +3 -2
- package/models/search/models/SearchState.d.ts +5 -1
- package/models/search/redux/reducers.d.ts +2 -257
- package/models/search/redux/schema.d.ts +1 -1
- package/models/search/redux/selectors.d.ts +5 -5
- package/models/search/search/ToJs.d.ts +1 -1
- package/models/search/search/expressions.d.ts +3 -3
- package/models/search/search/util.d.ts +17 -2
- package/models/server/features/linkdepth-api/search.d.ts +1 -1
- package/models/util/CachedDeliveryApi.d.ts +1 -1
- package/models/util/ContensisDeliveryApi.d.ts +1 -1
- package/models/util/SSRContext.d.ts +1 -1
- package/package.json +7 -11
- package/cjs/sagas-DFdRjqSX.js +0 -2089
- package/cjs/sagas-DFdRjqSX.js.map +0 -1
- package/esm/sagas-waBQR0Ek.js +0 -1996
- package/esm/sagas-waBQR0Ek.js.map +0 -1
|
@@ -1,267 +1,12 @@
|
|
|
1
1
|
import { SearchConfig } from '../models/Search';
|
|
2
2
|
import { Context } from '../models/Enums';
|
|
3
3
|
import { SearchState } from '../models/SearchState';
|
|
4
|
-
declare const _default: (config: SearchConfig) =>
|
|
5
|
-
readonly context: "facets" | "listings" | "minilist";
|
|
6
|
-
readonly currentFacet: string;
|
|
7
|
-
readonly currentListing: string;
|
|
8
|
-
readonly term: string;
|
|
9
|
-
readonly facets: {
|
|
10
|
-
readonly [x: string]: {
|
|
11
|
-
readonly entries: {
|
|
12
|
-
readonly isLoading: boolean;
|
|
13
|
-
readonly isError: boolean;
|
|
14
|
-
readonly error?: any;
|
|
15
|
-
};
|
|
16
|
-
readonly featuredEntries: {
|
|
17
|
-
readonly isLoading: boolean;
|
|
18
|
-
readonly isError: boolean;
|
|
19
|
-
readonly error?: any;
|
|
20
|
-
};
|
|
21
|
-
readonly featuredResults: readonly any[];
|
|
22
|
-
readonly filters: {
|
|
23
|
-
readonly [x: string]: {
|
|
24
|
-
readonly contentTypeId?: string | undefined;
|
|
25
|
-
readonly customWhere?: readonly ({
|
|
26
|
-
readonly [x: string]: any;
|
|
27
|
-
readonly field: string;
|
|
28
|
-
} | {
|
|
29
|
-
readonly not: {
|
|
30
|
-
readonly [x: string]: any;
|
|
31
|
-
readonly field: string;
|
|
32
|
-
};
|
|
33
|
-
} | {
|
|
34
|
-
readonly and: readonly {
|
|
35
|
-
readonly [x: string]: any;
|
|
36
|
-
readonly field: string;
|
|
37
|
-
}[];
|
|
38
|
-
} | {
|
|
39
|
-
readonly or: readonly {
|
|
40
|
-
readonly [x: string]: any;
|
|
41
|
-
readonly field: string;
|
|
42
|
-
}[];
|
|
43
|
-
})[] | undefined;
|
|
44
|
-
readonly defaultValue?: string | undefined;
|
|
45
|
-
readonly fieldId?: string | undefined;
|
|
46
|
-
readonly isGrouped?: boolean | undefined;
|
|
47
|
-
readonly isSingleSelect?: boolean | undefined;
|
|
48
|
-
readonly isLoading: boolean;
|
|
49
|
-
readonly isError: boolean;
|
|
50
|
-
readonly items?: readonly {
|
|
51
|
-
readonly contentTypeId?: string | undefined;
|
|
52
|
-
readonly title?: string | undefined;
|
|
53
|
-
readonly type?: string | undefined;
|
|
54
|
-
readonly key: string;
|
|
55
|
-
readonly path?: string | undefined;
|
|
56
|
-
readonly isSelected: boolean;
|
|
57
|
-
}[] | undefined;
|
|
58
|
-
readonly path?: string | undefined;
|
|
59
|
-
readonly renderable?: boolean | undefined;
|
|
60
|
-
readonly title?: string | undefined;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
readonly pagingInfo: {
|
|
64
|
-
readonly isLoading: boolean;
|
|
65
|
-
readonly pageCount: number;
|
|
66
|
-
readonly pageSize: number;
|
|
67
|
-
readonly pageIndex: number;
|
|
68
|
-
readonly pagesLoaded: readonly number[];
|
|
69
|
-
readonly prevPageIndex: number;
|
|
70
|
-
readonly totalCount: number;
|
|
71
|
-
};
|
|
72
|
-
readonly preloaded: boolean;
|
|
73
|
-
readonly projectId: string;
|
|
74
|
-
readonly queryDuration: number;
|
|
75
|
-
readonly queryParams: {
|
|
76
|
-
readonly contentTypeIds: readonly string[];
|
|
77
|
-
readonly dynamicOrderBy: readonly string[];
|
|
78
|
-
readonly pageSize: number;
|
|
79
|
-
readonly excludeIds: readonly string[];
|
|
80
|
-
readonly internalPaging: boolean;
|
|
81
|
-
readonly loadMorePaging: boolean;
|
|
82
|
-
readonly useSearchTerm: boolean;
|
|
83
|
-
};
|
|
84
|
-
readonly results: readonly any[];
|
|
85
|
-
readonly tabId: number;
|
|
86
|
-
readonly title: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
readonly listings: {
|
|
90
|
-
readonly [x: string]: {
|
|
91
|
-
readonly entries: {
|
|
92
|
-
readonly isLoading: boolean;
|
|
93
|
-
readonly isError: boolean;
|
|
94
|
-
readonly error?: any;
|
|
95
|
-
};
|
|
96
|
-
readonly featuredEntries: {
|
|
97
|
-
readonly isLoading: boolean;
|
|
98
|
-
readonly isError: boolean;
|
|
99
|
-
readonly error?: any;
|
|
100
|
-
};
|
|
101
|
-
readonly featuredResults: readonly any[];
|
|
102
|
-
readonly filters: {
|
|
103
|
-
readonly [x: string]: {
|
|
104
|
-
readonly contentTypeId?: string | undefined;
|
|
105
|
-
readonly customWhere?: readonly ({
|
|
106
|
-
readonly [x: string]: any;
|
|
107
|
-
readonly field: string;
|
|
108
|
-
} | {
|
|
109
|
-
readonly not: {
|
|
110
|
-
readonly [x: string]: any;
|
|
111
|
-
readonly field: string;
|
|
112
|
-
};
|
|
113
|
-
} | {
|
|
114
|
-
readonly and: readonly {
|
|
115
|
-
readonly [x: string]: any;
|
|
116
|
-
readonly field: string;
|
|
117
|
-
}[];
|
|
118
|
-
} | {
|
|
119
|
-
readonly or: readonly {
|
|
120
|
-
readonly [x: string]: any;
|
|
121
|
-
readonly field: string;
|
|
122
|
-
}[];
|
|
123
|
-
})[] | undefined;
|
|
124
|
-
readonly defaultValue?: string | undefined;
|
|
125
|
-
readonly fieldId?: string | undefined;
|
|
126
|
-
readonly isGrouped?: boolean | undefined;
|
|
127
|
-
readonly isSingleSelect?: boolean | undefined;
|
|
128
|
-
readonly isLoading: boolean;
|
|
129
|
-
readonly isError: boolean;
|
|
130
|
-
readonly items?: readonly {
|
|
131
|
-
readonly contentTypeId?: string | undefined;
|
|
132
|
-
readonly title?: string | undefined;
|
|
133
|
-
readonly type?: string | undefined;
|
|
134
|
-
readonly key: string;
|
|
135
|
-
readonly path?: string | undefined;
|
|
136
|
-
readonly isSelected: boolean;
|
|
137
|
-
}[] | undefined;
|
|
138
|
-
readonly path?: string | undefined;
|
|
139
|
-
readonly renderable?: boolean | undefined;
|
|
140
|
-
readonly title?: string | undefined;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
readonly pagingInfo: {
|
|
144
|
-
readonly isLoading: boolean;
|
|
145
|
-
readonly pageCount: number;
|
|
146
|
-
readonly pageSize: number;
|
|
147
|
-
readonly pageIndex: number;
|
|
148
|
-
readonly pagesLoaded: readonly number[];
|
|
149
|
-
readonly prevPageIndex: number;
|
|
150
|
-
readonly totalCount: number;
|
|
151
|
-
};
|
|
152
|
-
readonly preloaded: boolean;
|
|
153
|
-
readonly projectId: string;
|
|
154
|
-
readonly queryDuration: number;
|
|
155
|
-
readonly queryParams: {
|
|
156
|
-
readonly contentTypeIds: readonly string[];
|
|
157
|
-
readonly dynamicOrderBy: readonly string[];
|
|
158
|
-
readonly pageSize: number;
|
|
159
|
-
readonly excludeIds: readonly string[];
|
|
160
|
-
readonly internalPaging: boolean;
|
|
161
|
-
readonly loadMorePaging: boolean;
|
|
162
|
-
readonly useSearchTerm: boolean;
|
|
163
|
-
};
|
|
164
|
-
readonly results: readonly any[];
|
|
165
|
-
readonly tabId: number;
|
|
166
|
-
readonly title: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
readonly minilist: {
|
|
170
|
-
readonly [x: string]: {
|
|
171
|
-
readonly entries: {
|
|
172
|
-
readonly isLoading: boolean;
|
|
173
|
-
readonly isError: boolean;
|
|
174
|
-
readonly error?: any;
|
|
175
|
-
};
|
|
176
|
-
readonly featuredEntries: {
|
|
177
|
-
readonly isLoading: boolean;
|
|
178
|
-
readonly isError: boolean;
|
|
179
|
-
readonly error?: any;
|
|
180
|
-
};
|
|
181
|
-
readonly featuredResults: readonly any[];
|
|
182
|
-
readonly filters: {
|
|
183
|
-
readonly [x: string]: {
|
|
184
|
-
readonly contentTypeId?: string | undefined;
|
|
185
|
-
readonly customWhere?: readonly ({
|
|
186
|
-
readonly [x: string]: any;
|
|
187
|
-
readonly field: string;
|
|
188
|
-
} | {
|
|
189
|
-
readonly not: {
|
|
190
|
-
readonly [x: string]: any;
|
|
191
|
-
readonly field: string;
|
|
192
|
-
};
|
|
193
|
-
} | {
|
|
194
|
-
readonly and: readonly {
|
|
195
|
-
readonly [x: string]: any;
|
|
196
|
-
readonly field: string;
|
|
197
|
-
}[];
|
|
198
|
-
} | {
|
|
199
|
-
readonly or: readonly {
|
|
200
|
-
readonly [x: string]: any;
|
|
201
|
-
readonly field: string;
|
|
202
|
-
}[];
|
|
203
|
-
})[] | undefined;
|
|
204
|
-
readonly defaultValue?: string | undefined;
|
|
205
|
-
readonly fieldId?: string | undefined;
|
|
206
|
-
readonly isGrouped?: boolean | undefined;
|
|
207
|
-
readonly isSingleSelect?: boolean | undefined;
|
|
208
|
-
readonly isLoading: boolean;
|
|
209
|
-
readonly isError: boolean;
|
|
210
|
-
readonly items?: readonly {
|
|
211
|
-
readonly contentTypeId?: string | undefined;
|
|
212
|
-
readonly title?: string | undefined;
|
|
213
|
-
readonly type?: string | undefined;
|
|
214
|
-
readonly key: string;
|
|
215
|
-
readonly path?: string | undefined;
|
|
216
|
-
readonly isSelected: boolean;
|
|
217
|
-
}[] | undefined;
|
|
218
|
-
readonly path?: string | undefined;
|
|
219
|
-
readonly renderable?: boolean | undefined;
|
|
220
|
-
readonly title?: string | undefined;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
readonly pagingInfo: {
|
|
224
|
-
readonly isLoading: boolean;
|
|
225
|
-
readonly pageCount: number;
|
|
226
|
-
readonly pageSize: number;
|
|
227
|
-
readonly pageIndex: number;
|
|
228
|
-
readonly pagesLoaded: readonly number[];
|
|
229
|
-
readonly prevPageIndex: number;
|
|
230
|
-
readonly totalCount: number;
|
|
231
|
-
};
|
|
232
|
-
readonly preloaded: boolean;
|
|
233
|
-
readonly projectId: string;
|
|
234
|
-
readonly queryDuration: number;
|
|
235
|
-
readonly queryParams: {
|
|
236
|
-
readonly contentTypeIds: readonly string[];
|
|
237
|
-
readonly dynamicOrderBy: readonly string[];
|
|
238
|
-
readonly pageSize: number;
|
|
239
|
-
readonly excludeIds: readonly string[];
|
|
240
|
-
readonly internalPaging: boolean;
|
|
241
|
-
readonly loadMorePaging: boolean;
|
|
242
|
-
readonly useSearchTerm: boolean;
|
|
243
|
-
};
|
|
244
|
-
readonly results: readonly any[];
|
|
245
|
-
readonly tabId: number;
|
|
246
|
-
readonly title: string;
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
readonly tabs: readonly {
|
|
250
|
-
readonly currentFacet: string;
|
|
251
|
-
readonly defaultFacet: string;
|
|
252
|
-
readonly id: number;
|
|
253
|
-
readonly label: string;
|
|
254
|
-
readonly totalCount: number;
|
|
255
|
-
}[];
|
|
256
|
-
readonly config: {
|
|
257
|
-
readonly [x: string]: boolean;
|
|
258
|
-
};
|
|
259
|
-
}>(base?: Base | undefined, action: {
|
|
4
|
+
declare const _default: (config: SearchConfig) => (state?: SearchState | undefined, action: {
|
|
260
5
|
[key: string]: any;
|
|
261
6
|
context: keyof typeof Context;
|
|
262
7
|
facet: string;
|
|
263
8
|
params: {
|
|
264
9
|
[key: string]: string;
|
|
265
10
|
};
|
|
266
|
-
}) =>
|
|
11
|
+
}) => SearchState;
|
|
267
12
|
export default _default;
|
|
@@ -49,7 +49,7 @@ export declare const searchTab: {
|
|
|
49
49
|
label: undefined;
|
|
50
50
|
totalCount: string;
|
|
51
51
|
};
|
|
52
|
-
export declare const filtering: Omit<Filter, "
|
|
52
|
+
export declare const filtering: Omit<Filter, "items" | "customWhere"> & {
|
|
53
53
|
customWhere?: CustomWhereClause[] | undefined;
|
|
54
54
|
items?: FilterItem[] | undefined;
|
|
55
55
|
};
|
|
@@ -40,10 +40,10 @@ export declare const getTotalCount: (state: AppState, current?: string, context?
|
|
|
40
40
|
export declare const getSearchTerm: (state: AppState) => string;
|
|
41
41
|
export declare const getSearchTabs: (state: AppState, returnType?: StateType) => Tab[];
|
|
42
42
|
export declare const getQueryParams: (state: AppState, current?: string, context?: Context) => Record<string, any>;
|
|
43
|
-
export declare const getQueryParameter: <K extends keyof SearchQueryParams, K2 extends "
|
|
43
|
+
export declare const getQueryParameter: <K extends keyof SearchQueryParams, K2 extends "projectId" | "linkDepth" | "internalPaging" | "loadMorePaging" | keyof import("../models/Queries").SearchQueryOptions | "env" | "internalPageIndex" | "pagesLoaded" | "prevPageIndex" | "selectedFilters">({ state, facet, context, }: {
|
|
44
44
|
state: AppState;
|
|
45
|
-
facet?: string
|
|
46
|
-
context?: Context
|
|
45
|
+
facet?: string;
|
|
46
|
+
context?: Context;
|
|
47
47
|
}, key: K | K2, ifnull?: any) => SearchQueryParams[K] | QueryParams2[K2];
|
|
48
48
|
export declare const getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType) => CustomApi;
|
|
49
49
|
export declare const getCustomEnv: (state: AppState, current: string, context?: Context) => any;
|
|
@@ -76,7 +76,7 @@ export declare const selectFacets: {
|
|
|
76
76
|
getQueryParams: (state: AppState, facet: string) => Record<string, any>;
|
|
77
77
|
getQueryParameter: ({ state, facet }: {
|
|
78
78
|
state: AppState;
|
|
79
|
-
facet?: string
|
|
79
|
+
facet?: string;
|
|
80
80
|
}, key: keyof SearchQueryParams | keyof QueryParams2, ifnull: any) => any;
|
|
81
81
|
getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
|
|
82
82
|
getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType) => any[];
|
|
@@ -105,7 +105,7 @@ export declare const selectListing: {
|
|
|
105
105
|
getQueryParams: (state: AppState, listing?: string) => Record<string, any>;
|
|
106
106
|
getQueryParameter: ({ state, facet }: {
|
|
107
107
|
state: AppState;
|
|
108
|
-
facet?: string
|
|
108
|
+
facet?: string;
|
|
109
109
|
}, key: keyof SearchQueryParams | keyof QueryParams2, ifnull: any) => any;
|
|
110
110
|
getRenderableFilters: (state: AppState, listing?: string) => Filters;
|
|
111
111
|
getResults: (state: AppState, listing?: string) => any[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const toJS: <Props extends {
|
|
3
3
|
[key: string]: any;
|
|
4
|
-
}>(WrappedComponent: React.
|
|
4
|
+
}>(WrappedComponent: (props: Props) => React.JSX.Element) => (wrappedComponentProps: Props) => React.JSX.Element;
|
|
@@ -6,9 +6,9 @@ export declare const contentTypeIdExpression: (contentTypeIds: string[], webpage
|
|
|
6
6
|
export declare const filterExpressions: (filters: FilterExpression[], isOptional?: boolean) => IExpression[];
|
|
7
7
|
export declare const dataFormatExpression: (contentTypeIds: string[], dataFormat?: string) => ILogicalExpression[];
|
|
8
8
|
export declare const featuredResultsExpression: ({ contentTypeId, fieldId, fieldValue, }?: {
|
|
9
|
-
contentTypeId?: string | string[]
|
|
10
|
-
fieldId?: string | string[]
|
|
11
|
-
fieldValue?: boolean
|
|
9
|
+
contentTypeId?: string | string[];
|
|
10
|
+
fieldId?: string | string[];
|
|
11
|
+
fieldValue?: boolean;
|
|
12
12
|
}) => IExpression[];
|
|
13
13
|
export declare const languagesExpression: (languages: string[]) => IExpression[];
|
|
14
14
|
export declare const includeInSearchExpressions: (webpageTemplates: string[], includeInSearchFields: string[]) => IExpression[];
|
|
@@ -3,6 +3,21 @@ import { PagedList, Query } from 'contensis-core-api';
|
|
|
3
3
|
import { CustomApi } from '../models/Search';
|
|
4
4
|
import { TimedSearchResponse } from '../models/SearchUtil';
|
|
5
5
|
export declare function fixFreeTextForElastic(s: string): string;
|
|
6
|
+
/** `convertKeyForAggregation` and `parseKeyForAggregation` exists to prevent an
|
|
7
|
+
* auto-generated aggregation using a reserved keyword because Elasticsearch has a list of
|
|
8
|
+
* reserved keywords when it parses the response:
|
|
9
|
+
* `'location' is one of the reserved aggregation keywords we use a heuristics based
|
|
10
|
+
* response parser and using these reserved keywords could throw its heuristics off
|
|
11
|
+
* course. We are working on a solution in Elasticsearch itself to make the response
|
|
12
|
+
* parseable. For now these are all the reserved keywords: after_key, _as_string,
|
|
13
|
+
* bg_count, bottom_right, bounds, buckets, count, doc_count, doc_count_error_upper_bound,
|
|
14
|
+
* fields, from, top, type, from_as_string, hits, key, key_as_string, keys, location,
|
|
15
|
+
* max_score, meta, min, min_length, score, sum_other_doc_count, to, to_as_string, top_left,
|
|
16
|
+
* total, value, value_as_string, values, geometry, properties`
|
|
17
|
+
*/
|
|
18
|
+
export declare const convertKeyForAggregation: (key: string) => string;
|
|
19
|
+
export declare const parseKeyForAggregation: (key: string) => string;
|
|
20
|
+
export declare const convertFieldIdForAggregation: (fieldId: string) => string;
|
|
6
21
|
export declare const timedSearch: (query: Query, linkDepth?: number, projectId?: string, env?: string) => Promise<null | TimedSearchResponse>;
|
|
7
22
|
export declare const getItemsFromResult: (result?: {
|
|
8
23
|
duration: number;
|
|
@@ -24,8 +39,8 @@ export declare const routeParams: (staticRoute?: any, location?: {
|
|
|
24
39
|
[key: string]: any;
|
|
25
40
|
pathname: string;
|
|
26
41
|
search: string;
|
|
27
|
-
hash?: string
|
|
28
|
-
}
|
|
42
|
+
hash?: string;
|
|
43
|
+
}) => any;
|
|
29
44
|
export declare const callCustomApi: <T>(customApi: CustomApi, filters: {
|
|
30
45
|
[key: string]: string;
|
|
31
46
|
}) => Promise<T>;
|
|
@@ -6,7 +6,7 @@ type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
|
6
6
|
type SearchQueryArgs = WithOptional<SearchQueryOptions & {
|
|
7
7
|
idFilters?: SearchQueryOptions['filters'];
|
|
8
8
|
sharedFilters?: SearchQueryOptions['filters'];
|
|
9
|
-
}, 'assetTypes' | 'customWhere' | 'dynamicOrderBy' | 'excludeIds' | 'featuredResults' | 'fieldLinkDepths' | 'fields' | 'includeInSearchFields' | 'languages' | 'omitDefaultSearchFields' | 'orderBy' | 'pageIndex' | 'searchTerm' | 'webpageTemplates' | 'weightedSearchFields'>;
|
|
9
|
+
}, 'aggregations' | 'assetTypes' | 'customWhere' | 'dynamicOrderBy' | 'excludeIds' | 'featuredResults' | 'fieldLinkDepths' | 'fields' | 'includeInSearchFields' | 'languages' | 'omitDefaultSearchFields' | 'orderBy' | 'pageIndex' | 'searchTerm' | 'webpageTemplates' | 'weightedSearchFields'>;
|
|
10
10
|
/**
|
|
11
11
|
* Builds our complete Delivery API Query object from a set of provided arguments
|
|
12
12
|
* @param queryParams
|
|
@@ -10,7 +10,7 @@ declare class CachedSearch {
|
|
|
10
10
|
ssr?: SSRContext;
|
|
11
11
|
constructor(ssr?: SSRContext);
|
|
12
12
|
getClient(...args: Parameters<DeliveryApi['getClient']>): Client;
|
|
13
|
-
search(query: Query, linkDepth?: number, project?: string): Promise<import("contensis-core-api").
|
|
13
|
+
search(query: Query, linkDepth?: number, project?: string): Promise<import("contensis-core-api").PagedSearchList<import("contensis-delivery-api").Entry>>;
|
|
14
14
|
searchUsingPost(query: Query, linkDepth?: number, project?: string): any;
|
|
15
15
|
get(id: string, linkDepth?: number, versionStatus?: VersionStatus, project?: string, fields?: string[]): Promise<import("contensis-delivery-api").Entry>;
|
|
16
16
|
getContentType(id: string, project?: string): Promise<import("contensis-core-api").ContentType>;
|
|
@@ -17,7 +17,7 @@ export declare class DeliveryApi {
|
|
|
17
17
|
getServerSideVersionStatus: (request: Request) => string | string[] | import("qs").ParsedQs | import("qs").ParsedQs[];
|
|
18
18
|
getVersionStatusFromHeaders: (headers: IncomingHttpHeaders) => string | string[] | null;
|
|
19
19
|
getVersionStatusFromHostname: (currentHostname: string) => "published" | "latest";
|
|
20
|
-
search: (query: Query, linkDepth?: number, project?: string) => Promise<import("contensis-core-api").
|
|
20
|
+
search: (query: Query, linkDepth?: number, project?: string) => Promise<import("contensis-core-api").PagedSearchList<import("contensis-delivery-api").Entry>>;
|
|
21
21
|
getClient: (versionStatus?: VersionStatus, project?: string) => Client;
|
|
22
22
|
getEntry: (id: string, linkDepth?: number, versionStatus?: VersionStatus, project?: string) => Promise<import("contensis-delivery-api").Entry>;
|
|
23
23
|
}
|
|
@@ -16,7 +16,7 @@ export declare const useDeliveryApi: () => {
|
|
|
16
16
|
cookies?: import("../user/util/CookieConstants").CookieObject | undefined;
|
|
17
17
|
ssr?: import("./ContensisDeliveryApi").SSRContext | undefined;
|
|
18
18
|
getClient(versionStatus?: import("contensis-core-api").VersionStatus | undefined, project?: string | undefined): import("contensis-delivery-api").Client;
|
|
19
|
-
search(query: import("contensis-core-api").Query, linkDepth?: number, project?: string | undefined): Promise<import("contensis-core-api").
|
|
19
|
+
search(query: import("contensis-core-api").Query, linkDepth?: number, project?: string | undefined): Promise<import("contensis-core-api").PagedSearchList<import("contensis-delivery-api").Entry>>;
|
|
20
20
|
searchUsingPost(query: import("contensis-core-api").Query, linkDepth?: number, project?: string): any;
|
|
21
21
|
get(id: string, linkDepth?: number, versionStatus?: import("contensis-core-api").VersionStatus, project?: string | undefined, fields?: string[] | undefined): Promise<import("contensis-delivery-api").Entry>;
|
|
22
22
|
getContentType(id: string, project?: string | undefined): Promise<import("contensis-core-api").ContentType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2-beta.0",
|
|
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.",
|
|
@@ -9,13 +9,11 @@
|
|
|
9
9
|
"types": "models",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"start": "npm run roll:watch",
|
|
12
|
-
"
|
|
13
|
-
"build": "npm
|
|
14
|
-
"build:lib": "npm i zengenti-search-package zengenti-forms-package && npm run build",
|
|
12
|
+
"build": "npm run clean:lib && tspc && npm run roll:lib",
|
|
13
|
+
"build:lib": "npm i -D zengenti-forms-package && npm run build",
|
|
15
14
|
"roll:lib": "cross-env NODE_ENV=production rollup --bundleConfigAsCjs -c rollup/rollup.config.lib.js",
|
|
16
15
|
"roll:watch": "cross-env NODE_ENV=production rollup --bundleConfigAsCjs -c rollup/rollup.config.lib.js --watch",
|
|
17
16
|
"clean:lib": "rimraf ./models && rimraf ./esm && rimraf ./cjs",
|
|
18
|
-
"copymodels": "copyfiles --up 3 --follow \"./node_modules/zengenti-search-package/models/**/*\" models/search --verbose",
|
|
19
17
|
"lint": "eslint ./src",
|
|
20
18
|
"lint:fix": "eslint --fix ./src"
|
|
21
19
|
},
|
|
@@ -39,6 +37,7 @@
|
|
|
39
37
|
"@rollup/plugin-json": "^6.1.0",
|
|
40
38
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
41
39
|
"@types/babel__core": "^7.20.5",
|
|
40
|
+
"@types/deep-equal": "^1.0.4",
|
|
42
41
|
"@types/eslint__js": "^8.42.3",
|
|
43
42
|
"@types/events": "^3.0.3",
|
|
44
43
|
"@types/express": "^4.17.21",
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
"@types/webpack-env": "^1.18.5",
|
|
56
55
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
57
56
|
"babel-plugin-styled-components": "^2.1.4",
|
|
58
|
-
"copyfiles": "^2.4.1",
|
|
59
57
|
"cross-env": "^7.0.3",
|
|
60
58
|
"eslint": "^9.15.0",
|
|
61
59
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -73,8 +71,7 @@
|
|
|
73
71
|
"typescript": "5.4",
|
|
74
72
|
"typescript-eslint": "^8.16.0",
|
|
75
73
|
"typescript-transform-paths": "^3.5.2",
|
|
76
|
-
"zengenti-forms-package": "git+https://gitlab+deploy-token-11:DRbTWzdaRzkjDWc_VixQ@gitlab.zengenti.com/zengenti-packages/forms.git#next"
|
|
77
|
-
"zengenti-search-package": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#immer"
|
|
74
|
+
"zengenti-forms-package": "git+https://gitlab+deploy-token-11:DRbTWzdaRzkjDWc_VixQ@gitlab.zengenti.com/zengenti-packages/forms.git#next"
|
|
78
75
|
},
|
|
79
76
|
"dependencies": {
|
|
80
77
|
"@hot-loader/react-dom": "^17.0.2",
|
|
@@ -83,9 +80,8 @@
|
|
|
83
80
|
"app-root-path": "^3.1.0",
|
|
84
81
|
"await-to-js": "^3.0.0",
|
|
85
82
|
"chalk": "^4.1.2",
|
|
86
|
-
"contensis-delivery-api": "^1.
|
|
87
|
-
"contensis-management-api": "^2.
|
|
88
|
-
"cross-fetch": "3.1.8",
|
|
83
|
+
"contensis-delivery-api": "^1.6.0",
|
|
84
|
+
"contensis-management-api": "^2.3.0",
|
|
89
85
|
"custom-env": "^2.0.6",
|
|
90
86
|
"deep-equal": "^2.2.3",
|
|
91
87
|
"deepmerge": "^4.3.1",
|