mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Update @wordpress packages
Update packages to include these bug fixes from Gutenberg: - Stop keypresses being caught by other elements when they happen in a CustomSelectControl - Remove color, spacing, and layout options for Template Part block - Try: parse shortcode blocks outside the content - Fix aria-modal attribution with multiple navs on page - Gallery block: Remove warning notice about mobile version required - Fix Home template description typo - Fix enqueueing additional styles for blocks only when rendered - fix typo (hanle -> handle) - SelectControl: mark the children prop as optional - Remove warning for enqueued styles in Editor - Add context to font style and font weight related translation strings - Temporarily remove text decoration from Nav block - Fix empty secondary sidebar overlapping widget editor content on mobile viewports - Fix hiding the bottom of tablet/mobile preview in Site Editor See #54487. Props isabel_brison. Built from https://develop.svn.wordpress.org/trunk@52595 git-svn-id: http://core.svn.wordpress.org/trunk@52183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e158979d3d
commit
cd191ca6fe
File diff suppressed because one or more lines are too long
@ -235,7 +235,10 @@ function get_the_block_template_html() {
|
||||
$content = $wp_embed->autoembed( $content );
|
||||
$content = do_blocks( $content );
|
||||
$content = wptexturize( $content );
|
||||
$content = convert_smilies( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = wp_filter_content_tags( $content );
|
||||
$content = do_shortcode( $content );
|
||||
$content = str_replace( ']]>', ']]>', $content );
|
||||
|
||||
// Wrap block template in .wp-site-blocks to allow for specific descendant styles
|
||||
|
@ -92,7 +92,6 @@
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '766e18bbb8dc00dda3002c46d0f2ff37');
|
||||
<?php return array('dependencies' => array(), 'version' => '87b1b146f654698824fabc51262fa860');
|
@ -103,7 +103,7 @@ function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable
|
||||
// Responsive navigation toggle.
|
||||
|
||||
function navigationToggleModal(modal) {
|
||||
const dialogContainer = document.querySelector(`.wp-block-navigation__responsive-dialog`);
|
||||
const dialogContainer = modal.querySelector(`.wp-block-navigation__responsive-dialog`);
|
||||
const isHidden = 'true' === modal.getAttribute('aria-hidden');
|
||||
modal.classList.toggle('has-modal-open', !isHidden);
|
||||
dialogContainer.toggleAttribute('aria-modal', !isHidden);
|
||||
|
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => 'fb15026c86328593809ad0e2e073f64f');
|
||||
<?php return array('dependencies' => array(), 'version' => '3776ea67846b3bb10fe8f7cdd486b0ba');
|
2
wp-includes/blocks/navigation/view.min.js
vendored
2
wp-includes/blocks/navigation/view.min.js
vendored
File diff suppressed because one or more lines are too long
@ -22,14 +22,6 @@
|
||||
"supports": {
|
||||
"align": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true
|
||||
},
|
||||
"spacing": {
|
||||
"padding": true
|
||||
},
|
||||
"__experimentalLayout": true,
|
||||
"reusable": false
|
||||
},
|
||||
"editorStyle": "wp-block-template-part-editor"
|
||||
|
5
wp-includes/css/dist/edit-site/style-rtl.css
vendored
5
wp-includes/css/dist/edit-site/style-rtl.css
vendored
@ -467,6 +467,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.edit-site-visual-editor.is-focus-mode .components-resizable-box__container {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.edit-site-visual-editor__editor-canvas {
|
||||
border-radius: 2px 2px 0 0;
|
||||
@ -484,6 +487,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
|
||||
.components-resizable-box__container {
|
||||
margin: 0 auto;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.resizable-editor__drag-handle {
|
||||
@ -1510,7 +1514,6 @@ html.wp-toolbar {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
.edit-site-visual-editor iframe {
|
||||
display: block;
|
||||
|
File diff suppressed because one or more lines are too long
5
wp-includes/css/dist/edit-site/style.css
vendored
5
wp-includes/css/dist/edit-site/style.css
vendored
@ -467,6 +467,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.edit-site-visual-editor.is-focus-mode .components-resizable-box__container {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.edit-site-visual-editor__editor-canvas {
|
||||
border-radius: 2px 2px 0 0;
|
||||
@ -484,6 +487,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
|
||||
.components-resizable-box__container {
|
||||
margin: 0 auto;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.resizable-editor__drag-handle {
|
||||
@ -1510,7 +1514,6 @@ html.wp-toolbar {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
.edit-site-visual-editor iframe {
|
||||
display: block;
|
||||
|
2
wp-includes/css/dist/edit-site/style.min.css
vendored
2
wp-includes/css/dist/edit-site/style.min.css
vendored
File diff suppressed because one or more lines are too long
29
wp-includes/js/dist/block-editor.js
vendored
29
wp-includes/js/dist/block-editor.js
vendored
@ -13755,6 +13755,7 @@ module.exports = function() {
|
||||
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
||||
var ReactPropTypes = {
|
||||
array: shim,
|
||||
bigint: shim,
|
||||
bool: shim,
|
||||
func: shim,
|
||||
number: shim,
|
||||
@ -22703,38 +22704,38 @@ Object(external_wp_data_["registerStore"])(constants["a" /* STORE_NAME */], { ..
|
||||
|
||||
|
||||
const FONT_STYLES = [{
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Regular'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Regular', 'font style'),
|
||||
value: 'normal'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Italic'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Italic', 'font style'),
|
||||
value: 'italic'
|
||||
}];
|
||||
const FONT_WEIGHTS = [{
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Thin'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Thin', 'font weight'),
|
||||
value: '100'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Extra Light'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Extra Light', 'font weight'),
|
||||
value: '200'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Light'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Light', 'font weight'),
|
||||
value: '300'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Regular'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Regular', 'font weight'),
|
||||
value: '400'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Medium'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Medium', 'font weight'),
|
||||
value: '500'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Semi Bold'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Semi Bold', 'font weight'),
|
||||
value: '600'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Bold'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Bold', 'font weight'),
|
||||
value: '700'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Extra Bold'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Extra Bold', 'font weight'),
|
||||
value: '800'
|
||||
}, {
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Black'),
|
||||
name: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('Black', 'font weight'),
|
||||
value: '900'
|
||||
}];
|
||||
/**
|
||||
@ -31951,10 +31952,8 @@ function styleSheetsCompat(doc) {
|
||||
});
|
||||
|
||||
if (isMatch && !doc.getElementById(ownerNode.id)) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(`Stylesheet ${ownerNode.id} was not properly added.
|
||||
For blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).
|
||||
For themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`, ownerNode.outerHTML);
|
||||
// Display warning once we have a way to add style dependencies to the editor.
|
||||
// See: https://github.com/WordPress/gutenberg/pull/37466.
|
||||
doc.head.appendChild(ownerNode.cloneNode(true)); // Add inline styles belonging to the stylesheet.
|
||||
|
||||
const inlineCssId = ownerNode.id.replace('-css', '-inline-css');
|
||||
|
8
wp-includes/js/dist/block-editor.min.js
vendored
8
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
1379
wp-includes/js/dist/block-library.js
vendored
1379
wp-includes/js/dist/block-library.js
vendored
File diff suppressed because it is too large
Load Diff
8
wp-includes/js/dist/block-library.min.js
vendored
8
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
14
wp-includes/js/dist/components.js
vendored
14
wp-includes/js/dist/components.js
vendored
@ -1455,6 +1455,7 @@ module.exports = function() {
|
||||
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
||||
var ReactPropTypes = {
|
||||
array: shim,
|
||||
bigint: shim,
|
||||
bool: shim,
|
||||
func: shim,
|
||||
number: shim,
|
||||
@ -46229,6 +46230,7 @@ function useMultipleSelection(userProps) {
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
@ -46320,7 +46322,13 @@ function CustomSelectControl(_ref3) {
|
||||
const menuProps = getMenuProps({
|
||||
className: 'components-custom-select-control__menu',
|
||||
'aria-hidden': !isOpen
|
||||
}); // We need this here, because the null active descendant is not fully ARIA compliant.
|
||||
});
|
||||
const onKeyDownHandler = Object(external_wp_element_["useCallback"])(e => {
|
||||
var _menuProps$onKeyDown;
|
||||
|
||||
e.stopPropagation();
|
||||
menuProps === null || menuProps === void 0 ? void 0 : (_menuProps$onKeyDown = menuProps.onKeyDown) === null || _menuProps$onKeyDown === void 0 ? void 0 : _menuProps$onKeyDown.call(menuProps, e);
|
||||
}, [menuProps]); // We need this here, because the null active descendant is not fully ARIA compliant.
|
||||
|
||||
if ((_menuProps$ariaActiv = menuProps['aria-activedescendant']) !== null && _menuProps$ariaActiv !== void 0 && _menuProps$ariaActiv.startsWith('downshift-null')) {
|
||||
delete menuProps['aria-activedescendant'];
|
||||
@ -46344,7 +46352,9 @@ function CustomSelectControl(_ref3) {
|
||||
}), custom_select_control_itemToString(selectedItem), Object(external_wp_element_["createElement"])(build_module_icon["a" /* default */], {
|
||||
icon: chevron_down["a" /* default */],
|
||||
className: "components-custom-select-control__button-icon"
|
||||
})), Object(external_wp_element_["createElement"])("ul", menuProps, isOpen && items.map((item, index) => // eslint-disable-next-line react/jsx-key
|
||||
})), Object(external_wp_element_["createElement"])("ul", Object(esm_extends["a" /* default */])({}, menuProps, {
|
||||
onKeyDown: onKeyDownHandler
|
||||
}), isOpen && items.map((item, index) => // eslint-disable-next-line react/jsx-key
|
||||
Object(external_wp_element_["createElement"])("li", getItemProps({
|
||||
item,
|
||||
index,
|
||||
|
4
wp-includes/js/dist/components.min.js
vendored
4
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
1
wp-includes/js/dist/edit-post.js
vendored
1
wp-includes/js/dist/edit-post.js
vendored
@ -9639,7 +9639,6 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
|
||||
Object(external_wp_data_["dispatch"])(build_module["i" /* store */]).setFeatureDefaults('core/edit-post', {
|
||||
fixedToolbar: false,
|
||||
welcomeGuide: true,
|
||||
mobileGalleryWarning: true,
|
||||
fullscreenMode: true,
|
||||
showIconLabels: false,
|
||||
themeStyles: true,
|
||||
|
2
wp-includes/js/dist/edit-post.min.js
vendored
2
wp-includes/js/dist/edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
3
wp-includes/js/dist/edit-widgets.js
vendored
3
wp-includes/js/dist/edit-widgets.js
vendored
@ -3214,10 +3214,11 @@ function Interface(_ref) {
|
||||
closeGeneralSidebar();
|
||||
}
|
||||
}, [isInserterOpened, isListViewOpened, isHugeViewport]);
|
||||
const hasSecondarySidebar = isListViewOpened || isInserterOpened;
|
||||
return Object(external_wp_element_["createElement"])(build_module["e" /* InterfaceSkeleton */], {
|
||||
labels: interfaceLabels,
|
||||
header: Object(external_wp_element_["createElement"])(header, null),
|
||||
secondarySidebar: Object(external_wp_element_["createElement"])(SecondarySidebar, null),
|
||||
secondarySidebar: hasSecondarySidebar && Object(external_wp_element_["createElement"])(SecondarySidebar, null),
|
||||
sidebar: hasSidebarEnabled && Object(external_wp_element_["createElement"])(build_module["b" /* ComplementaryArea */].Slot, {
|
||||
scope: "core/edit-widgets"
|
||||
}),
|
||||
|
2
wp-includes/js/dist/edit-widgets.min.js
vendored
2
wp-includes/js/dist/edit-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
1
wp-includes/js/dist/editor.js
vendored
1
wp-includes/js/dist/editor.js
vendored
@ -154,6 +154,7 @@ module.exports = function() {
|
||||
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
||||
var ReactPropTypes = {
|
||||
array: shim,
|
||||
bigint: shim,
|
||||
bool: shim,
|
||||
func: shim,
|
||||
number: shim,
|
||||
|
2
wp-includes/js/dist/editor.min.js
vendored
2
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-52593';
|
||||
$wp_version = '6.0-alpha-52595';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user