Skip to content

Releases: lukasbach/headless-tree

@headless-tree/[email protected]

13 Oct 20:30

Choose a tag to compare

@headless-tree/[email protected]

13 Oct 20:30

Choose a tag to compare

Patch Changes

  • 08f10f1: Fixed an issue where isFolder returns incorrect values for leafs if they are not visibly rendered (#166)

@headless-tree/[email protected]

28 Sep 10:34

Choose a tag to compare

Minor Changes

  • cbeaba6: all state updates (like setSelectedItems) will not propagate while the component is unmounted. This happened before for tree.setState() calls directly, but not individual state atoms like setSelectedItems. When calling createTree() directly (instead of useTree()), tree.setMounted(true) needs to be called once after mount. No changes are necessary when using the React-based useTree() integration. (#158)

Patch Changes

  • 72e714b: all NPM deployments will now publish with provenance
  • 7a7424f: fixed incorrect exports definition in package.json for require/cjs imports (#161)

Sponsorship appreciation

Thanks for Docmost, who have supported the development of Headless Tree with a sponsor contribution. Docmost is a wiki-software that can be self-hosted or used in cloud. Thank you!

@headless-tree/[email protected]

28 Sep 10:34

Choose a tag to compare

Minor Changes

  • cbeaba6: all state updates (like setSelectedItems) will not propagate while the component is unmounted. This happened before for tree.setState() calls directly, but not individual state atoms like setSelectedItems. When calling createTree() directly (instead of useTree()), tree.setMounted(true) needs to be called once after mount. No changes are necessary when using the React-based useTree() integration. (#158)

Patch Changes

  • 72e714b: all NPM deployments will now publish with provenance
  • 6693986: fixed an issue where async data loaders cause calling item.getItemData() outside of the component calling useTree() to cause a React warning log (#158)
  • 7a7424f: fixed incorrect exports definition in package.json for require/cjs imports (#161)
  • 215ab4b: add a new symbol that can be used in hotkey configurations "metaorcontrol" that will trigger if either any windows control key or mac meta key is pressed (#141)
  • 51b0dea: Added isUnorderedDragTarget as alternative to isDragTarget for easier detection of drag type
  • cf845d7: Added new state variable loadingCheckPropagationItems to indicate if, in async trees with checkboxes and state propagation enabled, data loading operations are currently loading due to a checkbox propagation taking place
  • 597faad: Checkbox propagation is now supported for trees with async data loaders!
  • b0ee382: triggering a data refetch will now always set the loadingItemData/loadingItemChildrens state variable to the associated items if they where not apart of the cache before

Sponsorship appreciation

Thanks for Docmost, who have supported the development of Headless Tree with a sponsor contribution. Docmost is a wiki-software that can be self-hosted or used in cloud. Thank you!

@headless-tree/[email protected]

18 Aug 22:06

Choose a tag to compare

@headless-tree/[email protected]

18 Aug 22:06

Choose a tag to compare

Minor Changes

  • 7ef4864: added feature where closed items are auto-expanded briefly after dragging onto them. set config option openOnDropDelay to zero to disable.

Patch Changes

  • 8d53b4f: fixed a bug where external changes to focused or selected items don't trigger a rerender (#150)
  • 1cee368: fixed a bug where the drag line is not cleared after drop (#149)
  • 1e833bb: drag-and-drop feature is no longer dependent on selection feature, and fill default to focused item if selection feature is missing (#143)

@headless-tree/[email protected]

11 Aug 15:14

Choose a tag to compare

Patch Changes

  • 32e71e9: Added optional @headless-tree/react/react17 import for useTree for compatibility
  • 662e2a8: Improved customizability of checkboxes feature (still alpha state), allowing you to customize propagateCheckedState and canCheckFolders independently
  • 662e2a8: Changed to new buildtool in core packages (now using tsup) to hopefully fix some ESM/CJS integrations

@headless-tree/[email protected]

11 Aug 15:14

Choose a tag to compare

Minor Changes

  • 21d1679: add canDragForeignDragObjectOver to allow customizing whether a draggable visualization should be shown when dragging foreign data. This allows differentiating logic between drag-over and drop (via the existing canDropForeignDataObject), since for the latter dataTransfer.getData is not available by default in browsers.

Patch Changes

  • e8ddbb0: Added item.updateCachedData(data) in async tree feature, that works similar to the existing item.updateCachedChildrenIds(childrenIds) feature
  • 662e2a8: Added stories and documentation on how to use nested DOM rendering for tree structures instead of flat lists,
    which can be used for animating expand/collapse behavior
  • b41e1d2: fixed a bug where ending drag without successful drop doesn't properly reset drag line (#132)
  • b413f74: Fix aria-posinset and aria-level to be 1-based indexing
  • a250b3b: Fix a bug where expand from the initial keyboard focus fails when rootItemId is an empty string
  • 62867e8: Introduced a short delay before hiding the drag line when leaving a drag target, which helps to reduce flickering of the dragline when moving between items
  • c4579eb: Update keyboard drag and drop to include the focused item in the dragged items
  • 662e2a8: Improved customizability of checkboxes feature (still alpha state), allowing you to customize propagateCheckedState and canCheckFolders independently
  • 662e2a8: Changed to new buildtool in core packages (now using tsup) to hopefully fix some ESM/CJS integrations

@headless-tree/[email protected]

30 Jun 16:19

Choose a tag to compare

Patch Changes

  • d925607: fixed <AssistiveTreeDescription /> component throwing an error if the dnd feature is not included (#126)

@headless-tree/[email protected]

30 Jun 16:19

Choose a tag to compare

Patch Changes

  • 344011a: fixed an issue where dropping items on an empty tree didn't trigger any events
  • 9f418f8: support setting the drag preview with the setDragImage option (#115)
  • 309feba: fixed an issue where the drag-forbidden cursor is shown briefly between changing drag targets (#114)