@magicx-eng/ai-autocomplete-vanilla 0.30.0 → 0.31.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/README.md CHANGED
@@ -856,7 +856,7 @@ Override these on the container element. The variables are declared with `:where
856
856
  | `--aia-footer-gap` | `12px` | `12px` | Breathing room above the dropdown footer (badge / keyboard hints), additive to the dropdown's 8px section gap. |
857
857
  | `--aia-footer-chip-bg` | `--aia-surface` at 65% | `--aia-surface` at 65% | Fill behind the footer's keyboard hint and AI-Autocomplete badge. The option list scrolls under the footer, so this keeps both legible over the row passing behind them. `transparent` on the glass surface. |
858
858
  | `--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. |
859
- | `--aia-scrollbar-thumb` | `rgba(0, 0, 0, 0.3)` | `rgba(0, 0, 0, 0.3)` | Color of the option list's scrollbar thumb (Firefox + WebKit). |
859
+ | `--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. |
860
860
  | `--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. |
861
861
  | `--aia-product-card-width` | `116px` | `116px` | Width of a product card in the strip. The media tile is square, so this also sets its height. |
862
862
  | `--aia-product-gap` | `8px` | `8px` | Gap between product cards. |
package/dist/index.d.mts CHANGED
@@ -1167,6 +1167,13 @@ declare class AIAutocomplete {
1167
1167
  handleCaretAfterInput(offset: number | null): void;
1168
1168
  handleCaretMove(offset: number | null): void;
1169
1169
  setActiveDropdownIndex(index: number): void;
1170
+ /**
1171
+ * The pointer left option `index`: clear the highlight if it is still on
1172
+ * that option. A hover highlight that outlived the hover made Enter pick an
1173
+ * option the pointer was no longer on instead of submitting the search. A
1174
+ * highlight the keyboard has since moved elsewhere is left alone.
1175
+ */
1176
+ clearHighlight(index: number): void;
1170
1177
  /**
1171
1178
  * Announce a product selection. The rendered cards call this on activation;
1172
1179
  * headless consumers rendering their own strip call it themselves.
package/dist/index.d.ts CHANGED
@@ -1167,6 +1167,13 @@ declare class AIAutocomplete {
1167
1167
  handleCaretAfterInput(offset: number | null): void;
1168
1168
  handleCaretMove(offset: number | null): void;
1169
1169
  setActiveDropdownIndex(index: number): void;
1170
+ /**
1171
+ * The pointer left option `index`: clear the highlight if it is still on
1172
+ * that option. A hover highlight that outlived the hover made Enter pick an
1173
+ * option the pointer was no longer on instead of submitting the search. A
1174
+ * highlight the keyboard has since moved elsewhere is left alone.
1175
+ */
1176
+ clearHighlight(index: number): void;
1170
1177
  /**
1171
1178
  * Announce a product selection. The rendered cards call this on activation;
1172
1179
  * headless consumers rendering their own strip call it themselves.