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.25.0 to 6.26.0

6

dist/cjs/ui/Hits.js

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

var _excluded = ["hits", "hitComponent", "classNames"];
var _excluded = ["hits", "sendEvent", "hitComponent", "classNames"];

@@ -32,2 +32,3 @@ function DefaultHitComponent(_ref) {

var hits = _ref2.hits,
sendEvent = _ref2.sendEvent,
_ref2$hitComponent = _ref2.hitComponent,

@@ -47,5 +48,6 @@ HitComponent = _ref2$hitComponent === void 0 ? DefaultHitComponent : _ref2$hitComponent,

}, /*#__PURE__*/_react.default.createElement(HitComponent, {
hit: hit
hit: hit,
sendEvent: sendEvent
}));
})));
}

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

var _excluded = ["hitComponent", "hits", "isFirstPage", "isLastPage", "onShowPrevious", "onShowMore", "classNames", "translations"];
var _excluded = ["hitComponent", "hits", "sendEvent", "isFirstPage", "isLastPage", "onShowPrevious", "onShowMore", "classNames", "translations"];

@@ -34,2 +34,3 @@ function DefaultHitComponent(_ref) {

hits = _ref2.hits,
sendEvent = _ref2.sendEvent,
isFirstPage = _ref2.isFirstPage,

@@ -56,3 +57,4 @@ isLastPage = _ref2.isLastPage,

}, /*#__PURE__*/_react.default.createElement(HitComponent, {
hit: hit
hit: hit,
sendEvent: sendEvent
}));

@@ -59,0 +61,0 @@ })), /*#__PURE__*/_react.default.createElement("button", {

@@ -22,8 +22,10 @@ "use strict";

}),
hits = _useHits.hits;
hits = _useHits.hits,
sendEvent = _useHits.sendEvent;
var uiProps = {
hits: hits
hits: hits,
sendEvent: sendEvent
};
return /*#__PURE__*/_react.default.createElement(_Hits.Hits, (0, _extends2.default)({}, props, uiProps));
}

@@ -31,2 +31,3 @@ "use strict";

hits = _useInfiniteHits.hits,
sendEvent = _useInfiniteHits.sendEvent,
showPrevious = _useInfiniteHits.showPrevious,

@@ -39,2 +40,3 @@ showMore = _useInfiniteHits.showMore,

hits: hits,
sendEvent: sendEvent,
onShowPrevious: shouldShowPrevious ? showPrevious : undefined,

@@ -41,0 +43,0 @@ onShowMore: showMore,

import React from 'react';
import type { Hit } from 'instantsearch.js';
import type { SendEventForHits } from 'instantsearch.js/es/lib/utils';
export declare type HitsProps<THit> = React.ComponentProps<'div'> & {
hits: THit[];
sendEvent: SendEventForHits;
hitComponent?: React.JSXElementConstructor<{
hit: THit;
sendEvent: SendEventForHits;
}>;

@@ -28,2 +31,2 @@ classNames?: Partial<HitsClassNames>;

};
export declare function Hits<THit extends Hit>({ hits, hitComponent: HitComponent, classNames, ...props }: HitsProps<THit>): JSX.Element;
export declare function Hits<THit extends Hit>({ hits, sendEvent, hitComponent: HitComponent, classNames, ...props }: HitsProps<THit>): JSX.Element;
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["hits", "hitComponent", "classNames"];
var _excluded = ["hits", "sendEvent", "hitComponent", "classNames"];
import React from 'react';

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

var hits = _ref2.hits,
sendEvent = _ref2.sendEvent,
_ref2$hitComponent = _ref2.hitComponent,

