@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
package/esm/search.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo, useEffect } from 'react';
|
|
2
2
|
import { connect, useDispatch, useSelector } from 'react-redux';
|
|
3
3
|
import { t as toJS } from './ToJs-BnRRHk6f.js';
|
|
4
|
-
import { w as withMappers, g as getTotalCount, a as getTabsAndFacets, b as getQueryParameter, c as getSelectedFilters, d as getSearchTotalCount, e as getSearchTerm, f as getResultsInfo, h as getResults, i as getPageIsLoading, j as getPaging, k as getIsLoading, l as getRenderableFilters, m as getFeaturedResults, n as getFacetTitles, o as getFacetsTotalCount, p as getTabFacets, q as getFacet, r as getCurrentTab, s as getPageIndex, t as getCurrentFacet, u as updateSortOrder, v as updateSelectedFilters, x as updateSearchTerm, y as updatePageSize, z as updatePageIndex, A as updateCurrentTab, B as updateCurrentFacet, C as clearFilters, D as selectListing, E as triggerSearch, F as Context$1, G as getFilters, U as UPDATE_SORT_ORDER, H as UPDATE_SELECTED_FILTERS, I as UPDATE_SEARCH_TERM, J as UPDATE_PAGE_SIZE, K as UPDATE_PAGE_INDEX, S as SET_SEARCH_FILTERS, L as SET_SEARCH_ENTRIES, M as SET_ROUTE_FILTERS, N as LOAD_FILTERS_COMPLETE, O as LOAD_FILTERS_ERROR, P as LOAD_FILTERS, Q as EXECUTE_SEARCH_ERROR, R as EXECUTE_SEARCH, T as CLEAR_FILTERS, V as APPLY_CONFIG } from './sagas-
|
|
5
|
-
export { W as actions, a1 as doSearch, Z as expressions, _ as queries, a3 as sagas, X as selectors, a2 as setRouteFilters, a4 as triggerListingSsr, a5 as triggerMinilistSsr, a6 as triggerSearchSsr, Y as types, $ as useFacets, a0 as useListing } from './sagas-
|
|
4
|
+
import { w as withMappers, g as getTotalCount, a as getTabsAndFacets, b as getQueryParameter, c as getSelectedFilters, d as getSearchTotalCount, e as getSearchTerm, f as getResultsInfo, h as getResults, i as getPageIsLoading, j as getPaging, k as getIsLoading, l as getRenderableFilters, m as getFeaturedResults, n as getFacetTitles, o as getFacetsTotalCount, p as getTabFacets, q as getFacet, r as getCurrentTab, s as getPageIndex, t as getCurrentFacet, u as updateSortOrder, v as updateSelectedFilters, x as updateSearchTerm, y as updatePageSize, z as updatePageIndex, A as updateCurrentTab, B as updateCurrentFacet, C as clearFilters, D as selectListing, E as triggerSearch, F as Context$1, G as getFilters, U as UPDATE_SORT_ORDER, H as UPDATE_SELECTED_FILTERS, I as UPDATE_SEARCH_TERM, J as UPDATE_PAGE_SIZE, K as UPDATE_PAGE_INDEX, S as SET_SEARCH_FILTERS, L as SET_SEARCH_ENTRIES, M as SET_ROUTE_FILTERS, N as LOAD_FILTERS_COMPLETE, O as LOAD_FILTERS_ERROR, P as LOAD_FILTERS, Q as EXECUTE_SEARCH_ERROR, R as EXECUTE_SEARCH, T as CLEAR_FILTERS, V as APPLY_CONFIG } from './sagas-BroWtJz8.js';
|
|
5
|
+
export { W as actions, a1 as doSearch, Z as expressions, _ as queries, a3 as sagas, X as selectors, a2 as setRouteFilters, a4 as triggerListingSsr, a5 as triggerMinilistSsr, a6 as triggerSearchSsr, Y as types, $ as useFacets, a0 as useListing } from './sagas-BroWtJz8.js';
|
|
6
6
|
import { createSelector } from 'reselect';
|
|
7
7
|
import { produce, current } from 'immer';
|
|
8
8
|
import equals from 'deep-equal';
|
|
@@ -43,4 +43,4 @@ export type QueryParams = SearchQueryOptions & {
|
|
|
43
43
|
selectedFilters: SearchParams;
|
|
44
44
|
};
|
|
45
45
|
export type SearchQuery = ({ aggregations, contentTypeIds, customWhere, dynamicOrderBy, excludeIds, featuredResults, fields, filters, fuzzySearch, languages, pageSize, pageIndex, omitDefaultSearchFields, orderBy, searchTerm, versionStatus, webpageTemplates, weightedSearchFields, }: SearchQueryOptions, isFeatured?: boolean) => Query;
|
|
46
|
-
export type FilterQuery = (contentTypeIds: string[], languages: string[], versionStatus: VersionStatus, customWhere?: CustomWhereClause) => Query;
|
|
46
|
+
export type FilterQuery = (contentTypeIds: string[], languages: string[], versionStatus: VersionStatus, customWhere?: CustomWhereClause, pageSize?: number) => Query;
|
|
@@ -65,6 +65,8 @@ export type SearchFilter = {
|
|
|
65
65
|
contentTypeId?: string | string[];
|
|
66
66
|
/** An array of CustomWhereClause to include in the search query when dynamically loading entries via the contentTypeId key */
|
|
67
67
|
customWhere?: CustomWhereClause;
|
|
68
|
+
/** Max number of items returned when providing `contentTypeId`, default is 100 */
|
|
69
|
+
pageSize?: number;
|
|
68
70
|
/** Use this to set a specific value to render for the initial / unselected option in this filter */
|
|
69
71
|
defaultValue?: string;
|
|
70
72
|
/** The content type field id(s) we will apply selected filter keys to, so we can filter the list of returned results. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.55",
|
|
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.",
|