yt-uikit 0.7.361-optimizations-test.1 → 0.7.361-optimizations-test.3
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/esm/components/BundleBlock/Bundle.d.ts +7 -5
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +1 -0
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +1 -0
- package/dist/esm/index.js +436 -438
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +7 -5
- package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +1 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +1 -0
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/index.d.ts +7 -5
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ export type ProductDetails = {
|
|
|
80
80
|
title: string;
|
|
81
81
|
handle: string;
|
|
82
82
|
featuredMedia: ProductFeaturedMedia;
|
|
83
|
-
status: "
|
|
83
|
+
status: "active" | "archived" | "draft" | "";
|
|
84
84
|
options: ProductOption[];
|
|
85
85
|
onlineStoreUrl: string;
|
|
86
86
|
collections: {
|
|
@@ -105,10 +105,12 @@ export type ProductDetails = {
|
|
|
105
105
|
node: {
|
|
106
106
|
alt: string;
|
|
107
107
|
preview: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
image: {
|
|
109
|
+
altText: string;
|
|
110
|
+
width?: number;
|
|
111
|
+
height?: number;
|
|
112
|
+
url: string;
|
|
113
|
+
};
|
|
112
114
|
};
|
|
113
115
|
image: {
|
|
114
116
|
altText: string;
|
|
@@ -11,6 +11,7 @@ interface FreebieClaimManagerProps {
|
|
|
11
11
|
cartCheckpoints?: Checkpoint[];
|
|
12
12
|
imageAspectSelector?: "square" | "portrait";
|
|
13
13
|
freebieCouponTemplates?: Checkpoint[];
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
16
17
|
export default FreebieClaimManager;
|
|
@@ -11,6 +11,7 @@ interface FreebieClaimOverlayProps {
|
|
|
11
11
|
imageAspectSelector?: "square" | "portrait";
|
|
12
12
|
freebieCouponTemplates?: Checkpoint[];
|
|
13
13
|
freebieClaimData?: any;
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
16
17
|
export default FreebieClaimOverlay;
|
|
@@ -11,3 +11,4 @@ export declare const shouldRenderCheckoutMessageInCartList: () => boolean;
|
|
|
11
11
|
export declare const shouldUseBWTheme: () => boolean;
|
|
12
12
|
export declare const optimizeShopifyImage: (imageUrl: string | undefined | null, size?: number, quality?: number, format?: "webp" | "auto" | "jpg" | "png") => string;
|
|
13
13
|
export declare const darkenColor: (color: string | undefined, amount?: number) => string;
|
|
14
|
+
export declare const extractBundleDiscountTitle: (discountTitle: string) => string;
|
|
@@ -11,3 +11,4 @@ export declare const shouldRenderCheckoutMessageInCartList: () => boolean;
|
|
|
11
11
|
export declare const shouldUseBWTheme: () => boolean;
|
|
12
12
|
export declare const optimizeShopifyImage: (imageUrl: string | undefined | null, size?: number, quality?: number, format?: "webp" | "auto" | "jpg" | "png") => string;
|
|
13
13
|
export declare const darkenColor: (color: string | undefined, amount?: number) => string;
|
|
14
|
+
export declare const extractBundleDiscountTitle: (discountTitle: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -428,7 +428,7 @@ type ProductDetails = {
|
|
|
428
428
|
title: string;
|
|
429
429
|
handle: string;
|
|
430
430
|
featuredMedia: ProductFeaturedMedia;
|
|
431
|
-
status: "
|
|
431
|
+
status: "active" | "archived" | "draft" | "";
|
|
432
432
|
options: ProductOption[];
|
|
433
433
|
onlineStoreUrl: string;
|
|
434
434
|
collections: {
|
|
@@ -453,10 +453,12 @@ type ProductDetails = {
|
|
|
453
453
|
node: {
|
|
454
454
|
alt: string;
|
|
455
455
|
preview: {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
456
|
+
image: {
|
|
457
|
+
altText: string;
|
|
458
|
+
width?: number;
|
|
459
|
+
height?: number;
|
|
460
|
+
url: string;
|
|
461
|
+
};
|
|
460
462
|
};
|
|
461
463
|
image: {
|
|
462
464
|
altText: string;
|