@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.cjs
CHANGED
|
@@ -10059,6 +10059,7 @@ async function resolveFromForm(options) {
|
|
|
10059
10059
|
if (repeatableFromSchema) {
|
|
10060
10060
|
for (const r of repeatableFromSchema) {
|
|
10061
10061
|
repeatableNodeMap.set(r.label, r.nodeId);
|
|
10062
|
+
repeatableNodeMap.set(r.label.trim().toLowerCase(), r.nodeId);
|
|
10062
10063
|
}
|
|
10063
10064
|
}
|
|
10064
10065
|
let inferredSections;
|
|
@@ -10085,18 +10086,18 @@ async function resolveFromForm(options) {
|
|
|
10085
10086
|
}
|
|
10086
10087
|
}
|
|
10087
10088
|
const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
|
|
10088
|
-
const
|
|
10089
|
+
const configDynamicFields = templateConfig.dynamicFields;
|
|
10090
|
+
const formSchemaDynamicFields = templateFormSchema == null ? void 0 : templateFormSchema.dynamicFields;
|
|
10091
|
+
const dynamicFields = ((configDynamicFields == null ? void 0 : configDynamicFields.length) ? configDynamicFields : formSchemaDynamicFields) || [];
|
|
10089
10092
|
const mappings = [];
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
});
|
|
10099
|
-
}
|
|
10093
|
+
for (const field of dynamicFields) {
|
|
10094
|
+
if (field.mappings) {
|
|
10095
|
+
for (const m of field.mappings) {
|
|
10096
|
+
mappings.push({
|
|
10097
|
+
field_key: field.id,
|
|
10098
|
+
element_id: m.elementId,
|
|
10099
|
+
target_property: m.targetProperty
|
|
10100
|
+
});
|
|
10100
10101
|
}
|
|
10101
10102
|
}
|
|
10102
10103
|
}
|