@magicx-eng/ai-autocomplete-vanilla 0.72.1 → 0.73.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/README.md CHANGED
@@ -110,12 +110,13 @@ const ac = new AIAutocomplete(container, {
110
110
  closeDropdownOnBlur: true, // false = keep dropdown open even when input loses focus
111
111
  prependPlaceholder: true, // false = show the starting state's lead-in text as a hint only; a picked option is not written after it
112
112
  showNonTappableOptions: true, // false = hide non-tappable options from the dropdown
113
+ allOption: false, // true = lead a plain question with an All row that skips it
113
114
  locationSearch: true, // false = a location field takes typed text only, no lookups
114
115
  showSkipButton: true, // false = hide the pill bar's "skip" button (trailing edge)
115
116
  showOptionIcons: true, // false = render option rows as text only (no icons)
116
117
  showChipIcons: true, // false = render completed chips as text only (no icons)
117
118
  showChipImages: true, // false = never draw an option's picture on its completed chip
118
- showChipRemove: false, // true = each completed chip ends in a small faint × that removes it in one tap
119
+ showChipRemove: false, // true = each chip ends in a small faint × that removes it in one tap
119
120
  showOptionImages: true, // false = never draw an option's image_url thumbnail
120
121
  showOptionCounts: true, // false = never show an option's item_count
121
122
 
@@ -351,7 +352,7 @@ unsub();
351
352
 
352
353
  > **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.
353
354
 
354
- > **Removing a chip.** With `showChipRemove: true`, every completed chip in the input ends in a small, faint "×"; one tap or click on it removes that chip, the same result as Backspace at the chip's trailing edge (`removeParam(id)` does the same from code). Only completed chips get one; values the server merely identified in typed text do not. The × reads `--aia-chip-remove-opacity` (0.32) and `--aia-chip-remove-opacity-hover` (0.7).
355
+ > **Removing a chip.** With `showChipRemove: true`, every chip in the input ends in a small, faint "×"; one tap or click on it removes that chip, the same result as Backspace at the chip's trailing edge (`removeParam(id)` does the same from code). Chips the server identified in typed text get one too. The × reads `--aia-chip-remove-opacity` (0.32) and `--aia-chip-remove-opacity-hover` (0.7).
355
356
 
356
357
  > **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).
357
358
 
@@ -397,7 +398,7 @@ unsub();
397
398
  | `setActivePill(index)` | Reorder pills — moves pill at `index` to front (active). |
398
399
  | `skipActivePill()` | Skip the active pill — same action as → / the dropdown's skip button. Records it in `skippedParams`; no-ops during re-edit and the post-selection window. Use it to drive a custom skip affordance (e.g. with `showSkipButton: false`). |
399
400
  | `removeLastParam()` | Remove the last completed param from state. The text stays in the input as plain text. |
400
- | `removeParam(paramId)` | Remove the completed chip with that id, the same result as Backspace at the chip's trailing edge; the chip's × (`showChipRemove`) calls it. Any value's id of one multi-select answer removes its joined chip. Returns `false`, changing nothing, when no completed chip has that id. |
401
+ | `removeParam(paramId)` | Remove the chip with that id (completed or identified), the same result as Backspace at the chip's trailing edge; the chip's × (`showChipRemove`) calls it. Any value's id of one multi-select answer removes its joined chip. Returns `false`, changing nothing, when no chip has that id. |
401
402
  | `clearNewParamId()` | Clear shimmer animation state. |
402
403
  | `reset()` | Clear all state, re-fetch initial suggestions, and start a new session (rotates `session_id`). Call this after handling submit. |
403
404
  | `prepareSubmit()` | Call before building a submit result from your own button. A typed word that equals exactly one completion candidate becomes a completed param, the same as Enter. A typed value the response returned with no pill yet (`state: "need_confirmation"`) joins `identifiedParams` if the text has not changed since that response. A submit that skips this call leaves that value out. Read the updated state with `getState()` to build the result. |
@@ -530,9 +531,9 @@ Pressing <kbd>→</kbd> at the end of the input dismisses the active pill. The d
530
531
  { placeholder: "", parameter: "goal", text: "skipped", kind: null }
531
532
  ```
532
533
 
533
- Skipped entries are appended after the filled params (they have no position in the query) and are deduped by parameter. A skip is dropped if a param of the same parameter ends up filled anyway. Skipping the last available pill triggers an immediate request so the server can suggest something else; earlier skips ride along on the next request. `reset()` clears them.
534
+ Skipped entries are appended after the filled params (they have no position in the query) and are deduped by parameter. A skip is dropped if a param of the same parameter ends up filled anyway. Skipping the last available pill triggers an immediate request so the server can suggest something else; earlier skips ride along on the next request. `reset()` clears them, as does clearing the search back to the starting state.
534
535
 
535
- > **Reading `state.skippedParams` directly:** the array is append-only until `reset()`. The "drop a skip whose parameter got filled" rule is applied when the payload is built, not by pruning the array — so if the user skips `goal` and later fills one, the raw array still holds the `goal` entry. That's deliberate: the filter self-heals if they then delete that param's text, where pruning would discard the signal for good. Apply the same rule yourself with the exported `withSkippedParams(completedParams, skippedParams)`.
536
+ > **Reading `state.skippedParams` directly:** the array lasts until `reset()` or a cleared search. The "drop a skip whose parameter got filled" rule is applied when the payload is built, not by pruning the array — so if the user skips `goal` and later fills one, the raw array still holds the `goal` entry. That's deliberate: the filter self-heals if they then delete that param's text, where pruning would discard the signal for good. Apply the same rule yourself with the exported `withSkippedParams(completedParams, skippedParams)`.
536
537
 
537
538
  ### Event Subscription
538
539
 
package/REFERENCE.md CHANGED
@@ -289,7 +289,7 @@ fully under your control. (Angular additionally runs its own `href`
289
289
  sanitiser, so unrecognised schemes like `myapp://…` are rewritten to
290
290
  `unsafe:…` in that package only.)
291
291
 
292
- **Accessibility.** The strip is a `role="group"` labelled "Best match"; each card
292
+ **Accessibility.** The strip is a `role="group"` labelled "Items" (in English; other languages keep their own words); each card
293
293
  is a `role="option"` in the tab order, activated with Enter or Space, with a
294
294
  visible focus ring. Tabbing into the strip does not close the panel. The row
295
295
  scrolls horizontally by trackpad, wheel, touch and keyboard; the page never
@@ -579,7 +579,7 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
579
579
  | `--aia-product-compare-at-opacity` | `0.6` | `0.6` | How far the struck price is dimmed. |
