instantsearch.js 4.56.11 → 4.58.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/README.md +0 -1
- package/cjs/lib/InstantSearch.js +18 -2
- package/cjs/lib/version.js +1 -1
- package/cjs/middlewares/createInsightsMiddleware.js +1 -1
- package/cjs/widgets/index/index.js +16 -7
- package/dist/instantsearch.development.d.ts +14 -1
- package/dist/instantsearch.development.js +50 -25
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +14 -1
- package/dist/instantsearch.production.min.d.ts +14 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/InternalHighlight/InternalHighlight.d.ts +1 -1
- package/es/lib/InstantSearch.d.ts +14 -0
- package/es/lib/InstantSearch.js +16 -1
- package/es/lib/routers/history.d.ts +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/middlewares/createInsightsMiddleware.js +1 -1
- package/es/widgets/index/index.js +16 -7
- package/package.json +8 -8
|
@@ -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
|
-
|
|
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`).
|
|
@@ -2363,6 +2363,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2363
2363
|
indexName: string;
|
|
2364
2364
|
insightsClient: InsightsClient | null;
|
|
2365
2365
|
onStateChange: InstantSearchOptions<TUiState>['onStateChange'] | null;
|
|
2366
|
+
future: NonNullable<InstantSearchOptions<TUiState>['future']>;
|
|
2366
2367
|
helper: AlgoliaSearchHelper | null;
|
|
2367
2368
|
mainHelper: AlgoliaSearchHelper | null;
|
|
2368
2369
|
mainIndex: IndexWidget;
|
|
@@ -2604,6 +2605,18 @@ declare type InstantSearchOptions<TUiState extends UiState = UiState, TRouteStat
|
|
|
2604
2605
|
* @deprecated This property will be still supported in 4.x releases, but not further. It is replaced by the `insights` middleware. For more information, visit https://www.algolia.com/doc/guides/getting-insights-and-analytics/search-analytics/click-through-and-conversions/how-to/send-click-and-conversion-events-with-instantsearch/js/
|
|
2605
2606
|
*/
|
|
2606
2607
|
insightsClient?: InsightsClient;
|
|
2608
|
+
future?: {
|
|
2609
|
+
/**
|
|
2610
|
+
* Changes the way `dispose` is used in InstantSearch lifecycle.
|
|
2611
|
+
*
|
|
2612
|
+
* If `false` (by default), each widget unmounting will remove its state as well, even if there are multiple widgets reading that UI State.
|
|
2613
|
+
*
|
|
2614
|
+
* If `true`, each widget unmounting will only remove its own state if it's the last of its type. This allows for dynamically adding and removing widgets without losing their state.
|
|
2615
|
+
*
|
|
2616
|
+
* @default false
|
|
2617
|
+
*/
|
|
2618
|
+
preserveSharedStateOnUnmount?: boolean;
|
|
2619
|
+
};
|
|
2607
2620
|
};
|
|
2608
2621
|
|
|
2609
2622
|
declare type InstantSearchStatus = 'idle' | 'loading' | 'stalled' | 'error';
|
|
@@ -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
|
-
|
|
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`).
|
|
@@ -2363,6 +2363,7 @@ declare class InstantSearch<TUiState extends UiState = UiState, TRouteState = TU
|
|
|
2363
2363
|
indexName: string;
|
|
2364
2364
|
insightsClient: InsightsClient | null;
|
|
2365
2365
|
onStateChange: InstantSearchOptions<TUiState>['onStateChange'] | null;
|
|
2366
|
+
future: NonNullable<InstantSearchOptions<TUiState>['future']>;
|
|
2366
2367
|
helper: AlgoliaSearchHelper | null;
|
|
2367
2368
|
mainHelper: AlgoliaSearchHelper | null;
|
|
2368
2369
|
mainIndex: IndexWidget;
|
|
@@ -2604,6 +2605,18 @@ declare type InstantSearchOptions<TUiState extends UiState = UiState, TRouteStat
|
|
|
2604
2605
|
* @deprecated This property will be still supported in 4.x releases, but not further. It is replaced by the `insights` middleware. For more information, visit https://www.algolia.com/doc/guides/getting-insights-and-analytics/search-analytics/click-through-and-conversions/how-to/send-click-and-conversion-events-with-instantsearch/js/
|
|
2605
2606
|
*/
|
|
2606
2607
|
insightsClient?: InsightsClient;
|
|
2608
|
+
future?: {
|
|
2609
|
+
/**
|
|
2610
|
+
* Changes the way `dispose` is used in InstantSearch lifecycle.
|
|
2611
|
+
*
|
|
2612
|
+
* If `false` (by default), each widget unmounting will remove its state as well, even if there are multiple widgets reading that UI State.
|
|
2613
|
+
*
|
|
2614
|
+
* If `true`, each widget unmounting will only remove its own state if it's the last of its type. This allows for dynamically adding and removing widgets without losing their state.
|
|
2615
|
+
*
|
|
2616
|
+
* @default false
|
|
2617
|
+
*/
|
|
2618
|
+
preserveSharedStateOnUnmount?: boolean;
|
|
2619
|
+
};
|
|
2607
2620
|
};
|
|
2608
2621
|
|
|
2609
2622
|
declare type InstantSearchStatus = 'idle' | 'loading' | 'stalled' | 'error';
|