instantsearch.js 4.69.0 → 4.70.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/cjs/lib/InstantSearch.js +1 -0
- package/cjs/lib/server.js +28 -9
- package/cjs/lib/utils/addWidgetId.js +4 -0
- package/cjs/lib/utils/hydrateRecommendCache.js +23 -0
- package/cjs/lib/utils/hydrateSearchClient.js +7 -3
- package/cjs/lib/utils/index.js +22 -0
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/index/index.js +8 -1
- package/dist/instantsearch.development.d.ts +8 -2
- package/dist/instantsearch.development.js +51 -19
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +8 -2
- package/dist/instantsearch.production.min.d.ts +8 -2
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/lib/InstantSearch.js +2 -1
- package/es/lib/server.d.ts +1 -1
- package/es/lib/server.js +28 -9
- package/es/lib/utils/addWidgetId.d.ts +1 -0
- package/es/lib/utils/addWidgetId.js +3 -0
- package/es/lib/utils/hydrateRecommendCache.d.ts +3 -0
- package/es/lib/utils/hydrateRecommendCache.js +17 -0
- package/es/lib/utils/hydrateSearchClient.js +7 -3
- package/es/lib/utils/index.d.ts +2 -0
- package/es/lib/utils/index.js +2 -0
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/types/results.d.ts +7 -3
- package/es/widgets/index/index.js +8 -1
- package/package.json +6 -6
|
@@ -19,7 +19,9 @@ import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
|
19
19
|
import { default as qs_2 } from 'qs';
|
|
20
20
|
import type { RecommendClassNames } from 'instantsearch-ui-components';
|
|
21
21
|
import type { RecommendParameters } from 'algoliasearch-helper';
|
|
22
|
+
import type { RecommendParametersOptions } from 'algoliasearch-helper';
|
|
22
23
|
import type { RecommendResultItem } from 'algoliasearch-helper';
|
|
24
|
+
import type { RecommendResults } from 'algoliasearch-helper';
|
|
23
25
|
import type { RelatedProductsProps } from 'instantsearch-ui-components';
|
|
24
26
|
import { SearchClient } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
25
27
|
import { SearchOptions } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
@@ -2418,8 +2420,12 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2418
2420
|
};
|
|
2419
2421
|
|
|
2420
2422
|
declare type InitialResult = {
|
|
2421
|
-
state
|
|
2422
|
-
results
|
|
2423
|
+
state?: PlainSearchParameters;
|
|
2424
|
+
results?: SearchResults['_rawResults'];
|
|
2425
|
+
recommendResults?: {
|
|
2426
|
+
params: RecommendParametersOptions['params'];
|
|
2427
|
+
results: RecommendResults['_rawResults'];
|
|
2428
|
+
};
|
|
2423
2429
|
requestParams?: SearchOptions;
|
|
2424
2430
|
};
|
|
2425
2431
|
|
|
@@ -19,7 +19,9 @@ import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
|
19
19
|
import { default as qs_2 } from 'qs';
|
|
20
20
|
import type { RecommendClassNames } from 'instantsearch-ui-components';
|
|
21
21
|
import type { RecommendParameters } from 'algoliasearch-helper';
|
|
22
|
+
import type { RecommendParametersOptions } from 'algoliasearch-helper';
|
|
22
23
|
import type { RecommendResultItem } from 'algoliasearch-helper';
|
|
24
|
+
import type { RecommendResults } from 'algoliasearch-helper';
|
|
23
25
|
import type { RelatedProductsProps } from 'instantsearch-ui-components';
|
|
24
26
|
import { SearchClient } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
25
27
|
import { SearchOptions } from 'algoliasearch-helper/types/algoliasearch.js';
|
|
@@ -2418,8 +2420,12 @@ declare type InfiniteHitsWidgetParams = {
|
|
|
2418
2420
|
};
|
|
2419
2421
|
|
|
2420
2422
|
declare type InitialResult = {
|
|
2421
|
-
state
|
|
2422
|
-
results
|
|
2423
|
+
state?: PlainSearchParameters;
|
|
2424
|
+
results?: SearchResults['_rawResults'];
|
|
2425
|
+
recommendResults?: {
|
|
2426
|
+
params: RecommendParametersOptions['params'];
|
|
2427
|
+
results: RecommendResults['_rawResults'];
|
|
2428
|
+
};
|
|
2423
2429
|
requestParams?: SearchOptions;
|
|
2424
2430
|
};
|
|
2425
2431
|
|