Block Editor: Update @wordpress package dependencies

Updates packages:

- block-library
- components
- edit-post
- editor
- format-library
- list-reusable-blocks
- nux

See #45145

Built from https://develop.svn.wordpress.org/branches/5.0@43935


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
noisysocks 2018-11-22 06:05:51 +00:00
parent a7a70768ae
commit 7ade352f0f
22 changed files with 90 additions and 43 deletions

View File

@ -214,7 +214,7 @@
.wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb {
display: none; }
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .editor-block-list__layout > * {
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > * {
pointer-events: all; }
.wp-block-cover-image .editor-rich-text__tinymce[data-is-empty="true"]::before,
@ -834,6 +834,9 @@ figure.block-library-media-text__media-container {
left: 0;
border-top: 3px dashed #ccd0d4; }
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce.wp-block-paragraph {
padding-left: 36px; }
.wp-block-preformatted pre {
white-space: pre-wrap; }

File diff suppressed because one or more lines are too long

View File

@ -215,7 +215,7 @@
.wp-block-columns [data-type="core/column"].is-hovered .editor-block-list__breadcrumb {
display: none; }
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit .editor-block-list__layout > * {
:not(.components-disabled) > .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"] > .editor-block-list__block-edit > * {
pointer-events: all; }
.wp-block-cover-image .editor-rich-text__tinymce[data-is-empty="true"]::before,
@ -839,6 +839,9 @@ figure.block-library-media-text__media-container {
right: 0;
border-top: 3px dashed #ccd0d4; }
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce.wp-block-paragraph {
padding-right: 36px; }
.wp-block-preformatted pre {
white-space: pre-wrap; }

File diff suppressed because one or more lines are too long

View File

@ -286,7 +286,11 @@
opacity: 1; }
.wp-block-cover-image.components-placeholder,
.wp-block-cover.components-placeholder {
height: inherit; }
background: rgba(139, 139, 150, 0.1);
min-height: 200px; }
.is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme
.wp-block-cover.components-placeholder {
background: rgba(255, 255, 255, 0.15); }
[data-align="left"] .wp-block-cover-image,
[data-align="right"] .wp-block-cover-image, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, [data-align="left"]
.wp-block-cover,
@ -296,6 +300,16 @@
.wp-block-cover.alignright {
max-width: 305px;
width: 100%; }
.wp-block-cover-image::after,
.wp-block-cover::after {
display: block;
content: "";
font-size: 0;
min-height: inherit; }
@supports ((position: -webkit-sticky) or (position: sticky)) {
.wp-block-cover-image::after,
.wp-block-cover::after {
content: none; } }
.wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
.wp-block-cover.aligncenter,
.wp-block-cover.alignleft,

File diff suppressed because one or more lines are too long

View File

@ -289,7 +289,11 @@
opacity: 1; }
.wp-block-cover-image.components-placeholder,
.wp-block-cover.components-placeholder {
height: inherit; }
background: rgba(139, 139, 150, 0.1);
min-height: 200px; }
.is-dark-theme .wp-block-cover-image.components-placeholder, .is-dark-theme
.wp-block-cover.components-placeholder {
background: rgba(255, 255, 255, 0.15); }
[data-align="left"] .wp-block-cover-image,
[data-align="right"] .wp-block-cover-image, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright, [data-align="left"]
.wp-block-cover,
@ -299,6 +303,16 @@
.wp-block-cover.alignright {
max-width: 305px;
width: 100%; }
.wp-block-cover-image::after,
.wp-block-cover::after {
display: block;
content: "";
font-size: 0;
min-height: inherit; }
@supports ((position: -webkit-sticky) or (position: sticky)) {
.wp-block-cover-image::after,
.wp-block-cover::after {
content: none; } }
.wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
.wp-block-cover.aligncenter,
.wp-block-cover.alignleft,

File diff suppressed because one or more lines are too long

View File

