github chakra-ui/zag @zag-js/tree-view@1.31.0

latest releases: @zag-js/popover@1.33.0, @zag-js/types@1.33.0, @zag-js/store@1.33.0...
one month ago

Minor Changes

  • 57478b8 Thanks
    @segunadebayo! - - Added scrollToIndexFn prop to enable keyboard navigation in
    virtualized trees

    • [Breaking]: getVisibleNodes() now returns { node, indexPath }[] instead of node[]. Returning the index
      path perhaps the most useful use of this function, hence the change.

    Migration:

    // Before
    const nodes = api.getVisibleNodes()
    nodes.forEach((node) => console.log(node.id))
    
    // After
    const visibleNodes = api.getVisibleNodes()
    visibleNodes.forEach(({ node }) => console.log(node.id))

Patch Changes

  • Updated dependencies []:
    • @zag-js/anatomy@1.31.0
    • @zag-js/core@1.31.0
    • @zag-js/types@1.31.0
    • @zag-js/collection@1.31.0
    • @zag-js/utils@1.31.0
    • @zag-js/dom-query@1.31.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.