@wordpress/edit-post 7.19.2 → 7.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +22 -22
- package/build/components/block-manager/category.js +5 -4
- package/build/components/block-manager/category.js.map +1 -1
- package/build/components/block-manager/checklist.js +5 -5
- package/build/components/block-manager/checklist.js.map +1 -1
- package/build/components/block-manager/index.js +10 -9
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +5 -5
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
- package/build/components/device-preview/index.js +5 -5
- package/build/components/device-preview/index.js.map +1 -1
- package/build/components/header/document-actions/index.js +9 -9
- package/build/components/header/document-actions/index.js.map +1 -1
- package/build/components/header/fullscreen-mode-close/index.js +6 -6
- package/build/components/header/fullscreen-mode-close/index.js.map +1 -1
- package/build/components/header/header-toolbar/index.js +9 -8
- package/build/components/header/header-toolbar/index.js.map +1 -1
- package/build/components/header/header-toolbar/index.native.js +12 -11
- package/build/components/header/header-toolbar/index.native.js.map +1 -1
- package/build/components/header/index.js +14 -14
- package/build/components/header/index.js.map +1 -1
- package/build/components/header/index.native.js +3 -2
- package/build/components/header/index.native.js.map +1 -1
- package/build/components/header/main-dashboard-button/index.js +2 -2
- package/build/components/header/main-dashboard-button/index.js.map +1 -1
- package/build/components/header/mode-switcher/index.js +3 -3
- package/build/components/header/mode-switcher/index.js.map +1 -1
- package/build/components/header/more-menu/index.js +6 -6
- package/build/components/header/more-menu/index.js.map +1 -1
- package/build/components/header/plugin-more-menu-item/index.js +3 -3
- package/build/components/header/plugin-more-menu-item/index.js.map +1 -1
- package/build/components/header/plugin-sidebar-more-menu-item/index.js +5 -5
- package/build/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
- package/build/components/header/post-publish-button-or-toggle.js +2 -2
- package/build/components/header/post-publish-button-or-toggle.js.map +1 -1
- package/build/components/header/preferences-menu-item/index.js +2 -2
- package/build/components/header/preferences-menu-item/index.js.map +1 -1
- package/build/components/header/tools-more-menu-group/index.js +3 -3
- package/build/components/header/tools-more-menu-group/index.js.map +1 -1
- package/build/components/header/writing-menu/index.js +6 -6
- package/build/components/header/writing-menu/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.js +15 -15
- package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.js +8 -7
- package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build/components/layout/actions-panel.js +9 -8
- package/build/components/layout/actions-panel.js.map +1 -1
- package/build/components/layout/index.js +22 -21
- package/build/components/layout/index.js.map +1 -1
- package/build/components/layout/index.native.js +10 -9
- package/build/components/layout/index.native.js.map +1 -1
- package/build/components/meta-boxes/index.js +5 -4
- package/build/components/meta-boxes/index.js.map +1 -1
- package/build/components/meta-boxes/meta-boxes-area/index.js +6 -5
- package/build/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
- package/build/components/preferences-modal/index.js +27 -26
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js +4 -4
- package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build/components/preferences-modal/options/enable-custom-fields.js +5 -4
- package/build/components/preferences-modal/options/enable-custom-fields.js.map +1 -1
- package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js +2 -2
- package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js.map +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.js +7 -6
- package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-outline.js +18 -18
- package/build/components/secondary-sidebar/list-view-outline.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-sidebar.js +9 -8
- package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build/components/sidebar/discussion-panel/index.js +6 -6
- package/build/components/sidebar/discussion-panel/index.js.map +1 -1
- package/build/components/sidebar/featured-image/index.js +3 -3
- package/build/components/sidebar/featured-image/index.js.map +1 -1
- package/build/components/sidebar/last-revision/index.js +3 -3
- package/build/components/sidebar/last-revision/index.js.map +1 -1
- package/build/components/sidebar/page-attributes/index.js +3 -3
- package/build/components/sidebar/page-attributes/index.js.map +1 -1
- package/build/components/sidebar/plugin-document-setting-panel/index.js +6 -6
- package/build/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
- package/build/components/sidebar/plugin-post-publish-panel/index.js +5 -5
- package/build/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
- package/build/components/sidebar/plugin-post-status-info/index.js +7 -7
- package/build/components/sidebar/plugin-post-status-info/index.js.map +1 -1
- package/build/components/sidebar/plugin-pre-publish-panel/index.js +5 -5
- package/build/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
- package/build/components/sidebar/plugin-sidebar/index.js +4 -4
- package/build/components/sidebar/plugin-sidebar/index.js.map +1 -1
- package/build/components/sidebar/post-author/index.js +3 -3
- package/build/components/sidebar/post-author/index.js.map +1 -1
- package/build/components/sidebar/post-excerpt/index.js +3 -3
- package/build/components/sidebar/post-excerpt/index.js.map +1 -1
- package/build/components/sidebar/post-format/index.js +3 -3
- package/build/components/sidebar/post-format/index.js.map +1 -1
- package/build/components/sidebar/post-pending-status/index.js +2 -2
- package/build/components/sidebar/post-pending-status/index.js.map +1 -1
- package/build/components/sidebar/post-schedule/index.js +7 -6
- package/build/components/sidebar/post-schedule/index.js.map +1 -1
- package/build/components/sidebar/post-slug/index.js +3 -3
- package/build/components/sidebar/post-slug/index.js.map +1 -1
- package/build/components/sidebar/post-status/index.js +28 -30
- package/build/components/sidebar/post-status/index.js.map +1 -1
- package/build/components/sidebar/post-sticky/index.js +2 -2
- package/build/components/sidebar/post-sticky/index.js.map +1 -1
- package/build/components/sidebar/post-taxonomies/index.js +3 -3
- package/build/components/sidebar/post-taxonomies/index.js.map +1 -1
- package/build/components/sidebar/post-taxonomies/taxonomy-panel.js +2 -2
- package/build/components/sidebar/post-taxonomies/taxonomy-panel.js.map +1 -1
- package/build/components/sidebar/post-template/create-modal.js +9 -8
- package/build/components/sidebar/post-template/create-modal.js.map +1 -1
- package/build/components/sidebar/post-template/form.js +7 -6
- package/build/components/sidebar/post-template/form.js.map +1 -1
- package/build/components/sidebar/post-template/index.js +6 -5
- package/build/components/sidebar/post-template/index.js.map +1 -1
- package/build/components/sidebar/post-trash/index.js +2 -2
- package/build/components/sidebar/post-trash/index.js.map +1 -1
- package/build/components/sidebar/post-url/index.js +6 -5
- package/build/components/sidebar/post-url/index.js.map +1 -1
- package/build/components/sidebar/post-visibility/index.js +8 -7
- package/build/components/sidebar/post-visibility/index.js.map +1 -1
- package/build/components/sidebar/settings-header/index.js +4 -4
- package/build/components/sidebar/settings-header/index.js.map +1 -1
- package/build/components/sidebar/settings-sidebar/index.js +6 -5
- package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build/components/sidebar/template-summary/index.js +5 -5
- package/build/components/sidebar/template-summary/index.js.map +1 -1
- package/build/components/start-page-options/index.js +7 -6
- package/build/components/start-page-options/index.js.map +1 -1
- package/build/components/text-editor/index.js +6 -6
- package/build/components/text-editor/index.js.map +1 -1
- package/build/components/view-link/index.js +2 -2
- package/build/components/view-link/index.js.map +1 -1
- package/build/components/visual-editor/block-inspector-button.js +2 -2
- package/build/components/visual-editor/block-inspector-button.js.map +1 -1
- package/build/components/visual-editor/header.native.js +4 -3
- package/build/components/visual-editor/header.native.js.map +1 -1
- package/build/components/visual-editor/index.js +14 -13
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/components/visual-editor/index.native.js +3 -2
- package/build/components/visual-editor/index.native.js.map +1 -1
- package/build/components/welcome-guide/default.js +17 -16
- package/build/components/welcome-guide/default.js.map +1 -1
- package/build/components/welcome-guide/image.js +4 -4
- package/build/components/welcome-guide/image.js.map +1 -1
- package/build/components/welcome-guide/index.js +2 -2
- package/build/components/welcome-guide/index.js.map +1 -1
- package/build/components/welcome-guide/template.js +5 -5
- package/build/components/welcome-guide/template.js.map +1 -1
- package/build/editor.js +5 -4
- package/build/editor.js.map +1 -1
- package/build/editor.native.js +5 -4
- package/build/editor.native.js.map +1 -1
- package/build/hooks/validate-multiple-use/index.js +11 -11
- package/build/hooks/validate-multiple-use/index.js.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/build/index.native.js +2 -2
- package/build/index.native.js.map +1 -1
- package/build/plugins/copy-content-menu-item/index.js +2 -2
- package/build/plugins/copy-content-menu-item/index.js.map +1 -1
- package/build/plugins/index.js +6 -6
- package/build/plugins/index.js.map +1 -1
- package/build/plugins/keyboard-shortcuts-help-menu-item/index.js +2 -2
- package/build/plugins/keyboard-shortcuts-help-menu-item/index.js.map +1 -1
- package/build/plugins/welcome-guide-menu-item/index.js +2 -2
- package/build/plugins/welcome-guide-menu-item/index.js.map +1 -1
- package/build-module/components/block-manager/category.js +1 -1
- package/build-module/components/block-manager/checklist.js +1 -1
- package/build-module/components/block-manager/index.js +1 -1
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +3 -3
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
- package/build-module/components/device-preview/index.js +1 -1
- package/build-module/components/header/document-actions/index.js +1 -1
- package/build-module/components/header/fullscreen-mode-close/index.js +1 -1
- package/build-module/components/header/header-toolbar/index.js +1 -1
- package/build-module/components/header/header-toolbar/index.native.js +1 -1
- package/build-module/components/header/index.js +1 -1
- package/build-module/components/header/index.native.js +1 -1
- package/build-module/components/header/main-dashboard-button/index.js +1 -1
- package/build-module/components/header/mode-switcher/index.js +1 -1
- package/build-module/components/header/more-menu/index.js +1 -1
- package/build-module/components/header/plugin-more-menu-item/index.js +3 -3
- package/build-module/components/header/plugin-more-menu-item/index.js.map +1 -1
- package/build-module/components/header/plugin-sidebar-more-menu-item/index.js +4 -4
- package/build-module/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
- package/build-module/components/header/post-publish-button-or-toggle.js +1 -1
- package/build-module/components/header/preferences-menu-item/index.js +1 -1
- package/build-module/components/header/tools-more-menu-group/index.js +1 -1
- package/build-module/components/header/writing-menu/index.js +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -1
- package/build-module/components/layout/actions-panel.js +1 -1
- package/build-module/components/layout/index.js +1 -1
- package/build-module/components/layout/index.native.js +1 -1
- package/build-module/components/meta-boxes/index.js +1 -1
- package/build-module/components/meta-boxes/meta-boxes-area/index.js +2 -2
- package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +1 -1
- package/build-module/components/preferences-modal/meta-boxes-section.js +1 -1
- package/build-module/components/preferences-modal/options/enable-custom-fields.js +1 -1
- package/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js +1 -1
- package/build-module/components/secondary-sidebar/inserter-sidebar.js +1 -1
- package/build-module/components/secondary-sidebar/list-view-outline.js +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -1
- package/build-module/components/sidebar/discussion-panel/index.js +1 -1
- package/build-module/components/sidebar/featured-image/index.js +1 -1
- package/build-module/components/sidebar/last-revision/index.js +1 -1
- package/build-module/components/sidebar/page-attributes/index.js +1 -1
- package/build-module/components/sidebar/plugin-document-setting-panel/index.js +4 -4
- package/build-module/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/sidebar/plugin-post-publish-panel/index.js +4 -4
- package/build-module/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
- package/build-module/components/sidebar/plugin-post-status-info/index.js +6 -6
- package/build-module/components/sidebar/plugin-post-status-info/index.js.map +1 -1
- package/build-module/components/sidebar/plugin-pre-publish-panel/index.js +4 -4
- package/build-module/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
- package/build-module/components/sidebar/plugin-sidebar/index.js +3 -3
- package/build-module/components/sidebar/plugin-sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-author/index.js +1 -1
- package/build-module/components/sidebar/post-excerpt/index.js +1 -1
- package/build-module/components/sidebar/post-format/index.js +1 -1
- package/build-module/components/sidebar/post-pending-status/index.js +1 -1
- package/build-module/components/sidebar/post-schedule/index.js +1 -1
- package/build-module/components/sidebar/post-slug/index.js +1 -1
- package/build-module/components/sidebar/post-status/index.js +25 -26
- package/build-module/components/sidebar/post-status/index.js.map +1 -1
- package/build-module/components/sidebar/post-sticky/index.js +1 -1
- package/build-module/components/sidebar/post-taxonomies/index.js +1 -1
- package/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js +1 -1
- package/build-module/components/sidebar/post-template/create-modal.js +1 -1
- package/build-module/components/sidebar/post-template/form.js +1 -1
- package/build-module/components/sidebar/post-template/index.js +1 -1
- package/build-module/components/sidebar/post-trash/index.js +1 -1
- package/build-module/components/sidebar/post-url/index.js +1 -1
- package/build-module/components/sidebar/post-visibility/index.js +1 -1
- package/build-module/components/sidebar/settings-header/index.js +1 -1
- package/build-module/components/sidebar/settings-sidebar/index.js +1 -1
- package/build-module/components/sidebar/template-summary/index.js +1 -1
- package/build-module/components/start-page-options/index.js +1 -1
- package/build-module/components/text-editor/index.js +1 -1
- package/build-module/components/view-link/index.js +1 -1
- package/build-module/components/visual-editor/block-inspector-button.js +1 -1
- package/build-module/components/visual-editor/header.native.js +1 -1
- package/build-module/components/visual-editor/index.js +1 -1
- package/build-module/components/visual-editor/index.native.js +1 -1
- package/build-module/components/welcome-guide/default.js +1 -1
- package/build-module/components/welcome-guide/image.js +1 -1
- package/build-module/components/welcome-guide/index.js +1 -1
- package/build-module/components/welcome-guide/template.js +1 -1
- package/build-module/editor.js +1 -1
- package/build-module/editor.native.js +1 -1
- package/build-module/hooks/validate-multiple-use/index.js +3 -3
- package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.native.js +1 -1
- package/build-module/plugins/copy-content-menu-item/index.js +1 -1
- package/build-module/plugins/index.js +1 -1
- package/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js +1 -1
- package/build-module/plugins/welcome-guide-menu-item/index.js +1 -1
- package/build-style/classic-rtl.css +1 -1
- package/build-style/classic.css +1 -1
- package/build-style/style-rtl.css +13 -17
- package/build-style/style.css +13 -17
- package/package.json +32 -32
- package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +2 -2
- package/src/components/header/plugin-more-menu-item/index.js +3 -3
- package/src/components/header/plugin-sidebar-more-menu-item/index.js +3 -3
- package/src/components/meta-boxes/meta-boxes-area/index.js +1 -1
- package/src/components/sidebar/plugin-document-setting-panel/index.js +3 -3
- package/src/components/sidebar/plugin-post-publish-panel/index.js +3 -3
- package/src/components/sidebar/plugin-post-status-info/index.js +5 -5
- package/src/components/sidebar/plugin-pre-publish-panel/index.js +3 -3
- package/src/components/sidebar/plugin-sidebar/index.js +2 -2
- package/src/components/sidebar/post-status/index.js +19 -25
- package/src/hooks/validate-multiple-use/index.js +2 -2
- package/src/style.scss +0 -1
- package/src/components/sidebar/post-status/style.scss +0 -5
package/build-style/style.css
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
--wp-block-synced-color: #7a00df;
|
|
98
98
|
--wp-block-synced-color--rgb: 122, 0, 223;
|
|
99
99
|
}
|
|
100
|
-
@media (min-resolution: 192dpi) {
|
|
100
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
101
101
|
:root {
|
|
102
102
|
--wp-admin-border-width-focus: 1.5px;
|
|
103
103
|
}
|
|
@@ -871,7 +871,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
871
871
|
width: 36px;
|
|
872
872
|
height: 36px;
|
|
873
873
|
border-radius: 2px;
|
|
874
|
-
object-fit: cover;
|
|
874
|
+
-o-object-fit: cover;
|
|
875
|
+
object-fit: cover;
|
|
875
876
|
margin-top: -1px;
|
|
876
877
|
}
|
|
877
878
|
|
|
@@ -1621,12 +1622,6 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1621
1622
|
align-items: stretch;
|
|
1622
1623
|
}
|
|
1623
1624
|
|
|
1624
|
-
.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft {
|
|
1625
|
-
margin-top: 15px;
|
|
1626
|
-
width: 100%;
|
|
1627
|
-
text-align: center;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
1625
|
.edit-post-post-template {
|
|
1631
1626
|
width: 100%;
|
|
1632
1627
|
justify-content: flex-start;
|
|
@@ -1983,7 +1978,8 @@ body.is-fullscreen-mode .edit-post-visual-editor .block-editor-block-contextual-
|
|
|
1983
1978
|
.edit-template-welcome-guide__image > img {
|
|
1984
1979
|
display: block;
|
|
1985
1980
|
max-width: 100%;
|
|
1986
|
-
object-fit: cover;
|
|
1981
|
+
-o-object-fit: cover;
|
|
1982
|
+
object-fit: cover;
|
|
1987
1983
|
}
|
|
1988
1984
|
.edit-post-welcome-guide__heading,
|
|
1989
1985
|
.edit-template-welcome-guide__heading {
|
|
@@ -2150,7 +2146,7 @@ body.admin-color-light {
|
|
|
2150
2146
|
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
|
2151
2147
|
--wp-admin-border-width-focus: 2px;
|
|
2152
2148
|
}
|
|
2153
|
-
@media (min-resolution: 192dpi) {
|
|
2149
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2154
2150
|
body.admin-color-light {
|
|
2155
2151
|
--wp-admin-border-width-focus: 1.5px;
|
|
2156
2152
|
}
|
|
@@ -2165,7 +2161,7 @@ body.admin-color-modern {
|
|
|
2165
2161
|
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
|
2166
2162
|
--wp-admin-border-width-focus: 2px;
|
|
2167
2163
|
}
|
|
2168
|
-
@media (min-resolution: 192dpi) {
|
|
2164
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2169
2165
|
body.admin-color-modern {
|
|
2170
2166
|
--wp-admin-border-width-focus: 1.5px;
|
|
2171
2167
|
}
|
|
@@ -2180,7 +2176,7 @@ body.admin-color-blue {
|
|
|
2180
2176
|
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
|
2181
2177
|
--wp-admin-border-width-focus: 2px;
|
|
2182
2178
|
}
|
|
2183
|
-
@media (min-resolution: 192dpi) {
|
|
2179
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2184
2180
|
body.admin-color-blue {
|
|
2185
2181
|
--wp-admin-border-width-focus: 1.5px;
|
|
2186
2182
|
}
|
|
@@ -2195,7 +2191,7 @@ body.admin-color-coffee {
|
|
|
2195
2191
|
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
|
2196
2192
|
--wp-admin-border-width-focus: 2px;
|
|
2197
2193
|
}
|
|
2198
|
-
@media (min-resolution: 192dpi) {
|
|
2194
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2199
2195
|
body.admin-color-coffee {
|
|
2200
2196
|
--wp-admin-border-width-focus: 1.5px;
|
|
2201
2197
|
}
|
|
@@ -2210,7 +2206,7 @@ body.admin-color-ectoplasm {
|
|
|
2210
2206
|
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
|
2211
2207
|
--wp-admin-border-width-focus: 2px;
|
|
2212
2208
|
}
|
|
2213
|
-
@media (min-resolution: 192dpi) {
|
|
2209
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2214
2210
|
body.admin-color-ectoplasm {
|
|
2215
2211
|
--wp-admin-border-width-focus: 1.5px;
|
|
2216
2212
|
}
|
|
@@ -2225,7 +2221,7 @@ body.admin-color-midnight {
|
|
|
2225
2221
|
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
|
2226
2222
|
--wp-admin-border-width-focus: 2px;
|
|
2227
2223
|
}
|
|
2228
|
-
@media (min-resolution: 192dpi) {
|
|
2224
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2229
2225
|
body.admin-color-midnight {
|
|
2230
2226
|
--wp-admin-border-width-focus: 1.5px;
|
|
2231
2227
|
}
|
|
@@ -2240,7 +2236,7 @@ body.admin-color-ocean {
|
|
|
2240
2236
|
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
|
2241
2237
|
--wp-admin-border-width-focus: 2px;
|
|
2242
2238
|
}
|
|
2243
|
-
@media (min-resolution: 192dpi) {
|
|
2239
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2244
2240
|
body.admin-color-ocean {
|
|
2245
2241
|
--wp-admin-border-width-focus: 1.5px;
|
|
2246
2242
|
}
|
|
@@ -2255,7 +2251,7 @@ body.admin-color-sunrise {
|
|
|
2255
2251
|
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
|
2256
2252
|
--wp-admin-border-width-focus: 2px;
|
|
2257
2253
|
}
|
|
2258
|
-
@media (min-resolution: 192dpi) {
|
|
2254
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
2259
2255
|
body.admin-color-sunrise {
|
|
2260
2256
|
--wp-admin-border-width-focus: 1.5px;
|
|
2261
2257
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-post",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.0",
|
|
4
4
|
"description": "Edit Post module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,36 +27,36 @@
|
|
|
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": "^12.
|
|
33
|
-
"@wordpress/block-library": "^8.
|
|
34
|
-
"@wordpress/blocks": "^12.
|
|
35
|
-
"@wordpress/commands": "^0.
|
|
36
|
-
"@wordpress/components": "^25.
|
|
37
|
-
"@wordpress/compose": "^6.
|
|
38
|
-
"@wordpress/core-commands": "^0.
|
|
39
|
-
"@wordpress/core-data": "^6.
|
|
40
|
-
"@wordpress/data": "^9.
|
|
41
|
-
"@wordpress/deprecated": "^3.
|
|
42
|
-
"@wordpress/dom": "^3.
|
|
43
|
-
"@wordpress/editor": "^13.
|
|
44
|
-
"@wordpress/element": "^5.
|
|
45
|
-
"@wordpress/hooks": "^3.
|
|
46
|
-
"@wordpress/i18n": "^4.
|
|
47
|
-
"@wordpress/icons": "^9.
|
|
48
|
-
"@wordpress/interface": "^5.
|
|
49
|
-
"@wordpress/keyboard-shortcuts": "^4.
|
|
50
|
-
"@wordpress/keycodes": "^3.
|
|
51
|
-
"@wordpress/media-utils": "^4.
|
|
52
|
-
"@wordpress/notices": "^4.
|
|
53
|
-
"@wordpress/plugins": "^6.
|
|
54
|
-
"@wordpress/preferences": "^3.
|
|
55
|
-
"@wordpress/private-apis": "^0.
|
|
56
|
-
"@wordpress/url": "^3.
|
|
57
|
-
"@wordpress/viewport": "^5.
|
|
58
|
-
"@wordpress/warning": "^2.
|
|
59
|
-
"@wordpress/widgets": "^3.
|
|
30
|
+
"@wordpress/a11y": "^3.43.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.40.0",
|
|
32
|
+
"@wordpress/block-editor": "^12.11.0",
|
|
33
|
+
"@wordpress/block-library": "^8.20.0",
|
|
34
|
+
"@wordpress/blocks": "^12.20.0",
|
|
35
|
+
"@wordpress/commands": "^0.14.0",
|
|
36
|
+
"@wordpress/components": "^25.9.0",
|
|
37
|
+
"@wordpress/compose": "^6.20.0",
|
|
38
|
+
"@wordpress/core-commands": "^0.12.0",
|
|
39
|
+
"@wordpress/core-data": "^6.20.0",
|
|
40
|
+
"@wordpress/data": "^9.13.0",
|
|
41
|
+
"@wordpress/deprecated": "^3.43.0",
|
|
42
|
+
"@wordpress/dom": "^3.43.0",
|
|
43
|
+
"@wordpress/editor": "^13.20.0",
|
|
44
|
+
"@wordpress/element": "^5.20.0",
|
|
45
|
+
"@wordpress/hooks": "^3.43.0",
|
|
46
|
+
"@wordpress/i18n": "^4.43.0",
|
|
47
|
+
"@wordpress/icons": "^9.34.0",
|
|
48
|
+
"@wordpress/interface": "^5.20.0",
|
|
49
|
+
"@wordpress/keyboard-shortcuts": "^4.20.0",
|
|
50
|
+
"@wordpress/keycodes": "^3.43.0",
|
|
51
|
+
"@wordpress/media-utils": "^4.34.0",
|
|
52
|
+
"@wordpress/notices": "^4.11.0",
|
|
53
|
+
"@wordpress/plugins": "^6.11.0",
|
|
54
|
+
"@wordpress/preferences": "^3.20.0",
|
|
55
|
+
"@wordpress/private-apis": "^0.25.0",
|
|
56
|
+
"@wordpress/url": "^3.44.0",
|
|
57
|
+
"@wordpress/viewport": "^5.20.0",
|
|
58
|
+
"@wordpress/warning": "^2.43.0",
|
|
59
|
+
"@wordpress/widgets": "^3.20.0",
|
|
60
60
|
"classnames": "^2.3.1",
|
|
61
61
|
"memize": "^2.1.0",
|
|
62
62
|
"rememo": "^4.0.2"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "9b8e598c5418d38fe72197c24ef1d3dd6c712151"
|
|
72
72
|
}
|
|
@@ -45,7 +45,7 @@ const shouldRenderItem = ( selectedBlocks, allowedBlocks ) =>
|
|
|
45
45
|
* }
|
|
46
46
|
*
|
|
47
47
|
* function MyPluginBlockSettingsMenuItem() {
|
|
48
|
-
* return
|
|
48
|
+
* return React.createElement(
|
|
49
49
|
* PluginBlockSettingsMenuItem,
|
|
50
50
|
* {
|
|
51
51
|
* allowedBlocks: [ 'core/paragraph' ],
|
|
@@ -76,7 +76,7 @@ const shouldRenderItem = ( selectedBlocks, allowedBlocks ) =>
|
|
|
76
76
|
* );
|
|
77
77
|
* ```
|
|
78
78
|
*
|
|
79
|
-
* @return {
|
|
79
|
+
* @return {Component} The component to be rendered.
|
|
80
80
|
*/
|
|
81
81
|
const PluginBlockSettingsMenuItem = ( {
|
|
82
82
|
allowedBlocks,
|
|
@@ -21,14 +21,14 @@ import { withPluginContext } from '@wordpress/plugins';
|
|
|
21
21
|
* // Using ES5 syntax
|
|
22
22
|
* var __ = wp.i18n.__;
|
|
23
23
|
* var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem;
|
|
24
|
-
* var moreIcon =
|
|
24
|
+
* var moreIcon = React.createElement( 'svg' ); //... svg element.
|
|
25
25
|
*
|
|
26
26
|
* function onButtonClick() {
|
|
27
27
|
* alert( 'Button clicked.' );
|
|
28
28
|
* }
|
|
29
29
|
*
|
|
30
30
|
* function MyButtonMoreMenuItem() {
|
|
31
|
-
* return
|
|
31
|
+
* return React.createElement(
|
|
32
32
|
* PluginMoreMenuItem,
|
|
33
33
|
* {
|
|
34
34
|
* icon: moreIcon,
|
|
@@ -60,7 +60,7 @@ import { withPluginContext } from '@wordpress/plugins';
|
|
|
60
60
|
* );
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
|
-
* @return {
|
|
63
|
+
* @return {Component} The component to be rendered.
|
|
64
64
|
*/
|
|
65
65
|
export default compose(
|
|
66
66
|
withPluginContext( ( context, ownProps ) => {
|
|
@@ -17,10 +17,10 @@ import { ComplementaryAreaMoreMenuItem } from '@wordpress/interface';
|
|
|
17
17
|
* // Using ES5 syntax
|
|
18
18
|
* var __ = wp.i18n.__;
|
|
19
19
|
* var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem;
|
|
20
|
-
* var moreIcon =
|
|
20
|
+
* var moreIcon = React.createElement( 'svg' ); //... svg element.
|
|
21
21
|
*
|
|
22
22
|
* function MySidebarMoreMenuItem() {
|
|
23
|
-
* return
|
|
23
|
+
* return React.createElement(
|
|
24
24
|
* PluginSidebarMoreMenuItem,
|
|
25
25
|
* {
|
|
26
26
|
* target: 'my-sidebar',
|
|
@@ -48,7 +48,7 @@ import { ComplementaryAreaMoreMenuItem } from '@wordpress/interface';
|
|
|
48
48
|
* );
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
|
-
* @return {
|
|
51
|
+
* @return {Component} The component to be rendered.
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
export default function PluginSidebarMoreMenuItem( props ) {
|
|
@@ -20,7 +20,7 @@ import { store as editPostStore } from '../../../store';
|
|
|
20
20
|
*
|
|
21
21
|
* @param {Object} props Component props.
|
|
22
22
|
* @param {string} props.location metabox location.
|
|
23
|
-
* @return {
|
|
23
|
+
* @return {Component} The component to be rendered.
|
|
24
24
|
*/
|
|
25
25
|
function MetaBoxesArea( { location } ) {
|
|
26
26
|
const container = useRef( null );
|
|
@@ -22,12 +22,12 @@ const { Fill, Slot } = createSlotFill( 'PluginDocumentSettingPanel' );
|
|
|
22
22
|
* @param {string} [props.className] An optional class name added to the row.
|
|
23
23
|
* @param {string} [props.title] The title of the panel
|
|
24
24
|
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {Element} props.children Children to be rendered
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```js
|
|
29
29
|
* // Using ES5 syntax
|
|
30
|
-
* var el =
|
|
30
|
+
* var el = React.createElement;
|
|
31
31
|
* var __ = wp.i18n.__;
|
|
32
32
|
* var registerPlugin = wp.plugins.registerPlugin;
|
|
33
33
|
* var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel;
|
|
@@ -64,7 +64,7 @@ const { Fill, Slot } = createSlotFill( 'PluginDocumentSettingPanel' );
|
|
|
64
64
|
* registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
|
|
65
65
|
* ```
|
|
66
66
|
*
|
|
67
|
-
* @return {
|
|
67
|
+
* @return {Component} The component to be rendered.
|
|
68
68
|
*/
|
|
69
69
|
const PluginDocumentSettingPanel = ( {
|
|
70
70
|
name,
|
|
@@ -15,7 +15,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPostPublishPanel' );
|
|
|
15
15
|
* @param {string} [props.title] Title displayed at the top of the panel.
|
|
16
16
|
* @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.
|
|
17
17
|
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {Element} props.children Children to be rendered
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```js
|
|
@@ -24,7 +24,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPostPublishPanel' );
|
|
|
24
24
|
* var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel;
|
|
25
25
|
*
|
|
26
26
|
* function MyPluginPostPublishPanel() {
|
|
27
|
-
* return
|
|
27
|
+
* return React.createElement(
|
|
28
28
|
* PluginPostPublishPanel,
|
|
29
29
|
* {
|
|
30
30
|
* className: 'my-plugin-post-publish-panel',
|
|
@@ -53,7 +53,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPostPublishPanel' );
|
|
|
53
53
|
* );
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
|
-
* @return {
|
|
56
|
+
* @return {Component} The component to be rendered.
|
|
57
57
|
*/
|
|
58
58
|
const PluginPostPublishPanel = ( {
|
|
59
59
|
children,
|
|
@@ -14,9 +14,9 @@ const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );
|
|
|
14
14
|
* It should be noted that this is named and implemented around the function it serves
|
|
15
15
|
* and not its location, which may change in future iterations.
|
|
16
16
|
*
|
|
17
|
-
* @param {Object}
|
|
18
|
-
* @param {string}
|
|
19
|
-
* @param {
|
|
17
|
+
* @param {Object} props Component properties.
|
|
18
|
+
* @param {string} [props.className] An optional class name added to the row.
|
|
19
|
+
* @param {Element} props.children Children to be rendered.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```js
|
|
@@ -25,7 +25,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );
|
|
|
25
25
|
* var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
|
|
26
26
|
*
|
|
27
27
|
* function MyPluginPostStatusInfo() {
|
|
28
|
-
* return
|
|
28
|
+
* return React.createElement(
|
|
29
29
|
* PluginPostStatusInfo,
|
|
30
30
|
* {
|
|
31
31
|
* className: 'my-plugin-post-status-info',
|
|
@@ -50,7 +50,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );
|
|
|
50
50
|
* );
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
|
-
* @return {
|
|
53
|
+
* @return {Component} The component to be rendered.
|
|
54
54
|
*/
|
|
55
55
|
const PluginPostStatusInfo = ( { children, className } ) => (
|
|
56
56
|
<Fill>
|
|
@@ -18,7 +18,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPrePublishPanel' );
|
|
|
18
18
|
* @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)
|
|
19
19
|
* icon slug string, or an SVG WP element, to be rendered when
|
|
20
20
|
* the sidebar is pinned to toolbar.
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {Element} props.children Children to be rendered
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```js
|
|
@@ -27,7 +27,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPrePublishPanel' );
|
|
|
27
27
|
* var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;
|
|
28
28
|
*
|
|
29
29
|
* function MyPluginPrePublishPanel() {
|
|
30
|
-
* return
|
|
30
|
+
* return React.createElement(
|
|
31
31
|
* PluginPrePublishPanel,
|
|
32
32
|
* {
|
|
33
33
|
* className: 'my-plugin-pre-publish-panel',
|
|
@@ -56,7 +56,7 @@ const { Fill, Slot } = createSlotFill( 'PluginPrePublishPanel' );
|
|
|
56
56
|
* );
|
|
57
57
|
* ```
|
|
58
58
|
*
|
|
59
|
-
* @return {
|
|
59
|
+
* @return {Component} The component to be rendered.
|
|
60
60
|
*/
|
|
61
61
|
const PluginPrePublishPanel = ( {
|
|
62
62
|
children,
|
|
@@ -34,10 +34,10 @@ import { store as editPostStore } from '../../../store';
|
|
|
34
34
|
* ```js
|
|
35
35
|
* // Using ES5 syntax
|
|
36
36
|
* var __ = wp.i18n.__;
|
|
37
|
-
* var el =
|
|
37
|
+
* var el = React.createElement;
|
|
38
38
|
* var PanelBody = wp.components.PanelBody;
|
|
39
39
|
* var PluginSidebar = wp.editPost.PluginSidebar;
|
|
40
|
-
* var moreIcon =
|
|
40
|
+
* var moreIcon = React.createElement( 'svg' ); //... svg element.
|
|
41
41
|
*
|
|
42
42
|
* function MyPluginSidebar() {
|
|
43
43
|
* return el(
|
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
__experimentalHStack as HStack,
|
|
7
7
|
PanelBody,
|
|
8
8
|
} from '@wordpress/components';
|
|
9
|
-
import {
|
|
10
|
-
import { compose, ifCondition } from '@wordpress/compose';
|
|
9
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
11
10
|
import { PostSwitchToDraftButton, PostSyncStatus } from '@wordpress/editor';
|
|
12
11
|
|
|
13
12
|
/**
|
|
@@ -31,13 +30,29 @@ import PostURL from '../post-url';
|
|
|
31
30
|
*/
|
|
32
31
|
const PANEL_NAME = 'post-status';
|
|
33
32
|
|
|
34
|
-
function PostStatus(
|
|
33
|
+
export default function PostStatus() {
|
|
34
|
+
const { isOpened, isRemoved } = useSelect( ( select ) => {
|
|
35
|
+
// We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
|
|
36
|
+
// not use isEditorPanelEnabled since this panel should not be disabled through the UI.
|
|
37
|
+
const { isEditorPanelRemoved, isEditorPanelOpened } =
|
|
38
|
+
select( editPostStore );
|
|
39
|
+
return {
|
|
40
|
+
isRemoved: isEditorPanelRemoved( PANEL_NAME ),
|
|
41
|
+
isOpened: isEditorPanelOpened( PANEL_NAME ),
|
|
42
|
+
};
|
|
43
|
+
}, [] );
|
|
44
|
+
const { toggleEditorPanelOpened } = useDispatch( editPostStore );
|
|
45
|
+
|
|
46
|
+
if ( isRemoved ) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
|
|
35
50
|
return (
|
|
36
51
|
<PanelBody
|
|
37
52
|
className="edit-post-post-status"
|
|
38
53
|
title={ __( 'Summary' ) }
|
|
39
54
|
opened={ isOpened }
|
|
40
|
-
onToggle={
|
|
55
|
+
onToggle={ () => toggleEditorPanelOpened( PANEL_NAME ) }
|
|
41
56
|
>
|
|
42
57
|
<PluginPostStatusInfo.Slot>
|
|
43
58
|
{ ( fills ) => (
|
|
@@ -69,24 +84,3 @@ function PostStatus( { isOpened, onTogglePanel } ) {
|
|
|
69
84
|
</PanelBody>
|
|
70
85
|
);
|
|
71
86
|
}
|
|
72
|
-
|
|
73
|
-
export default compose( [
|
|
74
|
-
withSelect( ( select ) => {
|
|
75
|
-
// We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
|
|
76
|
-
// not use isEditorPanelEnabled since this panel should not be disabled through the UI.
|
|
77
|
-
const { isEditorPanelRemoved, isEditorPanelOpened } =
|
|
78
|
-
select( editPostStore );
|
|
79
|
-
return {
|
|
80
|
-
isRemoved: isEditorPanelRemoved( PANEL_NAME ),
|
|
81
|
-
isOpened: isEditorPanelOpened( PANEL_NAME ),
|
|
82
|
-
};
|
|
83
|
-
} ),
|
|
84
|
-
ifCondition( ( { isRemoved } ) => ! isRemoved ),
|
|
85
|
-
withDispatch( ( dispatch ) => ( {
|
|
86
|
-
onTogglePanel() {
|
|
87
|
-
return dispatch( editPostStore ).toggleEditorPanelOpened(
|
|
88
|
-
PANEL_NAME
|
|
89
|
-
);
|
|
90
|
-
},
|
|
91
|
-
} ) ),
|
|
92
|
-
] )( PostStatus );
|
|
@@ -23,9 +23,9 @@ const enhance = compose(
|
|
|
23
23
|
* "original" block is not the current one. Thus, an inexisting
|
|
24
24
|
* `originalBlockClientId` prop signals that the block is valid.
|
|
25
25
|
*
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {Component} WrappedBlockEdit A filtered BlockEdit instance.
|
|
27
27
|
*
|
|
28
|
-
* @return {
|
|
28
|
+
* @return {Component} Enhanced component with merged state data props.
|
|
29
29
|
*/
|
|
30
30
|
withSelect( ( select, block ) => {
|
|
31
31
|
const multiple = hasBlockSupport( block.name, 'multiple', true );
|
package/src/style.scss
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
@import "./components/sidebar/post-format/style.scss";
|
|
15
15
|
@import "./components/sidebar/post-schedule/style.scss";
|
|
16
16
|
@import "./components/sidebar/post-slug/style.scss";
|
|
17
|
-
@import "./components/sidebar/post-status/style.scss";
|
|
18
17
|
@import "./components/sidebar/post-template/style.scss";
|
|
19
18
|
@import "./components/sidebar/post-url/style.scss";
|
|
20
19
|
@import "./components/sidebar/post-visibility/style.scss";
|