@wordpress/block-library 9.13.0 → 9.13.1-next.a9f418477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/block/edit.js +2 -29
- package/build/block/edit.js.map +1 -1
- package/build/cover/edit/index.js +4 -2
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +6 -4
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/form/index.js +1 -2
- package/build/form/index.js.map +1 -1
- package/build/form/view.js +10 -5
- package/build/form/view.js.map +1 -1
- package/build/list-item/hooks/use-merge.js +2 -2
- package/build/list-item/hooks/use-merge.js.map +1 -1
- package/build/navigation/edit/deleted-navigation-warning.js +9 -2
- package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build/navigation-link/edit.js +1 -2
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-submenu/edit.js +3 -1
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/pattern/recursion-detector.js +0 -1
- package/build/pattern/recursion-detector.js.map +1 -1
- package/build/query/edit/index.js +2 -2
- package/build/query/edit/index.js.map +1 -1
- package/build/query/edit/inspector-controls/author-control.js +0 -1
- package/build/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build/query/edit/inspector-controls/parent-control.js +0 -1
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js +0 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build/query/edit/{pattern-selection-modal.js → pattern-selection.js} +55 -36
- package/build/query/edit/pattern-selection.js.map +1 -0
- package/build/query/edit/query-content.js +5 -8
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/edit/query-placeholder.js +5 -11
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/query/edit/query-toolbar.js +31 -11
- package/build/query/edit/query-toolbar.js.map +1 -1
- package/build/separator/deprecated.js +2 -1
- package/build/separator/deprecated.js.map +1 -1
- package/build/separator/edit.js +29 -4
- package/build/separator/edit.js.map +1 -1
- package/build/separator/index.js +5 -0
- package/build/separator/index.js.map +1 -1
- package/build/separator/save.js +3 -2
- package/build/separator/save.js.map +1 -1
- package/build/template-part/edit/import-controls.js +0 -1
- package/build/template-part/edit/import-controls.js.map +1 -1
- package/build-module/block/edit.js +3 -30
- package/build-module/block/edit.js.map +1 -1
- package/build-module/cover/edit/index.js +4 -2
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +6 -4
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/form/index.js +1 -2
- package/build-module/form/index.js.map +1 -1
- package/build-module/form/view.js +10 -5
- package/build-module/form/view.js.map +1 -1
- package/build-module/list-item/hooks/use-merge.js +2 -2
- package/build-module/list-item/hooks/use-merge.js.map +1 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js +10 -3
- package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build-module/navigation-link/edit.js +1 -2
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +3 -1
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/pattern/recursion-detector.js +0 -1
- package/build-module/pattern/recursion-detector.js.map +1 -1
- package/build-module/query/edit/index.js +1 -1
- package/build-module/query/edit/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/author-control.js +0 -1
- package/build-module/query/edit/inspector-controls/author-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/parent-control.js +0 -1
- package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +0 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build-module/query/edit/{pattern-selection-modal.js → pattern-selection.js} +53 -36
- package/build-module/query/edit/pattern-selection.js.map +1 -0
- package/build-module/query/edit/query-content.js +5 -8
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +6 -12
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/query/edit/query-toolbar.js +31 -13
- package/build-module/query/edit/query-toolbar.js.map +1 -1
- package/build-module/separator/deprecated.js +2 -1
- package/build-module/separator/deprecated.js.map +1 -1
- package/build-module/separator/edit.js +32 -7
- package/build-module/separator/edit.js.map +1 -1
- package/build-module/separator/index.js +5 -0
- package/build-module/separator/index.js.map +1 -1
- package/build-module/separator/save.js +3 -2
- package/build-module/separator/save.js.map +1 -1
- package/build-module/template-part/edit/import-controls.js +0 -1
- package/build-module/template-part/edit/import-controls.js.map +1 -1
- package/build-style/button/style-rtl.css +3 -3
- package/build-style/button/style.css +3 -3
- package/build-style/comments/editor-rtl.css +1 -1
- package/build-style/comments/editor.css +1 -1
- package/build-style/comments/style-rtl.css +1 -1
- package/build-style/comments/style.css +1 -1
- package/build-style/comments-pagination/editor-rtl.css +1 -0
- package/build-style/comments-pagination/editor.css +1 -0
- package/build-style/comments-pagination/style-rtl.css +1 -0
- package/build-style/comments-pagination/style.css +1 -0
- package/build-style/common-rtl.css +17 -17
- package/build-style/common.css +17 -17
- package/build-style/editor-rtl.css +72 -41
- package/build-style/editor.css +72 -41
- package/build-style/gallery/style-rtl.css +2 -2
- package/build-style/gallery/style.css +2 -2
- package/build-style/heading/style-rtl.css +11 -11
- package/build-style/heading/style.css +11 -11
- package/build-style/image/style-rtl.css +4 -3
- package/build-style/image/style.css +4 -3
- package/build-style/latest-comments/style-rtl.css +4 -4
- package/build-style/latest-comments/style.css +4 -4
- package/build-style/latest-posts/style-rtl.css +2 -1
- package/build-style/latest-posts/style.css +2 -1
- package/build-style/more/editor-rtl.css +1 -1
- package/build-style/more/editor.css +1 -1
- package/build-style/nextpage/editor-rtl.css +1 -1
- package/build-style/nextpage/editor.css +1 -1
- package/build-style/post-comments-form/style-rtl.css +2 -2
- package/build-style/post-comments-form/style.css +2 -2
- package/build-style/post-featured-image/editor-rtl.css +27 -27
- package/build-style/post-featured-image/editor.css +27 -27
- package/build-style/pullquote/style-rtl.css +1 -0
- package/build-style/pullquote/style.css +1 -0
- package/build-style/query/editor-rtl.css +30 -0
- package/build-style/query/editor.css +30 -0
- package/build-style/read-more/style-rtl.css +2 -2
- package/build-style/read-more/style.css +2 -2
- package/build-style/social-link/editor-rtl.css +2 -2
- package/build-style/social-link/editor.css +2 -2
- package/build-style/social-links/editor-rtl.css +2 -2
- package/build-style/social-links/editor.css +2 -2
- package/build-style/social-links/style-rtl.css +2 -2
- package/build-style/social-links/style.css +2 -2
- package/build-style/style-rtl.css +55 -51
- package/build-style/style.css +55 -51
- package/build-style/text-columns/style-rtl.css +3 -3
- package/build-style/text-columns/style.css +3 -3
- package/build-types/lock-unlock.d.ts +1 -1
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/package.json +35 -34
- package/src/block/edit.js +6 -51
- package/src/comments-pagination/editor.scss +1 -0
- package/src/comments-pagination/style.scss +1 -0
- package/src/cover/edit/index.js +4 -1
- package/src/cover/edit/inspector-controls.js +10 -3
- package/src/cover/index.php +2 -2
- package/src/form/block.json +1 -2
- package/src/form/index.php +1 -20
- package/src/form/view.js +18 -5
- package/src/image/style.scss +4 -3
- package/src/latest-posts/style.scss +2 -1
- package/src/list-item/hooks/use-merge.js +2 -2
- package/src/missing/test/edit.native.js +0 -1
- package/src/navigation/README.md +1 -0
- package/src/navigation/edit/deleted-navigation-warning.js +11 -2
- package/src/navigation/index.php +9 -35
- package/src/navigation-link/edit.js +0 -6
- package/src/navigation-submenu/edit.js +5 -6
- package/src/navigation-submenu/index.php +17 -1
- package/src/pullquote/style.scss +1 -0
- package/src/query/edit/index.js +1 -1
- package/src/query/edit/{pattern-selection-modal.js → pattern-selection.js} +53 -33
- package/src/query/edit/query-content.js +4 -10
- package/src/query/edit/query-placeholder.js +5 -14
- package/src/query/edit/query-toolbar.js +38 -17
- package/src/query/editor.scss +30 -0
- package/src/search/index.php +3 -3
- package/src/separator/block.json +5 -0
- package/src/separator/deprecated.js +1 -0
- package/src/separator/edit.js +28 -3
- package/src/separator/save.js +2 -2
- package/src/separator/test/edit.js +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/query/edit/pattern-selection-modal.js.map +0 -1
- package/build-module/query/edit/pattern-selection-modal.js.map +0 -1
package/build-style/style.css
CHANGED
|
@@ -169,13 +169,13 @@
|
|
|
169
169
|
font-size: inherit;
|
|
170
170
|
}
|
|
171
171
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
|
|
172
|
-
width: calc(25% -
|
|
172
|
+
width: calc(25% - var(--wp--style--block-gap, 0.5em) * 0.75);
|
|
173
173
|
}
|
|
174
174
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-50 {
|
|
175
|
-
width: calc(50% -
|
|
175
|
+
width: calc(50% - var(--wp--style--block-gap, 0.5em) * 0.5);
|
|
176
176
|
}
|
|
177
177
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-75 {
|
|
178
|
-
width: calc(75% -
|
|
178
|
+
width: calc(75% - var(--wp--style--block-gap, 0.5em) * 0.25);
|
|
179
179
|
}
|
|
180
180
|
.wp-block-buttons > .wp-block-button.wp-block-button__width-100 {
|
|
181
181
|
width: 100%;
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
padding: calc(0.667em + 2px);
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
:where(.wp-block-post-comments input[type=
|
|
539
|
+
:where(.wp-block-post-comments input[type=submit]) {
|
|
540
540
|
border: none;
|
|
541
541
|
}
|
|
542
542
|
|
|
@@ -550,6 +550,7 @@
|
|
|
550
550
|
/*rtl:ignore*/
|
|
551
551
|
margin-right: 0.5em;
|
|
552
552
|
margin-bottom: 0.5em;
|
|
553
|
+
font-size: inherit;
|
|
553
554
|
}
|
|
554
555
|
.wp-block-comments-pagination > .wp-block-comments-pagination-next:last-child,
|
|
555
556
|
.wp-block-comments-pagination > .wp-block-comments-pagination-previous:last-child,
|
|
@@ -1409,7 +1410,7 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
1409
1410
|
}
|
|
1410
1411
|
|
|
1411
1412
|
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
|
|
1412
|
-
width: calc(50% -
|
|
1413
|
+
width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2);
|
|
1413
1414
|
margin: 0;
|
|
1414
1415
|
}
|
|
1415
1416
|
.wp-block-gallery.has-nested-images figure.wp-block-image {
|
|
@@ -1565,7 +1566,7 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
1565
1566
|
}
|
|
1566
1567
|
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
|
|
1567
1568
|
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) {
|
|
1568
|
-
width: calc(50% -
|
|
1569
|
+
width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) * 0.5);
|
|
1569
1570
|
}
|
|
1570
1571
|
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1) {
|
|
1571
1572
|
width: 100%;
|
|
@@ -1595,21 +1596,22 @@ h5.has-background,
|
|
|
1595
1596
|
h6.has-background {
|
|
1596
1597
|
padding: 1.25em 2.375em;
|
|
1597
1598
|
}
|
|
1598
|
-
h1.has-text-align-right[style*=writing-mode]:where([style*=
|
|
1599
|
-
h2.has-text-align-right[style*=writing-mode]:where([style*=
|
|
1600
|
-
h2.has-text-align-left[style*=writing-mode]:where([style*=
|
|
1601
|
-
h3.has-text-align-right[style*=writing-mode]:where([style*=
|
|
1602
|
-
h3.has-text-align-left[style*=writing-mode]:where([style*=
|
|
1603
|
-
h4.has-text-align-right[style*=writing-mode]:where([style*=
|
|
1604
|
-
h4.has-text-align-left[style*=writing-mode]:where([style*=
|
|
1605
|
-
h5.has-text-align-right[style*=writing-mode]:where([style*=
|
|
1606
|
-
h5.has-text-align-left[style*=writing-mode]:where([style*=
|
|
1607
|
-
h6.has-text-align-right[style*=writing-mode]:where([style*=
|
|
1608
|
-
h6.has-text-align-left[style*=writing-mode]:where([style*=
|
|
1599
|
+
h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]), h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),
|
|
1600
|
+
h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),
|
|
1601
|
+
h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),
|
|
1602
|
+
h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),
|
|
1603
|
+
h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),
|
|
1604
|
+
h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),
|
|
1605
|
+
h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),
|
|
1606
|
+
h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),
|
|
1607
|
+
h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),
|
|
1608
|
+
h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),
|
|
1609
|
+
h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
1609
1610
|
rotate: 180deg;
|
|
1610
1611
|
}
|
|
1611
1612
|
|
|
1612
|
-
.wp-block-image a
|
|
1613
|
+
.wp-block-image > a,
|
|
1614
|
+
.wp-block-image > figure > a {
|
|
1613
1615
|
display: inline-block;
|
|
1614
1616
|
}
|
|
1615
1617
|
.wp-block-image img {
|
|
@@ -1636,7 +1638,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1636
1638
|
.wp-block-image.aligncenter {
|
|
1637
1639
|
text-align: center;
|
|
1638
1640
|
}
|
|
1639
|
-
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
1641
|
+
.wp-block-image.alignfull > a, .wp-block-image.alignwide > a {
|
|
1640
1642
|
width: 100%;
|
|
1641
1643
|
}
|
|
1642
1644
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
@@ -1830,7 +1832,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1830
1832
|
height: 100%;
|
|
1831
1833
|
position: absolute;
|
|
1832
1834
|
z-index: 2000000;
|
|
1833
|
-
background-color:
|
|
1835
|
+
background-color: rgb(255, 255, 255);
|
|
1834
1836
|
opacity: 0.9;
|
|
1835
1837
|
}
|
|
1836
1838
|
.wp-lightbox-overlay.active {
|
|
@@ -1934,16 +1936,16 @@ ol.wp-block-latest-comments {
|
|
|
1934
1936
|
box-sizing: border-box;
|
|
1935
1937
|
}
|
|
1936
1938
|
|
|
1937
|
-
:where(.wp-block-latest-comments:not([style*=
|
|
1939
|
+
:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)) {
|
|
1938
1940
|
line-height: 1.1;
|
|
1939
1941
|
}
|
|
1940
1942
|
|
|
1941
|
-
:where(.wp-block-latest-comments:not([style*=
|
|
1943
|
+
:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)) {
|
|
1942
1944
|
line-height: 1.8;
|
|
1943
1945
|
}
|
|
1944
1946
|
|
|
1945
|
-
.has-dates :where(.wp-block-latest-comments:not([style*=
|
|
1946
|
-
.has-excerpts :where(.wp-block-latest-comments:not([style*=
|
|
1947
|
+
.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),
|
|
1948
|
+
.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])) {
|
|
1947
1949
|
line-height: 1.5;
|
|
1948
1950
|
}
|
|
1949
1951
|
|
|
@@ -2061,7 +2063,8 @@ ol.wp-block-latest-comments {
|
|
|
2061
2063
|
font-size: 0.8125em;
|
|
2062
2064
|
}
|
|
2063
2065
|
|
|
2064
|
-
.wp-block-latest-posts__post-excerpt
|
|
2066
|
+
.wp-block-latest-posts__post-excerpt,
|
|
2067
|
+
.wp-block-latest-posts__post-full-content {
|
|
2065
2068
|
margin-top: 0.5em;
|
|
2066
2069
|
margin-bottom: 1em;
|
|
2067
2070
|
}
|
|
@@ -2888,7 +2891,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
2888
2891
|
font-family: inherit;
|
|
2889
2892
|
}
|
|
2890
2893
|
:where(.wp-block-post-comments-form) textarea,
|
|
2891
|
-
:where(.wp-block-post-comments-form) input:where(:not([type=
|
|
2894
|
+
:where(.wp-block-post-comments-form) input:where(:not([type=submit]):not([type=checkbox])) {
|
|
2892
2895
|
padding: calc(0.667em + 2px);
|
|
2893
2896
|
}
|
|
2894
2897
|
|
|
@@ -2913,7 +2916,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
2913
2916
|
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
2914
2917
|
letter-spacing: inherit;
|
|
2915
2918
|
}
|
|
2916
|
-
.wp-block-post-comments-form :where(input[type=
|
|
2919
|
+
.wp-block-post-comments-form :where(input[type=submit]) {
|
|
2917
2920
|
box-shadow: none;
|
|
2918
2921
|
cursor: pointer;
|
|
2919
2922
|
display: inline-block;
|
|
@@ -3159,6 +3162,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
3159
3162
|
|
|
3160
3163
|
.wp-block-pullquote cite {
|
|
3161
3164
|
color: inherit;
|
|
3165
|
+
display: block;
|
|
3162
3166
|
}
|
|
3163
3167
|
|
|
3164
3168
|
.wp-block-post-template {
|
|
@@ -3277,10 +3281,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
|
|
|
3277
3281
|
width: -moz-fit-content;
|
|
3278
3282
|
width: fit-content;
|
|
3279
3283
|
}
|
|
3280
|
-
.wp-block-read-more:where(:not([style*=
|
|
3284
|
+
.wp-block-read-more:where(:not([style*=text-decoration])) {
|
|
3281
3285
|
text-decoration: none;
|
|
3282
3286
|
}
|
|
3283
|
-
.wp-block-read-more:where(:not([style*=
|
|
3287
|
+
.wp-block-read-more:where(:not([style*=text-decoration])):focus, .wp-block-read-more:where(:not([style*=text-decoration])):active {
|
|
3284
3288
|
text-decoration: none;
|
|
3285
3289
|
}
|
|
3286
3290
|
|
|
@@ -3932,8 +3936,8 @@ ul.wp-block-rss.is-grid li {
|
|
|
3932
3936
|
}
|
|
3933
3937
|
|
|
3934
3938
|
:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a) {
|
|
3935
|
-
padding-left:
|
|
3936
|
-
padding-right:
|
|
3939
|
+
padding-left: 0.6666666667em;
|
|
3940
|
+
padding-right: 0.6666666667em;
|
|
3937
3941
|
}
|
|
3938
3942
|
|
|
3939
3943
|
.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label {
|
|
@@ -4142,13 +4146,13 @@ ul.wp-block-rss.is-grid li {
|
|
|
4142
4146
|
margin-right: 0;
|
|
4143
4147
|
}
|
|
4144
4148
|
.wp-block-text-columns.columns-2 .wp-block-column {
|
|
4145
|
-
width:
|
|
4149
|
+
width: 50%;
|
|
4146
4150
|
}
|
|
4147
4151
|
.wp-block-text-columns.columns-3 .wp-block-column {
|
|
4148
|
-
width:
|
|
4152
|
+
width: 33.3333333333%;
|
|
4149
4153
|
}
|
|
4150
4154
|
.wp-block-text-columns.columns-4 .wp-block-column {
|
|
4151
|
-
width:
|
|
4155
|
+
width: 25%;
|
|
4152
4156
|
}
|
|
4153
4157
|
|
|
4154
4158
|
pre.wp-block-verse {
|
|
@@ -4226,25 +4230,25 @@ a[data-fn].fn::after {
|
|
|
4226
4230
|
color: #313131;
|
|
4227
4231
|
}
|
|
4228
4232
|
:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background {
|
|
4229
|
-
background: linear-gradient(135deg,
|
|
4233
|
+
background: linear-gradient(135deg, rgb(0, 208, 132) 0%, rgb(6, 147, 227) 100%);
|
|
4230
4234
|
}
|
|
4231
4235
|
:root .has-purple-crush-gradient-background {
|
|
4232
|
-
background: linear-gradient(135deg,
|
|
4236
|
+
background: linear-gradient(135deg, rgb(52, 226, 228) 0%, rgb(71, 33, 251) 50%, rgb(171, 29, 254) 100%);
|
|
4233
4237
|
}
|
|
4234
4238
|
:root .has-hazy-dawn-gradient-background {
|
|
4235
|
-
background: linear-gradient(135deg,
|
|
4239
|
+
background: linear-gradient(135deg, rgb(250, 172, 168) 0%, rgb(218, 208, 236) 100%);
|
|
4236
4240
|
}
|
|
4237
4241
|
:root .has-subdued-olive-gradient-background {
|
|
4238
|
-
background: linear-gradient(135deg,
|
|
4242
|
+
background: linear-gradient(135deg, rgb(250, 250, 225) 0%, rgb(103, 166, 113) 100%);
|
|
4239
4243
|
}
|
|
4240
4244
|
:root .has-atomic-cream-gradient-background {
|
|
4241
|
-
background: linear-gradient(135deg,
|
|
4245
|
+
background: linear-gradient(135deg, rgb(253, 215, 154) 0%, rgb(0, 74, 89) 100%);
|
|
4242
4246
|
}
|
|
4243
4247
|
:root .has-nightshade-gradient-background {
|
|
4244
|
-
background: linear-gradient(135deg,
|
|
4248
|
+
background: linear-gradient(135deg, rgb(51, 9, 104) 0%, rgb(49, 205, 207) 100%);
|
|
4245
4249
|
}
|
|
4246
4250
|
:root .has-midnight-gradient-background {
|
|
4247
|
-
background: linear-gradient(135deg,
|
|
4251
|
+
background: linear-gradient(135deg, rgb(2, 3, 129) 0%, rgb(40, 116, 252) 100%);
|
|
4248
4252
|
}
|
|
4249
4253
|
|
|
4250
4254
|
.has-regular-font-size {
|
|
@@ -4344,46 +4348,46 @@ html :where(.has-border-color) {
|
|
|
4344
4348
|
border-style: solid;
|
|
4345
4349
|
}
|
|
4346
4350
|
|
|
4347
|
-
html :where([style*=
|
|
4351
|
+
html :where([style*=border-top-color]) {
|
|
4348
4352
|
border-top-style: solid;
|
|
4349
4353
|
}
|
|
4350
4354
|
|
|
4351
|
-
html :where([style*=
|
|
4355
|
+
html :where([style*=border-right-color]) {
|
|
4352
4356
|
border-right-style: solid;
|
|
4353
4357
|
}
|
|
4354
4358
|
|
|
4355
|
-
html :where([style*=
|
|
4359
|
+
html :where([style*=border-bottom-color]) {
|
|
4356
4360
|
border-bottom-style: solid;
|
|
4357
4361
|
}
|
|
4358
4362
|
|
|
4359
|
-
html :where([style*=
|
|
4363
|
+
html :where([style*=border-left-color]) {
|
|
4360
4364
|
border-left-style: solid;
|
|
4361
4365
|
}
|
|
4362
4366
|
|
|
4363
|
-
html :where([style*=
|
|
4367
|
+
html :where([style*=border-width]) {
|
|
4364
4368
|
border-style: solid;
|
|
4365
4369
|
}
|
|
4366
4370
|
|
|
4367
|
-
html :where([style*=
|
|
4371
|
+
html :where([style*=border-top-width]) {
|
|
4368
4372
|
border-top-style: solid;
|
|
4369
4373
|
}
|
|
4370
4374
|
|
|
4371
|
-
html :where([style*=
|
|
4375
|
+
html :where([style*=border-right-width]) {
|
|
4372
4376
|
border-right-style: solid;
|
|
4373
4377
|
}
|
|
4374
4378
|
|
|
4375
|
-
html :where([style*=
|
|
4379
|
+
html :where([style*=border-bottom-width]) {
|
|
4376
4380
|
border-bottom-style: solid;
|
|
4377
4381
|
}
|
|
4378
4382
|
|
|
4379
|
-
html :where([style*=
|
|
4383
|
+
html :where([style*=border-left-width]) {
|
|
4380
4384
|
border-left-style: solid;
|
|
4381
4385
|
}
|
|
4382
4386
|
|
|
4383
4387
|
/**
|
|
4384
4388
|
* Provide baseline responsiveness for images.
|
|
4385
4389
|
*/
|
|
4386
|
-
html :where(img[class*=
|
|
4390
|
+
html :where(img[class*=wp-image-]) {
|
|
4387
4391
|
height: auto;
|
|
4388
4392
|
max-width: 100%;
|
|
4389
4393
|
}
|
|
@@ -115,11 +115,11 @@
|
|
|
115
115
|
margin-left: 0;
|
|
116
116
|
}
|
|
117
117
|
.wp-block-text-columns.columns-2 .wp-block-column {
|
|
118
|
-
width:
|
|
118
|
+
width: 50%;
|
|
119
119
|
}
|
|
120
120
|
.wp-block-text-columns.columns-3 .wp-block-column {
|
|
121
|
-
width:
|
|
121
|
+
width: 33.3333333333%;
|
|
122
122
|
}
|
|
123
123
|
.wp-block-text-columns.columns-4 .wp-block-column {
|
|
124
|
-
width:
|
|
124
|
+
width: 25%;
|
|
125
125
|
}
|
|
@@ -115,11 +115,11 @@
|
|
|
115
115
|
margin-right: 0;
|
|
116
116
|
}
|
|
117
117
|
.wp-block-text-columns.columns-2 .wp-block-column {
|
|
118
|
-
width:
|
|
118
|
+
width: 50%;
|
|
119
119
|
}
|
|
120
120
|
.wp-block-text-columns.columns-3 .wp-block-column {
|
|
121
|
-
width:
|
|
121
|
+
width: 33.3333333333%;
|
|
122
122
|
}
|
|
123
123
|
.wp-block-text-columns.columns-4 .wp-block-column {
|
|
124
|
-
width:
|
|
124
|
+
width: 25%;
|
|
125
125
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const lock: (object:
|
|
1
|
+
export declare const lock: (object: unknown, privateData: unknown) => void, unlock: <T = any>(object: unknown) => T;
|
|
2
2
|
//# sourceMappingURL=lock-unlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AAKA,eAAO,MAAQ,IAAI,mDAAE,MAAM,iCAIzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.13.0",
|
|
3
|
+
"version": "9.13.1-next.a9f418477.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"wpScript": true,
|
|
29
29
|
"wpScriptModuleExports": {
|
|
30
30
|
"./file/view": "./build-module/file/view.js",
|
|
31
|
+
"./form/view": "./build-module/form/view.js",
|
|
31
32
|
"./image/view": "./build-module/image/view.js",
|
|
32
33
|
"./navigation/view": "./build-module/navigation/view.js",
|
|
33
34
|
"./query/view": "./build-module/query/view.js",
|
|
@@ -40,39 +41,39 @@
|
|
|
40
41
|
],
|
|
41
42
|
"dependencies": {
|
|
42
43
|
"@babel/runtime": "7.25.7",
|
|
43
|
-
"@wordpress/a11y": "
|
|
44
|
-
"@wordpress/api-fetch": "
|
|
45
|
-
"@wordpress/autop": "
|
|
46
|
-
"@wordpress/blob": "
|
|
47
|
-
"@wordpress/block-editor": "
|
|
48
|
-
"@wordpress/blocks": "
|
|
44
|
+
"@wordpress/a11y": "^4.13.1-next.a9f418477.0",
|
|
45
|
+
"@wordpress/api-fetch": "^7.13.1-next.a9f418477.0",
|
|
46
|
+
"@wordpress/autop": "^4.13.1-next.a9f418477.0",
|
|
47
|
+
"@wordpress/blob": "^4.13.1-next.a9f418477.0",
|
|
48
|
+
"@wordpress/block-editor": "^14.8.1-next.a9f418477.0",
|
|
49
|
+
"@wordpress/blocks": "^14.2.1-next.a9f418477.0",
|
|
49
50
|
"@wordpress/components": "*",
|
|
50
|
-
"@wordpress/compose": "
|
|
51
|
-
"@wordpress/core-data": "
|
|
52
|
-
"@wordpress/data": "
|
|
53
|
-
"@wordpress/date": "
|
|
54
|
-
"@wordpress/deprecated": "
|
|
55
|
-
"@wordpress/dom": "
|
|
56
|
-
"@wordpress/element": "
|
|
57
|
-
"@wordpress/escape-html": "
|
|
58
|
-
"@wordpress/hooks": "
|
|
59
|
-
"@wordpress/html-entities": "
|
|
60
|
-
"@wordpress/i18n": "
|
|
61
|
-
"@wordpress/icons": "
|
|
62
|
-
"@wordpress/interactivity": "
|
|
63
|
-
"@wordpress/interactivity-router": "
|
|
64
|
-
"@wordpress/keyboard-shortcuts": "
|
|
65
|
-
"@wordpress/keycodes": "
|
|
66
|
-
"@wordpress/notices": "
|
|
67
|
-
"@wordpress/patterns": "
|
|
68
|
-
"@wordpress/primitives": "
|
|
69
|
-
"@wordpress/private-apis": "
|
|
70
|
-
"@wordpress/reusable-blocks": "
|
|
71
|
-
"@wordpress/rich-text": "
|
|
72
|
-
"@wordpress/server-side-render": "
|
|
73
|
-
"@wordpress/url": "
|
|
74
|
-
"@wordpress/viewport": "
|
|
75
|
-
"@wordpress/wordcount": "
|
|
51
|
+
"@wordpress/compose": "^7.13.1-next.a9f418477.0",
|
|
52
|
+
"@wordpress/core-data": "^7.13.1-next.a9f418477.0",
|
|
53
|
+
"@wordpress/data": "^10.13.1-next.a9f418477.0",
|
|
54
|
+
"@wordpress/date": "^5.13.1-next.a9f418477.0",
|
|
55
|
+
"@wordpress/deprecated": "^4.13.1-next.a9f418477.0",
|
|
56
|
+
"@wordpress/dom": "^4.13.1-next.a9f418477.0",
|
|
57
|
+
"@wordpress/element": "^6.13.1-next.a9f418477.0",
|
|
58
|
+
"@wordpress/escape-html": "^3.13.1-next.a9f418477.0",
|
|
59
|
+
"@wordpress/hooks": "^4.13.1-next.a9f418477.0",
|
|
60
|
+
"@wordpress/html-entities": "^4.13.1-next.a9f418477.0",
|
|
61
|
+
"@wordpress/i18n": "^5.13.1-next.a9f418477.0",
|
|
62
|
+
"@wordpress/icons": "^10.13.1-next.a9f418477.0",
|
|
63
|
+
"@wordpress/interactivity": "^6.13.1-next.a9f418477.0",
|
|
64
|
+
"@wordpress/interactivity-router": "^2.13.1-next.a9f418477.0",
|
|
65
|
+
"@wordpress/keyboard-shortcuts": "^5.13.1-next.a9f418477.0",
|
|
66
|
+
"@wordpress/keycodes": "^4.13.1-next.a9f418477.0",
|
|
67
|
+
"@wordpress/notices": "^5.13.1-next.a9f418477.0",
|
|
68
|
+
"@wordpress/patterns": "^2.13.1-next.a9f418477.0",
|
|
69
|
+
"@wordpress/primitives": "^4.13.1-next.a9f418477.0",
|
|
70
|
+
"@wordpress/private-apis": "^1.13.1-next.a9f418477.0",
|
|
71
|
+
"@wordpress/reusable-blocks": "^5.13.1-next.a9f418477.0",
|
|
72
|
+
"@wordpress/rich-text": "^7.13.1-next.a9f418477.0",
|
|
73
|
+
"@wordpress/server-side-render": "^5.13.1-next.a9f418477.0",
|
|
74
|
+
"@wordpress/url": "^4.13.1-next.a9f418477.0",
|
|
75
|
+
"@wordpress/viewport": "^6.13.1-next.a9f418477.0",
|
|
76
|
+
"@wordpress/wordcount": "^4.13.1-next.a9f418477.0",
|
|
76
77
|
"change-case": "^4.1.2",
|
|
77
78
|
"clsx": "^2.1.1",
|
|
78
79
|
"colord": "^2.7.0",
|
|
@@ -90,5 +91,5 @@
|
|
|
90
91
|
"publishConfig": {
|
|
91
92
|
"access": "public"
|
|
92
93
|
},
|
|
93
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "c1a8f3e9cada3b7d8342d1d2595c2dac0433111d"
|
|
94
95
|
}
|
package/src/block/edit.js
CHANGED
|
@@ -7,7 +7,7 @@ import clsx from 'clsx';
|
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
9
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
10
|
-
import { useRef, useMemo
|
|
10
|
+
import { useRef, useMemo } from '@wordpress/element';
|
|
11
11
|
import {
|
|
12
12
|
useEntityRecord,
|
|
13
13
|
store as coreStore,
|
|
@@ -37,12 +37,10 @@ import { getBlockBindingsSource } from '@wordpress/blocks';
|
|
|
37
37
|
/**
|
|
38
38
|
* Internal dependencies
|
|
39
39
|
*/
|
|
40
|
-
import { name as patternBlockName } from './index';
|
|
41
40
|
import { unlock } from '../lock-unlock';
|
|
42
41
|
|
|
43
42
|
const { useLayoutClasses } = unlock( blockEditorPrivateApis );
|
|
44
|
-
const {
|
|
45
|
-
unlock( patternsPrivateApis );
|
|
43
|
+
const { hasOverridableBlocks } = unlock( patternsPrivateApis );
|
|
46
44
|
|
|
47
45
|
const fullAlignments = [ 'full', 'wide', 'left', 'right' ];
|
|
48
46
|
|
|
@@ -75,22 +73,6 @@ const useInferredLayout = ( blocks, parentLayout ) => {
|
|
|
75
73
|
}, [ blocks, parentLayout ] );
|
|
76
74
|
};
|
|
77
75
|
|
|
78
|
-
function setBlockEditMode( setEditMode, blocks, mode ) {
|
|
79
|
-
blocks.forEach( ( block ) => {
|
|
80
|
-
const editMode =
|
|
81
|
-
mode ||
|
|
82
|
-
( isOverridableBlock( block ) ? 'contentOnly' : 'disabled' );
|
|
83
|
-
setEditMode( block.clientId, editMode );
|
|
84
|
-
|
|
85
|
-
setBlockEditMode(
|
|
86
|
-
setEditMode,
|
|
87
|
-
block.innerBlocks,
|
|
88
|
-
// Disable editing for nested patterns.
|
|
89
|
-
block.name === patternBlockName ? 'disabled' : mode
|
|
90
|
-
);
|
|
91
|
-
} );
|
|
92
|
-
}
|
|
93
|
-
|
|
94
76
|
function RecursionWarning() {
|
|
95
77
|
const blockProps = useBlockProps();
|
|
96
78
|
return (
|
|
@@ -171,7 +153,6 @@ function ReusableBlockEdit( {
|
|
|
171
153
|
name,
|
|
172
154
|
attributes: { ref, content },
|
|
173
155
|
__unstableParentLayout: parentLayout,
|
|
174
|
-
clientId: patternClientId,
|
|
175
156
|
setAttributes,
|
|
176
157
|
} ) {
|
|
177
158
|
const { record, hasResolved } = useEntityRecord(
|
|
@@ -184,49 +165,24 @@ function ReusableBlockEdit( {
|
|
|
184
165
|
} );
|
|
185
166
|
const isMissing = hasResolved && ! record;
|
|
186
167
|
|
|
187
|
-
const {
|
|
168
|
+
const { __unstableMarkLastChangeAsPersistent } =
|
|
188
169
|
useDispatch( blockEditorStore );
|
|
189
170
|
|
|
190
|
-
const {
|
|
191
|
-
innerBlocks,
|
|
192
|
-
onNavigateToEntityRecord,
|
|
193
|
-
editingMode,
|
|
194
|
-
hasPatternOverridesSource,
|
|
195
|
-
} = useSelect(
|
|
171
|
+
const { onNavigateToEntityRecord, hasPatternOverridesSource } = useSelect(
|
|
196
172
|
( select ) => {
|
|
197
|
-
const {
|
|
198
|
-
select( blockEditorStore );
|
|
173
|
+
const { getSettings } = select( blockEditorStore );
|
|
199
174
|
// For editing link to the site editor if the theme and user permissions support it.
|
|
200
175
|
return {
|
|
201
|
-
innerBlocks: getBlocks( patternClientId ),
|
|
202
176
|
onNavigateToEntityRecord:
|
|
203
177
|
getSettings().onNavigateToEntityRecord,
|
|
204
|
-
editingMode: getBlockEditingMode( patternClientId ),
|
|
205
178
|
hasPatternOverridesSource: !! getBlockBindingsSource(
|
|
206
179
|
'core/pattern-overrides'
|
|
207
180
|
),
|
|
208
181
|
};
|
|
209
182
|
},
|
|
210
|
-
[
|
|
183
|
+
[]
|
|
211
184
|
);
|
|
212
185
|
|
|
213
|
-
// Sync the editing mode of the pattern block with the inner blocks.
|
|
214
|
-
useEffect( () => {
|
|
215
|
-
setBlockEditMode(
|
|
216
|
-
setBlockEditingMode,
|
|
217
|
-
innerBlocks,
|
|
218
|
-
// Disable editing if the pattern itself is disabled.
|
|
219
|
-
editingMode === 'disabled' || ! hasPatternOverridesSource
|
|
220
|
-
? 'disabled'
|
|
221
|
-
: undefined
|
|
222
|
-
);
|
|
223
|
-
}, [
|
|
224
|
-
editingMode,
|
|
225
|
-
innerBlocks,
|
|
226
|
-
setBlockEditingMode,
|
|
227
|
-
hasPatternOverridesSource,
|
|
228
|
-
] );
|
|
229
|
-
|
|
230
186
|
const canOverrideBlocks = useMemo(
|
|
231
187
|
() => hasPatternOverridesSource && hasOverridableBlocks( blocks ),
|
|
232
188
|
[ hasPatternOverridesSource, blocks ]
|
|
@@ -244,7 +200,6 @@ function ReusableBlockEdit( {
|
|
|
244
200
|
} );
|
|
245
201
|
|
|
246
202
|
const innerBlocksProps = useInnerBlocksProps( blockProps, {
|
|
247
|
-
templateLock: 'all',
|
|
248
203
|
layout,
|
|
249
204
|
value: blocks,
|
|
250
205
|
onInput: NOOP,
|
package/src/cover/edit/index.js
CHANGED
|
@@ -120,7 +120,9 @@ function CoverEdit( {
|
|
|
120
120
|
select( coreStore ).getMedia( featuredImage, { context: 'view' } ),
|
|
121
121
|
[ featuredImage ]
|
|
122
122
|
);
|
|
123
|
-
const mediaUrl =
|
|
123
|
+
const mediaUrl =
|
|
124
|
+
media?.media_details?.sizes?.[ sizeSlug ]?.source_url ??
|
|
125
|
+
media?.source_url;
|
|
124
126
|
|
|
125
127
|
// User can change the featured image outside of the block, but we still
|
|
126
128
|
// need to update the block when that happens. This effect should only
|
|
@@ -451,6 +453,7 @@ function CoverEdit( {
|
|
|
451
453
|
toggleUseFeaturedImage={ toggleUseFeaturedImage }
|
|
452
454
|
updateDimRatio={ onUpdateDimRatio }
|
|
453
455
|
onClearMedia={ onClearMedia }
|
|
456
|
+
featuredImage={ media }
|
|
454
457
|
/>
|
|
455
458
|
);
|
|
456
459
|
|
|
@@ -96,6 +96,7 @@ export default function CoverInspectorControls( {
|
|
|
96
96
|
coverRef,
|
|
97
97
|
currentSettings,
|
|
98
98
|
updateDimRatio,
|
|
99
|
+
featuredImage,
|
|
99
100
|
} ) {
|
|
100
101
|
const {
|
|
101
102
|
useFeaturedImage,
|
|
@@ -132,8 +133,12 @@ export default function CoverInspectorControls( {
|
|
|
132
133
|
[ id, isImageBackground ]
|
|
133
134
|
);
|
|
134
135
|
|
|
136
|
+
const currentBackgroundImage = useFeaturedImage ? featuredImage : image;
|
|
137
|
+
|
|
135
138
|
function updateImage( newSizeSlug ) {
|
|
136
|
-
const newUrl =
|
|
139
|
+
const newUrl =
|
|
140
|
+
currentBackgroundImage?.media_details?.sizes?.[ newSizeSlug ]
|
|
141
|
+
?.source_url;
|
|
137
142
|
if ( ! newUrl ) {
|
|
138
143
|
return null;
|
|
139
144
|
}
|
|
@@ -146,7 +151,9 @@ export default function CoverInspectorControls( {
|
|
|
146
151
|
|
|
147
152
|
const imageSizeOptions = imageSizes
|
|
148
153
|
?.filter(
|
|
149
|
-
( { slug } ) =>
|
|
154
|
+
( { slug } ) =>
|
|
155
|
+
currentBackgroundImage?.media_details?.sizes?.[ slug ]
|
|
156
|
+
?.source_url
|
|
150
157
|
)
|
|
151
158
|
?.map( ( { name, slug } ) => ( { value: slug, label: name } ) );
|
|
152
159
|
|
|
@@ -321,7 +328,7 @@ export default function CoverInspectorControls( {
|
|
|
321
328
|
/>
|
|
322
329
|
</ToolsPanelItem>
|
|
323
330
|
) }
|
|
324
|
-
{
|
|
331
|
+
{ !! imageSizeOptions?.length && (
|
|
325
332
|
<ResolutionTool
|
|
326
333
|
value={ sizeSlug }
|
|
327
334
|
onChange={ updateImage }
|
package/src/cover/index.php
CHANGED
|
@@ -35,12 +35,12 @@ function render_block_core_cover( $attributes, $content ) {
|
|
|
35
35
|
$attr['style'] = 'object-position:' . $object_position . ';';
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
$image = get_the_post_thumbnail( null, 'post-thumbnail', $attr );
|
|
38
|
+
$image = get_the_post_thumbnail( null, $attributes['sizeSlug'] ?? 'post-thumbnail', $attr );
|
|
39
39
|
} else {
|
|
40
40
|
if ( in_the_loop() ) {
|
|
41
41
|
update_post_thumbnail_cache();
|
|
42
42
|
}
|
|
43
|
-
$current_featured_image = get_the_post_thumbnail_url();
|
|
43
|
+
$current_featured_image = get_the_post_thumbnail_url( null, $attributes['sizeSlug'] ?? null );
|
|
44
44
|
if ( ! $current_featured_image ) {
|
|
45
45
|
return $content;
|
|
46
46
|
}
|