Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
35
wp-includes/js/dist/a11y.js
vendored
35
wp-includes/js/dist/a11y.js
vendored
|
|
@ -82,24 +82,28 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
|
|||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 325);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 380);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 182:
|
||||
/***/ 204:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
(function() { module.exports = this["wp"]["domReady"]; }());
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 325:
|
||||
/***/ 380:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","domReady"]}
|
||||
var external_this_wp_domReady_ = __webpack_require__(204);
|
||||
var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js
|
||||
/**
|
||||
* Build the live regions markup.
|
||||
|
|
@ -137,10 +141,6 @@ var clear = function clear() {
|
|||
|
||||
/* harmony default export */ var build_module_clear = (clear);
|
||||
|
||||
// EXTERNAL MODULE: external {"this":["wp","domReady"]}
|
||||
var external_this_wp_domReady_ = __webpack_require__(182);
|
||||
var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/filterMessage.js
|
||||
var previousMessage = '';
|
||||
/**
|
||||
|
|
@ -174,6 +174,13 @@ var filterMessage = function filterMessage(message) {
|
|||
// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/index.js
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setup", function() { return build_module_setup; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "speak", function() { return build_module_speak; });
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
|
@ -200,11 +207,23 @@ var build_module_setup = function setup() {
|
|||
|
||||
external_this_wp_domReady_default()(build_module_setup);
|
||||
/**
|
||||
* Update the ARIA live notification area text node.
|
||||
* Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
|
||||
* This module is inspired by the `speak` function in wp-a11y.js
|
||||
*
|
||||
* @param {string} message The message to be announced by Assistive Technologies.
|
||||
* @param {string} ariaLive Optional. The politeness level for aria-live. Possible values:
|
||||
* polite or assertive. Default polite.
|
||||
*
|
||||
* @example
|
||||
* ```js
|
||||
* import { speak } from '@wordpress/a11y';
|
||||
*
|
||||
* // For polite messages that shouldn't interrupt what screen readers are currently announcing.
|
||||
* speak( 'The message you want to send to the ARIA live region' );
|
||||
*
|
||||
* // For assertive messages that should interrupt what screen readers are currently announcing.
|
||||
* speak( 'The message you want to send to the ARIA live region', 'assertive' );
|
||||
* ```
|
||||
*/
|
||||
|
||||
var build_module_speak = function speak(message, ariaLive) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue