@pixldocs/canvas-renderer 0.3.5 → 0.3.7
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 +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10040,6 +10040,7 @@ async function resolveFromForm(options) {
|
|
|
10040
10040
|
if (repeatableFromSchema) {
|
|
10041
10041
|
for (const r of repeatableFromSchema) {
|
|
10042
10042
|
repeatableNodeMap.set(r.label, r.nodeId);
|
|
10043
|
+
repeatableNodeMap.set(r.label.trim().toLowerCase(), r.nodeId);
|
|
10043
10044
|
}
|
|
10044
10045
|
}
|
|
10045
10046
|
let inferredSections;
|
|
@@ -10066,18 +10067,18 @@ async function resolveFromForm(options) {
|
|
|
10066
10067
|
}
|
|
10067
10068
|
}
|
|
10068
10069
|
const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
|
|
10069
|
-
const
|
|
10070
|
+
const configDynamicFields = templateConfig.dynamicFields;
|
|
10071
|
+
const formSchemaDynamicFields = templateFormSchema == null ? void 0 : templateFormSchema.dynamicFields;
|
|
10072
|
+
const dynamicFields = ((configDynamicFields == null ? void 0 : configDynamicFields.length) ? configDynamicFields : formSchemaDynamicFields) || [];
|
|
10070
10073
|
const mappings = [];
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
});
|
|
10080
|
-
}
|
|
10074
|
+
for (const field of dynamicFields) {
|
|
10075
|
+
if (field.mappings) {
|
|
10076
|
+
for (const m of field.mappings) {
|
|
10077
|
+
mappings.push({
|
|
10078
|
+
field_key: field.id,
|
|
10079
|
+
element_id: m.elementId,
|
|
10080
|
+
target_property: m.targetProperty
|
|
10081
|
+
});
|
|
10081
10082
|
}
|
|
10082
10083
|
}
|
|
10083
10084
|
}
|