@wordpress/editor 14.12.0 → 14.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (742) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +120 -99
  3. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
  4. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  5. package/build/components/collab-sidebar/add-comment.js +17 -65
  6. package/build/components/collab-sidebar/add-comment.js.map +1 -1
  7. package/build/components/collab-sidebar/comment-author-info.js +76 -0
  8. package/build/components/collab-sidebar/comment-author-info.js.map +1 -0
  9. package/build/components/collab-sidebar/comment-button-toolbar.js +2 -2
  10. package/build/components/collab-sidebar/comment-button-toolbar.js.map +1 -1
  11. package/build/components/collab-sidebar/comment-button.js +2 -2
  12. package/build/components/collab-sidebar/comment-button.js.map +1 -1
  13. package/build/components/collab-sidebar/comment-form.js +64 -0
  14. package/build/components/collab-sidebar/comment-form.js.map +1 -0
  15. package/build/components/collab-sidebar/comments.js +33 -91
  16. package/build/components/collab-sidebar/comments.js.map +1 -1
  17. package/build/components/create-template-part-modal/index.js +1 -2
  18. package/build/components/create-template-part-modal/index.js.map +1 -1
  19. package/build/components/document-bar/index.js +10 -3
  20. package/build/components/document-bar/index.js.map +1 -1
  21. package/build/components/document-outline/check.js +4 -4
  22. package/build/components/document-outline/check.js.map +1 -1
  23. package/build/components/document-outline/index.js +8 -8
  24. package/build/components/document-outline/index.js.map +1 -1
  25. package/build/components/document-tools/index.js +1 -1
  26. package/build/components/document-tools/index.js.map +1 -1
  27. package/build/components/editor-history/redo.js +1 -1
  28. package/build/components/editor-history/redo.js.map +1 -1
  29. package/build/components/editor-history/undo.js +1 -1
  30. package/build/components/editor-history/undo.js.map +1 -1
  31. package/build/components/editor-interface/content-slot-fill.js +1 -10
  32. package/build/components/editor-interface/content-slot-fill.js.map +1 -1
  33. package/build/components/editor-interface/index.js +3 -9
  34. package/build/components/editor-interface/index.js.map +1 -1
  35. package/build/components/editor-notices/index.js +1 -1
  36. package/build/components/editor-notices/index.js.map +1 -1
  37. package/build/components/editor-snackbars/index.js +1 -1
  38. package/build/components/editor-snackbars/index.js.map +1 -1
  39. package/build/components/entities-saved-states/entity-record-item.js +9 -1
  40. package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
  41. package/build/components/entities-saved-states/index.js +2 -2
  42. package/build/components/entities-saved-states/index.js.map +1 -1
  43. package/build/components/page-attributes/check.js +3 -3
  44. package/build/components/page-attributes/check.js.map +1 -1
  45. package/build/components/page-attributes/order.js +1 -1
  46. package/build/components/page-attributes/order.js.map +1 -1
  47. package/build/components/page-attributes/panel.js +1 -1
  48. package/build/components/page-attributes/panel.js.map +1 -1
  49. package/build/components/page-attributes/parent.js +1 -1
  50. package/build/components/page-attributes/parent.js.map +1 -1
  51. package/build/components/plugin-document-setting-panel/index.js +2 -2
  52. package/build/components/plugin-document-setting-panel/index.js.map +1 -1
  53. package/build/components/plugin-more-menu-item/index.js +2 -1
  54. package/build/components/plugin-more-menu-item/index.js.map +1 -1
  55. package/build/components/plugin-post-publish-panel/index.js +2 -2
  56. package/build/components/plugin-post-publish-panel/index.js.map +1 -1
  57. package/build/components/plugin-post-status-info/index.js +4 -4
  58. package/build/components/plugin-post-status-info/index.js.map +1 -1
  59. package/build/components/plugin-pre-publish-panel/index.js +2 -2
  60. package/build/components/plugin-pre-publish-panel/index.js.map +1 -1
  61. package/build/components/plugin-preview-menu-item/index.js +2 -1
  62. package/build/components/plugin-preview-menu-item/index.js.map +1 -1
  63. package/build/components/plugin-sidebar/index.js +1 -0
  64. package/build/components/plugin-sidebar/index.js.map +1 -1
  65. package/build/components/plugin-sidebar-more-menu-item/index.js +2 -1
  66. package/build/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
  67. package/build/components/post-actions/actions.js +3 -3
  68. package/build/components/post-actions/actions.js.map +1 -1
  69. package/build/components/post-author/check.js +3 -3
  70. package/build/components/post-author/check.js.map +1 -1
  71. package/build/components/post-author/index.js +1 -1
  72. package/build/components/post-author/index.js.map +1 -1
  73. package/build/components/post-author/panel.js +1 -1
  74. package/build/components/post-author/panel.js.map +1 -1
  75. package/build/components/post-card-panel/index.js +9 -4
  76. package/build/components/post-card-panel/index.js.map +1 -1
  77. package/build/components/post-comments/index.js +1 -1
  78. package/build/components/post-comments/index.js.map +1 -1
  79. package/build/components/post-discussion/panel.js +1 -1
  80. package/build/components/post-discussion/panel.js.map +1 -1
  81. package/build/components/post-excerpt/check.js +3 -3
  82. package/build/components/post-excerpt/check.js.map +1 -1
  83. package/build/components/post-excerpt/panel.js +1 -1
  84. package/build/components/post-excerpt/panel.js.map +1 -1
  85. package/build/components/post-excerpt/plugin.js +4 -4
  86. package/build/components/post-excerpt/plugin.js.map +1 -1
  87. package/build/components/post-featured-image/check.js +3 -3
  88. package/build/components/post-featured-image/check.js.map +1 -1
  89. package/build/components/post-featured-image/index.js +39 -9
  90. package/build/components/post-featured-image/index.js.map +1 -1
  91. package/build/components/post-featured-image/panel.js +1 -1
  92. package/build/components/post-featured-image/panel.js.map +1 -1
  93. package/build/components/post-fields/index.js +70 -0
  94. package/build/components/post-fields/index.js.map +1 -0
  95. package/build/components/post-format/check.js +9 -12
  96. package/build/components/post-format/check.js.map +1 -1
  97. package/build/components/post-format/index.js +1 -1
  98. package/build/components/post-format/index.js.map +1 -1
  99. package/build/components/post-format/panel.js +1 -1
  100. package/build/components/post-format/panel.js.map +1 -1
  101. package/build/components/post-last-revision/check.js +3 -3
  102. package/build/components/post-last-revision/check.js.map +1 -1
  103. package/build/components/post-last-revision/index.js +1 -1
  104. package/build/components/post-last-revision/index.js.map +1 -1
  105. package/build/components/post-last-revision/panel.js +1 -1
  106. package/build/components/post-last-revision/panel.js.map +1 -1
  107. package/build/components/post-locked-modal/index.js +1 -1
  108. package/build/components/post-locked-modal/index.js.map +1 -1
  109. package/build/components/post-pending-status/check.js +3 -3
  110. package/build/components/post-pending-status/check.js.map +1 -1
  111. package/build/components/post-pending-status/index.js +1 -1
  112. package/build/components/post-pending-status/index.js.map +1 -1
  113. package/build/components/post-preview-button/index.js +1 -1
  114. package/build/components/post-preview-button/index.js.map +1 -1
  115. package/build/components/post-publish-panel/index.js +5 -2
  116. package/build/components/post-publish-panel/index.js.map +1 -1
  117. package/build/components/post-schedule/check.js +3 -3
  118. package/build/components/post-schedule/check.js.map +1 -1
  119. package/build/components/post-schedule/index.js +1 -1
  120. package/build/components/post-schedule/index.js.map +1 -1
  121. package/build/components/post-schedule/label.js +1 -1
  122. package/build/components/post-schedule/label.js.map +1 -1
  123. package/build/components/post-schedule/panel.js +1 -1
  124. package/build/components/post-schedule/panel.js.map +1 -1
  125. package/build/components/post-slug/check.js +3 -3
  126. package/build/components/post-slug/check.js.map +1 -1
  127. package/build/components/post-slug/index.js +1 -1
  128. package/build/components/post-slug/index.js.map +1 -1
  129. package/build/components/post-sticky/check.js +3 -3
  130. package/build/components/post-sticky/check.js.map +1 -1
  131. package/build/components/post-sticky/index.js +1 -1
  132. package/build/components/post-sticky/index.js.map +1 -1
  133. package/build/components/post-switch-to-draft-button/index.js +1 -1
  134. package/build/components/post-switch-to-draft-button/index.js.map +1 -1
  135. package/build/components/post-sync-status/index.js +1 -1
  136. package/build/components/post-sync-status/index.js.map +1 -1
  137. package/build/components/post-taxonomies/check.js +3 -3
  138. package/build/components/post-taxonomies/check.js.map +1 -1
  139. package/build/components/post-taxonomies/flat-term-selector.js +1 -1
  140. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  141. package/build/components/post-taxonomies/panel.js +16 -13
  142. package/build/components/post-taxonomies/panel.js.map +1 -1
  143. package/build/components/post-template/classic-theme.js +2 -2
  144. package/build/components/post-template/classic-theme.js.map +1 -1
  145. package/build/components/post-template/panel.js +1 -1
  146. package/build/components/post-template/panel.js.map +1 -1
  147. package/build/components/post-text-editor/index.js +1 -1
  148. package/build/components/post-text-editor/index.js.map +1 -1
  149. package/build/components/post-title/index.js +20 -18
  150. package/build/components/post-title/index.js.map +1 -1
  151. package/build/components/post-title/post-title-raw.js +1 -1
  152. package/build/components/post-title/post-title-raw.js.map +1 -1
  153. package/build/components/post-trash/check.js +3 -3
  154. package/build/components/post-trash/check.js.map +1 -1
  155. package/build/components/post-trash/index.js +1 -1
  156. package/build/components/post-trash/index.js.map +1 -1
  157. package/build/components/post-type-support-check/index.js +6 -6
  158. package/build/components/post-type-support-check/index.js.map +1 -1
  159. package/build/components/post-url/check.js +3 -3
  160. package/build/components/post-url/check.js.map +1 -1
  161. package/build/components/post-url/index.js +1 -1
  162. package/build/components/post-url/index.js.map +1 -1
  163. package/build/components/post-url/label.js +1 -1
  164. package/build/components/post-url/label.js.map +1 -1
  165. package/build/components/post-url/panel.js +1 -1
  166. package/build/components/post-url/panel.js.map +1 -1
  167. package/build/components/post-visibility/check.js +1 -1
  168. package/build/components/post-visibility/check.js.map +1 -1
  169. package/build/components/post-visibility/index.js +1 -1
  170. package/build/components/post-visibility/index.js.map +1 -1
  171. package/build/components/preferences-modal/block-visibility.js +87 -0
  172. package/build/components/preferences-modal/block-visibility.js.map +1 -0
  173. package/build/components/preferences-modal/enable-panel.js +27 -19
  174. package/build/components/preferences-modal/enable-panel.js.map +1 -1
  175. package/build/components/preferences-modal/enable-publish-sidebar.js +13 -10
  176. package/build/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
  177. package/build/components/preferences-modal/index.js +2 -2
  178. package/build/components/preferences-modal/index.js.map +1 -1
  179. package/build/components/provider/index.js +14 -8
  180. package/build/components/provider/index.js.map +1 -1
  181. package/build/components/table-of-contents/index.js +1 -1
  182. package/build/components/table-of-contents/index.js.map +1 -1
  183. package/build/components/theme-support-check/index.js +4 -4
  184. package/build/components/theme-support-check/index.js.map +1 -1
  185. package/build/components/time-to-read/index.js +1 -1
  186. package/build/components/time-to-read/index.js.map +1 -1
  187. package/build/components/unsaved-changes-warning/index.js +1 -1
  188. package/build/components/unsaved-changes-warning/index.js.map +1 -1
  189. package/build/components/word-count/index.js +1 -1
  190. package/build/components/word-count/index.js.map +1 -1
  191. package/build/components/zoom-out-toggle/index.js +8 -3
  192. package/build/components/zoom-out-toggle/index.js.map +1 -1
  193. package/build/dataviews/api.js +41 -0
  194. package/build/dataviews/api.js.map +1 -1
  195. package/build/dataviews/store/private-actions.js +26 -4
  196. package/build/dataviews/store/private-actions.js.map +1 -1
  197. package/build/dataviews/store/private-selectors.js +5 -0
  198. package/build/dataviews/store/private-selectors.js.map +1 -1
  199. package/build/dataviews/store/reducer.js +23 -0
  200. package/build/dataviews/store/reducer.js.map +1 -1
  201. package/build/private-apis.js +4 -0
  202. package/build/private-apis.js.map +1 -1
  203. package/build/store/actions.js +11 -9
  204. package/build/store/actions.js.map +1 -1
  205. package/build/store/private-selectors.js +5 -1
  206. package/build/store/private-selectors.js.map +1 -1
  207. package/build/store/reducer.native.js +1 -0
  208. package/build/store/reducer.native.js.map +1 -1
  209. package/build/store/selectors.js +34 -42
  210. package/build/store/selectors.js.map +1 -1
  211. package/build/utils/get-template-info.js +60 -0
  212. package/build/utils/get-template-info.js.map +1 -0
  213. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
  214. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  215. package/build-module/components/collab-sidebar/add-comment.js +18 -67
  216. package/build-module/components/collab-sidebar/add-comment.js.map +1 -1
  217. package/build-module/components/collab-sidebar/comment-author-info.js +71 -0
  218. package/build-module/components/collab-sidebar/comment-author-info.js.map +1 -0
  219. package/build-module/components/collab-sidebar/comment-button-toolbar.js +2 -2
  220. package/build-module/components/collab-sidebar/comment-button-toolbar.js.map +1 -1
  221. package/build-module/components/collab-sidebar/comment-button.js +2 -2
  222. package/build-module/components/collab-sidebar/comment-button.js.map +1 -1
  223. package/build-module/components/collab-sidebar/comment-form.js +59 -0
  224. package/build-module/components/collab-sidebar/comment-form.js.map +1 -0
  225. package/build-module/components/collab-sidebar/comments.js +33 -91
  226. package/build-module/components/collab-sidebar/comments.js.map +1 -1
  227. package/build-module/components/create-template-part-modal/index.js +1 -2
  228. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  229. package/build-module/components/document-bar/index.js +10 -3
  230. package/build-module/components/document-bar/index.js.map +1 -1
  231. package/build-module/components/document-outline/check.js +4 -4
  232. package/build-module/components/document-outline/check.js.map +1 -1
  233. package/build-module/components/document-outline/index.js +8 -8
  234. package/build-module/components/document-outline/index.js.map +1 -1
  235. package/build-module/components/document-tools/index.js +1 -1
  236. package/build-module/components/document-tools/index.js.map +1 -1
  237. package/build-module/components/editor-history/redo.js +1 -1
  238. package/build-module/components/editor-history/redo.js.map +1 -1
  239. package/build-module/components/editor-history/undo.js +1 -1
  240. package/build-module/components/editor-history/undo.js.map +1 -1
  241. package/build-module/components/editor-interface/content-slot-fill.js +2 -11
  242. package/build-module/components/editor-interface/content-slot-fill.js.map +1 -1
  243. package/build-module/components/editor-interface/index.js +4 -10
  244. package/build-module/components/editor-interface/index.js.map +1 -1
  245. package/build-module/components/editor-notices/index.js +1 -1
  246. package/build-module/components/editor-notices/index.js.map +1 -1
  247. package/build-module/components/editor-snackbars/index.js +1 -1
  248. package/build-module/components/editor-snackbars/index.js.map +1 -1
  249. package/build-module/components/entities-saved-states/entity-record-item.js +9 -1
  250. package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
  251. package/build-module/components/entities-saved-states/index.js +2 -2
  252. package/build-module/components/entities-saved-states/index.js.map +1 -1
  253. package/build-module/components/page-attributes/check.js +3 -3
  254. package/build-module/components/page-attributes/check.js.map +1 -1
  255. package/build-module/components/page-attributes/order.js +1 -1
  256. package/build-module/components/page-attributes/order.js.map +1 -1
  257. package/build-module/components/page-attributes/panel.js +1 -1
  258. package/build-module/components/page-attributes/panel.js.map +1 -1
  259. package/build-module/components/page-attributes/parent.js +1 -1
  260. package/build-module/components/page-attributes/parent.js.map +1 -1
  261. package/build-module/components/plugin-document-setting-panel/index.js +2 -2
  262. package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
  263. package/build-module/components/plugin-more-menu-item/index.js +2 -1
  264. package/build-module/components/plugin-more-menu-item/index.js.map +1 -1
  265. package/build-module/components/plugin-post-publish-panel/index.js +2 -2
  266. package/build-module/components/plugin-post-publish-panel/index.js.map +1 -1
  267. package/build-module/components/plugin-post-status-info/index.js +4 -4
  268. package/build-module/components/plugin-post-status-info/index.js.map +1 -1
  269. package/build-module/components/plugin-pre-publish-panel/index.js +2 -2
  270. package/build-module/components/plugin-pre-publish-panel/index.js.map +1 -1
  271. package/build-module/components/plugin-preview-menu-item/index.js +2 -1
  272. package/build-module/components/plugin-preview-menu-item/index.js.map +1 -1
  273. package/build-module/components/plugin-sidebar/index.js +1 -0
  274. package/build-module/components/plugin-sidebar/index.js.map +1 -1
  275. package/build-module/components/plugin-sidebar-more-menu-item/index.js +2 -1
  276. package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
  277. package/build-module/components/post-actions/actions.js +3 -3
  278. package/build-module/components/post-actions/actions.js.map +1 -1
  279. package/build-module/components/post-author/check.js +3 -3
  280. package/build-module/components/post-author/check.js.map +1 -1
  281. package/build-module/components/post-author/index.js +1 -1
  282. package/build-module/components/post-author/index.js.map +1 -1
  283. package/build-module/components/post-author/panel.js +1 -1
  284. package/build-module/components/post-author/panel.js.map +1 -1
  285. package/build-module/components/post-card-panel/index.js +9 -4
  286. package/build-module/components/post-card-panel/index.js.map +1 -1
  287. package/build-module/components/post-comments/index.js +1 -1
  288. package/build-module/components/post-comments/index.js.map +1 -1
  289. package/build-module/components/post-discussion/panel.js +1 -1
  290. package/build-module/components/post-discussion/panel.js.map +1 -1
  291. package/build-module/components/post-excerpt/check.js +3 -3
  292. package/build-module/components/post-excerpt/check.js.map +1 -1
  293. package/build-module/components/post-excerpt/panel.js +1 -1
  294. package/build-module/components/post-excerpt/panel.js.map +1 -1
  295. package/build-module/components/post-excerpt/plugin.js +4 -4
  296. package/build-module/components/post-excerpt/plugin.js.map +1 -1
  297. package/build-module/components/post-featured-image/check.js +3 -3
  298. package/build-module/components/post-featured-image/check.js.map +1 -1
  299. package/build-module/components/post-featured-image/index.js +40 -10
  300. package/build-module/components/post-featured-image/index.js.map +1 -1
  301. package/build-module/components/post-featured-image/panel.js +1 -1
  302. package/build-module/components/post-featured-image/panel.js.map +1 -1
  303. package/build-module/components/post-fields/index.js +62 -0
  304. package/build-module/components/post-fields/index.js.map +1 -0
  305. package/build-module/components/post-format/check.js +10 -11
  306. package/build-module/components/post-format/check.js.map +1 -1
  307. package/build-module/components/post-format/index.js +1 -1
  308. package/build-module/components/post-format/index.js.map +1 -1
  309. package/build-module/components/post-format/panel.js +1 -1
  310. package/build-module/components/post-format/panel.js.map +1 -1
  311. package/build-module/components/post-last-revision/check.js +3 -3
  312. package/build-module/components/post-last-revision/check.js.map +1 -1
  313. package/build-module/components/post-last-revision/index.js +1 -1
  314. package/build-module/components/post-last-revision/index.js.map +1 -1
  315. package/build-module/components/post-last-revision/panel.js +1 -1
  316. package/build-module/components/post-last-revision/panel.js.map +1 -1
  317. package/build-module/components/post-locked-modal/index.js +1 -1
  318. package/build-module/components/post-locked-modal/index.js.map +1 -1
  319. package/build-module/components/post-pending-status/check.js +3 -3
  320. package/build-module/components/post-pending-status/check.js.map +1 -1
  321. package/build-module/components/post-pending-status/index.js +1 -1
  322. package/build-module/components/post-pending-status/index.js.map +1 -1
  323. package/build-module/components/post-preview-button/index.js +1 -1
  324. package/build-module/components/post-preview-button/index.js.map +1 -1
  325. package/build-module/components/post-publish-panel/index.js +5 -2
  326. package/build-module/components/post-publish-panel/index.js.map +1 -1
  327. package/build-module/components/post-schedule/check.js +3 -3
  328. package/build-module/components/post-schedule/check.js.map +1 -1
  329. package/build-module/components/post-schedule/index.js +1 -1
  330. package/build-module/components/post-schedule/index.js.map +1 -1
  331. package/build-module/components/post-schedule/label.js +1 -1
  332. package/build-module/components/post-schedule/label.js.map +1 -1
  333. package/build-module/components/post-schedule/panel.js +1 -1
  334. package/build-module/components/post-schedule/panel.js.map +1 -1
  335. package/build-module/components/post-slug/check.js +3 -3
  336. package/build-module/components/post-slug/check.js.map +1 -1
  337. package/build-module/components/post-slug/index.js +1 -1
  338. package/build-module/components/post-slug/index.js.map +1 -1
  339. package/build-module/components/post-sticky/check.js +3 -3
  340. package/build-module/components/post-sticky/check.js.map +1 -1
  341. package/build-module/components/post-sticky/index.js +1 -1
  342. package/build-module/components/post-sticky/index.js.map +1 -1
  343. package/build-module/components/post-switch-to-draft-button/index.js +1 -1
  344. package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
  345. package/build-module/components/post-sync-status/index.js +1 -1
  346. package/build-module/components/post-sync-status/index.js.map +1 -1
  347. package/build-module/components/post-taxonomies/check.js +3 -3
  348. package/build-module/components/post-taxonomies/check.js.map +1 -1
  349. package/build-module/components/post-taxonomies/flat-term-selector.js +1 -1
  350. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  351. package/build-module/components/post-taxonomies/panel.js +17 -12
  352. package/build-module/components/post-taxonomies/panel.js.map +1 -1
  353. package/build-module/components/post-template/classic-theme.js +2 -2
  354. package/build-module/components/post-template/classic-theme.js.map +1 -1
  355. package/build-module/components/post-template/panel.js +1 -1
  356. package/build-module/components/post-template/panel.js.map +1 -1
  357. package/build-module/components/post-text-editor/index.js +1 -1
  358. package/build-module/components/post-text-editor/index.js.map +1 -1
  359. package/build-module/components/post-title/index.js +20 -18
  360. package/build-module/components/post-title/index.js.map +1 -1
  361. package/build-module/components/post-title/post-title-raw.js +1 -1
  362. package/build-module/components/post-title/post-title-raw.js.map +1 -1
  363. package/build-module/components/post-trash/check.js +3 -3
  364. package/build-module/components/post-trash/check.js.map +1 -1
  365. package/build-module/components/post-trash/index.js +1 -1
  366. package/build-module/components/post-trash/index.js.map +1 -1
  367. package/build-module/components/post-type-support-check/index.js +6 -6
  368. package/build-module/components/post-type-support-check/index.js.map +1 -1
  369. package/build-module/components/post-url/check.js +3 -3
  370. package/build-module/components/post-url/check.js.map +1 -1
  371. package/build-module/components/post-url/index.js +1 -1
  372. package/build-module/components/post-url/index.js.map +1 -1
  373. package/build-module/components/post-url/label.js +1 -1
  374. package/build-module/components/post-url/label.js.map +1 -1
  375. package/build-module/components/post-url/panel.js +1 -1
  376. package/build-module/components/post-url/panel.js.map +1 -1
  377. package/build-module/components/post-visibility/check.js +1 -1
  378. package/build-module/components/post-visibility/check.js.map +1 -1
  379. package/build-module/components/post-visibility/index.js +1 -1
  380. package/build-module/components/post-visibility/index.js.map +1 -1
  381. package/build-module/components/preferences-modal/block-visibility.js +80 -0
  382. package/build-module/components/preferences-modal/block-visibility.js.map +1 -0
  383. package/build-module/components/preferences-modal/enable-panel.js +27 -19
  384. package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
  385. package/build-module/components/preferences-modal/enable-publish-sidebar.js +13 -10
  386. package/build-module/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
  387. package/build-module/components/preferences-modal/index.js +2 -2
  388. package/build-module/components/preferences-modal/index.js.map +1 -1
  389. package/build-module/components/provider/index.js +14 -8
  390. package/build-module/components/provider/index.js.map +1 -1
  391. package/build-module/components/table-of-contents/index.js +1 -1
  392. package/build-module/components/table-of-contents/index.js.map +1 -1
  393. package/build-module/components/theme-support-check/index.js +4 -4
  394. package/build-module/components/theme-support-check/index.js.map +1 -1
  395. package/build-module/components/time-to-read/index.js +1 -1
  396. package/build-module/components/time-to-read/index.js.map +1 -1
  397. package/build-module/components/unsaved-changes-warning/index.js +1 -1
  398. package/build-module/components/unsaved-changes-warning/index.js.map +1 -1
  399. package/build-module/components/word-count/index.js +1 -1
  400. package/build-module/components/word-count/index.js.map +1 -1
  401. package/build-module/components/zoom-out-toggle/index.js +8 -3
  402. package/build-module/components/zoom-out-toggle/index.js.map +1 -1
  403. package/build-module/dataviews/api.js +39 -0
  404. package/build-module/dataviews/api.js.map +1 -1
  405. package/build-module/dataviews/store/private-actions.js +23 -3
  406. package/build-module/dataviews/store/private-actions.js.map +1 -1
  407. package/build-module/dataviews/store/private-selectors.js +4 -0
  408. package/build-module/dataviews/store/private-selectors.js.map +1 -1
  409. package/build-module/dataviews/store/reducer.js +23 -0
  410. package/build-module/dataviews/store/reducer.js.map +1 -1
  411. package/build-module/private-apis.js +4 -0
  412. package/build-module/private-apis.js.map +1 -1
  413. package/build-module/store/actions.js +11 -9
  414. package/build-module/store/actions.js.map +1 -1
  415. package/build-module/store/private-selectors.js +6 -3
  416. package/build-module/store/private-selectors.js.map +1 -1
  417. package/build-module/store/reducer.native.js +2 -1
  418. package/build-module/store/reducer.native.js.map +1 -1
  419. package/build-module/store/selectors.js +33 -39
  420. package/build-module/store/selectors.js.map +1 -1
  421. package/build-module/utils/get-template-info.js +51 -0
  422. package/build-module/utils/get-template-info.js.map +1 -0
  423. package/build-style/style-rtl.css +11 -81
  424. package/build-style/style.css +11 -81
  425. package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +2 -2
  426. package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
  427. package/build-types/components/collab-sidebar/add-comment.d.ts +2 -2
  428. package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
  429. package/build-types/components/collab-sidebar/comment-author-info.d.ts +17 -0
  430. package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +1 -0
  431. package/build-types/components/collab-sidebar/comment-form.d.ts +18 -0
  432. package/build-types/components/collab-sidebar/comment-form.d.ts.map +1 -0
  433. package/build-types/components/collab-sidebar/comments.d.ts +2 -2
  434. package/build-types/components/collab-sidebar/comments.d.ts.map +1 -1
  435. package/build-types/components/create-template-part-modal/index.d.ts.map +1 -1
  436. package/build-types/components/document-bar/index.d.ts +2 -2
  437. package/build-types/components/document-bar/index.d.ts.map +1 -1
  438. package/build-types/components/document-outline/check.d.ts +5 -5
  439. package/build-types/components/document-outline/check.d.ts.map +1 -1
  440. package/build-types/components/document-outline/index.d.ts +4 -6
  441. package/build-types/components/document-outline/index.d.ts.map +1 -1
  442. package/build-types/components/document-tools/index.d.ts.map +1 -1
  443. package/build-types/components/editor-interface/content-slot-fill.d.ts +12 -1
  444. package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -1
  445. package/build-types/components/editor-interface/index.d.ts.map +1 -1
  446. package/build-types/components/editor-notices/index.d.ts +2 -2
  447. package/build-types/components/editor-notices/index.d.ts.map +1 -1
  448. package/build-types/components/editor-snackbars/index.d.ts +2 -2
  449. package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
  450. package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -1
  451. package/build-types/components/entities-saved-states/index.d.ts +4 -4
  452. package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
  453. package/build-types/components/header/back-button.d.ts.map +1 -1
  454. package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
  455. package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
  456. package/build-types/components/page-attributes/check.d.ts +5 -5
  457. package/build-types/components/page-attributes/check.d.ts.map +1 -1
  458. package/build-types/components/page-attributes/order.d.ts +2 -2
  459. package/build-types/components/page-attributes/order.d.ts.map +1 -1
  460. package/build-types/components/page-attributes/panel.d.ts +2 -2
  461. package/build-types/components/page-attributes/panel.d.ts.map +1 -1
  462. package/build-types/components/page-attributes/parent.d.ts +2 -2
  463. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  464. package/build-types/components/plugin-document-setting-panel/index.d.ts +4 -4
  465. package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
  466. package/build-types/components/plugin-more-menu-item/index.d.ts +4 -2
  467. package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -1
  468. package/build-types/components/plugin-post-publish-panel/index.d.ts +4 -4
  469. package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
  470. package/build-types/components/plugin-post-status-info/index.d.ts +6 -6
  471. package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
  472. package/build-types/components/plugin-pre-publish-panel/index.d.ts +4 -4
  473. package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
  474. package/build-types/components/plugin-preview-menu-item/index.d.ts +4 -2
  475. package/build-types/components/plugin-preview-menu-item/index.d.ts.map +1 -1
  476. package/build-types/components/plugin-sidebar/index.d.ts +2 -0
  477. package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
  478. package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +4 -2
  479. package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
  480. package/build-types/components/post-author/check.d.ts +5 -5
  481. package/build-types/components/post-author/check.d.ts.map +1 -1
  482. package/build-types/components/post-author/index.d.ts +2 -2
  483. package/build-types/components/post-author/index.d.ts.map +1 -1
  484. package/build-types/components/post-author/panel.d.ts +2 -2
  485. package/build-types/components/post-author/panel.d.ts.map +1 -1
  486. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  487. package/build-types/components/post-discussion/panel.d.ts +2 -2
  488. package/build-types/components/post-discussion/panel.d.ts.map +1 -1
  489. package/build-types/components/post-excerpt/check.d.ts +5 -5
  490. package/build-types/components/post-excerpt/check.d.ts.map +1 -1
  491. package/build-types/components/post-excerpt/panel.d.ts +2 -2
  492. package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
  493. package/build-types/components/post-excerpt/plugin.d.ts +6 -6
  494. package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
  495. package/build-types/components/post-featured-image/check.d.ts +5 -5
  496. package/build-types/components/post-featured-image/check.d.ts.map +1 -1
  497. package/build-types/components/post-featured-image/panel.d.ts +2 -2
  498. package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
  499. package/build-types/components/post-fields/index.d.ts +12 -0
  500. package/build-types/components/post-fields/index.d.ts.map +1 -0
  501. package/build-types/components/post-format/check.d.ts +11 -4
  502. package/build-types/components/post-format/check.d.ts.map +1 -1
  503. package/build-types/components/post-format/index.d.ts +2 -2
  504. package/build-types/components/post-format/index.d.ts.map +1 -1
  505. package/build-types/components/post-format/panel.d.ts +2 -2
  506. package/build-types/components/post-format/panel.d.ts.map +1 -1
  507. package/build-types/components/post-last-revision/check.d.ts +5 -5
  508. package/build-types/components/post-last-revision/check.d.ts.map +1 -1
  509. package/build-types/components/post-last-revision/index.d.ts +2 -2
  510. package/build-types/components/post-last-revision/index.d.ts.map +1 -1
  511. package/build-types/components/post-last-revision/panel.d.ts +2 -2
  512. package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
  513. package/build-types/components/post-locked-modal/index.d.ts +2 -2
  514. package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
  515. package/build-types/components/post-pending-status/check.d.ts +5 -5
  516. package/build-types/components/post-pending-status/check.d.ts.map +1 -1
  517. package/build-types/components/post-pending-status/index.d.ts +2 -2
  518. package/build-types/components/post-pending-status/index.d.ts.map +1 -1
  519. package/build-types/components/post-preview-button/index.d.ts +2 -2
  520. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  521. package/build-types/components/post-publish-panel/index.d.ts.map +1 -1
  522. package/build-types/components/post-schedule/check.d.ts +5 -5
  523. package/build-types/components/post-schedule/check.d.ts.map +1 -1
  524. package/build-types/components/post-schedule/index.d.ts +2 -2
  525. package/build-types/components/post-schedule/index.d.ts.map +1 -1
  526. package/build-types/components/post-schedule/label.d.ts +2 -2
  527. package/build-types/components/post-schedule/label.d.ts.map +1 -1
  528. package/build-types/components/post-schedule/panel.d.ts +2 -2
  529. package/build-types/components/post-schedule/panel.d.ts.map +1 -1
  530. package/build-types/components/post-slug/check.d.ts +5 -5
  531. package/build-types/components/post-slug/check.d.ts.map +1 -1
  532. package/build-types/components/post-slug/index.d.ts +2 -2
  533. package/build-types/components/post-slug/index.d.ts.map +1 -1
  534. package/build-types/components/post-sticky/check.d.ts +5 -5
  535. package/build-types/components/post-sticky/check.d.ts.map +1 -1
  536. package/build-types/components/post-sticky/index.d.ts +2 -2
  537. package/build-types/components/post-sticky/index.d.ts.map +1 -1
  538. package/build-types/components/post-switch-to-draft-button/index.d.ts +2 -2
  539. package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
  540. package/build-types/components/post-sync-status/index.d.ts +2 -2
  541. package/build-types/components/post-sync-status/index.d.ts.map +1 -1
  542. package/build-types/components/post-taxonomies/check.d.ts +5 -5
  543. package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
  544. package/build-types/components/post-taxonomies/flat-term-selector.d.ts +2 -2
  545. package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
  546. package/build-types/components/post-taxonomies/panel.d.ts +6 -2
  547. package/build-types/components/post-taxonomies/panel.d.ts.map +1 -1
  548. package/build-types/components/post-template/panel.d.ts +2 -2
  549. package/build-types/components/post-template/panel.d.ts.map +1 -1
  550. package/build-types/components/post-text-editor/index.d.ts +2 -2
  551. package/build-types/components/post-text-editor/index.d.ts.map +1 -1
  552. package/build-types/components/post-title/index.d.ts +1 -1
  553. package/build-types/components/post-trash/check.d.ts +5 -5
  554. package/build-types/components/post-trash/check.d.ts.map +1 -1
  555. package/build-types/components/post-trash/index.d.ts +2 -2
  556. package/build-types/components/post-trash/index.d.ts.map +1 -1
  557. package/build-types/components/post-type-support-check/index.d.ts +8 -8
  558. package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
  559. package/build-types/components/post-url/check.d.ts +5 -5
  560. package/build-types/components/post-url/check.d.ts.map +1 -1
  561. package/build-types/components/post-url/index.d.ts +2 -2
  562. package/build-types/components/post-url/index.d.ts.map +1 -1
  563. package/build-types/components/post-url/label.d.ts +2 -2
  564. package/build-types/components/post-url/label.d.ts.map +1 -1
  565. package/build-types/components/post-url/panel.d.ts +2 -2
  566. package/build-types/components/post-url/panel.d.ts.map +1 -1
  567. package/build-types/components/post-visibility/check.d.ts +2 -2
  568. package/build-types/components/post-visibility/check.d.ts.map +1 -1
  569. package/build-types/components/post-visibility/index.d.ts +2 -2
  570. package/build-types/components/post-visibility/index.d.ts.map +1 -1
  571. package/build-types/components/preferences-modal/block-visibility.d.ts +2 -0
  572. package/build-types/components/preferences-modal/block-visibility.d.ts.map +1 -0
  573. package/build-types/components/preferences-modal/enable-panel.d.ts +1 -2
  574. package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -1
  575. package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
  576. package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +1 -2
  577. package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -1
  578. package/build-types/components/provider/index.d.ts +2 -2
  579. package/build-types/components/provider/index.d.ts.map +1 -1
  580. package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
  581. package/build-types/components/theme-support-check/index.d.ts +6 -6
  582. package/build-types/components/theme-support-check/index.d.ts.map +1 -1
  583. package/build-types/components/time-to-read/index.d.ts +2 -2
  584. package/build-types/components/time-to-read/index.d.ts.map +1 -1
  585. package/build-types/components/unsaved-changes-warning/index.d.ts +2 -2
  586. package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
  587. package/build-types/components/word-count/index.d.ts +2 -2
  588. package/build-types/components/word-count/index.d.ts.map +1 -1
  589. package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -1
  590. package/build-types/dataviews/api.d.ts +24 -0
  591. package/build-types/dataviews/api.d.ts.map +1 -1
  592. package/build-types/dataviews/store/private-actions.d.ts +14 -2
  593. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  594. package/build-types/dataviews/store/private-selectors.d.ts +1 -0
  595. package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
  596. package/build-types/dataviews/store/reducer.d.ts +10 -2
  597. package/build-types/dataviews/store/reducer.d.ts.map +1 -1
  598. package/build-types/private-apis.d.ts.map +1 -1
  599. package/build-types/store/actions.d.ts +7 -5
  600. package/build-types/store/actions.d.ts.map +1 -1
  601. package/build-types/store/private-selectors.d.ts +1 -0
  602. package/build-types/store/private-selectors.d.ts.map +1 -1
  603. package/build-types/store/reducer.d.ts +5 -0
  604. package/build-types/store/reducer.d.ts.map +1 -1
  605. package/build-types/store/selectors.d.ts +4 -11
  606. package/build-types/store/selectors.d.ts.map +1 -1
  607. package/build-types/utils/get-template-info.d.ts +6 -0
  608. package/build-types/utils/get-template-info.d.ts.map +1 -0
  609. package/package.json +2 -2
  610. package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
  611. package/src/components/collab-sidebar/add-comment.js +21 -78
  612. package/src/components/collab-sidebar/comment-author-info.js +68 -0
  613. package/src/components/collab-sidebar/comment-button-toolbar.js +3 -3
  614. package/src/components/collab-sidebar/comment-button.js +3 -3
  615. package/src/components/collab-sidebar/comment-form.js +62 -0
  616. package/src/components/collab-sidebar/comments.js +39 -101
  617. package/src/components/create-template-part-modal/index.js +3 -2
  618. package/src/components/document-bar/index.js +12 -3
  619. package/src/components/document-outline/check.js +4 -4
  620. package/src/components/document-outline/index.js +9 -9
  621. package/src/components/document-tools/index.js +3 -2
  622. package/src/components/editor-history/redo.js +1 -1
  623. package/src/components/editor-history/undo.js +1 -1
  624. package/src/components/editor-interface/content-slot-fill.js +4 -9
  625. package/src/components/editor-interface/index.js +1 -11
  626. package/src/components/editor-notices/index.js +1 -1
  627. package/src/components/editor-snackbars/index.js +1 -1
  628. package/src/components/entities-saved-states/entity-record-item.js +12 -4
  629. package/src/components/entities-saved-states/index.js +2 -2
  630. package/src/components/header/style.scss +2 -1
  631. package/src/components/page-attributes/check.js +3 -3
  632. package/src/components/page-attributes/order.js +1 -1
  633. package/src/components/page-attributes/panel.js +1 -1
  634. package/src/components/page-attributes/parent.js +1 -1
  635. package/src/components/plugin-document-setting-panel/index.js +2 -2
  636. package/src/components/plugin-more-menu-item/index.js +2 -1
  637. package/src/components/plugin-post-publish-panel/index.js +2 -2
  638. package/src/components/plugin-post-status-info/index.js +4 -4
  639. package/src/components/plugin-pre-publish-panel/index.js +2 -2
  640. package/src/components/plugin-preview-menu-item/index.js +2 -1
  641. package/src/components/plugin-sidebar/index.js +1 -0
  642. package/src/components/plugin-sidebar-more-menu-item/index.js +2 -2
  643. package/src/components/post-actions/actions.js +3 -3
  644. package/src/components/post-author/check.js +3 -3
  645. package/src/components/post-author/index.js +1 -1
  646. package/src/components/post-author/panel.js +1 -1
  647. package/src/components/post-card-panel/index.js +18 -5
  648. package/src/components/post-comments/index.js +1 -1
  649. package/src/components/post-discussion/panel.js +1 -1
  650. package/src/components/post-excerpt/check.js +3 -3
  651. package/src/components/post-excerpt/panel.js +1 -1
  652. package/src/components/post-excerpt/plugin.js +4 -4
  653. package/src/components/post-featured-image/check.js +3 -3
  654. package/src/components/post-featured-image/index.js +107 -43
  655. package/src/components/post-featured-image/panel.js +1 -1
  656. package/src/components/post-featured-image/style.scss +23 -13
  657. package/src/components/post-fields/index.ts +76 -0
  658. package/src/components/post-format/check.js +9 -11
  659. package/src/components/post-format/index.js +1 -1
  660. package/src/components/post-format/panel.js +1 -1
  661. package/src/components/post-last-revision/check.js +3 -3
  662. package/src/components/post-last-revision/index.js +1 -1
  663. package/src/components/post-last-revision/panel.js +1 -1
  664. package/src/components/post-locked-modal/index.js +1 -1
  665. package/src/components/post-pending-status/check.js +3 -3
  666. package/src/components/post-pending-status/index.js +1 -1
  667. package/src/components/post-preview-button/index.js +1 -1
  668. package/src/components/post-publish-panel/index.js +7 -3
  669. package/src/components/post-schedule/check.js +3 -3
  670. package/src/components/post-schedule/index.js +1 -1
  671. package/src/components/post-schedule/label.js +1 -1
  672. package/src/components/post-schedule/panel.js +1 -1
  673. package/src/components/post-slug/check.js +3 -3
  674. package/src/components/post-slug/index.js +1 -1
  675. package/src/components/post-sticky/check.js +3 -3
  676. package/src/components/post-sticky/index.js +1 -1
  677. package/src/components/post-switch-to-draft-button/index.js +1 -1
  678. package/src/components/post-sync-status/index.js +1 -1
  679. package/src/components/post-taxonomies/check.js +3 -3
  680. package/src/components/post-taxonomies/flat-term-selector.js +1 -1
  681. package/src/components/post-taxonomies/panel.js +15 -12
  682. package/src/components/post-template/classic-theme.js +2 -2
  683. package/src/components/post-template/panel.js +1 -1
  684. package/src/components/post-text-editor/index.js +1 -1
  685. package/src/components/post-title/index.js +20 -18
  686. package/src/components/post-title/post-title-raw.js +1 -1
  687. package/src/components/post-trash/check.js +3 -3
  688. package/src/components/post-trash/index.js +1 -1
  689. package/src/components/post-type-support-check/index.js +6 -6
  690. package/src/components/post-url/check.js +3 -3
  691. package/src/components/post-url/index.js +1 -1
  692. package/src/components/post-url/label.js +1 -1
  693. package/src/components/post-url/panel.js +1 -1
  694. package/src/components/post-visibility/check.js +1 -1
  695. package/src/components/post-visibility/index.js +1 -1
  696. package/src/components/preferences-modal/block-visibility.js +96 -0
  697. package/src/components/preferences-modal/enable-panel.js +27 -17
  698. package/src/components/preferences-modal/enable-publish-sidebar.js +18 -15
  699. package/src/components/preferences-modal/index.js +2 -2
  700. package/src/components/provider/index.js +55 -30
  701. package/src/components/table-of-contents/index.js +1 -1
  702. package/src/components/theme-support-check/index.js +4 -4
  703. package/src/components/time-to-read/index.js +1 -1
  704. package/src/components/unsaved-changes-warning/index.js +1 -1
  705. package/src/components/word-count/index.js +1 -1
  706. package/src/components/zoom-out-toggle/index.js +26 -13
  707. package/src/dataviews/api.js +41 -0
  708. package/src/dataviews/store/private-actions.ts +57 -3
  709. package/src/dataviews/store/private-selectors.ts +4 -0
  710. package/src/dataviews/store/reducer.ts +38 -1
  711. package/src/private-apis.js +4 -1
  712. package/src/store/actions.js +13 -9
  713. package/src/store/private-selectors.js +13 -8
  714. package/src/store/reducer.native.js +2 -0
  715. package/src/store/selectors.js +80 -62
  716. package/src/store/test/selectors.js +0 -255
  717. package/src/style.scss +0 -1
  718. package/src/utils/get-template-info.js +52 -0
  719. package/src/utils/test/get-template-info.js +224 -0
  720. package/tsconfig.tsbuildinfo +1 -1
  721. package/build/components/block-manager/category.js +0 -107
  722. package/build/components/block-manager/category.js.map +0 -1
  723. package/build/components/block-manager/checklist.js +0 -35
  724. package/build/components/block-manager/checklist.js.map +0 -1
  725. package/build/components/block-manager/index.js +0 -115
  726. package/build/components/block-manager/index.js.map +0 -1
  727. package/build-module/components/block-manager/category.js +0 -99
  728. package/build-module/components/block-manager/category.js.map +0 -1
  729. package/build-module/components/block-manager/checklist.js +0 -28
  730. package/build-module/components/block-manager/checklist.js.map +0 -1
  731. package/build-module/components/block-manager/index.js +0 -107
  732. package/build-module/components/block-manager/index.js.map +0 -1
  733. package/build-types/components/block-manager/category.d.ts +0 -6
  734. package/build-types/components/block-manager/category.d.ts.map +0 -1
  735. package/build-types/components/block-manager/checklist.d.ts +0 -7
  736. package/build-types/components/block-manager/checklist.d.ts.map +0 -1
  737. package/build-types/components/block-manager/index.d.ts +0 -2
  738. package/build-types/components/block-manager/index.d.ts.map +0 -1
  739. package/src/components/block-manager/category.js +0 -96
  740. package/src/components/block-manager/checklist.js +0 -30
  741. package/src/components/block-manager/index.js +0 -145
  742. package/src/components/block-manager/style.scss +0 -82
