instantsearch.js 4.40.4 → 4.41.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.
@@ -463,10 +463,9 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
463
463
  private writeTimer?;
464
464
  private _onPopState;
465
465
  /**
466
- * Indicates if history.pushState should be executed.
467
- * It needs to avoid pushing state to history in case of back/forward in browser
466
+ * Indicates if last action was back/forward in the browser.
468
467
  */
469
- private shouldPushState;
468
+ private inPopState;
470
469
  /**
471
470
  * Indicates whether the history router is disposed or not.
472
471
  */
@@ -508,6 +507,7 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
508
507
  * Removes the event listener and cleans up the URL.
509
508
  */
510
509
  dispose(): void;
510
+ private shouldWrite;
511
511
  }
512
512
 
513
513
  declare type BrowserHistoryArgs<TRouteState> = {
@@ -2003,9 +2003,15 @@ declare type HTMLMarkerArguments = {
2003
2003
 
2004
2004
  declare const index: (widgetParams: IndexWidgetParams) => IndexWidget;
2005
2005
 
2006
- declare type IndexInitOptions = Pick<InitOptions, 'instantSearchInstance' | 'parent' | 'uiState'>;
2006
+ declare type IndexInitOptions = {
2007
+ instantSearchInstance: InstantSearch;
2008
+ parent: IndexWidget | null;
2009
+ uiState: UiState;
2010
+ };
2007
2011
 
2008
- declare type IndexRenderOptions = Pick<RenderOptions, 'instantSearchInstance'>;
2012
+ declare type IndexRenderOptions = {
2013
+ instantSearchInstance: InstantSearch;
2014
+ };
2009
2015
 
2010
2016
  declare type IndexRenderState = Partial<ConnectorRenderStates & WidgetRenderStates>;
2011
2017
 
@@ -4595,7 +4601,7 @@ declare type SendEventForToggle = BuiltInSendEventForToggle & CustomSendEventFor
4595
4601
 
4596
4602
  declare type SharedRenderOptions = {
4597
4603
  instantSearchInstance: InstantSearch;
4598
- parent: IndexWidget | null;
4604
+ parent: IndexWidget;
4599
4605
  templatesConfig: Record<string, unknown>;
4600
4606
  scopedResults: ScopedResult[];
4601
4607
  state: SearchParameters;
@@ -463,10 +463,9 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
463
463
  private writeTimer?;
464
464
  private _onPopState;
465
465
  /**
466
- * Indicates if history.pushState should be executed.
467
- * It needs to avoid pushing state to history in case of back/forward in browser
466
+ * Indicates if last action was back/forward in the browser.
468
467
  */
469
- private shouldPushState;
468
+ private inPopState;
470
469
  /**
471
470
  * Indicates whether the history router is disposed or not.
472
471
  */
@@ -508,6 +507,7 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
508
507
  * Removes the event listener and cleans up the URL.
509
508
  */
510
509
  dispose(): void;
510
+ private shouldWrite;
511
511
  }
512
512
 
513
513
  declare type BrowserHistoryArgs<TRouteState> = {
@@ -2003,9 +2003,15 @@ declare type HTMLMarkerArguments = {
2003
2003
 
2004
2004
  declare const index: (widgetParams: IndexWidgetParams) => IndexWidget;
2005
2005
 
2006
- declare type IndexInitOptions = Pick<InitOptions, 'instantSearchInstance' | 'parent' | 'uiState'>;
2006
+ declare type IndexInitOptions = {
2007
+ instantSearchInstance: InstantSearch;
2008
+ parent: IndexWidget | null;
2009
+ uiState: UiState;
2010
+ };
2007
2011
 
2008
- declare type IndexRenderOptions = Pick<RenderOptions, 'instantSearchInstance'>;
2012
+ declare type IndexRenderOptions = {
2013
+ instantSearchInstance: InstantSearch;
2014
+ };
2009
2015
 
2010
2016
  declare type IndexRenderState = Partial<ConnectorRenderStates & WidgetRenderStates>;
2011
2017
 
@@ -4595,7 +4601,7 @@ declare type SendEventForToggle = BuiltInSendEventForToggle & CustomSendEventFor
4595
4601
 
4596
4602
  declare type SharedRenderOptions = {
4597
4603
  instantSearchInstance: InstantSearch;
4598
- parent: IndexWidget | null;
4604
+ parent: IndexWidget;
4599
4605
  templatesConfig: Record<string, unknown>;
4600
4606
  scopedResults: ScopedResult[];
4601
4607
  state: SearchParameters;