mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Editor: Update block editor packages to the latest patch releases.
This updates the block editor related npm dependencies to their latest patch versions ahead of WordPress 6.1.1.
For a full list of what’s included in this update, see 432ed388f8...6566f5fe9e
.
Props aaronrobertshaw, ntsekouras, bernhard-reiter, ramonopoly, isabel_brison, andrewserong, get_dave, scruffian, andraganescu, talldanwp, mciampini, noisysocks, cbravobernal, bph, tyxla, ellatrix, czapla, mcsf, ironprogrammer, wildworks, peterwilsoncc, mamaduka, mikachan, spacedmonkey, cybr, youknowriad, alexstine, aristath, kevin940726, ndiego, 0mirka00, poena, joen, ryankienstra, desrosj, vtad, nithins53, audrasjb, kacper3355, sabernhardt.
Fixes #57038, #56818, #56955, #56923.
Built from https://develop.svn.wordpress.org/trunk@54811
git-svn-id: http://core.svn.wordpress.org/trunk@54363 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb68614e2e
commit
b497a707b7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -29,11 +29,18 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
|
||||
$attr['alt'] = $post_title;
|
||||
}
|
||||
|
||||
if ( ! empty( $attributes['height'] ) ) {
|
||||
$extra_styles = "height:{$attributes['height']};";
|
||||
if ( ! empty( $attributes['scale'] ) ) {
|
||||
$extra_styles .= "object-fit:{$attributes['scale']};";
|
||||
}
|
||||
$attr['style'] = empty( $attr['style'] ) ? $extra_styles : $attr['style'] . $extra_styles;
|
||||
}
|
||||
|
||||
$featured_image = get_the_post_thumbnail( $post_ID, $size_slug, $attr );
|
||||
if ( ! $featured_image ) {
|
||||
return '';
|
||||
}
|
||||
$wrapper_attributes = get_block_wrapper_attributes();
|
||||
if ( $is_link ) {
|
||||
$link_target = $attributes['linkTarget'];
|
||||
$rel = ! empty( $attributes['rel'] ) ? 'rel="' . esc_attr( $attributes['rel'] ) . '"' : '';
|
||||
@ -49,23 +56,9 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
|
||||
$featured_image = $featured_image . $overlay_markup;
|
||||
}
|
||||
|
||||
$has_width = ! empty( $attributes['width'] );
|
||||
$has_height = ! empty( $attributes['height'] );
|
||||
if ( ! $has_height && ! $has_width ) {
|
||||
return "<figure {$wrapper_attributes}>{$featured_image}</figure>";
|
||||
}
|
||||
|
||||
if ( $has_width ) {
|
||||
$wrapper_attributes = get_block_wrapper_attributes( array( 'style' => "width:{$attributes['width']};" ) );
|
||||
}
|
||||
|
||||
if ( $has_height ) {
|
||||
$image_styles = "height:{$attributes['height']};";
|
||||
if ( ! empty( $attributes['scale'] ) ) {
|
||||
$image_styles .= "object-fit:{$attributes['scale']};";
|
||||
}
|
||||
$featured_image = str_replace( '<img ', '<img style="' . esc_attr( safecss_filter_attr( $image_styles ) ) . '" ', $featured_image );
|
||||
}
|
||||
$wrapper_attributes = empty( $attributes['width'] )
|
||||
? get_block_wrapper_attributes()
|
||||
: get_block_wrapper_attributes( array( 'style' => "width:{$attributes['width']};" ) );
|
||||
|
||||
return "<figure {$wrapper_attributes}>{$featured_image}</figure>";
|
||||
}
|
||||
|
@ -98,6 +98,7 @@
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table td.is-selected,
|
||||
.wp-block-table th.is-selected {
|
||||
|
2
wp-includes/blocks/table/editor-rtl.min.css
vendored
2
wp-includes/blocks/table/editor-rtl.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-table table.has-individual-borders>*,.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}
|
||||
.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-table table.has-individual-borders>*,.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}
|
@ -98,6 +98,7 @@
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table td.is-selected,
|
||||
.wp-block-table th.is-selected {
|
||||
|
2
wp-includes/blocks/table/editor.min.css
vendored
2
wp-includes/blocks/table/editor.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-table table.has-individual-borders>*,.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}
|
||||
.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-table table.has-individual-borders>*,.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}
|
@ -81,6 +81,11 @@
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table .has-fixed-layout {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
2
wp-includes/blocks/table/style-rtl.min.css
vendored
2
wp-includes/blocks/table/style-rtl.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color>*,.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr{border-color:inherit}.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th,.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color]>*,.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th,.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color]>*,.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr{border-right-color:inherit}.wp-block-table table[style*=border-style]>*,.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr{border-style:inherit}.wp-block-table table[style*=border-width]>*,.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr{border-width:inherit;border-style:inherit}
|
||||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color>*,.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr{border-color:inherit}.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th,.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color]>*,.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th,.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color]>*,.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr{border-right-color:inherit}.wp-block-table table[style*=border-style]>*,.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr{border-style:inherit}.wp-block-table table[style*=border-width]>*,.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr{border-width:inherit;border-style:inherit}
|
@ -81,6 +81,11 @@
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table .has-fixed-layout {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
2
wp-includes/blocks/table/style.min.css
vendored
2
wp-includes/blocks/table/style.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color>*,.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr{border-color:inherit}.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th,.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color]>*,.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th,.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color]>*,.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr{border-left-color:inherit}.wp-block-table table[style*=border-style]>*,.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr{border-style:inherit}.wp-block-table table[style*=border-width]>*,.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr{border-width:inherit;border-style:inherit}
|
||||
.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table .has-border-color>*,.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr{border-color:inherit}.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th,.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color]>*,.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th,.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color]>*,.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr{border-left-color:inherit}.wp-block-table table[style*=border-style]>*,.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr{border-style:inherit}.wp-block-table table[style*=border-width]>*,.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr{border-width:inherit;border-style:inherit}
|
@ -85,8 +85,6 @@
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
padding: 0.5em;
|
||||
border: 1px solid;
|
||||
word-break: normal;
|
||||
}
|
||||
.wp-block-table figcaption {
|
||||
|
2
wp-includes/blocks/table/theme-rtl.min.css
vendored
2
wp-includes/blocks/table/theme-rtl.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-table{margin:"0 0" 1em 0}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}
|
||||
.wp-block-table{margin:"0 0" 1em 0}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}
|
@ -85,8 +85,6 @@
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
padding: 0.5em;
|
||||
border: 1px solid;
|
||||
word-break: normal;
|
||||
}
|
||||
.wp-block-table figcaption {
|
||||
|
2
wp-includes/blocks/table/theme.min.css
vendored
2
wp-includes/blocks/table/theme.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-table{margin:"0 0 1em 0"}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}
|
||||
.wp-block-table{margin:"0 0 1em 0"}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}
|
@ -193,6 +193,11 @@ function build_template_part_block_instance_variations() {
|
||||
if ( wp_installing() ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
if ( ! current_theme_supports( 'block-templates' ) && ! current_theme_supports( 'block-template-parts' ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$variations = array();
|
||||
$template_parts = get_block_templates(
|
||||
array(
|
||||
|
13
wp-includes/css/dist/block-editor/style-rtl.css
vendored
13
wp-includes/css/dist/block-editor/style-rtl.css
vendored
@ -531,6 +531,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
.block-editor-block-list__block-side-inserter-popover .components-popover__content > div {
|
||||
pointer-events: none;
|
||||
}
|
||||
.block-editor-block-list__block-side-inserter-popover .components-popover__content > div > * {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,
|
||||
.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon,
|
||||
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon {
|
||||
background: #1e1e1e;
|
||||
@ -540,6 +548,7 @@
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,
|
||||
.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover,
|
||||
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover {
|
||||
color: #fff;
|
||||
@ -1119,7 +1128,7 @@
|
||||
box-shadow: none;
|
||||
overflow-y: visible;
|
||||
}
|
||||
.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween) .components-popover__content * {
|
||||
.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween, .block-editor-block-list__block-side-inserter-popover) .components-popover__content * {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
@ -1851,12 +1860,14 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,
|
||||
.block-editor-default-block-appender .block-editor-inserter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,
|
||||
.block-editor-default-block-appender .block-editor-inserter:disabled {
|
||||
display: none;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
13
wp-includes/css/dist/block-editor/style.css
vendored
13
wp-includes/css/dist/block-editor/style.css
vendored
@ -531,6 +531,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
.block-editor-block-list__block-side-inserter-popover .components-popover__content > div {
|
||||
pointer-events: none;
|
||||
}
|
||||
.block-editor-block-list__block-side-inserter-popover .components-popover__content > div > * {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,
|
||||
.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon,
|
||||
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon {
|
||||
background: #1e1e1e;
|
||||
@ -540,6 +548,7 @@
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,
|
||||
.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover,
|
||||
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover {
|
||||
color: #fff;
|
||||
@ -1119,7 +1128,7 @@
|
||||
box-shadow: none;
|
||||
overflow-y: visible;
|
||||
}
|
||||
.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween) .components-popover__content * {
|
||||
.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween, .block-editor-block-list__block-side-inserter-popover) .components-popover__content * {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
@ -1851,12 +1860,14 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,
|
||||
.block-editor-default-block-appender .block-editor-inserter {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,
|
||||
.block-editor-default-block-appender .block-editor-inserter:disabled {
|
||||
display: none;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -2437,6 +2437,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table td.is-selected,
|
||||
.wp-block-table th.is-selected {
|
||||
|
File diff suppressed because one or more lines are too long
@ -2445,6 +2445,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table td.is-selected,
|
||||
.wp-block-table th.is-selected {
|
||||
|
File diff suppressed because one or more lines are too long
@ -3206,6 +3206,11 @@ ul.wp-block-rss.is-grid li {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table .has-fixed-layout {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
File diff suppressed because one or more lines are too long
5
wp-includes/css/dist/block-library/style.css
vendored
5
wp-includes/css/dist/block-library/style.css
vendored
@ -3239,6 +3239,11 @@ ul.wp-block-rss.is-grid li {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
border: 1px solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.wp-block-table .has-fixed-layout {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
File diff suppressed because one or more lines are too long
@ -217,8 +217,6 @@
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
padding: 0.5em;
|
||||
border: 1px solid;
|
||||
word-break: normal;
|
||||
}
|
||||
.wp-block-table figcaption {
|
||||
|
@ -1 +1 @@
|
||||
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:hsla(0,0%,100%,.65)}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:hsla(0,0%,100%,.65)}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:hsla(0,0%,100%,.65)}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:hsla(0,0%,100%,.65)}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-top:4px solid;border-bottom:4px solid;margin-bottom:1.75em;color:currentColor}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:currentColor;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-quote{border-right:.25em solid;margin:0 0 1.75em;padding-right:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-right:none;border-left:.25em solid;padding-right:0;padding-left:1em}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-right:auto;margin-left:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:"0 0" 1em 0}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{padding:1.25em 2.375em;margin-top:0;margin-bottom:0}
|
||||
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:hsla(0,0%,100%,.65)}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:hsla(0,0%,100%,.65)}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:hsla(0,0%,100%,.65)}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:hsla(0,0%,100%,.65)}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-top:4px solid;border-bottom:4px solid;margin-bottom:1.75em;color:currentColor}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:currentColor;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-quote{border-right:.25em solid;margin:0 0 1.75em;padding-right:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-right:none;border-left:.25em solid;padding-right:0;padding-left:1em}.wp-block-quote.has-text-align-center{border:none;padding-right:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-right:auto;margin-left:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:"0 0" 1em 0}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{padding:1.25em 2.375em;margin-top:0;margin-bottom:0}
|
2
wp-includes/css/dist/block-library/theme.css
vendored
2
wp-includes/css/dist/block-library/theme.css
vendored
@ -217,8 +217,6 @@
|
||||
}
|
||||
.wp-block-table td,
|
||||
.wp-block-table th {
|
||||
padding: 0.5em;
|
||||
border: 1px solid;
|
||||
word-break: normal;
|
||||
}
|
||||
.wp-block-table figcaption {
|
||||
|
@ -1 +1 @@
|
||||
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:hsla(0,0%,100%,.65)}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:hsla(0,0%,100%,.65)}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:hsla(0,0%,100%,.65)}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:hsla(0,0%,100%,.65)}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-top:4px solid;border-bottom:4px solid;margin-bottom:1.75em;color:currentColor}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:currentColor;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-quote{border-left:.25em solid;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-left:none;border-right:.25em solid;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:"0 0 1em 0"}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{padding:.5em;border:1px solid;word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{padding:1.25em 2.375em;margin-top:0;margin-bottom:0}
|
||||
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:hsla(0,0%,100%,.65)}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:hsla(0,0%,100%,.65)}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:hsla(0,0%,100%,.65)}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:hsla(0,0%,100%,.65)}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-top:4px solid;border-bottom:4px solid;margin-bottom:1.75em;color:currentColor}.wp-block-pullquote__citation,.wp-block-pullquote cite,.wp-block-pullquote footer{color:currentColor;text-transform:uppercase;font-size:.8125em;font-style:normal}.wp-block-quote{border-left:.25em solid;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;position:relative;font-style:normal}.wp-block-quote.has-text-align-right{border-left:none;border-right:.25em solid;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:"0 0 1em 0"}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:hsla(0,0%,100%,.65)}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{padding:1.25em 2.375em;margin-top:0;margin-bottom:0}
|
113
wp-includes/js/dist/block-editor.js
vendored
113
wp-includes/js/dist/block-editor.js
vendored
@ -33072,6 +33072,7 @@ function useBlockToolbarPopoverProps(_ref) {
|
||||
|
||||
|
||||
|
||||
|
||||
function selected_block_popover_selector(select) {
|
||||
const {
|
||||
__unstableGetEditorMode,
|
||||
@ -33147,11 +33148,29 @@ function SelectedBlockPopover(_ref) {
|
||||
clientId
|
||||
});
|
||||
|
||||
if (!shouldShowBreadcrumb && !shouldShowContextualToolbar) {
|
||||
if (!shouldShowBreadcrumb && !shouldShowContextualToolbar && !showEmptyBlockSideInserter) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (0,external_wp_element_namespaceObject.createElement)(block_popover, _extends({
|
||||
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, showEmptyBlockSideInserter && (0,external_wp_element_namespaceObject.createElement)(block_popover, _extends({
|
||||
clientId: capturingClientId || clientId,
|
||||
__unstableCoverTarget: true,
|
||||
bottomClientId: lastClientId,
|
||||
className: classnames_default()('block-editor-block-list__block-side-inserter-popover', {
|
||||
'is-insertion-point-visible': isInsertionPointVisible
|
||||
}),
|
||||
__unstablePopoverSlot: __unstablePopoverSlot,
|
||||
__unstableContentRef: __unstableContentRef,
|
||||
resize: false,
|
||||
shift: false
|
||||
}, popoverProps), (0,external_wp_element_namespaceObject.createElement)("div", {
|
||||
className: "block-editor-block-list__empty-block-inserter"
|
||||
}, (0,external_wp_element_namespaceObject.createElement)(inserter, {
|
||||
position: "bottom right",
|
||||
rootClientId: rootClientId,
|
||||
clientId: clientId,
|
||||
__experimentalIsQuick: true
|
||||
}))), (shouldShowBreadcrumb || shouldShowContextualToolbar) && (0,external_wp_element_namespaceObject.createElement)(block_popover, _extends({
|
||||
clientId: capturingClientId || clientId,
|
||||
bottomClientId: lastClientId,
|
||||
className: classnames_default()('block-editor-block-list__block-popover', {
|
||||
@ -33174,7 +33193,7 @@ function SelectedBlockPopover(_ref) {
|
||||
}), shouldShowBreadcrumb && (0,external_wp_element_namespaceObject.createElement)(block_selection_button, {
|
||||
clientId: clientId,
|
||||
rootClientId: rootClientId
|
||||
}));
|
||||
})));
|
||||
}
|
||||
|
||||
function wrapperSelector(select) {
|
||||
@ -34156,6 +34175,9 @@ const ForwardedInnerBlocks = (0,external_wp_element_namespaceObject.forwardRef)(
|
||||
function useInnerBlocksProps() {
|
||||
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
const {
|
||||
__unstableDisableDropZone
|
||||
} = options;
|
||||
const {
|
||||
clientId
|
||||
} = useBlockEditContext();
|
||||
@ -34181,9 +34203,10 @@ function useInnerBlocksProps() {
|
||||
hasOverlay: blockName !== 'core/template' && !isBlockSelected(clientId) && !hasSelectedInnerBlock(clientId, true) && enableClickThrough
|
||||
};
|
||||
}, [clientId, isSmallScreen]);
|
||||
const ref = (0,external_wp_compose_namespaceObject.useMergeRefs)([props.ref, useBlockDropZone({
|
||||
const blockDropZoneRef = useBlockDropZone({
|
||||
rootClientId: clientId
|
||||
})]);
|
||||
});
|
||||
const ref = (0,external_wp_compose_namespaceObject.useMergeRefs)([props.ref, __unstableDisableDropZone ? null : blockDropZoneRef]);
|
||||
const innerBlocksProps = {
|
||||
__experimentalCaptureToolbars,
|
||||
...options
|
||||
@ -37638,7 +37661,7 @@ const DEFAULT_MAXIMUM_VIEWPORT_WIDTH = '1600px';
|
||||
const DEFAULT_MINIMUM_VIEWPORT_WIDTH = '768px';
|
||||
const DEFAULT_SCALE_FACTOR = 1;
|
||||
const DEFAULT_MINIMUM_FONT_SIZE_FACTOR = 0.75;
|
||||
const DEFAULT_MAXIMUM_FONT_SIZE_FACTOR = 1.5;
|
||||
const DEFAULT_MINIMUM_FONT_SIZE_LIMIT = '14px';
|
||||
/**
|
||||
* Computes a fluid font-size value that uses clamp(). A minimum and maxinmum
|
||||
* font size OR a single font size can be specified.
|
||||
@ -37668,7 +37691,6 @@ const DEFAULT_MAXIMUM_FONT_SIZE_FACTOR = 1.5;
|
||||
* @param {?string} args.minimumFontSize Minimum font size for any clamp() calculation. Optional.
|
||||
* @param {?number} args.scaleFactor A scale factor to determine how fast a font scales within boundaries. Optional.
|
||||
* @param {?number} args.minimumFontSizeFactor How much to scale defaultFontSize by to derive minimumFontSize. Optional.
|
||||
* @param {?number} args.maximumFontSizeFactor How much to scale defaultFontSize by to derive maximumFontSize. Optional.
|
||||
*
|
||||
* @return {string|null} A font-size value using clamp().
|
||||
*/
|
||||
@ -37682,48 +37704,71 @@ function getComputedFluidTypographyValue(_ref) {
|
||||
maximumViewPortWidth = DEFAULT_MAXIMUM_VIEWPORT_WIDTH,
|
||||
scaleFactor = DEFAULT_SCALE_FACTOR,
|
||||
minimumFontSizeFactor = DEFAULT_MINIMUM_FONT_SIZE_FACTOR,
|
||||
maximumFontSizeFactor = DEFAULT_MAXIMUM_FONT_SIZE_FACTOR
|
||||
minimumFontSizeLimit = DEFAULT_MINIMUM_FONT_SIZE_LIMIT
|
||||
} = _ref;
|
||||
|
||||
// Calculate missing minimumFontSize and maximumFontSize from
|
||||
// defaultFontSize if provided.
|
||||
if (fontSize && (!minimumFontSize || !maximumFontSize)) {
|
||||
// Parse default font size.
|
||||
/*
|
||||
* Calculates missing minimumFontSize and maximumFontSize from
|
||||
* defaultFontSize if provided.
|
||||
*/
|
||||
if (fontSize) {
|
||||
// Parses default font size.
|
||||
const fontSizeParsed = getTypographyValueAndUnit(fontSize); // Protect against invalid units.
|
||||
|
||||
if (!(fontSizeParsed !== null && fontSizeParsed !== void 0 && fontSizeParsed.unit)) {
|
||||
return null;
|
||||
} // If no minimumFontSize is provided, derive using min scale factor.
|
||||
} // Parses the minimum font size limit, so we can perform checks using it.
|
||||
|
||||
|
||||
if (!minimumFontSize) {
|
||||
minimumFontSize = fontSizeParsed.value * minimumFontSizeFactor + fontSizeParsed.unit;
|
||||
} // If no maximumFontSize is provided, derive using max scale factor.
|
||||
const minimumFontSizeLimitParsed = getTypographyValueAndUnit(minimumFontSizeLimit, {
|
||||
coerceTo: fontSizeParsed.unit
|
||||
}); // Don't enforce minimum font size if a font size has explicitly set a min and max value.
|
||||
|
||||
if (!!(minimumFontSizeLimitParsed !== null && minimumFontSizeLimitParsed !== void 0 && minimumFontSizeLimitParsed.value) && !minimumFontSize && !maximumFontSize) {
|
||||
/*
|
||||
* If a minimum size was not passed to this function
|
||||
* and the user-defined font size is lower than $minimum_font_size_limit,
|
||||
* do not calculate a fluid value.
|
||||
*/
|
||||
if ((fontSizeParsed === null || fontSizeParsed === void 0 ? void 0 : fontSizeParsed.value) <= (minimumFontSizeLimitParsed === null || minimumFontSizeLimitParsed === void 0 ? void 0 : minimumFontSizeLimitParsed.value)) {
|
||||
return null;
|
||||
}
|
||||
} // If no fluid max font size is available use the incoming value.
|
||||
|
||||
|
||||
if (!maximumFontSize) {
|
||||
maximumFontSize = fontSizeParsed.value * maximumFontSizeFactor + fontSizeParsed.unit;
|
||||
maximumFontSize = `${fontSizeParsed.value}${fontSizeParsed.unit}`;
|
||||
}
|
||||
} // Return early if one of the provided inputs is not provided.
|
||||
/*
|
||||
* If no minimumFontSize is provided, create one using
|
||||
* the given font size multiplied by the min font size scale factor.
|
||||
*/
|
||||
|
||||
|
||||
if (!minimumFontSize || !maximumFontSize) {
|
||||
return null;
|
||||
if (!minimumFontSize) {
|
||||
const calculatedMinimumFontSize = roundToPrecision(fontSizeParsed.value * minimumFontSizeFactor, 3); // Only use calculated min font size if it's > $minimum_font_size_limit value.
|
||||
|
||||
if (!!(minimumFontSizeLimitParsed !== null && minimumFontSizeLimitParsed !== void 0 && minimumFontSizeLimitParsed.value) && calculatedMinimumFontSize < (minimumFontSizeLimitParsed === null || minimumFontSizeLimitParsed === void 0 ? void 0 : minimumFontSizeLimitParsed.value)) {
|
||||
minimumFontSize = `${minimumFontSizeLimitParsed.value}${minimumFontSizeLimitParsed.unit}`;
|
||||
} else {
|
||||
minimumFontSize = `${calculatedMinimumFontSize}${fontSizeParsed.unit}`;
|
||||
}
|
||||
}
|
||||
} // Grab the minimum font size and normalize it in order to use the value for calculations.
|
||||
|
||||
|
||||
const minimumFontSizeParsed = getTypographyValueAndUnit(minimumFontSize); // We get a 'preferred' unit to keep units consistent when calculating,
|
||||
// otherwise the result will not be accurate.
|
||||
|
||||
const fontSizeUnit = (minimumFontSizeParsed === null || minimumFontSizeParsed === void 0 ? void 0 : minimumFontSizeParsed.unit) || 'rem'; // Grab the maximum font size and normalize it in order to use the value for calculations.
|
||||
const fontSizeUnit = (minimumFontSizeParsed === null || minimumFontSizeParsed === void 0 ? void 0 : minimumFontSizeParsed.unit) || 'rem'; // Grabs the maximum font size and normalize it in order to use the value for calculations.
|
||||
|
||||
const maximumFontSizeParsed = getTypographyValueAndUnit(maximumFontSize, {
|
||||
coerceTo: fontSizeUnit
|
||||
}); // Protect against unsupported units.
|
||||
}); // Checks for mandatory min and max sizes, and protects against unsupported units.
|
||||
|
||||
if (!minimumFontSizeParsed || !maximumFontSizeParsed) {
|
||||
return null;
|
||||
} // Use rem for accessible fluid target font scaling.
|
||||
} // Uses rem for accessible fluid target font scaling.
|
||||
|
||||
|
||||
const minimumFontSizeRem = getTypographyValueAndUnit(minimumFontSize, {
|
||||
@ -37744,10 +37789,9 @@ function getComputedFluidTypographyValue(_ref) {
|
||||
|
||||
|
||||
const minViewPortWidthOffsetValue = roundToPrecision(minumumViewPortWidthParsed.value / 100, 3);
|
||||
const viewPortWidthOffset = minViewPortWidthOffsetValue + fontSizeUnit;
|
||||
let linearFactor = 100 * ((maximumFontSizeParsed.value - minimumFontSizeParsed.value) / (maximumViewPortWidthParsed.value - minumumViewPortWidthParsed.value));
|
||||
linearFactor = roundToPrecision(linearFactor, 3) || 1;
|
||||
const linearFactorScaled = linearFactor * scaleFactor;
|
||||
const viewPortWidthOffset = roundToPrecision(minViewPortWidthOffsetValue, 3) + fontSizeUnit;
|
||||
const linearFactor = 100 * ((maximumFontSizeParsed.value - minimumFontSizeParsed.value) / (maximumViewPortWidthParsed.value - minumumViewPortWidthParsed.value));
|
||||
const linearFactorScaled = roundToPrecision((linearFactor || 1) * scaleFactor, 3);
|
||||
const fluidTargetFontSize = `${minimumFontSizeRem.value}${minimumFontSizeRem.unit} + ((1vw - ${viewPortWidthOffset}) * ${linearFactorScaled})`;
|
||||
return `clamp(${minimumFontSize}, ${fluidTargetFontSize}, ${maximumFontSize})`;
|
||||
}
|
||||
@ -37804,9 +37848,19 @@ function getTypographyValueAndUnit(rawValue) {
|
||||
returnValue = returnValue / rootSizeValue;
|
||||
unit = coerceTo;
|
||||
}
|
||||
/*
|
||||
* No calculation is required if swapping between em and rem yet,
|
||||
* since we assume a root size value. Later we might like to differentiate between
|
||||
* :root font size (rem) and parent element font size (em) relativity.
|
||||
*/
|
||||
|
||||
|
||||
if (('em' === coerceTo || 'rem' === coerceTo) && ('em' === unit || 'rem' === unit)) {
|
||||
unit = coerceTo;
|
||||
}
|
||||
|
||||
return {
|
||||
value: returnValue,
|
||||
value: roundToPrecision(returnValue, 3),
|
||||
unit
|
||||
};
|
||||
}
|
||||
@ -37822,7 +37876,8 @@ function getTypographyValueAndUnit(rawValue) {
|
||||
|
||||
function roundToPrecision(value) {
|
||||
let digits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
||||
return Number.isFinite(value) ? parseFloat(value.toFixed(digits)) : undefined;
|
||||
const base = Math.pow(10, digits);
|
||||
return Number.isFinite(value) ? parseFloat(Math.round(value * base) / base) : undefined;
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/font-size.js
|
||||
|
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
58
wp-includes/js/dist/block-library.js
vendored
58
wp-includes/js/dist/block-library.js
vendored
@ -13394,7 +13394,9 @@ function CoverEdit(_ref) {
|
||||
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)({
|
||||
className: 'wp-block-cover__inner-container'
|
||||
}, {
|
||||
template: innerBlocksTemplate,
|
||||
// Avoid template sync when the `templateLock` value is `all` or `contentOnly`.
|
||||
// See: https://github.com/WordPress/gutenberg/pull/45632
|
||||
template: !hasInnerBlocks ? innerBlocksTemplate : undefined,
|
||||
templateInsertUpdatesSelection: true,
|
||||
allowedBlocks,
|
||||
templateLock
|
||||
@ -25058,14 +25060,10 @@ function migrateToListV2(attributes) {
|
||||
list.setAttribute('type', type);
|
||||
}
|
||||
|
||||
const listBlock = createListBlockFromDOMElement(list);
|
||||
const {
|
||||
values: omittedValues,
|
||||
...restAttributes
|
||||
} = attributes;
|
||||
return [{ ...restAttributes,
|
||||
...listBlock.attributes
|
||||
}, listBlock.innerBlocks];
|
||||
const [listBlock] = (0,external_wp_blocks_namespaceObject.rawHandler)({
|
||||
HTML: list.outerHTML
|
||||
});
|
||||
return [listBlock.attributes, listBlock.innerBlocks];
|
||||
}
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/list/deprecated.js
|
||||
@ -26639,7 +26637,8 @@ function ListItemEdit(_ref2) {
|
||||
ref: useCopy(clientId)
|
||||
});
|
||||
const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, {
|
||||
allowedBlocks: ['core/list']
|
||||
allowedBlocks: ['core/list'],
|
||||
__unstableDisableDropZone: true
|
||||
});
|
||||
const useEnterRef = useEnter({
|
||||
content,
|
||||
@ -34569,6 +34568,34 @@ function PageListEdit(_ref) {
|
||||
style: { ...((_context$style = context.style) === null || _context$style === void 0 ? void 0 : _context$style.color)
|
||||
}
|
||||
});
|
||||
|
||||
const getBlockContent = () => {
|
||||
if (!hasResolvedPages) {
|
||||
return (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
|
||||
}
|
||||
|
||||
if (totalPages === null) {
|
||||
return (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
|
||||
status: 'warning',
|
||||
isDismissible: false
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')));
|
||||
}
|
||||
|
||||
if (totalPages === 0) {
|
||||
return (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
|
||||
status: 'info',
|
||||
isDismissible: false
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.')));
|
||||
}
|
||||
|
||||
if (totalPages > 0) {
|
||||
return (0,external_wp_element_namespaceObject.createElement)("ul", blockProps, (0,external_wp_element_namespaceObject.createElement)(PageItems, {
|
||||
context: context,
|
||||
pagesByParentId: pagesByParentId
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, allowConvertToLinks && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, {
|
||||
group: "other"
|
||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, {
|
||||
@ -34577,16 +34604,7 @@ function PageListEdit(_ref) {
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Edit'))), allowConvertToLinks && isOpen && (0,external_wp_element_namespaceObject.createElement)(ConvertToLinksModal, {
|
||||
onClose: closeModal,
|
||||
clientId: clientId
|
||||
}), !hasResolvedPages && (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), hasResolvedPages && totalPages === null && (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
|
||||
status: 'warning',
|
||||
isDismissible: false
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.'))), totalPages === 0 && (0,external_wp_element_namespaceObject.createElement)("div", blockProps, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, {
|
||||
status: 'info',
|
||||
isDismissible: false
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('Page List: Cannot retrieve Pages.'))), totalPages > 0 && (0,external_wp_element_namespaceObject.createElement)("ul", blockProps, (0,external_wp_element_namespaceObject.createElement)(PageItems, {
|
||||
context: context,
|
||||
pagesByParentId: pagesByParentId
|
||||
})));
|
||||
}), getBlockContent());
|
||||
}
|
||||
|
||||
function useFrontPageId() {
|
||||
|
2
wp-includes/js/dist/block-library.min.js
vendored
2
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
1124
wp-includes/js/dist/components.js
vendored
1124
wp-includes/js/dist/components.js
vendored
File diff suppressed because one or more lines are too long
6
wp-includes/js/dist/components.min.js
vendored
6
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
58
wp-includes/js/dist/edit-site.js
vendored
58
wp-includes/js/dist/edit-site.js
vendored
@ -6337,17 +6337,18 @@ function Header(_ref) {
|
||||
listViewShortcut,
|
||||
isLoaded,
|
||||
isVisualMode,
|
||||
settings,
|
||||
blockEditorMode
|
||||
blockEditorMode,
|
||||
homeUrl
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
var _getUnstableBase;
|
||||
|
||||
const {
|
||||
__experimentalGetPreviewDeviceType,
|
||||
getEditedPostType,
|
||||
getEditedPostId,
|
||||
isInserterOpened,
|
||||
isListViewOpened,
|
||||
getEditorMode,
|
||||
getSettings
|
||||
getEditorMode
|
||||
} = select(store_store);
|
||||
const {
|
||||
getEditedEntityRecord
|
||||
@ -6367,6 +6368,10 @@ function Header(_ref) {
|
||||
|
||||
const _isLoaded = !!postId;
|
||||
|
||||
const {
|
||||
getUnstableBase // Site index.
|
||||
|
||||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
return {
|
||||
deviceType: __experimentalGetPreviewDeviceType(),
|
||||
entityTitle: getTemplateInfo(record).title,
|
||||
@ -6377,8 +6382,8 @@ function Header(_ref) {
|
||||
isListViewOpen: isListViewOpened(),
|
||||
listViewShortcut: getShortcutRepresentation('core/edit-site/toggle-list-view'),
|
||||
isVisualMode: getEditorMode() === 'visual',
|
||||
settings: getSettings(),
|
||||
blockEditorMode: __unstableGetEditorMode()
|
||||
blockEditorMode: __unstableGetEditorMode(),
|
||||
homeUrl: (_getUnstableBase = getUnstableBase()) === null || _getUnstableBase === void 0 ? void 0 : _getUnstableBase.home
|
||||
};
|
||||
}, []);
|
||||
const {
|
||||
@ -6496,7 +6501,7 @@ function Header(_ref) {
|
||||
,
|
||||
viewLabel: (0,external_wp_i18n_namespaceObject.__)('View')
|
||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
|
||||
href: settings === null || settings === void 0 ? void 0 : settings.siteUrl,
|
||||
href: homeUrl,
|
||||
target: "_blank",
|
||||
icon: library_external
|
||||
}, (0,external_wp_i18n_namespaceObject.__)('View site'), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
|
||||
@ -8986,8 +8991,40 @@ const getBlockSelectors = blockTypes => {
|
||||
});
|
||||
return result;
|
||||
};
|
||||
/**
|
||||
* If there is a separator block whose color is defined in theme.json via background,
|
||||
* update the separator color to the same value by using border color.
|
||||
*
|
||||
* @param {Object} config Theme.json configuration file object.
|
||||
* @return {Object} configTheme.json configuration file object updated.
|
||||
*/
|
||||
|
||||
function updateConfigWithSeparator(config) {
|
||||
var _config$styles, _config$styles2, _config$styles2$block, _config$styles3, _config$styles3$block, _config$styles4, _config$styles4$block;
|
||||
|
||||
const needsSeparatorStyleUpdate = ((_config$styles = config.styles) === null || _config$styles === void 0 ? void 0 : _config$styles.blocks['core/separator']) && ((_config$styles2 = config.styles) === null || _config$styles2 === void 0 ? void 0 : (_config$styles2$block = _config$styles2.blocks['core/separator'].color) === null || _config$styles2$block === void 0 ? void 0 : _config$styles2$block.background) && !((_config$styles3 = config.styles) !== null && _config$styles3 !== void 0 && (_config$styles3$block = _config$styles3.blocks['core/separator'].color) !== null && _config$styles3$block !== void 0 && _config$styles3$block.text) && !((_config$styles4 = config.styles) !== null && _config$styles4 !== void 0 && (_config$styles4$block = _config$styles4.blocks['core/separator'].border) !== null && _config$styles4$block !== void 0 && _config$styles4$block.color);
|
||||
|
||||
if (needsSeparatorStyleUpdate) {
|
||||
var _config$styles5;
|
||||
|
||||
return { ...config,
|
||||
styles: { ...config.styles,
|
||||
blocks: { ...config.styles.blocks,
|
||||
'core/separator': { ...config.styles.blocks['core/separator'],
|
||||
color: { ...config.styles.blocks['core/separator'].color,
|
||||
text: (_config$styles5 = config.styles) === null || _config$styles5 === void 0 ? void 0 : _config$styles5.blocks['core/separator'].color.background
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
function useGlobalStylesOutput() {
|
||||
const {
|
||||
let {
|
||||
merged: mergedConfig
|
||||
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
|
||||
const [blockGap] = useSetting('spacing.blockGap');
|
||||
@ -9001,10 +9038,13 @@ function useGlobalStylesOutput() {
|
||||
return !!getSettings().disableLayoutStyles;
|
||||
});
|
||||
return (0,external_wp_element_namespaceObject.useMemo)(() => {
|
||||
if (!(mergedConfig !== null && mergedConfig !== void 0 && mergedConfig.styles) || !(mergedConfig !== null && mergedConfig !== void 0 && mergedConfig.settings)) {
|
||||
var _mergedConfig, _mergedConfig2;
|
||||
|
||||
if (!((_mergedConfig = mergedConfig) !== null && _mergedConfig !== void 0 && _mergedConfig.styles) || !((_mergedConfig2 = mergedConfig) !== null && _mergedConfig2 !== void 0 && _mergedConfig2.settings)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
mergedConfig = updateConfigWithSeparator(mergedConfig);
|
||||
const blockSelectors = getBlockSelectors((0,external_wp_blocks_namespaceObject.getBlockTypes)());
|
||||
const customProperties = toCustomProperties(mergedConfig, blockSelectors);
|
||||
const globalStyles = toStyles(mergedConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles);
|
||||
|
2
wp-includes/js/dist/edit-site.min.js
vendored
2
wp-includes/js/dist/edit-site.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.2-alpha-54810';
|
||||
$wp_version = '6.2-alpha-54811';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user