@wordpress/edit-post 7.19.6 → 7.20.1

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 (285) 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/lock-unlock.js +1 -1
  162. package/build/lock-unlock.js.map +1 -1
  163. package/build/plugins/copy-content-menu-item/index.js +2 -2
  164. package/build/plugins/copy-content-menu-item/index.js.map +1 -1
  165. package/build/plugins/index.js +6 -6
  166. package/build/plugins/index.js.map +1 -1
  167. package/build/plugins/keyboard-shortcuts-help-menu-item/index.js +2 -2
  168. package/build/plugins/keyboard-shortcuts-help-menu-item/index.js.map +1 -1
  169. package/build/plugins/welcome-guide-menu-item/index.js +2 -2
  170. package/build/plugins/welcome-guide-menu-item/index.js.map +1 -1
  171. package/build-module/components/block-manager/category.js +1 -1
  172. package/build-module/components/block-manager/checklist.js +1 -1
  173. package/build-module/components/block-manager/index.js +1 -1
  174. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +3 -3
  175. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  176. package/build-module/components/device-preview/index.js +1 -1
  177. package/build-module/components/header/document-actions/index.js +1 -1
  178. package/build-module/components/header/fullscreen-mode-close/index.js +1 -1
  179. package/build-module/components/header/header-toolbar/index.js +1 -1
  180. package/build-module/components/header/header-toolbar/index.native.js +1 -1
  181. package/build-module/components/header/index.js +1 -1
  182. package/build-module/components/header/index.native.js +1 -1
  183. package/build-module/components/header/main-dashboard-button/index.js +1 -1
  184. package/build-module/components/header/mode-switcher/index.js +1 -1
  185. package/build-module/components/header/more-menu/index.js +1 -1
  186. package/build-module/components/header/plugin-more-menu-item/index.js +3 -3
  187. package/build-module/components/header/plugin-more-menu-item/index.js.map +1 -1
  188. package/build-module/components/header/plugin-sidebar-more-menu-item/index.js +4 -4
  189. package/build-module/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
  190. package/build-module/components/header/post-publish-button-or-toggle.js +1 -1
  191. package/build-module/components/header/preferences-menu-item/index.js +1 -1
  192. package/build-module/components/header/tools-more-menu-group/index.js +1 -1
  193. package/build-module/components/header/writing-menu/index.js +1 -1
  194. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  195. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -1
  196. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -1
  197. package/build-module/components/layout/actions-panel.js +1 -1
  198. package/build-module/components/layout/index.js +1 -1
  199. package/build-module/components/layout/index.native.js +1 -1
  200. package/build-module/components/meta-boxes/index.js +1 -1
  201. package/build-module/components/meta-boxes/meta-boxes-area/index.js +2 -2
  202. package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  203. package/build-module/components/preferences-modal/index.js +1 -1
  204. package/build-module/components/preferences-modal/meta-boxes-section.js +1 -1
  205. package/build-module/components/preferences-modal/options/enable-custom-fields.js +1 -1
  206. package/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js +1 -1
  207. package/build-module/components/secondary-sidebar/inserter-sidebar.js +1 -1
  208. package/build-module/components/secondary-sidebar/list-view-outline.js +1 -1
  209. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -1
  210. package/build-module/components/sidebar/discussion-panel/index.js +1 -1
  211. package/build-module/components/sidebar/featured-image/index.js +1 -1
  212. package/build-module/components/sidebar/last-revision/index.js +1 -1
  213. package/build-module/components/sidebar/page-attributes/index.js +1 -1
  214. package/build-module/components/sidebar/plugin-document-setting-panel/index.js +4 -4
  215. package/build-module/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
  216. package/build-module/components/sidebar/plugin-post-publish-panel/index.js +4 -4
  217. package/build-module/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
  218. package/build-module/components/sidebar/plugin-post-status-info/index.js +6 -6
  219. package/build-module/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  220. package/build-module/components/sidebar/plugin-pre-publish-panel/index.js +4 -4
  221. package/build-module/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
  222. package/build-module/components/sidebar/plugin-sidebar/index.js +3 -3
  223. package/build-module/components/sidebar/plugin-sidebar/index.js.map +1 -1
  224. package/build-module/components/sidebar/post-author/index.js +1 -1
  225. package/build-module/components/sidebar/post-excerpt/index.js +1 -1
  226. package/build-module/components/sidebar/post-format/index.js +1 -1
  227. package/build-module/components/sidebar/post-pending-status/index.js +1 -1
  228. package/build-module/components/sidebar/post-schedule/index.js +1 -1
  229. package/build-module/components/sidebar/post-slug/index.js +1 -1
  230. package/build-module/components/sidebar/post-status/index.js +25 -26
  231. package/build-module/components/sidebar/post-status/index.js.map +1 -1
  232. package/build-module/components/sidebar/post-sticky/index.js +1 -1
  233. package/build-module/components/sidebar/post-taxonomies/index.js +1 -1
  234. package/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js +1 -1
  235. package/build-module/components/sidebar/post-template/create-modal.js +1 -1
  236. package/build-module/components/sidebar/post-template/form.js +1 -1
  237. package/build-module/components/sidebar/post-template/index.js +1 -1
  238. package/build-module/components/sidebar/post-trash/index.js +1 -1
  239. package/build-module/components/sidebar/post-url/index.js +1 -1
  240. package/build-module/components/sidebar/post-visibility/index.js +1 -1
  241. package/build-module/components/sidebar/settings-header/index.js +1 -1
  242. package/build-module/components/sidebar/settings-sidebar/index.js +1 -1
  243. package/build-module/components/sidebar/template-summary/index.js +1 -1
  244. package/build-module/components/start-page-options/index.js +1 -1
  245. package/build-module/components/text-editor/index.js +1 -1
  246. package/build-module/components/view-link/index.js +1 -1
  247. package/build-module/components/visual-editor/block-inspector-button.js +1 -1
  248. package/build-module/components/visual-editor/header.native.js +1 -1
  249. package/build-module/components/visual-editor/index.js +1 -1
  250. package/build-module/components/visual-editor/index.native.js +1 -1
  251. package/build-module/components/welcome-guide/default.js +1 -1
  252. package/build-module/components/welcome-guide/image.js +1 -1
  253. package/build-module/components/welcome-guide/index.js +1 -1
  254. package/build-module/components/welcome-guide/template.js +1 -1
  255. package/build-module/editor.js +1 -1
  256. package/build-module/editor.native.js +1 -1
  257. package/build-module/hooks/validate-multiple-use/index.js +3 -3
  258. package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
  259. package/build-module/index.js +1 -1
  260. package/build-module/index.native.js +1 -1
  261. package/build-module/lock-unlock.js +1 -1
  262. package/build-module/lock-unlock.js.map +1 -1
  263. package/build-module/plugins/copy-content-menu-item/index.js +1 -1
  264. package/build-module/plugins/index.js +1 -1
  265. package/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js +1 -1
  266. package/build-module/plugins/welcome-guide-menu-item/index.js +1 -1
  267. package/build-style/classic-rtl.css +1 -1
  268. package/build-style/classic.css +1 -1
  269. package/build-style/style-rtl.css +13 -17
  270. package/build-style/style.css +13 -17
  271. package/package.json +32 -32
  272. package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +2 -2
  273. package/src/components/header/plugin-more-menu-item/index.js +3 -3
  274. package/src/components/header/plugin-sidebar-more-menu-item/index.js +3 -3
  275. package/src/components/meta-boxes/meta-boxes-area/index.js +1 -1
  276. package/src/components/sidebar/plugin-document-setting-panel/index.js +3 -3
  277. package/src/components/sidebar/plugin-post-publish-panel/index.js +3 -3
  278. package/src/components/sidebar/plugin-post-status-info/index.js +5 -5
  279. package/src/components/sidebar/plugin-pre-publish-panel/index.js +3 -3
  280. package/src/components/sidebar/plugin-sidebar/index.js +2 -2
  281. package/src/components/sidebar/post-status/index.js +19 -25
  282. package/src/hooks/validate-multiple-use/index.js +2 -2
  283. package/src/lock-unlock.js +1 -1
  284. package/src/style.scss +0 -1
  285. package/src/components/sidebar/post-status/style.scss +0 -5
