yt-uikit 0.10.2-fixed-bundle-ratings.2 → 0.10.2
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.
|
@@ -190,6 +190,7 @@ type VolumeStyle = {
|
|
|
190
190
|
bundleRedirection: string;
|
|
191
191
|
discountBadgeDisplay: string;
|
|
192
192
|
discountDisplayType: string;
|
|
193
|
+
freebieDisplayType?: "compact" | "detailed";
|
|
193
194
|
showVariantOptionsLabel: boolean;
|
|
194
195
|
};
|
|
195
196
|
type ComboStyle = {
|
|
@@ -250,7 +251,6 @@ type ByobStyle = {
|
|
|
250
251
|
productFiltersDisplay: "none" | "drawer" | "sidebar";
|
|
251
252
|
filtersProvider: "based-on-products-data" | "search-and-discovery-app-sync";
|
|
252
253
|
selectedFilterOptions: string[];
|
|
253
|
-
productRatingsDisplay?: string;
|
|
254
254
|
};
|
|
255
255
|
type FixedStyle = {
|
|
256
256
|
titleFontSize: string;
|
|
@@ -272,7 +272,6 @@ type FixedStyle = {
|
|
|
272
272
|
compareAtPriceVisibility: boolean;
|
|
273
273
|
discountBadgeVisibility?: boolean;
|
|
274
274
|
discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
|
|
275
|
-
productRatingsDisplay?: string;
|
|
276
275
|
};
|
|
277
276
|
export type Customizations = {
|
|
278
277
|
shop?: string;
|
|
@@ -301,6 +300,7 @@ export type BundlePayload = {
|
|
|
301
300
|
title?: string;
|
|
302
301
|
subtitle?: string;
|
|
303
302
|
products: ProductData[];
|
|
303
|
+
freebieProducts?: ProductData[];
|
|
304
304
|
percentageOff?: number;
|
|
305
305
|
dealAmount?: number;
|
|
306
306
|
amountOff?: number;
|
|
@@ -348,6 +348,7 @@ export type BundlePayload = {
|
|
|
348
348
|
badgeTitle: string;
|
|
349
349
|
discountValue: number;
|
|
350
350
|
imageUrl?: string;
|
|
351
|
+
freebieProductIds?: string[];
|
|
351
352
|
}[];
|
|
352
353
|
mixAndMatchTiers?: {
|
|
353
354
|
tier: number;
|
|
@@ -398,7 +399,7 @@ export type BundleProps = {
|
|
|
398
399
|
addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
399
400
|
variantId: string;
|
|
400
401
|
price: number;
|
|
401
|
-
}[], properties?: Record<string, string
|
|
402
|
+
}[], properties?: Record<string, string>, freebieProduct?: string[]) => Promise<void>;
|
|
402
403
|
addCustomBundleToCart?: (e: any, formProperties?: Record<string, any>) => Promise<void>;
|
|
403
404
|
selectedItems?: {
|
|
404
405
|
variantId: string;
|
package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ type BundleProductDetailsModalProps = {
|
|
|
19
19
|
primaryTextColorCta: string;
|
|
20
20
|
primaryBackgroundColorCta: string;
|
|
21
21
|
styles: Customizations;
|
|
22
|
-
reviewRatingType?:
|
|
22
|
+
reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
|
|
23
23
|
rating?: {
|
|
24
24
|
averageRating: number;
|
|
25
25
|
ratingCount: number;
|