@wordpress/block-library 9.21.0 → 9.22.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 +2 -0
- package/build/cover/index.js +1 -1
- package/build/cover/index.js.map +1 -1
- package/build/details/edit.js +1 -5
- package/build/details/edit.js.map +1 -1
- package/build/details/index.js +1 -1
- package/build/details/index.js.map +1 -1
- package/build/navigation/view.js +2 -1
- package/build/navigation/view.js.map +1 -1
- package/build/navigation-link/edit.js +0 -21
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/index.js +0 -3
- package/build/navigation-link/index.js.map +1 -1
- package/build/navigation-link/transforms.js +0 -2
- package/build/navigation-link/transforms.js.map +1 -1
- package/build/navigation-link/update-attributes.js +0 -1
- package/build/navigation-link/update-attributes.js.map +1 -1
- package/build/navigation-submenu/edit.js +1 -24
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/navigation-submenu/index.js +0 -3
- package/build/navigation-submenu/index.js.map +1 -1
- package/build/post-comments-count/index.js +0 -1
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-link/index.js +0 -1
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-featured-image/edit.js +15 -5
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +47 -59
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/inspector-controls/parent-control.js +2 -2
- package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build/query/edit/inspector-controls/taxonomy-controls.js +2 -2
- package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build/query/edit/query-content.js +4 -17
- package/build/query/edit/query-content.js.map +1 -1
- package/build/quote/index.js +1 -1
- package/build/quote/index.js.map +1 -1
- package/build/social-links/edit.js +29 -31
- package/build/social-links/edit.js.map +1 -1
- package/build/table/index.js +3 -3
- package/build/table/index.js.map +1 -1
- package/build/table/transforms.js +11 -3
- package/build/table/transforms.js.map +1 -1
- package/build/table-of-contents/edit.js +1 -1
- package/build/table-of-contents/edit.js.map +1 -1
- package/build/table-of-contents/hooks.js +6 -3
- package/build/table-of-contents/hooks.js.map +1 -1
- package/build-module/cover/index.js +1 -1
- package/build-module/cover/index.js.map +1 -1
- package/build-module/details/edit.js +1 -5
- package/build-module/details/edit.js.map +1 -1
- package/build-module/details/index.js +1 -1
- package/build-module/details/index.js.map +1 -1
- package/build-module/navigation/view.js +2 -1
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/navigation-link/edit.js +0 -21
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/index.js +0 -3
- package/build-module/navigation-link/index.js.map +1 -1
- package/build-module/navigation-link/transforms.js +0 -2
- package/build-module/navigation-link/transforms.js.map +1 -1
- package/build-module/navigation-link/update-attributes.js +0 -1
- package/build-module/navigation-link/update-attributes.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +1 -24
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/navigation-submenu/index.js +0 -3
- package/build-module/navigation-submenu/index.js.map +1 -1
- package/build-module/post-comments-count/index.js +0 -1
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-link/index.js +0 -1
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-featured-image/edit.js +15 -5
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +49 -61
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/parent-control.js +2 -2
- package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js +2 -2
- package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
- package/build-module/query/edit/query-content.js +4 -17
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/quote/index.js +1 -1
- package/build-module/quote/index.js.map +1 -1
- package/build-module/social-links/edit.js +30 -32
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/table/index.js +3 -3
- package/build-module/table/index.js.map +1 -1
- package/build-module/table/transforms.js +11 -3
- package/build-module/table/transforms.js.map +1 -1
- package/build-module/table-of-contents/edit.js +1 -1
- package/build-module/table-of-contents/edit.js.map +1 -1
- package/build-module/table-of-contents/hooks.js +6 -3
- package/build-module/table-of-contents/hooks.js.map +1 -1
- package/build-style/editor-rtl.css +1 -50
- package/build-style/editor.css +1 -50
- package/build-style/media-text/style-rtl.css +0 -2
- package/build-style/media-text/style.css +0 -2
- package/build-style/search/style-rtl.css +1 -0
- package/build-style/search/style.css +1 -0
- package/build-style/social-links/editor-rtl.css +1 -50
- package/build-style/social-links/editor.css +1 -50
- package/build-style/style-rtl.css +1 -6
- package/build-style/style.css +1 -6
- package/build-style/tag-cloud/style-rtl.css +0 -4
- package/build-style/tag-cloud/style.css +0 -4
- package/package.json +35 -35
- package/src/button/index.php +2 -3
- package/src/cover/index.js +1 -1
- package/src/details/edit.js +6 -8
- package/src/details/index.js +1 -1
- package/src/file/index.php +2 -3
- package/src/latest-comments/index.php +1 -1
- package/src/latest-posts/index.php +3 -0
- package/src/media-text/style.scss +0 -2
- package/src/navigation/index.php +1 -1
- package/src/navigation/view.js +2 -1
- package/src/navigation-link/block.json +0 -3
- package/src/navigation-link/edit.js +1 -22
- package/src/navigation-link/index.php +1 -5
- package/src/navigation-link/transforms.js +1 -2
- package/src/navigation-link/update-attributes.js +0 -1
- package/src/navigation-submenu/block.json +0 -3
- package/src/navigation-submenu/edit.js +1 -24
- package/src/navigation-submenu/index.php +0 -4
- package/src/post-comments-count/block.json +0 -1
- package/src/post-comments-count/index.php +4 -0
- package/src/post-comments-link/block.json +0 -1
- package/src/post-comments-link/index.php +4 -0
- package/src/post-featured-image/edit.js +94 -77
- package/src/query/edit/inspector-controls/index.js +66 -91
- package/src/query/edit/inspector-controls/parent-control.js +2 -2
- package/src/query/edit/inspector-controls/taxonomy-controls.js +2 -2
- package/src/query/edit/query-content.js +7 -16
- package/src/quote/index.js +1 -1
- package/src/search/index.php +12 -9
- package/src/search/style.scss +1 -0
- package/src/social-links/edit.js +29 -30
- package/src/social-links/editor.scss +1 -59
- package/src/table/index.js +3 -3
- package/src/table/transforms.js +14 -2
- package/src/table-of-contents/edit.js +1 -1
- package/src/table-of-contents/hooks.js +5 -2
- package/src/tag-cloud/style.scss +0 -5
package/build-style/editor.css
CHANGED
|
@@ -2386,59 +2386,10 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2386
2386
|
transform: none;
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
:root :where(.wp-block-social-links)
|
|
2390
|
-
:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link) {
|
|
2389
|
+
:root :where(.wp-block-social-links) {
|
|
2391
2390
|
padding: 0;
|
|
2392
2391
|
}
|
|
2393
2392
|
|
|
2394
|
-
:root :where(.wp-block-social-links__social-placeholder .wp-social-link) {
|
|
2395
|
-
padding: 0.25em;
|
|
2396
|
-
}
|
|
2397
|
-
|
|
2398
|
-
:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link) {
|
|
2399
|
-
padding-left: 0.6666666667em;
|
|
2400
|
-
padding-right: 0.6666666667em;
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
.wp-block-social-links__social-placeholder {
|
|
2404
|
-
display: flex;
|
|
2405
|
-
opacity: 0.8;
|
|
2406
|
-
list-style: none;
|
|
2407
|
-
}
|
|
2408
|
-
.wp-block-social-links__social-placeholder > .wp-social-link {
|
|
2409
|
-
padding-left: 0 !important;
|
|
2410
|
-
margin-left: 0 !important;
|
|
2411
|
-
padding-right: 0 !important;
|
|
2412
|
-
margin-right: 0 !important;
|
|
2413
|
-
width: 0 !important;
|
|
2414
|
-
visibility: hidden;
|
|
2415
|
-
}
|
|
2416
|
-
.wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
|
|
2417
|
-
display: flex;
|
|
2418
|
-
}
|
|
2419
|
-
.wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
2420
|
-
content: "";
|
|
2421
|
-
display: block;
|
|
2422
|
-
width: 1em;
|
|
2423
|
-
height: 1em;
|
|
2424
|
-
border-radius: 50%;
|
|
2425
|
-
}
|
|
2426
|
-
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
2427
|
-
background: currentColor;
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
.wp-block-social-links .wp-block-social-links__social-prompt {
|
|
2431
|
-
min-height: 24px;
|
|
2432
|
-
list-style: none;
|
|
2433
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
2434
|
-
font-size: 13px;
|
|
2435
|
-
line-height: 24px;
|
|
2436
|
-
margin-top: auto;
|
|
2437
|
-
margin-bottom: auto;
|
|
2438
|
-
cursor: default;
|
|
2439
|
-
padding-right: 8px;
|
|
2440
|
-
}
|
|
2441
|
-
|
|
2442
2393
|
.wp-block[data-align=center] > .wp-block-social-links,
|
|
2443
2394
|
.wp-block.wp-block-social-links.aligncenter {
|
|
2444
2395
|
justify-content: center;
|
|
@@ -187,7 +187,6 @@
|
|
|
187
187
|
|
|
188
188
|
/* Image fill for versions 8 and onwards */
|
|
189
189
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
|
|
190
|
-
position: relative;
|
|
191
190
|
height: 100%;
|
|
192
191
|
min-height: 250px;
|
|
193
192
|
}
|
|
@@ -198,7 +197,6 @@
|
|
|
198
197
|
}
|
|
199
198
|
|
|
200
199
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
|
|
201
|
-
position: absolute;
|
|
202
200
|
width: 100%;
|
|
203
201
|
height: 100%;
|
|
204
202
|
object-fit: cover;
|
|
@@ -197,7 +197,6 @@
|
|
|
197
197
|
|
|
198
198
|
/* Image fill for versions 8 and onwards */
|
|
199
199
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
|
|
200
|
-
position: relative;
|
|
201
200
|
height: 100%;
|
|
202
201
|
min-height: 250px;
|
|
203
202
|
}
|
|
@@ -208,7 +207,6 @@
|
|
|
208
207
|
}
|
|
209
208
|
|
|
210
209
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
|
|
211
|
-
position: absolute;
|
|
212
210
|
width: 100%;
|
|
213
211
|
height: 100%;
|
|
214
212
|
object-fit: cover;
|
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
189
189
|
padding: 4px;
|
|
190
190
|
border: 1px solid #949494;
|
|
191
|
+
background-color: #fff;
|
|
191
192
|
box-sizing: border-box;
|
|
192
193
|
}
|
|
193
194
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
189
189
|
padding: 4px;
|
|
190
190
|
border: 1px solid #949494;
|
|
191
|
+
background-color: #fff;
|
|
191
192
|
box-sizing: border-box;
|
|
192
193
|
}
|
|
193
194
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
@@ -107,59 +107,10 @@
|
|
|
107
107
|
transform: none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
:root :where(.wp-block-social-links)
|
|
111
|
-
:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link) {
|
|
110
|
+
:root :where(.wp-block-social-links) {
|
|
112
111
|
padding: 0;
|
|
113
112
|
}
|
|
114
113
|
|
|
115
|
-
:root :where(.wp-block-social-links__social-placeholder .wp-social-link) {
|
|
116
|
-
padding: 0.25em;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link) {
|
|
120
|
-
padding-right: 0.6666666667em;
|
|
121
|
-
padding-left: 0.6666666667em;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.wp-block-social-links__social-placeholder {
|
|
125
|
-
display: flex;
|
|
126
|
-
opacity: 0.8;
|
|
127
|
-
list-style: none;
|
|
128
|
-
}
|
|
129
|
-
.wp-block-social-links__social-placeholder > .wp-social-link {
|
|
130
|
-
padding-right: 0 !important;
|
|
131
|
-
margin-right: 0 !important;
|
|
132
|
-
padding-left: 0 !important;
|
|
133
|
-
margin-left: 0 !important;
|
|
134
|
-
width: 0 !important;
|
|
135
|
-
visibility: hidden;
|
|
136
|
-
}
|
|
137
|
-
.wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
|
|
138
|
-
display: flex;
|
|
139
|
-
}
|
|
140
|
-
.wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
141
|
-
content: "";
|
|
142
|
-
display: block;
|
|
143
|
-
width: 1em;
|
|
144
|
-
height: 1em;
|
|
145
|
-
border-radius: 50%;
|
|
146
|
-
}
|
|
147
|
-
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
148
|
-
background: currentColor;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.wp-block-social-links .wp-block-social-links__social-prompt {
|
|
152
|
-
min-height: 24px;
|
|
153
|
-
list-style: none;
|
|
154
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
155
|
-
font-size: 13px;
|
|
156
|
-
line-height: 24px;
|
|
157
|
-
margin-top: auto;
|
|
158
|
-
margin-bottom: auto;
|
|
159
|
-
cursor: default;
|
|
160
|
-
padding-left: 8px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
114
|
.wp-block[data-align=center] > .wp-block-social-links,
|
|
164
115
|
.wp-block.wp-block-social-links.aligncenter {
|
|
165
116
|
justify-content: center;
|
|
@@ -107,59 +107,10 @@
|
|
|
107
107
|
transform: none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
:root :where(.wp-block-social-links)
|
|
111
|
-
:root :where(.wp-block-social-links.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link) {
|
|
110
|
+
:root :where(.wp-block-social-links) {
|
|
112
111
|
padding: 0;
|
|
113
112
|
}
|
|
114
113
|
|
|
115
|
-
:root :where(.wp-block-social-links__social-placeholder .wp-social-link) {
|
|
116
|
-
padding: 0.25em;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:root :where(.wp-block-social-links.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link) {
|
|
120
|
-
padding-left: 0.6666666667em;
|
|
121
|
-
padding-right: 0.6666666667em;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.wp-block-social-links__social-placeholder {
|
|
125
|
-
display: flex;
|
|
126
|
-
opacity: 0.8;
|
|
127
|
-
list-style: none;
|
|
128
|
-
}
|
|
129
|
-
.wp-block-social-links__social-placeholder > .wp-social-link {
|
|
130
|
-
padding-left: 0 !important;
|
|
131
|
-
margin-left: 0 !important;
|
|
132
|
-
padding-right: 0 !important;
|
|
133
|
-
margin-right: 0 !important;
|
|
134
|
-
width: 0 !important;
|
|
135
|
-
visibility: hidden;
|
|
136
|
-
}
|
|
137
|
-
.wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
|
|
138
|
-
display: flex;
|
|
139
|
-
}
|
|
140
|
-
.wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
141
|
-
content: "";
|
|
142
|
-
display: block;
|
|
143
|
-
width: 1em;
|
|
144
|
-
height: 1em;
|
|
145
|
-
border-radius: 50%;
|
|
146
|
-
}
|
|
147
|
-
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link::before {
|
|
148
|
-
background: currentColor;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.wp-block-social-links .wp-block-social-links__social-prompt {
|
|
152
|
-
min-height: 24px;
|
|
153
|
-
list-style: none;
|
|
154
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
155
|
-
font-size: 13px;
|
|
156
|
-
line-height: 24px;
|
|
157
|
-
margin-top: auto;
|
|
158
|
-
margin-bottom: auto;
|
|
159
|
-
cursor: default;
|
|
160
|
-
padding-right: 8px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
114
|
.wp-block[data-align=center] > .wp-block-social-links,
|
|
164
115
|
.wp-block.wp-block-social-links.aligncenter {
|
|
165
116
|
justify-content: center;
|
|
@@ -2185,7 +2185,6 @@ ul {
|
|
|
2185
2185
|
|
|
2186
2186
|
/* Image fill for versions 8 and onwards */
|
|
2187
2187
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
|
|
2188
|
-
position: relative;
|
|
2189
2188
|
height: 100%;
|
|
2190
2189
|
min-height: 250px;
|
|
2191
2190
|
}
|
|
@@ -2196,7 +2195,6 @@ ul {
|
|
|
2196
2195
|
}
|
|
2197
2196
|
|
|
2198
2197
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
|
|
2199
|
-
position: absolute;
|
|
2200
2198
|
width: 100%;
|
|
2201
2199
|
height: 100%;
|
|
2202
2200
|
object-fit: cover;
|
|
@@ -3423,6 +3421,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
3423
3421
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
3424
3422
|
padding: 4px;
|
|
3425
3423
|
border: 1px solid #949494;
|
|
3424
|
+
background-color: #fff;
|
|
3426
3425
|
box-sizing: border-box;
|
|
3427
3426
|
}
|
|
3428
3427
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
@@ -3954,10 +3953,6 @@ ul.wp-block-rss.is-grid li {
|
|
|
3954
3953
|
text-align: center;
|
|
3955
3954
|
justify-content: center;
|
|
3956
3955
|
}
|
|
3957
|
-
.wp-block-tag-cloud.alignfull {
|
|
3958
|
-
padding-right: 1em;
|
|
3959
|
-
padding-left: 1em;
|
|
3960
|
-
}
|
|
3961
3956
|
.wp-block-tag-cloud a {
|
|
3962
3957
|
display: inline-block;
|
|
3963
3958
|
margin-left: 5px;
|
package/build-style/style.css
CHANGED
|
@@ -2217,7 +2217,6 @@ ul {
|
|
|
2217
2217
|
|
|
2218
2218
|
/* Image fill for versions 8 and onwards */
|
|
2219
2219
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
|
|
2220
|
-
position: relative;
|
|
2221
2220
|
height: 100%;
|
|
2222
2221
|
min-height: 250px;
|
|
2223
2222
|
}
|
|
@@ -2228,7 +2227,6 @@ ul {
|
|
|
2228
2227
|
}
|
|
2229
2228
|
|
|
2230
2229
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
|
|
2231
|
-
position: absolute;
|
|
2232
2230
|
width: 100%;
|
|
2233
2231
|
height: 100%;
|
|
2234
2232
|
object-fit: cover;
|
|
@@ -3457,6 +3455,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
3457
3455
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
|
|
3458
3456
|
padding: 4px;
|
|
3459
3457
|
border: 1px solid #949494;
|
|
3458
|
+
background-color: #fff;
|
|
3460
3459
|
box-sizing: border-box;
|
|
3461
3460
|
}
|
|
3462
3461
|
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input {
|
|
@@ -3989,10 +3988,6 @@ ul.wp-block-rss.is-grid li {
|
|
|
3989
3988
|
text-align: center;
|
|
3990
3989
|
justify-content: center;
|
|
3991
3990
|
}
|
|
3992
|
-
.wp-block-tag-cloud.alignfull {
|
|
3993
|
-
padding-left: 1em;
|
|
3994
|
-
padding-right: 1em;
|
|
3995
|
-
}
|
|
3996
3991
|
.wp-block-tag-cloud a {
|
|
3997
3992
|
display: inline-block;
|
|
3998
3993
|
margin-right: 5px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.22.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -41,39 +41,39 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/runtime": "7.25.7",
|
|
44
|
-
"@wordpress/a11y": "^4.
|
|
45
|
-
"@wordpress/api-fetch": "^7.
|
|
46
|
-
"@wordpress/autop": "^4.
|
|
47
|
-
"@wordpress/blob": "^4.
|
|
48
|
-
"@wordpress/block-editor": "^14.
|
|
49
|
-
"@wordpress/blocks": "^14.
|
|
50
|
-
"@wordpress/components": "^29.
|
|
51
|
-
"@wordpress/compose": "^7.
|
|
52
|
-
"@wordpress/core-data": "^7.
|
|
53
|
-
"@wordpress/data": "^10.
|
|
54
|
-
"@wordpress/date": "^5.
|
|
55
|
-
"@wordpress/deprecated": "^4.
|
|
56
|
-
"@wordpress/dom": "^4.
|
|
57
|
-
"@wordpress/element": "^6.
|
|
58
|
-
"@wordpress/escape-html": "^3.
|
|
59
|
-
"@wordpress/hooks": "^4.
|
|
60
|
-
"@wordpress/html-entities": "^4.
|
|
61
|
-
"@wordpress/i18n": "^5.
|
|
62
|
-
"@wordpress/icons": "^10.
|
|
63
|
-
"@wordpress/interactivity": "^6.
|
|
64
|
-
"@wordpress/interactivity-router": "^2.
|
|
65
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
66
|
-
"@wordpress/keycodes": "^4.
|
|
67
|
-
"@wordpress/notices": "^5.
|
|
68
|
-
"@wordpress/patterns": "^2.
|
|
69
|
-
"@wordpress/primitives": "^4.
|
|
70
|
-
"@wordpress/private-apis": "^1.
|
|
71
|
-
"@wordpress/reusable-blocks": "^5.
|
|
72
|
-
"@wordpress/rich-text": "^7.
|
|
73
|
-
"@wordpress/server-side-render": "^5.
|
|
74
|
-
"@wordpress/url": "^4.
|
|
75
|
-
"@wordpress/viewport": "^6.
|
|
76
|
-
"@wordpress/wordcount": "^4.
|
|
44
|
+
"@wordpress/a11y": "^4.22.0",
|
|
45
|
+
"@wordpress/api-fetch": "^7.22.0",
|
|
46
|
+
"@wordpress/autop": "^4.22.0",
|
|
47
|
+
"@wordpress/blob": "^4.22.0",
|
|
48
|
+
"@wordpress/block-editor": "^14.17.0",
|
|
49
|
+
"@wordpress/blocks": "^14.11.0",
|
|
50
|
+
"@wordpress/components": "^29.8.0",
|
|
51
|
+
"@wordpress/compose": "^7.22.0",
|
|
52
|
+
"@wordpress/core-data": "^7.22.0",
|
|
53
|
+
"@wordpress/data": "^10.22.0",
|
|
54
|
+
"@wordpress/date": "^5.22.0",
|
|
55
|
+
"@wordpress/deprecated": "^4.22.0",
|
|
56
|
+
"@wordpress/dom": "^4.22.0",
|
|
57
|
+
"@wordpress/element": "^6.22.0",
|
|
58
|
+
"@wordpress/escape-html": "^3.22.0",
|
|
59
|
+
"@wordpress/hooks": "^4.22.0",
|
|
60
|
+
"@wordpress/html-entities": "^4.22.0",
|
|
61
|
+
"@wordpress/i18n": "^5.22.0",
|
|
62
|
+
"@wordpress/icons": "^10.22.0",
|
|
63
|
+
"@wordpress/interactivity": "^6.22.0",
|
|
64
|
+
"@wordpress/interactivity-router": "^2.22.0",
|
|
65
|
+
"@wordpress/keyboard-shortcuts": "^5.22.0",
|
|
66
|
+
"@wordpress/keycodes": "^4.22.0",
|
|
67
|
+
"@wordpress/notices": "^5.22.0",
|
|
68
|
+
"@wordpress/patterns": "^2.22.0",
|
|
69
|
+
"@wordpress/primitives": "^4.22.0",
|
|
70
|
+
"@wordpress/private-apis": "^1.22.0",
|
|
71
|
+
"@wordpress/reusable-blocks": "^5.22.0",
|
|
72
|
+
"@wordpress/rich-text": "^7.22.0",
|
|
73
|
+
"@wordpress/server-side-render": "^5.22.0",
|
|
74
|
+
"@wordpress/url": "^4.22.0",
|
|
75
|
+
"@wordpress/viewport": "^6.22.0",
|
|
76
|
+
"@wordpress/wordcount": "^4.22.0",
|
|
77
77
|
"change-case": "^4.1.2",
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
79
|
"colord": "^2.7.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "01a314d7e46a50101e328fdb11959c441e49372d"
|
|
95
95
|
}
|
package/src/button/index.php
CHANGED
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @since 6.6.0
|
|
12
12
|
*
|
|
13
|
-
* @param array
|
|
14
|
-
* @param string
|
|
15
|
-
* @param WP_Block $block The block object.
|
|
13
|
+
* @param array $attributes The block attributes.
|
|
14
|
+
* @param string $content The block content.
|
|
16
15
|
*
|
|
17
16
|
* @return string The block content.
|
|
18
17
|
*/
|
package/src/cover/index.js
CHANGED
package/src/details/edit.js
CHANGED
|
@@ -91,18 +91,16 @@ function DetailsEdit( { attributes, setAttributes } ) {
|
|
|
91
91
|
) }
|
|
92
92
|
/>
|
|
93
93
|
</InspectorControls>
|
|
94
|
-
<details
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
>
|
|
94
|
+
<details
|
|
95
|
+
{ ...innerBlocksProps }
|
|
96
|
+
open={ isOpen }
|
|
97
|
+
onToggle={ ( event ) => setIsOpen( event.target.open ) }
|
|
98
|
+
>
|
|
99
|
+
<summary>
|
|
101
100
|
<RichText
|
|
102
101
|
identifier="summary"
|
|
103
102
|
aria-label={ __( 'Write summary' ) }
|
|
104
103
|
placeholder={ placeholder || __( 'Write summary…' ) }
|
|
105
|
-
allowedFormats={ [] }
|
|
106
104
|
withoutInteractiveFormatting
|
|
107
105
|
value={ summary }
|
|
108
106
|
onChange={ ( newSummary ) =>
|
package/src/details/index.js
CHANGED
package/src/file/index.php
CHANGED
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @since 5.8.0
|
|
12
12
|
*
|
|
13
|
-
* @param array
|
|
14
|
-
* @param string
|
|
15
|
-
* @param WP_Block $block The parsed block.
|
|
13
|
+
* @param array $attributes The block attributes.
|
|
14
|
+
* @param string $content The block content.
|
|
16
15
|
*
|
|
17
16
|
* @return string Returns the block content.
|
|
18
17
|
*/
|
|
@@ -42,7 +42,7 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
|
|
|
42
42
|
*
|
|
43
43
|
* @return string Returns the post content with latest comments added.
|
|
44
44
|
*/
|
|
45
|
-
function render_block_core_latest_comments( $attributes
|
|
45
|
+
function render_block_core_latest_comments( $attributes ) {
|
|
46
46
|
$comments = get_comments(
|
|
47
47
|
/** This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php */
|
|
48
48
|
apply_filters(
|
|
@@ -33,6 +33,9 @@ function block_core_latest_posts_get_excerpt_length() {
|
|
|
33
33
|
*
|
|
34
34
|
* @since 5.0.0
|
|
35
35
|
*
|
|
36
|
+
* @global WP_Post $post Global post object.
|
|
37
|
+
* @global int $block_core_latest_posts_excerpt_length Excerpt length set by the Latest Posts core block.
|
|
38
|
+
*
|
|
36
39
|
* @param array $attributes The block attributes.
|
|
37
40
|
*
|
|
38
41
|
* @return string Returns the post content with latest posts added.
|
|
@@ -106,7 +106,6 @@
|
|
|
106
106
|
|
|
107
107
|
/* Image fill for versions 8 and onwards */
|
|
108
108
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
|
|
109
|
-
position: relative;
|
|
110
109
|
height: 100%;
|
|
111
110
|
min-height: 250px;
|
|
112
111
|
}
|
|
@@ -117,7 +116,6 @@
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
|
|
120
|
-
position: absolute;
|
|
121
119
|
width: 100%;
|
|
122
120
|
height: 100%;
|
|
123
121
|
object-fit: cover;
|
package/src/navigation/index.php
CHANGED
|
@@ -819,7 +819,7 @@ function block_core_navigation_add_directives_to_submenu( $tags, $block_attribut
|
|
|
819
819
|
) ) {
|
|
820
820
|
// Add directives to the parent `<li>`.
|
|
821
821
|
$tags->set_attribute( 'data-wp-interactive', 'core/navigation' );
|
|
822
|
-
$tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu", "modal": null }' );
|
|
822
|
+
$tags->set_attribute( 'data-wp-context', '{ "submenuOpenedBy": { "click": false, "hover": false, "focus": false }, "type": "submenu", "modal": null, "previousFocus": null }' );
|
|
823
823
|
$tags->set_attribute( 'data-wp-watch', 'callbacks.initMenu' );
|
|
824
824
|
$tags->set_attribute( 'data-wp-on--focusout', 'actions.handleMenuFocusout' );
|
|
825
825
|
$tags->set_attribute( 'data-wp-on--keydown', 'actions.handleMenuKeydown' );
|
package/src/navigation/view.js
CHANGED
|
@@ -116,7 +116,8 @@ const { state, actions } = store(
|
|
|
116
116
|
getContext();
|
|
117
117
|
if ( state.menuOpenedBy.click ) {
|
|
118
118
|
// If Escape close the menu.
|
|
119
|
-
if ( event
|
|
119
|
+
if ( event.key === 'Escape' ) {
|
|
120
|
+
event.stopPropagation(); // Keeps ancestor menus open.
|
|
120
121
|
actions.closeMenu( 'click' );
|
|
121
122
|
actions.closeMenu( 'focus' );
|
|
122
123
|
return;
|
|
@@ -174,7 +174,7 @@ function getMissingText( type ) {
|
|
|
174
174
|
* Consider reusing this components for both blocks.
|
|
175
175
|
*/
|
|
176
176
|
function Controls( { attributes, setAttributes, setIsLabelFieldFocused } ) {
|
|
177
|
-
const { label, url, description,
|
|
177
|
+
const { label, url, description, rel } = attributes;
|
|
178
178
|
return (
|
|
179
179
|
<ToolsPanel label={ __( 'Settings' ) }>
|
|
180
180
|
<ToolsPanelItem
|
|
@@ -239,27 +239,6 @@ function Controls( { attributes, setAttributes, setIsLabelFieldFocused } ) {
|
|
|
239
239
|
/>
|
|
240
240
|
</ToolsPanelItem>
|
|
241
241
|
|
|
242
|
-
<ToolsPanelItem
|
|
243
|
-
hasValue={ () => !! title }
|
|
244
|
-
label={ __( 'Title attribute' ) }
|
|
245
|
-
onDeselect={ () => setAttributes( { title: '' } ) }
|
|
246
|
-
isShownByDefault
|
|
247
|
-
>
|
|
248
|
-
<TextControl
|
|
249
|
-
__nextHasNoMarginBottom
|
|
250
|
-
__next40pxDefaultSize
|
|
251
|
-
label={ __( 'Title attribute' ) }
|
|
252
|
-
value={ title || '' }
|
|
253
|
-
onChange={ ( titleValue ) => {
|
|
254
|
-
setAttributes( { title: titleValue } );
|
|
255
|
-
} }
|
|
256
|
-
autoComplete="off"
|
|
257
|
-
help={ __(
|
|
258
|
-
'Additional information to help clarify the purpose of the link.'
|
|
259
|
-
) }
|
|
260
|
-
/>
|
|
261
|
-
</ToolsPanelItem>
|
|
262
|
-
|
|
263
242
|
<ToolsPanelItem
|
|
264
243
|
hasValue={ () => !! rel }
|
|
265
244
|
label={ __( 'Rel attribute' ) }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @param array $context Navigation block context.
|
|
15
15
|
* @param array $attributes Block attributes.
|
|
16
|
-
* @param bool $is_sub_menu Whether the link is part of a sub-menu.
|
|
16
|
+
* @param bool $is_sub_menu Whether the link is part of a sub-menu. Default false.
|
|
17
17
|
* @return array Colors CSS classes and inline styles.
|
|
18
18
|
*/
|
|
19
19
|
function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
|
|
@@ -249,10 +249,6 @@ function render_block_core_navigation_link( $attributes, $content, $block ) {
|
|
|
249
249
|
$html .= ' rel="nofollow"';
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
if ( isset( $attributes['title'] ) ) {
|
|
253
|
-
$html .= ' title="' . esc_attr( $attributes['title'] ) . '"';
|
|
254
|
-
}
|
|
255
|
-
|
|
256
252
|
// End appending HTML attributes to anchor tag.
|
|
257
253
|
|
|
258
254
|
// Start anchor tag content.
|
|
@@ -115,13 +115,12 @@ const transforms = {
|
|
|
115
115
|
{
|
|
116
116
|
type: 'block',
|
|
117
117
|
blocks: [ 'core/buttons' ],
|
|
118
|
-
transform: ( { label, url, rel,
|
|
118
|
+
transform: ( { label, url, rel, opensInNewTab } ) => {
|
|
119
119
|
return createBlock( 'core/buttons', {}, [
|
|
120
120
|
createBlock( 'core/button', {
|
|
121
121
|
text: label,
|
|
122
122
|
url,
|
|
123
123
|
rel,
|
|
124
|
-
title,
|
|
125
124
|
linkTarget: opensInNewTab ? '_blank' : undefined,
|
|
126
125
|
} ),
|
|
127
126
|
] );
|
|
@@ -19,7 +19,6 @@ import { safeDecodeURI } from '@wordpress/url';
|
|
|
19
19
|
* @property {number} [id] A post or term id.
|
|
20
20
|
* @property {boolean} [opensInNewTab] Sets link target to _blank when true.
|
|
21
21
|
* @property {string} [url] Link href.
|
|
22
|
-
* @property {string} [title] Link title attribute.
|
|
23
22
|
*/
|
|
24
23
|
/**
|
|
25
24
|
* Link Control onChange handler that updates block attributes when a setting is changed.
|