@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.js
CHANGED
|
@@ -12511,18 +12511,21 @@ async function resolveFromForm(options) {
|
|
|
12511
12511
|
const nodeId = s.treeNodeId ?? s.id;
|
|
12512
12512
|
const schemaRepeatable = repeatableFromSchemaByBase.get(baseId(nodeId));
|
|
12513
12513
|
const parentId = s.parentId;
|
|
12514
|
+
const parentSection = inferredSections.find((ps) => ps.id === parentId);
|
|
12515
|
+
const parentNodeId = parentSection ? parentSection.treeNodeId ?? parentSection.id : parentId;
|
|
12514
12516
|
const parentEntries = mergedSectionState[parentId] ?? [];
|
|
12517
|
+
const nestedEntryMeta = {};
|
|
12515
12518
|
const merged = [];
|
|
12516
12519
|
for (let pi = 0; pi < parentEntries.length; pi++) {
|
|
12517
12520
|
const childEntries = mergedSectionState[`${parentId}_${pi}_${s.id}`] ?? [];
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12521
|
+
const meta = childEntries.map((e) => ({
|
|
12522
|
+
id: typeof (e == null ? void 0 : e.__entryId) === "string" ? e.__entryId : void 0,
|
|
12523
|
+
name: typeof (e == null ? void 0 : e.__entryName) === "string" ? e.__entryName : void 0
|
|
12524
|
+
}));
|
|
12525
|
+
nestedEntryMeta[`${baseId(parentNodeId)}_${pi + 1}_${baseId(nodeId)}`] = meta;
|
|
12526
|
+
merged.push(...meta);
|
|
12524
12527
|
}
|
|
12525
|
-
return { nodeId, label: s.label, entryFilter: schemaRepeatable == null ? void 0 : schemaRepeatable.entryFilter, entryMeta: merged };
|
|
12528
|
+
return { nodeId, label: s.label, entryFilter: schemaRepeatable == null ? void 0 : schemaRepeatable.entryFilter, entryMeta: merged, nestedEntryMeta };
|
|
12526
12529
|
});
|
|
12527
12530
|
const inferredRepeatableList = [...topLevelRepeatables, ...nestedRepeatables];
|
|
12528
12531
|
const entryCountForLabel = (label) => {
|