@haus-storefront-react/shared-types 0.0.32-2 → 0.0.32-4

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/index.d.ts +5 -17
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ ## 0.0.32-3 (2025-09-16)
2
+
3
+ ### 🚀 Features
4
+
5
+ - enhance SDK context and add active plugin configuration support ([bc7e8ac](https://github.com/WeAreHausTech/haus-storefront-components/commit/bc7e8ac))
6
+ - add Vendure Elastic Search Plugin integration ([6aaa641](https://github.com/WeAreHausTech/haus-storefront-components/commit/6aaa641))
7
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
8
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
9
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
10
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
11
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
12
+
13
+ ### ❤️ Thank You
14
+
15
+ - Johanna Bertils @johannabertils
16
+ - Mathias Saxenstrand
17
+
18
+ ## 0.0.32-2 (2025-09-16)
19
+
20
+ ### 🚀 Features
21
+
22
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
23
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
24
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
25
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
26
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
27
+
28
+ ### ❤️ Thank You
29
+
30
+ - Johanna Bertils @johannabertils
31
+ - Mathias Saxenstrand
32
+
1
33
  ## 0.0.32-1 (2025-09-15)
2
34
 
3
35
  ### 🚀 Features
package/index.d.ts CHANGED
@@ -42,7 +42,7 @@ type PluginFeatureNames = ObtainKeys<PluginFeatureMappings, unknown>;
42
42
  export type PluginFeatures = Partial<{
43
43
  [K in PluginFeatureNames]: PluginFeatureMappings[K];
44
44
  }>;
45
- type PluginName = 'packageSize' | 'productPopularity' | 'badges' | 'campaign' | string;
45
+ export type PluginName = 'packageSize' | 'productPopularity' | 'badges' | 'campaign' | 'elastic' | string;
46
46
  type ProviderData = {
47
47
  wraps?: string;
48
48
  provider: React.ComponentType<{
@@ -114,10 +114,6 @@ export interface BuilderQueryUpdates {
114
114
  [key: string]: Pick<BuilderQuery, 'fields'>;
115
115
  }
116
116
  export type QueryResponse<T> = AxiosResponse<T>;
117
- export type PriceRangeInput = {
118
- max: number;
119
- min: number;
120
- };
121
117
  export interface SearchInput {
122
118
  term?: Maybe<string>;
123
119
  collectionId?: Maybe<string>;
@@ -130,8 +126,6 @@ export interface SearchInput {
130
126
  sort?: Maybe<SearchResultSortParameter>;
131
127
  take?: Maybe<number>;
132
128
  skip?: Maybe<number>;
133
- priceRange?: Maybe<PriceRangeInput>;
134
- priceRangeWithTax?: Maybe<PriceRangeInput>;
135
129
  }
136
130
  export interface Pagination {
137
131
  isInitialized: boolean;
@@ -229,11 +223,9 @@ export interface SearchResultAsset {
229
223
  id: string;
230
224
  preview: string;
231
225
  }
232
- export type FilterInputs = {
226
+ export interface FilterInputs {
233
227
  filters: FacetValueFilterInput[];
234
- priceRange?: PriceRangeInput;
235
- priceRangeWithTax?: PriceRangeInput;
236
- };
228
+ }
237
229
  export interface SearchResult {
238
230
  collectionIds: Array<string>;
239
231
  currencyCode: CurrencyCode;
@@ -266,15 +258,10 @@ export interface CollectionResult extends ResponseResult {
266
258
  export interface FacetValueResult extends ResponseResult {
267
259
  facetValue: FacetValue;
268
260
  }
269
- export interface SearchResponsePriceData {
270
- range: PriceRange;
271
- rangeWithTax: PriceRange;
272
- }
273
261
  export interface SearchResponse {
274
262
  collections: Array<CollectionResult>;
275
263
  facetValues: Array<FacetValueResult>;
276
264
  items: Array<SearchResult>;
277
- prices: SearchResponsePriceData;
278
265
  totalItems: number;
279
266
  }
280
267
  export interface ProductResponse {
@@ -283,7 +270,8 @@ export interface ProductResponse {
283
270
  export interface GroupedFacetValues {
284
271
  [key: string]: FacetValue[];
285
272
  }
286
- export type SearchInputProps = Pick<SearchInput, 'term' | 'collectionId' | 'facetValueIds' | 'facetValueOperator' | 'facetValueFilters' | 'groupByProduct' | 'sort' | 'take' | 'skip' | 'priceRange' | 'priceRangeWithTax'>;
273
+ export interface SearchInputProps extends Pick<SearchInput, 'term' | 'collectionId' | 'facetValueIds' | 'facetValueOperator' | 'facetValueFilters' | 'groupByProduct' | 'sort' | 'take' | 'skip'> {
274
+ }
287
275
  export interface Node<CustomFields = Record<string, unknown>> {
288
276
  id: string;
289
277
  createdAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-storefront-react/shared-types",
3
- "version": "0.0.32-2",
3
+ "version": "0.0.32-4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {