mod-build 4.0.96 → 4.0.97-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
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.97
|
|
4
|
+
|
|
5
|
+
- Added `HomeStories` to the default steps configuration in `get-default-trade-questions.js`. Also added support for `checkbox-group` fields (to support our HomeBuddy flows).
|
|
6
|
+
|
|
3
7
|
## 4.0.96
|
|
4
8
|
|
|
5
9
|
- Added `resolveRefs()` to `get-default-trade-questions.js` to resolve JSON `$ref` placeholders, cutting down on repeated content in trade-questions config
|
package/package.json
CHANGED
|
@@ -90,7 +90,7 @@ function mergeDefaultTradeQuestionsConfig(config, steps) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if (field.fieldType === 'radio') {
|
|
93
|
+
if (field.fieldType === 'radio' || field.fieldType === 'checkbox-group') {
|
|
94
94
|
if (!field.errorMessage) {
|
|
95
95
|
field.errorMessage = 'Professionals need this info to generate a quote.';
|
|
96
96
|
}
|
|
@@ -159,7 +159,7 @@ function mergeDefaultTradeQuestionsConfig(config, steps) {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
if (field.fieldType === 'radio') {
|
|
162
|
+
if (field.fieldType === 'radio' || field.fieldType === 'checkbox-group') {
|
|
163
163
|
if (!field.errorMessage) {
|
|
164
164
|
field.errorMessage = 'Professionals need this info to generate a quote.';
|
|
165
165
|
}
|
|
@@ -234,6 +234,7 @@ export default async function(config) {
|
|
|
234
234
|
const steps = await response.json();
|
|
235
235
|
steps.OwnHome = commonQuestions.OwnHome;
|
|
236
236
|
steps.BuyTimeframe = commonQuestions.BuyTimeframe;
|
|
237
|
+
steps.HomeStories = commonQuestions.HomeStories;
|
|
237
238
|
|
|
238
239
|
const resolvedSteps = resolveRefs(steps, steps);
|
|
239
240
|
mergeDefaultTradeQuestionsConfigOnSteps(config, resolvedSteps);
|