@@ -0,0 +1,68 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { __experimentalVStack as VStack } from '@wordpress/components';
5
+ import { __ } from '@wordpress/i18n';
6
+ import { dateI18n, getSettings as getDateSettings } from '@wordpress/date';
7
+ import { useEntityProp, store as coreStore } from '@wordpress/core-data';
8
+ import { useSelect } from '@wordpress/data';
9
+ import { store as blockEditorStore } from '@wordpress/block-editor';
10
+
11
+ /**
12
+ * Render author information for a comment.
13
+ *
14
+ * @param {Object} props - Component properties.
15
+ * @param {string} props.avatar - URL of the author's avatar.
16
+ * @param {string} props.name - Name of the author.
17
+ * @param {string} props.date - Date of the comment.
18
+ *
19
+ * @return {React.ReactNode} The JSX element representing the author's information.
20
+ */
21
+ function CommentAuthorInfo( { avatar, name, date } ) {
22
+ const dateSettings = getDateSettings();
23
+ const [ dateTimeFormat = dateSettings.formats.time ] = useEntityProp(
24
+ 'root',
25
+ 'site',
26
+ 'time_format'
27
+ );
28
+
29
+ const { currentUserAvatar, currentUserName } = useSelect( ( select ) => {
30
+ const userData = select( coreStore ).getCurrentUser();
31
+
32
+ const { getSettings } = select( blockEditorStore );
33
+ const { __experimentalDiscussionSettings } = getSettings();
34
+ const defaultAvatar = __experimentalDiscussionSettings?.avatarURL;
35
+ return {
36
+ currentUserAvatar: userData?.avatar_urls[ 48 ] ?? defaultAvatar,
37
+ currentUserName: userData?.name,
38
+ };
39
+ }, [] );
40
+
41
+ const currentDate = new Date();
42
+
43
+ return (
44
+ <>
45
+ <img
46
+ src={ avatar ?? currentUserAvatar }
47
+ className="editor-collab-sidebar-panel__user-avatar"
48
+ // translators: alt text for user avatar image
49
+ alt={ __( 'User avatar' ) }
50
+ width={ 32 }
51
+ height={ 32 }
52
+ />
53
+ <VStack spacing="0">
54
+ <span className="editor-collab-sidebar-panel__user-name">
55
+ { name ?? currentUserName }
56
+ </span>
57
+ <time
58
+ dateTime={ dateI18n( 'c', date ?? currentDate ) }
59
+ className="editor-collab-sidebar-panel__user-time"
60
+ >
61
+ { dateI18n( dateTimeFormat, date ?? currentDate ) }
62
+ </time>
63
+ </VStack>
64
+ </>
65
+ );
66
+ }
67
+
68
+ export default CommentAuthorInfo;
@@ -11,18 +11,18 @@ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
11
11
  */
