sfc-utils 1.3.58 → 1.3.60

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/brands2.js CHANGED
@@ -38,7 +38,8 @@ let getBrands2 = function(market){
38
38
  "siteName": "The San Francisco Chronicle",
39
39
  "twitter": "sfchronicle",
40
40
  "gaAccount": "UA-1616916-26",
41
- "subscribeLink": "https://www.sfchronicle.com/subproject"
41
+ "subscribeLink": "https://www.sfchronicle.com/subproject",
42
+ "sailCustomer": "fca2a0390286f0e53120a668534d9529"
42
43
  }
43
44
  },
44
45
 
@@ -59,7 +60,8 @@ let getBrands2 = function(market){
59
60
  "twitter": "HoustonChron",
60
61
  "invert": true,
61
62
  "gaAccount": "UA-1616916-24",
62
- "subscribeLink": "https://www.houstonchronicle.com/subproject"
63
+ "subscribeLink": "https://www.houstonchronicle.com/subproject",
64
+ "sailCustomer": "48e30b5083cf6bf47c519651453c9e8a"
63
65
  }
64
66
  },
65
67
 
@@ -80,7 +82,8 @@ let getBrands2 = function(market){
80
82
  "twitter": "timesunion",
81
83
  "invert": true,
82
84
  "gaAccount": "UA-1616916-7",
83
- "subscribeLink": "https://www.timesunion.com/subproject"
85
+ "subscribeLink": "https://www.timesunion.com/subproject",
86
+ "sailCustomer": "5bb9eee089bdc2e27cbd265535ad1f90"
84
87
  }
85
88
  },
86
89
 
@@ -96,7 +99,8 @@ let getBrands2 = function(market){
96
99
  "twitter": "ExpressNews",
97
100
  "invert": true,
98
101
  "gaAccount": "UA-1616916-27",
99
- "subscribeLink": "https://www.expressnews.com/subproject"
102
+ "subscribeLink": "https://www.expressnews.com/subproject",
103
+ "sailCustomer": "aec52c4681ed63b5beab139a2584f0d4"
100
104
  }
101
105
  },
102
106
 
@@ -112,7 +116,8 @@ let getBrands2 = function(market){
112
116
  "twitter": "insider_ct",
113
117
  "invert": true,
114
118
  "gaAccount": "UA-1616916-99",
115
- "subscribeLink": "https://www.ctinsider.com/subproject"
119
+ "subscribeLink": "https://www.ctinsider.com/subproject",
120
+ "sailCustomer": "9b21160afa226c9f84d27b47c3d52364"
116
121
  }
117
122
  },
118
123
 
@@ -128,7 +133,8 @@ let getBrands2 = function(market){
128
133
  "twitter": "mwtnews",
129
134
  "invert": true,
130
135
  "gaAccount": "UA-1616916-99",
131
- "subscribeLink": "/subproject"
136
+ "subscribeLink": "/subproject",
137
+ "sailCustomer": "4a181de0b63a131cf27f8ea9485e5e1c"
132
138
  }
133
139
  },
134
140
  Midcom: {
@@ -142,7 +148,23 @@ let getBrands2 = function(market){
142
148
  "twitter": "MDN",
143
149
  "invert": true,
144
150
  "gaAccount": "UA-1616916-99",
145
- "subscribeLink": "/subproject"
151
+ "subscribeLink": "/subproject",
152
+ "sailCustomer": "f3dc0abb53995f957783e76eff3ef01e"
153
+ }
154
+ },
155
+ Conroe: {
156
+ styles: {
157
+ "@brand": "#900900",
158
+ "@brand-secondary": "#189196"
159
+ },
160
+ attributes: {
161
+ "marketPrefix": "conroe",
162
+ "siteName": "Conroe Courier",
163
+ "twitter": "ConroeCourier",
164
+ "invert": true,
165
+ "gaAccount": "UA-1616916-99",
166
+ "subscribeLink": "https://www.yourconroenews.com/subproject",
167
+ "sailCustomer": "4a181de0b63a131cf27f8ea9485e5e1c"
146
168
  }
147
169
  },
