Releases: placekit/autocomplete-js
Releases · placekit/autocomplete-js
v2.1.0
v2.0.1
v2.0.0
What's Changed
🎉 You can now search in the whole world!
⚠️ BREAKING CHANGES
The main difference is that countries
option isn't required anymore, and when it's not set, a country selection mode shows on the suggestions panel. This needed a major rewrite, and took the opportunity to do some necessary refactoring too.
Features
- Fixed a CSS issue with
visibility
property. - Added the country selection mode.
- Fixed an issue when a delayed API response would update the panel with outdated suggestions.
- Added a spinner in the top right corner.
- Added
countryMode
state (boolean). - Added
countryChange
event. - Moved the package to using
"type": "module"
.
Options
- Changed
countryAutoFill
default totrue
. - Added
countrySelect
(default:true
) to disable country selection mode whencountries
is not set. - Moved
className
,offset
,strategy
,flip
underpanel
object. - Moved
noResults
toformat.noResults
. - Moved and renamed
formatValue
toformat.value
. - Removed
template
. - Added
format.sub
to replacetemplate
–it can only control the sub text of a suggestion. - Added
format.icon
andformat.flag
to help customize icons/flags. - Added
format.applySuggestion
andformat.cancel
to help customize text labels/ARIA-labels.
CSS
- Added
--pka-icon-<name>
variables. - Added
.pka-flag, .pka-icon, .pka-icon-<name>
classes. - Renamed prefix
pka-suggestions-panel
topka-panel
for all classes. - Renamed
.pka-panel-suggestions-item
to.pka-panel-suggestion
. - Added
.pka-panel-loading
. - Wrapped
.pka-panel-credits
under.pka-panel-footer
. - Added
.pka-panel-country
and children.
Full Changelog: v1.6.1...v2.0.0