@wordpress/edit-post 7.19.6 → 7.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +22 -22
  3. package/build/components/block-manager/category.js +5 -4
  4. package/build/components/block-manager/category.js.map +1 -1
  5. package/build/components/block-manager/checklist.js +5 -5
  6. package/build/components/block-manager/checklist.js.map +1 -1
  7. package/build/components/block-manager/index.js +10 -9
  8. package/build/components/block-manager/index.js.map +1 -1
  9. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +5 -5
  10. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  11. package/build/components/device-preview/index.js +5 -5
  12. package/build/components/device-preview/index.js.map +1 -1
  13. package/build/components/header/document-actions/index.js +9 -9
  14. package/build/components/header/document-actions/index.js.map +1 -1
  15. package/build/components/header/fullscreen-mode-close/index.js +6 -6
  16. package/build/components/header/fullscreen-mode-close/index.js.map +1 -1
  17. package/build/components/header/header-toolbar/index.js +9 -8
  18. package/build/components/header/header-toolbar/index.js.map +1 -1
  19. package/build/components/header/header-toolbar/index.native.js +12 -11
  20. package/build/components/header/header-toolbar/index.native.js.map +1 -1
  21. package/build/components/header/index.js +14 -14
  22. package/build/components/header/index.js.map +1 -1
  23. package/build/components/header/index.native.js +3 -2
  24. package/build/components/header/index.native.js.map +1 -1
  25. package/build/components/header/main-dashboard-button/index.js +2 -2
  26. package/build/components/header/main-dashboard-button/index.js.map +1 -1
  27. package/build/components/header/mode-switcher/index.js +3 -3
  28. package/build/components/header/mode-switcher/index.js.map +1 -1
  29. package/build/components/header/more-menu/index.js +6 -6
  30. package/build/components/header/more-menu/index.js.map +1 -1
  31. package/build/components/header/plugin-more-menu-item/index.js +3 -3
  32. package/build/components/header/plugin-more-menu-item/index.js.map +1 -1
  33. package/build/components/header/plugin-sidebar-more-menu-item/index.js +5 -5
  34. package/build/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
  35. package/build/components/header/post-publish-button-or-toggle.js +2 -2
  36. package/build/components/header/post-publish-button-or-toggle.js.map +1 -1
  37. package/build/components/header/preferences-menu-item/index.js +2 -2
  38. package/build/components/header/preferences-menu-item/index.js.map +1 -1
  39. package/build/components/header/tools-more-menu-group/index.js +3 -3
  40. package/build/components/header/tools-more-menu-group/index.js.map +1 -1
  41. package/build/components/header/writing-menu/index.js +6 -6
  42. package/build/components/header/writing-menu/index.js.map +1 -1
  43. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
  44. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  45. package/build/components/keyboard-shortcut-help-modal/index.js +15 -15
  46. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  47. package/build/components/keyboard-shortcut-help-modal/shortcut.js +8 -7
  48. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  49. package/build/components/layout/actions-panel.js +9 -8
  50. package/build/components/layout/actions-panel.js.map +1 -1
  51. package/build/components/layout/index.js +22 -21
  52. package/build/components/layout/index.js.map +1 -1
  53. package/build/components/layout/index.native.js +10 -9
  54. package/build/components/layout/index.native.js.map +1 -1
  55. package/build/components/meta-boxes/index.js +5 -4
  56. package/build/components/meta-boxes/index.js.map +1 -1
  57. package/build/components/meta-boxes/meta-boxes-area/index.js +6 -5
  58. package/build/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  59. package/build/components/preferences-modal/index.js +27 -26
  60. package/build/components/preferences-modal/index.js.map +1 -1
  61. package/build/components/preferences-modal/meta-boxes-section.js +4 -4
  62. package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
  63. package/build/components/preferences-modal/options/enable-custom-fields.js +5 -4
  64. package/build/components/preferences-modal/options/enable-custom-fields.js.map +1 -1
  65. package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js +2 -2
  66. package/build/components/preferences-modal/options/enable-plugin-document-setting-panel.js.map +1 -1
  67. package/build/components/secondary-sidebar/inserter-sidebar.js +7 -6
  68. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  69. package/build/components/secondary-sidebar/list-view-outline.js +18 -18
  70. package/build/components/secondary-sidebar/list-view-outline.js.map +1 -1
  71. package/build/components/secondary-sidebar/list-view-sidebar.js +9 -8
  72. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  73. package/build/components/sidebar/discussion-panel/index.js +6 -6
  74. package/build/components/sidebar/discussion-panel/index.js.map +1 -1
  75. package/build/components/sidebar/featured-image/index.js +3 -3
  76. package/build/components/sidebar/featured-image/index.js.map +1 -1
  77. package/build/components/sidebar/last-revision/index.js +3 -3
  78. package/build/components/sidebar/last-revision/index.js.map +1 -1
  79. package/build/components/sidebar/page-attributes/index.js +3 -3
  80. package/build/components/sidebar/page-attributes/index.js.map +1 -1
  81. package/build/components/sidebar/plugin-document-setting-panel/index.js +6 -6
  82. package/build/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
  83. package/build/components/sidebar/plugin-post-publish-panel/index.js +5 -5
  84. package/build/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
  85. package/build/components/sidebar/plugin-post-status-info/index.js +7 -7
  86. package/build/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  87. package/build/components/sidebar/plugin-pre-publish-panel/index.js +5 -5
  88. package/build/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
  89. package/build/components/sidebar/plugin-sidebar/index.js +4 -4
  90. package/build/components/sidebar/plugin-sidebar/index.js.map +1 -1
  91. package/build/components/sidebar/post-author/index.js +3 -3
  92. package/build/components/sidebar/post-author/index.js.map +1 -1
  93. package/build/components/sidebar/post-excerpt/index.js +3 -3
  94. package/build/components/sidebar/post-excerpt/index.js.map +1 -1
  95. package/build/components/sidebar/post-format/index.js +3 -3
  96. package/build/components/sidebar/post-format/index.js.map +1 -1
  97. package/build/components/sidebar/post-pending-status/index.js +2 -2
  98. package/build/components/sidebar/post-pending-status/index.js.map +1 -1
  99. package/build/components/sidebar/post-schedule/index.js +7 -6
  100. package/build/components/sidebar/post-schedule/index.js.map +1 -1
  101. package/build/components/sidebar/post-slug/index.js +3 -3
  102. package/build/components/sidebar/post-slug/index.js.map +1 -1
  103. package/build/components/sidebar/post-status/index.js +28 -30
  104. package/build/components/sidebar/post-status/index.js.map +1 -1
  105. package/build/components/sidebar/post-sticky/index.js +2 -2
  106. package/build/components/sidebar/post-sticky/index.js.map +1 -1
  107. package/build/components/sidebar/post-taxonomies/index.js +3 -3
  108. package/build/components/sidebar/post-taxonomies/index.js.map +1 -1
  109. package/build/components/sidebar/post-taxonomies/taxonomy-panel.js +2 -2
  110. package/build/components/sidebar/post-taxonomies/taxonomy-panel.js.map +1 -1
  111. package/build/components/sidebar/post-template/create-modal.js +9 -8
  112. package/build/components/sidebar/post-template/create-modal.js.map +1 -1
  113. package/build/components/sidebar/post-template/form.js +7 -6
  114. package/build/components/sidebar/post-template/form.js.map +1 -1
  115. package/build/components/sidebar/post-template/index.js +6 -5
  116. package/build/components/sidebar/post-template/index.js.map +1 -1
  117. package/build/components/sidebar/post-trash/index.js +2 -2
  118. package/build/components/sidebar/post-trash/index.js.map +1 -1
  119. package/build/components/sidebar/post-url/index.js +6 -5
  120. package/build/components/sidebar/post-url/index.js.map +1 -1
  121. package/build/components/sidebar/post-visibility/index.js +8 -7
  122. package/build/components/sidebar/post-visibility/index.js.map +1 -1
  123. package/build/components/sidebar/settings-header/index.js +4 -4
  124. package/build/components/sidebar/settings-header/index.js.map +1 -1
  125. package/build/components/sidebar/settings-sidebar/index.js +6 -5
  126. package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
  127. package/build/components/sidebar/template-summary/index.js +5 -5
  128. package/build/components/sidebar/template-summary/index.js.map +1 -1
  129. package/build/components/start-page-options/index.js +7 -6
  130. package/build/components/start-page-options/index.js.map +1 -1
  131. package/build/components/text-editor/index.js +6 -6
  132. package/build/components/text-editor/index.js.map +1 -1
  133. package/build/components/view-link/index.js +2 -2
  134. package/build/components/view-link/index.js.map +1 -1
  135. package/build/components/visual-editor/block-inspector-button.js +2 -2
  136. package/build/components/visual-editor/block-inspector-button.js.map +1 -1
  137. package/build/components/visual-editor/header.native.js +4 -3
  138. package/build/components/visual-editor/header.native.js.map +1 -1
  139. package/build/components/visual-editor/index.js +14 -13
  140. package/build/components/visual-editor/index.js.map +1 -1
  141. package/build/components/visual-editor/index.native.js +3 -2
  142. package/build/components/visual-editor/index.native.js.map +1 -1
  143. package/build/components/welcome-guide/default.js +17 -16
  144. package/build/components/welcome-guide/default.js.map +1 -1
  145. package/build/components/welcome-guide/image.js +4 -4
  146. package/build/components/welcome-guide/image.js.map +1 -1
  147. package/build/components/welcome-guide/index.js +2 -2
  148. package/build/components/welcome-guide/index.js.map +1 -1
  149. package/build/components/welcome-guide/template.js +5 -5
  150. package/build/components/welcome-guide/template.js.map +1 -1
  151. package/build/editor.js +5 -4
  152. package/build/editor.js.map +1 -1
  153. package/build/editor.native.js +5 -4
  154. package/build/editor.native.js.map +1 -1
  155. package/build/hooks/validate-multiple-use/index.js +11 -11
  156. package/build/hooks/validate-multiple-use/index.js.map +1 -1
  157. package/build/index.js +3 -2
  158. package/build/index.js.map +1 -1
  159. package/build/index.native.js +2 -2
  160. package/build/index.native.js.map +1 -1
  161. package/build/lock-unlock.js +1 -1
  162. package/build/lock-unlock.js.map +1 -1
  163. package/build/plugins/copy-content-menu-item/index.js +2 -2
  164. package/build/plugins/copy-content-menu-item/index.js.map +1 -1
  165. package/build/plugins/index.js +6 -6
  166. package/build/plugins/index.js.map +1 -1
  167. package/build/plugins/keyboard-shortcuts-help-menu-item/index.js +2 -2
  168. package/build/plugins/keyboard-shortcuts-help-menu-item/index.js.map +1 -1
  169. package/build/plugins/welcome-guide-menu-item/index.js +2 -2
  170. package/build/plugins/welcome-guide-menu-item/index.js.map +1 -1
  171. package/build-module/components/block-manager/category.js +1 -1
  172. package/build-module/components/block-manager/checklist.js +1 -1
  173. package/build-module/components/block-manager/index.js +1 -1
  174. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +3 -3
  175. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  176. package/build-module/components/device-preview/index.js +1 -1
  177. package/build-module/components/header/document-actions/index.js +1 -1
  178. package/build-module/components/header/fullscreen-mode-close/index.js +1 -1
  179. package/build-module/components/header/header-toolbar/index.js +1 -1
  180. package/build-module/components/header/header-toolbar/index.native.js +1 -1
  181. package/build-module/components/header/index.js +1 -1
  182. package/build-module/components/header/index.native.js +1 -1
  183. package/build-module/components/header/main-dashboard-button/index.js +1 -1
  184. package/build-module/components/header/mode-switcher/index.js +1 -1
  185. package/build-module/components/header/more-menu/index.js +1 -1
  186. package/build-module/components/header/plugin-more-menu-item/index.js +3 -3
  187. package/build-module/components/header/plugin-more-menu-item/index.js.map +1 -1
  188. package/build-module/components/header/plugin-sidebar-more-menu-item/index.js +4 -4
  189. package/build-module/components/header/plugin-sidebar-more-menu-item/index.js.map +1 -1
  190. package/build-module/components/header/post-publish-button-or-toggle.js +1 -1
  191. package/build-module/components/header/preferences-menu-item/index.js +1 -1
  192. package/build-module/components/header/tools-more-menu-group/index.js +1 -1
  193. package/build-module/components/header/writing-menu/index.js +1 -1
  194. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  195. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -1
  196. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -1
  197. package/build-module/components/layout/actions-panel.js +1 -1
  198. package/build-module/components/layout/index.js +1 -1
  199. package/build-module/components/layout/index.native.js +1 -1
  200. package/build-module/components/meta-boxes/index.js +1 -1
  201. package/build-module/components/meta-boxes/meta-boxes-area/index.js +2 -2
  202. package/build-module/components/meta-boxes/meta-boxes-area/index.js.map +1 -1
  203. package/build-module/components/preferences-modal/index.js +1 -1
  204. package/build-module/components/preferences-modal/meta-boxes-section.js +1 -1
  205. package/build-module/components/preferences-modal/options/enable-custom-fields.js +1 -1
  206. package/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js +1 -1
  207. package/build-module/components/secondary-sidebar/inserter-sidebar.js +1 -1
  208. package/build-module/components/secondary-sidebar/list-view-outline.js +1 -1
  209. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -1
  210. package/build-module/components/sidebar/discussion-panel/index.js +1 -1
  211. package/build-module/components/sidebar/featured-image/index.js +1 -1
  212. package/build-module/components/sidebar/last-revision/index.js +1 -1
  213. package/build-module/components/sidebar/page-attributes/index.js +1 -1
  214. package/build-module/components/sidebar/plugin-document-setting-panel/index.js +4 -4
  215. package/build-module/components/sidebar/plugin-document-setting-panel/index.js.map +1 -1
  216. package/build-module/components/sidebar/plugin-post-publish-panel/index.js +4 -4
  217. package/build-module/components/sidebar/plugin-post-publish-panel/index.js.map +1 -1
  218. package/build-module/components/sidebar/plugin-post-status-info/index.js +6 -6
  219. package/build-module/components/sidebar/plugin-post-status-info/index.js.map +1 -1
  220. package/build-module/components/sidebar/plugin-pre-publish-panel/index.js +4 -4
  221. package/build-module/components/sidebar/plugin-pre-publish-panel/index.js.map +1 -1
  222. package/build-module/components/sidebar/plugin-sidebar/index.js +3 -3
  223. package/build-module/components/sidebar/plugin-sidebar/index.js.map +1 -1
  224. package/build-module/components/sidebar/post-author/index.js +1 -1
  225. package/build-module/components/sidebar/post-excerpt/index.js +1 -1
  226. package/build-module/components/sidebar/post-format/index.js +1 -1
  227. package/build-module/components/sidebar/post-pending-status/index.js +1 -1
  228. package/build-module/components/sidebar/post-schedule/index.js +1 -1
  229. package/build-module/components/sidebar/post-slug/index.js +1 -1
  230. package/build-module/components/sidebar/post-status/index.js +25 -26
  231. package/build-module/components/sidebar/post-status/index.js.map +1 -1
  232. package/build-module/components/sidebar/post-sticky/index.js +1 -1
  233. package/build-module/components/sidebar/post-taxonomies/index.js +1 -1
  234. package/build-module/components/sidebar/post-taxonomies/taxonomy-panel.js +1 -1
  235. package/build-module/components/sidebar/post-template/create-modal.js +1 -1
  236. package/build-module/components/sidebar/post-template/form.js +1 -1
  237. package/build-module/components/sidebar/post-template/index.js +1 -1
  238. package/build-module/components/sidebar/post-trash/index.js +1 -1
  239. package/build-module/components/sidebar/post-url/index.js +1 -1
  240. package/build-module/components/sidebar/post-visibility/index.js +1 -1
  241. package/build-module/components/sidebar/settings-header/index.js +1 -1
  242. package/build-module/components/sidebar/settings-sidebar/index.js +1 -1
  243. package/build-module/components/sidebar/template-summary/index.js +1 -1
  244. package/build-module/components/start-page-options/index.js +1 -1
  245. package/build-module/components/text-editor/index.js +1 -1
  246. package/build-module/components/view-link/index.js +1 -1
  247. package/build-module/components/visual-editor/block-inspector-button.js +1 -1
  248. package/build-module/components/visual-editor/header.native.js +1 -1
  249. package/build-module/components/visual-editor/index.js +1 -1
  250. package/build-module/components/visual-editor/index.native.js +1 -1
  251. package/build-module/components/welcome-guide/default.js +1 -1
  252. package/build-module/components/welcome-guide/image.js +1 -1
  253. package/build-module/components/welcome-guide/index.js +1 -1
  254. package/build-module/components/welcome-guide/template.js +1 -1
  255. package/build-module/editor.js +1 -1
  256. package/build-module/editor.native.js +1 -1
  257. package/build-module/hooks/validate-multiple-use/index.js +3 -3
  258. package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
  259. package/build-module/index.js +1 -1
  260. package/build-module/index.native.js +1 -1
  261. package/build-module/lock-unlock.js +1 -1
  262. package/build-module/lock-unlock.js.map +1 -1
  263. package/build-module/plugins/copy-content-menu-item/index.js +1 -1
  264. package/build-module/plugins/index.js +1 -1
  265. package/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js +1 -1
  266. package/build-module/plugins/welcome-guide-menu-item/index.js +1 -1
  267. package/build-style/classic-rtl.css +1 -1
  268. package/build-style/classic.css +1 -1
  269. package/build-style/style-rtl.css +13 -17
  270. package/build-style/style.css +13 -17
  271. package/package.json +32 -32
  272. package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +2 -2
  273. package/src/components/header/plugin-more-menu-item/index.js +3 -3
  274. package/src/components/header/plugin-sidebar-more-menu-item/index.js +3 -3
  275. package/src/components/meta-boxes/meta-boxes-area/index.js +1 -1
  276. package/src/components/sidebar/plugin-document-setting-panel/index.js +3 -3
  277. package/src/components/sidebar/plugin-post-publish-panel/index.js +3 -3
  278. package/src/components/sidebar/plugin-post-status-info/index.js +5 -5
  279. package/src/components/sidebar/plugin-pre-publish-panel/index.js +3 -3
  280. package/src/components/sidebar/plugin-sidebar/index.js +2 -2
  281. package/src/components/sidebar/post-status/index.js +19 -25
  282. package/src/hooks/validate-multiple-use/index.js +2 -2
  283. package/src/lock-unlock.js +1 -1
  284. package/src/style.scss +0 -1
  285. package/src/components/sidebar/post-status/style.scss +0 -5
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = ListViewOutline;
7
- var _element = require("@wordpress/element");
7
+ var _react = require("react");
8
8
  var _data = require("@wordpress/data");
