algolia-experiences 1.6.3 → 1.6.4
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.
|
@@ -8898,6 +8898,11 @@
|
|
|
8898
8898
|
return -1;
|
|
8899
8899
|
}
|
|
8900
8900
|
|
|
8901
|
+
function getAlgoliaAgent$1(client) {
|
|
8902
|
+
var clientTyped = client;
|
|
8903
|
+
return clientTyped.transporter && clientTyped.transporter.userAgent ? clientTyped.transporter.userAgent.value : clientTyped._ua;
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8901
8906
|
// typed as any, since it accepts the _real_ js clients, not the interface we otherwise expect
|
|
8902
8907
|
function getAppIdAndApiKey(searchClient) {
|
|
8903
8908
|
if (searchClient.appId && searchClient.apiKey) {
|
|
@@ -10686,8 +10691,7 @@
|
|
|
10686
10691
|
subscribe: function subscribe() {
|
|
10687
10692
|
// using setTimeout here to delay extraction until widgets have been added in a tick (e.g. Vue)
|
|
10688
10693
|
setTimeout(function () {
|
|
10689
|
-
|
|
10690
|
-
payload.ua = client.transporter && client.transporter.userAgent ? client.transporter.userAgent.value : client._ua;
|
|
10694
|
+
payload.ua = getAlgoliaAgent$1(instantSearchInstance.client);
|
|
10691
10695
|
extractWidgetPayload(instantSearchInstance.mainIndex.getWidgets(), instantSearchInstance, payload);
|
|
10692
10696
|
instantSearchInstance.middleware.forEach(function (middleware) {
|
|
10693
10697
|
return payload.widgets.push({
|
|
@@ -12962,7 +12966,7 @@
|
|
|
12962
12966
|
};
|
|
12963
12967
|
}
|
|
12964
12968
|
|
|
12965
|
-
var version$1 = '4.
|
|
12969
|
+
var version$1 = '4.85.0';
|
|
12966
12970
|
|
|
12967
12971
|
function _typeof$j(o) {
|
|
12968
12972
|
"@babel/helpers - typeof";
|
|
@@ -14029,9 +14033,9 @@
|
|
|
14029
14033
|
Fragment: Fragment
|
|
14030
14034
|
}) : _userProps$itemCompon,
|
|
14031
14035
|
_userProps$previousIc = userProps.previousIconComponent,
|
|
14032
|
-
|
|
14036
|
+
PreviousIcon = _userProps$previousIc === void 0 ? PreviousIconDefaultComponent : _userProps$previousIc,
|
|
14033
14037
|
_userProps$nextIconCo = userProps.nextIconComponent,
|
|
14034
|
-
|
|
14038
|
+
NextIcon = _userProps$nextIconCo === void 0 ? NextIconDefaultComponent : _userProps$nextIconCo,
|
|
14035
14039
|
HeaderComponent = userProps.headerComponent,
|
|
14036
14040
|
_userProps$showNaviga = userProps.showNavigation,
|
|
14037
14041
|
showNavigation = _userProps$showNaviga === void 0 ? true : _userProps$showNaviga,
|
|
@@ -14100,7 +14104,7 @@
|
|
|
14100
14104
|
event.preventDefault();
|
|
14101
14105
|
scrollLeft();
|
|
14102
14106
|
}
|
|
14103
|
-
}, createElement(
|
|
14107
|
+
}, createElement(PreviousIcon, {
|
|
14104
14108
|
createElement: createElement
|
|
14105
14109
|
})), createElement("ol", {
|
|
14106
14110
|
className: cx(cssClasses.list),
|
|
@@ -14146,7 +14150,7 @@
|
|
|
14146
14150
|
event.preventDefault();
|
|
14147
14151
|
scrollRight();
|
|
14148
14152
|
}
|
|
14149
|
-
}, createElement(
|
|
14153
|
+
}, createElement(NextIcon, {
|
|
14150
14154
|
createElement: createElement
|
|
14151
14155
|
})));
|
|
14152
14156
|
};
|