@wordpress/block-library 6.0.17 → 6.0.18
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/columns/index.js +1 -2
- package/build/columns/index.js.map +1 -1
- package/build/navigation/index.js +1 -5
- package/build/navigation/index.js.map +1 -1
- package/build/post-author/edit.js +1 -1
- package/build/post-author/edit.js.map +1 -1
- package/build/post-content/edit.js +1 -1
- package/build/post-content/edit.js.map +1 -1
- package/build/post-date/edit.js +1 -1
- package/build/post-date/edit.js.map +1 -1
- package/build/post-excerpt/edit.js +1 -1
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-featured-image/edit.js +1 -1
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-title/edit.js +1 -1
- package/build/post-title/edit.js.map +1 -1
- package/build/site-logo/edit.js +108 -10
- package/build/site-logo/edit.js.map +1 -1
- package/build/site-logo/index.js +5 -1
- package/build/site-logo/index.js.map +1 -1
- package/build/template-part/index.js +25 -1
- package/build/template-part/index.js.map +1 -1
- package/build-module/columns/index.js +1 -2
- package/build-module/columns/index.js.map +1 -1
- package/build-module/navigation/index.js +1 -5
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/post-author/edit.js +1 -1
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-content/edit.js +1 -1
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-date/edit.js +1 -1
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-excerpt/edit.js +1 -1
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-featured-image/edit.js +1 -1
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-title/edit.js +1 -1
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/site-logo/edit.js +109 -11
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/site-logo/index.js +5 -1
- package/build-module/site-logo/index.js.map +1 -1
- package/build-module/template-part/index.js +25 -1
- package/build-module/template-part/index.js.map +1 -1
- package/build-style/editor-rtl.css +18 -8
- package/build-style/editor.css +18 -8
- package/build-style/navigation/editor-rtl.css +13 -6
- package/build-style/navigation/editor.css +13 -6
- package/package.json +7 -7
- package/src/columns/block.json +1 -2
- package/src/editor.scss +5 -2
- package/src/navigation/block.json +1 -11
- package/src/navigation/editor.scss +18 -8
- package/src/post-author/edit.js +1 -1
- package/src/post-content/edit.js +1 -1
- package/src/post-content/index.php +6 -1
- package/src/post-date/edit.js +1 -1
- package/src/post-excerpt/edit.js +1 -1
- package/src/post-excerpt/index.php +1 -1
- package/src/post-featured-image/edit.js +1 -1
- package/src/post-title/edit.js +1 -1
- package/src/post-title/index.php +1 -1
- package/src/site-logo/block.json +5 -1
- package/src/site-logo/edit.js +124 -7
- package/src/site-logo/index.php +17 -0
- package/src/template-part/index.js +28 -0
|
@@ -1391,7 +1391,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
1393
|
.wp-block-navigation-placeholder__controls {
|
|
1394
|
-
padding: 8px;
|
|
1395
1394
|
border-radius: 2px;
|
|
1396
1395
|
background-color: #fff;
|
|
1397
1396
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -1400,19 +1399,23 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1400
1399
|
display: none;
|
|
1401
1400
|
position: relative;
|
|
1402
1401
|
z-index: 1;
|
|
1402
|
+
padding: 4px 8px;
|
|
1403
1403
|
float: right;
|
|
1404
1404
|
width: 100%;
|
|
1405
1405
|
}
|
|
1406
|
-
.is-large .wp-block-navigation-placeholder__controls {
|
|
1407
|
-
padding: 4px 8px;
|
|
1408
|
-
}
|
|
1409
1406
|
.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls {
|
|
1410
1407
|
display: flex;
|
|
1411
1408
|
}
|
|
1412
|
-
.is-
|
|
1409
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,
|
|
1410
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator + hr,
|
|
1411
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(3),
|
|
1412
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(2) {
|
|
1413
|
+
display: none;
|
|
1414
|
+
}
|
|
1415
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions {
|
|
1413
1416
|
flex-direction: column;
|
|
1414
1417
|
}
|
|
1415
|
-
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr
|
|
1418
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr {
|
|
1416
1419
|
display: none;
|
|
1417
1420
|
}
|
|
1418
1421
|
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon {
|
|
@@ -1432,6 +1435,10 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1432
1435
|
margin-left: 4px;
|
|
1433
1436
|
}
|
|
1434
1437
|
|
|
1438
|
+
.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset {
|
|
1439
|
+
flex-direction: row !important;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1435
1442
|
.wp-block-navigation-placeholder__actions {
|
|
1436
1443
|
display: flex;
|
|
1437
1444
|
font-size: 13px;
|
|
@@ -2602,8 +2609,6 @@ div[data-type="core/post-featured-image"] img {
|
|
|
2602
2609
|
*/
|
|
2603
2610
|
/* stylelint-disable function-comma-space-after */
|
|
2604
2611
|
/* stylelint-enable function-comma-space-after */
|
|
2605
|
-
--wp--preset--font-size--normal: 16px;
|
|
2606
|
-
--wp--preset--font-size--huge: 42px;
|
|
2607
2612
|
}
|
|
2608
2613
|
:root .editor-styles-wrapper .has-very-light-gray-background-color {
|
|
2609
2614
|
background-color: #eee;
|
|
@@ -2639,6 +2644,11 @@ div[data-type="core/post-featured-image"] img {
|
|
|
2639
2644
|
background: linear-gradient(-135deg, #020381 0%, #2874fc 100%);
|
|
2640
2645
|
}
|
|
2641
2646
|
|
|
2647
|
+
.editor-styles-wrapper {
|
|
2648
|
+
--wp--preset--font-size--normal: 16px;
|
|
2649
|
+
--wp--preset--font-size--huge: 42px;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2642
2652
|
.editor-styles-wrapper .has-regular-font-size {
|
|
2643
2653
|
font-size: 16px;
|
|
2644
2654
|
}
|
package/build-style/editor.css
CHANGED
|
@@ -1396,7 +1396,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
1398
1398
|
.wp-block-navigation-placeholder__controls {
|
|
1399
|
-
padding: 8px;
|
|
1400
1399
|
border-radius: 2px;
|
|
1401
1400
|
background-color: #fff;
|
|
1402
1401
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -1405,19 +1404,23 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1405
1404
|
display: none;
|
|
1406
1405
|
position: relative;
|
|
1407
1406
|
z-index: 1;
|
|
1407
|
+
padding: 4px 8px;
|
|
1408
1408
|
float: left;
|
|
1409
1409
|
width: 100%;
|
|
1410
1410
|
}
|
|
1411
|
-
.is-large .wp-block-navigation-placeholder__controls {
|
|
1412
|
-
padding: 4px 8px;
|
|
1413
|
-
}
|
|
1414
1411
|
.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls {
|
|
1415
1412
|
display: flex;
|
|
1416
1413
|
}
|
|
1417
|
-
.is-
|
|
1414
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,
|
|
1415
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator + hr,
|
|
1416
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(3),
|
|
1417
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(2) {
|
|
1418
|
+
display: none;
|
|
1419
|
+
}
|
|
1420
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions {
|
|
1418
1421
|
flex-direction: column;
|
|
1419
1422
|
}
|
|
1420
|
-
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr
|
|
1423
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr {
|
|
1421
1424
|
display: none;
|
|
1422
1425
|
}
|
|
1423
1426
|
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon {
|
|
@@ -1437,6 +1440,10 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1437
1440
|
margin-right: 4px;
|
|
1438
1441
|
}
|
|
1439
1442
|
|
|
1443
|
+
.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset {
|
|
1444
|
+
flex-direction: row !important;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1440
1447
|
.wp-block-navigation-placeholder__actions {
|
|
1441
1448
|
display: flex;
|
|
1442
1449
|
font-size: 13px;
|
|
@@ -2610,8 +2617,6 @@ div[data-type="core/post-featured-image"] img {
|
|
|
2610
2617
|
*/
|
|
2611
2618
|
/* stylelint-disable function-comma-space-after */
|
|
2612
2619
|
/* stylelint-enable function-comma-space-after */
|
|
2613
|
-
--wp--preset--font-size--normal: 16px;
|
|
2614
|
-
--wp--preset--font-size--huge: 42px;
|
|
2615
2620
|
}
|
|
2616
2621
|
:root .editor-styles-wrapper .has-very-light-gray-background-color {
|
|
2617
2622
|
background-color: #eee;
|
|
@@ -2647,6 +2652,11 @@ div[data-type="core/post-featured-image"] img {
|
|
|
2647
2652
|
background: linear-gradient(135deg, #020381 0%, #2874fc 100%);
|
|
2648
2653
|
}
|
|
2649
2654
|
|
|
2655
|
+
.editor-styles-wrapper {
|
|
2656
|
+
--wp--preset--font-size--normal: 16px;
|
|
2657
|
+
--wp--preset--font-size--huge: 42px;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2650
2660
|
.editor-styles-wrapper .has-regular-font-size {
|
|
2651
2661
|
font-size: 16px;
|
|
2652
2662
|
}
|
|
@@ -293,7 +293,6 @@
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
.wp-block-navigation-placeholder__controls {
|
|
296
|
-
padding: 8px;
|
|
297
296
|
border-radius: 2px;
|
|
298
297
|
background-color: #fff;
|
|
299
298
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -302,19 +301,23 @@
|
|
|
302
301
|
display: none;
|
|
303
302
|
position: relative;
|
|
304
303
|
z-index: 1;
|
|
304
|
+
padding: 4px 8px;
|
|
305
305
|
float: right;
|
|
306
306
|
width: 100%;
|
|
307
307
|
}
|
|
308
|
-
.is-large .wp-block-navigation-placeholder__controls {
|
|
309
|
-
padding: 4px 8px;
|
|
310
|
-
}
|
|
311
308
|
.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls {
|
|
312
309
|
display: flex;
|
|
313
310
|
}
|
|
314
|
-
.is-
|
|
311
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,
|
|
312
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator + hr,
|
|
313
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(3),
|
|
314
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(2) {
|
|
315
|
+
display: none;
|
|
316
|
+
}
|
|
317
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions {
|
|
315
318
|
flex-direction: column;
|
|
316
319
|
}
|
|
317
|
-
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr
|
|
320
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr {
|
|
318
321
|
display: none;
|
|
319
322
|
}
|
|
320
323
|
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon {
|
|
@@ -334,6 +337,10 @@
|
|
|
334
337
|
margin-left: 4px;
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset {
|
|
341
|
+
flex-direction: row !important;
|
|
342
|
+
}
|
|
343
|
+
|
|
337
344
|
.wp-block-navigation-placeholder__actions {
|
|
338
345
|
display: flex;
|
|
339
346
|
font-size: 13px;
|
|
@@ -293,7 +293,6 @@
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
.wp-block-navigation-placeholder__controls {
|
|
296
|
-
padding: 8px;
|
|
297
296
|
border-radius: 2px;
|
|
298
297
|
background-color: #fff;
|
|
299
298
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
@@ -302,19 +301,23 @@
|
|
|
302
301
|
display: none;
|
|
303
302
|
position: relative;
|
|
304
303
|
z-index: 1;
|
|
304
|
+
padding: 4px 8px;
|
|
305
305
|
float: left;
|
|
306
306
|
width: 100%;
|
|
307
307
|
}
|
|
308
|
-
.is-large .wp-block-navigation-placeholder__controls {
|
|
309
|
-
padding: 4px 8px;
|
|
310
|
-
}
|
|
311
308
|
.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls {
|
|
312
309
|
display: flex;
|
|
313
310
|
}
|
|
314
|
-
.is-
|
|
311
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,
|
|
312
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator + hr,
|
|
313
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(3),
|
|
314
|
+
.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions > :nth-last-child(2) {
|
|
315
|
+
display: none;
|
|
316
|
+
}
|
|
317
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions {
|
|
315
318
|
flex-direction: column;
|
|
316
319
|
}
|
|
317
|
-
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr
|
|
320
|
+
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr {
|
|
318
321
|
display: none;
|
|
319
322
|
}
|
|
320
323
|
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon {
|
|
@@ -334,6 +337,10 @@
|
|
|
334
337
|
margin-right: 4px;
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset {
|
|
341
|
+
flex-direction: row !important;
|
|
342
|
+
}
|
|
343
|
+
|
|
337
344
|
.wp-block-navigation-placeholder__actions {
|
|
338
345
|
display: flex;
|
|
339
346
|
font-size: 13px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.18",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@wordpress/api-fetch": "^5.2.6",
|
|
38
38
|
"@wordpress/autop": "^3.2.3",
|
|
39
39
|
"@wordpress/blob": "^3.2.2",
|
|
40
|
-
"@wordpress/block-editor": "^8.0.
|
|
40
|
+
"@wordpress/block-editor": "^8.0.13",
|
|
41
41
|
"@wordpress/blocks": "^11.1.5",
|
|
42
|
-
"@wordpress/components": "^19.
|
|
42
|
+
"@wordpress/components": "^19.2.0",
|
|
43
43
|
"@wordpress/compose": "^5.0.7",
|
|
44
44
|
"@wordpress/core-data": "^4.0.9",
|
|
45
45
|
"@wordpress/data": "^6.1.5",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@wordpress/html-entities": "^3.2.3",
|
|
53
53
|
"@wordpress/i18n": "^4.2.4",
|
|
54
54
|
"@wordpress/icons": "^6.1.1",
|
|
55
|
-
"@wordpress/interface": "^4.1.
|
|
55
|
+
"@wordpress/interface": "^4.1.15",
|
|
56
56
|
"@wordpress/is-shallow-equal": "^4.2.1",
|
|
57
57
|
"@wordpress/keycodes": "^3.2.4",
|
|
58
58
|
"@wordpress/notices": "^3.2.8",
|
|
59
59
|
"@wordpress/primitives": "^3.0.4",
|
|
60
|
-
"@wordpress/reusable-blocks": "^3.0.
|
|
60
|
+
"@wordpress/reusable-blocks": "^3.0.19",
|
|
61
61
|
"@wordpress/rich-text": "^5.0.7",
|
|
62
|
-
"@wordpress/server-side-render": "^3.0.
|
|
62
|
+
"@wordpress/server-side-render": "^3.0.17",
|
|
63
63
|
"@wordpress/url": "^3.3.1",
|
|
64
64
|
"@wordpress/viewport": "^4.0.7",
|
|
65
65
|
"classnames": "^2.3.1",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "f70f4664ac641bd107481c5c67ee6f5556a0a381"
|
|
77
77
|
}
|
package/src/columns/block.json
CHANGED
package/src/editor.scss
CHANGED
|
@@ -48,8 +48,11 @@
|
|
|
48
48
|
@include background-colors-deprecated();
|
|
49
49
|
@include foreground-colors-deprecated();
|
|
50
50
|
@include gradient-colors-deprecated();
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// This CSS Custom Properties aren't used anymore as defaults,
|
|
54
|
+
// but we still need to keep them for backward compatibility.
|
|
55
|
+
.editor-styles-wrapper {
|
|
53
56
|
--wp--preset--font-size--normal: 16px;
|
|
54
57
|
--wp--preset--font-size--huge: 42px;
|
|
55
58
|
}
|
|
@@ -98,17 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"spacing": {
|
|
101
|
-
"
|
|
102
|
-
"units": [
|
|
103
|
-
"px",
|
|
104
|
-
"em",
|
|
105
|
-
"rem",
|
|
106
|
-
"vh",
|
|
107
|
-
"vw"
|
|
108
|
-
],
|
|
109
|
-
"__experimentalDefaultControls": {
|
|
110
|
-
"blockGap": true
|
|
111
|
-
}
|
|
101
|
+
"units": [ "px", "em", "rem", "vh", "vw" ]
|
|
112
102
|
},
|
|
113
103
|
"__experimentalLayout": {
|
|
114
104
|
"allowSwitching": false,
|
|
@@ -305,7 +305,6 @@ $color-control-label-height: 20px;
|
|
|
305
305
|
|
|
306
306
|
// Selected state.
|
|
307
307
|
.wp-block-navigation-placeholder__controls {
|
|
308
|
-
padding: $grid-unit-10;
|
|
309
308
|
border-radius: $radius-block-ui;
|
|
310
309
|
background-color: $white;
|
|
311
310
|
box-shadow: inset 0 0 0 $border-width $gray-900;
|
|
@@ -314,11 +313,7 @@ $color-control-label-height: 20px;
|
|
|
314
313
|
display: none;
|
|
315
314
|
position: relative;
|
|
316
315
|
z-index: 1;
|
|
317
|
-
|
|
318
|
-
// Adjust padding for when shown horizontally.
|
|
319
|
-
.is-large & {
|
|
320
|
-
padding: $grid-unit-05 $grid-unit-10;
|
|
321
|
-
}
|
|
316
|
+
padding: $grid-unit-05 $grid-unit-10;
|
|
322
317
|
|
|
323
318
|
// If an ancestor has a text-decoration property applied, it is inherited regardless of
|
|
324
319
|
// the specificity of a child element. Only pulling the child out of the flow fixes it.
|
|
@@ -331,9 +326,19 @@ $color-control-label-height: 20px;
|
|
|
331
326
|
display: flex;
|
|
332
327
|
}
|
|
333
328
|
|
|
334
|
-
//
|
|
335
|
-
.
|
|
329
|
+
// Hide a few elements in medium size placeholders.
|
|
330
|
+
// @todo: part of the code here will be irrelevant if https://github.com/WordPress/gutenberg/pull/36775 lands.
|
|
336
331
|
.is-medium & {
|
|
332
|
+
.wp-block-navigation-placeholder__actions__indicator,
|
|
333
|
+
.wp-block-navigation-placeholder__actions__indicator + hr,
|
|
334
|
+
.wp-block-navigation-placeholder__actions > :nth-last-child(3), // Add all pages.
|
|
335
|
+
.wp-block-navigation-placeholder__actions > :nth-last-child(2) { // hr separator after it.
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// Show stacked for the vertical navigation, or small placeholders.
|
|
341
|
+
.is-small & {
|
|
337
342
|
.wp-block-navigation-placeholder__actions {
|
|
338
343
|
flex-direction: column;
|
|
339
344
|
}
|
|
@@ -367,6 +372,11 @@ $color-control-label-height: 20px;
|
|
|
367
372
|
}
|
|
368
373
|
}
|
|
369
374
|
|
|
375
|
+
// Keep as row for medium.
|
|
376
|
+
.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset {
|
|
377
|
+
flex-direction: row !important;
|
|
378
|
+
}
|
|
379
|
+
|
|
370
380
|
.wp-block-navigation-placeholder__actions {
|
|
371
381
|
display: flex;
|
|
372
382
|
font-size: $default-font-size;
|
package/src/post-author/edit.js
CHANGED
|
@@ -25,7 +25,7 @@ function PostAuthorEdit( {
|
|
|
25
25
|
attributes,
|
|
26
26
|
setAttributes,
|
|
27
27
|
} ) {
|
|
28
|
-
const isDescendentOfQueryLoop =
|
|
28
|
+
const isDescendentOfQueryLoop = Number.isFinite( queryId );
|
|
29
29
|
const { authorId, authorDetails, authors } = useSelect(
|
|
30
30
|
( select ) => {
|
|
31
31
|
const { getEditedEntityRecord, getUser, getUsers } = select(
|
package/src/post-content/edit.js
CHANGED
|
@@ -66,7 +66,7 @@ function EditableContent( { layout, context = {} } ) {
|
|
|
66
66
|
|
|
67
67
|
function Content( props ) {
|
|
68
68
|
const { context: { queryId, postType, postId } = {} } = props;
|
|
69
|
-
const isDescendentOfQueryLoop =
|
|
69
|
+
const isDescendentOfQueryLoop = Number.isFinite( queryId );
|
|
70
70
|
const userCanEdit = useCanEditEntity( 'postType', postType, postId );
|
|
71
71
|
const isEditable = userCanEdit && ! isDescendentOfQueryLoop;
|
|
72
72
|
|
|
@@ -36,11 +36,16 @@ function render_block_core_post_content( $attributes, $content, $block ) {
|
|
|
36
36
|
|
|
37
37
|
$seen_ids[ $post_id ] = true;
|
|
38
38
|
|
|
39
|
+
// Check is needed for backward compatibility with third-party plugins
|
|
40
|
+
// that might rely on the `in_the_loop` check; calling `the_post` sets it to true.
|
|
39
41
|
if ( ! in_the_loop() && have_posts() ) {
|
|
40
42
|
the_post();
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
// When inside the main loop, we want to use queried object
|
|
46
|
+
// so that `the_preview` for the current post can apply.
|
|
47
|
+
// We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
|
|
48
|
+
$content = get_the_content( null, false );
|
|
44
49
|
/** This filter is documented in wp-includes/post-template.php */
|
|
45
50
|
$content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
|
|
46
51
|
unset( $seen_ids[ $post_id ] );
|
package/src/post-date/edit.js
CHANGED
|
@@ -33,7 +33,7 @@ export default function PostDateEdit( {
|
|
|
33
33
|
context: { postId, postType, queryId },
|
|
34
34
|
setAttributes,
|
|
35
35
|
} ) {
|
|
36
|
-
const isDescendentOfQueryLoop =
|
|
36
|
+
const isDescendentOfQueryLoop = Number.isFinite( queryId );
|
|
37
37
|
const [ siteFormat ] = useEntityProp( 'root', 'site', 'date_format' );
|
|
38
38
|
const [ date, setDate ] = useEntityProp(
|
|
39
39
|
'postType',
|
package/src/post-excerpt/edit.js
CHANGED
|
@@ -30,7 +30,7 @@ export default function PostExcerptEditor( {
|
|
|
30
30
|
isSelected,
|
|
31
31
|
context: { postId, postType, queryId },
|
|
32
32
|
} ) {
|
|
33
|
-
const isDescendentOfQueryLoop =
|
|
33
|
+
const isDescendentOfQueryLoop = Number.isFinite( queryId );
|
|
34
34
|
const userCanEdit = useCanEditEntity( 'postType', postType, postId );
|
|
35
35
|
const isEditable = userCanEdit && ! isDescendentOfQueryLoop;
|
|
36
36
|
const [
|
|
@@ -50,7 +50,7 @@ function PostFeaturedImageDisplay( {
|
|
|
50
50
|
setAttributes,
|
|
51
51
|
context: { postId, postType, queryId },
|
|
52
52
|
} ) {
|
|
53
|
-
const isDescendentOfQueryLoop =
|
|
53
|
+
const isDescendentOfQueryLoop = Number.isFinite( queryId );
|
|
54
54
|
const { isLink, height, width, scale } = attributes;
|
|
55
55
|
const [ featuredImage, setFeaturedImage ] = useEntityProp(
|
|
56
56
|
'postType',
|
package/src/post-title/edit.js
CHANGED
|
@@ -30,7 +30,7 @@ export default function PostTitleEdit( {
|
|
|
30
30
|
context: { postType, postId, queryId },
|
|
31
31
|
} ) {
|
|
32
32
|
const TagName = 0 === level ? 'p' : 'h' + level;
|
|
33
|
-
const isDescendentOfQueryLoop =
|
|
33
|
+
const isDescendentOfQueryLoop = Number.isFinite( queryId );
|
|
34
34
|
const userCanEdit = useCanEditEntity( 'postType', postType, postId );
|
|
35
35
|
const [ rawTitle = '', setTitle, fullTitle ] = useEntityProp(
|
|
36
36
|
'postType',
|
package/src/post-title/index.php
CHANGED
package/src/site-logo/block.json
CHANGED
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
"linkTarget": {
|
|
17
17
|
"type": "string",
|
|
18
18
|
"default": "_self"
|
|
19
|
+
},
|
|
20
|
+
"shouldSyncIcon": {
|
|
21
|
+
"type": "boolean"
|
|
19
22
|
}
|
|
20
23
|
},
|
|
21
24
|
"example": {
|
|
22
25
|
"viewportWidth": 500,
|
|
23
26
|
"attributes": {
|
|
24
|
-
"width": 350
|
|
27
|
+
"width": 350,
|
|
28
|
+
"className": "block-editor-block-types-list__site-logo-example"
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
"supports": {
|