9
9
  var _editor = require("@wordpress/editor");
10
10
  var _blockEditor = require("@wordpress/block-editor");
@@ -15,79 +15,79 @@ var _i18n = require("@wordpress/i18n");
15
15
  */
16
16
 
17
17
  function EmptyOutlineIllustration() {
18
- return (0, _element.createElement)(_components.SVG, {
18
+ return (0, _react.createElement)(_components.SVG, {
19
19
  width: "138",
20
20
  height: "148",
21
21
  viewBox: "0 0 138 148",
22
22
  fill: "none",
23
23
  xmlns: "http://www.w3.org/2000/svg"
24
- }, (0, _element.createElement)(_components.Rect, {
24
+ }, (0, _react.createElement)(_components.Rect, {
25
25
  width: "138",
26
26
  height: "148",
27
27
  rx: "4",
28
28
  fill: "#F0F6FC"
29
- }), (0, _element.createElement)(_components.Line, {
29
+ }), (0, _react.createElement)(_components.Line, {
30
30
  x1: "44",
31
31
  y1: "28",
32
32
  x2: "24",
33
33
  y2: "28",
34
34
  stroke: "#DDDDDD"
35
- }), (0, _element.createElement)(_components.Rect, {
35
+ }), (0, _react.createElement)(_components.Rect, {
36
36
  x: "48",
37
37
  y: "16",
38
38
  width: "27",
39
39
  height: "23",
40
40
  rx: "4",
41
41
  fill: "#DDDDDD"
42
- }), (0, _element.createElement)(_components.Path, {
42
+ }), (0, _react.createElement)(_components.Path, {
43
43
  d: "M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",
44
44
  fill: "black"
45
- }), (0, _element.createElement)(_components.Line, {
45
+ }), (0, _react.createElement)(_components.Line, {
46
46
  x1: "55",
47
47
  y1: "59",
48
48
  x2: "24",
49
49
  y2: "59",
50
50
  stroke: "#DDDDDD"
51
- }), (0, _element.createElement)(_components.Rect, {
51
+ }), (0, _react.createElement)(_components.Rect, {
52
52
  x: "59",
53
53
  y: "47",
54
54
  width: "29",
55
55
  height: "23",
56
56
  rx: "4",
57
57
  fill: "#DDDDDD"
58
- }), (0, _element.createElement)(_components.Path, {
58
+ }), (0, _react.createElement)(_components.Path, {
59
59
  d: "M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",
60
60
  fill: "black"
61
- }), (0, _element.createElement)(_components.Line, {
61
+ }), (0, _react.createElement)(_components.Line, {
62
62
  x1: "80",
63
63
  y1: "90",
64
64
  x2: "24",
65
65
  y2: "90",
66
66
  stroke: "#DDDDDD"
67
- }), (0, _element.createElement)(_components.Rect, {
67
+ }), (0, _react.createElement)(_components.Rect, {
68
68
  x: "84",
69
69
  y: "78",
70
70
  width: "30",
71
71
  height: "23",
72
72
  rx: "4",
73
73
  fill: "#F0B849"
74
- }), (0, _element.createElement)(_components.Path, {
74
+ }), (0, _react.createElement)(_components.Path, {
75
75
  d: "M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",
76
76
  fill: "black"
77
- }), (0, _element.createElement)(_components.Line, {
77
+ }), (0, _react.createElement)(_components.Line, {
78
78
  x1: "66",
79
79
  y1: "121",
80
80
  x2: "24",
81
81
  y2: "121",
82
82
  stroke: "#DDDDDD"
83
- }), (0, _element.createElement)(_components.Rect, {
83
+ }), (0, _react.createElement)(_components.Rect, {
84
84
  x: "70",
85
85
  y: "109",
86
86
  width: "29",
87
87
  height: "23",
88
88
  rx: "4",
89
89
  fill: "#DDDDDD"
90
- }), (0, _element.createElement)(_components.Path, {
90
+ }), (0, _react.createElement)(_components.Path, {
91
91
  d: "M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",
92
92
  fill: "black"
93
93
  }));
@@ -103,10 +103,10 @@ function ListViewOutline() {
103
103
  headingCount: getGlobalBlockCount('core/heading')
104
104
  };
105
105
  }, []);
106
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)("div", {
106
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)("div", {
107
107
  className: "edit-post-editor__list-view-overview"
108
- }, (0, _element.createElement)("div", null, (0, _element.createElement)(_components.__experimentalText, null, (0, _i18n.__)('Characters:')), (0, _element.createElement)(_components.__experimentalText, null, (0, _element.createElement)(_editor.CharacterCount, null))), (0, _element.createElement)("div", null, (0, _element.createElement)(_components.__experimentalText, null, (0, _i18n.__)('Words:')), (0, _element.createElement)(_editor.WordCount, null)), (0, _element.createElement)("div", null, (0, _element.createElement)(_components.__experimentalText, null, (0, _i18n.__)('Time to read:')), (0, _element.createElement)(_editor.TimeToRead, null))), headingCount > 0 ? (0, _element.createElement)(_editor.DocumentOutline, null) : (0, _element.createElement)("div", {
108
+ }, (0, _react.createElement)("div", null, (0, _react.createElement)(_components.__experimentalText, null, (0, _i18n.__)('Characters:')), (0, _react.createElement)(_components.__experimentalText, null, (0, _react.createElement)(_editor.CharacterCount, null))), (0, _react.createElement)("div", null, (0, _react.createElement)(_components.__experimentalText, null, (0, _i18n.__)('Words:')), (0, _react.createElement)(_editor.WordCount, null)), (0, _react.createElement)("div", null, (0, _react.createElement)(_components.__experimentalText, null, (0, _i18n.__)('Time to read:')), (0, _react.createElement)(_editor.TimeToRead, null))), headingCount > 0 ? (0, _react.createElement)(_editor.DocumentOutline, null) : (0, _react.createElement)("div", {
109
109
  className: "edit-post-editor__list-view-empty-headings"
110
- }, (0, _element.createElement)(EmptyOutlineIllustration, null), (0, _element.createElement)("p", null, (0, _i18n.__)('Navigate the structure of your document and address issues like empty or incorrect heading levels.'))));
110
+ }, (0, _react.createElement)(EmptyOutlineIllustration, null), (0, _react.createElement)("p", null, (0, _i18n.__)('Navigate the structure of your document and address issues like empty or incorrect heading levels.'))));
111
111
  }
