Skip to content

Releases: placekit/autocomplete-js

v2.1.0

11 Sep 15:48
4d3f99d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.1...v2.1.0

v2.0.1

22 Aug 06:47
09b48a4
Compare
Choose a tag to compare

What's Changed

  • Remove mouse interactions on mobile by @noclat in #34
  • Fix credits overflowing on mobile.
  • Fix minimum suggestion height on mobile for greater touch area.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

14 Aug 14:07
39c683a
Compare
Choose a tag to compare

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 to true.
  • Added countrySelect (default: true) to disable country selection mode when countries is not set.
  • Moved className, offset, strategy, flip under panel object.
  • Moved noResults to format.noResults.
  • Moved and renamed formatValue to format.value.
  • Removed template.
  • Added format.sub to replace template–it can only control the sub text of a suggestion.
  • Added format.icon and format.flag to help customize icons/flags.
  • Added format.applySuggestion and format.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 to pka-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

v1.6.1

22 Jun 11:10
9f271e3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.6.0...v1.6.1

v1.6.0

20 Jun 18:02
31b7d7b
Compare
Choose a tag to compare

What's Changed

  • Fix button default background color by @noclat in #28
  • Min-width too wide, keep 240px across all screens by @noclat in #29
  • Clear geolocation by @noclat in #30

Full Changelog: v1.5.0...v1.6.0

v1.5.0

13 Jun 13:07
277b3df
Compare
Choose a tag to compare

What's Changed

  • Fix change event for React and expose setValue by @noclat in #27

Full Changelog: v1.4.2...v1.5.0

v1.4.2

13 Jun 07:45
Compare
Choose a tag to compare

What's Changed

  • Fix default value clearing bug by @noclat in #26

Full Changelog: v1.4.1...v1.4.2

v1.4.1

08 Jun 10:53
77323b2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.0...v1.4.1

v1.4.0

08 Jun 10:21
Compare
Choose a tag to compare

What's Changed

  • feat:configure now accepts all options by @noclat in #24

⚠️ Breaking changes

  • moved hasGeolocation to state.geolocation.

Full Changelog: v1.3.1...v1.4.0

v1.3.1

07 Jun 13:17
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.3.0...v1.3.1