All notable changes to spotlight
will be documented in this file.
- Add ability to define synonyms when searching for commands
- Alpine v3 support
- Make prompt placeholder translatable
- Fuse.js is now included in the Javascript bundle.
- You can disable the Javascript in the config file and require the Javascript in your bundler
require('vendor/livewire-ui/spotlight/resources/js/spotlight');
- Add call to
shouldBeShown
method on theSpotlightCommand
for any custom logic needed for determining whether a command should be shown in the Spotlight component. This includes resolving any dependencies out of the Laravel service container.
- Add
SpotlightCommandDependency
type support. Defaults toSpotlightCommandDependency::SEARCH
- Important The dependency order was incorrect, you need to change your dependency order after updating if you have more than one dependency.
- Add option to toggle Spotlight via browser events.
$this->dispatchBrowserEvent('toggle-spotlight');
- Add
make:spotlight
command.
- Add
registerCommandIf
andregisterCommandUnless
helpers to register commands conditionally. - Fix element flashing by applying x-cloak
- Reset Spotlight state on close.
- Add conditional CSS for non TailwindCSS users.
- Add option to customize keyboard shortcut.
- Upgrade Laravel Mix.
- Initial release.