@wordpress/editor 14.8.8 → 14.10.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 (414) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/bindings/api.js +0 -29
  3. package/build/bindings/api.js.map +1 -1
  4. package/build/components/autocompleters/user.js.map +1 -1
  5. package/build/components/block-manager/index.js +2 -2
  6. package/build/components/block-manager/index.js.map +1 -1
  7. package/build/components/block-settings-menu/content-only-settings-menu.js +15 -18
  8. package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  9. package/build/components/commands/index.js.map +1 -1
  10. package/build/components/create-template-part-modal/index.js.map +1 -1
  11. package/build/components/create-template-part-modal/utils.js.map +1 -1
  12. package/build/components/document-outline/index.js.map +1 -1
  13. package/build/components/document-outline/item.js.map +1 -1
  14. package/build/components/document-tools/index.js +2 -7
  15. package/build/components/document-tools/index.js.map +1 -1
  16. package/build/components/entities-saved-states/index.js +1 -1
  17. package/build/components/entities-saved-states/index.js.map +1 -1
  18. package/build/components/header/index.js +19 -16
  19. package/build/components/header/index.js.map +1 -1
  20. package/build/components/inserter-sidebar/index.js +8 -9
  21. package/build/components/inserter-sidebar/index.js.map +1 -1
  22. package/build/components/media-categories/index.js.map +1 -1
  23. package/build/components/page-attributes/parent.js +1 -1
  24. package/build/components/page-attributes/parent.js.map +1 -1
  25. package/build/components/plugin-document-setting-panel/index.js.map +1 -1
  26. package/build/components/post-actions/index.js.map +1 -1
  27. package/build/components/post-content-information/index.js +1 -1
  28. package/build/components/post-content-information/index.js.map +1 -1
  29. package/build/components/post-featured-image/index.js.map +1 -1
  30. package/build/components/post-format/index.js +1 -1
  31. package/build/components/post-format/index.js.map +1 -1
  32. package/build/components/post-last-revision/index.js +1 -1
  33. package/build/components/post-last-revision/index.js.map +1 -1
  34. package/build/components/post-locked-modal/index.js +2 -2
  35. package/build/components/post-locked-modal/index.js.map +1 -1
  36. package/build/components/post-preview-button/index.js +1 -1
  37. package/build/components/post-preview-button/index.js.map +1 -1
  38. package/build/components/post-publish-button/index.js.map +1 -1
  39. package/build/components/post-publish-panel/maybe-post-format-panel.js +1 -1
  40. package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  41. package/build/components/post-publish-panel/maybe-upload-media.js +1 -0
  42. package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  43. package/build/components/post-publish-panel/media-util.js +1 -0
  44. package/build/components/post-publish-panel/media-util.js.map +1 -1
  45. package/build/components/post-publish-panel/postpublish.js +1 -1
  46. package/build/components/post-publish-panel/postpublish.js.map +1 -1
  47. package/build/components/post-schedule/label.js.map +1 -1
  48. package/build/components/post-taxonomies/flat-term-selector.js +4 -4
  49. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  50. package/build/components/post-taxonomies/hierarchical-term-selector.js +3 -2
  51. package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  52. package/build/components/post-taxonomies/index.js +1 -1
  53. package/build/components/post-taxonomies/index.js.map +1 -1
  54. package/build/components/post-taxonomies/panel.js.map +1 -1
  55. package/build/components/post-template/classic-theme.js +2 -4
  56. package/build/components/post-template/classic-theme.js.map +1 -1
  57. package/build/components/post-text-editor/index.js.map +1 -1
  58. package/build/components/post-title/index.js +15 -19
  59. package/build/components/post-title/index.js.map +1 -1
  60. package/build/components/post-title/index.native.js +2 -2
  61. package/build/components/post-title/index.native.js.map +1 -1
  62. package/build/components/post-url/index.js +76 -63
  63. package/build/components/post-url/index.js.map +1 -1
  64. package/build/components/post-url/panel.js +46 -26
  65. package/build/components/post-url/panel.js.map +1 -1
  66. package/build/components/post-visibility/index.js.map +1 -1
  67. package/build/components/preferences-modal/index.js.map +1 -1
  68. package/build/components/preview-dropdown/index.js.map +1 -1
  69. package/build/components/provider/disable-non-page-content-blocks.js +17 -18
  70. package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
  71. package/build/components/provider/index.js +1 -1
  72. package/build/components/provider/index.js.map +1 -1
  73. package/build/components/provider/use-post-content-blocks.js +34 -0
  74. package/build/components/provider/use-post-content-blocks.js.map +1 -0
  75. package/build/components/resizable-editor/resize-handle.js +4 -0
  76. package/build/components/resizable-editor/resize-handle.js.map +1 -1
  77. package/build/components/time-to-read/index.js +1 -1
  78. package/build/components/time-to-read/index.js.map +1 -1
  79. package/build/components/visual-editor/index.js.map +1 -1
  80. package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
  81. package/build/components/zoom-out-toggle/index.js +1 -1
  82. package/build/components/zoom-out-toggle/index.js.map +1 -1
  83. package/build/dataviews/actions/duplicate-template-part.js +1 -1
  84. package/build/dataviews/actions/duplicate-template-part.js.map +1 -1
  85. package/build/dataviews/store/private-actions.js +2 -7
  86. package/build/dataviews/store/private-actions.js.map +1 -1
  87. package/build/private-apis.js +0 -1
  88. package/build/private-apis.js.map +1 -1
  89. package/build/store/actions.js +46 -6
  90. package/build/store/actions.js.map +1 -1
  91. package/build/store/constants.js +1 -0
  92. package/build/store/constants.js.map +1 -1
  93. package/build/store/local-autosave.js.map +1 -1
  94. package/build/store/private-actions.js +7 -6
  95. package/build/store/private-actions.js.map +1 -1
  96. package/build/store/private-selectors.js +3 -3
  97. package/build/store/private-selectors.js.map +1 -1
  98. package/build/store/selectors.js +21 -0
  99. package/build/store/selectors.js.map +1 -1
  100. package/build/utils/media-upload/index.js.map +1 -1
  101. package/build-module/bindings/api.js +1 -29
  102. package/build-module/bindings/api.js.map +1 -1
  103. package/build-module/components/autocompleters/user.js +1 -3
  104. package/build-module/components/autocompleters/user.js.map +1 -1
  105. package/build-module/components/block-manager/category.js +1 -2
  106. package/build-module/components/block-manager/category.js.map +1 -1
  107. package/build-module/components/block-manager/checklist.js +1 -2
  108. package/build-module/components/block-manager/checklist.js.map +1 -1
  109. package/build-module/components/block-manager/index.js +3 -4
  110. package/build-module/components/block-manager/index.js.map +1 -1
  111. package/build-module/components/block-settings-menu/content-only-settings-menu.js +15 -21
  112. package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  113. package/build-module/components/blog-title/index.js +1 -3
  114. package/build-module/components/blog-title/index.js.map +1 -1
  115. package/build-module/components/collapsible-block-toolbar/index.js +1 -3
  116. package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
  117. package/build-module/components/commands/index.js.map +1 -1
  118. package/build-module/components/create-template-part-modal/index.js +1 -2
  119. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  120. package/build-module/components/create-template-part-modal/utils.js.map +1 -1
  121. package/build-module/components/document-bar/index.js +1 -2
  122. package/build-module/components/document-bar/index.js.map +1 -1
  123. package/build-module/components/document-outline/index.js +1 -2
  124. package/build-module/components/document-outline/index.js.map +1 -1
  125. package/build-module/components/document-outline/item.js +1 -2
  126. package/build-module/components/document-outline/item.js.map +1 -1
  127. package/build-module/components/document-tools/index.js +3 -10
  128. package/build-module/components/document-tools/index.js.map +1 -1
  129. package/build-module/components/editor/index.js +1 -3
  130. package/build-module/components/editor/index.js.map +1 -1
  131. package/build-module/components/editor-help/add-blocks.native.js +1 -3
  132. package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
  133. package/build-module/components/editor-help/customize-blocks.native.js +1 -3
  134. package/build-module/components/editor-help/customize-blocks.native.js.map +1 -1
  135. package/build-module/components/editor-help/help-detail-navigation-screen.native.js +1 -2
  136. package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
  137. package/build-module/components/editor-help/index.native.js +1 -3
  138. package/build-module/components/editor-help/index.native.js.map +1 -1
  139. package/build-module/components/editor-help/intro-to-blocks.native.js +1 -3
  140. package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
  141. package/build-module/components/editor-help/move-blocks.native.js +1 -3
  142. package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
  143. package/build-module/components/editor-help/remove-blocks.native.js +1 -3
  144. package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
  145. package/build-module/components/editor-help/view-sections.native.js +1 -2
  146. package/build-module/components/editor-help/view-sections.native.js.map +1 -1
  147. package/build-module/components/editor-interface/index.js +1 -3
  148. package/build-module/components/editor-interface/index.js.map +1 -1
  149. package/build-module/components/editor-notices/index.js +1 -3
  150. package/build-module/components/editor-notices/index.js.map +1 -1
  151. package/build-module/components/entities-saved-states/entity-record-item.js +1 -3
  152. package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
  153. package/build-module/components/entities-saved-states/entity-type-list.js +1 -2
  154. package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
  155. package/build-module/components/entities-saved-states/index.js +2 -3
  156. package/build-module/components/entities-saved-states/index.js.map +1 -1
  157. package/build-module/components/error-boundary/index.native.js +1 -2
  158. package/build-module/components/error-boundary/index.native.js.map +1 -1
  159. package/build-module/components/header/index.js +20 -18
  160. package/build-module/components/header/index.js.map +1 -1
  161. package/build-module/components/inserter-sidebar/index.js +8 -9
  162. package/build-module/components/inserter-sidebar/index.js.map +1 -1
  163. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
  164. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  165. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -3
  166. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  167. package/build-module/components/list-view-sidebar/list-view-outline.js +1 -3
  168. package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
  169. package/build-module/components/media-categories/index.js.map +1 -1
  170. package/build-module/components/more-menu/index.js +1 -3
  171. package/build-module/components/more-menu/index.js.map +1 -1
  172. package/build-module/components/offline-status/index.native.js +1 -2
  173. package/build-module/components/offline-status/index.native.js.map +1 -1
  174. package/build-module/components/page-attributes/parent.js +2 -3
  175. package/build-module/components/page-attributes/parent.js.map +1 -1
  176. package/build-module/components/plugin-document-setting-panel/index.js +1 -3
  177. package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
  178. package/build-module/components/post-actions/index.js +1 -3
  179. package/build-module/components/post-actions/index.js.map +1 -1
  180. package/build-module/components/post-author/panel.js +1 -2
  181. package/build-module/components/post-author/panel.js.map +1 -1
  182. package/build-module/components/post-card-panel/index.js +1 -2
  183. package/build-module/components/post-card-panel/index.js.map +1 -1
  184. package/build-module/components/post-content-information/index.js +1 -1
  185. package/build-module/components/post-content-information/index.js.map +1 -1
  186. package/build-module/components/post-discussion/panel.js +1 -2
  187. package/build-module/components/post-discussion/panel.js.map +1 -1
  188. package/build-module/components/post-excerpt/panel.js +1 -3
  189. package/build-module/components/post-excerpt/panel.js.map +1 -1
  190. package/build-module/components/post-featured-image/index.js +1 -2
  191. package/build-module/components/post-featured-image/index.js.map +1 -1
  192. package/build-module/components/post-format/index.js +2 -3
  193. package/build-module/components/post-format/index.js.map +1 -1
  194. package/build-module/components/post-format/panel.js +1 -2
  195. package/build-module/components/post-format/panel.js.map +1 -1
  196. package/build-module/components/post-last-revision/index.js +1 -1
  197. package/build-module/components/post-last-revision/index.js.map +1 -1
  198. package/build-module/components/post-locked-modal/index.js +3 -5
  199. package/build-module/components/post-locked-modal/index.js.map +1 -1
  200. package/build-module/components/post-panel-row/index.js +1 -2
  201. package/build-module/components/post-panel-row/index.js.map +1 -1
  202. package/build-module/components/post-preview-button/index.js +2 -4
  203. package/build-module/components/post-preview-button/index.js.map +1 -1
  204. package/build-module/components/post-publish-button/index.js +1 -2
  205. package/build-module/components/post-publish-button/index.js.map +1 -1
  206. package/build-module/components/post-publish-panel/index.js +1 -3
  207. package/build-module/components/post-publish-panel/index.js.map +1 -1
  208. package/build-module/components/post-publish-panel/maybe-category-panel.js +1 -2
  209. package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  210. package/build-module/components/post-publish-panel/maybe-post-format-panel.js +2 -3
  211. package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  212. package/build-module/components/post-publish-panel/maybe-tags-panel.js +1 -2
  213. package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  214. package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -2
  215. package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  216. package/build-module/components/post-publish-panel/media-util.js +1 -0
  217. package/build-module/components/post-publish-panel/media-util.js.map +1 -1
  218. package/build-module/components/post-publish-panel/postpublish.js +2 -4
  219. package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
  220. package/build-module/components/post-publish-panel/prepublish.js +1 -3
  221. package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
  222. package/build-module/components/post-saved-state/index.js +1 -2
  223. package/build-module/components/post-saved-state/index.js.map +1 -1
  224. package/build-module/components/post-schedule/label.js.map +1 -1
  225. package/build-module/components/post-status/index.js +1 -3
  226. package/build-module/components/post-status/index.js.map +1 -1
  227. package/build-module/components/post-switch-to-draft-button/index.js +1 -3
  228. package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
  229. package/build-module/components/post-taxonomies/flat-term-selector.js +5 -7
  230. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  231. package/build-module/components/post-taxonomies/hierarchical-term-selector.js +4 -4
  232. package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  233. package/build-module/components/post-taxonomies/index.js +1 -1
  234. package/build-module/components/post-taxonomies/index.js.map +1 -1
  235. package/build-module/components/post-taxonomies/most-used-terms.js +1 -2
  236. package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
  237. package/build-module/components/post-taxonomies/panel.js.map +1 -1
  238. package/build-module/components/post-template/block-theme.js +1 -3
  239. package/build-module/components/post-template/block-theme.js.map +1 -1
  240. package/build-module/components/post-template/classic-theme.js +3 -6
  241. package/build-module/components/post-template/classic-theme.js.map +1 -1
  242. package/build-module/components/post-template/create-new-template-modal.js +1 -2
  243. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  244. package/build-module/components/post-template/create-new-template.js +1 -3
  245. package/build-module/components/post-template/create-new-template.js.map +1 -1
  246. package/build-module/components/post-template/swap-template-button.js +1 -3
  247. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  248. package/build-module/components/post-text-editor/index.js +1 -3
  249. package/build-module/components/post-text-editor/index.js.map +1 -1
  250. package/build-module/components/post-title/index.js +15 -19
  251. package/build-module/components/post-title/index.js.map +1 -1
  252. package/build-module/components/post-title/index.native.js +2 -2
  253. package/build-module/components/post-title/index.native.js.map +1 -1
  254. package/build-module/components/post-trash/index.js +1 -2
  255. package/build-module/components/post-trash/index.js.map +1 -1
  256. package/build-module/components/post-url/index.js +78 -66
  257. package/build-module/components/post-url/index.js.map +1 -1
  258. package/build-module/components/post-url/panel.js +48 -28
  259. package/build-module/components/post-url/panel.js.map +1 -1
  260. package/build-module/components/post-visibility/index.js +1 -2
  261. package/build-module/components/post-visibility/index.js.map +1 -1
  262. package/build-module/components/posts-per-page/index.js +1 -3
  263. package/build-module/components/posts-per-page/index.js.map +1 -1
  264. package/build-module/components/preferences-modal/index.js +1 -3
  265. package/build-module/components/preferences-modal/index.js.map +1 -1
  266. package/build-module/components/preview-dropdown/index.js +1 -3
  267. package/build-module/components/preview-dropdown/index.js.map +1 -1
  268. package/build-module/components/provider/disable-non-page-content-blocks.js +17 -18
  269. package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
  270. package/build-module/components/provider/index.js +2 -4
  271. package/build-module/components/provider/index.js.map +1 -1
  272. package/build-module/components/provider/index.native.js +1 -3
  273. package/build-module/components/provider/index.native.js.map +1 -1
  274. package/build-module/components/provider/use-post-content-blocks.js +27 -0
  275. package/build-module/components/provider/use-post-content-blocks.js.map +1 -0
  276. package/build-module/components/resizable-editor/resize-handle.js +5 -3
  277. package/build-module/components/resizable-editor/resize-handle.js.map +1 -1
  278. package/build-module/components/save-publish-panels/index.js +1 -3
  279. package/build-module/components/save-publish-panels/index.js.map +1 -1
  280. package/build-module/components/sidebar/header.js +1 -2
  281. package/build-module/components/sidebar/header.js.map +1 -1
  282. package/build-module/components/sidebar/index.js +1 -2
  283. package/build-module/components/sidebar/index.js.map +1 -1
  284. package/build-module/components/sidebar/post-summary.js +1 -3
  285. package/build-module/components/sidebar/post-summary.js.map +1 -1
  286. package/build-module/components/site-discussion/index.js +1 -3
  287. package/build-module/components/site-discussion/index.js.map +1 -1
  288. package/build-module/components/start-template-options/index.js +1 -2
  289. package/build-module/components/start-template-options/index.js.map +1 -1
  290. package/build-module/components/table-of-contents/panel.js +1 -3
  291. package/build-module/components/table-of-contents/panel.js.map +1 -1
  292. package/build-module/components/template-part-menu-items/convert-to-template-part.js +1 -3
  293. package/build-module/components/template-part-menu-items/convert-to-template-part.js.map +1 -1
  294. package/build-module/components/template-validation-notice/index.js +1 -3
  295. package/build-module/components/template-validation-notice/index.js.map +1 -1
  296. package/build-module/components/text-editor/index.js +1 -2
  297. package/build-module/components/text-editor/index.js.map +1 -1
  298. package/build-module/components/time-to-read/index.js +1 -1
  299. package/build-module/components/time-to-read/index.js.map +1 -1
  300. package/build-module/components/visual-editor/index.js +1 -3
  301. package/build-module/components/visual-editor/index.js.map +1 -1
  302. package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
  303. package/build-module/components/zoom-out-toggle/index.js +1 -1
  304. package/build-module/components/zoom-out-toggle/index.js.map +1 -1
  305. package/build-module/dataviews/actions/duplicate-template-part.js +1 -1
  306. package/build-module/dataviews/actions/duplicate-template-part.js.map +1 -1
  307. package/build-module/dataviews/store/private-actions.js +4 -8
  308. package/build-module/dataviews/store/private-actions.js.map +1 -1
  309. package/build-module/hooks/pattern-overrides.js +1 -3
  310. package/build-module/hooks/pattern-overrides.js.map +1 -1
  311. package/build-module/private-apis.js +1 -2
  312. package/build-module/private-apis.js.map +1 -1
  313. package/build-module/store/actions.js +44 -6
  314. package/build-module/store/actions.js.map +1 -1
  315. package/build-module/store/constants.js +1 -0
  316. package/build-module/store/constants.js.map +1 -1
  317. package/build-module/store/local-autosave.js.map +1 -1
  318. package/build-module/store/private-actions.js +7 -6
  319. package/build-module/store/private-actions.js.map +1 -1
  320. package/build-module/store/private-selectors.js +2 -2
  321. package/build-module/store/private-selectors.js.map +1 -1
  322. package/build-module/store/selectors.js +21 -0
  323. package/build-module/store/selectors.js.map +1 -1
  324. package/build-module/utils/media-upload/index.js.map +1 -1
  325. package/build-style/style-rtl.css +29 -6
  326. package/build-style/style.css +29 -6
  327. package/build-types/bindings/api.d.ts +0 -13
  328. package/build-types/bindings/api.d.ts.map +1 -1
  329. package/build-types/components/document-tools/index.d.ts.map +1 -1
  330. package/build-types/components/header/index.d.ts.map +1 -1
  331. package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
  332. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  333. package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
  334. package/build-types/components/post-url/index.d.ts.map +1 -1
  335. package/build-types/components/post-url/panel.d.ts.map +1 -1
  336. package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
  337. package/build-types/components/provider/index.d.ts.map +1 -1
  338. package/build-types/components/provider/use-post-content-blocks.d.ts +2 -0
  339. package/build-types/components/provider/use-post-content-blocks.d.ts.map +1 -0
  340. package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
  341. package/build-types/private-apis.d.ts.map +1 -1
  342. package/build-types/store/actions.d.ts +2 -17
  343. package/build-types/store/actions.d.ts.map +1 -1
  344. package/build-types/store/private-selectors.d.ts +2 -2
  345. package/build-types/store/private-selectors.d.ts.map +1 -1
  346. package/build-types/store/selectors.d.ts +21 -0
  347. package/build-types/store/selectors.d.ts.map +1 -1
  348. package/package.json +38 -38
  349. package/src/bindings/api.js +1 -32
  350. package/src/components/block-settings-menu/content-only-settings-menu.js +19 -19
  351. package/src/components/document-tools/index.js +2 -5
  352. package/src/components/header/index.js +24 -13
  353. package/src/components/inserter-sidebar/index.js +8 -11
  354. package/src/components/post-saved-state/test/__snapshots__/index.js.snap +1 -1
  355. package/src/components/post-taxonomies/hierarchical-term-selector.js +1 -0
  356. package/src/components/post-template/classic-theme.js +1 -2
  357. package/src/components/post-url/index.js +67 -55
  358. package/src/components/post-url/panel.js +57 -33
  359. package/src/components/post-url/style.scss +21 -3
  360. package/src/components/provider/disable-non-page-content-blocks.js +20 -34
  361. package/src/components/provider/index.js +1 -0
  362. package/src/components/provider/use-post-content-blocks.js +42 -0
  363. package/src/components/resizable-editor/resize-handle.js +5 -0
  364. package/src/components/zoom-out-toggle/index.js +1 -1
  365. package/src/dataviews/store/private-actions.ts +7 -7
  366. package/src/private-apis.js +1 -5
  367. package/src/store/actions.js +51 -7
  368. package/src/store/private-selectors.js +2 -2
  369. package/src/store/selectors.js +21 -0
  370. package/src/store/test/actions.js +76 -0
  371. package/src/store/test/reducer.js +0 -22
  372. package/tsconfig.tsbuildinfo +1 -1
  373. package/build/dataviews/actions/delete-post.js +0 -98
  374. package/build/dataviews/actions/delete-post.js.map +0 -1
  375. package/build/dataviews/actions/rename-post.js +0 -125
  376. package/build/dataviews/actions/rename-post.js.map +0 -1
  377. package/build/dataviews/actions/reset-post.js +0 -113
  378. package/build/dataviews/actions/reset-post.js.map +0 -1
  379. package/build/dataviews/actions/restore-post.js +0 -112
  380. package/build/dataviews/actions/restore-post.js.map +0 -1
  381. package/build/dataviews/actions/trash-post.js +0 -144
  382. package/build/dataviews/actions/trash-post.js.map +0 -1
  383. package/build/dataviews/fields/index.js +0 -32
  384. package/build/dataviews/fields/index.js.map +0 -1
  385. package/build-module/dataviews/actions/delete-post.js +0 -89
  386. package/build-module/dataviews/actions/delete-post.js.map +0 -1
  387. package/build-module/dataviews/actions/rename-post.js +0 -118
  388. package/build-module/dataviews/actions/rename-post.js.map +0 -1
  389. package/build-module/dataviews/actions/reset-post.js +0 -106
  390. package/build-module/dataviews/actions/reset-post.js.map +0 -1
  391. package/build-module/dataviews/actions/restore-post.js +0 -104
  392. package/build-module/dataviews/actions/restore-post.js.map +0 -1
  393. package/build-module/dataviews/actions/trash-post.js +0 -137
  394. package/build-module/dataviews/actions/trash-post.js.map +0 -1
  395. package/build-module/dataviews/fields/index.js +0 -26
  396. package/build-module/dataviews/fields/index.js.map +0 -1
  397. package/build-types/dataviews/actions/delete-post.d.ts +0 -5
  398. package/build-types/dataviews/actions/delete-post.d.ts.map +0 -1
  399. package/build-types/dataviews/actions/rename-post.d.ts +0 -5
  400. package/build-types/dataviews/actions/rename-post.d.ts.map +0 -1
  401. package/build-types/dataviews/actions/reset-post.d.ts +0 -5
  402. package/build-types/dataviews/actions/reset-post.d.ts.map +0 -1
  403. package/build-types/dataviews/actions/restore-post.d.ts +0 -5
  404. package/build-types/dataviews/actions/restore-post.d.ts.map +0 -1
  405. package/build-types/dataviews/actions/trash-post.d.ts +0 -5
  406. package/build-types/dataviews/actions/trash-post.d.ts.map +0 -1
  407. package/build-types/dataviews/fields/index.d.ts +0 -8
  408. package/build-types/dataviews/fields/index.d.ts.map +0 -1
  409. package/src/dataviews/actions/delete-post.tsx +0 -109
  410. package/src/dataviews/actions/rename-post.tsx +0 -146
  411. package/src/dataviews/actions/reset-post.tsx +0 -147
  412. package/src/dataviews/actions/restore-post.tsx +0 -134
  413. package/src/dataviews/actions/trash-post.tsx +0 -198
  414. package/src/dataviews/fields/index.ts +0 -26
