react-instantsearch 7.12.2 → 7.12.3
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
var React__default = 'default' in React ? React['default'] : React;
|
|
9
9
|
|
|
10
|
-
var version = '7.12.
|
|
10
|
+
var version = '7.12.3';
|
|
11
11
|
|
|
12
12
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
13
|
//
|
|
@@ -9171,6 +9171,8 @@
|
|
|
9171
9171
|
};
|
|
9172
9172
|
}
|
|
9173
9173
|
|
|
9174
|
+
var IndexContext = /*#__PURE__*/React.createContext(null);
|
|
9175
|
+
|
|
9174
9176
|
/**
|
|
9175
9177
|
* Throws an error if the condition is not met.
|
|
9176
9178
|
*
|
|
@@ -9188,8 +9190,6 @@
|
|
|
9188
9190
|
}
|
|
9189
9191
|
}
|
|
9190
9192
|
|
|
9191
|
-
var IndexContext = /*#__PURE__*/React.createContext(null);
|
|
9192
|
-
|
|
9193
9193
|
function useIndexContext() {
|
|
9194
9194
|
var context = React.useContext(IndexContext);
|
|
9195
9195
|
invariant(context !== null);
|
|
@@ -12639,6 +12639,11 @@
|
|
|
12639
12639
|
var _this5 = this;
|
|
12640
12640
|
return safelyRunOnBrowser(function (_ref6) {
|
|
12641
12641
|
var window = _ref6.window;
|
|
12642
|
+
// When disposed and the cleanUrlOnDispose is set to false, we do not want to write the URL.
|
|
12643
|
+
if (_this5.isDisposed && !_this5._cleanUrlOnDispose) {
|
|
12644
|
+
return false;
|
|
12645
|
+
}
|
|
12646
|
+
|
|
12642
12647
|
// We do want to `pushState` if:
|
|
12643
12648
|
// - the router is not disposed, IS.js needs to update the URL
|
|
12644
12649
|
// OR
|
|
@@ -13107,9 +13112,8 @@
|
|
|
13107
13112
|
function createDefaultEmptyComponent(_ref) {
|
|
13108
13113
|
var createElement = _ref.createElement,
|
|
13109
13114
|
Fragment = _ref.Fragment;
|
|
13110
|
-
var _ref2 = createElement(Fragment, null, "No results");
|
|
13111
13115
|
return function DefaultEmpty() {
|
|
13112
|
-
return
|
|
13116
|
+
return createElement(Fragment, null, "No results");
|
|
13113
13117
|
};
|
|
13114
13118
|
}
|
|
13115
13119
|
|
|
@@ -13401,10 +13405,10 @@
|
|
|
13401
13405
|
}
|
|
13402
13406
|
return target;
|
|
13403
13407
|
}
|
|
13404
|
-
function
|
|
13408
|
+
function createLookingSimilarComponent(_ref) {
|
|
13405
13409
|
var createElement = _ref.createElement,
|
|
13406
13410
|
Fragment = _ref.Fragment;
|
|
13407
|
-
return function
|
|
13411
|
+
return function LookingSimilar(userProps) {
|
|
13408
13412
|
var _userProps$classNames = userProps.classNames,
|
|
13409
13413
|
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
13410
13414
|
_userProps$emptyCompo = userProps.emptyComponent,
|
|
@@ -13433,16 +13437,16 @@
|
|
|
13433
13437
|
sendEvent = userProps.sendEvent,
|
|
13434
13438
|
props = _objectWithoutProperties$6(userProps, _excluded$9);
|
|
13435
13439
|
var translations = _objectSpread$k({
|
|
13436
|
-
title: '
|
|
13437
|
-
sliderLabel: '
|
|
13440
|
+
title: 'Looking similar',
|
|
13441
|
+
sliderLabel: 'Looking similar'
|
|
13438
13442
|
}, userTranslations);
|
|
13439
13443
|
var cssClasses = {
|
|
13440
|
-
root: cx('ais-
|
|
13441
|
-
emptyRoot: cx('ais-
|
|
13442
|
-
title: cx('ais-
|
|
13443
|
-
container: cx('ais-
|
|
13444
|
-
list: cx('ais-
|
|
13445
|
-
item: cx('ais-
|
|
13444
|
+
root: cx('ais-LookingSimilar', classNames.root),
|
|
13445
|
+
emptyRoot: cx('ais-LookingSimilar', classNames.root, 'ais-LookingSimilar--empty', classNames.emptyRoot, props.className),
|
|
13446
|
+
title: cx('ais-LookingSimilar-title', classNames.title),
|
|
13447
|
+
container: cx('ais-LookingSimilar-container', classNames.container),
|
|
13448
|
+
list: cx('ais-LookingSimilar-list', classNames.list),
|
|
13449
|
+
item: cx('ais-LookingSimilar-item', classNames.item)
|
|
13446
13450
|
};
|
|
13447
13451
|
if (items.length === 0 && status === 'idle') {
|
|
13448
13452
|
return createElement("section", _extends$1({}, props, {
|
|
@@ -13487,10 +13491,10 @@
|
|
|
13487
13491
|
}
|
|
13488
13492
|
return target;
|
|
13489
13493
|
}
|
|
13490
|
-
function
|
|
13494
|
+
function createRelatedProductsComponent(_ref) {
|
|
13491
13495
|
var createElement = _ref.createElement,
|
|
13492
13496
|
Fragment = _ref.Fragment;
|
|
13493
|
-
return function
|
|
13497
|
+
return function RelatedProducts(userProps) {
|
|
13494
13498
|
var _userProps$classNames = userProps.classNames,
|
|
13495
13499
|
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
13496
13500
|
_userProps$emptyCompo = userProps.emptyComponent,
|
|
@@ -13519,16 +13523,16 @@
|
|
|
13519
13523
|
sendEvent = userProps.sendEvent,
|
|
13520
13524
|
props = _objectWithoutProperties$6(userProps, _excluded$a);
|
|
13521
13525
|
var translations = _objectSpread$l({
|
|
13522
|
-
title: '
|
|
13523
|
-
sliderLabel: '
|
|
13526
|
+
title: 'Related products',
|
|
13527
|
+
sliderLabel: 'Related products'
|
|
13524
13528
|
}, userTranslations);
|
|
13525
13529
|
var cssClasses = {
|
|
13526
|
-
root: cx('ais-
|
|
13527
|
-
emptyRoot: cx('ais-
|
|
13528
|
-
title: cx('ais-
|
|
13529
|
-
container: cx('ais-
|
|
13530
|
-
list: cx('ais-
|
|
13531
|
-
item: cx('ais-
|
|
13530
|
+
root: cx('ais-RelatedProducts', classNames.root),
|
|
13531
|
+
emptyRoot: cx('ais-RelatedProducts', classNames.root, 'ais-RelatedProducts--empty', classNames.emptyRoot, props.className),
|
|
13532
|
+
title: cx('ais-RelatedProducts-title', classNames.title),
|
|
13533
|
+
container: cx('ais-RelatedProducts-container', classNames.container),
|
|
13534
|
+
list: cx('ais-RelatedProducts-list', classNames.list),
|
|
13535
|
+
item: cx('ais-RelatedProducts-item', classNames.item)
|
|
13532
13536
|
};
|
|
13533
13537
|
if (items.length === 0 && status === 'idle') {
|
|
13534
13538
|
return createElement("section", _extends$1({}, props, {
|
|
@@ -13573,10 +13577,10 @@
|
|
|
13573
13577
|
}
|
|
13574
13578
|
return target;
|
|
13575
13579
|
}
|
|
13576
|
-
function
|
|
13580
|
+
function createTrendingItemsComponent(_ref) {
|
|
13577
13581
|
var createElement = _ref.createElement,
|
|
13578
13582
|
Fragment = _ref.Fragment;
|
|
13579
|
-
return function
|
|
13583
|
+
return function TrendingItems(userProps) {
|
|
13580
13584
|
var _userProps$classNames = userProps.classNames,
|
|
13581
13585
|
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
13582
13586
|
_userProps$emptyCompo = userProps.emptyComponent,
|
|
@@ -13605,16 +13609,16 @@
|
|
|
13605
13609
|
sendEvent = userProps.sendEvent,
|
|
13606
13610
|
props = _objectWithoutProperties$6(userProps, _excluded$b);
|
|
13607
13611
|
var translations = _objectSpread$m({
|
|
13608
|
-
title: '
|
|
13609
|
-
sliderLabel: '
|
|
13612
|
+
title: 'Trending items',
|
|
13613
|
+
sliderLabel: 'Trending items'
|
|
13610
13614
|
}, userTranslations);
|
|
13611
13615
|
var cssClasses = {
|
|
13612
|
-
root: cx('ais-
|
|
13613
|
-
emptyRoot: cx('ais-
|
|
13614
|
-
title: cx('ais-
|
|
13615
|
-
container: cx('ais-
|
|
13616
|
-
list: cx('ais-
|
|
13617
|
-
item: cx('ais-
|
|
13616
|
+
root: cx('ais-TrendingItems', classNames.root),
|
|
13617
|
+
emptyRoot: cx('ais-TrendingItems', classNames.root, 'ais-TrendingItems--empty', classNames.emptyRoot, props.className),
|
|
13618
|
+
title: cx('ais-TrendingItems-title', classNames.title),
|
|
13619
|
+
container: cx('ais-TrendingItems-container', classNames.container),
|
|
13620
|
+
list: cx('ais-TrendingItems-list', classNames.list),
|
|
13621
|
+
item: cx('ais-TrendingItems-item', classNames.item)
|
|
13618
13622
|
};
|
|
13619
13623
|
if (items.length === 0 && status === 'idle') {
|
|
13620
13624
|
return createElement("section", _extends$1({}, props, {
|
|
@@ -19298,7 +19302,7 @@
|
|
|
19298
19302
|
};
|
|
19299
19303
|
}
|
|
19300
19304
|
|
|
19301
|
-
var version$3 = '4.73.
|
|
19305
|
+
var version$3 = '4.73.3';
|
|
19302
19306
|
|
|
19303
19307
|
function _typeof$N(obj) {
|
|
19304
19308
|
"@babel/helpers - typeof";
|