instantsearch.js 4.41.1 → 4.43.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 +32 -0
- package/cjs/lib/version.js +1 -1
- package/cjs/types/algoliasearch.js +18 -1
- package/dist/instantsearch.development.d.ts +2 -21
- package/dist/instantsearch.development.js +122 -62
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +2 -21
- package/dist/instantsearch.production.min.d.ts +2 -21
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/types/algoliasearch.d.ts +1 -40
- package/es/types/algoliasearch.js +2 -0
- package/es/types/index.js +1 -0
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
|
|
3
|
-
import type algoliasearch from 'algoliasearch/lite';
|
|
4
3
|
import type { AlgoliaSearchHelper } from 'algoliasearch-helper';
|
|
5
|
-
import type * as ClientSearch from '@algolia/client-search';
|
|
6
4
|
import EventEmitter from '@algolia/events';
|
|
5
|
+
import { FindAnswersOptions } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
7
6
|
import type { InsightsClient as InsightsClient_2 } from 'search-insights';
|
|
8
7
|
import type { InsightsMethodMap } from 'search-insights';
|
|
9
8
|
import type * as Places from 'places.js';
|
|
10
9
|
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
11
10
|
import { default as qs_2 } from 'qs';
|
|
11
|
+
import { SearchClient } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
12
12
|
import type { SearchParameters } from 'algoliasearch-helper';
|
|
13
13
|
import type { SearchResults } from 'algoliasearch-helper';
|
|
14
14
|
|
|
@@ -1075,18 +1075,12 @@ declare type CustomSendEventForHits = (customPayload: any) => void;
|
|
|
1075
1075
|
|
|
1076
1076
|
declare type CustomSendEventForToggle = (customPayload: any) => void;
|
|
1077
1077
|
|
|
1078
|
-
declare type DefaultSearchClient = ReturnType<typeof algoliasearch>;
|
|
1079
|
-
|
|
1080
1078
|
declare type DisposeOptions = {
|
|
1081
1079
|
helper: AlgoliaSearchHelper;
|
|
1082
1080
|
state: SearchParameters;
|
|
1083
1081
|
parent: IndexWidget;
|
|
1084
1082
|
};
|
|
1085
1083
|
|
|
1086
|
-
declare type DummySearchClientV4 = {
|
|
1087
|
-
readonly transporter: any;
|
|
1088
|
-
};
|
|
1089
|
-
|
|
1090
1084
|
declare const dynamicWidgets: DynamicWidgetsWidget;
|
|
1091
1085
|
|
|
1092
1086
|
declare type DynamicWidgetsConnector = Connector<DynamicWidgetsWidgetDescription, DynamicWidgetsConnectorParams>;
|
|
@@ -1175,8 +1169,6 @@ declare const EXPERIMENTAL_connectDynamicWidgets: DynamicWidgetsConnector;
|
|
|
1175
1169
|
/** @deprecated use dynamicWidgets */
|
|
1176
1170
|
declare const EXPERIMENTAL_dynamicWidgets: DynamicWidgetsWidget;
|
|
1177
1171
|
|
|
1178
|
-
declare type FindAnswersOptions = DefaultSearchClient extends DummySearchClientV4 ? ClientSearch.FindAnswersOptions : any;
|
|
1179
|
-
|
|
1180
1172
|
declare type GeoHit = Hit & Required<Pick<Hit, '_geoLoc'>>;
|
|
1181
1173
|
|
|
1182
1174
|
declare type GeoLoc = {
|
|
@@ -4582,17 +4574,6 @@ declare type SearchBoxWidgetParams = {
|
|
|
4582
4574
|
queryHook?: (query: string, hook: (value: string) => void) => void;
|
|
4583
4575
|
};
|
|
4584
4576
|
|
|
4585
|
-
declare type SearchClient = {
|
|
4586
|
-
search: DefaultSearchClient['search'];
|
|
4587
|
-
searchForFacetValues: DefaultSearchClient['searchForFacetValues'];
|
|
4588
|
-
addAlgoliaAgent?: DefaultSearchClient['addAlgoliaAgent'];
|
|
4589
|
-
initIndex?: (indexName: string) => SearchIndex extends {
|
|
4590
|
-
findAnswers: any;
|
|
4591
|
-
} ? Partial<Pick<SearchIndex, 'findAnswers'>> : SearchIndex;
|
|
4592
|
-
};
|
|
4593
|
-
|
|
4594
|
-
declare type SearchIndex = ReturnType<DefaultSearchClient['initIndex']>;
|
|
4595
|
-
|
|
4596
4577
|
declare type SendEvent = (...args: [InsightsEvent] | [string, string, string?]) => void;
|
|
4597
4578
|
|
|
4598
4579
|
declare type SendEventForFacet = BuiltInSendEventForFacet & CustomSendEventForFacet;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
2
|
|
|
3
|
-
import type algoliasearch from 'algoliasearch/lite';
|
|
4
3
|
import type { AlgoliaSearchHelper } from 'algoliasearch-helper';
|
|
5
|
-
import type * as ClientSearch from '@algolia/client-search';
|
|
6
4
|
import EventEmitter from '@algolia/events';
|
|
5
|
+
import { FindAnswersOptions } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
7
6
|
import type { InsightsClient as InsightsClient_2 } from 'search-insights';
|
|
8
7
|
import type { InsightsMethodMap } from 'search-insights';
|
|
9
8
|
import type * as Places from 'places.js';
|
|
10
9
|
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
11
10
|
import { default as qs_2 } from 'qs';
|
|
11
|
+
import { SearchClient } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
12
12
|
import type { SearchParameters } from 'algoliasearch-helper';
|
|
13
13
|
import type { SearchResults } from 'algoliasearch-helper';
|
|
14
14
|
|
|
@@ -1075,18 +1075,12 @@ declare type CustomSendEventForHits = (customPayload: any) => void;
|
|
|
1075
1075
|
|
|
1076
1076
|
declare type CustomSendEventForToggle = (customPayload: any) => void;
|
|
1077
1077
|
|
|
1078
|
-
declare type DefaultSearchClient = ReturnType<typeof algoliasearch>;
|
|
1079
|
-
|
|
1080
1078
|
declare type DisposeOptions = {
|
|
1081
1079
|
helper: AlgoliaSearchHelper;
|
|
1082
1080
|
state: SearchParameters;
|
|
1083
1081
|
parent: IndexWidget;
|
|
1084
1082
|
};
|
|
1085
1083
|
|
|
1086
|
-
declare type DummySearchClientV4 = {
|
|
1087
|
-
readonly transporter: any;
|
|
1088
|
-
};
|
|
1089
|
-
|
|
1090
1084
|
declare const dynamicWidgets: DynamicWidgetsWidget;
|
|
1091
1085
|
|
|
1092
1086
|
declare type DynamicWidgetsConnector = Connector<DynamicWidgetsWidgetDescription, DynamicWidgetsConnectorParams>;
|
|
@@ -1175,8 +1169,6 @@ declare const EXPERIMENTAL_connectDynamicWidgets: DynamicWidgetsConnector;
|
|
|
1175
1169
|
/** @deprecated use dynamicWidgets */
|
|
1176
1170
|
declare const EXPERIMENTAL_dynamicWidgets: DynamicWidgetsWidget;
|
|
1177
1171
|
|
|
1178
|
-
declare type FindAnswersOptions = DefaultSearchClient extends DummySearchClientV4 ? ClientSearch.FindAnswersOptions : any;
|
|
1179
|
-
|
|
1180
1172
|
declare type GeoHit = Hit & Required<Pick<Hit, '_geoLoc'>>;
|
|
1181
1173
|
|
|
1182
1174
|
declare type GeoLoc = {
|
|
@@ -4582,17 +4574,6 @@ declare type SearchBoxWidgetParams = {
|
|
|
4582
4574
|
queryHook?: (query: string, hook: (value: string) => void) => void;
|
|
4583
4575
|
};
|
|
4584
4576
|
|
|
4585
|
-
declare type SearchClient = {
|
|
4586
|
-
search: DefaultSearchClient['search'];
|
|
4587
|
-
searchForFacetValues: DefaultSearchClient['searchForFacetValues'];
|
|
4588
|
-
addAlgoliaAgent?: DefaultSearchClient['addAlgoliaAgent'];
|
|
4589
|
-
initIndex?: (indexName: string) => SearchIndex extends {
|
|
4590
|
-
findAnswers: any;
|
|
4591
|
-
} ? Partial<Pick<SearchIndex, 'findAnswers'>> : SearchIndex;
|
|
4592
|
-
};
|
|
4593
|
-
|
|
4594
|
-
declare type SearchIndex = ReturnType<DefaultSearchClient['initIndex']>;
|
|
4595
|
-
|
|
4596
4577
|
declare type SendEvent = (...args: [InsightsEvent] | [string, string, string?]) => void;
|
|
4597
4578
|
|
|
4598
4579
|
declare type SendEventForFacet = BuiltInSendEventForFacet & CustomSendEventForFacet;
|