Skip to content

Releases: brimdata/react-arborist

Version 3.4.0

13 Dec 22:43
Compare
Choose a tag to compare

What's Changed

This enables trees where every node can be an internal node. Many thanks to @edimov for making this happen.

Full Changelog: v3.3.1...v3.4.0

Version 3.3.1

12 Dec 23:34
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.0...v3.3.1

Version 3.2.0

25 Jul 17:17
fbf0290
Compare
Choose a tag to compare

What's Changed

  • Add a treeApi.setSelection method in #159

Thanks to @victorvianaom, @liamdon for getting the ball rolling.

Full Changelog: v3.1.0...v3.2.0

Version 3.1.0

02 Jun 18:13
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.2...v3.1.0

Version 3.0.2

01 Feb 22:14
Compare
Choose a tag to compare

The previous release introduced a bug where the <Tree> inverted the result of the disableDrop prop. For example, if you specified "true" it would allow a drop. This fixes that bug and updates the CI workflow to run unit tests and e2e tests.

What's Changed

Full Changelog: v3.0.1...v3.0.2

Version 3.0.1

27 Jan 23:51
Compare
Choose a tag to compare

What's Changed

This is a tiny release to fix some Typescript problems. If you upgraded to version 3.0.0 and stated seeing these typescript problems then this release will fix them.

queries-tree.tsx:85:27 - error TS2339: Property 'name' does not exist on type 'unknown'.

node.data.name.toLowerCase().includes(term.toLowerCase())

Full Changelog: v3.0.0...v3.0.1

Version 3.0.0

27 Jan 23:12
6fd355f
Compare
Choose a tag to compare

Whats Changed?

Breaking Changes

  • Tree Component disableDrop Prop Changed
  • NodeApi isDroppable Property Removed

Features

  • Disable Edit
  • Disable Drop Dynamically

Extras

  • Indent Lines in Cities Demo
  • Cypress Integration Tests
  • Removed ForwardRef Redeclare

Features

Disable Edit

The disableEdit prop was added to the tree to specify nodes that cannot be edited. This also fixed a bug when pressing the keyboard shortcut "Enter" on a node that did not render a form. The tree would get stuck in the "editing" mode and could not return to the normal mode.

Disable Drop Dynamically

The disableDrop prop now accepts a function with the arguments described below. Previously you could only provide a static list of nodes that were not droppable, but now you can determine it dynamically.

Breaking Changes

Tree Component disableDrop Prop

If you were passing a function to the disableDrop prop, you'll need to update it to use the following signature:

declare function disableDrop(args: {
  dragNodes: NodeApi[]; // The nodes being dragged
  parentNode: NodeApi; // The new parent of the dragNodes if dropped
  index: number; // The new child index of the dragNodes if dropped
}): boolean;

This lets you disallow a drop based on the items being dragged and which node you are hovering over. You might notice it matches the function signature of the onMove handler. It is still possible to pass a string or a boolean to the disableDrop prop to prevent drops statically.

NodeApi isDroppable property

The .isDroppable property has been removed from the NodeApi class. This is now determined dynamically from the tree's state. It doesn't make sense to ask an single node if it is droppable anymore.

Pull Requests

New Contributors

Full Changelog: v2.3.0...v3.0.0

Version 2.3.0

13 Jan 17:54
b7ee21d
Compare
Choose a tag to compare

What's Changed

  • Fix: Pressing the 'a' key and onCreate is not defined by @rafma0 in #87
  • Fix: Tree background color for the cities demo by @rafma0 in #84
  • Feature: Add prop to pass overscanCount to react-window by @rafma0 in #88

The overscan feature can make the scrolling much smoother in some use cases. Thank you @rafma0!

New Contributors

Full Changelog: v2.2.0...v2.3.0

Version 2.2.0

03 Jan 19:42
Compare
Choose a tag to compare

Happy New Year! Here's a small release with a new feature and a bug fix. Many thanks to the new contributors.

What's Changed

New Contributors

Full Changelog: v2.1.1...v2.2.0

Version 2.1.1

17 Nov 01:03
f6e9e1c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1