instantsearch.js 4.65.0 → 4.66.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.
@@ -7,6 +7,7 @@ import { FindAnswersOptions } from 'algoliasearch-helper/types/algoliasearch.js'
7
7
  import { h } from 'preact';
8
8
  import type { HighlightClassNames as HighlightClassNames_2 } from 'instantsearch-ui-components';
9
9
  import type { HighlightProps as HighlightProps_3 } from 'instantsearch-ui-components';
10
+ import type { HitsClassNames } from 'instantsearch-ui-components';
10
11
  import type { HoganOptions } from 'hogan.js';
11
12
  import type { html } from 'htm/preact';
12
13
  import type { InsightsClient as InsightsClient_2 } from 'search-insights';
@@ -1111,6 +1112,8 @@ declare type CustomSendEventForHits = (customPayload: any) => void;
1111
1112
 
1112
1113
  declare type CustomSendEventForToggle = (customPayload: any) => void;
1113
1114
 
1115
+ declare const _default: PlacesWidget;
1116
+
1114
1117
  declare type DisposeOptions = {
1115
1118
  helper: AlgoliaSearchHelper;
1116
1119
  state: SearchParameters;
@@ -1863,24 +1866,7 @@ declare type HitsConnectorParams<THit extends BaseHit = BaseHit> = {
1863
1866
  transformItems?: TransformItems<Hit<THit>>;
1864
1867
  };
1865
1868
 
1866
- declare type HitsCSSClasses = Partial<{
1867
- /**
1868
- * CSS class to add to the wrapping element.
1869
- */
1870
- root: string | string[];
1871
- /**
1872
- * CSS class to add to the wrapping element when no results.
1873
- */
1874
- emptyRoot: string | string[];
1875
- /**
1876
- * CSS class to add to the list of results.
1877
- */
1878
- list: string | string[];
1879
- /**
1880
- * CSS class to add to each result.
1881
- */
1882
- item: string | string[];
1883
- }>;
1869
+ declare type HitsCSSClasses = Partial<HitsClassNames>;
1884
1870
 
1885
1871
  declare type HitSnippetResult = {
1886
1872
  [attribute: string]: HitAttributeSnippetResult[] | HitSnippetResult[] | HitAttributeSnippetResult | HitSnippetResult;
@@ -3431,12 +3417,6 @@ declare type PlacesInstance = Places.PlacesInstance;
3431
3417
 
3432
3418
  declare type PlacesWidget = WidgetFactory<PlacesWidgetDescription, PlacesWidgetParams, PlacesWidgetParams>;
3433
3419
 
3434
- /**
3435
- * This widget sets the geolocation value for the search based on the selected
3436
- * result in the Algolia Places autocomplete.
3437
- */
3438
- declare const placesWidget: PlacesWidget;
3439
-
3440
3420
  declare type PlacesWidgetDescription = {
3441
3421
  $$type: 'ais.places';
3442
3422
  $$widgetType: 'ais.places';
@@ -5563,7 +5543,7 @@ declare namespace widgets {
5563
5543
  numericMenu,
5564
5544
  pagination,
5565
5545
  panel,
5566
- placesWidget as places,
5546
+ _default as places,
5567
5547
  poweredBy,
5568
5548
  queryRuleContext,
5569
5549
  queryRuleCustomData,
@@ -7,6 +7,7 @@ import { FindAnswersOptions } from 'algoliasearch-helper/types/algoliasearch.js'
7
7
  import { h } from 'preact';
8
8
  import type { HighlightClassNames as HighlightClassNames_2 } from 'instantsearch-ui-components';
9
9
  import type { HighlightProps as HighlightProps_3 } from 'instantsearch-ui-components';
10
+ import type { HitsClassNames } from 'instantsearch-ui-components';
10
11
  import type { HoganOptions } from 'hogan.js';
11
12
  import type { html } from 'htm/preact';
12
13
  import type { InsightsClient as InsightsClient_2 } from 'search-insights';
@@ -1111,6 +1112,8 @@ declare type CustomSendEventForHits = (customPayload: any) => void;
1111
1112
 
1112
1113
  declare type CustomSendEventForToggle = (customPayload: any) => void;
1113
1114
 
1115
+ declare const _default: PlacesWidget;
1116
+
1114
1117
  declare type DisposeOptions = {
1115
1118
  helper: AlgoliaSearchHelper;
1116
1119
  state: SearchParameters;
@@ -1863,24 +1866,7 @@ declare type HitsConnectorParams<THit extends BaseHit = BaseHit> = {
1863
1866
  transformItems?: TransformItems<Hit<THit>>;
1864
1867
  };
1865
1868
 
1866
- declare type HitsCSSClasses = Partial<{
1867
- /**
1868
- * CSS class to add to the wrapping element.
1869
- */
1870
- root: string | string[];
1871
- /**
1872
- * CSS class to add to the wrapping element when no results.
1873
- */
1874
- emptyRoot: string | string[];
1875
- /**
1876
- * CSS class to add to the list of results.
1877
- */
1878
- list: string | string[];
1879
- /**
1880
- * CSS class to add to each result.
1881
- */
1882
- item: string | string[];
1883
- }>;
1869
+ declare type HitsCSSClasses = Partial<HitsClassNames>;
1884
1870
 
1885
1871
  declare type HitSnippetResult = {
1886
1872
  [attribute: string]: HitAttributeSnippetResult[] | HitSnippetResult[] | HitAttributeSnippetResult | HitSnippetResult;
@@ -3431,12 +3417,6 @@ declare type PlacesInstance = Places.PlacesInstance;
3431
3417
 
3432
3418
  declare type PlacesWidget = WidgetFactory<PlacesWidgetDescription, PlacesWidgetParams, PlacesWidgetParams>;
3433
3419
 
3434
- /**
3435
- * This widget sets the geolocation value for the search based on the selected
3436
- * result in the Algolia Places autocomplete.
3437
- */
3438
- declare const placesWidget: PlacesWidget;
3439
-
3440
3420
  declare type PlacesWidgetDescription = {
3441
3421
  $$type: 'ais.places';
3442
3422
  $$widgetType: 'ais.places';
@@ -5563,7 +5543,7 @@ declare namespace widgets {
5563
5543
  numericMenu,
5564
5544
  pagination,
5565
5545
  panel,
5566
- placesWidget as places,
5546
+ _default as places,
5567
5547
  poweredBy,
5568
5548
  queryRuleContext,
5569
5549
  queryRuleCustomData,