@searchcraft/react-sdk 0.10.5 → 0.10.6

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.
@@ -542,6 +542,7 @@ declare class SearchClient {
542
542
  private userId;
543
543
  private parent;
544
544
  private searchCompletedEventTimeout;
545
+ private abortController;
545
546
  constructor(parent: SearchcraftCore, config: SearchcraftConfig, userId: string);
546
547
  /**
547
548
  * Getter for the base url used by the /search endpoint.
@@ -605,7 +606,7 @@ export declare class SearchcraftCore {
605
606
  * Perform various actions when the input is cleared
606
607
  */
607
608
  handleInputCleared(): void;
608
- getResponseItems: (properties: SearchClientRequestProperties | string, searchCallback: (response: SearchcraftResponse, items: SearchClientResponseItem[], supplementalResponse: SearchcraftResponse | undefined) => void, adCallback: (items: AdClientResponseItem[]) => void) => void;
609
+ getResponseItems: (properties: SearchClientRequestProperties | string, searchCallback: (request: SearchClientRequestProperties | string, response: SearchcraftResponse, items: SearchClientResponseItem[], supplementalResponse: SearchcraftResponse | undefined) => void, adCallback: (items: AdClientResponseItem[]) => void) => void;
609
610
  }
610
611
  /**
611
612
  * Callable functions made available by the SearchcraftStore.
@@ -621,8 +622,8 @@ export interface SearchcraftStateFunctions {
621
622
  search: () => Promise<void>;
622
623
  set: (state: Partial<SearchcraftState> | ((state: SearchcraftState) => Partial<SearchcraftState>)) => SearchcraftState;
623
624
  setAdClientResponseItems: (items: AdClientResponseItem[]) => void;
624
- setSearchClientResponseItemsFromResponse: (response: SearchcraftResponse, items: SearchClientResponseItem[], supplementalResponse: SearchcraftResponse | undefined) => void;
625
- setInitialSearchClientResponseItemsFromResponse: (response: SearchcraftResponse, items: SearchClientResponseItem[]) => void;
625
+ setSearchClientResponseItemsFromResponse: (request: SearchClientRequestProperties | string, response: SearchcraftResponse, items: SearchClientResponseItem[], supplementalResponse: SearchcraftResponse | undefined) => void;
626
+ setInitialSearchClientResponseItemsFromResponse: (request: SearchClientRequestProperties | string, response: SearchcraftResponse, items: SearchClientResponseItem[]) => void;
626
627
  setInitialQuery: (query: string) => void;
627
628
  setPopoverVisibility: (isVisible: boolean) => void;
628
629
  setSearchResultsCount: (count: number) => void;
@@ -653,6 +654,7 @@ export interface SearchcraftStateValues {
653
654
  isSearchInProgress: boolean;
654
655
  rangeValueForIndexFields: Record<string, RangeValueForIndexField>;
655
656
  searchMode: "fuzzy" | "exact";
657
+ searchClientRequest: SearchClientRequestProperties | string | undefined | null;
656
658
  searchClientResponseItems: SearchClientResponseItem[];
657
659
  searchResponseTimeTaken: number | undefined;
658
660
  searchResponseFacetPrime: FacetPrime | undefined | null;