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.
@@ -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 = {