Block Editor: Package updates for Beta 3.

The commit updates the WordPress packages for beta 3.

Props nosolosw, noisysocks, youknowriad.
See #53397.
Built from https://develop.svn.wordpress.org/trunk@51199


git-svn-id: http://core.svn.wordpress.org/trunk@50808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
jorgefilipecosta 2021-06-22 10:00:50 +00:00
parent 6db7930147
commit ab25191895
64 changed files with 686 additions and 204 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "core/loginout",
"title": "Login/out",
"category": "design",
"category": "theme",
"description": "Show login & logout links.",
"keywords": [ "login", "logout", "form" ],
"textdomain": "default",

View File

@ -92,7 +92,7 @@ function block_core_page_list_build_css_font_sizes( $context ) {
*
* @return string List markup.
*/
function render_nested_page_list( $nested_pages ) {
function block_core_page_list_render_nested_page_list( $nested_pages ) {
if ( empty( $nested_pages ) ) {
return;
}
@ -109,7 +109,7 @@ function render_nested_page_list( $nested_pages ) {
) . '</a>';
if ( isset( $page['children'] ) ) {
$markup .= '<span class="wp-block-page-list__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>';
$markup .= '<ul class="submenu-container">' . render_nested_page_list( $page['children'] ) . '</ul>';
$markup .= '<ul class="submenu-container">' . block_core_page_list_render_nested_page_list( $page['children'] ) . '</ul>';
}
$markup .= '</li>';
}
@ -124,13 +124,13 @@ function render_nested_page_list( $nested_pages ) {
*
* @return array The nested array of pages.
*/
function nest_pages( $current_level, $children ) {
function block_core_page_list_nest_pages( $current_level, $children ) {
if ( empty( $current_level ) ) {
return;
}
foreach ( (array) $current_level as $key => $current ) {
if ( isset( $children[ $key ] ) ) {
$current_level[ $key ]['children'] = nest_pages( $children[ $key ], $children );
$current_level[ $key ]['children'] = block_core_page_list_nest_pages( $children[ $key ], $children );
}
}
return $current_level;
@ -180,11 +180,11 @@ function render_block_core_page_list( $attributes, $content, $block ) {
}
}
$nested_pages = nest_pages( $top_level_pages, $pages_with_children );
$nested_pages = block_core_page_list_nest_pages( $top_level_pages, $pages_with_children );
$wrapper_markup = '<ul %1$s>%2$s</ul>';
$items_markup = render_nested_page_list( $nested_pages );
$items_markup = block_core_page_list_render_nested_page_list( $nested_pages );
$colors = block_core_page_list_build_css_colors( $block->context );
$font_sizes = block_core_page_list_build_css_font_sizes( $block->context );

View File

@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "core/post-content",
"title": "Post Content",
"category": "design",
"category": "theme",
"description": "Displays the contents of a post or page.",
"textdomain": "default",
"usesContext": [ "postId", "postType", "queryId" ],

View File

@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "core/post-date",
"title": "Post Date",
"category": "design",
"category": "theme",
"description": "Add the date of this post.",
"textdomain": "default",
"attributes": {

View File

@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "core/post-excerpt",
"title": "Post Excerpt",
"category": "design",
"category": "theme",
"description": "Display a post's excerpt.",
"textdomain": "default",
"attributes": {

View File

@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "core/post-featured-image",
"title": "Post Featured Image",
"category": "design",
"category": "theme",
"description": "Display a post's featured image.",
"textdomain": "default",
"attributes": {

View File

@ -103,7 +103,7 @@ add_action( 'init', 'register_block_core_post_template' );
function render_legacy_query_loop_block( $attributes, $content, $block ) {
trigger_error(
/* translators: %1$s: Block type */
sprintf( __( 'Block %1$s has been renamed to Post Template. %1$s will be supported until WordPress version 5.9.', 'gutenberg' ), $block->name ),
sprintf( __( 'Block %1$s has been renamed to Post Template. %1$s will be supported until WordPress version 5.9.' ), $block->name ),
headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
);
return render_block_core_post_template( $attributes, $content, $block );

View File

@ -4,7 +4,7 @@
"title": "Post Template",
"category": "design",
"parent": [ "core/query" ],
"description": "Post Template.",
"description": "Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",
"textdomain": "default",
"usesContext": [
"queryId",

View File

@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "core/post-title",
"title": "Post Title",
"category": "design",
"category": "theme",
"description": "Displays the title of a post, page, or any other content-type.",
"textdomain": "default",
"usesContext": [ "postId", "postType", "queryId" ],

View File

@ -2,8 +2,8 @@
"apiVersion": 2,
"name": "core/query",
"title": "Query Loop",
"category": "design",
"description": "Displays a list of posts as a result of a query.",
"category": "theme",
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
"textdomain": "default",
"attributes": {
"queryId": {

View File

@ -13,13 +13,17 @@
* @return string The render.
*/
function render_block_core_site_tagline( $attributes ) {
$site_tagline = get_bloginfo( 'description' );
if ( ! $site_tagline ) {
return;
}
$align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
return sprintf(
'<p %1$s>%2$s</p>',
$wrapper_attributes,
get_bloginfo( 'description' )
$site_tagline
);
}

View File

@ -26,5 +26,6 @@
"__experimentalFontFamily": true,
"__experimentalTextTransform": true
}
}
},
"editorStyle": "wp-block-site-tagline-editor"
}

View File

@ -0,0 +1,74 @@
/**
* Colors
*/
/**
* Breakpoints & Media Queries
*/
/**
* SCSS Variables.
*
* Please use variables from this sheet to ensure consistency across the UI.
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
*/
/**
* Colors
*/
/**
* Fonts & basic variables.
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Dimensions.
*/
/**
* Shadows.
*/
/**
* Editor widths.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoint mixins
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Focus styles.
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.wp-block-site-tagline__placeholder {
padding: 1em 0;
border: 1px dashed;
}

View File

@ -0,0 +1 @@
.wp-block-site-tagline__placeholder{padding:1em 0;border:1px dashed}

View File

@ -0,0 +1,74 @@
/**
* Colors
*/
/**
* Breakpoints & Media Queries
*/
/**
* SCSS Variables.
*
* Please use variables from this sheet to ensure consistency across the UI.
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
*/
/**
* Colors
*/
/**
* Fonts & basic variables.
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Dimensions.
*/
/**
* Shadows.
*/
/**
* Editor widths.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoint mixins
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Focus styles.
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.wp-block-site-tagline__placeholder {
padding: 1em 0;
border: 1px dashed;
}

View File

@ -0,0 +1 @@
.wp-block-site-tagline__placeholder{padding:1em 0;border:1px dashed}

View File

@ -13,6 +13,11 @@
* @return string The render.
*/
function render_block_core_site_title( $attributes ) {
$site_title = get_bloginfo( 'name' );
if ( ! $site_title ) {
return;
}
$tag_name = 'h1';
$align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
@ -20,7 +25,7 @@ function render_block_core_site_title( $attributes ) {
$tag_name = 0 === $attributes['level'] ? 'p' : 'h' . $attributes['level'];
}
$link = sprintf( '<a href="%1$s" rel="home">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) );
$link = sprintf( '<a href="%1$s" rel="home">%2$s</a>', get_bloginfo( 'url' ), $site_title );
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
return sprintf(

View File

@ -34,5 +34,6 @@
"__experimentalFontStyle": true,
"__experimentalFontWeight": true
}
}
},
"editorStyle": "wp-block-site-title-editor"
}

View File

@ -0,0 +1,74 @@
/**
* Colors
*/
/**
* Breakpoints & Media Queries
*/
/**
* SCSS Variables.
*
* Please use variables from this sheet to ensure consistency across the UI.
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
*/
/**
* Colors
*/
/**
* Fonts & basic variables.
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Dimensions.
*/
/**
* Shadows.
*/
/**
* Editor widths.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoint mixins
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Focus styles.
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.wp-block-site-title__placeholder {
padding: 1em 0;
border: 1px dashed;
}

View File

@ -0,0 +1 @@
.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}

View File

@ -0,0 +1,74 @@
/**
* Colors
*/
/**
* Breakpoints & Media Queries
*/
/**
* SCSS Variables.
*
* Please use variables from this sheet to ensure consistency across the UI.
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
*/
/**
* Colors
*/
/**
* Fonts & basic variables.
*/
/**
* Grid System.
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
*/
/**
* Dimensions.
*/
/**
* Shadows.
*/
/**
* Editor widths.
*/
/**
* Block & Editor UI.
*/
/**
* Block paddings.
*/
/**
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
/**
* Breakpoint mixins
*/
/**
* Long content fade mixin
*
* Creates a fading overlay to signify that the content is longer
* than the space allows.
*/
/**
* Focus styles.
*/
/**
* Applies editor left position to the selector passed as argument
*/
/**
* Styles that are reused verbatim in a few places
*/
/**
* Allows users to opt-out of animations via OS-level preferences.
*/
/**
* Reset default styles for JavaScript UI based pages.
* This is a WP-admin agnostic reset
*/
/**
* Reset the WP Admin page styles for Gutenberg-like pages.
*/
.wp-block-site-title__placeholder {
padding: 1em 0;
border: 1px dashed;
}

View File

@ -0,0 +1 @@
.wp-block-site-title__placeholder{padding:1em 0;border:1px dashed}

View File

@ -1818,6 +1818,16 @@ body.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
display: none;
}
.wp-block-site-tagline__placeholder {
padding: 1em 0;
border: 1px dashed;
}
.wp-block-site-title__placeholder {
padding: 1em 0;
border: 1px dashed;
}
.wp-block-social-links .wp-social-link {
line-height: 0;
}

File diff suppressed because one or more lines are too long

View File

@ -1823,6 +1823,16 @@ body.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
display: none;
}
.wp-block-site-tagline__placeholder {
padding: 1em 0;
border: 1px dashed;
}
.wp-block-site-title__placeholder {
padding: 1em 0;
border: 1px dashed;
}
.wp-block-social-links .wp-social-link {
line-height: 0;
}

File diff suppressed because one or more lines are too long

View File

@ -84,6 +84,7 @@
font-size: initial;
line-height: initial;
color: initial;
background: #fff;
}
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block[data-align=full] {
margin-right: -8px;

View File

@ -1 +1 @@
.editor-styles-wrapper{padding:8px;font-family:serif;font-size:medium;line-height:normal;color:initial}.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-8px;margin-left:-8px}.editor-styles-wrapper .wp-align-wrapper{max-width:840px}.editor-styles-wrapper .wp-align-wrapper.wp-align-full,.editor-styles-wrapper .wp-align-wrapper>.wp-block{max-width:none}.editor-styles-wrapper .wp-align-wrapper.wp-align-wide{max-width:840px}.editor-styles-wrapper a{transition:none}.editor-styles-wrapper code,.editor-styles-wrapper kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace}.editor-styles-wrapper p{font-size:revert;line-height:revert;margin:revert}.editor-styles-wrapper ol,.editor-styles-wrapper ul{margin:revert;padding:revert;list-style-type:revert;box-sizing:revert}.editor-styles-wrapper ol li,.editor-styles-wrapper ol ol,.editor-styles-wrapper ol ul,.editor-styles-wrapper ul li,.editor-styles-wrapper ul ol,.editor-styles-wrapper ul ul{margin:revert}.editor-styles-wrapper ol ul,.editor-styles-wrapper ul ul{list-style-type:revert}.editor-styles-wrapper h1,.editor-styles-wrapper h2,.editor-styles-wrapper h3,.editor-styles-wrapper h4,.editor-styles-wrapper h5,.editor-styles-wrapper h6{font-size:revert;margin:revert;color:revert;line-height:revert;font-weight:revert}.editor-styles-wrapper select{font-family:system-ui;-webkit-appearance:revert;color:revert;border:revert;border-radius:revert;background:revert;box-shadow:revert;text-shadow:revert;outline:revert;cursor:revert;transform:revert;font-size:revert;line-height:revert;padding:revert;margin:revert;min-height:revert;max-width:revert;vertical-align:revert;font-weight:revert}.editor-styles-wrapper select:disabled,.editor-styles-wrapper select:focus{color:revert;border-color:revert;background:revert;box-shadow:revert;text-shadow:revert;cursor:revert;transform:revert}
.editor-styles-wrapper{padding:8px;font-family:serif;font-size:medium;line-height:normal;color:initial;background:#fff}.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-8px;margin-left:-8px}.editor-styles-wrapper .wp-align-wrapper{max-width:840px}.editor-styles-wrapper .wp-align-wrapper.wp-align-full,.editor-styles-wrapper .wp-align-wrapper>.wp-block{max-width:none}.editor-styles-wrapper .wp-align-wrapper.wp-align-wide{max-width:840px}.editor-styles-wrapper a{transition:none}.editor-styles-wrapper code,.editor-styles-wrapper kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace}.editor-styles-wrapper p{font-size:revert;line-height:revert;margin:revert}.editor-styles-wrapper ol,.editor-styles-wrapper ul{margin:revert;padding:revert;list-style-type:revert;box-sizing:revert}.editor-styles-wrapper ol li,.editor-styles-wrapper ol ol,.editor-styles-wrapper ol ul,.editor-styles-wrapper ul li,.editor-styles-wrapper ul ol,.editor-styles-wrapper ul ul{margin:revert}.editor-styles-wrapper ol ul,.editor-styles-wrapper ul ul{list-style-type:revert}.editor-styles-wrapper h1,.editor-styles-wrapper h2,.editor-styles-wrapper h3,.editor-styles-wrapper h4,.editor-styles-wrapper h5,.editor-styles-wrapper h6{font-size:revert;margin:revert;color:revert;line-height:revert;font-weight:revert}.editor-styles-wrapper select{font-family:system-ui;-webkit-appearance:revert;color:revert;border:revert;border-radius:revert;background:revert;box-shadow:revert;text-shadow:revert;outline:revert;cursor:revert;transform:revert;font-size:revert;line-height:revert;padding:revert;margin:revert;min-height:revert;max-width:revert;vertical-align:revert;font-weight:revert}.editor-styles-wrapper select:disabled,.editor-styles-wrapper select:focus{color:revert;border-color:revert;background:revert;box-shadow:revert;text-shadow:revert;cursor:revert;transform:revert}

View File

@ -84,6 +84,7 @@
font-size: initial;
line-height: initial;
color: initial;
background: #fff;
}
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block[data-align=full] {
margin-left: -8px;

View File

@ -1 +1 @@
.editor-styles-wrapper{padding:8px;font-family:serif;font-size:medium;line-height:normal;color:initial}.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}.editor-styles-wrapper .wp-align-wrapper{max-width:840px}.editor-styles-wrapper .wp-align-wrapper.wp-align-full,.editor-styles-wrapper .wp-align-wrapper>.wp-block{max-width:none}.editor-styles-wrapper .wp-align-wrapper.wp-align-wide{max-width:840px}.editor-styles-wrapper a{transition:none}.editor-styles-wrapper code,.editor-styles-wrapper kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace}.editor-styles-wrapper p{font-size:revert;line-height:revert;margin:revert}.editor-styles-wrapper ol,.editor-styles-wrapper ul{margin:revert;padding:revert;list-style-type:revert;box-sizing:revert}.editor-styles-wrapper ol li,.editor-styles-wrapper ol ol,.editor-styles-wrapper ol ul,.editor-styles-wrapper ul li,.editor-styles-wrapper ul ol,.editor-styles-wrapper ul ul{margin:revert}.editor-styles-wrapper ol ul,.editor-styles-wrapper ul ul{list-style-type:revert}.editor-styles-wrapper h1,.editor-styles-wrapper h2,.editor-styles-wrapper h3,.editor-styles-wrapper h4,.editor-styles-wrapper h5,.editor-styles-wrapper h6{font-size:revert;margin:revert;color:revert;line-height:revert;font-weight:revert}.editor-styles-wrapper select{font-family:system-ui;-webkit-appearance:revert;color:revert;border:revert;border-radius:revert;background:revert;box-shadow:revert;text-shadow:revert;outline:revert;cursor:revert;transform:revert;font-size:revert;line-height:revert;padding:revert;margin:revert;min-height:revert;max-width:revert;vertical-align:revert;font-weight:revert}.editor-styles-wrapper select:disabled,.editor-styles-wrapper select:focus{color:revert;border-color:revert;background:revert;box-shadow:revert;text-shadow:revert;cursor:revert;transform:revert}
.editor-styles-wrapper{padding:8px;font-family:serif;font-size:medium;line-height:normal;color:initial;background:#fff}.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-left:-8px;margin-right:-8px}.editor-styles-wrapper .wp-align-wrapper{max-width:840px}.editor-styles-wrapper .wp-align-wrapper.wp-align-full,.editor-styles-wrapper .wp-align-wrapper>.wp-block{max-width:none}.editor-styles-wrapper .wp-align-wrapper.wp-align-wide{max-width:840px}.editor-styles-wrapper a{transition:none}.editor-styles-wrapper code,.editor-styles-wrapper kbd{padding:0;margin:0;background:inherit;font-size:inherit;font-family:monospace}.editor-styles-wrapper p{font-size:revert;line-height:revert;margin:revert}.editor-styles-wrapper ol,.editor-styles-wrapper ul{margin:revert;padding:revert;list-style-type:revert;box-sizing:revert}.editor-styles-wrapper ol li,.editor-styles-wrapper ol ol,.editor-styles-wrapper ol ul,.editor-styles-wrapper ul li,.editor-styles-wrapper ul ol,.editor-styles-wrapper ul ul{margin:revert}.editor-styles-wrapper ol ul,.editor-styles-wrapper ul ul{list-style-type:revert}.editor-styles-wrapper h1,.editor-styles-wrapper h2,.editor-styles-wrapper h3,.editor-styles-wrapper h4,.editor-styles-wrapper h5,.editor-styles-wrapper h6{font-size:revert;margin:revert;color:revert;line-height:revert;font-weight:revert}.editor-styles-wrapper select{font-family:system-ui;-webkit-appearance:revert;color:revert;border:revert;border-radius:revert;background:revert;box-shadow:revert;text-shadow:revert;outline:revert;cursor:revert;transform:revert;font-size:revert;line-height:revert;padding:revert;margin:revert;min-height:revert;max-width:revert;vertical-align:revert;font-weight:revert}.editor-styles-wrapper select:disabled,.editor-styles-wrapper select:focus{color:revert;border-color:revert;background:revert;box-shadow:revert;text-shadow:revert;cursor:revert;transform:revert}

View File

@ -298,11 +298,13 @@
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
overflow: unset;
min-height: 100%;
background-color: #fff;
padding-top: 10px !important;
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
overflow: unset;
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
position: static !important;
top: 0 !important;

File diff suppressed because one or more lines are too long

View File

@ -298,11 +298,13 @@
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section {
overflow: unset;
min-height: 100%;
background-color: #fff;
padding-top: 10px !important;
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open {
overflow: unset;
}
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title {
position: static !important;
top: 0 !important;

File diff suppressed because one or more lines are too long

View File

@ -283,6 +283,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: flex;
flex-direction: column;
overflow: auto;
z-index: 20;
}
.interface-interface-skeleton__secondary-sidebar,
@ -1783,7 +1784,7 @@ h2.edit-post-template-summary__title {
.edit-post-visual-editor__content-area {
width: 100%;
min-height: 100%;
height: 100%;
position: relative;
display: flex;
}

File diff suppressed because one or more lines are too long

View File

@ -283,6 +283,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: flex;
flex-direction: column;
overflow: auto;
z-index: 20;
}
.interface-interface-skeleton__secondary-sidebar,
@ -1787,7 +1788,7 @@ h2.edit-post-template-summary__title {
.edit-post-visual-editor__content-area {
width: 100%;
min-height: 100%;
height: 100%;
position: relative;
display: flex;
}

File diff suppressed because one or more lines are too long

View File

@ -283,6 +283,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: flex;
flex-direction: column;
overflow: auto;
z-index: 20;
}
.interface-interface-skeleton__secondary-sidebar,
@ -399,15 +400,23 @@ body.is-fullscreen-mode .interface-interface-skeleton {
}
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
margin-bottom: 0;
}
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
background: inherit;
}
.wp-block[data-type="core/widget-area"] .components-panel__body .editor-styles-wrapper {
margin: 0 -16px -16px -16px;
padding: 16px;
}
.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
width: initial;
}
.wp-block-widget-area > .components-panel__body > div > .block-editor-inner-blocks {
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks {
padding-top: 24px;
}
.wp-block-widget-area > .components-panel__body > div > .block-editor-inner-blocks > .block-editor-block-list__layout {
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout {
min-height: 32px;
}
@ -850,7 +859,7 @@ body.widgets-php .media-frame select.attachment-filters:last-of-type {
background-color: #f0f0f0;
}
.blocks-widgets-container .editor-style-wrapper {
.blocks-widgets-container .editor-styles-wrapper {
max-width: 700px;
margin: auto;
}

File diff suppressed because one or more lines are too long

View File

@ -283,6 +283,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
display: flex;
flex-direction: column;
overflow: auto;
z-index: 20;
}
.interface-interface-skeleton__secondary-sidebar,
@ -399,15 +400,23 @@ body.is-fullscreen-mode .interface-interface-skeleton {
}
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
margin-bottom: 0;
}
.wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
background: inherit;
}
.wp-block[data-type="core/widget-area"] .components-panel__body .editor-styles-wrapper {
margin: 0 -16px -16px -16px;
padding: 16px;
}
.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
width: initial;
}
.wp-block-widget-area > .components-panel__body > div > .block-editor-inner-blocks {
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks {
padding-top: 24px;
}
.wp-block-widget-area > .components-panel__body > div > .block-editor-inner-blocks > .block-editor-block-list__layout {
.wp-block-widget-area > .components-panel__body > div > .editor-styles-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout {
min-height: 32px;
}
@ -850,7 +859,7 @@ body.widgets-php .media-frame select.attachment-filters:last-of-type {
background-color: #f0f0f0;
}
.blocks-widgets-container .editor-style-wrapper {
.blocks-widgets-container .editor-styles-wrapper {
max-width: 700px;
margin: auto;
}

File diff suppressed because one or more lines are too long

View File

@ -164,4 +164,9 @@
.is-selected .wp-block-legacy-widget__container {
padding: 8px 12px;
min-height: 50px;
}
.wp-block-legacy-widget .components-select-control__input {
padding: 0;
font-family: system-ui;
}

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside label+.widefat{margin-top:12px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";right:0;position:absolute;left:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{right:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside label+.widefat{margin-top:12px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";right:0;position:absolute;left:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{right:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 52px 16px 16px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}

View File

@ -164,4 +164,9 @@
.is-selected .wp-block-legacy-widget__container {
padding: 8px 12px;
min-height: 50px;
}
.wp-block-legacy-widget .components-select-control__input {
padding: 0;
font-family: system-ui;
}

View File

@ -1 +1 @@
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside label+.widefat{margin-top:12px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}
:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-block-legacy-widget__edit-form{background:#fff;border-radius:2px;border:1px solid #1e1e1e;padding:11px}.wp-block-legacy-widget__edit-form .wp-block-legacy-widget__edit-form-title{color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-weight:600;margin:0 0 12px}.wp-block-legacy-widget__edit-form .widget-inside{border:none;box-shadow:none;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.wp-block-legacy-widget__edit-form .widget-inside label{font-size:13px}.wp-block-legacy-widget__edit-form .widget-inside label+.widefat{margin-top:12px}.wp-block-legacy-widget__edit-form .widget.open{z-index:0}.wp-block-legacy-widget__edit-no-preview,.wp-block-legacy-widget__edit-preview{cursor:pointer}.wp-block-legacy-widget__edit-no-preview:hover:after,.wp-block-legacy-widget__edit-preview:hover:after{border-radius:2px;border:1px solid #949494;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.wp-block-legacy-widget__edit-preview.is-offscreen{left:-9999px;position:absolute;top:0;width:100%}.wp-block-legacy-widget__edit-preview-iframe{overflow:hidden;width:100%}.wp-block-legacy-widget__edit-no-preview{background:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:8px 12px}.wp-block-legacy-widget__edit-no-preview h3{font-size:14px;font-weight:600;margin:4px 0}.wp-block-legacy-widget__edit-no-preview p{margin:4px 0}.wp-block-legacy-widget-inspector-card{padding:0 16px 16px 52px}.interface-complementary-area .wp-block-legacy-widget-inspector-card__name{margin:0 0 5px;font-weight:500}.is-selected .wp-block-legacy-widget__container{padding:8px 12px;min-height:50px}.wp-block-legacy-widget .components-select-control__input{padding:0;font-family:system-ui}

View File

@ -657,5 +657,6 @@ add_filter( 'user_has_cap', 'wp_maybe_grant_site_health_caps', 1, 4 );
add_filter( 'render_block_context', '_block_template_render_without_post_block_context' );
add_filter( 'pre_wp_unique_post_slug', 'wp_filter_wp_template_unique_post_slug', 10, 5 );
add_action( 'wp_footer', 'the_block_template_skip_link' );
add_action( 'setup_theme', 'wp_enable_block_templates' );
unset( $filter, $action );

View File

@ -10320,7 +10320,17 @@ function selectors_getBlockInsertionPoint(state) {
*/
function selectors_isBlockInsertionPointVisible(state) {
return state.insertionPoint !== null;
const insertionPoint = state.insertionPoint;
if (!state.insertionPoint) {
return false;
}
if (selectors_getTemplateLock(state, insertionPoint.rootClientId)) {
return false;
}
return true;
}
/**
* Returns whether the blocks matches the template or not.
@ -13649,13 +13659,9 @@ const getColorObjectByColorValue = (colors, colorValue) => {
function getColorClassName(colorContextName, colorSlug) {
if (!colorContextName || !colorSlug) {
return undefined;
} // We don't want to use kebabCase from lodash here
// see https://github.com/WordPress/gutenberg/issues/32347
// However, we need to make sure the generated class
// doesn't contain spaces.
}
return `has-${colorSlug.replace(/\s+/g, '-')}-${colorContextName.replace(/\s+/g, '-')}`;
return `has-${Object(external_lodash_["kebabCase"])(colorSlug)}-${colorContextName}`;
}
/**
* Given an array of color objects and a color value returns the color value of the most readable color in the array.
@ -16231,19 +16237,15 @@ function getFontSizeObjectByValue(fontSizes, value) {
* @param {string} fontSizeSlug Slug of the fontSize.
*
* @return {string} String with the class corresponding to the fontSize passed.
* The class is generated by appending 'has-' followed by fontSizeSlug and ending with '-font-size'.
* The class is generated by appending 'has-' followed by fontSizeSlug in kebabCase and ending with '-font-size'.
*/
function getFontSizeClass(fontSizeSlug) {
if (!fontSizeSlug) {
return;
} // We don't want to use kebabCase from lodash here
// see https://github.com/WordPress/gutenberg/issues/32347
// However, we need to make sure the generated class
// doesn't contain spaces.
}
return `has-${fontSizeSlug.replace(/\s+/g, '-')}-font-size`;
return `has-${Object(external_lodash_["kebabCase"])(fontSizeSlug)}-font-size`;
}
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/font-sizes/font-size-picker.js
@ -37706,7 +37708,21 @@ function useDarkThemeBodyClassName(styles) {
body
} = ownerDocument;
const canvas = ownerDocument.querySelector(EDITOR_STYLES_SELECTOR);
const backgroundColor = defaultView.getComputedStyle(canvas, null).getPropertyValue('background-color'); // If background is transparent, it should be treated as light color.
let backgroundColor;
if (!canvas) {
// The real .editor-styles-wrapper element might not exist in the
// DOM, so calculate the background color by creating a fake
// wrapper.
const tempCanvas = ownerDocument.createElement('div');
tempCanvas.classList.add(EDITOR_STYLES_SELECTOR);
body.appendChild(tempCanvas);
backgroundColor = defaultView.getComputedStyle(tempCanvas, null).getPropertyValue('background-color');
body.removeChild(tempCanvas);
} else {
backgroundColor = defaultView.getComputedStyle(canvas, null).getPropertyValue('background-color');
} // If background is transparent, it should be treated as light color.
if (tinycolor_default()(backgroundColor).getLuminance() > 0.5 || tinycolor_default()(backgroundColor).getAlpha() === 0) {
body.classList.remove('is-dark-theme');

File diff suppressed because one or more lines are too long

View File

@ -10960,9 +10960,6 @@ const calendar = Object(external_wp_element_["createElement"])(external_wp_primi
var external_moment_ = __webpack_require__("wy2R");
var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_);
// EXTERNAL MODULE: external ["wp","editor"]
var external_wp_editor_ = __webpack_require__("jSdM");
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js
@ -10979,7 +10976,6 @@ var external_wp_editor_ = __webpack_require__("jSdM");
const getYearMonth = memize_default()(date => {
if (!date) {
return {};
@ -10995,14 +10991,24 @@ function CalendarEdit({
attributes
}) {
const date = Object(external_wp_data_["useSelect"])(select => {
const {
getEditedPostAttribute
} = select(external_wp_editor_["store"]);
const postType = getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar.
// This overwrite should only happen for 'post' post types.
// For other post types the calendar always displays the current month.
// FIXME: @wordpress/block-library should not depend on @wordpress/editor.
// Blocks can be loaded into a *non-post* block editor.
// eslint-disable-next-line @wordpress/data-no-store-string-literals
const editorSelectors = select('core/editor');
return postType === 'post' ? getEditedPostAttribute('date') : undefined;
let _date;
if (editorSelectors) {
const postType = editorSelectors.getEditedPostAttribute('type'); // Dates are used to overwrite year and month used on the calendar.
// This overwrite should only happen for 'post' post types.
// For other post types the calendar always displays the current month.
if (postType === 'post') {
_date = editorSelectors.getEditedPostAttribute('date');
}
}
return _date;
}, []);
return Object(external_wp_element_["createElement"])("div", Object(external_wp_blockEditor_["useBlockProps"])(), Object(external_wp_element_["createElement"])(external_wp_components_["Disabled"], null, Object(external_wp_element_["createElement"])(external_wp_serverSideRender_default.a, {
block: "core/calendar",
@ -18611,7 +18617,7 @@ const loginout_metadata = {
apiVersion: 2,
name: "core/loginout",
title: "Login/out",
category: "design",
category: "theme",
description: "Show login & logout links.",
keywords: ["login", "logout", "form"],
textdomain: "default",
@ -22019,7 +22025,7 @@ function GroupEdit({
const _layout = Object(external_wp_element_["useMemo"])(() => {
if (themeSupportsLayout) {
const alignments = contentSize || wideSize ? ['wide', 'full'] : ['left', 'center', 'right'];
const alignments = contentSize || wideSize ? ['wide', 'full', 'left', 'center', 'right'] : ['left', 'center', 'right'];
return {
type: 'default',
// Find a way to inject this in the support flag code (hooks).
@ -28289,6 +28295,7 @@ const site_logo_settings = {
function SiteTaglineEdit({
attributes,
setAttributes
@ -28297,11 +28304,34 @@ function SiteTaglineEdit({
textAlign
} = attributes;
const [siteTagline, setSiteTagline] = Object(external_wp_coreData_["useEntityProp"])('root', 'site', 'description');
const {
canUserEdit,
readOnlySiteTagLine
} = Object(external_wp_data_["useSelect"])(select => {
const {
canUser,
getEntityRecord
} = select(external_wp_coreData_["store"]);
const siteData = getEntityRecord('root', '__unstableBase');
return {
canUserEdit: canUser('update', 'settings'),
readOnlySiteTagLine: siteData === null || siteData === void 0 ? void 0 : siteData.description
};
}, []);
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
className: classnames_default()({
[`has-text-align-${textAlign}`]: textAlign
[`has-text-align-${textAlign}`]: textAlign,
'wp-block-site-tagline__placeholder': !canUserEdit && !readOnlySiteTagLine
})
});
const siteTaglineContent = canUserEdit ? Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({
allowedFormats: [],
onChange: setSiteTagline,
"aria-label": Object(external_wp_i18n_["__"])('Site tagline text'),
placeholder: Object(external_wp_i18n_["__"])('Write site tagline…'),
tagName: "p",
value: siteTagline
}, blockProps)) : Object(external_wp_element_["createElement"])("p", blockProps, readOnlySiteTagLine || Object(external_wp_i18n_["__"])('Site Tagline placeholder'));
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "block"
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["AlignmentControl"], {
@ -28309,14 +28339,7 @@ function SiteTaglineEdit({
textAlign: newAlign
}),
value: textAlign
})), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], Object(esm_extends["a" /* default */])({
allowedFormats: [],
onChange: setSiteTagline,
"aria-label": Object(external_wp_i18n_["__"])('Site tagline text'),
placeholder: Object(external_wp_i18n_["__"])('Write site tagline…'),
tagName: "p",
value: siteTagline
}, blockProps)));
})), siteTaglineContent);
}
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-tagline/icon.js
@ -28369,7 +28392,8 @@ const site_tagline_metadata = {
__experimentalFontFamily: true,
__experimentalTextTransform: true
}
}
},
editorStyle: "wp-block-site-tagline-editor"
};
@ -28483,6 +28507,7 @@ function LevelControl({
/**
* Internal dependencies
*/
@ -28498,12 +28523,43 @@ function SiteTitleEdit({
textAlign
} = attributes;
const [title, setTitle] = Object(external_wp_coreData_["useEntityProp"])('root', 'site', 'title');
const {
canUserEdit,
readOnlyTitle
} = Object(external_wp_data_["useSelect"])(select => {
const {
canUser,
getEntityRecord
} = select(external_wp_coreData_["store"]);
const siteData = getEntityRecord('root', '__unstableBase');
return {
canUserEdit: canUser('update', 'settings'),
readOnlyTitle: siteData === null || siteData === void 0 ? void 0 : siteData.name
};
}, []);
const TagName = level === 0 ? 'p' : `h${level}`;
const blockProps = Object(external_wp_blockEditor_["useBlockProps"])({
className: classnames_default()({
[`has-text-align-${textAlign}`]: textAlign
[`has-text-align-${textAlign}`]: textAlign,
'wp-block-site-title__placeholder': !canUserEdit && !readOnlyTitle
})
});
const siteTitleContent = canUserEdit ? Object(external_wp_element_["createElement"])(TagName, blockProps, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], {
tagName: "a",
style: {
display: 'inline-block'
},
"aria-label": Object(external_wp_i18n_["__"])('Site title text'),
placeholder: Object(external_wp_i18n_["__"])('Write site title…'),
value: title || readOnlyTitle,
onChange: setTitle,
allowedFormats: [],
disableLineBreaks: true,
__unstableOnSplitAtEnd: () => insertBlocksAfter(Object(external_wp_blocks_["createBlock"])(Object(external_wp_blocks_["getDefaultBlockName"])()))
})) : Object(external_wp_element_["createElement"])(TagName, blockProps, Object(external_wp_element_["createElement"])("a", {
href: "#site-title-pseudo-link",
onClick: event => event.preventDefault()
}, readOnlyTitle || Object(external_wp_i18n_["__"])('Site Title placeholder')));
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "block"
}, Object(external_wp_element_["createElement"])(LevelControl, {
@ -28518,19 +28574,7 @@ function SiteTitleEdit({
textAlign: nextAlign
});
}
})), Object(external_wp_element_["createElement"])(TagName, blockProps, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["RichText"], {
tagName: "a",
style: {
display: 'inline-block'
},
"aria-label": Object(external_wp_i18n_["__"])('Site title text'),
placeholder: Object(external_wp_i18n_["__"])('Write site title…'),
value: title,
onChange: setTitle,
allowedFormats: [],
disableLineBreaks: true,
__unstableOnSplitAtEnd: () => insertBlocksAfter(Object(external_wp_blocks_["createBlock"])(Object(external_wp_blocks_["getDefaultBlockName"])()))
})));
})), siteTitleContent);
}
// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/site-title/index.js
@ -28578,7 +28622,8 @@ const site_title_metadata = {
__experimentalFontStyle: true,
__experimentalFontWeight: true
}
}
},
editorStyle: "wp-block-site-title-editor"
};
const {
@ -29025,8 +29070,8 @@ function QueryInspectorControls({
return Object(external_wp_element_["createElement"])(external_wp_blockEditor_["InspectorControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
title: Object(external_wp_i18n_["__"])('Settings')
}, Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
label: Object(external_wp_i18n_["__"])('Inherit query from URL'),
help: Object(external_wp_i18n_["__"])('Disable the option to customize the query arguments. Leave enabled to inherit the global query depending on the URL.'),
label: Object(external_wp_i18n_["__"])('Inherit query from template'),
help: Object(external_wp_i18n_["__"])('Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.'),
checked: !!inherit,
onChange: value => setQuery({
inherit: !!value
@ -29035,7 +29080,8 @@ function QueryInspectorControls({
options: postTypesSelectOptions,
value: postType,
label: Object(external_wp_i18n_["__"])('Post Type'),
onChange: onPostTypeChange
onChange: onPostTypeChange,
help: Object(external_wp_i18n_["__"])('WordPress contains different types of content and they are divided into collections called "Post Types". By default there are a few different ones such as blog posts and pages, but plugins could add more.')
}), (displayLayout === null || displayLayout === void 0 ? void 0 : displayLayout.type) === 'flex' && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["RangeControl"], {
label: Object(external_wp_i18n_["__"])('Columns'),
value: displayLayout.columns,
@ -29062,7 +29108,8 @@ function QueryInspectorControls({
value: sticky,
onChange: value => setQuery({
sticky: value
})
}),
help: Object(external_wp_i18n_["__"])('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')
})), !inherit && Object(external_wp_element_["createElement"])(external_wp_components_["PanelBody"], {
title: Object(external_wp_i18n_["__"])('Filters')
}, showCategories && (categories === null || categories === void 0 ? void 0 : (_categories$terms = categories.terms) === null || _categories$terms === void 0 ? void 0 : _categories$terms.length) > 0 && Object(external_wp_element_["createElement"])(external_wp_components_["FormTokenField"], {
@ -29207,7 +29254,7 @@ function QueryContent({
const _layout = Object(external_wp_element_["useMemo"])(() => {
if (themeSupportsLayout) {
const alignments = contentSize || wideSize ? ['wide', 'full'] : ['left', 'center', 'right'];
const alignments = contentSize || wideSize ? ['wide', 'full', 'left', 'center', 'right'] : ['left', 'center', 'right'];
return {
type: 'default',
// Find a way to inject this in the support flag code (hooks).
@ -29562,8 +29609,8 @@ const query_metadata = {
apiVersion: 2,
name: "core/query",
title: "Query Loop",
category: "design",
description: "Displays a list of posts as a result of a query.",
category: "theme",
description: "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
textdomain: "default",
attributes: {
queryId: {
@ -29799,7 +29846,7 @@ const post_template_metadata = {
title: "Post Template",
category: "design",
parent: ["core/query"],
description: "Post Template.",
description: "Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",
textdomain: "default",
usesContext: ["queryId", "query", "queryContext", "displayLayout", "templateSlug"],
supports: {
@ -30552,7 +30599,7 @@ const post_title_metadata = {
apiVersion: 2,
name: "core/post-title",
title: "Post Title",
category: "design",
category: "theme",
description: "Displays the title of a post, page, or any other content-type.",
textdomain: "default",
usesContext: ["postId", "postType", "queryId"],
@ -30672,7 +30719,7 @@ function EditableContent({
const _layout = Object(external_wp_element_["useMemo"])(() => {
if (themeSupportsLayout) {
const alignments = contentSize || wideSize ? ['wide', 'full'] : ['left', 'center', 'right'];
const alignments = contentSize || wideSize ? ['wide', 'full', 'left', 'center', 'right'] : ['left', 'center', 'right'];
return {
type: 'default',
// Find a way to inject this in the support flag code (hooks).
@ -30763,7 +30810,7 @@ const post_content_metadata = {
apiVersion: 2,
name: "core/post-content",
title: "Post Content",
category: "design",
category: "theme",
description: "Displays the contents of a post or page.",
textdomain: "default",
usesContext: ["postId", "postType", "queryId"],
@ -30922,7 +30969,7 @@ const post_date_metadata = {
apiVersion: 2,
name: "core/post-date",
title: "Post Date",
category: "design",
category: "theme",
description: "Add the date of this post.",
textdomain: "default",
attributes: {
@ -31107,7 +31154,7 @@ const post_excerpt_metadata = {
apiVersion: 2,
name: "core/post-excerpt",
title: "Post Excerpt",
category: "design",
category: "theme",
description: "Display a post's excerpt.",
textdomain: "default",
attributes: {
@ -31290,7 +31337,7 @@ const post_featured_image_metadata = {
apiVersion: 2,
name: "core/post-featured-image",
title: "Post Featured Image",
category: "design",
category: "theme",
description: "Display a post's featured image.",
textdomain: "default",
attributes: {
@ -33368,13 +33415,6 @@ function Icon({
/* harmony default export */ __webpack_exports__["a"] = (Icon);
/***/ }),
/***/ "jSdM":
/***/ (function(module, exports) {
(function() { module.exports = window["wp"]["editor"]; }());
/***/ }),
/***/ "jZUy":

File diff suppressed because one or more lines are too long

View File

@ -45537,6 +45537,7 @@ function tooltip_Tooltip({
const clearOnUnmount = () => {
delayedSetIsOver.cancel();
document.removeEventListener('mouseup', cancelIsMouseDown);
};
Object(external_wp_element_["useEffect"])(() => clearOnUnmount, []);

File diff suppressed because one or more lines are too long

View File

@ -1593,10 +1593,10 @@ function useClearSelectedBlock(sidebarControl, popoverRef) {
!inspector.expanded()) {
clearSelectedBlock();
}
} // Handle focusing in the same document.
} // Handle mouse down in the same document.
function handleFocus(event) {
function handleMouseDown(event) {
handleClearSelectedBlock(event.target);
} // Handle focusing outside the current document, like to iframes.
@ -1605,10 +1605,10 @@ function useClearSelectedBlock(sidebarControl, popoverRef) {
handleClearSelectedBlock(ownerDocument.activeElement);
}
ownerDocument.addEventListener('focusin', handleFocus);
ownerDocument.addEventListener('mousedown', handleMouseDown);
ownerWindow.addEventListener('blur', handleBlur);
return () => {
ownerDocument.removeEventListener('focusin', handleFocus);
ownerDocument.removeEventListener('mousedown', handleMouseDown);
ownerWindow.removeEventListener('blur', handleBlur);
};
}
@ -2421,7 +2421,7 @@ const {
*/
function initialize(editorName, blockEditorSettings) {
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => !['core/more'].includes(block.name));
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => !['core/more', 'core/freeform'].includes(block.name));
Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
Object(external_wp_widgets_["registerLegacyWidgetBlock"])();

File diff suppressed because one or more lines are too long

View File

@ -13144,7 +13144,7 @@ function VisualEditor({
setIsEditingTemplate
} = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
const desktopCanvasStyles = {
minHeight: '100%',
height: '100%',
width: '100%',
margin: 0,
display: 'flex',
@ -13189,7 +13189,7 @@ function VisualEditor({
}
if (themeSupportsLayout) {
const alignments = contentSize || wideSize ? ['wide', 'full'] : ['left', 'center', 'right'];
const alignments = contentSize || wideSize ? ['wide', 'full', 'left', 'center', 'right'] : ['left', 'center', 'right'];
return {
type: 'default',
// Find a way to inject this in the support flag code (hooks).
@ -14581,9 +14581,9 @@ function DeleteTemplate() {
"aria-label": Object(external_wp_i18n_["__"])('Delete template'),
onClick: () => {
if ( // eslint-disable-next-line no-alert
window.confirm(
/* translators: %1$s: template name */
Object(external_wp_i18n_["sprintf"])('Are you sure you want to delete the %s template? It may be used by other pages or posts.', templateTitle))) {
window.confirm(Object(external_wp_i18n_["sprintf"])(
/* translators: %s: template name */
Object(external_wp_i18n_["__"])('Are you sure you want to delete the %s template? It may be used by other pages or posts.'), templateTitle))) {
clearSelectedBlock();
setIsEditingTemplate(false);
editPost({
@ -16795,12 +16795,14 @@ function PostTemplateActions() {
const [title, setTitle] = Object(external_wp_element_["useState"])('');
const {
template,
supportsTemplateMode
supportsTemplateMode,
defaultTemplate
} = Object(external_wp_data_["useSelect"])(select => {
var _getPostType$viewable, _getPostType;
const {
getCurrentPostType
getCurrentPostType,
getEditorSettings
} = select(external_wp_editor_["store"]);
const {
getPostType
@ -16810,11 +16812,12 @@ function PostTemplateActions() {
} = select(store["a" /* store */]);
const isViewable = (_getPostType$viewable = (_getPostType = getPostType(getCurrentPostType())) === null || _getPostType === void 0 ? void 0 : _getPostType.viewable) !== null && _getPostType$viewable !== void 0 ? _getPostType$viewable : false;
const _supportsTemplateMode = select(external_wp_editor_["store"]).getEditorSettings().supportsTemplateMode && isViewable;
const _supportsTemplateMode = getEditorSettings().supportsTemplateMode && isViewable;
return {
template: _supportsTemplateMode && getEditedPostTemplate(),
supportsTemplateMode: _supportsTemplateMode
supportsTemplateMode: _supportsTemplateMode,
defaultTemplate: getEditorSettings().defaultBlockTemplate
};
}, []);
const {
@ -16825,6 +16828,8 @@ function PostTemplateActions() {
return null;
}
const defaultTitle = Object(external_wp_i18n_["__"])('Custom Template');
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
className: "edit-post-template__actions"
}, !!template && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
@ -16844,19 +16849,27 @@ function PostTemplateActions() {
}, Object(external_wp_element_["createElement"])("form", {
onSubmit: event => {
event.preventDefault();
const defaultTitle = Object(external_wp_i18n_["__"])('Custom Template');
const templateContent = [Object(external_wp_blocks_["createBlock"])('core/site-title'), Object(external_wp_blocks_["createBlock"])('core/site-tagline'), Object(external_wp_blocks_["createBlock"])('core/separator'), Object(external_wp_blocks_["createBlock"])('core/post-title'), Object(external_wp_blocks_["createBlock"])('core/post-content', {
const newTemplateContent = defaultTemplate !== null && defaultTemplate !== void 0 ? defaultTemplate : Object(external_wp_blocks_["serialize"])([Object(external_wp_blocks_["createBlock"])('core/group', {
tagName: 'header',
layout: {
inherit: true
}
})];
}, [Object(external_wp_blocks_["createBlock"])('core/site-title'), Object(external_wp_blocks_["createBlock"])('core/site-tagline')]), Object(external_wp_blocks_["createBlock"])('core/separator'), Object(external_wp_blocks_["createBlock"])('core/group', {
tagName: 'main'
}, [Object(external_wp_blocks_["createBlock"])('core/group', {
layout: {
inherit: true
}
}, [Object(external_wp_blocks_["createBlock"])('core/post-title')]), Object(external_wp_blocks_["createBlock"])('core/post-content', {
layout: {
inherit: true
}
})])]);
__unstableSwitchToTemplateMode({
slug: 'wp-custom-template-' + Object(external_lodash_["kebabCase"])(title !== null && title !== void 0 ? title : defaultTitle),
content: Object(external_wp_blocks_["serialize"])(templateContent),
title: title !== null && title !== void 0 ? title : defaultTitle
slug: 'wp-custom-template-' + Object(external_lodash_["kebabCase"])(title || defaultTitle),
content: newTemplateContent,
title: title || defaultTitle
});
setIsModalOpen(false);
@ -16868,6 +16881,7 @@ function PostTemplateActions() {
label: Object(external_wp_i18n_["__"])('Name'),
value: title,
onChange: setTitle,
placeholder: defaultTitle,
help: Object(external_wp_i18n_["__"])('Describe the purpose of the template, e.g. "Full Width". Custom templates can be applied to any post or page.')
}))), Object(external_wp_element_["createElement"])(external_wp_components_["Flex"], {
className: "edit-post-template__modal-actions",

File diff suppressed because one or more lines are too long

View File

@ -236,7 +236,8 @@ const PREFERENCES_DEFAULTS = {
features: {
fixedToolbar: false,
welcomeGuide: true,
showBlockBreadcrumbs: true
showBlockBreadcrumbs: true,
themeStyles: true
}
};
@ -762,11 +763,20 @@ function* saveWidgetArea(widgetAreaId) {
}
return true;
}); // Get all widgets that have been deleted
}); // Determine which widgets have been deleted. We can tell if a widget is
// deleted and not just moved to a different area by looking to see if
// getWidgetAreaForWidgetId() finds something.
const deletedWidgets = [];
for (const widget of areaWidgets) {
const widgetsNewArea = yield controls_select(STORE_NAME, 'getWidgetAreaForWidgetId', widget.id);
if (!widgetsNewArea) {
deletedWidgets.push(widget);
}
}
const deletedWidgets = areaWidgets.filter(({
id
}) => !widgetsBlocks.some(widgetBlock => Object(external_wp_widgets_["getWidgetIdFromBlock"])(widgetBlock) === id));
const batchMeta = [];
const batchTasks = [];
const sidebarWidgetsIds = [];
@ -1470,15 +1480,19 @@ function WidgetAreaEdit({
scrollAfterOpen: !isDragging
}, ({
opened
}) => // This is required to ensure LegacyWidget blocks are not unmounted when the panel is collapsed.
// Unmounting legacy widgets may have unintended consequences (e.g. TinyMCE not being properly reinitialized)
}) => // This is required to ensure LegacyWidget blocks are not
// unmounted when the panel is collapsed. Unmounting legacy
// widgets may have unintended consequences (e.g. TinyMCE
// not being properly reinitialized)
Object(external_wp_element_["createElement"])(external_wp_components_["__unstableDisclosureContent"], {
visible: opened
}, Object(external_wp_element_["createElement"])("div", {
className: "editor-styles-wrapper"
}, Object(external_wp_element_["createElement"])(external_wp_coreData_["EntityProvider"], {
kind: "root",
type: "postType",
id: `widget-area-${id}`
}, Object(external_wp_element_["createElement"])(WidgetAreaInnerBlocks, null)))));
}, Object(external_wp_element_["createElement"])(WidgetAreaInnerBlocks, null))))));
}
/**
* A React hook to determine if dragging is active.
@ -1703,6 +1717,32 @@ function KeyboardShortcutsRegister() {
character: 'h'
}
});
registerShortcut({
name: 'core/edit-widgets/next-region',
category: 'global',
description: Object(external_wp_i18n_["__"])('Navigate to the next part of the editor.'),
keyCombination: {
modifier: 'ctrl',
character: '`'
},
aliases: [{
modifier: 'access',
character: 'n'
}]
});
registerShortcut({
name: 'core/edit-widgets/previous-region',
category: 'global',
description: Object(external_wp_i18n_["__"])('Navigate to the previous part of the editor.'),
keyCombination: {
modifier: 'ctrlShift',
character: '`'
},
aliases: [{
modifier: 'access',
character: 'p'
}]
});
}, [registerShortcut]);
return null;
}
@ -2501,6 +2541,7 @@ function KeyboardShortcutHelpModal({
/**
* Internal dependencies
*/
@ -2522,6 +2563,7 @@ function MoreMenu() {
Object(external_wp_keyboardShortcuts_["useShortcut"])('core/edit-widgets/keyboard-shortcuts', toggleKeyboardShortcutsModal, {
bindGlobal: true
});
const isLargeViewport = Object(external_wp_compose_["useViewportMatch"])('medium');
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["DropdownMenu"], {
className: "edit-widgets-more-menu",
icon: more_vertical["a" /* default */]
@ -2530,7 +2572,7 @@ function MoreMenu() {
label: Object(external_wp_i18n_["__"])('Options'),
popoverProps: POPOVER_PROPS,
toggleProps: TOGGLE_PROPS
}, () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
}, () => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isLargeViewport && Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
label: Object(external_wp_i18n_["_x"])('View', 'noun')
}, Object(external_wp_element_["createElement"])(FeatureToggle, {
feature: "fixedToolbar",
@ -2567,6 +2609,10 @@ function MoreMenu() {
messageActivated: Object(external_wp_i18n_["__"])('Contain text cursor inside block activated'),
messageDeactivated: Object(external_wp_i18n_["__"])('Contain text cursor inside block deactivated')
}), Object(external_wp_element_["createElement"])(FeatureToggle, {
feature: "themeStyles",
info: Object(external_wp_i18n_["__"])('Make the editor look like your theme.'),
label: Object(external_wp_i18n_["__"])('Use theme styles')
}), isLargeViewport && Object(external_wp_element_["createElement"])(FeatureToggle, {
feature: "showBlockBreadcrumbs",
label: Object(external_wp_i18n_["__"])('Display block breadcrumbs'),
info: Object(external_wp_i18n_["__"])('Shows block breadcrumbs at the bottom of the editor.'),
@ -2736,24 +2782,33 @@ function Notices() {
* WordPress dependencies
*/
/**
* Internal dependencies
*/
function WidgetAreasBlockEditorContent({
blockEditorSettings
}) {
const {
hasThemeStyles
} = Object(external_wp_data_["useSelect"])(select => ({
hasThemeStyles: select(store).__unstableIsFeatureActive('themeStyles')
}));
const styles = Object(external_wp_element_["useMemo"])(() => {
return hasThemeStyles ? blockEditorSettings.styles : [];
}, [blockEditorSettings, hasThemeStyles]);
return Object(external_wp_element_["createElement"])("div", {
className: "edit-widgets-block-editor"
}, Object(external_wp_element_["createElement"])(components_notices, null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], null, Object(external_wp_element_["createElement"])(keyboard_shortcuts, null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockEditorKeyboardShortcuts"], null), Object(external_wp_element_["createElement"])("div", {
className: "editor-styles-wrapper"
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__unstableEditorStyles"], {
styles: blockEditorSettings.styles
}, Object(external_wp_element_["createElement"])(components_notices, null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockTools"], null, Object(external_wp_element_["createElement"])(keyboard_shortcuts, null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockEditorKeyboardShortcuts"], null), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["__unstableEditorStyles"], {
styles: styles
}), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockSelectionClearer"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["WritingFlow"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["ObserveTyping"], null, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockList"], {
className: "edit-widgets-main-block-list"
})))))));
}))))));
}
// CONCATENATED MODULE: ./node_modules/@wordpress/edit-widgets/build-module/hooks/use-widget-library-insertion-point.js
@ -2822,6 +2877,7 @@ const useWidgetLibraryInsertionPoint = () => {
/**
* Internal dependencies
*/
@ -2860,11 +2916,15 @@ function Interface({
const {
hasBlockBreadCrumbsEnabled,
hasSidebarEnabled,
isInserterOpened
isInserterOpened,
previousShortcut,
nextShortcut
} = Object(external_wp_data_["useSelect"])(select => ({
hasSidebarEnabled: !!select(build_module["g" /* store */]).getActiveComplementaryArea(store.name),
isInserterOpened: !!select(store).isInserterOpened(),
hasBlockBreadCrumbsEnabled: select(store).__unstableIsFeatureActive('showBlockBreadcrumbs')
hasBlockBreadCrumbsEnabled: select(store).__unstableIsFeatureActive('showBlockBreadcrumbs'),
previousShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutRawKeyCombinations('core/edit-widgets/previous-region'),
nextShortcut: select(external_wp_keyboardShortcuts_["store"]).getAllShortcutRawKeyCombinations('core/edit-widgets/next-region')
}), []); // Inserter and Sidebars are mutually exclusive
Object(external_wp_element_["useEffect"])(() => {
@ -2910,7 +2970,11 @@ function Interface({
className: "edit-widgets-layout__footer"
}, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockBreadcrumb"], {
rootLabelText: Object(external_wp_i18n_["__"])('Widgets')
}))
})),
shortcuts: {
previous: previousShortcut,
next: nextShortcut
}
});
}
@ -3138,7 +3202,7 @@ function Layout({
*/
function initialize(id, settings) {
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => !['core/more'].includes(block.name));
const coreBlocks = Object(external_wp_blockLibrary_["__experimentalGetCoreBlocks"])().filter(block => !['core/more', 'core/freeform'].includes(block.name));
Object(external_wp_blockLibrary_["registerCoreBlocks"])(coreBlocks);
Object(external_wp_widgets_["registerLegacyWidgetBlock"])();

File diff suppressed because one or more lines are too long

View File

@ -164,21 +164,6 @@ const brush = Object(external_wp_element_["createElement"])(external_wp_primitiv
}));
/* harmony default export */ var library_brush = (brush);
// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/update.js
/**
* WordPress dependencies
*/
const update = Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "-2 -2 24 24"
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
d: "M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"
}));
/* harmony default export */ var library_update = (update);
// EXTERNAL MODULE: external ["wp","i18n"]
var external_wp_i18n_ = __webpack_require__("l3Sj");
@ -1032,17 +1017,12 @@ function NotEmpty({
const {
widgetType,
hasResolvedWidgetType,
isWidgetTypeHidden,
isNavigationMode
} = Object(external_wp_data_["useSelect"])(select => {
var _select$getSettings$w, _select$getSettings;
const widgetTypeId = id !== null && id !== void 0 ? id : idBase;
const hiddenIds = (_select$getSettings$w = (_select$getSettings = select(external_wp_blockEditor_["store"]).getSettings()) === null || _select$getSettings === void 0 ? void 0 : _select$getSettings.widgetTypesToHideFromLegacyWidgetBlock) !== null && _select$getSettings$w !== void 0 ? _select$getSettings$w : [];
return {
widgetType: select(external_wp_coreData_["store"]).getWidgetType(widgetTypeId),
hasResolvedWidgetType: select(external_wp_coreData_["store"]).hasFinishedResolution('getWidgetType', [widgetTypeId]),
isWidgetTypeHidden: hiddenIds.includes(widgetTypeId),
isNavigationMode: select(external_wp_blockEditor_["store"]).isNavigationMode()
};
}, [id, idBase]);
@ -1066,17 +1046,7 @@ function NotEmpty({
}
const mode = isNavigationMode || !isSelected ? 'preview' : 'edit';
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, !isWidgetTypeHidden && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "block"
}, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarButton"], {
label: Object(external_wp_i18n_["__"])('Change widget'),
icon: library_update,
onClick: () => setAttributes({
id: null,
idBase: null,
instance: null
})
})), idBase === 'text' && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, idBase === 'text' && Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], {
group: "other"
}, Object(external_wp_element_["createElement"])(ConvertToBlocksButton, {
clientId: clientId,
@ -1115,7 +1085,7 @@ const legacyWidgetTransforms = [{
widget: 'search'
}, {
block: 'core/html',
widget: 'html',
widget: 'custom_html',
transform: ({
content
}) => ({

File diff suppressed because one or more lines are too long

View File

@ -173,5 +173,14 @@ function the_block_template_skip_link() {
<?php
}
// By default, themes support block templates.
add_theme_support( 'block-templates' );
/**
* Enable the block templates (editor mode) for themes with theme.json by default.
*
* @access private
* @since 5.8.0
*/
function wp_enable_block_templates() {
if ( WP_Theme_JSON_Resolver::theme_has_support() ) {
add_theme_support( 'block-templates' );
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-beta2-51198';
$wp_version = '5.8-beta2-51199';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.