@getlupa/vue 0.11.1 → 0.11.3

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.
@@ -65,6 +65,7 @@ export type SearchResultsOptionLabels = SearchResultsPaginationLabels & SearchRe
65
65
  currency: string;
66
66
  priceSeparator?: string;
67
67
  searchResults?: string;
68
+ searchResultsCount?: string;
68
69
  itemCount: string;
69
70
  emptyResults: string;
70
71
  mobileFilterButton: string;
@@ -146,6 +147,7 @@ export type ResultCurrentFilterOptions = {
146
147
  };
147
148
  desktopToolbar?: {
148
149
  activeFiltersExpanded?: boolean;
150
+ position?: 'pageTop' | 'resultsTop';
149
151
  };
150
152
  };
151
153
  export type FacetStyle = 'sidebar' | 'top-dropdown';
@@ -16,6 +16,7 @@ export type SearchResultsProductCardOptions = {
16
16
  queryKey: string;
17
17
  idKey?: string;
18
18
  titleKey?: string;
19
+ priceKeys?: string[];
19
20
  customDocumentHtmlAttributes?: CustomDocumentHtmlAttributes;
20
21
  };
21
22
  export type SearchResultBadgeOptions = {
@@ -1,7 +1,11 @@
1
1
  import type { LabeledFilter, UnfoldedFilter } from '../types/search-results/Filters';
2
2
  import type { FacetResult, FilterGroup, FilterGroupItemTypeRange, HierarchyTree } from '@getlupa/client-sdk/Types';
3
3
  export declare const formatRange: (filter: FilterGroupItemTypeRange) => string;
4
- export declare const unfoldFilters: (filters?: FilterGroup) => UnfoldedFilter[];
4
+ export declare const unfoldFilters: (filters?: FilterGroup, price?: {
5
+ keys?: string[];
6
+ currency?: string;
7
+ separator?: string;
8
+ }) => UnfoldedFilter[];
5
9
  export declare const getLabeledFilters: (filters: UnfoldedFilter[], facets?: FacetResult[]) => LabeledFilter[];
6
10
  export declare const isFacetKey: (key: string) => boolean;
7
11
  export declare const isArrayKey: (key: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "main": "dist/lupaSearch.mjs",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",