instantsearch.js 4.64.0 → 4.64.2
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/components/SearchBox/SearchBox.js +2 -1
- package/cjs/connectors/numeric-menu/connectNumericMenu.js +5 -5
- package/cjs/connectors/rating-menu/connectRatingMenu.js +1 -2
- package/cjs/connectors/refinement-list/connectRefinementList.js +1 -2
- package/cjs/connectors/toggle-refinement/connectToggleRefinement.js +1 -1
- package/cjs/lib/InstantSearch.js +2 -6
- package/cjs/lib/server.js +27 -4
- package/cjs/lib/utils/hydrateSearchClient.js +10 -7
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/search-box/search-box.js +5 -0
- package/dist/instantsearch.development.d.ts +10 -6
- package/dist/instantsearch.development.js +43 -34
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +10 -6
- package/dist/instantsearch.production.min.d.ts +10 -6
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/SearchBox/SearchBox.d.ts +3 -0
- package/es/components/SearchBox/SearchBox.js +2 -1
- package/es/connectors/numeric-menu/connectNumericMenu.js +5 -5
- package/es/connectors/rating-menu/connectRatingMenu.js +1 -2
- package/es/connectors/refinement-list/connectRefinementList.js +1 -2
- package/es/connectors/toggle-refinement/connectToggleRefinement.js +1 -1
- package/es/lib/InstantSearch.d.ts +2 -6
- package/es/lib/InstantSearch.js +2 -6
- package/es/lib/server.d.ts +8 -3
- package/es/lib/server.js +27 -4
- package/es/lib/utils/hydrateSearchClient.js +10 -7
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/types/results.d.ts +2 -0
- package/es/widgets/search-box/search-box.d.ts +6 -0
- package/es/widgets/search-box/search-box.js +5 -0
- package/package.json +6 -6
|
@@ -15,6 +15,7 @@ import type * as Places from 'places.js';
|
|
|
15
15
|
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
16
16
|
import { default as qs_2 } from 'qs';
|
|
17
17
|
import { SearchClient } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
18
|
+
import { SearchOptions } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
18
19
|
import type { SearchParameters } from 'algoliasearch-helper';
|
|
19
20
|
import type { SearchResults } from 'algoliasearch-helper';
|
|
20
21
|
import { VNode } from 'preact';
|
|
@@ -2310,6 +2311,7 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2310
2311
|
declare type InitialResult = {
|
|
2311
2312
|
state: PlainSearchParameters;
|
|
2312
2313
|
results: SearchResults['_rawResults'];
|
|
2314
|
+
requestParams?: SearchOptions;
|
|
2313
2315
|
};
|
|
2314
2316
|
|
|
2315
2317
|
declare type InitialResults = Record<string, InitialResult>;
|
|
@@ -2455,15 +2457,11 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2455
2457
|
removeWidgets(widgets: Array<Widget | IndexWidget>): this;
|
|
2456
2458
|
/**
|
|
2457
2459
|
* Ends the initialization of InstantSearch.js and triggers the
|
|
2458
|
-
* first search.
|
|
2459
|
-
* to the instance of InstantSearch.js. InstantSearch.js also supports adding and removing
|
|
2460
|
-
* widgets after the start as an **EXPERIMENTAL** feature.
|
|
2460
|
+
* first search.
|
|
2461
2461
|
*/
|
|
2462
2462
|
start(): void;
|
|
2463
2463
|
/**
|
|
2464
|
-
* Removes all widgets without triggering a search afterwards.
|
|
2465
|
-
* if you find an issue with it, please
|
|
2466
|
-
* [open an issue](https://github.com/algolia/instantsearch/issues/new?title=Problem%20with%20dispose).
|
|
2464
|
+
* Removes all widgets without triggering a search afterwards.
|
|
2467
2465
|
* @return {undefined} This method does not return anything
|
|
2468
2466
|
*/
|
|
2469
2467
|
dispose(): void;
|
|
@@ -4824,6 +4822,12 @@ declare type SearchBoxWidgetParams = {
|
|
|
4824
4822
|
* once `<Enter>` is pressed only.
|
|
4825
4823
|
*/
|
|
4826
4824
|
searchAsYouType?: boolean;
|
|
4825
|
+
/**
|
|
4826
|
+
* Whether to update the search state in the middle of a
|
|
4827
|
+
* composition session.
|
|
4828
|
+
* @default false
|
|
4829
|
+
*/
|
|
4830
|
+
ignoreCompositionEvents?: boolean;
|
|
4827
4831
|
/**
|
|
4828
4832
|
* Whether to show the reset button
|
|
4829
4833
|
*/
|
|
@@ -15,6 +15,7 @@ import type * as Places from 'places.js';
|
|
|
15
15
|
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
16
16
|
import { default as qs_2 } from 'qs';
|
|
17
17
|
import { SearchClient } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
18
|
+
import { SearchOptions } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
18
19
|
import type { SearchParameters } from 'algoliasearch-helper';
|
|
19
20
|
import type { SearchResults } from 'algoliasearch-helper';
|
|
20
21
|
import { VNode } from 'preact';
|
|
@@ -2310,6 +2311,7 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2310
2311
|
declare type InitialResult = {
|
|
2311
2312
|
state: PlainSearchParameters;
|
|
2312
2313
|
results: SearchResults['_rawResults'];
|
|
2314
|
+
requestParams?: SearchOptions;
|
|
2313
2315
|
};
|
|
2314
2316
|
|
|
2315
2317
|
declare type InitialResults = Record<string, InitialResult>;
|
|
@@ -2455,15 +2457,11 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2455
2457
|
removeWidgets(widgets: Array<Widget | IndexWidget>): this;
|
|
2456
2458
|
/**
|
|
2457
2459
|
* Ends the initialization of InstantSearch.js and triggers the
|
|
2458
|
-
* first search.
|
|
2459
|
-
* to the instance of InstantSearch.js. InstantSearch.js also supports adding and removing
|
|
2460
|
-
* widgets after the start as an **EXPERIMENTAL** feature.
|
|
2460
|
+
* first search.
|
|
2461
2461
|
*/
|
|
2462
2462
|
start(): void;
|
|
2463
2463
|
/**
|
|
2464
|
-
* Removes all widgets without triggering a search afterwards.
|
|
2465
|
-
* if you find an issue with it, please
|
|
2466
|
-
* [open an issue](https://github.com/algolia/instantsearch/issues/new?title=Problem%20with%20dispose).
|
|
2464
|
+
* Removes all widgets without triggering a search afterwards.
|
|
2467
2465
|
* @return {undefined} This method does not return anything
|
|
2468
2466
|
*/
|
|
2469
2467
|
dispose(): void;
|
|
@@ -4824,6 +4822,12 @@ declare type SearchBoxWidgetParams = {
|
|
|
4824
4822
|
* once `<Enter>` is pressed only.
|
|
4825
4823
|
*/
|
|
4826
4824
|
searchAsYouType?: boolean;
|
|
4825
|
+
/**
|
|
4826
|
+
* Whether to update the search state in the middle of a
|
|
4827
|
+
* composition session.
|
|
4828
|
+
* @default false
|
|
4829
|
+
*/
|
|
4830
|
+
ignoreCompositionEvents?: boolean;
|
|
4827
4831
|
/**
|
|
4828
4832
|
* Whether to show the reset button
|
|
4829
4833
|
*/
|