sfc-utils 1.3.71 → 1.3.73

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.
@@ -3,7 +3,7 @@ import React from 'react'
3
3
  import { Helmet } from 'react-helmet'
4
4
  import { appCheck, getBrands2 } from "../../index"
5
5
 
6
- const LayoutHelmet = ({ meta, url_add }) => {
6
+ const LayoutHelmet = ({ meta, url_add, noindex = false }) => {
7
7
  let {
8
8
  EMBEDDED,
9
9
  MAIN_DOMAIN,
@@ -68,7 +68,7 @@ const LayoutHelmet = ({ meta, url_add }) => {
68
68
  <link rel="canonical" href={`${CANONICAL_URL}/${url_add}`} />
69
69
  <link rel="stylesheet" href={`https://files.sfchronicle.com/brand-styles/${styleSheetID}.css`} />
70
70
 
71
- {(isApp || EMBEDDED) ? (
71
+ {(isApp || EMBEDDED || noindex) ? (
72
72
  <meta name="robots" content="noindex, nofollow" />
73
73
  ) : (
74
74
  <meta name="robots" content="max-image-preview:large" />
@@ -99,7 +99,7 @@ const ImageSlideshow = ({ wcmData, imageList, altList, topperStyle, isLayoutInve
99
99
  }}
100
100
  >
101
101
  <div className={getWrapperClass()}>
102
- <TopperImage wcm={imageList[index]} alt={altList[index]} wcmData={wcmData} overrideCssList={getImageClassList()} />
102
+ <TopperImage wcm={imageList[index]} alt={altList[index]} wcmData={wcmData} imageCssList={getImageClassList()} />
103
103
  </div>
104
104
  </CSSTransition>
105
105
  </TransitionGroup>
@@ -140,7 +140,7 @@ const Topper2 = ({ settings, wcmData }) => {
140
140
  const getWcmIdList = (listStr) => {
141
141
  if (!listStr) return [];
142
142
 
143
- return listStr.split(";").map((d) => parseInt(d));
143
+ return listStr.toString().split(";").map((d) => parseInt(d));
144
144
  }
145
145
 
146
146
  /** Checks if WCM list represents an image slideshow */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.3.71",
3
+ "version": "1.3.73",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
@@ -42,19 +42,6 @@ h1 {
42
42
  }
43
43
  }
44
44
 
45
- //move into share module?
46
- .articleHeader--shareTools {
47
- float: right;
48
- a, a:visited {
49
- color: @black;
50
- }
51
- @media (max-width: @md) {
52
- display: block;
53
- float: none;
54
- margin: @s4 0;
55
- }
56
- }
57
-
58
45
  .caption {
59
46
  margin: @s4 auto @s24;
60
47
  }