@algolia/autocomplete-js 1.19.8 → 1.19.9

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.19.8 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-js 1.19.9 | 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) :
@@ -327,7 +327,7 @@
327
327
  return undefined;
328
328
  }
329
329
 
330
- var version = '1.19.8';
330
+ var version = '1.19.9';
331
331
 
332
332
  var userAgents$1 = [{
333
333
  segment: 'autocomplete-core',
@@ -4074,10 +4074,10 @@
4074
4074
  }) : value;
4075
4075
  }
4076
4076
  function isPartHighlighted(parts, i) {
4077
- var _parts, _parts2;
4077
+ var _parts$isHighlighted, _parts, _parts$isHighlighted2, _parts2;
4078
4078
  var current = parts[i];
4079
- var isNextHighlighted = ((_parts = parts[i + 1]) === null || _parts === void 0 ? void 0 : _parts.isHighlighted) || true;
4080
- var isPreviousHighlighted = ((_parts2 = parts[i - 1]) === null || _parts2 === void 0 ? void 0 : _parts2.isHighlighted) || true;
4079
+ var isNextHighlighted = (_parts$isHighlighted = (_parts = parts[i + 1]) === null || _parts === void 0 ? void 0 : _parts.isHighlighted) !== null && _parts$isHighlighted !== void 0 ? _parts$isHighlighted : true;
4080
+ var isPreviousHighlighted = (_parts$isHighlighted2 = (_parts2 = parts[i - 1]) === null || _parts2 === void 0 ? void 0 : _parts2.isHighlighted) !== null && _parts$isHighlighted2 !== void 0 ? _parts$isHighlighted2 : true;
4081
4081
  if (!hasLetterOrNumber.test(unescape(current.value)) && isPreviousHighlighted === isNextHighlighted) {
4082
4082
  return isPreviousHighlighted;
4083
4083
  }