@zengenti/contensis-react-base 4.0.0-beta.53 → 4.0.0-beta.55
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-CFT_UyKL.js → App-QnCN3CvZ.js} +2 -2
- package/cjs/{App-CFT_UyKL.js.map → App-QnCN3CvZ.js.map} +1 -1
- package/cjs/client.js +2 -2
- package/cjs/contensis-react-base.js +3 -4
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/{sagas-D07lHYaB.js → sagas-BhtMwNPv.js} +6 -5
- package/cjs/sagas-BhtMwNPv.js.map +1 -0
- package/cjs/search.js +1 -1
- package/esm/{App-D57F6aKP.js → App-BdJAKTT9.js} +2 -2
- package/esm/{App-D57F6aKP.js.map → App-BdJAKTT9.js.map} +1 -1
- package/esm/client.js +3 -3
- package/esm/contensis-react-base.js +4 -5
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/{sagas-BZXCxsop.js → sagas-BroWtJz8.js} +6 -5
- package/esm/sagas-BroWtJz8.js.map +1 -0
- package/esm/search.js +2 -2
- package/models/search/models/Queries.d.ts +1 -1
- package/models/search/models/Search.d.ts +2 -0
- package/models/search/models/SearchState.d.ts +1 -0
- package/package.json +1 -1
- package/cjs/sagas-D07lHYaB.js.map +0 -1
- package/esm/sagas-BZXCxsop.js.map +0 -1
|
@@ -1331,10 +1331,10 @@ var expressions = /*#__PURE__*/Object.freeze({
|
|
|
1331
1331
|
termExpressions: termExpressions
|
|
1332
1332
|
});
|
|
1333
1333
|
|
|
1334
|
-
const filterQuery = (contentTypeIds, languages, versionStatus, customWhere) => {
|
|
1334
|
+
const filterQuery = (contentTypeIds, languages, versionStatus, customWhere, pageSize = 100) => {
|
|
1335
1335
|
const query = new contensisCoreApi.Query(...[...contentTypeIdExpression(contentTypeIds), ...languagesExpression(languages), ...defaultExpressions(versionStatus), ...customWhereExpressions(customWhere)]);
|
|
1336
1336
|
query.orderBy = contensisCoreApi.OrderBy.asc(Fields.entryTitle);
|
|
1337
|
-
query.pageSize =
|
|
1337
|
+
query.pageSize = pageSize;
|
|
1338
1338
|
return query;
|
|
1339
1339
|
};
|
|
1340
1340
|
const searchQuery = ({
|
|
@@ -5066,7 +5066,7 @@ const facetTemplate = {
|
|
|
5066
5066
|
state,
|
|
5067
5067
|
action
|
|
5068
5068
|
}) => {
|
|
5069
|
-
const aggregations = 'aggregations' in result.payload ? result.payload.aggregations : undefined;
|
|
5069
|
+
const aggregations = result.payload && 'aggregations' in result.payload ? result.payload.aggregations : undefined;
|
|
5070
5070
|
if (!aggregations) return {};
|
|
5071
5071
|
|
|
5072
5072
|
// Handle aggregations client-side where the filter items have loaded
|
|
@@ -5816,6 +5816,7 @@ function* loadFilter(action) {
|
|
|
5816
5816
|
const {
|
|
5817
5817
|
contentTypeId,
|
|
5818
5818
|
customWhere,
|
|
5819
|
+
pageSize,
|
|
5819
5820
|
path
|
|
5820
5821
|
} = filter;
|
|
5821
5822
|
const createStateFrom = {
|
|
@@ -5832,7 +5833,7 @@ function* loadFilter(action) {
|
|
|
5832
5833
|
try {
|
|
5833
5834
|
if (contentTypeId) {
|
|
5834
5835
|
const versionStatus = yield effects.select(version.selectVersionStatus);
|
|
5835
|
-
const query = filterQuery(Array.isArray(contentTypeId) ? contentTypeId : [contentTypeId], languages, versionStatus, customWhere);
|
|
5836
|
+
const query = filterQuery(Array.isArray(contentTypeId) ? contentTypeId : [contentTypeId], languages, versionStatus, customWhere, pageSize);
|
|
5836
5837
|
const payload = yield api.search(query, 0, projectId);
|
|
5837
5838
|
if (!payload) throw new Error('No payload returned by search');
|
|
5838
5839
|
if (payload.type === 'error') throw payload;
|
|
@@ -6159,4 +6160,4 @@ exports.updateSortOrder = updateSortOrder$1;
|
|
|
6159
6160
|
exports.useFacets = useFacets;
|
|
6160
6161
|
exports.useListing = useListing;
|
|
6161
6162
|
exports.withMappers = withMappers;
|
|
6162
|
-
//# sourceMappingURL=sagas-
|
|
6163
|
+
//# sourceMappingURL=sagas-BhtMwNPv.js.map
|