@@ -34,5 +35,6 @@ HitComponent = _ref2$hitComponent === void 0 ? DefaultHitComponent : _ref2$hitComponent,

}, /*#__PURE__*/React.createElement(HitComponent, {
hit: hit
hit: hit,
sendEvent: sendEvent
}));
})));
}
import React from 'react';
import type { Hit } from 'instantsearch.js';
import type { SendEventForHits } from 'instantsearch.js/es/lib/utils';
export declare type InfiniteHitsProps<THit> = React.ComponentProps<'div'> & {
hits: THit[];
sendEvent: SendEventForHits;
hitComponent?: React.JSXElementConstructor<{
hit: THit;
sendEvent: SendEventForHits;
}>;
hits: THit[];
isFirstPage: boolean;

@@ -53,2 +56,2 @@ isLastPage: boolean;

};
export declare function InfiniteHits<THit extends Hit>({ hitComponent: HitComponent, hits, isFirstPage, isLastPage, onShowPrevious, onShowMore, classNames, translations, ...props }: InfiniteHitsProps<THit>): JSX.Element;
export declare function InfiniteHits<THit extends Hit>({ hitComponent: HitComponent, hits, sendEvent, isFirstPage, isLastPage, onShowPrevious, onShowMore, classNames, translations, ...props }: InfiniteHitsProps<THit>): JSX.Element;
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["hitComponent", "hits", "isFirstPage", "isLastPage", "onShowPrevious", "onShowMore", "classNames", "translations"];
var _excluded = ["hitComponent", "hits", "sendEvent", "isFirstPage", "isLastPage", "onShowPrevious", "onShowMore", "classNames", "translations"];
import React from 'react';

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

hits = _ref2.hits,
sendEvent = _ref2.sendEvent,
isFirstPage = _ref2.isFirstPage,

@@ -43,3 +44,4 @@ isLastPage = _ref2.isLastPage,

}, /*#__PURE__*/React.createElement(HitComponent, {
hit: hit
hit: hit,
sendEvent: sendEvent
}));

@@ -46,0 +48,0 @@ })), /*#__PURE__*/React.createElement("button", {

import type { HitsProps as HitsUiComponentProps } from '../ui/Hits';
import type { Hit, BaseHit } from 'instantsearch.js';
import type { UseHitsProps } from 'react-instantsearch-hooks';
declare type UiProps<THit extends BaseHit> = Pick<HitsUiComponentProps<Hit<THit>>, 'hits'>;
declare type UiProps<THit extends BaseHit> = Pick<HitsUiComponentProps<Hit<THit>>, 'hits' | 'sendEvent'>;
export declare type HitsProps<THit extends BaseHit> = Omit<HitsUiComponentProps<Hit<THit>>, keyof UiProps<THit>> & UseHitsProps<THit>;
export declare function Hits<THit extends BaseHit = BaseHit>(props: HitsProps<THit>): JSX.Element;
export {};

@@ -9,8 +9,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";

}),
hits = _useHits.hits;
hits = _useHits.hits,
sendEvent = _useHits.sendEvent;
var uiProps = {
hits: hits
hits: hits,
sendEvent: sendEvent
};
return /*#__PURE__*/React.createElement(HitsUiComponent, _extends({}, props, uiProps));
}
import type { InfiniteHitsProps as InfiniteHitsUiComponentProps } from '../ui/InfiniteHits';
import type { BaseHit, Hit } from 'instantsearch.js';
import type { UseInfiniteHitsProps } from 'react-instantsearch-hooks';
declare type UiProps<THit extends BaseHit = BaseHit> = Pick<InfiniteHitsUiComponentProps<Hit<THit>>, 'hits' | 'onShowPrevious' | 'onShowMore' | 'isFirstPage' | 'isLastPage' | 'translations'>;
declare type UiProps<THit extends BaseHit = BaseHit> = Pick<InfiniteHitsUiComponentProps<Hit<THit>>, 'hits' | 'sendEvent' | 'onShowPrevious' | 'onShowMore' | 'isFirstPage' | 'isLastPage' | 'translations'>;
export declare type InfiniteHitsProps<THit extends BaseHit = BaseHit> = Omit<InfiniteHitsUiComponentProps<Hit<THit>>, keyof UiProps<THit>> & UseInfiniteHitsProps<THit> & {

@@ -6,0 +6,0 @@ /**

@@ -16,2 +16,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

hits = _useInfiniteHits.hits,
sendEvent = _useInfiniteHits.sendEvent,
showPrevious = _useInfiniteHits.showPrevious,

@@ -24,2 +25,3 @@ showMore = _useInfiniteHits.showMore,

hits: hits,
sendEvent: sendEvent,
onShowPrevious: shouldShowPrevious ? showPrevious : undefined,

@@ -26,0 +28,0 @@ onShowMore: showMore,

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

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

"instantsearch.js": "^4.40.1",
"react-instantsearch-hooks": "6.25.0"
"react-instantsearch-hooks": "6.26.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