12
12
  import { unlock } from '../../lock-unlock';
13
13
 
14
- const { __unstableCommentIconToolbarFill } = unlock( blockEditorPrivateApis );
14
+ const { CommentIconToolbarSlotFill } = unlock( blockEditorPrivateApis );
15
15
 
16
16
  const AddCommentToolbarButton = ( { onClick } ) => {
17
17
  return (
18
- <__unstableCommentIconToolbarFill>
18
+ <CommentIconToolbarSlotFill.Fill>
19
19
  <ToolbarButton
20
20
  accessibleWhenDisabled
21
21
  icon={ commentIcon }
22
22
  label={ _x( 'Comment', 'View comment' ) }
23
23
  onClick={ onClick }
24
24
  />
25
- </__unstableCommentIconToolbarFill>
25
+ </CommentIconToolbarSlotFill.Fill>
26
26
  );
27
27
  };
28
28
 
@@ -12,11 +12,11 @@ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
12
12
  */
13
13
  import { unlock } from '../../lock-unlock';
14
14
 
15
- const { __unstableCommentIconFill } = unlock( blockEditorPrivateApis );
15
+ const { CommentIconSlotFill } = unlock( blockEditorPrivateApis );
16
16
 
17
17
  const AddCommentButton = ( { onClick } ) => {
18
18
  return (
19
- <__unstableCommentIconFill>
19
+ <CommentIconSlotFill.Fill>
20
20
  <MenuItem
21
21
  icon={ commentIcon }
22
22
  onClick={ onClick }
@@ -24,7 +24,7 @@ const AddCommentButton = ( { onClick } ) => {
24
24
  >
25
25
  { _x( 'Comment', 'Add comment button' ) }
26
26
  </MenuItem>
27
- </__unstableCommentIconFill>
27
+ </CommentIconSlotFill.Fill>
28
28
  );
29
29
  };
30
30
 
@@ -0,0 +1,62 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { useState } from '@wordpress/element';
5
+ import {
6
+ __experimentalHStack as HStack,
7
+ Button,
8
+ TextareaControl,
9
+ } from '@wordpress/components';
10
+ import { _x } from '@wordpress/i18n';
11
+
12
+ /**
13
+ * Internal dependencies
14
+ */
15
+ import { sanitizeCommentString } from './utils';
16
+
17
+ /**
18
+ * EditComment component.
19
+ *
20
+ * @param {Object} props - The component props.
21
+ * @param {Function} props.onSubmit - The function to call when updating the comment.
22
+ * @param {Function} props.onCancel - The function to call when canceling the comment update.
23
+ * @param {Object} props.thread - The comment thread object.
24
+ * @param {string} props.submitButtonText - The text to display on the submit button.
25
+ * @return {React.ReactNode} The CommentForm component.
26
+ */
27
+ function CommentForm( { onSubmit, onCancel, thread, submitButtonText } ) {
28
+ const [ inputComment, setInputComment ] = useState(
29
+ thread?.content?.raw ?? ''
30
+ );
31
+
32
+ return (
33
+ <>
34
+ <TextareaControl
35
+ __next40pxDefaultSize
36
+ __nextHasNoMarginBottom
37
+ value={ inputComment ?? '' }
38
+ onChange={ setInputComment }
39
+ />
40
+ <HStack alignment="left" spacing="3" justify="flex-start">
41
+ <Button
42
+ __next40pxDefaultSize
43
+ accessibleWhenDisabled
44
+ variant="primary"
45
+ onClick={ () => onSubmit( inputComment ) }
46
+ disabled={
47
+ 0 === sanitizeCommentString( inputComment ).length
48
+ }
49
+ text={ submitButtonText }
50
+ />
51
+ <Button
52
+ __next40pxDefaultSize
53
+ variant="tertiary"
54
+ onClick={ onCancel }
55
+ text={ _x( 'Cancel', 'Cancel comment button' ) }
56
+ />
57
+ </HStack>
58
+ </>
59
+ );
60
+ }
61
+
62
+ export default CommentForm;
@@ -13,24 +13,18 @@ import {
13
13
  __experimentalConfirmDialog as ConfirmDialog,
14
14
  Button,
15
15
  DropdownMenu,
16
- TextareaControl,
17
16
  Tooltip,
18
17
  } from '@wordpress/components';
19
- import {
20
- dateI18n,
21
- format,
22
- getSettings as getDateSettings,
23
- } from '@wordpress/date';
24
18
  import { Icon, check, published, moreVertical } from '@wordpress/icons';
25
19
  import { __, _x } from '@wordpress/i18n';
26
20
  import { useSelect } from '@wordpress/data';
27
- import { useEntityProp } from '@wordpress/core-data';
28
21
  import { store as blockEditorStore } from '@wordpress/block-editor';
29
22
 
30
23
  /**
31
24
  * Internal dependencies
32
25
  */
33
- import { sanitizeCommentString } from './utils';
26
+ import CommentAuthorInfo from './comment-author-info';
27
+ import CommentForm from './comment-form';
34
28
 
35
29
  /**
36
30
  * Renders the Comments component.
@@ -41,7 +35,7 @@ import { sanitizeCommentString } from './utils';
41
35
  * @param {Function} props.onAddReply - The function to add a reply to a comment.
42
36
  * @param {Function} props.onCommentDelete - The function to delete a comment.
43
37
  * @param {Function} props.onCommentResolve - The function to mark a comment as resolved.
44
- * @return {JSX.Element} The rendered Comments component.
38
+ * @return {React.ReactNode} The rendered Comments component.
45
39
  */
46
40
  export function Comments( {
47
41
  threads,
@@ -127,6 +121,7 @@ export function Comments( {
127
121
  } }
128
122
  onCancel={ () => setActionState( false ) }
129
123
  thread={ thread }
124
+ submitButtonText={ _x( 'Update', 'verb' ) }
130
125
  />
131
126
  ) }
132
127
  { ( ! actionState ||
@@ -209,14 +204,33 @@ export function Comments( {
209
204
  spacing="3"
210
205
  >
211
206
  <CommentBoard thread={ thread } />
207
+ { 0 < thread?.reply?.length &&
208
+ thread.reply.map( ( reply ) => (
209
+ <VStack
210
+ key={ reply.id }
211
+ className="editor-collab-sidebar-panel__child-thread"
212
+ id={ reply.id }
213
+ spacing="2"
214
+ >
215
+ <CommentBoard
216
+ thread={ reply }
217
+ parentThread={ thread }
218
+ />
219
+ </VStack>
220
+ ) ) }
212
221
  { 'reply' === actionState?.action &&
213
222
  thread.id === actionState?.id && (
214
- <HStack
215
- alignment="left"
216
- spacing="3"
217
- justify="flex-start"
218
- className="editor-collab-sidebar-panel__user-comment"
223
+ <VStack
224
+ className="editor-collab-sidebar-panel__child-thread"
225
+ spacing="2"
219
226
  >
227
+ <HStack
228
+ alignment="left"
229
+ spacing="3"
230
+ justify="flex-start"
231
+ >
232
+ <CommentAuthorInfo />
233
+ </HStack>
220
234
  <VStack
221
235
  spacing="3"
222
236
  className="editor-collab-sidebar-panel__comment-field"
@@ -232,75 +246,20 @@ export function Comments( {
232
246
  onCancel={ () =>
233
247
  setActionState( false )
234
248
  }
249
+ submitButtonText={ _x(
250
+ 'Reply',
251
+ 'Add reply comment'
252
+ ) }
235
253
  />
236
254
  </VStack>
237
- </HStack>
238
- ) }
239
- { 0 < thread?.reply?.length &&
240
- thread.reply.map( ( reply ) => (
241
- <VStack
242
- key={ reply.id }
243
- className="editor-collab-sidebar-panel__child-thread"
244
- id={ reply.id }
245
- spacing="2"
246
- >
247
- <CommentBoard
248
- thread={ reply }
249
- parentThread={ thread }
250
- />
251
255
  </VStack>
252
- ) ) }
256
+ ) }
253
257
  </VStack>
254
258
  ) ) }
255
259
  </>
256
260
  );
257
261
  }
