mod-build 4.0.66-beta.2 → 4.0.66
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.66
|
|
4
|
+
|
|
5
|
+
- Removed the `addVwoTestAttribute` flag. The `data-vwo-test` attribute will now always be added to the `body` tag if the current session is a variation.
|
|
6
|
+
|
|
3
7
|
## 4.0.65
|
|
4
8
|
|
|
5
9
|
- Added functionality to fail the build if the Axios request to pull the accessible component is unsuccessful.
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
if (window.Modalytics && typeof window.Modalytics.initHeapVwo === 'function' && !window.heapVwoinited) {
|
|
14
14
|
window.Modalytics.initHeapVwo();
|
|
15
15
|
}
|
|
16
|
-
if (variationId != 1
|
|
16
|
+
if (variationId != 1) {
|
|
17
17
|
// Control is assigned variation ID 1 - variations receive incremented IDs starting from 2
|
|
18
18
|
const adjustedVariationId = variationId - 1;
|
|
19
19
|
const vwoTestAttrValue = `${experimentId}-${adjustedVariationId}`;
|
package/tasks/templates.js
CHANGED
|
@@ -20,7 +20,7 @@ async function mergeDefaultFormFieldConfigOnSteps(defaultConfig, data, parentCon
|
|
|
20
20
|
if (!data || typeof data !== 'object') return;
|
|
21
21
|
|
|
22
22
|
if (data.steps && typeof data.steps === 'object') {
|
|
23
|
-
data.steps = await mergeDefaultFormFieldConfig(
|
|
23
|
+
data.steps = await mergeDefaultFormFieldConfig(defaultConfig, data, parentConfig);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
for (const key in data) {
|