ellatrix 2024-06-25 13:49:28 +00:00
parent d56f24e6db
commit 98595e5229
88 changed files with 523 additions and 533 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
.wp-block-audio{
box-sizing:border-box;
}
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

View File

@ -1 +1 @@
.wp-block-audio{box-sizing:border-box}.wp-block-audio figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}
.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}

View File

@ -1,7 +1,7 @@
.wp-block-audio{
box-sizing:border-box;
}
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

View File

@ -1 +1 @@
.wp-block-audio{box-sizing:border-box}.wp-block-audio figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}
.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}

View File

@ -1,9 +1,9 @@
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-audio figcaption{
.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em}
.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}

View File

@ -1,9 +1,9 @@
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-audio figcaption{
.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em}
.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.wp-block-audio{margin:0 0 1em}

View File

@ -14,7 +14,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

View File

@ -1 +1 @@
.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}
.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}

View File

@ -14,7 +14,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

View File

@ -1 +1 @@
.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed figcaption{margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}
.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}

View File

@ -1,9 +1,9 @@
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-embed figcaption{
.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em}
.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}

View File

@ -1,9 +1,9 @@
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-embed figcaption{
.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em}
.wp-block-embed :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.wp-block-embed{margin:0 0 1em}

View File

@ -120,18 +120,6 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
.wp-block-image__aspect-ratio{
align-items:center;
display:flex;
height:46px;
margin-bottom:-8px;
}
.wp-block-image__aspect-ratio .components-button{
padding-left:0;
padding-right:0;
width:36px;
}
.wp-block-image__toolbar_content_textarea{
width:250px;
}

View File

@ -1 +1 @@
.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}.wp-block-image__toolbar_content_textarea{width:250px}
.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px}

View File

@ -120,18 +120,6 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
.wp-block-image__aspect-ratio{
align-items:center;
display:flex;
height:46px;
margin-bottom:-8px;
}
.wp-block-image__aspect-ratio .components-button{
padding-left:0;
padding-right:0;
width:36px;
}
.wp-block-image__toolbar_content_textarea{
width:250px;
}

View File

@ -1 +1 @@
.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__aspect-ratio{align-items:center;display:flex;height:46px;margin-bottom:-8px}.wp-block-image__aspect-ratio .components-button{padding-left:0;padding-right:0;width:36px}.wp-block-image__toolbar_content_textarea{width:250px}
.wp-block-image.wp-block-image.is-selected .components-placeholder{background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;filter:none!important}.wp-block-image.wp-block-image.is-selected .components-placeholder>svg{opacity:0}.wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{display:none}.wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{opacity:0}.wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{opacity:1}.wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{transition:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image .components-resizable-box__container{display:table}.wp-block-image .components-resizable-box__container img{display:block;height:inherit;width:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__crop-icon{align-items:center;display:flex;justify-content:center;min-width:48px;padding:0 8px}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.wp-block-image__toolbar_content_textarea{width:250px}

View File

@ -36,7 +36,7 @@
margin-left:auto;
margin-right:auto;
}
.wp-block-image figcaption{
.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@
margin-left:auto;
margin-right:auto;
}
.wp-block-image figcaption{
.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

File diff suppressed because one or more lines are too long

View File

@ -519,9 +519,11 @@ class WP_Navigation_Block_Renderer {
';
}
$overlay_inline_styles = esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) );
return sprintf(
'<button aria-haspopup="dialog" %3$s class="%6$s" %10$s>%8$s</button>
<div class="%5$s" style="%7$s" id="%1$s" %11$s>
<div class="%5$s" %7$s id="%1$s" %11$s>
<div class="wp-block-navigation__responsive-close" tabindex="-1">
<div class="wp-block-navigation__responsive-dialog" %12$s>
<button %4$s class="wp-block-navigation__responsive-container-close" %13$s>%9$s</button>
@ -537,7 +539,7 @@ class WP_Navigation_Block_Renderer {
$toggle_aria_label_close,
esc_attr( implode( ' ', $responsive_container_classes ) ),
esc_attr( implode( ' ', $open_button_classes ) ),
esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) ),
( ! empty( $overlay_inline_styles ) ) ? "style=\"$overlay_inline_styles\"" : '',
$toggle_button_content,
$toggle_close_button_content,
$open_button_directives,
@ -826,7 +828,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
$tags->set_attribute( 'data-wp-interactive', 'core/navigation' );
$tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu" }' );
$tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' );
$tags->set_attribute( 'data-wp-on-async--focusout', 'actions.handleMenuFocusout' );
$tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
$tags->set_attribute( 'data-wp-on--keydown', 'actions.handleMenuKeydown' );
// This is a fix for Safari. Without it, Safari doesn't change the active

View File

@ -175,6 +175,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
letter-spacing:inherit;
line-height:inherit;
text-align:right;
text-transform:inherit;

File diff suppressed because one or more lines are too long

View File

@ -175,6 +175,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
letter-spacing:inherit;
line-height:inherit;
text-align:left;
text-transform:inherit;

File diff suppressed because one or more lines are too long

View File

@ -4,11 +4,11 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
.wp-block-table figcaption{
.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-table figcaption{
.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-table{margin:0 0 1em}.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:#ffffffa6}
.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}

View File

@ -4,11 +4,11 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
.wp-block-table figcaption{
.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-table figcaption{
.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-table{margin:0 0 1em}.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:#ffffffa6}
.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}

View File

@ -13,7 +13,7 @@
.wp-block-video.aligncenter{
text-align:center;
}
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

View File

@ -1 +1 @@
.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-bottom:1em;margin-top:.5em}
.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}

View File

@ -13,7 +13,7 @@
.wp-block-video.aligncenter{
text-align:center;
}
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

View File

@ -1 +1 @@
.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-bottom:1em;margin-top:.5em}
.wp-block-video{box-sizing:border-box}.wp-block-video video{vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}

View File

@ -1,9 +1,9 @@
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-video figcaption{
.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}
.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}

View File

@ -1,9 +1,9 @@
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-video figcaption{
.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}
.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}

View File

@ -1172,18 +1172,6 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
.wp-block-image__aspect-ratio{
align-items:center;
display:flex;
height:46px;
margin-bottom:-8px;
}
.wp-block-image__aspect-ratio .components-button{
padding-left:0;
padding-right:0;
width:36px;
}
.wp-block-image__toolbar_content_textarea{
width:250px;
}

File diff suppressed because one or more lines are too long

View File

