@magicx-eng/ai-autocomplete-react 0.59.0 → 0.59.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.
package/README.md CHANGED
@@ -220,9 +220,9 @@ Skip `<AIAutocompleteDropdown />` and render the suggestions UI yourself. `dropd
220
220
 
221
221
  > **Option icons.** An option may carry an icon: `icon_svg` is inline SVG markup and `icon` its name. The built-in dropdown draws the SVG before the option's text, in the text color. When rendering options yourself, pass `icon_svg` through the exported `sanitizeOptionIconSvg` before inserting it — it reduces the markup to plain vector drawing and returns `null` for anything else — and use `optionLabel(option)` for the text — it is the option's `text` alone; `icon` is the icon's name and is never shown as text, even when `icon_svg` is missing or fails to draw. A picked option's `icon` / `icon_svg` are copied onto its completed parameter, and the chip in the input draws the glyph before its text. Both surfaces can be switched off: `showOptionIcons: false` renders option rows as text only and `showChipIcons: false` renders chips as text only; either way the icon element is omitted rather than hidden.
222
222
 
223
- > **Option pictures and counts.** An option may also carry `image_url` — a picture of the best-matching catalog item offering it — and `item_count`, how many items offer it (each is present only when the server includes it; when it includes counts, the options also arrive ordered by them, most items first; a starting state carries pictures but no counts). The built-in dropdown draws the picture as a square thumbnail before the option's text (in place of its `icon_svg`, so a row never leads with two visuals) and the count as a muted label at the row's trailing edge (`"12 items"`). Icons and pictures are all-or-nothing per list: if any tappable option would draw neither, no row draws one, so a list never mixes rows with and without a leading visual (non-tappable rows don't count). A custom dropdown can apply the same rule with the exported `optionsShowLeadingVisuals(options, showIcons, showImages)`. The unit word after the number is a token: set `--aia-option-count-unit: "sneakers"` to name what is being counted, `--aia-option-count-unit-one: "sneaker"` for a count of 1 (it falls back to the plural token), or `--aia-option-count-unit: ""` for the number alone. When rendering options yourself, pass `image_url` through the exported `optionImageSrc` before using it as an `<img src>` — it returns the URL only when it is `http(s)` and `null` otherwise — and `formatOptionCount(option.item_count)` gives the number the built-in rows print (`null` when there is no count); `optionCountLabel(count, unit?)` appends a unit for a dropdown that prints the word itself (`"item"` / `"items"` by default; one word, a `{ one, other }` pair, or `""` for none). Both surfaces can be switched off: `showOptionImages: false` renders rows without pictures (an option's icon then draws instead) and `showOptionCounts: false` hides the counts. A picked option's `image_url` is copied onto its completed parameter too, and the chip in the input draws it as a small rounded tile before its text, in place of the icon; `showChipImages: false` renders chips without pictures (the icon then draws instead). The tile is sized by `--aia-option-image-size` (28px), rounded by `--aia-option-image-radius` (8.4px), spaced by `--aia-option-image-gap` (8.4px) and filled by `--aia-option-image-bg` (default: `--aia-skeleton-bg`) as a placeholder until its picture loads (or if the picture fails); a loaded picture is scaled to fit rather than cropped and sits on the dropdown's background, and one narrower than the tile is rounded on its own corners by `--aia-option-picture-radius` (4.2px); in a grid with pictures, an icon row draws its glyph at `--aia-option-tile-icon-size` (1.5em) so it holds the picture column; the count reads `--aia-option-count-font-size` (8.4px), `--aia-option-count-color` and `--aia-option-count-opacity` (0.6); the chip's tile reads `--aia-chip-image-size` (1.25em of the chip's font), `--aia-chip-image-radius` (4px) and `--aia-chip-image-bg` (default: `--aia-skeleton-bg`), the placeholder fill shown until the picture loads; a loaded picture narrower than the tile narrows it to the picture's own width, so the radius rounds the picture.
223
+ > **Option pictures and counts.** An option may also carry `image_url` — a picture of the best-matching catalog item offering it — and `item_count`, how many items offer it (each is present only when the server includes it; when it includes counts, the options also arrive ordered by them, most items first; a starting state carries pictures but no counts). The built-in dropdown draws the picture as a square thumbnail before the option's text (in place of its `icon_svg`, so a row never leads with two visuals) and the count as a muted label at the row's trailing edge (`"12 items"`). Icons and pictures are all-or-nothing per list: if any tappable option would draw neither, no row draws one, so a list never mixes rows with and without a leading visual (non-tappable rows don't count). A custom dropdown can apply the same rule with the exported `optionsShowLeadingVisuals(options, showIcons, showImages)`. The unit word after the number is a token: set `--aia-option-count-unit: "sneakers"` to name what is being counted, `--aia-option-count-unit-one: "sneaker"` for a count of 1 (it falls back to the plural token), or `--aia-option-count-unit: ""` for the number alone. When rendering options yourself, pass `image_url` through the exported `optionImageSrc` before using it as an `<img src>` — it returns the URL only when it is `http(s)` and `null` otherwise — and `formatOptionCount(option.item_count)` gives the number the built-in rows print (`null` when there is no count); `optionCountLabel(count, unit?)` appends a unit for a dropdown that prints the word itself (`"item"` / `"items"` by default; one word, a `{ one, other }` pair, or `""` for none). Both surfaces can be switched off: `showOptionImages: false` renders rows without pictures (an option's icon then draws instead) and `showOptionCounts: false` hides the counts. A picked option's `image_url` is copied onto its completed parameter too, and the chip in the input draws it as a small rounded tile before its text, in place of the icon; `showChipImages: false` renders chips without pictures (the icon then draws instead). The tile is sized by `--aia-option-image-size` (40px), rounded by `--aia-option-image-radius` (12px), spaced by `--aia-option-image-gap` (12px) and filled by `--aia-option-image-bg` (default: `--aia-skeleton-bg`) as a placeholder until its picture loads (or if the picture fails); a loaded picture is scaled to fit rather than cropped and sits on the dropdown's background, and one narrower than the tile is rounded on its own corners by `--aia-option-picture-radius` (6px); in a grid with pictures, an icon row draws its glyph at `--aia-option-tile-icon-size` (1.5em) so it holds the picture column; the count reads `--aia-option-count-font-size` (12px), `--aia-option-count-color` and `--aia-option-count-opacity` (0.6); the chip's tile reads `--aia-chip-image-size` (1.25em of the chip's font), `--aia-chip-image-radius` (4px) and `--aia-chip-image-bg` (default: `--aia-skeleton-bg`), the placeholder fill shown until the picture loads; a loaded picture narrower than the tile narrows it to the picture's own width, so the radius rounds the picture.
224
224
 
225
- > **Parameter names under options.** An option that completes the word being typed (the server's `traditional_autocomplete` suggestion) can read the same as an option of another parameter, so the built-in dropdown draws the name of the parameter it answers under its text, muted and smaller (`Flavor`, `Subcategory`); the SDK sets it as `parameterLabel` from the option's `parameter`. It reads `--aia-option-parameter-font-size` (8.4px), `--aia-option-parameter-color` and `--aia-option-parameter-opacity` (0.6).
225
+ > **Parameter names under options.** An option that completes the word being typed (the server's `traditional_autocomplete` suggestion) can read the same as an option of another parameter, so the built-in dropdown draws the name of the parameter it answers under its text, muted and smaller (`Flavor`, `Subcategory`); the SDK sets it as `parameterLabel` from the option's `parameter`. It reads `--aia-option-parameter-font-size` (12px), `--aia-option-parameter-color` and `--aia-option-parameter-opacity` (0.6).
226
226
 
227
227
  ```tsx