580
580
  | `--aia-product-vendor-color` | `--aia-option-color` | `--aia-option-color` | Product vendor line. |
581
581
  | `--aia-product-focus-ring` | `--aia-option-color-selected` | `--aia-option-color-selected` | Focus ring drawn on a keyboard-focused card. |
582
- | `--aia-products-label-color` | `--aia-option-color` | `--aia-option-color` | "Best match" section label. |
582
+ | `--aia-products-label-color` | `--aia-option-color` | `--aia-option-color` | "Items" section label. |
583
583
  | `--aia-product-title-font-size` | `8.4px` | `8.4px` | Product title font size. |
584
584
  | `--aia-product-price-font-size` | `7.7px` | `7.7px` | Product price font size. |
585
585
  | `--aia-product-vendor-font-size` | `7px` | `7px` | Product vendor font size. |
@@ -603,17 +603,18 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
603
603
  | `--aia-confirm-color` | `#ffffff` | `#000000` | The checkbox's checkmark (and, in dark mode, the Done buttons' text). |
604
604
  | `--aia-done-bg` / `--aia-done-bg-hover` / `--aia-done-color` | `#e4e8f0` / `#d8dde8` / `#2a3150` | `--aia-confirm-*` | The Done buttons (multi-select and time wheel). |
605
605
  | `--aia-multi-done-bg` / `--aia-multi-done-bg-hover` / `--aia-multi-done-color` | `--aia-done-*` | `--aia-done-*` | Override the multi-select Done button alone. |
606
+ | `--aia-multi-done-bg-beside-see-all` / `--aia-multi-done-color-beside-see-all` | `transparent` / `--aia-option-color-selected` | `transparent` / `--aia-option-color-selected` | The multi-select Done button's fill and label colour at rest while "See all results" is shown under it, so the two do not compete (hover keeps `--aia-multi-done-bg-hover` and the Done colour). `--aia-multi-done-bg` and `--aia-done-bg` do not apply in this state. |
606
607
  | `--aia-multi-done-width` | `100%` (classic: as wide as the widest option) | same | Width of the multi-select Done button. |
607
608
  | `--aia-panel-min-width` | `160px` | same | Narrowest the floating options box gets when it hugs its options (desktop). |
608
609
  | `--aia-multi-done-min-width` | `120px` | `120px` | Narrowest the multi-select Done button gets. |
609
610
  | `--aia-time-done-bg` / `--aia-time-done-bg-hover` / `--aia-time-done-color` | `--aia-done-*` | `--aia-done-*` | Override the time wheel's Done button alone. |
610
- | `--aia-see-all-bg` / `--aia-see-all-bg-hover` / `--aia-see-all-color` | `#111111` / `#333333` / `#ffffff` | `--aia-confirm-*` | The "See all results" button (`seeAllResults`). |
611
- | `--aia-see-all-height` / `--aia-see-all-radius` / `--aia-see-all-font-size` | `48px` / `999px` / `16px` | same | Its minimum height, corner radius and text size. |
611
+ | `--aia-see-all-bg` / `--aia-see-all-bg-hover` / `--aia-see-all-color` | `#2b2b2b` / `#3d3d3d` / `#ffffff` | `--aia-confirm-*` | The "See all results" button (`seeAllResults`). |
612
+ | `--aia-see-all-height` / `--aia-see-all-radius` / `--aia-see-all-font-size` | `48px` / `12px` / `16px` | same | Its minimum height, corner radius and text size. |
612
613
  | `--aia-location-field-bg-idle` | `transparent` | `transparent` | The location search field at rest. |
613
614
  | `--aia-location-field-bg` | `--aia-streak-rgb` at 6% (indigo) | `--aia-streak-rgb` at 6% (white) | The location search field on hover or focus. |
614
615
  | `--aia-location-field-radius` | `10px` | `10px` | Corner radius of the location search field. |
615
616
  | `--aia-location-font-size` | `15px` | `15px` | The location field's text and the place names. |
616
617
  | `--aia-location-row-bg-highlighted` | `--aia-streak-rgb` at 8% (indigo) | `--aia-streak-rgb` at 8% (white) | The highlighted (or hovered) place. |
617
618
  | `--aia-skeleton-bg` | `rgba(189, 189, 189, 0.083)` | `#1a1b1d` | Fill color of the option and chip image tiles while their picture loads (unless `--aia-option-image-bg` / `--aia-chip-image-bg` are set). |
618
- | `--aia-chip-remove-opacity` | `0.32` | `0.32` | Opacity of a completed chip's remove × (`showChipRemove`). The × is for a mouse or a tap and is hidden from assistive technology; from the keyboard, Backspace at the end of a chip removes it. |
619
+ | `--aia-chip-remove-opacity` | `0.32` | `0.32` | Opacity of a chip's remove × (`showChipRemove`). The × is for a mouse or a tap and is hidden from assistive technology; from the keyboard, Backspace at the end of a chip removes it. |
619
620
  | `--aia-chip-remove-opacity-hover` | `0.7` | `0.7` | Opacity of that × under a hovering pointer (never on touch). |
package/dist/index.d.mts CHANGED
@@ -7,6 +7,16 @@ interface CompletedParam {
7
7
  }
