yt-uikit 0.10.145 → 0.10.146-image-render.0

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.
@@ -9,6 +9,12 @@ export declare function setContrastTextColor(element: HTMLElement | null, lightC
9
9
  export declare const formatPriceWithCommas: (price: number | string) => string;
10
10
  export declare const shouldRenderCheckoutMessageInCartList: () => boolean;
11
11
  export declare const optimizeShopifyImage: (imageUrl: string | undefined | null, size?: number, quality?: number, format?: "webp" | "auto" | "jpg" | "png") => string;
12
+ export declare const responsiveImageProps: (imageUrl: string | undefined | null) => {
13
+ src: string;
14
+ srcSet: string;
15
+ sizes: string;
16
+ loading: "lazy";
17
+ };
12
18
  export declare const darkenColor: (color: string | undefined, amount?: number) => string;
13
19
  export declare const getCompareAtPrice: (item: {
14
20
  compare_at_price?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.10.145",
3
+ "version": "0.10.146-image-render.0",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && tsc && rollup -c",