mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 08:41:24 +01:00
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:
parent
0e9a48e0cb
commit
2900d9eccf
File diff suppressed because one or more lines are too long
25
wp-includes/js/dist/block-editor.js
vendored
25
wp-includes/js/dist/block-editor.js
vendored
@ -27127,6 +27127,7 @@ var store = __webpack_require__("BhPs");
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
@ -27137,6 +27138,7 @@ var store = __webpack_require__("BhPs");
|
|||||||
// This is used to avoid rendering the block list if the sizes change.
|
// This is used to avoid rendering the block list if the sizes change.
|
||||||
|
|
||||||
let MemoizedBlockList;
|
let MemoizedBlockList;
|
||||||
|
const MAX_HEIGHT = 2000;
|
||||||
|
|
||||||
function AutoBlockPreview(_ref) {
|
function AutoBlockPreview(_ref) {
|
||||||
let {
|
let {
|
||||||
@ -27151,7 +27153,18 @@ function AutoBlockPreview(_ref) {
|
|||||||
}] = Object(external_wp_compose_["useResizeObserver"])();
|
}] = Object(external_wp_compose_["useResizeObserver"])();
|
||||||
const styles = Object(external_wp_data_["useSelect"])(select => {
|
const styles = Object(external_wp_data_["useSelect"])(select => {
|
||||||
return select(store["a" /* store */]).getSettings().styles;
|
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 */]);
|
MemoizedBlockList = MemoizedBlockList || Object(external_wp_compose_["pure"])(block_list["c" /* default */]);
|
||||||
const scale = containerWidth / viewportWidth;
|
const scale = containerWidth / viewportWidth;
|
||||||
@ -27161,11 +27174,12 @@ function AutoBlockPreview(_ref) {
|
|||||||
className: "block-editor-block-preview__content",
|
className: "block-editor-block-preview__content",
|
||||||
style: {
|
style: {
|
||||||
transform: `scale(${scale})`,
|
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 */], {
|
}, Object(external_wp_element_["createElement"])(iframe["a" /* default */], {
|
||||||
head: Object(external_wp_element_["createElement"])(editor_styles["a" /* default */], {
|
head: Object(external_wp_element_["createElement"])(editor_styles["a" /* default */], {
|
||||||
styles: styles
|
styles: editorStyles
|
||||||
}),
|
}),
|
||||||
contentRef: Object(external_wp_compose_["useRefEffect"])(bodyElement => {
|
contentRef: Object(external_wp_compose_["useRefEffect"])(bodyElement => {
|
||||||
const {
|
const {
|
||||||
@ -27184,7 +27198,10 @@ function AutoBlockPreview(_ref) {
|
|||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
width: viewportWidth,
|
width: viewportWidth,
|
||||||
height: contentHeight,
|
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, {
|
}, contentResizeListener, Object(external_wp_element_["createElement"])(MemoizedBlockList, {
|
||||||
renderAppender: false
|
renderAppender: false
|
||||||
|
2
wp-includes/js/dist/block-editor.min.js
vendored
2
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user