Update WordPress to 5.2

This commit is contained in:
Oliver Davies 2019-05-08 08:05:39 +01:00
parent 489b5a5914
commit e00f87f2f5
599 changed files with 119573 additions and 55990 deletions

View file

@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["keycodes"] =
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 326);
/******/ return __webpack_require__(__webpack_require__.s = 382);
/******/ })
/************************************************************************/
/******/ ({
@ -116,7 +116,7 @@ function _defineProperty(obj, key, value) {
/***/ }),
/***/ 19:
/***/ 17:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -132,7 +132,7 @@ function _arrayWithoutHoles(arr) {
}
}
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
var iterableToArray = __webpack_require__(33);
var iterableToArray = __webpack_require__(34);
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
function _nonIterableSpread() {
@ -156,7 +156,18 @@ function _toConsumableArray(arr) {
/***/ }),
/***/ 326:
/***/ 34:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
}
/***/ }),
/***/ 382:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -166,7 +177,7 @@ __webpack_require__.r(__webpack_exports__);
var defineProperty = __webpack_require__(15);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(19);
var toConsumableArray = __webpack_require__(17);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(2);
@ -244,22 +255,97 @@ function isAppleOS() {
*/
/**
* Keycode for BACKSPACE key.
*/
var BACKSPACE = 8;
/**
* Keycode for TAB key.
*/
var TAB = 9;
/**
* Keycode for ENTER key.
*/
var ENTER = 13;
/**
* Keycode for ESCAPE key.
*/
var ESCAPE = 27;
/**
* Keycode for SPACE key.
*/
var SPACE = 32;
/**
* Keycode for LEFT key.
*/
var LEFT = 37;
/**
* Keycode for UP key.
*/
var UP = 38;
/**
* Keycode for RIGHT key.
*/
var RIGHT = 39;
/**
* Keycode for DOWN key.
*/
var DOWN = 40;
/**
* Keycode for DELETE key.
*/
var DELETE = 46;
/**
* Keycode for F10 key.
*/
var F10 = 121;
/**
* Keycode for ALT key.
*/
var ALT = 'alt';
var CTRL = 'ctrl'; // Understood in both Mousetrap and TinyMCE.
/**
* Keycode for CTRL key.
*/
var CTRL = 'ctrl';
/**
* Keycode for COMMAND/META key.
*/
var COMMAND = 'meta';
/**
* Keycode for SHIFT key.
*/
var SHIFT = 'shift';
/**
* Object that contains functions that return the available modifier
* depending on platform.
*
* - `primary`: takes a isApple function as a parameter.
* - `primaryShift`: takes a isApple function as a parameter.
* - `primaryAlt`: takes a isApple function as a parameter.
* - `secondary`: takes a isApple function as a parameter.
* - `access`: takes a isApple function as a parameter.
* - `ctrl`
* - `alt`
* - `ctrlShift`
* - `shift`
* - `shiftAlt`
*/
var modifiers = {
primary: function primary(_isApple) {
return _isApple() ? [COMMAND] : [CTRL];
@ -304,7 +390,7 @@ var rawShortcut = Object(external_lodash_["mapValues"])(modifiers, function (mod
return function (character) {
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
return Object(toConsumableArray["a" /* default */])(modifier(_isApple)).concat([character.toLowerCase()]).join('+');
return [].concat(Object(toConsumableArray["a" /* default */])(modifier(_isApple)), [character.toLowerCase()]).join('+');
};
});
/**
@ -327,13 +413,13 @@ var displayShortcutList = Object(external_lodash_["mapValues"])(modifiers, funct
var replacementKey = Object(external_lodash_["get"])(replacementKeyMap, key, key); // If on the Mac, adhere to platform convention and don't show plus between keys.
if (isApple) {
return Object(toConsumableArray["a" /* default */])(accumulator).concat([replacementKey]);
return [].concat(Object(toConsumableArray["a" /* default */])(accumulator), [replacementKey]);
}
return Object(toConsumableArray["a" /* default */])(accumulator).concat([replacementKey, '+']);
return [].concat(Object(toConsumableArray["a" /* default */])(accumulator), [replacementKey, '+']);
}, []);
var capitalizedCharacter = Object(external_lodash_["capitalize"])(character);
return Object(toConsumableArray["a" /* default */])(modifierKeys).concat([capitalizedCharacter]);
return [].concat(Object(toConsumableArray["a" /* default */])(modifierKeys), [capitalizedCharacter]);
};
});
/**
@ -364,7 +450,7 @@ var shortcutAriaLabel = Object(external_lodash_["mapValues"])(modifiers, functio
var isApple = _isApple();
var replacementKeyMap = (_replacementKeyMap2 = {}, Object(defineProperty["a" /* default */])(_replacementKeyMap2, SHIFT, 'Shift'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, COMMAND, isApple ? 'Command' : 'Control'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, CTRL, 'Control'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, ALT, isApple ? 'Option' : 'Alt'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, ',', Object(external_this_wp_i18n_["__"])('Comma')), Object(defineProperty["a" /* default */])(_replacementKeyMap2, '.', Object(external_this_wp_i18n_["__"])('Period')), Object(defineProperty["a" /* default */])(_replacementKeyMap2, '`', Object(external_this_wp_i18n_["__"])('Backtick')), _replacementKeyMap2);
return Object(toConsumableArray["a" /* default */])(modifier(_isApple)).concat([character]).map(function (key) {
return [].concat(Object(toConsumableArray["a" /* default */])(modifier(_isApple)), [character]).map(function (key) {
return Object(external_lodash_["capitalize"])(Object(external_lodash_["get"])(replacementKeyMap, key, key));
}).join(isApple ? ' ' : ' + ');
};
@ -399,17 +485,6 @@ var isKeyboardEvent = Object(external_lodash_["mapValues"])(modifiers, function
});
/***/ }),
/***/ 33:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
}
/***/ })
/******/ });