@algolia/autocomplete-js 1.17.1 → 1.17.3
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.
|
@@ -53,9 +53,13 @@ export function createAutocompleteDom(_ref) {
|
|
|
53
53
|
environment: environment
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
|
+
// @MAJOR Remove the label wrapper for the submit button.
|
|
57
|
+
// The submit button is sufficient for accessibility purposes, and
|
|
58
|
+
// wrapping it with the label actually makes it less accessible (see CR-6077).
|
|
56
59
|
var label = createDomElement('label', _objectSpread({
|
|
57
60
|
class: classNames.label,
|
|
58
|
-
children: [submitButton]
|
|
61
|
+
children: [submitButton],
|
|
62
|
+
ariaLabel: translations.submitButtonTitle
|
|
59
63
|
}, labelProps));
|
|
60
64
|
var clearButton = createDomElement('button', {
|
|
61
65
|
class: classNames.clearButton,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-js 1.17.
|
|
1
|
+
/*! @algolia/autocomplete-js 1.17.3 | 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) :
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
return undefined;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
var version = '1.17.
|
|
350
|
+
var version = '1.17.3';
|
|
351
351
|
|
|
352
352
|
var userAgents$1 = [{
|
|
353
353
|
segment: 'autocomplete-core',
|
|
@@ -3795,9 +3795,13 @@
|
|
|
3795
3795
|
environment: environment
|
|
3796
3796
|
})]
|
|
3797
3797
|
});
|
|
3798
|
+
// @MAJOR Remove the label wrapper for the submit button.
|
|
3799
|
+
// The submit button is sufficient for accessibility purposes, and
|
|
3800
|
+
// wrapping it with the label actually makes it less accessible (see CR-6077).
|
|
3798
3801
|
var label = createDomElement('label', _objectSpread2({
|
|
3799
3802
|
class: classNames.label,
|
|
3800
|
-
children: [submitButton]
|
|
3803
|
+
children: [submitButton],
|
|
3804
|
+
ariaLabel: translations.submitButtonTitle
|
|
3801
3805
|
}, labelProps));
|
|
3802
3806
|
var clearButton = createDomElement('button', {
|
|
3803
3807
|
class: classNames.clearButton,
|
|
@@ -4306,12 +4310,11 @@
|
|
|
4306
4310
|
};
|
|
4307
4311
|
}
|
|
4308
4312
|
|
|
4313
|
+
// typed as any, since it accepts the _real_ js clients, not the interface we otherwise expect
|
|
4309
4314
|
function getAppIdAndApiKey(searchClient) {
|
|
4310
|
-
var
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
_ref$queryParameters = _ref.queryParameters,
|
|
4314
|
-
queryParameters = _ref$queryParameters === void 0 ? {} : _ref$queryParameters;
|
|
4315
|
+
var transporter = searchClient.transporter || {};
|
|
4316
|
+
var headers = transporter.headers || transporter.baseHeaders || {};
|
|
4317
|
+
var queryParameters = transporter.queryParameters || transporter.baseQueryParameters || {};
|
|
4315
4318
|
var APP_ID = 'x-algolia-application-id';
|
|
4316
4319
|
var API_KEY = 'x-algolia-api-key';
|
|
4317
4320
|
var appId = headers[APP_ID] || queryParameters[APP_ID];
|