react-instantsearch-core 7.5.3 → 7.5.5

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.
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '7.5.3';
7
+ var _default = '7.5.5';
8
8
  exports.default = _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.5.3";
1
+ declare const _default: "7.5.5";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '7.5.3';
1
+ export default '7.5.5';
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.5.3';
10
+ var version = '7.5.5';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -6588,7 +6588,7 @@
6588
6588
  return chunks;
6589
6589
  }
6590
6590
  function _buildEventPayloadsForHits(_ref) {
6591
- var index = _ref.index,
6591
+ var getIndex = _ref.getIndex,
6592
6592
  widgetType = _ref.widgetType,
6593
6593
  methodName = _ref.methodName,
6594
6594
  args = _ref.args,
@@ -6641,7 +6641,7 @@
6641
6641
  eventType: eventType,
6642
6642
  payload: _objectSpread$2({
6643
6643
  eventName: eventName || 'Hits Viewed',
6644
- index: index,
6644
+ index: getIndex(),
6645
6645
  objectIDs: objectIDsByChunk[i]
6646
6646
  }, additionalData),
6647
6647
  hits: batch,
@@ -6656,7 +6656,7 @@
6656
6656
  eventType: eventType,
6657
6657
  payload: _objectSpread$2({
6658
6658
  eventName: eventName || 'Hit Clicked',
6659
- index: index,
6659
+ index: getIndex(),
6660
6660
  queryID: queryID,
6661
6661
  objectIDs: objectIDsByChunk[i],
6662
6662
  positions: positionsByChunk[i]
@@ -6673,7 +6673,7 @@
6673
6673
  eventType: eventType,
6674
6674
  payload: _objectSpread$2({
6675
6675
  eventName: eventName || 'Hit Converted',
6676
- index: index,
6676
+ index: getIndex(),
6677
6677
  queryID: queryID,
6678
6678
  objectIDs: objectIDsByChunk[i]
6679
6679
  }, additionalData),
@@ -6687,7 +6687,7 @@
6687
6687
  }
6688
6688
  function createSendEventForHits(_ref2) {
6689
6689
  var instantSearchInstance = _ref2.instantSearchInstance,
6690
- index = _ref2.index,
6690
+ getIndex = _ref2.getIndex,
6691
6691
  widgetType = _ref2.widgetType;
6692
6692
  var sentEvents = {};
6693
6693
  var timer = undefined;
@@ -6697,7 +6697,7 @@
6697
6697
  }
6698
6698
  var payloads = _buildEventPayloadsForHits({
6699
6699
  widgetType: widgetType,
6700
- index: index,
6700
+ getIndex: getIndex,
6701
6701
  methodName: 'sendEvent',
6702
6702
  args: args,
6703
6703
  instantSearchInstance: instantSearchInstance
@@ -6717,7 +6717,7 @@
6717
6717
  return sendEventForHits;
6718
6718
  }
6719
6719
  function createBindEventForHits(_ref3) {
6720
- var index = _ref3.index,
6720
+ var getIndex = _ref3.getIndex,
6721
6721
  widgetType = _ref3.widgetType,
6722
6722
  instantSearchInstance = _ref3.instantSearchInstance;
6723
6723
  var bindEventForHits = function bindEventForHits() {
@@ -6726,7 +6726,7 @@
6726
6726
  }
6727
6727
  var payloads = _buildEventPayloadsForHits({
6728
6728
  widgetType: widgetType,
6729
- index: index,
6729
+ getIndex: getIndex,
6730
6730
  methodName: 'bindEvent',
6731
6731
  args: args,
6732
6732
  instantSearchInstance: instantSearchInstance
@@ -11706,7 +11706,7 @@
11706
11706
  };
11707
11707
  }
11708
11708
 
11709
- var version$2 = '4.64.1';
11709
+ var version$2 = '4.64.3';
11710
11710
 
11711
11711
  function _typeof$k(obj) {
11712
11712
  "@babel/helpers - typeof";
@@ -13637,7 +13637,9 @@
13637
13637
  if (!sendEvent) {
13638
13638
  sendEvent = createSendEventForHits({
13639
13639
  instantSearchInstance: instantSearchInstance,
13640
- index: helper.getIndex(),
13640
+ getIndex: function getIndex() {
13641
+ return helper.getIndex();
13642
+ },
13641
13643
  widgetType: $$type
13642
13644
  });
13643
13645
  }
@@ -14164,13 +14166,17 @@
14164
14166
  if (!sendEvent) {
14165
14167
  sendEvent = createSendEventForHits({
14166
14168
  instantSearchInstance: instantSearchInstance,
14167
- index: helper.getIndex(),
14169
+ getIndex: function getIndex() {
14170
+ return helper.getIndex();
14171
+ },
14168
14172
  widgetType: this.$$type
14169
14173
  });
14170
14174
  }
14171
14175
  if (!bindEvent) {
14172
14176
  bindEvent = createBindEventForHits({
14173
- index: helper.getIndex(),
14177
+ getIndex: function getIndex() {
14178
+ return helper.getIndex();
14179
+ },
14174
14180
  widgetType: this.$$type,
14175
14181
  instantSearchInstance: instantSearchInstance
14176
14182
  });
@@ -14698,11 +14704,15 @@
14698
14704
  showMore = getShowMore(helper);
14699
14705
  sendEvent = createSendEventForHits({
14700
14706
  instantSearchInstance: instantSearchInstance,
14701
- index: helper.getIndex(),
14707
+ getIndex: function getIndex() {
14708
+ return helper.getIndex();
14709
+ },
14702
14710
  widgetType: this.$$type
14703
14711
  });
14704
14712
  bindEvent = createBindEventForHits({
14705
- index: helper.getIndex(),
14713
+ getIndex: function getIndex() {
14714
+ return helper.getIndex();
14715
+ },
14706
14716
  widgetType: this.$$type,
14707
14717
  instantSearchInstance: instantSearchInstance
14708
14718
  });