@ -2292,8 +2292,6 @@ body.admin-color-light .editor-post-text-editor__link{
height: 100%; }
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] > p {
margin-top: 0; }
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
padding-left: 36px; }
.editor-rich-text__tinymce + .editor-rich-text__tinymce {
pointer-events: none; }
.editor-rich-text__tinymce + .editor-rich-text__tinymce,

File diff suppressed because one or more lines are too long

View File

@ -2304,8 +2304,6 @@ body.admin-color-light .editor-post-text-editor__link{
height: 100%; }
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] > p {
margin-top: 0; }
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
padding-right: 36px; }
.editor-rich-text__tinymce + .editor-rich-text__tinymce {
pointer-events: none; }
.editor-rich-text__tinymce + .editor-rich-text__tinymce,

File diff suppressed because one or more lines are too long

View File

@ -9335,7 +9335,8 @@ var media_text_settings = {
keywords: [Object(external_this_wp_i18n_["__"])('image'), Object(external_this_wp_i18n_["__"])('video')],
attributes: media_text_blockAttributes,
supports: {
align: ['wide', 'full']
align: ['wide', 'full'],
html: false
},
transforms: {
from: [{

File diff suppressed because one or more lines are too long

View File

@ -25154,7 +25154,8 @@ function (_Component) {
className = _this$props.className,
tooltip = _this$props.tooltip,
shortcut = _this$props.shortcut,
additionalProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["icon", "children", "label", "className", "tooltip", "shortcut"]);
labelPosition = _this$props.labelPosition,
additionalProps = Object(objectWithoutProperties["a" /* default */])(_this$props, ["icon", "children", "label", "className", "tooltip", "shortcut", "labelPosition"]);
var classes = classnames_default()('components-icon-button', className);
var tooltipText = tooltip || label; // Should show the tooltip if...
@ -25176,7 +25177,8 @@ function (_Component) {
if (showTooltip) {
element = Object(external_this_wp_element_["createElement"])(build_module_tooltip, {
text: tooltipText,
shortcut: shortcut
shortcut: shortcut,
position: labelPosition
}, element);
}

File diff suppressed because one or more lines are too long

View File

@ -2629,6 +2629,7 @@ var more_menu_MoreMenu = function MoreMenu() {
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
icon: "ellipsis",
label: isOpen ? ariaOpen : ariaClosed,
labelPosition: "bottom",
onClick: onToggle,
"aria-expanded": isOpen
});

File diff suppressed because one or more lines are too long

View File

@ -12539,14 +12539,19 @@ function isPermalinkEditable(state) {
*
* @param {Object} state Editor state.
*
* @return {string} The permalink.
* @return {?string} The permalink, or null if the post is not viewable.
*/
function getPermalink(state) {
var _getPermalinkParts = getPermalinkParts(state),
prefix = _getPermalinkParts.prefix,
postName = _getPermalinkParts.postName,
suffix = _getPermalinkParts.suffix;
var permalinkParts = getPermalinkParts(state);
if (!permalinkParts) {
return null;
}
var prefix = permalinkParts.prefix,
postName = permalinkParts.postName,
suffix = permalinkParts.suffix;
if (isPermalinkEditable(state)) {
return prefix + postName + suffix;
@ -12555,15 +12560,22 @@ function getPermalink(state) {
return prefix;
}
/**
* Returns the permalink for a post, split into it's three parts: the prefix, the postName, and the suffix.
* Returns the permalink for a post, split into it's three parts: the prefix,
* the postName, and the suffix.
*
* @param {Object} state Editor state.
*
* @return {Object} The prefix, postName, and suffix for the permalink.
* @return {Object} An object containing the prefix, postName, and suffix for
* the permalink, or null if the post is not viewable.
*/
function getPermalinkParts(state) {
var permalinkTemplate = selectors_getEditedPostAttribute(state, 'permalink_template');
if (!permalinkTemplate) {
return null;
}
var postName = selectors_getEditedPostAttribute(state, 'slug') || selectors_getEditedPostAttribute(state, 'generated_slug');
var _permalinkTemplate$sp = permalinkTemplate.split(PERMALINK_POSTNAME_REGEX),
@ -17643,6 +17655,7 @@ var inserter_defaultRenderToggle = function defaultRenderToggle(_ref) {
return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["IconButton"], {
icon: "insert",
label: Object(external_this_wp_i18n_["__"])('Add block'),
labelPosition: "bottom",
onClick: onToggle,
className: "editor-inserter__toggle",
"aria-haspopup": "true",
@ -23399,12 +23412,12 @@ var item_TableOfContentsItem = function TableOfContentsItem(_ref) {
/**
* Internal dependencies
*/
/**
* Module constants
*/
@ -23511,10 +23524,9 @@ var document_outline_DocumentOutline = function DocumentOutline(_ref) {
return onSelectHeading(item.clientId);
},
path: item.path
}, item.isEmpty ? emptyHeadingContent : Object(external_this_wp_element_["createElement"])(rich_text.Content, {
tagName: "span",
value: item.attributes.content
}), isIncorrectLevel && incorrectLevelContent, item.level === 1 && hasMultipleH1 && multipleH1Headings, hasTitle && item.level === 1 && !hasMultipleH1 && singleH1Headings);
}, item.isEmpty ? emptyHeadingContent : Object(external_this_wp_richText_["getTextContent"])(Object(external_this_wp_richText_["create"])({
html: item.attributes.content
})), isIncorrectLevel && incorrectLevelContent, item.level === 1 && hasMultipleH1 && multipleH1Headings, hasTitle && item.level === 1 && !hasMultipleH1 && singleH1Headings);
})));
};
/* harmony default export */ var document_outline = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
@ -28890,6 +28902,7 @@ function TableOfContents(_ref) {
icon: "info-outline",
"aria-expanded": isOpen,
label: Object(external_this_wp_i18n_["__"])('Content structure'),
labelPosition: "bottom",
disabled: !hasBlocks
});
},
@ -29985,7 +29998,7 @@ function (_Component) {
return name;
});
var possibleBlockTransformations = Object(external_lodash_["orderBy"])(Object(external_lodash_["filter"])(Object(external_this_wp_blocks_["getPossibleBlockTransformations"])(blocks), function (block) {
return !!itemsByName[block.name];
return block && !!itemsByName[block.name];
}), function (block) {
return itemsByName[block.name].frecency;
}, 'desc');

