@pixldocs/canvas-renderer 0.3.7 → 0.3.8

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
@@ -9020,8 +9020,19 @@ function flattenSectionStateToFormData(sectionState, sections) {
9020
9020
  for (const child of children) {
9021
9021
  const childToken = child.templateKeyPrefix.startsWith("field_") ? child.templateKeyPrefix.slice(6) : child.templateKeyPrefix;
9022
9022
  const childStateKey = `${sectionStateKey}_${i}_${child.id}`;
9023
- const childPrefix = `${sectionPrefix}_${oneBased}_${childToken}`;
9024
- emitRepeatable(child, childStateKey, childPrefix);
9023
+ const compactPrefix = `${sectionPrefix}_${oneBased}_${childToken}`;
9024
+ emitRepeatable(child, childStateKey, compactPrefix);
9025
+ const aliasPrefix = `${sectionPrefix}_${oneBased}_field_${childToken}`;
9026
+ if (aliasPrefix !== compactPrefix) {
9027
+ emitRepeatable(child, childStateKey, aliasPrefix);
9028
+ }
9029
+ const childIdToken = child.id;
9030
+ if (childIdToken !== childToken) {
9031
+ const idPrefix2 = `${sectionPrefix}_${oneBased}_${childIdToken}`;
9032
+ emitRepeatable(child, childStateKey, idPrefix2);
9033
+ const idAliasPrefix = `${sectionPrefix}_${oneBased}_field_${childIdToken}`;
9034
+ emitRepeatable(child, childStateKey, idAliasPrefix);
9035
+ }
9025
9036
  }
9026
9037
  }
9027
9038
  };