Align the package with the sibling @samline packages: constants.ts,
core/, vanilla/ and browser/{registry,index,global}, written with arrow
functions and closures.
- source: a local array filtered without case or accents, or
(query, { signal, input }) => items; endpoint becomes fromEndpoint()
- per-query LRU cache with ttl, clearCache() and load detail `cached`
- <mark> highlighting via textContent; renderOption context and
renderHighlight, highlight, filterSuggestions, normalizeText helpers
- non-focusable div options, labelled listbox, status outside the
listbox, polite live region and message functions ({ query, count })
- registry: newAutocomplete, getAutocomplete(s), destroyAutocomplete(s)
- entrypoints ./core, ./vanilla, ./browser (module), ./browser/global
- tests, README, docs, skill, landing, CHANGELOG and a Local data example
BREAKING CHANGE: create/destroy are replaced by the shared registry,
./browser is now a module (the IIFE moved to ./browser/global), options
are divs inside [data-autocomplete-popup], highlighting and caching are
on by default, and createAutocompleteController is removed.