@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 CHANGED
@@ -10085,18 +10085,18 @@ async function resolveFromForm(options) {
10085
10085
  }
10086
10086
  }
10087
10087
  const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
10088
- const dynamicFields = templateConfig.dynamicFields;
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
- 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
- }
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
  }