@algolia/autocomplete-js 1.5.6 → 1.5.7
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.5.
|
|
1
|
+
/*! @algolia/autocomplete-js 1.5.7 | 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) :
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
|
|
312
312
|
var noop = function noop() {};
|
|
313
313
|
|
|
314
|
-
var version = '1.5.
|
|
314
|
+
var version = '1.5.7';
|
|
315
315
|
|
|
316
316
|
var userAgents$1 = [{
|
|
317
317
|
segment: 'autocomplete-core',
|
|
@@ -584,14 +584,6 @@
|
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
-
var chromeRegex = /(crmo|crios|chrome)/i;
|
|
588
|
-
var edgeRegex = /edg(e|ios|a)?/i;
|
|
589
|
-
var samsungBrowserRegex = /samsungbrowser/i;
|
|
590
|
-
var chromiumRegex = /chromium/i;
|
|
591
|
-
function isChrome(userAgent) {
|
|
592
|
-
return Boolean(userAgent && userAgent.match(chromeRegex) && !userAgent.match(edgeRegex) && !userAgent.match(samsungBrowserRegex) && !userAgent.match(chromiumRegex));
|
|
593
|
-
}
|
|
594
|
-
|
|
595
587
|
// We don't have access to the autocomplete source when we call `onKeyDown`
|
|
596
588
|
// or `onClick` because those are native browser events.
|
|
597
589
|
// However, we can get the source from the suggestion index.
|
|
@@ -2032,7 +2024,7 @@
|
|
|
2032
2024
|
|
|
2033
2025
|
var activeItem = getActiveItem(store.getState());
|
|
2034
2026
|
var userAgent = (_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent;
|
|
2035
|
-
var shouldFallbackKeyHint = isSamsung(userAgent)
|
|
2027
|
+
var shouldFallbackKeyHint = isSamsung(userAgent);
|
|
2036
2028
|
var enterKeyHint = activeItem !== null && activeItem !== void 0 && activeItem.itemUrl && !shouldFallbackKeyHint ? 'go' : 'search';
|
|
2037
2029
|
return _objectSpread$6({
|
|
2038
2030
|
'aria-autocomplete': 'both',
|