@zengenti/contensis-react-base 3.0.0-beta.37 → 3.0.0-beta.38
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.
|
@@ -50,6 +50,8 @@ export declare type SearchFilter = {
|
|
|
50
50
|
contentTypeId?: string | string[];
|
|
51
51
|
/** An array of CustomWhereClause to include in the search query when dynamically loading entries via the contentTypeId key */
|
|
52
52
|
customWhere?: CustomWhereClause;
|
|
53
|
+
/** Use this to set a specific value to render for the initial / unselected option in this filter */
|
|
54
|
+
defaultValue?: string;
|
|
53
55
|
/** The content type field we will apply the filter key to, to filter the list of returned results. */
|
|
54
56
|
fieldId: string | string[];
|
|
55
57
|
/** The Delivery API search operator we will use to filter the list of returned results. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from './Enums';
|
|
2
2
|
import { CustomWhereClause } from './Search';
|
|
3
|
-
export declare type AppState = Record<'search', SearchState>;
|
|
3
|
+
export declare type AppState = Record<'search', SearchState> & Record<string, any>;
|
|
4
4
|
export declare type SearchState = {
|
|
5
5
|
context: keyof typeof Context;
|
|
6
6
|
currentFacet: string;
|
|
@@ -58,6 +58,7 @@ export declare type Filters = {
|
|
|
58
58
|
export declare type Filter = {
|
|
59
59
|
contentTypeId?: string;
|
|
60
60
|
customWhere?: CustomWhereClause;
|
|
61
|
+
defaultValue?: string;
|
|
61
62
|
fieldId?: string;
|
|
62
63
|
isGrouped?: boolean;
|
|
63
64
|
isSingleSelect?: boolean;
|
|
@@ -41,6 +41,7 @@ declare const _default: (config: SearchConfig) => <Base extends {
|
|
|
41
41
|
readonly field: string;
|
|
42
42
|
}[];
|
|
43
43
|
})[] | undefined;
|
|
44
|
+
readonly defaultValue?: string | undefined;
|
|
44
45
|
readonly fieldId?: string | undefined;
|
|
45
46
|
readonly isGrouped?: boolean | undefined;
|
|
46
47
|
readonly isSingleSelect?: boolean | undefined;
|
|
@@ -119,6 +120,7 @@ declare const _default: (config: SearchConfig) => <Base extends {
|
|
|
119
120
|
readonly field: string;
|
|
120
121
|
}[];
|
|
121
122
|
})[] | undefined;
|
|
123
|
+
readonly defaultValue?: string | undefined;
|
|
122
124
|
readonly fieldId?: string | undefined;
|
|
123
125
|
readonly isGrouped?: boolean | undefined;
|
|
124
126
|
readonly isSingleSelect?: boolean | undefined;
|
|
@@ -197,6 +199,7 @@ declare const _default: (config: SearchConfig) => <Base extends {
|
|
|
197
199
|
readonly field: string;
|
|
198
200
|
}[];
|
|
199
201
|
})[] | undefined;
|
|
202
|
+
readonly defaultValue?: string | undefined;
|
|
200
203
|
readonly fieldId?: string | undefined;
|
|
201
204
|
readonly isGrouped?: boolean | undefined;
|
|
202
205
|
readonly isSingleSelect?: boolean | undefined;
|
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.38",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -14006,7 +14006,7 @@
|
|
|
14006
14006
|
}
|
|
14007
14007
|
},
|
|
14008
14008
|
"zengenti-search-package": {
|
|
14009
|
-
"version": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#
|
|
14009
|
+
"version": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#809e1e69715e37de536420344e1ec0da62e56968",
|
|
14010
14010
|
"from": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#immer",
|
|
14011
14011
|
"dev": true,
|
|
14012
14012
|
"requires": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zengenti/contensis-react-base",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.38",
|
|
4
4
|
"repository": "https://github.com/zengenti/contensis-react-base",
|
|
5
5
|
"license": "None",
|
|
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.",
|