react-instantsearch 7.20.1 → 7.20.2

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.
@@ -190,8 +190,6 @@ function Chat(_ref2) {
190
190
  status: status,
191
191
  value: input,
192
192
  translations: promptTranslations,
193
- // Explicit event type is required to prevent TypeScript error
194
- // where parameter would implicitly have 'any' type without type annotation
195
193
  onInput: function onInput(event) {
196
194
  setInput(event.currentTarget.value);
197
195
  },
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import type { ComponentProps } from 'instantsearch-ui-components';
2
3
  export type AutocompleteSearchProps = {
3
- inputProps: Partial<React.DOMAttributes<HTMLInputElement>>;
4
+ inputProps: ComponentProps<'input'>;
4
5
  clearQuery: () => void;
5
6
  };
6
7
  export declare function AutocompleteSearch({ inputProps, clearQuery, }: AutocompleteSearchProps): React.JSX.Element;
@@ -171,8 +171,6 @@ export function Chat(_ref2) {
171
171
  status: status,
172
172
  value: input,
173
173
  translations: promptTranslations,
174
- // Explicit event type is required to prevent TypeScript error
175
- // where parameter would implicitly have 'any' type without type annotation
176
174
  onInput: function onInput(event) {
177
175
  setInput(event.currentTarget.value);
178
176
  },
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.20.1';
10
+ var version = '7.20.2';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -13355,7 +13355,7 @@
13355
13355
  };
13356
13356
  }
13357
13357
 
13358
- var version$3 = '4.85.0';
13358
+ var version$3 = '4.85.1';
13359
13359
 
13360
13360
  function _typeof$q(o) {
13361
13361
  "@babel/helpers - typeof";
@@ -21184,13 +21184,13 @@
21184
21184
 
21185
21185
  function createAutocompleteRecentSearchComponent(_ref) {
21186
21186
  var createElement = _ref.createElement;
21187
- return function AutocompleteRecentSearch(_ref2) {
21188
- var item = _ref2.item,
21189
- children = _ref2.children,
21190
- onSelect = _ref2.onSelect,
21191
- onRemoveRecentSearch = _ref2.onRemoveRecentSearch,
21192
- _ref2$classNames = _ref2.classNames,
21193
- classNames = _ref2$classNames === void 0 ? {} : _ref2$classNames;
21187
+ return function AutocompleteRecentSearch(userProps) {
21188
+ var item = userProps.item,
21189
+ children = userProps.children,
21190
+ onSelect = userProps.onSelect,
21191
+ onRemoveRecentSearch = userProps.onRemoveRecentSearch,
21192
+ _userProps$classNames = userProps.classNames,
21193
+ classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames;
21194
21194
  return createElement("div", {
21195
21195
  onClick: onSelect,
21196
21196
  className: cx('ais-AutocompleteItemWrapper ais-AutocompleteRecentSearchWrapper', classNames.root)
@@ -21219,11 +21219,11 @@
21219
21219
 
21220
21220
  function createAutocompleteSearchComponent(_ref) {
21221
21221
  var createElement = _ref.createElement;
21222
- return function AutocompleteSearch(_ref2) {
21223
- var inputProps = _ref2.inputProps,
21224
- onClear = _ref2.onClear,
21225
- query = _ref2.query,
21226
- isSearchStalled = _ref2.isSearchStalled;
21222
+ return function AutocompleteSearch(userProps) {
21223
+ var inputProps = userProps.inputProps,
21224
+ onClear = userProps.onClear,
21225
+ query = userProps.query,
21226
+ isSearchStalled = userProps.isSearchStalled;
21227
21227
  var inputRef = inputProps.ref;
21228
21228
  return createElement("form", {
21229
21229
  className: "ais-AutocompleteForm",
@@ -21285,11 +21285,11 @@
21285
21285
 
21286
21286
  function createAutocompleteSuggestionComponent(_ref) {
21287
21287
  var createElement = _ref.createElement;
21288
- return function AutocompleteSuggestion(_ref2) {
21289
- var children = _ref2.children,
21290
- onSelect = _ref2.onSelect,
21291
- _ref2$classNames = _ref2.classNames,
21292
- classNames = _ref2$classNames === void 0 ? {} : _ref2$classNames;
21288
+ return function AutocompleteSuggestion(userProps) {
21289
+ var children = userProps.children,
21290
+ onSelect = userProps.onSelect,
21291
+ _userProps$classNames = userProps.classNames,
21292
+ classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames;
21293
21293
  return createElement("div", {
21294
21294
  onClick: onSelect,
21295
21295
  className: cx('ais-AutocompleteItemWrapper', 'ais-AutocompleteSuggestionWrapper', classNames.root)