@haus-storefront-react/shared-types 0.0.32-1 → 0.0.32-10

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 +147 -0
  2. package/index.d.ts +41 -17
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,150 @@
1
+ ## 0.0.32-9 (2025-09-23)
2
+
3
+ ### 🚀 Features
4
+
5
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
6
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
7
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
8
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
9
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Johanna Bertils @johannabertils
14
+ - Mathias Saxenstrand
15
+
16
+ ## 0.0.32-8 (2025-09-23)
17
+
18
+ ### 🚀 Features
19
+
20
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
21
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
22
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
23
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
24
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
25
+
26
+ ### ❤️ Thank You
27
+
28
+ - Johanna Bertils @johannabertils
29
+ - Mathias Saxenstrand
30
+
31
+ ## 0.0.32-7 (2025-09-17)
32
+
33
+ ### 🚀 Features
34
+
35
+ - add collection and collections functionality to SDK ([79c1d54](https://github.com/WeAreHausTech/haus-storefront-components/commit/79c1d54))
36
+ - enhance SDK context and add active plugin configuration support ([bc7e8ac](https://github.com/WeAreHausTech/haus-storefront-components/commit/bc7e8ac))
37
+ - add Vendure Elastic Search Plugin integration ([6aaa641](https://github.com/WeAreHausTech/haus-storefront-components/commit/6aaa641))
38
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
39
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
40
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
41
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
42
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
43
+
44
+ ### ❤️ Thank You
45
+
46
+ - Johanna Bertils @johannabertils
47
+ - Mathias Saxenstrand
48
+
49
+ ## 0.0.32-6 (2025-09-17)
50
+
51
+ ### 🚀 Features
52
+
53
+ - add collection and collections functionality to SDK ([79c1d54](https://github.com/WeAreHausTech/haus-storefront-components/commit/79c1d54))
54
+ - enhance SDK context and add active plugin configuration support ([bc7e8ac](https://github.com/WeAreHausTech/haus-storefront-components/commit/bc7e8ac))
55
+ - add Vendure Elastic Search Plugin integration ([6aaa641](https://github.com/WeAreHausTech/haus-storefront-components/commit/6aaa641))
56
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
57
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
58
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
59
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
60
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
61
+
62
+ ### ❤️ Thank You
63
+
64
+ - Johanna Bertils @johannabertils
65
+ - Mathias Saxenstrand
66
+
67
+ ## 0.0.32-5 (2025-09-17)
68
+
69
+ ### 🚀 Features
70
+
71
+ - enhance SDK context and add active plugin configuration support ([bc7e8ac](https://github.com/WeAreHausTech/haus-storefront-components/commit/bc7e8ac))
72
+ - add Vendure Elastic Search Plugin integration ([6aaa641](https://github.com/WeAreHausTech/haus-storefront-components/commit/6aaa641))
73
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
74
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
75
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
76
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
77
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
78
+
79
+ ### ❤️ Thank You
80
+
81
+ - Johanna Bertils @johannabertils
82
+ - Mathias Saxenstrand
83
+
84
+ ## 0.0.32-4 (2025-09-16)
85
+
86
+ ### 🚀 Features
87
+
88
+ - enhance SDK context and add active plugin configuration support ([bc7e8ac](https://github.com/WeAreHausTech/haus-storefront-components/commit/bc7e8ac))
89
+ - add Vendure Elastic Search Plugin integration ([6aaa641](https://github.com/WeAreHausTech/haus-storefront-components/commit/6aaa641))
90
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
91
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
92
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
93
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
94
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
95
+
96
+ ### ❤️ Thank You
97
+
98
+ - Johanna Bertils @johannabertils
99
+ - Mathias Saxenstrand
100
+
101
+ ## 0.0.32-3 (2025-09-16)
102
+
103
+ ### 🚀 Features
104
+
105
+ - enhance SDK context and add active plugin configuration support ([bc7e8ac](https://github.com/WeAreHausTech/haus-storefront-components/commit/bc7e8ac))
106
+ - add Vendure Elastic Search Plugin integration ([6aaa641](https://github.com/WeAreHausTech/haus-storefront-components/commit/6aaa641))
107
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
108
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
109
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
110
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
111
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
112
+
113
+ ### ❤️ Thank You
114
+
115
+ - Johanna Bertils @johannabertils
116
+ - Mathias Saxenstrand
117
+
118
+ ## 0.0.32-2 (2025-09-16)
119
+
120
+ ### 🚀 Features
121
+
122
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
123
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
124
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
125
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
126
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
127
+
128
+ ### ❤️ Thank You
129
+
130
+ - Johanna Bertils @johannabertils
131
+ - Mathias Saxenstrand
132
+
133
+ ## 0.0.32-1 (2025-09-15)
134
+
135
+ ### 🚀 Features
136
+
137
+ - enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
138
+ - add discount management components and hooks ([#33](https://github.com/WeAreHausTech/haus-storefront-components/pull/33))
139
+ - add ProductBadge component for enhanced product presentation ([#26](https://github.com/WeAreHausTech/haus-storefront-components/pull/26))
140
+ - add filters component for product listing ([d780517](https://github.com/WeAreHausTech/haus-storefront-components/commit/d780517))
141
+ - add ProductListPrice component to handle pricing details ([4f53f48](https://github.com/WeAreHausTech/haus-storefront-components/commit/4f53f48))
142
+
143
+ ### ❤️ Thank You
144
+
145
+ - Johanna Bertils @johannabertils
146
+ - Mathias Saxenstrand
147
+
1
148
  ## 0.0.31 (2025-09-11)
2
149
 
3
150
  ### 🚀 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<{
@@ -84,6 +84,7 @@ export type PriceFilterType = {
84
84
  export type EnabledFilter<T = FacetValueFilterType | PriceFilterType> = T & {
85
85
  label?: string;
86
86
  };
87
+ export type ActiveFilters = Record<string, (string | undefined)[]>;
87
88
  export type FacetValueFilterInput = {
88
89
  and?: Maybe<string>;
89
90
  or?: Maybe<Array<string>>;
@@ -114,10 +115,6 @@ export interface BuilderQueryUpdates {
114
115
  [key: string]: Pick<BuilderQuery, 'fields'>;
115
116
  }
116
117
  export type QueryResponse<T> = AxiosResponse<T>;
117
- export type PriceRangeInput = {
118
- max: number;
119
- min: number;
120
- };
121
118
  export interface SearchInput {
122
119
  term?: Maybe<string>;
123
120
  collectionId?: Maybe<string>;
@@ -130,8 +127,6 @@ export interface SearchInput {
130
127
  sort?: Maybe<SearchResultSortParameter>;
131
128
  take?: Maybe<number>;
132
129
  skip?: Maybe<number>;
133
- priceRange?: Maybe<PriceRangeInput>;
134
- priceRangeWithTax?: Maybe<PriceRangeInput>;
135
130
  }
136
131
  export interface Pagination {
137
132
  isInitialized: boolean;
@@ -229,11 +224,9 @@ export interface SearchResultAsset {
229
224
  id: string;
230
225
  preview: string;
231
226
  }
232
- export type FilterInputs = {
227
+ export interface FilterInputs {
233
228
  filters: FacetValueFilterInput[];
234
- priceRange?: PriceRangeInput;
235
- priceRangeWithTax?: PriceRangeInput;
236
- };
229
+ }
237
230
  export interface SearchResult {
238
231
  collectionIds: Array<string>;
239
232
  currencyCode: CurrencyCode;
@@ -266,15 +259,10 @@ export interface CollectionResult extends ResponseResult {
266
259
  export interface FacetValueResult extends ResponseResult {
267
260
  facetValue: FacetValue;
268
261
  }
269
- export interface SearchResponsePriceData {
270
- range: PriceRange;
271
- rangeWithTax: PriceRange;
272
- }
273
262
  export interface SearchResponse {
274
263
  collections: Array<CollectionResult>;
275
264
  facetValues: Array<FacetValueResult>;
276
265
  items: Array<SearchResult>;
277
- prices: SearchResponsePriceData;
278
266
  totalItems: number;
279
267
  }
280
268
  export interface ProductResponse {
@@ -283,7 +271,8 @@ export interface ProductResponse {
283
271
  export interface GroupedFacetValues {
284
272
  [key: string]: FacetValue[];
285
273
  }
286
- export type SearchInputProps = Pick<SearchInput, 'term' | 'collectionId' | 'facetValueIds' | 'facetValueOperator' | 'facetValueFilters' | 'groupByProduct' | 'sort' | 'take' | 'skip' | 'priceRange' | 'priceRangeWithTax'>;
274
+ export interface SearchInputProps extends Pick<SearchInput, 'term' | 'collectionId' | 'facetValueIds' | 'facetValueOperator' | 'facetValueFilters' | 'groupByProduct' | 'sort' | 'take' | 'skip'> {
275
+ }
287
276
  export interface Node<CustomFields = Record<string, unknown>> {
288
277
  id: string;
289
278
  createdAt: string;
@@ -628,6 +617,41 @@ export interface OrderList extends PaginatedList {
628
617
  items: Array<Order>;
629
618
  totalItems: number;
630
619
  }
620
+ export interface CollectionSortParameter {
621
+ id?: Maybe<SortOrder>;
622
+ createdAt?: Maybe<SortOrder>;
623
+ updatedAt?: Maybe<SortOrder>;
624
+ name?: Maybe<SortOrder>;
625
+ slug?: Maybe<SortOrder>;
626
+ position?: Maybe<SortOrder>;
627
+ description?: Maybe<SortOrder>;
628
+ parentId?: Maybe<SortOrder>;
629
+ }
630
+ export interface CollectionFilterParameter {
631
+ id?: Maybe<IdOperators>;
632
+ createdAt?: Maybe<DateOperators>;
633
+ updatedAt?: Maybe<DateOperators>;
634
+ languageCode?: Maybe<StringOperators>;
635
+ name?: Maybe<StringOperators>;
636
+ slug?: Maybe<StringOperators>;
637
+ position?: Maybe<NumberOperators>;
638
+ description?: Maybe<StringOperators>;
639
+ parentId?: Maybe<IdOperators>;
640
+ _and?: Maybe<CollectionFilterParameter[]>;
641
+ _or?: Maybe<CollectionFilterParameter[]>;
642
+ }
643
+ export interface CollectionListOptions {
644
+ topLevelOnly?: Maybe<boolean>;
645
+ skip?: Maybe<number>;
646
+ take?: Maybe<number>;
647
+ sort?: Maybe<CollectionSortParameter>;
648
+ filter?: Maybe<CollectionFilterParameter>;
649
+ filterOperator?: Maybe<LogicalOperator>;
650
+ }
651
+ export interface CollectionList extends PaginatedList {
652
+ items: Array<Collection>;
653
+ totalItems: number;
654
+ }
631
655
  export interface Badge {
632
656
  id: string;
633
657
  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-1",
3
+ "version": "0.0.32-10",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {