@pixldocs/canvas-renderer 0.5.88 → 0.5.89
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 +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12530,18 +12530,21 @@ async function resolveFromForm(options) {
|
|
|
12530
12530
|
const nodeId = s.treeNodeId ?? s.id;
|
|
12531
12531
|
const schemaRepeatable = repeatableFromSchemaByBase.get(baseId(nodeId));
|
|
12532
12532
|
const parentId = s.parentId;
|
|
12533
|
+
const parentSection = inferredSections.find((ps) => ps.id === parentId);
|
|
12534
|
+
const parentNodeId = parentSection ? parentSection.treeNodeId ?? parentSection.id : parentId;
|
|
12533
12535
|
const parentEntries = mergedSectionState[parentId] ?? [];
|
|
12536
|
+
const nestedEntryMeta = {};
|
|
12534
12537
|
const merged = [];
|
|
12535
12538
|
for (let pi = 0; pi < parentEntries.length; pi++) {
|
|
12536
12539
|
const childEntries = mergedSectionState[`${parentId}_${pi}_${s.id}`] ?? [];
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12540
|
+
const meta = childEntries.map((e) => ({
|
|
12541
|
+
id: typeof (e == null ? void 0 : e.__entryId) === "string" ? e.__entryId : void 0,
|
|
12542
|
+
name: typeof (e == null ? void 0 : e.__entryName) === "string" ? e.__entryName : void 0
|
|
12543
|
+
}));
|
|
12544
|
+
nestedEntryMeta[`${baseId(parentNodeId)}_${pi + 1}_${baseId(nodeId)}`] = meta;
|
|
12545
|
+
merged.push(...meta);
|
|
12543
12546
|
}
|
|
12544
|
-
return { nodeId, label: s.label, entryFilter: schemaRepeatable == null ? void 0 : schemaRepeatable.entryFilter, entryMeta: merged };
|
|
12547
|
+
return { nodeId, label: s.label, entryFilter: schemaRepeatable == null ? void 0 : schemaRepeatable.entryFilter, entryMeta: merged, nestedEntryMeta };
|
|
12545
12548
|
});
|
|
12546
12549
|
const inferredRepeatableList = [...topLevelRepeatables, ...nestedRepeatables];
|
|
12547
12550
|
const entryCountForLabel = (label) => {
|