Skip to content

Releases: haaarshsingh/kmenu

v2.0.0

18 Jun 06:06
Compare
Choose a tag to compare

Fixed

  • Dynamic commands not loading in when fetched
  • Animation issues on Firefox

Added

  • New Documentation website
  • Monorepo with Turborepo
  • Checkboxes
  • New types for menu dimensions
  • Anchor property
  • Export useShortcut hook

Breaking Changes

  • Removed config option to menu. Use CSS variables instead.
  • Remove main keyword. Defaults to menu with an index of 1.

v1.0.0-beta-git

14 Aug 05:31
Compare
Choose a tag to compare

This release contains some minor additions along with some fixes from the kmenu v1 beta.

💫

  • Make class names easier to style.
  • Fix bug with default background blur.
  • Added transitions for the command colours.
  • Removed default styling for non-module scoped SVGs.
  • Fix bug with children on the MenuProvider component.
  • Fix issues with UI elements not being interactive after closing/opening the menu in dev.

If you're on the beta, I would highly recommend that you upgrade onto this today.

v1.0.0-beta

06 Aug 07:25
Compare
Choose a tag to compare

The official beta for kmenu v1! I had officially released this on Product Hunt a while ago, and I saw a lot of crucial features lacking. This launch adds more enhanced functionality to the menu and improves DX.

💫

  • useCommands hook for sorting and dynamically updating commands
  • useKmenu hook for getting useful information such as states out the component
  • The MenuProvider component
  • Added default shortcuts for commands on the menu
  • Improved menu styling
  • Added new and useful types to define commands
  • Palette height dynamically adjusts for the commands, reducing unnecessary scroll
  • Better screen reader accessibility
  • Changed defaults of the menu theme configuration

Breaking changes

  • Commands have a completely different type now. They're organised into an array of categories, and each individual category has it's own array of commands. Check the documentation for more insight.
  • You do not need to define hooks anymore to handle the state of your component
  • Categories are no longer passed into the palettes. The new command type takes care of that automatically.
  • Individual config files are no longer passable onto the components. Pass them into the MenuProvider directly.
  • The PaletteConfig type has been renamed to MenuConfig
  • The main Palette has been renamed to CommandMenu

This is still a beta release! I would like to recieve some community feedback and fix some bugs before I release this 🎊