112
112
  //# sourceMappingURL=list-view-outline.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_data","require","_editor","_blockEditor","_components","_i18n","EmptyOutlineIllustration","_element","createElement","SVG","width","height","viewBox","fill","xmlns","Rect","rx","Line","x1","y1","x2","y2","stroke","x","y","Path","d","ListViewOutline","headingCount","useSelect","select","getGlobalBlockCount","blockEditorStore","Fragment","className","__experimentalText","__","CharacterCount","WordCount","TimeToRead","DocumentOutline"],"sources":["@wordpress/edit-post/src/components/secondary-sidebar/list-view-outline.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport {\n\tDocumentOutline,\n\tWordCount,\n\tTimeToRead,\n\tCharacterCount,\n} from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport {\n\t__experimentalText as Text,\n\tPath,\n\tSVG,\n\tLine,\n\tRect,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nfunction EmptyOutlineIllustration() {\n\treturn (\n\t\t<SVG\n\t\t\twidth=\"138\"\n\t\t\theight=\"148\"\n\t\t\tviewBox=\"0 0 138 148\"\n\t\t\tfill=\"none\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t>\n\t\t\t<Rect width=\"138\" height=\"148\" rx=\"4\" fill=\"#F0F6FC\" />\n\t\t\t<Line x1=\"44\" y1=\"28\" x2=\"24\" y2=\"28\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"48\" y=\"16\" width=\"27\" height=\"23\" rx=\"4\" fill=\"#DDDDDD\" />\n\t\t\t<Path\n\t\t\t\td=\"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t\t<Line x1=\"55\" y1=\"59\" x2=\"24\" y2=\"59\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"59\" y=\"47\" width=\"29\" height=\"23\" rx=\"4\" fill=\"#DDDDDD\" />\n\t\t\t<Path\n\t\t\t\td=\"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t\t<Line x1=\"80\" y1=\"90\" x2=\"24\" y2=\"90\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"84\" y=\"78\" width=\"30\" height=\"23\" rx=\"4\" fill=\"#F0B849\" />\n\t\t\t<Path\n\t\t\t\td=\"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t\t<Line x1=\"66\" y1=\"121\" x2=\"24\" y2=\"121\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"70\" y=\"109\" width=\"29\" height=\"23\" rx=\"4\" fill=\"#DDDDDD\" />\n\t\t\t<Path\n\t\t\t\td=\"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t</SVG>\n\t);\n}\n\nexport default function ListViewOutline() {\n\tconst { headingCount } = useSelect( ( select ) => {\n\t\tconst { getGlobalBlockCount } = select( blockEditorStore );\n\t\treturn {\n\t\t\theadingCount: getGlobalBlockCount( 'core/heading' ),\n\t\t};\n\t}, [] );\n\treturn (\n\t\t<>\n\t\t\t<div className=\"edit-post-editor__list-view-overview\">\n\t\t\t\t<div>\n\t\t\t\t\t<Text>{ __( 'Characters:' ) }</Text>\n\t\t\t\t\t<Text>\n\t\t\t\t\t\t<CharacterCount />\n\t\t\t\t\t</Text>\n\t\t\t\t</div>\n\t\t\t\t<div>\n\t\t\t\t\t<Text>{ __( 'Words:' ) }</Text>\n\t\t\t\t\t<WordCount />\n\t\t\t\t</div>\n\t\t\t\t<div>\n\t\t\t\t\t<Text>{ __( 'Time to read:' ) }</Text>\n\t\t\t\t\t<TimeToRead />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ headingCount > 0 ? (\n\t\t\t\t<DocumentOutline />\n\t\t\t) : (\n\t\t\t\t<div className=\"edit-post-editor__list-view-empty-headings\">\n\t\t\t\t\t<EmptyOutlineIllustration />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t'Navigate the structure of your document and address issues like empty or incorrect heading levels.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAA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,CACD,CAAC,EACJX,YAAY,GAAG,CAAC,GACjB,IAAArB,QAAA,CAAAC,aAAA,EAACN,OAAA,CAAAsC,eAAe,MAAE,CAAC,GAEnB,IAAAjC,QAAA,CAAAC,aAAA;IAAK0B,SAAS,EAAC;EAA4C,GAC1D,IAAA3B,QAAA,CAAAC,aAAA,EAACF,wBAAwB,MAAE,CAAC,EAC5B,IAAAC,QAAA,CAAAC,aAAA,aACG,IAAA4B,QAAE,EACH,oGACD,CACE,CACC,CAEL,CAAC;AAEL"}
