instantsearch.js 4.56.10 → 4.56.11
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/README.md +9 -10
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +2 -1
- package/cjs/components/Pagination/Pagination.js +3 -2
- package/cjs/components/SearchBox/SearchBox.js +1 -1
- package/cjs/lib/InstantSearch.js +1 -1
- package/cjs/lib/routers/history.js +1 -1
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/index/index.js +1 -1
- package/dist/instantsearch.development.d.ts +3 -9
- package/dist/instantsearch.development.js +12 -10
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +3 -9
- package/dist/instantsearch.production.min.d.ts +3 -9
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +2 -1
- package/es/components/Pagination/Pagination.js +3 -2
- package/es/components/SearchBox/SearchBox.js +1 -1
- package/es/lib/InstantSearch.d.ts +1 -1
- package/es/lib/InstantSearch.js +1 -1
- package/es/lib/routers/history.d.ts +1 -1
- package/es/lib/routers/history.js +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/middlewares/createInsightsMiddleware.d.ts +2 -8
- package/es/widgets/index/index.js +1 -1
- package/package.json +7 -7
|
@@ -509,7 +509,7 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
|
|
|
509
509
|
*
|
|
510
510
|
* It always generates the full URL, not a relative one.
|
|
511
511
|
* This allows to handle cases like using a <base href>.
|
|
512
|
-
* See: https://github.com/algolia/instantsearch
|
|
512
|
+
* See: https://github.com/algolia/instantsearch/issues/790
|
|
513
513
|
*/
|
|
514
514
|
createURL(routeState: TRouteState): string;
|
|
515
515
|
/**
|
|
@@ -2349,13 +2349,7 @@ declare type InsightsMethodMap = InsightsMethodMap_2;
|
|
|
2349
2349
|
|
|
2350
2350
|
declare type InsightsProps<TInsightsClient extends ProvidedInsightsClient = ProvidedInsightsClient> = {
|
|
2351
2351
|
insightsClient?: TInsightsClient;
|
|
2352
|
-
insightsInitParams?:
|
|
2353
|
-
userHasOptedOut?: boolean;
|
|
2354
|
-
useCookie?: boolean;
|
|
2355
|
-
anonymousUserToken?: boolean;
|
|
2356
|
-
cookieDuration?: number;
|
|
2357
|
-
region?: 'de' | 'us';
|
|
2358
|
-
};
|
|
2352
|
+
insightsInitParams?: Partial<InsightsMethodMap['init'][0]>;
|
|
2359
2353
|
onEvent?: (event: InsightsEvent, insightsClient: TInsightsClient) => void;
|
|
2360
2354
|
};
|
|
2361
2355
|
|
|
@@ -2449,7 +2443,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2449
2443
|
/**
|
|
2450
2444
|
* Removes all widgets without triggering a search afterwards. This is an **EXPERIMENTAL** feature,
|
|
2451
2445
|
* if you find an issue with it, please
|
|
2452
|
-
* [open an issue](https://github.com/algolia/instantsearch
|
|
2446
|
+
* [open an issue](https://github.com/algolia/instantsearch/issues/new?title=Problem%20with%20dispose).
|
|
2453
2447
|
* @return {undefined} This method does not return anything
|
|
2454
2448
|
*/
|
|
2455
2449
|
dispose(): void;
|
|
@@ -509,7 +509,7 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
|
|
|
509
509
|
*
|
|
510
510
|
* It always generates the full URL, not a relative one.
|
|
511
511
|
* This allows to handle cases like using a <base href>.
|
|
512
|
-
* See: https://github.com/algolia/instantsearch
|
|
512
|
+
* See: https://github.com/algolia/instantsearch/issues/790
|
|
513
513
|
*/
|
|
514
514
|
createURL(routeState: TRouteState): string;
|
|
515
515
|
/**
|
|
@@ -2349,13 +2349,7 @@ declare type InsightsMethodMap = InsightsMethodMap_2;
|
|
|
2349
2349
|
|
|
2350
2350
|
declare type InsightsProps<TInsightsClient extends ProvidedInsightsClient = ProvidedInsightsClient> = {
|
|
2351
2351
|
insightsClient?: TInsightsClient;
|
|
2352
|
-
insightsInitParams?:
|
|
2353
|
-
userHasOptedOut?: boolean;
|
|
2354
|
-
useCookie?: boolean;
|
|
2355
|
-
anonymousUserToken?: boolean;
|
|
2356
|
-
cookieDuration?: number;
|
|
2357
|
-
region?: 'de' | 'us';
|
|
2358
|
-
};
|
|
2352
|
+
insightsInitParams?: Partial<InsightsMethodMap['init'][0]>;
|
|
2359
2353
|
onEvent?: (event: InsightsEvent, insightsClient: TInsightsClient) => void;
|
|
2360
2354
|
};
|
|
2361
2355
|
|
|
@@ -2449,7 +2443,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2449
2443
|
/**
|
|
2450
2444
|
* Removes all widgets without triggering a search afterwards. This is an **EXPERIMENTAL** feature,
|
|
2451
2445
|
* if you find an issue with it, please
|
|
2452
|
-
* [open an issue](https://github.com/algolia/instantsearch
|
|
2446
|
+
* [open an issue](https://github.com/algolia/instantsearch/issues/new?title=Problem%20with%20dispose).
|
|
2453
2447
|
* @return {undefined} This method does not return anything
|
|
2454
2448
|
*/
|
|
2455
2449
|
dispose(): void;
|