react-arborist 2.2.0 → 2.3.0
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/README.md +2 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/tree-api.d.ts +1 -0
- package/dist/module.js +5 -2
- package/dist/module.js.map +1 -1
- package/dist/types/tree-props.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/default-container.tsx +2 -2
- package/src/interfaces/tree-api.ts +4 -0
- package/src/types/tree-props.ts +1 -0
package/dist/module.js
CHANGED
|
@@ -1375,8 +1375,7 @@ function $065a164934293bf2$export$ff4858a4110d9246() {
|
|
|
1375
1375
|
tree.selectAll();
|
|
1376
1376
|
return;
|
|
1377
1377
|
}
|
|
1378
|
-
if (e.key === "a" && !e.metaKey) {
|
|
1379
|
-
if (!tree.props.onCreate) return;
|
|
1378
|
+
if (e.key === "a" && !e.metaKey && tree.props.onCreate) {
|
|
1380
1379
|
tree.createLeaf();
|
|
1381
1380
|
return;
|
|
1382
1381
|
}
|
|
@@ -1453,6 +1452,7 @@ function $065a164934293bf2$export$ff4858a4110d9246() {
|
|
|
1453
1452
|
height: tree.height,
|
|
1454
1453
|
width: tree.width,
|
|
1455
1454
|
itemSize: tree.rowHeight,
|
|
1455
|
+
overscanCount: tree.overscanCount,
|
|
1456
1456
|
itemKey: (index)=>tree.visibleNodes[index]?.id || index,
|
|
1457
1457
|
outerElementType: (0, $05f64c7ebcbad8b5$export$70c2b8898b86d3ad),
|
|
1458
1458
|
innerElementType: (0, $da9a6b47b6fff922$export$a9af0da3ae60cd00),
|
|
@@ -1550,6 +1550,9 @@ class $bfece7c4aed4e9c4$export$e2da3477247342d1 {
|
|
|
1550
1550
|
get rowHeight() {
|
|
1551
1551
|
return this.props.rowHeight ?? 24;
|
|
1552
1552
|
}
|
|
1553
|
+
get overscanCount() {
|
|
1554
|
+
return this.props.overscanCount ?? 1;
|
|
1555
|
+
}
|
|
1553
1556
|
get searchTerm() {
|
|
1554
1557
|
return (this.props.searchTerm || "").trim();
|
|
1555
1558
|
}
|