@contember/bindx-repeater 0.1.17 → 0.1.18
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/bindx-repeater",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Repeater components for has-many list management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"react": ">=18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@contember/bindx": "0.1.
|
|
19
|
-
"@contember/bindx-react": "0.1.
|
|
18
|
+
"@contember/bindx": "0.1.18",
|
|
19
|
+
"@contember/bindx-react": "0.1.18"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
@@ -245,10 +245,10 @@ blockRepeaterWithSelection.getSelection = (
|
|
|
245
245
|
const jsxSelection = collectNested(syntheticChildren)
|
|
246
246
|
|
|
247
247
|
// Call block render/form functions so the collector proxy records field accesses.
|
|
248
|
-
//
|
|
248
|
+
// Collect JSX selections from block render/form output and merge into jsxSelection.
|
|
249
249
|
for (const blockDef of Object.values(props.blocks) as BlockDefinition[]) {
|
|
250
|
-
if (blockDef.render) collectNested(blockDef.render(collectorEntity as EntityAccessor<object>))
|
|
251
|
-
if (blockDef.form) collectNested(blockDef.form(collectorEntity as EntityAccessor<object>))
|
|
250
|
+
if (blockDef.render) mergeSelections(jsxSelection, collectNested(blockDef.render(collectorEntity as EntityAccessor<object>)))
|
|
251
|
+
if (blockDef.form) mergeSelections(jsxSelection, collectNested(blockDef.form(collectorEntity as EntityAccessor<object>)))
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
const nestedSelection = scope.toSelectionMeta()
|