react-instantsearch 7.14.0 → 7.15.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/widgets/FrequentlyBoughtTogether.js +3 -2
- package/dist/cjs/widgets/LookingSimilar.js +3 -2
- package/dist/cjs/widgets/RelatedProducts.js +3 -2
- package/dist/cjs/widgets/TrendingItems.js +3 -2
- package/dist/es/widgets/FrequentlyBoughtTogether.js +3 -2
- package/dist/es/widgets/LookingSimilar.js +3 -2
- package/dist/es/widgets/RelatedProducts.js +3 -2
- package/dist/es/widgets/TrendingItems.js +3 -2
- package/dist/umd/ReactInstantSearch.js +118 -36
- 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
|
@@ -47,7 +47,8 @@ function FrequentlyBoughtTogether(_ref) {
|
|
|
47
47
|
}, {
|
|
48
48
|
$$widgetType: 'ais.frequentlyBoughtTogether'
|
|
49
49
|
}),
|
|
50
|
-
items = _useFrequentlyBoughtT.items
|
|
50
|
+
items = _useFrequentlyBoughtT.items,
|
|
51
|
+
sendEvent = _useFrequentlyBoughtT.sendEvent;
|
|
51
52
|
var layout = layoutComponent ? function (layoutProps) {
|
|
52
53
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
53
54
|
classNames: {
|
|
@@ -63,7 +64,7 @@ function FrequentlyBoughtTogether(_ref) {
|
|
|
63
64
|
emptyComponent: emptyComponent,
|
|
64
65
|
layout: layout,
|
|
65
66
|
status: status,
|
|
66
|
-
sendEvent:
|
|
67
|
+
sendEvent: sendEvent
|
|
67
68
|
};
|
|
68
69
|
return /*#__PURE__*/_react.default.createElement(FrequentlyBoughtTogetherUiComponent, _extends({}, props, uiProps));
|
|
69
70
|
}
|
|
@@ -49,7 +49,8 @@ function LookingSimilar(_ref) {
|
|
|
49
49
|
}, {
|
|
50
50
|
$$widgetType: 'ais.lookingSimilar'
|
|
51
51
|
}),
|
|
52
|
-
items = _useLookingSimilar.items
|
|
52
|
+
items = _useLookingSimilar.items,
|
|
53
|
+
sendEvent = _useLookingSimilar.sendEvent;
|
|
53
54
|
var layout = layoutComponent ? function (layoutProps) {
|
|
54
55
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
55
56
|
classNames: {
|
|
@@ -65,7 +66,7 @@ function LookingSimilar(_ref) {
|
|
|
65
66
|
emptyComponent: emptyComponent,
|
|
66
67
|
layout: layout,
|
|
67
68
|
status: status,
|
|
68
|
-
sendEvent:
|
|
69
|
+
sendEvent: sendEvent
|
|
69
70
|
};
|
|
70
71
|
return /*#__PURE__*/_react.default.createElement(LookingSimilarUiComponent, _extends({}, props, uiProps));
|
|
71
72
|
}
|
|
@@ -49,7 +49,8 @@ function RelatedProducts(_ref) {
|
|
|
49
49
|
}, {
|
|
50
50
|
$$widgetType: 'ais.relatedProducts'
|
|
51
51
|
}),
|
|
52
|
-
items = _useRelatedProducts.items
|
|
52
|
+
items = _useRelatedProducts.items,
|
|
53
|
+
sendEvent = _useRelatedProducts.sendEvent;
|
|
53
54
|
var layout = layoutComponent ? function (layoutProps) {
|
|
54
55
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
55
56
|
classNames: {
|
|
@@ -65,7 +66,7 @@ function RelatedProducts(_ref) {
|
|
|
65
66
|
emptyComponent: emptyComponent,
|
|
66
67
|
layout: layout,
|
|
67
68
|
status: status,
|
|
68
|
-
sendEvent:
|
|
69
|
+
sendEvent: sendEvent
|
|
69
70
|
};
|
|
70
71
|
return /*#__PURE__*/_react.default.createElement(RelatedProductsUiComponent, _extends({}, props, uiProps));
|
|
71
72
|
}
|
|
@@ -53,7 +53,8 @@ function TrendingItems(_ref) {
|
|
|
53
53
|
}), {
|
|
54
54
|
$$widgetType: 'ais.trendingItems'
|
|
55
55
|
}),
|
|
56
|
-
items = _useTrendingItems.items
|
|
56
|
+
items = _useTrendingItems.items,
|
|
57
|
+
sendEvent = _useTrendingItems.sendEvent;
|
|
57
58
|
var layout = layoutComponent ? function (layoutProps) {
|
|
58
59
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
59
60
|
classNames: {
|
|
@@ -69,7 +70,7 @@ function TrendingItems(_ref) {
|
|
|
69
70
|
emptyComponent: emptyComponent,
|
|
70
71
|
layout: layout,
|
|
71
72
|
status: status,
|
|
72
|
-
sendEvent:
|
|
73
|
+
sendEvent: sendEvent
|
|
73
74
|
};
|
|
74
75
|
return /*#__PURE__*/_react.default.createElement(TrendingItemsUiComponent, _extends({}, props, uiProps));
|
|
75
76
|
}
|
|
@@ -39,7 +39,8 @@ export function FrequentlyBoughtTogether(_ref) {
|
|
|
39
39
|
}, {
|
|
40
40
|
$$widgetType: 'ais.frequentlyBoughtTogether'
|
|
41
41
|
}),
|
|
42
|
-
items = _useFrequentlyBoughtT.items
|
|
42
|
+
items = _useFrequentlyBoughtT.items,
|
|
43
|
+
sendEvent = _useFrequentlyBoughtT.sendEvent;
|
|
43
44
|
var layout = layoutComponent ? function (layoutProps) {
|
|
44
45
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
45
46
|
classNames: {
|
|
@@ -55,7 +56,7 @@ export function FrequentlyBoughtTogether(_ref) {
|
|
|
55
56
|
emptyComponent: emptyComponent,
|
|
56
57
|
layout: layout,
|
|
57
58
|
status: status,
|
|
58
|
-
sendEvent:
|
|
59
|
+
sendEvent: sendEvent
|
|
59
60
|
};
|
|
60
61
|
return /*#__PURE__*/React.createElement(FrequentlyBoughtTogetherUiComponent, _extends({}, props, uiProps));
|
|
61
62
|
}
|
|
@@ -41,7 +41,8 @@ export function LookingSimilar(_ref) {
|
|
|
41
41
|
}, {
|
|
42
42
|
$$widgetType: 'ais.lookingSimilar'
|
|
43
43
|
}),
|
|
44
|
-
items = _useLookingSimilar.items
|
|
44
|
+
items = _useLookingSimilar.items,
|
|
45
|
+
sendEvent = _useLookingSimilar.sendEvent;
|
|
45
46
|
var layout = layoutComponent ? function (layoutProps) {
|
|
46
47
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
47
48
|
classNames: {
|
|
@@ -57,7 +58,7 @@ export function LookingSimilar(_ref) {
|
|
|
57
58
|
emptyComponent: emptyComponent,
|
|
58
59
|
layout: layout,
|
|
59
60
|
status: status,
|
|
60
|
-
sendEvent:
|
|
61
|
+
sendEvent: sendEvent
|
|
61
62
|
};
|
|
62
63
|
return /*#__PURE__*/React.createElement(LookingSimilarUiComponent, _extends({}, props, uiProps));
|
|
63
64
|
}
|
|
@@ -41,7 +41,8 @@ export function RelatedProducts(_ref) {
|
|
|
41
41
|
}, {
|
|
42
42
|
$$widgetType: 'ais.relatedProducts'
|
|
43
43
|
}),
|
|
44
|
-
items = _useRelatedProducts.items
|
|
44
|
+
items = _useRelatedProducts.items,
|
|
45
|
+
sendEvent = _useRelatedProducts.sendEvent;
|
|
45
46
|
var layout = layoutComponent ? function (layoutProps) {
|
|
46
47
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
47
48
|
classNames: {
|
|
@@ -57,7 +58,7 @@ export function RelatedProducts(_ref) {
|
|
|
57
58
|
emptyComponent: emptyComponent,
|
|
58
59
|
layout: layout,
|
|
59
60
|
status: status,
|
|
60
|
-
sendEvent:
|
|
61
|
+
sendEvent: sendEvent
|
|
61
62
|
};
|
|
62
63
|
return /*#__PURE__*/React.createElement(RelatedProductsUiComponent, _extends({}, props, uiProps));
|
|
63
64
|
}
|
|
@@ -45,7 +45,8 @@ export function TrendingItems(_ref) {
|
|
|
45
45
|
}), {
|
|
46
46
|
$$widgetType: 'ais.trendingItems'
|
|
47
47
|
}),
|
|
48
|
-
items = _useTrendingItems.items
|
|
48
|
+
items = _useTrendingItems.items,
|
|
49
|
+
sendEvent = _useTrendingItems.sendEvent;
|
|
49
50
|
var layout = layoutComponent ? function (layoutProps) {
|
|
50
51
|
return layoutComponent(_objectSpread(_objectSpread({}, layoutProps), {}, {
|
|
51
52
|
classNames: {
|
|
@@ -61,7 +62,7 @@ export function TrendingItems(_ref) {
|
|
|
61
62
|
emptyComponent: emptyComponent,
|
|
62
63
|
layout: layout,
|
|
63
64
|
status: status,
|
|
64
|
-
sendEvent:
|
|
65
|
+
sendEvent: sendEvent
|
|
65
66
|
};
|
|
66
67
|
return /*#__PURE__*/React.createElement(TrendingItemsUiComponent, _extends({}, props, uiProps));
|
|
67
68
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
var React__default = 'default' in React ? React['default'] : React;
|
|
9
9
|
|
|
10
|
-
var version = '7.
|
|
10
|
+
var version = '7.15.0';
|
|
11
11
|
|
|
12
12
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
13
|
//
|
|
@@ -13380,7 +13380,7 @@
|
|
|
13380
13380
|
};
|
|
13381
13381
|
}
|
|
13382
13382
|
|
|
13383
|
-
var version$3 = '4.
|
|
13383
|
+
var version$3 = '4.77.0';
|
|
13384
13384
|
|
|
13385
13385
|
function _typeof$q(o) {
|
|
13386
13386
|
"@babel/helpers - typeof";
|
|
@@ -15392,6 +15392,7 @@
|
|
|
15392
15392
|
if (!objectIDs || objectIDs.length === 0) {
|
|
15393
15393
|
throw new Error(withUsage$7('The `objectIDs` option is required.'));
|
|
15394
15394
|
}
|
|
15395
|
+
var sendEvent;
|
|
15395
15396
|
return {
|
|
15396
15397
|
dependsOn: 'recommend',
|
|
15397
15398
|
$$type: 'ais.frequentlyBoughtTogether',
|
|
@@ -15410,22 +15411,37 @@
|
|
|
15410
15411
|
return renderState;
|
|
15411
15412
|
},
|
|
15412
15413
|
getWidgetRenderState: function getWidgetRenderState(_ref2) {
|
|
15413
|
-
var results = _ref2.results
|
|
15414
|
+
var results = _ref2.results,
|
|
15415
|
+
helper = _ref2.helper,
|
|
15416
|
+
instantSearchInstance = _ref2.instantSearchInstance;
|
|
15417
|
+
if (!sendEvent) {
|
|
15418
|
+
sendEvent = createSendEventForHits({
|
|
15419
|
+
instantSearchInstance: instantSearchInstance,
|
|
15420
|
+
getIndex: function getIndex() {
|
|
15421
|
+
return helper.getIndex();
|
|
15422
|
+
},
|
|
15423
|
+
widgetType: this.$$type
|
|
15424
|
+
});
|
|
15425
|
+
}
|
|
15414
15426
|
if (results === null || results === undefined) {
|
|
15415
15427
|
return {
|
|
15416
15428
|
items: [],
|
|
15417
|
-
widgetParams: widgetParams
|
|
15429
|
+
widgetParams: widgetParams,
|
|
15430
|
+
sendEvent: sendEvent
|
|
15418
15431
|
};
|
|
15419
15432
|
}
|
|
15420
15433
|
if (escapeHTML && results.hits.length > 0) {
|
|
15421
15434
|
results.hits = escapeHits(results.hits);
|
|
15422
15435
|
}
|
|
15423
|
-
var
|
|
15436
|
+
var itemsWithAbsolutePosition = addAbsolutePosition(results.hits, 0, 1);
|
|
15437
|
+
var itemsWithAbsolutePositionAndQueryID = addQueryID(itemsWithAbsolutePosition, results.queryID);
|
|
15438
|
+
var transformedItems = transformItems(itemsWithAbsolutePositionAndQueryID, {
|
|
15424
15439
|
results: results
|
|
15425
15440
|
});
|
|
15426
15441
|
return {
|
|
15427
15442
|
items: transformedItems,
|
|
15428
|
-
widgetParams: widgetParams
|
|
15443
|
+
widgetParams: widgetParams,
|
|
15444
|
+
sendEvent: sendEvent
|
|
15429
15445
|
};
|
|
15430
15446
|
},
|
|
15431
15447
|
dispose: function dispose(_ref3) {
|
|
@@ -18988,6 +19004,7 @@
|
|
|
18988
19004
|
if (!objectIDs || objectIDs.length === 0) {
|
|
18989
19005
|
throw new Error(withUsage$j('The `objectIDs` option is required.'));
|
|
18990
19006
|
}
|
|
19007
|
+
var sendEvent;
|
|
18991
19008
|
return {
|
|
18992
19009
|
dependsOn: 'recommend',
|
|
18993
19010
|
$$type: 'ais.relatedProducts',
|
|
@@ -19006,21 +19023,37 @@
|
|
|
19006
19023
|
return renderState;
|
|
19007
19024
|
},
|
|
19008
19025
|
getWidgetRenderState: function getWidgetRenderState(_ref2) {
|
|
19009
|
-
var results = _ref2.results
|
|
19026
|
+
var results = _ref2.results,
|
|
19027
|
+
helper = _ref2.helper,
|
|
19028
|
+
instantSearchInstance = _ref2.instantSearchInstance;
|
|
19029
|
+
if (!sendEvent) {
|
|
19030
|
+
sendEvent = createSendEventForHits({
|
|
19031
|
+
instantSearchInstance: instantSearchInstance,
|
|
19032
|
+
getIndex: function getIndex() {
|
|
19033
|
+
return helper.getIndex();
|
|
19034
|
+
},
|
|
19035
|
+
widgetType: this.$$type
|
|
19036
|
+
});
|
|
19037
|
+
}
|
|
19010
19038
|
if (results === null || results === undefined) {
|
|
19011
19039
|
return {
|
|
19012
19040
|
items: [],
|
|
19013
|
-
widgetParams: widgetParams
|
|
19041
|
+
widgetParams: widgetParams,
|
|
19042
|
+
sendEvent: sendEvent
|
|
19014
19043
|
};
|
|
19015
19044
|
}
|
|
19016
19045
|
if (escapeHTML && results.hits.length > 0) {
|
|
19017
19046
|
results.hits = escapeHits(results.hits);
|
|
19018
19047
|
}
|
|
19048
|
+
var itemsWithAbsolutePosition = addAbsolutePosition(results.hits, 0, 1);
|
|
19049
|
+
var itemsWithAbsolutePositionAndQueryID = addQueryID(itemsWithAbsolutePosition, results.queryID);
|
|
19050
|
+
var transformedItems = transformItems(itemsWithAbsolutePositionAndQueryID, {
|
|
19051
|
+
results: results
|
|
19052
|
+
});
|
|
19019
19053
|
return {
|
|
19020
|
-
items:
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
widgetParams: widgetParams
|
|
19054
|
+
items: transformedItems,
|
|
19055
|
+
widgetParams: widgetParams,
|
|
19056
|
+
sendEvent: sendEvent
|
|
19024
19057
|
};
|
|
19025
19058
|
},
|
|
19026
19059
|
dispose: function dispose(_ref3) {
|
|
@@ -19982,6 +20015,7 @@
|
|
|
19982
20015
|
if (facetName && !facetValue || !facetName && facetValue) {
|
|
19983
20016
|
throw new Error(withUsage$o("When you provide facetName (received type ".concat(getObjectType(facetName), "), you must also provide facetValue (received type ").concat(getObjectType(facetValue), ").")));
|
|
19984
20017
|
}
|
|
20018
|
+
var sendEvent;
|
|
19985
20019
|
return {
|
|
19986
20020
|
dependsOn: 'recommend',
|
|
19987
20021
|
$$type: 'ais.trendingItems',
|
|
@@ -20000,21 +20034,37 @@
|
|
|
20000
20034
|
return renderState;
|
|
20001
20035
|
},
|
|
20002
20036
|
getWidgetRenderState: function getWidgetRenderState(_ref2) {
|
|
20003
|
-
var results = _ref2.results
|
|
20037
|
+
var results = _ref2.results,
|
|
20038
|
+
helper = _ref2.helper,
|
|
20039
|
+
instantSearchInstance = _ref2.instantSearchInstance;
|
|
20040
|
+
if (!sendEvent) {
|
|
20041
|
+
sendEvent = createSendEventForHits({
|
|
20042
|
+
instantSearchInstance: instantSearchInstance,
|
|
20043
|
+
getIndex: function getIndex() {
|
|
20044
|
+
return helper.getIndex();
|
|
20045
|
+
},
|
|
20046
|
+
widgetType: this.$$type
|
|
20047
|
+
});
|
|
20048
|
+
}
|
|
20004
20049
|
if (results === null || results === undefined) {
|
|
20005
20050
|
return {
|
|
20006
20051
|
items: [],
|
|
20007
|
-
widgetParams: widgetParams
|
|
20052
|
+
widgetParams: widgetParams,
|
|
20053
|
+
sendEvent: sendEvent
|
|
20008
20054
|
};
|
|
20009
20055
|
}
|
|
20010
20056
|
if (escapeHTML && results.hits.length > 0) {
|
|
20011
20057
|
results.hits = escapeHits(results.hits);
|
|
20012
20058
|
}
|
|
20059
|
+
var itemsWithAbsolutePosition = addAbsolutePosition(results.hits, 0, 1);
|
|
20060
|
+
var itemsWithAbsolutePositionAndQueryID = addQueryID(itemsWithAbsolutePosition, results.queryID);
|
|
20061
|
+
var transformedItems = transformItems(itemsWithAbsolutePositionAndQueryID, {
|
|
20062
|
+
results: results
|
|
20063
|
+
});
|
|
20013
20064
|
return {
|
|
20014
|
-
items:
|
|
20015
|
-
|
|
20016
|
-
|
|
20017
|
-
widgetParams: widgetParams
|
|
20065
|
+
items: transformedItems,
|
|
20066
|
+
widgetParams: widgetParams,
|
|
20067
|
+
sendEvent: sendEvent
|
|
20018
20068
|
};
|
|
20019
20069
|
},
|
|
20020
20070
|
dispose: function dispose(_ref3) {
|
|
@@ -20122,6 +20172,7 @@
|
|
|
20122
20172
|
if (!objectIDs || objectIDs.length === 0) {
|
|
20123
20173
|
throw new Error(withUsage$p('The `objectIDs` option is required.'));
|
|
20124
20174
|
}
|
|
20175
|
+
var sendEvent;
|
|
20125
20176
|
return {
|
|
20126
20177
|
dependsOn: 'recommend',
|
|
20127
20178
|
$$type: 'ais.lookingSimilar',
|
|
@@ -20140,21 +20191,37 @@
|
|
|
20140
20191
|
return renderState;
|
|
20141
20192
|
},
|
|
20142
20193
|
getWidgetRenderState: function getWidgetRenderState(_ref2) {
|
|
20143
|
-
var results = _ref2.results
|
|
20194
|
+
var results = _ref2.results,
|
|
20195
|
+
helper = _ref2.helper,
|
|
20196
|
+
instantSearchInstance = _ref2.instantSearchInstance;
|
|
20197
|
+
if (!sendEvent) {
|
|
20198
|
+
sendEvent = createSendEventForHits({
|
|
20199
|
+
instantSearchInstance: instantSearchInstance,
|
|
20200
|
+
getIndex: function getIndex() {
|
|
20201
|
+
return helper.getIndex();
|
|
20202
|
+
},
|
|
20203
|
+
widgetType: this.$$type
|
|
20204
|
+
});
|
|
20205
|
+
}
|
|
20144
20206
|
if (results === null || results === undefined) {
|
|
20145
20207
|
return {
|
|
20146
20208
|
items: [],
|
|
20147
|
-
widgetParams: widgetParams
|
|
20209
|
+
widgetParams: widgetParams,
|
|
20210
|
+
sendEvent: sendEvent
|
|
20148
20211
|
};
|
|
20149
20212
|
}
|
|
20150
20213
|
if (escapeHTML && results.hits.length > 0) {
|
|
20151
20214
|
results.hits = escapeHits(results.hits);
|
|
20152
20215
|
}
|
|
20216
|
+
var itemsWithAbsolutePosition = addAbsolutePosition(results.hits, 0, 1);
|
|
20217
|
+
var itemsWithAbsolutePositionAndQueryID = addQueryID(itemsWithAbsolutePosition, results.queryID);
|
|
20218
|
+
var transformedItems = transformItems(itemsWithAbsolutePositionAndQueryID, {
|
|
20219
|
+
results: results
|
|
20220
|
+
});
|
|
20153
20221
|
return {
|
|
20154
|
-
items:
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
widgetParams: widgetParams
|
|
20222
|
+
items: transformedItems,
|
|
20223
|
+
widgetParams: widgetParams,
|
|
20224
|
+
sendEvent: sendEvent
|
|
20158
20225
|
};
|
|
20159
20226
|
},
|
|
20160
20227
|
dispose: function dispose(_ref3) {
|
|
@@ -21034,8 +21101,12 @@
|
|
|
21034
21101
|
return createElement("li", {
|
|
21035
21102
|
key: item.objectID,
|
|
21036
21103
|
className: classNames.item,
|
|
21037
|
-
onClick:
|
|
21038
|
-
|
|
21104
|
+
onClick: function onClick() {
|
|
21105
|
+
sendEvent('click:internal', item, 'Item Clicked');
|
|
21106
|
+
},
|
|
21107
|
+
onAuxClick: function onAuxClick() {
|
|
21108
|
+
sendEvent('click:internal', item, 'Item Clicked');
|
|
21109
|
+
}
|
|
21039
21110
|
}, createElement(ItemComponent, {
|
|
21040
21111
|
item: item
|
|
21041
21112
|
}));
|
|
@@ -21043,7 +21114,7 @@
|
|
|
21043
21114
|
};
|
|
21044
21115
|
}
|
|
21045
21116
|
|
|
21046
|
-
var _excluded$c = ["listRef", "nextButtonRef", "previousButtonRef", "carouselIdRef", "classNames", "itemComponent", "previousIconComponent", "nextIconComponent", "items", "translations"];
|
|
21117
|
+
var _excluded$c = ["listRef", "nextButtonRef", "previousButtonRef", "carouselIdRef", "classNames", "itemComponent", "previousIconComponent", "nextIconComponent", "items", "translations", "sendEvent"];
|
|
21047
21118
|
function ownKeys$L(e, r) {
|
|
21048
21119
|
var t = Object.keys(e);
|
|
21049
21120
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -21118,6 +21189,7 @@
|
|
|
21118
21189
|
NextIconComponent = _userProps$nextIconCo === void 0 ? NextIconDefaultComponent : _userProps$nextIconCo,
|
|
21119
21190
|
items = userProps.items,
|
|
21120
21191
|
userTranslations = userProps.translations,
|
|
21192
|
+
sendEvent = userProps.sendEvent,
|
|
21121
21193
|
props = _objectWithoutProperties$d(userProps, _excluded$c);
|
|
21122
21194
|
var translations = _objectSpread$K({
|
|
21123
21195
|
listLabel: 'Items',
|
|
@@ -21192,7 +21264,13 @@
|
|
|
21192
21264
|
key: item.objectID,
|
|
21193
21265
|
className: cx(cssClasses.item),
|
|
21194
21266
|
"aria-roledescription": "slide",
|
|
21195
|
-
"aria-label": "".concat(index + 1, " of ").concat(items.length)
|
|
21267
|
+
"aria-label": "".concat(index + 1, " of ").concat(items.length),
|
|
21268
|
+
onClick: function onClick() {
|
|
21269
|
+
sendEvent('click:internal', item, 'Item Clicked');
|
|
21270
|
+
},
|
|
21271
|
+
onAuxClick: function onAuxClick() {
|
|
21272
|
+
sendEvent('click:internal', item, 'Item Clicked');
|
|
21273
|
+
}
|
|
21196
21274
|
}, createElement(ItemComponent, {
|
|
21197
21275
|
item: item
|
|
21198
21276
|
}));
|
|
@@ -21903,7 +21981,8 @@
|
|
|
21903
21981
|
}, {
|
|
21904
21982
|
$$widgetType: 'ais.frequentlyBoughtTogether'
|
|
21905
21983
|
}),
|
|
21906
|
-
items = _useFrequentlyBoughtT.items
|
|
21984
|
+
items = _useFrequentlyBoughtT.items,
|
|
21985
|
+
sendEvent = _useFrequentlyBoughtT.sendEvent;
|
|
21907
21986
|
var layout = layoutComponent ? function (layoutProps) {
|
|
21908
21987
|
return layoutComponent(_objectSpread2(_objectSpread2({}, layoutProps), {}, {
|
|
21909
21988
|
classNames: {
|
|
@@ -21919,7 +21998,7 @@
|
|
|
21919
21998
|
emptyComponent: emptyComponent,
|
|
21920
21999
|
layout: layout,
|
|
21921
22000
|
status: status,
|
|
21922
|
-
sendEvent:
|
|
22001
|
+
sendEvent: sendEvent
|
|
21923
22002
|
};
|
|
21924
22003
|
return /*#__PURE__*/React__default.createElement(FrequentlyBoughtTogetherUiComponent, _extends$1({}, props, uiProps));
|
|
21925
22004
|
}
|
|
@@ -23108,7 +23187,8 @@
|
|
|
23108
23187
|
}, {
|
|
23109
23188
|
$$widgetType: 'ais.relatedProducts'
|
|
23110
23189
|
}),
|
|
23111
|
-
items = _useRelatedProducts.items
|
|
23190
|
+
items = _useRelatedProducts.items,
|
|
23191
|
+
sendEvent = _useRelatedProducts.sendEvent;
|
|
23112
23192
|
var layout = layoutComponent ? function (layoutProps) {
|
|
23113
23193
|
return layoutComponent(_objectSpread2(_objectSpread2({}, layoutProps), {}, {
|
|
23114
23194
|
classNames: {
|
|
@@ -23124,7 +23204,7 @@
|
|
|
23124
23204
|
emptyComponent: emptyComponent,
|
|
23125
23205
|
layout: layout,
|
|
23126
23206
|
status: status,
|
|
23127
|
-
sendEvent:
|
|
23207
|
+
sendEvent: sendEvent
|
|
23128
23208
|
};
|
|
23129
23209
|
return /*#__PURE__*/React__default.createElement(RelatedProductsUiComponent, _extends$1({}, props, uiProps));
|
|
23130
23210
|
}
|
|
@@ -23446,7 +23526,8 @@
|
|
|
23446
23526
|
}), {
|
|
23447
23527
|
$$widgetType: 'ais.trendingItems'
|
|
23448
23528
|
}),
|
|
23449
|
-
items = _useTrendingItems.items
|
|
23529
|
+
items = _useTrendingItems.items,
|
|
23530
|
+
sendEvent = _useTrendingItems.sendEvent;
|
|
23450
23531
|
var layout = layoutComponent ? function (layoutProps) {
|
|
23451
23532
|
return layoutComponent(_objectSpread2(_objectSpread2({}, layoutProps), {}, {
|
|
23452
23533
|
classNames: {
|
|
@@ -23462,7 +23543,7 @@
|
|
|
23462
23543
|
emptyComponent: emptyComponent,
|
|
23463
23544
|
layout: layout,
|
|
23464
23545
|
status: status,
|
|
23465
|
-
sendEvent:
|
|
23546
|
+
sendEvent: sendEvent
|
|
23466
23547
|
};
|
|
23467
23548
|
return /*#__PURE__*/React__default.createElement(TrendingItemsUiComponent, _extends$1({}, props, uiProps));
|
|
23468
23549
|
}
|
|
@@ -23498,7 +23579,8 @@
|
|
|
23498
23579
|
}, {
|
|
23499
23580
|
$$widgetType: 'ais.lookingSimilar'
|
|
23500
23581
|
}),
|
|
23501
|
-
items = _useLookingSimilar.items
|
|
23582
|
+
items = _useLookingSimilar.items,
|
|
23583
|
+
sendEvent = _useLookingSimilar.sendEvent;
|
|
23502
23584
|
var layout = layoutComponent ? function (layoutProps) {
|
|
23503
23585
|
return layoutComponent(_objectSpread2(_objectSpread2({}, layoutProps), {}, {
|
|
23504
23586
|
classNames: {
|
|
@@ -23514,7 +23596,7 @@
|
|
|
23514
23596
|
emptyComponent: emptyComponent,
|
|
23515
23597
|
layout: layout,
|
|
23516
23598
|
status: status,
|
|
23517
|
-
sendEvent:
|
|
23599
|
+
sendEvent: sendEvent
|
|
23518
23600
|
};
|
|
23519
23601
|
return /*#__PURE__*/React__default.createElement(LookingSimilarUiComponent, _extends$1({}, props, uiProps));
|
|
23520
23602
|
}
|