react-instantsearch 7.13.10 → 7.14.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/components/Carousel.js +3 -3
- package/dist/cjs/ui/InternalHighlight.js +2 -3
- package/dist/cjs/ui/RangeInput.js +4 -4
- package/dist/cjs/widgets/Breadcrumb.js +5 -5
- package/dist/cjs/widgets/ClearRefinements.js +5 -5
- package/dist/cjs/widgets/FrequentlyBoughtTogether.js +7 -7
- package/dist/cjs/widgets/HierarchicalMenu.js +5 -5
- package/dist/cjs/widgets/Hits.js +3 -3
- package/dist/cjs/widgets/InfiniteHits.js +5 -5
- package/dist/cjs/widgets/LookingSimilar.js +7 -7
- package/dist/cjs/widgets/Menu.js +5 -5
- package/dist/cjs/widgets/Pagination.js +5 -5
- package/dist/cjs/widgets/RangeInput.js +5 -5
- package/dist/cjs/widgets/RefinementList.js +8 -8
- package/dist/cjs/widgets/RelatedProducts.js +7 -7
- package/dist/cjs/widgets/SearchBox.js +8 -8
- package/dist/cjs/widgets/Stats.js +5 -5
- package/dist/cjs/widgets/TrendingItems.js +7 -7
- package/dist/es/components/Carousel.d.ts +2 -1
- package/dist/es/ui/Breadcrumb.d.ts +1 -1
- package/dist/es/ui/ClearRefinements.d.ts +1 -1
- package/dist/es/ui/CurrentRefinements.d.ts +1 -1
- package/dist/es/ui/HierarchicalMenu.d.ts +1 -1
- package/dist/es/ui/Highlight.d.ts +2 -1
- package/dist/es/ui/HitsPerPage.d.ts +1 -1
- package/dist/es/ui/InfiniteHits.d.ts +1 -1
- package/dist/es/ui/Menu.d.ts +1 -1
- package/dist/es/ui/Pagination.d.ts +1 -1
- package/dist/es/ui/PoweredBy.d.ts +1 -1
- package/dist/es/ui/RangeInput.d.ts +1 -1
- package/dist/es/ui/RangeInput.js +1 -1
- package/dist/es/ui/RefinementList.d.ts +1 -1
- package/dist/es/ui/SearchBox.d.ts +3 -3
- package/dist/es/ui/ShowMoreButton.d.ts +1 -1
- package/dist/es/ui/Snippet.d.ts +2 -1
- package/dist/es/ui/SortBy.d.ts +1 -1
- package/dist/es/ui/Stats.d.ts +1 -1
- package/dist/es/ui/ToggleRefinement.d.ts +1 -1
- package/dist/es/widgets/Breadcrumb.d.ts +2 -1
- package/dist/es/widgets/Breadcrumb.js +5 -5
- package/dist/es/widgets/ClearRefinements.d.ts +2 -1
- package/dist/es/widgets/ClearRefinements.js +5 -5
- package/dist/es/widgets/CurrentRefinements.d.ts +2 -1
- package/dist/es/widgets/FrequentlyBoughtTogether.d.ts +2 -1
- package/dist/es/widgets/FrequentlyBoughtTogether.js +5 -5
- package/dist/es/widgets/HierarchicalMenu.d.ts +2 -1
- package/dist/es/widgets/HierarchicalMenu.js +5 -5
- package/dist/es/widgets/Highlight.d.ts +2 -1
- package/dist/es/widgets/Hits.d.ts +1 -1
- package/dist/es/widgets/HitsPerPage.d.ts +2 -1
- package/dist/es/widgets/InfiniteHits.d.ts +1 -1
- package/dist/es/widgets/InfiniteHits.js +5 -5
- package/dist/es/widgets/LookingSimilar.d.ts +2 -1
- package/dist/es/widgets/LookingSimilar.js +5 -5
- package/dist/es/widgets/Menu.d.ts +2 -1
- package/dist/es/widgets/Menu.js +5 -5
- package/dist/es/widgets/Pagination.d.ts +2 -1
- package/dist/es/widgets/Pagination.js +5 -5
- package/dist/es/widgets/PoweredBy.d.ts +2 -1
- package/dist/es/widgets/RangeInput.d.ts +2 -1
- package/dist/es/widgets/RangeInput.js +5 -5
- package/dist/es/widgets/RefinementList.d.ts +2 -1
- package/dist/es/widgets/RefinementList.js +6 -6
- package/dist/es/widgets/RelatedProducts.d.ts +2 -1
- package/dist/es/widgets/RelatedProducts.js +5 -5
- package/dist/es/widgets/SearchBox.d.ts +2 -1
- package/dist/es/widgets/SearchBox.js +6 -6
- package/dist/es/widgets/Snippet.d.ts +2 -1
- package/dist/es/widgets/SortBy.d.ts +2 -1
- package/dist/es/widgets/Stats.d.ts +2 -1
- package/dist/es/widgets/Stats.js +5 -5
- package/dist/es/widgets/ToggleRefinement.d.ts +2 -1
- package/dist/es/widgets/TrendingItems.d.ts +2 -1
- package/dist/es/widgets/TrendingItems.js +5 -5
- package/dist/umd/ReactInstantSearch.js +2286 -2044
- 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 +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -9,19 +9,19 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactInstantsearchCore = require("react-instantsearch-core");
|
|
10
10
|
var _SearchBox = require("../ui/SearchBox");
|
|
11
11
|
var _excluded = ["queryHook", "searchAsYouType", "ignoreCompositionEvents", "translations"];
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(
|
|
19
|
-
function _toPrimitive(
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
22
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
23
23
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24
|
-
function _iterableToArrayLimit(
|
|
24
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -11,11 +11,11 @@ var _Stats = require("../ui/Stats");
|
|
|
11
11
|
var _excluded = ["translations"];
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
function ownKeys(
|
|
15
|
-
function _objectSpread(
|
|
14
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
16
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
21
|
function Stats(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -9,14 +9,14 @@ var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _reactInstantsearchCore = require("react-instantsearch-core");
|
|
11
11
|
var _excluded = ["facetName", "facetValue", "limit", "threshold", "fallbackParameters", "queryParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(
|
|
19
|
-
function _toPrimitive(
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
22
22
|
var TrendingItemsUiComponent = (0, _instantsearchUiComponents.createTrendingItemsComponent)({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { CarouselProps as CarouselUiProps } from 'instantsearch-ui-components';
|
|
2
3
|
export type CarouselProps<TObject extends Record<string, unknown>> = Omit<CarouselUiProps<TObject>, 'listRef' | 'nextButtonRef' | 'previousButtonRef' | 'carouselIdRef'>;
|
|
3
|
-
export declare function Carousel<TObject extends Record<string, unknown>>(props: CarouselProps<TObject>): JSX.Element;
|
|
4
|
+
export declare function Carousel<TObject extends Record<string, unknown>>(props: CarouselProps<TObject>): React.JSX.Element;
|
|
@@ -44,5 +44,5 @@ export type BreadcrumbProps = React.ComponentProps<'div'> & Pick<UseBreadcrumbRe
|
|
|
44
44
|
separator?: string;
|
|
45
45
|
translations: BreadcrumbTranslations;
|
|
46
46
|
};
|
|
47
|
-
export declare function Breadcrumb({ classNames, items, hasItems, createURL, onNavigate, separator, translations, ...props }: BreadcrumbProps): JSX.Element;
|
|
47
|
+
export declare function Breadcrumb({ classNames, items, hasItems, createURL, onNavigate, separator, translations, ...props }: BreadcrumbProps): React.JSX.Element;
|
|
48
48
|
export {};
|
|
@@ -23,4 +23,4 @@ export type ClearRefinementsClassNames = {
|
|
|
23
23
|
*/
|
|
24
24
|
disabledButton: string;
|
|
25
25
|
};
|
|
26
|
-
export declare function ClearRefinements({ classNames, disabled, onClick, translations, ...props }: ClearRefinementsProps): JSX.Element;
|
|
26
|
+
export declare function ClearRefinements({ classNames, disabled, onClick, translations, ...props }: ClearRefinementsProps): React.JSX.Element;
|
|
@@ -43,4 +43,4 @@ export type CurrentRefinementsClassNames = {
|
|
|
43
43
|
*/
|
|
44
44
|
delete: string;
|
|
45
45
|
};
|
|
46
|
-
export declare function CurrentRefinements({ classNames, items, hasRefinements, ...props }: CurrentRefinementsProps): JSX.Element;
|
|
46
|
+
export declare function CurrentRefinements({ classNames, items, hasRefinements, ...props }: CurrentRefinementsProps): React.JSX.Element;
|
|
@@ -69,5 +69,5 @@ export type HierarchicalMenuProps = React.ComponentProps<'div'> & HierarchicalLi
|
|
|
69
69
|
translations: ShowMoreButtonTranslations;
|
|
70
70
|
};
|
|
71
71
|
export type HierarchicalMenuTranslations = ShowMoreButtonTranslations;
|
|
72
|
-
export declare function HierarchicalMenu({ classNames, items, hasItems, onNavigate, createURL, showMore, canToggleShowMore, onToggleShowMore, isShowingMore, translations, ...props }: HierarchicalMenuProps): JSX.Element;
|
|
72
|
+
export declare function HierarchicalMenu({ classNames, items, hasItems, onNavigate, createURL, showMore, canToggleShowMore, onToggleShowMore, isShowingMore, translations, ...props }: HierarchicalMenuProps): React.JSX.Element;
|
|
73
73
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { HighlightProps as InternalHighlightProps, HighlightClassNames as InternalHighlightClassNames } from 'instantsearch-ui-components';
|
|
2
3
|
export type HighlightClassNames = InternalHighlightClassNames;
|
|
3
4
|
export type HighlightProps = Omit<InternalHighlightProps, 'classNames'> & {
|
|
4
5
|
classNames?: Partial<HighlightClassNames>;
|
|
5
6
|
};
|
|
6
|
-
export declare function Highlight({ classNames, ...props }: HighlightProps): JSX.Element;
|
|
7
|
+
export declare function Highlight({ classNames, ...props }: HighlightProps): React.JSX.Element;
|
|
@@ -20,4 +20,4 @@ export type HitsPerPageClassNames = {
|
|
|
20
20
|
*/
|
|
21
21
|
option: string;
|
|
22
22
|
};
|
|
23
|
-
export declare function HitsPerPage({ items, onChange, currentValue, classNames, ...props }: HitsPerPageProps): JSX.Element;
|
|
23
|
+
export declare function HitsPerPage({ items, onChange, currentValue, classNames, ...props }: HitsPerPageProps): React.JSX.Element;
|
|
@@ -71,4 +71,4 @@ export type InfiniteHitsTranslations = {
|
|
|
71
71
|
showPreviousButtonText: string;
|
|
72
72
|
showMoreButtonText: string;
|
|
73
73
|
};
|
|
74
|
-
export declare function InfiniteHits<THit extends Hit>({ hitComponent: HitComponent, hits, bannerComponent: BannerComponent, banner, sendEvent, isFirstPage, isLastPage, onShowPrevious, onShowMore, classNames, translations, ...props }: InfiniteHitsProps<THit>): JSX.Element;
|
|
74
|
+
export declare function InfiniteHits<THit extends Hit>({ hitComponent: HitComponent, hits, bannerComponent: BannerComponent, banner, sendEvent, isFirstPage, isLastPage, onShowPrevious, onShowMore, classNames, translations, ...props }: InfiniteHitsProps<THit>): React.JSX.Element;
|
package/dist/es/ui/Menu.d.ts
CHANGED
|
@@ -56,4 +56,4 @@ export type MenuCSSClasses = {
|
|
|
56
56
|
disabledShowMore: string;
|
|
57
57
|
};
|
|
58
58
|
export type MenuTranslations = ShowMoreButtonTranslations;
|
|
59
|
-
export declare function Menu({ items, classNames, showMore, canToggleShowMore, onToggleShowMore, isShowingMore, createURL, onRefine, translations, ...props }: MenuProps): JSX.Element;
|
|
59
|
+
export declare function Menu({ items, classNames, showMore, canToggleShowMore, onToggleShowMore, isShowingMore, createURL, onRefine, translations, ...props }: MenuProps): React.JSX.Element;
|
|
@@ -118,4 +118,4 @@ export type PaginationClassNames = {
|
|
|
118
118
|
*/
|
|
119
119
|
link: string;
|
|
120
120
|
};
|
|
121
|
-
export declare function Pagination({ pages, currentPage, nbPages, isFirstPage, isLastPage, showFirst, showPrevious, showNext, showLast, createURL, onNavigate, translations, classNames, ...props }: PaginationProps): JSX.Element;
|
|
121
|
+
export declare function Pagination({ pages, currentPage, nbPages, isFirstPage, isLastPage, showFirst, showPrevious, showNext, showLast, createURL, onNavigate, translations, classNames, ...props }: PaginationProps): React.JSX.Element;
|
|
@@ -26,4 +26,4 @@ export type PoweredByProps = React.ComponentProps<'div'> & {
|
|
|
26
26
|
url: string;
|
|
27
27
|
theme?: 'light' | 'dark';
|
|
28
28
|
};
|
|
29
|
-
export declare function PoweredBy({ classNames, url, theme, ...props }: PoweredByProps): JSX.Element;
|
|
29
|
+
export declare function PoweredBy({ classNames, url, theme, ...props }: PoweredByProps): React.JSX.Element;
|
|
@@ -56,5 +56,5 @@ export type RangeInputTranslations = {
|
|
|
56
56
|
*/
|
|
57
57
|
submitButtonText: string;
|
|
58
58
|
};
|
|
59
|
-
export declare function RangeInput({ classNames, range: { min, max }, start: [minValue, maxValue], step, disabled, onSubmit, translations, ...props }: RangeInputProps): JSX.Element;
|
|
59
|
+
export declare function RangeInput({ classNames, range: { min, max }, start: [minValue, maxValue], step, disabled, onSubmit, translations, ...props }: RangeInputProps): React.JSX.Element;
|
|
60
60
|
export {};
|
package/dist/es/ui/RangeInput.js
CHANGED
|
@@ -6,7 +6,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
6
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
-
function _iterableToArrayLimit(
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import { cx } from 'instantsearch-ui-components';
|
|
12
12
|
import React, { useState } from 'react';
|
|
@@ -70,4 +70,4 @@ export type RefinementListClassNames = {
|
|
|
70
70
|
disabledShowMore: string;
|
|
71
71
|
};
|
|
72
72
|
export type RefinementListTranslations = ShowMoreButtonTranslations;
|
|
73
|
-
export declare function RefinementList({ canRefine, items, onRefine, query, searchBox, noResults, showMore, canToggleShowMore, onToggleShowMore, isShowingMore, className, classNames, translations, ...props }: RefinementListProps): JSX.Element;
|
|
73
|
+
export declare function RefinementList({ canRefine, items, onRefine, query, searchBox, noResults, showMore, canToggleShowMore, onToggleShowMore, isShowingMore, className, classNames, translations, ...props }: RefinementListProps): React.JSX.Element;
|
|
@@ -52,8 +52,8 @@ export type SearchBoxTranslations = {
|
|
|
52
52
|
};
|
|
53
53
|
export 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' | 'autoFocus'> & {
|
|
54
54
|
onChange?: (event: React.ChangeEvent<HTMLInputElement> | React.CompositionEvent<HTMLInputElement>) => void;
|
|
55
|
-
formRef?: React.RefObject<HTMLFormElement>;
|
|
56
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
|
55
|
+
formRef?: React.RefObject<HTMLFormElement | null>;
|
|
56
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
57
57
|
isSearchStalled: boolean;
|
|
58
58
|
value: string;
|
|
59
59
|
resetIconComponent?: React.JSXElementConstructor<IconProps>;
|
|
@@ -62,4 +62,4 @@ export type SearchBoxProps = Omit<React.ComponentProps<'div'>, 'onSubmit' | 'onR
|
|
|
62
62
|
classNames?: Partial<SearchBoxClassNames>;
|
|
63
63
|
translations: SearchBoxTranslations;
|
|
64
64
|
};
|
|
65
|
-
export declare function SearchBox({ formRef, inputRef, isSearchStalled, onChange, onReset, onSubmit, placeholder, value, autoFocus, resetIconComponent: ResetIcon, submitIconComponent: SubmitIcon, loadingIconComponent: LoadingIcon, classNames, translations, ...props }: SearchBoxProps): JSX.Element;
|
|
65
|
+
export declare function SearchBox({ formRef, inputRef, isSearchStalled, onChange, onReset, onSubmit, placeholder, value, autoFocus, resetIconComponent: ResetIcon, submitIconComponent: SubmitIcon, loadingIconComponent: LoadingIcon, classNames, translations, ...props }: SearchBoxProps): React.JSX.Element;
|
|
@@ -15,5 +15,5 @@ export type ShowMoreButtonTranslations = {
|
|
|
15
15
|
*/
|
|
16
16
|
showMoreButtonText: (options: ShowMoreButtonTextOptions) => string;
|
|
17
17
|
};
|
|
18
|
-
export declare function ShowMoreButton({ isShowingMore, translations, ...props }: ShowMoreButtonProps): JSX.Element;
|
|
18
|
+
export declare function ShowMoreButton({ isShowingMore, translations, ...props }: ShowMoreButtonProps): React.JSX.Element;
|
|
19
19
|
export {};
|
package/dist/es/ui/Snippet.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { HighlightProps as InternalHighlightProps, HighlightClassNames as InternalHighlightClassNames } from 'instantsearch-ui-components';
|
|
2
3
|
export type SnippetClassNames = InternalHighlightClassNames;
|
|
3
4
|
export type SnippetProps = Omit<InternalHighlightProps, 'classNames'> & {
|
|
4
5
|
classNames?: Partial<SnippetClassNames>;
|
|
5
6
|
};
|
|
6
|
-
export declare function Snippet({ classNames, ...props }: SnippetProps): JSX.Element;
|
|
7
|
+
export declare function Snippet({ classNames, ...props }: SnippetProps): React.JSX.Element;
|
package/dist/es/ui/SortBy.d.ts
CHANGED
|
@@ -18,4 +18,4 @@ export type SortByClassNames = {
|
|
|
18
18
|
*/
|
|
19
19
|
option: string;
|
|
20
20
|
};
|
|
21
|
-
export declare function SortBy({ items, value, onChange, classNames, ...props }: SortByProps): JSX.Element;
|
|
21
|
+
export declare function SortBy({ items, value, onChange, classNames, ...props }: SortByProps): React.JSX.Element;
|
package/dist/es/ui/Stats.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export type StatsClassNames = {
|
|
|
17
17
|
*/
|
|
18
18
|
root: string;
|
|
19
19
|
};
|
|
20
|
-
export declare function Stats({ classNames, nbHits, processingTimeMS, nbSortedHits, areHitsSorted, translations, ...props }: StatsProps): JSX.Element;
|
|
20
|
+
export declare function Stats({ classNames, nbHits, processingTimeMS, nbSortedHits, areHitsSorted, translations, ...props }: StatsProps): React.JSX.Element;
|
|
@@ -22,4 +22,4 @@ export type ToggleRefinementProps = Omit<React.ComponentProps<'div'>, 'onChange'
|
|
|
22
22
|
onChange: (isChecked: boolean) => void;
|
|
23
23
|
label: string;
|
|
24
24
|
};
|
|
25
|
-
export declare function ToggleRefinement({ classNames, checked, onChange, label, ...props }: ToggleRefinementProps): JSX.Element;
|
|
25
|
+
export declare function ToggleRefinement({ classNames, checked, onChange, label, ...props }: ToggleRefinementProps): React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BreadcrumbProps as BreadcrumbUiProps } from '../ui/Breadcrumb';
|
|
2
3
|
import type { UseBreadcrumbProps } from 'react-instantsearch-core';
|
|
3
4
|
type UiProps = Pick<BreadcrumbUiProps, 'items' | 'hasItems' | 'createURL' | 'onNavigate' | 'translations'>;
|
|
4
5
|
export type BreadcrumbProps = Omit<BreadcrumbUiProps, keyof UiProps> & Omit<UseBreadcrumbProps, 'separator'> & {
|
|
5
6
|
translations?: Partial<UiProps['translations']>;
|
|
6
7
|
};
|
|
7
|
-
export declare function Breadcrumb({ attributes, rootPath, separator, transformItems, translations, ...props }: BreadcrumbProps): JSX.Element;
|
|
8
|
+
export declare function Breadcrumb({ attributes, rootPath, separator, transformItems, translations, ...props }: BreadcrumbProps): React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["attributes", "rootPath", "separator", "transformItems", "translations"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React from 'react';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ClearRefinementsProps as ClearRefinementsUiComponentProps } from '../ui/ClearRefinements';
|
|
2
3
|
import type { UseClearRefinementsProps } from 'react-instantsearch-core';
|
|
3
4
|
type UiProps = Pick<ClearRefinementsUiComponentProps, 'disabled' | 'onClick' | 'translations'>;
|
|
4
5
|
export type ClearRefinementsProps = Omit<ClearRefinementsUiComponentProps, keyof UiProps> & UseClearRefinementsProps & {
|
|
5
6
|
translations?: Partial<UiProps['translations']>;
|
|
6
7
|
};
|
|
7
|
-
export declare function ClearRefinements({ includedAttributes, excludedAttributes, transformItems, translations, ...props }: ClearRefinementsProps): JSX.Element;
|
|
8
|
+
export declare function ClearRefinements({ includedAttributes, excludedAttributes, transformItems, translations, ...props }: ClearRefinementsProps): React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["includedAttributes", "excludedAttributes", "transformItems", "translations"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React from 'react';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { CurrentRefinementsProps as CurrentRefinementsUiComponentProps } from '../ui/CurrentRefinements';
|
|
2
3
|
import type { UseCurrentRefinementsProps } from 'react-instantsearch-core';
|
|
3
4
|
type UiProps = Pick<CurrentRefinementsUiComponentProps, 'items' | 'hasRefinements'>;
|
|
4
5
|
export type CurrentRefinementsProps = Omit<CurrentRefinementsUiComponentProps, keyof UiProps> & UseCurrentRefinementsProps;
|
|
5
|
-
export declare function CurrentRefinements({ includedAttributes, excludedAttributes, transformItems, ...props }: CurrentRefinementsProps): JSX.Element;
|
|
6
|
+
export declare function CurrentRefinements({ includedAttributes, excludedAttributes, transformItems, ...props }: CurrentRefinementsProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { FrequentlyBoughtTogetherProps as FrequentlyBoughtTogetherPropsUiComponentProps } from 'instantsearch-ui-components';
|
|
2
3
|
import type { AlgoliaHit, BaseHit } from 'instantsearch.js';
|
|
3
4
|
import type { UseFrequentlyBoughtTogetherProps } from 'react-instantsearch-core';
|
|
@@ -8,5 +9,5 @@ export type FrequentlyBoughtTogetherProps<THit extends BaseHit> = Omit<Frequentl
|
|
|
8
9
|
emptyComponent?: FrequentlyBoughtTogetherPropsUiComponentProps<THit>['emptyComponent'];
|
|
9
10
|
layoutComponent?: FrequentlyBoughtTogetherPropsUiComponentProps<THit>['layout'];
|
|
10
11
|
};
|
|
11
|
-
export declare function FrequentlyBoughtTogether<THit extends BaseHit = BaseHit>({ objectIDs, limit, threshold, queryParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: FrequentlyBoughtTogetherProps<THit>): JSX.Element;
|
|
12
|
+
export declare function FrequentlyBoughtTogether<THit extends BaseHit = BaseHit>({ objectIDs, limit, threshold, queryParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: FrequentlyBoughtTogetherProps<THit>): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["objectIDs", "limit", "threshold", "queryParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import { createFrequentlyBoughtTogetherComponent } from 'instantsearch-ui-components';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { HierarchicalMenuProps as HierarchicalMenuUiComponentProps } from '../ui/HierarchicalMenu';
|
|
2
3
|
import type { UseHierarchicalMenuProps } from 'react-instantsearch-core';
|
|
3
4
|
type UiProps = Pick<HierarchicalMenuUiComponentProps, 'items' | 'createURL' | 'hasItems' | 'onNavigate' | 'canToggleShowMore' | 'onToggleShowMore' | 'isShowingMore' | 'translations'>;
|
|
4
5
|
export type HierarchicalMenuProps = Omit<HierarchicalMenuUiComponentProps, keyof UiProps> & UseHierarchicalMenuProps & {
|
|
5
6
|
translations?: Partial<UiProps['translations']>;
|
|
6
7
|
};
|
|
7
|
-
export declare function HierarchicalMenu({ attributes, limit, rootPath, separator, showMore, showMoreLimit, showParentLevel, sortBy, transformItems, translations, ...props }: HierarchicalMenuProps): JSX.Element;
|
|
8
|
+
export declare function HierarchicalMenu({ attributes, limit, rootPath, separator, showMore, showMoreLimit, showParentLevel, sortBy, transformItems, translations, ...props }: HierarchicalMenuProps): React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["attributes", "limit", "rootPath", "separator", "showMore", "showMoreLimit", "showParentLevel", "sortBy", "transformItems", "translations"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React from 'react';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { PartialKeys } from '../types';
|
|
2
3
|
import type { HighlightProps as HighlightUiComponentProps } from '../ui/Highlight';
|
|
3
4
|
import type { BaseHit, Hit } from 'instantsearch.js';
|
|
@@ -5,4 +6,4 @@ export type HighlightProps<THit extends Hit<BaseHit>> = {
|
|
|
5
6
|
hit: THit;
|
|
6
7
|
attribute: keyof THit | string[];
|
|
7
8
|
} & PartialKeys<Omit<HighlightUiComponentProps, 'parts'>, 'highlightedTagName' | 'nonHighlightedTagName' | 'separator'>;
|
|
8
|
-
export declare function Highlight<THit extends Hit<BaseHit>>({ hit, attribute, highlightedTagName, nonHighlightedTagName, separator, ...props }: HighlightProps<THit>): JSX.Element;
|
|
9
|
+
export declare function Highlight<THit extends Hit<BaseHit>>({ hit, attribute, highlightedTagName, nonHighlightedTagName, separator, ...props }: HighlightProps<THit>): React.JSX.Element;
|
|
@@ -15,5 +15,5 @@ export type HitsProps<THit extends BaseHit> = Omit<HitsUiComponentProps<Hit<THit
|
|
|
15
15
|
className: string;
|
|
16
16
|
}> | false;
|
|
17
17
|
} & UseHitsProps<THit>;
|
|
18
|
-
export declare function Hits<THit extends BaseHit = BaseHit>({ escapeHTML, transformItems, hitComponent: HitComponent, bannerComponent: BannerComponent, ...props }: HitsProps<THit>): JSX.Element;
|
|
18
|
+
export declare function Hits<THit extends BaseHit = BaseHit>({ escapeHTML, transformItems, hitComponent: HitComponent, bannerComponent: BannerComponent, ...props }: HitsProps<THit>): React.JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { HitsPerPageProps as HitsPerPageUiComponentProps } from '../ui/HitsPerPage';
|
|
2
3
|
import type { UseHitsPerPageProps } from 'react-instantsearch-core';
|
|
3
4
|
type UiProps = Pick<HitsPerPageUiComponentProps, 'items' | 'onChange' | 'currentValue'>;
|
|
4
5
|
export type HitsPerPageProps = Omit<HitsPerPageUiComponentProps, keyof UiProps> & UseHitsPerPageProps;
|
|
5
|
-
export declare function HitsPerPage({ items: userItems, transformItems, ...props }: HitsPerPageProps): JSX.Element;
|
|
6
|
+
export declare function HitsPerPage({ items: userItems, transformItems, ...props }: HitsPerPageProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -17,5 +17,5 @@ export type InfiniteHitsProps<THit extends BaseHit = BaseHit> = Omit<InfiniteHit
|
|
|
17
17
|
showPrevious?: boolean;
|
|
18
18
|
translations?: Partial<UiProps<THit>['translations']>;
|
|
19
19
|
};
|
|
20
|
-
export declare function InfiniteHits<THit extends BaseHit = BaseHit>({ showPrevious: shouldShowPrevious, cache, escapeHTML, showPrevious: userShowPrevious, transformItems, translations, bannerComponent: BannerComponent, ...props }: InfiniteHitsProps<THit>): JSX.Element;
|
|
20
|
+
export declare function InfiniteHits<THit extends BaseHit = BaseHit>({ showPrevious: shouldShowPrevious, cache, escapeHTML, showPrevious: userShowPrevious, transformItems, translations, bannerComponent: BannerComponent, ...props }: InfiniteHitsProps<THit>): React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["showPrevious", "cache", "escapeHTML", "showPrevious", "transformItems", "translations", "bannerComponent"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React from 'react';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { LookingSimilarProps as LookingSimilarPropsUiComponentProps } from 'instantsearch-ui-components';
|
|
2
3
|
import type { AlgoliaHit, BaseHit } from 'instantsearch.js';
|
|
3
4
|
import type { UseLookingSimilarProps } from 'react-instantsearch-core';
|
|
@@ -8,5 +9,5 @@ export type LookingSimilarProps<THit extends BaseHit> = Omit<LookingSimilarProps
|
|
|
8
9
|
emptyComponent?: LookingSimilarPropsUiComponentProps<THit>['emptyComponent'];
|
|
9
10
|
layoutComponent?: LookingSimilarPropsUiComponentProps<THit>['layout'];
|
|
10
11
|
};
|
|
11
|
-
export declare function LookingSimilar<THit extends BaseHit = BaseHit>({ objectIDs, limit, threshold, queryParameters, fallbackParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: LookingSimilarProps<THit>): JSX.Element;
|
|
12
|
+
export declare function LookingSimilar<THit extends BaseHit = BaseHit>({ objectIDs, limit, threshold, queryParameters, fallbackParameters, escapeHTML, transformItems, itemComponent, headerComponent, emptyComponent, layoutComponent, ...props }: LookingSimilarProps<THit>): React.JSX.Element;
|
|
12
13
|
export {};
|