mod-build 3.7.19 → 3.7.20-beta.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.7.20
4
+
5
+ - Added `addTcpaAboveCta` and `addTcpaBelowCta` helper functions to determine where tcpa should be placed based on trade/branded conditions.
6
+
3
7
  ## 3.7.19
4
8
 
5
9
  - Added missed attributes in global questions config of siding and tree services.
@@ -225,6 +225,20 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
225
225
  fn: function(obj, key) {
226
226
  return obj && obj[key] ? obj[key] : '';
227
227
  }
228
+ },
229
+ {
230
+ name: 'addTcpaAboveCta',
231
+ fn: function(page) {
232
+ const trade = page.primary_trade.toUpperCase();
233
+ return trade === 'SOLAR' || trade === 'HOME_SECURITY' || page.isBranded;
234
+ }
235
+ },
236
+ {
237
+ name: 'addTcpaBelowCta',
238
+ fn: function(page) {
239
+ const trade = page.primary_trade.toUpperCase();
240
+ return trade !== 'SOLAR' || trade !== 'HOME_SECURITY' || !page.isBranded;
241
+ }
228
242
  }
229
243
  ];
230
244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.19",
3
+ "version": "3.7.20-beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",