Editor: Bump editor packages to include the latest fixes.

This merges the latest package updates for the block editor to include the fix for https://github.com/WordPress/gutenberg/pull/38175.

Props hellofromTonya, mamaduka, joen, talldanwp, cbravobernal, poena.
Fixes #54487.
Built from https://develop.svn.wordpress.org/trunk@52633


git-svn-id: http://core.svn.wordpress.org/trunk@52221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2022-01-24 15:57:28 +00:00
parent 0e9a48e0cb
commit 2900d9eccf
4 changed files with 24 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -27127,6 +27127,7 @@ var store = __webpack_require__("BhPs");
/**
* Internal dependencies
*/
@ -27137,6 +27138,7 @@ var store = __webpack_require__("BhPs");
// This is used to avoid rendering the block list if the sizes change.
let MemoizedBlockList;
const MAX_HEIGHT = 2000;
function AutoBlockPreview(_ref) {
let {
@ -27151,7 +27153,18 @@ function AutoBlockPreview(_ref) {
}] = Object(external_wp_compose_["useResizeObserver"])();
const styles = Object(external_wp_data_["useSelect"])(select => {
return select(store["a" /* store */]).getSettings().styles;
}, []); // Initialize on render instead of module top level, to avoid circular dependency issues.
}, []); // Avoid scrollbars for pattern previews.
const editorStyles = Object(external_wp_element_["useMemo"])(() => {
if (styles) {
return [...styles, {
css: 'body{height:auto;overflow:hidden;}',
__unstableType: 'presets'
}];
}
return styles;
}, [styles]); // Initialize on render instead of module top level, to avoid circular dependency issues.
MemoizedBlockList = MemoizedBlockList || Object(external_wp_compose_["pure"])(block_list["c" /* default */]);
const scale = containerWidth / viewportWidth;
@ -27161,11 +27174,12 @@ function AutoBlockPreview(_ref) {
className: "block-editor-block-preview__content",
style: {
transform: `scale(${scale})`,
height: contentHeight * scale
height: contentHeight * scale,
maxHeight: contentHeight > MAX_HEIGHT ? MAX_HEIGHT * scale : undefined
}
}, Object(external_wp_element_["createElement"])(iframe["a" /* default */], {
head: Object(external_wp_element_["createElement"])(editor_styles["a" /* default */], {
styles: styles
styles: editorStyles
}),
contentRef: Object(external_wp_compose_["useRefEffect"])(bodyElement => {
const {
@ -27184,7 +27198,10 @@ function AutoBlockPreview(_ref) {
position: 'absolute',
width: viewportWidth,
height: contentHeight,
pointerEvents: 'none'
pointerEvents: 'none',
// This is a catch-all max-height for patterns.
// See: https://github.com/WordPress/gutenberg/pull/38175.
maxHeight: MAX_HEIGHT
}
}, contentResizeListener, Object(external_wp_element_["createElement"])(MemoizedBlockList, {
renderAppender: false

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52631';
$wp_version = '6.0-alpha-52633';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.