@wordpress/editor 14.0.0 → 14.0.2
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/components/block-settings-menu/content-only-settings-menu.js +14 -5
- package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build/components/document-tools/index.js +12 -3
- package/build/components/document-tools/index.js.map +1 -1
- package/build/components/editor/index.js +83 -0
- package/build/components/editor/index.js.map +1 -0
- package/build/components/editor-interface/index.js +6 -8
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/entity-record-item.js +4 -12
- package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build/components/global-styles-provider/index.js +9 -2
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/back-button.js +4 -1
- package/build/components/header/back-button.js.map +1 -1
- package/build/components/header/index.js +1 -5
- package/build/components/header/index.js.map +1 -1
- package/build/components/media-categories/index.js +1 -1
- package/build/components/media-categories/index.js.map +1 -1
- package/build/components/post-actions/actions.js +4 -3
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-last-revision/index.js +35 -9
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-preview-button/index.js +1 -0
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-panel/index.js +1 -0
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-sync-status/index.js +1 -1
- package/build/components/post-sync-status/index.js.map +1 -1
- package/build/components/post-trash/index.js +1 -0
- package/build/components/post-trash/index.js.map +1 -1
- package/build/components/post-url/panel.js +25 -3
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/post-visibility/index.js +1 -0
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/provider/disable-non-page-content-blocks.js +5 -3
- package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
- package/build/components/sidebar/post-summary.js +2 -1
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/template-validation-notice/index.js +1 -0
- package/build/components/template-validation-notice/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +1 -0
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/hooks/pattern-overrides.js +2 -1
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/private-apis.js +3 -1
- package/build/private-apis.js.map +1 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +14 -5
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build-module/components/document-tools/index.js +12 -3
- package/build-module/components/document-tools/index.js.map +1 -1
- package/build-module/components/editor/index.js +76 -0
- package/build-module/components/editor/index.js.map +1 -0
- package/build-module/components/editor-interface/index.js +6 -8
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +6 -14
- package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +9 -2
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/back-button.js +4 -1
- package/build-module/components/header/back-button.js.map +1 -1
- package/build-module/components/header/index.js +1 -5
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/media-categories/index.js +1 -1
- package/build-module/components/media-categories/index.js.map +1 -1
- package/build-module/components/post-actions/actions.js +4 -3
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +34 -11
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +1 -0
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -0
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-sync-status/index.js +1 -1
- package/build-module/components/post-sync-status/index.js.map +1 -1
- package/build-module/components/post-trash/index.js +1 -0
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/post-url/panel.js +26 -3
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/post-visibility/index.js +1 -0
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/provider/disable-non-page-content-blocks.js +5 -3
- package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +2 -1
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/template-validation-notice/index.js +1 -0
- package/build-module/components/template-validation-notice/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +1 -0
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/hooks/pattern-overrides.js +2 -1
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/private-apis.js +3 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-style/style-rtl.css +29 -56
- package/build-style/style.css +29 -56
- package/package.json +35 -35
- package/src/components/block-settings-menu/content-only-settings-menu.js +26 -12
- package/src/components/collapsible-block-toolbar/style.scss +3 -1
- package/src/components/document-tools/index.js +13 -4
- package/src/components/editor/index.js +93 -0
- package/src/components/editor-interface/index.js +5 -5
- package/src/components/editor-interface/style.scss +3 -0
- package/src/components/entities-saved-states/entity-record-item.js +4 -14
- package/src/components/entities-saved-states/style.scss +0 -20
- package/src/components/global-styles-provider/index.js +12 -2
- package/src/components/header/back-button.js +6 -1
- package/src/components/header/index.js +1 -8
- package/src/components/header/style.scss +1 -1
- package/src/components/media-categories/index.js +1 -3
- package/src/components/post-actions/actions.js +4 -2
- package/src/components/post-last-revision/index.js +30 -7
- package/src/components/post-last-revision/style.scss +4 -0
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-preview-button/index.js +1 -0
- package/src/components/post-preview-button/test/index.js +10 -2
- package/src/components/post-publish-panel/index.js +1 -0
- package/src/components/post-publish-panel/style.scss +28 -36
- package/src/components/post-sync-status/index.js +2 -8
- package/src/components/post-trash/index.js +1 -0
- package/src/components/post-url/panel.js +13 -5
- package/src/components/post-visibility/index.js +1 -0
- package/src/components/provider/disable-non-page-content-blocks.js +9 -4
- package/src/components/save-publish-panels/style.scss +0 -8
- package/src/components/sidebar/post-summary.js +2 -0
- package/src/components/template-validation-notice/index.js +1 -0
- package/src/components/visual-editor/edit-template-blocks-notification.js +1 -0
- package/src/hooks/pattern-overrides.js +2 -0
- package/src/lock-unlock.js +1 -1
- package/src/private-apis.js +3 -1
- package/src/style.scss +1 -0
|
@@ -352,10 +352,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
352
352
|
.interface-interface-skeleton__sidebar {
|
|
353
353
|
position: relative !important;
|
|
354
354
|
}
|
|
355
|
-
.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,
|
|
356
|
-
.is-sidebar-opened .interface-interface-skeleton__sidebar {
|
|
357
|
-
z-index: 90;
|
|
358
|
-
}
|
|
359
355
|
}
|
|
360
356
|
|
|
361
357
|
.interface-interface-skeleton__sidebar {
|
|
@@ -592,6 +588,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
592
588
|
.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar {
|
|
593
589
|
border-bottom: 0;
|
|
594
590
|
height: 100%;
|
|
591
|
+
background: transparent;
|
|
595
592
|
}
|
|
596
593
|
.editor-collapsible-block-toolbar .block-editor-block-toolbar {
|
|
597
594
|
height: 100%;
|
|
@@ -632,8 +629,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
632
629
|
}
|
|
633
630
|
@media (min-width: 600px) {
|
|
634
631
|
.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container {
|
|
632
|
+
height: 40px;
|
|
635
633
|
position: relative;
|
|
636
|
-
top: -
|
|
634
|
+
top: -5px;
|
|
637
635
|
}
|
|
638
636
|
}
|
|
639
637
|
.editor-collapsible-block-toolbar.is-collapsed {
|
|
@@ -965,6 +963,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
965
963
|
margin-right: 8px;
|
|
966
964
|
}
|
|
967
965
|
|
|
966
|
+
.editor-editor-interface .entities-saved-states__panel-header {
|
|
967
|
+
height: 61px;
|
|
968
|
+
}
|
|
969
|
+
|
|
968
970
|
.components-editor-notices__dismissible,
|
|
969
971
|
.components-editor-notices__pinned {
|
|
970
972
|
position: relative;
|
|
@@ -1017,24 +1019,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1017
1019
|
margin-bottom: 4px;
|
|
1018
1020
|
}
|
|
1019
1021
|
|
|
1020
|
-
.edit-post-layout .entities-saved-states__panel-header,
|
|
1021
|
-
.edit-site-editor__interface-skeleton .entities-saved-states__panel-header {
|
|
1022
|
-
height: 61px;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
.entities-saved-states__post-meta {
|
|
1026
|
-
margin-right: 24px;
|
|
1027
|
-
align-items: center;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.entities-saved-states__connections-icon {
|
|
1031
|
-
flex-grow: 0;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.entities-saved-states__bindings-text {
|
|
1035
|
-
flex-grow: 1;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
1022
|
.editor-error-boundary {
|
|
1039
1023
|
margin: auto;
|
|
1040
1024
|
max-width: 780px;
|
|
@@ -1214,28 +1198,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1214
1198
|
}
|
|
1215
1199
|
}
|
|
1216
1200
|
|
|
1217
|
-
.is-distraction-free .interface-interface-skeleton__header {
|
|
1201
|
+
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header {
|
|
1218
1202
|
border-bottom: none;
|
|
1219
1203
|
}
|
|
1220
|
-
.is-distraction-free .editor-header {
|
|
1204
|
+
.editor-editor-interface.is-distraction-free .editor-header {
|
|
1221
1205
|
background-color: #fff;
|
|
1222
1206
|
border-bottom: 1px solid #e0e0e0;
|
|
1223
1207
|
position: absolute;
|
|
1224
1208
|
width: 100%;
|
|
1225
1209
|
}
|
|
1226
|
-
.is-distraction-free .editor-header > .edit-post-header__settings > .edit-post-header__post-preview-button {
|
|
1210
|
+
.editor-editor-interface.is-distraction-free .editor-header > .edit-post-header__settings > .edit-post-header__post-preview-button {
|
|
1227
1211
|
visibility: hidden;
|
|
1228
1212
|
}
|
|
1229
|
-
.is-distraction-free .editor-header > .editor-header__toolbar .editor-document-tools__document-overview-toggle, .is-distraction-free .editor-header > .editor-header__settings > .editor-preview-dropdown, .is-distraction-free .editor-header > .editor-header__settings > .interface-pinned-items {
|
|
1213
|
+
.editor-editor-interface.is-distraction-free .editor-header > .editor-header__toolbar .editor-document-tools__document-overview-toggle, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .editor-preview-dropdown, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .interface-pinned-items {
|
|
1230
1214
|
display: none;
|
|
1231
1215
|
}
|
|
1232
|
-
.is-distraction-free .interface-interface-skeleton__header:focus-within {
|
|
1216
|
+
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within {
|
|
1233
1217
|
opacity: 1 !important;
|
|
1234
1218
|
}
|
|
1235
|
-
.is-distraction-free .interface-interface-skeleton__header:focus-within div {
|
|
1219
|
+
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div {
|
|
1236
1220
|
transform: translateX(0) translateZ(0) !important;
|
|
1237
1221
|
}
|
|
1238
|
-
.is-distraction-free .components-editor-notices__dismissible {
|
|
1222
|
+
.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible {
|
|
1239
1223
|
position: absolute;
|
|
1240
1224
|
z-index: 35;
|
|
1241
1225
|
}
|
|
@@ -1665,6 +1649,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1665
1649
|
padding: 16px;
|
|
1666
1650
|
}
|
|
1667
1651
|
|
|
1652
|
+
.editor-private-post-last-revision__button {
|
|
1653
|
+
display: inline-block;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1668
1656
|
.editor-post-locked-modal__buttons {
|
|
1669
1657
|
margin-top: 24px;
|
|
1670
1658
|
}
|
|
@@ -1703,6 +1691,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1703
1691
|
.editor-post-panel__row-control .components-button {
|
|
1704
1692
|
max-width: 100%;
|
|
1705
1693
|
text-align: right;
|
|
1694
|
+
text-wrap: balance;
|
|
1706
1695
|
text-wrap: pretty;
|
|
1707
1696
|
height: auto;
|
|
1708
1697
|
min-height: 32px;
|
|
@@ -1715,10 +1704,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1715
1704
|
padding: 16px;
|
|
1716
1705
|
}
|
|
1717
1706
|
|
|
1718
|
-
.editor-post-publish-panel {
|
|
1719
|
-
background: #fff;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
1707
|
.editor-post-publish-panel__content {
|
|
1723
1708
|
min-height: calc(100% - 144px);
|
|
1724
1709
|
}
|
|
@@ -1784,6 +1769,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1784
1769
|
|
|
1785
1770
|
.editor-post-publish-panel__header-publish-button {
|
|
1786
1771
|
padding-left: 4px;
|
|
1772
|
+
justify-content: center;
|
|
1787
1773
|
}
|
|
1788
1774
|
|
|
1789
1775
|
.editor-post-publish-panel__header-cancel-button {
|
|
@@ -1830,6 +1816,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1830
1816
|
}
|
|
1831
1817
|
.editor-post-publish-panel__prepublish .components-panel__body-title .components-button {
|
|
1832
1818
|
align-items: flex-start;
|
|
1819
|
+
text-wrap: balance;
|
|
1833
1820
|
text-wrap: pretty;
|
|
1834
1821
|
}
|
|
1835
1822
|
|
|
@@ -1891,19 +1878,18 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1891
1878
|
height: 40px;
|
|
1892
1879
|
}
|
|
1893
1880
|
}
|
|
1894
|
-
.
|
|
1895
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1881
|
+
.editor-post-publish-panel {
|
|
1896
1882
|
position: fixed;
|
|
1897
1883
|
z-index: 100001;
|
|
1898
|
-
|
|
1884
|
+
background: #fff;
|
|
1885
|
+
top: 0;
|
|
1899
1886
|
bottom: 0;
|
|
1900
1887
|
left: 0;
|
|
1901
1888
|
right: 0;
|
|
1902
1889
|
overflow: auto;
|
|
1903
1890
|
}
|
|
1904
1891
|
@media (min-width: 782px) {
|
|
1905
|
-
.
|
|
1906
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1892
|
+
.editor-post-publish-panel {
|
|
1907
1893
|
z-index: 99998;
|
|
1908
1894
|
top: 32px;
|
|
1909
1895
|
right: auto;
|
|
@@ -1914,28 +1900,21 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1914
1900
|
}
|
|
1915
1901
|
}
|
|
1916
1902
|
@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
|
|
1917
|
-
.
|
|
1918
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1903
|
+
.editor-post-publish-panel {
|
|
1919
1904
|
animation-duration: 1ms;
|
|
1920
1905
|
animation-delay: 0s;
|
|
1921
1906
|
}
|
|
1922
1907
|
}
|
|
1923
1908
|
@media (min-width: 782px) {
|
|
1924
|
-
body.is-fullscreen-mode .
|
|
1925
|
-
body.is-fullscreen-mode .edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1909
|
+
body.is-fullscreen-mode .editor-post-publish-panel {
|
|
1926
1910
|
top: 0;
|
|
1927
1911
|
}
|
|
1928
1912
|
}
|
|
1929
1913
|
@media (min-width: 782px) {
|
|
1930
|
-
[role=region]:focus .
|
|
1931
|
-
[role=region]:focus .edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1914
|
+
[role=region]:focus .editor-post-publish-panel {
|
|
1932
1915
|
transform: translateX(0%);
|
|
1933
1916
|
}
|
|
1934
1917
|
}
|
|
1935
|
-
.edit-post-layout .editor-post-publish-panel__header-publish-button,
|
|
1936
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel__header-publish-button {
|
|
1937
|
-
justify-content: center;
|
|
1938
|
-
}
|
|
1939
1918
|
|
|
1940
1919
|
@keyframes editor-post-publish-panel__slide-in-animation {
|
|
1941
1920
|
100% {
|
|
@@ -2349,8 +2328,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2349
2328
|
padding: 0;
|
|
2350
2329
|
margin: auto 0;
|
|
2351
2330
|
width: 12px;
|
|
2352
|
-
|
|
2353
|
-
appearance: none;
|
|
2331
|
+
appearance: none;
|
|
2354
2332
|
cursor: ew-resize;
|
|
2355
2333
|
outline: none;
|
|
2356
2334
|
background: none;
|
|
@@ -2408,11 +2386,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2408
2386
|
bottom: 0;
|
|
2409
2387
|
}
|
|
2410
2388
|
|
|
2411
|
-
.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel, .interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel {
|
|
2412
|
-
top: auto;
|
|
2413
|
-
bottom: 0;
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
2389
|
.editor-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
2417
2390
|
column-count: 2;
|
|
2418
2391
|
column-gap: 24px;
|
package/build-style/style.css
CHANGED
|
@@ -352,10 +352,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
352
352
|
.interface-interface-skeleton__sidebar {
|
|
353
353
|
position: relative !important;
|
|
354
354
|
}
|
|
355
|
-
.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,
|
|
356
|
-
.is-sidebar-opened .interface-interface-skeleton__sidebar {
|
|
357
|
-
z-index: 90;
|
|
358
|
-
}
|
|
359
355
|
}
|
|
360
356
|
|
|
361
357
|
.interface-interface-skeleton__sidebar {
|
|
@@ -592,6 +588,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
592
588
|
.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar {
|
|
593
589
|
border-bottom: 0;
|
|
594
590
|
height: 100%;
|
|
591
|
+
background: transparent;
|
|
595
592
|
}
|
|
596
593
|
.editor-collapsible-block-toolbar .block-editor-block-toolbar {
|
|
597
594
|
height: 100%;
|
|
@@ -632,8 +629,9 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
632
629
|
}
|
|
633
630
|
@media (min-width: 600px) {
|
|
634
631
|
.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container {
|
|
632
|
+
height: 40px;
|
|
635
633
|
position: relative;
|
|
636
|
-
top: -
|
|
634
|
+
top: -5px;
|
|
637
635
|
}
|
|
638
636
|
}
|
|
639
637
|
.editor-collapsible-block-toolbar.is-collapsed {
|
|
@@ -965,6 +963,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
965
963
|
margin-left: 8px;
|
|
966
964
|
}
|
|
967
965
|
|
|
966
|
+
.editor-editor-interface .entities-saved-states__panel-header {
|
|
967
|
+
height: 61px;
|
|
968
|
+
}
|
|
969
|
+
|
|
968
970
|
.components-editor-notices__dismissible,
|
|
969
971
|
.components-editor-notices__pinned {
|
|
970
972
|
position: relative;
|
|
@@ -1017,24 +1019,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1017
1019
|
margin-bottom: 4px;
|
|
1018
1020
|
}
|
|
1019
1021
|
|
|
1020
|
-
.edit-post-layout .entities-saved-states__panel-header,
|
|
1021
|
-
.edit-site-editor__interface-skeleton .entities-saved-states__panel-header {
|
|
1022
|
-
height: 61px;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
.entities-saved-states__post-meta {
|
|
1026
|
-
margin-left: 24px;
|
|
1027
|
-
align-items: center;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.entities-saved-states__connections-icon {
|
|
1031
|
-
flex-grow: 0;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.entities-saved-states__bindings-text {
|
|
1035
|
-
flex-grow: 1;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
1022
|
.editor-error-boundary {
|
|
1039
1023
|
margin: auto;
|
|
1040
1024
|
max-width: 780px;
|
|
@@ -1214,28 +1198,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1214
1198
|
}
|
|
1215
1199
|
}
|
|
1216
1200
|
|
|
1217
|
-
.is-distraction-free .interface-interface-skeleton__header {
|
|
1201
|
+
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header {
|
|
1218
1202
|
border-bottom: none;
|
|
1219
1203
|
}
|
|
1220
|
-
.is-distraction-free .editor-header {
|
|
1204
|
+
.editor-editor-interface.is-distraction-free .editor-header {
|
|
1221
1205
|
background-color: #fff;
|
|
1222
1206
|
border-bottom: 1px solid #e0e0e0;
|
|
1223
1207
|
position: absolute;
|
|
1224
1208
|
width: 100%;
|
|
1225
1209
|
}
|
|
1226
|
-
.is-distraction-free .editor-header > .edit-post-header__settings > .edit-post-header__post-preview-button {
|
|
1210
|
+
.editor-editor-interface.is-distraction-free .editor-header > .edit-post-header__settings > .edit-post-header__post-preview-button {
|
|
1227
1211
|
visibility: hidden;
|
|
1228
1212
|
}
|
|
1229
|
-
.is-distraction-free .editor-header > .editor-header__toolbar .editor-document-tools__document-overview-toggle, .is-distraction-free .editor-header > .editor-header__settings > .editor-preview-dropdown, .is-distraction-free .editor-header > .editor-header__settings > .interface-pinned-items {
|
|
1213
|
+
.editor-editor-interface.is-distraction-free .editor-header > .editor-header__toolbar .editor-document-tools__document-overview-toggle, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .editor-preview-dropdown, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .interface-pinned-items {
|
|
1230
1214
|
display: none;
|
|
1231
1215
|
}
|
|
1232
|
-
.is-distraction-free .interface-interface-skeleton__header:focus-within {
|
|
1216
|
+
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within {
|
|
1233
1217
|
opacity: 1 !important;
|
|
1234
1218
|
}
|
|
1235
|
-
.is-distraction-free .interface-interface-skeleton__header:focus-within div {
|
|
1219
|
+
.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div {
|
|
1236
1220
|
transform: translateX(0) translateZ(0) !important;
|
|
1237
1221
|
}
|
|
1238
|
-
.is-distraction-free .components-editor-notices__dismissible {
|
|
1222
|
+
.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible {
|
|
1239
1223
|
position: absolute;
|
|
1240
1224
|
z-index: 35;
|
|
1241
1225
|
}
|
|
@@ -1665,6 +1649,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1665
1649
|
padding: 16px;
|
|
1666
1650
|
}
|
|
1667
1651
|
|
|
1652
|
+
.editor-private-post-last-revision__button {
|
|
1653
|
+
display: inline-block;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1668
1656
|
.editor-post-locked-modal__buttons {
|
|
1669
1657
|
margin-top: 24px;
|
|
1670
1658
|
}
|
|
@@ -1703,6 +1691,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1703
1691
|
.editor-post-panel__row-control .components-button {
|
|
1704
1692
|
max-width: 100%;
|
|
1705
1693
|
text-align: left;
|
|
1694
|
+
text-wrap: balance;
|
|
1706
1695
|
text-wrap: pretty;
|
|
1707
1696
|
height: auto;
|
|
1708
1697
|
min-height: 32px;
|
|
@@ -1715,10 +1704,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1715
1704
|
padding: 16px;
|
|
1716
1705
|
}
|
|
1717
1706
|
|
|
1718
|
-
.editor-post-publish-panel {
|
|
1719
|
-
background: #fff;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
1707
|
.editor-post-publish-panel__content {
|
|
1723
1708
|
min-height: calc(100% - 144px);
|
|
1724
1709
|
}
|
|
@@ -1784,6 +1769,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1784
1769
|
|
|
1785
1770
|
.editor-post-publish-panel__header-publish-button {
|
|
1786
1771
|
padding-right: 4px;
|
|
1772
|
+
justify-content: center;
|
|
1787
1773
|
}
|
|
1788
1774
|
|
|
1789
1775
|
.editor-post-publish-panel__header-cancel-button {
|
|
@@ -1830,6 +1816,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1830
1816
|
}
|
|
1831
1817
|
.editor-post-publish-panel__prepublish .components-panel__body-title .components-button {
|
|
1832
1818
|
align-items: flex-start;
|
|
1819
|
+
text-wrap: balance;
|
|
1833
1820
|
text-wrap: pretty;
|
|
1834
1821
|
}
|
|
1835
1822
|
|
|
@@ -1891,19 +1878,18 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1891
1878
|
height: 40px;
|
|
1892
1879
|
}
|
|
1893
1880
|
}
|
|
1894
|
-
.
|
|
1895
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1881
|
+
.editor-post-publish-panel {
|
|
1896
1882
|
position: fixed;
|
|
1897
1883
|
z-index: 100001;
|
|
1898
|
-
|
|
1884
|
+
background: #fff;
|
|
1885
|
+
top: 0;
|
|
1899
1886
|
bottom: 0;
|
|
1900
1887
|
right: 0;
|
|
1901
1888
|
left: 0;
|
|
1902
1889
|
overflow: auto;
|
|
1903
1890
|
}
|
|
1904
1891
|
@media (min-width: 782px) {
|
|
1905
|
-
.
|
|
1906
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1892
|
+
.editor-post-publish-panel {
|
|
1907
1893
|
z-index: 99998;
|
|
1908
1894
|
top: 32px;
|
|
1909
1895
|
left: auto;
|
|
@@ -1914,28 +1900,21 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1914
1900
|
}
|
|
1915
1901
|
}
|
|
1916
1902
|
@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
|
|
1917
|
-
.
|
|
1918
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1903
|
+
.editor-post-publish-panel {
|
|
1919
1904
|
animation-duration: 1ms;
|
|
1920
1905
|
animation-delay: 0s;
|
|
1921
1906
|
}
|
|
1922
1907
|
}
|
|
1923
1908
|
@media (min-width: 782px) {
|
|
1924
|
-
body.is-fullscreen-mode .
|
|
1925
|
-
body.is-fullscreen-mode .edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1909
|
+
body.is-fullscreen-mode .editor-post-publish-panel {
|
|
1926
1910
|
top: 0;
|
|
1927
1911
|
}
|
|
1928
1912
|
}
|
|
1929
1913
|
@media (min-width: 782px) {
|
|
1930
|
-
[role=region]:focus .
|
|
1931
|
-
[role=region]:focus .edit-site-editor__interface-skeleton .editor-post-publish-panel {
|
|
1914
|
+
[role=region]:focus .editor-post-publish-panel {
|
|
1932
1915
|
transform: translateX(0%);
|
|
1933
1916
|
}
|
|
1934
1917
|
}
|
|
1935
|
-
.edit-post-layout .editor-post-publish-panel__header-publish-button,
|
|
1936
|
-
.edit-site-editor__interface-skeleton .editor-post-publish-panel__header-publish-button {
|
|
1937
|
-
justify-content: center;
|
|
1938
|
-
}
|
|
1939
1918
|
|
|
1940
1919
|
@keyframes editor-post-publish-panel__slide-in-animation {
|
|
1941
1920
|
100% {
|
|
@@ -2353,8 +2332,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2353
2332
|
padding: 0;
|
|
2354
2333
|
margin: auto 0;
|
|
2355
2334
|
width: 12px;
|
|
2356
|
-
|
|
2357
|
-
appearance: none;
|
|
2335
|
+
appearance: none;
|
|
2358
2336
|
cursor: ew-resize;
|
|
2359
2337
|
outline: none;
|
|
2360
2338
|
background: none;
|
|
@@ -2412,11 +2390,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2412
2390
|
bottom: 0;
|
|
2413
2391
|
}
|
|
2414
2392
|
|
|
2415
|
-
.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel, .interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel {
|
|
2416
|
-
top: auto;
|
|
2417
|
-
bottom: 0;
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
2393
|
.editor-start-page-options__modal-content .block-editor-block-patterns-list {
|
|
2421
2394
|
column-count: 2;
|
|
2422
2395
|
column-gap: 24px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.2",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
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.0.
|
|
36
|
-
"@wordpress/api-fetch": "^7.0.
|
|
37
|
-
"@wordpress/blob": "^4.0.
|
|
38
|
-
"@wordpress/block-editor": "^13.0.
|
|
39
|
-
"@wordpress/blocks": "^13.0.
|
|
40
|
-
"@wordpress/commands": "^1.0.
|
|
41
|
-
"@wordpress/components": "^28.0.
|
|
42
|
-
"@wordpress/compose": "^7.0.
|
|
43
|
-
"@wordpress/core-data": "^7.0.
|
|
44
|
-
"@wordpress/data": "^10.0.
|
|
45
|
-
"@wordpress/date": "^5.0.
|
|
46
|
-
"@wordpress/deprecated": "^4.0.
|
|
47
|
-
"@wordpress/dom": "^4.0.
|
|
48
|
-
"@wordpress/element": "^6.0.
|
|
49
|
-
"@wordpress/hooks": "^4.0.
|
|
50
|
-
"@wordpress/html-entities": "^4.0.
|
|
51
|
-
"@wordpress/i18n": "^5.0.
|
|
52
|
-
"@wordpress/icons": "^10.0.
|
|
53
|
-
"@wordpress/interface": "^6.0.
|
|
54
|
-
"@wordpress/keyboard-shortcuts": "^5.0.
|
|
55
|
-
"@wordpress/keycodes": "^4.0.
|
|
56
|
-
"@wordpress/media-utils": "^5.0.
|
|
57
|
-
"@wordpress/notices": "^5.0.
|
|
58
|
-
"@wordpress/patterns": "^2.0.
|
|
59
|
-
"@wordpress/plugins": "^7.0.
|
|
60
|
-
"@wordpress/preferences": "^4.0.
|
|
61
|
-
"@wordpress/private-apis": "^1.0.
|
|
62
|
-
"@wordpress/reusable-blocks": "^5.0.
|
|
63
|
-
"@wordpress/rich-text": "^7.0.
|
|
64
|
-
"@wordpress/server-side-render": "^5.0.
|
|
65
|
-
"@wordpress/url": "^4.0.
|
|
66
|
-
"@wordpress/warning": "^3.0.
|
|
67
|
-
"@wordpress/wordcount": "^4.0.
|
|
35
|
+
"@wordpress/a11y": "^4.0.1",
|
|
36
|
+
"@wordpress/api-fetch": "^7.0.1",
|
|
37
|
+
"@wordpress/blob": "^4.0.1",
|
|
38
|
+
"@wordpress/block-editor": "^13.0.2",
|
|
39
|
+
"@wordpress/blocks": "^13.0.2",
|
|
40
|
+
"@wordpress/commands": "^1.0.2",
|
|
41
|
+
"@wordpress/components": "^28.0.2",
|
|
42
|
+
"@wordpress/compose": "^7.0.1",
|
|
43
|
+
"@wordpress/core-data": "^7.0.2",
|
|
44
|
+
"@wordpress/data": "^10.0.2",
|
|
45
|
+
"@wordpress/date": "^5.0.1",
|
|
46
|
+
"@wordpress/deprecated": "^4.0.1",
|
|
47
|
+
"@wordpress/dom": "^4.0.1",
|
|
48
|
+
"@wordpress/element": "^6.0.1",
|
|
49
|
+
"@wordpress/hooks": "^4.0.1",
|
|
50
|
+
"@wordpress/html-entities": "^4.0.1",
|
|
51
|
+
"@wordpress/i18n": "^5.0.1",
|
|
52
|
+
"@wordpress/icons": "^10.0.1",
|
|
53
|
+
"@wordpress/interface": "^6.0.2",
|
|
54
|
+
"@wordpress/keyboard-shortcuts": "^5.0.2",
|
|
55
|
+
"@wordpress/keycodes": "^4.0.1",
|
|
56
|
+
"@wordpress/media-utils": "^5.0.1",
|
|
57
|
+
"@wordpress/notices": "^5.0.2",
|
|
58
|
+
"@wordpress/patterns": "^2.0.2",
|
|
59
|
+
"@wordpress/plugins": "^7.0.2",
|
|
60
|
+
"@wordpress/preferences": "^4.0.2",
|
|
61
|
+
"@wordpress/private-apis": "^1.0.2",
|
|
62
|
+
"@wordpress/reusable-blocks": "^5.0.2",
|
|
63
|
+
"@wordpress/rich-text": "^7.0.2",
|
|
64
|
+
"@wordpress/server-side-render": "^5.0.2",
|
|
65
|
+
"@wordpress/url": "^4.0.1",
|
|
66
|
+
"@wordpress/warning": "^3.0.1",
|
|
67
|
+
"@wordpress/wordcount": "^4.0.1",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"client-zip": "^2.4.5",
|
|
70
70
|
"clsx": "^2.1.1",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "a68c6b5ef53956cccf4961d53d79b6af7e00ae60"
|
|
87
87
|
}
|
|
@@ -19,7 +19,7 @@ import { store as editorStore } from '../../store';
|
|
|
19
19
|
import { unlock } from '../../lock-unlock';
|
|
20
20
|
|
|
21
21
|
function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
22
|
-
const { entity, onNavigateToEntityRecord } = useSelect(
|
|
22
|
+
const { entity, onNavigateToEntityRecord, canEditTemplates } = useSelect(
|
|
23
23
|
( select ) => {
|
|
24
24
|
const {
|
|
25
25
|
getBlockEditingMode,
|
|
@@ -46,11 +46,12 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
46
46
|
getBlockAttributes( patternParent ).ref
|
|
47
47
|
);
|
|
48
48
|
} else {
|
|
49
|
-
const {
|
|
50
|
-
select( editorStore );
|
|
51
|
-
const currentPostType = getCurrentPostType();
|
|
49
|
+
const { getCurrentTemplateId } = select( editorStore );
|
|
52
50
|
const templateId = getCurrentTemplateId();
|
|
53
|
-
|
|
51
|
+
const { getContentLockingParent } = unlock(
|
|
52
|
+
select( blockEditorStore )
|
|
53
|
+
);
|
|
54
|
+
if ( ! getContentLockingParent( clientId ) && templateId ) {
|
|
54
55
|
record = select( coreStore ).getEntityRecord(
|
|
55
56
|
'postType',
|
|
56
57
|
'wp_template',
|
|
@@ -58,7 +59,12 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
58
59
|
);
|
|
59
60
|
}
|
|
60
61
|
}
|
|
62
|
+
const _canEditTemplates = select( coreStore ).canUser(
|
|
63
|
+
'create',
|
|
64
|
+
'templates'
|
|
65
|
+
);
|
|
61
66
|
return {
|
|
67
|
+
canEditTemplates: _canEditTemplates,
|
|
62
68
|
entity: record,
|
|
63
69
|
onNavigateToEntityRecord:
|
|
64
70
|
getSettings().onNavigateToEntityRecord,
|
|
@@ -77,6 +83,19 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
const isPattern = entity.type === 'wp_block';
|
|
86
|
+
let helpText = isPattern
|
|
87
|
+
? __(
|
|
88
|
+
'Edit the pattern to move, delete, or make further changes to this block.'
|
|
89
|
+
)
|
|
90
|
+
: __(
|
|
91
|
+
'Edit the template to move, delete, or make further changes to this block.'
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
if ( ! canEditTemplates ) {
|
|
95
|
+
helpText = __(
|
|
96
|
+
'Only users with permissions to edit the template can move or delete this block'
|
|
97
|
+
);
|
|
98
|
+
}
|
|
80
99
|
|
|
81
100
|
return (
|
|
82
101
|
<>
|
|
@@ -88,6 +107,7 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
88
107
|
postType: entity.type,
|
|
89
108
|
} );
|
|
90
109
|
} }
|
|
110
|
+
disabled={ ! canEditTemplates }
|
|
91
111
|
>
|
|
92
112
|
{ isPattern ? __( 'Edit pattern' ) : __( 'Edit template' ) }
|
|
93
113
|
</MenuItem>
|
|
@@ -97,13 +117,7 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
97
117
|
as="p"
|
|
98
118
|
className="editor-content-only-settings-menu__description"
|
|
99
119
|
>
|
|
100
|
-
{
|
|
101
|
-
? __(
|
|
102
|
-
'Edit the pattern to move, delete, or make further changes to this block.'
|
|
103
|
-
)
|
|
104
|
-
: __(
|
|
105
|
-
'Edit the template to move, delete, or make further changes to this block.'
|
|
106
|
-
) }
|
|
120
|
+
{ helpText }
|
|
107
121
|
</Text>
|
|
108
122
|
</>
|
|
109
123
|
);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
.block-editor-block-contextual-toolbar {
|
|
8
8
|
border-bottom: 0;
|
|
9
9
|
height: 100%;
|
|
10
|
+
background: transparent;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
// These rules ensure that icons are always positioned in a way that lines up with the rest of the icons in the toolbar.
|
|
@@ -64,8 +65,9 @@
|
|
|
64
65
|
// Move up a little to prevent the toolbar shift when focus is on the vertical movers.
|
|
65
66
|
@include break-small() {
|
|
66
67
|
&:not(.is-horizontal) .block-editor-block-mover__move-button-container {
|
|
68
|
+
height: $grid-unit-50;
|
|
67
69
|
position: relative;
|
|
68
|
-
top: -
|
|
70
|
+
top: -5px; // Should be -4px, but that causes scrolling when focus lands on the movers, in a 60px header.
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
@@ -28,10 +28,6 @@ import { store as editorStore } from '../../store';
|
|
|
28
28
|
import EditorHistoryRedo from '../editor-history/redo';
|
|
29
29
|
import EditorHistoryUndo from '../editor-history/undo';
|
|
30
30
|
|
|
31
|
-
const preventDefault = ( event ) => {
|
|
32
|
-
event.preventDefault();
|
|
33
|
-
};
|
|
34
|
-
|
|
35
31
|
function DocumentTools( { className, disableBlockTools = false } ) {
|
|
36
32
|
const { setIsInserterOpened, setIsListViewOpened } =
|
|
37
33
|
useDispatch( editorStore );
|
|
@@ -72,6 +68,19 @@ function DocumentTools( { className, disableBlockTools = false } ) {
|
|
|
72
68
|
};
|
|
73
69
|
}, [] );
|
|
74
70
|
|
|
71
|
+
const preventDefault = ( event ) => {
|
|
72
|
+
// Because the inserter behaves like a dialog,
|
|
73
|
+
// if the inserter is opened already then when we click on the toggle button
|
|
74
|
+
// then the initial click event will close the inserter and then be propagated
|
|
75
|
+
// to the inserter toggle and it will open it again.
|
|
76
|
+
// To prevent this we need to stop the propagation of the event.
|
|
77
|
+
// This won't be necessary when the inserter no longer behaves like a dialog.
|
|
78
|
+
|
|
79
|
+
if ( isInserterOpened ) {
|
|
80
|
+
event.preventDefault();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
75
84
|
const isLargeViewport = useViewportMatch( 'medium' );
|
|
76
85
|
const isWideViewport = useViewportMatch( 'wide' );
|
|
77
86
|
|