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.
- package/CHANGELOG.md +27 -0
- package/cjs/lib/InstantSearch.js +11 -3
- package/cjs/lib/routers/history.js +46 -31
- package/cjs/lib/utils/safelyRunOnBrowser.js +1 -1
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.d.ts +12 -6
- package/dist/instantsearch.development.js +60 -37
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +12 -6
- package/dist/instantsearch.production.min.d.ts +12 -6
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/lib/InstantSearch.js +11 -3
- package/es/lib/routers/history.d.ts +3 -3
- package/es/lib/routers/history.js +46 -31
- package/es/lib/utils/getAppIdAndApiKey.d.ts +1 -1
- package/es/lib/utils/safelyRunOnBrowser.d.ts +1 -1
- package/es/lib/utils/safelyRunOnBrowser.js +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/types/widget.d.ts +1 -1
- package/es/widgets/index/index.d.ts +9 -3
- package/package.json +1 -1
|
@@ -463,10 +463,9 @@ declare class BrowserHistory<TRouteState> implements Router<TRouteState> {
|
|
|
463
463
|
private writeTimer?;
|
|
464
464
|
private _onPopState;
|
|
465
465
|
/**
|
|
466
|
-
* Indicates if
|
|
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
|
|
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 =
|
|
2006
|
+
declare type IndexInitOptions = {
|
|
2007
|
+
instantSearchInstance: InstantSearch;
|
|
2008
|
+
parent: IndexWidget | null;
|
|
2009
|
+
uiState: UiState;
|
|
2010
|
+
};
|
|
2007
2011
|
|
|
2008
|
-
declare type IndexRenderOptions =
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
2006
|
+
declare type IndexInitOptions = {
|
|
2007
|
+
instantSearchInstance: InstantSearch;
|
|
2008
|
+
parent: IndexWidget | null;
|
|
2009
|
+
uiState: UiState;
|
|
2010
|
+
};
|
|
2007
2011
|
|
|
2008
|
-
declare type IndexRenderOptions =
|
|
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
|
|
4604
|
+
parent: IndexWidget;
|
|
4599
4605
|
templatesConfig: Record<string, unknown>;
|
|
4600
4606
|
scopedResults: ScopedResult[];
|
|
4601
4607
|
state: SearchParameters;
|