mod-build 3.6.97 → 3.6.99-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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.99
4
+
5
+ - Updating final TCPA text from `fetchTcpaFromSitegenie()` with the Modernize consent checkbox + Privacy & Terms of Use modal links.
6
+ *This is a quick, temporary solve to get all of S3 updated with the Modernize consent. Once O&O Consent Capture starts actually getting implemented — we will update this as Modernize will need to be populated with the API response*
7
+
8
+ ## 3.6.98
9
+
10
+ - Add howDidYouHearAboutUs value to Contractor Form
11
+
3
12
  ## 3.6.97
4
13
 
5
14
  - Update regex for homeowner form to accomodate if contractor form is present
@@ -302,8 +302,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
302
302
  let finalTCPA = await responseJson.tcpa.replace(/QuinStreet/g, 'Modernize');
303
303
  const removeInlineStyleRegex = / style="[^"]*"/g;
304
304
  finalTCPA = finalTCPA.replace(removeInlineStyleRegex, '');
305
- templatesData.tcpaText = await finalTCPA;
306
305
 
306
+ // Adjustments for Modernize Consent Capture (will be adjusted with O&O Consent Implementation)
307
+ finalTCPA = finalTCPA.replace('Modernize', '<span class="checkbox"><label><input class="consent-capture" type="checkbox" data-name="Modernize" data-key="33940610" checked /> Modernize</label></span>');
308
+ const tcpaPrivacyAndTerms = ' Please see our <a id="tcpaPrivacy" href="/?modal=tcpaPrivacy" data-load="/resources/templates/modals/privacy/" data-bind="modal-page">Privacy Notice</a> and our <a id="tcpaTerms" href="/?modal=tcpaTerms" data-load="/resources/templates/modals/terms/" data-bind="modal-page">Terms of Use</a>';
309
+ finalTCPA += tcpaPrivacyAndTerms;
310
+
311
+ templatesData.tcpaText = await finalTCPA;
307
312
  resolve();
308
313
  });
309
314
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.97",
3
+ "version": "3.6.99-beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -311,6 +311,7 @@ modForm.formatContractorDataForModApi = function(formData, currentStep) {
311
311
  multipleTrades: formData.multipleTrades ? 1 : 0,
312
312
  contractorNetwork: formData.contractorNetwork ? 1 : 0,
313
313
  companyName: formData.companyName,
314
+ howDidYouHearAboutUs: formData.howDidYouHearAboutUs,
314
315
  phone: formData.homePhone,
315
316
  email: formData.email,
316
317
  bbdId: formData.bbdId,