mod-build 3.7.16-beta.1 → 3.7.16
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
|
@@ -48,7 +48,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
48
48
|
|
|
49
49
|
if (field.fieldType === 'radio') {
|
|
50
50
|
if (!field.errorMessage) {
|
|
51
|
-
field.errorMessage = '
|
|
51
|
+
field.errorMessage = 'Professionals need this info to generate a quote.';
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (field.options && Array.isArray(field.options) && field.options.length) {
|
|
@@ -113,7 +113,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
113
113
|
|
|
114
114
|
if (field.fieldType === 'radio') {
|
|
115
115
|
if (!field.errorMessage) {
|
|
116
|
-
field.errorMessage = '
|
|
116
|
+
field.errorMessage = 'Professionals need this info to generate a quote.';
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
if (field.options && Array.isArray(field.options) && field.options.length) {
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -218,6 +218,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
218
218
|
}
|
|
219
219
|
return output.trim();
|
|
220
220
|
}
|
|
221
|
+
},
|
|
222
|
+
// If we need to grab a data attribute value that is set in attributes: { data: {} }
|
|
223
|
+
{
|
|
224
|
+
name: 'getDataAttributeValue',
|
|
225
|
+
fn: function(obj, key) {
|
|
226
|
+
return obj && obj[key] ? obj[key] : '';
|
|
227
|
+
}
|
|
221
228
|
}
|
|
222
229
|
];
|
|
223
230
|
|
|
@@ -371,14 +378,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
371
378
|
|
|
372
379
|
const displayNameResponseJson = JSON.parse(displayNameResponse);
|
|
373
380
|
brandedDisplayName = displayNameResponseJson.data[vendorPublicIdentifier];
|
|
374
|
-
consentCaptureObject.brandedConsentCapture.tcpaStart = responseJson.brandedConsentCapture.tcpaStart;
|
|
375
|
-
consentCaptureObject.brandedIncludeExclusivelyConsentCapture.tcpaStart = responseJson.brandedIncludeExclusivelyConsentCapture.tcpaStart;
|
|
376
|
-
consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = responseJson.brandedIncludeServiceConsentCapture.tcpaStart;
|
|
377
|
-
|
|
378
|
-
// replacing data-branded-consent and data-service
|
|
379
|
-
consentCaptureObject = JSON.parse(
|
|
380
|
-
JSON.stringify(consentCaptureObject).replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`).replace(/<span data-service><\/span>/g, `<span data-service>${service}</span>`)
|
|
381
|
-
);
|
|
381
|
+
consentCaptureObject.brandedConsentCapture.tcpaStart = responseJson.brandedConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`);
|
|
382
|
+
consentCaptureObject.brandedIncludeExclusivelyConsentCapture.tcpaStart = responseJson.brandedIncludeExclusivelyConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`);
|
|
383
|
+
consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = responseJson.brandedIncludeServiceConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`).replace(/<span data-service><\/span>/g, `<span data-service>${service}</span>`);
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
386
|
|