react-instantsearch
Advanced tools
Comparing version 3.2.1 to 3.2.2-beta0
@@ -8,3 +8,3 @@ { | ||
"description": "⚡ Lightning-fast search for React and React Native apps", | ||
"version": "3.2.1", | ||
"version": "3.2.2-beta0", | ||
"scripts": { | ||
@@ -21,3 +21,3 @@ "build": "./scripts/build.sh", | ||
"algoliasearch": "^3.21.1", | ||
"algoliasearch-helper": "^2.18.1", | ||
"algoliasearch-helper": "2.19.0", | ||
"classnames": "^2.2.5", | ||
@@ -24,0 +24,0 @@ "lodash": "^4.17.4" |
@@ -47,7 +47,7 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
translate = _props.translate, | ||
items = _props.items, | ||
refine = _props.refine, | ||
query = _props.query; | ||
var _props = this.props; | ||
var translate = _props.translate; | ||
var items = _props.items; | ||
var refine = _props.refine; | ||
var query = _props.query; | ||
@@ -54,0 +54,0 @@ var isDisabled = items.length === 0 && (!query || query === ''); |
@@ -57,7 +57,7 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
translate = _props.translate, | ||
items = _props.items, | ||
refine = _props.refine, | ||
canRefine = _props.canRefine; | ||
var _props = this.props; | ||
var translate = _props.translate; | ||
var items = _props.items; | ||
var refine = _props.refine; | ||
var canRefine = _props.canRefine; | ||
@@ -64,0 +64,0 @@ |
@@ -90,5 +90,5 @@ 'use strict'; | ||
value: function __renderItem__REACT_HOT_LOADER__(item) { | ||
var _props = this.props, | ||
createURL = _props.createURL, | ||
refine = _props.refine; | ||
var _props = this.props; | ||
var createURL = _props.createURL; | ||
var refine = _props.refine; | ||
@@ -95,0 +95,0 @@ |
@@ -16,6 +16,6 @@ "use strict"; | ||
function Highlighter(_ref) { | ||
var hit = _ref.hit, | ||
attributeName = _ref.attributeName, | ||
highlight = _ref.highlight, | ||
highlightProperty = _ref.highlightProperty; | ||
var hit = _ref.hit; | ||
var attributeName = _ref.attributeName; | ||
var highlight = _ref.highlight; | ||
var highlightProperty = _ref.highlightProperty; | ||
@@ -22,0 +22,0 @@ var parsedHighlightedValue = highlight({ hit: hit, attributeName: attributeName, highlightProperty: highlightProperty }); |
@@ -43,5 +43,5 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
ItemComponent = _props.hitComponent, | ||
hits = _props.hits; | ||
var _props = this.props; | ||
var ItemComponent = _props.hitComponent; | ||
var hits = _props.hits; | ||
@@ -48,0 +48,0 @@ return _react2.default.createElement( |
@@ -44,6 +44,6 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
currentRefinement = _props.currentRefinement, | ||
refine = _props.refine, | ||
items = _props.items; | ||
var _props = this.props; | ||
var currentRefinement = _props.currentRefinement; | ||
var refine = _props.refine; | ||
var items = _props.items; | ||
@@ -50,0 +50,0 @@ return _react2.default.createElement(_Select2.default, { |
@@ -21,2 +21,6 @@ 'use strict'; | ||
var _translatable = require('../core/translatable'); | ||
var _translatable2 = _interopRequireDefault(_translatable); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -44,7 +48,8 @@ | ||
value: function render() { | ||
var _props = this.props, | ||
ItemComponent = _props.hitComponent, | ||
hits = _props.hits, | ||
hasMore = _props.hasMore, | ||
refine = _props.refine; | ||
var _props = this.props; | ||
var ItemComponent = _props.hitComponent; | ||
var hits = _props.hits; | ||
var hasMore = _props.hasMore; | ||
var refine = _props.refine; | ||
var translate = _props.translate; | ||
@@ -54,3 +59,3 @@ var renderedHits = hits.map(function (hit) { | ||
fileName: _jsxFileName, | ||
lineNumber: 10 | ||
lineNumber: 12 | ||
} | ||
@@ -65,6 +70,6 @@ }); | ||
fileName: _jsxFileName, | ||
lineNumber: 13 | ||
lineNumber: 15 | ||
} | ||
}), | ||
'Load more' | ||
translate('loadMore') | ||
) : _react2.default.createElement( | ||
@@ -74,6 +79,6 @@ 'button', | ||
fileName: _jsxFileName, | ||
lineNumber: 14 | ||
lineNumber: 18 | ||
} | ||
}), | ||
'Load more' | ||
translate('loadMore') | ||
); | ||
@@ -86,3 +91,3 @@ | ||
fileName: _jsxFileName, | ||
lineNumber: 17 | ||
lineNumber: 23 | ||
} | ||
@@ -103,3 +108,4 @@ }), | ||
hasMore: _react.PropTypes.bool.isRequired, | ||
refine: _react.PropTypes.func.isRequired | ||
refine: _react.PropTypes.func.isRequired, | ||
translate: _react.PropTypes.func.isRequired | ||
}; | ||
@@ -119,3 +125,3 @@ | ||
fileName: _jsxFileName, | ||
lineNumber: 37 | ||
lineNumber: 44 | ||
} | ||
@@ -129,3 +135,6 @@ }, | ||
var _default = InfiniteHits; | ||
var _default = (0, _translatable2.default)({ | ||
loadMore: 'Load more' | ||
})(InfiniteHits); | ||
exports.default = _default; | ||
@@ -132,0 +141,0 @@ ; |
@@ -45,9 +45,9 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
cx = _props.cx, | ||
createURL = _props.createURL, | ||
items = _props.items, | ||
selectedItem = _props.selectedItem, | ||
onSelect = _props.onSelect, | ||
canRefine = _props.canRefine; | ||
var _props = this.props; | ||
var cx = _props.cx; | ||
var createURL = _props.createURL; | ||
var items = _props.items; | ||
var selectedItem = _props.selectedItem; | ||
var onSelect = _props.onSelect; | ||
var canRefine = _props.canRefine; | ||
@@ -54,0 +54,0 @@ return _react2.default.createElement( |
@@ -80,5 +80,5 @@ 'use strict'; | ||
value: function __getLimit__REACT_HOT_LOADER__() { | ||
var _props = this.props, | ||
limitMin = _props.limitMin, | ||
limitMax = _props.limitMax; | ||
var _props = this.props; | ||
var limitMin = _props.limitMin; | ||
var limitMax = _props.limitMax; | ||
var extended = this.state.extended; | ||
@@ -123,6 +123,6 @@ | ||
value: function renderShowMore() { | ||
var _props2 = this.props, | ||
showMore = _props2.showMore, | ||
translate = _props2.translate, | ||
cx = _props2.cx; | ||
var _props2 = this.props; | ||
var showMore = _props2.showMore; | ||
var translate = _props2.translate; | ||
var cx = _props2.cx; | ||
var extended = this.state.extended; | ||
@@ -153,9 +153,9 @@ | ||
var _props3 = this.props, | ||
cx = _props3.cx, | ||
searchForItems = _props3.searchForItems, | ||
isFromSearch = _props3.isFromSearch, | ||
translate = _props3.translate, | ||
items = _props3.items, | ||
selectItem = _props3.selectItem; | ||
var _props3 = this.props; | ||
var cx = _props3.cx; | ||
var searchForItems = _props3.searchForItems; | ||
var isFromSearch = _props3.isFromSearch; | ||
var translate = _props3.translate; | ||
var items = _props3.items; | ||
var selectItem = _props3.selectItem; | ||
@@ -208,7 +208,7 @@ var noResults = items.length === 0 && this.state.query !== '' ? _react2.default.createElement( | ||
var _props4 = this.props, | ||
cx = _props4.cx, | ||
items = _props4.items, | ||
withSearchBox = _props4.withSearchBox, | ||
canRefine = _props4.canRefine; | ||
var _props4 = this.props; | ||
var cx = _props4.cx; | ||
var items = _props4.items; | ||
var withSearchBox = _props4.withSearchBox; | ||
var canRefine = _props4.canRefine; | ||
@@ -215,0 +215,0 @@ var searchBox = withSearchBox ? this.renderSearchBox() : null; |
@@ -89,5 +89,5 @@ 'use strict'; | ||
value: function __renderItem__REACT_HOT_LOADER__(item) { | ||
var _props = this.props, | ||
refine = _props.refine, | ||
createURL = _props.createURL; | ||
var _props = this.props; | ||
var refine = _props.refine; | ||
var createURL = _props.createURL; | ||
@@ -94,0 +94,0 @@ var label = this.props.isFromSearch ? _react2.default.createElement(_Highlight2.default, { attributeName: 'label', hit: item, __source: { |
@@ -73,5 +73,5 @@ 'use strict'; | ||
value: function __renderItem__REACT_HOT_LOADER__(item) { | ||
var _props = this.props, | ||
refine = _props.refine, | ||
translate = _props.translate; | ||
var _props = this.props; | ||
var refine = _props.refine; | ||
var translate = _props.translate; | ||
@@ -118,5 +118,5 @@ var label = item.value === '' ? translate('all') : item.label; | ||
value: function render() { | ||
var _props2 = this.props, | ||
items = _props2.items, | ||
canRefine = _props2.canRefine; | ||
var _props2 = this.props; | ||
var items = _props2.items; | ||
var canRefine = _props2.canRefine; | ||
@@ -123,0 +123,0 @@ |
@@ -97,6 +97,6 @@ 'use strict'; | ||
value: function getItem(modifier, translationKey, value) { | ||
var _props = this.props, | ||
nbPages = _props.nbPages, | ||
maxPages = _props.maxPages, | ||
translate = _props.translate; | ||
var _props = this.props; | ||
var nbPages = _props.nbPages; | ||
var maxPages = _props.maxPages; | ||
var translate = _props.translate; | ||
@@ -115,17 +115,18 @@ return { | ||
value: function render() { | ||
var _props2 = this.props, | ||
nbPages = _props2.nbPages, | ||
maxPages = _props2.maxPages, | ||
currentRefinement = _props2.currentRefinement, | ||
pagesPadding = _props2.pagesPadding, | ||
showFirst = _props2.showFirst, | ||
showPrevious = _props2.showPrevious, | ||
showNext = _props2.showNext, | ||
showLast = _props2.showLast, | ||
refine = _props2.refine, | ||
createURL = _props2.createURL, | ||
translate = _props2.translate, | ||
ListComponent = _props2.listComponent, | ||
otherProps = _objectWithoutProperties(_props2, ['nbPages', 'maxPages', 'currentRefinement', 'pagesPadding', 'showFirst', 'showPrevious', 'showNext', 'showLast', 'refine', 'createURL', 'translate', 'listComponent']); | ||
var _props2 = this.props; | ||
var nbPages = _props2.nbPages; | ||
var maxPages = _props2.maxPages; | ||
var currentRefinement = _props2.currentRefinement; | ||
var pagesPadding = _props2.pagesPadding; | ||
var showFirst = _props2.showFirst; | ||
var showPrevious = _props2.showPrevious; | ||
var showNext = _props2.showNext; | ||
var showLast = _props2.showLast; | ||
var refine = _props2.refine; | ||
var createURL = _props2.createURL; | ||
var translate = _props2.translate; | ||
var ListComponent = _props2.listComponent; | ||
var otherProps = _objectWithoutProperties(_props2, ['nbPages', 'maxPages', 'currentRefinement', 'pagesPadding', 'showFirst', 'showPrevious', 'showNext', 'showLast', 'refine', 'createURL', 'translate', 'listComponent']); | ||
var totalPages = Math.min(nbPages, maxPages); | ||
@@ -132,0 +133,0 @@ var lastPage = totalPages; |
@@ -93,5 +93,5 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
translate = _props.translate, | ||
url = _props.url; | ||
var _props = this.props; | ||
var translate = _props.translate; | ||
var url = _props.url; | ||
@@ -98,0 +98,0 @@ |
@@ -82,5 +82,5 @@ 'use strict'; | ||
var _props = this.props, | ||
translate = _props.translate, | ||
canRefine = _props.canRefine; | ||
var _props = this.props; | ||
var translate = _props.translate; | ||
var canRefine = _props.canRefine; | ||
@@ -87,0 +87,0 @@ return _react2.default.createElement( |
@@ -27,2 +27,4 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -109,5 +111,5 @@ | ||
value: function __setQuery__REACT_HOT_LOADER__(val) { | ||
var _props = this.props, | ||
refine = _props.refine, | ||
searchAsYouType = _props.searchAsYouType; | ||
var _props = this.props; | ||
var refine = _props.refine; | ||
var searchAsYouType = _props.searchAsYouType; | ||
@@ -166,6 +168,7 @@ if (searchAsYouType) { | ||
e.stopPropagation(); | ||
this.input.blur(); | ||
var _props2 = this.props, | ||
refine = _props2.refine, | ||
searchAsYouType = _props2.searchAsYouType; | ||
var _props2 = this.props; | ||
var refine = _props2.refine; | ||
var searchAsYouType = _props2.searchAsYouType; | ||
@@ -181,2 +184,6 @@ if (!searchAsYouType) { | ||
this.setQuery(e.target.value); | ||
if (this.props.onChange) { | ||
this.props.onChange(e); | ||
} | ||
} | ||
@@ -188,2 +195,6 @@ }, { | ||
this.input.focus(); | ||
if (this.props.onReset) { | ||
this.props.onReset(); | ||
} | ||
} | ||
@@ -193,8 +204,46 @@ }, { | ||
value: function render() { | ||
var _props3 = this.props, | ||
translate = _props3.translate, | ||
autoFocus = _props3.autoFocus; | ||
var _this2 = this; | ||
var _props3 = this.props; | ||
var translate = _props3.translate; | ||
var autoFocus = _props3.autoFocus; | ||
var query = this.getQuery(); | ||
var submitComponent = this.props.submitComponent ? this.props.submitComponent : _react2.default.createElement( | ||
'svg', | ||
{ role: 'img', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 163 | ||
} | ||
}, | ||
_react2.default.createElement('use', { xlinkHref: '#sbx-icon-search-13', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 164 | ||
} | ||
}) | ||
); | ||
var resetComponent = this.props.resetComponent ? this.props.resetComponent : _react2.default.createElement( | ||
'svg', | ||
{ role: 'img', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 169 | ||
} | ||
}, | ||
_react2.default.createElement('use', { xlinkHref: '#sbx-icon-clear-3', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 170 | ||
} | ||
}) | ||
); | ||
var searchInputEvents = Object.keys(this.props).reduce(function (props, prop) { | ||
if (['onsubmit', 'onreset', 'onchange'].indexOf(prop.toLowerCase()) === -1 && prop.indexOf('on') === 0) { | ||
return _extends({}, props, _defineProperty({}, prop, _this2.props[prop])); | ||
} | ||
return props; | ||
}, {}); | ||
/* eslint-disable max-len */ | ||
@@ -208,5 +257,7 @@ return _react2.default.createElement( | ||
}, cx('root'), { | ||
action: '', | ||
role: 'search', | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 149 | ||
lineNumber: 186 | ||
} | ||
@@ -218,3 +269,3 @@ }), | ||
fileName: _jsxFileName, | ||
lineNumber: 155 | ||
lineNumber: 194 | ||
} | ||
@@ -226,3 +277,3 @@ }, | ||
fileName: _jsxFileName, | ||
lineNumber: 156 | ||
lineNumber: 195 | ||
} | ||
@@ -233,3 +284,3 @@ }, | ||
fileName: _jsxFileName, | ||
lineNumber: 157 | ||
lineNumber: 196 | ||
} | ||
@@ -242,3 +293,3 @@ }) | ||
fileName: _jsxFileName, | ||
lineNumber: 160 | ||
lineNumber: 199 | ||
} | ||
@@ -248,3 +299,3 @@ }, | ||
fileName: _jsxFileName, | ||
lineNumber: 161 | ||
lineNumber: 200 | ||
} | ||
@@ -261,3 +312,3 @@ }) | ||
fileName: _jsxFileName, | ||
lineNumber: 164 | ||
lineNumber: 203 | ||
} | ||
@@ -271,9 +322,12 @@ }), | ||
autoComplete: 'off', | ||
autoCorrect: 'off', | ||
autoCapitalize: 'off', | ||
spellCheck: 'false', | ||
required: true, | ||
value: query, | ||
onChange: this.onChange | ||
}, cx('input'), { | ||
}, searchInputEvents, cx('input'), { | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 168 | ||
lineNumber: 207 | ||
} | ||
@@ -286,18 +340,6 @@ })), | ||
fileName: _jsxFileName, | ||
lineNumber: 179 | ||
lineNumber: 222 | ||
} | ||
}), | ||
_react2.default.createElement( | ||
'svg', | ||
{ role: 'img', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 180 | ||
} | ||
}, | ||
_react2.default.createElement('use', { xlinkHref: '#sbx-icon-search-13', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 181 | ||
} | ||
}) | ||
) | ||
submitComponent | ||
), | ||
@@ -308,18 +350,6 @@ _react2.default.createElement( | ||
fileName: _jsxFileName, | ||
lineNumber: 184 | ||
lineNumber: 225 | ||
} | ||
}), | ||
_react2.default.createElement( | ||
'svg', | ||
{ role: 'img', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 185 | ||
} | ||
}, | ||
_react2.default.createElement('use', { xlinkHref: '#sbx-icon-clear-3', __source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 186 | ||
} | ||
}) | ||
) | ||
resetComponent | ||
) | ||
@@ -340,2 +370,5 @@ ) | ||
resetComponent: _react.PropTypes.element, | ||
submitComponent: _react.PropTypes.element, | ||
focusShortcuts: _react.PropTypes.arrayOf(_react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.number])), | ||
@@ -347,2 +380,4 @@ | ||
onSubmit: _react.PropTypes.func, | ||
onReset: _react.PropTypes.func, | ||
onChange: _react.PropTypes.func, | ||
@@ -360,4 +395,2 @@ // For testing purposes | ||
var _default = (0, _translatable2.default)({ | ||
submit: null, | ||
reset: null, | ||
resetTitle: 'Clear the search query.', | ||
@@ -364,0 +397,0 @@ submitTitle: 'Submit your search query.', |
@@ -58,6 +58,6 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
cx = _props.cx, | ||
items = _props.items, | ||
selectedItem = _props.selectedItem; | ||
var _props = this.props; | ||
var cx = _props.cx; | ||
var items = _props.items; | ||
var selectedItem = _props.selectedItem; | ||
@@ -64,0 +64,0 @@ |
@@ -61,6 +61,6 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
refine = _props.refine, | ||
items = _props.items, | ||
currentRefinement = _props.currentRefinement; | ||
var _props = this.props; | ||
var refine = _props.refine; | ||
var items = _props.items; | ||
var currentRefinement = _props.currentRefinement; | ||
@@ -67,0 +67,0 @@ return _react2.default.createElement(_Select2.default, { |
@@ -72,8 +72,8 @@ 'use strict'; | ||
value: function buildItem(_ref) { | ||
var max = _ref.max, | ||
lowerBound = _ref.lowerBound, | ||
count = _ref.count, | ||
translate = _ref.translate, | ||
createURL = _ref.createURL, | ||
isLastSelectableItem = _ref.isLastSelectableItem; | ||
var max = _ref.max; | ||
var lowerBound = _ref.lowerBound; | ||
var count = _ref.count; | ||
var translate = _ref.translate; | ||
var createURL = _ref.createURL; | ||
var isLastSelectableItem = _ref.isLastSelectableItem; | ||
@@ -155,10 +155,10 @@ var disabled = !count; | ||
var _props = this.props, | ||
translate = _props.translate, | ||
refine = _props.refine, | ||
min = _props.min, | ||
max = _props.max, | ||
count = _props.count, | ||
createURL = _props.createURL, | ||
canRefine = _props.canRefine; | ||
var _props = this.props; | ||
var translate = _props.translate; | ||
var refine = _props.refine; | ||
var min = _props.min; | ||
var max = _props.max; | ||
var count = _props.count; | ||
var createURL = _props.createURL; | ||
var canRefine = _props.canRefine; | ||
@@ -165,0 +165,0 @@ var items = []; |
@@ -47,6 +47,6 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
translate = _props.translate, | ||
nbHits = _props.nbHits, | ||
processingTimeMS = _props.processingTimeMS; | ||
var _props = this.props; | ||
var translate = _props.translate; | ||
var nbHits = _props.nbHits; | ||
var processingTimeMS = _props.processingTimeMS; | ||
@@ -53,0 +53,0 @@ return _react2.default.createElement( |
@@ -60,5 +60,5 @@ 'use strict'; | ||
value: function render() { | ||
var _props = this.props, | ||
currentRefinement = _props.currentRefinement, | ||
label = _props.label; | ||
var _props = this.props; | ||
var currentRefinement = _props.currentRefinement; | ||
var label = _props.label; | ||
@@ -65,0 +65,0 @@ |
@@ -52,7 +52,7 @@ 'use strict'; | ||
function getValue(path, props, searchState) { | ||
var id = props.id, | ||
attributes = props.attributes, | ||
separator = props.separator, | ||
rootPath = props.rootPath, | ||
showParentLevel = props.showParentLevel; | ||
var id = props.id; | ||
var attributes = props.attributes; | ||
var separator = props.separator; | ||
var rootPath = props.rootPath; | ||
var showParentLevel = props.showParentLevel; | ||
@@ -175,5 +175,5 @@ | ||
getProvidedProps: function getProvidedProps(props, searchState, searchResults) { | ||
var showMore = props.showMore, | ||
limitMin = props.limitMin, | ||
limitMax = props.limitMax; | ||
var showMore = props.showMore; | ||
var limitMin = props.limitMin; | ||
var limitMax = props.limitMax; | ||
@@ -216,9 +216,9 @@ var id = getId(props); | ||
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) { | ||
var attributes = props.attributes, | ||
separator = props.separator, | ||
rootPath = props.rootPath, | ||
showParentLevel = props.showParentLevel, | ||
showMore = props.showMore, | ||
limitMin = props.limitMin, | ||
limitMax = props.limitMax; | ||
var attributes = props.attributes; | ||
var separator = props.separator; | ||
var rootPath = props.rootPath; | ||
var showParentLevel = props.showParentLevel; | ||
var showMore = props.showMore; | ||
var limitMin = props.limitMin; | ||
var limitMax = props.limitMax; | ||
@@ -225,0 +225,0 @@ |
@@ -22,5 +22,5 @@ 'use strict'; | ||
var highlight = function highlight(_ref) { | ||
var attributeName = _ref.attributeName, | ||
hit = _ref.hit, | ||
highlightProperty = _ref.highlightProperty; | ||
var attributeName = _ref.attributeName; | ||
var hit = _ref.hit; | ||
var highlightProperty = _ref.highlightProperty; | ||
return (0, _highlight2.default)({ | ||
@@ -27,0 +27,0 @@ attributeName: attributeName, |
@@ -31,2 +31,3 @@ 'use strict'; | ||
* @providedPropType {boolean} hasMore - indicates if there are more pages to load | ||
* @providedPropType {function} refine - call to load more results | ||
*/ | ||
@@ -46,7 +47,7 @@ | ||
var _searchResults$result = searchResults.results, | ||
hits = _searchResults$result.hits, | ||
page = _searchResults$result.page, | ||
nbPages = _searchResults$result.nbPages, | ||
hitsPerPage = _searchResults$result.hitsPerPage; | ||
var _searchResults$result = searchResults.results; | ||
var hits = _searchResults$result.hits; | ||
var page = _searchResults$result.page; | ||
var nbPages = _searchResults$result.nbPages; | ||
var hitsPerPage = _searchResults$result.hitsPerPage; | ||
@@ -53,0 +54,0 @@ |
@@ -100,6 +100,6 @@ 'use strict'; | ||
var results = searchResults.results; | ||
var attributeName = props.attributeName, | ||
showMore = props.showMore, | ||
limitMin = props.limitMin, | ||
limitMax = props.limitMax; | ||
var attributeName = props.attributeName; | ||
var showMore = props.showMore; | ||
var limitMin = props.limitMin; | ||
var limitMax = props.limitMax; | ||
@@ -168,6 +168,6 @@ var limit = showMore ? limitMax : limitMin; | ||
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) { | ||
var attributeName = props.attributeName, | ||
showMore = props.showMore, | ||
limitMin = props.limitMin, | ||
limitMax = props.limitMax; | ||
var attributeName = props.attributeName; | ||
var showMore = props.showMore; | ||
var limitMin = props.limitMin; | ||
var limitMax = props.limitMax; | ||
@@ -174,0 +174,0 @@ var limit = showMore ? limitMax : limitMin; |
@@ -45,7 +45,9 @@ 'use strict'; | ||
var _value$split = value.split(':'), | ||
_value$split2 = _slicedToArray(_value$split, 2), | ||
startStr = _value$split2[0], | ||
endStr = _value$split2[1]; | ||
var _value$split = value.split(':'); | ||
var _value$split2 = _slicedToArray(_value$split, 2); | ||
var startStr = _value$split2[0]; | ||
var endStr = _value$split2[1]; | ||
return { | ||
@@ -170,6 +172,7 @@ start: startStr.length > 0 ? parseInt(startStr, 10) : null, | ||
var _parseItem = parseItem(getCurrentRefinement(props, searchState)), | ||
start = _parseItem.start, | ||
end = _parseItem.end; | ||
var _parseItem = parseItem(getCurrentRefinement(props, searchState)); | ||
var start = _parseItem.start; | ||
var end = _parseItem.end; | ||
searchParameters = searchParameters.addDisjunctiveFacet(attributeName); | ||
@@ -192,5 +195,6 @@ | ||
return stringifyItem(item) === value; | ||
}), | ||
label = _find2.label; | ||
}); | ||
var label = _find2.label; | ||
items.push({ | ||
@@ -197,0 +201,0 @@ label: props.attributeName + ': ' + label, |
@@ -52,5 +52,5 @@ 'use strict'; | ||
if (searchState[namespace] && typeof searchState[namespace][id] !== 'undefined') { | ||
var _searchState$namespac = searchState[namespace][id], | ||
min = _searchState$namespac.min, | ||
max = _searchState$namespac.max; | ||
var _searchState$namespac = searchState[namespace][id]; | ||
var min = _searchState$namespac.min; | ||
var max = _searchState$namespac.max; | ||
@@ -87,4 +87,4 @@ if (typeof min === 'string') { | ||
var attributeName = props.attributeName; | ||
var min = props.min, | ||
max = props.max; | ||
var min = props.min; | ||
var max = props.max; | ||
@@ -124,8 +124,9 @@ | ||
var _getCurrentRefinement = getCurrentRefinement(props, searchState), | ||
_getCurrentRefinement2 = _getCurrentRefinement.min, | ||
valueMin = _getCurrentRefinement2 === undefined ? min : _getCurrentRefinement2, | ||
_getCurrentRefinement3 = _getCurrentRefinement.max, | ||
valueMax = _getCurrentRefinement3 === undefined ? max : _getCurrentRefinement3; | ||
var _getCurrentRefinement = getCurrentRefinement(props, searchState); | ||
var _getCurrentRefinement2 = _getCurrentRefinement.min; | ||
var valueMin = _getCurrentRefinement2 === undefined ? min : _getCurrentRefinement2; | ||
var _getCurrentRefinement3 = _getCurrentRefinement.max; | ||
var valueMax = _getCurrentRefinement3 === undefined ? max : _getCurrentRefinement3; | ||
return { | ||
@@ -158,4 +159,4 @@ min: min, | ||
var min = currentRefinement.min, | ||
max = currentRefinement.max; | ||
var min = currentRefinement.min; | ||
var max = currentRefinement.max; | ||
@@ -162,0 +163,0 @@ if (typeof min !== 'undefined') { |
@@ -114,6 +114,6 @@ 'use strict'; | ||
var results = searchResults.results; | ||
var attributeName = props.attributeName, | ||
showMore = props.showMore, | ||
limitMin = props.limitMin, | ||
limitMax = props.limitMax; | ||
var attributeName = props.attributeName; | ||
var showMore = props.showMore; | ||
var limitMin = props.limitMin; | ||
var limitMax = props.limitMax; | ||
@@ -183,7 +183,7 @@ var limit = showMore ? limitMax : limitMin; | ||
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) { | ||
var attributeName = props.attributeName, | ||
operator = props.operator, | ||
showMore = props.showMore, | ||
limitMin = props.limitMin, | ||
limitMax = props.limitMax; | ||
var attributeName = props.attributeName; | ||
var operator = props.operator; | ||
var showMore = props.showMore; | ||
var limitMin = props.limitMin; | ||
var limitMax = props.limitMax; | ||
@@ -190,0 +190,0 @@ var limit = showMore ? limitMax : limitMin; |
@@ -83,5 +83,5 @@ 'use strict'; | ||
getSearchParameters: function getSearchParameters(searchParameters, props, searchState) { | ||
var attributeName = props.attributeName, | ||
value = props.value, | ||
filter = props.filter; | ||
var attributeName = props.attributeName; | ||
var value = props.value; | ||
var filter = props.filter; | ||
@@ -88,0 +88,0 @@ var checked = getCurrentRefinement(props, searchState); |
@@ -106,5 +106,5 @@ 'use strict'; | ||
var _context$ais = context.ais, | ||
store = _context$ais.store, | ||
widgetsManager = _context$ais.widgetsManager; | ||
var _context$ais = context.ais; | ||
var store = _context$ais.store; | ||
var widgetsManager = _context$ais.widgetsManager; | ||
@@ -188,10 +188,11 @@ _this.state = { | ||
var _store$getState = store.getState(), | ||
results = _store$getState.results, | ||
searching = _store$getState.searching, | ||
error = _store$getState.error, | ||
widgets = _store$getState.widgets, | ||
metadata = _store$getState.metadata, | ||
resultsFacetValues = _store$getState.resultsFacetValues; | ||
var _store$getState = store.getState(); | ||
var results = _store$getState.results; | ||
var searching = _store$getState.searching; | ||
var error = _store$getState.error; | ||
var widgets = _store$getState.widgets; | ||
var metadata = _store$getState.metadata; | ||
var resultsFacetValues = _store$getState.resultsFacetValues; | ||
var searchState = { results: results, searching: searching, error: error }; | ||
@@ -198,0 +199,0 @@ return connectorDesc.getProvidedProps.call(this, props, widgets, searchState, metadata, resultsFacetValues); |
@@ -35,3 +35,3 @@ 'use strict'; | ||
description: '\u26A1 Lightning-fast search for React and React Native apps', | ||
version: '3.2.1', | ||
version: '3.2.2-beta0', | ||
scripts: { | ||
@@ -48,3 +48,3 @@ build: './scripts/build.sh', | ||
algoliasearch: '^3.21.1', | ||
'algoliasearch-helper': '^2.18.1', | ||
'algoliasearch-helper': '2.19.0', | ||
classnames: '^2.2.5', | ||
@@ -51,0 +51,0 @@ lodash: '^4.17.4' |
@@ -44,8 +44,8 @@ 'use strict'; | ||
function createInstantSearchManager(_ref) { | ||
var indexName = _ref.indexName, | ||
_ref$initialState = _ref.initialState, | ||
initialState = _ref$initialState === undefined ? {} : _ref$initialState, | ||
algoliaClient = _ref.algoliaClient, | ||
_ref$searchParameters = _ref.searchParameters, | ||
searchParameters = _ref$searchParameters === undefined ? {} : _ref$searchParameters; | ||
var indexName = _ref.indexName; | ||
var _ref$initialState = _ref.initialState; | ||
var initialState = _ref$initialState === undefined ? {} : _ref$initialState; | ||
var algoliaClient = _ref.algoliaClient; | ||
var _ref$searchParameters = _ref.searchParameters; | ||
var searchParameters = _ref$searchParameters === undefined ? {} : _ref$searchParameters; | ||
@@ -52,0 +52,0 @@ var baseSP = new _algoliasearchHelper.SearchParameters(_extends({}, searchParameters, { |
@@ -32,9 +32,9 @@ 'use strict'; | ||
function parseAlgoliaHit(_ref) { | ||
var _ref$preTag = _ref.preTag, | ||
preTag = _ref$preTag === undefined ? '<em>' : _ref$preTag, | ||
_ref$postTag = _ref.postTag, | ||
postTag = _ref$postTag === undefined ? '</em>' : _ref$postTag, | ||
highlightProperty = _ref.highlightProperty, | ||
attributeName = _ref.attributeName, | ||
hit = _ref.hit; | ||
var _ref$preTag = _ref.preTag; | ||
var preTag = _ref$preTag === undefined ? '<em>' : _ref$preTag; | ||
var _ref$postTag = _ref.postTag; | ||
var postTag = _ref$postTag === undefined ? '</em>' : _ref$postTag; | ||
var highlightProperty = _ref.highlightProperty; | ||
var attributeName = _ref.attributeName; | ||
var hit = _ref.hit; | ||
@@ -59,5 +59,5 @@ if (!hit) throw new Error('`hit`, the matching record, must be provided'); | ||
function parseHighlightedAttribute(_ref2) { | ||
var preTag = _ref2.preTag, | ||
postTag = _ref2.postTag, | ||
highlightedValue = _ref2.highlightedValue; | ||
var preTag = _ref2.preTag; | ||
var postTag = _ref2.postTag; | ||
var highlightedValue = _ref2.highlightedValue; | ||
@@ -64,0 +64,0 @@ var splitByPreTag = highlightedValue.split(preTag); |
@@ -163,5 +163,5 @@ 'use strict'; | ||
var childrenCount = _react.Children.count(this.props.children); | ||
var _props$root = this.props.root, | ||
Root = _props$root.Root, | ||
props = _props$root.props; | ||
var _props$root = this.props.root; | ||
var Root = _props$root.Root; | ||
var props = _props$root.props; | ||
@@ -168,0 +168,0 @@ if (childrenCount === 0) return null;else return _react2.default.createElement( |
@@ -31,5 +31,6 @@ 'use strict'; | ||
function Translatable(props) { | ||
var translations = props.translations, | ||
otherProps = _objectWithoutProperties(props, ['translations']); | ||
var translations = props.translations; | ||
var otherProps = _objectWithoutProperties(props, ['translations']); | ||
var translate = function translate(key) { | ||
@@ -36,0 +37,0 @@ for (var _len = arguments.length, params = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { |
@@ -29,2 +29,3 @@ 'use strict'; | ||
* @themeKey root - the root of the component | ||
* @translationKey loadMore - the label of load more button | ||
* @example | ||
@@ -31,0 +32,0 @@ * import React from 'react'; |
@@ -21,3 +21,3 @@ 'use strict'; | ||
* However you can easily connect React InstantSearch to an existing one | ||
* using the [connectRange connector](/connectors/connectRange.html). | ||
* using the [connectRange connector](connectors/connectRange.html). | ||
* | ||
@@ -24,0 +24,0 @@ * @name RangeSlider |
@@ -24,2 +24,8 @@ 'use strict'; | ||
* @propType {boolean} [searchAsYouType=true] - Should we search on every change to the query? If you disable this option, new searches will only be triggered by clicking the search button or by pressing the enter key while the search box is focused. | ||
* @propType {function} [onSubmit] - Intercept submit event sent from the SearchBox form container. | ||
* @propType {function} [onReset] - Listen to `reset` event sent from the SearchBox form container. | ||
* @propType {function} [on*] - Listen to any events sent form the search input itself. | ||
* @propType {React.Element} [submitComponent] - Change the apparence of the default submit button (magnifying glass). | ||
* @propType {React.Element} [resetComponent] - Change the apparence of the default reset button (cross). | ||
* @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted. | ||
* @themeKey ais-SearchBox__root - the root of the component | ||
@@ -30,4 +36,2 @@ * @themeKey ais-SearchBox__wrapper - the search box wrapper | ||
* @themeKey ais-SearchBox__reset - the reset button | ||
* @translationkey submit - The submit button label | ||
* @translationkey reset - The reset button label | ||
* @translationkey submitTitle - The submit button title | ||
@@ -34,0 +38,0 @@ * @translationkey resetTitle - The reset button title |
@@ -1,3 +0,3 @@ | ||
/*! ReactInstantSearch 3.2.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ | ||
/*! ReactInstantSearch 3.2.2-beta0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Core=e(require("react")):(t.ReactInstantSearch=t.ReactInstantSearch||{},t.ReactInstantSearch.Core=e(t.React))}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=428)}([function(e,r){e.exports=t},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){if(!t.displayName)throw new Error("`createConnector` requires you to provide a `displayName` property.");var e=(0,p.default)(t,"refine"),r=(0,p.default)(t,"searchForFacetValues"),n=(0,p.default)(t,"getSearchParameters"),u=(0,p.default)(t,"getMetadata"),c=(0,p.default)(t,"transitionState"),f=(0,p.default)(t,"cleanUp"),b=n||u||c;return function(p){var _,x,g;return x=_=function(v){function _(e,r){o(this,_);var i=a(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,e,r));g.call(i);var s=r.ais,f=s.store,p=s.widgetsManager;i.state={props:i.getProvidedProps(e)},i.unsubscribe=f.subscribe(function(){i.setState({props:i.getProvidedProps(i.props)})});var l=n?function(e){return t.getSearchParameters(e,i.props,f.getState().widgets)}:null,h=u?function(e){return t.getMetadata(i.props,e)}:null,v=c?function(e,r){return t.transitionState.call(i,i.props,e,r)}:null;return b&&(i.unregisterWidget=p.registerWidget({getSearchParameters:l,getMetadata:h,transitionState:v})),i}return i(_,v),h(_,[{key:"componentWillReceiveProps",value:function(e){(0,s.default)(this.props,e)||(this.setState({props:this.getProvidedProps(e)}),b&&(this.context.ais.widgetsManager.update(),t.transitionState&&this.context.ais.onSearchStateChange(t.transitionState.call(this,e,this.context.ais.store.getState().widgets,this.context.ais.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){if(this.unsubscribe(),b&&(this.unregisterWidget(),f)){var e=t.cleanUp(this.props,this.context.ais.store.getState().widgets);this.context.ais.store.setState(l({},this.context.ais.store.getState(),{widgets:e})),this.context.ais.onInternalStateUpdate(e)}}},{key:"shouldComponentUpdate",value:function(t,e){var r=(0,d.shallowEqual)(this.props,t);return null===this.state.props||null===e.props?this.state.props!==e.props||!r:!r||!(0,d.shallowEqual)(this.state.props,e.props)}},{key:"render",value:function(){var t=this;if(null===this.state.props)return null;var n=e?{refine:this.refine,createURL:this.createURL}:{},o=r?{searchForItems:this.searchForFacetValues,searchForFacetValues:function(e,r){t.searchForFacetValues(e,r)}}:{};return y.default.createElement(p,l({},this.props,this.state.props,n,o))}}]),_}(v.Component),_.displayName=t.displayName+"("+(0,d.getDisplayName)(p)+")",_.defaultClassNames=p.defaultClassNames,_.propTypes=t.propTypes,_.defaultProps=t.defaultProps,_.contextTypes={ais:v.PropTypes.object.isRequired},g=function(){var e=this;this.getProvidedProps=function(r){var n=e.context.ais.store,o=n.getState(),a=o.results,i=o.searching,u=o.error,c=o.widgets,s=o.metadata,f=o.resultsFacetValues,p={results:a,searching:i,error:u};return t.getProvidedProps.call(e,r,c,p,s,f)},this.refine=function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];e.context.ais.onInternalStateUpdate(t.refine.apply(t,[e.props,e.context.ais.store.getState().widgets].concat(n)))},this.searchForFacetValues=function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];e.context.ais.onSearchForFacetValues(t.searchForFacetValues.apply(t,[e.props,e.context.ais.store.getState().widgets].concat(n)))},this.createURL=function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.context.ais.createHrefForState(t.refine.apply(t,[e.props,e.context.ais.store.getState().widgets].concat(n)))},this.cleanUp=function(){return t.cleanUp.apply(t,arguments)}},x}}Object.defineProperty(e,"__esModule",{value:!0});var c=r(104),s=n(c),f=r(74),p=n(f),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=u;var v=r(0),y=n(v),d=r(54)},function(t,e,r){var n=r(72),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();t.exports=a},,function(t,e){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=r},function(t,e){function r(t){return null!=t&&"object"==typeof t}t.exports=r},,function(t,e,r){function n(t){return null==t?void 0===t?c:u:s&&s in Object(t)?a(t):i(t)}var o=r(15),a=r(158),i=r(185),u="[object Null]",c="[object Undefined]",s=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){function n(t){return i(t)?o(t):a(t)}var o=r(84),a=r(88),i=r(13);t.exports=n},function(t,e,r){function n(t,e){var r=a(t,e);return o(r)?r:void 0}var o=r(137),a=r(160);t.exports=n},function(t,e){function r(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=r},,function(t,e,r){function n(t){return null!=t&&a(t.length)&&!o(t)}var o=r(18),a=r(47);t.exports=n},,function(t,e,r){var n=r(3),o=n.Symbol;t.exports=o},,function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e,r){function n(t){if(!a(t))return!1;var e=o(t);return e==u||e==c||e==i||e==s}var o=r(8),a=r(5),i="[object AsyncFunction]",u="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=n},,function(t,e,r){function n(t,e){return o(t)?t:a(t,e)?[t]:i(u(t))}var o=r(1),a=r(68),i=r(197),u=r(70);t.exports=n},,function(t,e,r){function n(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-a?"-0":e}var o=r(24),a=1/0;t.exports=n},,function(t,e,r){function n(t){return"symbol"==typeof t||a(t)&&o(t)==i}var o=r(8),a=r(6),i="[object Symbol]";t.exports=n},function(t,e,r){function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(170),a=r(171),i=r(172),u=r(173),c=r(174);n.prototype.clear=o,n.prototype.delete=a,n.prototype.get=i,n.prototype.has=u,n.prototype.set=c,t.exports=n},function(t,e,r){function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(17);t.exports=n},function(t,e,r){function n(t,e){var r=t.__data__;return o(e)?r["string"==typeof e?"string":"hash"]:r.map}var o=r(167);t.exports=n},function(t,e){function r(t,e){return e=null==e?n:e,!!e&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e,r){var n=r(10),o=n(Object,"create");t.exports=o},function(t,e,r){var n=r(135),o=r(6),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&i.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,e,r){(function(t){var n=r(3),o=r(207),a="object"==typeof e&&e&&!e.nodeType&&e,i=a&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===a,c=u?n.Buffer:void 0,s=c?c.isBuffer:void 0,f=s||o;t.exports=f}).call(e,r(53)(t))},,,,,function(t,e,r){var n=r(138),o=r(43),a=r(184),i=a&&a.isTypedArray,u=i?o(i):n;t.exports=u},function(t,e,r){var n=r(10),o=r(3),a=n(o,"Map");t.exports=a},function(t,e,r){function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(175),a=r(176),i=r(177),u=r(178),c=r(179);n.prototype.clear=o,n.prototype.delete=a,n.prototype.get=i,n.prototype.has=u,n.prototype.set=c,t.exports=n},function(t,e,r){function n(t){var e=this.__data__=new o(t);this.size=e.size}var o=r(25),a=r(192),i=r(193),u=r(194),c=r(195),s=r(196);n.prototype.clear=a,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=c,n.prototype.set=s,t.exports=n},,,,function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},,function(t,e){function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}var n=Object.prototype;t.exports=r},,function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}var n=9007199254740991;t.exports=r},,,,,function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";function n(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<r.length;a++)if(!o.call(e,r[a])||t[r[a]]!==e[r[a]])return!1;return!0}function o(t){var e=1===t.button;return Boolean(e||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)}function a(t){return 0===t.length?"":""+t[0].toUpperCase()+t.slice(1)}function i(t,e,r){var n=t.isConjunctiveFacet(r)||t.isDisjunctiveFacet(r),o=Boolean(e.getFacetByName(r));e.nbHits>0&&n&&!o&&console.warn('A component requested values for facet "'+r+'", but no facet values were retrieved from the API. This means that you should add '+('the attribute "'+r+'" to the list of attributes for faceting in ')+"your index settings.")}function u(t){return t.displayName||t.name||"UnknownComponent"}Object.defineProperty(e,"__esModule",{value:!0}),e.shallowEqual=n,e.isSpecialClick=o,e.capitalize=a,e.assertFacetDefined=i,e.getDisplayName=u;var c=Promise.resolve();e.defer=function(t){c.then(t)}},function(t,e,r){function n(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new o;++e<r;)this.add(t[e])}var o=r(38),a=r(187),i=r(188);n.prototype.add=n.prototype.push=a,n.prototype.has=i,t.exports=n},,function(t,e){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}t.exports=r},,,,function(t,e,r){function n(t,e,r,i,u){return t===e||(null==t||null==e||!a(t)&&!a(e)?t!==t&&e!==e:o(t,e,r,i,n,u))}var o=r(136),a=r(6);t.exports=n},function(t,e,r){function n(t){if("string"==typeof t)return t;if(i(t))return a(t,n)+"";if(u(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}var o=r(15),a=r(11),i=r(1),u=r(24),c=1/0,s=o?o.prototype:void 0,f=s?s.toString:void 0;t.exports=n},function(t,e){function r(t,e){return t.has(e)}t.exports=r},,,function(t,e,r){var n=r(82),o=r(108),a=Object.prototype,i=a.propertyIsEnumerable,u=Object.getOwnPropertySymbols,c=u?function(t){return null==t?[]:(t=Object(t),n(u(t),function(e){return i.call(t,e)}))}:o;t.exports=c},function(t,e,r){var n=r(123),o=r(37),a=r(126),i=r(127),u=r(80),c=r(8),s=r(73),f="[object Map]",p="[object Object]",l="[object Promise]",h="[object Set]",v="[object WeakMap]",y="[object DataView]",d=s(n),b=s(o),_=s(a),x=s(i),g=s(u),j=c;(n&&j(new n(new ArrayBuffer(1)))!=y||o&&j(new o)!=f||a&&j(a.resolve())!=l||i&&j(new i)!=h||u&&j(new u)!=v)&&(j=function(t){var e=c(t),r=e==p?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case d:return y;case b:return f;case _:return l;case x:return h;case g:return v}return e}),t.exports=j},function(t,e,r){function n(t,e){if(o(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!a(t))||(u.test(t)||!i.test(t)||null!=e&&t in Object(e))}var o=r(1),a=r(24),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=n},,function(t,e,r){function n(t){return null==t?"":o(t)}var o=r(62);t.exports=n},function(t,e,r){function n(t,e,r,n,s,f){var p=r&u,l=t.length,h=e.length;if(l!=h&&!(p&&h>l))return!1;var v=f.get(t);if(v&&f.get(e))return v==e;var y=-1,d=!0,b=r&c?new o:void 0;for(f.set(t,e),f.set(e,t);++y<l;){var _=t[y],x=e[y];if(n)var g=p?n(x,_,y,e,t,f):n(_,x,y,t,e,f);if(void 0!==g){if(g)continue;d=!1;break}if(b){if(!a(e,function(t,e){if(!i(b,e)&&(_===t||s(_,t,r,n,f)))return b.push(e)})){d=!1;break}}else if(_!==x&&!s(_,x,r,n,f)){d=!1;break}}return f.delete(t),f.delete(e),d}var o=r(55),a=r(129),i=r(63),u=1,c=2;t.exports=n},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,r(52))},function(t,e){function r(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var n=Function.prototype,o=n.toString;t.exports=r},function(t,e,r){function n(t,e){return null!=t&&a(t,e,o)}var o=r(134),a=r(95);t.exports=n},,,,,function(t,e,r){var n=r(3),o=n.Uint8Array;t.exports=o},function(t,e,r){var n=r(10),o=r(3),a=n(o,"WeakMap");t.exports=a},,function(t,e){function r(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}t.exports=r},,function(t,e,r){function n(t,e){var r=i(t),n=!r&&a(t),f=!r&&!n&&u(t),l=!r&&!n&&!f&&s(t),h=r||n||f||l,v=h?o(t.length,String):[],y=v.length;for(var d in t)!e&&!p.call(t,d)||h&&("length"==d||f&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||c(d,y))||v.push(d);return v}var o=r(143),a=r(30),i=r(1),u=r(31),c=r(28),s=r(36),f=Object.prototype,p=f.hasOwnProperty;t.exports=n},,,function(t,e,r){function n(t,e,r){var n=e(t);return a(t)?n:o(n,r(t))}var o=r(57),a=r(1);t.exports=n},function(t,e,r){function n(t){if(!o(t))return a(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}var o=r(45),a=r(183),i=Object.prototype,u=i.hasOwnProperty;t.exports=n},,,,function(t,e,r){function n(t){return o(t,i,a)}var o=r(87),a=r(66),i=r(9);t.exports=n},,,function(t,e,r){function n(t,e,r){e=o(e,t);for(var n=-1,f=e.length,p=!1;++n<f;){var l=s(e[n]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++n!=f?p:(f=null==t?0:t.length,!!f&&c(f)&&u(l,f)&&(i(t)||a(t)))}var o=r(20),a=r(30),i=r(1),u=r(28),c=r(47),s=r(22);t.exports=n},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}t.exports=r},function(t,e){function r(t,e){return function(r){return t(e(r))}}t.exports=r},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}t.exports=r},,,,,,function(t,e,r){function n(t,e){return o(t,e)}var o=r(61);t.exports=n},,,,function(t,e){function r(){return[]}t.exports=r},,,,,,,,,,,,,,,function(t,e,r){var n=r(10),o=r(3),a=n(o,"DataView");t.exports=a},function(t,e,r){function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(161),a=r(162),i=r(163),u=r(164),c=r(165);n.prototype.clear=o,n.prototype.delete=a,n.prototype.get=i,n.prototype.has=u,n.prototype.set=c,t.exports=n},,function(t,e,r){var n=r(10),o=r(3),a=n(o,"Promise");t.exports=a},function(t,e,r){var n=r(10),o=r(3),a=n(o,"Set");t.exports=a},,function(t,e){function r(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}t.exports=r},,,,,function(t,e){function r(t,e){return null!=t&&o.call(t,e)}var n=Object.prototype,o=n.hasOwnProperty;t.exports=r},function(t,e,r){function n(t){return a(t)&&o(t)==i}var o=r(8),a=r(6),i="[object Arguments]";t.exports=n},function(t,e,r){function n(t,e,r,n,d,_){var x=s(t),g=s(e),j=x?v:c(t),w=g?v:c(e);j=j==h?y:j,w=w==h?y:w;var O=j==y,m=w==y,P=j==w;if(P&&f(t)){if(!f(e))return!1;x=!0,O=!1}if(P&&!O)return _||(_=new o),x||p(t)?a(t,e,r,n,d,_):i(t,e,j,r,n,d,_);if(!(r&l)){var S=O&&b.call(t,"__wrapped__"),A=m&&b.call(e,"__wrapped__");if(S||A){var F=S?t.value():t,z=A?e.value():e;return _||(_=new o),d(F,z,r,n,_)}}return!!P&&(_||(_=new o),u(t,e,r,n,d,_))}var o=r(39),a=r(71),i=r(154),u=r(155),c=r(67),s=r(1),f=r(31),p=r(36),l=1,h="[object Arguments]",v="[object Array]",y="[object Object]",d=Object.prototype,b=d.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){if(!i(t)||a(t))return!1;var e=o(t)?v:s;return e.test(u(t))}var o=r(18),a=r(168),i=r(5),u=r(73),c=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,l=f.toString,h=p.hasOwnProperty,v=RegExp("^"+l.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return i(t)&&a(t.length)&&!!E[o(t)]}var o=r(8),a=r(47),i=r(6),u="[object Arguments]",c="[object Array]",s="[object Boolean]",f="[object Date]",p="[object Error]",l="[object Function]",h="[object Map]",v="[object Number]",y="[object Object]",d="[object RegExp]",b="[object Set]",_="[object String]",x="[object WeakMap]",g="[object ArrayBuffer]",j="[object DataView]",w="[object Float32Array]",O="[object Float64Array]",m="[object Int8Array]",P="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",F="[object Uint8ClampedArray]",z="[object Uint16Array]",k="[object Uint32Array]",E={};E[w]=E[O]=E[m]=E[P]=E[S]=E[A]=E[F]=E[z]=E[k]=!0,E[u]=E[c]=E[g]=E[s]=E[j]=E[f]=E[p]=E[l]=E[h]=E[v]=E[y]=E[d]=E[b]=E[_]=E[x]=!1,t.exports=n},,,,,function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},,,,,,function(t,e,r){var n=r(3),o=n["__core-js_shared__"];t.exports=o},,,,,function(t,e,r){function n(t,e,r,n,o,O,P){switch(r){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!O(new a(t),new a(e)));case l:case h:case d:return i(+t,+e);case v:return t.name==e.name&&t.message==e.message;case b:case x:return t==e+"";case y:var S=c;case _:var A=n&f;if(S||(S=s),t.size!=e.size&&!A)return!1;var F=P.get(t);if(F)return F==e;n|=p,P.set(t,e);var z=u(S(t),S(e),n,o,O,P);return P.delete(t),z;case g:if(m)return m.call(t)==m.call(e)}return!1}var o=r(15),a=r(79),i=r(17),u=r(71),c=r(96),s=r(98),f=1,p=2,l="[object Boolean]",h="[object Date]",v="[object Error]",y="[object Map]",d="[object Number]",b="[object RegExp]",_="[object Set]",x="[object String]",g="[object Symbol]",j="[object ArrayBuffer]",w="[object DataView]",O=o?o.prototype:void 0,m=O?O.valueOf:void 0;t.exports=n},function(t,e,r){function n(t,e,r,n,i,c){var s=r&a,f=o(t),p=f.length,l=o(e),h=l.length;if(p!=h&&!s)return!1;for(var v=p;v--;){var y=f[v];if(!(s?y in e:u.call(e,y)))return!1}var d=c.get(t);if(d&&c.get(e))return d==e;var b=!0;c.set(t,e),c.set(e,t);for(var _=s;++v<p;){y=f[v];var x=t[y],g=e[y];if(n)var j=s?n(g,x,y,e,t,c):n(x,g,y,t,e,c);if(!(void 0===j?x===g||i(x,g,r,n,c):j)){b=!1;break}_||(_="constructor"==y)}if(b&&!_){var w=t.constructor,O=e.constructor;w!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O)&&(b=!1)}return c.delete(t),c.delete(e),b}var o=r(92),a=1,i=Object.prototype,u=i.hasOwnProperty;t.exports=n},,,function(t,e,r){function n(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[c]=r:delete t[c]),o}var o=r(15),a=Object.prototype,i=a.hasOwnProperty,u=a.toString,c=o?o.toStringTag:void 0;t.exports=n},,function(t,e){function r(t,e){return null==t?void 0:t[e]}t.exports=r},function(t,e,r){function n(){this.__data__=o?o(null):{},this.size=0}var o=r(29);t.exports=n},function(t,e){function r(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=r},function(t,e,r){function n(t){var e=this.__data__;if(o){var r=e[t];return r===a?void 0:r}return u.call(e,t)?e[t]:void 0}var o=r(29),a="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return o?void 0!==e[t]:i.call(e,t)}var o=r(29),a=Object.prototype,i=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=o&&void 0===e?a:e,this}var o=r(29),a="__lodash_hash_undefined__";t.exports=n},,function(t,e){function r(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=r},function(t,e,r){function n(t){return!!a&&a in t}var o=r(149),a=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=n},,function(t,e){function r(){this.__data__=[],this.size=0}t.exports=r},function(t,e,r){function n(t){var e=this.__data__,r=o(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():i.call(e,r,1),--this.size,!0}var o=r(26),a=Array.prototype,i=a.splice;t.exports=n},function(t,e,r){function n(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]}var o=r(26);t.exports=n},function(t,e,r){function n(t){return o(this.__data__,t)>-1}var o=r(26);t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var o=r(26);t.exports=n},function(t,e,r){function n(){this.size=0,this.__data__={hash:new o,map:new(i||a),string:new o}}var o=r(124),a=r(25),i=r(37);t.exports=n},function(t,e,r){function n(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=r(27);t.exports=n},function(t,e,r){function n(t){return o(this,t).get(t)}var o=r(27);t.exports=n},function(t,e,r){function n(t){return o(this,t).has(t)}var o=r(27);t.exports=n},function(t,e,r){function n(t,e){var r=o(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var o=r(27);t.exports=n},,function(t,e,r){function n(t){var e=o(t,function(t){return r.size===a&&r.clear(),t}),r=e.cache;return e}var o=r(206),a=500;t.exports=n},,function(t,e,r){var n=r(97),o=n(Object.keys,Object);t.exports=o},function(t,e,r){(function(t){var n=r(72),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,i=a&&a.exports===o,u=i&&n.process,c=function(){try{return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c}).call(e,r(53)(t))},function(t,e){function r(t){return o.call(t)}var n=Object.prototype,o=n.toString;t.exports=r},,function(t,e){function r(t){return this.__data__.set(t,n),this}var n="__lodash_hash_undefined__";t.exports=r},function(t,e){function r(t){return this.__data__.has(t)}t.exports=r},,,,function(t,e,r){function n(){this.__data__=new o,this.size=0}var o=r(25);t.exports=n},function(t,e){function r(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}t.exports=r},function(t,e){function r(t){return this.__data__.get(t)}t.exports=r},function(t,e){function r(t){return this.__data__.has(t)}t.exports=r},function(t,e,r){function n(t,e){var r=this.__data__;if(r instanceof o){var n=r.__data__;if(!a||n.length<u-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(n)}return r.set(t,e),this.size=r.size,this}var o=r(25),a=r(37),i=r(38),u=200;t.exports=n},function(t,e,r){var n=r(181),o=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=n(function(t){var e=[];return o.test(t)&&e.push(""),t.replace(a,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e});t.exports=u},,,,,,,,,function(t,e,r){function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(a);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(n.Cache||o),r}var o=r(38),a="Expected a function";n.Cache=o,t.exports=n},function(t,e){function r(){return!1}t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(2);Object.defineProperty(e,"createConnector",{enumerable:!0,get:function(){return n(o).default}})}])}); | ||
//# sourceMappingURL=Core.min.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6419279
55423
5
21
+ Addedalgoliasearch-helper@2.19.0(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedmarked@0.3.19(transitive)
+ Addedutil@0.10.4(transitive)
- Removedalgoliasearch-helper@2.28.1(transitive)
Updatedalgoliasearch-helper@2.19.0