@algolia/autocomplete-js 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.
@@ -1,4 +1,4 @@
1
- /*! @algolia/autocomplete-js 1.7.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-js 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) :
@@ -353,7 +353,7 @@
353
353
 
354
354
  var noop = function noop() {};
355
355
 
356
- var version = '1.7.0';
356
+ var version = '1.7.1';
357
357
 
358
358
  var userAgents$1 = [{
359
359
  segment: 'autocomplete-core',
@@ -2085,7 +2085,7 @@
2085
2085
  rest = _objectWithoutProperties$1(_ref2, _excluded4);
2086
2086
 
2087
2087
  var activeItem = getActiveItem(store.getState());
2088
- var userAgent = (_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent;
2088
+ var userAgent = ((_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent) || '';
2089
2089
  var shouldFallbackKeyHint = isSamsung(userAgent);
2090
2090
  var enterKeyHint = activeItem !== null && activeItem !== void 0 && activeItem.itemUrl && !shouldFallbackKeyHint ? 'go' : 'search';
2091
2091
  return _objectSpread$6({
@@ -2321,11 +2321,11 @@
2321
2321
  };
2322
2322
  }
2323
2323
  function injectMetadata(_ref3) {
2324
- var _environment$navigato;
2324
+ var _environment$navigato, _environment$navigato2;
2325
2325
 
2326
2326
  var metadata = _ref3.metadata,
2327
2327
  environment = _ref3.environment;
2328
- var isMetadataEnabled = (_environment$navigato = environment.navigator) === null || _environment$navigato === void 0 ? void 0 : _environment$navigato.userAgent.includes('Algolia Crawler');
2328
+ 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');
2329
2329
 
2330
2330
  if (isMetadataEnabled) {
2331
2331
  var metadataContainer = environment.document.createElement('meta');