Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-instantsearch-hooks-web

Package Overview
Dependencies
Maintainers
6
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-instantsearch-hooks-web - npm Package Compare versions

Comparing version 6.31.1 to 6.32.0

6

dist/cjs/ui/SearchBox.js

@@ -18,3 +18,3 @@ "use strict";

var _excluded = ["inputRef", "isSearchStalled", "onChange", "onReset", "onSubmit", "placeholder", "value", "resetIconComponent", "submitIconComponent", "loadingIconComponent", "classNames", "translations"];
var _excluded = ["inputRef", "isSearchStalled", "onChange", "onReset", "onSubmit", "placeholder", "value", "autoFocus", "resetIconComponent", "submitIconComponent", "loadingIconComponent", "classNames", "translations"];

@@ -84,2 +84,3 @@ function DefaultSubmitIcon(_ref) {

value = _ref4.value,
autoFocus = _ref4.autoFocus,
_ref4$resetIconCompon = _ref4.resetIconComponent,

@@ -138,3 +139,4 @@ ResetIcon = _ref4$resetIconCompon === void 0 ? DefaultResetIcon : _ref4$resetIconCompon,

value: value,
onChange: onChange
onChange: onChange,
autoFocus: autoFocus
}), /*#__PURE__*/_react.default.createElement("button", {

@@ -141,0 +143,0 @@ className: (0, _cx.cx)('ais-SearchBox-submit', classNames.submit),

@@ -53,3 +53,3 @@ import React from 'react';

};
export declare type SearchBoxProps = Omit<React.ComponentProps<'div'>, 'onSubmit' | 'onReset' | 'onChange'> & Pick<React.ComponentProps<'form'>, 'onSubmit'> & Required<Pick<React.ComponentProps<'form'>, 'onReset'>> & Pick<React.ComponentProps<'input'>, 'placeholder' | 'onChange'> & {
export declare type SearchBoxProps = Omit<React.ComponentProps<'div'>, 'onSubmit' | 'onReset' | 'onChange'> & Pick<React.ComponentProps<'form'>, 'onSubmit'> & Required<Pick<React.ComponentProps<'form'>, 'onReset'>> & Pick<React.ComponentProps<'input'>, 'placeholder' | 'onChange' | 'autoFocus'> & {
inputRef: React.RefObject<HTMLInputElement>;

@@ -64,2 +64,2 @@ isSearchStalled: boolean;

};
export declare function SearchBox({ inputRef, isSearchStalled, onChange, onReset, onSubmit, placeholder, value, resetIconComponent: ResetIcon, submitIconComponent: SubmitIcon, loadingIconComponent: LoadingIcon, classNames, translations, ...props }: SearchBoxProps): JSX.Element;
export declare function SearchBox({ inputRef, isSearchStalled, onChange, onReset, onSubmit, placeholder, value, autoFocus, resetIconComponent: ResetIcon, submitIconComponent: SubmitIcon, loadingIconComponent: LoadingIcon, classNames, translations, ...props }: SearchBoxProps): JSX.Element;
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["inputRef", "isSearchStalled", "onChange", "onReset", "onSubmit", "placeholder", "value", "resetIconComponent", "submitIconComponent", "loadingIconComponent", "classNames", "translations"];
var _excluded = ["inputRef", "isSearchStalled", "onChange", "onReset", "onSubmit", "placeholder", "value", "autoFocus", "resetIconComponent", "submitIconComponent", "loadingIconComponent", "classNames", "translations"];
import React from 'react';

@@ -70,2 +70,3 @@ import { cx } from "./lib/cx.js";

value = _ref4.value,
autoFocus = _ref4.autoFocus,
_ref4$resetIconCompon = _ref4.resetIconComponent,

@@ -124,3 +125,4 @@ ResetIcon = _ref4$resetIconCompon === void 0 ? DefaultResetIcon : _ref4$resetIconCompon,

value: value,
onChange: onChange
onChange: onChange,
autoFocus: autoFocus
}), /*#__PURE__*/React.createElement("button", {

@@ -127,0 +129,0 @@ className: cx('ais-SearchBox-submit', classNames.submit),

import type { SearchBoxProps as SearchBoxUiComponentProps } from '../ui/SearchBox';
import type { UseSearchBoxProps } from 'react-instantsearch-hooks';
declare type UiProps = Pick<SearchBoxUiComponentProps, 'inputRef' | 'isSearchStalled' | 'onChange' | 'onReset' | 'onSubmit' | 'value' | 'translations'>;
export declare type SearchBoxProps = Omit<SearchBoxUiComponentProps, Exclude<keyof UiProps, 'onSubmit'>> & UseSearchBoxProps & {
declare type UiProps = Pick<SearchBoxUiComponentProps, 'inputRef' | 'isSearchStalled' | 'onChange' | 'onReset' | 'onSubmit' | 'value' | 'autoFocus' | 'translations'>;
export declare type SearchBoxProps = Omit<SearchBoxUiComponentProps, Exclude<keyof UiProps, 'onSubmit' | 'autoFocus'>> & UseSearchBoxProps & {
/**

@@ -6,0 +6,0 @@ * Whether to trigger the search only on submit.

{
"name": "react-instantsearch-hooks-web",
"version": "6.31.1",
"version": "6.32.0",
"description": "⚡ Lightning-fast search for React, by Algolia",

@@ -51,3 +51,3 @@ "source": "src/index.ts",

"instantsearch.js": "^4.43.1",
"react-instantsearch-hooks": "6.31.1"
"react-instantsearch-hooks": "6.32.0"
},

@@ -54,0 +54,0 @@ "peerDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc