@wordpress/edit-post 7.8.0 → 7.10.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 +4 -0
- package/build/components/header/header-toolbar/index.js +15 -1
- package/build/components/header/header-toolbar/index.js.map +1 -1
- package/build/components/header/index.js +3 -1
- package/build/components/header/index.js.map +1 -1
- package/build/components/header/template-title/delete-template.js +1 -1
- package/build/components/header/template-title/delete-template.js.map +1 -1
- package/build/components/header/template-title/edit-template-title.js +2 -7
- package/build/components/header/template-title/edit-template-title.js.map +1 -1
- package/build/components/keyboard-shortcuts/index.js +1 -1
- package/build/components/keyboard-shortcuts/index.js.map +1 -1
- package/build/components/sidebar/plugin-document-setting-panel/index.js +1 -3
- package/build/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
- package/build/components/sidebar/plugin-post-status-info/index.js +1 -4
- package/build/components/sidebar/plugin-post-status-info/index.js.map +1 -1
- package/build/components/sidebar/post-status/index.js +8 -1
- package/build/components/sidebar/post-status/index.js.map +1 -1
- package/build/components/sidebar/post-trash/index.js +5 -3
- package/build/components/sidebar/post-trash/index.js.map +1 -1
- package/build/components/sidebar/settings-sidebar/index.js +1 -1
- package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build/components/start-page-options/index.js +1 -0
- package/build/components/start-page-options/index.js.map +1 -1
- package/build/components/view-link/index.js +52 -0
- package/build/components/view-link/index.js.map +1 -0
- package/build/components/visual-editor/header.native.js +10 -3
- package/build/components/visual-editor/header.native.js.map +1 -1
- package/build/editor.js +11 -1
- package/build/editor.js.map +1 -1
- package/build-module/components/header/header-toolbar/index.js +15 -2
- package/build-module/components/header/header-toolbar/index.js.map +1 -1
- package/build-module/components/header/index.js +2 -1
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/header/template-title/delete-template.js +1 -1
- package/build-module/components/header/template-title/delete-template.js.map +1 -1
- package/build-module/components/header/template-title/edit-template-title.js +2 -7
- package/build-module/components/header/template-title/edit-template-title.js.map +1 -1
- package/build-module/components/keyboard-shortcuts/index.js +1 -1
- package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/sidebar/plugin-document-setting-panel/index.js +1 -1
- package/build-module/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/sidebar/plugin-post-status-info/index.js +1 -1
- package/build-module/components/sidebar/plugin-post-status-info/index.js.map +1 -1
- package/build-module/components/sidebar/post-status/index.js +8 -2
- package/build-module/components/sidebar/post-status/index.js.map +1 -1
- package/build-module/components/sidebar/post-trash/index.js +4 -2
- package/build-module/components/sidebar/post-trash/index.js.map +1 -1
- package/build-module/components/sidebar/settings-sidebar/index.js +1 -1
- package/build-module/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build-module/components/start-page-options/index.js +1 -0
- package/build-module/components/start-page-options/index.js.map +1 -1
- package/build-module/components/view-link/index.js +39 -0
- package/build-module/components/view-link/index.js.map +1 -0
- package/build-module/components/visual-editor/header.native.js +10 -3
- package/build-module/components/visual-editor/header.native.js.map +1 -1
- package/build-module/editor.js +9 -1
- package/build-module/editor.js.map +1 -1
- package/build-style/style-rtl.css +75 -19
- package/build-style/style.css +75 -19
- package/package.json +33 -31
- package/src/components/header/header-toolbar/index.js +17 -1
- package/src/components/header/index.js +2 -0
- package/src/components/header/template-title/delete-template.js +0 -1
- package/src/components/header/template-title/edit-template-title.js +4 -7
- package/src/components/keyboard-shortcut-help-modal/test/__snapshots__/index.js.snap +3 -1
- package/src/components/keyboard-shortcuts/index.js +1 -1
- package/src/components/layout/style.scss +11 -0
- package/src/components/preferences-modal/test/__snapshots__/index.js.snap +9 -5
- package/src/components/secondary-sidebar/style.scss +20 -5
- package/src/components/sidebar/plugin-document-setting-panel/index.js +1 -1
- package/src/components/sidebar/plugin-post-status-info/index.js +1 -1
- package/src/components/sidebar/post-status/index.js +14 -2
- package/src/components/sidebar/post-trash/index.js +3 -3
- package/src/components/sidebar/settings-sidebar/index.js +1 -1
- package/src/components/start-page-options/index.js +1 -0
- package/src/components/start-page-options/style.scss +11 -15
- package/src/components/view-link/index.js +37 -0
- package/src/components/visual-editor/header.native.js +12 -4
- package/src/components/visual-editor/style.scss +2 -1
- package/src/editor.js +7 -0
|
@@ -1238,6 +1238,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1238
1238
|
height: 61px;
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
|
+
@media (min-width: 782px) {
|
|
1242
|
+
.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within) {
|
|
1243
|
+
z-index: 19;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1241
1247
|
.edit-post-block-manager__no-results {
|
|
1242
1248
|
font-style: italic;
|
|
1243
1249
|
padding: 24px 0;
|
|
@@ -1400,6 +1406,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1400
1406
|
clear: both;
|
|
1401
1407
|
}
|
|
1402
1408
|
|
|
1409
|
+
/**
|
|
1410
|
+
* Note that this CSS file should be in sync with its counterpart in the other editor:
|
|
1411
|
+
* packages/edit-site/src/components/secondary-sidebar/style.scss
|
|
1412
|
+
*/
|
|
1403
1413
|
.edit-post-editor__inserter-panel,
|
|
1404
1414
|
.edit-post-editor__document-overview-panel {
|
|
1405
1415
|
height: 100%;
|
|
@@ -1407,8 +1417,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1407
1417
|
flex-direction: column;
|
|
1408
1418
|
}
|
|
1409
1419
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1420
|
+
@media (min-width: 782px) {
|
|
1421
|
+
.edit-post-editor__document-overview-panel {
|
|
1422
|
+
width: 350px;
|
|
1423
|
+
}
|
|
1412
1424
|
}
|
|
1413
1425
|
.edit-post-editor__document-overview-panel .edit-post-sidebar__panel-tabs {
|
|
1414
1426
|
flex-direction: row-reverse;
|
|
@@ -1458,10 +1470,59 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1458
1470
|
.edit-post-editor__list-view-panel-content,
|
|
1459
1471
|
.edit-post-editor__list-view-container > .document-outline,
|
|
1460
1472
|
.edit-post-editor__list-view-empty-headings {
|
|
1461
|
-
overflow: auto;
|
|
1462
1473
|
height: 100%;
|
|
1474
|
+
scrollbar-width: thin;
|
|
1475
|
+
scrollbar-gutter: stable both-edges;
|
|
1476
|
+
scrollbar-color: transparent transparent;
|
|
1477
|
+
will-change: transform;
|
|
1478
|
+
overflow: auto;
|
|
1479
|
+
scrollbar-gutter: auto;
|
|
1463
1480
|
padding: 8px 6px;
|
|
1464
1481
|
}
|
|
1482
|
+
.edit-post-editor__list-view-panel-content::-webkit-scrollbar,
|
|
1483
|
+
.edit-post-editor__list-view-container > .document-outline::-webkit-scrollbar,
|
|
1484
|
+
.edit-post-editor__list-view-empty-headings::-webkit-scrollbar {
|
|
1485
|
+
width: 12px;
|
|
1486
|
+
height: 12px;
|
|
1487
|
+
}
|
|
1488
|
+
.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track,
|
|
1489
|
+
.edit-post-editor__list-view-container > .document-outline::-webkit-scrollbar-track,
|
|
1490
|
+
.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track {
|
|
1491
|
+
background-color: transparent;
|
|
1492
|
+
}
|
|
1493
|
+
.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb,
|
|
1494
|
+
.edit-post-editor__list-view-container > .document-outline::-webkit-scrollbar-thumb,
|
|
1495
|
+
.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb {
|
|
1496
|
+
background-color: transparent;
|
|
1497
|
+
border-radius: 8px;
|
|
1498
|
+
border: 3px solid transparent;
|
|
1499
|
+
background-clip: padding-box;
|
|
1500
|
+
}
|
|
1501
|
+
.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb, .edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb, .edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,
|
|
1502
|
+
.edit-post-editor__list-view-container > .document-outline:hover::-webkit-scrollbar-thumb,
|
|
1503
|
+
.edit-post-editor__list-view-container > .document-outline:focus::-webkit-scrollbar-thumb,
|
|
1504
|
+
.edit-post-editor__list-view-container > .document-outline:focus-within::-webkit-scrollbar-thumb,
|
|
1505
|
+
.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,
|
|
1506
|
+
.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,
|
|
1507
|
+
.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb {
|
|
1508
|
+
background-color: #949494;
|
|
1509
|
+
}
|
|
1510
|
+
.edit-post-editor__list-view-panel-content:hover, .edit-post-editor__list-view-panel-content:focus, .edit-post-editor__list-view-panel-content:focus-within,
|
|
1511
|
+
.edit-post-editor__list-view-container > .document-outline:hover,
|
|
1512
|
+
.edit-post-editor__list-view-container > .document-outline:focus,
|
|
1513
|
+
.edit-post-editor__list-view-container > .document-outline:focus-within,
|
|
1514
|
+
.edit-post-editor__list-view-empty-headings:hover,
|
|
1515
|
+
.edit-post-editor__list-view-empty-headings:focus,
|
|
1516
|
+
.edit-post-editor__list-view-empty-headings:focus-within {
|
|
1517
|
+
scrollbar-color: #949494 transparent;
|
|
1518
|
+
}
|
|
1519
|
+
@media (hover: none) {
|
|
1520
|
+
.edit-post-editor__list-view-panel-content,
|
|
1521
|
+
.edit-post-editor__list-view-container > .document-outline,
|
|
1522
|
+
.edit-post-editor__list-view-empty-headings {
|
|
1523
|
+
scrollbar-color: #949494 transparent;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1465
1526
|
|
|
1466
1527
|
.edit-post-editor__list-view-empty-headings {
|
|
1467
1528
|
text-align: center;
|
|
@@ -1798,7 +1859,8 @@ h2.edit-post-template-summary__title {
|
|
|
1798
1859
|
position: relative;
|
|
1799
1860
|
display: flex;
|
|
1800
1861
|
flex-flow: column;
|
|
1801
|
-
|
|
1862
|
+
overflow: hidden;
|
|
1863
|
+
background-color: #1e1e1e;
|
|
1802
1864
|
flex: 1 0 auto;
|
|
1803
1865
|
}
|
|
1804
1866
|
.edit-post-visual-editor .components-button {
|
|
@@ -1879,27 +1941,21 @@ h2.edit-post-template-summary__title {
|
|
|
1879
1941
|
fill: #fff;
|
|
1880
1942
|
}
|
|
1881
1943
|
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
}
|
|
1944
|
+
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1945
|
+
column-count: 2;
|
|
1946
|
+
column-gap: 24px;
|
|
1947
|
+
padding-top: 2px;
|
|
1887
1948
|
}
|
|
1888
1949
|
@media (min-width: 782px) {
|
|
1889
|
-
.edit-post-start-page-options__modal {
|
|
1890
|
-
|
|
1950
|
+
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1951
|
+
column-count: 3;
|
|
1891
1952
|
}
|
|
1892
1953
|
}
|
|
1893
|
-
@media (min-width:
|
|
1894
|
-
.edit-post-start-page-options__modal {
|
|
1895
|
-
|
|
1954
|
+
@media (min-width: 1280px) {
|
|
1955
|
+
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1956
|
+
column-count: 4;
|
|
1896
1957
|
}
|
|
1897
1958
|
}
|
|
1898
|
-
|
|
1899
|
-
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1900
|
-
column-count: 2;
|
|
1901
|
-
column-gap: 24px;
|
|
1902
|
-
}
|
|
1903
1959
|
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
1904
1960
|
break-inside: avoid-column;
|
|
1905
1961
|
margin-bottom: 24px;
|
package/build-style/style.css
CHANGED
|
@@ -1238,6 +1238,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1238
1238
|
height: 61px;
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
|
+
@media (min-width: 782px) {
|
|
1242
|
+
.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within) {
|
|
1243
|
+
z-index: 19;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1241
1247
|
.edit-post-block-manager__no-results {
|
|
1242
1248
|
font-style: italic;
|
|
1243
1249
|
padding: 24px 0;
|
|
@@ -1400,6 +1406,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1400
1406
|
clear: both;
|
|
1401
1407
|
}
|
|
1402
1408
|
|
|
1409
|
+
/**
|
|
1410
|
+
* Note that this CSS file should be in sync with its counterpart in the other editor:
|
|
1411
|
+
* packages/edit-site/src/components/secondary-sidebar/style.scss
|
|
1412
|
+
*/
|
|
1403
1413
|
.edit-post-editor__inserter-panel,
|
|
1404
1414
|
.edit-post-editor__document-overview-panel {
|
|
1405
1415
|
height: 100%;
|
|
@@ -1407,8 +1417,10 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1407
1417
|
flex-direction: column;
|
|
1408
1418
|
}
|
|
1409
1419
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1420
|
+
@media (min-width: 782px) {
|
|
1421
|
+
.edit-post-editor__document-overview-panel {
|
|
1422
|
+
width: 350px;
|
|
1423
|
+
}
|
|
1412
1424
|
}
|
|
1413
1425
|
.edit-post-editor__document-overview-panel .edit-post-sidebar__panel-tabs {
|
|
1414
1426
|
flex-direction: row-reverse;
|
|
@@ -1458,10 +1470,59 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1458
1470
|
.edit-post-editor__list-view-panel-content,
|
|
1459
1471
|
.edit-post-editor__list-view-container > .document-outline,
|
|
1460
1472
|
.edit-post-editor__list-view-empty-headings {
|
|
1461
|
-
overflow: auto;
|
|
1462
1473
|
height: 100%;
|
|
1474
|
+
scrollbar-width: thin;
|
|
1475
|
+
scrollbar-gutter: stable both-edges;
|
|
1476
|
+
scrollbar-color: transparent transparent;
|
|
1477
|
+
will-change: transform;
|
|
1478
|
+
overflow: auto;
|
|
1479
|
+
scrollbar-gutter: auto;
|
|
1463
1480
|
padding: 8px 6px;
|
|
1464
1481
|
}
|
|
1482
|
+
.edit-post-editor__list-view-panel-content::-webkit-scrollbar,
|
|
1483
|
+
.edit-post-editor__list-view-container > .document-outline::-webkit-scrollbar,
|
|
1484
|
+
.edit-post-editor__list-view-empty-headings::-webkit-scrollbar {
|
|
1485
|
+
width: 12px;
|
|
1486
|
+
height: 12px;
|
|
1487
|
+
}
|
|
1488
|
+
.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track,
|
|
1489
|
+
.edit-post-editor__list-view-container > .document-outline::-webkit-scrollbar-track,
|
|
1490
|
+
.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track {
|
|
1491
|
+
background-color: transparent;
|
|
1492
|
+
}
|
|
1493
|
+
.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb,
|
|
1494
|
+
.edit-post-editor__list-view-container > .document-outline::-webkit-scrollbar-thumb,
|
|
1495
|
+
.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb {
|
|
1496
|
+
background-color: transparent;
|
|
1497
|
+
border-radius: 8px;
|
|
1498
|
+
border: 3px solid transparent;
|
|
1499
|
+
background-clip: padding-box;
|
|
1500
|
+
}
|
|
1501
|
+
.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb, .edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb, .edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,
|
|
1502
|
+
.edit-post-editor__list-view-container > .document-outline:hover::-webkit-scrollbar-thumb,
|
|
1503
|
+
.edit-post-editor__list-view-container > .document-outline:focus::-webkit-scrollbar-thumb,
|
|
1504
|
+
.edit-post-editor__list-view-container > .document-outline:focus-within::-webkit-scrollbar-thumb,
|
|
1505
|
+
.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,
|
|
1506
|
+
.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,
|
|
1507
|
+
.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb {
|
|
1508
|
+
background-color: #949494;
|
|
1509
|
+
}
|
|
1510
|
+
.edit-post-editor__list-view-panel-content:hover, .edit-post-editor__list-view-panel-content:focus, .edit-post-editor__list-view-panel-content:focus-within,
|
|
1511
|
+
.edit-post-editor__list-view-container > .document-outline:hover,
|
|
1512
|
+
.edit-post-editor__list-view-container > .document-outline:focus,
|
|
1513
|
+
.edit-post-editor__list-view-container > .document-outline:focus-within,
|
|
1514
|
+
.edit-post-editor__list-view-empty-headings:hover,
|
|
1515
|
+
.edit-post-editor__list-view-empty-headings:focus,
|
|
1516
|
+
.edit-post-editor__list-view-empty-headings:focus-within {
|
|
1517
|
+
scrollbar-color: #949494 transparent;
|
|
1518
|
+
}
|
|
1519
|
+
@media (hover: none) {
|
|
1520
|
+
.edit-post-editor__list-view-panel-content,
|
|
1521
|
+
.edit-post-editor__list-view-container > .document-outline,
|
|
1522
|
+
.edit-post-editor__list-view-empty-headings {
|
|
1523
|
+
scrollbar-color: #949494 transparent;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1465
1526
|
|
|
1466
1527
|
.edit-post-editor__list-view-empty-headings {
|
|
1467
1528
|
text-align: center;
|
|
@@ -1798,7 +1859,8 @@ h2.edit-post-template-summary__title {
|
|
|
1798
1859
|
position: relative;
|
|
1799
1860
|
display: flex;
|
|
1800
1861
|
flex-flow: column;
|
|
1801
|
-
|
|
1862
|
+
overflow: hidden;
|
|
1863
|
+
background-color: #1e1e1e;
|
|
1802
1864
|
flex: 1 0 auto;
|
|
1803
1865
|
}
|
|
1804
1866
|
.edit-post-visual-editor .components-button {
|
|
@@ -1879,27 +1941,21 @@ h2.edit-post-template-summary__title {
|
|
|
1879
1941
|
fill: #fff;
|
|
1880
1942
|
}
|
|
1881
1943
|
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
}
|
|
1944
|
+
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1945
|
+
column-count: 2;
|
|
1946
|
+
column-gap: 24px;
|
|
1947
|
+
padding-top: 2px;
|
|
1887
1948
|
}
|
|
1888
1949
|
@media (min-width: 782px) {
|
|
1889
|
-
.edit-post-start-page-options__modal {
|
|
1890
|
-
|
|
1950
|
+
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1951
|
+
column-count: 3;
|
|
1891
1952
|
}
|
|
1892
1953
|
}
|
|
1893
|
-
@media (min-width:
|
|
1894
|
-
.edit-post-start-page-options__modal {
|
|
1895
|
-
|
|
1954
|
+
@media (min-width: 1280px) {
|
|
1955
|
+
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1956
|
+
column-count: 4;
|
|
1896
1957
|
}
|
|
1897
1958
|
}
|
|
1898
|
-
|
|
1899
|
-
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
1900
|
-
column-count: 2;
|
|
1901
|
-
column-gap: 24px;
|
|
1902
|
-
}
|
|
1903
1959
|
.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
1904
1960
|
break-inside: avoid-column;
|
|
1905
1961
|
margin-bottom: 24px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-post",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.10.0",
|
|
4
4
|
"description": "Edit Post module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,37 +27,39 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.
|
|
31
|
-
"@wordpress/api-fetch": "^6.
|
|
32
|
-
"@wordpress/block-editor": "^
|
|
33
|
-
"@wordpress/block-library": "^8.
|
|
34
|
-
"@wordpress/blocks": "^12.
|
|
35
|
-
"@wordpress/
|
|
36
|
-
"@wordpress/
|
|
37
|
-
"@wordpress/
|
|
38
|
-
"@wordpress/
|
|
39
|
-
"@wordpress/
|
|
40
|
-
"@wordpress/
|
|
41
|
-
"@wordpress/
|
|
42
|
-
"@wordpress/
|
|
43
|
-
"@wordpress/
|
|
44
|
-
"@wordpress/
|
|
45
|
-
"@wordpress/
|
|
46
|
-
"@wordpress/
|
|
47
|
-
"@wordpress/
|
|
48
|
-
"@wordpress/
|
|
49
|
-
"@wordpress/
|
|
50
|
-
"@wordpress/
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/
|
|
53
|
-
"@wordpress/
|
|
54
|
-
"@wordpress/
|
|
55
|
-
"@wordpress/
|
|
56
|
-
"@wordpress/
|
|
57
|
-
"@wordpress/
|
|
30
|
+
"@wordpress/a11y": "^3.33.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.30.0",
|
|
32
|
+
"@wordpress/block-editor": "^12.1.0",
|
|
33
|
+
"@wordpress/block-library": "^8.10.0",
|
|
34
|
+
"@wordpress/blocks": "^12.10.0",
|
|
35
|
+
"@wordpress/commands": "^0.4.0",
|
|
36
|
+
"@wordpress/components": "^24.0.0",
|
|
37
|
+
"@wordpress/compose": "^6.10.0",
|
|
38
|
+
"@wordpress/core-commands": "^0.2.0",
|
|
39
|
+
"@wordpress/core-data": "^6.10.0",
|
|
40
|
+
"@wordpress/data": "^9.3.0",
|
|
41
|
+
"@wordpress/deprecated": "^3.33.0",
|
|
42
|
+
"@wordpress/dom": "^3.33.0",
|
|
43
|
+
"@wordpress/editor": "^13.10.0",
|
|
44
|
+
"@wordpress/element": "^5.10.0",
|
|
45
|
+
"@wordpress/hooks": "^3.33.0",
|
|
46
|
+
"@wordpress/i18n": "^4.33.0",
|
|
47
|
+
"@wordpress/icons": "^9.24.0",
|
|
48
|
+
"@wordpress/interface": "^5.10.0",
|
|
49
|
+
"@wordpress/keyboard-shortcuts": "^4.10.0",
|
|
50
|
+
"@wordpress/keycodes": "^3.33.0",
|
|
51
|
+
"@wordpress/media-utils": "^4.24.0",
|
|
52
|
+
"@wordpress/notices": "^4.1.0",
|
|
53
|
+
"@wordpress/plugins": "^6.1.0",
|
|
54
|
+
"@wordpress/preferences": "^3.10.0",
|
|
55
|
+
"@wordpress/private-apis": "^0.15.0",
|
|
56
|
+
"@wordpress/url": "^3.34.0",
|
|
57
|
+
"@wordpress/viewport": "^5.10.0",
|
|
58
|
+
"@wordpress/warning": "^2.33.0",
|
|
59
|
+
"@wordpress/widgets": "^3.10.0",
|
|
58
60
|
"classnames": "^2.3.1",
|
|
59
61
|
"memize": "^1.1.0",
|
|
60
|
-
"rememo": "^4.0.
|
|
62
|
+
"rememo": "^4.0.2"
|
|
61
63
|
},
|
|
62
64
|
"peerDependencies": {
|
|
63
65
|
"react": "^18.0.0",
|
|
@@ -66,5 +68,5 @@
|
|
|
66
68
|
"publishConfig": {
|
|
67
69
|
"access": "public"
|
|
68
70
|
},
|
|
69
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "e936127e1e13881f1a940b7bd1593a9e500147f3"
|
|
70
72
|
}
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
NavigableToolbar,
|
|
9
9
|
ToolSelector,
|
|
10
10
|
store as blockEditorStore,
|
|
11
|
+
privateApis as blockEditorPrivateApis,
|
|
11
12
|
} from '@wordpress/block-editor';
|
|
12
13
|
import {
|
|
13
14
|
EditorHistoryRedo,
|
|
@@ -23,6 +24,7 @@ import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
|
|
|
23
24
|
* Internal dependencies
|
|
24
25
|
*/
|
|
25
26
|
import { store as editPostStore } from '../../../store';
|
|
27
|
+
import { unlock } from '../../../private-apis';
|
|
26
28
|
|
|
27
29
|
const preventDefault = ( event ) => {
|
|
28
30
|
event.preventDefault();
|
|
@@ -64,9 +66,22 @@ function HeaderToolbar() {
|
|
|
64
66
|
),
|
|
65
67
|
};
|
|
66
68
|
}, [] );
|
|
69
|
+
|
|
70
|
+
const { useShouldContextualToolbarShow } = unlock( blockEditorPrivateApis );
|
|
71
|
+
|
|
67
72
|
const isLargeViewport = useViewportMatch( 'medium' );
|
|
68
73
|
const isWideViewport = useViewportMatch( 'wide' );
|
|
69
|
-
|
|
74
|
+
const {
|
|
75
|
+
shouldShowContextualToolbar,
|
|
76
|
+
canFocusHiddenToolbar,
|
|
77
|
+
fixedToolbarCanBeFocused,
|
|
78
|
+
} = useShouldContextualToolbarShow();
|
|
79
|
+
// If there's a block toolbar to be focused, disable the focus shortcut for the document toolbar.
|
|
80
|
+
// There's a fixed block toolbar when the fixed toolbar option is enabled or when the browser width is less than the large viewport.
|
|
81
|
+
const blockToolbarCanBeFocused =
|
|
82
|
+
shouldShowContextualToolbar ||
|
|
83
|
+
canFocusHiddenToolbar ||
|
|
84
|
+
fixedToolbarCanBeFocused;
|
|
70
85
|
/* translators: accessibility text for the editor toolbar */
|
|
71
86
|
const toolbarAriaLabel = __( 'Document tools' );
|
|
72
87
|
|
|
@@ -114,6 +129,7 @@ function HeaderToolbar() {
|
|
|
114
129
|
<NavigableToolbar
|
|
115
130
|
className="edit-post-header-toolbar"
|
|
116
131
|
aria-label={ toolbarAriaLabel }
|
|
132
|
+
shouldUseKeyboardFocusShortcut={ ! blockToolbarCanBeFocused }
|
|
117
133
|
>
|
|
118
134
|
<div className="edit-post-header-toolbar__left">
|
|
119
135
|
<ToolbarItem
|
|
@@ -15,6 +15,7 @@ import HeaderToolbar from './header-toolbar';
|
|
|
15
15
|
import MoreMenu from './more-menu';
|
|
16
16
|
import PostPublishButtonOrToggle from './post-publish-button-or-toggle';
|
|
17
17
|
import { default as DevicePreview } from '../device-preview';
|
|
18
|
+
import ViewLink from '../view-link';
|
|
18
19
|
import MainDashboardButton from './main-dashboard-button';
|
|
19
20
|
import { store as editPostStore } from '../../store';
|
|
20
21
|
import TemplateTitle from './template-title';
|
|
@@ -88,6 +89,7 @@ function Header( { setEntitiesSavedStatesCallback } ) {
|
|
|
88
89
|
showIconLabels={ showIconLabels }
|
|
89
90
|
/>
|
|
90
91
|
) }
|
|
92
|
+
<ViewLink />
|
|
91
93
|
<DevicePreview />
|
|
92
94
|
<PostPreviewButton
|
|
93
95
|
forceIsAutosaveable={ hasActiveMetaboxes }
|
|
@@ -58,16 +58,13 @@ export default function EditTemplateTitle() {
|
|
|
58
58
|
const settings = getEditorSettings();
|
|
59
59
|
const newAvailableTemplates = Object.fromEntries(
|
|
60
60
|
Object.entries( settings.availableTemplates ?? {} ).map(
|
|
61
|
-
( [ id, existingTitle ] ) =>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return newTitle;
|
|
66
|
-
}
|
|
61
|
+
( [ id, existingTitle ] ) => [
|
|
62
|
+
id,
|
|
63
|
+
id !== template.slug ? existingTitle : newTitle,
|
|
64
|
+
]
|
|
67
65
|
)
|
|
68
66
|
);
|
|
69
67
|
updateEditorSettings( {
|
|
70
|
-
...settings,
|
|
71
68
|
availableTemplates: newAvailableTemplates,
|
|
72
69
|
} );
|
|
73
70
|
editEntityRecord( 'postType', 'wp_template', template.id, {
|
|
@@ -43,7 +43,9 @@ exports[`KeyboardShortcutHelpModal should match snapshot when the modal is activ
|
|
|
43
43
|
</svg>
|
|
44
44
|
</button>
|
|
45
45
|
</div>
|
|
46
|
-
<div
|
|
46
|
+
<div
|
|
47
|
+
class="components-modal__children-container"
|
|
48
|
+
>
|
|
47
49
|
<section
|
|
48
50
|
class="edit-post-keyboard-shortcut-help-modal__section edit-post-keyboard-shortcut-help-modal__main-shortcuts"
|
|
49
51
|
>
|
|
@@ -130,7 +130,7 @@ function KeyboardShortcuts() {
|
|
|
130
130
|
registerShortcut( {
|
|
131
131
|
name: 'core/edit-post/toggle-sidebar',
|
|
132
132
|
category: 'global',
|
|
133
|
-
description: __( 'Show or hide the
|
|
133
|
+
description: __( 'Show or hide the Settings sidebar.' ),
|
|
134
134
|
keyCombination: {
|
|
135
135
|
modifier: 'primaryShift',
|
|
136
136
|
character: ',',
|
|
@@ -99,3 +99,14 @@
|
|
|
99
99
|
.edit-post-layout .entities-saved-states__panel-header {
|
|
100
100
|
height: $header-height + $border-width;
|
|
101
101
|
}
|
|
102
|
+
|
|
103
|
+
.edit-post-layout.has-fixed-toolbar {
|
|
104
|
+
// making the header be lower than the content
|
|
105
|
+
// so the fixed toolbar can be positioned on top of it
|
|
106
|
+
// but only on desktop
|
|
107
|
+
@include break-medium() {
|
|
108
|
+
.interface-interface-skeleton__header:not(:focus-within) {
|
|
109
|
+
z-index: 19;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -102,7 +102,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
102
102
|
</svg>
|
|
103
103
|
</button>
|
|
104
104
|
</div>
|
|
105
|
-
<div
|
|
105
|
+
<div
|
|
106
|
+
class="components-modal__children-container"
|
|
107
|
+
>
|
|
106
108
|
<div
|
|
107
109
|
class="interface-preferences__tabs"
|
|
108
110
|
>
|
|
@@ -608,13 +610,13 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
608
610
|
}
|
|
609
611
|
|
|
610
612
|
.emotion-13:hover {
|
|
611
|
-
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #
|
|
613
|
+
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
612
614
|
}
|
|
613
615
|
|
|
614
616
|
.emotion-13:focus {
|
|
615
617
|
background-color: transparent;
|
|
616
|
-
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #
|
|
617
|
-
border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #
|
|
618
|
+
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
619
|
+
border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
618
620
|
outline: 3px solid transparent;
|
|
619
621
|
}
|
|
620
622
|
|
|
@@ -723,7 +725,9 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
|
|
|
723
725
|
</svg>
|
|
724
726
|
</button>
|
|
725
727
|
</div>
|
|
726
|
-
<div
|
|
728
|
+
<div
|
|
729
|
+
class="components-modal__children-container"
|
|
730
|
+
>
|
|
727
731
|
<div
|
|
728
732
|
class="components-navigator-provider interface-preferences__provider emotion-0 emotion-1"
|
|
729
733
|
data-wp-c16t="true"
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note that this CSS file should be in sync with its counterpart in the other editor:
|
|
3
|
+
* packages/edit-site/src/components/secondary-sidebar/style.scss
|
|
4
|
+
*/
|
|
5
|
+
|
|
1
6
|
.edit-post-editor__inserter-panel,
|
|
2
7
|
.edit-post-editor__document-overview-panel {
|
|
3
8
|
height: 100%;
|
|
@@ -6,10 +11,11 @@
|
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
.edit-post-editor__document-overview-panel {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
@include break-medium() {
|
|
15
|
+
// Same width as the Inserter.
|
|
16
|
+
// @see packages/block-editor/src/components/inserter/style.scss
|
|
17
|
+
width: 350px;
|
|
18
|
+
}
|
|
13
19
|
|
|
14
20
|
.edit-post-sidebar__panel-tabs {
|
|
15
21
|
flex-direction: row-reverse;
|
|
@@ -62,8 +68,17 @@
|
|
|
62
68
|
.edit-post-editor__list-view-panel-content,
|
|
63
69
|
.edit-post-editor__list-view-container > .document-outline,
|
|
64
70
|
.edit-post-editor__list-view-empty-headings {
|
|
65
|
-
overflow: auto;
|
|
66
71
|
height: 100%;
|
|
72
|
+
|
|
73
|
+
// Include custom scrollbars, invisible until hovered.
|
|
74
|
+
@include custom-scrollbars-on-hover(transparent, $gray-600);
|
|
75
|
+
overflow: auto;
|
|
76
|
+
|
|
77
|
+
// Only reserve space for scrollbars when there is content to scroll.
|
|
78
|
+
// This allows items in the list view to have equidistant padding left and right
|
|
79
|
+
// right up until a scrollbar is present.
|
|
80
|
+
scrollbar-gutter: auto;
|
|
81
|
+
|
|
67
82
|
// The table cells use an extra pixels of space left and right. We compensate for that here.
|
|
68
83
|
padding: $grid-unit-10 ($grid-unit-10 - $border-width - $border-width);
|
|
69
84
|
}
|
|
@@ -17,7 +17,7 @@ import warning from '@wordpress/warning';
|
|
|
17
17
|
import { EnablePluginDocumentSettingPanelOption } from '../../preferences-modal/options';
|
|
18
18
|
import { store as editPostStore } from '../../../store';
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const { Fill, Slot } = createSlotFill( 'PluginDocumentSettingPanel' );
|
|
21
21
|
|
|
22
22
|
const PluginDocumentSettingFill = ( {
|
|
23
23
|
isEnabled,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { createSlotFill, PanelRow } from '@wordpress/components';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Renders a row in the Summary panel of the Document sidebar.
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
__experimentalHStack as HStack,
|
|
7
|
+
PanelBody,
|
|
8
|
+
} from '@wordpress/components';
|
|
6
9
|
import { withSelect, withDispatch } from '@wordpress/data';
|
|
7
10
|
import { compose, ifCondition } from '@wordpress/compose';
|
|
11
|
+
import { PostSwitchToDraftButton } from '@wordpress/editor';
|
|
8
12
|
|
|
9
13
|
/**
|
|
10
14
|
* Internal dependencies
|
|
@@ -48,7 +52,15 @@ function PostStatus( { isOpened, onTogglePanel } ) {
|
|
|
48
52
|
<PostSlug />
|
|
49
53
|
<PostAuthor />
|
|
50
54
|
{ fills }
|
|
51
|
-
<
|
|
55
|
+
<HStack
|
|
56
|
+
style={ {
|
|
57
|
+
marginTop: '16px',
|
|
58
|
+
} }
|
|
59
|
+
spacing={ 4 }
|
|
60
|
+
>
|
|
61
|
+
<PostSwitchToDraftButton />
|
|
62
|
+
<PostTrash />
|
|
63
|
+
</HStack>
|
|
52
64
|
</>
|
|
53
65
|
) }
|
|
54
66
|
</PluginPostStatusInfo.Slot>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { PanelRow } from '@wordpress/components';
|
|
5
4
|
import { PostTrash as PostTrashLink, PostTrashCheck } from '@wordpress/editor';
|
|
5
|
+
import { FlexItem } from '@wordpress/components';
|
|
6
6
|
|
|
7
7
|
export default function PostTrash() {
|
|
8
8
|
return (
|
|
9
9
|
<PostTrashCheck>
|
|
10
|
-
<
|
|
10
|
+
<FlexItem isBlock>
|
|
11
11
|
<PostTrashLink />
|
|
12
|
-
</
|
|
12
|
+
</FlexItem>
|
|
13
13
|
</PostTrashCheck>
|
|
14
14
|
);
|
|
15
15
|
}
|