@algolia/autocomplete-core 1.7.0 → 1.7.1
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/esm/getPropGetters.js +1 -1
- package/dist/esm/metadata.js +2 -2
- package/dist/esm/types/AutocompleteEnvironment.d.ts +1 -1
- package/dist/umd/index.development.js +5 -5
- package/dist/umd/index.development.js.map +1 -1
- package/dist/umd/index.production.js +2 -2
- package/dist/umd/index.production.js.map +1 -1
- package/package.json +3 -3
|
@@ -158,7 +158,7 @@ export function getPropGetters(_ref) {
|
|
|
158
158
|
rest = _objectWithoutProperties(_ref2, _excluded4);
|
|
159
159
|
|
|
160
160
|
var activeItem = getActiveItem(store.getState());
|
|
161
|
-
var userAgent = (_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent;
|
|
161
|
+
var userAgent = ((_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent) || '';
|
|
162
162
|
var shouldFallbackKeyHint = isSamsung(userAgent);
|
|
163
163
|
var enterKeyHint = activeItem !== null && activeItem !== void 0 && activeItem.itemUrl && !shouldFallbackKeyHint ? 'go' : 'search';
|
|
164
164
|
return _objectSpread({
|
package/dist/esm/metadata.js
CHANGED
|
@@ -26,11 +26,11 @@ export function getMetadata(_ref) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export function injectMetadata(_ref3) {
|
|
29
|
-
var _environment$navigato;
|
|
29
|
+
var _environment$navigato, _environment$navigato2;
|
|
30
30
|
|
|
31
31
|
var metadata = _ref3.metadata,
|
|
32
32
|
environment = _ref3.environment;
|
|
33
|
-
var isMetadataEnabled = (_environment$navigato = environment.navigator) === null || _environment$navigato === void 0 ? void 0 : _environment$navigato.userAgent.includes('Algolia Crawler');
|
|
33
|
+
var isMetadataEnabled = (_environment$navigato = environment.navigator) === null || _environment$navigato === void 0 ? void 0 : (_environment$navigato2 = _environment$navigato.userAgent) === null || _environment$navigato2 === void 0 ? void 0 : _environment$navigato2.includes('Algolia Crawler');
|
|
34
34
|
|
|
35
35
|
if (isMetadataEnabled) {
|
|
36
36
|
var metadataContainer = environment.document.createElement('meta');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-core 1.7.
|
|
1
|
+
/*! @algolia/autocomplete-core 1.7.1 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
|
|
265
265
|
var noop = function noop() {};
|
|
266
266
|
|
|
267
|
-
var version = '1.7.
|
|
267
|
+
var version = '1.7.1';
|
|
268
268
|
|
|
269
269
|
var userAgents = [{
|
|
270
270
|
segment: 'autocomplete-core',
|
|
@@ -1392,7 +1392,7 @@
|
|
|
1392
1392
|
rest = _objectWithoutProperties(_ref2, _excluded4);
|
|
1393
1393
|
|
|
1394
1394
|
var activeItem = getActiveItem(store.getState());
|
|
1395
|
-
var userAgent = (_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent;
|
|
1395
|
+
var userAgent = ((_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent) || '';
|
|
1396
1396
|
var shouldFallbackKeyHint = isSamsung(userAgent);
|
|
1397
1397
|
var enterKeyHint = activeItem !== null && activeItem !== void 0 && activeItem.itemUrl && !shouldFallbackKeyHint ? 'go' : 'search';
|
|
1398
1398
|
return _objectSpread2({
|
|
@@ -1588,11 +1588,11 @@
|
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
1590
|
function injectMetadata(_ref3) {
|
|
1591
|
-
var _environment$navigato;
|
|
1591
|
+
var _environment$navigato, _environment$navigato2;
|
|
1592
1592
|
|
|
1593
1593
|
var metadata = _ref3.metadata,
|
|
1594
1594
|
environment = _ref3.environment;
|
|
1595
|
-
var isMetadataEnabled = (_environment$navigato = environment.navigator) === null || _environment$navigato === void 0 ? void 0 : _environment$navigato.userAgent.includes('Algolia Crawler');
|
|
1595
|
+
var isMetadataEnabled = (_environment$navigato = environment.navigator) === null || _environment$navigato === void 0 ? void 0 : (_environment$navigato2 = _environment$navigato.userAgent) === null || _environment$navigato2 === void 0 ? void 0 : _environment$navigato2.includes('Algolia Crawler');
|
|
1596
1596
|
|
|
1597
1597
|
if (isMetadataEnabled) {
|
|
1598
1598
|
var metadataContainer = environment.document.createElement('meta');
|