@magicx-eng/ai-autocomplete-react 0.49.0 → 0.49.2

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.
Files changed (2) hide show
  1. package/README.md +1 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -656,6 +656,7 @@ How it behaves:
656
656
 
657
657
  - **Called** once the moment the parameter becomes active, with whatever the user has already typed for it (usually `""`, the request for the default list), and again on the SDK's typing debounce with each new phrase — so you can search or page a larger list. Return the same list again if the phrase is already covered.
658
658
  - **Shown as-is.** The answer is not filtered again by the phrase it was produced for, so a fuzzy match survives. Between two calls the previous answer is filtered locally by what the user types. Typing an option's full text completes the parameter, as it does for a server option.
659
+ - **Icons.** When the server has an icon saved for the parameter it sends it on the suggestion (`icon` / `icon_svg`), and each option you return that has no `icon_svg` or `image_url` of its own is drawn with it. Give an option its own `icon_svg` or `image_url` to show that instead.
659
660
  - **The server steps back.** Its own options for an overridden type are never shown, and it is not asked for suggestions while an override owns the active parameter — it is asked again when the parameter is answered or skipped. Return an empty list for a typed phrase and the SDK falls back to the server for that phrase (once), the way it does for a parameter with no matching options. An empty list for `""` leaves the parameter on screen with no options.
660
661
  - **Honour `signal`** — it is aborted when a newer phrase supersedes the call, when the parameter stops being active, and on unmount. A throw or a rejection is logged once and treated as an empty answer, never as a fetch error.
661
662
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicx-eng/ai-autocomplete-react",
3
- "version": "0.49.0",
3
+ "version": "0.49.2",
4
4
  "description": "AI Autocomplete for React: add real-time AI suggestions to any text box and guide users to what your product can do, across search, commerce, agents, and more. Drop-in component or dropdown + hook.",
5
5
  "homepage": "https://ai-autocomplete.com/docs/react/getting-started",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "react-dom": ">=17.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@magicx-eng/ai-autocomplete-vanilla": "0.60.0"
37
+ "@magicx-eng/ai-autocomplete-vanilla": "0.62.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@figma/code-connect": "^1.4.7",