formica-ui-lib 1.0.128 → 1.0.130

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.
@@ -200,15 +200,31 @@ export type ProductDetailData = {
200
200
  standardCopyHero?: ProductDetailStandardCopyHero;
201
201
  featuredProducts?: ProductDetailFeaturedProduct[];
202
202
  };
203
+ export type ProductDetailWishlistPayload = {
204
+ sku?: string;
205
+ decor?: string;
206
+ };
207
+ export type ProductDetailOrder = {
208
+ type: string;
209
+ sku?: string;
210
+ decor?: string;
211
+ product: string | null;
212
+ grade: string | null;
213
+ texture: string | null;
214
+ size: string | null;
215
+ quantity: number;
216
+ priceValue?: number;
217
+ priceLabel?: string;
218
+ currency?: string;
219
+ };
220
+ export type ProductDetailCartFlyoutProps = Omit<CartFlyoutProps, "isOpen" | "onClose">;
203
221
  export type ProductDetailPageTemplateProps = {
204
222
  breadcrumbsProps?: BreadcrumbsProps;
205
223
  productData: ProductDetailData;
206
224
  onDownloadSwatch?: (productData: ProductDetailData) => void;
207
225
  onDownloadFullSheet?: (productData: ProductDetailData) => void;
208
- onAddToWishlist?: (payload: {}, // ProductDetailWishlistPayload,
209
- productData: ProductDetailData) => void;
210
- onAddToCart?: (order: {}, // ProductDetailOrder,
211
- productData: ProductDetailData) => void;
226
+ onAddToWishlist?: (payload: ProductDetailWishlistPayload, productData: ProductDetailData) => void;
227
+ onAddToCart?: (order: ProductDetailOrder, productData: ProductDetailData) => void;
212
228
  onNavigate?: (href: string, meta?: unknown) => void;
213
- cartFlyoutProps?: CartFlyoutProps;
229
+ cartFlyoutProps?: ProductDetailCartFlyoutProps;
214
230
  };