@getlupa/client 0.6.0-alpha-13 → 0.6.0-alpha-14

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.
@@ -21,6 +21,7 @@ export default class SearchResultModule extends VuexModule {
21
21
  get labeledFilters(): LabeledFilter[];
22
22
  get displayFilters(): LabeledFilter[];
23
23
  get currentFilterCount(): number;
24
+ get currentFilterKeys(): string[];
24
25
  get hasAnyFilter(): boolean;
25
26
  get itemRange(): number[];
26
27
  get isMobileWidth(): boolean;
@@ -34,6 +35,10 @@ export default class SearchResultModule extends VuexModule {
34
35
  addToCartAmount?: number;
35
36
  layout?: ResultsLayout;
36
37
  }): void;
38
+ queryFacet({ queryKey, facetKey, }: {
39
+ queryKey: string;
40
+ facetKey: string;
41
+ }): Promise<void>;
37
42
  load(loading: boolean): void;
38
43
  setScreenWidth({ width }: {
39
44
  width: number;
@@ -108,6 +108,9 @@ export declare type ResultCurrentFilterOptions = {
108
108
  };
109
109
  };
110
110
  export declare type FacetStyle = "sidebar" | "top-dropdown";
111
+ export declare type FacetFilterQuery = {
112
+ queryKey: string;
113
+ };
111
114
  export declare type ResultFacetOptions = {
112
115
  labels: {
113
116
  title: string;
@@ -139,6 +142,7 @@ export declare type ResultFacetOptions = {
139
142
  type: FacetStyle;
140
143
  };
141
144
  exclude?: string[];
145
+ facetFilterQueries?: Record<string, FacetFilterQuery>;
142
146
  };
143
147
  export declare type SearchResultsFilterOptions = {
144
148
  currentFilters?: ResultCurrentFilterOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "0.6.0-alpha-13",
3
+ "version": "0.6.0-alpha-14",
4
4
  "main": "dist/cjs/index.min.js",
5
5
  "module": "dist/es/index.min.js",
6
6
  "types": "dist/es/index.d.ts",