@getlupa/client 0.7.0-alpha-14 → 0.7.0-alpha-17

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.
@@ -20,6 +20,7 @@ export declare type CategoryFilterOptions = {
20
20
  current?: {
21
21
  title?: string;
22
22
  description?: string;
23
+ descriptionTop?: string;
23
24
  };
24
25
  };
25
26
  export declare type ProductListOptions = SearchResultsOptions & {
@@ -9,6 +9,7 @@ export declare type SearchResultsOptions = SearchResultsProductOptions & SearchR
9
9
  classMap?: Record<string, string>;
10
10
  disallowEmptyQuery?: boolean;
11
11
  callbacks?: SearchResultEventCallbacks;
12
+ categories?: CategoryFilterOptions;
12
13
  };
13
14
  export declare type SearchTitlePosition = "page-top" | "search-results-top";
14
15
  export declare type SearchResultsDidYouMeanLabels = {
@@ -22,13 +23,15 @@ export declare type SearchResultsSimilarQueriesLabels = {
22
23
  };
23
24
  export declare type CallbackContext = {
24
25
  queryKey: string;
25
- hasResults: boolean;
26
+ hasResults?: boolean;
27
+ urlQueryString?: string;
26
28
  };
27
29
  export declare type SearchResultEventCallbacks = {
28
30
  onSearchResults?: (context: CallbackContext) => unknown;
29
31
  onAdditionalPanelResults?: (context: CallbackContext) => unknown;
30
32
  onCategoryFilterResults?: (context: CallbackContext) => unknown;
31
33
  onProductClick?: (context: CallbackContext) => unknown;
34
+ onUrlQueryChange?: (context: CallbackContext) => unknown;
32
35
  onMounted?: () => unknown;
33
36
  };
34
37
  export declare type SearchResultsOptionLabels = SearchResultsPaginationLabels & SearchResultsDidYouMeanLabels & SearchResultsSimilarQueriesLabels & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "0.7.0-alpha-14",
3
+ "version": "0.7.0-alpha-17",
4
4
  "main": "dist/cjs/index.min.js",
5
5
  "module": "dist/es/index.min.js",
6
6
  "types": "dist/es/index.d.ts",