@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 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 dynamicFields = templateConfig.dynamicFields;
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
- if (dynamicFields) {
10091
- for (const field of dynamicFields) {
10092
- if (field.mappings) {
10093
- for (const m of field.mappings) {
10094
- mappings.push({
10095
- field_key: field.id,
10096
- element_id: m.elementId,
10097
- target_property: m.targetProperty
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
  }