Kbar Versions Save

fast, portable, and extensible cmd+k interface for your site

v0.1.0-beta.25

2 years ago

Lil' release to get up to date on recent additions.

Enhancements

  • Add section name by default to command keywords (#144)
  • Add customizable search placeholder (#152)

Bug fixes

  • Add event callbacks for shortcuts (#150)

v0.1.0-beta.24

2 years ago

Bug fixes

  • Fixed styles prop type for KBarPositioner #138
  • Fixes an issue where toggling the command bar when focused within contenteditable caused event.defaultPrevented to not work as expected ESC #139

v0.1.0-beta.23

2 years ago

Bug fixes

  • Fixes an issue where the default useKBar export did not work in Vite builds. #131 (@kevinhu)

v0.1.0-beta.22

2 years ago

Undo/Redo

Introducing the ability to easily add undo & redo functionality to actions!

  • Create the undo (negate) action by returning a function from perform:
    createAction({
      perform: () => {
        // logic to perform
        return () => {
          // logic to undo
        }
      }
    })
    
  • Perform actions using action.command.perform
  • Explicitly undo actions using action.command.undo, redo using action.command.redo

demo

Fixes

  • Deprecated the usage of useDeepMatches in favor of just useMatches. #124
  • Reworked a few internal types; e.g. BaseAction renamed to Action

v0.1.0-beta.21

2 years ago

Bug fixes

  • Fixes an issue where mobile Safari/Firefox outer clicks were not firing. #123

v0.1.0-beta.20

2 years ago

Enhancements

  • Support for screen readers added ✨ #111
  • Support for external analytics added; onOpen, onClose, onQueryChange, onSelectAction #110

Bug fixes

  • Enable users to opt out of implicit scrollbar management. #115

Misc

  • All exports from /example now import from the global entry point. #116

v0.1.0-beta.19

2 years ago

Bug fixes

  • Fixed an issue where spreading large lists of ActionImpls crashed kbar; rather, we should be looping through and pushing these objects to a new array instead of spreading.

v0.1.0-beta.18

2 years ago

Missing export, need to somehow test/enforce this when adding new modules.

v0.1.0-beta.17

2 years ago

New features

https://user-images.githubusercontent.com/12195101/140578203-3ca073a3-c534-40c4-8a5b-ad0ec5f68e4a.mp4

  • Nested searching is here! Search n levels of actions deep at ease, and speed. #105
  • Actions are internally reworked to support better testing and future extensibility. #96

Bug fixes

  • Escape key now properly propagates events only when kbar is open. #108

Miscellaneous

  • Tests are now set up 🥳

v0.1.0-beta.16

2 years ago

Bug fixes

  • Fixed an issue where multiple key sequence shortcuts causes the trailing keys to appear in the input. #95
  • Fixed an issue where the mouse cursor captures the active index when not moved yet. #98
  • Fixes an edge case where if the first result item is a group name, hitting arrow up would cause the active index to be -1. #99