@wordpress/edit-post 7.19.3 → 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
@@ -1 +1 @@
1
- {"version":3,"names":["_plugins","require","_components","Fill","Slot","createSlotFill","PluginPostPublishPanel","children","className","title","initialOpen","icon","pluginIcon","usePluginContext","_element","createElement","PanelBody","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-post-publish-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { usePluginContext } from '@wordpress/plugins';\nimport { createSlotFill, PanelBody } from '@wordpress/components';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPostPublishPanel' );\n\n/**\n * Renders provided content to the post-publish panel in the publish flow\n * (side panel that opens after a user publishes the post).\n *\n * @param {Object} props Component properties.\n * @param {string} [props.className] An optional class name added to the panel.\n * @param {string} [props.title] Title displayed at the top of the panel.\n * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.\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 * @param {WPElement} props.children Children to be rendered\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel;\n *\n * function MyPluginPostPublishPanel() {\n * \treturn wp.element.createElement(\n * \t\tPluginPostPublishPanel,\n * \t\t{\n * \t\t\tclassName: 'my-plugin-post-publish-panel',\n * \t\t\ttitle: __( 'My panel title' ),\n * \t\t\tinitialOpen: true,\n * \t\t},\n * \t\t__( 'My panel content' )\n * \t);\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PluginPostPublishPanel } from '@wordpress/edit-post';\n *\n * const MyPluginPostPublishPanel = () => (\n * \t<PluginPostPublishPanel\n * \t\tclassName=\"my-plugin-post-publish-panel\"\n * \t\ttitle={ __( 'My panel title' ) }\n * \t\tinitialOpen={ true }\n * \t>\n * { __( 'My panel content' ) }\n * \t</PluginPostPublishPanel>\n * );\n * ```\n *\n * @return {WPComponent} The component to be rendered.\n */\nconst PluginPostPublishPanel = ( {\n\tchildren,\n\tclassName,\n\ttitle,\n\tinitialOpen = false,\n\ticon,\n} ) => {\n\tconst { icon: pluginIcon } = usePluginContext();\n\n\treturn (\n\t\t<Fill>\n\t\t\t<PanelBody\n\t\t\t\tclassName={ className }\n\t\t\t\tinitialOpen={ initialOpen || ! title }\n\t\t\t\ttitle={ title }\n\t\t\t\ticon={ icon ?? pluginIcon }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</PanelBody>\n\t\t</Fill>\n\t);\n};\n\nPluginPostPublishPanel.Slot = Slot;\n\nexport default PluginPostPublishPanel;\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIA,MAAM;EAAEE,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,wBAAyB,CAAC;;AAEjE;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,MAAMC,sBAAsB,GAAGA,CAAE;EAChCC,QAAQ;EACRC,SAAS;EACTC,KAAK;EACLC,WAAW,GAAG,KAAK;EACnBC;AACD,CAAC,KAAM;EACN,MAAM;IAAEA,IAAI,EAAEC;EAAW,CAAC,GAAG,IAAAC,yBAAgB,EAAC,CAAC;EAE/C,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACZ,IAAI,QACJ,IAAAW,QAAA,CAAAC,aAAA,EAACb,WAAA,CAAAc,SAAS;IACTR,SAAS,EAAGA,SAAW;IACvBE,WAAW,EAAGA,WAAW,IAAI,CAAED,KAAO;IACtCA,KAAK,EAAGA,KAAO;IACfE,IAAI,EAAGA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAIC;EAAY,GAEzBL,QACQ,CACN,CAAC;AAET,CAAC;AAEDD,sBAAsB,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAAa,QAAA,GAEpBX,sBAAsB;AAAAY,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_plugins","require","_components","Fill","Slot","createSlotFill","PluginPostPublishPanel","children","className","title","initialOpen","icon","pluginIcon","usePluginContext","_react","createElement","PanelBody","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-post-publish-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { usePluginContext } from '@wordpress/plugins';\nimport { createSlotFill, PanelBody } from '@wordpress/components';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPostPublishPanel' );\n\n/**\n * Renders provided content to the post-publish panel in the publish flow\n * (side panel that opens after a user publishes the post).\n *\n * @param {Object} props Component properties.\n * @param {string} [props.className] An optional class name added to the panel.\n * @param {string} [props.title] Title displayed at the top of the panel.\n * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.\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 * @param {Element} props.children Children to be rendered\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel;\n *\n * function MyPluginPostPublishPanel() {\n * \treturn React.createElement(\n * \t\tPluginPostPublishPanel,\n * \t\t{\n * \t\t\tclassName: 'my-plugin-post-publish-panel',\n * \t\t\ttitle: __( 'My panel title' ),\n * \t\t\tinitialOpen: true,\n * \t\t},\n * \t\t__( 'My panel content' )\n * \t);\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PluginPostPublishPanel } from '@wordpress/edit-post';\n *\n * const MyPluginPostPublishPanel = () => (\n * \t<PluginPostPublishPanel\n * \t\tclassName=\"my-plugin-post-publish-panel\"\n * \t\ttitle={ __( 'My panel title' ) }\n * \t\tinitialOpen={ true }\n * \t>\n * { __( 'My panel content' ) }\n * \t</PluginPostPublishPanel>\n * );\n * ```\n *\n * @return {Component} The component to be rendered.\n */\nconst PluginPostPublishPanel = ( {\n\tchildren,\n\tclassName,\n\ttitle,\n\tinitialOpen = false,\n\ticon,\n} ) => {\n\tconst { icon: pluginIcon } = usePluginContext();\n\n\treturn (\n\t\t<Fill>\n\t\t\t<PanelBody\n\t\t\t\tclassName={ className }\n\t\t\t\tinitialOpen={ initialOpen || ! title }\n\t\t\t\ttitle={ title }\n\t\t\t\ticon={ icon ?? pluginIcon }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</PanelBody>\n\t\t</Fill>\n\t);\n};\n\nPluginPostPublishPanel.Slot = Slot;\n\nexport default PluginPostPublishPanel;\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIA,MAAM;EAAEE,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,wBAAyB,CAAC;;AAEjE;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,MAAMC,sBAAsB,GAAGA,CAAE;EAChCC,QAAQ;EACRC,SAAS;EACTC,KAAK;EACLC,WAAW,GAAG,KAAK;EACnBC;AACD,CAAC,KAAM;EACN,MAAM;IAAEA,IAAI,EAAEC;EAAW,CAAC,GAAG,IAAAC,yBAAgB,EAAC,CAAC;EAE/C,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACZ,IAAI,QACJ,IAAAW,MAAA,CAAAC,aAAA,EAACb,WAAA,CAAAc,SAAS;IACTR,SAAS,EAAGA,SAAW;IACvBE,WAAW,EAAGA,WAAW,IAAI,CAAED,KAAO;IACtCA,KAAK,EAAGA,KAAO;IACfE,IAAI,EAAGA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAIC;EAAY,GAEzBL,QACQ,CACN,CAAC;AAET,CAAC;AAEDD,sBAAsB,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAAa,QAAA,GAEpBX,sBAAsB;AAAAY,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _components = require("@wordpress/components");
9
9
  /**
10
10
  * Defines as extensibility slot for the Summary panel.
@@ -24,9 +24,9 @@ const {
24
24
  * It should be noted that this is named and implemented around the function it serves
25
25
  * and not its location, which may change in future iterations.
26
26
  *
27
- * @param {Object} props Component properties.
28
- * @param {string} [props.className] An optional class name added to the row.
29
- * @param {WPElement} props.children Children to be rendered.
27
+ * @param {Object} props Component properties.
28
+ * @param {string} [props.className] An optional class name added to the row.
29
+ * @param {Element} props.children Children to be rendered.
30
30
  *
31
31
  * @example
32
32
  * ```js
@@ -35,7 +35,7 @@ const {
35
35
  * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
36
36
  *
37
37
  * function MyPluginPostStatusInfo() {
38
- * return wp.element.createElement(
38
+ * return React.createElement(
39
39
  * PluginPostStatusInfo,
40
40
  * {
41
41
  * className: 'my-plugin-post-status-info',
@@ -60,12 +60,12 @@ const {
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
  const PluginPostStatusInfo = ({
66
66
  children,
67
67
  className
68
- }) => (0, _element.createElement)(Fill, null, (0, _element.createElement)(_components.PanelRow, {
68
+ }) => (0, _react.createElement)(Fill, null, (0, _react.createElement)(_components.PanelRow, {
69
69
  className: className
70
70
  }, children));
71
71
  PluginPostStatusInfo.Slot = Slot;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","Fill","Slot","createSlotFill","PluginPostStatusInfo","children","className","_element","createElement","PanelRow","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-post-status-info/index.js"],"sourcesContent":["/**\n * Defines as extensibility slot for the Summary panel.\n */\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelRow } from '@wordpress/components';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );\n\n/**\n * Renders a row in the Summary panel of the Document sidebar.\n * It should be noted that this is named and implemented around the function it serves\n * and not its location, which may change in future iterations.\n *\n * @param {Object} props Component properties.\n * @param {string} [props.className] An optional class name added to the row.\n * @param {WPElement} props.children Children to be rendered.\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;\n *\n * function MyPluginPostStatusInfo() {\n * \treturn wp.element.createElement(\n * \t\tPluginPostStatusInfo,\n * \t\t{\n * \t\t\tclassName: 'my-plugin-post-status-info',\n * \t\t},\n * \t\t__( 'My post status info' )\n * \t)\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PluginPostStatusInfo } from '@wordpress/edit-post';\n *\n * const MyPluginPostStatusInfo = () => (\n * \t<PluginPostStatusInfo\n * \t\tclassName=\"my-plugin-post-status-info\"\n * \t>\n * \t\t{ __( 'My post status info' ) }\n * \t</PluginPostStatusInfo>\n * );\n * ```\n *\n * @return {WPComponent} The component to be rendered.\n */\nconst PluginPostStatusInfo = ( { children, className } ) => (\n\t<Fill>\n\t\t<PanelRow className={ className }>{ children }</PanelRow>\n\t</Fill>\n);\n\nPluginPostStatusInfo.Slot = Slot;\n\nexport default PluginPostStatusInfo;\n"],"mappings":";;;;;;;AAOA,IAAAA,WAAA,GAAAC,OAAA;AAPA;AACA;AACA;;AAEA;AACA;AACA;;AAGA,MAAM;EAAEC,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,sBAAuB,CAAC;;AAE/D;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,MAAMC,oBAAoB,GAAGA,CAAE;EAAEC,QAAQ;EAAEC;AAAU,CAAC,KACrD,IAAAC,QAAA,CAAAC,aAAA,EAACP,IAAI,QACJ,IAAAM,QAAA,CAAAC,aAAA,EAACT,WAAA,CAAAU,QAAQ;EAACH,SAAS,EAAGA;AAAW,GAAGD,QAAoB,CACnD,CACN;AAEDD,oBAAoB,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAAQ,QAAA,GAElBN,oBAAoB;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","Fill","Slot","createSlotFill","PluginPostStatusInfo","children","className","_react","createElement","PanelRow","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-post-status-info/index.js"],"sourcesContent":["/**\n * Defines as extensibility slot for the Summary panel.\n */\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelRow } from '@wordpress/components';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );\n\n/**\n * Renders a row in the Summary panel of the Document sidebar.\n * It should be noted that this is named and implemented around the function it serves\n * and not its location, which may change in future iterations.\n *\n * @param {Object} props Component properties.\n * @param {string} [props.className] An optional class name added to the row.\n * @param {Element} props.children Children to be rendered.\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;\n *\n * function MyPluginPostStatusInfo() {\n * \treturn React.createElement(\n * \t\tPluginPostStatusInfo,\n * \t\t{\n * \t\t\tclassName: 'my-plugin-post-status-info',\n * \t\t},\n * \t\t__( 'My post status info' )\n * \t)\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PluginPostStatusInfo } from '@wordpress/edit-post';\n *\n * const MyPluginPostStatusInfo = () => (\n * \t<PluginPostStatusInfo\n * \t\tclassName=\"my-plugin-post-status-info\"\n * \t>\n * \t\t{ __( 'My post status info' ) }\n * \t</PluginPostStatusInfo>\n * );\n * ```\n *\n * @return {Component} The component to be rendered.\n */\nconst PluginPostStatusInfo = ( { children, className } ) => (\n\t<Fill>\n\t\t<PanelRow className={ className }>{ children }</PanelRow>\n\t</Fill>\n);\n\nPluginPostStatusInfo.Slot = Slot;\n\nexport default PluginPostStatusInfo;\n"],"mappings":";;;;;;;AAOA,IAAAA,WAAA,GAAAC,OAAA;AAPA;AACA;AACA;;AAEA;AACA;AACA;;AAGA,MAAM;EAAEC,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,sBAAuB,CAAC;;AAE/D;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,MAAMC,oBAAoB,GAAGA,CAAE;EAAEC,QAAQ;EAAEC;AAAU,CAAC,KACrD,IAAAC,MAAA,CAAAC,aAAA,EAACP,IAAI,QACJ,IAAAM,MAAA,CAAAC,aAAA,EAACT,WAAA,CAAAU,QAAQ;EAACH,SAAS,EAAGA;AAAW,GAAGD,QAAoB,CACnD,CACN;AAEDD,oBAAoB,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAAQ,QAAA,GAElBN,oBAAoB;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _components = require("@wordpress/components");
