Skip to content

Releases: lukasbach/react-complex-tree

2.4.2

Choose a tag to compare

@github-actions github-actions released this 04 Apr 14:09

Bug Fixes and Improvements

  • Fixed an issue where sometimes the uncontrolled tree environment would throw undefined-access errors (#355)

2.4.1

Choose a tag to compare

@github-actions github-actions released this 27 Mar 23:23

Bug Fixes and Improvements

  • Fixed a bug where items where sometimes inserted with inverted order. (#353)
    • The onDrop should be a bit faster in general, since some redundant calls to dataProvider.onChangeItemChildren have been removed. In the past, this was called twice per item, once for moving the item out of its old folder, and once for moving it into the target folder. Now, all insertion calls into the target folder are batched into one dataProvider.onChangeItemChildren call for all dragged items.

2.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Mar 21:41

Features

  • Make drop target depth in last-of-subtree locations dependent on x-coordinates of the mouse, allowing the user to
    drop in higher depths than the currently hovering item. This behavior is automatically used if renderDepthOffset
    on the renderers is set to a non-zero value. (#148)

❤️ This development of this release was supported and sponsored by Modyfi. Thank you for contributing to the development of this library!

2.3.7

Choose a tag to compare

@github-actions github-actions released this 15 Mar 19:00

Featureset revertion to the state of 2.3.6

I've noticed that I've accidentally been pushing a few experimental releases that were meant to be released
as prerelease under the "Latest" tag in NPM. This reverts the latest release to the state of 2.3.6, the last
proper "latest" release. Prereleases will from now on be released under the "prerelease" tag in NPM.

2.3.7-alpha.0

Choose a tag to compare

@github-actions github-actions released this 10 Mar 21:36

Features

  • Make drop target depth in last-of-subtree locations dependent on x-coordinates of the mouse, allowing the user to
    drop in higher depths than the currently hovering item. This behavior is automatically used if renderDepthOffset
    on the renderers is set to a non-zero value. (#148)
    • This also applies when dropping at the top of an item where the item prior is of deeper depth, meaning that
      in this case the decision of dropping into the container above or directly above the hovering item will depend
      on the x-coordinate of the mouse.
  • Add setDomFocus argument to focus-item methods to provide an escape hatch to set the focus state of an item in RCT
    without updating the DOM focus. This defaults to true in all existing methods to maintain the current behavior if
    it is absent. (#336)
  • Allow customizing when a subtree is rendered or not with the new shouldRenderChildren prop. This can be used to
    create opening and closing animations on subtrees. See Demo
    and Demo Implementation for details. (#333)

Bug Fixes

  • Fix a bug where the parentId property in the renderItemsContainer render method was incorrectly set to the tree id
    for the root container.

2.3.6

Choose a tag to compare

@github-actions github-actions released this 07 Mar 20:42

Other Changes

  • Add funding link to package.json

2.3.5-alpha.0

Choose a tag to compare

@github-actions github-actions released this 02 Mar 21:53

Features

  • Make drop target depth in last-of-subtree locations dependent on x-coordinates of the mouse, allowing the user to
    drop in higher depths than the currently hovering item. This behavior is automatically used if renderDepthOffset
    on the renderers is set to a non-zero value. (#148)
  • Add setDomFocus argument to focus-item methods to provide an escape hatch to set the focus state of an item in RCT
    without updating the DOM focus. This defaults to true in all existing methods to maintain the current behavior if
    it is absent. (#336)
  • Allow customizing when a subtree is rendered or not with the new shouldRenderChildren prop. This can be used to
    create opening and closing animations on subtrees. See Demo
    and Demo Implementation for details. (#333)

Bug Fixes

  • Fix a bug where the parentId property in the renderItemsContainer render method was incorrectly set to the tree id
    for the root container.

2.3.5

Choose a tag to compare

@github-actions github-actions released this 02 Mar 21:52

Features

  • Add setDomFocus argument to focus-item methods to provide an escape hatch to set the focus state of an item in RCT
    without updating the DOM focus. This defaults to true in all existing methods to maintain the current behavior if
    it is absent. (#336)
  • Allow customizing when a subtree is rendered or not with the new shouldRenderChildren prop. This can be used to
    create opening and closing animations on subtrees. See Demo
    and Demo Implementation for details. (#333)

Bug Fixes

  • Fix a bug where the parentId property in the renderItemsContainer render method was incorrectly set to the tree id
    for the root container.

2.3.4

Choose a tag to compare

@github-actions github-actions released this 19 Jan 01:28

Other Changes

  • Make the onDidChangeTreeDataEmitter prop on a static data provider public

2.3.3

Choose a tag to compare

@github-actions github-actions released this 18 Jan 21:49

Bug Fixes and Improvements

  • Maintain original item order when dropping items (#315)
  • Expose some hooks and internally used components in the public API that were hidden before (#313)