@pronto-tools-and-more/components 15.29.0 → 15.31.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
@@ -1204,19 +1204,28 @@ var getTwitterUserUrl = (username) => {
1204
1204
  return `https://x.com/${username}`;
1205
1205
  };
1206
1206
 
1207
+ // src/parts/getWhatsUpLink/getWhatsUpLink.ts
1208
+ var getWhatsUpLink = ({ title, url }) => {
1209
+ return `whatsapp://send?text=Hoi! Ich habe einen Artikel gelesen beim Schweizer ElternMagazin Fritz+Fr\xE4nzi und dabei an dich gedacht%0A%0A
1210
+ ${title}?%0A%0A${url}`;
1211
+ };
1212
+
1207
1213
  // src/parts/GetYoutubeUserUrl/GetYoutubeUserUrl.ts
1208
1214
  var getYoutubeUserUrl = (username) => {
1209
1215
  return `https://www.youtube.com/user/myfritzundfraenzi/${username}`;
1210
1216
  };
1211
1217
 
1212
1218
  // src/parts/HeaderLogo/HeaderLogo.tsx
1213
- var HeaderLogo = ({ logoPath }) => {
1219
+ var HeaderLogo = ({
1220
+ logoPath,
1221
+ url = "/"
1222
+ }) => {
1214
1223
  const fullMessage = `<img src="${logoPath}" alt="" />`;
1215
1224
  const json = {
1216
1225
  type: "button",
1217
1226
  tap: {
1218
1227
  type: "navigate",
1219
- path: "/"
1228
+ path: url
1220
1229
  },
1221
1230
  message: fullMessage
1222
1231
  };
@@ -1224,8 +1233,11 @@ var HeaderLogo = ({ logoPath }) => {
1224
1233
  };
1225
1234
 
1226
1235
  // src/parts/HeaderLogoSection/HeaderLogoSection.tsx
1227
- var HeaderLogoSection = ({ logoPath }) => {
1228
- return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogoSection" }, /* @__PURE__ */ React.createElement(HeaderLogo, { logoPath }));
1236
+ var HeaderLogoSection = ({
1237
+ logoPath,
1238
+ url
1239
+ }) => {
1240
+ return /* @__PURE__ */ React.createElement("div", { className: "HeaderLogoSection" }, /* @__PURE__ */ React.createElement(HeaderLogo, { logoPath, url }));
1229
1241
  };
1230
1242
 
1231
1243
  // src/parts/HeaderMenuItems/HeaderMenuItems.tsx
@@ -2274,7 +2286,7 @@ var SocialLink = ({ item }) => {
2274
2286
  // src/parts/SocialLinks/SocialLinks.tsx
2275
2287
  var SocialLinks = ({ items }) => {
2276
2288
  return /* @__PURE__ */ React.createElement("ul", { className: "SocialLinks" }, ...items.map((link) => {
2277
- return /* @__PURE__ */ React.createElement(SocialLink, { item: link });
2289
+ return /* @__PURE__ */ React.createElement(If, { condition: `"${link.label}" !== "WhatsUp" || $context.device_type !== "desktop" ` }, /* @__PURE__ */ React.createElement(SocialLink, { item: link }), ";");
2278
2290
  }));
2279
2291
  };
2280
2292
 
@@ -2403,6 +2415,7 @@ export {
2403
2415
  getThreadsUserUrl,
2404
2416
  getTwitterShareUrl,
2405
2417
  getTwitterUserUrl,
2418
+ getWhatsUpLink,
2406
2419
  getYoutubeUserUrl,
2407
2420
  pathPrefix
2408
2421
  };
@@ -35,6 +35,7 @@ export * from "../GetPinterestUserUrl/GetPinterestUserUrl.ts";
35
35
  export * from "../GetThreadsUserUrl/GetThreadsUserUrl.ts";
36
36
  export * from "../GetTwitterShareUrl/GetTwitterShareUrl.ts";
37
37
  export * from "../GetTwitterUserUrl/GetTwitterUserUrl.ts";
38
+ export * from "../getWhatsUpLink/getWhatsUpLink.ts";
38
39
  export * from "../GetYoutubeUserUrl/GetYoutubeUserUrl.ts";
39
40
  export * from "../HeaderLogo/HeaderLogo.tsx";
40
41
  export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
@@ -1,3 +1,4 @@
1
- export declare const HeaderLogo: ({ logoPath }: {
1
+ export declare const HeaderLogo: ({ logoPath, url, }: {
2
2
  logoPath: string;
3
+ url?: string;
3
4
  }) => import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
- export declare const HeaderLogoSection: ({ logoPath }: {
1
+ export declare const HeaderLogoSection: ({ logoPath, url, }: {
2
2
  logoPath: string;
3
+ url?: string;
3
4
  }) => import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const getWhatsUpLink: ({ title, url }: {
2
+ title: string;
3
+ url: string;
4
+ }) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "15.29.0",
3
+ "version": "15.31.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",