instantsearch.js 4.33.2 → 4.34.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/README.md +2 -1
- package/cjs/connectors/autocomplete/connectAutocomplete.js +2 -1
- package/cjs/connectors/infinite-hits/connectInfiniteHits.js +1 -1
- package/cjs/connectors/pagination/connectPagination.js +3 -3
- package/cjs/connectors/search-box/connectSearchBox.js +4 -3
- package/cjs/connectors/sort-by/connectSortBy.js +2 -1
- package/cjs/connectors/stats/connectStats.js +4 -4
- package/cjs/connectors/toggle-refinement/connectToggleRefinement.js +1 -1
- package/cjs/lib/InstantSearch.js +22 -1
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/index/index.js +20 -2
- package/dist/instantsearch.development.d.ts +8 -0
- package/dist/instantsearch.development.js +61 -19
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.development.min.d.ts +8 -0
- package/dist/instantsearch.production.d.ts +8 -0
- package/dist/instantsearch.production.min.d.ts +8 -0
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/connectors/autocomplete/connectAutocomplete.js +2 -1
- package/es/connectors/infinite-hits/connectInfiniteHits.js +1 -1
- package/es/connectors/pagination/connectPagination.js +3 -3
- package/es/connectors/search-box/connectSearchBox.js +4 -3
- package/es/connectors/sort-by/connectSortBy.js +2 -1
- package/es/connectors/stats/connectStats.js +4 -4
- package/es/connectors/toggle-refinement/connectToggleRefinement.js +1 -1
- package/es/lib/InstantSearch.d.ts +2 -1
- package/es/lib/InstantSearch.js +22 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/types/results.d.ts +7 -0
- package/es/widgets/index/index.js +20 -2
- package/package.json +2 -2
|
@@ -2194,6 +2194,13 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2194
2194
|
cache?: InfiniteHitsCache;
|
|
2195
2195
|
};
|
|
2196
2196
|
|
|
2197
|
+
declare type InitialResult = {
|
|
2198
|
+
state: PlainSearchParameters;
|
|
2199
|
+
results: SearchResults['_rawResults'];
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
declare type InitialResults = Record<string, InitialResult>;
|
|
2203
|
+
|
|
2197
2204
|
declare type InitOptions = SharedRenderOptions & {
|
|
2198
2205
|
uiState: UiState;
|
|
2199
2206
|
results?: undefined;
|
|
@@ -2258,6 +2265,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2258
2265
|
_searchStalledTimer: any;
|
|
2259
2266
|
_isSearchStalled: boolean;
|
|
2260
2267
|
_initialUiState: UiState;
|
|
2268
|
+
_initialResults: InitialResults | null;
|
|
2261
2269
|
_createURL: CreateURL<UiState>;
|
|
2262
2270
|
_searchFunction?: InstantSearchOptions['searchFunction'];
|
|
2263
2271
|
_mainHelperSearch?: AlgoliaSearchHelper['search'];
|
|
@@ -2194,6 +2194,13 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2194
2194
|
cache?: InfiniteHitsCache;
|
|
2195
2195
|
};
|
|
2196
2196
|
|
|
2197
|
+
declare type InitialResult = {
|
|
2198
|
+
state: PlainSearchParameters;
|
|
2199
|
+
results: SearchResults['_rawResults'];
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
declare type InitialResults = Record<string, InitialResult>;
|
|
2203
|
+
|
|
2197
2204
|
declare type InitOptions = SharedRenderOptions & {
|
|
2198
2205
|
uiState: UiState;
|
|
2199
2206
|
results?: undefined;
|
|
@@ -2258,6 +2265,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2258
2265
|
_searchStalledTimer: any;
|
|
2259
2266
|
_isSearchStalled: boolean;
|
|
2260
2267
|
_initialUiState: UiState;
|
|
2268
|
+
_initialResults: InitialResults | null;
|
|
2261
2269
|
_createURL: CreateURL<UiState>;
|
|
2262
2270
|
_searchFunction?: InstantSearchOptions['searchFunction'];
|
|
2263
2271
|
_mainHelperSearch?: AlgoliaSearchHelper['search'];
|
|
@@ -2194,6 +2194,13 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2194
2194
|
cache?: InfiniteHitsCache;
|
|
2195
2195
|
};
|
|
2196
2196
|
|
|
2197
|
+
declare type InitialResult = {
|
|
2198
|
+
state: PlainSearchParameters;
|
|
2199
|
+
results: SearchResults['_rawResults'];
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
declare type InitialResults = Record<string, InitialResult>;
|
|
2203
|
+
|
|
2197
2204
|
declare type InitOptions = SharedRenderOptions & {
|
|
2198
2205
|
uiState: UiState;
|
|
2199
2206
|
results?: undefined;
|
|
@@ -2258,6 +2265,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2258
2265
|
_searchStalledTimer: any;
|
|
2259
2266
|
_isSearchStalled: boolean;
|
|
2260
2267
|
_initialUiState: UiState;
|
|
2268
|
+
_initialResults: InitialResults | null;
|
|
2261
2269
|
_createURL: CreateURL<UiState>;
|
|
2262
2270
|
_searchFunction?: InstantSearchOptions['searchFunction'];
|
|
2263
2271
|
_mainHelperSearch?: AlgoliaSearchHelper['search'];
|