@sonic-equipment/ui 0.0.84 → 0.0.85

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.
package/dist/index.d.ts CHANGED
@@ -4198,6 +4198,7 @@ interface AlgoliaProduct$1 {
4198
4198
  slug: string
4199
4199
  storefrontId: string
4200
4200
  storefrontSlug: string
4201
+ type: 'promo' | 'product'
4201
4202
  weight: number
4202
4203
  width: number
4203
4204
  }
@@ -4899,6 +4900,7 @@ interface AlgoliaProduct {
4899
4900
  slug: string;
4900
4901
  storefrontId: string;
4901
4902
  storefrontSlug: string;
4903
+ type: 'promo' | 'product';
4902
4904
  weight: number;
4903
4905
  width: number;
4904
4906
  }
package/dist/index.js CHANGED
@@ -8753,7 +8753,9 @@ function useAlgoliaProductHits() {
8753
8753
  const [isLoading] = useAlgoliaProductHitsLoading();
8754
8754
  return {
8755
8755
  isLoading,
8756
- products: items.map(transformAlgoliaProductHitToProductHit),
8756
+ products: items
8757
+ .map(transformAlgoliaProductHitToProductHit)
8758
+ .filter(product => product.hit.type === 'product'),
8757
8759
  };
8758
8760
  }
8759
8761
 
@@ -32,6 +32,7 @@ interface AlgoliaProduct {
32
32
  slug: string;
33
33
  storefrontId: string;
34
34
  storefrontSlug: string;
35
+ type: 'promo' | 'product';
35
36
  weight: number;
36
37
  width: number;
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {