@wordpress/block-library 9.1.0 → 9.2.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/CHANGELOG.md +19 -17
- package/build/button/index.js +1 -0
- package/build/button/index.js.map +1 -1
- package/build/image/image.js +3 -2
- package/build/image/image.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/quote/edit.js +1 -0
- package/build/quote/edit.js.map +1 -1
- package/build/site-tagline/index.js +1 -0
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/index.js +1 -0
- package/build/site-title/index.js.map +1 -1
- package/build/social-link/edit.js +4 -18
- package/build/social-link/edit.js.map +1 -1
- package/build/table-of-contents/index.js +1 -1
- package/build/utils/caption.js +2 -1
- package/build/utils/caption.js.map +1 -1
- package/build/verse/index.js +1 -0
- package/build/verse/index.js.map +1 -1
- package/build-module/button/index.js +1 -0
- package/build-module/button/index.js.map +1 -1
- package/build-module/image/image.js +3 -2
- package/build-module/image/image.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/quote/edit.js +1 -0
- package/build-module/quote/edit.js.map +1 -1
- package/build-module/site-tagline/index.js +1 -0
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/index.js +1 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/social-link/edit.js +5 -19
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/table-of-contents/index.js +1 -1
- package/build-module/utils/caption.js +2 -1
- package/build-module/utils/caption.js.map +1 -1
- package/build-module/verse/index.js +1 -0
- package/build-module/verse/index.js.map +1 -1
- package/build-style/audio/style-rtl.css +1 -1
- package/build-style/audio/style.css +1 -1
- package/build-style/audio/theme-rtl.css +2 -2
- package/build-style/audio/theme.css +2 -2
- package/build-style/common-rtl.css +1 -3
- package/build-style/common.css +1 -3
- package/build-style/editor-rtl.css +0 -12
- package/build-style/editor.css +0 -12
- package/build-style/embed/style-rtl.css +1 -1
- package/build-style/embed/style.css +1 -1
- package/build-style/embed/theme-rtl.css +2 -2
- package/build-style/embed/theme.css +2 -2
- package/build-style/image/editor-rtl.css +0 -12
- package/build-style/image/editor.css +0 -12
- package/build-style/image/style-rtl.css +7 -1
- package/build-style/image/style.css +7 -1
- package/build-style/media-text/style-rtl.css +4 -0
- package/build-style/media-text/style.css +4 -0
- package/build-style/navigation/style-rtl.css +1 -0
- package/build-style/navigation/style.css +1 -0
- package/build-style/reset-rtl.css +1 -5
- package/build-style/reset.css +1 -5
- package/build-style/search/style-rtl.css +1 -2
- package/build-style/search/style.css +1 -2
- package/build-style/style-rtl.css +17 -9
- package/build-style/style.css +17 -9
- package/build-style/table/theme-rtl.css +2 -2
- package/build-style/table/theme.css +2 -2
- package/build-style/theme-rtl.css +8 -8
- package/build-style/theme.css +8 -8
- package/build-style/video/style-rtl.css +1 -1
- package/build-style/video/style.css +1 -1
- package/build-style/video/theme-rtl.css +2 -2
- package/build-style/video/theme.css +2 -2
- package/package.json +35 -35
- package/src/audio/style.scss +1 -1
- package/src/audio/theme.scss +1 -1
- package/src/button/block.json +1 -0
- package/src/embed/style.scss +1 -1
- package/src/embed/theme.scss +1 -1
- package/src/image/editor.scss +0 -13
- package/src/image/image.js +9 -2
- package/src/image/style.scss +11 -1
- package/src/lock-unlock.js +1 -1
- package/src/media-text/index.php +68 -18
- package/src/media-text/style.scss +4 -0
- package/src/navigation/index.php +5 -3
- package/src/navigation/style.scss +1 -0
- package/src/paragraph/test/__snapshots__/edit.native.js.snap +30 -0
- package/src/paragraph/test/edit.native.js +99 -0
- package/src/post-date/index.php +1 -1
- package/src/quote/edit.js +1 -0
- package/src/reset.scss +11 -12
- package/src/site-tagline/block.json +1 -0
- package/src/site-title/block.json +1 -0
- package/src/social-link/edit.js +0 -20
- package/src/table/theme.scss +1 -1
- package/src/table-of-contents/block.json +1 -1
- package/src/template-part/index.php +1 -1
- package/src/utils/caption.js +5 -1
- package/src/verse/block.json +1 -0
- package/src/video/style.scss +1 -1
- package/src/video/theme.scss +1 -1
|
@@ -92,11 +92,7 @@
|
|
|
92
92
|
* These are only output in the editor, but styles here are prefixed .editor-styles-wrapper and affect the theming
|
|
93
93
|
* of the editor by themes.
|
|
94
94
|
*/
|
|
95
|
-
:where(.editor-styles-wrapper) {
|
|
96
|
-
/**
|
|
97
|
-
* The following styles revert to the browser defaults overriding the WPAdmin styles.
|
|
98
|
-
* This is only needed while the block editor is not being loaded in an iframe.
|
|
99
|
-
*/
|
|
95
|
+
html :where(.editor-styles-wrapper) {
|
|
100
96
|
font-family: serif;
|
|
101
97
|
font-size: initial;
|
|
102
98
|
line-height: initial;
|
package/build-style/reset.css
CHANGED
|
@@ -92,11 +92,7 @@
|
|
|
92
92
|
* These are only output in the editor, but styles here are prefixed .editor-styles-wrapper and affect the theming
|
|
93
93
|
* of the editor by themes.
|
|
94
94
|
*/
|
|
95
|
-
:where(.editor-styles-wrapper) {
|
|
96
|
-
/**
|
|
97
|
-
* The following styles revert to the browser defaults overriding the WPAdmin styles.
|
|
98
|
-
* This is only needed while the block editor is not being loaded in an iframe.
|
|
99
|
-
*/
|
|
95
|
+
html :where(.editor-styles-wrapper) {
|
|
100
96
|
font-family: serif;
|
|
101
97
|
font-size: initial;
|
|
102
98
|
line-height: initial;
|
|
@@ -126,8 +126,7 @@
|
|
|
126
126
|
min-width: 3rem;
|
|
127
127
|
border: 1px solid #949494;
|
|
128
128
|
text-decoration: unset !important;
|
|
129
|
-
|
|
130
|
-
appearance: initial;
|
|
129
|
+
appearance: initial;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
.wp-block-search.wp-block-search__button-only .wp-block-search__button {
|
|
@@ -126,8 +126,7 @@
|
|
|
126
126
|
min-width: 3rem;
|
|
127
127
|
border: 1px solid #949494;
|
|
128
128
|
text-decoration: unset !important;
|
|
129
|
-
|
|
130
|
-
appearance: initial;
|
|
129
|
+
appearance: initial;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
.wp-block-search.wp-block-search__button-only .wp-block-search__button {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
.wp-block-audio {
|
|
110
110
|
box-sizing: border-box;
|
|
111
111
|
}
|
|
112
|
-
.wp-block-audio figcaption {
|
|
112
|
+
.wp-block-audio :where(figcaption) {
|
|
113
113
|
margin-top: 0.5em;
|
|
114
114
|
margin-bottom: 1em;
|
|
115
115
|
}
|
|
@@ -1010,7 +1010,7 @@ section.wp-block-cover-image > h2,
|
|
|
1010
1010
|
.wp-block-embed {
|
|
1011
1011
|
overflow-wrap: break-word;
|
|
1012
1012
|
}
|
|
1013
|
-
.wp-block-embed figcaption {
|
|
1013
|
+
.wp-block-embed :where(figcaption) {
|
|
1014
1014
|
margin-top: 0.5em;
|
|
1015
1015
|
margin-bottom: 1em;
|
|
1016
1016
|
}
|
|
@@ -1521,6 +1521,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1521
1521
|
rotate: 180deg;
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
|
+
.wp-block-image a {
|
|
1525
|
+
display: inline-block;
|
|
1526
|
+
}
|
|
1524
1527
|
.wp-block-image img {
|
|
1525
1528
|
height: auto;
|
|
1526
1529
|
max-width: 100%;
|
|
@@ -1537,6 +1540,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1537
1540
|
.wp-block-image.aligncenter {
|
|
1538
1541
|
text-align: center;
|
|
1539
1542
|
}
|
|
1543
|
+
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
1544
|
+
width: 100%;
|
|
1545
|
+
}
|
|
1540
1546
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
1541
1547
|
height: auto;
|
|
1542
1548
|
width: 100%;
|
|
@@ -1572,7 +1578,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1572
1578
|
margin-right: auto;
|
|
1573
1579
|
margin-left: auto;
|
|
1574
1580
|
}
|
|
1575
|
-
.wp-block-image figcaption {
|
|
1581
|
+
.wp-block-image :where(figcaption) {
|
|
1576
1582
|
margin-top: 0.5em;
|
|
1577
1583
|
margin-bottom: 1em;
|
|
1578
1584
|
}
|
|
@@ -2027,6 +2033,10 @@ ul {
|
|
|
2027
2033
|
grid-row: 1;
|
|
2028
2034
|
}
|
|
2029
2035
|
|
|
2036
|
+
.wp-block-media-text__media a {
|
|
2037
|
+
display: inline-block;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2030
2040
|
.wp-block-media-text__media img,
|
|
2031
2041
|
.wp-block-media-text__media video {
|
|
2032
2042
|
height: auto;
|
|
@@ -2275,6 +2285,7 @@ button.wp-block-navigation-item__content {
|
|
|
2275
2285
|
color: currentColor;
|
|
2276
2286
|
font-size: inherit;
|
|
2277
2287
|
font-family: inherit;
|
|
2288
|
+
letter-spacing: inherit;
|
|
2278
2289
|
line-height: inherit;
|
|
2279
2290
|
font-style: inherit;
|
|
2280
2291
|
font-weight: inherit;
|
|
@@ -3195,8 +3206,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
3195
3206
|
min-width: 3rem;
|
|
3196
3207
|
border: 1px solid #949494;
|
|
3197
3208
|
text-decoration: unset !important;
|
|
3198
|
-
|
|
3199
|
-
appearance: initial;
|
|
3209
|
+
appearance: initial;
|
|
3200
3210
|
}
|
|
3201
3211
|
|
|
3202
3212
|
.wp-block-search.wp-block-search__button-only .wp-block-search__button {
|
|
@@ -3978,7 +3988,7 @@ pre.wp-block-verse {
|
|
|
3978
3988
|
.wp-block-video.aligncenter {
|
|
3979
3989
|
text-align: center;
|
|
3980
3990
|
}
|
|
3981
|
-
.wp-block-video figcaption {
|
|
3991
|
+
.wp-block-video :where(figcaption) {
|
|
3982
3992
|
margin-top: 0.5em;
|
|
3983
3993
|
margin-bottom: 1em;
|
|
3984
3994
|
}
|
|
@@ -4105,7 +4115,6 @@ a[data-fn].fn::after {
|
|
|
4105
4115
|
.screen-reader-text {
|
|
4106
4116
|
border: 0;
|
|
4107
4117
|
clip: rect(1px, 1px, 1px, 1px);
|
|
4108
|
-
-webkit-clip-path: inset(50%);
|
|
4109
4118
|
clip-path: inset(50%);
|
|
4110
4119
|
height: 1px;
|
|
4111
4120
|
margin: -1px;
|
|
@@ -4119,8 +4128,7 @@ a[data-fn].fn::after {
|
|
|
4119
4128
|
.screen-reader-text:focus {
|
|
4120
4129
|
background-color: #ddd;
|
|
4121
4130
|
clip: auto !important;
|
|
4122
|
-
|
|
4123
|
-
clip-path: none;
|
|
4131
|
+
clip-path: none;
|
|
4124
4132
|
color: #444;
|
|
4125
4133
|
display: block;
|
|
4126
4134
|
font-size: 1em;
|
package/build-style/style.css
CHANGED
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
.wp-block-audio {
|
|
110
110
|
box-sizing: border-box;
|
|
111
111
|
}
|
|
112
|
-
.wp-block-audio figcaption {
|
|
112
|
+
.wp-block-audio :where(figcaption) {
|
|
113
113
|
margin-top: 0.5em;
|
|
114
114
|
margin-bottom: 1em;
|
|
115
115
|
}
|
|
@@ -1017,7 +1017,7 @@ section.wp-block-cover-image > h2,
|
|
|
1017
1017
|
.wp-block-embed {
|
|
1018
1018
|
overflow-wrap: break-word;
|
|
1019
1019
|
}
|
|
1020
|
-
.wp-block-embed figcaption {
|
|
1020
|
+
.wp-block-embed :where(figcaption) {
|
|
1021
1021
|
margin-top: 0.5em;
|
|
1022
1022
|
margin-bottom: 1em;
|
|
1023
1023
|
}
|
|
@@ -1529,6 +1529,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1529
1529
|
rotate: 180deg;
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
|
+
.wp-block-image a {
|
|
1533
|
+
display: inline-block;
|
|
1534
|
+
}
|
|
1532
1535
|
.wp-block-image img {
|
|
1533
1536
|
height: auto;
|
|
1534
1537
|
max-width: 100%;
|
|
@@ -1545,6 +1548,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1545
1548
|
.wp-block-image.aligncenter {
|
|
1546
1549
|
text-align: center;
|
|
1547
1550
|
}
|
|
1551
|
+
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
1552
|
+
width: 100%;
|
|
1553
|
+
}
|
|
1548
1554
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
1549
1555
|
height: auto;
|
|
1550
1556
|
width: 100%;
|
|
@@ -1586,7 +1592,7 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1586
1592
|
margin-left: auto;
|
|
1587
1593
|
margin-right: auto;
|
|
1588
1594
|
}
|
|
1589
|
-
.wp-block-image figcaption {
|
|
1595
|
+
.wp-block-image :where(figcaption) {
|
|
1590
1596
|
margin-top: 0.5em;
|
|
1591
1597
|
margin-bottom: 1em;
|
|
1592
1598
|
}
|
|
@@ -2057,6 +2063,10 @@ ul {
|
|
|
2057
2063
|
/*!rtl:end:ignore*/
|
|
2058
2064
|
}
|
|
2059
2065
|
|
|
2066
|
+
.wp-block-media-text__media a {
|
|
2067
|
+
display: inline-block;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2060
2070
|
.wp-block-media-text__media img,
|
|
2061
2071
|
.wp-block-media-text__media video {
|
|
2062
2072
|
height: auto;
|
|
@@ -2305,6 +2315,7 @@ button.wp-block-navigation-item__content {
|
|
|
2305
2315
|
color: currentColor;
|
|
2306
2316
|
font-size: inherit;
|
|
2307
2317
|
font-family: inherit;
|
|
2318
|
+
letter-spacing: inherit;
|
|
2308
2319
|
line-height: inherit;
|
|
2309
2320
|
font-style: inherit;
|
|
2310
2321
|
font-weight: inherit;
|
|
@@ -3229,8 +3240,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
3229
3240
|
min-width: 3rem;
|
|
3230
3241
|
border: 1px solid #949494;
|
|
3231
3242
|
text-decoration: unset !important;
|
|
3232
|
-
|
|
3233
|
-
appearance: initial;
|
|
3243
|
+
appearance: initial;
|
|
3234
3244
|
}
|
|
3235
3245
|
|
|
3236
3246
|
.wp-block-search.wp-block-search__button-only .wp-block-search__button {
|
|
@@ -4013,7 +4023,7 @@ pre.wp-block-verse {
|
|
|
4013
4023
|
.wp-block-video.aligncenter {
|
|
4014
4024
|
text-align: center;
|
|
4015
4025
|
}
|
|
4016
|
-
.wp-block-video figcaption {
|
|
4026
|
+
.wp-block-video :where(figcaption) {
|
|
4017
4027
|
margin-top: 0.5em;
|
|
4018
4028
|
margin-bottom: 1em;
|
|
4019
4029
|
}
|
|
@@ -4142,7 +4152,6 @@ a[data-fn].fn::after {
|
|
|
4142
4152
|
.screen-reader-text {
|
|
4143
4153
|
border: 0;
|
|
4144
4154
|
clip: rect(1px, 1px, 1px, 1px);
|
|
4145
|
-
-webkit-clip-path: inset(50%);
|
|
4146
4155
|
clip-path: inset(50%);
|
|
4147
4156
|
height: 1px;
|
|
4148
4157
|
margin: -1px;
|
|
@@ -4156,8 +4165,7 @@ a[data-fn].fn::after {
|
|
|
4156
4165
|
.screen-reader-text:focus {
|
|
4157
4166
|
background-color: #ddd;
|
|
4158
4167
|
clip: auto !important;
|
|
4159
|
-
|
|
4160
|
-
clip-path: none;
|
|
4168
|
+
clip-path: none;
|
|
4161
4169
|
color: #444;
|
|
4162
4170
|
display: block;
|
|
4163
4171
|
font-size: 1em;
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
.wp-block-table th {
|
|
94
94
|
word-break: normal;
|
|
95
95
|
}
|
|
96
|
-
.wp-block-table figcaption {
|
|
96
|
+
.wp-block-table :where(figcaption) {
|
|
97
97
|
color: #555;
|
|
98
98
|
font-size: 13px;
|
|
99
99
|
text-align: center;
|
|
100
100
|
}
|
|
101
|
-
.is-dark-theme .wp-block-table figcaption {
|
|
101
|
+
.is-dark-theme .wp-block-table :where(figcaption) {
|
|
102
102
|
color: rgba(255, 255, 255, 0.65);
|
|
103
103
|
}
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
.wp-block-table th {
|
|
94
94
|
word-break: normal;
|
|
95
95
|
}
|
|
96
|
-
.wp-block-table figcaption {
|
|
96
|
+
.wp-block-table :where(figcaption) {
|
|
97
97
|
color: #555;
|
|
98
98
|
font-size: 13px;
|
|
99
99
|
text-align: center;
|
|
100
100
|
}
|
|
101
|
-
.is-dark-theme .wp-block-table figcaption {
|
|
101
|
+
.is-dark-theme .wp-block-table :where(figcaption) {
|
|
102
102
|
color: rgba(255, 255, 255, 0.65);
|
|
103
103
|
}
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
-
.wp-block-audio figcaption {
|
|
89
|
+
.wp-block-audio :where(figcaption) {
|
|
90
90
|
color: #555;
|
|
91
91
|
font-size: 13px;
|
|
92
92
|
text-align: center;
|
|
93
93
|
}
|
|
94
|
-
.is-dark-theme .wp-block-audio figcaption {
|
|
94
|
+
.is-dark-theme .wp-block-audio :where(figcaption) {
|
|
95
95
|
color: rgba(255, 255, 255, 0.65);
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
padding: 0.8em 1em;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.wp-block-embed figcaption {
|
|
109
|
+
.wp-block-embed :where(figcaption) {
|
|
110
110
|
color: #555;
|
|
111
111
|
font-size: 13px;
|
|
112
112
|
text-align: center;
|
|
113
113
|
}
|
|
114
|
-
.is-dark-theme .wp-block-embed figcaption {
|
|
114
|
+
.is-dark-theme .wp-block-embed :where(figcaption) {
|
|
115
115
|
color: rgba(255, 255, 255, 0.65);
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -225,21 +225,21 @@
|
|
|
225
225
|
.wp-block-table th {
|
|
226
226
|
word-break: normal;
|
|
227
227
|
}
|
|
228
|
-
.wp-block-table figcaption {
|
|
228
|
+
.wp-block-table :where(figcaption) {
|
|
229
229
|
color: #555;
|
|
230
230
|
font-size: 13px;
|
|
231
231
|
text-align: center;
|
|
232
232
|
}
|
|
233
|
-
.is-dark-theme .wp-block-table figcaption {
|
|
233
|
+
.is-dark-theme .wp-block-table :where(figcaption) {
|
|
234
234
|
color: rgba(255, 255, 255, 0.65);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.wp-block-video figcaption {
|
|
237
|
+
.wp-block-video :where(figcaption) {
|
|
238
238
|
color: #555;
|
|
239
239
|
font-size: 13px;
|
|
240
240
|
text-align: center;
|
|
241
241
|
}
|
|
242
|
-
.is-dark-theme .wp-block-video figcaption {
|
|
242
|
+
.is-dark-theme .wp-block-video :where(figcaption) {
|
|
243
243
|
color: rgba(255, 255, 255, 0.65);
|
|
244
244
|
}
|
|
245
245
|
|
package/build-style/theme.css
CHANGED
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
-
.wp-block-audio figcaption {
|
|
89
|
+
.wp-block-audio :where(figcaption) {
|
|
90
90
|
color: #555;
|
|
91
91
|
font-size: 13px;
|
|
92
92
|
text-align: center;
|
|
93
93
|
}
|
|
94
|
-
.is-dark-theme .wp-block-audio figcaption {
|
|
94
|
+
.is-dark-theme .wp-block-audio :where(figcaption) {
|
|
95
95
|
color: rgba(255, 255, 255, 0.65);
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
padding: 0.8em 1em;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.wp-block-embed figcaption {
|
|
109
|
+
.wp-block-embed :where(figcaption) {
|
|
110
110
|
color: #555;
|
|
111
111
|
font-size: 13px;
|
|
112
112
|
text-align: center;
|
|
113
113
|
}
|
|
114
|
-
.is-dark-theme .wp-block-embed figcaption {
|
|
114
|
+
.is-dark-theme .wp-block-embed :where(figcaption) {
|
|
115
115
|
color: rgba(255, 255, 255, 0.65);
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -225,21 +225,21 @@
|
|
|
225
225
|
.wp-block-table th {
|
|
226
226
|
word-break: normal;
|
|
227
227
|
}
|
|
228
|
-
.wp-block-table figcaption {
|
|
228
|
+
.wp-block-table :where(figcaption) {
|
|
229
229
|
color: #555;
|
|
230
230
|
font-size: 13px;
|
|
231
231
|
text-align: center;
|
|
232
232
|
}
|
|
233
|
-
.is-dark-theme .wp-block-table figcaption {
|
|
233
|
+
.is-dark-theme .wp-block-table :where(figcaption) {
|
|
234
234
|
color: rgba(255, 255, 255, 0.65);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.wp-block-video figcaption {
|
|
237
|
+
.wp-block-video :where(figcaption) {
|
|
238
238
|
color: #555;
|
|
239
239
|
font-size: 13px;
|
|
240
240
|
text-align: center;
|
|
241
241
|
}
|
|
242
|
-
.is-dark-theme .wp-block-video figcaption {
|
|
242
|
+
.is-dark-theme .wp-block-video :where(figcaption) {
|
|
243
243
|
color: rgba(255, 255, 255, 0.65);
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
-
.wp-block-video figcaption {
|
|
89
|
+
.wp-block-video :where(figcaption) {
|
|
90
90
|
color: #555;
|
|
91
91
|
font-size: 13px;
|
|
92
92
|
text-align: center;
|
|
93
93
|
}
|
|
94
|
-
.is-dark-theme .wp-block-video figcaption {
|
|
94
|
+
.is-dark-theme .wp-block-video :where(figcaption) {
|
|
95
95
|
color: rgba(255, 255, 255, 0.65);
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
-
.wp-block-video figcaption {
|
|
89
|
+
.wp-block-video :where(figcaption) {
|
|
90
90
|
color: #555;
|
|
91
91
|
font-size: 13px;
|
|
92
92
|
text-align: center;
|
|
93
93
|
}
|
|
94
|
-
.is-dark-theme .wp-block-video figcaption {
|
|
94
|
+
.is-dark-theme .wp-block-video :where(figcaption) {
|
|
95
95
|
color: rgba(255, 255, 255, 0.65);
|
|
96
96
|
}
|
|
97
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -32,39 +32,39 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.0",
|
|
35
|
-
"@wordpress/a11y": "^4.
|
|
36
|
-
"@wordpress/api-fetch": "^7.
|
|
37
|
-
"@wordpress/autop": "^4.
|
|
38
|
-
"@wordpress/blob": "^4.
|
|
39
|
-
"@wordpress/block-editor": "^13.
|
|
40
|
-
"@wordpress/blocks": "^13.
|
|
41
|
-
"@wordpress/components": "^28.
|
|
42
|
-
"@wordpress/compose": "^7.
|
|
43
|
-
"@wordpress/core-data": "^7.
|
|
44
|
-
"@wordpress/data": "^10.
|
|
45
|
-
"@wordpress/date": "^5.
|
|
46
|
-
"@wordpress/deprecated": "^4.
|
|
47
|
-
"@wordpress/dom": "^4.
|
|
48
|
-
"@wordpress/element": "^6.
|
|
49
|
-
"@wordpress/escape-html": "^3.
|
|
50
|
-
"@wordpress/hooks": "^4.
|
|
51
|
-
"@wordpress/html-entities": "^4.
|
|
52
|
-
"@wordpress/i18n": "^5.
|
|
53
|
-
"@wordpress/icons": "^10.
|
|
54
|
-
"@wordpress/interactivity": "^6.
|
|
55
|
-
"@wordpress/interactivity-router": "^2.
|
|
56
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
57
|
-
"@wordpress/keycodes": "^4.
|
|
58
|
-
"@wordpress/notices": "^5.
|
|
59
|
-
"@wordpress/patterns": "^2.
|
|
60
|
-
"@wordpress/primitives": "^4.
|
|
61
|
-
"@wordpress/private-apis": "^1.
|
|
62
|
-
"@wordpress/reusable-blocks": "^5.
|
|
63
|
-
"@wordpress/rich-text": "^7.
|
|
64
|
-
"@wordpress/server-side-render": "^5.
|
|
65
|
-
"@wordpress/url": "^4.
|
|
66
|
-
"@wordpress/viewport": "^6.
|
|
67
|
-
"@wordpress/wordcount": "^4.
|
|
35
|
+
"@wordpress/a11y": "^4.2.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.2.0",
|
|
37
|
+
"@wordpress/autop": "^4.2.0",
|
|
38
|
+
"@wordpress/blob": "^4.2.0",
|
|
39
|
+
"@wordpress/block-editor": "^13.2.0",
|
|
40
|
+
"@wordpress/blocks": "^13.2.0",
|
|
41
|
+
"@wordpress/components": "^28.2.0",
|
|
42
|
+
"@wordpress/compose": "^7.2.0",
|
|
43
|
+
"@wordpress/core-data": "^7.2.0",
|
|
44
|
+
"@wordpress/data": "^10.2.0",
|
|
45
|
+
"@wordpress/date": "^5.2.0",
|
|
46
|
+
"@wordpress/deprecated": "^4.2.0",
|
|
47
|
+
"@wordpress/dom": "^4.2.0",
|
|
48
|
+
"@wordpress/element": "^6.2.0",
|
|
49
|
+
"@wordpress/escape-html": "^3.2.0",
|
|
50
|
+
"@wordpress/hooks": "^4.2.0",
|
|
51
|
+
"@wordpress/html-entities": "^4.2.0",
|
|
52
|
+
"@wordpress/i18n": "^5.2.0",
|
|
53
|
+
"@wordpress/icons": "^10.2.0",
|
|
54
|
+
"@wordpress/interactivity": "^6.2.0",
|
|
55
|
+
"@wordpress/interactivity-router": "^2.2.0",
|
|
56
|
+
"@wordpress/keyboard-shortcuts": "^5.2.0",
|
|
57
|
+
"@wordpress/keycodes": "^4.2.0",
|
|
58
|
+
"@wordpress/notices": "^5.2.0",
|
|
59
|
+
"@wordpress/patterns": "^2.2.0",
|
|
60
|
+
"@wordpress/primitives": "^4.2.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.2.0",
|
|
62
|
+
"@wordpress/reusable-blocks": "^5.2.0",
|
|
63
|
+
"@wordpress/rich-text": "^7.2.0",
|
|
64
|
+
"@wordpress/server-side-render": "^5.2.0",
|
|
65
|
+
"@wordpress/url": "^4.2.0",
|
|
66
|
+
"@wordpress/viewport": "^6.2.0",
|
|
67
|
+
"@wordpress/wordcount": "^4.2.0",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"colord": "^2.7.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
|
|
86
86
|
}
|
package/src/audio/style.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Supply caption styles to audio blocks, even if the theme hasn't opted in.
|
|
5
5
|
// Reason being: the new markup, <figcaptions>, are not likely to be styled in the majority of existing themes,
|
|
6
6
|
// so we supply the styles so as to not appear broken or unstyled in those themes.
|
|
7
|
-
figcaption {
|
|
7
|
+
:where(figcaption) {
|
|
8
8
|
@include caption-style();
|
|
9
9
|
}
|
|
10
10
|
|
package/src/audio/theme.scss
CHANGED
package/src/button/block.json
CHANGED
package/src/embed/style.scss
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// Supply caption styles to embeds, even if the theme hasn't opted in.
|
|
26
26
|
// Reason being: the new markup, figcaptions, are not likely to be styled in the majority of existing themes,
|
|
27
27
|
// so we supply the styles so as to not appear broken or unstyled in those.
|
|
28
|
-
figcaption {
|
|
28
|
+
:where(figcaption) {
|
|
29
29
|
@include caption-style();
|
|
30
30
|
}
|
|
31
31
|
|
package/src/embed/theme.scss
CHANGED
package/src/image/editor.scss
CHANGED
|
@@ -176,19 +176,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.wp-block-image__aspect-ratio {
|
|
180
|
-
height: $grid-unit-60 - $border-width - $border-width;
|
|
181
|
-
margin-bottom: -$grid-unit-10;
|
|
182
|
-
display: flex;
|
|
183
|
-
align-items: center;
|
|
184
|
-
|
|
185
|
-
.components-button {
|
|
186
|
-
width: $button-size;
|
|
187
|
-
padding-left: 0;
|
|
188
|
-
padding-right: 0;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
179
|
.wp-block-image__toolbar_content_textarea {
|
|
193
180
|
// Corresponds to the size of the textarea in the block inspector.
|
|
194
181
|
width: 250px;
|
package/src/image/image.js
CHANGED
|
@@ -426,6 +426,9 @@ export default function Image( {
|
|
|
426
426
|
</InspectorControls>
|
|
427
427
|
);
|
|
428
428
|
|
|
429
|
+
const arePatternOverridesEnabled =
|
|
430
|
+
metadata?.bindings?.__default?.source === 'core/pattern-overrides';
|
|
431
|
+
|
|
429
432
|
const {
|
|
430
433
|
lockUrlControls = false,
|
|
431
434
|
lockHrefControls = false,
|
|
@@ -470,7 +473,7 @@ export default function Image( {
|
|
|
470
473
|
lockHrefControls:
|
|
471
474
|
// Disable editing the link of the URL if the image is inside a pattern instance.
|
|
472
475
|
// This is a temporary solution until we support overriding the link on the frontend.
|
|
473
|
-
hasParentPattern,
|
|
476
|
+
hasParentPattern || arePatternOverridesEnabled,
|
|
474
477
|
lockCaption:
|
|
475
478
|
// Disable editing the caption if the image is inside a pattern instance.
|
|
476
479
|
// This is a temporary solution until we support overriding the caption on the frontend.
|
|
@@ -971,7 +974,11 @@ export default function Image( {
|
|
|
971
974
|
isSelected={ isSingleSelected }
|
|
972
975
|
insertBlocksAfter={ insertBlocksAfter }
|
|
973
976
|
label={ __( 'Image caption text' ) }
|
|
974
|
-
showToolbarButton={
|
|
977
|
+
showToolbarButton={
|
|
978
|
+
isSingleSelected &&
|
|
979
|
+
hasNonContentControls &&
|
|
980
|
+
! arePatternOverridesEnabled
|
|
981
|
+
}
|
|
975
982
|
readOnly={ lockCaption }
|
|
976
983
|
/>
|
|
977
984
|
</>
|