instantsearch.js 4.35.0 → 4.36.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/CHANGELOG.md +10 -0
- package/cjs/connectors/dynamic-widgets/connectDynamicWidgets.js +30 -5
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/dynamic-widgets/dynamic-widgets.js +8 -5
- package/dist/instantsearch.development.d.ts +14 -0
- package/dist/instantsearch.development.js +36 -12
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.development.min.d.ts +14 -0
- package/dist/instantsearch.production.d.ts +14 -0
- package/dist/instantsearch.production.min.d.ts +14 -0
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/connectors/dynamic-widgets/connectDynamicWidgets.d.ts +14 -0
- package/es/connectors/dynamic-widgets/connectDynamicWidgets.js +31 -6
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/widgets/dynamic-widgets/dynamic-widgets.js +8 -5
- package/package.json +1 -1
|
@@ -1101,6 +1101,20 @@ declare type DynamicWidgetsConnectorParams = {
|
|
|
1101
1101
|
transformItems?(items: string[], metadata: {
|
|
1102
1102
|
results: SearchResults;
|
|
1103
1103
|
}): string[];
|
|
1104
|
+
/**
|
|
1105
|
+
* To prevent unneeded extra network requests when widgets mount or unmount,
|
|
1106
|
+
* we request all facet values.
|
|
1107
|
+
*
|
|
1108
|
+
* @default ['*']
|
|
1109
|
+
*/
|
|
1110
|
+
facets?: ['*'] | never[];
|
|
1111
|
+
/**
|
|
1112
|
+
* If you have more than 20 facet values pinned, you need to increase the
|
|
1113
|
+
* maxValuesPerFacet to at least that value.
|
|
1114
|
+
*
|
|
1115
|
+
* @default 20
|
|
1116
|
+
*/
|
|
1117
|
+
maxValuesPerFacet?: number;
|
|
1104
1118
|
};
|
|
1105
1119
|
|
|
1106
1120
|
declare type DynamicWidgetsRenderState = {
|
|
@@ -1101,6 +1101,20 @@ declare type DynamicWidgetsConnectorParams = {
|
|
|
1101
1101
|
transformItems?(items: string[], metadata: {
|
|
1102
1102
|
results: SearchResults;
|
|
1103
1103
|
}): string[];
|
|
1104
|
+
/**
|
|
1105
|
+
* To prevent unneeded extra network requests when widgets mount or unmount,
|
|
1106
|
+
* we request all facet values.
|
|
1107
|
+
*
|
|
1108
|
+
* @default ['*']
|
|
1109
|
+
*/
|
|
1110
|
+
facets?: ['*'] | never[];
|
|
1111
|
+
/**
|
|
1112
|
+
* If you have more than 20 facet values pinned, you need to increase the
|
|
1113
|
+
* maxValuesPerFacet to at least that value.
|
|
1114
|
+
*
|
|
1115
|
+
* @default 20
|
|
1116
|
+
*/
|
|
1117
|
+
maxValuesPerFacet?: number;
|
|
1104
1118
|
};
|
|
1105
1119
|
|
|
1106
1120
|
declare type DynamicWidgetsRenderState = {
|
|
@@ -1101,6 +1101,20 @@ declare type DynamicWidgetsConnectorParams = {
|
|
|
1101
1101
|
transformItems?(items: string[], metadata: {
|
|
1102
1102
|
results: SearchResults;
|
|
1103
1103
|
}): string[];
|
|
1104
|
+
/**
|
|
1105
|
+
* To prevent unneeded extra network requests when widgets mount or unmount,
|
|
1106
|
+
* we request all facet values.
|
|
1107
|
+
*
|
|
1108
|
+
* @default ['*']
|
|
1109
|
+
*/
|
|
1110
|
+
facets?: ['*'] | never[];
|
|
1111
|
+
/**
|
|
1112
|
+
* If you have more than 20 facet values pinned, you need to increase the
|
|
1113
|
+
* maxValuesPerFacet to at least that value.
|
|
1114
|
+
*
|
|
1115
|
+
* @default 20
|
|
1116
|
+
*/
|
|
1117
|
+
maxValuesPerFacet?: number;
|
|
1104
1118
|
};
|
|
1105
1119
|
|
|
1106
1120
|
declare type DynamicWidgetsRenderState = {
|