mod-build 3.6.61-beta.3 → 3.6.61-beta.5

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 3.6.61
4
4
 
5
- - Adding the accessible components to the `grab-shared-components` task
5
+ - Adding the accessible components to the `grab-shared-components` task; As well as pulling the accessible `defaultFormFieldConfig` for the new template.js configuration.
6
6
 
7
7
  ## 3.6.60
8
8
 
@@ -64,7 +64,20 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
64
64
  {
65
65
  name: 'xif',
66
66
  fn: function(expression, options) {
67
- return handlebarsX(expression, this, options) ? options.fn(this) : options.inverse(this);
67
+ const result = handlebarsX(expression, this, options);
68
+ if (result) {
69
+ return options.fn(this);
70
+ } else {
71
+ return options.inverse(this);
72
+ }
73
+ },
74
+ inverse: function(expression, options) {
75
+ const result = handlebarsX(expression, this, options);
76
+ if (result) {
77
+ return options.inverse(this);
78
+ } else {
79
+ return options.fn(this);
80
+ }
68
81
  }
69
82
  },
70
83
  // Reverse array
@@ -244,7 +257,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
244
257
  return async function() {
245
258
  if (Object.keys(siteData).length > 0) {
246
259
  if (!templatesData.doNotUseDefaultFieldConfig && !templatesData.defaultConfigCompleted) {
247
- if (templatesData.useAccessibleFormConfig) {
260
+ if (templatesData.siteData.useAccessibleFormConfig) {
248
261
  await getDefaultFormFieldConfig('accessible-components');
249
262
  } else {
250
263
  await getDefaultFormFieldConfig('shared-components');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.61-beta.3",
3
+ "version": "3.6.61-beta.5",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",