148
170
 
@@ -4,7 +4,7 @@ import WCMImage2 from "./wcmimage2.mjs"
4
4
  import CaptionCredit from "./captioncredit.mjs"
5
5
  import * as topperStyles from "../styles/modules/topper2.module.less"
6
6
 
7
- const Topper2 = ({ settings, wcmData, lazyloader }) => {
7
+ const Topper2 = ({ settings, wcmData }) => {
8
8
  const {
9
9
  Topper_Style, Title, Title_Style, Deck, Image, Image_Alt, Image_Caption, Image_Credits,
10
10
  HeaderDek_Vertical_Position, HeaderDek_Vertical_Offset, HeaderDek_Horizontal_Offset, HeaderDek_Horizontal_Position, Inverted_Colors
@@ -87,8 +87,8 @@ const Topper2 = ({ settings, wcmData, lazyloader }) => {
87
87
  }
88
88
  }
89
89
 
90
- const ImageHTML = () => <WCMImage2 wcm={Image} alt={Image_Alt} isNotLazyloaded={false} wcmData={wcmData} lazyloader={lazyloader} isFullScreenTopper={false}/>
91
- const FullScreenImageHTML = () => <WCMImage2 wcm={Image} alt={Image_Alt} isNotLazyloaded={false} ratio={calculateFullScreenImageRatio()} wcmData={wcmData} lazyloader={lazyloader} isFullScreenTopper={true}/>
90
+ const ImageHTML = () => <WCMImage2 wcm={Image} alt={Image_Alt} isNotLazyloaded={false} wcmData={wcmData} isFullScreenTopper={false}/>
91
+ const FullScreenImageHTML = () => <WCMImage2 wcm={Image} alt={Image_Alt} isNotLazyloaded={false} ratio={calculateFullScreenImageRatio()} wcmData={wcmData} isFullScreenTopper={true}/>
92
92
 
93
93
  const TopperHtml = () => {
94
94
  switch (Topper_Style) {
@@ -17,7 +17,7 @@ const ImageHTML = ({fullPath, imageRez, alt, isFullScreenTopper}) => {
17
17
  )
18
18
  }
19
19
 
20
- const WCMImage = ({ wcm, alt, ratio, wcmData, lazyloader, isFullScreenTopper }) => {
20
+ const WCMImage = ({ wcm, alt, ratio, wcmData, isFullScreenTopper }) => {
21
21
  // When the wrapping div is rendered, we're going to figure out the best size for this image to be
22
22
  let picRef = useRef(null)
23
23
  let [imageRez, setImageRez] = useState(0)
@@ -95,14 +95,9 @@ const WCMImage = ({ wcm, alt, ratio, wcmData, lazyloader, isFullScreenTopper })
95
95
  throw `WCMImage error: Image for ${wcm} needs an alt tag! Please add a good, descriptive alt tag. Suggestion from Mozilla: When choosing alt strings for your images, imagine what you would say when reading the page to someone over the phone without mentioning that there's an image on the page.`
96
96
  }
97
97
 
98
- // Pull lazyloader HTML from index.js
99
- const LazyLoaderHTML = lazyloader;
100
-
101
98
  return (
102
99
  <div ref={picRef}>
103
- <LazyLoaderHTML>
104
100
  <ImageHTML fullPath={fullPath} imageRez={imageRez} alt={alt} isFullScreenTopper={isFullScreenTopper}/>
105
- </LazyLoaderHTML>
106
101
  </div>
107
102
  )
108
103
  }
@@ -110,8 +105,7 @@ const WCMImage = ({ wcm, alt, ratio, wcmData, lazyloader, isFullScreenTopper })
110
105
  WCMImage.propTypes = {
111
106
  wcm: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
112
107
  alt: PropTypes.string.isRequired,
113
- ratio: PropTypes.string,
114
- lazyloader: PropTypes.element
108
+ ratio: PropTypes.string
115
109
  }
116
110
 
117
111
  export default WCMImage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.3.58",
3
+ "version": "1.3.60",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",