@magicx-eng/ai-autocomplete-angular 0.53.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REFERENCE.md +3 -2
- package/package.json +2 -2
package/REFERENCE.md
CHANGED
|
@@ -500,19 +500,20 @@ other option list (a store's branches, say), and the search never runs.
|
|
|
500
500
|
| Tapping a place already chosen | Re-opens the field focused, its answer selected |
|
|
501
501
|
| Typing in the field | Searches after a short pause (2 characters or more) |
|
|
502
502
|
| <kbd>↓</kbd> / <kbd>↑</kbd> | Moves through the places found |
|
|
503
|
+
| A space in the input right after words that exactly name the top place found (its whole name, or what its brackets hold: "sfo" for "San Francisco International Airport (SFO)") | Commits that place, as a tap would. Only once the search for those words has answered, and not while the field itself has focus |
|
|
503
504
|
| <kbd>Enter</kbd> or a tap on a place | Commits it. With nothing found, Enter commits the typed text as written. So does Enter pressed before the search answers (within the 250ms pause): nothing is highlighted yet |
|
|
504
505
|
| <kbd>Esc</kbd>, or <kbd>Backspace</kbd> in an empty field | Back to the input, the pill left open |
|
|
505
506
|
| <kbd>Tab</kbd> / <kbd>Shift</kbd>+<kbd>Tab</kbd> | On to the next control / back to the input, as for any field |
|
|
506
507
|
|
|
507
508
|
**The committed value** reads as the place and its region (`Seattle, WA`), with
|
|
508
509
|
the server's lead-in before it when there is one (`in Seattle, WA`). A picked
|
|
509
|
-
place also records the provider's place ID on the parameter's `metadata` under
|
|
510
|
+
place also records the provider's place ID and the place's name on the parameter's `metadata` under
|
|
510
511
|
`LOCATION_META_KEY` (`aiaPlace`); typed text records none:
|
|
511
512
|
|
|
512
513
|
```ts
|
|
513
514
|
import { LOCATION_META_KEY } from "@magicx-eng/ai-autocomplete-angular";
|
|
514
515
|
|
|
515
|
-
const place = param.metadata?.[LOCATION_META_KEY]; // { id: "ChIJ…" } | undefined
|
|
516
|
+
const place = param.metadata?.[LOCATION_META_KEY]; // { id: "ChIJ…", name: "Seattle" } | undefined
|
|
516
517
|
```
|
|
517
518
|
|
|
518
519
|
**Re-editing** a committed place re-opens the field on it, selected, so typing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicx-eng/ai-autocomplete-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "AI Autocomplete for Angular: add real-time AI suggestions to any text box and guide users to what your product can do, across search, commerce, agents, and more. Standalone component or controller + directive, with Reactive Forms support.",
|
|
5
5
|
"homepage": "https://ai-autocomplete.com/docs/angular/getting-started",
|
|
6
6
|
"bugs": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"tslib": "^2.3.0",
|
|
28
|
-
"@magicx-eng/ai-autocomplete-vanilla": "0.
|
|
28
|
+
"@magicx-eng/ai-autocomplete-vanilla": "0.70.0"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"angular",
|