@ -1170,18 +1170,6 @@ figure.wp-block-image:not(.wp-block){
overflow:visible !important;
}
.wp-block-image__aspect-ratio{
align-items:center;
display:flex;
height:46px;
margin-bottom:-8px;
}
.wp-block-image__aspect-ratio .components-button{
padding-left:0;
padding-right:0;
width:36px;
}
.wp-block-image__toolbar_content_textarea{
width:250px;
}

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
:where(.editor-styles-wrapper){
html :where(.editor-styles-wrapper){
background:#fff;
color:initial;
font-family:serif;

View File

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

View File

@ -1,4 +1,4 @@
:where(.editor-styles-wrapper){
html :where(.editor-styles-wrapper){
background:#fff;
color:initial;
font-family:serif;

View File

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

View File

@ -21,7 +21,7 @@
.wp-block-audio{
box-sizing:border-box;
}
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@ -699,7 +699,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@ -1137,7 +1137,7 @@ h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-t
margin-left:auto;
margin-right:auto;
}
.wp-block-image figcaption{
.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@ -1797,6 +1797,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
letter-spacing:inherit;
line-height:inherit;
text-align:right;
text-transform:inherit;
@ -3372,7 +3373,7 @@ pre.wp-block-verse{
.wp-block-video.aligncenter{
text-align:center;
}
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@
.wp-block-audio{
box-sizing:border-box;
}
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@ -699,7 +699,7 @@
.wp-block-embed{
overflow-wrap:break-word;
}
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@ -1137,7 +1137,7 @@ h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-t
margin-left:auto;
margin-right:auto;
}
.wp-block-image figcaption{
.wp-block-image :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}
@ -1797,6 +1797,7 @@ button.wp-block-navigation-item__content{
font-size:inherit;
font-style:inherit;
font-weight:inherit;
letter-spacing:inherit;
line-height:inherit;
text-align:left;
text-transform:inherit;
@ -3372,7 +3373,7 @@ pre.wp-block-verse{
.wp-block-video.aligncenter{
text-align:center;
}
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
margin-bottom:1em;
margin-top:.5em;
}

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-audio figcaption{
.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}
@ -18,12 +18,12 @@
padding:.8em 1em;
}
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-embed figcaption{
.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}
@ -134,21 +134,21 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
.wp-block-table figcaption{
.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-table figcaption{
.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
}
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-video figcaption{
.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.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:#ffffffa6}.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:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.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;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:.25em solid;border-right:none;padding-left:1em;padding-right:0}.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-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}.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:#ffffffa6}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em}
.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.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 :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.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:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.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;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:.25em solid;border-right:none;padding-left:1em;padding-right:0}.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-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}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em}

View File

@ -1,9 +1,9 @@
.wp-block-audio figcaption{
.wp-block-audio :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-audio figcaption{
.is-dark-theme .wp-block-audio :where(figcaption){
color:#ffffffa6;
}
@ -18,12 +18,12 @@
padding:.8em 1em;
}
.wp-block-embed figcaption{
.wp-block-embed :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-embed figcaption{
.is-dark-theme .wp-block-embed :where(figcaption){
color:#ffffffa6;
}
@ -134,21 +134,21 @@
.wp-block-table td,.wp-block-table th{
word-break:normal;
}
.wp-block-table figcaption{
.wp-block-table :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-table figcaption{
.is-dark-theme .wp-block-table :where(figcaption){
color:#ffffffa6;
}
.wp-block-video figcaption{
.wp-block-video :where(figcaption){
color:#555;
font-size:13px;
text-align:center;
}
.is-dark-theme .wp-block-video figcaption{
.is-dark-theme .wp-block-video :where(figcaption){
color:#ffffffa6;
}

View File

@ -1 +1 @@
.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.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:#ffffffa6}.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:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.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;font-style:normal;position:relative}.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}.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:#ffffffa6}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em}
.wp-block-audio :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio :where(figcaption){color:#ffffffa6}.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 :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed :where(figcaption){color:#ffffffa6}.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:#ffffffa6}:root :where(.wp-block-image figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme :root :where(.wp-block-image figcaption){color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.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;font-style:normal;position:relative}.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}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table :where(figcaption){color:#ffffffa6}.wp-block-video :where(figcaption){color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video :where(figcaption){color:#ffffffa6}.wp-block-video{margin:0 0 1em}:root :where(.wp-block-template-part.has-background){margin-bottom:0;margin-top:0;padding:1.25em 2.375em}

View File

@ -959,12 +959,7 @@
height:100%;
text-align:start;
}
::view-transition-new(frame),::view-transition-old(frame){
animation-duration:0;
}
.edit-site-visual-editor__editor-canvas{
view-transition-name:frame;
}
.edit-site-visual-editor__editor-canvas.is-focused{
outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);
outline-offset:calc(var(--wp-admin-border-width-focus)*-2);
@ -2925,7 +2920,15 @@ button.font-library-modal__upload-area{
.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
outline-color:var(--wp-admin-theme-color);
}
::view-transition-image-pair(root){
isolation:auto;
}
::view-transition-new(root),::view-transition-old(root){
animation:none;
display:block;
mix-blend-mode:normal;
}
body.js #wpadminbar{
display:none;
}

File diff suppressed because one or more lines are too long

View File

@ -959,12 +959,7 @@
height:100%;
text-align:start;
}
::view-transition-new(frame),::view-transition-old(frame){
animation-duration:0;
}
.edit-site-visual-editor__editor-canvas{
view-transition-name:frame;
}
.edit-site-visual-editor__editor-canvas.is-focused{
outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);
outline-offset:calc(var(--wp-admin-border-width-focus)*-2);
@ -2925,7 +2920,15 @@ button.font-library-modal__upload-area{
.edit-site-global-styles-variations_item:focus-visible .edit-site-global-styles-variations_item-preview{
outline-color:var(--wp-admin-theme-color);
}
::view-transition-image-pair(root){
isolation:auto;
}
::view-transition-new(root),::view-transition-old(root){
animation:none;
display:block;
mix-blend-mode:normal;
}
body.js #wpadminbar{
display:none;
}

File diff suppressed because one or more lines are too long

View File

@ -1291,6 +1291,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin:0;
padding:2px 0;
row-gap:4px;
word-break:break-word;
}
.editor-post-card-panel__icon{
flex:0 0 24px;
@ -1715,7 +1716,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
overflow:auto;
position:fixed;
right:0;
top:0;
top:46px;
z-index:100001;
}
@media (min-width:782px){
@ -1986,6 +1987,10 @@ textarea.editor-post-text-editor:-ms-input-placeholder{
padding-inline-start:0 !important;
}
.editor-post-url__panel-toggle{
word-break:break-word;
}
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{
border:1px solid #1e1e1e;
border-radius:2px;
@ -2442,6 +2447,7 @@ h3.components-heading.editor-template-areas__title{
background-color:#ddd;
display:block;
height:100%;
isolation:isolate;
position:relative;
}
.editor-visual-editor.is-resizable{

File diff suppressed because one or more lines are too long

View File

@ -1291,6 +1291,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
margin:0;
padding:2px 0;
row-gap:4px;
word-break:break-word;
}
.editor-post-card-panel__icon{
flex:0 0 24px;
@ -1715,7 +1716,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
overflow:auto;
position:fixed;
right:0;
top:0;
top:46px;
z-index:100001;
}
@media (min-width:782px){
@ -1986,6 +1987,10 @@ textarea.editor-post-text-editor:-ms-input-placeholder{
padding-inline-start:0 !important;
}
.editor-post-url__panel-toggle{
word-break:break-word;
}
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{
border:1px solid #1e1e1e;
border-radius:2px;
@ -2442,6 +2447,7 @@ h3.components-heading.editor-template-areas__title{
background-color:#ddd;
display:block;
height:100%;
isolation:isolate;
position:relative;
}
.editor-visual-editor.is-resizable{

File diff suppressed because one or more lines are too long

View File

@ -482,12 +482,12 @@ function __experimentalGetAnnotations(state) {
return Object.values(state).flat();
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -506,7 +506,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -540,7 +540,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js

View File

@ -34288,6 +34288,7 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
marginReset: true,
presets: true,
rootPadding: true,
variationStyles: false,
...styleOptions
};
const nodesWithStyles = getNodesWithStyles(tree, blockSelectors);
@ -34325,8 +34326,8 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
ruleset += `padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }
.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
.has-global-padding :where(.has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) { padding-right: 0; padding-left: 0; }
.has-global-padding :where(.has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) > .alignfull { margin-left: 0; margin-right: 0;
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) { padding-right: 0; padding-left: 0; }
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull, .alignwide)) > .alignfull { margin-left: 0; margin-right: 0;
`;
}
ruleset += '}';
@ -34385,7 +34386,7 @@ const toStyles = (tree, blockSelectors, hasBlockGapSupport, hasFallbackGapSuppor
if (styles?.css) {
ruleset += processCSSNesting(styles.css, `:root :where(${selector})`);
}
if (styleVariationSelectors) {
if (options.variationStyles && styleVariationSelectors) {
Object.entries(styleVariationSelectors).forEach(([styleVariationName, styleVariationSelector]) => {
const styleVariations = styles?.variations?.[styleVariationName];
if (styleVariations) {
@ -34786,14 +34787,15 @@ function block_style_variation_useBlockProps({
const hasBlockGapSupport = false;
const hasFallbackGapSupport = true;
const disableLayoutStyles = true;
const isTemplate = true;
return toStyles(variationConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, isTemplate, {
const disableRootPadding = true;
return toStyles(variationConfig, blockSelectors, hasBlockGapSupport, hasFallbackGapSupport, disableLayoutStyles, disableRootPadding, {
blockGap: false,
blockStyles: true,
layoutStyles: false,
marginReset: false,
presets: false,
rootPadding: false
rootPadding: false,
variationStyles: true
});
}, [variation, settings, styles, getBlockStyles, clientId]);
useStyleOverride({
@ -54549,7 +54551,9 @@ function Shuffle({
// otherwise we may shuffle to pattern that will not allow to continue shuffling.
pattern.blocks.length === 1 && pattern.categories?.some(category => {
return categories.includes(category);
})
}) && (
// Check if the pattern is not a synced pattern.
pattern.syncStatus === 'unsynced' || !pattern.id)
);
});
}, [categories, patterns]);
@ -60987,7 +60991,6 @@ function AspectRatioDropdown({
label: (0,external_wp_i18n_namespaceObject.__)('Aspect Ratio'),
popoverProps: constants_POPOVER_PROPS,
toggleProps: toggleProps,
className: "wp-block-image__aspect-ratio",
children: ({
onClose
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {

File diff suppressed because one or more lines are too long

View File

@ -26742,6 +26742,7 @@ function image_Image({
children: isResizable && dimensionsControl
})
});
const arePatternOverridesEnabled = metadata?.bindings?.__default?.source === 'core/pattern-overrides';
const {
lockUrlControls = false,
lockHrefControls = false,
@ -26778,7 +26779,7 @@ function image_Image({
lockHrefControls:
// Disable editing the link of the URL if the image is inside a pattern instance.
// This is a temporary solution until we support overriding the link on the frontend.
hasParentPattern,
hasParentPattern || arePatternOverridesEnabled,
lockCaption:
// Disable editing the caption if the image is inside a pattern instance.
// This is a temporary solution until we support overriding the caption on the frontend.
@ -27152,7 +27153,7 @@ function image_Image({
isSelected: isSingleSelected,
insertBlocksAfter: insertBlocksAfter,
label: (0,external_wp_i18n_namespaceObject.__)('Image caption text'),
showToolbarButton: isSingleSelected && hasNonContentControls,
showToolbarButton: isSingleSelected && hasNonContentControls && !arePatternOverridesEnabled,
readOnly: lockCaption
})]
});
@ -63203,12 +63204,12 @@ function FootnotesEdit({
});
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -63227,7 +63228,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -63261,7 +63262,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js

File diff suppressed because one or more lines are too long

View File

@ -9726,12 +9726,12 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
unlock(store).registerPrivateSelectors(private_selectors_namespaceObject);
unlock(store).registerPrivateActions(private_actions_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -9750,7 +9750,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -9784,7 +9784,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
@ -14047,9 +14047,6 @@ function listReducer(node) {
if (prevListItem) {
prevListItem.appendChild(list);
parentList.removeChild(parentListItem);
} else {
parentList.parentNode.insertBefore(list, parentList);
parentList.parentNode.removeChild(parentList);
}
}

File diff suppressed because one or more lines are too long

View File

@ -33407,12 +33407,12 @@ const Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.j
});
/* harmony default export */ const slot = (Slot);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -33431,7 +33431,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -33465,7 +33465,7 @@ function stringify_stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
@ -45880,16 +45880,13 @@ function palette_edit_Option({
canOnlyChangeValues,
element,
onChange,
isEditing,
onStartEditing,
onRemove,
onStopEditing,
popoverProps: receivedPopoverProps,
slugPrefix,
isGradient
}) {
const focusOutsideProps = (0,external_wp_compose_namespaceObject.__experimentalUseFocusOutside)(onStopEditing);
const value = isGradient ? element.gradient : element.color;
const [isEditingColor, setIsEditingColor] = (0,external_wp_element_namespaceObject.useState)(false);
// Use internal state instead of a ref to make sure that the component
// re-renders when the popover's anchor updates.
@ -45900,22 +45897,25 @@ function palette_edit_Option({
anchor: popoverAnchor
}), [popoverAnchor, receivedPopoverProps]);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteItem, {
className: isEditing ? 'is-selected' : undefined,
as: isEditing ? 'div' : 'button',
onClick: onStartEditing,
"aria-label": isEditing ? undefined : (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s is a color or gradient name, e.g. "Red".
(0,external_wp_i18n_namespaceObject.__)('Edit: %s'), element.name.trim().length ? element.name : value),
ref: setPopoverAnchor,
...(isEditing ? {
...focusOutsideProps
} : {}),
as: "div",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
justify: "flex-start",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IndicatorStyled, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
onClick: () => {
setIsEditingColor(true);
},
"aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s is a color or gradient name, e.g. "Red".
(0,external_wp_i18n_namespaceObject.__)('Edit: %s'), element.name.trim().length ? element.name : value),
style: {
padding: 0
},
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(IndicatorStyled, {
colorValue: value
})
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
children: isEditing && !canOnlyChangeValues ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameInput, {
children: !canOnlyChangeValues ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameInput, {
label: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Gradient name') : (0,external_wp_i18n_namespaceObject.__)('Color name'),
value: element.name,
onChange: nextName => onChange({
@ -45927,31 +45927,33 @@ function palette_edit_Option({
children: element.name.trim().length ? element.name : /* Fall back to non-breaking space to maintain height */
'\u00A0'
})
}), isEditing && !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
}), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RemoveButton, {
size: "small",
icon: line_solid,
label: (0,external_wp_i18n_namespaceObject.__)('Remove color'),
label: (0,external_wp_i18n_namespaceObject.sprintf)(
// translators: %s is a color or gradient name, e.g. "Red".
(0,external_wp_i18n_namespaceObject.__)('Remove color: %s'), element.name.trim().length ? element.name : value),
onClick: onRemove
})
})]
}), isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPickerPopover, {
}), isEditingColor && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPickerPopover, {
isGradient: isGradient,
onChange: onChange,
element: element,
popoverProps: popoverProps
popoverProps: popoverProps,
onClose: () => setIsEditingColor(false)
})]
});
}
function PaletteEditListView({
elements,
onChange,
editingElement,
setEditingElement,
canOnlyChangeValues,
slugPrefix,
isGradient,
popoverProps
popoverProps,
addColorRef
}) {
// When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.
const elementsReference = (0,external_wp_element_namespaceObject.useRef)();
@ -45967,11 +45969,6 @@ function PaletteEditListView({
isGradient: isGradient,
canOnlyChangeValues: canOnlyChangeValues,
element: element,
onStartEditing: () => {
if (editingElement !== index) {
setEditingElement(index);
}
},
onChange: newElement => {
debounceOnChange(elements.map((currentElement, currentIndex) => {
if (currentIndex === index) {
@ -45981,7 +45978,6 @@ function PaletteEditListView({
}));
},
onRemove: () => {
setEditingElement(null);
const newElements = elements.filter((_currentElement, currentIndex) => {
if (currentIndex === index) {
return false;
@ -45989,12 +45985,7 @@ function PaletteEditListView({
return true;
});
onChange(newElements.length ? newElements : undefined);
},
isEditing: index === editingElement,
onStopEditing: () => {
if (index === editingElement) {
setEditingElement(null);
}
addColorRef.current?.focus();
},
slugPrefix: slugPrefix,
popoverProps: popoverProps
@ -46054,6 +46045,7 @@ function PaletteEdit({
setIsEditing(true);
}
}, [isGradient, elements]);
const addColorRef = (0,external_wp_element_namespaceObject.useRef)(null);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteEditStyles, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PaletteHeading, {
@ -46068,6 +46060,7 @@ function PaletteEdit({
},
children: (0,external_wp_i18n_namespaceObject.__)('Done')
}), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
ref: addColorRef,
size: "small",
isPressed: isAdding,
icon: library_plus,
@ -46142,11 +46135,10 @@ function PaletteEdit({
// @ts-expect-error TODO: Don't know how to resolve
,
onChange: onChange,
editingElement: editingElement,
setEditingElement: setEditingElement,
slugPrefix: slugPrefix,
isGradient: isGradient,
popoverProps: popoverProps
popoverProps: popoverProps,
addColorRef: addColorRef
}), !isEditing && editingElement !== null && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorPickerPopover, {
isGradient: isGradient,
onClose: () => setEditingElement(null),

File diff suppressed because one or more lines are too long

View File

@ -1427,12 +1427,12 @@ var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_w
const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
;// CONCATENATED MODULE: external ["wp","richText"]
const external_wp_richText_namespaceObject = window["wp"]["richText"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/native.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
/* harmony default export */ const esm_browser_native = ({
randomUUID
});
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/rng.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
@ -1451,7 +1451,7 @@ function rng() {
return getRandomValues(rnds8);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/stringify.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
/**
* Convert array of 16 byte values to UUID string format of the form:
@ -1485,7 +1485,7 @@ function stringify(arr, offset = 0) {
}
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/v4.js
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js

View File

@ -327,6 +327,7 @@ const {
/**
* Internal dependencies
*/
@ -600,13 +601,19 @@ const requestMetaBoxUpdates = () => async ({
window.tinyMCE.triggerSave();
}
// We gather the base form data.
const baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
const postId = baseFormData.get('post_ID');
const postType = baseFormData.get('post_type');
// Additional data needed for backward compatibility.
// If we do not provide this data, the post will be overridden with the default values.
const post = registry.select(external_wp_editor_namespaceObject.store).getCurrentPost();
// We cannot rely on getCurrentPost because right now on the editor we may be editing a pattern or a template.
// We need to retrieve the post that the base form data is referring to.
const post = registry.select(external_wp_coreData_namespaceObject.store).getEditedEntityRecord('postType', postType, postId);
const additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean);
// We gather all the metaboxes locations data and the base form data.
const baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
// We gather all the metaboxes locations.
const activeMetaBoxLocations = select.getActiveMetaBoxLocations();
const formDataToMerge = [baseFormData, ...activeMetaBoxLocations.map(location => new window.FormData(getMetaBoxContainer(location)))];

File diff suppressed because one or more lines are too long

View File

@ -7572,17 +7572,15 @@ function removePropertyFromObject(object, property) {
}
/**
* A convenience wrapper for `useThemeStyleVariationsByProperty()` that fetches the current theme style variations,
* and user-defined global style/settings object.
* Fetches the current theme style variations that contain only the specified property
* and merges them with the user config.
*
* @param {Object} props Object of hook args.
* @param {string} props.property The property to filter by.
* @param {Function} props.filter Optional. The filter function to apply to the variations.
* @return {Object[]|*} The merged object.
*/
function useCurrentMergeThemeStyleVariationsWithUserConfig({
property,
filter
property
}) {
const {
variationsFromTheme
@ -7593,21 +7591,21 @@ function useCurrentMergeThemeStyleVariationsWithUserConfig({
};
}, []);
const {
user: baseVariation
user: userVariation
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
const variations = (0,external_wp_element_namespaceObject.useMemo)(() => {
return [{
title: (0,external_wp_i18n_namespaceObject.__)('Default'),
settings: {},
styles: {}
}, ...variationsFromTheme];
}, [variationsFromTheme]);
return useThemeStyleVariationsByProperty({
variations,
property,
filter,
baseVariation: removePropertyFromObject(cloneDeep(baseVariation), property)
return (0,external_wp_element_namespaceObject.useMemo)(() => {
const clonedUserVariation = cloneDeep(userVariation);
// Get user variation and remove the settings for the given property.
const userVariationWithoutProperty = removePropertyFromObject(clonedUserVariation, property);
userVariationWithoutProperty.title = (0,external_wp_i18n_namespaceObject.__)('Default');
const variationsWithSinglePropertyAndBase = variationsFromTheme.filter(variation => {
return isVariationWithSingleProperty(variation, property);
}).map(variation => {
return mergeBaseAndUserConfigs(userVariationWithoutProperty, variation);
});
return [userVariationWithoutProperty, ...variationsWithSinglePropertyAndBase];
}, [property, userVariation, variationsFromTheme]);
}
/**
@ -7638,71 +7636,6 @@ const filterObjectByProperty = (object, property) => {
return newObject;
};
/**
* Returns a new object with only the properties specified in `property`.
* Optional merges the baseVariation object with the variation object.
* Note: this function will only overwrite the specified property in baseVariation if it exists.
* The baseVariation will not be otherwise modified. To strip a property from the baseVariation object, use `removePropertyFromObject`.
* See useCurrentMergeThemeStyleVariationsWithUserConfig for an example of how to use this function.
*
* @param {Object} props Object of hook args.
* @param {Object[]} props.variations The theme style variations to filter.
* @param {string} props.property The property to filter by.
* @param {Function} props.filter Optional. The filter function to apply to the variations.
* @param {Object} props.baseVariation Optional. Base or user settings to be updated with variation properties.
* @return {Object[]|*} The merged object.
*/
function useThemeStyleVariationsByProperty({
variations,
property,
filter,
baseVariation
}) {
return (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!property || !variations || variations?.length === 0) {
return variations;
}
const clonedBaseVariation = typeof baseVariation === 'object' && Object.keys(baseVariation).length > 0 ? cloneDeep(baseVariation) : null;
let processedStyleVariations = variations.reduce((accumulator, variation) => {
const variationFilteredByProperty = filterObjectByProperty(cloneDeep(variation), property);
// Remove variations that are empty once the property is filtered out.
if (variation.title !== (0,external_wp_i18n_namespaceObject.__)('Default') && Object.keys(variationFilteredByProperty).length === 0) {
return accumulator;
}
let result = {
...variationFilteredByProperty,
title: variation?.title,
description: variation?.description
};
if (clonedBaseVariation) {
/*
* Overwrites all baseVariation object `styleProperty` properties
* with the theme variation `styleProperty` properties.
*/
result = mergeBaseAndUserConfigs(clonedBaseVariation, result);
}
// Detect if this is a duplicate variation.
const isDuplicate = accumulator.some(item => {
return JSON.stringify(item.styles) === JSON.stringify(result?.styles) && JSON.stringify(item.settings) === JSON.stringify(result?.settings);
});
if (isDuplicate) {
return accumulator;
}
// If the variation is not a duplicate, add it to the accumulator.
accumulator.push(result);
return accumulator;
}, [] // Initial accumulator value.
);
if ('function' === typeof filter) {
processedStyleVariations = processedStyleVariations.filter(filter);
}
return processedStyleVariations;
}, [variations, property, baseVariation, filter]);
}
/**
* Compares a style variation to the same variation filtered by a single property.
* Returns true if the variation contains only the property specified.
@ -24717,7 +24650,7 @@ function SingleSelectionCheckbox({
disabled
}) {
const id = getItemId(item);
const isSelected = selection.includes(id);
const isSelected = !disabled && selection.includes(id);
let selectionLabel;
if (primaryField?.getValue && item) {
// eslint-disable-next-line @wordpress/valid-sprintf
@ -25089,24 +25022,10 @@ function BulkActions({
});
}, [data, bulkActions]);
const numberSelectableItems = selectableItems.length;
const areAllSelected = selection && selection.length === numberSelectableItems;
const selectedItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
return data.filter(item => selection.includes(getItemId(item)));
}, [selection, data, getItemId]);
const hasNonSelectableItemSelected = (0,external_wp_element_namespaceObject.useMemo)(() => {
return selectedItems.some(item => {
return !selectableItems.includes(item);
});
}, [selectedItems, selectableItems]);
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (hasNonSelectableItemSelected) {
onSelectionChange(selectedItems.filter(selectedItem => {
return selectableItems.some(item => {
return getItemId(selectedItem) === getItemId(item);
});
}));
}
}, [hasNonSelectableItemSelected, selectedItems, selectableItems, getItemId, onSelectionChange]);
return data.filter(item => selection.includes(getItemId(item)) && selectableItems.includes(item));
}, [selection, data, getItemId, selectableItems]);
const areAllSelected = selectedItems.length === numberSelectableItems;
if (bulkActions.length === 0) {
return null;
}
@ -25123,8 +25042,8 @@ function BulkActions({
__next40pxDefaultSize: true,
variant: "tertiary",
size: "compact",
children: selection.length ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of items. */
(0,external_wp_i18n_namespaceObject._n)('Edit %d item', 'Edit %d items', selection.length), selection.length) : (0,external_wp_i18n_namespaceObject.__)('Bulk edit')
children: selectedItems.length ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: Number of items. */
(0,external_wp_i18n_namespaceObject._n)('Edit %d item', 'Edit %d items', selectedItems.length), selectedItems.length) : (0,external_wp_i18n_namespaceObject.__)('Bulk edit')
}),
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionsMenuGroup, {
actions: bulkActions,
@ -25305,19 +25224,21 @@ function BulkSelectionCheckbox({
selection,
onSelectionChange,
data,
actions
actions,
getItemId
}) {
const selectableItems = (0,external_wp_element_namespaceObject.useMemo)(() => {
return data.filter(item => {
return actions.some(action => action.supportsBulk && (!action.isEligible || action.isEligible(item)));
});
}, [data, actions]);
const areAllSelected = selection.length === selectableItems.length;
const selectedItems = data.filter(item => selection.includes(getItemId(item)) && selectableItems.includes(item));
const areAllSelected = selectedItems.length === selectableItems.length;
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.CheckboxControl, {
className: "dataviews-view-table-selection-checkbox",
__nextHasNoMarginBottom: true,
checked: areAllSelected,
indeterminate: !areAllSelected && !!selection.length,
indeterminate: !areAllSelected && !!selectedItems.length,
onChange: () => {
if (areAllSelected) {
onSelectionChange([]);
@ -25341,7 +25262,7 @@ function TableRow({
data
}) {
const hasPossibleBulkAction = useHasAPossibleBulkAction(actions, item);
const isSelected = selection.includes(id);
const isSelected = hasPossibleBulkAction && selection.includes(id);
const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
const handleMouseEnter = () => {
setIsHovered(true);
@ -25366,6 +25287,9 @@ function TableRow({
isTouchDevice.current = true;
},
onClick: () => {
if (!hasPossibleBulkAction) {
return;
}
if (!isTouchDevice.current && document.getSelection()?.type !== 'Range') {
if (!isSelected) {
onSelectionChange(data.filter(_item => {
@ -25489,7 +25413,8 @@ function ViewTable({
selection: selection,
onSelectionChange: onSelectionChange,
data: data,
actions: actions
actions: actions,
getItemId: getItemId
})
}), visibleFields.map((field, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("th", {
style: {
@ -25900,7 +25825,7 @@ function ListItem({
})]
})
})
}), actions?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
}), eligibleActions?.length > 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
spacing: 1,
justify: "flex-end",
className: "dataviews-view-list__item-actions",
@ -25985,7 +25910,7 @@ function ViewList(props) {
view
} = props;
const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(ViewList, 'view-list');
const selectedItem = data?.findLast(item => selection.includes(item.id));
const selectedItem = data?.findLast(item => selection.includes(getItemId(item)));
const mediaField = fields.find(field => field.id === view.layout.mediaField);
const primaryField = fields.find(field => field.id === view.layout.primaryField);
const visibleFields = fields.filter(field => !view.hiddenFields.includes(field.id) && ![view.layout.primaryField, view.layout.mediaField].includes(field.id));
@ -32388,17 +32313,20 @@ function DataViews({
isLoading = false,
paginationInfo,
supportedLayouts,
selection: selectionProperty,
setSelection: setSelectionProperty,
onSelectionChange = defaultOnSelectionChange
}) {
const [selection, setSelection] = (0,external_wp_element_namespaceObject.useState)([]);
const [openedFilter, setOpenedFilter] = (0,external_wp_element_namespaceObject.useState)(null);
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (selection.length > 0 && selection.some(id => !data.some(item => getItemId(item) === id))) {
const newSelection = selection.filter(id => data.some(item => getItemId(item) === id));
setSelection(newSelection);
onSelectionChange(data.filter(item => newSelection.includes(getItemId(item))));
const [selectionState, setSelectionState] = (0,external_wp_element_namespaceObject.useState)([]);
let selection, setSelection;
if (selectionProperty !== undefined && setSelectionProperty !== undefined) {
selection = selectionProperty;
setSelection = setSelectionProperty;
} else {
selection = selectionState;
setSelection = setSelectionState;
}
}, [selection, data, getItemId, onSelectionChange]);
const [openedFilter, setOpenedFilter] = (0,external_wp_element_namespaceObject.useState)(null);
const onSetSelection = (0,external_wp_element_namespaceObject.useCallback)(items => {
setSelection(items.map(item => getItemId(item)));
onSelectionChange(items);
@ -32406,6 +32334,9 @@ function DataViews({
const ViewComponent = VIEW_LAYOUTS.find(v => v.type === view.type)?.component;
const _fields = (0,external_wp_element_namespaceObject.useMemo)(() => normalizeFields(fields), [fields]);
const hasPossibleBulkAction = dataviews_useSomeItemHasAPossibleBulkAction(actions, data);
const _selection = (0,external_wp_element_namespaceObject.useMemo)(() => {
return selection.filter(id => data.some(item => getItemId(item) === id));
}, [selection, data, getItemId]);
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
className: "dataviews-wrapper",
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
@ -32431,7 +32362,7 @@ function DataViews({
actions: actions,
data: data,
onSelectionChange: onSetSelection,
selection: selection,
selection: _selection,
getItemId: getItemId
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(view_actions, {
fields: _fields,
@ -32447,7 +32378,7 @@ function DataViews({
isLoading: isLoading,
onChangeView: onChangeView,
onSelectionChange: onSetSelection,
selection: selection,
selection: _selection,
setOpenedFilter: setOpenedFilter,
view: view
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(pagination, {
@ -32457,7 +32388,7 @@ function DataViews({
}), [constants_LAYOUT_TABLE, constants_LAYOUT_GRID].includes(view.type) && hasPossibleBulkAction && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BulkActionsToolbar, {
data: data,
actions: actions,
selection: selection,
selection: _selection,
onSelectionChange: onSetSelection,
getItemId: getItemId
})]
@ -32569,6 +32500,40 @@ const pages = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ext
});
/* harmony default export */ const library_pages = (pages);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/published.js
/**
* WordPress dependencies
*/
const published = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"
})
});
/* harmony default export */ const library_published = (published);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/scheduled.js
/**
* WordPress dependencies
*/
const scheduled = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"
})
});
/* harmony default export */ const library_scheduled = (scheduled);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/drafts.js
/**
* WordPress dependencies
@ -32581,27 +32546,44 @@ const drafts = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ext
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M8 2H6a2 2 0 0 0-2 2v2.4h1.5V4a.5.5 0 0 1 .5-.5h2V2ZM4 13.6V16a2 2 0 0 0 2 2h2v-1.5H6a.5.5 0 0 1-.5-.5v-2.4H4Zm0-1.2h1.5V7.6H4v4.8ZM9 2v1.5h4V2H9Zm5 0v1.5h2a.5.5 0 0 1 .5.5v2.4H18V4a2 2 0 0 0-2-2h-2Zm4 5.6h-1.5v4.8H18V7.6Zm0 6h-1.5V16a.5.5 0 0 1-.5.5h-2V18h2a2 2 0 0 0 2-2v-2.4ZM13 18v-1.5H9V18h4ZM7 7.25h8v-1.5H7v1.5Zm0 3.25h6V9H7v1.5ZM21.75 19V6h-1.5v13c0 .69-.56 1.25-1.25 1.25H8v1.5h11A2.75 2.75 0 0 0 21.75 19Z"
d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"
})
});
/* harmony default export */ const library_drafts = (drafts);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/inbox.js
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pending.js
/**
* WordPress dependencies
*/
const inbox = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
const pending = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
fillRule: "evenodd",
d: "M6 5.5h12a.5.5 0 01.5.5v7H14a2 2 0 11-4 0H5.5V6a.5.5 0 01.5-.5zm-.5 9V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5v-3.5h-3.337a3.5 3.5 0 01-6.326 0H5.5zM4 13V6a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2v-5z",
clipRule: "evenodd"
clipRule: "evenodd",
d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"
})
});
/* harmony default export */ const library_inbox = (inbox);
/* harmony default export */ const library_pending = (pending);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/not-allowed.js
/**
* WordPress dependencies
*/
const notAllowed = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"
})
});
/* harmony default export */ const not_allowed = (notAllowed);
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/sidebar-dataviews/default-views.js
/**
@ -32653,7 +32635,7 @@ const DEFAULT_VIEWS = {
}, {
title: (0,external_wp_i18n_namespaceObject.__)('Published'),
slug: 'published',
icon: library_pages,
icon: library_published,
view: {
...DEFAULT_PAGE_BASE,
filters: [{
@ -32665,7 +32647,7 @@ const DEFAULT_VIEWS = {
}, {
title: (0,external_wp_i18n_namespaceObject.__)('Scheduled'),
slug: 'future',
icon: library_pages,
icon: library_scheduled,
view: {
...DEFAULT_PAGE_BASE,
filters: [{
@ -32689,7 +32671,7 @@ const DEFAULT_VIEWS = {
}, {
title: (0,external_wp_i18n_namespaceObject.__)('Pending'),
slug: 'pending',
icon: library_inbox,
icon: library_pending,
view: {
...DEFAULT_PAGE_BASE,
filters: [{
@ -32701,7 +32683,7 @@ const DEFAULT_VIEWS = {
}, {
title: (0,external_wp_i18n_namespaceObject.__)('Private'),
slug: 'private',
icon: library_unseen,
icon: not_allowed,
view: {
...DEFAULT_PAGE_BASE,
filters: [{
@ -32738,6 +32720,7 @@ const DEFAULT_VIEWS = {
function AddNewPageModal({
onSave,
onClose
@ -32751,6 +32734,9 @@ function AddNewPageModal({
createErrorNotice,
createSuccessNotice
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_notices_namespaceObject.store);
const {
resolveSelect
} = (0,external_wp_data_namespaceObject.useRegistry)();
async function createPage(event) {
event.preventDefault();
if (isCreatingPage) {
@ -32758,10 +32744,12 @@ function AddNewPageModal({
}
setIsCreatingPage(true);
try {
const pagePostType = await resolveSelect(external_wp_coreData_namespaceObject.store).getPostType('page');
const newPage = await saveEntityRecord('postType', 'page', {
status: 'draft',
title,
slug: title || (0,external_wp_i18n_namespaceObject.__)('No title')
slug: title || (0,external_wp_i18n_namespaceObject.__)('No title'),
content: !!pagePostType.template && pagePostType.template.length ? (0,external_wp_blocks_namespaceObject.serialize)((0,external_wp_blocks_namespaceObject.synchronizeBlocksWithTemplate)([], pagePostType.template)) : undefined
}, {
throwOnError: true
});
@ -32936,6 +32924,7 @@ const useEditPostAction = () => {
const {
usePostActions
} = lock_unlock_unlock(external_wp_editor_namespaceObject.privateApis);
@ -33080,10 +33069,20 @@ function FeaturedImage({
}) : media
});
}
function getItemId(item) {
return item.id.toString();
}
function PagePages() {
var _pages$map, _usePrevious;
const postType = 'page';
const [view, setView] = useView(postType);
const history = page_pages_useHistory();
const {
params: {
postId
}
} = page_pages_useLocation();
const [selection, setSelection] = (0,external_wp_element_namespaceObject.useState)([postId]);
const onSelectionChange = (0,external_wp_element_namespaceObject.useCallback)(items => {
var _params$isCustom;
const {
@ -33129,6 +33128,18 @@ function PagePages() {
totalItems,
totalPages
} = (0,external_wp_coreData_namespaceObject.useEntityRecords)('postType', postType, queryArgs);
const ids = (_pages$map = pages?.map(page => getItemId(page))) !== null && _pages$map !== void 0 ? _pages$map : [];
const prevIds = (_usePrevious = (0,external_wp_compose_namespaceObject.usePrevious)(ids)) !== null && _usePrevious !== void 0 ? _usePrevious : [];
const deletedIds = prevIds.filter(id => !ids.includes(id));
const postIdWasDeleted = deletedIds.includes(postId);
(0,external_wp_element_namespaceObject.useEffect)(() => {
if (postIdWasDeleted) {
history.push({
...history.getLocationWithParams().params,
postId: undefined
});
}
}, [postIdWasDeleted, history]);
const {
records: authors,
isResolving: isLoadingAuthors
@ -33142,17 +33153,20 @@ function PagePages() {
const {
frontPageId,
postsPageId,
addNewLabel
addNewLabel,
canCreatePage
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getEntityRecord,
getPostType
getPostType,
canUser
} = select(external_wp_coreData_namespaceObject.store);
const siteSettings = getEntityRecord('root', 'site');
return {
frontPageId: siteSettings?.page_on_front,
postsPageId: siteSettings?.page_for_posts,
addNewLabel: getPostType('page')?.labels?.add_new_item
addNewLabel: getPostType('page')?.labels?.add_new_item,
canCreatePage: canUser('create', 'pages')
};
});
const fields = (0,external_wp_element_namespaceObject.useMemo)(() => [{
@ -33287,7 +33301,10 @@ function PagePages() {
});
}
}], [authors, view.type, frontPageId, postsPageId]);
const postTypeActions = usePostActions('page');
const postTypeActions = usePostActions({
postType: 'page',
context: 'list'
});
const editAction = useEditPostAction();
const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [editAction, ...postTypeActions], [postTypeActions, editAction]);
const onChangeView = (0,external_wp_element_namespaceObject.useCallback)(newView => {
@ -33317,7 +33334,7 @@ function PagePages() {
};
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Page, {
title: (0,external_wp_i18n_namespaceObject.__)('Pages'),
actions: addNewLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
actions: addNewLabel && canCreatePage && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
variant: "primary",
onClick: openModal,
@ -33336,7 +33353,10 @@ function PagePages() {
isLoading: isLoadingPages || isLoadingAuthors,
view: view,
onChangeView: onChangeView,
onSelectionChange: onSelectionChange
selection: selection,
setSelection: setSelection,
onSelectionChange: onSelectionChange,
getItemId: getItemId
})
});
}
@ -33994,6 +34014,7 @@ function AddNewPattern() {
const history = add_new_pattern_useHistory();
const [showPatternModal, setShowPatternModal] = (0,external_wp_element_namespaceObject.useState)(false);
const [showTemplatePartModal, setShowTemplatePartModal] = (0,external_wp_element_namespaceObject.useState)(false);
// eslint-disable-next-line @wordpress/no-unused-vars-before-return
const {
createPatternFromFile
} = lock_unlock_unlock((0,external_wp_data_namespaceObject.useDispatch)(external_wp_patterns_namespaceObject.store));
@ -34005,16 +34026,21 @@ function AddNewPattern() {
const {
isBlockBasedTheme,
addNewPatternLabel,
addNewTemplatePartLabel
addNewTemplatePartLabel,
canCreatePattern,
canCreateTemplatePart
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getCurrentTheme,
getPostType
getPostType,
canUser
} = select(external_wp_coreData_namespaceObject.store);
return {
isBlockBasedTheme: getCurrentTheme()?.is_block_theme,
addNewPatternLabel: getPostType(PATTERN_TYPES.user)?.labels?.add_new_item,
addNewTemplatePartLabel: getPostType(TEMPLATE_PART_POST_TYPE)?.labels?.add_new_item
addNewTemplatePartLabel: getPostType(TEMPLATE_PART_POST_TYPE)?.labels?.add_new_item,
canCreatePattern: canUser('create', 'blocks'),
canCreateTemplatePart: canUser('create', 'template-parts')
};
}, []);
function handleCreatePattern({
@ -34041,18 +34067,22 @@ function AddNewPattern() {
setShowPatternModal(false);
setShowTemplatePartModal(false);
}
const controls = [{
const controls = [];
if (canCreatePattern) {
controls.push({
icon: library_symbol,
onClick: () => setShowPatternModal(true),
title: addNewPatternLabel
}];
if (isBlockBasedTheme) {
});
}
if (isBlockBasedTheme && canCreateTemplatePart) {
controls.push({
icon: symbol_filled,
onClick: () => setShowTemplatePartModal(true),
title: addNewTemplatePartLabel
});
}
if (canCreatePattern) {
controls.push({
icon: library_upload,
onClick: () => {
@ -34060,10 +34090,14 @@ function AddNewPattern() {
},
title: (0,external_wp_i18n_namespaceObject.__)('Import pattern from JSON')
});
}
const {
categoryMap,
findOrCreateTerm
} = useAddPatternCategory();
if (controls.length === 0) {
return null;
}
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [addNewPatternLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.DropdownMenu, {
controls: controls,
@ -35008,8 +35042,14 @@ function DataviewsPatterns() {
}
return filterSortAndPaginate(patterns, viewWithoutFilters, fields);
}, [patterns, view, fields, type]);
const templatePartActions = page_patterns_usePostActions(TEMPLATE_PART_POST_TYPE);
const patternActions = page_patterns_usePostActions(PATTERN_TYPES.user);
const templatePartActions = page_patterns_usePostActions({
postType: TEMPLATE_PART_POST_TYPE,
context: 'list'
});
const patternActions = page_patterns_usePostActions({
postType: PATTERN_TYPES.user,
context: 'list'
});
const editAction = useEditPostAction();
const actions = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (type === TEMPLATE_PART_POST_TYPE) {
@ -37061,8 +37101,10 @@ function PageTemplates() {
} = page_templates_useLocation();
const {
activeView = 'all',
layout
layout,
postId
} = params;
const [selection, setSelection] = (0,external_wp_element_namespaceObject.useState)([postId]);
const defaultView = (0,external_wp_element_namespaceObject.useMemo)(() => {
const usedType = layout !== null && layout !== void 0 ? layout : page_templates_DEFAULT_VIEW.type;
return {
@ -37190,7 +37232,10 @@ function PageTemplates() {
} = (0,external_wp_element_namespaceObject.useMemo)(() => {
return filterSortAndPaginate(records, view, fields);
}, [records, view, fields]);
const postTypeActions = page_templates_usePostActions(TEMPLATE_POST_TYPE);
const postTypeActions = page_templates_usePostActions({
postType: TEMPLATE_POST_TYPE,
context: 'list'
});
const editAction = useEditPostAction();
const actions = (0,external_wp_element_namespaceObject.useMemo)(() => [editAction, ...postTypeActions], [postTypeActions, editAction]);
const onChangeView = (0,external_wp_element_namespaceObject.useCallback)(newView => {
@ -37220,7 +37265,9 @@ function PageTemplates() {
isLoading: isLoadingData,
view: view,
onChangeView: onChangeView,
onSelectionChange: onSelectionChange
onSelectionChange: onSelectionChange,
selection: selection,
setSelection: setSelection
})
});
}

File diff suppressed because one or more lines are too long

View File

@ -5509,6 +5509,7 @@ const revertTemplate = (template, {
const removeTemplates = items => async ({
registry
}) => {
const isResetting = items.every(item => !!item && (item.has_theme_file || item.templatePart && item.templatePart.has_theme_file));
const promiseResult = await Promise.allSettled(items.map(item => {
return registry.dispatch(external_wp_coreData_namespaceObject.store).deleteEntityRecord('postType', item.type, item.id, {
force: true
@ -5526,10 +5527,11 @@ const removeTemplates = items => async ({
// Depending on how the entity was retrieved its title might be
// an object or simple string.
const title = typeof items[0].title === 'string' ? items[0].title : items[0].title?.rendered;
successMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
(0,external_wp_i18n_namespaceObject.__)('"%s" reset.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title)) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: The template/part's name. */
(0,external_wp_i18n_namespaceObject.__)('"%s" deleted.'), (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(title));
} else {
successMessage = (0,external_wp_i18n_namespaceObject.__)('Items deleted.');
successMessage = isResetting ? (0,external_wp_i18n_namespaceObject.__)('Items reset.') : (0,external_wp_i18n_namespaceObject.__)('Items deleted.');
}
registry.dispatch(external_wp_notices_namespaceObject.store).createSuccessNotice(successMessage, {
type: 'snackbar',
@ -5543,7 +5545,7 @@ const removeTemplates = items => async ({
if (promiseResult[0].reason?.message) {
errorMessage = promiseResult[0].reason.message;
} else {
errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the item.');
errorMessage = isResetting ? (0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the item.') : (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the item.');
}
// If we were trying to delete a multiple templates
} else {
@ -5559,10 +5561,12 @@ const removeTemplates = items => async ({
if (errorMessages.size === 0) {
errorMessage = (0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the items.');
} else if (errorMessages.size === 1) {
errorMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
errorMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
(0,external_wp_i18n_namespaceObject.__)('An error occurred while reverting the items: %s'), [...errorMessages][0]) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: an error message */
(0,external_wp_i18n_namespaceObject.__)('An error occurred while deleting the items: %s'), [...errorMessages][0]);
} else {
(0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
errorMessage = isResetting ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
(0,external_wp_i18n_namespaceObject.__)('Some errors occurred while reverting the items: %s'), [...errorMessages].join(',')) : (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: a list of comma separated error messages */
(0,external_wp_i18n_namespaceObject.__)('Some errors occurred while deleting the items: %s'), [...errorMessages].join(','));
}
}
@ -6345,7 +6349,7 @@ const {
* @return {Component} Wrapped component.
*/
const withPatternOverrideControls = (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(BlockEdit => props => {
const isSupportedBlock = Object.keys(PARTIAL_SYNCING_SUPPORTED_BLOCKS).includes(props.name);
const isSupportedBlock = !!PARTIAL_SYNCING_SUPPORTED_BLOCKS[props.name];
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockEdit, {
...props
@ -12270,6 +12274,7 @@ function PostDiscussionPanel() {
/**
* Internal dependencies
*/
@ -12313,7 +12318,7 @@ function PostExcerpt({
const {
editPost
} = (0,external_wp_data_namespaceObject.useDispatch)(store_store);
const [localExcerpt, setLocalExcerpt] = (0,external_wp_element_namespaceObject.useState)(excerpt);
const [localExcerpt, setLocalExcerpt] = (0,external_wp_element_namespaceObject.useState)((0,external_wp_htmlEntities_namespaceObject.decodeEntities)(excerpt));
const updatePost = value => {
editPost({
[usedAttribute]: value
@ -12442,6 +12447,7 @@ PluginPostExcerpt.Slot = plugin_Slot;
/**
* Internal dependencies
*/
@ -12566,7 +12572,7 @@ function PrivateExcerpt() {
align: "left",
numberOfLines: 4,
truncate: true,
children: excerpt
children: (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(excerpt)
});
if (!allowEditing) {
return excerptText;
@ -19044,45 +19050,6 @@ function isPlainObject(o) {
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/utils/set-nested-value.js
/**
* Sets the value at path of object.
* If a portion of path doesnt exist, its created.
* Arrays are created for missing index properties while objects are created
* for all other missing properties.
*
* This function intentionally mutates the input object.
*
* Inspired by _.set().
*
* @see https://lodash.com/docs/4.17.15#set
*
* @todo Needs to be deduplicated with its copy in `@wordpress/core-data`.
*
* @param {Object} object Object to modify
* @param {Array} path Path of the property to set.
* @param {*} value Value to set.
*/
function setNestedValue(object, path, value) {
if (!object || typeof object !== 'object') {
return object;
}
path.reduce((acc, key, idx) => {
if (acc[key] === undefined) {
if (Number.isInteger(path[idx + 1])) {
acc[key] = [];
} else {
acc[key] = {};
}
}
if (idx === path.length - 1) {
acc[key] = value;
}
return acc[key];
}, object);
return object;
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/global-styles-provider/index.js
/**
* External dependencies
@ -19098,13 +19065,11 @@ function setNestedValue(object, path, value) {
/**
* Internal dependencies
*/
const {
GlobalStylesContext: global_styles_provider_GlobalStylesContext,
cleanEmptyObject
@ -19117,62 +19082,6 @@ function mergeBaseAndUserConfigs(base, user) {
isMergeableObject: isPlainObject
});
}
/**
* Resolves shared block style variation definitions from the user origin
* under their respective block types and registers the block style if required.
*
* @param {Object} userConfig Current user origin global styles data.
* @return {Object} Updated global styles data.
*/
function useResolvedBlockStyleVariationsConfig(userConfig) {
const {
getBlockStyles
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
const sharedVariations = userConfig?.styles?.blocks?.variations;
// Collect block style variation definitions to merge and unregistered
// block styles for automatic registration.
const [userConfigToMerge, unregisteredStyles] = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!sharedVariations) {
return [];
}
const variationsConfigToMerge = {};
const unregisteredBlockStyles = [];
Object.entries(sharedVariations).forEach(([variationName, variation]) => {
if (!variation?.blockTypes?.length) {
return;
}
variation.blockTypes.forEach(blockName => {
const blockStyles = getBlockStyles(blockName);
const registeredBlockStyle = blockStyles.find(({
name
}) => name === variationName);
if (!registeredBlockStyle) {
unregisteredBlockStyles.push([blockName, {
name: variationName,
label: variationName
}]);
}
const path = ['styles', 'blocks', blockName, 'variations', variationName];
setNestedValue(variationsConfigToMerge, path, variation);
});
});
return [variationsConfigToMerge, unregisteredBlockStyles];
}, [sharedVariations, getBlockStyles]);
// Automatically register missing block styles from variations.
(0,external_wp_element_namespaceObject.useEffect)(() => unregisteredStyles?.forEach(unregisteredStyle => (0,external_wp_blocks_namespaceObject.registerBlockStyle)(...unregisteredStyle)), [unregisteredStyles]);
// Merge shared block style variation definitions into overall user config.
const updatedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!userConfigToMerge) {
return userConfig;
}
return cjs_default()(userConfigToMerge, userConfig);
}, [userConfigToMerge, userConfig]);
return updatedConfig;
}
function useGlobalStylesUserConfig() {
const {
globalStylesId,
@ -19233,7 +19142,7 @@ function useGlobalStylesUserConfig() {
settings: cleanEmptyObject(updatedConfig.settings) || {},
_links: cleanEmptyObject(updatedConfig._links) || {}
}, options);
}, [globalStylesId]);
}, [globalStylesId, editEntityRecord, getEditedEntityRecord]);
return [isReady, config, setConfig];
}
function useGlobalStylesBaseConfig() {
@ -19245,22 +19154,21 @@ function useGlobalStylesBaseConfig() {
function useGlobalStylesContext() {
const [isUserConfigReady, userConfig, setUserConfig] = useGlobalStylesUserConfig();
const [isBaseConfigReady, baseConfig] = useGlobalStylesBaseConfig();
const userConfigWithVariations = useResolvedBlockStyleVariationsConfig(userConfig);
const mergedConfig = (0,external_wp_element_namespaceObject.useMemo)(() => {
if (!baseConfig || !userConfigWithVariations) {
if (!baseConfig || !userConfig) {
return {};
}
return mergeBaseAndUserConfigs(baseConfig, userConfigWithVariations);
}, [userConfigWithVariations, baseConfig]);
return mergeBaseAndUserConfigs(baseConfig, userConfig);
}, [userConfig, baseConfig]);
const context = (0,external_wp_element_namespaceObject.useMemo)(() => {
return {
isReady: isUserConfigReady && isBaseConfigReady,
user: userConfigWithVariations,
user: userConfig,
base: baseConfig,
merged: mergedConfig,
setUserConfig
};
}, [mergedConfig, userConfigWithVariations, baseConfig, setUserConfig, isUserConfigReady, isBaseConfigReady]);
}, [mergedConfig, userConfig, baseConfig, setUserConfig, isUserConfigReady, isBaseConfigReady]);
return context;
}
function GlobalStylesProvider({
@ -24903,12 +24811,12 @@ function EditorInterface({
footer: !isPreviewMode && !isDistractionFree && isLargeViewport && showBlockBreadcrumbs && isRichEditingEnabled && blockEditorMode !== 'zoom-out' && mode === 'visual' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.BlockBreadcrumb, {
rootLabelText: documentLabel
}),
actions: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SavePublishPanels, {
actions: !isPreviewMode ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SavePublishPanels, {
closeEntitiesSavedStates: closeEntitiesSavedStates,
isEntitiesSavedStatesOpen: entitiesSavedStatesCallback,
setEntitiesSavedStatesCallback: setEntitiesSavedStatesCallback,
forceIsDirtyPublishPanel: forceIsDirty
}),
}) : undefined,
shortcuts: {
previous: previousShortcut,
next: nextShortcut
@ -25145,6 +25053,15 @@ const deletePostAction = {
});
}
};
function useCanUserEligibilityCheckPostType(capability, resource, action) {
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
return (0,external_wp_element_namespaceObject.useMemo)(() => ({
...action,
isEligible(item) {
return action.isEligible(item) && registry.select(external_wp_coreData_namespaceObject.store).canUser(capability, resource, item.id);
}
}), [action, registry, capability, resource]);
}
const trashPostAction = {
id: 'move-to-trash',
label: (0,external_wp_i18n_namespaceObject.__)('Move to Trash'),
@ -25264,7 +25181,10 @@ const trashPostAction = {
});
}
};
function usePermanentlyDeletePostAction() {
function useTrashPostAction(resource) {
return useCanUserEligibilityCheckPostType('delete', resource, trashPostAction);
}
function usePermanentlyDeletePostAction(resource) {
const {
createSuccessNotice,
createErrorNotice
@ -25272,7 +25192,7 @@ function usePermanentlyDeletePostAction() {
const {
deleteEntityRecord
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
return (0,external_wp_element_namespaceObject.useMemo)(() => ({
const permanentlyDeletePostAction = (0,external_wp_element_namespaceObject.useMemo)(() => ({
id: 'permanently-delete',
label: (0,external_wp_i18n_namespaceObject.__)('Permanently delete'),
supportsBulk: true,
@ -25344,8 +25264,9 @@ function usePermanentlyDeletePostAction() {
}
}
}), [createSuccessNotice, createErrorNotice, deleteEntityRecord]);
return useCanUserEligibilityCheckPostType('delete', resource, permanentlyDeletePostAction);
}
function useRestorePostAction() {
function useRestorePostAction(resource) {
const {
createSuccessNotice,
createErrorNotice
@ -25354,7 +25275,7 @@ function useRestorePostAction() {
editEntityRecord,
saveEditedEntityRecord
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_coreData_namespaceObject.store);
return (0,external_wp_element_namespaceObject.useMemo)(() => ({
const restorePostAction = (0,external_wp_element_namespaceObject.useMemo)(() => ({
id: 'restore',
label: (0,external_wp_i18n_namespaceObject.__)('Restore'),
isPrimary: true,
@ -25434,6 +25355,7 @@ function useRestorePostAction() {
}
}
}), [createSuccessNotice, createErrorNotice, editEntityRecord, saveEditedEntityRecord]);
return useCanUserEligibilityCheckPostType('update', resource, restorePostAction);
}
const viewPostAction = {
id: 'view-post',
@ -25453,6 +25375,7 @@ const viewPostAction = {
};
const postRevisionsAction = {
id: 'view-post-revisions',
context: 'list',
label(items) {
var _items$0$_links$versi;
const revisionsCount = (_items$0$_links$versi = items[0]._links?.['version-history']?.[0]?.count) !== null && _items$0$_links$versi !== void 0 ? _items$0$_links$versi : 0;
@ -25575,6 +25498,9 @@ const renamePostAction = {
});
}
};
function useRenamePostAction(resource) {
return useCanUserEligibilityCheckPostType('update', resource, renamePostAction);
}
const duplicatePostAction = {
id: 'duplicate-post',
label: (0,external_wp_i18n_namespaceObject._x)('Duplicate', 'action label'),
@ -25829,19 +25755,35 @@ const duplicateTemplatePartAction = {
});
}
};
function usePostActions(postType, onActionPerformed) {
function usePostActions({
postType,
onActionPerformed,
context
}) {
const {
postTypeObject
postTypeObject,
resource,
cachedCanUserResolvers,
userCanCreatePostType
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getPostType
getPostType,
getCachedResolvers,
canUser
} = select(external_wp_coreData_namespaceObject.store);
const _postTypeObject = getPostType(postType);
const _resource = _postTypeObject?.rest_base || '';
return {
postTypeObject: getPostType(postType)
postTypeObject: _postTypeObject,
resource: _resource,
cachedCanUserResolvers: getCachedResolvers()?.canUser,
userCanCreatePostType: canUser('create', _resource)
};
}, [postType]);
const permanentlyDeletePostAction = usePermanentlyDeletePostAction();
const restorePostAction = useRestorePostAction();
const trashPostActionForPostType = useTrashPostAction(resource);
const permanentlyDeletePostActionForPostType = usePermanentlyDeletePostAction(resource);
const renamePostActionForPostType = useRenamePostAction(resource);
const restorePostActionForPostType = useRestorePostAction(resource);
const isTemplateOrTemplatePart = [TEMPLATE_POST_TYPE, TEMPLATE_PART_POST_TYPE].includes(postType);
const isPattern = postType === PATTERN_POST_TYPE;
const isLoaded = !!postTypeObject;
@ -25851,7 +25793,19 @@ function usePostActions(postType, onActionPerformed) {
if (!isLoaded) {
return [];
}
const actions = [postTypeObject?.viewable && viewPostAction, supportsRevisions && postRevisionsAction, false ? 0 : false, isTemplateOrTemplatePart && duplicateTemplatePartAction, isPattern && duplicatePatternAction, supportsTitle && renamePostAction, isPattern && exportPatternAsJSONAction, isTemplateOrTemplatePart ? resetTemplateAction : restorePostAction, isTemplateOrTemplatePart || isPattern ? deletePostAction : trashPostAction, !isTemplateOrTemplatePart && permanentlyDeletePostAction].filter(Boolean);
let actions = [postTypeObject?.viewable && viewPostAction, supportsRevisions && postRevisionsAction, false ? 0 : false, isTemplateOrTemplatePart && userCanCreatePostType && duplicateTemplatePartAction, isPattern && userCanCreatePostType && duplicatePatternAction, supportsTitle && renamePostActionForPostType, isPattern && exportPatternAsJSONAction, isTemplateOrTemplatePart ? resetTemplateAction : restorePostActionForPostType, isTemplateOrTemplatePart || isPattern ? deletePostAction : trashPostActionForPostType, !isTemplateOrTemplatePart && permanentlyDeletePostActionForPostType].filter(Boolean);
// Filter actions based on provided context. If not provided
// all actions are returned. We'll have a single entry for getting the actions
// and the consumer should provide the context to filter the actions, if needed.
// Actions should also provide the `context` they support, if it's specific, to
// compare with the provided context to get all the actions.
// Right now the only supported context is `list`.
actions = actions.filter(action => {
if (!action.context) {
return true;
}
return action.context === context;
});
if (onActionPerformed) {
for (let i = 0; i < actions.length; ++i) {
if (actions[i].callback) {
@ -25888,7 +25842,10 @@ function usePostActions(postType, onActionPerformed) {
}
}
return actions;
}, [isTemplateOrTemplatePart, isPattern, postTypeObject?.viewable, permanentlyDeletePostAction, restorePostAction, onActionPerformed, isLoaded, supportsRevisions, supportsTitle]);
// We are making this use memo depend on cachedCanUserResolvers as a way to make the component using this hook re-render
// when user capabilities are resolved. This makes sure the isEligible functions of actions dependent on capabilities are re-evaluated.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isTemplateOrTemplatePart, isPattern, postTypeObject?.viewable, permanentlyDeletePostActionForPostType, restorePostActionForPostType, renamePostActionForPostType, trashPostActionForPostType, onActionPerformed, isLoaded, supportsRevisions, supportsTitle, context, userCanCreatePostType, cachedCanUserResolvers]);
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/post-actions/index.js
@ -25940,7 +25897,10 @@ function PostActions({
postType: _postType
};
}, []);
const allActions = usePostActions(postType, onActionPerformed);
const allActions = usePostActions({
postType,
onActionPerformed
});
const actions = (0,external_wp_element_namespaceObject.useMemo)(() => {
return allActions.filter(action => {
return !action.isEligible || action.isEligible(item);

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
SD: () => (/* reexport */ getContext),
V6: () => (/* reexport */ getElement),
jb: () => (/* reexport */ privateApis),
yT: () => (/* reexport */ splitTask),
M_: () => (/* reexport */ store),
hb: () => (/* reexport */ useCallback),
vJ: () => (/* reexport */ useEffect),
@ -691,7 +692,7 @@ const afterNextFrame = callback => {
*
* @return Promise
*/
const yieldToMain = () => {
const splitTask = () => {
return new Promise(resolve => {
// TODO: Use scheduler.yield() when available.
setTimeout(resolve, 0);
@ -1179,7 +1180,7 @@ const getGlobalAsyncEventDirective = type => {
const eventName = entry.suffix.split('--', 1)[0];
useInit(() => {
const cb = async event => {
await yieldToMain();
await splitTask();
evaluate(entry, event);
};
const globalVar = type === 'window' ? window : document;
@ -1318,7 +1319,7 @@ const getGlobalAsyncEventDirective = type => {
existingHandler(event);
}
entries.forEach(async entry => {
await yieldToMain();
await splitTask();
evaluate(entry, event);
});
};
@ -1783,11 +1784,11 @@ const init = async () => {
const nodes = document.querySelectorAll(`[data-${directivePrefix}-interactive]`);
for (const node of nodes) {
if (!hydratedIslands.has(node)) {
await yieldToMain();
await splitTask();
const fragment = getRegionRootFragment(node);
const vdom = toVdom(node);
initialVdom.set(node, vdom);
await yieldToMain();
await splitTask();
D(vdom, fragment);
}
}
@ -1851,6 +1852,7 @@ var __webpack_exports__getConfig = __webpack_exports__.zj;
var __webpack_exports__getContext = __webpack_exports__.SD;
var __webpack_exports__getElement = __webpack_exports__.V6;
var __webpack_exports__privateApis = __webpack_exports__.jb;
var __webpack_exports__splitTask = __webpack_exports__.yT;
var __webpack_exports__store = __webpack_exports__.M_;
var __webpack_exports__useCallback = __webpack_exports__.hb;
var __webpack_exports__useEffect = __webpack_exports__.vJ;
@ -1861,4 +1863,4 @@ var __webpack_exports__useRef = __webpack_exports__.li;
var __webpack_exports__useState = __webpack_exports__.J0;
var __webpack_exports__useWatch = __webpack_exports__.FH;
var __webpack_exports__withScope = __webpack_exports__.v4;
export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__privateApis as privateApis, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope };
export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__privateApis as privateApis, __webpack_exports__splitTask as splitTask, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope };

File diff suppressed because one or more lines are too long

View File

@ -1412,7 +1412,8 @@ function addBindings(bindings) {
}
function PatternOverridesControls({
attributes,
setAttributes
setAttributes,
name: blockName
}) {
const controlId = (0,external_wp_element_namespaceObject.useId)();
const [showAllowOverridesModal, setShowAllowOverridesModal] = (0,external_wp_element_namespaceObject.useState)(false);
@ -1440,13 +1441,15 @@ function PatternOverridesControls({
if (isConnectedToOtherSources) {
return null;
}
const hasUnsupportedImageAttributes = blockName === 'core/image' && (!!attributes.caption?.length || !!attributes.href?.length);
const helpText = hasUnsupportedImageAttributes ? (0,external_wp_i18n_namespaceObject.__)(`Overrides currently don't support image captions or links. Remove the caption or link first before enabling overrides.`) : (0,external_wp_i18n_namespaceObject.__)('Allow changes to this block throughout instances of this pattern.');
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_blockEditor_namespaceObject.InspectorControls, {
group: "advanced",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.BaseControl, {
id: controlId,
label: (0,external_wp_i18n_namespaceObject.__)('Overrides'),
help: (0,external_wp_i18n_namespaceObject.__)('Allow changes to this block throughout instances of this pattern.'),
help: helpText,
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
__next40pxDefaultSize: true,
className: "pattern-overrides-control__allow-overrides-button",
@ -1459,6 +1462,8 @@ function PatternOverridesControls({
setShowAllowOverridesModal(true);
}
},
disabled: hasUnsupportedImageAttributes,
__experimentalIsFocusable: true,
children: allowOverrides ? (0,external_wp_i18n_namespaceObject.__)('Disable overrides') : (0,external_wp_i18n_namespaceObject.__)('Enable overrides')
})
})

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.6-beta4-58564';
$wp_version = '6.6-beta4-58565';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.