File diff suppressed because one or more lines are too long

View File

@ -213,10 +213,10 @@ function wp_default_packages_scripts( &$scripts ) {
'api-fetch' => '2.2.5',
'autop' => '2.0.2',
'blob' => '2.1.0',
'block-library' => '2.2.6',
'block-library' => '2.2.7',
'block-serialization-default-parser' => '2.0.0',
'blocks' => '6.0.2',
'components' => '7.0.1',
'components' => '7.0.2',
'compose' => '3.0.0',
'core-data' => '2.0.14',
'data' => '4.0.1',
@ -224,19 +224,19 @@ function wp_default_packages_scripts( &$scripts ) {
'deprecated' => '2.0.3',
'dom' => '2.0.7',
'dom-ready' => '2.0.2',
'edit-post' => '3.1.1',
'editor' => '9.0.1',
'edit-post' => '3.1.2',
'editor' => '9.0.2',
'element' => '2.1.8',
'escape-html' => '1.0.1',
'format-library' => '1.2.4',
'format-library' => '1.2.5',
'hooks' => '2.0.3',
'html-entities' => '2.0.3',
'i18n' => '3.1.0',
'is-shallow-equal' => '1.1.4',
'keycodes' => '2.0.5',
'list-reusable-blocks' => '1.1.14',
'list-reusable-blocks' => '1.1.15',
'notices' => '1.1.0',
'nux' => '3.0.2',
'nux' => '3.0.3',
'plugins' => '2.0.9',
'redux-routine' => '3.0.3',
'rich-text' => '3.0.2',

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-beta5-43934';
$wp_version = '5.0-beta5-43935';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.