@@ -1 +1 @@
1
- {"version":3,"names":["ComplementaryArea","useSelect","__","store","keyboardShortcutsStore","editorStore","editPostStore","PluginSidebarEditPost","className","props","postTitle","shortcut","showIconLabels","select","getEditedPostAttribute","getShortcutRepresentation","isFeatureActive","createElement","panelClassName","smallScreenTitle","scope","toggleShortcut"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-sidebar/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { ComplementaryArea } from '@wordpress/interface';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar.\n * It also automatically renders a corresponding `PluginSidebarMenuItem` component when `isPinnable` flag is set to `true`.\n * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:\n *\n * ```js\n * wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-name' );\n * ```\n *\n * @see PluginSidebarMoreMenuItem\n *\n * @param {Object} props Element props.\n * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.\n * @param {string} [props.className] An optional class name added to the sidebar body.\n * @param {string} props.title Title displayed at the top of the sidebar.\n * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.\n * @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.\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var el = wp.element.createElement;\n * var PanelBody = wp.components.PanelBody;\n * var PluginSidebar = wp.editPost.PluginSidebar;\n * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.\n *\n * function MyPluginSidebar() {\n * \treturn el(\n * \t\t\tPluginSidebar,\n * \t\t\t{\n * \t\t\t\tname: 'my-sidebar',\n * \t\t\t\ttitle: 'My sidebar title',\n * \t\t\t\ticon: moreIcon,\n * \t\t\t},\n * \t\t\tel(\n * \t\t\t\tPanelBody,\n * \t\t\t\t{},\n * \t\t\t\t__( 'My sidebar content' )\n * \t\t\t)\n * \t);\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PanelBody } from '@wordpress/components';\n * import { PluginSidebar } from '@wordpress/edit-post';\n * import { more } from '@wordpress/icons';\n *\n * const MyPluginSidebar = () => (\n * \t<PluginSidebar\n * \t\tname=\"my-sidebar\"\n * \t\ttitle=\"My sidebar title\"\n * \t\ticon={ more }\n * \t>\n * \t\t<PanelBody>\n * \t\t\t{ __( 'My sidebar content' ) }\n * \t\t</PanelBody>\n * \t</PluginSidebar>\n * );\n * ```\n */\nexport default function PluginSidebarEditPost( { className, ...props } ) {\n\tconst { postTitle, shortcut, showIconLabels } = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tpostTitle: select( editorStore ).getEditedPostAttribute( 'title' ),\n\t\t\tshortcut: select(\n\t\t\t\tkeyboardShortcutsStore\n\t\t\t).getShortcutRepresentation( 'core/edit-post/toggle-sidebar' ),\n\t\t\tshowIconLabels:\n\t\t\t\tselect( editPostStore ).isFeatureActive( 'showIconLabels' ),\n\t\t};\n\t}, [] );\n\treturn (\n\t\t<ComplementaryArea\n\t\t\tpanelClassName={ className }\n\t\t\tclassName=\"edit-post-sidebar\"\n\t\t\tsmallScreenTitle={ postTitle || __( '(no title)' ) }\n\t\t\tscope=\"core/edit-post\"\n\t\t\ttoggleShortcut={ shortcut }\n\t\t\tshowIconLabels={ showIconLabels }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,iBAAiB,QAAQ,sBAAsB;AACxD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,IAAIC,sBAAsB,QAAQ,+BAA+B;AAC/E,SAASD,KAAK,IAAIE,WAAW,QAAQ,mBAAmB;;AAExD;AACA;AACA;AACA,SAASF,KAAK,IAAIG,aAAa,QAAQ,gBAAgB;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,qBAAqBA,CAAE;EAAEC,SAAS;EAAE,GAAGC;AAAM,CAAC,EAAG;EACxE,MAAM;IAAEC,SAAS;IAAEC,QAAQ;IAAEC;EAAe,CAAC,GAAGX,SAAS,CAAIY,MAAM,IAAM;IACxE,OAAO;MACNH,SAAS,EAAEG,MAAM,CAAER,WAAY,CAAC,CAACS,sBAAsB,CAAE,OAAQ,CAAC;MAClEH,QAAQ,EAAEE,MAAM,CACfT,sBACD,CAAC,CAACW,yBAAyB,CAAE,+BAAgC,CAAC;MAC9DH,cAAc,EACbC,MAAM,CAAEP,aAAc,CAAC,CAACU,eAAe,CAAE,gBAAiB;IAC5D,CAAC;EACF,CAAC,EAAE,EAAG,CAAC;EACP,OACCC,aAAA,CAACjB,iBAAiB;IACjBkB,cAAc,EAAGV,SAAW;IAC5BA,SAAS,EAAC,mBAAmB;IAC7BW,gBAAgB,EAAGT,SAAS,IAAIR,EAAE,CAAE,YAAa,CAAG;IACpDkB,KAAK,EAAC,gBAAgB;IACtBC,cAAc,EAAGV,QAAU;IAC3BC,cAAc,EAAGA,cAAgB;IAAA,GAC5BH;EAAK,CACV,CAAC;AAEJ"}
1
+ {"version":3,"names":["ComplementaryArea","useSelect","__","store","keyboardShortcutsStore","editorStore","editPostStore","PluginSidebarEditPost","className","props","postTitle","shortcut","showIconLabels","select","getEditedPostAttribute","getShortcutRepresentation","isFeatureActive","createElement","panelClassName","smallScreenTitle","scope","toggleShortcut"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-sidebar/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { ComplementaryArea } from '@wordpress/interface';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar.\n * It also automatically renders a corresponding `PluginSidebarMenuItem` component when `isPinnable` flag is set to `true`.\n * If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:\n *\n * ```js\n * wp.data.dispatch( 'core/edit-post' ).openGeneralSidebar( 'plugin-name/sidebar-name' );\n * ```\n *\n * @see PluginSidebarMoreMenuItem\n *\n * @param {Object} props Element props.\n * @param {string} props.name A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.\n * @param {string} [props.className] An optional class name added to the sidebar body.\n * @param {string} props.title Title displayed at the top of the sidebar.\n * @param {boolean} [props.isPinnable=true] Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.\n * @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.\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var el = React.createElement;\n * var PanelBody = wp.components.PanelBody;\n * var PluginSidebar = wp.editPost.PluginSidebar;\n * var moreIcon = React.createElement( 'svg' ); //... svg element.\n *\n * function MyPluginSidebar() {\n * \treturn el(\n * \t\t\tPluginSidebar,\n * \t\t\t{\n * \t\t\t\tname: 'my-sidebar',\n * \t\t\t\ttitle: 'My sidebar title',\n * \t\t\t\ticon: moreIcon,\n * \t\t\t},\n * \t\t\tel(\n * \t\t\t\tPanelBody,\n * \t\t\t\t{},\n * \t\t\t\t__( 'My sidebar content' )\n * \t\t\t)\n * \t);\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PanelBody } from '@wordpress/components';\n * import { PluginSidebar } from '@wordpress/edit-post';\n * import { more } from '@wordpress/icons';\n *\n * const MyPluginSidebar = () => (\n * \t<PluginSidebar\n * \t\tname=\"my-sidebar\"\n * \t\ttitle=\"My sidebar title\"\n * \t\ticon={ more }\n * \t>\n * \t\t<PanelBody>\n * \t\t\t{ __( 'My sidebar content' ) }\n * \t\t</PanelBody>\n * \t</PluginSidebar>\n * );\n * ```\n */\nexport default function PluginSidebarEditPost( { className, ...props } ) {\n\tconst { postTitle, shortcut, showIconLabels } = useSelect( ( select ) => {\n\t\treturn {\n\t\t\tpostTitle: select( editorStore ).getEditedPostAttribute( 'title' ),\n\t\t\tshortcut: select(\n\t\t\t\tkeyboardShortcutsStore\n\t\t\t).getShortcutRepresentation( 'core/edit-post/toggle-sidebar' ),\n\t\t\tshowIconLabels:\n\t\t\t\tselect( editPostStore ).isFeatureActive( 'showIconLabels' ),\n\t\t};\n\t}, [] );\n\treturn (\n\t\t<ComplementaryArea\n\t\t\tpanelClassName={ className }\n\t\t\tclassName=\"edit-post-sidebar\"\n\t\t\tsmallScreenTitle={ postTitle || __( '(no title)' ) }\n\t\t\tscope=\"core/edit-post\"\n\t\t\ttoggleShortcut={ shortcut }\n\t\t\tshowIconLabels={ showIconLabels }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,iBAAiB,QAAQ,sBAAsB;AACxD,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,IAAIC,sBAAsB,QAAQ,+BAA+B;AAC/E,SAASD,KAAK,IAAIE,WAAW,QAAQ,mBAAmB;;AAExD;AACA;AACA;AACA,SAASF,KAAK,IAAIG,aAAa,QAAQ,gBAAgB;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,qBAAqBA,CAAE;EAAEC,SAAS;EAAE,GAAGC;AAAM,CAAC,EAAG;EACxE,MAAM;IAAEC,SAAS;IAAEC,QAAQ;IAAEC;EAAe,CAAC,GAAGX,SAAS,CAAIY,MAAM,IAAM;IACxE,OAAO;MACNH,SAAS,EAAEG,MAAM,CAAER,WAAY,CAAC,CAACS,sBAAsB,CAAE,OAAQ,CAAC;MAClEH,QAAQ,EAAEE,MAAM,CACfT,sBACD,CAAC,CAACW,yBAAyB,CAAE,+BAAgC,CAAC;MAC9DH,cAAc,EACbC,MAAM,CAAEP,aAAc,CAAC,CAACU,eAAe,CAAE,gBAAiB;IAC5D,CAAC;EACF,CAAC,EAAE,EAAG,CAAC;EACP,OACCC,aAAA,CAACjB,iBAAiB;IACjBkB,cAAc,EAAGV,SAAW;IAC5BA,SAAS,EAAC,mBAAmB;IAC7BW,gBAAgB,EAAGT,SAAS,IAAIR,EAAE,CAAE,YAAa,CAAG;IACpDkB,KAAK,EAAC,gBAAgB;IACtBC,cAAc,EAAGV,QAAU;IAC3BC,cAAc,EAAGA,cAAgB;IAAA,GAC5BH;EAAK,CACV,CAAC;AAEJ"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,11 +1,10 @@
1
- import { createElement, Fragment } from "@wordpress/element";
1
+ import { createElement, Fragment } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
5
5
  import { __ } from '@wordpress/i18n';
6
6
  import { __experimentalHStack as HStack, PanelBody } from '@wordpress/components';
7
- import { withSelect, withDispatch } from '@wordpress/data';
8
- import { compose, ifCondition } from '@wordpress/compose';
7
+ import { useDispatch, useSelect } from '@wordpress/data';
9
8
  import { PostSwitchToDraftButton, PostSyncStatus } from '@wordpress/editor';
10
9
 
11
10
  /**
@@ -28,15 +27,33 @@ import PostURL from '../post-url';
28
27
  * Module Constants
29
28
  */
30
29
  const PANEL_NAME = 'post-status';
31
- function PostStatus({
32
- isOpened,
33
- onTogglePanel
34
- }) {
30
+ export default function PostStatus() {
31
+ const {
32
+ isOpened,
33
+ isRemoved
34
+ } = 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 {
38
+ isEditorPanelRemoved,
39
+ isEditorPanelOpened
40
+ } = select(editPostStore);
41
+ return {
42
+ isRemoved: isEditorPanelRemoved(PANEL_NAME),
43
+ isOpened: isEditorPanelOpened(PANEL_NAME)
44
+ };
45
+ }, []);
46
+ const {
47
+ toggleEditorPanelOpened
48
+ } = useDispatch(editPostStore);
49
+ if (isRemoved) {
50
+ return null;
51
+ }
35
52
  return createElement(PanelBody, {
36
53
  className: "edit-post-post-status",
37
54
  title: __('Summary'),
38
55
  opened: isOpened,
39
- onToggle: onTogglePanel
56
+ onToggle: () => toggleEditorPanelOpened(PANEL_NAME)
40
57
  }, createElement(PluginPostStatusInfo.Slot, null, fills => createElement(Fragment, null, createElement(PostVisibility, null), createElement(PostSchedule, null), createElement(PostTemplate, null), createElement(PostURL, null), createElement(PostSticky, null), createElement(PostPendingStatus, null), createElement(PostFormat, null), createElement(PostSlug, null), createElement(PostAuthor, null), createElement(PostSyncStatus, null), fills, createElement(HStack, {
41
58
  style: {
42
59
  marginTop: '16px'
@@ -45,22 +62,4 @@ function PostStatus({
45
62
  wrap: true
46
63
  }, createElement(PostSwitchToDraftButton, null), createElement(PostTrash, null)))));
47
64
  }
48
- export default compose([withSelect(select => {
49
- // We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
50
- // not use isEditorPanelEnabled since this panel should not be disabled through the UI.
51
- const {
52
- isEditorPanelRemoved,
53
- isEditorPanelOpened
54
- } = select(editPostStore);
55
- return {
56
- isRemoved: isEditorPanelRemoved(PANEL_NAME),
57
- isOpened: isEditorPanelOpened(PANEL_NAME)
58
- };
59
- }), ifCondition(({
60
- isRemoved
61
- }) => !isRemoved), withDispatch(dispatch => ({
62
- onTogglePanel() {
63
- return dispatch(editPostStore).toggleEditorPanelOpened(PANEL_NAME);
64
- }
65
- }))])(PostStatus);
66
65
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__","__experimentalHStack","HStack","PanelBody","withSelect","withDispatch","compose","ifCondition","PostSwitchToDraftButton","PostSyncStatus","PostVisibility","PostTrash","PostSchedule","PostSticky","PostAuthor","PostSlug","PostFormat","PostPendingStatus","PluginPostStatusInfo","store","editPostStore","PostTemplate","PostURL","PANEL_NAME","PostStatus","isOpened","onTogglePanel","createElement","className","title","opened","onToggle","Slot","fills","Fragment","style","marginTop","spacing","wrap","select","isEditorPanelRemoved","isEditorPanelOpened","isRemoved","dispatch","toggleEditorPanelOpened"],"sources":["@wordpress/edit-post/src/components/sidebar/post-status/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\t__experimentalHStack as HStack,\n\tPanelBody,\n} from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose, ifCondition } from '@wordpress/compose';\nimport { PostSwitchToDraftButton, PostSyncStatus } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport PostVisibility from '../post-visibility';\nimport PostTrash from '../post-trash';\nimport PostSchedule from '../post-schedule';\nimport PostSticky from '../post-sticky';\nimport PostAuthor from '../post-author';\nimport PostSlug from '../post-slug';\nimport PostFormat from '../post-format';\nimport PostPendingStatus from '../post-pending-status';\nimport PluginPostStatusInfo from '../plugin-post-status-info';\nimport { store as editPostStore } from '../../../store';\nimport PostTemplate from '../post-template';\nimport PostURL from '../post-url';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-status';\n\nfunction PostStatus( { isOpened, onTogglePanel } ) {\n\treturn (\n\t\t<PanelBody\n\t\t\tclassName=\"edit-post-post-status\"\n\t\t\ttitle={ __( 'Summary' ) }\n\t\t\topened={ isOpened }\n\t\t\tonToggle={ onTogglePanel }\n\t\t>\n\t\t\t<PluginPostStatusInfo.Slot>\n\t\t\t\t{ ( fills ) => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<PostVisibility />\n\t\t\t\t\t\t<PostSchedule />\n\t\t\t\t\t\t<PostTemplate />\n\t\t\t\t\t\t<PostURL />\n\t\t\t\t\t\t<PostSticky />\n\t\t\t\t\t\t<PostPendingStatus />\n\t\t\t\t\t\t<PostFormat />\n\t\t\t\t\t\t<PostSlug />\n\t\t\t\t\t\t<PostAuthor />\n\t\t\t\t\t\t<PostSyncStatus />\n\t\t\t\t\t\t{ fills }\n\t\t\t\t\t\t<HStack\n\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\tmarginTop: '16px',\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tspacing={ 4 }\n\t\t\t\t\t\t\twrap\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<PostSwitchToDraftButton />\n\t\t\t\t\t\t\t<PostTrash />\n\t\t\t\t\t\t</HStack>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</PluginPostStatusInfo.Slot>\n\t\t</PanelBody>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => {\n\t\t// We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do\n\t\t// not use isEditorPanelEnabled since this panel should not be disabled through the UI.\n\t\tconst { isEditorPanelRemoved, isEditorPanelOpened } =\n\t\t\tselect( editPostStore );\n\t\treturn {\n\t\t\tisRemoved: isEditorPanelRemoved( PANEL_NAME ),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t} ),\n\tifCondition( ( { isRemoved } ) => ! isRemoved ),\n\twithDispatch( ( dispatch ) => ( {\n\t\tonTogglePanel() {\n\t\t\treturn dispatch( editPostStore ).toggleEditorPanelOpened(\n\t\t\t\tPANEL_NAME\n\t\t\t);\n\t\t},\n\t} ) ),\n] )( PostStatus );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SACCC,oBAAoB,IAAIC,MAAM,EAC9BC,SAAS,QACH,uBAAuB;AAC9B,SAASC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC1D,SAASC,OAAO,EAAEC,WAAW,QAAQ,oBAAoB;AACzD,SAASC,uBAAuB,EAAEC,cAAc,QAAQ,mBAAmB;;AAE3E;AACA;AACA;AACA,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,QAAQ,MAAM,cAAc;AACnC,OAAOC,UAAU,MAAM,gBAAgB;AACvC,OAAOC,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,oBAAoB,MAAM,4BAA4B;AAC7D,SAASC,KAAK,IAAIC,aAAa,QAAQ,gBAAgB;AACvD,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,OAAOC,OAAO,MAAM,aAAa;;AAEjC;AACA;AACA;AACA,MAAMC,UAAU,GAAG,aAAa;AAEhC,SAASC,UAAUA,CAAE;EAAEC,QAAQ;EAAEC;AAAc,CAAC,EAAG;EAClD,OACCC,aAAA,CAACxB,SAAS;IACTyB,SAAS,EAAC,uBAAuB;IACjCC,KAAK,EAAG7B,EAAE,CAAE,SAAU,CAAG;IACzB8B,MAAM,EAAGL,QAAU;IACnBM,QAAQ,EAAGL;EAA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AAC,CAAEC,UAAW,CAAC"}
1
+ {"version":3,"names":["__","__experimentalHStack","HStack","PanelBody","useDispatch","useSelect","PostSwitchToDraftButton","PostSyncStatus","PostVisibility","PostTrash","PostSchedule","PostSticky","PostAuthor","PostSlug","PostFormat","PostPendingStatus","PluginPostStatusInfo","store","editPostStore","PostTemplate","PostURL","PANEL_NAME","PostStatus","isOpened","isRemoved","select","isEditorPanelRemoved","isEditorPanelOpened","toggleEditorPanelOpened","createElement","className","title","opened","onToggle","Slot","fills","Fragment","style","marginTop","spacing","wrap"],"sources":["@wordpress/edit-post/src/components/sidebar/post-status/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\t__experimentalHStack as HStack,\n\tPanelBody,\n} from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { PostSwitchToDraftButton, PostSyncStatus } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport PostVisibility from '../post-visibility';\nimport PostTrash from '../post-trash';\nimport PostSchedule from '../post-schedule';\nimport PostSticky from '../post-sticky';\nimport PostAuthor from '../post-author';\nimport PostSlug from '../post-slug';\nimport PostFormat from '../post-format';\nimport PostPendingStatus from '../post-pending-status';\nimport PluginPostStatusInfo from '../plugin-post-status-info';\nimport { store as editPostStore } from '../../../store';\nimport PostTemplate from '../post-template';\nimport PostURL from '../post-url';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-status';\n\nexport default function PostStatus() {\n\tconst { isOpened, isRemoved } = useSelect( ( select ) => {\n\t\t// We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do\n\t\t// not use isEditorPanelEnabled since this panel should not be disabled through the UI.\n\t\tconst { isEditorPanelRemoved, isEditorPanelOpened } =\n\t\t\tselect( editPostStore );\n\t\treturn {\n\t\t\tisRemoved: isEditorPanelRemoved( PANEL_NAME ),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t}, [] );\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( isRemoved ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PanelBody\n\t\t\tclassName=\"edit-post-post-status\"\n\t\t\ttitle={ __( 'Summary' ) }\n\t\t\topened={ isOpened }\n\t\t\tonToggle={ () => toggleEditorPanelOpened( PANEL_NAME ) }\n\t\t>\n\t\t\t<PluginPostStatusInfo.Slot>\n\t\t\t\t{ ( fills ) => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<PostVisibility />\n\t\t\t\t\t\t<PostSchedule />\n\t\t\t\t\t\t<PostTemplate />\n\t\t\t\t\t\t<PostURL />\n\t\t\t\t\t\t<PostSticky />\n\t\t\t\t\t\t<PostPendingStatus />\n\t\t\t\t\t\t<PostFormat />\n\t\t\t\t\t\t<PostSlug />\n\t\t\t\t\t\t<PostAuthor />\n\t\t\t\t\t\t<PostSyncStatus />\n\t\t\t\t\t\t{ fills }\n\t\t\t\t\t\t<HStack\n\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\tmarginTop: '16px',\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tspacing={ 4 }\n\t\t\t\t\t\t\twrap\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<PostSwitchToDraftButton />\n\t\t\t\t\t\t\t<PostTrash />\n\t\t\t\t\t\t</HStack>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</PluginPostStatusInfo.Slot>\n\t\t</PanelBody>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SACCC,oBAAoB,IAAIC,MAAM,EAC9BC,SAAS,QACH,uBAAuB;AAC9B,SAASC,WAAW,EAAEC,SAAS,QAAQ,iBAAiB;AACxD,SAASC,uBAAuB,EAAEC,cAAc,QAAQ,mBAAmB;;AAE3E;AACA;AACA;AACA,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,OAAOC,SAAS,MAAM,eAAe;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B,aAAA,CAACV,YAAY,MAAE,CAAC,EAChBU,aAAA,CAACT,OAAO,MAAE,CAAC,EACXS,aAAA,CAAClB,UAAU,MAAE,CAAC,EACdkB,aAAA,CAACd,iBAAiB,MAAE,CAAC,EACrBc,aAAA,CAACf,UAAU,MAAE,CAAC,EACde,aAAA,CAAChB,QAAQ,MAAE,CAAC,EACZgB,aAAA,CAACjB,UAAU,MAAE,CAAC,EACdiB,aAAA,CAACtB,cAAc,MAAE,CAAC,EAChB4B,KAAK,EACPN,aAAA,CAAC3B,MAAM;IACNmC,KAAK,EAAG;MACPC,SAAS,EAAE;IACZ,CAAG;IACHC,OAAO,EAAG,CAAG;IACbC,IAAI;EAAA,GAEJX,aAAA,CAACvB,uBAAuB,MAAE,CAAC,EAC3BuB,aAAA,CAACpB,SAAS,MAAE,CACL,CACP,CAEuB,CACjB,CAAC;AAEd"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement, Fragment } from "@wordpress/element";
1
+ import { createElement, Fragment } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement, Fragment } from "@wordpress/element";
1
+ import { createElement, Fragment } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement, Fragment } from "@wordpress/element";
1
+ import { createElement, Fragment } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  export default function WelcomeGuideImage({
3
3
  nonAnimatedSrc,
4
4
  animatedSrc
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement, Fragment } from "@wordpress/element";
1
+ import { createElement, Fragment } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -17,9 +17,9 @@ const enhance = compose(
17
17
  * "original" block is not the current one. Thus, an inexisting
18
18
  * `originalBlockClientId` prop signals that the block is valid.
19
19
  *
20
- * @param {WPComponent} WrappedBlockEdit A filtered BlockEdit instance.
20
+ * @param {Component} WrappedBlockEdit A filtered BlockEdit instance.
21
21
  *
22
- * @return {WPComponent} Enhanced component with merged state data props.
22
+ * @return {Component} Enhanced component with merged state data props.
23
23
  */
24
24
  withSelect((select, block) => {
25
25
  const multiple = hasBlockSupport(block.name, 'multiple', true);
@@ -1 +1 @@
1
- {"version":3,"names":["createBlock","findTransform","getBlockTransforms","getBlockType","hasBlockSupport","Button","withSelect","withDispatch","Warning","store","blockEditorStore","addFilter","__","compose","createHigherOrderComponent","enhance","select","block","multiple","name","blocks","getBlocks","firstOfSameType","find","isInvalid","clientId","originalBlockClientId","dispatch","selectFirst","selectBlock","withMultipleValidation","BlockEdit","props","createElement","blockType","outboundType","getOutboundType","key","style","minHeight","actions","variant","onClick","onReplace","attributes","title","blockName","transform","type","length"],"sources":["@wordpress/edit-post/src/hooks/validate-multiple-use/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tcreateBlock,\n\tfindTransform,\n\tgetBlockTransforms,\n\tgetBlockType,\n\thasBlockSupport,\n} from '@wordpress/blocks';\nimport { Button } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { Warning, store as blockEditorStore } from '@wordpress/block-editor';\nimport { addFilter } from '@wordpress/hooks';\nimport { __ } from '@wordpress/i18n';\nimport { compose, createHigherOrderComponent } from '@wordpress/compose';\n\nconst enhance = compose(\n\t/**\n\t * For blocks whose block type doesn't support `multiple`, provides the\n\t * wrapped component with `originalBlockClientId` -- a reference to the\n\t * first block of the same type in the content -- if and only if that\n\t * \"original\" block is not the current one. Thus, an inexisting\n\t * `originalBlockClientId` prop signals that the block is valid.\n\t *\n\t * @param {WPComponent} WrappedBlockEdit A filtered BlockEdit instance.\n\t *\n\t * @return {WPComponent} Enhanced component with merged state data props.\n\t */\n\twithSelect( ( select, block ) => {\n\t\tconst multiple = hasBlockSupport( block.name, 'multiple', true );\n\n\t\t// For block types with `multiple` support, there is no \"original\n\t\t// block\" to be found in the content, as the block itself is valid.\n\t\tif ( multiple ) {\n\t\t\treturn {};\n\t\t}\n\n\t\t// Otherwise, only pass `originalBlockClientId` if it refers to a different\n\t\t// block from the current one.\n\t\tconst blocks = select( blockEditorStore ).getBlocks();\n\t\tconst firstOfSameType = blocks.find(\n\t\t\t( { name } ) => block.name === name\n\t\t);\n\t\tconst isInvalid =\n\t\t\tfirstOfSameType && firstOfSameType.clientId !== block.clientId;\n\t\treturn {\n\t\t\toriginalBlockClientId: isInvalid && firstOfSameType.clientId,\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch, { originalBlockClientId } ) => ( {\n\t\tselectFirst: () =>\n\t\t\tdispatch( blockEditorStore ).selectBlock( originalBlockClientId ),\n\t} ) )\n);\n\nconst withMultipleValidation = createHigherOrderComponent( ( BlockEdit ) => {\n\treturn enhance( ( { originalBlockClientId, selectFirst, ...props } ) => {\n\t\tif ( ! originalBlockClientId ) {\n\t\t\treturn <BlockEdit { ...props } />;\n\t\t}\n\n\t\tconst blockType = getBlockType( props.name );\n\t\tconst outboundType = getOutboundType( props.name );\n\n\t\treturn [\n\t\t\t<div key=\"invalid-preview\" style={ { minHeight: '60px' } }>\n\t\t\t\t<BlockEdit key=\"block-edit\" { ...props } />\n\t\t\t</div>,\n\t\t\t<Warning\n\t\t\t\tkey=\"multiple-use-warning\"\n\t\t\t\tactions={ [\n\t\t\t\t\t<Button\n\t\t\t\t\t\tkey=\"find-original\"\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\tonClick={ selectFirst }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Find original' ) }\n\t\t\t\t\t</Button>,\n\t\t\t\t\t<Button\n\t\t\t\t\t\tkey=\"remove\"\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\tonClick={ () => props.onReplace( [] ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Remove' ) }\n\t\t\t\t\t</Button>,\n\t\t\t\t\toutboundType && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tkey=\"transform\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tonClick={ () =>\n\t\t\t\t\t\t\t\tprops.onReplace(\n\t\t\t\t\t\t\t\t\tcreateBlock(\n\t\t\t\t\t\t\t\t\t\toutboundType.name,\n\t\t\t\t\t\t\t\t\t\tprops.attributes\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Transform into:' ) } { outboundType.title }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t),\n\t\t\t\t] }\n\t\t\t>\n\t\t\t\t<strong>{ blockType?.title }: </strong>\n\t\t\t\t{ __( 'This block can only be used once.' ) }\n\t\t\t</Warning>,\n\t\t];\n\t} );\n}, 'withMultipleValidation' );\n\n/**\n * Given a base block name, returns the default block type to which to offer\n * transforms.\n *\n * @param {string} blockName Base block name.\n *\n * @return {?Object} The chosen default block type.\n */\nfunction getOutboundType( blockName ) {\n\t// Grab the first outbound transform.\n\tconst transform = findTransform(\n\t\tgetBlockTransforms( 'to', blockName ),\n\t\t( { type, blocks } ) => type === 'block' && blocks.length === 1 // What about when .length > 1?\n\t);\n\n\tif ( ! transform ) {\n\t\treturn null;\n\t}\n\n\treturn getBlockType( transform.blocks[ 0 ] );\n}\n\naddFilter(\n\t'editor.BlockEdit',\n\t'core/edit-post/validate-multiple-use/with-multiple-validation',\n\twithMultipleValidation\n);\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,WAAW,EACXC,aAAa,EACbC,kBAAkB,EAClBC,YAAY,EACZC,eAAe,QACT,mBAAmB;AAC1B,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC1D,SAASC,OAAO,EAAEC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AAC5E,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,0BAA0B,QAAQ,oBAAoB;AAExE,MAAMC,OAAO,GAAGF,OAAO;AACtB;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACCP,UAAU,CAAE,CAAEU,MAAM,EAAEC,KAAK,KAAM;EAChC,MAAMC,QAAQ,GAAGd,eAAe,CAAEa,KAAK,CAACE,IAAI,EAAE,UAAU,EAAE,IAAK,CAAC;;EAEhE;EACA;EACA,IAAKD,QAAQ,EAAG;IACf,OAAO,CAAC,CAAC;EACV;;EAEA;EACA;EACA,MAAME,MAAM,GAAGJ,MAAM,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3,"names":["createBlock","findTransform","getBlockTransforms","getBlockType","hasBlockSupport","Button","withSelect","withDispatch","Warning","store","blockEditorStore","addFilter","__","compose","createHigherOrderComponent","enhance","select","block","multiple","name","blocks","getBlocks","firstOfSameType","find","isInvalid","clientId","originalBlockClientId","dispatch","selectFirst","selectBlock","withMultipleValidation","BlockEdit","props","createElement","blockType","outboundType","getOutboundType","key","style","minHeight","actions","variant","onClick","onReplace","attributes","title","blockName","transform","type","length"],"sources":["@wordpress/edit-post/src/hooks/validate-multiple-use/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tcreateBlock,\n\tfindTransform,\n\tgetBlockTransforms,\n\tgetBlockType,\n\thasBlockSupport,\n} from '@wordpress/blocks';\nimport { Button } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { Warning, store as blockEditorStore } from '@wordpress/block-editor';\nimport { addFilter } from '@wordpress/hooks';\nimport { __ } from '@wordpress/i18n';\nimport { compose, createHigherOrderComponent } from '@wordpress/compose';\n\nconst enhance = compose(\n\t/**\n\t * For blocks whose block type doesn't support `multiple`, provides the\n\t * wrapped component with `originalBlockClientId` -- a reference to the\n\t * first block of the same type in the content -- if and only if that\n\t * \"original\" block is not the current one. Thus, an inexisting\n\t * `originalBlockClientId` prop signals that the block is valid.\n\t *\n\t * @param {Component} WrappedBlockEdit A filtered BlockEdit instance.\n\t *\n\t * @return {Component} Enhanced component with merged state data props.\n\t */\n\twithSelect( ( select, block ) => {\n\t\tconst multiple = hasBlockSupport( block.name, 'multiple', true );\n\n\t\t// For block types with `multiple` support, there is no \"original\n\t\t// block\" to be found in the content, as the block itself is valid.\n\t\tif ( multiple ) {\n\t\t\treturn {};\n\t\t}\n\n\t\t// Otherwise, only pass `originalBlockClientId` if it refers to a different\n\t\t// block from the current one.\n\t\tconst blocks = select( blockEditorStore ).getBlocks();\n\t\tconst firstOfSameType = blocks.find(\n\t\t\t( { name } ) => block.name === name\n\t\t);\n\t\tconst isInvalid =\n\t\t\tfirstOfSameType && firstOfSameType.clientId !== block.clientId;\n\t\treturn {\n\t\t\toriginalBlockClientId: isInvalid && firstOfSameType.clientId,\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch, { originalBlockClientId } ) => ( {\n\t\tselectFirst: () =>\n\t\t\tdispatch( blockEditorStore ).selectBlock( originalBlockClientId ),\n\t} ) )\n);\n\nconst withMultipleValidation = createHigherOrderComponent( ( BlockEdit ) => {\n\treturn enhance( ( { originalBlockClientId, selectFirst, ...props } ) => {\n\t\tif ( ! originalBlockClientId ) {\n\t\t\treturn <BlockEdit { ...props } />;\n\t\t}\n\n\t\tconst blockType = getBlockType( props.name );\n\t\tconst outboundType = getOutboundType( props.name );\n\n\t\treturn [\n\t\t\t<div key=\"invalid-preview\" style={ { minHeight: '60px' } }>\n\t\t\t\t<BlockEdit key=\"block-edit\" { ...props } />\n\t\t\t</div>,\n\t\t\t<Warning\n\t\t\t\tkey=\"multiple-use-warning\"\n\t\t\t\tactions={ [\n\t\t\t\t\t<Button\n\t\t\t\t\t\tkey=\"find-original\"\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\tonClick={ selectFirst }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Find original' ) }\n\t\t\t\t\t</Button>,\n\t\t\t\t\t<Button\n\t\t\t\t\t\tkey=\"remove\"\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\tonClick={ () => props.onReplace( [] ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Remove' ) }\n\t\t\t\t\t</Button>,\n\t\t\t\t\toutboundType && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tkey=\"transform\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tonClick={ () =>\n\t\t\t\t\t\t\t\tprops.onReplace(\n\t\t\t\t\t\t\t\t\tcreateBlock(\n\t\t\t\t\t\t\t\t\t\toutboundType.name,\n\t\t\t\t\t\t\t\t\t\tprops.attributes\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Transform into:' ) } { outboundType.title }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t),\n\t\t\t\t] }\n\t\t\t>\n\t\t\t\t<strong>{ blockType?.title }: </strong>\n\t\t\t\t{ __( 'This block can only be used once.' ) }\n\t\t\t</Warning>,\n\t\t];\n\t} );\n}, 'withMultipleValidation' );\n\n/**\n * Given a base block name, returns the default block type to which to offer\n * transforms.\n *\n * @param {string} blockName Base block name.\n *\n * @return {?Object} The chosen default block type.\n */\nfunction getOutboundType( blockName ) {\n\t// Grab the first outbound transform.\n\tconst transform = findTransform(\n\t\tgetBlockTransforms( 'to', blockName ),\n\t\t( { type, blocks } ) => type === 'block' && blocks.length === 1 // What about when .length > 1?\n\t);\n\n\tif ( ! transform ) {\n\t\treturn null;\n\t}\n\n\treturn getBlockType( transform.blocks[ 0 ] );\n}\n\naddFilter(\n\t'editor.BlockEdit',\n\t'core/edit-post/validate-multiple-use/with-multiple-validation',\n\twithMultipleValidation\n);\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,WAAW,EACXC,aAAa,EACbC,kBAAkB,EAClBC,YAAY,EACZC,eAAe,QACT,mBAAmB;AAC1B,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC1D,SAASC,OAAO,EAAEC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AAC5E,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,0BAA0B,QAAQ,oBAAoB;AAExE,MAAMC,OAAO,GAAGF,OAAO;AACtB;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACCP,UAAU,CAAE,CAAEU,MAAM,EAAEC,KAAK,KAAM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,CAAEF,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,OAAO5C,YAAY,CAAE4C,SAAS,CAAC3B,MAAM,CAAE,CAAC,CAAG,CAAC;AAC7C;AAEAT,SAAS,CACR,kBAAkB,EAClB,+DAA+D,EAC/DmB,sBACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -5,5 +5,5 @@ import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/pri
5
5
  export const {
6
6
  lock,
7
7
  unlock
8
- } = __dangerousOptInToUnstableAPIsOnlyForCoreModules('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/edit-post');
8
+ } = __dangerousOptInToUnstableAPIsOnlyForCoreModules('I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.', '@wordpress/edit-post');
9
9
  //# sourceMappingURL=lock-unlock.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"sources":["@wordpress/edit-post/src/lock-unlock.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',\n\t\t'@wordpress/edit-post'\n\t);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAgD,QAAQ,yBAAyB;AAE1F,OAAO,MAAM;EAAEC,IAAI;EAAEC;AAAO,CAAC,GAC5BF,gDAAgD,CAC/C,iHAAiH,EACjH,sBACD,CAAC"}
1
+ {"version":3,"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"sources":["@wordpress/edit-post/src/lock-unlock.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.',\n\t\t'@wordpress/edit-post'\n\t);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAgD,QAAQ,yBAAyB;AAE1F,OAAO,MAAM;EAAEC,IAAI;EAAEC;AAAO,CAAC,GAC5BF,gDAAgD,CAC/C,8GAA8G,EAC9G,sBACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement, Fragment } from "@wordpress/element";
1
+ import { createElement, Fragment } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -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
  }
@@ -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
  }
@@ -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
  }