mod-build 3.7.15 → 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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.7.16
4
+
5
+ - Added the new `getDataAttributeValue` helper function; Also updated the generic error language in `get-default-trade-questions`.
6
+
3
7
  ## 3.7.15
4
8
 
5
9
  - Added the Clients List modal to be grabbed as part of the `grab-cdn` task.
@@ -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 = 'Please select one option';
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 = 'Please select one option';
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) {
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.15",
3
+ "version": "3.7.16",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",