@pronto-tools-and-more/components 15.10.0 → 15.12.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.
- package/dist/main.js +4 -2
- package/dist/parts/Image/Image.d.ts +2 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -1328,11 +1328,13 @@ var Image = ({
|
|
1328
1328
|
alt,
|
1329
1329
|
loading,
|
1330
1330
|
className,
|
1331
|
-
width
|
1331
|
+
width,
|
1332
|
+
resize
|
1332
1333
|
}) => {
|
1333
1334
|
const webp = webP;
|
1334
1335
|
const actualWidth = width || defaultWidth;
|
1335
|
-
const
|
1336
|
+
const resizeString = resize ? JSON.stringify(resize) : void 0;
|
1337
|
+
const optimizedSrc = `$functions.getOptimizedImageSrc("${src}", ${webp}, ${actualWidth}, ${resizeString})`;
|
1336
1338
|
return /* @__PURE__ */ React.createElement("img", { src: optimizedSrc, alt, loading, className });
|
1337
1339
|
};
|
1338
1340
|
|
@@ -1,7 +1,8 @@
|
|
1
|
-
export declare const Image: ({ src, alt, loading, className, width, }: {
|
1
|
+
export declare const Image: ({ src, alt, loading, className, width, resize, }: {
|
2
2
|
src: string;
|
3
3
|
alt?: string;
|
4
4
|
className?: string;
|
5
5
|
loading?: "lazy";
|
6
6
|
width?: number;
|
7
|
+
resize?: string;
|
7
8
|
}) => import("react").JSX.Element;
|