@pronto-tools-and-more/components 14.50.0 → 14.54.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 CHANGED
@@ -1273,14 +1273,29 @@ var IfLength = ({
1273
1273
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
1274
1274
  };
1275
1275
 
1276
+ // src/parts/ImageConfig/ImageConfig.ts
1277
+ var imageConfig;
1278
+ if (process.env.PRONTO_IMAGE_CONFIG) {
1279
+ const parsed = JSON.parse(process.env.PRONTO_IMAGE_CONFIG);
1280
+ imageConfig = parsed;
1281
+ } else {
1282
+ imageConfig = {};
1283
+ }
1284
+ var defaultWidth = imageConfig.defaultWidth || 0;
1285
+ var webP = imageConfig.webp || 0;
1286
+
1276
1287
  // src/parts/Image/Image.tsx
1277
1288
  var Image = ({
1278
1289
  src,
1279
1290
  alt,
1280
1291
  loading,
1281
- className
1292
+ className,
1293
+ width
1282
1294
  }) => {
1283
- return /* @__PURE__ */ React.createElement("img", { src, alt, loading, className });
1295
+ const webp = webP;
1296
+ const actualWidth = width || defaultWidth;
1297
+ const optimizedSrc = `$functions.getOptimizedImageSrc("${src}", ${webp}, ${actualWidth})`;
1298
+ return /* @__PURE__ */ React.createElement("img", { src: optimizedSrc, alt, loading, className });
1284
1299
  };
1285
1300
 
1286
1301
  // src/parts/Language/Language.ts
@@ -2074,6 +2089,7 @@ var Seo = ({
2074
2089
  language,
2075
2090
  alternates,
2076
2091
  googleSiteVerification,
2092
+ facebookDomainVerification,
2077
2093
  image
2078
2094
  } = {}) => {
2079
2095
  const actualTitlePostFix = getActualTitlePostFix(titlePostfix);
@@ -2093,6 +2109,7 @@ var Seo = ({
2093
2109
  title: actualTitle,
2094
2110
  keywords,
2095
2111
  "google-site-verification": googleSiteVerification,
2112
+ "facebook-domain-verification": facebookDomainVerification,
2096
2113
  language,
2097
2114
  alternates
2098
2115
  }
@@ -1,6 +1,7 @@
1
- export declare const Image: ({ src, alt, loading, className, }: {
1
+ export declare const Image: ({ src, alt, loading, className, width, }: {
2
2
  src: string;
3
3
  alt?: string;
4
4
  className?: string;
5
5
  loading?: "lazy";
6
+ width?: number;
6
7
  }) => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const defaultWidth: any;
2
+ export declare const webP: any;
@@ -1,5 +1,5 @@
1
1
  import type { HrefLangAlternate } from "../HrefLangAlternate/HrefLangAlternate.ts";
2
- export declare const Seo: ({ title, description, keywords, titlePostfix, language, alternates, googleSiteVerification, image, }?: {
2
+ export declare const Seo: ({ title, description, keywords, titlePostfix, language, alternates, googleSiteVerification, facebookDomainVerification, image, }?: {
3
3
  title?: string;
4
4
  description?: string;
5
5
  keywords?: string;
@@ -8,5 +8,6 @@ export declare const Seo: ({ title, description, keywords, titlePostfix, languag
8
8
  hrefLang?: string;
9
9
  alternates?: readonly HrefLangAlternate[];
10
10
  googleSiteVerification?: string;
11
+ facebookDomainVerification?: string;
11
12
  image?: string;
12
13
  }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "14.50.0",
3
+ "version": "14.54.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",