@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.js
CHANGED
|
@@ -10066,18 +10066,18 @@ async function resolveFromForm(options) {
|
|
|
10066
10066
|
}
|
|
10067
10067
|
}
|
|
10068
10068
|
const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
|
|
10069
|
-
const
|
|
10069
|
+
const configDynamicFields = templateConfig.dynamicFields;
|
|
10070
|
+
const formSchemaDynamicFields = templateFormSchema == null ? void 0 : templateFormSchema.dynamicFields;
|
|
10071
|
+
const dynamicFields = ((configDynamicFields == null ? void 0 : configDynamicFields.length) ? configDynamicFields : formSchemaDynamicFields) || [];
|
|
10070
10072
|
const mappings = [];
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
});
|
|
10080
|
-
}
|
|
10073
|
+
for (const field of dynamicFields) {
|
|
10074
|
+
if (field.mappings) {
|
|
10075
|
+
for (const m of field.mappings) {
|
|
10076
|
+
mappings.push({
|
|
10077
|
+
field_key: field.id,
|
|
10078
|
+
element_id: m.elementId,
|
|
10079
|
+
target_property: m.targetProperty
|
|
10080
|
+
});
|
|
10081
10081
|
}
|
|
10082
10082
|
}
|
|
10083
10083
|
}
|