@magicx-eng/ai-autocomplete-vanilla 0.79.1 → 0.80.1

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/dist/index.d.mts CHANGED
@@ -393,6 +393,13 @@ interface CustomFieldsReport {
393
393
  * as the text query of a site's own results page. It can be empty.
394
394
  */
395
395
  search_query?: string;
396
+ /**
397
+ * Typed words the search did not use, in typed order: no filter took them
398
+ * and they are not in `search_query` ("long sleeve" in "black merino long
399
+ * sleeve"). Absent when there are none. A site's own results page can add
400
+ * them to its text query.
401
+ */
402
+ ignored_words?: string;
396
403
  }
397
404
  interface CompletedParamState extends CompletedParam {
398
405
  /** Client-only identity for values committed together. */
@@ -685,6 +692,16 @@ interface AutocompleteResult {
685
692
  * when that response carried the block; see {@link CustomFieldsReport}.
686
693
  */
687
694
  custom_fields?: CustomFieldsReport;
695
+ /**
696
+ * Present, and true, when `custom_fields` does not answer this query: the
697
+ * block came from the answer to an earlier query (the request for this one
698
+ * has not come back yet), or from an answer that only completes the word
699
+ * being typed and read no filters from the query. Read `applied_filters`
700
+ * and `items` only when it is absent. With `awaitAnswerOnSubmit` on, a
701
+ * submit never carries it: the block answers the submitted query or is left
702
+ * out.
703
+ */
704
+ custom_fields_stale?: true;
688
705
  }
689
706
 
690
707
  /** A calendar month on screen. `month` is 0-based, matching `Date#getMonth`. */
@@ -1456,6 +1473,30 @@ interface CoreOptions {
1456
1473
  dropdownTrigger?: "auto" | "manual" | "hidden";
1457
1474
  /** When true (default), the dropdown closes when the input loses focus. Set to false to keep it open whenever options are available, regardless of focus. */
1458
1475
  closeDropdownOnBlur?: boolean;
1476
+ /**
1477
+ * Whether picking an option puts focus in the input. Default `"auto"`:
1478
+ * where the pointer hovers (a desktop) the input is focused with the caret
1479
+ * after the new chip; on a touch device it is not, and a tapped pick blurs
1480
+ * it, so the keyboard goes away and the next question's options are in
1481
+ * view. The dropdown stays open, and a tap on the input or on a chip brings
1482
+ * the keyboard back. A pick made from the keyboard (Enter) keeps focus
1483
+ * everywhere. `"always"` focuses on every device, which keeps the keyboard
1484
+ * up on a phone. `"never"`: a pick never focuses the input. On a touch
1485
+ * device a tapped pick still puts the keyboard away, as with `"auto"`.
1486
+ */
1487
+ focusInputOnSelect?: "auto" | "always" | "never";
1488
+ /**
1489
+ * Whether anything is offered before the shopper types. Default `true`: the
1490
+ * starting state (its opening question, lead-in text and items) is requested
1491
+ * on mount and whenever the input is empty again, and shows when the input
1492
+ * has focus. Set to `false` to request and show nothing while the input is
1493
+ * empty: no starting-state request (by its URL or as an empty query), a
1494
+ * closed dropdown, and no lead-in or hint in the box. From the first typed
1495
+ * character everything works as usual. `autoFocus` only decides whether the
1496
+ * input takes focus on mount, and `dropdownTrigger` also hides the
1497
+ * suggestions for typed text; this option hides only the starting state.
1498
+ */
1499
+ startingState?: boolean;
1459
1500
  /**
1460
1501
  * Whether the starting state's lead-in text is put in front of the first
1461
1502
  * answer. Default `true`: the text shows in the empty input and picking an
@@ -1578,6 +1619,28 @@ interface CoreOptions {
1578
1619
  * all of it off: nothing is marked, and every press calls your handler.
1579
1620
  */
1580
1621
  submitProgress?: boolean;
1622
+ /**
1623
+ * When true, a submit (Enter, the submit button, See all results) whose
1624
+ * `custom_fields` do not answer the submitted query first gets the full
1625
+ * answer for it, then calls `onSubmit` with that answer's `custom_fields`,
1626
+ * `identified_params` and `is_ready`. That is the case when the shopper
1627
+ * submits while the dropdown shows completions of the word being typed, or
1628
+ * before the request for the latest text came back. The submit shows as in
1629
+ * progress (`isSubmitting`) while it waits, a second submit is ignored, and
1630
+ * typing, tapping an option or a product, or pressing elsewhere cancels it
1631
+ * without calling `onSubmit`. The wait is bounded by
1632
+ * `submitAnswerTimeoutMs`: when no answer came in time, or the request
1633
+ * failed, `onSubmit` is called once with no `custom_fields` key, never with
1634
+ * an earlier query's block, so treat a missing block as "no filters known".
1635
+ * Default: false, where `onSubmit` is called at once and a block that does
1636
+ * not answer the query is marked `custom_fields_stale: true`.
1637
+ */
1638
+ awaitAnswerOnSubmit?: boolean;
1639
+ /**
1640
+ * The longest a submit waits for its answer, in milliseconds, with
1641
+ * `awaitAnswerOnSubmit` on or through `awaitSubmitResult()`. Default: 2500.
1642
+ */
1643
+ submitAnswerTimeoutMs?: number;
1581
1644
  /**
1582
1645
  * How the product strip lays its cards out. `"row"` (the default) is a
1583
1646
  * horizontally scrolling shelf of cards. `"list"` stacks the same cards as
@@ -1672,6 +1735,11 @@ interface CoreOptions {
1672
1735
  * its own `domRefs.input` when re-edit / Backspace flows need to park the
1673
1736
  * caret at a specific plain-text offset. Wrappers that own the DOM (React,
1674
1737
  * etc.) must provide this — vanilla "full" mode falls back to `domRefs`.
1738
+ * Not called after a pick where a pick does not focus the field
1739
+ * (`focusInputOnSelect`: a touch-primary device by default), unless the
1740
+ * field still holds focus because the pick was made from the keyboard. A
1741
+ * `setCursor` that focuses would raise the keyboard over the next
1742
+ * question's options.
1675
1743
  * @internal
1676
1744
  */
1677
1745
  setCursor?: (offset: number) => void;
@@ -1681,13 +1749,21 @@ interface CoreOptions {
1681
1749
  declare const MULTI_SELECT_TOGGLE_SLOP_PX = 10;
1682
1750
  /** The checkbox zone is never narrower than this, measured from the row's leading edge. */
1683
1751
  declare const MULTI_SELECT_TOGGLE_MIN_PX = 44;
1684
- /** Passed with an option pick to say how a multi_select row was tapped. */
1752
+ /** Passed with an option pick to say how it was made. */
1685
1753
  interface SelectOptionOptions {
1686
1754
  /**
1687
1755
  * In a multi_select question: answer now with this option (plus any already
1688
1756
  * ticked) instead of only ticking it and waiting for Done. Ignored elsewhere.
1689
1757
  */
1690
1758
  commit?: boolean;
1759
+ /**
1760
+ * The pick comes from the keyboard, not from a tap. The field then keeps
1761
+ * focus on a touch device, where a tapped pick blurs it to put the keyboard
1762
+ * away (see `focusInputOnSelect`). A pick made while a key press or a
1763
+ * pointer-less click is being handled is read this way without the hint;
1764
+ * pass it for one made later (after a timer or a request).
1765
+ */
1766
+ fromKeyboard?: boolean;
1691
1767
  }
1692
1768
  /**
1693
1769
  * Whether a click on a multi_select row landed in its checkbox zone.
@@ -1731,6 +1807,12 @@ declare class AIAutocomplete {
1731
1807
  private keyboardController;
1732
1808
  private pillsController;
1733
1809
  private holdOpen;
1810
+ /** Keystrokes being handled (see `typed`). */
1811
+ private typing;
1812
+ /** Picks in progress (see `pick`). */
1813
+ private picking;
1814
+ /** The last click or key press seen on the document (see `onDocumentInput`). */
1815
+ private lastInput;
1734
1816
  private productsController;
1735
1817
  private optionSource;
1736
1818
  private reEdit;
@@ -1794,6 +1876,16 @@ declare class AIAutocomplete {
1794
1876
  private readonly emitSubmit;
1795
1877
  /** The submit in progress, if any: see `CoreInputState.isSubmitting`. */
1796
1878
  private readonly submitHold;
1879
+ /**
1880
+ * The submit waiting for the answer to its own query, if any
1881
+ * (`awaitAnswerOnSubmit`, `awaitSubmitResult()`). A change to that query
1882
+ * that is not the SDK's own ends the wait.
1883
+ */
1884
+ private answerWait;
1885
+ /** True while the SDK itself edits the query a submit waits for (it ends the typed word). */
1886
+ private settlingSubmit;
1887
+ /** Listens for the shopper moving on while a submit waits for its answer. */
1888
+ private readonly answerHold;
1797
1889
  /** The product selection in progress, if any: see `selectingProductId`. */
1798
1890
  private readonly productHold;
1799
1891
  /**
@@ -1908,6 +2000,66 @@ declare class AIAutocomplete {
1908
2000
  * the editor to be focused afterwards.
1909
2001
  */
1910
2002
  private scheduleSetCursor;
2003
+ /**
2004
+ * Whether a pick puts focus in the field (`focusInputOnSelect`): by default
2005
+ * yes where the pointer hovers, no on a touch-primary device. For wrappers
2006
+ * that own the input.
2007
+ */
2008
+ focusesInputOnSelect(): boolean;
2009
+ /**
2010
+ * The caret after a picked option has become a chip. As `scheduleSetCursor`
2011
+ * where a pick focuses the field. Where it does not (a touch-primary device
2012
+ * by default), the field is left unfocused, so the keyboard stays down.
2013
+ *
2014
+ * In "headless" mode that means `setCursor` is not called for such a pick
2015
+ * unless the field still holds focus (an answer given from the keyboard).
2016
+ * A wrapper's `setCursor` focuses its input, and the core is the one that
2017
+ * knows the call came from a pick.
2018
+ */
2019
+ private schedulePickCursor;
2020
+ /**
2021
+ * Run a pick (an answer, a tick, a skip) as one step for the held-open
2022
+ * panel, and put the keyboard away at the end of it where a pick does not
2023
+ * focus the field. Every public route to a pick goes through here; they
2024
+ * nest, and only the outermost one puts the keyboard away.
2025
+ */
2026
+ private pick;
2027
+ /**
2028
+ * Run a keystroke's work. A pick it makes (Enter on an option, a space that
2029
+ * picks a place, → to skip) is made from the keyboard, which the shopper is
2030
+ * still using: the field keeps focus on every device.
2031
+ */
2032
+ private typed;
2033
+ /**
2034
+ * Keeps, ahead of every handler, the click or key press now being
2035
+ * dispatched, so a pick made during it can be told from a tap.
2036
+ */
2037
+ private onDocumentInput;
2038
+ /**
2039
+ * The event being dispatched right now came from the keyboard: any
2040
+ * `keydown`, and a click that carries no click count (`detail === 0`: Enter
2041
+ * or Space on a focused row or button, or assistive activation with no
2042
+ * pointer, the same reading `isMultiSelectToggleTap` makes). A pick made
2043
+ * during it is a keyboard pick and keeps focus, whichever route it takes
2044
+ * (an option row, the All row, skip, Done, a calendar day, a place, a
2045
+ * host's own key handler) and whichever package draws it. An event whose
2046
+ * dispatch is over (`eventPhase` back at 0) says nothing: a pick made later,
2047
+ * from a timer or a response, is judged on its own.
2048
+ */
2049
+ private keyboardInputInFlight;
2050
+ private watchDocumentInput;
2051
+ /**
2052
+ * On a touch-primary device where a pick does not focus the field
2053
+ * (`focusInputOnSelect` "auto" or "never"), a tapped pick puts the keyboard
2054
+ * away: the field that holds it is blurred, so the next question's options
2055
+ * are not under it. Only while the widget counts as focused, so the element
2056
+ * blurred is the widget's own field (the editor, the location search field,
2057
+ * or the input a Tier 2 / headless integration reports focus for).
2058
+ *
2059
+ * The panel is latched open before the blur, never in reaction to it
2060
+ * (`HoldOpenController.holdThroughBlur`).
2061
+ */
2062
+ private releaseKeyboardAfterPick;
1911
2063
  clearNewParamId(): void;
1912
2064
  /**
1913
2065
  * Open the calendar for a span the server identified as a date.
@@ -1950,9 +2102,28 @@ declare class AIAutocomplete {
1950
2102
  * A typed word that equals exactly one completion candidate becomes a completed param, the same as Enter.
1951
2103
  * A typed value the response returned with no pill yet (`state: "need_confirmation"`) joins `identifiedParams` here, if the text has not changed since that response.
1952
2104
  * It is in no earlier state read, so a submit that skips this call leaves it out.
1953
- * Read the updated state with `getState()` to build the result.
2105
+ * Read the updated state with `getState()` to build the result, or wait for
2106
+ * the answer to it with `awaitSubmitResult()`: the `customFields` in state
2107
+ * are the last response's, which may answer an earlier query.
1954
2108
  */
1955
2109
  prepareSubmit(): void;
2110
+ /**
2111
+ * The result to submit from your own button, with `custom_fields` that
2112
+ * answer it. It prepares the submit as `prepareSubmit()` does. When the
2113
+ * stored answer is not a full answer to the query as it now stands (the
2114
+ * dropdown shows completions of the word being typed, or the request for the
2115
+ * latest text has not come back), it gets that answer first, for up to
2116
+ * `submitAnswerTimeoutMs`, showing the submit as in progress
2117
+ * (`isSubmitting`) meanwhile.
2118
+ *
2119
+ * Resolves to the result: with the answer's `custom_fields`,
2120
+ * `identified_params` and `is_ready`, or with no `custom_fields` key when
2121
+ * no answer came in time or the request failed. Resolves to null when there
2122
+ * is nothing to submit: the shopper changed the input, tapped a product or
2123
+ * pressed elsewhere while it waited, or a submit is already in progress.
2124
+ * Works whatever `awaitAnswerOnSubmit` is set to.
2125
+ */
2126
+ awaitSubmitResult(): Promise<AutocompleteResult | null>;
1956
2127
  /**
1957
2128
  * Records a submit in telemetry. The SDK does this itself when it runs the
1958
2129
  * submit (Enter, or Tier 1's button); call it only from a submit path you
@@ -2132,6 +2303,7 @@ declare class AIAutocomplete {
2132
2303
  * pills would otherwise cost a round-trip each.
2133
2304
  */
2134
2305
  skipActivePill(): void;
2306
+ private skipActive;
2135
2307
  handleKeyDown(e: KeyboardEvent): void;
2136
2308
  setFocused(focused: boolean): void;
2137
2309
  /**
@@ -2160,6 +2332,31 @@ declare class AIAutocomplete {
2160
2332
  /** Returns the latest applied /suggest request ID, or null before a response or after reset. */
2161
2333
  getRequestId(): string | null;
2162
2334
  private buildResult;
2335
+ /** The query as it stands, with no catalog report: none that answers it is known. */
2336
+ private buildResultWithoutAnswer;
2337
+ /** Ends the typed word for a submit. The edit is the SDK's own: a waiting submit goes on. */
2338
+ private settleSubmit;
2339
+ /**
2340
+ * Runs a submit the SDK starts: Enter, the submit button, See all results.
2341
+ * With `awaitAnswerOnSubmit`, the handlers are called once the answer to
2342
+ * the submitted query is in, or the wait for it is over.
2343
+ */
2344
+ private runSubmit;
2345
+ /**
2346
+ * Calls `done` with the result to submit once the store holds a full answer
2347
+ * to the query as it stands after the typed word ended: at once when it
2348
+ * already does, else after the request for it. `done` gets the result
2349
+ * without `custom_fields` when the wait timed out or the request failed,
2350
+ * and null when the wait was cancelled.
2351
+ */
2352
+ private withSubmitAnswer;
2353
+ /**
2354
+ * Asks for the answer to the submitted query until the store holds it. An
2355
+ * answer can itself change the query (it promotes a typed exact match, and
2356
+ * the typed word is ended again after it), so the next round asks about the
2357
+ * query as it then stands. Gives up after {@link SUBMIT_ANSWER_ROUNDS}.
2358
+ */
2359
+ private pursueSubmitAnswer;
2163
2360
  get listboxId(): string;
2164
2361
  get isReady(): boolean;
2165
2362
  /**
@@ -2179,6 +2376,7 @@ declare class AIAutocomplete {
2179
2376
  refreshProducts(): void;
2180
2377
  update(opts: CoreUpdateOptions): void;
2181
2378
  selectOption(option: SuggestionOption, how?: SelectOptionOptions): void;
2379
+ private select;
2182
2380
  private applyOption;
2183
2381
  private startSelectionAnimationTimer;
2184
2382
  private resolveVisitorId;
@@ -2200,6 +2398,12 @@ declare class AIAutocomplete {
2200
2398
  * for is no longer on screen: the input changed, or the products did.
2201
2399
  */
2202
2400
  private subscribeHandoffHolds;
2401
+ /**
2402
+ * Cancels a submit waiting for its answer once the query it waits for is
2403
+ * no longer the one in the input. The SDK's own changes to it (ending the
2404
+ * typed word, an answer promoting an exact match) are followed instead.
2405
+ */
2406
+ private syncAnswerWait;
2203
2407
  private subscribeVisibleImpression;
2204
2408
  /**
2205
2409
  * Records what a response put on screen: pills and their options in display
@@ -2832,6 +3036,46 @@ declare const EDITOR_GROW_MS = 340;
2832
3036
  */
2833
3037
  declare function watchEditorHeight(editor: HTMLElement): () => void;
2834
3038
 
3039
+ /**
3040
+ * The one answer to "is this a touch-primary device?": the held-open panel
3041
+ * and the focus rule after a pick both ask here, so they cannot disagree.
3042
+ * Its answer is live, so a device that changes its main pointer is followed.
3043
+ * An engine that cannot say (no `matchMedia`, or one that throws, as some
3044
+ * embedded webviews do) is not touch: everything then behaves as on a desktop.
3045
+ */
3046
+ declare function isTouchPrimary(): boolean;
3047
+ /** `focusInputOnSelect`: whether a pick puts focus in the field. */
3048
+ type FocusInputOnSelect = "auto" | "always" | "never";
3049
+ /**
3050
+ * Resolve `focusInputOnSelect`. `"auto"` (the default) focuses the field
3051
+ * where the pointer hovers and not on a touch-primary device, whose keyboard
3052
+ * would come up over the next question's options.
3053
+ */
3054
+ declare function focusesInputOnSelect(mode: FocusInputOnSelect | undefined): boolean;
3055
+ /**
3056
+ * Where focus goes once a picked option has become a chip. Shared by the
3057
+ * three Tier 1 editors (vanilla `renderInput`, React
3058
+ * `useContentEditableEditor`, Angular `aiaEditorHost`).
3059
+ *
3060
+ * With `refocus` (see `focusesInputOnSelect`) the editor takes focus and the
3061
+ * caret goes to `offset`, right after the new chip. Without it the editor is
3062
+ * left as it is: a tapped pick has already had its field blurred by the core,
3063
+ * so the keyboard is away and stays away. No caret is placed either, since
3064
+ * setting a selection inside a contentEditable focuses it (Chrome). An editor
3065
+ * that still holds focus was answered from the keyboard (Enter on an option),
3066
+ * which the shopper is using: it keeps focus and gets its caret.
3067
+ */
3068
+ declare function settlePickFocus(input: HTMLElement, offset: number, refocus: boolean): void;
3069
+ /**
3070
+ * Focus the editor for a click on its wrapper. On a touch-primary device an
3071
+ * editor that held no caret gets it at the end of the text: after a pick that left
3072
+ * the keyboard away the editor has none (see `dropCaretIn`), and a bare
3073
+ * `focus()` on a contentEditable puts it at the start. A tap on the text
3074
+ * itself has already placed the caret by the time the click arrives, and
3075
+ * keeps it.
3076
+ */
3077
+ declare function focusEditorFromTap(input: HTMLElement): void;
3078
+
2835
3079
  /**
2836
3080
  * A mouse wheel over the product strip scrolls it sideways.
2837
3081
  *
@@ -3747,6 +3991,12 @@ interface SubmitResultExtras {
3747
3991
  * rather than null when no catalog was read.
3748
3992
  */
3749
3993
  customFields?: CustomFieldsReport | null;
3994
+ /**
3995
+ * The block does not answer this query: it came from an answer to an
3996
+ * earlier query, or from one that only completes the word being typed.
3997
+ * Marks the result `custom_fields_stale: true`. Default: false.
3998
+ */
3999
+ customFieldsStale?: boolean;
3750
4000
  }
3751
4001
  /**
3752
4002
  * Builds the `AutocompleteResult` handed to `onSubmit` and `onResult`: the
@@ -3782,4 +4032,4 @@ declare const SMART_SUGGESTION_SPARKLE_SVG: string;
3782
4032
  /** True when some pill is a question the shopper can decline. */
3783
4033
  declare function hasSkippablePill(suggestions: Suggestion[]): boolean;
3784
4034
 
3785
- 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, HANDOFF_NOT_HANDLED, HINT_ATTR, HINT_EL_ATTR, HINT_HOLD_MS, type IdentifiedParam, type IdentifiedParamState, type InputItem, LAST_SEARCH_KEY, 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, dropdownPillsFor, 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, pointerMayHighlight, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, queryLive, releasePanelHug, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, startingHintOptions, syncHighlightScroll, syncPanelHug, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
4035
+ 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 FocusInputOnSelect, type FormatType, HANDOFF_NOT_HANDLED, HINT_ATTR, HINT_EL_ATTR, HINT_HOLD_MS, type IdentifiedParam, type IdentifiedParamState, type InputItem, LAST_SEARCH_KEY, 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, dropdownPillsFor, editingSuggestion, extractPlainText, findMultiSelectDone, fitMultiSelectDone, focusEditorFromTap, focusesInputOnSelect, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, inPanelGhost, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTouchPrimary, 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, pointerMayHighlight, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, queryLive, releasePanelHug, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, settlePickFocus, shopifyImageSrc, startingHintOptions, syncHighlightScroll, syncPanelHug, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };