Skip to content

Commit

Permalink
Block Editor: Update WordPress Packages WordPress 5.4 RC 4.
Browse files Browse the repository at this point in the history
The following package versions were changed:
@wordpress/annotations: 1.12.1 -> 1.12.2
@wordpress/block-directory: 1.5.5 -> 1.5.6
@wordpress/block-editor: 3.7.5 -> 3.7.6
@wordpress/block-library: 2.14.5 -> 2.14.6
@wordpress/blocks: 6.12.1 -> 6.12.2
@wordpress/components: 9.2.4 -> 9.2.5
@wordpress/core-data: 2.12.1 -> 2.12.2
@wordpress/data: 4.14.1 -> 4.14.2
@wordpress/data-controls: 1.8.1 -> 1.8.2
@wordpress/edit-post: 3.13.6 -> 3.13.7
@wordpress/editor: 9.12.5 -> 9.12.6
@wordpress/format-library: 1.14.5 -> 1.14.6
@wordpress/keyboard-shortcuts: 1.1.1 -> 1.1.2
@wordpress/list-reusable-blocks: 1.13.4 -> 1.13.5
@wordpress/notices: 2.0.1 -> 2.0.2
@wordpress/nux: 3.12.4 -> 3.12.5
@wordpress/rich-text: 3.12.1 -> 3.12.2
@wordpress/server-side-render: 1.8.4 -> 1.8.5
@wordpress/viewport: 2.13.1 -> 2.13.2
Description of editor changes included in the RC available at WordPress/gutenberg#21083.

Props itsjonq, mcsf, aduth.
Fixes: #49688.
Built from https://develop.svn.wordpress.org/trunk@47495


git-svn-id: https://core.svn.wordpress.org/trunk@47270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
jorgefilipecosta committed Mar 23, 2020
1 parent a41810d commit 18a900b
Show file tree
Hide file tree
Showing 99 changed files with 3,760 additions and 2,819 deletions.
2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion wp-includes/blocks/social-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ function render_block_core_social_link( $attributes ) {
$attributes['label'] :
/* translators: %s: Social Link service name */
sprintf( __( 'Link to %s' ), block_core_social_link_get_name( $service ) );
$class_name = isset( $attributes['className'] ) ? ' ' . $attributes['className'] : false;

// Don't render a link if there is no URL set.
if ( ! $url ) {
return '';
}

$icon = block_core_social_link_get_icon( $service );
return '<li class="wp-social-link wp-social-link-' . esc_attr( $service ) . '"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '"> ' . $icon . '</a></li>';
return '<li class="wp-social-link wp-social-link-' . esc_attr( $service ) . esc_attr( $class_name ) . '"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( $label ) . '"> ' . $icon . '</a></li>';
}

/**
Expand Down
7 changes: 6 additions & 1 deletion wp-includes/css/dist/components/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -996,21 +996,26 @@ svg.components-checkbox-control__checked {
border-radius: 50%;
background: #fff;
padding: 2px;
min-width: 24px;
width: 24px;
height: 24px;
position: relative; }
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg {
height: 100%;
width: 100%; }
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button {
border: 2px solid #fff;
border-radius: 50%;
height: 18px;
padding: 0;
position: absolute;
width: 18px;
top: 3px; }
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active {
background: #fafafa;
color: #23282d;
border-color: #999;
box-shadow: inset 0 -1px 0 #999, 0 0 0 1px #fff, 0 0 0 3px #007cba; }
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; }

.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point {
margin-right: auto;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/components/style-rtl.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion wp-includes/css/dist/components/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1000,21 +1000,26 @@ svg.components-checkbox-control__checked {
border-radius: 50%;
background: #fff;
padding: 2px;
min-width: 24px;
width: 24px;
height: 24px;
position: relative; }
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point svg {
height: 100%;
width: 100%; }
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button {
border: 2px solid #fff;
border-radius: 50%;
height: 18px;
padding: 0;
position: absolute;
width: 18px;
top: 3px; }
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active {
background: #fafafa;
color: #23282d;
border-color: #999;
box-shadow: inset 0 -1px 0 #999, 0 0 0 1px #fff, 0 0 0 3px #007cba; }
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba; }

.components-custom-gradient-picker__color-picker-popover .components-custom-gradient-picker__remove-control-point {
margin-left: auto;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/css/dist/components/style.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions wp-includes/js/dist/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,26 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] =
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 444);
/******/ return __webpack_require__(__webpack_require__.s = 446);
/******/ })
/************************************************************************/
/******/ ({

/***/ 258:
/***/ 260:
/***/ (function(module, exports) {

(function() { module.exports = this["wp"]["domReady"]; }());

/***/ }),

/***/ 444:
/***/ 446:
/***/ (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__(258);
var external_this_wp_domReady_ = __webpack_require__(260);
var external_this_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_domReady_);

// CONCATENATED MODULE: ./node_modules/@wordpress/a11y/build-module/addContainer.js
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/js/dist/a11y.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 70 additions & 33 deletions wp-includes/js/dist/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 433);
/******/ return __webpack_require__(__webpack_require__.s = 435);
/******/ })
/************************************************************************/
/******/ ({
Expand All @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] =

/***/ }),

/***/ 114:
/***/ 116:
/***/ (function(module, exports) {

// Unique ID creation requires a high quality random # generator. In the
Expand Down Expand Up @@ -135,7 +135,7 @@ if (getRandomValues) {

/***/ }),

/***/ 115:
/***/ 117:
/***/ (function(module, exports) {

/**
Expand Down Expand Up @@ -171,30 +171,32 @@ module.exports = bytesToUuid;

"use strict";

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
var arrayLikeToArray = __webpack_require__(25);

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
arr2[i] = arr[i];
}

return arr2;
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
}
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
var iterableToArray = __webpack_require__(33);
var iterableToArray = __webpack_require__(35);

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var unsupportedIterableToArray = __webpack_require__(27);

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });




function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread();
return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
}

/***/ }),
Expand All @@ -204,7 +206,7 @@ function _toConsumableArray(arr) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41);
/* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43);

function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
Expand Down Expand Up @@ -241,25 +243,67 @@ function _objectWithoutProperties(source, excluded) {

/***/ }),

/***/ 30:
/***/ 25:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;

for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}

return arr2;
}

/***/ }),

/***/ 27:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
/* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25);

function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
}

/***/ }),

/***/ 32:
/***/ (function(module, exports) {

(function() { module.exports = this["wp"]["hooks"]; }());

/***/ }),

/***/ 33:
/***/ 35:
/***/ (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);
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
}

/***/ }),

/***/ 38:
/***/ 4:
/***/ (function(module, exports) {

(function() { module.exports = this["wp"]["data"]; }());

/***/ }),

/***/ 40:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -541,14 +585,7 @@ function isShallowEqual( a, b, fromIndex ) {

/***/ }),

/***/ 4:
/***/ (function(module, exports) {

(function() { module.exports = this["wp"]["data"]; }());

/***/ }),

/***/ 41:
/***/ 43:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Expand All @@ -570,7 +607,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {

/***/ }),

/***/ 433:
/***/ 435:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -712,7 +749,7 @@ function reducer_annotations() {
var objectWithoutProperties = __webpack_require__(19);

// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
var rememo = __webpack_require__(38);
var rememo = __webpack_require__(40);

// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/selectors.js

Expand Down Expand Up @@ -796,7 +833,7 @@ function __experimentalGetAnnotations(state) {
}

// EXTERNAL MODULE: ./node_modules/uuid/v4.js
var v4 = __webpack_require__(81);
var v4 = __webpack_require__(83);
var v4_default = /*#__PURE__*/__webpack_require__.n(v4);

// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/actions.js
Expand Down Expand Up @@ -1122,7 +1159,7 @@ var format_name = annotation_annotation.name,
Object(external_this_wp_richText_["registerFormatType"])(format_name, settings);

// EXTERNAL MODULE: external {"this":["wp","hooks"]}
var external_this_wp_hooks_ = __webpack_require__(30);
var external_this_wp_hooks_ = __webpack_require__(32);

// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/block/index.js
/**
Expand Down Expand Up @@ -1186,11 +1223,11 @@ function _defineProperty(obj, key, value) {

/***/ }),

/***/ 81:
/***/ 83:
/***/ (function(module, exports, __webpack_require__) {

var rng = __webpack_require__(114);
var bytesToUuid = __webpack_require__(115);
var rng = __webpack_require__(116);
var bytesToUuid = __webpack_require__(117);

function v4(options, buf, offset) {
var i = buf && offset || 0;
Expand Down
Loading

0 comments on commit 18a900b

Please sign in to comment.