1
+ {"version":3,"names":["_data","require","_editor","_blockEditor","_components","_i18n","EmptyOutlineIllustration","_react","createElement","SVG","width","height","viewBox","fill","xmlns","Rect","rx","Line","x1","y1","x2","y2","stroke","x","y","Path","d","ListViewOutline","headingCount","useSelect","select","getGlobalBlockCount","blockEditorStore","Fragment","className","__experimentalText","__","CharacterCount","WordCount","TimeToRead","DocumentOutline"],"sources":["@wordpress/edit-post/src/components/secondary-sidebar/list-view-outline.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport {\n\tDocumentOutline,\n\tWordCount,\n\tTimeToRead,\n\tCharacterCount,\n} from '@wordpress/editor';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport {\n\t__experimentalText as Text,\n\tPath,\n\tSVG,\n\tLine,\n\tRect,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nfunction EmptyOutlineIllustration() {\n\treturn (\n\t\t<SVG\n\t\t\twidth=\"138\"\n\t\t\theight=\"148\"\n\t\t\tviewBox=\"0 0 138 148\"\n\t\t\tfill=\"none\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t>\n\t\t\t<Rect width=\"138\" height=\"148\" rx=\"4\" fill=\"#F0F6FC\" />\n\t\t\t<Line x1=\"44\" y1=\"28\" x2=\"24\" y2=\"28\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"48\" y=\"16\" width=\"27\" height=\"23\" rx=\"4\" fill=\"#DDDDDD\" />\n\t\t\t<Path\n\t\t\t\td=\"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t\t<Line x1=\"55\" y1=\"59\" x2=\"24\" y2=\"59\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"59\" y=\"47\" width=\"29\" height=\"23\" rx=\"4\" fill=\"#DDDDDD\" />\n\t\t\t<Path\n\t\t\t\td=\"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t\t<Line x1=\"80\" y1=\"90\" x2=\"24\" y2=\"90\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"84\" y=\"78\" width=\"30\" height=\"23\" rx=\"4\" fill=\"#F0B849\" />\n\t\t\t<Path\n\t\t\t\td=\"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t\t<Line x1=\"66\" y1=\"121\" x2=\"24\" y2=\"121\" stroke=\"#DDDDDD\" />\n\t\t\t<Rect x=\"70\" y=\"109\" width=\"29\" height=\"23\" rx=\"4\" fill=\"#DDDDDD\" />\n\t\t\t<Path\n\t\t\t\td=\"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z\"\n\t\t\t\tfill=\"black\"\n\t\t\t/>\n\t\t</SVG>\n\t);\n}\n\nexport default function ListViewOutline() {\n\tconst { headingCount } = useSelect( ( select ) => {\n\t\tconst { getGlobalBlockCount } = select( blockEditorStore );\n\t\treturn {\n\t\t\theadingCount: getGlobalBlockCount( 'core/heading' ),\n\t\t};\n\t}, [] );\n\treturn (\n\t\t<>\n\t\t\t<div className=\"edit-post-editor__list-view-overview\">\n\t\t\t\t<div>\n\t\t\t\t\t<Text>{ __( 'Characters:' ) }</Text>\n\t\t\t\t\t<Text>\n\t\t\t\t\t\t<CharacterCount />\n\t\t\t\t\t</Text>\n\t\t\t\t</div>\n\t\t\t\t<div>\n\t\t\t\t\t<Text>{ __( 'Words:' ) }</Text>\n\t\t\t\t\t<WordCount />\n\t\t\t\t</div>\n\t\t\t\t<div>\n\t\t\t\t\t<Text>{ __( 'Time to read:' ) }</Text>\n\t\t\t\t\t<TimeToRead />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ headingCount > 0 ? (\n\t\t\t\t<DocumentOutline />\n\t\t\t) : (\n\t\t\t\t<div className=\"edit-post-editor__list-view-empty-headings\">\n\t\t\t\t\t<EmptyOutlineIllustration />\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t'Navigate the structure of your document and address issues like empty or incorrect heading levels.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAOA,IAAAI,KAAA,GAAAJ,OAAA;AAlBA;AACA;AACA;;AAkBA,SAASK,wBAAwBA,CAAA,EAAG;EACnC,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAAK,GAAG;IACHC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZC,OAAO,EAAC,aAAa;IACrBC,IAAI,EAAC,MAAM;IACXC,KAAK,EAAC;EAA4B,GAElC,IAAAP,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAAW,IAAI;IAACL,KAAK,EAAC,KAAK;IAACC,MAAM,EAAC,KAAK;IAACK,EAAE,EAAC,GAAG;IAACH,IAAI,EAAC;EAAS,CAAE,CAAC,EACvD,IAAAN,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAAa,IAAI;IAACC,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,IAAI;IAACC,MAAM,EAAC;EAAS,CAAE,CAAC,EACzD,IAAAf,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAAW,IAAI;IAACQ,CAAC,EAAC,IAAI;IAACC,CAAC,EAAC,IAAI;IAACd,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,IAAI;IAACK,EAAE,EAAC,GAAG;IAACH,IAAI,EAAC;EAAS,CAAE,C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C,aAAA,EAACJ,WAAA,CAAA+B,kBAAI,QAAG,IAAAC,QAAE,EAAE,QAAS,CAAS,CAAC,EAC/B,IAAA7B,MAAA,CAAAC,aAAA,EAACN,OAAA,CAAAoC,SAAS,MAAE,CACR,CAAC,EACN,IAAA/B,MAAA,CAAAC,aAAA,eACC,IAAAD,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAA+B,kBAAI,QAAG,IAAAC,QAAE,EAAE,eAAgB,CAAS,CAAC,EACtC,IAAA7B,MAAA,CAAAC,aAAA,EAACN,OAAA,CAAAqC,UAAU,MAAE,CACT,CACD,CAAC,EACJX,YAAY,GAAG,CAAC,GACjB,IAAArB,MAAA,CAAAC,aAAA,EAACN,OAAA,CAAAsC,eAAe,MAAE,CAAC,GAEnB,IAAAjC,MAAA,CAAAC,aAAA;IAAK0B,SAAS,EAAC;EAA4C,GAC1D,IAAA3B,MAAA,CAAAC,aAAA,EAACF,wBAAwB,MAAE,CAAC,EAC5B,IAAAC,MAAA,CAAAC,aAAA,aACG,IAAA4B,QAAE,EACH,oGACD,CACE,CACC,CAEL,CAAC;AAEL"}
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = ListViewSidebar;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _blockEditor = require("@wordpress/block-editor");
10
10
  var _components = require("@wordpress/components");
11
11
  var _compose = require("@wordpress/compose");
12
12
  var _data = require("@wordpress/data");
13
13
  var _dom = require("@wordpress/dom");
14
+ var _element = require("@wordpress/element");
14
15
  var _i18n = require("@wordpress/i18n");
15
16
  var _icons = require("@wordpress/icons");
16
17
  var _keyboardShortcuts = require("@wordpress/keyboard-shortcuts");
@@ -105,26 +106,26 @@ function ListViewSidebar({
105
106
  */
106
107
  function renderTabContent(tabName) {
107
108
  if (tabName === 'list-view') {
108
- return (0, _element.createElement)("div", {
109
+ return (0, _react.createElement)("div", {
109
110
  className: "edit-post-editor__list-view-panel-content"
110
- }, (0, _element.createElement)(_blockEditor.__experimentalListView, {
111
+ }, (0, _react.createElement)(_blockEditor.__experimentalListView, {
111
112
  dropZoneElement: dropZoneElement
112
113
  }));
113
114
  }
114
- return (0, _element.createElement)(_listViewOutline.default, null);
115
+ return (0, _react.createElement)(_listViewOutline.default, null);
115
116
  }
116
117
  return (
117
118
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
118
- (0, _element.createElement)("div", {
119
+ (0, _react.createElement)("div", {
119
120
  className: "edit-post-editor__document-overview-panel",
120
121
  onKeyDown: closeOnEscape,
121
122
  ref: sidebarRef
122
- }, (0, _element.createElement)(_components.Button, {
123
+ }, (0, _react.createElement)(_components.Button, {
123
124
  className: "edit-post-editor__document-overview-panel__close-button",
124
125
  icon: _icons.closeSmall,
125
126
  label: (0, _i18n.__)('Close'),
126
127
  onClick: closeListView
127
- }), (0, _element.createElement)(_components.TabPanel, {
128
+ }), (0, _react.createElement)(_components.TabPanel, {
128
129
  className: "edit-post-editor__document-overview-panel__tab-panel",
129
130
  ref: tabPanelRef,
130
131
  onSelect: tabName => setTab(tabName),
@@ -138,7 +139,7 @@ function ListViewSidebar({
138
139
  title: (0, _i18n._x)('Outline', 'Post overview'),
139
140
  className: 'edit-post-sidebar__panel-tab'
140
141
  }]
141
- }, currentTab => (0, _element.createElement)("div", {
142
+ }, currentTab => (0, _react.createElement)("div", {
142
143
  className: "edit-post-editor__list-view-container",
143
144
  ref: listViewContainerRef
144
145
  }, renderTabContent(currentTab.name))))
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_blockEditor","_components","_compose","_data","_dom","_i18n","_icons","_keyboardShortcuts","_keycodes","_store","_listViewOutline","_interopRequireDefault","ListViewSidebar","listViewToggleElement","setIsListViewOpened","useDispatch","editPostStore","focusOnMountRef","useFocusOnMount","closeListView","useCallback","focus","closeOnEscape","event","keyCode","ESCAPE","defaultPrevented","preventDefault","dropZoneElement","setDropZoneElement","useState","tab","setTab","sidebarRef","useRef","tabPanelRef","listViewRef","listViewContainerRef","useMergeRefs","handleSidebarFocus","currentTab","tabPanelFocus","tabbable","find","current","listViewApplicationFocus","listViewFocusArea","contains","handleToggleListViewShortcut","ownerDocument","activeElement","useShortcut","renderTabContent","tabName","createElement","className","__experimentalListView","default","onKeyDown","ref","Button","icon","closeSmall","label","__","onClick","TabPanel","onSelect","selectOnMove","tabs","name","title","_x"],"sources":["@wordpress/edit-post/src/components/secondary-sidebar/list-view-sidebar.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalListView as ListView } from '@wordpress/block-editor';\nimport { Button, TabPanel } from '@wordpress/components';\nimport { useFocusOnMount, useMergeRefs } from '@wordpress/compose';\nimport { useDispatch } from '@wordpress/data';\nimport { focus } from '@wordpress/dom';\nimport { useCallback, useRef, useState } from '@wordpress/element';\nimport { __, _x } from '@wordpress/i18n';\nimport { closeSmall } from '@wordpress/icons';\nimport { useShortcut } from '@wordpress/keyboard-shortcuts';\nimport { ESCAPE } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../store';\nimport ListViewOutline from './list-view-outline';\n\nexport default function ListViewSidebar( { listViewToggleElement } ) {\n\tconst { setIsListViewOpened } = useDispatch( editPostStore );\n\n\t// This hook handles focus when the sidebar first renders.\n\tconst focusOnMountRef = useFocusOnMount( 'firstElement' );\n\n\t// When closing the list view, focus should return to the toggle button.\n\tconst closeListView = useCallback( () => {\n\t\tsetIsListViewOpened( false );\n\t\tlistViewToggleElement?.focus();\n\t}, [ listViewToggleElement, setIsListViewOpened ] );\n\n\tconst closeOnEscape = useCallback(\n\t\t( event ) => {\n\t\t\tif ( event.keyCode === ESCAPE && ! event.defaultPrevented ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tcloseListView();\n\t\t\t}\n\t\t},\n\t\t[ closeListView ]\n\t);\n\n\t// Use internal state instead of a ref to make sure that the component\n\t// re-renders when the dropZoneElement updates.\n\tconst [ dropZoneElement, setDropZoneElement ] = useState( null );\n\t// Tracks our current tab.\n\tconst [ tab, setTab ] = useState( 'list-view' );\n\n\t// This ref refers to the sidebar as a whole.\n\tconst sidebarRef = useRef();\n\t// This ref refers to the tab panel.\n\tconst tabPanelRef = useRef();\n\t// This ref refers to the list view application area.\n\tconst listViewRef = useRef();\n\n\t// Must merge the refs together so focus can be handled properly in the next function.\n\tconst listViewContainerRef = useMergeRefs( [\n\t\tfocusOnMountRef,\n\t\tlistViewRef,\n\t\tsetDropZoneElement,\n\t] );\n\n\t/*\n\t * Callback function to handle list view or outline focus.\n\t *\n\t * @param {string} currentTab The current tab. Either list view or outline.\n\t *\n\t * @return void\n\t */\n\tfunction handleSidebarFocus( currentTab ) {\n\t\t// Tab panel focus.\n\t\tconst tabPanelFocus = focus.tabbable.find( tabPanelRef.current )[ 0 ];\n\t\t// List view tab is selected.\n\t\tif ( currentTab === 'list-view' ) {\n\t\t\t// Either focus the list view or the tab panel. Must have a fallback because the list view does not render when there are no blocks.\n\t\t\tconst listViewApplicationFocus = focus.tabbable.find(\n\t\t\t\tlistViewRef.current\n\t\t\t)[ 0 ];\n\t\t\tconst listViewFocusArea = sidebarRef.current.contains(\n\t\t\t\tlistViewApplicationFocus\n\t\t\t)\n\t\t\t\t? listViewApplicationFocus\n\t\t\t\t: tabPanelFocus;\n\t\t\tlistViewFocusArea.focus();\n\t\t\t// Outline tab is selected.\n\t\t} else {\n\t\t\ttabPanelFocus.focus();\n\t\t}\n\t}\n\n\tconst handleToggleListViewShortcut = useCallback( () => {\n\t\t// If the sidebar has focus, it is safe to close.\n\t\tif (\n\t\t\tsidebarRef.current.contains(\n\t\t\t\tsidebarRef.current.ownerDocument.activeElement\n\t\t\t)\n\t\t) {\n\t\t\tcloseListView();\n\t\t} else {\n\t\t\t// If the list view or outline does not have focus, focus should be moved to it.\n\t\t\thandleSidebarFocus( tab );\n\t\t}\n\t}, [ closeListView, tab ] );\n\n\t// This only fires when the sidebar is open because of the conditional rendering.\n\t// It is the same shortcut to open but that is defined as a global shortcut and only fires when the sidebar is closed.\n\tuseShortcut(\n\t\t'core/edit-post/toggle-list-view',\n\t\thandleToggleListViewShortcut\n\t);\n\n\t/**\n\t * Render tab content for a given tab name.\n\t *\n\t * @param {string} tabName The name of the tab to render.\n\t */\n\tfunction renderTabContent( tabName ) {\n\t\tif ( tabName === 'list-view' ) {\n\t\t\treturn (\n\t\t\t\t<div className=\"edit-post-editor__list-view-panel-content\">\n\t\t\t\t\t<ListView dropZoneElement={ dropZoneElement } />\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\t\treturn <ListViewOutline />;\n\t}\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\tclassName=\"edit-post-editor__document-overview-panel\"\n\t\t\tonKeyDown={ closeOnEscape }\n\t\t\tref={ sidebarRef }\n\t\t>\n\t\t\t<Button\n\t\t\t\tclassName=\"edit-post-editor__document-overview-panel__close-button\"\n\t\t\t\ticon={ closeSmall }\n\t\t\t\tlabel={ __( 'Close' ) }\n\t\t\t\tonClick={ closeListView }\n\t\t\t/>\n\t\t\t<TabPanel\n\t\t\t\tclassName=\"edit-post-editor__document-overview-panel__tab-panel\"\n\t\t\t\tref={ tabPanelRef }\n\t\t\t\tonSelect={ ( tabName ) => setTab( tabName ) }\n\t\t\t\tselectOnMove={ false }\n\t\t\t\ttabs={ [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'list-view',\n\t\t\t\t\t\ttitle: _x( 'List View', 'Post overview' ),\n\t\t\t\t\t\tclassName: 'edit-post-sidebar__panel-tab',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'outline',\n\t\t\t\t\t\ttitle: _x( 'Outline', 'Post overview' ),\n\t\t\t\t\t\tclassName: 'edit-post-sidebar__panel-tab',\n\t\t\t\t\t},\n\t\t\t\t] }\n\t\t\t>\n\t\t\t\t{ ( currentTab ) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"edit-post-edit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E,eAAgB,CAAC;QACzCjB,SAAS,EAAE;MACZ,CAAC,EACD;QACCe,IAAI,EAAE,SAAS;QACfC,KAAK,EAAE,IAAAC,QAAE,EAAE,SAAS,EAAE,eAAgB,CAAC;QACvCjB,SAAS,EAAE;MACZ,CAAC;IACC,GAECf,UAAU,IACb,IAAA1C,QAAA,CAAAwD,aAAA;MACCC,SAAS,EAAC,uCAAuC;MACjDI,GAAG,EAAGtB;IAAsB,GAE1Be,gBAAgB,CAAEZ,UAAU,CAAC8B,IAAK,CAChC,CAEG,CACN;EAAC;AAER"}
1
+ {"version":3,"names":["_blockEditor","require","_components","_compose","_data","_dom","_element","_i18n","_icons","_keyboardShortcuts","_keycodes","_store","_listViewOutline","_interopRequireDefault","ListViewSidebar","listViewToggleElement","setIsListViewOpened","useDispatch","editPostStore","focusOnMountRef","useFocusOnMount","closeListView","useCallback","focus","closeOnEscape","event","keyCode","ESCAPE","defaultPrevented","preventDefault","dropZoneElement","setDropZoneElement","useState","tab","setTab","sidebarRef","useRef","tabPanelRef","listViewRef","listViewContainerRef","useMergeRefs","handleSidebarFocus","currentTab","tabPanelFocus","tabbable","find","current","listViewApplicationFocus","listViewFocusArea","contains","handleToggleListViewShortcut","ownerDocument","activeElement","useShortcut","renderTabContent","tabName","_react","createElement","className","__experimentalListView","default","onKeyDown","ref","Button","icon","closeSmall","label","__","onClick","TabPanel","onSelect","selectOnMove","tabs","name","title","_x"],"sources":["@wordpress/edit-post/src/components/secondary-sidebar/list-view-sidebar.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalListView as ListView } from '@wordpress/block-editor';\nimport { Button, TabPanel } from '@wordpress/components';\nimport { useFocusOnMount, useMergeRefs } from '@wordpress/compose';\nimport { useDispatch } from '@wordpress/data';\nimport { focus } from '@wordpress/dom';\nimport { useCallback, useRef, useState } from '@wordpress/element';\nimport { __, _x } from '@wordpress/i18n';\nimport { closeSmall } from '@wordpress/icons';\nimport { useShortcut } from '@wordpress/keyboard-shortcuts';\nimport { ESCAPE } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../store';\nimport ListViewOutline from './list-view-outline';\n\nexport default function ListViewSidebar( { listViewToggleElement } ) {\n\tconst { setIsListViewOpened } = useDispatch( editPostStore );\n\n\t// This hook handles focus when the sidebar first renders.\n\tconst focusOnMountRef = useFocusOnMount( 'firstElement' );\n\n\t// When closing the list view, focus should return to the toggle button.\n\tconst closeListView = useCallback( () => {\n\t\tsetIsListViewOpened( false );\n\t\tlistViewToggleElement?.focus();\n\t}, [ listViewToggleElement, setIsListViewOpened ] );\n\n\tconst closeOnEscape = useCallback(\n\t\t( event ) => {\n\t\t\tif ( event.keyCode === ESCAPE && ! event.defaultPrevented ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tcloseListView();\n\t\t\t}\n\t\t},\n\t\t[ closeListView ]\n\t);\n\n\t// Use internal state instead of a ref to make sure that the component\n\t// re-renders when the dropZoneElement updates.\n\tconst [ dropZoneElement, setDropZoneElement ] = useState( null );\n\t// Tracks our current tab.\n\tconst [ tab, setTab ] = useState( 'list-view' );\n\n\t// This ref refers to the sidebar as a whole.\n\tconst sidebarRef = useRef();\n\t// This ref refers to the tab panel.\n\tconst tabPanelRef = useRef();\n\t// This ref refers to the list view application area.\n\tconst listViewRef = useRef();\n\n\t// Must merge the refs together so focus can be handled properly in the next function.\n\tconst listViewContainerRef = useMergeRefs( [\n\t\tfocusOnMountRef,\n\t\tlistViewRef,\n\t\tsetDropZoneElement,\n\t] );\n\n\t/*\n\t * Callback function to handle list view or outline focus.\n\t *\n\t * @param {string} currentTab The current tab. Either list view or outline.\n\t *\n\t * @return void\n\t */\n\tfunction handleSidebarFocus( currentTab ) {\n\t\t// Tab panel focus.\n\t\tconst tabPanelFocus = focus.tabbable.find( tabPanelRef.current )[ 0 ];\n\t\t// List view tab is selected.\n\t\tif ( currentTab === 'list-view' ) {\n\t\t\t// Either focus the list view or the tab panel. Must have a fallback because the list view does not render when there are no blocks.\n\t\t\tconst listViewApplicationFocus = focus.tabbable.find(\n\t\t\t\tlistViewRef.current\n\t\t\t)[ 0 ];\n\t\t\tconst listViewFocusArea = sidebarRef.current.contains(\n\t\t\t\tlistViewApplicationFocus\n\t\t\t)\n\t\t\t\t? listViewApplicationFocus\n\t\t\t\t: tabPanelFocus;\n\t\t\tlistViewFocusArea.focus();\n\t\t\t// Outline tab is selected.\n\t\t} else {\n\t\t\ttabPanelFocus.focus();\n\t\t}\n\t}\n\n\tconst handleToggleListViewShortcut = useCallback( () => {\n\t\t// If the sidebar has focus, it is safe to close.\n\t\tif (\n\t\t\tsidebarRef.current.contains(\n\t\t\t\tsidebarRef.current.ownerDocument.activeElement\n\t\t\t)\n\t\t) {\n\t\t\tcloseListView();\n\t\t} else {\n\t\t\t// If the list view or outline does not have focus, focus should be moved to it.\n\t\t\thandleSidebarFocus( tab );\n\t\t}\n\t}, [ closeListView, tab ] );\n\n\t// This only fires when the sidebar is open because of the conditional rendering.\n\t// It is the same shortcut to open but that is defined as a global shortcut and only fires when the sidebar is closed.\n\tuseShortcut(\n\t\t'core/edit-post/toggle-list-view',\n\t\thandleToggleListViewShortcut\n\t);\n\n\t/**\n\t * Render tab content for a given tab name.\n\t *\n\t * @param {string} tabName The name of the tab to render.\n\t */\n\tfunction renderTabContent( tabName ) {\n\t\tif ( tabName === 'list-view' ) {\n\t\t\treturn (\n\t\t\t\t<div className=\"edit-post-editor__list-view-panel-content\">\n\t\t\t\t\t<ListView dropZoneElement={ dropZoneElement } />\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\t\treturn <ListViewOutline />;\n\t}\n\n\treturn (\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\tclassName=\"edit-post-editor__document-overview-panel\"\n\t\t\tonKeyDown={ closeOnEscape }\n\t\t\tref={ sidebarRef }\n\t\t>\n\t\t\t<Button\n\t\t\t\tclassName=\"edit-post-editor__document-overview-panel__close-button\"\n\t\t\t\ticon={ closeSmall }\n\t\t\t\tlabel={ __( 'Close' ) }\n\t\t\t\tonClick={ closeListView }\n\t\t\t/>\n\t\t\t<TabPanel\n\t\t\t\tclassName=\"edit-post-editor__document-overview-panel__tab-panel\"\n\t\t\t\tref={ tabPanelRef }\n\t\t\t\tonSelect={ ( tabName ) => setTab( tabName ) }\n\t\t\t\tselectOnMove={ false }\n\t\t\t\ttabs={ [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'list-view',\n\t\t\t\t\t\ttitle: _x( 'List View', 'Post overview' ),\n\t\t\t\t\t\tclassName: 'edit-post-sidebar__panel-tab',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'outline',\n\t\t\t\t\t\ttitle: _x( 'Outline', 'Post overview' ),\n\t\t\t\t\t\tclassName: 'edit-post-sidebar__panel-tab',\n\t\t\t\t\t},\n\t\t\t\t] }\n\t\t\t>\n\t\t\t\t{ ( currentTab ) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"edit-post-editor__list-view-container\"\n\t\t\t\t\t\tref={ listViewContainerRef }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ renderTabContent( currentTab.name ) }\n\t\t\t\t\t</div>\n\t\t\t\t) }\n\t\t\t</TabPanel>\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAKA,IAAAU,MAAA,GAAAV,OAAA;AACA,IAAAW,gBAAA,GAAAC,sBAAA,CAAAZ,OAAA;AAl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;IACC;IACA,IAAAJ,MAAA,CAAAC,aAAA;MACCC,SAAS,EAAC,2CAA2C;MACrDG,SAAS,EAAGrC,aAAe;MAC3BsC,GAAG,EAAG3B;IAAY,GAElB,IAAAqB,MAAA,CAAAC,aAAA,EAACvD,WAAA,CAAA6D,MAAM;MACNL,SAAS,EAAC,yDAAyD;MACnEM,IAAI,EAAGC,iBAAY;MACnBC,KAAK,EAAG,IAAAC,QAAE,EAAE,OAAQ,CAAG;MACvBC,OAAO,EAAG/C;IAAe,CACzB,CAAC,EACF,IAAAmC,MAAA,CAAAC,aAAA,EAACvD,WAAA,CAAAmE,QAAQ;MACRX,SAAS,EAAC,sDAAsD;MAChEI,GAAG,EAAGzB,WAAa;MACnBiC,QAAQ,EAAKf,OAAO,IAAMrB,MAAM,CAAEqB,OAAQ,CAAG;MAC7CgB,YAAY,EAAG,KAAO;MACtBC,IAAI,EAAG,CACN;QACCC,IAAI,EAAE,WAAW;QACjBC,KAAK,EAAE,IAAAC,QAAE,EAAE,WAAW,EAAE,eAAgB,CAAC;QACzCjB,SAAS,EAAE;MACZ,CAAC,EACD;QACCe,IAAI,EAAE,SAAS;QACfC,KAAK,EAAE,IAAAC,QAAE,EAAE,SAAS,EAAE,eAAgB,CAAC;QACvCjB,SAAS,EAAE;MACZ,CAAC;IACC,GAEChB,UAAU,IACb,IAAAc,MAAA,CAAAC,aAAA;MACCC,SAAS,EAAC,uCAAuC;MACjDI,GAAG,EAAGvB;IAAsB,GAE1Be,gBAAgB,CAAEZ,UAAU,CAAC+B,IAAK,CAChC,CAEG,CACN;EAAC;AAER"}
@@ -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");
@@ -42,17 +42,17 @@ function DiscussionPanel() {
42
42
  if (!isEnabled) {
43
43
  return null;
44
44
  }
45
- return (0, _element.createElement)(_editor.PostTypeSupportCheck, {
45
+ return (0, _react.createElement)(_editor.PostTypeSupportCheck, {
46
46
  supportKeys: ['comments', 'trackbacks']
47
- }, (0, _element.createElement)(_components.PanelBody, {
47
+ }, (0, _react.createElement)(_components.PanelBody, {
48
48
  title: (0, _i18n.__)('Discussion'),
49
49
  opened: isOpened,
50
50
  onToggle: () => toggleEditorPanelOpened(PANEL_NAME)
51
- }, (0, _element.createElement)(_editor.PostTypeSupportCheck, {
51
+ }, (0, _react.createElement)(_editor.PostTypeSupportCheck, {
52
52
  supportKeys: "comments"
53
- }, (0, _element.createElement)(_components.PanelRow, null, (0, _element.createElement)(_editor.PostComments, null))), (0, _element.createElement)(_editor.PostTypeSupportCheck, {
53
+ }, (0, _react.createElement)(_components.PanelRow, null, (0, _react.createElement)(_editor.PostComments, null))), (0, _react.createElement)(_editor.PostTypeSupportCheck, {
54
54
  supportKeys: "trackbacks"
55
- }, (0, _element.createElement)(_components.PanelRow, null, (0, _element.createElement)(_editor.PostPingbacks, null)))));
55
+ }, (0, _react.createElement)(_components.PanelRow, null, (0, _react.createElement)(_editor.PostPingbacks, null)))));
56
56
  }
57
57
  var _default = DiscussionPanel;
58
58
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_editor","_data","_store","PANEL_NAME","DiscussionPanel","isEnabled","isOpened","useSelect","select","isEditorPanelEnabled","isEditorPanelOpened","editPostStore","toggleEditorPanelOpened","useDispatch","_element","createElement","PostTypeSupportCheck","supportKeys","PanelBody","title","__","opened","onToggle","PanelRow","PostComments","PostPingbacks","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/discussion-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, PanelRow } from '@wordpress/components';\nimport {\n\tPostComments,\n\tPostPingbacks,\n\tPostTypeSupportCheck,\n} from '@wordpress/editor';\nimport { useDispatch, useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'discussion-panel';\n\nfunction DiscussionPanel() {\n\tconst { isEnabled, isOpened } = useSelect( ( select ) => {\n\t\tconst { isEditorPanelEnabled, isEditorPanelOpened } =\n\t\t\tselect( editPostStore );\n\t\treturn {\n\t\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t}, [] );\n\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostTypeSupportCheck supportKeys={ [ 'comments', 'trackbacks' ] }>\n\t\t\t<PanelBody\n\t\t\t\ttitle={ __( 'Discussion' ) }\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ () => toggleEditorPanelOpened( PANEL_NAME ) }\n\t\t\t>\n\t\t\t\t<PostTypeSupportCheck supportKeys=\"comments\">\n\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t<PostComments />\n\t\t\t\t\t</PanelRow>\n\t\t\t\t</PostTypeSupportCheck>\n\n\t\t\t\t<PostTypeSupportCheck supportKeys=\"trackbacks\">\n\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t<PostPingbacks />\n\t\t\t\t\t</PanelRow>\n\t\t\t\t</PostTypeSupportCheck>\n\t\t\t</PanelBody>\n\t\t</PostTypeSupportCheck>\n\t);\n}\n\nexport default DiscussionPanel;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAKA,IAAAG,KAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AAfA;AACA;AACA;;AAUA;AACA;AACA;;AAGA;AACA;AACA;AACA,MAAMK,UA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Aa,MAAE,CACP,CACW,CACZ,CACU,CAAC;AAEzB;AAAC,IAAAC,QAAA,GAEctB,eAAe;AAAAuB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_editor","_data","_store","PANEL_NAME","DiscussionPanel","isEnabled","isOpened","useSelect","select","isEditorPanelEnabled","isEditorPanelOpened","editPostStore","toggleEditorPanelOpened","useDispatch","_react","createElement","PostTypeSupportCheck","supportKeys","PanelBody","title","__","opened","onToggle","PanelRow","PostComments","PostPingbacks","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/discussion-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, PanelRow } from '@wordpress/components';\nimport {\n\tPostComments,\n\tPostPingbacks,\n\tPostTypeSupportCheck,\n} from '@wordpress/editor';\nimport { useDispatch, useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'discussion-panel';\n\nfunction DiscussionPanel() {\n\tconst { isEnabled, isOpened } = useSelect( ( select ) => {\n\t\tconst { isEditorPanelEnabled, isEditorPanelOpened } =\n\t\t\tselect( editPostStore );\n\t\treturn {\n\t\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t}, [] );\n\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostTypeSupportCheck supportKeys={ [ 'comments', 'trackbacks' ] }>\n\t\t\t<PanelBody\n\t\t\t\ttitle={ __( 'Discussion' ) }\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ () => toggleEditorPanelOpened( PANEL_NAME ) }\n\t\t\t>\n\t\t\t\t<PostTypeSupportCheck supportKeys=\"comments\">\n\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t<PostComments />\n\t\t\t\t\t</PanelRow>\n\t\t\t\t</PostTypeSupportCheck>\n\n\t\t\t\t<PostTypeSupportCheck supportKeys=\"trackbacks\">\n\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t<PostPingbacks />\n\t\t\t\t\t</PanelRow>\n\t\t\t\t</PostTypeSupportCheck>\n\t\t\t</PanelBody>\n\t\t</PostTypeSupportCheck>\n\t);\n}\n\nexport default DiscussionPanel;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAKA,IAAAG,KAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AAfA;AACA;AACA;;AAUA;AACA;AACA;;AAGA;AACA;AACA;AACA,MAAMK,UAAU,GAAG,kBAAkB;AAErC,SAASC,eAAeA,CAAA,EAAG;EAC1B,MAAM;IAAEC,SAAS;IAAEC;EAAS,CAAC,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IACxD,MAAM;MAAEC,oBAAoB;MAAEC;IAAoB,CAAC,GAClDF,MAAM,CAAEG,YAAc,CAAC;IACxB,OAAO;MACNN,SAAS,EAAEI,oBAAoB,CAAEN,UAAW,CAAC;MAC7CG,QAAQ,EAAEI,mBAAmB,CAAEP,UAAW;IAC3C,CAAC;EACF,CAAC,EAAE,EAAG,CAAC;EAEP,MAAM;IAAES;EAAwB,CAAC,GAAG,IAAAC,iBAAW,EAAEF,YAAc,CAAC;EAEhE,IAAK,CAAEN,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,OACC,IAAAS,MAAA,CAAAC,aAAA,EAACf,OAAA,CAAAgB,oBAAoB;IAACC,WAAW,EAAG,CAAE,UAAU,EAAE,YAAY;EAAI,GACjE,IAAAH,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAmB,SAAS;IACTC,KAAK,EAAG,IAAAC,QAAE,EAAE,YAAa,CAAG;IAC5BC,MAAM,EAAGf,QAAU;IACnBgB,QAAQ,EAAGA,CAAA,KAAMV,uBAAuB,CAAET,UAAW;EAAG,GAExD,IAAAW,MAAA,CAAAC,aAAA,EAACf,OAAA,CAAAgB,oBAAoB;IAACC,WAAW,EAAC;EAAU,GAC3C,IAAAH,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAwB,QAAQ,QACR,IAAAT,MAAA,CAAAC,aAAA,EAACf,OAAA,CAAAwB,YAAY,MAAE,CACN,CACW,CAAC,EAEvB,IAAAV,MAAA,CAAAC,aAAA,EAACf,OAAA,CAAAgB,oBAAoB;IAACC,WAAW,EAAC;EAAY,GAC7C,IAAAH,MAAA,CAAAC,aAAA,EAAChB,WAAA,CAAAwB,QAAQ,QACR,IAAAT,MAAA,CAAAC,aAAA,EAACf,OAAA,CAAAyB,aAAa,MAAE,CACP,CACW,CACZ,CACU,CAAC;AAEzB;AAAC,IAAAC,QAAA,GAEctB,eAAe;AAAAuB,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");
@@ -34,11 +34,11 @@ function FeaturedImage({
34
34
  if (!isEnabled) {
35
35
  return null;
36
36
  }
37
- return (0, _element.createElement)(_editor.PostFeaturedImageCheck, null, (0, _element.createElement)(_components.PanelBody, {
37
+ return (0, _react.createElement)(_editor.PostFeaturedImageCheck, null, (0, _react.createElement)(_components.PanelBody, {
38
38
  title: (_postType$labels$feat = postType?.labels?.featured_image) !== null && _postType$labels$feat !== void 0 ? _postType$labels$feat : (0, _i18n.__)('Featured image'),
39
39
  opened: isOpened,
40
40
  onToggle: onTogglePanel
41
- }, (0, _element.createElement)(_editor.PostFeaturedImage, null)));
41
+ }, (0, _react.createElement)(_editor.PostFeaturedImage, null)));
42
42
  }
43
43
  const applyWithSelect = (0, _data.withSelect)(select => {
44
44
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_editor","_compose","_data","_coreData","_store","PANEL_NAME","FeaturedImage","isEnabled","isOpened","postType","onTogglePanel","_postType$labels$feat","_element","createElement","PostFeaturedImageCheck","PanelBody","title","labels","featured_image","__","opened","onToggle","PostFeaturedImage","applyWithSelect","withSelect","select","getEditedPostAttribute","editorStore","getPostType","coreStore","isEditorPanelEnabled","isEditorPanelOpened","editPostStore","applyWithDispatch","withDispatch","dispatch","toggleEditorPanelOpened","args","_default","compose","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/featured-image/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport {\n\tPostFeaturedImage,\n\tPostFeaturedImageCheck,\n\tstore as editorStore,\n} from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'featured-image';\n\nfunction FeaturedImage( { isEnabled, isOpened, postType, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostFeaturedImageCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={\n\t\t\t\t\tpostType?.labels?.featured_image ?? __( 'Featured image' )\n\t\t\t\t}\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PostFeaturedImage />\n\t\t\t</PanelBody>\n\t\t</PostFeaturedImageCheck>\n\t);\n}\n\nconst applyWithSelect = withSelect( ( select ) => {\n\tconst { getEditedPostAttribute } = select( editorStore );\n\tconst { getPostType } = select( coreStore );\n\tconst { isEditorPanelEnabled, isEditorPanelOpened } =\n\t\tselect( editPostStore );\n\n\treturn {\n\t\tpostType: getPostType( getEditedPostAttribute( 'type' ) ),\n\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t};\n} );\n\nconst applyWithDispatch = withDispatch( ( dispatch ) => {\n\tconst { toggleEditorPanelOpened } = dispatch( editPostStore );\n\n\treturn {\n\t\tonTogglePanel: ( ...args ) =>\n\t\t\ttoggleEditorPanelOpened( PANEL_NAME, ...args ),\n\t};\n} );\n\nexport default compose( applyWithSelect, applyWithDispatch )( FeaturedImage );\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,MAAA,GAAAN,OAAA;AAjBA;AACA;AACA;;AAYA;AACA;AACA;;AAGA;AACA;AACA;AACA,MAAMO,UAAU,GAAG,gBAAgB;AAEnC,SAASC,aAAaA,CAAE;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC;AAAc,CAAC,EAAG;EAAA,IAAAC,qBAAA;EAC1E,IAAK,CAAEJ,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,OACC,IAAAK,QAAA,CAAAC,aAAA,EAACb,OAAA,CAAAc,sBAAsB,QACtB,IAAAF,QAAA,CAAAC,aAAA,EAACd,WAAA,CAAAgB,SAAS;IACTC,KAAK,GAAAL,qBAAA,GACJF,QAAQ,EAAEQ,MAAM,EAAEC,cAAc,cAAAP,qBAAA,cAAAA,qBAAA,GAAI,IAAAQ,QAAE,EAAE,gBAAiB,CACzD;IACDC,MAAM,EAAGZ,QAAU;IACnBa,QAAQ,EAAGX;EAAe,GAE1B,IAAAE,QAAA,CAAAC,aAAA,EAACb,OAAA,CAAAsB,iBAAiB,MAAE,CACV,CACY,CAAC;AAE3B;AAEA,MAAMC,eAAe,GAAG,IAAAC,gBAAU,EAAIC,MAAM,IAAM;EACjD,MAAM;IAAEC;EAAuB,CAAC,GAAGD,MAAM,CAAEE,aAAY,CAAC;EACxD,MAAM;IAAEC;EAAY,CAAC,GAAGH,MAAM,CAAEI,eAAU,CAAC;EAC3C,MAAM;IAAEC,oBAAoB;IAAEC;EAAoB,CAAC,GAClDN,MAAM,CAAEO,YAAc,CAAC;EAExB,OAAO;IACNvB,QAAQ,EAAEmB,WAAW,CAAEF,sBAAsB,CAAE,MAAO,CAAE,CAAC;IACzDnB,SAAS,EAAEuB,oBAAoB,CAAEzB,UAAW,CAAC;IAC7CG,QAAQ,EAAEuB,mBAAmB,CAAE1B,UAAW;EAC3C,CAAC;AACF,CAAE,CAAC;AAEH,MAAM4B,iBAAiB,GAAG,IAAAC,kBAAY,EAAIC,QAAQ,IAAM;EACvD,MAAM;IAAEC;EAAwB,CAAC,GAAGD,QAAQ,CAAEH,YAAc,CAAC;EAE7D,OAAO;IACNtB,aAAa,EAAEA,CAAE,GAAG2B,IAAI,KACvBD,uBAAuB,CAAE/B,UAAU,EAAE,GAAGgC,IAAK;EAC/C,CAAC;AACF,CAAE,CAAC;AAAC,IAAAC,QAAA,GAEW,IAAAC,gBAAO,EAAEhB,eAAe,EAAEU,iBAAkB,CAAC,CAAE3B,aAAc,CAAC;AAAAkC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_editor","_compose","_data","_coreData","_store","PANEL_NAME","FeaturedImage","isEnabled","isOpened","postType","onTogglePanel","_postType$labels$feat","_react","createElement","PostFeaturedImageCheck","PanelBody","title","labels","featured_image","__","opened","onToggle","PostFeaturedImage","applyWithSelect","withSelect","select","getEditedPostAttribute","editorStore","getPostType","coreStore","isEditorPanelEnabled","isEditorPanelOpened","editPostStore","applyWithDispatch","withDispatch","dispatch","toggleEditorPanelOpened","args","_default","compose","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/featured-image/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport {\n\tPostFeaturedImage,\n\tPostFeaturedImageCheck,\n\tstore as editorStore,\n} from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'featured-image';\n\nfunction FeaturedImage( { isEnabled, isOpened, postType, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostFeaturedImageCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={\n\t\t\t\t\tpostType?.labels?.featured_image ?? __( 'Featured image' )\n\t\t\t\t}\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PostFeaturedImage />\n\t\t\t</PanelBody>\n\t\t</PostFeaturedImageCheck>\n\t);\n}\n\nconst applyWithSelect = withSelect( ( select ) => {\n\tconst { getEditedPostAttribute } = select( editorStore );\n\tconst { getPostType } = select( coreStore );\n\tconst { isEditorPanelEnabled, isEditorPanelOpened } =\n\t\tselect( editPostStore );\n\n\treturn {\n\t\tpostType: getPostType( getEditedPostAttribute( 'type' ) ),\n\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t};\n} );\n\nconst applyWithDispatch = withDispatch( ( dispatch ) => {\n\tconst { toggleEditorPanelOpened } = dispatch( editPostStore );\n\n\treturn {\n\t\tonTogglePanel: ( ...args ) =>\n\t\t\ttoggleEditorPanelOpened( PANEL_NA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AAC;EAExB,OAAO;IACNvB,QAAQ,EAAEmB,WAAW,CAAEF,sBAAsB,CAAE,MAAO,CAAE,CAAC;IACzDnB,SAAS,EAAEuB,oBAAoB,CAAEzB,UAAW,CAAC;IAC7CG,QAAQ,EAAEuB,mBAAmB,CAAE1B,UAAW;EAC3C,CAAC;AACF,CAAE,CAAC;AAEH,MAAM4B,iBAAiB,GAAG,IAAAC,kBAAY,EAAIC,QAAQ,IAAM;EACvD,MAAM;IAAEC;EAAwB,CAAC,GAAGD,QAAQ,CAAEH,YAAc,CAAC;EAE7D,OAAO;IACNtB,aAAa,EAAEA,CAAE,GAAG2B,IAAI,KACvBD,uBAAuB,CAAE/B,UAAU,EAAE,GAAGgC,IAAK;EAC/C,CAAC;AACF,CAAE,CAAC;AAAC,IAAAC,QAAA,GAEW,IAAAC,gBAAO,EAAEhB,eAAe,EAAEU,iBAAkB,CAAC,CAAE3B,aAAc,CAAC;AAAAkC,OAAA,CAAAC,OAAA,GAAAH,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 _editor = require("@wordpress/editor");
10
10
  /**
@@ -12,9 +12,9 @@ var _editor = require("@wordpress/editor");
12
12
  */
13
13
 
14
14
  function LastRevision() {
15
- return (0, _element.createElement)(_editor.PostLastRevisionCheck, null, (0, _element.createElement)(_components.PanelBody, {
15
+ return (0, _react.createElement)(_editor.PostLastRevisionCheck, null, (0, _react.createElement)(_components.PanelBody, {
16
16
  className: "edit-post-last-revision__panel"
17
- }, (0, _element.createElement)(_editor.PostLastRevision, null)));
17
+ }, (0, _react.createElement)(_editor.PostLastRevision, null)));
18
18
  }
19
19
  var _default = LastRevision;
20
20
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_editor","LastRevision","_element","createElement","PostLastRevisionCheck","PanelBody","className","PostLastRevision","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/last-revision/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelBody } from '@wordpress/components';\nimport { PostLastRevision, PostLastRevisionCheck } from '@wordpress/editor';\n\nfunction LastRevision() {\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<PanelBody className=\"edit-post-last-revision__panel\">\n\t\t\t\t<PostLastRevision />\n\t\t\t</PanelBody>\n\t\t</PostLastRevisionCheck>\n\t);\n}\n\nexport default LastRevision;\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIA,SAASE,YAAYA,CAAA,EAAG;EACvB,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,qBAAqB,QACrB,IAAAF,QAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,SAAS;IAACC,SAAS,EAAC;EAAgC,GACpD,IAAAJ,QAAA,CAAAC,aAAA,EAACH,OAAA,CAAAO,gBAAgB,MAAE,CACT,CACW,CAAC;AAE1B;AAAC,IAAAC,QAAA,GAEcP,YAAY;AAAAQ,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_editor","LastRevision","_react","createElement","PostLastRevisionCheck","PanelBody","className","PostLastRevision","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/last-revision/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { PanelBody } from '@wordpress/components';\nimport { PostLastRevision, PostLastRevisionCheck } from '@wordpress/editor';\n\nfunction LastRevision() {\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<PanelBody className=\"edit-post-last-revision__panel\">\n\t\t\t\t<PostLastRevision />\n\t\t\t</PanelBody>\n\t\t</PostLastRevisionCheck>\n\t);\n}\n\nexport default LastRevision;\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIA,SAASE,YAAYA,CAAA,EAAG;EACvB,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAI,qBAAqB,QACrB,IAAAF,MAAA,CAAAC,aAAA,EAACL,WAAA,CAAAO,SAAS;IAACC,SAAS,EAAC;EAAgC,GACpD,IAAAJ,MAAA,CAAAC,aAAA,EAACH,OAAA,CAAAO,gBAAgB,MAAE,CACT,CACW,CAAC;AAE1B;AAAC,IAAAC,QAAA,GAEcP,YAAY;AAAAQ,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.PageAttributes = PageAttributes;
7
7
  exports.default = void 0;
8
- var _element = require("@wordpress/element");
8
+ var _react = require("react");
9
9
  var _i18n = require("@wordpress/i18n");
10
10
  var _components = require("@wordpress/components");
11
11
  var _editor = require("@wordpress/editor");
@@ -54,11 +54,11 @@ function PageAttributes() {
54
54
  return null;
55
55
  }
56
56
  const onTogglePanel = (...args) => toggleEditorPanelOpened(PANEL_NAME, ...args);
57
- return (0, _element.createElement)(_editor.PageAttributesCheck, null, (0, _element.createElement)(_components.PanelBody, {
57
+ return (0, _react.createElement)(_editor.PageAttributesCheck, null, (0, _react.createElement)(_components.PanelBody, {
58
58
  title: (_postType$labels$attr = postType?.labels?.attributes) !== null && _postType$labels$attr !== void 0 ? _postType$labels$attr : (0, _i18n.__)('Page attributes'),
59
59
  opened: isOpened,
60
60
  onToggle: onTogglePanel
61
- }, (0, _element.createElement)(_editor.PageAttributesParent, null), (0, _element.createElement)(_components.PanelRow, null, (0, _element.createElement)(_editor.PageAttributesOrder, null))));
61
+ }, (0, _react.createElement)(_editor.PageAttributesParent, null), (0, _react.createElement)(_components.PanelRow, null, (0, _react.createElement)(_editor.PageAttributesOrder, null))));
62
62
  }
63
63
  var _default = PageAttributes;
64
64
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_editor","_data","_coreData","_store","PANEL_NAME","PageAttributes","_postType$labels$attr","isEnabled","isOpened","postType","useSelect","select","getEditedPostAttribute","editorStore","isEditorPanelEnabled","isEditorPanelOpened","editPostStore","getPostType","coreStore","toggleEditorPanelOpened","useDispatch","onTogglePanel","args","_element","createElement","PageAttributesCheck","PanelBody","title","labels","attributes","__","opened","onToggle","PageAttributesParent","PanelRow","PageAttributesOrder","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/page-attributes/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, PanelRow } from '@wordpress/components';\nimport {\n\tstore as editorStore,\n\tPageAttributesCheck,\n\tPageAttributesOrder,\n\tPageAttributesParent,\n} from '@wordpress/editor';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'page-attributes';\n\nexport function PageAttributes() {\n\tconst { isEnabled, isOpened, postType } = useSelect( ( select ) => {\n\t\tconst { getEditedPostAttribute } = select( editorStore );\n\t\tconst { isEditorPanelEnabled, isEditorPanelOpened } =\n\t\t\tselect( editPostStore );\n\t\tconst { getPostType } = select( coreStore );\n\t\treturn {\n\t\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t\tpostType: getPostType( getEditedPostAttribute( 'type' ) ),\n\t\t};\n\t}, [] );\n\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( ! isEnabled || ! postType ) {\n\t\treturn null;\n\t}\n\n\tconst onTogglePanel = ( ...args ) =>\n\t\ttoggleEditorPanelOpened( PANEL_NAME, ...args );\n\n\treturn (\n\t\t<PageAttributesCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={\n\t\t\t\t\tpostType?.labels?.attributes ?? __( 'Page attributes' )\n\t\t\t\t}\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PageAttributesParent />\n\t\t\t\t<PanelRow>\n\t\t\t\t\t<PageAttributesOrder />\n\t\t\t\t</PanelRow>\n\t\t\t</PanelBody>\n\t\t</PageAttributesCheck>\n\t);\n}\n\nexport default PageAttributes;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAKA,IAAAK,MAAA,GAAAL,OAAA;AAjBA;AACA;AACA;;AAYA;AACA;AACA;;AAGA;AACA;AACA;AACA,MAAMM,UAAU,GAAG,iBAAiB;AAE7B,SAASC,cAAcA,CAAA,EAAG;EAAA,IAAAC,qBAAA;EAChC,MAAM;IAAEC,SAAS;IAAEC,QAAQ;IAAEC;EAAS,CAAC,GAAG,IAAAC,eAAS,EAAIC,MAAM,IAAM;IAClE,MAAM;MAAEC;IAAuB,CAAC,GAAGD,MAAM,CAAEE,aAAY,CAAC;IACxD,MAAM;MAAEC,oBAAoB;MAAEC;IAAoB,CAAC,GAClDJ,MAAM,CAAEK,YAAc,CAAC;IACxB,MAAM;MAAEC;IAAY,CAAC,GAAGN,MAAM,CAAEO,eAAU,CAAC;IAC3C,OAAO;MACNX,SAAS,EAAEO,oBAAoB,CAAEV,UAAW,CAAC;MAC7CI,QAAQ,EAAEO,mBAAmB,CAAEX,UAAW,CAAC;MAC3CK,QAAQ,EAAEQ,WAAW,CAAEL,sBAAsB,CAAE,MAAO,CAAE;IACzD,CAAC;EACF,CAAC,EAAE,EAAG,CAAC;EAEP,MAAM;IAAEO;EAAwB,CAAC,GAAG,IAAAC,iBAAW,EAAEJ,YAAc,CAAC;EAEhE,IAAK,CAAET,SAAS,IAAI,CAAEE,QAAQ,EAAG;IAChC,OAAO,IAAI;EACZ;EAEA,MAAMY,aAAa,GAAGA,CAAE,GAAGC,IAAI,KAC9BH,uBAAuB,CAAEf,UAAU,EAAE,GAAGkB,IAAK,CAAC;EAE/C,OACC,IAAAC,QAAA,CAAAC,aAAA,EAACxB,OAAA,CAAAyB,mBAAmB,QACnB,IAAAF,QAAA,CAAAC,aAAA,EAACzB,WAAA,CAAA2B,SAAS;IACTC,KAAK,GAAArB,qBAAA,GACJG,QAAQ,EAAEmB,MAAM,EAAEC,UAAU,cAAAvB,qBAAA,cAAAA,qBAAA,GAAI,IAAAwB,QAAE,EAAE,iBAAkB,CACtD;IACDC,MAAM,EAAGvB,QAAU;IACnBwB,QAAQ,EAAGX;EAAe,GAE1B,IAAAE,QAAA,CAAAC,aAAA,EAACxB,OAAA,CAAAiC,oBAAoB,MAAE,CAAC,EACxB,IAAAV,QAAA,CAAAC,aAAA,EAACzB,WAAA,CAAAmC,QAAQ,QACR,IAAAX,QAAA,CAAAC,aAAA,EAACxB,OAAA,CAAAmC,mBAAmB,MAAE,CACb,CACA,CACS,CAAC;AAExB;AAAC,IAAAC,QAAA,GAEc/B,cAAc;AAAAgC,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_editor","_data","_coreData","_store","PANEL_NAME","PageAttributes","_postType$labels$attr","isEnabled","isOpened","postType","useSelect","select","getEditedPostAttribute","editorStore","isEditorPanelEnabled","isEditorPanelOpened","editPostStore","getPostType","coreStore","toggleEditorPanelOpened","useDispatch","onTogglePanel","args","_react","createElement","PageAttributesCheck","PanelBody","title","labels","attributes","__","opened","onToggle","PageAttributesParent","PanelRow","PageAttributesOrder","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/page-attributes/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, PanelRow } from '@wordpress/components';\nimport {\n\tstore as editorStore,\n\tPageAttributesCheck,\n\tPageAttributesOrder,\n\tPageAttributesParent,\n} from '@wordpress/editor';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { store as editPostStore } from '../../../store';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'page-attributes';\n\nexport function PageAttributes() {\n\tconst { isEnabled, isOpened, postType } = useSelect( ( select ) => {\n\t\tconst { getEditedPostAttribute } = select( editorStore );\n\t\tconst { isEditorPanelEnabled, isEditorPanelOpened } =\n\t\t\tselect( editPostStore );\n\t\tconst { getPostType } = select( coreStore );\n\t\treturn {\n\t\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t\tpostType: getPostType( getEditedPostAttribute( 'type' ) ),\n\t\t};\n\t}, [] );\n\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( ! isEnabled || ! postType ) {\n\t\treturn null;\n\t}\n\n\tconst onTogglePanel = ( ...args ) =>\n\t\ttoggleEditorPanelOpened( PANEL_NAME, ...args );\n\n\treturn (\n\t\t<PageAttributesCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={\n\t\t\t\t\tpostType?.labels?.attributes ?? __( 'Page attributes' )\n\t\t\t\t}\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PageAttributesParent />\n\t\t\t\t<PanelRow>\n\t\t\t\t\t<PageAttributesOrder />\n\t\t\t\t</PanelRow>\n\t\t\t</PanelBody>\n\t\t</PageAttributesCheck>\n\t);\n}\n\nexport default PageAttributes;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAMA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAA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;IACDC,MAAM,EAAGvB,QAAU;IACnBwB,QAAQ,EAAGX;EAAe,GAE1B,IAAAE,MAAA,CAAAC,aAAA,EAACxB,OAAA,CAAAiC,oBAAoB,MAAE,CAAC,EACxB,IAAAV,MAAA,CAAAC,aAAA,EAACzB,WAAA,CAAAmC,QAAQ,QACR,IAAAX,MAAA,CAAAC,aAAA,EAACxB,OAAA,CAAAmC,mBAAmB,MAAE,CACb,CACA,CACS,CAAC;AAExB;AAAC,IAAAC,QAAA,GAEc/B,cAAc;AAAAgC,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
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 _plugins = require("@wordpress/plugins");
11
11
  var _data = require("@wordpress/data");
@@ -33,12 +33,12 @@ const {
33
33
  * @param {string} [props.className] An optional class name added to the row.
34
34
  * @param {string} [props.title] The title of the panel
35
35
  * @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.
36
- * @param {WPElement} props.children Children to be rendered
36
+ * @param {Element} props.children Children to be rendered
37
37
  *
38
38
  * @example
39
39
  * ```js
40
40
  * // Using ES5 syntax
41
- * var el = wp.element.createElement;
41
+ * var el = React.createElement;
42
42
  * var __ = wp.i18n.__;
43
43
  * var registerPlugin = wp.plugins.registerPlugin;
44
44
  * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel;
@@ -75,7 +75,7 @@ const {
75
75
  * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
76
76
  * ```
77
77
  *
78
- * @return {WPComponent} The component to be rendered.
78
+ * @return {Component} The component to be rendered.
79
79
  */
80
80
  const PluginDocumentSettingPanel = ({
81
81
  name,
@@ -107,10 +107,10 @@ const PluginDocumentSettingPanel = ({
107
107
  if (undefined === name) {
108
108
  typeof SCRIPT_DEBUG !== "undefined" && SCRIPT_DEBUG === true ? (0, _warning.default)('PluginDocumentSettingPanel requires a name property.') : void 0;
109
109
  }
110
- return (0, _element.createElement)(_element.Fragment, null, (0, _element.createElement)(_options.EnablePluginDocumentSettingPanelOption, {
110
+ return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_options.EnablePluginDocumentSettingPanelOption, {
111
111
  label: title,
112
112
  panelName: panelName
113
- }), (0, _element.createElement)(Fill, null, isEnabled && (0, _element.createElement)(_components.PanelBody, {
113
+ }), (0, _react.createElement)(Fill, null, isEnabled && (0, _react.createElement)(_components.PanelBody, {
114
114
  className: className,
115
115
  title: title,
116
116
  icon: icon,
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_plugins","_data","_warning","_interopRequireDefault","_options","_store","Fill","Slot","createSlotFill","PluginDocumentSettingPanel","name","className","title","icon","children","pluginName","usePluginContext","panelName","opened","isEnabled","useSelect","select","isEditorPanelOpened","isEditorPanelEnabled","editPostStore","toggleEditorPanelOpened","useDispatch","undefined","SCRIPT_DEBUG","warning","_element","createElement","Fragment","EnablePluginDocumentSettingPanelOption","label","PanelBody","onToggle","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-document-setting-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelBody } from '@wordpress/components';\nimport { usePluginContext } from '@wordpress/plugins';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport warning from '@wordpress/warning';\n\n/**\n * Internal dependencies\n */\nimport { EnablePluginDocumentSettingPanelOption } from '../../preferences-modal/options';\nimport { store as editPostStore } from '../../../store';\n\nconst { Fill, Slot } = createSlotFill( 'PluginDocumentSettingPanel' );\n\n/**\n * Renders items below the Status & Availability panel in the Document Sidebar.\n *\n * @param {Object} props Component properties.\n * @param {string} props.name Required. A machine-friendly name for the panel.\n * @param {string} [props.className] An optional class name added to the row.\n * @param {string} [props.title] The title of the panel\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 el = wp.element.createElement;\n * var __ = wp.i18n.__;\n * var registerPlugin = wp.plugins.registerPlugin;\n * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel;\n *\n * function MyDocumentSettingPlugin() {\n * \treturn el(\n * \t\tPluginDocumentSettingPanel,\n * \t\t{\n * \t\t\tclassName: 'my-document-setting-plugin',\n * \t\t\ttitle: 'My Panel',\n * \t\t\tname: 'my-panel',\n * \t\t},\n * \t\t__( 'My Document Setting Panel' )\n * \t);\n * }\n *\n * registerPlugin( 'my-document-setting-plugin', {\n * \t\trender: MyDocumentSettingPlugin\n * } );\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { registerPlugin } from '@wordpress/plugins';\n * import { PluginDocumentSettingPanel } from '@wordpress/edit-post';\n *\n * const MyDocumentSettingTest = () => (\n * \t\t<PluginDocumentSettingPanel className=\"my-document-setting-plugin\" title=\"My Panel\" name=\"my-panel\">\n *\t\t\t<p>My Document Setting Panel</p>\n *\t\t</PluginDocumentSettingPanel>\n *\t);\n *\n * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );\n * ```\n *\n * @return {WPComponent} The component to be rendered.\n */\nconst PluginDocumentSettingPanel = ( {\n\tname,\n\tclassName,\n\ttitle,\n\ticon,\n\tchildren,\n} ) => {\n\tconst { name: pluginName } = usePluginContext();\n\tconst panelName = `${ pluginName }/${ name }`;\n\tconst { opened, isEnabled } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { isEditorPanelOpened, isEditorPanelEnabled } =\n\t\t\t\tselect( editPostStore );\n\n\t\t\treturn {\n\t\t\t\topened: isEditorPanelOpened( panelName ),\n\t\t\t\tisEnabled: isEditorPanelEnabled( panelName ),\n\t\t\t};\n\t\t},\n\t\t[ panelName ]\n\t);\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( undefined === name ) {\n\t\twarning( 'PluginDocumentSettingPanel requires a name property.' );\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<EnablePluginDocumentSettingPanelOption\n\t\t\t\tlabel={ title }\n\t\t\t\tpanelName={ panelName }\n\t\t\t/>\n\t\t\t<Fill>\n\t\t\t\t{ isEnabled && (\n\t\t\t\t\t<PanelBody\n\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\ttitle={ title }\n\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\topened={ opened }\n\t\t\t\t\t\tonToggle={ () => toggleEditorPanelOpened( panelName ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t</PanelBody>\n\t\t\t\t) }\n\t\t\t</Fill>\n\t\t</>\n\t);\n};\n\nPluginDocumentSettingPanel.Slot = Slot;\n\nexport default PluginDocumentSettingPanel;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAKA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAZA;AACA;AACA;;AAMA;AACA;AACA;;AAIA,MAAM;EAAEO,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,4BAA6B,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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SAAU;EAAG,GAErDH,QACQ,CAEP,CACL,CAAC;AAEL,CAAC;AAEDL,0BAA0B,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAA8B,QAAA,GAExB5B,0BAA0B;AAAA6B,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","_plugins","_data","_warning","_interopRequireDefault","_options","_store","Fill","Slot","createSlotFill","PluginDocumentSettingPanel","name","className","title","icon","children","pluginName","usePluginContext","panelName","opened","isEnabled","useSelect","select","isEditorPanelOpened","isEditorPanelEnabled","editPostStore","toggleEditorPanelOpened","useDispatch","undefined","SCRIPT_DEBUG","warning","_react","createElement","Fragment","EnablePluginDocumentSettingPanelOption","label","PanelBody","onToggle","_default","exports","default"],"sources":["@wordpress/edit-post/src/components/sidebar/plugin-document-setting-panel/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelBody } from '@wordpress/components';\nimport { usePluginContext } from '@wordpress/plugins';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport warning from '@wordpress/warning';\n\n/**\n * Internal dependencies\n */\nimport { EnablePluginDocumentSettingPanelOption } from '../../preferences-modal/options';\nimport { store as editPostStore } from '../../../store';\n\nconst { Fill, Slot } = createSlotFill( 'PluginDocumentSettingPanel' );\n\n/**\n * Renders items below the Status & Availability panel in the Document Sidebar.\n *\n * @param {Object} props Component properties.\n * @param {string} props.name Required. A machine-friendly name for the panel.\n * @param {string} [props.className] An optional class name added to the row.\n * @param {string} [props.title] The title of the panel\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 el = React.createElement;\n * var __ = wp.i18n.__;\n * var registerPlugin = wp.plugins.registerPlugin;\n * var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel;\n *\n * function MyDocumentSettingPlugin() {\n * \treturn el(\n * \t\tPluginDocumentSettingPanel,\n * \t\t{\n * \t\t\tclassName: 'my-document-setting-plugin',\n * \t\t\ttitle: 'My Panel',\n * \t\t\tname: 'my-panel',\n * \t\t},\n * \t\t__( 'My Document Setting Panel' )\n * \t);\n * }\n *\n * registerPlugin( 'my-document-setting-plugin', {\n * \t\trender: MyDocumentSettingPlugin\n * } );\n * ```\n *\n * @example\n * ```jsx\n * // Using ESNext syntax\n * import { registerPlugin } from '@wordpress/plugins';\n * import { PluginDocumentSettingPanel } from '@wordpress/edit-post';\n *\n * const MyDocumentSettingTest = () => (\n * \t\t<PluginDocumentSettingPanel className=\"my-document-setting-plugin\" title=\"My Panel\" name=\"my-panel\">\n *\t\t\t<p>My Document Setting Panel</p>\n *\t\t</PluginDocumentSettingPanel>\n *\t);\n *\n * registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );\n * ```\n *\n * @return {Component} The component to be rendered.\n */\nconst PluginDocumentSettingPanel = ( {\n\tname,\n\tclassName,\n\ttitle,\n\ticon,\n\tchildren,\n} ) => {\n\tconst { name: pluginName } = usePluginContext();\n\tconst panelName = `${ pluginName }/${ name }`;\n\tconst { opened, isEnabled } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { isEditorPanelOpened, isEditorPanelEnabled } =\n\t\t\t\tselect( editPostStore );\n\n\t\t\treturn {\n\t\t\t\topened: isEditorPanelOpened( panelName ),\n\t\t\t\tisEnabled: isEditorPanelEnabled( panelName ),\n\t\t\t};\n\t\t},\n\t\t[ panelName ]\n\t);\n\tconst { toggleEditorPanelOpened } = useDispatch( editPostStore );\n\n\tif ( undefined === name ) {\n\t\twarning( 'PluginDocumentSettingPanel requires a name property.' );\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<EnablePluginDocumentSettingPanelOption\n\t\t\t\tlabel={ title }\n\t\t\t\tpanelName={ panelName }\n\t\t\t/>\n\t\t\t<Fill>\n\t\t\t\t{ isEnabled && (\n\t\t\t\t\t<PanelBody\n\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\ttitle={ title }\n\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\topened={ opened }\n\t\t\t\t\t\tonToggle={ () => toggleEditorPanelOpened( panelName ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ children }\n\t\t\t\t\t</PanelBody>\n\t\t\t\t) }\n\t\t\t</Fill>\n\t\t</>\n\t);\n};\n\nPluginDocumentSettingPanel.Slot = Slot;\n\nexport default PluginDocumentSettingPanel;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAKA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAZA;AACA;AACA;;AAMA;AACA;AACA;;AAIA,MAAM;EAAEO,IAAI;EAAEC;AAAK,CAAC,GAAG,IAAAC,0BAAc,EAAE,4BAA6B,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,0BAA0B,GAAGA,CAAE;EACpCC,IAAI;EACJC,SAAS;EACTC,KAAK;EACLC,IAAI;EACJC;AACD,CAAC,KAAM;EACN,MAAM;IAAEJ,IAAI,EAAEK;EAAW,CAAC,GAAG,IAAAC,yBAAgB,EAAC,CAAC;EAC/C,MAAMC,SAAS,GAAI,GAAGF,UAAY,IAAIL,IAAM,EAAC;EAC7C,MAAM;IAAEQ,MAAM;IAAEC;EAAU,CAAC,GAAG,IAAAC,eAAS,EACpCC,MAAM,IAAM;IACb,MAAM;MAAEC,mBAAmB;MAAEC;IAAqB,CAAC,GAClDF,MAAM,CAAEG,YAAc,CAAC;IAExB,OAAO;MACNN,MAAM,EAAEI,mBAAmB,CAAEL,SAAU,CAAC;MACxCE,SAAS,EAAEI,oBAAoB,CAAEN,SAAU;IAC5C,CAAC;EACF,CAAC,EACD,CAAEA,SAAS,CACZ,CAAC;EACD,MAAM;IAAEQ;EAAwB,CAAC,GAAG,IAAAC,iBAAW,EAAEF,YAAc,CAAC;EAEhE,IAAKG,SAAS,KAAKjB,IAAI,EAAG;IACzB,OAAAkB,YAAA,oBAAAA,YAAA,gBAAAC,gBAAO,EAAE,sDAAuD,CAAC;EAClE;EAEA,OACC,IAAAC,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACC,IAAAF,MAAA,CAAAC,aAAA,EAAC3B,QAAA,CAAA6B,sCAAsC;IACtCC,KAAK,EAAGtB,KAAO;IACfK,SAAS,EAAGA;EAAW,CACvB,CAAC,EACF,IAAAa,MAAA,CAAAC,aAAA,EAACzB,IAAI,QACFa,SAAS,IACV,IAAAW,MAAA,CAAAC,aAAA,EAACjC,WAAA,CAAAqC,SAAS;IACTxB,SAAS,EAAGA,SAAW;IACvBC,KAAK,EAAGA,KAAO;IACfC,IAAI,EAAGA,IAAM;IACbK,MAAM,EAAGA,MAAQ;IACjBkB,QAAQ,EAAGA,CAAA,KAAMX,uBAAuB,CAAER,SAAU;EAAG,GAErDH,QACQ,CAEP,CACL,CAAC;AAEL,CAAC;AAEDL,0BAA0B,CAACF,IAAI,GAAGA,IAAI;AAAC,IAAA8B,QAAA,GAExB5B,0BAA0B;AAAA6B,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 _plugins = require("@wordpress/plugins");
9
9
  var _components = require("@wordpress/components");
10
10
  /**
@@ -25,7 +25,7 @@ const {
25
25
  * @param {string} [props.title] Title displayed at the top of the panel.
26
26
  * @param {boolean} [props.initialOpen=false] Whether to have the panel initially opened. When no title is provided it is always opened.
27
27
  * @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.
28
- * @param {WPElement} props.children Children to be rendered
28
+ * @param {Element} props.children Children to be rendered
29
29
  *
30
30
  * @example
31
31
  * ```js
@@ -34,7 +34,7 @@ const {
34
34
  * var PluginPostPublishPanel = wp.editPost.PluginPostPublishPanel;
35
35
  *
36
36
  * function MyPluginPostPublishPanel() {
37
- * return wp.element.createElement(
37
+ * return React.createElement(
38
38
  * PluginPostPublishPanel,
39
39
  * {
40
40
  * className: 'my-plugin-post-publish-panel',
@@ -63,7 +63,7 @@ const {
63
63
  * );
64
64
  * ```
65
65
  *
66
- * @return {WPComponent} The component to be rendered.
66
+ * @return {Component} The component to be rendered.
67
67
  */
68
68
  const PluginPostPublishPanel = ({
69
69
  children,
@@ -75,7 +75,7 @@ const PluginPostPublishPanel = ({
75
75
  const {
76
76
  icon: pluginIcon
77
77
  } = (0, _plugins.usePluginContext)();
78
- return (0, _element.createElement)(Fill, null, (0, _element.createElement)(_components.PanelBody, {
78
+ return (0, _react.createElement)(Fill, null, (0, _react.createElement)(_components.PanelBody, {
79
79
  className: className,
80
80
  initialOpen: initialOpen || !title,
81
81
  title: title,