react-instantsearch 7.20.1 → 7.21.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/cjs/index.js +11 -0
- package/dist/cjs/widgets/Chat.js +0 -2
- package/dist/es/components/AutocompleteSearch.d.ts +2 -1
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +3 -1
- package/dist/es/widgets/Chat.js +0 -2
- package/dist/umd/ReactInstantSearch.js +19 -19
- package/dist/umd/ReactInstantSearch.js.map +1 -1
- package/dist/umd/ReactInstantSearch.min.js +1 -1
- package/dist/umd/ReactInstantSearch.min.js.map +1 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -35,4 +35,15 @@ Object.keys(_components).forEach(function (key) {
|
|
|
35
35
|
return _components[key];
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
});
|
|
39
|
+
var _useStickToBottom = require("./lib/useStickToBottom");
|
|
40
|
+
Object.keys(_useStickToBottom).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _useStickToBottom[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _useStickToBottom[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
38
49
|
});
|
package/dist/cjs/widgets/Chat.js
CHANGED
|
@@ -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:
|
|
4
|
+
inputProps: ComponentProps<'input'>;
|
|
4
5
|
clearQuery: () => void;
|
|
5
6
|
};
|
|
6
7
|
export declare function AutocompleteSearch({ inputProps, clearQuery, }: AutocompleteSearchProps): React.JSX.Element;
|
package/dist/es/index.d.ts
CHANGED
package/dist/es/index.js
CHANGED
package/dist/es/widgets/Chat.js
CHANGED
|
@@ -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.
|
|
10
|
+
var version = '7.21.0';
|
|
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.
|
|
13358
|
+
var version$3 = '4.85.2';
|
|
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(
|
|
21188
|
-
var item =
|
|
21189
|
-
children =
|
|
21190
|
-
onSelect =
|
|
21191
|
-
onRemoveRecentSearch =
|
|
21192
|
-
|
|
21193
|
-
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(
|
|
21223
|
-
var inputProps =
|
|
21224
|
-
onClear =
|
|
21225
|
-
query =
|
|
21226
|
-
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(
|
|
21289
|
-
var children =
|
|
21290
|
-
onSelect =
|
|
21291
|
-
|
|
21292
|
-
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)
|