@magicx-eng/ai-autocomplete-vanilla 0.30.0 → 0.31.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/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|