Releases: brimdata/react-arborist
Releases · brimdata/react-arborist
Version 2.1.0
What's Changed
Add nodes as arguments to handler functions.
For example:
onDelete={(args) => {
args.ids
args.nodes // The node objects that correspond to those ids.
}}
This was needed to distinguish internal nodes from leaf nodes in the delete handler.
Remove the IdObj constraint on the data and initialData props.
Previously you needed to have a string id field, but now you don't. If your id is represented by a different field, you can use the idAccessor prop.
Full Changelog: v2.0.0...v2.1.0
Version 2.0.0
What's Changed
This release makes breaking changes to the Tree Props and the Node Renderer APIs. The README contains the new documentation. These changes have enabled many new features and bug fixes such as:
- Keyboard navigation
- Aria Roles fixes (fixes #9)
- Smart "scrollTo" behavior
- Automatically sync selection
- Tree filtering now handled by arborist
- Moves "openness" state into the tree with an "initialOpens" prop
- Simple NodeApi class for use in the node renderer
- Ability to specify the drag handler (fixes #38)
- Splits the NodeRenderer into a RowRenderer and a NodeRenderer with defaults resulting in less boilerplate. (fixes #8)
- Adds an onActivate callback
- Adds an onSelect callback (fixes #44)
- Adds an onCreate callback
- Adds an onDelete callback
- Adds an onScroll callback (fixes #30)
- Improved abstractions for focus, selection, and activation (fixes #1, fixes #6)
- Fixes the bug where you can drag a parent into itself (fixes #41)
Full Changelog: v1.2.0...v2.0.0
Version 2 Release Candidate 2
Tidy up before release (#50) * Update README * Rename drop cursor to just cursor * Update the showcase * Only use defaults if the value is undefined. * Remove renderContainer from the readme for now. * Smarter canDrop function for outer drop * Add more selection booleans * Add script to build website
Version 2 Release Candidate
What's Changed
Full Changelog: v1.2.0...v2.0.0-rc.1
Version 1.2.0
What's Changed
- Context Cleanup by @jameskerr in #34
- fix (doc): add missing comma by @vijayprasanna13 in #35
- Be able to provide a custom drop cursor by @jameskerr in #39
- Add test action by @jameskerr in #40
New Contributors
- @vijayprasanna13 made their first contribution in #35
Full Changelog: v1.1.0...v1.2.0
Demo of Custom Drop Cursor
Version 1.1.0
Version 1.0.4
What's Changed
- Fixed typo in lineage.ts by @jackoliver in #11
- Keep scroll to behavior in auto mode by @jameskerr in #31
- Prep v1.0.4 by @jameskerr in #32
New Contributors
- @jackoliver made their first contribution in #11
- @jameskerr made their first contribution in #31
Full Changelog: v1.0.3...v1.0.4
v1.0.3
Version 1.0.2
v1.0.2 Update package.json
Version 1.0.1
Make sure the readme appears on npmjs.org