Merged in fix/SW-2253-consolidate-autocomplete-search (pull request #1795)

Consolidate autocomplete search SW-2253 SW-2338

* use fuse.js for fuzzy search
* Handle weird behaviour when search field loses focus on destinationPage
* Add error logging for JumpTo when no URL was provided
* Switch to use <Typography /> over <Caption />
* fix: bookingWidget search label should always be red
* fix: searchHistory can no longer add invalid items
* fix: list more hits when searching
* fix: issue when searchField value was undefined
* fix: don't show searchHistory label if no searchHistory items
* simplify skeleton for listitems in search

Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-04-17 06:39:42 +00:00
parent 8c0597727b
commit b98d6c10c0
35 changed files with 797 additions and 1602 deletions

View File

@@ -6430,6 +6430,7 @@ __metadata:
fast-deep-equal: "npm:^3.1.3"
fetch-retry: "npm:^6.0.0"
framer-motion: "npm:^11.3.28"
fuse.js: "npm:^7.1.0"
graphql: "npm:^16.8.1"
graphql-request: "npm:^6.1.0"
graphql-tag: "npm:^2.12.6"
@@ -13006,6 +13007,13 @@ __metadata:
languageName: node
linkType: hard
"fuse.js@npm:^7.1.0":
version: 7.1.0
resolution: "fuse.js@npm:7.1.0"
checksum: 10c0/c0d1b1d192a4bdf3eade897453ddd28aff96b70bf3e49161a45880f9845ebaee97265595db633776700a5bcf8942223c752754a848d70c508c3c9fd997faad1e
languageName: node
linkType: hard
"gensync@npm:^1.0.0-beta.2":
version: 1.0.0-beta.2
resolution: "gensync@npm:1.0.0-beta.2"