sfc-utils 1.4.175 → 1.4.177

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.
@@ -33,6 +33,28 @@ const ShareButtons = ({ meta, urlAdd }) => {
33
33
  <div className={shareStyles.wrapper} id="sharebutton-box">
34
34
  {!hideSocial && (
35
35
  <>
36
+ {/* Facebook */}
37
+ <a
38
+ href={`https://www.facebook.com/sharer/sharer.php?u=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%2F${urlAdd}`}
39
+ className={shareStyles.link}
40
+ onClick={facebookClick}
41
+ >
42
+ <svg
43
+ className={shareStyles.svg}
44
+ aria-hidden="true"
45
+ focusable="false"
46
+ data-prefix="fab"
47
+ data-icon="facebook"
48
+ role="img"
49
+ xmlns="http://www.w3.org/2000/svg"
50
+ viewBox="0 0 320 512"
51
+ >
52
+ <path
53
+ fill="currentColor"
54
+ d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"
55
+ ></path>
56
+ </svg>
57
+ </a>
36
58
  {/* Twitter */}
37
59
  <a
38
60
  href={`https://x.com/intent/post?url=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%2F${urlAdd}&text=${meta.PROJECT.TWITTER_TEXT}`}
@@ -69,26 +91,23 @@ const ShareButtons = ({ meta, urlAdd }) => {
69
91
  />
70
92
  </svg>
71
93
  </a>
72
- {/* Facebook */}
94
+ {/* Bluesky */}
73
95
  <a
74
- href={`https://www.facebook.com/sharer/sharer.php?u=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%2F${urlAdd}`}
96
+ href={`https://bsky.app/intent/compose?text=${meta.PROJECT.TWITTER_TEXT}&url=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%${urlAdd}`}
75
97
  className={shareStyles.link}
76
- onClick={facebookClick}
77
98
  >
78
99
  <svg
79
100
  className={shareStyles.svg}
101
+ data-icon="bluesky"
102
+ role="img"
80
103
  aria-hidden="true"
81
104
  focusable="false"
82
- data-prefix="fab"
83
- data-icon="facebook"
84
- role="img"
85
105
  xmlns="http://www.w3.org/2000/svg"
86
- viewBox="0 0 320 512"
106
+ viewBox="0 0 512 512"
87
107
  >
88
108
  <path
89
- fill="currentColor"
90
- d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"
91
- ></path>
109
+ data-name="Bluesky Logo"
110
+ fill="currentColor" d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"/>
92
111
  </svg>
93
112
  </a>
94
113
  </>
package/index.js CHANGED
@@ -38,12 +38,7 @@ let blendHDN = function (meta) {
38
38
  if (MARKET_KEY === "CT") {
39
39
  BASE_DOMAIN = "ctinsider.com";
40
40
  }
41
- let siteDomain;
42
- if (CANONICAL_URL) {
43
- siteDomain = CANONICAL_URL.match("^(.+?).com")[0];
44
- } else {
45
- siteDomain = MAIN_DOMAIN;
46
- }
41
+ const siteDomain = MAIN_DOMAIN;
47
42
  // Check if we need a slash
48
43
  let slash = OPT_SLASH;
49
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.175",
3
+ "version": "1.4.177",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
package/settings.js CHANGED
@@ -71,31 +71,31 @@ let getSettings = function () {
71
71
  // Default newsletter based by market
72
72
  let defaultNewsletter, defaultNewsletterPromo, defaultNewsletterLegal;
73
73
  switch (storySettings.Market_Key) {
74
- case 'SFC':
75
- defaultNewsletter = 'SFC_TheMustRead';
74
+ case "SFC":
75
+ defaultNewsletter = "SFC_TheMustRead";
76
76
  defaultNewsletterPromo = `The Chronicle’s most popular stories and best reads of the moment.`;
77
77
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.sfchronicle.com/terms_of_use/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.sfchronicle.com/privacy_policy/"> Privacy Notice</a>.`;
78
- break
79
- case 'Houston':
80
- defaultNewsletter = 'HC_The713';
78
+ break;
79
+ case "Houston":
80
+ defaultNewsletter = "HC_The713";
81
81
  defaultNewsletterPromo = `A morning newsletter that keeps you connected to Houston in 5 minutes or less.`;
82
82
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.houstonchronicle.com/terms_of_use/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.houstonchronicle.com/privacy_policy/"> Privacy Notice</a>.`;
83
- break
84
- case 'SanAntonio':
85
- defaultNewsletter = 'SAEN_OnOurRadar';
83
+ break;
84
+ case "SanAntonio":
85
+ defaultNewsletter = "SAEN_OnOurRadar";
86
86
  defaultNewsletterPromo = `Get the mid-morning scoop on developing news in San Antonio.`;
87
87
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.expressnews.com/terms_of_use/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.expressnews.com/privacy_policy/"> Privacy Notice</a>.`;
88
- break
89
- case 'Albany':
90
- defaultNewsletter = 'ALB_SundayRead';
88
+ break;
89
+ case "Albany":
90
+ defaultNewsletter = "ALB_SundayRead";
91
91
  defaultNewsletterPromo = `Answering the week’s biggest questions and delivering them to your inbox.`;
92
92
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.timesunion.com/termsofservice/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.timesunion.com/privacypolicy/"> Privacy Notice</a>.`;
93
- break
94
- case 'CT':
95
- defaultNewsletter = 'ct_ins_morning_briefing';
93
+ break;
94
+ case "CT":
95
+ defaultNewsletter = "ct_ins_morning_briefing";
96
96
  defaultNewsletterPromo = `Stay connected to Connecticut’s stories with a daily digest of top headlines.`;
97
97
  defaultNewsletterLegal = `By subscribing, you agree to our <a href="https://www.ctinsider.com/tos/">Terms of Use</a> and acknowledge that your information will be used as described in our <a href="https://www.ctinsider.com/privacy/"> Privacy Notice</a>.`;
98
- break
98
+ break;
99
99
  }
100
100
 
101
101
  // Populate with sheet settings