@@ -9,17 +9,4 @@
9
9
  * ```
10
10
  */
11
11
  export function registerCoreBlockBindingsSources(): void;
12
- /**
13
- * Function to bootstrap core block bindings sources defined in the server.
14
- *
15
- * @param {Object} sources Object containing the sources to bootstrap.
16
- *
17
- * @example
18
- * ```js
19
- * import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
20
- *
21
- * bootstrapBlockBindingsSourcesFromServer( sources );
22
- * ```
23
- */
24
- export function bootstrapBlockBindingsSourcesFromServer(sources: Object): void;
25
12
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/bindings/api.js"],"names":[],"mappings":"AAgBA;;;;;;;;;GASG;AACH,yDAGC;AAED;;;;;;;;;;;GAWG;AACH,iEATW,MAAM,QAqBhB"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/bindings/api.js"],"names":[],"mappings":"AAWA;;;;;;;;;GASG;AACH,yDAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-tools/index.js"],"names":[],"mappings":";AA8BA;;;gCA6JC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-tools/index.js"],"names":[],"mappings":";AA8BA;;;gCA0JC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA2CA;;;;;;;gCAgIC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA2CA;;;;;;;gCA2IC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,uEA6FC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,uEA0FC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchical-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/hierarchical-term-selector.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,0CALW,MAAM,EAAE,SACR,MAAM,EAAE,GAEP,MAAM,EAAE,CAqCnB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,EAAE,UACR,MAAM,GAAC,MAAM,QACb,MAAM,GACL,MAAM,CAUjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,CAAC,CAAS,IAAM,EAAN,MAAM,KAAG,CAAC,MAAM,GAAC,OAAO,CAAC,CAAC,CAmC/C;AAED;;;;;;GAMG;AACH,mDAHG;IAAsB,IAAI,EAAlB,MAAM;CACd,GAAS,OAAO,CAsUlB;;;;;;;yBAzae,OAAO;;wJASC,CAAC;4BAGS,CAAC;;;;kCAIJ,OAAO;;6BAIJ,CAAC;yBASjC,CAAC,iCAC6B,OAChC;+BACQ,CAAA;0BAMyB,CAAA,2DAE3B,CAAC;0BACJ,CAAC;iCAEM,CAAC;iCACP,CAAC;wCAGS,CAAA;2BACsB,CAAC;kCASpC,CAAD;;;;;yBAI0B,OACxB;;wJAOW,CAAC;4BACX,CAAC;;;;kCAIuB,OAAO;;6BAGiB,CAAC;yBAG7C,CAAC,iCACuB,OAAO;+BACjB,CAAC;0BAKmC,CAAC,2DAEtD,CAAC;0BAEoB,CAAC;iCAMzB,CAAD;iCAA2C,CAAC;wCAED,CAAC;2BAES,CAAA;kCAInD,CAAC;;yBAGgB,OAAO"}
1
+ {"version":3,"file":"hierarchical-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/hierarchical-term-selector.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,0CALW,MAAM,EAAE,SACR,MAAM,EAAE,GAEP,MAAM,EAAE,CAqCnB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,EAAE,UACR,MAAM,GAAC,MAAM,QACb,MAAM,GACL,MAAM,CAUjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,CAAC,CAAS,IAAM,EAAN,MAAM,KAAG,CAAC,MAAM,GAAC,OAAO,CAAC,CAAC,CAmC/C;AAED;;;;;;GAMG;AACH,mDAHG;IAAsB,IAAI,EAAlB,MAAM;CACd,GAAS,OAAO,CAuUlB;;;;;;;yBA1ae,OAAO;;wJASC,CAAC;4BAGS,CAAC;;;;kCAIJ,OAAO;;6BAIJ,CAAC;yBASjC,CAAC,iCAC6B,OAChC;+BACQ,CAAA;0BAMyB,CAAA,2DAE3B,CAAC;0BACJ,CAAC;iCAEM,CAAC;iCACP,CAAC;wCAGS,CAAA;2BACsB,CAAC;kCASpC,CAAD;;;;;yBAI0B,OACxB;;wJAOW,CAAC;4BACX,CAAC;;;;kCAIuB,OAAO;;6BAGiB,CAAC;yBAG7C,CAAC,iCACuB,OAAO;+BACjB,CAAC;0BAKmC,CAAC,2DAEtD,CAAC;0BAEoB,CAAC;iCAMzB,CAAD;iCAA2C,CAAC;wCAED,CAAC;2BAES,CAAA;kCAInD,CAAC;;yBAGgB,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AA0NA,oEAaC"}
1
+ {"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AAyNA,oEAaC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,CAoJpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,CAgKpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CAqCtB"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CA2DtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,4DA0DC"}
1
+ {"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,4DAoDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAgWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AArQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAkME"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAiWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AAtQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAmME"}
@@ -0,0 +1,2 @@
1
+ export default function usePostContentBlocks(): any;
2
+ //# sourceMappingURL=use-post-content-blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-post-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-post-content-blocks.js"],"names":[],"mappings":"AAmBA,oDAsBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../src/components/resizable-editor/resize-handle.js"],"names":[],"mappings":"AAaA;;;gCAgDC"}
1
+ {"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../src/components/resizable-editor/resize-handle.js"],"names":[],"mappings":"AAaA;;;gCAqDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAgCA,6BAA8B"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA6BA,6BAA8B"}
@@ -170,19 +170,6 @@ export function setDeviceType(deviceType: string): Object;
170
170
  * @return {Object} Action object.
171
171
  */
172
172
  export function removeEditorPanel(panelName: string): Object;
173
- /**
174
- * Returns an action object used to open/close the inserter.
175
- *
176
- * @param {boolean|Object} value Whether the inserter should be
177
- * opened (true) or closed (false).
178
- * To specify an insertion point,
179
- * use an object.
180
- * @param {string} value.rootClientId The root client ID to insert at.
181
- * @param {number} value.insertionIndex The index to insert at.
182
- *
183
- * @return {Object} Action object.
184
- */
185
- export function setIsInserterOpened(value: boolean | Object): Object;
186
173
  /**
187
174
  * Returns an action object used to open/close the list view.
188
175
  *
@@ -213,10 +200,7 @@ export function togglePublishSidebar(): Object;
213
200
  export function setupEditor(post: Object, edits: Object, template: any[] | null): ({ dispatch }: {
214
201
  dispatch: any;
215
202
  }) => void;
216
- export function editPost(edits: Object, options: Object): ({ select, registry }: {
217
- select: any;
218
- registry: any;
219
- }) => void;
203
+ export function editPost(edits: Object, options: Object): Object;
220
204
  export function savePost(options?: Object): ({ select, dispatch, registry }: {
221
205
  select: any;
222
206
  dispatch: any;
@@ -263,6 +247,7 @@ export function toggleEditorPanelEnabled(panelName: string): Object;
263
247
  export function toggleEditorPanelOpened(panelName: string): ({ registry }: {
264
248
  registry: any;
265
249
  }) => void;
250
+ export function setIsInserterOpened(value: boolean | Object): Object;
266
251
  export function toggleDistractionFree(): ({ dispatch, registry }: {
267
252
  dispatch: any;
268
253
  registry: any;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AAiJD;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;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;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AA4KD;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,yCAxCW,MAAM,GAsCL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,6CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,+CAVW,MAAM,GAQL,MAAM,CAOjB;AA6CD;;;EAKC;AAyBD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAOjB;AAiED;;;;;;GAMG;AACH,6CAJW,MAAM,GAEL,MAAM,CAOjB;AAsCD;;;;;GAKG;AACH,4CAHW,OAAO,GACN,MAAM,CAOjB;AA+FD;;;;;GAKG;AACH,sCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,uCAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,wCAFY,MAAM,CAMjB;AA/3BM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AAiHK,gCA1BI,MAAM,WACN,MAAM,GAuBL,MAAM,CAShB;AAOK,mCAFI,MAAM;;;;oBA8Hf;AAmBK;;;;oBA2BL;AAUK,iDAFI,MAAM,OAAC;;;oBAqBhB;AAEK;;;;;mBAkBL;AAKK;;WAIL;AAKK;;WAIL;AAgCK;;WAML;AAKK;;WAML;AAsHK,2DAFK,MAAM,OAAA;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAgCK,2CAbI,OAAO,GAAC,MAAM,GAWb,MAAM,CAoBhB;AAoBK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
@@ -3,13 +3,13 @@ export function getInserterSidebarToggleRef(state: any): any;
3
3
  export function getEntityActions(state: any, ...args: any[]): import("@wordpress/dataviews").Action<any>[];
4
4
  export function isEntityReady(state: any, ...args: any[]): boolean;
5
5
  /**
6
- * Get the insertion point for the inserter.
6
+ * Get the inserter.
7
7
  *
8
8
  * @param {Object} state Global application state.
9
9
  *
10
10
  * @return {Object} The root client ID, index to insert at and starting filter value.
11
11
  */
12
- export const getInsertionPoint: Function;
12
+ export const getInserter: Function;
13
13
  export const getPostIcon: Function;
14
14
  /**
15
15
  * Returns true if there are unsaved changes to the
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAkFA,sDAEC;AACD,6DAEC;AA8ED,2GAEC;AAED,mEAEC;AArID;;;;;;GAMG;AACH,yCAmCE;AAeF,mCA6BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE;AAUF;;;;;;;;GAQG;AACH,2CAsBE"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAkFA,sDAEC;AACD,6DAEC;AA8ED,2GAEC;AAED,mEAEC;AArID;;;;;;GAMG;AACH,mCAmCE;AAeF,mCA6BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE;AAUF;;;;;;;;GAQG;AACH,2CAsBE"}
@@ -29,6 +29,11 @@ export function isCleanNewPost(state: Object): boolean;
29
29
  *
30
30
  * @param {Object} state Global application state.
31
31
  *
32
+ * @example
33
+ *
34
+ *```js
35
+ * const currentPostType = wp.data.select( 'core/editor' ).getCurrentPostType();
36
+ *```
32
37
  * @return {string} Post type.
33
38
  */
34
39
  export function getCurrentPostType(state: Object): string;
@@ -83,6 +88,22 @@ export function getCurrentPostAttribute(state: Object, attributeName: string): a
83
88
  * @param {Object} state Global application state.
84
89
  * @param {string} attributeName Post attribute name.
85
90
  *
91
+ * @example
92
+ *
93
+ *```js
94
+ * // Get specific media size based on the featured media ID
95
+ * // Note: change sizes?.large for any registered size
96
+ * const getFeaturedMediaUrl = useSelect( ( select ) => {
97
+ * const getFeaturedMediaId =
98
+ * select( 'core/editor' ).getEditedPostAttribute( 'featured_media' );
99
+ * const getMedia = select( 'core' ).getMedia( getFeaturedMediaId );
100
+ *
101
+ * return (
102
+ * getMedia?.media_details?.sizes?.large?.source_url || getMedia?.source_url || ''
103
+ * );
104
+ * }, [] );
105
+ *```
106
+ *
86
107
  * @return {*} Post attribute value.
87
108
  */
88
109
  export function getEditedPostAttribute(state: Object, attributeName: string): any;
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/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;;;kBACN,MAAM;;;;;YACN,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.8.8",
3
+ "version": "14.10.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,42 +31,42 @@
31
31
  "{src,build,build-module}/{index.js,store/index.js,hooks/**,bindings/**}"
32
32
  ],
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^4.8.2",
36
- "@wordpress/api-fetch": "^7.8.2",
37
- "@wordpress/blob": "^4.8.1",
38
- "@wordpress/block-editor": "^14.3.6",
39
- "@wordpress/blocks": "^13.8.4",
40
- "@wordpress/commands": "^1.8.6",
41
- "@wordpress/components": "^28.8.6",
42
- "@wordpress/compose": "^7.8.3",
43
- "@wordpress/core-data": "^7.8.6",
44
- "@wordpress/data": "^10.8.3",
45
- "@wordpress/dataviews": "^4.4.6",
46
- "@wordpress/date": "^5.8.2",
47
- "@wordpress/deprecated": "^4.8.2",
48
- "@wordpress/dom": "^4.8.2",
49
- "@wordpress/element": "^6.8.1",
50
- "@wordpress/fields": "^0.0.7",
51
- "@wordpress/hooks": "^4.8.2",
52
- "@wordpress/html-entities": "^4.8.1",
53
- "@wordpress/i18n": "^5.8.2",
54
- "@wordpress/icons": "^10.8.2",
55
- "@wordpress/interface": "^6.8.6",
56
- "@wordpress/keyboard-shortcuts": "^5.8.3",
57
- "@wordpress/keycodes": "^4.8.2",
58
- "@wordpress/media-utils": "^5.8.2",
59
- "@wordpress/notices": "^5.8.3",
60
- "@wordpress/patterns": "^2.8.6",
61
- "@wordpress/plugins": "^7.8.6",
62
- "@wordpress/preferences": "^4.8.6",
63
- "@wordpress/private-apis": "^1.8.1",
64
- "@wordpress/reusable-blocks": "^5.8.6",
65
- "@wordpress/rich-text": "^7.8.3",
66
- "@wordpress/server-side-render": "^5.8.6",
67
- "@wordpress/url": "^4.8.1",
68
- "@wordpress/warning": "^3.8.1",
69
- "@wordpress/wordcount": "^4.8.1",
34
+ "@babel/runtime": "7.25.7",
35
+ "@wordpress/a11y": "^4.10.0",
36
+ "@wordpress/api-fetch": "^7.10.0",
37
+ "@wordpress/blob": "^4.10.0",
38
+ "@wordpress/block-editor": "^14.5.0",
39
+ "@wordpress/blocks": "^13.10.0",
40
+ "@wordpress/commands": "^1.10.0",
41
+ "@wordpress/components": "^28.10.0",
42
+ "@wordpress/compose": "^7.10.0",
43
+ "@wordpress/core-data": "^7.10.0",
44
+ "@wordpress/data": "^10.10.0",
45
+ "@wordpress/dataviews": "^4.6.0",
46
+ "@wordpress/date": "^5.10.0",
47
+ "@wordpress/deprecated": "^4.10.0",
48
+ "@wordpress/dom": "^4.10.0",
49
+ "@wordpress/element": "^6.10.0",
50
+ "@wordpress/fields": "^0.2.0",
51
+ "@wordpress/hooks": "^4.10.0",
52
+ "@wordpress/html-entities": "^4.10.0",
53
+ "@wordpress/i18n": "^5.10.0",
54
+ "@wordpress/icons": "^10.10.0",
55
+ "@wordpress/interface": "^7.0.0",
56
+ "@wordpress/keyboard-shortcuts": "^5.10.0",
57
+ "@wordpress/keycodes": "^4.10.0",
58
+ "@wordpress/media-utils": "^5.10.0",
59
+ "@wordpress/notices": "^5.10.0",
60
+ "@wordpress/patterns": "^2.10.0",
61
+ "@wordpress/plugins": "^7.10.0",
62
+ "@wordpress/preferences": "^4.10.0",
63
+ "@wordpress/private-apis": "^1.10.0",
64
+ "@wordpress/reusable-blocks": "^5.10.0",
65
+ "@wordpress/rich-text": "^7.10.0",
66
+ "@wordpress/server-side-render": "^5.10.0",
67
+ "@wordpress/url": "^4.10.0",
68
+ "@wordpress/warning": "^3.10.0",
69
+ "@wordpress/wordcount": "^4.10.0",
70
70
  "change-case": "^4.1.2",
71
71
  "client-zip": "^2.4.5",
72
72
  "clsx": "^2.1.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "b7af02f8431034ee19cdc33dd105d21705823eed"
89
+ "gitHead": "ab34a7ac935fd1478eac63b596242d83270897ee"
90
90
  }
@@ -1,18 +1,13 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import {
5
- store as blocksStore,
6
- registerBlockBindingsSource,
7
- } from '@wordpress/blocks';
8
- import { dispatch } from '@wordpress/data';
4
+ import { registerBlockBindingsSource } from '@wordpress/blocks';
9
5
 
10
6
  /**
11
7
  * Internal dependencies
12
8
  */
13
9
  import patternOverrides from './pattern-overrides';
14
10
  import postMeta from './post-meta';
15
- import { unlock } from '../lock-unlock';
16
11
 
17
12
  /**
18
13
  * Function to register core block bindings sources provided by the editor.
@@ -28,29 +23,3 @@ export function registerCoreBlockBindingsSources() {
28
23
  registerBlockBindingsSource( patternOverrides );
29
24
  registerBlockBindingsSource( postMeta );
30
25
  }
31
-
32
- /**
33
- * Function to bootstrap core block bindings sources defined in the server.
34
- *
35
- * @param {Object} sources Object containing the sources to bootstrap.
36
- *
37
- * @example
38
- * ```js
39
- * import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
40
- *
41
- * bootstrapBlockBindingsSourcesFromServer( sources );
42
- * ```
43
- */
44
- export function bootstrapBlockBindingsSourcesFromServer( sources ) {
45
- if ( sources ) {
46
- const { addBootstrappedBlockBindingsSource } = unlock(
47
- dispatch( blocksStore )
48
- );
49
- for ( const [ name, args ] of Object.entries( sources ) ) {
50
- addBootstrappedBlockBindingsSource( {
51
- name,
52
- ...args,
53
- } );
54
- }
55
- }
56
- }
@@ -17,21 +17,20 @@ import { __, _x } from '@wordpress/i18n';
17
17
  */
18
18
  import { store as editorStore } from '../../store';
19
19
  import { unlock } from '../../lock-unlock';
20
+ import usePostContentBlocks from '../provider/use-post-content-blocks';
20
21
 
21
22
  function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
23
+ const postContentBlocks = usePostContentBlocks();
22
24
  const { entity, onNavigateToEntityRecord, canEditTemplates } = useSelect(
23
25
  ( select ) => {
24
26
  const {
25
- getBlockEditingMode,
26
27
  getBlockParentsByBlockName,
27
28
  getSettings,
28
29
  getBlockAttributes,
30
+ getBlockParents,
29
31
  } = select( blockEditorStore );
30
- const contentOnly =
31
- getBlockEditingMode( clientId ) === 'contentOnly';
32
- if ( ! contentOnly ) {
33
- return {};
34
- }
32
+ const { getCurrentTemplateId, getRenderingMode } =
33
+ select( editorStore );
35
34
  const patternParent = getBlockParentsByBlockName(
36
35
  clientId,
37
36
  'core/block',
@@ -45,19 +44,20 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
45
44
  'wp_block',
46
45
  getBlockAttributes( patternParent ).ref
47
46
  );
48
- } else {
49
- const { getCurrentTemplateId } = select( editorStore );
50
- const templateId = getCurrentTemplateId();
51
- const { getContentLockingParent } = unlock(
52
- select( blockEditorStore )
47
+ } else if (
48
+ getRenderingMode() === 'template-locked' &&
49
+ ! getBlockParents( clientId ).some( ( parent ) =>
50
+ postContentBlocks.includes( parent )
51
+ )
52
+ ) {
53
+ record = select( coreStore ).getEntityRecord(
54
+ 'postType',
55
+ 'wp_template',
56
+ getCurrentTemplateId()
53
57
  );
54
- if ( ! getContentLockingParent( clientId ) && templateId ) {
55
- record = select( coreStore ).getEntityRecord(
56
- 'postType',
57
- 'wp_template',
58
- templateId
59
- );
60
- }
58
+ }
59
+ if ( ! record ) {
60
+ return {};
61
61
  }
62
62
  const _canEditTemplates = select( coreStore ).canUser( 'create', {
63
63
  kind: 'postType',
@@ -70,7 +70,7 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
70
70
  getSettings().onNavigateToEntityRecord,
71
71
  };
72
72
  },
73
- [ clientId ]
73
+ [ clientId, postContentBlocks ]
74
74
  );
75
75
 
76
76
  if ( ! entity ) {
@@ -38,10 +38,8 @@ function DocumentTools( { className, disableBlockTools = false } ) {
38
38
  listViewShortcut,
39
39
  inserterSidebarToggleRef,
40
40
  listViewToggleRef,
41
- hasFixedToolbar,
42
41
  showIconLabels,
43
42
  } = useSelect( ( select ) => {
44
- const { getSettings } = select( blockEditorStore );
45
43
  const { get } = select( preferencesStore );
46
44
  const {
47
45
  isListViewOpened,
@@ -60,7 +58,6 @@ function DocumentTools( { className, disableBlockTools = false } ) {
60
58
  ),
61
59
  inserterSidebarToggleRef: getInserterSidebarToggleRef(),
62
60
  listViewToggleRef: getListViewToggleRef(),
63
- hasFixedToolbar: getSettings().hasFixedToolbar,
64
61
  showIconLabels: get( 'core', 'showIconLabels' ),
65
62
  isDistractionFree: get( 'core', 'distractionFree' ),
66
63
  isVisualMode: getEditorMode() === 'visual',
@@ -99,7 +96,7 @@ function DocumentTools( { className, disableBlockTools = false } ) {
99
96
 
100
97
  /* translators: button label text should, if possible, be under 16 characters. */
101
98
  const longLabel = _x(
102
- 'Toggle block inserter',
99
+ 'Block Inserter',
103
100
  'Generic label for block inserter button'
104
101
  );
105
102
  const shortLabel = ! isInserterOpened ? __( 'Add' ) : __( 'Close' );
@@ -137,7 +134,7 @@ function DocumentTools( { className, disableBlockTools = false } ) {
137
134
  ) }
138
135
  { ( isWideViewport || ! showIconLabels ) && (
139
136
  <>
140
- { isLargeViewport && ! hasFixedToolbar && (
137
+ { isLargeViewport && (
141
138
  <ToolbarItem
142
139
  as={ ToolSelector }
143
140
  showTooltip={ ! showIconLabels }
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
+ import { store as blockEditorStore } from '@wordpress/block-editor';
4
5
  import { useSelect } from '@wordpress/data';
5
6
  import { useMediaQuery, useViewportMatch } from '@wordpress/compose';
6
7
  import { __unstableMotion as motion } from '@wordpress/components';
7
8
  import { store as preferencesStore } from '@wordpress/preferences';
8
9
  import { useState } from '@wordpress/element';
9
10
  import { PinnedItems } from '@wordpress/interface';
10
- import { store as blockEditorStore } from '@wordpress/block-editor';
11
11
 
12
12
  /**
13
13
  * Internal dependencies
@@ -53,6 +53,7 @@ function Header( {
53
53
  const isLargeViewport = useViewportMatch( 'medium' );
54
54
  const isTooNarrowForDocumentBar = useMediaQuery( '(max-width: 403px)' );
55
55
  const {
56
+ postType,
56
57
  isTextEditor,
57
58
  isPublishSidebarOpened,
58
59
  showIconLabels,
@@ -64,11 +65,12 @@ function Header( {
64
65
  const {
65
66
  getEditorMode,
66
67
  getEditorSettings,
68
+ getCurrentPostType,
67
69
  isPublishSidebarOpened: _isPublishSidebarOpened,
68
70
  } = select( editorStore );
69
- const { __unstableGetEditorMode } = select( blockEditorStore );
70
71
 
71
72
  return {
73
+ postType: getCurrentPostType(),
72
74
  isTextEditor: getEditorMode() === 'text',
73
75
  isPublishSidebarOpened: _isPublishSidebarOpened(),
74
76
  showIconLabels: getPreference( 'core', 'showIconLabels' ),
@@ -77,10 +79,13 @@ function Header( {
77
79
  !! select( blockEditorStore ).getBlockSelectionStart(),
78
80
  isNestedEntity:
79
81
  !! getEditorSettings().onNavigateToPreviousEntityRecord,
80
- isZoomedOutView: __unstableGetEditorMode() === 'zoom-out',
81
82
  };
82
83
  }, [] );
83
84
 
85
+ const canBeZoomedOut = [ 'post', 'page', 'wp_template' ].includes(
86
+ postType
87
+ );
88
+
84
89
  const [ isBlockToolsCollapsed, setIsBlockToolsCollapsed ] =
85
90
  useState( true );
86
91
 
@@ -88,9 +93,10 @@ function Header( {
88
93
  ( ! hasBlockSelection || isBlockToolsCollapsed ) &&
89
94
  ! isTooNarrowForDocumentBar;
90
95
  const hasBackButton = useHasBackButton();
91
-
92
- // The edit-post-header classname is only kept for backward compatibilty
93
- // as some plugins might be relying on its presence.
96
+ /*
97
+ * The edit-post-header classname is only kept for backward compatability
98
+ * as some plugins might be relying on its presence.
99
+ */
94
100
  return (
95
101
  <div className="editor-header edit-post-header">
96
102
  { hasBackButton && (
@@ -132,13 +138,20 @@ function Header( {
132
138
  className="editor-header__settings"
133
139
  >
134
140
  { ! customSaveButton && ! isPublishSidebarOpened && (
135
- // This button isn't completely hidden by the publish sidebar.
136
- // We can't hide the whole toolbar when the publish sidebar is open because
137
- // we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
138
- // We track that DOM node to return focus to the PostPublishButtonOrToggle
139
- // when the publish sidebar has been closed.
141
+ /*
142
+ * This button isn't completely hidden by the publish sidebar.
143
+ * We can't hide the whole toolbar when the publish sidebar is open because
144
+ * we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
145
+ * We track that DOM node to return focus to the PostPublishButtonOrToggle
146
+ * when the publish sidebar has been closed.
147
+ */
140
148
  <PostSavedState forceIsDirty={ forceIsDirty } />
141
149
  ) }
150
+
151
+ { canBeZoomedOut && isEditorIframed && isWideViewport && (
152
+ <ZoomOutToggle />
153
+ ) }
154
+
142
155
  <PreviewDropdown
143
156
  forceIsAutosaveable={ forceIsDirty }
144
157
  disabled={ isNestedEntity }
@@ -149,8 +162,6 @@ function Header( {
149
162
  />
150
163
  <PostViewLink />
151
164
 
152
- { isEditorIframed && isWideViewport && <ZoomOutToggle /> }
153
-
154
165
  { ( isWideViewport || ! showIconLabels ) && (
155
166
  <PinnedItems.Slot scope="core" />
156
167
  ) }
@@ -24,13 +24,13 @@ export default function InserterSidebar() {
24
24
  const {
25
25
  blockSectionRootClientId,
26
26
  inserterSidebarToggleRef,
27
- insertionPoint,
27
+ inserter,
28
28
  showMostUsedBlocks,
29
29
  sidebarIsOpened,
30
30
  } = useSelect( ( select ) => {
31
31
  const {
32
32
  getInserterSidebarToggleRef,
33
- getInsertionPoint,
33
+ getInserter,
34
34
  isPublishSidebarOpened,
35
35
  } = unlock( select( editorStore ) );
36
36
  const {
@@ -52,7 +52,7 @@ export default function InserterSidebar() {
52
52
  };
53
53
  return {
54
54
  inserterSidebarToggleRef: getInserterSidebarToggleRef(),
55
- insertionPoint: getInsertionPoint(),
55
+ inserter: getInserter(),
56
56
  showMostUsedBlocks: get( 'core', 'mostUsedBlocks' ),
57
57
  blockSectionRootClientId: getBlockSectionRootClientId(),
58
58
  sidebarIsOpened: !! (
@@ -88,14 +88,11 @@ export default function InserterSidebar() {
88
88
  showMostUsedBlocks={ showMostUsedBlocks }
89
89
  showInserterHelpPanel
90
90
  shouldFocusBlock={ isMobileViewport }
91
- rootClientId={
92
- blockSectionRootClientId ?? insertionPoint.rootClientId
93
- }
94
- __experimentalInsertionIndex={ insertionPoint.insertionIndex }
95
- onSelect={ insertionPoint.onSelect }
96
- __experimentalInitialTab={ insertionPoint.tab }
97
- __experimentalInitialCategory={ insertionPoint.category }
98
- __experimentalFilterValue={ insertionPoint.filterValue }
91
+ rootClientId={ blockSectionRootClientId }
92
+ onSelect={ inserter.onSelect }
93
+ __experimentalInitialTab={ inserter.tab }
94
+ __experimentalInitialCategory={ inserter.category }
95
+ __experimentalFilterValue={ inserter.filterValue }
99
96
  onPatternCategorySelection={
100
97
  sidebarIsOpened
101
98
  ? () => disableComplementaryArea( 'core' )
@@ -16,7 +16,7 @@ exports[`PostSavedState returns a disabled button if the post is not saveable 1`
16
16
  xmlns="http://www.w3.org/2000/svg"
17
17
  >
18
18
  <path
19
- d="M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"
19
+ d="M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"
20
20
  />
21
21
  </svg>
22
22
  </button>