@magicx-eng/ai-autocomplete-vanilla 0.63.0 → 0.64.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 +5 -5
- package/REFERENCE.md +21 -17
- package/dist/index.d.mts +87 -8
- package/dist/index.d.ts +87 -8
- package/dist/index.js +260 -142
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +260 -142
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ const ac = new AIAutocomplete(container, {
|
|
|
110
110
|
prependPlaceholder: true, // false = show the starting state's lead-in text as a hint only; a picked option is not written after it
|
|
111
111
|
showNonTappableOptions: true, // false = hide non-tappable options from the dropdown
|
|
112
112
|
locationSearch: true, // false = a location field takes typed text only, no lookups
|
|
113
|
-
showSkipButton: true, // false = hide the pill bar's
|
|
113
|
+
showSkipButton: true, // false = hide the pill bar's "skip" button (after the label)
|
|
114
114
|
showOptionIcons: true, // false = render option rows as text only (no icons)
|
|
115
115
|
showChipIcons: true, // false = render completed chips as text only (no icons)
|
|
116
116
|
showChipImages: true, // false = never draw an option's picture on its completed chip
|
|
@@ -346,9 +346,9 @@ unsub();
|
|
|
346
346
|
|
|
347
347
|
> **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, and hides it while the row shows its loading skeleton. 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.
|
|
348
348
|
|
|
349
|
-
> **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"`); a skeleton row keeps the tile's placeholder fill and hides the count. 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` (
|
|
349
|
+
> **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"`); a skeleton row keeps the tile's placeholder fill and hides the count. 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 (and on skeleton rows, 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.
|
|
350
350
|
|
|
351
|
-
> **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`, and a skeleton row hides it. It reads `--aia-option-parameter-font-size` (
|
|
351
|
+
> **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`, and a skeleton row hides it. It reads `--aia-option-parameter-font-size` (8.4px), `--aia-option-parameter-color` and `--aia-option-parameter-opacity` (0.6).
|
|
352
352
|
|
|
353
353
|
### State shape (`CoreState`)
|
|
354
354
|
|
|
@@ -605,7 +605,7 @@ document.getElementById("my-autocomplete")
|
|
|
605
605
|
|
|
606
606
|
### Short screens
|
|
607
607
|
|
|
608
|
-
When the open dropdown would run past the edge of the visible screen — most often a phone with its on-screen keyboard up, or a short browser window — it shrinks to the space that is left and scrolls as one: the options
|
|
608
|
+
When the open dropdown would run past the edge of the visible screen — most often a phone with its on-screen keyboard up, or a short browser window — it shrinks to the space that is left and scrolls as one: the options and the product strip move together, so scrolling down past the last option brings the products into view. The pill bar scrolls with them. Each time the dropdown opens it checks again, and while it is open it follows the keyboard opening and closing and the page scrolling.
|
|
609
609
|
|
|
610
610
|
While fitted, the dropdown root carries `data-aia-fit`, and the height it is capped at is in its `--aia-dropdown-fit-height` property. Every option shows in that one scroll, so the option list's usual limit of visible rows does not apply.
|
|
611
611
|
|
|
@@ -627,7 +627,7 @@ For styling beyond the CSS variables, target these stable `data-aia-*` attribute
|
|
|
627
627
|
| `[data-aia-pill]` | Each unfilled-suggestion pill |
|
|
628
628
|
| `[data-aia-pillbar]` | Pill bar container inside the dropdown |
|
|
629
629
|
| `[data-aia-pill-scroll]` | Scrollable pill region inside the bar — carries the horizontal scroll and right-edge fade mask |
|
|
630
|
-
| `[data-aia-skip]` | The pill bar's
|
|
630
|
+
| `[data-aia-skip]` | The pill bar's "skip" button: after the label behind a thin rule, or alone at the end of a skip-only row. Tune via `--aia-skip-font-size` / `--aia-skip-color` / `--aia-skip-color-hover` / `--aia-skip-hover-bg` |
|
|
631
631
|
| `[data-aia-option]` | Each suggestion option |
|
|
632
632
|
| `[data-aia-scroll-arrow]` | The "more below" arrow on the dropdown — carries `data-aia-visible` while shown |
|
|
633
633
|
| `[data-aia-dropdown]` | The dropdown root (listbox). Carries `data-aia-has-products` while the product strip has cards, and `data-aia-fit` while it is fitted to a short screen (see [Short screens](#short-screens)). |
|
package/REFERENCE.md
CHANGED
|
@@ -50,9 +50,9 @@ Set `showProducts: false` to render no strip at all. The catalog report
|
|
|
50
50
|
`productsLayout: "list"` stacks the same cards as full-width rows (thumbnail
|
|
51
51
|
on the left, title, vendor and price on the right) for results that read as
|
|
52
52
|
a list (courses, listings, documents) rather than products on a shelf. The
|
|
53
|
-
column scrolls vertically inside `--aia-product-list-max-height` (
|
|
54
|
-
default); `--aia-product-list-media-size` (
|
|
55
|
-
`--aia-product-list-gap` (
|
|
53
|
+
column scrolls vertically inside `--aia-product-list-max-height` (224px by
|
|
54
|
+
default); `--aia-product-list-media-size` (30.8px) sizes the thumbnail and
|
|
55
|
+
`--aia-product-list-gap` (1.4px) the space between rows. `"row"`, the default,
|
|
56
56
|
is the horizontal strip. `update({ productsLayout })` re-lays the strip out at
|
|
57
57
|
once.
|
|
58
58
|
|
|
@@ -129,7 +129,7 @@ Return a promise to have the button show progress. It carries
|
|
|
129
129
|
card's product changes (a price-only change keeps it); pressing it again adds
|
|
130
130
|
another unit, going back through `"adding"` to `"added"`. A rejection returns
|
|
131
131
|
it to rest. Style it with
|
|
132
|
-
`--aia-product-cart-size` (
|
|
132
|
+
`--aia-product-cart-size` (19.6px), `--aia-product-cart-bg` and
|
|
133
133
|
`--aia-product-cart-color`, or `[data-aia-product-cart]`. In the list layout
|
|
134
134
|
the button sits at the row's right end. Headless consumers rendering
|
|
135
135
|
their own cards call `addProductToCart(product)`, which resolves or rejects
|
|
@@ -533,10 +533,11 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
|
|
|
533
533
|
| `--aia-pill-bg` | `#bdbdbd` | `#bdbdbd` | Pill background |
|
|
534
534
|
| `--aia-pill-color` | `#000000` | `#ffffff` | Pill text |
|
|
535
535
|
| `--aia-pill-font-size` | `19px` | `19px` | Pill font size |
|
|
536
|
+
| `--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]`. |
|
|
536
537
|
| `--aia-option-bg` | `transparent` | `transparent` | Option background (highlighted) |
|
|
537
538
|
| `--aia-option-color` | `#000000` | `#ffffff` | Option text |
|
|
538
539
|
| `--aia-option-color-selected` | `#000000` | `#ffffff` | Highlighted option text |
|
|
539
|
-
| `--aia-option-font-size` | `
|
|
540
|
+
| `--aia-option-font-size` | `11.2px` | `11.2px` | Option font size |
|
|
540
541
|
| `--aia-written-text-color` | `#000000` | `#ffffff` | Input text |
|
|
541
542
|
| `--aia-written-text-font-size` | `19px` | `19px` | Input text font size |
|
|
542
543
|
| `--aia-written-text-font-weight` | `300` | `300` | Written text weight in the full input. Completed chips keep their own typography. |
|
|
@@ -556,14 +557,14 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
|
|
|
556
557
|
| `--aia-dropdown-bg` | — | — | Optional bg color the dropdown's "glass" rim shadow tints toward. Set this to the page background behind the dropdown so the bottom-corner glow blends seamlessly. |
|
|
557
558
|
| `--aia-scrollbar-thumb` | `rgba(0, 0, 0, 0.3)` | `rgba(0, 0, 0, 0.3)` | No longer used: the option list hides its scrollbar in every browser. Kept so existing overrides don't break. |
|
|
558
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. |
|
|
559
|
-
| `--aia-product-card-width` | `
|
|
560
|
-
| `--aia-product-gap` | `
|
|
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. |
|
|
561
562
|
| `--aia-product-bg` | `transparent` | `transparent` | Product card background. |
|
|
562
563
|
| `--aia-product-bg-active` | `--aia-option-bg` | `--aia-option-bg` | Product card background on hover. |
|
|
563
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. |
|
|
564
565
|
| `--aia-scroll-arrow-color` | `--aia-option-color` | `--aia-option-color` | Chevron color of the arrow (`--aia-scroll-arrow-color-hover` on hover). |
|
|
565
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). |
|
|
566
|
-
| `--aia-product-image-radius` | `
|
|
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
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. |
|
|
568
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. |
|
|
569
570
|
| `--aia-product-price-color` | `--aia-option-color-selected` | `--aia-option-color-selected` | Product price text. |
|
|
@@ -572,10 +573,10 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
|
|
|
572
573
|
| `--aia-product-vendor-color` | `--aia-option-color` | `--aia-option-color` | Product vendor line. |
|
|
573
574
|
| `--aia-product-focus-ring` | `--aia-option-color-selected` | `--aia-option-color-selected` | Focus ring drawn on a keyboard-focused card. |
|
|
574
575
|
| `--aia-products-label-color` | `--aia-option-color` | `--aia-option-color` | "Best match" section label. |
|
|
575
|
-
| `--aia-product-title-font-size` | `
|
|
576
|
-
| `--aia-product-price-font-size` | `
|
|
577
|
-
| `--aia-product-vendor-font-size` | `
|
|
578
|
-
| `--aia-products-label-font-size` | `
|
|
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. |
|
|
579
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. |
|
|
580
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. |
|
|
581
582
|
| `--aia-date-row-height` | `28px` | `28px` | Height of one week row. Lower it to fit a 6-week month in a shorter dropdown. |
|
|
@@ -589,11 +590,14 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
|
|
|
589
590
|
| `--aia-time-panel-width` | `240px` | `240px` | Max width of the whole dropdown panel while the time wheel is up. |
|
|
590
591
|
| `--aia-time-font-size` | `15px` | `15px` | The time wheel's numbers and its `:` separator. |
|
|
591
592
|
| `--aia-time-band-bg` | white at 8% | white at 8% | The band behind the wheels' top rows — the chosen time. |
|
|
592
|
-
| `--aia-confirm-bg` | `#262626` | `#a6a6a6` | The solid fill
|
|
593
|
-
| `--aia-confirm-bg-hover` | `#404040` | `#b8b8b8` | The Done buttons on hover. |
|
|
594
|
-
| `--aia-confirm-color` | `#ffffff` | `#000000` | The
|
|
595
|
-
| `--aia-
|
|
596
|
-
| `--aia-
|
|
593
|
+
| `--aia-confirm-bg` | `#262626` | `#a6a6a6` | The solid fill of a checked multi-select checkbox (and, in dark mode, of the Done buttons). |
|
|
594
|
+
| `--aia-confirm-bg-hover` | `#404040` | `#b8b8b8` | The Done buttons on hover in dark mode. |
|
|
595
|
+
| `--aia-confirm-color` | `#ffffff` | `#000000` | The checkbox's checkmark (and, in dark mode, the Done buttons' text). |
|
|
596
|
+
| `--aia-done-bg` / `--aia-done-bg-hover` / `--aia-done-color` | `#e4e8f0` / `#d8dde8` / `#2a3150` | `--aia-confirm-*` | The Done buttons (multi-select and time wheel). |
|
|
597
|
+
| `--aia-multi-done-bg` / `--aia-multi-done-bg-hover` / `--aia-multi-done-color` | `--aia-done-*` | `--aia-done-*` | Override the multi-select Done button alone. |
|
|
598
|
+
| `--aia-multi-done-width` | as wide as the widest option | same | Width of the multi-select Done button; set `100%` for full width. |
|
|
599
|
+
| `--aia-multi-done-min-width` | `120px` | `120px` | Narrowest the multi-select Done button gets. |
|
|
600
|
+
| `--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. |
|
|
597
601
|
| `--aia-location-field-bg` | `--aia-streak-rgb` at 6% (indigo) | `--aia-streak-rgb` at 6% (white) | The location search field. |
|
|
598
602
|
| `--aia-location-field-radius` | `10px` | `10px` | Corner radius of the location search field. |
|
|
599
603
|
| `--aia-location-font-size` | `15px` | `15px` | The location field's text and the place names. |
|
package/dist/index.d.mts
CHANGED
|
@@ -1365,13 +1365,12 @@ interface CoreOptions {
|
|
|
1365
1365
|
/**
|
|
1366
1366
|
* When true (default), the dropdown's pill bar ends in a small "skip" button
|
|
1367
1367
|
* that dismisses the active pill — same action as pressing → at the end of
|
|
1368
|
-
* the input. It sits
|
|
1369
|
-
*
|
|
1370
|
-
* "
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
* footer's "→ to skip" hint once the user has typed) either way.
|
|
1368
|
+
* the input. It sits right after the parameter label, behind a thin rule
|
|
1369
|
+
* ("Gender | skip"). Set to false to hide it. When pills render elsewhere
|
|
1370
|
+
* (`pillPlacement: "inline"` / `"hidden"`) the bar renders as a skip-only
|
|
1371
|
+
* row holding just the button, alone at the bar's trailing edge with no
|
|
1372
|
+
* rule; it hides during re-edit, on the loading skeleton, and while the
|
|
1373
|
+
* input is empty either way.
|
|
1375
1374
|
*/
|
|
1376
1375
|
showSkipButton?: boolean;
|
|
1377
1376
|
/** Render mode. Default: "full". */
|
|
@@ -2538,6 +2537,23 @@ declare function attachProductRowWheel(row: HTMLElement): () => void;
|
|
|
2538
2537
|
*/
|
|
2539
2538
|
declare function scrollCaretIntoView(root: HTMLElement): void;
|
|
2540
2539
|
|
|
2540
|
+
/**
|
|
2541
|
+
* The question crossfade (panelMorph.ts) appends a frozen copy of the previous
|
|
2542
|
+
* question to the panel root for a moment. It keeps the `data-aia-*` hooks the
|
|
2543
|
+
* panel's CSS keys on, so any whole-panel query can resolve into it. Code
|
|
2544
|
+
* reading the live panel asks through `queryLive` instead.
|
|
2545
|
+
*/
|
|
2546
|
+
declare const PANEL_GHOST_CLASS = "magicx-aia-panel-ghost";
|
|
2547
|
+
/** Whether `el` sits inside the crossfade's frozen copy. */
|
|
2548
|
+
declare function inPanelGhost(el: Element): boolean;
|
|
2549
|
+
/** The first element under `root` matching `selector` outside the crossfade's copy. */
|
|
2550
|
+
declare function queryLive<E extends Element = Element>(root: ParentNode, selector: string): E | null;
|
|
2551
|
+
|
|
2552
|
+
declare const MULTI_DONE_FIT_VAR = "--aia-multi-done-fit";
|
|
2553
|
+
/** The live multi-select Done button under `root`, skipping the crossfade ghost. */
|
|
2554
|
+
declare function findMultiSelectDone(root: ParentNode): HTMLButtonElement | null;
|
|
2555
|
+
declare function fitMultiSelectDone(root: ParentNode, button: HTMLElement | null): void;
|
|
2556
|
+
|
|
2541
2557
|
/**
|
|
2542
2558
|
* The picture an option may carry (`image_url`) and the number of catalog
|
|
2543
2559
|
* items behind it (`item_count`). Both are optional on the wire — present
|
|
@@ -2631,6 +2647,69 @@ declare function optionLabel(option: {
|
|
|
2631
2647
|
icon_svg?: string;
|
|
2632
2648
|
}): string;
|
|
2633
2649
|
|
|
2650
|
+
/**
|
|
2651
|
+
* Open-panel motion, copied from the playground's Real-time One tab
|
|
2652
|
+
* (`src/genui/morph.ts` + `AutoHeight`, 2026-11):
|
|
2653
|
+
*
|
|
2654
|
+
* - When the panel's height changes while it stays open, it glides there over
|
|
2655
|
+
* 360ms on cubic-bezier(.32,.72,0,1) instead of jumping.
|
|
2656
|
+
* - When the question changes (a new leading pill) while it stays open, the
|
|
2657
|
+
* old content stays on top as a ghost that fades to transparent with a 2px
|
|
2658
|
+
* blur over 280ms, while the new content dissolves in (opacity 0 and a 2px
|
|
2659
|
+
* blur to clear, 320ms after a 40ms beat) on the same soft ease.
|
|
2660
|
+
*
|
|
2661
|
+
* Opening and closing are CSS (the `--visible` transition). This module only
|
|
2662
|
+
* runs between two open renders. All three packages call `settlePanelMorph`
|
|
2663
|
+
* after every commit of the dropdown, so the motion can't drift apart; it is a
|
|
2664
|
+
* no-op where Web Animations or layout are missing (jsdom) and under reduced
|
|
2665
|
+
* motion or `animations: false`.
|
|
2666
|
+
*/
|
|
2667
|
+
declare const PANEL_GLIDE_MS = 360;
|
|
2668
|
+
declare const PANEL_LEAVE_MS = 280;
|
|
2669
|
+
declare const PANEL_ENTER_MS = 320;
|
|
2670
|
+
declare const PANEL_ENTER_DELAY_MS = 40;
|
|
2671
|
+
/**
|
|
2672
|
+
* The panel's identity for crossfading: the leading pill's text. A new value
|
|
2673
|
+
* while the panel stays open is a new question.
|
|
2674
|
+
*/
|
|
2675
|
+
declare function panelMorphKey(pills: ReadonlyArray<{
|
|
2676
|
+
text?: string;
|
|
2677
|
+
} | null | undefined>): string | null;
|
|
2678
|
+
/**
|
|
2679
|
+
* Call after every render of the dropdown, with the leading pill's key and
|
|
2680
|
+
* whether the panel is open.
|
|
2681
|
+
* `anchorBottom` is true when the panel sits above the input (it grows up).
|
|
2682
|
+
*/
|
|
2683
|
+
declare function settlePanelMorph(dropdown: HTMLElement, key: string | null, opts: {
|
|
2684
|
+
visible: boolean;
|
|
2685
|
+
enabled?: boolean;
|
|
2686
|
+
anchorBottom?: boolean;
|
|
2687
|
+
}): void;
|
|
2688
|
+
/**
|
|
2689
|
+
* The panel's running height glide, or null. While one runs the panel's
|
|
2690
|
+
* height is the animated one, not the height its content settles at. Only a
|
|
2691
|
+
* running (or about to run) animation counts: a finished, cancelled (idle) or
|
|
2692
|
+
* paused one pins nothing.
|
|
2693
|
+
*/
|
|
2694
|
+
declare function panelMorphGlide(dropdown: HTMLElement): Animation | null;
|
|
2695
|
+
/**
|
|
2696
|
+
* The height a running glide is heading for (what the last settle measured
|
|
2697
|
+
* once the old glide was cancelled), or null when none runs. Anything that
|
|
2698
|
+
* compares the panel's height against the space it has (the viewport fit)
|
|
2699
|
+
* reads this mid-glide instead of the animated height it is passing through.
|
|
2700
|
+
*/
|
|
2701
|
+
declare function panelMorphTargetHeight(dropdown: HTMLElement): number | null;
|
|
2702
|
+
/**
|
|
2703
|
+
* Record a height the panel took without a render: the viewport fit capping
|
|
2704
|
+
* it (a keyboard opening) or lifting the cap. The next glide then starts from
|
|
2705
|
+
* the height on screen, not the one the last settle saw. A running glide owns
|
|
2706
|
+
* the height (the same running-or-pending test as `panelMorphGlide`), and a
|
|
2707
|
+
* panel not yet settled has nothing to glide from, so both are left alone.
|
|
2708
|
+
*/
|
|
2709
|
+
declare function notePanelMorphHeight(dropdown: HTMLElement, height: number): void;
|
|
2710
|
+
/** Forget a destroyed dropdown. */
|
|
2711
|
+
declare function destroyPanelMorph(dropdown: HTMLElement): void;
|
|
2712
|
+
|
|
2634
2713
|
/**
|
|
2635
2714
|
* Types the starting-state placeholder into the input one character at a
|
|
2636
2715
|
* time instead of popping it in whole.
|
|
@@ -3169,4 +3248,4 @@ declare const SMART_SUGGESTION_SPARKLE_SVG: string;
|
|
|
3169
3248
|
/** True when some pill is a question the shopper can decline. */
|
|
3170
3249
|
declare function hasSkippablePill(suggestions: Suggestion[]): boolean;
|
|
3171
3250
|
|
|
3172
|
-
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, type IdentifiedParam, type IdentifiedParamState, type InputItem, LOCATION_META_KEY, LOCATION_MIN_QUERY, type LocationPlace, type LocationStatus, type LocationView, type LooseDateOptions, 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, 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 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, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, cellDay, cellIso, chipIdFromTap, computeOptionsGridLayout, containScroll, createStore, cursorIsAtEnd, dateCellMarks, dateFloorFor, dateSelectionFor, extractPlainText, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTraditionalAutocompleteSuggestion, isoDate, isoTime, keepCaretOnChip, labelTraditionalAutocomplete, locationEndpointFor, matchTypedPhrase, measureOptionsGrid, monthLabel, needsOptionsGridMeasurement, optionCountLabel, optionEnterDelayMs, optionHasImage, optionImageSources, optionImageSrc, optionLabel, optionsEntranceDurationMs, optionsGridTemplateColumns, optionsShowLeadingVisuals, parseDate, parseLooseDate, parseLooseDateRange, parseTime, plainTextLength, planOptionsGrid, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, shopifyImageSrc, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
|
|
3251
|
+
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, 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 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, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, 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, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
|
package/dist/index.d.ts
CHANGED
|
@@ -1365,13 +1365,12 @@ interface CoreOptions {
|
|
|
1365
1365
|
/**
|
|
1366
1366
|
* When true (default), the dropdown's pill bar ends in a small "skip" button
|
|
1367
1367
|
* that dismisses the active pill — same action as pressing → at the end of
|
|
1368
|
-
* the input. It sits
|
|
1369
|
-
*
|
|
1370
|
-
* "
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
* footer's "→ to skip" hint once the user has typed) either way.
|
|
1368
|
+
* the input. It sits right after the parameter label, behind a thin rule
|
|
1369
|
+
* ("Gender | skip"). Set to false to hide it. When pills render elsewhere
|
|
1370
|
+
* (`pillPlacement: "inline"` / `"hidden"`) the bar renders as a skip-only
|
|
1371
|
+
* row holding just the button, alone at the bar's trailing edge with no
|
|
1372
|
+
* rule; it hides during re-edit, on the loading skeleton, and while the
|
|
1373
|
+
* input is empty either way.
|
|
1375
1374
|
*/
|
|
1376
1375
|
showSkipButton?: boolean;
|
|
1377
1376
|
/** Render mode. Default: "full". */
|
|
@@ -2538,6 +2537,23 @@ declare function attachProductRowWheel(row: HTMLElement): () => void;
|
|
|
2538
2537
|
*/
|
|
2539
2538
|
declare function scrollCaretIntoView(root: HTMLElement): void;
|
|
2540
2539
|
|
|
2540
|
+
/**
|
|
2541
|
+
* The question crossfade (panelMorph.ts) appends a frozen copy of the previous
|
|
2542
|
+
* question to the panel root for a moment. It keeps the `data-aia-*` hooks the
|
|
2543
|
+
* panel's CSS keys on, so any whole-panel query can resolve into it. Code
|
|
2544
|
+
* reading the live panel asks through `queryLive` instead.
|
|
2545
|
+
*/
|
|
2546
|
+
declare const PANEL_GHOST_CLASS = "magicx-aia-panel-ghost";
|
|
2547
|
+
/** Whether `el` sits inside the crossfade's frozen copy. */
|
|
2548
|
+
declare function inPanelGhost(el: Element): boolean;
|
|
2549
|
+
/** The first element under `root` matching `selector` outside the crossfade's copy. */
|
|
2550
|
+
declare function queryLive<E extends Element = Element>(root: ParentNode, selector: string): E | null;
|
|
2551
|
+
|
|
2552
|
+
declare const MULTI_DONE_FIT_VAR = "--aia-multi-done-fit";
|
|
2553
|
+
/** The live multi-select Done button under `root`, skipping the crossfade ghost. */
|
|
2554
|
+
declare function findMultiSelectDone(root: ParentNode): HTMLButtonElement | null;
|
|
2555
|
+
declare function fitMultiSelectDone(root: ParentNode, button: HTMLElement | null): void;
|
|
2556
|
+
|
|
2541
2557
|
/**
|
|
2542
2558
|
* The picture an option may carry (`image_url`) and the number of catalog
|
|
2543
2559
|
* items behind it (`item_count`). Both are optional on the wire — present
|
|
@@ -2631,6 +2647,69 @@ declare function optionLabel(option: {
|
|
|
2631
2647
|
icon_svg?: string;
|
|
2632
2648
|
}): string;
|
|
2633
2649
|
|
|
2650
|
+
/**
|
|
2651
|
+
* Open-panel motion, copied from the playground's Real-time One tab
|
|
2652
|
+
* (`src/genui/morph.ts` + `AutoHeight`, 2026-11):
|
|
2653
|
+
*
|
|
2654
|
+
* - When the panel's height changes while it stays open, it glides there over
|
|
2655
|
+
* 360ms on cubic-bezier(.32,.72,0,1) instead of jumping.
|
|
2656
|
+
* - When the question changes (a new leading pill) while it stays open, the
|
|
2657
|
+
* old content stays on top as a ghost that fades to transparent with a 2px
|
|
2658
|
+
* blur over 280ms, while the new content dissolves in (opacity 0 and a 2px
|
|
2659
|
+
* blur to clear, 320ms after a 40ms beat) on the same soft ease.
|
|
2660
|
+
*
|
|
2661
|
+
* Opening and closing are CSS (the `--visible` transition). This module only
|
|
2662
|
+
* runs between two open renders. All three packages call `settlePanelMorph`
|
|
2663
|
+
* after every commit of the dropdown, so the motion can't drift apart; it is a
|
|
2664
|
+
* no-op where Web Animations or layout are missing (jsdom) and under reduced
|
|
2665
|
+
* motion or `animations: false`.
|
|
2666
|
+
*/
|
|
2667
|
+
declare const PANEL_GLIDE_MS = 360;
|
|
2668
|
+
declare const PANEL_LEAVE_MS = 280;
|
|
2669
|
+
declare const PANEL_ENTER_MS = 320;
|
|
2670
|
+
declare const PANEL_ENTER_DELAY_MS = 40;
|
|
2671
|
+
/**
|
|
2672
|
+
* The panel's identity for crossfading: the leading pill's text. A new value
|
|
2673
|
+
* while the panel stays open is a new question.
|
|
2674
|
+
*/
|
|
2675
|
+
declare function panelMorphKey(pills: ReadonlyArray<{
|
|
2676
|
+
text?: string;
|
|
2677
|
+
} | null | undefined>): string | null;
|
|
2678
|
+
/**
|
|
2679
|
+
* Call after every render of the dropdown, with the leading pill's key and
|
|
2680
|
+
* whether the panel is open.
|
|
2681
|
+
* `anchorBottom` is true when the panel sits above the input (it grows up).
|
|
2682
|
+
*/
|
|
2683
|
+
declare function settlePanelMorph(dropdown: HTMLElement, key: string | null, opts: {
|
|
2684
|
+
visible: boolean;
|
|
2685
|
+
enabled?: boolean;
|
|
2686
|
+
anchorBottom?: boolean;
|
|
2687
|
+
}): void;
|
|
2688
|
+
/**
|
|
2689
|
+
* The panel's running height glide, or null. While one runs the panel's
|
|
2690
|
+
* height is the animated one, not the height its content settles at. Only a
|
|
2691
|
+
* running (or about to run) animation counts: a finished, cancelled (idle) or
|
|
2692
|
+
* paused one pins nothing.
|
|
2693
|
+
*/
|
|
2694
|
+
declare function panelMorphGlide(dropdown: HTMLElement): Animation | null;
|
|
2695
|
+
/**
|
|
2696
|
+
* The height a running glide is heading for (what the last settle measured
|
|
2697
|
+
* once the old glide was cancelled), or null when none runs. Anything that
|
|
2698
|
+
* compares the panel's height against the space it has (the viewport fit)
|
|
2699
|
+
* reads this mid-glide instead of the animated height it is passing through.
|
|
2700
|
+
*/
|
|
2701
|
+
declare function panelMorphTargetHeight(dropdown: HTMLElement): number | null;
|
|
2702
|
+
/**
|
|
2703
|
+
* Record a height the panel took without a render: the viewport fit capping
|
|
2704
|
+
* it (a keyboard opening) or lifting the cap. The next glide then starts from
|
|
2705
|
+
* the height on screen, not the one the last settle saw. A running glide owns
|
|
2706
|
+
* the height (the same running-or-pending test as `panelMorphGlide`), and a
|
|
2707
|
+
* panel not yet settled has nothing to glide from, so both are left alone.
|
|
2708
|
+
*/
|
|
2709
|
+
declare function notePanelMorphHeight(dropdown: HTMLElement, height: number): void;
|
|
2710
|
+
/** Forget a destroyed dropdown. */
|
|
2711
|
+
declare function destroyPanelMorph(dropdown: HTMLElement): void;
|
|
2712
|
+
|
|
2634
2713
|
/**
|
|
2635
2714
|
* Types the starting-state placeholder into the input one character at a
|
|
2636
2715
|
* time instead of popping it in whole.
|
|
@@ -3169,4 +3248,4 @@ declare const SMART_SUGGESTION_SPARKLE_SVG: string;
|
|
|
3169
3248
|
/** True when some pill is a question the shopper can decline. */
|
|
3170
3249
|
declare function hasSkippablePill(suggestions: Suggestion[]): boolean;
|
|
3171
3250
|
|
|
3172
|
-
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, type IdentifiedParam, type IdentifiedParamState, type InputItem, LOCATION_META_KEY, LOCATION_MIN_QUERY, type LocationPlace, type LocationStatus, type LocationView, type LooseDateOptions, 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, 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 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, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, cellDay, cellIso, chipIdFromTap, computeOptionsGridLayout, containScroll, createStore, cursorIsAtEnd, dateCellMarks, dateFloorFor, dateSelectionFor, extractPlainText, formatAbsoluteDate, formatDate, formatDateRange, formatOptionCount, formatPlace, formatTime, getCursorOffset, getFooterHint, hasSkippablePill, highlightParts, identifiedParamLabel, isCalendarFormat, isDimmedDay, isMultiSelectToggleTap, isOptionsGridMobileViewport, isPickerFormat, isSmartSuggestion, isTraditionalAutocompleteSuggestion, isoDate, isoTime, keepCaretOnChip, labelTraditionalAutocomplete, locationEndpointFor, matchTypedPhrase, measureOptionsGrid, monthLabel, needsOptionsGridMeasurement, optionCountLabel, optionEnterDelayMs, optionHasImage, optionImageSources, optionImageSrc, optionLabel, optionsEntranceDurationMs, optionsGridTemplateColumns, optionsShowLeadingVisuals, parseDate, parseLooseDate, parseLooseDateRange, parseTime, plainTextLength, planOptionsGrid, previousGraphemeBoundary, productFromMatchedItem, productImageSources, productImageSrc, productInitial, productPhotoFill, productRowWheelTarget, productsFromCustomFields, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, shopifyImageSrc, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
|
|
3251
|
+
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, 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 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, attachProductRowWheel, attachScrollArrow, attachViewportFit, buildAttributionUrl, buildDateOptions, buildLocationOption, buildQuery, buildSubmitResult, buildTimeOption, 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, renderEditableContent, resolveFormatType, resolveIdentifiedDate, sameOptionRows, sanitizeOptionIconSvg, scrollCaretIntoView, selectedIsoFromText, selectedRangeFor, setCursorOffset, settlePanelMorph, shopifyImageSrc, timeWheelIndex, timeWheelIndexFromScroll, timeWheelRows, toWireIdentifiedParams, typedFragment, uiStringsFor, visibleDateRange, watchEditorHeight, withSkippedParams, withTimeWheelIndex, withoutTraditionalAutocomplete };
|