228
228
  import { useAIAutocomplete } from "@magicx-eng/ai-autocomplete-react";
@@ -312,7 +312,7 @@ function App() {
312
312
  | `onProductSelect?` | `(product: Product) => void` | — | Called when a product card is activated. The SDK never navigates. |
313
313
  | `onProductAddToCart?` | `(product: Product) => void \| PromiseLike<unknown>` | — | When set, every card that isn't sold out shows an add-to-cart button; pressing it calls this instead of `onProductSelect`. Return a promise to show progress. See [Product strip](#product-strip). |
314
314
  | `resetOnSubmit?` | `boolean` | `true` | Clear the input and start a new session after `onSubmit` runs. Set to `false` to keep the query in place — e.g. when `onSubmit` navigates away — and call the handle's `reset()` yourself. |
315
- | `seeAllResults?` | `boolean` | `false` | End the dropdown in a "See all results" button that submits like Enter (`onSubmit`, then `resetOnSubmit`), shown while there is typed text. Style it with the `--aia-see-all-*` tokens. |
315
+ | `seeAllResults?` | `boolean` | `false` | End the dropdown in a "See all results" button that submits like Enter (`onSubmit`, then `resetOnSubmit`), shown while there is typed text. The dropdown then keeps its full width at every step. Style it with the `--aia-see-all-*` tokens. |
316
316
  | `submitButton?` | `ReactNode` | — | Custom submit button. Pass any `ReactNode` to replace the default arrow button. Pass `null` to render no button. Clicks bubble up and trigger submit, so consumer-supplied buttons work without re-wiring `onClick`. |
317
317
  | `ref?` | `Ref<AIAutocompleteHandle>` | — | Imperative handle with `focus()`, `blur()`, `reset()`, and `setMode()`. |
318
318
 
package/REFERENCE.md CHANGED
@@ -46,9 +46,9 @@ Pass `showProducts={false}` to render no strip at all. The catalog report
46
46
  `productsLayout="list"` stacks the same cards as full-width rows (thumbnail
47
47
  on the left, title, vendor and price on the right) for results that read as
48
48
  a list (courses, listings, documents) rather than products on a shelf. The
49
- column scrolls vertically inside `--aia-product-list-max-height` (224px by
50
- default); `--aia-product-list-media-size` (30.8px) sizes the thumbnail and
51
- `--aia-product-list-gap` (1.4px) the space between rows. `"row"`, the default,
49
+ column scrolls vertically inside `--aia-product-list-max-height` (320px by
50
+ default); `--aia-product-list-media-size` (44px) sizes the thumbnail and
51
+ `--aia-product-list-gap` (2px) the space between rows. `"row"`, the default,
52
52
  is the horizontal strip. Changing the prop re-lays the strip out at once, and
53
53
  `<AIAutocompleteDropdown>` takes the same prop in Tier 2.
54
54
 
@@ -276,7 +276,7 @@ and ignores further presses; once it resolves the cart turns into a check
276
276
  through "adding" to "added". A rejection puts the button back at rest — show your own error. A handler that returns nothing goes
277
277
  straight to "added". The button is labelled "Add to cart: {title}" in the
278
278
  widget language, reachable by Tab and pressed with Enter or Space. Theme it
279
- with `--aia-product-cart-size` (19.6px), `--aia-product-cart-bg` and
279
+ with `--aia-product-cart-size` (28px), `--aia-product-cart-bg` and
280
280
  `--aia-product-cart-color`; its focus ring uses `--aia-product-focus-ring`.
281
281
  The button is a `[data-aia-product-cart]` element, and a card that has one
282
282
  carries `data-aia-product-has-cart`.
@@ -532,11 +532,11 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
532
532
  | `--aia-pill-bg` | `#bdbdbd` | `#bdbdbd` | Pill background |
533
533
  | `--aia-pill-color` | `#000000` | `#ffffff` | Pill text |
534
534
  | `--aia-pill-font-size` | `19px` | `19px` | Pill font size |
535
- | `--aia-param-label-font-size` | `9.45px` | `9.45px` | Font size of the options box's header label: the parameter the options answer, the pill marked `[data-aia-pill-active]`. Style that label through `[data-aia-pill][data-aia-pill-active]`. |
535
+ | `--aia-param-label-font-size` | `13.5px` | `13.5px` | Font size of the options box's header label: the parameter the options answer, the pill marked `[data-aia-pill-active]`. Style that label through `[data-aia-pill][data-aia-pill-active]`. |
536
536
  | `--aia-option-bg` | `transparent` | `transparent` | Highlighted option background |
537
537
  | `--aia-option-color` | `#000000` | `#ffffff` | Option text |
538
538
  | `--aia-option-color-selected` | `#000000` | `#ffffff` | Highlighted option text |
539
- | `--aia-option-font-size` | `11.2px` | `11.2px` | Option font size |
539
+ | `--aia-option-font-size` | `16px` | `16px` | Option font size |
540
540
  | `--aia-written-text-color` | `#000000` | `#ffffff` | Input text |
541
541
  | `--aia-written-text-font-size` | `19px` | `19px` | Input text font size |
542
542
  | `--aia-written-text-font-weight` | `300` | `300` | Written text weight in the full input. Completed chips keep their own typography. |
@@ -557,14 +557,14 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
557
557
  | `--aia-scrollbar-track` | `rgba(15, 23, 42, 0.05)` | `rgba(255, 255, 255, 0.08)` | The floating options box's thin scrollbar track, shown while a long list overflows. |
558
558
  | `--aia-scrollbar-thumb` | `rgba(15, 23, 42, 0.22)` | `rgba(255, 255, 255, 0.28)` | That scrollbar's thumb. |
559
559
  | `--aia-streak-rgb` | `99, 102, 241` | `255, 255, 255` | Comma-separated RGB triplet tinting the datepicker's pressed cell, and its selected cell when `--aia-date-selected-bg` is unset. The today ring uses `--aia-date-today-ring`, not this. |
560
- | `--aia-product-card-width` | `81.2px` | `81.2px` | Width of a product card in the strip. The media tile is square, so this also sets its height. |
561
- | `--aia-product-gap` | `5.6px` | `5.6px` | Gap between product cards. |
560
+ | `--aia-product-card-width` | `116px` | `116px` | Width of a product card in the strip. The media tile is square, so this also sets its height. |
561
+ | `--aia-product-gap` | `8px` | `8px` | Gap between product cards. |
562
562
  | `--aia-product-bg` | `transparent` | `transparent` | Product card background. |
563
563
  | `--aia-product-bg-active` | `--aia-option-bg` | `--aia-option-bg` | Product card background on hover. |
564
564
  | `--aia-product-media-bg` | `--aia-skeleton-bg` | `--aia-skeleton-bg` | Placeholder fill of the product tile: shown until the photo loads, and behind both fallback tiles (placeholder pictogram or title initial) used when an image URL is missing, blank or fails to load. Once a photo loads the tile is transparent. |
565
565
  | `--aia-scroll-arrow-color` | `--aia-option-color` | `--aia-option-color` | Chevron color of the arrow (`--aia-scroll-arrow-color-hover` on hover). `optionsStyle: "classic"` only: the floating box draws a thin scrollbar instead (`--aia-scrollbar-*`). |
566
566
  | `--aia-placeholder-fade` | `120ms` | `120ms` | Fade-out of the outgoing placeholder phrase when the starting-state placeholder changes (the incoming one types itself in). |
567
- | `--aia-product-image-radius` | `5.6px` | `5.6px` | Corner radius of a product photo narrower than its square tile (a tall one), which is scaled to fit rather than cropped. A photo that fills the tile takes the tile's own 5.6px corners. |
567
+ | `--aia-product-image-radius` | `8px` | `8px` | Corner radius of a product photo narrower than its square tile (a tall one), which is scaled to fit rather than cropped. A photo that fills the tile takes the tile's own 8px corners. |
568
568
  | `--aia-product-placeholder-image` | storefront pictogram | storefront pictogram | The pictogram used by `productImageFallback: "image"` (the default) when an image URL is missing, blank or fails to load. Defaults to a two-tone storefront inlined as a data URI. Set any `url(...)` to swap it; it is centered and contained over `--aia-product-media-bg`. Does not affect `"initial"` tiles. |
569
569
  | `--aia-product-title-color` | `--aia-option-color-selected` | `--aia-option-color-selected` | Product title text. Follows the option colors by default, so theming the panel moves suggestions and products together. |
570
570
  | `--aia-product-price-color` | `--aia-option-color-selected` | `--aia-option-color-selected` | Product price text. |
@@ -573,10 +573,10 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
573
573
  | `--aia-product-vendor-color` | `--aia-option-color` | `--aia-option-color` | Product vendor line. |
574
574
  | `--aia-product-focus-ring` | `--aia-option-color-selected` | `--aia-option-color-selected` | Focus ring drawn on a keyboard-focused card. |
575
575
  | `--aia-products-label-color` | `--aia-option-color` | `--aia-option-color` | "Items" section label. |
576
- | `--aia-product-title-font-size` | `8.4px` | `8.4px` | Product title font size. |
577
- | `--aia-product-price-font-size` | `7.7px` | `7.7px` | Product price font size. |
578
- | `--aia-product-vendor-font-size` | `7px` | `7px` | Product vendor font size. |
579
- | `--aia-products-label-font-size` | `7.7px` | `7.7px` | Section label font size. |
576
+ | `--aia-product-title-font-size` | `12px` | `12px` | Product title font size. |
577
+ | `--aia-product-price-font-size` | `11px` | `11px` | Product price font size. |
578
+ | `--aia-product-vendor-font-size` | `10px` | `10px` | Product vendor font size. |
579
+ | `--aia-products-label-font-size` | `11px` | `11px` | Section label font size. |
580
580
  | `--aia-date-panel-width` | `312px` | `312px` | Max width of the whole dropdown panel while the calendar is up — the panel narrows to calendar size. |
581
581
  | `--aia-date-cell-size` | `26px` | `26px` | Size of a day's square — the box that carries the highlight, the today ring and the selected fill. |
582
582
  | `--aia-date-row-height` | `28px` | `28px` | Height of one week row. Lower it to fit a 6-week month in a shorter dropdown. |
package/dist/index.d.mts CHANGED
@@ -235,7 +235,10 @@ interface AIAutocompleteProps {
235
235
  * shown while the field holds typed text. A click submits the query exactly
236
236
  * as Enter and the submit button do (`onSubmit` runs, then `resetOnSubmit`
237
237
  * applies), so an `onSubmit` that opens your results page takes the shopper
238
- * there. Style it with the `--aia-see-all-*` custom properties. Default: false.
238
+ * there. With it on, the dropdown keeps its full width at every step, the
239
+ * empty starting state included, instead of narrowing to fit plain
240
+ * options. Style it with the `--aia-see-all-*` custom properties.
241
+ * Default: false.
239
242
  */
240
243
  seeAllResults?: boolean;
241
244
  }
@@ -726,6 +729,13 @@ interface AIAutocompleteDropdownProps {
726
729
  * submit while the field holds typed text. Omitted → no button.
727
730
  */
728
731
  onSeeAllResults?: () => void;
732
+ /**
733
+ * Keep the panel at its full width at every step instead of hugging its
734
+ * options, so drawing "See all results" never changes its width.
735
+ * `<AIAutocomplete seeAllResults>` sets it, the empty starting state
736
+ * included. Default false.
737
+ */
738
+ fullWidth?: boolean;
729
739
  /** The user turned the time wheel; commits nothing. Provided by `dropdownProps` from the hook. */
730
740
  onTimeChange?: (minutes: number) => void;
731
741
  /** The time wheel's Done — answer the pill. Provided by `dropdownProps` from the hook. */
@@ -762,7 +772,7 @@ interface AIAutocompleteDropdownProps {
762
772
 
763
773
  declare const AIAutocomplete: react.ForwardRefExoticComponent<AIAutocompleteProps & react.RefAttributes<AIAutocompleteHandle>>;
764
774
 
765
- declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, onUnhighlight, isOpen, id, className, pills, onPillClick, showPills, onSkip, showSkipButton, showOptionIcons, showOptionImages, showOptionCounts, skipDisabled, activeSelected, isLoading, skeletonExiting, isInputEmpty, language, products, onProductSelect, onProductAddToCart, onProductFocusChange, productsLayout, productImageFallback, formatType, dateView, selectedDateIso, selectedDateRange, dateRangeStart, dateReferences, onPreviousMonth, onNextMonth, timeView, multiSelectView, onMultiSelectCommit, onSeeAllResults, onTimeChange, onTimeCommit, locationView, isReediting, onLocationQuery, onLocationMove, onLocationCommit, onLocationFocusChange, isFocused, optionsPosition, mode, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
775
+ declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, onUnhighlight, isOpen, id, className, pills, onPillClick, showPills, onSkip, showSkipButton, showOptionIcons, showOptionImages, showOptionCounts, skipDisabled, activeSelected, isLoading, skeletonExiting, isInputEmpty, language, products, onProductSelect, onProductAddToCart, onProductFocusChange, productsLayout, productImageFallback, formatType, dateView, selectedDateIso, selectedDateRange, dateRangeStart, dateReferences, onPreviousMonth, onNextMonth, timeView, multiSelectView, onMultiSelectCommit, onSeeAllResults, fullWidth, onTimeChange, onTimeCommit, locationView, isReediting, onLocationQuery, onLocationMove, onLocationCommit, onLocationFocusChange, isFocused, optionsPosition, mode, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
766
776
 
767
777
  declare function useAIAutocomplete({ onSubmit, onResult, onError, optionOverrides, maskCompletedText, apiConfig, additionalContext, language, currency, productId, visitorId, columns, dropdownTrigger, optionsPosition, closeDropdownOnBlur, prependPlaceholder, allOption, showNonTappableOptions, locationSearch, showOptionIcons, showOptionImages, showOptionCounts, showSkipButton, showProducts, productImageFallback, onFocus, onBlur, value: controlledValue, completedParams: controlledParams, onChange: onChangeProp, onParamsChange, products, mapProducts, onProductSelect, onProductAddToCart, source, setCursor, }: UseAIAutocompleteOptions): UseAIAutocompleteReturn;
768
778
 
package/dist/index.d.ts CHANGED
@@ -235,7 +235,10 @@ interface AIAutocompleteProps {
235
235
  * shown while the field holds typed text. A click submits the query exactly
236
236
  * as Enter and the submit button do (`onSubmit` runs, then `resetOnSubmit`
237
237
  * applies), so an `onSubmit` that opens your results page takes the shopper
238
- * there. Style it with the `--aia-see-all-*` custom properties. Default: false.
238
+ * there. With it on, the dropdown keeps its full width at every step, the
239
+ * empty starting state included, instead of narrowing to fit plain
240
+ * options. Style it with the `--aia-see-all-*` custom properties.
241
+ * Default: false.
239
242
  */
240
243
  seeAllResults?: boolean;
241
244
  }
@@ -726,6 +729,13 @@ interface AIAutocompleteDropdownProps {
726
729
  * submit while the field holds typed text. Omitted → no button.
727
730
  */
728
731
  onSeeAllResults?: () => void;
732
+ /**
733
+ * Keep the panel at its full width at every step instead of hugging its
734
+ * options, so drawing "See all results" never changes its width.
735
+ * `<AIAutocomplete seeAllResults>` sets it, the empty starting state
736
+ * included. Default false.
737
+ */
738
+ fullWidth?: boolean;
729
739
  /** The user turned the time wheel; commits nothing. Provided by `dropdownProps` from the hook. */
730
740
  onTimeChange?: (minutes: number) => void;
731
741
  /** The time wheel's Done — answer the pill. Provided by `dropdownProps` from the hook. */
@@ -762,7 +772,7 @@ interface AIAutocompleteDropdownProps {
762
772
 
763
773
  declare const AIAutocomplete: react.ForwardRefExoticComponent<AIAutocompleteProps & react.RefAttributes<AIAutocompleteHandle>>;
764
774
 
765
- declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, onUnhighlight, isOpen, id, className, pills, onPillClick, showPills, onSkip, showSkipButton, showOptionIcons, showOptionImages, showOptionCounts, skipDisabled, activeSelected, isLoading, skeletonExiting, isInputEmpty, language, products, onProductSelect, onProductAddToCart, onProductFocusChange, productsLayout, productImageFallback, formatType, dateView, selectedDateIso, selectedDateRange, dateRangeStart, dateReferences, onPreviousMonth, onNextMonth, timeView, multiSelectView, onMultiSelectCommit, onSeeAllResults, onTimeChange, onTimeCommit, locationView, isReediting, onLocationQuery, onLocationMove, onLocationCommit, onLocationFocusChange, isFocused, optionsPosition, mode, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
775
+ declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, onUnhighlight, isOpen, id, className, pills, onPillClick, showPills, onSkip, showSkipButton, showOptionIcons, showOptionImages, showOptionCounts, skipDisabled, activeSelected, isLoading, skeletonExiting, isInputEmpty, language, products, onProductSelect, onProductAddToCart, onProductFocusChange, productsLayout, productImageFallback, formatType, dateView, selectedDateIso, selectedDateRange, dateRangeStart, dateReferences, onPreviousMonth, onNextMonth, timeView, multiSelectView, onMultiSelectCommit, onSeeAllResults, fullWidth, onTimeChange, onTimeCommit, locationView, isReediting, onLocationQuery, onLocationMove, onLocationCommit, onLocationFocusChange, isFocused, optionsPosition, mode, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
766
776
 
767
777
  declare function useAIAutocomplete({ onSubmit, onResult, onError, optionOverrides, maskCompletedText, apiConfig, additionalContext, language, currency, productId, visitorId, columns, dropdownTrigger, optionsPosition, closeDropdownOnBlur, prependPlaceholder, allOption, showNonTappableOptions, locationSearch, showOptionIcons, showOptionImages, showOptionCounts, showSkipButton, showProducts, productImageFallback, onFocus, onBlur, value: controlledValue, completedParams: controlledParams, onChange: onChangeProp, onParamsChange, products, mapProducts, onProductSelect, onProductAddToCart, source, setCursor, }: UseAIAutocompleteOptions): UseAIAutocompleteReturn;
768
778