@magicx-eng/ai-autocomplete-react 0.2.1 → 0.3.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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +281 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +281 -129
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -159,11 +159,13 @@ interface AIAutocompleteDropdownProps {
|
|
|
159
159
|
showPills?: boolean;
|
|
160
160
|
/** True while a fetch for the latest query is in flight. Replaces options/pills with a skeleton. */
|
|
161
161
|
isLoading?: boolean;
|
|
162
|
+
/** Once the user has tabbed to highlight an option, the footer hint switches from "tab to select" to "→ to skip". Provided by `dropdownProps` from the hook. */
|
|
163
|
+
hasTabbedToHighlight?: boolean;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
declare const AIAutocomplete: react.ForwardRefExoticComponent<AIAutocompleteProps & react.RefAttributes<AIAutocompleteHandle>>;
|
|
165
167
|
|
|
166
|
-
declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, isOpen, id, className, pills, onPillClick, showPills, isLoading, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, isOpen, id, className, pills, onPillClick, showPills, isLoading, hasTabbedToHighlight, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
|
|
167
169
|
|
|
168
170
|
declare function useAIAutocomplete({ onSubmit, onError, optionOverrides, maskCompletedText, apiConfig, columns, dropdownTrigger, optionsPosition, closeDropdownOnBlur, showNonTappableOptions, onFocus, onBlur, value: controlledValue, completedParams: controlledParams, onChange: onChangeProp, onParamsChange, source, setCursor, }: UseAIAutocompleteOptions): UseAIAutocompleteReturn;
|
|
169
171
|
|
package/dist/index.d.ts
CHANGED
|
@@ -159,11 +159,13 @@ interface AIAutocompleteDropdownProps {
|
|
|
159
159
|
showPills?: boolean;
|
|
160
160
|
/** True while a fetch for the latest query is in flight. Replaces options/pills with a skeleton. */
|
|
161
161
|
isLoading?: boolean;
|
|
162
|
+
/** Once the user has tabbed to highlight an option, the footer hint switches from "tab to select" to "→ to skip". Provided by `dropdownProps` from the hook. */
|
|
163
|
+
hasTabbedToHighlight?: boolean;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
declare const AIAutocomplete: react.ForwardRefExoticComponent<AIAutocompleteProps & react.RefAttributes<AIAutocompleteHandle>>;
|
|
165
167
|
|
|
166
|
-
declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, isOpen, id, className, pills, onPillClick, showPills, isLoading, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
declare function AIAutocompleteDropdown({ suggestions, activeIndex, onSelect, onHighlight, isOpen, id, className, pills, onPillClick, showPills, isLoading, hasTabbedToHighlight, }: AIAutocompleteDropdownProps): react_jsx_runtime.JSX.Element;
|
|
167
169
|
|
|
168
170
|
declare function useAIAutocomplete({ onSubmit, onError, optionOverrides, maskCompletedText, apiConfig, columns, dropdownTrigger, optionsPosition, closeDropdownOnBlur, showNonTappableOptions, onFocus, onBlur, value: controlledValue, completedParams: controlledParams, onChange: onChangeProp, onParamsChange, source, setCursor, }: UseAIAutocompleteOptions): UseAIAutocompleteReturn;
|
|
169
171
|
|