@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
|
|
8756
|
+
products: items
|
|
8757
|
+
.map(transformAlgoliaProductHitToProductHit)
|
|
8758
|
+
.filter(product => product.hit.type === 'product'),
|
|
8757
8759
|
};
|
|
8758
8760
|
}
|
|
8759
8761
|
|