258
262
 
259
- /**
260
- * EditComment component.
261
- *
262
- * @param {Object} props - The component props.
263
- * @param {Function} props.onSubmit - The function to call when updating the comment.
264
- * @param {Function} props.onCancel - The function to call when canceling the comment update.
265
- * @param {Object} props.thread - The comment thread object.
266
- * @return {JSX.Element} The CommentForm component.
267
- */
268
- function CommentForm( { onSubmit, onCancel, thread } ) {
269
- const [ inputComment, setInputComment ] = useState(
270
- thread?.content?.raw ?? ''
271
- );
272
-
273
- return (
274
- <>
275
- <TextareaControl
276
- __nextHasNoMarginBottom
277
- value={ inputComment ?? '' }
278
- onChange={ setInputComment }
279
- />
280
- <VStack alignment="left" spacing="3" justify="flex-start">
281
- <HStack alignment="left" spacing="3" justify="flex-start">
282
- <Button
283
- __next40pxDefaultSize
284
- accessibleWhenDisabled
285
- variant="primary"
286
- onClick={ () => onSubmit( inputComment ) }
287
- disabled={
288
- 0 === sanitizeCommentString( inputComment ).length
289
- }
290
- >
291
- { thread
292
- ? _x( 'Update', 'verb' )
293
- : _x( 'Reply', 'Add reply comment' ) }
294
- </Button>
295
- <Button __next40pxDefaultSize onClick={ onCancel }>
296
- { _x( 'Cancel', 'Cancel comment edit' ) }
297
- </Button>
298
- </HStack>
299
- </VStack>
300
- </>
301
- );
302
- }
303
-
304
263
  /**
305
264
  * Renders the header of a comment in the collaboration sidebar.
306
265
  *
@@ -311,7 +270,7 @@ function CommentForm( { onSubmit, onCancel, thread } ) {
311
270
  * @param {Function} props.onDelete - The function to delete the comment.
312
271
  * @param {Function} props.onReply - The function to reply to the comment.
313
272
  * @param {string} props.status - The status of the comment.
314
- * @return {JSX.Element} The rendered comment header.
273
+ * @return {React.ReactNode} The rendered comment header.
315
274
  */
