mod-build 3.6.98 → 3.6.99-beta.2
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 +5 -0
- package/gulp-tasks/templates.js +6 -1
- package/package.json +1 -1
- package/package-lock-1.json +0 -35243
- package/package-lock-2.json +0 -29515
- package/src/data/contractor-trades.js +0 -80
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
|
|
3
8
|
## 3.6.98
|
|
4
9
|
|
|
5
10
|
- Add howDidYouHearAboutUs value to Contractor Form
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -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', '<label><input class="consent-capture" type="checkbox" data-name="Modernize" data-key="33940610" checked /> Modernize</label>');
|
|
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
|
});
|