@pronto-tools-and-more/components 10.41.0 → 10.43.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
@@ -597,6 +597,51 @@ var FooterSocialLinks = ({
597
597
  }));
598
598
  };
599
599
 
600
+ // src/parts/GetEmailLink/GetEmailLink.ts
601
+ var separator = "%0D%0D";
602
+ var getEmailLink = ({
603
+ subject,
604
+ details
605
+ }) => {
606
+ const formattedDetails = details.join(separator);
607
+ return `mailto:?subject=${subject}&body=${formattedDetails}${separator}`;
608
+ };
609
+
610
+ // src/parts/GetFacebookShareUrl/GetFacebookShareUrl.ts
611
+ var getFacebookShareUrl = ({ url }) => {
612
+ return `https://www.facebook.com/sharer/sharer.php?u=${url}`;
613
+ };
614
+
615
+ // src/parts/GetFacebookUserUrl/GetFacebookUserUrl.ts
616
+ var getFacebookUserUrl = (username) => {
617
+ return `https://www.facebook.com/${username}`;
618
+ };
619
+
620
+ // src/parts/GetInstagramUserUrl/GetInstagramUserUrl.ts
621
+ var getInstagramUserUrl = (username) => {
622
+ return `https://www.instagram.com/${username}`;
623
+ };
624
+
625
+ // src/parts/GetPinterestUserUrl/GetPinterestUserUrl.ts
626
+ var getPinterestUserUrl = (username) => {
627
+ return `https://ch.pinterest.com/${username}`;
628
+ };
629
+
630
+ // src/parts/GetTwitterShareUrl/GetTwitterShareUrl.ts
631
+ var getTwitterShareUrl = ({ url }) => {
632
+ return `https://twitter.com/intent/tweet?text=${url}`;
633
+ };
634
+
635
+ // src/parts/GetTwitterUserUrl/GetTwitterUserUrl.ts
636
+ var getTwitterUserUrl = (username) => {
637
+ return `https://x.com/${username}`;
638
+ };
639
+
640
+ // src/parts/GetYoutubeUserUrl/GetYoutubeUserUrl.ts
641
+ var getYoutubeUserUrl = (username) => {
642
+ return `https://www.youtube.com/user/myfritzundfraenzi/${username}`;
643
+ };
644
+
600
645
  // src/parts/HeaderLogo/HeaderLogo.tsx
601
646
  var HeaderLogo = ({ logoPath }) => {
602
647
  const fullMessage = `<img src="${logoPath}" alt="" />`;
@@ -1174,5 +1219,13 @@ export {
1174
1219
  SubscriptionLink,
1175
1220
  TagList,
1176
1221
  createLanguageRegistry,
1177
- dateHelper
1222
+ dateHelper,
1223
+ getEmailLink,
1224
+ getFacebookShareUrl,
1225
+ getFacebookUserUrl,
1226
+ getInstagramUserUrl,
1227
+ getPinterestUserUrl,
1228
+ getTwitterShareUrl,
1229
+ getTwitterUserUrl,
1230
+ getYoutubeUserUrl
1178
1231
  };
@@ -15,6 +15,14 @@ export * from "../ErrorPage/ErrorPage.tsx";
15
15
  export * from "../FooterItemsList/FooterItemsList.tsx";
16
16
  export * from "../FooterSocialLink/FooterSocialLink.tsx";
17
17
  export * from "../FooterSocialLinks/FooterSocialLinks.tsx";
18
+ export * from "../GetEmailLink/GetEmailLink.ts";
19
+ export * from "../GetFacebookShareUrl/GetFacebookShareUrl.ts";
20
+ export * from "../GetFacebookUserUrl/GetFacebookUserUrl.ts";
21
+ export * from "../GetInstagramUserUrl/GetInstagramUserUrl.ts";
22
+ export * from "../GetPinterestUserUrl/GetPinterestUserUrl.ts";
23
+ export * from "../GetTwitterShareUrl/GetTwitterShareUrl.ts";
24
+ export * from "../GetTwitterUserUrl/GetTwitterUserUrl.ts";
25
+ export * from "../GetYoutubeUserUrl/GetYoutubeUserUrl.ts";
18
26
  export * from "../HeaderLogo/HeaderLogo.tsx";
19
27
  export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
20
28
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
@@ -0,0 +1,4 @@
1
+ export declare const getEmailLink: ({ subject, details, }: {
2
+ subject: string;
3
+ details: readonly string[];
4
+ }) => string;
@@ -0,0 +1,3 @@
1
+ export declare const getFacebookShareUrl: ({ url }: {
2
+ url: string;
3
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const getFacebookUserUrl: (username: string) => string;
@@ -0,0 +1 @@
1
+ export declare const getInstagramUserUrl: (username: string) => string;
@@ -0,0 +1 @@
1
+ export declare const getPinterestUserUrl: (username: string) => string;
@@ -0,0 +1,3 @@
1
+ export declare const getTwitterShareUrl: ({ url }: {
2
+ url: string;
3
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const getTwitterUserUrl: (username: string) => string;
@@ -0,0 +1 @@
1
+ export declare const getYoutubeUserUrl: (username: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.41.0",
3
+ "version": "10.43.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",