316
275
  function CommentHeader( {
317
276
  thread,
@@ -321,13 +280,6 @@ function CommentHeader( {
321
280
  onReply,
322
281
  status,
323
282
  } ) {
324
- const dateSettings = getDateSettings();
325
- const [ dateTimeFormat = dateSettings.formats.time ] = useEntityProp(
326
- 'root',
327
- 'site',
328
- 'time_format'
329
- );
330
-
331
283
  const actions = [
332
284
  {
333
285
  title: _x( 'Edit', 'Edit comment' ),
@@ -347,29 +299,15 @@ function CommentHeader( {
347
299
 
348
300
  return (
349
301
  <HStack alignment="left" spacing="3" justify="flex-start">
350
- <img
351
- src={ thread?.author_avatar_urls?.[ 48 ] }
352
- className="editor-collab-sidebar-panel__user-avatar"
353
- // translators: alt text for user avatar image
354
- alt={ __( 'User avatar' ) }
355
- width={ 32 }
356
- height={ 32 }
302
+ <CommentAuthorInfo
303
+ avatar={ thread?.author_avatar_urls?.[ 48 ] }
304
+ name={ thread?.author_name }
305
+ date={ thread?.date }
357
306
  />
358
- <VStack spacing="0">
359
- <span className="editor-collab-sidebar-panel__user-name">
360
- { thread.author_name }
361
- </span>
362
- <time
363
- dateTime={ format( 'h:i A', thread.date ) }
364
- className="editor-collab-sidebar-panel__user-time"
365
- >
366
- { dateI18n( dateTimeFormat, thread.date ) }
367
- </time>
368
- </VStack>
369
307
  <span className="editor-collab-sidebar-panel__comment-status">
370
308
  { status !== 'approved' && (
371
309
  <HStack alignment="right" justify="flex-end" spacing="0">
372
- { 0 === thread.parent && onResolve && (
310
+ { 0 === thread?.parent && onResolve && (
373
311
  <Button
374
312
  label={ _x(
375
313
  'Resolve',
@@ -27,7 +27,6 @@ import { serialize } from '@wordpress/blocks';
27
27
  /**
28
28
  * Internal dependencies
29
29
  */
30
- import { store as editorStore } from '../../store';
31
30
  import {
32
31
  TEMPLATE_PART_POST_TYPE,
33
32
  TEMPLATE_PART_AREA_DEFAULT_CATEGORY,
@@ -81,9 +80,11 @@ export function CreateTemplatePartModalContents( {
81
80
 
82
81
  const templatePartAreas = useSelect(
83
82
  ( select ) =>
84
- select( editorStore ).__experimentalGetDefaultTemplatePartAreas(),
83
+ select( coreStore ).getEntityRecord( 'root', '__unstableBase' )
84
+ ?.default_template_part_areas || [],
85
85
  []
86
86
  );
87
+
87
88
  async function createTemplatePart() {
88
89
  if ( ! title || isSubmitting ) {
89
90
  return;
@@ -29,6 +29,7 @@ import { decodeEntities } from '@wordpress/html-entities';
29
29
  import { TEMPLATE_POST_TYPES } from '../../store/constants';
30
30
  import { store as editorStore } from '../../store';
31
31
  import usePageTypeBadge from '../../utils/pageTypeBadge';
32
+ import { getTemplateInfo } from '../../utils/get-template-info';
32
33
 
33
34
  /** @typedef {import("@wordpress/components").IconType} IconType */
34
35
 
@@ -49,7 +50,7 @@ const MotionButton = motion( Button );
49
50
  * @param {IconType} props.icon An icon for the document, no default.
50
51
  * (A default icon indicating the document post type is no longer used.)
51
52
  *
52
- * @return {JSX.Element} The rendered DocumentBar component.
53
+ * @return {React.ReactNode} The rendered DocumentBar component.
53
54
  */
54
55
  export default function DocumentBar( props ) {
55
56
  const {
@@ -65,9 +66,9 @@ export default function DocumentBar( props ) {
65
66
  getCurrentPostType,
66
67
  getCurrentPostId,
67
68
  getEditorSettings,
68
- __experimentalGetTemplateInfo: getTemplateInfo,
69
69
  getRenderingMode,
70
70
  } = select( editorStore );
71
+
71
72
  const {
72
73
  getEditedEntityRecord,
73
74
  getPostType,
@@ -80,7 +81,15 @@ export default function DocumentBar( props ) {
80
81
  _postType,
81
82
  _postId
82
83
  );
83
- const _templateInfo = getTemplateInfo( _document );
84
+
85
+ const { default_template_types: templateTypes = [] } =
86
+ select( coreStore ).getEntityRecord( 'root', '__unstableBase' ) ??
87
+ {};
88
+
89
+ const _templateInfo = getTemplateInfo( {
90
+ templateTypes,
91
+ template: _document,
92
+ } );
84
93
  const _postTypeLabel = getPostType( _postType )?.labels?.singular_name;
85
94
 
86
95
  return {
@@ -7,10 +7,10 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
7
7
  /**
8
8
  * Component check if there are any headings (core/heading blocks) present in the document.
9
9
  *
10
- * @param {Object} props Props.
11
- * @param {Element} props.children Children to be rendered.
10
+ * @param {Object} props Props.
11
+ * @param {React.ReactElement} props.children Children to be rendered.
12
12
  *
13
- * @return {Component|null} The component to be rendered or null if there are headings.
13
+ * @return {React.ReactElement} The component to be rendered or null if there are headings.
14
14
  */
15
15
  export default function DocumentOutlineCheck( { children } ) {
16
16
  const hasHeadings = useSelect( ( select ) => {
@@ -19,7 +19,7 @@ export default function DocumentOutlineCheck( { children } ) {
19
19
  return getGlobalBlockCount( 'core/heading' ) > 0;
20
20
  } );
21
21
 
22
- if ( hasHeadings ) {
22
+ if ( ! hasHeadings ) {
23
23
  return null;
24
24
  }
25
25
 
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import { __ } from '@wordpress/i18n';
5
5
  import { useDispatch, useSelect } from '@wordpress/data';
6
+ import { useRef } from '@wordpress/element';
6
7
  import { create, getTextContent } from '@wordpress/rich-text';
7
8
  import { store as blockEditorStore } from '@wordpress/block-editor';
8
9
  import { store as coreStore } from '@wordpress/core-data';
@@ -102,19 +103,17 @@ const isEmptyHeading = ( heading ) =>
102
103
  * Renders a document outline component.
103
104
  *
104
105
  * @param {Object} props Props.
105
- * @param {Function} props.onSelect Function to be called when an outline item is selected.
106
- * @param {boolean} props.isTitleSupported Indicates whether the title is supported.
106
+ * @param {Function} props.onSelect Function to be called when an outline item is selected
107
107
  * @param {boolean} props.hasOutlineItemsDisabled Indicates whether the outline items are disabled.
108
108
  *
109
- * @return {Component} The component to be rendered.
109
+ * @return {React.ReactNode} The rendered component.
110
110
  */
111
111
  export default function DocumentOutline( {
112
112
  onSelect,
113
- isTitleSupported,
114
113
  hasOutlineItemsDisabled,
115
114
  } ) {
116
115
  const { selectBlock } = useDispatch( blockEditorStore );
117
- const { blocks, title } = useSelect( ( select ) => {
116
+ const { blocks, title, isTitleSupported } = useSelect( ( select ) => {
118
117
  const { getBlocks } = select( blockEditorStore );
119
118
  const { getEditedPostAttribute } = select( editorStore );
120
119
  const { getPostType } = select( coreStore );
@@ -127,6 +126,8 @@ export default function DocumentOutline( {
127
126
  };
128
127
  } );
129
128
 
129
+ const prevHeadingLevelRef = useRef( 1 );
130
+
130
131
  const headings = computeOutlineHeadings( blocks );
131
132
  if ( headings.length < 1 ) {
132
133
  return (
@@ -141,8 +142,6 @@ export default function DocumentOutline( {
141
142
  );
142
143
  }
143
144
 
144
- let prevHeadingLevel = 1;
145
-
146
145
  // Not great but it's the simplest way to locate the title right now.
147
146
  const titleNode = document.querySelector( '.editor-post-title__input' );
148
147
  const hasTitle = isTitleSupported && title && titleNode;
@@ -172,7 +171,8 @@ export default function DocumentOutline( {
172
171
  { headings.map( ( item, index ) => {
173
172
  // Headings remain the same, go up by one, or down by any amount.
174
173
  // Otherwise there are missing levels.
175
- const isIncorrectLevel = item.level > prevHeadingLevel + 1;
174
+ const isIncorrectLevel =
175
+ item.level > prevHeadingLevelRef.current + 1;
176
176
 
177
177
  const isValid =
178
178
  ! item.isEmpty &&
@@ -180,7 +180,7 @@ export default function DocumentOutline( {
180
180
  !! item.level &&
181
181
  ( item.level !== 1 ||
182
182
  ( ! hasMultipleH1 && ! hasTitle ) );
183
- prevHeadingLevel = item.level;
183
+ prevHeadingLevelRef.current = item.level;
184
184
 
185
185
  return (
186
186
  <DocumentOutlineItem
@@ -60,8 +60,9 @@ function DocumentTools( { className, disableBlockTools = false } ) {
60
60
  isDistractionFree: get( 'core', 'distractionFree' ),
61
61
  isVisualMode: getEditorMode() === 'visual',
62
62
  showTools:
63
- getRenderingMode() !== 'post-only' ||
64
- getCurrentPostType() === 'wp_template',
63
+ !! window?.__experimentalEditorWriteMode &&
64
+ ( getRenderingMode() !== 'post-only' ||
65
+ getCurrentPostType() === 'wp_template' ),
65
66
  };
66
67
  }, [] );
67
68
 
@@ -50,6 +50,6 @@ function EditorHistoryRedo( props, ref ) {
50
50
  * @param {Object} props - Props.
51
51
  * @param {Ref} ref - Forwarded ref.
52
52
  *
53
- * @return {Component} The component to be rendered.
53
+ * @return {React.ReactNode} The rendered component.
54
54
  */
55
55
  export default forwardRef( EditorHistoryRedo );
@@ -46,6 +46,6 @@ function EditorHistoryUndo( props, ref ) {
46
46
  * @param {Object} props - Props.
47
47
  * @param {Ref} ref - Forwarded ref.
48
48
  *
49
- * @return {Component} The component to be rendered.
49
+ * @return {React.ReactNode} The rendered component.
50
50
  */
51
51
  export default forwardRef( EditorHistoryUndo );
@@ -1,15 +1,10 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { privateApis as componentsPrivateApis } from '@wordpress/components';
4
+ import { createSlotFill } from '@wordpress/components';
5
5
 
6
- /**
7
- * Internal dependencies
8
- */
9
- import { unlock } from '../../lock-unlock';
10
-
11
- const { createPrivateSlotFill } = unlock( componentsPrivateApis );
12
- const SLOT_FILL_NAME = 'EditCanvasContainerSlot';
13
- const EditorContentSlotFill = createPrivateSlotFill( SLOT_FILL_NAME );
6
+ const EditorContentSlotFill = createSlotFill(
7
+ Symbol( 'EditCanvasContainerSlot' )
8
+ );
14
9
 
15
10
  export default EditorContentSlotFill;
@@ -10,11 +10,7 @@ import { InterfaceSkeleton, ComplementaryArea } from '@wordpress/interface';
10
10
  import { useSelect } from '@wordpress/data';
11
11
  import { __, _x } from '@wordpress/i18n';
12
12
  import { store as preferencesStore } from '@wordpress/preferences';
13
- import {
14
- store as blockEditorStore,
15
- BlockBreadcrumb,
16
- BlockToolbar,
17
- } from '@wordpress/block-editor';
13
+ import { BlockBreadcrumb, BlockToolbar } from '@wordpress/block-editor';
18
14
  import { useViewportMatch } from '@wordpress/compose';
19
15
  import { useState, useCallback } from '@wordpress/element';
20
16
 
@@ -31,8 +27,6 @@ import TextEditor from '../text-editor';
31
27
  import VisualEditor from '../visual-editor';
32
28
  import EditorContentSlotFill from './content-slot-fill';
33
29
 
34
- import { unlock } from '../../lock-unlock';
35
-
36
30
  const interfaceLabels = {
37
31
  /* translators: accessibility text for the editor top bar landmark region. */
38
32
  header: __( 'Editor top bar' ),
@@ -69,13 +63,11 @@ export default function EditorInterface( {
69
63
  isPreviewMode,
70
64
  showBlockBreadcrumbs,
71
65
  documentLabel,
72
- isZoomOut,
73
66
  } = useSelect( ( select ) => {
74
67
  const { get } = select( preferencesStore );
75
68
  const { getEditorSettings, getPostTypeLabel } = select( editorStore );
76
69
  const editorSettings = getEditorSettings();
77
70
  const postTypeLabel = getPostTypeLabel();
78
- const { isZoomOut: _isZoomOut } = unlock( select( blockEditorStore ) );
79
71
 
80
72
  return {
81
73
  mode: select( editorStore ).getEditorMode(),
@@ -88,7 +80,6 @@ export default function EditorInterface( {
88
80
  documentLabel:
89
81
  // translators: Default label for the Document in the Block Breadcrumb.
90
82
  postTypeLabel || _x( 'Document', 'noun, breadcrumb' ),
91
- isZoomOut: _isZoomOut(),
92
83
  };
93
84
  }, [] );
94
85
  const isLargeViewport = useViewportMatch( 'medium' );
@@ -197,7 +188,6 @@ export default function EditorInterface( {
197
188
  isLargeViewport &&
198
189
  showBlockBreadcrumbs &&
199
190
  isRichEditingEnabled &&
200
- ! isZoomOut &&
201
191
  mode === 'visual' && (
202
192
  <BlockBreadcrumb rootLabelText={ documentLabel } />
203
193
  )
@@ -18,7 +18,7 @@ import TemplateValidationNotice from '../template-validation-notice';
18
18
  * <EditorNotices />
19
19
  * ```
20
20
  *
21
- * @return {JSX.Element} The rendered EditorNotices component.
21
+ * @return {React.ReactNode} The rendered EditorNotices component.
22
22
  */
23
23
  export function EditorNotices() {
24
24
  const { notices } = useSelect(
@@ -11,7 +11,7 @@ const MAX_VISIBLE_NOTICES = -3;
11
11
  /**
12
12
  * Renders the editor snackbars component.
13
13
  *
14
- * @return {JSX.Element} The rendered component.
14
+ * @return {React.ReactNode} The rendered component.
15
15
  */
16
16
  export default function EditorSnackbars() {
17
17
  const notices = useSelect(