Bumps react-contexify from 5.0.0 to 6.0.0.
Release notes
Sourced from react-contexify's releases.
v6.0.0
Release notes
🚀 Features
- Allow disabling boundaries check
- Allow to disable preventDefault on key down
- Add support for hidden property to Separator
- Add visual feedback when the item is clicked
- Easy customization thanks to CSS variables. Check out the theme builder
- Keyboard shortcut made easy! A
keyMatcher
prop has been added to the Item
component. See it in action
- Size decreased from 3.4K to 3.1K 🎉
🕷 Bugfixes
- fix close animation flash #218 #219
- fix boundaries check when repositioning menu #163
- fix submenu offscreen #203
💥 Breaking changes
- removal of
theme
and animation
constants
- The
show
method exposed by the useContextMenu
hook uses the same signature as contextMenu
. It only accepts a single parameter now.
const {show} = useContextMenu({id: "menuId"})
// ⛔️ Before
show(e, {props: {}})
// ✅ Now
show({ event: e, props: {}})
- The
onShow
and onHidden
callback have been removed in favor of a single callback onVisibilityChange
const handleVisibilityChange = (isVisible: boolean) => {
console.log(isVisible)
}
<Menu id="menuId" onVisibilityChange={handleVisibilityChange}>
<Item>Item 1</Item>
</Menu>
- Shorten path to import the stylesheet
// ⛔️ Before
import "react-contexify/dist/ReactContexify.css"
</tr></table>
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it
@dependabot merge
will merge this PR after your CI passes on it
@dependabot squash and merge
will squash and merge this PR after your CI passes on it
@dependabot cancel merge
will cancel a previously requested merge and block automerging
@dependabot reopen
will reopen this PR if it is closed
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependencies