instantsearch.js 4.45.0 → 4.45.1

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.
@@ -173,7 +173,7 @@ declare type AnswersRenderState = {
173
173
  /**
174
174
  * The matched hits from Algolia API.
175
175
  */
176
- hits: Hits;
176
+ hits: Hit[];
177
177
  /**
178
178
  * Whether it's still loading the results from the Answers API.
179
179
  */
@@ -264,7 +264,7 @@ declare type AutocompleteRenderState = {
264
264
  /**
265
265
  * The resolved hits from the index matching the query.
266
266
  */
267
- hits: Hits;
267
+ hits: Hit[];
268
268
  /**
269
269
  * The full results object from the Algolia API.
270
270
  */
@@ -518,11 +518,11 @@ declare type BrowserHistoryArgs<TRouteState> = {
518
518
  getLocation(): Location;
519
519
  };
520
520
 
521
- declare type BuiltInBindEventForHits = (eventType: string, hits: Hit | Hits, eventName?: string) => string;
521
+ declare type BuiltInBindEventForHits = (eventType: string, hits: Hit | Hit[], eventName?: string) => string;
522
522
 
523
523
  declare type BuiltInSendEventForFacet = (eventType: string, facetValue: string, eventName?: string) => void;
524
524
 
525
- declare type BuiltInSendEventForHits = (eventType: string, hits: Hit | Hits, eventName?: string) => void;
525
+ declare type BuiltInSendEventForHits = (eventType: string, hits: Hit | Hit[], eventName?: string) => void;
526
526
 
527
527
  declare type BuiltInSendEventForToggle = (eventType: string, isRefined: boolean, eventName?: string) => void;
528
528
 
@@ -1769,11 +1769,6 @@ declare type HitHighlightResult = {
1769
1769
  [attribute: string]: HitAttributeHighlightResult | HitAttributeHighlightResult[] | HitHighlightResult[] | HitHighlightResult;
1770
1770
  };
1771
1771
 
1772
- /**
1773
- * @deprecated use Hit[] directly instead
1774
- */
1775
- declare type Hits = Hit[];
1776
-
1777
1772
  declare const hits: HitsWidget;
1778
1773
 
1779
1774
  declare type HitsConnector<THit extends BaseHit = BaseHit> = Connector<HitsWidgetDescription<THit>, HitsConnectorParams<THit>>;
@@ -2406,6 +2401,10 @@ declare type InstantSearchModule = {
2406
2401
  reverseHighlight: typeof helpers.reverseHighlight;
2407
2402
  snippet: typeof helpers.snippet;
2408
2403
  reverseSnippet: typeof helpers.reverseSnippet;
2404
+ /**
2405
+ * @deprecated use createInsightsMiddleware
2406
+ * @link https://www.algolia.com/doc/api-reference/widgets/insights/js/
2407
+ */
2409
2408
  insights: typeof helpers.insights;
2410
2409
  };
2411
2410
 
@@ -4255,7 +4254,7 @@ declare type RendererOptions<TWidgetParams> = {
4255
4254
  * The mutable list of hits. The may change depending
4256
4255
  * of the given transform items function.
4257
4256
  */
4258
- hits?: Hits;
4257
+ hits?: Hit[];
4259
4258
  /**
4260
4259
  * The current insights client, if any.
4261
4260
  */
@@ -173,7 +173,7 @@ declare type AnswersRenderState = {
173
173
  /**
174
174
  * The matched hits from Algolia API.
175
175
  */
176
- hits: Hits;
176
+ hits: Hit[];
177
177
  /**
178
178
  * Whether it's still loading the results from the Answers API.
179
179
  */
@@ -264,7 +264,7 @@ declare type AutocompleteRenderState = {
264
264
  /**
265
265
  * The resolved hits from the index matching the query.
266
266
  */
267
- hits: Hits;
267
+ hits: Hit[];
268
268
  /**
269
269
  * The full results object from the Algolia API.
270
270
  */
@@ -518,11 +518,11 @@ declare type BrowserHistoryArgs<TRouteState> = {
518
518
  getLocation(): Location;
519
519
  };
520
520
 
521
- declare type BuiltInBindEventForHits = (eventType: string, hits: Hit | Hits, eventName?: string) => string;
521
+ declare type BuiltInBindEventForHits = (eventType: string, hits: Hit | Hit[], eventName?: string) => string;
522
522
 
523
523
  declare type BuiltInSendEventForFacet = (eventType: string, facetValue: string, eventName?: string) => void;
524
524
 
525
- declare type BuiltInSendEventForHits = (eventType: string, hits: Hit | Hits, eventName?: string) => void;
525
+ declare type BuiltInSendEventForHits = (eventType: string, hits: Hit | Hit[], eventName?: string) => void;
526
526
 
527
527
  declare type BuiltInSendEventForToggle = (eventType: string, isRefined: boolean, eventName?: string) => void;
528
528
 
@@ -1769,11 +1769,6 @@ declare type HitHighlightResult = {
1769
1769
  [attribute: string]: HitAttributeHighlightResult | HitAttributeHighlightResult[] | HitHighlightResult[] | HitHighlightResult;
1770
1770
  };
1771
1771
 
1772
- /**
1773
- * @deprecated use Hit[] directly instead
1774
- */
1775
- declare type Hits = Hit[];
1776
-
1777
1772
  declare const hits: HitsWidget;
1778
1773
 
1779
1774
  declare type HitsConnector<THit extends BaseHit = BaseHit> = Connector<HitsWidgetDescription<THit>, HitsConnectorParams<THit>>;
@@ -2406,6 +2401,10 @@ declare type InstantSearchModule = {
2406
2401
  reverseHighlight: typeof helpers.reverseHighlight;
2407
2402
  snippet: typeof helpers.snippet;
2408
2403
  reverseSnippet: typeof helpers.reverseSnippet;
2404
+ /**
2405
+ * @deprecated use createInsightsMiddleware
2406
+ * @link https://www.algolia.com/doc/api-reference/widgets/insights/js/
2407
+ */
2409
2408
  insights: typeof helpers.insights;
2410
2409
  };
2411
2410
 
@@ -4255,7 +4254,7 @@ declare type RendererOptions<TWidgetParams> = {
4255
4254
  * The mutable list of hits. The may change depending
4256
4255
  * of the given transform items function.
4257
4256
  */
4258
- hits?: Hits;
4257
+ hits?: Hit[];
4259
4258
  /**
4260
4259
  * The current insights client, if any.
4261
4260
  */