react-instantsearch 7.16.3 → 7.18.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/AutocompleteSearch.js +38 -0
- package/dist/cjs/components/Carousel.js +21 -4
- package/dist/cjs/index.umd.js +38 -0
- package/dist/cjs/lib/useStickToBottom.js +20 -0
- package/dist/cjs/ui/Breadcrumb.js +4 -4
- package/dist/cjs/ui/ClearRefinements.js +4 -4
- package/dist/cjs/ui/CurrentRefinements.js +4 -4
- package/dist/cjs/ui/HierarchicalMenu.js +4 -4
- package/dist/cjs/ui/Highlight.js +4 -4
- package/dist/cjs/ui/HitsPerPage.js +4 -4
- package/dist/cjs/ui/InfiniteHits.js +4 -4
- package/dist/cjs/ui/Menu.js +4 -4
- package/dist/cjs/ui/Pagination.js +4 -4
- package/dist/cjs/ui/PoweredBy.js +4 -4
- package/dist/cjs/ui/RangeInput.js +8 -9
- package/dist/cjs/ui/RefinementList.js +4 -4
- package/dist/cjs/ui/SearchBox.js +9 -8
- package/dist/cjs/ui/ShowMoreButton.js +3 -3
- package/dist/cjs/ui/Snippet.js +4 -4
- package/dist/cjs/ui/SortBy.js +4 -4
- package/dist/cjs/ui/Stats.js +4 -4
- package/dist/cjs/ui/ToggleRefinement.js +4 -4
- package/dist/cjs/widgets/Autocomplete.js +169 -0
- package/dist/cjs/widgets/Breadcrumb.js +6 -6
- package/dist/cjs/widgets/Chat.js +203 -0
- package/dist/cjs/widgets/ClearRefinements.js +6 -6
- package/dist/cjs/widgets/CurrentRefinements.js +4 -4
- package/dist/cjs/widgets/FrequentlyBoughtTogether.js +9 -8
- package/dist/cjs/widgets/HierarchicalMenu.js +6 -6
- package/dist/cjs/widgets/Highlight.js +4 -4
- package/dist/cjs/widgets/Hits.js +4 -5
- package/dist/cjs/widgets/HitsPerPage.js +4 -4
- package/dist/cjs/widgets/InfiniteHits.js +6 -6
- package/dist/cjs/widgets/LookingSimilar.js +6 -7
- package/dist/cjs/widgets/Menu.js +6 -6
- package/dist/cjs/widgets/Pagination.js +6 -6
- package/dist/cjs/widgets/PoweredBy.js +2 -2
- package/dist/cjs/widgets/RangeInput.js +6 -6
- package/dist/cjs/widgets/RefinementList.js +10 -11
- package/dist/cjs/widgets/RelatedProducts.js +6 -7
- package/dist/cjs/widgets/SearchBox.js +10 -11
- package/dist/cjs/widgets/Snippet.js +4 -4
- package/dist/cjs/widgets/SortBy.js +4 -4
- package/dist/cjs/widgets/Stats.js +6 -6
- package/dist/cjs/widgets/ToggleRefinement.js +4 -4
- package/dist/cjs/widgets/TrendingItems.js +6 -7
- package/dist/cjs/widgets/chat/tools/SearchIndexTool.js +119 -0
- package/dist/cjs/widgets/index.js +33 -11
- package/dist/cjs/widgets/index.umd.js +294 -0
- package/dist/es/components/AutocompleteSearch.d.ts +6 -0
- package/dist/es/components/AutocompleteSearch.js +31 -0
- package/dist/es/components/Carousel.d.ts +1 -1
- package/dist/es/components/Carousel.js +21 -3
- package/dist/es/index.umd.d.ts +3 -0
- package/dist/es/index.umd.js +3 -0
- package/dist/es/lib/useStickToBottom.d.ts +1 -0
- package/dist/es/lib/useStickToBottom.js +14 -0
- package/dist/es/ui/Breadcrumb.js +3 -3
- package/dist/es/ui/ClearRefinements.js +3 -3
- package/dist/es/ui/CurrentRefinements.js +3 -3
- package/dist/es/ui/HierarchicalMenu.js +3 -3
- package/dist/es/ui/Highlight.js +3 -3
- package/dist/es/ui/HitsPerPage.js +3 -3
- package/dist/es/ui/InfiniteHits.js +3 -3
- package/dist/es/ui/Menu.js +3 -3
- package/dist/es/ui/Pagination.js +3 -3
- package/dist/es/ui/PoweredBy.js +3 -3
- package/dist/es/ui/RangeInput.js +7 -7
- package/dist/es/ui/RefinementList.js +3 -3
- package/dist/es/ui/SearchBox.d.ts +2 -1
- package/dist/es/ui/SearchBox.js +8 -7
- package/dist/es/ui/ShowMoreButton.js +2 -2
- package/dist/es/ui/Snippet.js +3 -3
- package/dist/es/ui/SortBy.js +3 -3
- package/dist/es/ui/Stats.js +3 -3
- package/dist/es/ui/ToggleRefinement.js +3 -3
- package/dist/es/widgets/Autocomplete.d.ts +20 -0
- package/dist/es/widgets/Autocomplete.js +162 -0
- package/dist/es/widgets/Breadcrumb.js +5 -5
- package/dist/es/widgets/Chat.d.ts +45 -0
- package/dist/es/widgets/Chat.js +184 -0
- package/dist/es/widgets/ClearRefinements.js +5 -5
- package/dist/es/widgets/CurrentRefinements.js +3 -3
- package/dist/es/widgets/FrequentlyBoughtTogether.d.ts +1 -1
- package/dist/es/widgets/FrequentlyBoughtTogether.js +8 -6
- package/dist/es/widgets/HierarchicalMenu.js +5 -5
- package/dist/es/widgets/Highlight.js +3 -3
- package/dist/es/widgets/Hits.js +3 -3
- package/dist/es/widgets/HitsPerPage.js +3 -3
- package/dist/es/widgets/InfiniteHits.js +5 -5
- package/dist/es/widgets/LookingSimilar.js +5 -5
- package/dist/es/widgets/Menu.js +5 -5
- package/dist/es/widgets/Pagination.js +5 -5
- package/dist/es/widgets/PoweredBy.js +1 -1
- package/dist/es/widgets/RangeInput.js +5 -5
- package/dist/es/widgets/RefinementList.js +9 -9
- package/dist/es/widgets/RelatedProducts.js +5 -5
- package/dist/es/widgets/SearchBox.js +9 -9
- package/dist/es/widgets/Snippet.js +3 -3
- package/dist/es/widgets/SortBy.js +3 -3
- package/dist/es/widgets/Stats.js +5 -5
- package/dist/es/widgets/ToggleRefinement.js +3 -3
- package/dist/es/widgets/TrendingItems.js +5 -5
- package/dist/es/widgets/chat/tools/SearchIndexTool.d.ts +5 -0
- package/dist/es/widgets/chat/tools/SearchIndexTool.js +113 -0
- package/dist/es/widgets/index.d.ts +3 -1
- package/dist/es/widgets/index.js +4 -2
- package/dist/es/widgets/index.umd.d.ts +27 -0
- package/dist/es/widgets/index.umd.js +29 -0
- package/dist/umd/ReactInstantSearch.js +2790 -2345
- 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
|
@@ -1,19 +1,19 @@
|
|
|
1
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 = ["searchable", "searchablePlaceholder", "searchableSelectOnSubmit", "attribute", "operator", "limit", "showMore", "showMoreLimit", "sortBy", "escapeFacetValues", "transformItems", "translations"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
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
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
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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
|
-
function _slicedToArray(
|
|
9
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
10
10
|
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."); }
|
|
11
|
-
function _unsupportedIterableToArray(
|
|
12
|
-
function _arrayLikeToArray(
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
13
|
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; } }
|
|
14
|
-
function _arrayWithHoles(
|
|
15
|
-
function _objectWithoutProperties(
|
|
16
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17
17
|
import React, { useRef, useState } from 'react';
|
|
18
18
|
import { useRefinementList } from 'react-instantsearch-core';
|
|
19
19
|
import { RefinementList as RefinementListUiComponent } from "../ui/RefinementList.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
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", "fallbackParameters", "queryParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
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
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
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import { createRelatedProductsComponent } from 'instantsearch-ui-components';
|
|
12
12
|
import React, { createElement, Fragment, useMemo } from 'react';
|
|
13
13
|
import { useInstantSearch, useRelatedProducts } from 'react-instantsearch-core';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
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 = ["queryHook", "searchAsYouType", "ignoreCompositionEvents", "translations"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
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
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
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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
|
-
function _slicedToArray(
|
|
9
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
10
10
|
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."); }
|
|
11
|
-
function _unsupportedIterableToArray(
|
|
12
|
-
function _arrayLikeToArray(
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
13
|
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; } }
|
|
14
|
-
function _arrayWithHoles(
|
|
15
|
-
function _objectWithoutProperties(
|
|
16
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17
17
|
import React, { useRef, useState } from 'react';
|
|
18
18
|
import { useSearchBox } from 'react-instantsearch-core';
|
|
19
19
|
import { SearchBox as SearchBoxUiComponent } from "../ui/SearchBox.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["hit", "attribute", "highlightedTagName", "nonHighlightedTagName", "separator"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import { getHighlightedParts, getPropertyByPath, unescape } from "instantsearch.js/es/lib/utils/index.js";
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { Snippet as SnippetUiComponent } from "../ui/Snippet.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["items", "transformItems"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useSortBy } from 'react-instantsearch-core';
|
|
7
7
|
import { SortBy as SortByUiComponent } from "../ui/SortBy.js";
|
package/dist/es/widgets/Stats.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
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 = ["translations"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
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
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
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { useStats } from 'react-instantsearch-core';
|
|
13
13
|
import { Stats as StatsUiComponent } from "../ui/Stats.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["attribute", "on", "off"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useToggleRefinement } from 'react-instantsearch-core';
|
|
7
7
|
import { ToggleRefinement as ToggleRefinementUiComponent } from "../ui/ToggleRefinement.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
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 = ["facetName", "facetValue", "limit", "threshold", "fallbackParameters", "queryParameters", "escapeHTML", "transformItems", "itemComponent", "headerComponent", "emptyComponent", "layoutComponent"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
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
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
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import { createTrendingItemsComponent } from 'instantsearch-ui-components';
|
|
12
12
|
import React, { createElement, Fragment, useMemo } from 'react';
|
|
13
13
|
import { useInstantSearch, useTrendingItems } from 'react-instantsearch-core';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RecommendComponentProps, RecordWithObjectID, UserClientSideTool } from 'instantsearch-ui-components';
|
|
2
|
+
import type { IndexUiState } from 'instantsearch.js';
|
|
3
|
+
type ItemComponent<TObject> = RecommendComponentProps<TObject>['itemComponent'];
|
|
4
|
+
declare function createCarouselTool<TObject extends RecordWithObjectID>(showViewAll: boolean, itemComponent?: ItemComponent<TObject>, getSearchPageURL?: (nextUiState: IndexUiState) => string): UserClientSideTool;
|
|
5
|
+
export { createCarouselTool };
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
8
|
+
import { ChevronLeftIconComponent, ChevronRightIconComponent, ArrowRightIconComponent, createButtonComponent } from 'instantsearch-ui-components';
|
|
9
|
+
import React, { createElement } from 'react';
|
|
10
|
+
import { Carousel } from "../../../components/index.js";
|
|
11
|
+
function createCarouselTool(showViewAll, itemComponent, getSearchPageURL) {
|
|
12
|
+
var Button = createButtonComponent({
|
|
13
|
+
createElement: createElement
|
|
14
|
+
});
|
|
15
|
+
function SearchLayoutComponent(_ref) {
|
|
16
|
+
var message = _ref.message,
|
|
17
|
+
indexUiState = _ref.indexUiState,
|
|
18
|
+
setIndexUiState = _ref.setIndexUiState,
|
|
19
|
+
onClose = _ref.onClose;
|
|
20
|
+
var input = message === null || message === void 0 ? void 0 : message.input;
|
|
21
|
+
var output = message === null || message === void 0 ? void 0 : message.output;
|
|
22
|
+
var items = (output === null || output === void 0 ? void 0 : output.hits) || [];
|
|
23
|
+
var MemoedHeaderComponent = React.useMemo(function () {
|
|
24
|
+
return function (props) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(HeaderComponent, _extends({
|
|
26
|
+
nbHits: output === null || output === void 0 ? void 0 : output.nbHits,
|
|
27
|
+
query: input === null || input === void 0 ? void 0 : input.query,
|
|
28
|
+
hitsPerPage: items.length,
|
|
29
|
+
setIndexUiState: setIndexUiState,
|
|
30
|
+
indexUiState: indexUiState,
|
|
31
|
+
getSearchPageURL: getSearchPageURL,
|
|
32
|
+
onClose: onClose
|
|
33
|
+
}, props));
|
|
34
|
+
};
|
|
35
|
+
}, [items.length, input === null || input === void 0 ? void 0 : input.query, output === null || output === void 0 ? void 0 : output.nbHits, setIndexUiState, onClose, indexUiState]);
|
|
36
|
+
return /*#__PURE__*/React.createElement(Carousel, {
|
|
37
|
+
items: items,
|
|
38
|
+
itemComponent: itemComponent,
|
|
39
|
+
sendEvent: function sendEvent() {},
|
|
40
|
+
showNavigation: false,
|
|
41
|
+
headerComponent: MemoedHeaderComponent
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function HeaderComponent(_ref2) {
|
|
45
|
+
var canScrollLeft = _ref2.canScrollLeft,
|
|
46
|
+
canScrollRight = _ref2.canScrollRight,
|
|
47
|
+
scrollLeft = _ref2.scrollLeft,
|
|
48
|
+
scrollRight = _ref2.scrollRight,
|
|
49
|
+
nbHits = _ref2.nbHits,
|
|
50
|
+
query = _ref2.query,
|
|
51
|
+
hitsPerPage = _ref2.hitsPerPage,
|
|
52
|
+
setIndexUiState = _ref2.setIndexUiState,
|
|
53
|
+
indexUiState = _ref2.indexUiState,
|
|
54
|
+
getSearchPageURL = _ref2.getSearchPageURL,
|
|
55
|
+
onClose = _ref2.onClose;
|
|
56
|
+
if ((hitsPerPage !== null && hitsPerPage !== void 0 ? hitsPerPage : 0) < 1) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: "ais-ChatToolSearchIndexCarouselHeader"
|
|
61
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: "ais-ChatToolSearchIndexCarouselHeaderResults"
|
|
63
|
+
}, nbHits && /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: "ais-ChatToolSearchIndexCarouselHeaderCount"
|
|
65
|
+
}, hitsPerPage !== null && hitsPerPage !== void 0 ? hitsPerPage : 0, " of ", nbHits.toLocaleString(), " result", nbHits > 1 ? 's' : ''), showViewAll && /*#__PURE__*/React.createElement(Button, {
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
size: "sm",
|
|
68
|
+
onClick: function onClick() {
|
|
69
|
+
if (!query) return;
|
|
70
|
+
var nextUiState = _objectSpread(_objectSpread({}, indexUiState), {}, {
|
|
71
|
+
query: query
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// If no main search page URL or we are on the search page, just update the state
|
|
75
|
+
if (!getSearchPageURL || getSearchPageURL && new URL(getSearchPageURL(nextUiState)).pathname === window.location.pathname) {
|
|
76
|
+
setIndexUiState(nextUiState);
|
|
77
|
+
onClose();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Navigate to different page
|
|
82
|
+
window.location.href = getSearchPageURL(nextUiState);
|
|
83
|
+
},
|
|
84
|
+
className: "ais-ChatToolSearchIndexCarouselHeaderViewAll"
|
|
85
|
+
}, "View all", /*#__PURE__*/React.createElement(ArrowRightIconComponent, {
|
|
86
|
+
createElement: createElement
|
|
87
|
+
}))), (hitsPerPage !== null && hitsPerPage !== void 0 ? hitsPerPage : 0) > 2 && /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
className: "ais-ChatToolSearchIndexCarouselHeaderScrollButtons"
|
|
89
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
90
|
+
variant: "outline",
|
|
91
|
+
size: "sm",
|
|
92
|
+
iconOnly: true,
|
|
93
|
+
onClick: scrollLeft,
|
|
94
|
+
disabled: !canScrollLeft,
|
|
95
|
+
className: "ais-ChatToolSearchIndexCarouselHeaderScrollButton"
|
|
96
|
+
}, /*#__PURE__*/React.createElement(ChevronLeftIconComponent, {
|
|
97
|
+
createElement: createElement
|
|
98
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
99
|
+
variant: "outline",
|
|
100
|
+
size: "sm",
|
|
101
|
+
iconOnly: true,
|
|
102
|
+
onClick: scrollRight,
|
|
103
|
+
disabled: !canScrollRight,
|
|
104
|
+
className: "ais-ChatToolSearchIndexCarouselHeaderScrollButton"
|
|
105
|
+
}, /*#__PURE__*/React.createElement(ChevronRightIconComponent, {
|
|
106
|
+
createElement: createElement
|
|
107
|
+
}))));
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
layoutComponent: SearchLayoutComponent
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export { createCarouselTool };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from './Autocomplete';
|
|
1
2
|
export * from './Breadcrumb';
|
|
3
|
+
export * from './Chat';
|
|
2
4
|
export * from './ClearRefinements';
|
|
3
5
|
export * from './CurrentRefinements';
|
|
4
6
|
export * from './FrequentlyBoughtTogether';
|
|
@@ -7,6 +9,7 @@ export * from './Highlight';
|
|
|
7
9
|
export * from './Hits';
|
|
8
10
|
export * from './HitsPerPage';
|
|
9
11
|
export * from './InfiniteHits';
|
|
12
|
+
export * from './LookingSimilar';
|
|
10
13
|
export * from './Menu';
|
|
11
14
|
export * from './Pagination';
|
|
12
15
|
export * from './PoweredBy';
|
|
@@ -19,4 +22,3 @@ export * from './SortBy';
|
|
|
19
22
|
export * from './Stats';
|
|
20
23
|
export * from './ToggleRefinement';
|
|
21
24
|
export * from './TrendingItems';
|
|
22
|
-
export * from './LookingSimilar';
|
package/dist/es/widgets/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from "./Autocomplete.js";
|
|
1
2
|
export * from "./Breadcrumb.js";
|
|
3
|
+
export * from "./Chat.js";
|
|
2
4
|
export * from "./ClearRefinements.js";
|
|
3
5
|
export * from "./CurrentRefinements.js";
|
|
4
6
|
export * from "./FrequentlyBoughtTogether.js";
|
|
@@ -7,6 +9,7 @@ export * from "./Highlight.js";
|
|
|
7
9
|
export * from "./Hits.js";
|
|
8
10
|
export * from "./HitsPerPage.js";
|
|
9
11
|
export * from "./InfiniteHits.js";
|
|
12
|
+
export * from "./LookingSimilar.js";
|
|
10
13
|
export * from "./Menu.js";
|
|
11
14
|
export * from "./Pagination.js";
|
|
12
15
|
export * from "./PoweredBy.js";
|
|
@@ -18,5 +21,4 @@ export * from "./Snippet.js";
|
|
|
18
21
|
export * from "./SortBy.js";
|
|
19
22
|
export * from "./Stats.js";
|
|
20
23
|
export * from "./ToggleRefinement.js";
|
|
21
|
-
export * from "./TrendingItems.js";
|
|
22
|
-
export * from "./LookingSimilar.js";
|
|
24
|
+
export * from "./TrendingItems.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './Autocomplete';
|
|
2
|
+
export * from './Breadcrumb';
|
|
3
|
+
export declare const Chat: () => never;
|
|
4
|
+
export declare const SearchIndexToolType: undefined;
|
|
5
|
+
export declare const RecommendToolType: undefined;
|
|
6
|
+
export declare const createDefaultTools: () => void;
|
|
7
|
+
export * from './ClearRefinements';
|
|
8
|
+
export * from './CurrentRefinements';
|
|
9
|
+
export * from './FrequentlyBoughtTogether';
|
|
10
|
+
export * from './HierarchicalMenu';
|
|
11
|
+
export * from './Highlight';
|
|
12
|
+
export * from './Hits';
|
|
13
|
+
export * from './HitsPerPage';
|
|
14
|
+
export * from './InfiniteHits';
|
|
15
|
+
export * from './LookingSimilar';
|
|
16
|
+
export * from './Menu';
|
|
17
|
+
export * from './Pagination';
|
|
18
|
+
export * from './PoweredBy';
|
|
19
|
+
export * from './RangeInput';
|
|
20
|
+
export * from './RefinementList';
|
|
21
|
+
export * from './RelatedProducts';
|
|
22
|
+
export * from './SearchBox';
|
|
23
|
+
export * from './Snippet';
|
|
24
|
+
export * from './SortBy';
|
|
25
|
+
export * from './Stats';
|
|
26
|
+
export * from './ToggleRefinement';
|
|
27
|
+
export * from './TrendingItems';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from "./Autocomplete.js";
|
|
2
|
+
export * from "./Breadcrumb.js";
|
|
3
|
+
export var Chat = function Chat() {
|
|
4
|
+
throw new Error("\"<Chat>\" is not available from the UMD build.\n\nPlease use React InstantSearch with a packaging system:\nhttps://www.algolia.com/doc/guides/building-search-ui/installation/react/#install-react-instantsearch-as-an-npm-package");
|
|
5
|
+
};
|
|
6
|
+
export var SearchIndexToolType = undefined;
|
|
7
|
+
export var RecommendToolType = undefined;
|
|
8
|
+
export var createDefaultTools = function createDefaultTools() {};
|
|
9
|
+
export * from "./ClearRefinements.js";
|
|
10
|
+
export * from "./CurrentRefinements.js";
|
|
11
|
+
export * from "./FrequentlyBoughtTogether.js";
|
|
12
|
+
export * from "./HierarchicalMenu.js";
|
|
13
|
+
export * from "./Highlight.js";
|
|
14
|
+
export * from "./Hits.js";
|
|
15
|
+
export * from "./HitsPerPage.js";
|
|
16
|
+
export * from "./InfiniteHits.js";
|
|
17
|
+
export * from "./LookingSimilar.js";
|
|
18
|
+
export * from "./Menu.js";
|
|
19
|
+
export * from "./Pagination.js";
|
|
20
|
+
export * from "./PoweredBy.js";
|
|
21
|
+
export * from "./RangeInput.js";
|
|
22
|
+
export * from "./RefinementList.js";
|
|
23
|
+
export * from "./RelatedProducts.js";
|
|
24
|
+
export * from "./SearchBox.js";
|
|
25
|
+
export * from "./Snippet.js";
|
|
26
|
+
export * from "./SortBy.js";
|
|
27
|
+
export * from "./Stats.js";
|
|
28
|
+
export * from "./ToggleRefinement.js";
|
|
29
|
+
export * from "./TrendingItems.js";
|