8
8
  interface SuggestionOption {
9
9
  text: string;
10
+ /**
11
+ * Client-only: the All row the SDK puts first when `allOption` is on.
12
+ * Picking it skips the question, keeping every option.
13
+ */
14
+ selectsAll?: boolean;
15
+ /**
16
+ * Client-only: the pictures the All row's tile shows together (two to
17
+ * four), the first options' own. `image_url` holds the first.
18
+ */
19
+ imageCollage?: string[];
10
20
  /**
11
21
  * The option's real, matchable value — present when the option has a
12
22
  * separate matchable value from its display `text` (e.g. a hierarchical
@@ -91,6 +101,12 @@ interface SuggestionType {
91
101
  unit?: string;
92
102
  }
93
103
  interface Suggestion {
104
+ /**
105
+ * Client-only: set on the questions of an answer that arrived while
106
+ * `allOption` was on (never the starting state's), so this question leads
107
+ * with an All option.
108
+ */
109
+ leadsWithAll?: boolean;
94
110
  parameter: string;
95
111
  text: string;
96
112
  required: boolean;
@@ -364,6 +380,11 @@ interface CompletedParamState extends CompletedParam {
364
380
  suggestionValueType?: SuggestionType;
365
381
  /** Source suggestion's `text` — used by re-edit mode to render the dropdown pill. */
366
382
  suggestionPlaceholder: string;
383
+ /**
384
+ * The Smart Suggestion's own header ("Smart Suggestion"), kept for a pick from that list so
385
+ * re-edit draws the list again under it; `suggestionPlaceholder` holds the pill's parameter label.
386
+ */
387
+ suggestionHeader?: string;
367
388
  /**
368
389
  * Source suggestion's `icon` / `icon_svg` (see {@link Suggestion.icon_svg}),
369
390
  * carried so the `optionOverrides` options asked again in re-edit draw the
@@ -398,11 +419,13 @@ interface CompletedParamState extends CompletedParam {
398
419
  * `text: "skipped"`, no placeholder) only when a request or a submit result is
399
420
  * built. See `withSkippedParams`.
400
421
  *
401
- * The array is append-only until `reset()` — a skip is filtered out at
402
- * build time when a param of its type ended up filled, not pruned here.
403
- * That's deliberate: the filter self-heals if the user later deletes that
404
- * param's text (the skip reappears in the payload), where pruning would have
405
- * discarded the signal permanently. Consumers reading this array directly
422
+ * The array is cleared by `reset()` and when the input returns to the
423
+ * starting state (nothing picked, at most the lead-in typed); otherwise it is
424
+ * append-only — a skip is filtered out at build time when a param of its type
425
+ * ended up filled, not pruned here. That's deliberate: the filter self-heals
426
+ * if the user later deletes that param's text and the search still holds
427
+ * something else (the skip reappears in the payload), where pruning would
428
+ * have discarded the signal permanently. Consumers reading this array directly
406
429
  * should apply the same filter — `withSkippedParams` is exported for it.
407
430
  */
408
431
  interface SkippedParamState {
@@ -915,9 +938,10 @@ interface CoreInputState {
915
938
  * Suggestions the user dismissed with the skip key (→). Held apart from
916
939
  * `completedParams` because they have no text in the input; folded into the
917
940
  * wire `completed_params` array (as `text: "skipped"`) on every request and
918
- * on the submit result. Append-only until `reset()` — see
919
- * {@link SkippedParamState} for why skips of a since-filled type are
920
- * filtered at build time rather than pruned here.
941
+ * on the submit result. Cleared by `reset()` and when the input returns to
942
+ * the starting state (nothing picked, at most the lead-in typed);
943
+ * otherwise append-only — see {@link SkippedParamState} for why skips of a
944
+ * since-filled type are filtered at build time rather than pruned here.
921
945
  */
922
946
  skippedParams: SkippedParamState[];
923
947
  /**
@@ -1042,6 +1066,12 @@ interface CoreInputState {
1042
1066
  * pill at pick time (or the pill being re-edited). See `dropdownSuggestion`.
1043
1067
  */
1044
1068
  skeletonSuggestion: Suggestion | null;
1069
+ /**
1070
+ * For a multi-select answer, the values that were ticked when Done was
1071
+ * pressed, so the mirrored checkbox list fades out still showing them.
1072
+ * Null otherwise.
1073
+ */
1074
+ skeletonPicked: string[] | null;
1045
1075
  /**
1046
1076
  * Whether the answer's request has started since `skeletonOptions` was set.
1047
1077
  * Lets the derive layer tell "the request settled" (fade the skeleton out)
@@ -1209,6 +1239,15 @@ interface CoreDerivedState {
1209
1239
  multiSelectView: {
1210
1240
  picked: string[];
1211
1241
  } | null;
1242
+ /**
1243
+ * The checkbox list the dropdown draws: `multiSelectView`, or, while a
1244
+ * multi_select answer's request loads, that question's list with the values
1245
+ * Done sent still ticked, so it fades out with the rest of the dropdown
1246
+ * instead of vanishing. Render-only; handlers read `multiSelectView`.
1247
+ */
1248
+ dropdownMultiSelect: {
1249
+ picked: string[];
1250
+ } | null;
1212
1251
  /**
1213
1252
  * What the location search field shows. Null unless `activeFormatType` is
1214
1253
  * `"location"` (a location parameter that came with no options).
@@ -1361,6 +1400,13 @@ interface CoreOptions {
1361
1400
  prependPlaceholder?: boolean;
1362
1401
  /** When true (default), non-tappable options are rendered in the dropdown alongside tappable ones. Set to false to hide them entirely. */
1363
1402
  showNonTappableOptions?: boolean;
1403
+ /**
1404
+ * When true, a plain question of two or more options past the starting
1405
+ * state leads with an All option, pictured with the first options'
1406
+ * pictures; picking it skips the question. The price question, which
1407
+ * declines the bound with its own "any price", gets none. Default false.
1408
+ */
1409
+ allOption?: boolean;
1364
1410
  /**
1365
1411
  * When true (default), a location parameter without options searches the
1366
1412
  * server's location search (cities, addresses, landmarks) as the user types
@@ -1375,7 +1421,8 @@ interface CoreOptions {
1375
1421
  /** When true (default), a completed chip in the input draws the picture (`image_url`) of the option that answered it, in place of its icon. Set to false to render chips without pictures. */
1376
1422
  showChipImages?: boolean;
1377
1423
  /**
1378
- * When true, every completed chip in the input ends in a small, faint "×"
1424
+ * When true, every chip in the input (completed, or identified by the
1425
+ * server in typed text) ends in a small, faint "×"
1379
1426
  * that removes the chip in one tap (the same result as Backspace at the
1380
1427
  * chip's trailing edge). Default: false.
1381
1428
  */
@@ -1706,13 +1753,16 @@ declare class AIAutocomplete {
1706
1753
  */
1707
1754
  private removeWholeChip;
1708
1755
  /**
1709
- * Remove a completed chip by id — the chip's "×" (`showChipRemove`). Same
1710
- * result as Backspace at the chip's trailing edge: the chip's text and the
1711
- * space seam it leaves come out, and any re-edit open closes first. The
1712
- * caret follows only when the editor has focus, so a "×" pressed on an
1713
- * unfocused editor does not pull focus into it.
1714
- * Any value of one multi_select answer names its joined chip. Returns true
1715
- * when a chip was removed; false (and nothing changes) when none has that id.
1756
+ * Remove a chip by id — the chip's "×" (`showChipRemove`). Same result as
1757
+ * Backspace at the chip's trailing edge: the chip's text and the space seam
1758
+ * it leaves come out, and any re-edit open closes first. The caret follows
1759
+ * only when the editor has focus, so a "×" pressed on an unfocused editor
1760
+ * does not pull focus into it.
1761
+ * Both chip kinds are removed: a completed chip (a picked option) and an
1762
+ * identified one (words the server recognised) look the same, so both carry
1763
+ * the "×". Any value of one multi_select answer names its joined chip.
1764
+ * Returns true when a chip was removed; false (and nothing changes) when
1765
+ * none has that id.
1716
1766
  */
1717
1767
  removeParam(paramId: string): boolean;
1718
1768
  /**
@@ -2956,7 +3006,7 @@ interface RenderEditableArgs {
2956
3006
  * them (see startingHint.ts). Omitted or empty: the plain placeholder.
2957
3007
  */
2958
3008
  hintOptions?: readonly StartingHintOption[];
2959
- /** Whether completed chips end in a faint "×" that removes them. Default: false. */
3009
+ /** Whether chips (completed and identified) end in a faint "×" that removes them. Default: false. */
2960
3010
  showChipRemove?: boolean;
2961
3011
  }
2962
3012
  /**
@@ -2990,6 +3040,8 @@ declare const en: {
2990
3040
  scrollArrow: string;
2991
3041
  keepTyping: string;
2992
3042
  done: string;
3043
+ /** The first option of a question, which answers it with every option: the question is skipped. */
3044
+ allOption: string;
2993
3045
  timeLabel: string;
2994
3046
  locationSearch: string;
2995
3047
  locationNoResults: string;
@@ -3031,7 +3083,7 @@ declare function uiStringsFor(language?: string): UIStrings;
3031
3083
  * reserved fade band when there is one (below-mode with the footer), and
3032
3084
  * floats a small gap above the grid's edge in layouts that zero the band
3033
3085
  * (`optionsPosition="above"`). When a product strip follows the grid it
3034
- * instead centres itself on the strip's "Best match" label row — the label
3086
+ * instead centres itself on the strip's "Items" label row — the label
3035
3087
  * carries `data-aia-products-label` for this — so it sits on the seam
3036
3088
  * between the two sections rather than over the last visible option row
3037
3089
  * (2026-09-14, from the Shopify storefront). A new
@@ -3440,6 +3492,12 @@ interface SubmitResultExtras {
3440
3492
  */
3441
3493
  declare function buildSubmitResult(text: string, completedParams: CompletedParamState[], skippedParams?: SkippedParamState[], extras?: SubmitResultExtras): AutocompleteResult;
3442
3494
 
3495
+ /**
3496
+ * The question re-edit asks of a completed param: its own suggestion, from the cached metadata.
3497
+ * A pick from the Smart Suggestion list is asked again as that list, under its header, so its
3498
+ * rows keep the parameter each one answers.
3499
+ */
3500
+ declare function editingSuggestion(editing: CompletedParamState): Suggestion;
3443
3501
  /** True for the suggestion whose options complete the word being typed. */
3444
3502
  declare function isTraditionalAutocompleteSuggestion(suggestion: Suggestion | undefined | null): boolean;
3445
3503
  /** True for a suggestion drawn with the Smart Suggestion header: the traditional autocomplete one, or a question the server marks. */
@@ -3456,4 +3514,4 @@ declare const SMART_SUGGESTION_SPARKLE_SVG: string;
3456
3514
  /** True when some pill is a question the shopper can decline. */
3457
3515
  declare function hasSkippablePill(suggestions: Suggestion[]): boolean;
3458
3516
 
3459
- export { AIAutocomplete, type APIConfig, type APIKeyConfig, ATTRIBUTION_URL, type AccessTokenConfig, type AccessTokenResult, type AppearanceMode, type AutocompleteRequest, type AutocompleteResponse, type AutocompleteResult, type CompletedParam, type CompletedParamState, type CoreOptions, type CoreState, type CurrencyOptions, type CustomFieldsReport, DATE_RANGE_META_END, DATE_RANGE_META_START, DEFAULT_OPTION_COUNT_UNIT, type DateMonthView, type DateRange, type DateSelection, EDITOR_GROW_MS, type ExpressedFilter, type FilterOp, type FormatType, HINT_ATTR, HINT_EL_ATTR, HINT_HOLD_MS, type IdentifiedParam, type IdentifiedParamState, type InputItem, LOCATION_META_KEY, LOCATION_MIN_QUERY, type LocationPlace, type LocationStatus, type LocationView, type LooseDateOptions, MULTI_DONE_FIT_VAR, MULTI_SELECT_TOGGLE_MIN_PX, MULTI_SELECT_TOGGLE_SLOP_PX, type MatchedItem, type MatchedItems, ModeController, OPTIONS_GRID_MOBILE_QUERY, OPTION_ENTER_DELAY_VAR, OPTION_ENTER_FADE_MS, OPTION_ENTER_RISE_MS, OPTION_ENTER_RISE_PX, OPTION_ENTER_STAGGER_MS, OPTION_IMAGE_WIDTH, type OptionOverride, type OptionOverrides, type OptionsGridLayout, type OptionsGridPlan, PANEL_ENTER_DELAY_MS, PANEL_ENTER_MS, PANEL_GHOST_CLASS, PANEL_GLIDE_MS, PANEL_LEAVE_MS, PLACEHOLDER_FADE_OUT_MS, PLACEHOLDER_LEAVING_ATTR, PLACEHOLDER_SWAP_GAP_MS, PLACEHOLDER_TYPE_MS, PLACEHOLDER_WORD_PAUSE_MS, PRODUCT_IMAGE_WIDTH, PRODUCT_PATH_PREFIX, PRODUCT_ROW_PX_PER_LINE, type PhraseMatch, type Product, type ProductImageFallback, type ProductRowMetrics, type ProductRowWheel, type ProductsConfig, type ProductsLayout, RANGE_SEPARATOR, type RecentlySuggested, type RenderMode, SCHEMA_VERSION, SCROLL_ARROW_ATTR, SCROLL_ARROW_BOTTOM_VAR, SCROLL_ARROW_CLASS, SCROLL_ARROW_FADE_MS, SCROLL_ARROW_LABEL, SCROLL_ARROW_SCROLL_IDLE_MS, SCROLL_ARROW_VISIBLE_ATTR, SKIPPED_PARAM_TEXT, SMART_SUGGESTION_SPARKLE_SVG, type ScrollArrowArgs, type ScrollArrowController, type Segment, type SelectOptionOptions, type SkippedParamState, type StartingHintOption, type Store, type SubmitResultExtras, type Suggestion, type SuggestionOption, type SuggestionType, TIME_META_KEY, TIME_STEP_MINUTES, TIME_WHEEL_COLUMNS, TIME_WHEEL_ROW_HEIGHT, type TaskKind, type TextPart, type TimeParts, type TimePeriod, type TimeView, type TimeWheelColumn, type TimeWheelRow, type UIStrings, VIEWPORT_FIT_ATTR, VIEWPORT_FIT_HEIGHT_VAR, type ViewportFitArgs, type ViewportFitController, WEEKDAY_LABELS, addMonths, attachChipRemove, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, cancelStartingHint, cellDay, cellIso, chipIdFromTap, computeOptionsGridLayout, containScroll, createStore, cursorIsAtEnd, dateCellMarks, dateFloorFor, dateSelectionFor, destroyPanelMorph, extractPlainText, findMultiSelectDone, fitMultiSelectDone, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, inPanelGhost, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTraditionalAutocompleteSuggestion, isoDate, isoTime, keepCaretOnChip, labelTraditionalAutocomplete, locationEndpointFor, matchTypedPhrase, measureOptionsGrid, monthLabel, needsOptionsGridMeasurement, notePanelMorphHeight, optionCountLabel, optionEnterDelayMs, optionHasImage, optionImageSources, optionImageSrc, optionLabel, optionsEntranceDurationMs, optionsGridTemplateColumns, optionsShowLeadingVisuals, panelMorphGlide, panelMorphKey, panelMorphTargetHeight, parseDate, parseLooseDate, parseLooseDateRange, parseTime, plainTextLength, planOptionsGrid, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, queryLive, releasePanelHug, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, startingHintOptions, syncPanelHug, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
3517
+ export { AIAutocomplete, type APIConfig, type APIKeyConfig, ATTRIBUTION_URL, type AccessTokenConfig, type AccessTokenResult, type AppearanceMode, type AutocompleteRequest, type AutocompleteResponse, type AutocompleteResult, type CompletedParam, type CompletedParamState, type CoreOptions, type CoreState, type CurrencyOptions, type CustomFieldsReport, DATE_RANGE_META_END, DATE_RANGE_META_START, DEFAULT_OPTION_COUNT_UNIT, type DateMonthView, type DateRange, type DateSelection, EDITOR_GROW_MS, type ExpressedFilter, type FilterOp, type FormatType, HINT_ATTR, HINT_EL_ATTR, HINT_HOLD_MS, type IdentifiedParam, type IdentifiedParamState, type InputItem, LOCATION_META_KEY, LOCATION_MIN_QUERY, type LocationPlace, type LocationStatus, type LocationView, type LooseDateOptions, MULTI_DONE_FIT_VAR, MULTI_SELECT_TOGGLE_MIN_PX, MULTI_SELECT_TOGGLE_SLOP_PX, type MatchedItem, type MatchedItems, ModeController, OPTIONS_GRID_MOBILE_QUERY, OPTION_ENTER_DELAY_VAR, OPTION_ENTER_FADE_MS, OPTION_ENTER_RISE_MS, OPTION_ENTER_RISE_PX, OPTION_ENTER_STAGGER_MS, OPTION_IMAGE_WIDTH, type OptionOverride, type OptionOverrides, type OptionsGridLayout, type OptionsGridPlan, PANEL_ENTER_DELAY_MS, PANEL_ENTER_MS, PANEL_GHOST_CLASS, PANEL_GLIDE_MS, PANEL_LEAVE_MS, PLACEHOLDER_FADE_OUT_MS, PLACEHOLDER_LEAVING_ATTR, PLACEHOLDER_SWAP_GAP_MS, PLACEHOLDER_TYPE_MS, PLACEHOLDER_WORD_PAUSE_MS, PRODUCT_IMAGE_WIDTH, PRODUCT_PATH_PREFIX, PRODUCT_ROW_PX_PER_LINE, type PhraseMatch, type Product, type ProductImageFallback, type ProductRowMetrics, type ProductRowWheel, type ProductsConfig, type ProductsLayout, RANGE_SEPARATOR, type RecentlySuggested, type RenderMode, SCHEMA_VERSION, SCROLL_ARROW_ATTR, SCROLL_ARROW_BOTTOM_VAR, SCROLL_ARROW_CLASS, SCROLL_ARROW_FADE_MS, SCROLL_ARROW_LABEL, SCROLL_ARROW_SCROLL_IDLE_MS, SCROLL_ARROW_VISIBLE_ATTR, SKIPPED_PARAM_TEXT, SMART_SUGGESTION_SPARKLE_SVG, type ScrollArrowArgs, type ScrollArrowController, type Segment, type SelectOptionOptions, type SkippedParamState, type StartingHintOption, type Store, type SubmitResultExtras, type Suggestion, type SuggestionOption, type SuggestionType, TIME_META_KEY, TIME_STEP_MINUTES, TIME_WHEEL_COLUMNS, TIME_WHEEL_ROW_HEIGHT, type TaskKind, type TextPart, type TimeParts, type TimePeriod, type TimeView, type TimeWheelColumn, type TimeWheelRow, type UIStrings, VIEWPORT_FIT_ATTR, VIEWPORT_FIT_HEIGHT_VAR, type ViewportFitArgs, type ViewportFitController, WEEKDAY_LABELS, addMonths, attachChipRemove, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, cancelStartingHint, cellDay, cellIso, chipIdFromTap, computeOptionsGridLayout, containScroll, createStore, cursorIsAtEnd, dateCellMarks, dateFloorFor, dateSelectionFor, destroyPanelMorph, editingSuggestion, extractPlainText, findMultiSelectDone, fitMultiSelectDone, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, inPanelGhost, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTraditionalAutocompleteSuggestion, isoDate, isoTime, keepCaretOnChip, labelTraditionalAutocomplete, locationEndpointFor, matchTypedPhrase, measureOptionsGrid, monthLabel, needsOptionsGridMeasurement, notePanelMorphHeight, optionCountLabel, optionEnterDelayMs, optionHasImage, optionImageSources, optionImageSrc, optionLabel, optionsEntranceDurationMs, optionsGridTemplateColumns, optionsShowLeadingVisuals, panelMorphGlide, panelMorphKey, panelMorphTargetHeight, parseDate, parseLooseDate, parseLooseDateRange, parseTime, plainTextLength, planOptionsGrid, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, queryLive, releasePanelHug, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, startingHintOptions, syncPanelHug, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,16 @@ interface CompletedParam {
7
7
  }
8
8
  interface SuggestionOption {
9
9
  text: string;
10
+ /**
11
+ * Client-only: the All row the SDK puts first when `allOption` is on.
12
+ * Picking it skips the question, keeping every option.
13
+ */
14
+ selectsAll?: boolean;
15
+ /**
16
+ * Client-only: the pictures the All row's tile shows together (two to
17
+ * four), the first options' own. `image_url` holds the first.
18
+ */
19
+ imageCollage?: string[];
10
20
  /**
11
21
  * The option's real, matchable value — present when the option has a
12
22
  * separate matchable value from its display `text` (e.g. a hierarchical
@@ -91,6 +101,12 @@ interface SuggestionType {
91
101
  unit?: string;
92
102
  }
93
103
  interface Suggestion {
104
+ /**
105
+ * Client-only: set on the questions of an answer that arrived while
106
+ * `allOption` was on (never the starting state's), so this question leads
107
+ * with an All option.
108
+ */
109
+ leadsWithAll?: boolean;
94
110
  parameter: string;
95
111
  text: string;
96
112
  required: boolean;
@@ -364,6 +380,11 @@ interface CompletedParamState extends CompletedParam {
364
380
  suggestionValueType?: SuggestionType;
365
381
  /** Source suggestion's `text` — used by re-edit mode to render the dropdown pill. */
366
382
  suggestionPlaceholder: string;
383
+ /**
384
+ * The Smart Suggestion's own header ("Smart Suggestion"), kept for a pick from that list so
385
+ * re-edit draws the list again under it; `suggestionPlaceholder` holds the pill's parameter label.
386
+ */
387
+ suggestionHeader?: string;
367
388
  /**
368
389
  * Source suggestion's `icon` / `icon_svg` (see {@link Suggestion.icon_svg}),
369
390
  * carried so the `optionOverrides` options asked again in re-edit draw the
@@ -398,11 +419,13 @@ interface CompletedParamState extends CompletedParam {
398
419
  * `text: "skipped"`, no placeholder) only when a request or a submit result is
399
420
  * built. See `withSkippedParams`.
400
421
  *
401
- * The array is append-only until `reset()` — a skip is filtered out at
402
- * build time when a param of its type ended up filled, not pruned here.
403
- * That's deliberate: the filter self-heals if the user later deletes that
404
- * param's text (the skip reappears in the payload), where pruning would have
405
- * discarded the signal permanently. Consumers reading this array directly
422
+ * The array is cleared by `reset()` and when the input returns to the
423
+ * starting state (nothing picked, at most the lead-in typed); otherwise it is
424
+ * append-only — a skip is filtered out at build time when a param of its type
425
+ * ended up filled, not pruned here. That's deliberate: the filter self-heals
426
+ * if the user later deletes that param's text and the search still holds
427
+ * something else (the skip reappears in the payload), where pruning would
428
+ * have discarded the signal permanently. Consumers reading this array directly
406
429
  * should apply the same filter — `withSkippedParams` is exported for it.
407
430
  */
408
431
  interface SkippedParamState {
@@ -915,9 +938,10 @@ interface CoreInputState {
915
938
  * Suggestions the user dismissed with the skip key (→). Held apart from
916
939
  * `completedParams` because they have no text in the input; folded into the
917
940
  * wire `completed_params` array (as `text: "skipped"`) on every request and
918
- * on the submit result. Append-only until `reset()` — see
919
- * {@link SkippedParamState} for why skips of a since-filled type are
920
- * filtered at build time rather than pruned here.
941
+ * on the submit result. Cleared by `reset()` and when the input returns to
942
+ * the starting state (nothing picked, at most the lead-in typed);
943
+ * otherwise append-only — see {@link SkippedParamState} for why skips of a
944
+ * since-filled type are filtered at build time rather than pruned here.
921
945
  */
922
946
  skippedParams: SkippedParamState[];
923
947
  /**
@@ -1042,6 +1066,12 @@ interface CoreInputState {
1042
1066
  * pill at pick time (or the pill being re-edited). See `dropdownSuggestion`.
1043
1067
  */
1044
1068
  skeletonSuggestion: Suggestion | null;
1069
+ /**
1070
+ * For a multi-select answer, the values that were ticked when Done was
1071
+ * pressed, so the mirrored checkbox list fades out still showing them.
1072
+ * Null otherwise.
1073
+ */
1074
+ skeletonPicked: string[] | null;
1045
1075
  /**
1046
1076
  * Whether the answer's request has started since `skeletonOptions` was set.
1047
1077
  * Lets the derive layer tell "the request settled" (fade the skeleton out)
@@ -1209,6 +1239,15 @@ interface CoreDerivedState {
1209
1239
  multiSelectView: {
1210
1240
  picked: string[];
1211
1241
  } | null;
1242
+ /**
1243
+ * The checkbox list the dropdown draws: `multiSelectView`, or, while a
1244
+ * multi_select answer's request loads, that question's list with the values
1245
+ * Done sent still ticked, so it fades out with the rest of the dropdown
1246
+ * instead of vanishing. Render-only; handlers read `multiSelectView`.
1247
+ */
1248
+ dropdownMultiSelect: {
1249
+ picked: string[];
1250
+ } | null;
1212
1251
  /**
1213
1252
  * What the location search field shows. Null unless `activeFormatType` is
1214
1253
  * `"location"` (a location parameter that came with no options).
@@ -1361,6 +1400,13 @@ interface CoreOptions {
1361
1400
  prependPlaceholder?: boolean;
1362
1401
  /** When true (default), non-tappable options are rendered in the dropdown alongside tappable ones. Set to false to hide them entirely. */
1363
1402
  showNonTappableOptions?: boolean;
1403
+ /**
1404
+ * When true, a plain question of two or more options past the starting
1405
+ * state leads with an All option, pictured with the first options'
1406
+ * pictures; picking it skips the question. The price question, which
1407
+ * declines the bound with its own "any price", gets none. Default false.
1408
+ */
1409
+ allOption?: boolean;
1364
1410
  /**
1365
1411
  * When true (default), a location parameter without options searches the
1366
1412
  * server's location search (cities, addresses, landmarks) as the user types
@@ -1375,7 +1421,8 @@ interface CoreOptions {
1375
1421
  /** When true (default), a completed chip in the input draws the picture (`image_url`) of the option that answered it, in place of its icon. Set to false to render chips without pictures. */
1376
1422
  showChipImages?: boolean;
1377
1423
  /**
1378
- * When true, every completed chip in the input ends in a small, faint "×"
1424
+ * When true, every chip in the input (completed, or identified by the
1425
+ * server in typed text) ends in a small, faint "×"
1379
1426
  * that removes the chip in one tap (the same result as Backspace at the
1380
1427
  * chip's trailing edge). Default: false.
1381
1428
  */
@@ -1706,13 +1753,16 @@ declare class AIAutocomplete {
1706
1753
  */
1707
1754
  private removeWholeChip;
1708
1755
  /**
1709
- * Remove a completed chip by id — the chip's "×" (`showChipRemove`). Same
1710
- * result as Backspace at the chip's trailing edge: the chip's text and the
1711
- * space seam it leaves come out, and any re-edit open closes first. The
1712
- * caret follows only when the editor has focus, so a "×" pressed on an
1713
- * unfocused editor does not pull focus into it.
1714
- * Any value of one multi_select answer names its joined chip. Returns true
1715
- * when a chip was removed; false (and nothing changes) when none has that id.
1756
+ * Remove a chip by id — the chip's "×" (`showChipRemove`). Same result as
1757
+ * Backspace at the chip's trailing edge: the chip's text and the space seam
1758
+ * it leaves come out, and any re-edit open closes first. The caret follows
1759
+ * only when the editor has focus, so a "×" pressed on an unfocused editor
1760
+ * does not pull focus into it.
1761
+ * Both chip kinds are removed: a completed chip (a picked option) and an
1762
+ * identified one (words the server recognised) look the same, so both carry
1763
+ * the "×". Any value of one multi_select answer names its joined chip.
1764
+ * Returns true when a chip was removed; false (and nothing changes) when
1765
+ * none has that id.
1716
1766
  */
1717
1767
  removeParam(paramId: string): boolean;
1718
1768
  /**
@@ -2956,7 +3006,7 @@ interface RenderEditableArgs {
2956
3006
  * them (see startingHint.ts). Omitted or empty: the plain placeholder.
2957
3007
  */
2958
3008
  hintOptions?: readonly StartingHintOption[];
2959
- /** Whether completed chips end in a faint "×" that removes them. Default: false. */
3009
+ /** Whether chips (completed and identified) end in a faint "×" that removes them. Default: false. */
2960
3010
  showChipRemove?: boolean;
2961
3011
  }
2962
3012
  /**
@@ -2990,6 +3040,8 @@ declare const en: {
2990
3040
  scrollArrow: string;
2991
3041
  keepTyping: string;
2992
3042
  done: string;
3043
+ /** The first option of a question, which answers it with every option: the question is skipped. */
3044
+ allOption: string;
2993
3045
  timeLabel: string;
2994
3046
  locationSearch: string;
2995
3047
  locationNoResults: string;
@@ -3031,7 +3083,7 @@ declare function uiStringsFor(language?: string): UIStrings;
3031
3083
  * reserved fade band when there is one (below-mode with the footer), and
3032
3084
  * floats a small gap above the grid's edge in layouts that zero the band
3033
3085
  * (`optionsPosition="above"`). When a product strip follows the grid it
3034
- * instead centres itself on the strip's "Best match" label row — the label
3086
+ * instead centres itself on the strip's "Items" label row — the label
3035
3087
  * carries `data-aia-products-label` for this — so it sits on the seam
3036
3088
  * between the two sections rather than over the last visible option row
3037
3089
  * (2026-09-14, from the Shopify storefront). A new
@@ -3440,6 +3492,12 @@ interface SubmitResultExtras {
3440
3492
  */
3441
3493
  declare function buildSubmitResult(text: string, completedParams: CompletedParamState[], skippedParams?: SkippedParamState[], extras?: SubmitResultExtras): AutocompleteResult;
3442
3494
 
3495
+ /**
3496
+ * The question re-edit asks of a completed param: its own suggestion, from the cached metadata.
3497
+ * A pick from the Smart Suggestion list is asked again as that list, under its header, so its
3498
+ * rows keep the parameter each one answers.
3499
+ */
3500
+ declare function editingSuggestion(editing: CompletedParamState): Suggestion;
3443
3501
  /** True for the suggestion whose options complete the word being typed. */
3444
3502
  declare function isTraditionalAutocompleteSuggestion(suggestion: Suggestion | undefined | null): boolean;
3445
3503
  /** True for a suggestion drawn with the Smart Suggestion header: the traditional autocomplete one, or a question the server marks. */
@@ -3456,4 +3514,4 @@ declare const SMART_SUGGESTION_SPARKLE_SVG: string;
3456
3514
  /** True when some pill is a question the shopper can decline. */
3457
3515
  declare function hasSkippablePill(suggestions: Suggestion[]): boolean;
3458
3516
 
3459
- export { AIAutocomplete, type APIConfig, type APIKeyConfig, ATTRIBUTION_URL, type AccessTokenConfig, type AccessTokenResult, type AppearanceMode, type AutocompleteRequest, type AutocompleteResponse, type AutocompleteResult, type CompletedParam, type CompletedParamState, type CoreOptions, type CoreState, type CurrencyOptions, type CustomFieldsReport, DATE_RANGE_META_END, DATE_RANGE_META_START, DEFAULT_OPTION_COUNT_UNIT, type DateMonthView, type DateRange, type DateSelection, EDITOR_GROW_MS, type ExpressedFilter, type FilterOp, type FormatType, HINT_ATTR, HINT_EL_ATTR, HINT_HOLD_MS, type IdentifiedParam, type IdentifiedParamState, type InputItem, LOCATION_META_KEY, LOCATION_MIN_QUERY, type LocationPlace, type LocationStatus, type LocationView, type LooseDateOptions, MULTI_DONE_FIT_VAR, MULTI_SELECT_TOGGLE_MIN_PX, MULTI_SELECT_TOGGLE_SLOP_PX, type MatchedItem, type MatchedItems, ModeController, OPTIONS_GRID_MOBILE_QUERY, OPTION_ENTER_DELAY_VAR, OPTION_ENTER_FADE_MS, OPTION_ENTER_RISE_MS, OPTION_ENTER_RISE_PX, OPTION_ENTER_STAGGER_MS, OPTION_IMAGE_WIDTH, type OptionOverride, type OptionOverrides, type OptionsGridLayout, type OptionsGridPlan, PANEL_ENTER_DELAY_MS, PANEL_ENTER_MS, PANEL_GHOST_CLASS, PANEL_GLIDE_MS, PANEL_LEAVE_MS, PLACEHOLDER_FADE_OUT_MS, PLACEHOLDER_LEAVING_ATTR, PLACEHOLDER_SWAP_GAP_MS, PLACEHOLDER_TYPE_MS, PLACEHOLDER_WORD_PAUSE_MS, PRODUCT_IMAGE_WIDTH, PRODUCT_PATH_PREFIX, PRODUCT_ROW_PX_PER_LINE, type PhraseMatch, type Product, type ProductImageFallback, type ProductRowMetrics, type ProductRowWheel, type ProductsConfig, type ProductsLayout, RANGE_SEPARATOR, type RecentlySuggested, type RenderMode, SCHEMA_VERSION, SCROLL_ARROW_ATTR, SCROLL_ARROW_BOTTOM_VAR, SCROLL_ARROW_CLASS, SCROLL_ARROW_FADE_MS, SCROLL_ARROW_LABEL, SCROLL_ARROW_SCROLL_IDLE_MS, SCROLL_ARROW_VISIBLE_ATTR, SKIPPED_PARAM_TEXT, SMART_SUGGESTION_SPARKLE_SVG, type ScrollArrowArgs, type ScrollArrowController, type Segment, type SelectOptionOptions, type SkippedParamState, type StartingHintOption, type Store, type SubmitResultExtras, type Suggestion, type SuggestionOption, type SuggestionType, TIME_META_KEY, TIME_STEP_MINUTES, TIME_WHEEL_COLUMNS, TIME_WHEEL_ROW_HEIGHT, type TaskKind, type TextPart, type TimeParts, type TimePeriod, type TimeView, type TimeWheelColumn, type TimeWheelRow, type UIStrings, VIEWPORT_FIT_ATTR, VIEWPORT_FIT_HEIGHT_VAR, type ViewportFitArgs, type ViewportFitController, WEEKDAY_LABELS, addMonths, attachChipRemove, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, cancelStartingHint, cellDay, cellIso, chipIdFromTap, computeOptionsGridLayout, containScroll, createStore, cursorIsAtEnd, dateCellMarks, dateFloorFor, dateSelectionFor, destroyPanelMorph, extractPlainText, findMultiSelectDone, fitMultiSelectDone, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, inPanelGhost, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTraditionalAutocompleteSuggestion, isoDate, isoTime, keepCaretOnChip, labelTraditionalAutocomplete, locationEndpointFor, matchTypedPhrase, measureOptionsGrid, monthLabel, needsOptionsGridMeasurement, notePanelMorphHeight, optionCountLabel, optionEnterDelayMs, optionHasImage, optionImageSources, optionImageSrc, optionLabel, optionsEntranceDurationMs, optionsGridTemplateColumns, optionsShowLeadingVisuals, panelMorphGlide, panelMorphKey, panelMorphTargetHeight, parseDate, parseLooseDate, parseLooseDateRange, parseTime, plainTextLength, planOptionsGrid, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, queryLive, releasePanelHug, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, startingHintOptions, syncPanelHug, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
3517
+ export { AIAutocomplete, type APIConfig, type APIKeyConfig, ATTRIBUTION_URL, type AccessTokenConfig, type AccessTokenResult, type AppearanceMode, type AutocompleteRequest, type AutocompleteResponse, type AutocompleteResult, type CompletedParam, type CompletedParamState, type CoreOptions, type CoreState, type CurrencyOptions, type CustomFieldsReport, DATE_RANGE_META_END, DATE_RANGE_META_START, DEFAULT_OPTION_COUNT_UNIT, type DateMonthView, type DateRange, type DateSelection, EDITOR_GROW_MS, type ExpressedFilter, type FilterOp, type FormatType, HINT_ATTR, HINT_EL_ATTR, HINT_HOLD_MS, type IdentifiedParam, type IdentifiedParamState, type InputItem, LOCATION_META_KEY, LOCATION_MIN_QUERY, type LocationPlace, type LocationStatus, type LocationView, type LooseDateOptions, MULTI_DONE_FIT_VAR, MULTI_SELECT_TOGGLE_MIN_PX, MULTI_SELECT_TOGGLE_SLOP_PX, type MatchedItem, type MatchedItems, ModeController, OPTIONS_GRID_MOBILE_QUERY, OPTION_ENTER_DELAY_VAR, OPTION_ENTER_FADE_MS, OPTION_ENTER_RISE_MS, OPTION_ENTER_RISE_PX, OPTION_ENTER_STAGGER_MS, OPTION_IMAGE_WIDTH, type OptionOverride, type OptionOverrides, type OptionsGridLayout, type OptionsGridPlan, PANEL_ENTER_DELAY_MS, PANEL_ENTER_MS, PANEL_GHOST_CLASS, PANEL_GLIDE_MS, PANEL_LEAVE_MS, PLACEHOLDER_FADE_OUT_MS, PLACEHOLDER_LEAVING_ATTR, PLACEHOLDER_SWAP_GAP_MS, PLACEHOLDER_TYPE_MS, PLACEHOLDER_WORD_PAUSE_MS, PRODUCT_IMAGE_WIDTH, PRODUCT_PATH_PREFIX, PRODUCT_ROW_PX_PER_LINE, type PhraseMatch, type Product, type ProductImageFallback, type ProductRowMetrics, type ProductRowWheel, type ProductsConfig, type ProductsLayout, RANGE_SEPARATOR, type RecentlySuggested, type RenderMode, SCHEMA_VERSION, SCROLL_ARROW_ATTR, SCROLL_ARROW_BOTTOM_VAR, SCROLL_ARROW_CLASS, SCROLL_ARROW_FADE_MS, SCROLL_ARROW_LABEL, SCROLL_ARROW_SCROLL_IDLE_MS, SCROLL_ARROW_VISIBLE_ATTR, SKIPPED_PARAM_TEXT, SMART_SUGGESTION_SPARKLE_SVG, type ScrollArrowArgs, type ScrollArrowController, type Segment, type SelectOptionOptions, type SkippedParamState, type StartingHintOption, type Store, type SubmitResultExtras, type Suggestion, type SuggestionOption, type SuggestionType, TIME_META_KEY, TIME_STEP_MINUTES, TIME_WHEEL_COLUMNS, TIME_WHEEL_ROW_HEIGHT, type TaskKind, type TextPart, type TimeParts, type TimePeriod, type TimeView, type TimeWheelColumn, type TimeWheelRow, type UIStrings, VIEWPORT_FIT_ATTR, VIEWPORT_FIT_HEIGHT_VAR, type ViewportFitArgs, type ViewportFitController, WEEKDAY_LABELS, addMonths, attachChipRemove, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, cancelStartingHint, cellDay, cellIso, chipIdFromTap, computeOptionsGridLayout, containScroll, createStore, cursorIsAtEnd, dateCellMarks, dateFloorFor, dateSelectionFor, destroyPanelMorph, editingSuggestion, extractPlainText, findMultiSelectDone, fitMultiSelectDone, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, inPanelGhost, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTraditionalAutocompleteSuggestion, isoDate, isoTime, keepCaretOnChip, labelTraditionalAutocomplete, locationEndpointFor, matchTypedPhrase, measureOptionsGrid, monthLabel, needsOptionsGridMeasurement, notePanelMorphHeight, optionCountLabel, optionEnterDelayMs, optionHasImage, optionImageSources, optionImageSrc, optionLabel, optionsEntranceDurationMs, optionsGridTemplateColumns, optionsShowLeadingVisuals, panelMorphGlide, panelMorphKey, panelMorphTargetHeight, parseDate, parseLooseDate, parseLooseDateRange, parseTime, plainTextLength, planOptionsGrid, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, queryLive, releasePanelHug, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, startingHintOptions, syncPanelHug, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };