@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.
Files changed (280) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +22 -22
  3. package/build/components/block-manager/category.js +5 -4
  4. package/build/components/block-manager/category.js.map +1 -1
  5. package/build/components/block-manager/checklist.js +5 -5
  6. package/build/components/block-manager/checklist.js.map +1 -1
  7. package/build/components/block-manager/index.js +10 -9
  8. package/build/components/block-manager/index.js.map +1 -1
  9. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +5 -5
  10. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  11. package/build/components/device-preview/index.js +5 -5
  12. package/build/components/device-preview/index.js.map +1 -1
  13. package/build/components/header/document-actions/index.js +9 -9
  14. package/build/components/header/document-actions/index.js.map +1 -1
  15. package/build/components/header/fullscreen-mode-close/index.js +6 -6
  16. package/build/components/header/fullscreen-mode-close/index.js.map +1 -1
  17. package/build/components/header/header-toolbar/index.js +9 -8
  18. package/build/components/header/header-toolbar/index.js.map +1 -1
  19. package/build/components/header/header-toolbar/index.native.js +12 -11
  20. package/build/components/header/header-toolbar/index.native.js.map +1 -1
  21. package/build/components/header/index.js +14 -14
  22. package/build/components/header/index.js.map +1 -1
  23. package/build/components/header/index.native.js +3 -2
  24. package/build/components/header/index.native.js.map +1 -1
  25. package/build/components/header/main-dashboard-button/index.js +2 -2
  26. package/build/components/header/main-dashboard-button/index.js.map +1 -1
  27. package/build/components/header/mode-switcher/index.js +3 -3
  28. package/build/components/header/mode-switcher/index.js.map +1 -1
  29. package/build/components/header/more-menu/index.js +6 -6
  30. package/build/components/header/more-menu/index.js.map +1 -1
  31. package/build/components/header/plugin-more-menu-item/index.js +3 -3
  32. package/build/components/header/plugin-more-menu-item/index.js.map +1 -1
  33. package/build/components/header/plugin-sidebar-more-menu-item/index.js +5 -5
  34. package/build/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
  35. package/build/components/header/post-publish-button-or-toggle.js +2 -2
  36. package/build/components/header/post-publish-button-or-toggle.js.map +1 -1
  37. package/build/components/header/preferences-menu-item/index.js +2 -2
  38. package/build/components/header/preferences-menu-item/index.js.map +1 -1
  39. package/build/components/header/tools-more-menu-group/index.js +3 -3
  40. package/build/components/header/tools-more-menu-group/index.js.map +1 -1
  41. package/build/components/header/writing-menu/index.js +6 -6
  42. package/build/components/header/writing-menu/index.js.map +1 -1
  43. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
  44. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  45. package/build/components/keyboard-shortcut-help-modal/index.js +15 -15
  46. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  47. package/build/components/keyboard-shortcut-help-modal/shortcut.js +8 -7
  48. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  49. package/build/components/layout/actions-panel.js +9 -8
  50. package/build/components/layout/actions-panel.js.map +1 -1
  51. package/build/components/layout/index.js +22 -21
  52. package/build/components/layout/index.js.map +1 -1
  53. package/build/components/layout/index.native.js +10 -9
  54. package/build/components/layout/index.native.js.map +1 -1
  55. package/build/components/meta-boxes/index.js +5 -4
  56. package/build/components/meta-boxes/index.js.map +1 -1
  57. package/build/components/meta-boxes/meta-boxes-area/index.js +6 -5
  58. package/build/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  59. package/build/components/preferences-modal/index.js +27 -26
  60. package/build/components/preferences-modal/index.js.map +1 -1
  61. package/build/components/preferences-modal/meta-boxes-section.js +4 -4
  62. package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
  63. package/build/components/preferences-modal/options/enable-custom-fields.js +5 -4
  64. package/build/components/preferences-modal/options/enable-custom-fields.js.map +1 -1
  65. package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js +2 -2
  66. package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js.map +1 -1
  67. package/build/components/secondary-sidebar/inserter-sidebar.js +7 -6
  68. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  69. package/build/components/secondary-sidebar/list-view-outline.js +18 -18
  70. package/build/components/secondary-sidebar/list-view-outline.js.map +1 -1
  71. package/build/components/secondary-sidebar/list-view-sidebar.js +9 -8
  72. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  73. package/build/components/sidebar/discussion-panel/index.js +6 -6
  74. package/build/components/sidebar/discussion-panel/index.js.map +1 -1
  75. package/build/components/sidebar/featured-image/index.js +3 -3
  76. package/build/components/sidebar/featured-image/index.js.map +1 -1
  77. package/build/components/sidebar/last-revision/index.js +3 -3
  78. package/build/components/sidebar/last-revision/index.js.map +1 -1
  79. package/build/components/sidebar/page-attributes/index.js +3 -3
  80. package/build/components/sidebar/page-attributes/index.js.map +1 -1
  81. package/build/components/sidebar/plugin-document-setting-panel/index.js +6 -6
  82. package/build/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
  83. package/build/components/sidebar/plugin-post-publish-panel/index.js +5 -5
  84. package/build/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
  85. package/build/components/sidebar/plugin-post-status-info/index.js +7 -7
  86. package/build/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  87. package/build/components/sidebar/plugin-pre-publish-panel/index.js +5 -5
  88. package/build/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
  89. package/build/components/sidebar/plugin-sidebar/index.js +4 -4
  90. package/build/components/sidebar/plugin-sidebar/index.js.map +1 -1
  91. package/build/components/sidebar/post-author/index.js +3 -3
  92. package/build/components/sidebar/post-author/index.js.map +1 -1
  93. package/build/components/sidebar/post-excerpt/index.js +3 -3
  94. package/build/components/sidebar/post-excerpt/index.js.map +1 -1
  95. package/build/components/sidebar/post-format/index.js +3 -3
  96. package/build/components/sidebar/post-format/index.js.map +1 -1
  97. package/build/components/sidebar/post-pending-status/index.js +2 -2
  98. package/build/components/sidebar/post-pending-status/index.js.map +1 -1
  99. package/build/components/sidebar/post-schedule/index.js +7 -6
  100. package/build/components/sidebar/post-schedule/index.js.map +1 -1
  101. package/build/components/sidebar/post-slug/index.js +3 -3
  102. package/build/components/sidebar/post-slug/index.js.map +1 -1
  103. package/build/components/sidebar/post-status/index.js +28 -30
  104. package/build/components/sidebar/post-status/index.js.map +1 -1
  105. package/build/components/sidebar/post-sticky/index.js +2 -2
  106. package/build/components/sidebar/post-sticky/index.js.map +1 -1
  107. package/build/components/sidebar/post-taxonomies/index.js +3 -3
  108. package/build/components/sidebar/post-taxonomies/index.js.map +1 -1
  109. package/build/components/sidebar/post-taxonomies/taxonomy-panel.js +2 -2
  110. package/build/components/sidebar/post-taxonomies/taxonomy-panel.js.map +1 -1
  111. package/build/components/sidebar/post-template/create-modal.js +9 -8
  112. package/build/components/sidebar/post-template/create-modal.js.map +1 -1
  113. package/build/components/sidebar/post-template/form.js +7 -6
  114. package/build/components/sidebar/post-template/form.js.map +1 -1
  115. package/build/components/sidebar/post-template/index.js +6 -5
  116. package/build/components/sidebar/post-template/index.js.map +1 -1
  117. package/build/components/sidebar/post-trash/index.js +2 -2
  118. package/build/components/sidebar/post-trash/index.js.map +1 -1
  119. package/build/components/sidebar/post-url/index.js +6 -5
  120. package/build/components/sidebar/post-url/index.js.map +1 -1
  121. package/build/components/sidebar/post-visibility/index.js +8 -7
  122. package/build/components/sidebar/post-visibility/index.js.map +1 -1
  123. package/build/components/sidebar/settings-header/index.js +4 -4
  124. package/build/components/sidebar/settings-header/index.js.map +1 -1
  125. package/build/components/sidebar/settings-sidebar/index.js +6 -5
  126. package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
  127. package/build/components/sidebar/template-summary/index.js +5 -5
  128. package/build/components/sidebar/template-summary/index.js.map +1 -1
  129. package/build/components/start-page-options/index.js +7 -6
  130. package/build/components/start-page-options/index.js.map +1 -1
  131. package/build/components/text-editor/index.js +6 -6
  132. package/build/components/text-editor/index.js.map +1 -1
  133. package/build/components/view-link/index.js +2 -2
  134. package/build/components/view-link/index.js.map +1 -1
  135. package/build/components/visual-editor/block-inspector-button.js +2 -2
  136. package/build/components/visual-editor/block-inspector-button.js.map +1 -1
  137. package/build/components/visual-editor/header.native.js +4 -3
  138. package/build/components/visual-editor/header.native.js.map +1 -1
  139. package/build/components/visual-editor/index.js +14 -13
  140. package/build/components/visual-editor/index.js.map +1 -1
  141. package/build/components/visual-editor/index.native.js +3 -2
  142. package/build/components/visual-editor/index.native.js.map +1 -1
  143. package/build/components/welcome-guide/default.js +17 -16
  144. package/build/components/welcome-guide/default.js.map +1 -1
  145. package/build/components/welcome-guide/image.js +4 -4
  146. package/build/components/welcome-guide/image.js.map +1 -1
  147. package/build/components/welcome-guide/index.js +2 -2
  148. package/build/components/welcome-guide/index.js.map +1 -1
  149. package/build/components/welcome-guide/template.js +5 -5
  150. package/build/components/welcome-guide/template.js.map +1 -1
  151. package/build/editor.js +5 -4
  152. package/build/editor.js.map +1 -1
  153. package/build/editor.native.js +5 -4
  154. package/build/editor.native.js.map +1 -1
  155. package/build/hooks/validate-multiple-use/index.js +11 -11
  156. package/build/hooks/validate-multiple-use/index.js.map +1 -1
  157. package/build/index.js +3 -2
  158. package/build/index.js.map +1 -1
  159. package/build/index.native.js +2 -2
  160. package/build/index.native.js.map +1 -1
  161. package/build/plugins/copy-content-menu-item/index.js +2 -2
  162. package/build/plugins/copy-content-menu-item/index.js.map +1 -1
  163. package/build/plugins/index.js +6 -6
  164. package/build/plugins/index.js.map +1 -1
  165. package/build/plugins/keyboard-shortcuts-help-menu-item/index.js +2 -2
  166. package/build/plugins/keyboard-shortcuts-help-menu-item/index.js.map +1 -1
  167. package/build/plugins/welcome-guide-menu-item/index.js +2 -2
  168. package/build/plugins/welcome-guide-menu-item/index.js.map +1 -1
  169. package/build-module/components/block-manager/category.js +1 -1
  170. package/build-module/components/block-manager/checklist.js +1 -1
  171. package/build-module/components/block-manager/index.js +1 -1
  172. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +3 -3
  173. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  174. package/build-module/components/device-preview/index.js +1 -1
  175. package/build-module/components/header/document-actions/index.js +1 -1
  176. package/build-module/components/header/fullscreen-mode-close/index.js +1 -1
  177. package/build-module/components/header/header-toolbar/index.js +1 -1
  178. package/build-module/components/header/header-toolbar/index.native.js +1 -1
  179. package/build-module/components/header/index.js +1 -1
  180. package/build-module/components/header/index.native.js +1 -1
  181. package/build-module/components/header/main-dashboard-button/index.js +1 -1
  182. package/build-module/components/header/mode-switcher/index.js +1 -1
  183. package/build-module/components/header/more-menu/index.js +1 -1
  184. package/build-module/components/header/plugin-more-menu-item/index.js +3 -3
  185. package/build-module/components/header/plugin-more-menu-item/index.js.map +1 -1
  186. package/build-module/components/header/plugin-sidebar-more-menu-item/index.js +4 -4
  187. package/build-module/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
  188. package/build-module/components/header/post-publish-button-or-toggle.js +1 -1
  189. package/build-module/components/header/preferences-menu-item/index.js +1 -1
  190. package/build-module/components/header/tools-more-menu-group/index.js +1 -1
  191. package/build-module/components/header/writing-menu/index.js +1 -1
  192. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  193. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -1
  194. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -1
  195. package/build-module/components/layout/actions-panel.js +1 -1
  196. package/build-module/components/layout/index.js +1 -1
  197. package/build-module/components/layout/index.native.js +1 -1
  198. package/build-module/components/meta-boxes/index.js +1 -1
  199. package/build-module/components/meta-boxes/meta-boxes-area/index.js +2 -2
  200. package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  201. package/build-module/components/preferences-modal/index.js +1 -1
  202. package/build-module/components/preferences-modal/meta-boxes-section.js +1 -1
  203. package/build-module/components/preferences-modal/options/enable-custom-fields.js +1 -1
  204. package/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js +1 -1
  205. package/build-module/components/secondary-sidebar/inserter-sidebar.js +1 -1
  206. package/build-module/components/secondary-sidebar/list-view-outline.js +1 -1
  207. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -1
  208. package/build-module/components/sidebar/discussion-panel/index.js +1 -1
  209. package/build-module/components/sidebar/featured-image/index.js +1 -1
  210. package/build-module/components/sidebar/last-revision/index.js +1 -1
  211. package/build-module/components/sidebar/page-attributes/index.js +1 -1
  212. package/build-module/components/sidebar/plugin-document-setting-panel/index.js +4 -4
  213. package/build-module/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
  214. package/build-module/components/sidebar/plugin-post-publish-panel/index.js +4 -4
  215. package/build-module/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
  216. package/build-module/components/sidebar/plugin-post-status-info/index.js +6 -6
  217. package/build-module/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  218. package/build-module/components/sidebar/plugin-pre-publish-panel/index.js +4 -4
  219. package/build-module/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
  220. package/build-module/components/sidebar/plugin-sidebar/index.js +3 -3
  221. package/build-module/components/sidebar/plugin-sidebar/index.js.map +1 -1
  222. package/build-module/components/sidebar/post-author/index.js +1 -1
  223. package/build-module/components/sidebar/post-excerpt/index.js +1 -1
  224. package/build-module/components/sidebar/post-format/index.js +1 -1
  225. package/build-module/components/sidebar/post-pending-status/index.js +1 -1
  226. package/build-module/components/sidebar/post-schedule/index.js +1 -1
  227. package/build-module/components/sidebar/post-slug/index.js +1 -1
  228. package/build-module/components/sidebar/post-status/index.js +25 -26
  229. package/build-module/components/sidebar/post-status/index.js.map +1 -1
  230. package/build-module/components/sidebar/post-sticky/index.js +1 -1
  231. package/build-module/components/sidebar/post-taxonomies/index.js +1 -1
  232. package/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js +1 -1
  233. package/build-module/components/sidebar/post-template/create-modal.js +1 -1
  234. package/build-module/components/sidebar/post-template/form.js +1 -1
  235. package/build-module/components/sidebar/post-template/index.js +1 -1
  236. package/build-module/components/sidebar/post-trash/index.js +1 -1
  237. package/build-module/components/sidebar/post-url/index.js +1 -1
  238. package/build-module/components/sidebar/post-visibility/index.js +1 -1
  239. package/build-module/components/sidebar/settings-header/index.js +1 -1
  240. package/build-module/components/sidebar/settings-sidebar/index.js +1 -1
  241. package/build-module/components/sidebar/template-summary/index.js +1 -1
  242. package/build-module/components/start-page-options/index.js +1 -1
  243. package/build-module/components/text-editor/index.js +1 -1
  244. package/build-module/components/view-link/index.js +1 -1
  245. package/build-module/components/visual-editor/block-inspector-button.js +1 -1
  246. package/build-module/components/visual-editor/header.native.js +1 -1
  247. package/build-module/components/visual-editor/index.js +1 -1
  248. package/build-module/components/visual-editor/index.native.js +1 -1
  249. package/build-module/components/welcome-guide/default.js +1 -1
  250. package/build-module/components/welcome-guide/image.js +1 -1
  251. package/build-module/components/welcome-guide/index.js +1 -1
  252. package/build-module/components/welcome-guide/template.js +1 -1
  253. package/build-module/editor.js +1 -1
  254. package/build-module/editor.native.js +1 -1
  255. package/build-module/hooks/validate-multiple-use/index.js +3 -3
  256. package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
  257. package/build-module/index.js +1 -1
  258. package/build-module/index.native.js +1 -1
  259. package/build-module/plugins/copy-content-menu-item/index.js +1 -1
  260. package/build-module/plugins/index.js +1 -1
  261. package/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js +1 -1
  262. package/build-module/plugins/welcome-guide-menu-item/index.js +1 -1
  263. package/build-style/classic-rtl.css +1 -1
  264. package/build-style/classic.css +1 -1
  265. package/build-style/style-rtl.css +13 -17
  266. package/build-style/style.css +13 -17
  267. package/package.json +32 -32
  268. package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +2 -2
  269. package/src/components/header/plugin-more-menu-item/index.js +3 -3
  270. package/src/components/header/plugin-sidebar-more-menu-item/index.js +3 -3
  271. package/src/components/meta-boxes/meta-boxes-area/index.js +1 -1
  272. package/src/components/sidebar/plugin-document-setting-panel/index.js +3 -3
  273. package/src/components/sidebar/plugin-post-publish-panel/index.js +3 -3
  274. package/src/components/sidebar/plugin-post-status-info/index.js +5 -5
  275. package/src/components/sidebar/plugin-pre-publish-panel/index.js +3 -3
  276. package/src/components/sidebar/plugin-sidebar/index.js +2 -2
  277. package/src/components/sidebar/post-status/index.js +19 -25
  278. package/src/hooks/validate-multiple-use/index.js +2 -2
  279. package/src/style.scss +0 -1
  280. package/src/components/sidebar/post-status/style.scss +0 -5
