@pronto-tools-and-more/components 10.42.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
@@ -607,6 +607,41 @@ var getEmailLink = ({
607
607
  return `mailto:?subject=${subject}&body=${formattedDetails}${separator}`;
608
608
  };
609
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
+
610
645
  // src/parts/HeaderLogo/HeaderLogo.tsx
611
646
  var HeaderLogo = ({ logoPath }) => {
612
647
  const fullMessage = `<img src="${logoPath}" alt="" />`;
@@ -1185,5 +1220,12 @@ export {
1185
1220
  TagList,
1186
1221
  createLanguageRegistry,
1187
1222
  dateHelper,
1188
- getEmailLink
1223
+ getEmailLink,
1224
+ getFacebookShareUrl,
1225
+ getFacebookUserUrl,
1226
+ getInstagramUserUrl,
1227
+ getPinterestUserUrl,
1228
+ getTwitterShareUrl,
1229
+ getTwitterUserUrl,
1230
+ getYoutubeUserUrl
1189
1231
  };
@@ -16,6 +16,13 @@ export * from "../FooterItemsList/FooterItemsList.tsx";
16
16
  export * from "../FooterSocialLink/FooterSocialLink.tsx";
17
17
  export * from "../FooterSocialLinks/FooterSocialLinks.tsx";
18
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";
19
26
  export * from "../HeaderLogo/HeaderLogo.tsx";
20
27
  export * from "../HeaderLogoSection/HeaderLogoSection.tsx";
21
28
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
@@ -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.42.0",
3
+ "version": "10.43.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",