9
9
  var _plugins = require("@wordpress/plugins");
10
10
  /**
@@ -28,7 +28,7 @@ const {
28
28
  * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)
29
29
  * icon slug string, or an SVG WP element, to be rendered when
30
30
  * the sidebar is pinned to toolbar.
31
- * @param {WPElement} props.children Children to be rendered
31
+ * @param {Element} props.children Children to be rendered
32
32
  *
33
33
  * @example
34
34
  * ```js
@@ -37,7 +37,7 @@ const {
37
37
  * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;
38
38
  *
39
39
  * function MyPluginPrePublishPanel() {
40
- * return wp.element.createElement(
40
+ * return React.createElement(
41
41
  * PluginPrePublishPanel,
42
42
  * {
43
43
  * className: 'my-plugin-pre-publish-panel',
@@ -66,7 +66,7 @@ const {
66
66
  * );
67
67
  * ```
68
68
  *
69
- * @return {WPComponent} The component to be rendered.
69
+ * @return {Component} The component to be rendered.
70
70
  */
71
71
  const PluginPrePublishPanel = ({
72
72
  children,
@@ -78,7 +78,7 @@ const PluginPrePublishPanel = ({
78
78
  const {
79
79
  icon: pluginIcon
80
80
  } = (0, _plugins.usePluginContext)();
81
- return (0, _element.createElement)(Fill, null, (0, _element.createElement)(_components.PanelBody, {
81
+ return (0, _react.createElement)(Fill, null, (0, _react.createElement)(_components.PanelBody, {
82
82
  className: className,
83
83
  initialOpen: initialOpen || !title,
84
84
  title: title,
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_plugins","Fill","Slot","createSlotFill","PluginPrePublishPanel","children","className","title","initialOpen","icon","pluginIcon","usePluginContext","_element","createElement","PanelBody","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-pre-publish-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelBody } from '@wordpress/components';\nimport { usePluginContext } from '@wordpress/plugins';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPrePublishPanel' );\n\n/**\n * Renders provided content to the pre-publish side panel in the publish flow\n * (side panel that opens when a user first pushes \"Publish\" from the main editor).\n *\n * @param {Object} props Component props.\n * @param {string} [props.className] An optional class name added to the panel.\n * @param {string} [props.title] Title displayed at the top of the panel.\n * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened.\n * When no title is provided it is always opened.\n * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)\n * icon slug string, or an SVG WP element, to be rendered when\n * the sidebar is pinned to toolbar.\n * @param {WPElement} props.children Children to be rendered\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;\n *\n * function MyPluginPrePublishPanel() {\n * \treturn wp.element.createElement(\n * \t\tPluginPrePublishPanel,\n * \t\t{\n * \t\t\tclassName: 'my-plugin-pre-publish-panel',\n * \t\t\ttitle: __( 'My panel title' ),\n * \t\t\tinitialOpen: true,\n * \t\t},\n * \t\t__( 'My panel content' )\n * \t);\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PluginPrePublishPanel } from '@wordpress/edit-post';\n *\n * const MyPluginPrePublishPanel = () => (\n * \t<PluginPrePublishPanel\n * \t\tclassName=\"my-plugin-pre-publish-panel\"\n * \t\ttitle={ __( 'My panel title' ) }\n * \t\tinitialOpen={ true }\n * \t>\n * \t { __( 'My panel content' ) }\n * \t</PluginPrePublishPanel>\n * );\n * ```\n *\n * @return {WPComponent} The component to be rendered.\n */\nconst PluginPrePublishPanel = ( {\n\tchildren,\n\tclassName,\n\ttitle,\n\tinitialOpen = false,\n\ticon,\n} ) => {\n\tconst { icon: pluginIcon } = usePluginContext();\n\n\treturn (\n\t\t<Fill>\n\t\t\t<PanelBody\n\t\t\t\tclassName={ className }\n\t\t\t\tinitialOpen={ initialOpen || ! title }\n\t\t\t\ttitle={ title }\n\t\t\t\ticon={ icon ?? pluginIcon }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</PanelBody>\n\t\t</Fill>\n\t);\n};\n\nPluginPrePublishPanel.Slot = Slot;\n\nexport default PluginPrePublishPanel;\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIA,MAAM;EAAEE,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,uBAAwB,CAAC;;AAEhE;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,MAAMC,qBAAqB,GAAGA,CAAE;EAC/BC,QAAQ;EACRC,SAAS;EACTC,KAAK;EACLC,WAAW,GAAG,KAAK;EACnBC;AACD,CAAC,KAAM;EACN,MAAM;IAAEA,IAAI,EAAEC;EAAW,CAAC,GAAG,IAAAC,yBAAgB,EAAC,CAAC;EAE/C,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACZ,IAAI,QACJ,IAAAW,QAAA,CAAAC,aAAA,EAACf,WAAA,CAAAgB,SAAS;IACTR,SAAS,EAAGA,SAAW;IACvBE,WAAW,EAAGA,WAAW,IAAI,CAAED,KAAO;IACtCA,KAAK,EAAGA,KAAO;IACfE,IAAI,EAAGA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAIC;EAAY,GAEzBL,QACQ,CACN,CAAC;AAET,CAAC;AAEDD,qBAAqB,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAAa,QAAA,GAEnBX,qBAAqB;AAAAY,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_plugins","Fill","Slot","createSlotFill","PluginPrePublishPanel","children","className","title","initialOpen","icon","pluginIcon","usePluginContext","_react","createElement","PanelBody","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-pre-publish-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelBody } from '@wordpress/components';\nimport { usePluginContext } from '@wordpress/plugins';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPrePublishPanel' );\n\n/**\n * Renders provided content to the pre-publish side panel in the publish flow\n * (side panel that opens when a user first pushes \"Publish\" from the main editor).\n *\n * @param {Object} props Component props.\n * @param {string} [props.className] An optional class name added to the panel.\n * @param {string} [props.title] Title displayed at the top of the panel.\n * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened.\n * When no title is provided it is always opened.\n * @param {WPBlockTypeIconRender} [props.icon=inherits from the plugin] The [Dashicon](https://developer.wordpress.org/resource/dashicons/)\n * icon slug string, or an SVG WP element, to be rendered when\n * the sidebar is pinned to toolbar.\n * @param {Element} props.children Children to be rendered\n *\n * @example\n * ```js\n * // Using ES5 syntax\n * var __ = wp.i18n.__;\n * var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;\n *\n * function MyPluginPrePublishPanel() {\n * \treturn React.createElement(\n * \t\tPluginPrePublishPanel,\n * \t\t{\n * \t\t\tclassName: 'my-plugin-pre-publish-panel',\n * \t\t\ttitle: __( 'My panel title' ),\n * \t\t\tinitialOpen: true,\n * \t\t},\n * \t\t__( 'My panel content' )\n * \t);\n * }\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { __ } from '@wordpress/i18n';\n * import { PluginPrePublishPanel } from '@wordpress/edit-post';\n *\n * const MyPluginPrePublishPanel = () => (\n * \t<PluginPrePublishPanel\n * \t\tclassName=\"my-plugin-pre-publish-panel\"\n * \t\ttitle={ __( 'My panel title' ) }\n * \t\tinitialOpen={ true }\n * \t>\n * \t { __( 'My panel content' ) }\n * \t</PluginPrePublishPanel>\n * );\n * ```\n *\n * @return {Component} The component to be rendered.\n */\nconst PluginPrePublishPanel = ( {\n\tchildren,\n\tclassName,\n\ttitle,\n\tinitialOpen = false,\n\ticon,\n} ) => {\n\tconst { icon: pluginIcon } = usePluginContext();\n\n\treturn (\n\t\t<Fill>\n\t\t\t<PanelBody\n\t\t\t\tclassName={ className }\n\t\t\t\tinitialOpen={ initialOpen || ! title }\n\t\t\t\ttitle={ title }\n\t\t\t\ticon={ icon ?? pluginIcon }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</PanelBody>\n\t\t</Fill>\n\t);\n};\n\nPluginPrePublishPanel.Slot = Slot;\n\nexport default PluginPrePublishPanel;\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIA,MAAM;EAAEE,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,uBAAwB,CAAC;;AAEhE;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,MAAMC,qBAAqB,GAAGA,CAAE;EAC/BC,QAAQ;EACRC,SAAS;EACTC,KAAK;EACLC,WAAW,GAAG,KAAK;EACnBC;AACD,CAAC,KAAM;EACN,MAAM;IAAEA,IAAI,EAAEC;EAAW,CAAC,GAAG,IAAAC,yBAAgB,EAAC,CAAC;EAE/C,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACZ,IAAI,QACJ,IAAAW,MAAA,CAAAC,aAAA,EAACf,WAAA,CAAAgB,SAAS;IACTR,SAAS,EAAGA,SAAW;IACvBE,WAAW,EAAGA,WAAW,IAAI,CAAED,KAAO;IACtCA,KAAK,EAAGA,KAAO;IACfE,IAAI,EAAGA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAIC;EAAY,GAEzBL,QACQ,CACN,CAAC;AAET,CAAC;AAEDD,qBAAqB,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAAa,QAAA,GAEnBX,qBAAqB;AAAAY,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = PluginSidebarEditPost;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _interface = require("@wordpress/interface");
9
9
  var _data = require("@wordpress/data");
10
10
  var _i18n = require("@wordpress/i18n");
@@ -41,10 +41,10 @@ var _store = require("../../../store");
41
41
  * ```js
42
42
  * // Using ES5 syntax
43
43
  * var __ = wp.i18n.__;
44
- * var el = wp.element.createElement;
44
+ * var el = React.createElement;
45
45
  * var PanelBody = wp.components.PanelBody;
46
46
  * var PluginSidebar = wp.editPost.PluginSidebar;
47
- * var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
47
+ * var moreIcon = React.createElement( 'svg' ); //... svg element.
48
48
  *
49
49
  * function MyPluginSidebar() {
50
50
  * return el(
@@ -99,7 +99,7 @@ function PluginSidebarEditPost({
99
99
  showIconLabels: select(_store.store).isFeatureActive('showIconLabels')
100
100
  };
101
101
  }, []);
102
- return (0, _element.createElement)(_interface.ComplementaryArea, {
102
+ return (0, _react.createElement)(_interface.ComplementaryArea, {
103
103
  panelClassName: className,
104
104
  className: "edit-post-sidebar",
105
105
  smallScreenTitle: postTitle || (0, _i18n.__)('(no title)'),
@@ -1 +1 @@
1
- {"version":3,"names":["_interface","require","_data","_i18n","_keyboardShortcuts","_editor","_store","PluginSidebarEditPost","className","props","postTitle","shortcut","showIconLabels","useSelect","select","editorStore","getEditedPostAttribute","keyboardShortcutsStore","getShortcutRepresentation","editPostStore","isFeatureActive","_element","createElement","ComplementaryArea","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":";;;;;;;AAGA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAKA,IAAAK,MAAA,GAAAL,OAAA;AAZA;AACA;AACA;;AAOA;AACA;AACA;;AAGA;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;AACe,SAASM,qBAAqBA,CAAE;EAAEC,SAAS;EAAE,GAAGC;AAAM,CAAC,EAAG;EACxE,MAAM;IAAEC,SAAS;IAAEC,QAAQ;IAAEC;EAAe,CAAC,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IACxE,OAAO;MACNJ,SAAS,EAAEI,MAAM,CAAEC,aAAY,CAAC,CAACC,sBAAsB,CAAE,OAAQ,CAAC;MAClEL,QAAQ,EAAEG,MAAM,CACfG,wBACD,CAAC,CAACC,yBAAyB,CAAE,+BAAgC,CAAC;MAC9DN,cAAc,EACbE,MAAM,CAAEK,YAAc,CAAC,CAACC,eAAe,CAAE,gBAAiB;IAC5D,CAAC;EACF,CAAC,EAAE,EAAG,CAAC;EACP,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACtB,UAAA,CAAAuB,iBAAiB;IACjBC,cAAc,EAAGhB,SAAW;IAC5BA,SAAS,EAAC,mBAAmB;IAC7BiB,gBAAgB,EAAGf,SAAS,IAAI,IAAAgB,QAAE,EAAE,YAAa,CAAG;IACpDC,KAAK,EAAC,gBAAgB;IACtBC,cAAc,EAAGjB,QAAU;IAC3BC,cAAc,EAAGA,cAAgB;IAAA,GAC5BH;EAAK,CACV,CAAC;AAEJ"}
1
+ {"version":3,"names":["_interface","require","_data","_i18n","_keyboardShortcuts","_editor","_store","PluginSidebarEditPost","className","props","postTitle","shortcut","showIconLabels","useSelect","select","editorStore","getEditedPostAttribute","keyboardShortcutsStore","getShortcutRepresentation","editPostStore","isFeatureActive","_react","createElement","ComplementaryArea","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":";;;;;;;AAGA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAKA,IAAAK,MAAA,GAAAL,OAAA;AAZA;AACA;AACA;;AAOA;AACA;AACA;;AAGA;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;AACe,SAASM,qBAAqBA,CAAE;EAAEC,SAAS;EAAE,GAAGC;AAAM,CAAC,EAAG;EACxE,MAAM;IAAEC,SAAS;IAAEC,QAAQ;IAAEC;EAAe,CAAC,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IACxE,OAAO;MACNJ,SAAS,EAAEI,MAAM,CAAEC,aAAY,CAAC,CAACC,sBAAsB,CAAE,OAAQ,CAAC;MAClEL,QAAQ,EAAEG,MAAM,CACfG,wBACD,CAAC,CAACC,yBAAyB,CAAE,+BAAgC,CAAC;MAC9DN,cAAc,EACbE,MAAM,CAAEK,YAAc,CAAC,CAACC,eAAe,CAAE,gBAAiB;IAC5D,CAAC;EACF,CAAC,EAAE,EAAG,CAAC;EACP,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACtB,UAAA,CAAAuB,iBAAiB;IACjBC,cAAc,EAAGhB,SAAW;IAC5BA,SAAS,EAAC,mBAAmB;IAC7BiB,gBAAgB,EAAGf,SAAS,IAAI,IAAAgB,QAAE,EAAE,YAAa,CAAG;IACpDC,KAAK,EAAC,gBAAgB;IACtBC,cAAc,EAAGjB,QAAU;IAC3BC,cAAc,EAAGA,cAAgB;IAAA,GAC5BH;EAAK,CACV,CAAC;AAEJ"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.PostAuthor = PostAuthor;
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _components = require("@wordpress/components");
10
10
  var _editor = require("@wordpress/editor");
11
11
  /**
@@ -13,9 +13,9 @@ var _editor = require("@wordpress/editor");
13
13
  */
14
14
 
15
15
  function PostAuthor() {
16
- return (0, _element.createElement)(_editor.PostAuthorCheck, null, (0, _element.createElement)(_components.PanelRow, {
16
+ return (0, _react.createElement)(_editor.PostAuthorCheck, null, (0, _react.createElement)(_components.PanelRow, {
17
17
  className: "edit-post-post-author"
18
- }, (0, _element.createElement)(_editor.PostAuthor, null)));
18
+ }, (0, _react.createElement)(_editor.PostAuthor, null)));
19
19
  }
20
20
  var _default = PostAuthor;
21
21
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_editor","PostAuthor","_element","createElement","PostAuthorCheck","PanelRow","className","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-author/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostAuthor as PostAuthorForm,\n\tPostAuthorCheck,\n} from '@wordpress/editor';\n\nexport function PostAuthor() {\n\treturn (\n\t\t<PostAuthorCheck>\n\t\t\t<PanelRow className=\"edit-post-post-author\">\n\t\t\t\t<PostAuthorForm />\n\t\t\t</PanelRow>\n\t\t</PostAuthorCheck>\n\t);\n}\n\nexport default PostAuthor;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,UAAUA,CAAA,EAAG;EAC5B,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,eAAe,QACf,IAAAF,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ;IAACC,SAAS,EAAC;EAAuB,GAC1C,IAAAJ,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,UAAc,MAAE,CACR,CACM,CAAC;AAEpB;AAAC,IAAAM,QAAA,GAEcN,UAAU;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_editor","PostAuthor","_react","createElement","PostAuthorCheck","PanelRow","className","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-author/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostAuthor as PostAuthorForm,\n\tPostAuthorCheck,\n} from '@wordpress/editor';\n\nexport function PostAuthor() {\n\treturn (\n\t\t<PostAuthorCheck>\n\t\t\t<PanelRow className=\"edit-post-post-author\">\n\t\t\t\t<PostAuthorForm />\n\t\t\t</PanelRow>\n\t\t</PostAuthorCheck>\n\t);\n}\n\nexport default PostAuthor;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,UAAUA,CAAA,EAAG;EAC5B,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,eAAe,QACf,IAAAF,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ;IAACC,SAAS,EAAC;EAAuB,GAC1C,IAAAJ,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,UAAc,MAAE,CACR,CACM,CAAC;AAEpB;AAAC,IAAAM,QAAA,GAEcN,UAAU;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _i18n = require("@wordpress/i18n");
9
9
  var _components = require("@wordpress/components");
10
10
  var _editor = require("@wordpress/editor");
@@ -31,11 +31,11 @@ function PostExcerpt({
31
31
  if (!isEnabled) {
32
32
  return null;
33
33
  }
34
- return (0, _element.createElement)(_editor.PostExcerptCheck, null, (0, _element.createElement)(_components.PanelBody, {
34
+ return (0, _react.createElement)(_editor.PostExcerptCheck, null, (0, _react.createElement)(_components.PanelBody, {
35
35
  title: (0, _i18n.__)('Excerpt'),
36
36
  opened: isOpened,
37
37
  onToggle: onTogglePanel
38
- }, (0, _element.createElement)(_editor.PostExcerpt, null)));
38
+ }, (0, _react.createElement)(_editor.PostExcerpt, null)));
39
39
  }
40
40
  var _default = (0, _compose.compose)([(0, _data.withSelect)(select => {
41
41
  return {
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_editor","_compose","_data","_store","PANEL_NAME","PostExcerpt","isEnabled","isOpened","onTogglePanel","_element","createElement","PostExcerptCheck","PanelBody","title","__","opened","onToggle","_default","compose","withSelect","select","editPostStore","isEditorPanelEnabled","isEditorPanelOpened","withDispatch","dispatch","toggleEditorPanelOpened","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-excerpt/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport {\n\tPostExcerpt as PostExcerptForm,\n\tPostExcerptCheck,\n} from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-excerpt';\n\nfunction PostExcerpt( { isEnabled, isOpened, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostExcerptCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={ __( 'Excerpt' ) }\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PostExcerptForm />\n\t\t\t</PanelBody>\n\t\t</PostExcerptCheck>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => {\n\t\treturn {\n\t\t\tisEnabled:\n\t\t\t\tselect( editPostStore ).isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: select( editPostStore ).isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t} ),\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] )( PostExcerpt );\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAKA,IAAAK,MAAA,GAAAL,OAAA;AAfA;AACA;AACA;;AAUA;AACA;AACA;;AAGA;AACA;AACA;AACA,MAAMM,UAAU,GAAG,cAAc;AAEjC,SAASC,WAAWA,CAAE;EAAEC,SAAS;EAAEC,QAAQ;EAAEC;AAAc,CAAC,EAAG;EAC9D,IAAK,CAAEF,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,OACC,IAAAG,QAAA,CAAAC,aAAA,EAACV,OAAA,CAAAW,gBAAgB,QAChB,IAAAF,QAAA,CAAAC,aAAA,EAACX,WAAA,CAAAa,SAAS;IACTC,KAAK,EAAG,IAAAC,QAAE,EAAE,SAAU,CAAG;IACzBC,MAAM,EAAGR,QAAU;IACnBS,QAAQ,EAAGR;EAAe,GAE1B,IAAAC,QAAA,CAAAC,aAAA,EAACV,OAAA,CAAAK,WAAe,MAAE,CACR,CACM,CAAC;AAErB;AAAC,IAAAY,QAAA,GAEc,IAAAC,gBAAO,EAAE,CACvB,IAAAC,gBAAU,EAAIC,MAAM,IAAM;EACzB,OAAO;IACNd,SAAS,EACRc,MAAM,CAAEC,YAAc,CAAC,CAACC,oBAAoB,CAAElB,UAAW,CAAC;IAC3DG,QAAQ,EAAEa,MAAM,CAAEC,YAAc,CAAC,CAACE,mBAAmB,CAAEnB,UAAW;EACnE,CAAC;AACF,CAAE,CAAC,EACH,IAAAoB,kBAAY,EAAIC,QAAQ,KAAQ;EAC/BjB,aAAaA,CAAA,EAAG;IACf,OAAOiB,QAAQ,CAAEJ,YAAc,CAAC,CAACK,uBAAuB,CACvDtB,UACD,CAAC;EACF;AACD,CAAC,CAAG,CAAC,CACJ,CAAC,CAAEC,WAAY,CAAC;AAAAsB,OAAA,CAAAC,OAAA,GAAAX,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_editor","_compose","_data","_store","PANEL_NAME","PostExcerpt","isEnabled","isOpened","onTogglePanel","_react","createElement","PostExcerptCheck","PanelBody","title","__","opened","onToggle","_default","compose","withSelect","select","editPostStore","isEditorPanelEnabled","isEditorPanelOpened","withDispatch","dispatch","toggleEditorPanelOpened","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-excerpt/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport {\n\tPostExcerpt as PostExcerptForm,\n\tPostExcerptCheck,\n} from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-excerpt';\n\nfunction PostExcerpt( { isEnabled, isOpened, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostExcerptCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={ __( 'Excerpt' ) }\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PostExcerptForm />\n\t\t\t</PanelBody>\n\t\t</PostExcerptCheck>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => {\n\t\treturn {\n\t\t\tisEnabled:\n\t\t\t\tselect( editPostStore ).isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: select( editPostStore ).isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t} ),\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] )( PostExcerpt );\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAKA,IAAAK,MAAA,GAAAL,OAAA;AAfA;AACA;AACA;;AAUA;AACA;AACA;;AAGA;AACA;AACA;AACA,MAAMM,UAAU,GAAG,cAAc;AAEjC,SAASC,WAAWA,CAAE;EAAEC,SAAS;EAAEC,QAAQ;EAAEC;AAAc,CAAC,EAAG;EAC9D,IAAK,CAAEF,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,OACC,IAAAG,MAAA,CAAAC,aAAA,EAACV,OAAA,CAAAW,gBAAgB,QAChB,IAAAF,MAAA,CAAAC,aAAA,EAACX,WAAA,CAAAa,SAAS;IACTC,KAAK,EAAG,IAAAC,QAAE,EAAE,SAAU,CAAG;IACzBC,MAAM,EAAGR,QAAU;IACnBS,QAAQ,EAAGR;EAAe,GAE1B,IAAAC,MAAA,CAAAC,aAAA,EAACV,OAAA,CAAAK,WAAe,MAAE,CACR,CACM,CAAC;AAErB;AAAC,IAAAY,QAAA,GAEc,IAAAC,gBAAO,EAAE,CACvB,IAAAC,gBAAU,EAAIC,MAAM,IAAM;EACzB,OAAO;IACNd,SAAS,EACRc,MAAM,CAAEC,YAAc,CAAC,CAACC,oBAAoB,CAAElB,UAAW,CAAC;IAC3DG,QAAQ,EAAEa,MAAM,CAAEC,YAAc,CAAC,CAACE,mBAAmB,CAAEnB,UAAW;EACnE,CAAC;AACF,CAAE,CAAC,EACH,IAAAoB,kBAAY,EAAIC,QAAQ,KAAQ;EAC/BjB,aAAaA,CAAA,EAAG;IACf,OAAOiB,QAAQ,CAAEJ,YAAc,CAAC,CAACK,uBAAuB,CACvDtB,UACD,CAAC;EACF;AACD,CAAC,CAAG,CAAC,CACJ,CAAC,CAAEC,WAAY,CAAC;AAAAsB,OAAA,CAAAC,OAAA,GAAAX,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.PostFormat = PostFormat;
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _components = require("@wordpress/components");
10
10
  var _editor = require("@wordpress/editor");
11
11
  /**
@@ -13,9 +13,9 @@ var _editor = require("@wordpress/editor");
13
13
  */
14
14
 
15
15
  function PostFormat() {
16
- return (0, _element.createElement)(_editor.PostFormatCheck, null, (0, _element.createElement)(_components.PanelRow, {
16
+ return (0, _react.createElement)(_editor.PostFormatCheck, null, (0, _react.createElement)(_components.PanelRow, {
17
17
  className: "edit-post-post-format"
18
- }, (0, _element.createElement)(_editor.PostFormat, null)));
18
+ }, (0, _react.createElement)(_editor.PostFormat, null)));
19
19
  }
20
20
  var _default = PostFormat;
21
21
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_editor","PostFormat","_element","createElement","PostFormatCheck","PanelRow","className","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-format/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostFormat as PostFormatForm,\n\tPostFormatCheck,\n} from '@wordpress/editor';\n\nexport function PostFormat() {\n\treturn (\n\t\t<PostFormatCheck>\n\t\t\t<PanelRow className=\"edit-post-post-format\">\n\t\t\t\t<PostFormatForm />\n\t\t\t</PanelRow>\n\t\t</PostFormatCheck>\n\t);\n}\n\nexport default PostFormat;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,UAAUA,CAAA,EAAG;EAC5B,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,eAAe,QACf,IAAAF,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ;IAACC,SAAS,EAAC;EAAuB,GAC1C,IAAAJ,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,UAAc,MAAE,CACR,CACM,CAAC;AAEpB;AAAC,IAAAM,QAAA,GAEcN,UAAU;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_editor","PostFormat","_react","createElement","PostFormatCheck","PanelRow","className","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-format/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostFormat as PostFormatForm,\n\tPostFormatCheck,\n} from '@wordpress/editor';\n\nexport function PostFormat() {\n\treturn (\n\t\t<PostFormatCheck>\n\t\t\t<PanelRow className=\"edit-post-post-format\">\n\t\t\t\t<PostFormatForm />\n\t\t\t</PanelRow>\n\t\t</PostFormatCheck>\n\t);\n}\n\nexport default PostFormat;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,UAAUA,CAAA,EAAG;EAC5B,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,eAAe,QACf,IAAAF,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ;IAACC,SAAS,EAAC;EAAuB,GAC1C,IAAAJ,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,UAAc,MAAE,CACR,CACM,CAAC;AAEpB;AAAC,IAAAM,QAAA,GAEcN,UAAU;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.PostPendingStatus = PostPendingStatus;
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _components = require("@wordpress/components");
10
10
  var _editor = require("@wordpress/editor");
11
11
  /**
@@ -13,7 +13,7 @@ var _editor = require("@wordpress/editor");
13
13
  */
14
14
 
15
15
  function PostPendingStatus() {
16
- return (0, _element.createElement)(_editor.PostPendingStatusCheck, null, (0, _element.createElement)(_components.PanelRow, null, (0, _element.createElement)(_editor.PostPendingStatus, null)));
16
+ return (0, _react.createElement)(_editor.PostPendingStatusCheck, null, (0, _react.createElement)(_components.PanelRow, null, (0, _react.createElement)(_editor.PostPendingStatus, null)));
17
17
  }
18
18
  var _default = PostPendingStatus;
19
19
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_editor","PostPendingStatus","_element","createElement","PostPendingStatusCheck","PanelRow","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-pending-status/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostPendingStatus as PostPendingStatusForm,\n\tPostPendingStatusCheck,\n} from '@wordpress/editor';\n\nexport function PostPendingStatus() {\n\treturn (\n\t\t<PostPendingStatusCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostPendingStatusForm />\n\t\t\t</PanelRow>\n\t\t</PostPendingStatusCheck>\n\t);\n}\n\nexport default PostPendingStatus;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,iBAAiBA,CAAA,EAAG;EACnC,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,sBAAsB,QACtB,IAAAF,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ,QACR,IAAAH,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,iBAAqB,MAAE,CACf,CACa,CAAC;AAE3B;AAAC,IAAAK,QAAA,GAEcL,iBAAiB;AAAAM,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_editor","PostPendingStatus","_react","createElement","PostPendingStatusCheck","PanelRow","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-pending-status/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostPendingStatus as PostPendingStatusForm,\n\tPostPendingStatusCheck,\n} from '@wordpress/editor';\n\nexport function PostPendingStatus() {\n\treturn (\n\t\t<PostPendingStatusCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostPendingStatusForm />\n\t\t\t</PanelRow>\n\t\t</PostPendingStatusCheck>\n\t);\n}\n\nexport default PostPendingStatus;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,iBAAiBA,CAAA,EAAG;EACnC,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,sBAAsB,QACtB,IAAAF,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ,QACR,IAAAH,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,iBAAqB,MAAE,CACf,CACa,CAAC;AAE3B;AAAC,IAAAK,QAAA,GAEcL,iBAAiB;AAAAM,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,9 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = PostSchedule;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _i18n = require("@wordpress/i18n");
9
9
  var _components = require("@wordpress/components");
10
+ var _element = require("@wordpress/element");
10
11
  var _editor = require("@wordpress/editor");
11
12
  /**
12
13
  * WordPress dependencies
@@ -21,23 +22,23 @@ function PostSchedule() {
21
22
  anchor: popoverAnchor,
22
23
  placement: 'bottom-end'
23
24
  }), [popoverAnchor]);
24
- return (0, _element.createElement)(_editor.PostScheduleCheck, null, (0, _element.createElement)(_components.PanelRow, {
25
+ return (0, _react.createElement)(_editor.PostScheduleCheck, null, (0, _react.createElement)(_components.PanelRow, {
25
26
  className: "edit-post-post-schedule",
26
27
  ref: setPopoverAnchor
27
- }, (0, _element.createElement)("span", null, (0, _i18n.__)('Publish')), (0, _element.createElement)(_components.Dropdown, {
28
+ }, (0, _react.createElement)("span", null, (0, _i18n.__)('Publish')), (0, _react.createElement)(_components.Dropdown, {
28
29
  popoverProps: popoverProps,
29
30
  contentClassName: "edit-post-post-schedule__dialog",
30
31
  focusOnMount: true,
31
32
  renderToggle: ({
32
33
  isOpen,
33
34
  onToggle
34
- }) => (0, _element.createElement)(PostScheduleToggle, {
35
+ }) => (0, _react.createElement)(PostScheduleToggle, {
35
36
  isOpen: isOpen,
36
37
  onClick: onToggle
37
38
  }),
38
39
  renderContent: ({
39
40
  onClose
40
- }) => (0, _element.createElement)(_editor.PostSchedule, {
41
+ }) => (0, _react.createElement)(_editor.PostSchedule, {
41
42
  onClose: onClose
42
43
  })
43
44
  })));
@@ -50,7 +51,7 @@ function PostScheduleToggle({
50
51
  const fullLabel = (0, _editor.usePostScheduleLabel)({
51
52
  full: true
52
53
  });
53
- return (0, _element.createElement)(_components.Button, {
54
+ return (0, _react.createElement)(_components.Button, {
54
55
  className: "edit-post-post-schedule__toggle",
55
56
  variant: "tertiary",
56
57
  label: fullLabel,
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_i18n","_components","_editor","PostSchedule","popoverAnchor","setPopoverAnchor","useState","popoverProps","useMemo","anchor","placement","createElement","PostScheduleCheck","PanelRow","className","ref","__","Dropdown","contentClassName","focusOnMount","renderToggle","isOpen","onToggle","PostScheduleToggle","onClick","renderContent","onClose","label","usePostScheduleLabel","fullLabel","full","Button","variant","showTooltip","sprintf"],"sources":["@wordpress/edit-post/src/components/sidebar/post-schedule/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { PanelRow, Dropdown, Button } from '@wordpress/components';\nimport { useState, useMemo } from '@wordpress/element';\nimport {\n\tPostSchedule as PostScheduleForm,\n\tPostScheduleCheck,\n\tusePostScheduleLabel,\n} from '@wordpress/editor';\n\nexport default function PostSchedule() {\n\t// Use internal state instead of a ref to make sure that the component\n\t// re-renders when the popover's anchor updates.\n\tconst [ popoverAnchor, setPopoverAnchor ] = useState( null );\n\t// Memoize popoverProps to avoid returning a new object every time.\n\tconst popoverProps = useMemo(\n\t\t() => ( { anchor: popoverAnchor, placement: 'bottom-end' } ),\n\t\t[ popoverAnchor ]\n\t);\n\n\treturn (\n\t\t<PostScheduleCheck>\n\t\t\t<PanelRow\n\t\t\t\tclassName=\"edit-post-post-schedule\"\n\t\t\t\tref={ setPopoverAnchor }\n\t\t\t>\n\t\t\t\t<span>{ __( 'Publish' ) }</span>\n\t\t\t\t<Dropdown\n\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\tcontentClassName=\"edit-post-post-schedule__dialog\"\n\t\t\t\t\tfocusOnMount\n\t\t\t\t\trenderToggle={ ( { isOpen, onToggle } ) => (\n\t\t\t\t\t\t<PostScheduleToggle\n\t\t\t\t\t\t\tisOpen={ isOpen }\n\t\t\t\t\t\t\tonClick={ onToggle }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\trenderContent={ ( { onClose } ) => (\n\t\t\t\t\t\t<PostScheduleForm onClose={ onClose } />\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</PanelRow>\n\t\t</PostScheduleCheck>\n\t);\n}\n\nfunction PostScheduleToggle( { isOpen, onClick } ) {\n\tconst label = usePostScheduleLabel();\n\tconst fullLabel = usePostScheduleLabel( { full: true } );\n\treturn (\n\t\t<Button\n\t\t\tclassName=\"edit-post-post-schedule__toggle\"\n\t\t\tvariant=\"tertiary\"\n\t\t\tlabel={ fullLabel }\n\t\t\tshowTooltip\n\t\t\taria-expanded={ isOpen }\n\t\t\t// translators: %s: Current post date.\n\t\t\taria-label={ sprintf( __( 'Change date: %s' ), label ) }\n\t\t\tonClick={ onClick }\n\t\t>\n\t\t\t{ label }\n\t\t</Button>\n\t);\n}\n"],"mappings":";;;;;;AAKA,IAAAA,QAAA,GAAAC,OAAA;AAFA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AANA;AACA;AACA;;AAUe,SAASI,YAAYA,CAAA,EAAG;EACtC;EACA;EACA,MAAM,CAAEC,aAAa,EAAEC,gBAAgB,CAAE,GAAG,IAAAC,iBAAQ,EAAE,IAAK,CAAC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GE,SAAW;IACnBI,WAAW;IACX,iBAAgBZ;IAChB;IAAA;IACA,cAAa,IAAAa,aAAO,EAAE,IAAAlB,QAAE,EAAE,iBAAkB,CAAC,EAAEW,KAAM,CAAG;IACxDH,OAAO,EAAGA;EAAS,GAEjBG,KACK,CAAC;AAEX"}
1
+ {"version":3,"names":["_i18n","require","_components","_element","_editor","PostSchedule","popoverAnchor","setPopoverAnchor","useState","popoverProps","useMemo","anchor","placement","_react","createElement","PostScheduleCheck","PanelRow","className","ref","__","Dropdown","contentClassName","focusOnMount","renderToggle","isOpen","onToggle","PostScheduleToggle","onClick","renderContent","onClose","label","usePostScheduleLabel","fullLabel","full","Button","variant","showTooltip","sprintf"],"sources":["@wordpress/edit-post/src/components/sidebar/post-schedule/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { PanelRow, Dropdown, Button } from '@wordpress/components';\nimport { useState, useMemo } from '@wordpress/element';\nimport {\n\tPostSchedule as PostScheduleForm,\n\tPostScheduleCheck,\n\tusePostScheduleLabel,\n} from '@wordpress/editor';\n\nexport default function PostSchedule() {\n\t// Use internal state instead of a ref to make sure that the component\n\t// re-renders when the popover's anchor updates.\n\tconst [ popoverAnchor, setPopoverAnchor ] = useState( null );\n\t// Memoize popoverProps to avoid returning a new object every time.\n\tconst popoverProps = useMemo(\n\t\t() => ( { anchor: popoverAnchor, placement: 'bottom-end' } ),\n\t\t[ popoverAnchor ]\n\t);\n\n\treturn (\n\t\t<PostScheduleCheck>\n\t\t\t<PanelRow\n\t\t\t\tclassName=\"edit-post-post-schedule\"\n\t\t\t\tref={ setPopoverAnchor }\n\t\t\t>\n\t\t\t\t<span>{ __( 'Publish' ) }</span>\n\t\t\t\t<Dropdown\n\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\tcontentClassName=\"edit-post-post-schedule__dialog\"\n\t\t\t\t\tfocusOnMount\n\t\t\t\t\trenderToggle={ ( { isOpen, onToggle } ) => (\n\t\t\t\t\t\t<PostScheduleToggle\n\t\t\t\t\t\t\tisOpen={ isOpen }\n\t\t\t\t\t\t\tonClick={ onToggle }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\trenderContent={ ( { onClose } ) => (\n\t\t\t\t\t\t<PostScheduleForm onClose={ onClose } />\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</PanelRow>\n\t\t</PostScheduleCheck>\n\t);\n}\n\nfunction PostScheduleToggle( { isOpen, onClick } ) {\n\tconst label = usePostScheduleLabel();\n\tconst fullLabel = usePostScheduleLabel( { full: true } );\n\treturn (\n\t\t<Button\n\t\t\tclassName=\"edit-post-post-schedule__toggle\"\n\t\t\tvariant=\"tertiary\"\n\t\t\tlabel={ fullLabel }\n\t\t\tshowTooltip\n\t\t\taria-expanded={ isOpen }\n\t\t\t// translators: %s: Current post date.\n\t\t\taria-label={ sprintf( __( 'Change date: %s' ), label ) }\n\t\t\tonClick={ onClick }\n\t\t>\n\t\t\t{ label }\n\t\t</Button>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AANA;AACA;AACA;;AAUe,SAASI,YAAYA,CAAA,EAAG;EACtC;EACA;EACA,MAAM,CAAEC,aAAa,EAAEC,gBAAgB,CAAE,GAAG,IAAAC,iBAAQ,EAAE,IAAK,CAAC;EAC5D;EACA,MAAMC,YAAY,GAAG,IAAAC,gBAAO,EAC3B,OAAQ;IAAEC,MAAM,EAAEL,aAAa;IAAEM,SAAS,EAAE;EAAa,CAAC,CAAE,EAC5D,CAAEN,aAAa,CAChB,CAAC;EAED,OACC,IAAAO,MAAA,CAAAC,aAAA,EAACV,OAAA,CAAAW,iBAAiB,QACjB,IAAAF,MAAA,CAAAC,aAAA,EAACZ,WAAA,CAAAc,QAAQ;IACRC,SAAS,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require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _components = require("@wordpress/components");
10
10
  var _editor = require("@wordpress/editor");
11
11
  /**
@@ -13,9 +13,9 @@ var _editor = require("@wordpress/editor");
13
13
  */
14
14
 
15
15
  function PostSlug() {
16
- return (0, _element.createElement)(_editor.PostSlugCheck, null, (0, _element.createElement)(_components.PanelRow, {
16
+ return (0, _react.createElement)(_editor.PostSlugCheck, null, (0, _react.createElement)(_components.PanelRow, {
17
17
  className: "edit-post-post-slug"
18
- }, (0, _element.createElement)(_editor.PostSlug, null)));
18
+ }, (0, _react.createElement)(_editor.PostSlug, null)));
19
19
  }
20
20
  var _default = PostSlug;
21
21
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_editor","PostSlug","_element","createElement","PostSlugCheck","PanelRow","className","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-slug/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostSlug as PostSlugForm, PostSlugCheck } from '@wordpress/editor';\n\nexport function PostSlug() {\n\treturn (\n\t\t<PostSlugCheck>\n\t\t\t<PanelRow className=\"edit-post-post-slug\">\n\t\t\t\t<PostSlugForm />\n\t\t\t</PanelRow>\n\t\t</PostSlugCheck>\n\t);\n}\n\nexport default PostSlug;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIO,SAASE,QAAQA,CAAA,EAAG;EAC1B,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,aAAa,QACb,IAAAF,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ;IAACC,SAAS,EAAC;EAAqB,GACxC,IAAAJ,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,QAAY,MAAE,CACN,CACI,CAAC;AAElB;AAAC,IAAAM,QAAA,GAEcN,QAAQ;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_editor","PostSlug","_react","createElement","PostSlugCheck","PanelRow","className","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-slug/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostSlug as PostSlugForm, PostSlugCheck } from '@wordpress/editor';\n\nexport function PostSlug() {\n\treturn (\n\t\t<PostSlugCheck>\n\t\t\t<PanelRow className=\"edit-post-post-slug\">\n\t\t\t\t<PostSlugForm />\n\t\t\t</PanelRow>\n\t\t</PostSlugCheck>\n\t);\n}\n\nexport default PostSlug;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIO,SAASE,QAAQA,CAAA,EAAG;EAC1B,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,aAAa,QACb,IAAAF,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ;IAACC,SAAS,EAAC;EAAqB,GACxC,IAAAJ,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,QAAY,MAAE,CACN,CACI,CAAC;AAElB;AAAC,IAAAM,QAAA,GAEcN,QAAQ;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,12 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
8
- var _element = require("@wordpress/element");
7
+ exports.default = PostStatus;
8
+ var _react = require("react");
9
9
  var _i18n = require("@wordpress/i18n");
10
10
  var _components = require("@wordpress/components");
11
11
  var _data = require("@wordpress/data");
12
- var _compose = require("@wordpress/compose");
13
12
  var _editor = require("@wordpress/editor");
14
13
  var _postVisibility = _interopRequireDefault(require("../post-visibility"));
15
14
  var _postTrash = _interopRequireDefault(require("../post-trash"));
@@ -35,40 +34,39 @@ var _postUrl = _interopRequireDefault(require("../post-url"));
35
34
  * Module Constants
36
35
  */
37
36
  const PANEL_NAME = 'post-status';
38
- function PostStatus({
39
- isOpened,
40
- onTogglePanel
41
- }) {
42
- return (0, _element.createElement)(_components.PanelBody, {
37
+ function PostStatus() {
38
+ const {
39
+ isOpened,
40
+ isRemoved
41
+ } = (0, _data.useSelect)(select => {
42
+ // We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
43
+ // not use isEditorPanelEnabled since this panel should not be disabled through the UI.
44
+ const {
45
+ isEditorPanelRemoved,
46
+ isEditorPanelOpened
47
+ } = select(_store.store);
48
+ return {
49
+ isRemoved: isEditorPanelRemoved(PANEL_NAME),
50
+ isOpened: isEditorPanelOpened(PANEL_NAME)
51
+ };
52
+ }, []);
53
+ const {
54
+ toggleEditorPanelOpened
55
+ } = (0, _data.useDispatch)(_store.store);
56
+ if (isRemoved) {
57
+ return null;
58
+ }
59
+ return (0, _react.createElement)(_components.PanelBody, {
43
60
  className: "edit-post-post-status",
44
61
  title: (0, _i18n.__)('Summary'),
45
62
  opened: isOpened,
46
- onToggle: onTogglePanel
47
- }, (0, _element.createElement)(_pluginPostStatusInfo.default.Slot, null, fills => (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_postVisibility.default, null), (0, _element.createElement)(_postSchedule.default, null), (0, _element.createElement)(_postTemplate.default, null), (0, _element.createElement)(_postUrl.default, null), (0, _element.createElement)(_postSticky.default, null), (0, _element.createElement)(_postPendingStatus.default, null), (0, _element.createElement)(_postFormat.default, null), (0, _element.createElement)(_postSlug.default, null), (0, _element.createElement)(_postAuthor.default, null), (0, _element.createElement)(_editor.PostSyncStatus, null), fills, (0, _element.createElement)(_components.__experimentalHStack, {
63
+ onToggle: () => toggleEditorPanelOpened(PANEL_NAME)
64
+ }, (0, _react.createElement)(_pluginPostStatusInfo.default.Slot, null, fills => (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_postVisibility.default, null), (0, _react.createElement)(_postSchedule.default, null), (0, _react.createElement)(_postTemplate.default, null), (0, _react.createElement)(_postUrl.default, null), (0, _react.createElement)(_postSticky.default, null), (0, _react.createElement)(_postPendingStatus.default, null), (0, _react.createElement)(_postFormat.default, null), (0, _react.createElement)(_postSlug.default, null), (0, _react.createElement)(_postAuthor.default, null), (0, _react.createElement)(_editor.PostSyncStatus, null), fills, (0, _react.createElement)(_components.__experimentalHStack, {
48
65
  style: {
49
66
  marginTop: '16px'
50
67
  },
51
68
  spacing: 4,
52
69
  wrap: true
53
- }, (0, _element.createElement)(_editor.PostSwitchToDraftButton, null), (0, _element.createElement)(_postTrash.default, null)))));
70
+ }, (0, _react.createElement)(_editor.PostSwitchToDraftButton, null), (0, _react.createElement)(_postTrash.default, null)))));
54
71
  }
55
- var _default = (0, _compose.compose)([(0, _data.withSelect)(select => {
56
- // We use isEditorPanelRemoved to hide the panel if it was programatically removed. We do
57
- // not use isEditorPanelEnabled since this panel should not be disabled through the UI.
58
- const {
59
- isEditorPanelRemoved,
60
- isEditorPanelOpened
61
- } = select(_store.store);
62
- return {
63
- isRemoved: isEditorPanelRemoved(PANEL_NAME),
64
- isOpened: isEditorPanelOpened(PANEL_NAME)
65
- };
66
- }), (0, _compose.ifCondition)(({
67
- isRemoved
68
- }) => !isRemoved), (0, _data.withDispatch)(dispatch => ({
69
- onTogglePanel() {
70
- return dispatch(_store.store).toggleEditorPanelOpened(PANEL_NAME);
71
- }
72
- }))])(PostStatus);
73
- exports.default = _default;
74
72
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_data","_compose","_editor","_postVisibility","_interopRequireDefault","_postTrash","_postSchedule","_postSticky","_postAuthor","_postSlug","_postFormat","_postPendingStatus","_pluginPostStatusInfo","_store","_postTemplate","_postUrl","PANEL_NAME","PostStatus","isOpened","onTogglePanel","_element","createElement","PanelBody","className","title","__","opened","onToggle","default","Slot","fills","Fragment","PostSyncStatus","__experimentalHStack","style","marginTop","spacing","wrap","PostSwitchToDraftButton","_default","compose","withSelect","select","isEditorPanelRemoved","isEditorPanelOpened","editPostStore","isRemoved","ifCondition","withDispatch","dispatch","toggleEditorPanelOpened","exports"],"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":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAIA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAKA,IAAAK,eAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,UAAA,GAAAD,sBAAA,CAAAN,OAAA;AACA,IAAAQ,aAAA,GAAAF,sBAAA,CAAAN,OAAA;AACA,IAAAS,WAAA,GAAAH,sBAAA,CAAAN,OAAA;AACA,I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AAC,CAAEC,UAAW,CAAC;AAAAkC,OAAA,CAAAvB,OAAA,GAAAW,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_data","_editor","_postVisibility","_interopRequireDefault","_postTrash","_postSchedule","_postSticky","_postAuthor","_postSlug","_postFormat","_postPendingStatus","_pluginPostStatusInfo","_store","_postTemplate","_postUrl","PANEL_NAME","PostStatus","isOpened","isRemoved","useSelect","select","isEditorPanelRemoved","isEditorPanelOpened","editPostStore","toggleEditorPanelOpened","useDispatch","_react","createElement","PanelBody","className","title","__","opened","onToggle","default","Slot","fills","Fragment","PostSyncStatus","__experimentalHStack","style","marginTop","spacing","wrap","PostSwitchToDraftButton"],"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":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAIA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAKA,IAAAI,eAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,UAAA,GAAAD,sB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}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.PostSticky = PostSticky;
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _components = require("@wordpress/components");
10
10
  var _editor = require("@wordpress/editor");
11
11
  /**
@@ -13,7 +13,7 @@ var _editor = require("@wordpress/editor");
13
13
  */
14
14
 
15
15
  function PostSticky() {
16
- return (0, _element.createElement)(_editor.PostStickyCheck, null, (0, _element.createElement)(_components.PanelRow, null, (0, _element.createElement)(_editor.PostSticky, null)));
16
+ return (0, _react.createElement)(_editor.PostStickyCheck, null, (0, _react.createElement)(_components.PanelRow, null, (0, _react.createElement)(_editor.PostSticky, null)));
17
17
  }
18
18
  var _default = PostSticky;
19
19
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_editor","PostSticky","_element","createElement","PostStickyCheck","PanelRow","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-sticky/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostSticky as PostStickyForm,\n\tPostStickyCheck,\n} from '@wordpress/editor';\n\nexport function PostSticky() {\n\treturn (\n\t\t<PostStickyCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostStickyForm />\n\t\t\t</PanelRow>\n\t\t</PostStickyCheck>\n\t);\n}\n\nexport default PostSticky;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,UAAUA,CAAA,EAAG;EAC5B,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,eAAe,QACf,IAAAF,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ,QACR,IAAAH,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,UAAc,MAAE,CACR,CACM,CAAC;AAEpB;AAAC,IAAAK,QAAA,GAEcL,UAAU;AAAAM,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_editor","PostSticky","_react","createElement","PostStickyCheck","PanelRow","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/post-sticky/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport {\n\tPostSticky as PostStickyForm,\n\tPostStickyCheck,\n} from '@wordpress/editor';\n\nexport function PostSticky() {\n\treturn (\n\t\t<PostStickyCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostStickyForm />\n\t\t\t</PanelRow>\n\t\t</PostStickyCheck>\n\t);\n}\n\nexport default PostSticky;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAOO,SAASE,UAAUA,CAAA,EAAG;EAC5B,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,eAAe,QACf,IAAAF,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,QAAQ,QACR,IAAAH,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAC,UAAc,MAAE,CACR,CACM,CAAC;AAEpB;AAAC,IAAAK,QAAA,GAEcL,UAAU;AAAAM,OAAA,CAAAC,OAAA,GAAAF,QAAA"}