@@ -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.19.2",
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.42.2",
31
- "@wordpress/api-fetch": "^6.39.2",
32
- "@wordpress/block-editor": "^12.10.2",
33
- "@wordpress/block-library": "^8.19.2",
34
- "@wordpress/blocks": "^12.19.2",
35
- "@wordpress/commands": "^0.13.2",
36
- "@wordpress/components": "^25.8.2",
37
- "@wordpress/compose": "^6.19.2",
38
- "@wordpress/core-commands": "^0.11.2",
39
- "@wordpress/core-data": "^6.19.2",
40
- "@wordpress/data": "^9.12.2",
41
- "@wordpress/deprecated": "^3.42.2",
42
- "@wordpress/dom": "^3.42.2",
43
- "@wordpress/editor": "^13.19.2",
44
- "@wordpress/element": "^5.19.2",
45
- "@wordpress/hooks": "^3.42.2",
46
- "@wordpress/i18n": "^4.42.2",
47
- "@wordpress/icons": "^9.33.2",
48
- "@wordpress/interface": "^5.19.2",
49
- "@wordpress/keyboard-shortcuts": "^4.19.2",
50
- "@wordpress/keycodes": "^3.42.2",
51
- "@wordpress/media-utils": "^4.33.2",
52
- "@wordpress/notices": "^4.10.2",
53
- "@wordpress/plugins": "^6.10.2",
54
- "@wordpress/preferences": "^3.19.2",
55
- "@wordpress/private-apis": "^0.24.2",
56
- "@wordpress/url": "^3.43.2",
57
- "@wordpress/viewport": "^5.19.2",
58
- "@wordpress/warning": "^2.42.2",
59
- "@wordpress/widgets": "^3.19.2",
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": "5d2e3d07cc97af8090fc32c1e5d5013a2967e752"
71
+ "gitHead": "9b8e598c5418d38fe72197c24ef1d3dd6c712151"
72
72
  }
@@ -45,7 +45,7 @@ const shouldRenderItem = ( selectedBlocks, allowedBlocks ) =>
45
45
  * }
46
46
  *
47
47
  * function MyPluginBlockSettingsMenuItem() {
48
- * return wp.element.createElement(
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 {WPComponent} The component to be rendered.
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 = wp.element.createElement( 'svg' ); //... svg element.
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 wp.element.createElement(
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 {WPComponent} The component to be rendered.
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 = wp.element.createElement( 'svg' ); //... svg element.
20
+ * var moreIcon = React.createElement( 'svg' ); //... svg element.
21
21
  *
22
22
  * function MySidebarMoreMenuItem() {
23
- * return wp.element.createElement(
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 {WPComponent} The component to be rendered.
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 {WPComponent} The component to be rendered.
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 {WPElement} props.children Children to be rendered
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 = wp.element.createElement;
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 {WPComponent} The component to be rendered.
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 {WPElement} props.children Children to be rendered
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 wp.element.createElement(
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 {WPComponent} The component to be rendered.
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} props Component properties.
18
- * @param {string} [props.className] An optional class name added to the row.
19
- * @param {WPElement} props.children Children to be rendered.
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 wp.element.createElement(
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 {WPComponent} The component to be rendered.
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 {WPElement} props.children Children to be rendered
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 wp.element.createElement(
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 {WPComponent} The component to be rendered.
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 = wp.element.createElement;
37
+ * var el = React.createElement;
38
38
  * var PanelBody = wp.components.PanelBody;
39
39
  * var PluginSidebar = wp.editPost.PluginSidebar;
40
- * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
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 { withSelect, withDispatch } from '@wordpress/data';
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( { isOpened, onTogglePanel } ) {
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={ onTogglePanel }
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 {WPComponent} WrappedBlockEdit A filtered BlockEdit instance.
26
+ * @param {Component} WrappedBlockEdit A filtered BlockEdit instance.
27
27
  *
28
- * @return {WPComponent} Enhanced component with merged state data props.
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";
@@ -1,5 +0,0 @@
1
- .edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft {
2
- margin-top: 15px;
3
- width: 100%;
4
- text-align: center;
5
- }