@pixldocs/canvas-renderer 0.3.5 → 0.3.6
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/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10085,18 +10085,18 @@ async function resolveFromForm(options) {
|
|
|
10085
10085
|
}
|
|
10086
10086
|
}
|
|
10087
10087
|
const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
|
|
10088
|
-
const
|
|
10088
|
+
const configDynamicFields = templateConfig.dynamicFields;
|
|
10089
|
+
const formSchemaDynamicFields = templateFormSchema == null ? void 0 : templateFormSchema.dynamicFields;
|
|
10090
|
+
const dynamicFields = ((configDynamicFields == null ? void 0 : configDynamicFields.length) ? configDynamicFields : formSchemaDynamicFields) || [];
|
|
10089
10091
|
const mappings = [];
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
});
|
|
10099
|
-
}
|
|
10092
|
+
for (const field of dynamicFields) {
|
|
10093
|
+
if (field.mappings) {
|
|
10094
|
+
for (const m of field.mappings) {
|
|
10095
|
+
mappings.push({
|
|
10096
|
+
field_key: field.id,
|
|
10097
|
+
element_id: m.elementId,
|
|
10098
|
+
target_property: m.targetProperty
|
|
10099
|
+
});
|
|
10100
10100
|
}
|
|
10101
10101
|
}
|
|
10102
10102
|
}
|