@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 +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9001,8 +9001,19 @@ function flattenSectionStateToFormData(sectionState, sections) {
|
|
|
9001
9001
|
for (const child of children) {
|
|
9002
9002
|
const childToken = child.templateKeyPrefix.startsWith("field_") ? child.templateKeyPrefix.slice(6) : child.templateKeyPrefix;
|
|
9003
9003
|
const childStateKey = `${sectionStateKey}_${i}_${child.id}`;
|
|
9004
|
-
const
|
|
9005
|
-
emitRepeatable(child, childStateKey,
|
|
9004
|
+
const compactPrefix = `${sectionPrefix}_${oneBased}_${childToken}`;
|
|
9005
|
+
emitRepeatable(child, childStateKey, compactPrefix);
|
|
9006
|
+
const aliasPrefix = `${sectionPrefix}_${oneBased}_field_${childToken}`;
|
|
9007
|
+
if (aliasPrefix !== compactPrefix) {
|
|
9008
|
+
emitRepeatable(child, childStateKey, aliasPrefix);
|
|
9009
|
+
}
|
|
9010
|
+
const childIdToken = child.id;
|
|
9011
|
+
if (childIdToken !== childToken) {
|
|
9012
|
+
const idPrefix2 = `${sectionPrefix}_${oneBased}_${childIdToken}`;
|
|
9013
|
+
emitRepeatable(child, childStateKey, idPrefix2);
|
|
9014
|
+
const idAliasPrefix = `${sectionPrefix}_${oneBased}_field_${childIdToken}`;
|
|
9015
|
+
emitRepeatable(child, childStateKey, idAliasPrefix);
|
|
9016
|
+
}
|
|
9006
9017
|
}
|
|
9007
9018
|
}
|
|
9008
9019
|
};
|