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.
@@ -80,7 +80,7 @@ export type ProductDetails = {
80
80
  title: string;
81
81
  handle: string;
82
82
  featuredMedia: ProductFeaturedMedia;
83
- status: "ACTIVE" | "ARCHIVED" | "DRAFT" | "";
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
- altText: string;
109
- width?: number;
110
- height?: number;
111
- url: string;
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: "ACTIVE" | "ARCHIVED" | "DRAFT" | "";
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
- altText: string;
457
- width?: number;
458
- height?: number;
459
- url: string;
456
+ image: {
457
+ altText: string;
458
+ width?: number;
459
+ height?: number;
460
+ url: string;
461
+ };
460
462
  };
461
463
  image: {
462
464
  altText: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.7.361-optimizations-test.1",
3
+ "version": "0.7.361-optimizations-test.3",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",