instantsearch.js 4.56.10 → 4.57.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.
@@ -475,7 +475,7 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
475
475
  /**
476
476
  * Indicates whether the history router is disposed or not.
477
477
  */
478
- private isDisposed;
478
+ protected isDisposed: boolean;
479
479
  /**
480
480
  * Indicates the window.history.length before the last call to
481
481
  * window.history.pushState (called in `write`).
@@ -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.js/issues/790
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.js/issues/new?title=Problem%20with%20dispose).
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;
@@ -475,7 +475,7 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
475
475
  /**
476
476
  * Indicates whether the history router is disposed or not.
477
477
  */
478
- private isDisposed;
478
+ protected isDisposed: boolean;
479
479
  /**
480
480
  * Indicates the window.history.length before the last call to
481
481
  * window.history.pushState (called in `write`).
@@ -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.js/issues/790
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.js/issues/new?title=Problem%20with%20dispose).
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;