@searchcraft/react-sdk 0.10.6 → 0.10.7
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/dist/client/index.js +1265 -1223
- package/dist/client/index.js.map +1 -1
- package/dist/server/index.d.ts +11 -4
- package/dist/server/index.js +1223 -1181
- package/dist/server/index.js.map +1 -1
- package/package.json +3 -3
package/dist/server/index.d.ts
CHANGED
|
@@ -543,6 +543,7 @@ declare class SearchClient {
|
|
|
543
543
|
private parent;
|
|
544
544
|
private searchCompletedEventTimeout;
|
|
545
545
|
private abortController;
|
|
546
|
+
private supplementalAbortController;
|
|
546
547
|
constructor(parent: SearchcraftCore, config: SearchcraftConfig, userId: string);
|
|
547
548
|
/**
|
|
548
549
|
* Getter for the base url used by the /search endpoint.
|
|
@@ -551,10 +552,10 @@ declare class SearchClient {
|
|
|
551
552
|
/**
|
|
552
553
|
* Make the request to get the search results.
|
|
553
554
|
* @param {properties} properties - The properties for the search.
|
|
554
|
-
* @param
|
|
555
|
+
* @param isSupplemental - Whether or not this is a supplemental search request (for the purpose of getting top-level facet counts)
|
|
555
556
|
* @returns
|
|
556
557
|
*/
|
|
557
|
-
getSearchResponseItems: (properties: SearchClientRequestProperties | string,
|
|
558
|
+
getSearchResponseItems: (properties: SearchClientRequestProperties | string, isSupplemental?: boolean) => Promise<SearchcraftResponse>;
|
|
558
559
|
private handleGetSearchResponseItemsWithString;
|
|
559
560
|
private handleGetSearchResponseItemsWithObject;
|
|
560
561
|
/**
|
|
@@ -681,8 +682,11 @@ export namespace Components {
|
|
|
681
682
|
*/
|
|
682
683
|
interface SearchcraftAd {
|
|
683
684
|
"adClientResponseItem"?: AdClientResponseItem;
|
|
684
|
-
"adContainerId": string;
|
|
685
685
|
"adSource": SearchcraftAdSource;
|
|
686
|
+
/**
|
|
687
|
+
* Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
|
|
688
|
+
*/
|
|
689
|
+
"renderPosition": "interstitial" | "top" | "bottom";
|
|
686
690
|
}
|
|
687
691
|
/**
|
|
688
692
|
* This web component represents a button.
|
|
@@ -1781,8 +1785,11 @@ declare namespace LocalJSX {
|
|
|
1781
1785
|
*/
|
|
1782
1786
|
interface SearchcraftAd {
|
|
1783
1787
|
"adClientResponseItem"?: AdClientResponseItem;
|
|
1784
|
-
"adContainerId"?: string;
|
|
1785
1788
|
"adSource"?: SearchcraftAdSource;
|
|
1789
|
+
/**
|
|
1790
|
+
* Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
|
|
1791
|
+
*/
|
|
1792
|
+
"renderPosition"?: "interstitial" | "top" | "bottom";
|
|
1786
1793
|
}
|
|
1787
1794
|
/**
|
|
1788
1795
|
* This web component represents a button.
|