Apr 26, 2024
- Made
listItem
key inclasses
API support callback function.
- Drop is canceled even though placeholder is visible.
Mar 23, 2023
- Can not open a node with
droppable
set tofalse
with theopen
method.
Mar 15, 2023
openAll
method andinitialOpen
API don't work for non-droppable node.
Mar 9, 2023
canDrop
API is not called when dragging an external node over a tree.
Dec 31, 2022
- Improved performance when
enableAnimateExpand
istrue
.
Nov 29, 2022
- Added
enableAnimateExpand
API to support open/close animation.
Nov 2, 2022
- Added
relativeIndex
to options passedonDrop
callback.
Oct 31, 2022
- Nodes may not be draggable.
Oct 19, 2022
- The URL of the demo page listed in the README is incorrect.
Oct 05, 2022
- Added
handleRef
to Render params to support dragging with handle. - Added React 17.x and React DnD 15.x to peer dependencies.
- Changed all parameters of
getBackendOptions
to optional.
- Rollup bundling process does not handle "~" alias.
Sep 08, 2022
- Added
onDragStart
andonDragend
APIs for handling the start and end of node dragging. - Added Multiple drag sample.
Aug 12, 2022
- Nodes can now be added by dropping elements outside the tree, files, selected text, etc. into the tree.
- Among the
options
passed to theonDrop
callback,dragSourceId
anddragSource
are now optional.
If the drag source is an element external toDndProvider
or a file or selected text, these will beundefined
.
June 29, 2022
- If the
initialOpen
property is updated, the open state of the tree will be updated.
June 15, 2022
-
Error using require to import from
react-dnd
andreact-dnd-html5-backend
.Since
react-dnd
andreact-dnd-html5-backend
are now distributed only in ESM format, this package is also provided only in ESM format and the package type has been changed to module.
May 15, 2022
- Migrated examples to Storybook.
-
Exclude
react-dnd
from this packagereact-dnd
is no longer included in this package, so users of this package must separately install the latest version ofreact-dnd
and importDndProvider
.
Jan 07, 2022
- DragPreview component is momentarily displayed in the upper left corner of the screen after the drag operation is completed.
Nov 18, 2021
- Added
isDragging
andisDropTarget
flags to the options passed to the render callback. - Added a reference to the wrapper element to the options passed to the render callback. (
options.containerRef
)
Nov 08, 2021
- If the
sort
property is set tofalse
, add andestinationIndex
property to the options passed to theonDrop
callback to indicate where to move the node. - A utility function has been added to get descendant nodes.
- Added demos for adding, removing, and duplicating nodes.
- Update sample code of basic usage.
- If the
sort
property is notfalse
, then the order of the tree array passed to theonDrop
callback will be preserved. - The new node array passed to the
onDrop
callback is no longer read-only.
Oct 27, 2021
- generic type cannot be used in sort callback.
Oct 07, 2021
- add
rootProps
API.
Oct 01, 2021
- react-dnd version is mismatch with dependent packages.
Sept 29, 2021
- dragging not possible after editing a node without hovering in Firefox or Safari.
Sept 24, 2021
- unable to install in npm version 7.
Sept 08, 2021
- add
classes.listItem
property for styling node wrapper.
Aug 22, 2021
- add
onChangeOpen
API.
Aug 19, 2021
- add APIs for manual sort and placeholder
- add open / close methods for control open state of nodes.
- type inference for custom data types is not working.
July 17, 2021
- incorrect parameters passed to the canDrop callback.
- mouse cursor becomes the default pointer when hovering over an area that cannot be dropped.
July 08, 2021
- add
canDrag
API to control dragging.
- unable to select text in a text field in a node by mouse dragging.
June 02, 2021
- support touch device.
Apr 22, 2021
- update all dependencies.
Apr 20, 2021
- fail drop into root container when
rootId
is string. - dropTarget in canDrop parameter is incrrect.
Apr 12, 2021
- add
canDrop
API.
Apr 05, 2021
- add
hasChild
argument to render function.
Apr 02, 2021
- add initialOpen API to control the opening and closing state of the node in the initial state of the component.
- add sort API to control the sorting of nodes.
Jan 25, 2021
Initial major release.