@wordpress/editor 14.3.0 → 14.5.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 (537) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +2 -1
  3. package/build/bindings/api.js +65 -0
  4. package/build/bindings/api.js.map +1 -0
  5. package/build/bindings/pattern-overrides.js +23 -13
  6. package/build/bindings/pattern-overrides.js.map +1 -1
  7. package/build/bindings/post-meta.js +35 -12
  8. package/build/bindings/post-meta.js.map +1 -1
  9. package/build/components/block-settings-menu/content-only-settings-menu.js +4 -1
  10. package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  11. package/build/components/blog-title/index.js +7 -3
  12. package/build/components/blog-title/index.js.map +1 -1
  13. package/build/components/collapsible-block-toolbar/index.js +2 -3
  14. package/build/components/collapsible-block-toolbar/index.js.map +1 -1
  15. package/build/components/commands/index.js +8 -2
  16. package/build/components/commands/index.js.map +1 -1
  17. package/build/components/document-bar/index.js +1 -1
  18. package/build/components/document-bar/index.js.map +1 -1
  19. package/build/components/global-styles-provider/index.js +15 -3
  20. package/build/components/global-styles-provider/index.js.map +1 -1
  21. package/build/components/header/back-button.js +7 -8
  22. package/build/components/header/back-button.js.map +1 -1
  23. package/build/components/header/index.js +21 -20
  24. package/build/components/header/index.js.map +1 -1
  25. package/build/components/page-attributes/order.js +1 -67
  26. package/build/components/page-attributes/order.js.map +1 -1
  27. package/build/components/page-attributes/panel.js +1 -4
  28. package/build/components/page-attributes/panel.js.map +1 -1
  29. package/build/components/page-attributes/parent.js +6 -2
  30. package/build/components/page-attributes/parent.js.map +1 -1
  31. package/build/components/post-actions/actions.js +131 -344
  32. package/build/components/post-actions/actions.js.map +1 -1
  33. package/build/components/post-actions/index.js +16 -6
  34. package/build/components/post-actions/index.js.map +1 -1
  35. package/build/components/post-author/hook.js +10 -3
  36. package/build/components/post-author/hook.js.map +1 -1
  37. package/build/components/post-author/panel.js +2 -1
  38. package/build/components/post-author/panel.js.map +1 -1
  39. package/build/components/post-card-panel/index.js +9 -3
  40. package/build/components/post-card-panel/index.js.map +1 -1
  41. package/build/components/post-comments/index.js +6 -20
  42. package/build/components/post-comments/index.js.map +1 -1
  43. package/build/components/post-content-information/index.js +7 -1
  44. package/build/components/post-content-information/index.js.map +1 -1
  45. package/build/components/post-discussion/panel.js +2 -2
  46. package/build/components/post-discussion/panel.js.map +1 -1
  47. package/build/components/post-excerpt/panel.js +1 -1
  48. package/build/components/post-excerpt/panel.js.map +1 -1
  49. package/build/components/post-featured-image/index.js +3 -1
  50. package/build/components/post-featured-image/index.js.map +1 -1
  51. package/build/components/post-last-revision/index.js +2 -1
  52. package/build/components/post-last-revision/index.js.map +1 -1
  53. package/build/components/post-publish-button/index.js +4 -11
  54. package/build/components/post-publish-button/index.js.map +1 -1
  55. package/build/components/post-publish-panel/maybe-category-panel.js +4 -1
  56. package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  57. package/build/components/post-publish-panel/maybe-tags-panel.js +2 -1
  58. package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  59. package/build/components/post-status/index.js +47 -51
  60. package/build/components/post-status/index.js.map +1 -1
  61. package/build/components/post-taxonomies/flat-term-selector.js +17 -6
  62. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  63. package/build/components/post-taxonomies/index.js +7 -1
  64. package/build/components/post-taxonomies/index.js.map +1 -1
  65. package/build/components/post-template/block-theme.js +4 -4
  66. package/build/components/post-template/block-theme.js.map +1 -1
  67. package/build/components/post-template/classic-theme.js +8 -2
  68. package/build/components/post-template/classic-theme.js.map +1 -1
  69. package/build/components/post-template/create-new-template-modal.js +3 -0
  70. package/build/components/post-template/create-new-template-modal.js.map +1 -1
  71. package/build/components/post-template/create-new-template.js +4 -1
  72. package/build/components/post-template/create-new-template.js.map +1 -1
  73. package/build/components/post-template/hooks.js +5 -1
  74. package/build/components/post-template/hooks.js.map +1 -1
  75. package/build/components/post-template/panel.js +8 -2
  76. package/build/components/post-template/panel.js.map +1 -1
  77. package/build/components/post-trash/check.js +6 -4
  78. package/build/components/post-trash/check.js.map +1 -1
  79. package/build/components/post-url/panel.js +9 -4
  80. package/build/components/post-url/panel.js.map +1 -1
  81. package/build/components/posts-per-page/index.js +6 -2
  82. package/build/components/posts-per-page/index.js.map +1 -1
  83. package/build/components/preview-dropdown/index.js +82 -17
  84. package/build/components/preview-dropdown/index.js.map +1 -1
  85. package/build/components/provider/disable-non-page-content-blocks.js +14 -18
  86. package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
  87. package/build/components/provider/use-block-editor-settings.js +15 -6
  88. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  89. package/build/components/save-publish-panels/index.js +1 -2
  90. package/build/components/save-publish-panels/index.js.map +1 -1
  91. package/build/components/sidebar/index.js +3 -9
  92. package/build/components/sidebar/index.js.map +1 -1
  93. package/build/components/site-discussion/index.js +12 -22
  94. package/build/components/site-discussion/index.js.map +1 -1
  95. package/build/components/template-content-panel/index.js +17 -15
  96. package/build/components/template-content-panel/index.js.map +1 -1
  97. package/build/components/visual-editor/edit-template-blocks-notification.js +4 -4
  98. package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  99. package/build/components/visual-editor/index.js +7 -3
  100. package/build/components/visual-editor/index.js.map +1 -1
  101. package/build/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
  102. package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
  103. package/build/dataviews/actions/delete-post.js +2 -0
  104. package/build/dataviews/actions/delete-post.js.map +1 -1
  105. package/build/dataviews/actions/export-pattern.native.js +9 -0
  106. package/build/dataviews/actions/export-pattern.native.js.map +1 -0
  107. package/build/dataviews/actions/permanently-delete-post.js +107 -0
  108. package/build/dataviews/actions/permanently-delete-post.js.map +1 -0
  109. package/build/dataviews/actions/restore-post.js +112 -0
  110. package/build/dataviews/actions/restore-post.js.map +1 -0
  111. package/build/dataviews/actions/trash-post.js +142 -0
  112. package/build/dataviews/actions/trash-post.js.map +1 -0
  113. package/build/dataviews/store/private-actions.js +45 -0
  114. package/build/dataviews/store/private-actions.js.map +1 -1
  115. package/build/dataviews/store/private-selectors.js +10 -10
  116. package/build/dataviews/store/private-selectors.js.map +1 -1
  117. package/build/dataviews/store/reducer.js +15 -1
  118. package/build/dataviews/store/reducer.js.map +1 -1
  119. package/build/dataviews/types.js.map +1 -1
  120. package/build/hooks/pattern-overrides.js +1 -1
  121. package/build/hooks/pattern-overrides.js.map +1 -1
  122. package/build/index.js +0 -1
  123. package/build/index.js.map +1 -1
  124. package/build/private-apis.js +3 -2
  125. package/build/private-apis.js.map +1 -1
  126. package/build/store/actions.js +16 -2
  127. package/build/store/actions.js.map +1 -1
  128. package/build/store/private-actions.js +8 -1
  129. package/build/store/private-actions.js.map +1 -1
  130. package/build/store/private-selectors.js +33 -2
  131. package/build/store/private-selectors.js.map +1 -1
  132. package/build/utils/media-upload/index.js +35 -2
  133. package/build/utils/media-upload/index.js.map +1 -1
  134. package/build-module/bindings/api.js +57 -0
  135. package/build-module/bindings/api.js.map +1 -0
  136. package/build-module/bindings/pattern-overrides.js +23 -13
  137. package/build-module/bindings/pattern-overrides.js.map +1 -1
  138. package/build-module/bindings/post-meta.js +35 -12
  139. package/build-module/bindings/post-meta.js.map +1 -1
  140. package/build-module/components/block-settings-menu/content-only-settings-menu.js +4 -1
  141. package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  142. package/build-module/components/blog-title/index.js +7 -3
  143. package/build-module/components/blog-title/index.js.map +1 -1
  144. package/build-module/components/collapsible-block-toolbar/index.js +1 -2
  145. package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
  146. package/build-module/components/commands/index.js +8 -2
  147. package/build-module/components/commands/index.js.map +1 -1
  148. package/build-module/components/document-bar/index.js +1 -1
  149. package/build-module/components/document-bar/index.js.map +1 -1
  150. package/build-module/components/global-styles-provider/index.js +15 -3
  151. package/build-module/components/global-styles-provider/index.js.map +1 -1
  152. package/build-module/components/header/back-button.js +5 -7
  153. package/build-module/components/header/back-button.js.map +1 -1
  154. package/build-module/components/header/index.js +21 -22
  155. package/build-module/components/header/index.js.map +1 -1
  156. package/build-module/components/page-attributes/order.js +4 -70
  157. package/build-module/components/page-attributes/order.js.map +1 -1
  158. package/build-module/components/page-attributes/panel.js +1 -6
  159. package/build-module/components/page-attributes/panel.js.map +1 -1
  160. package/build-module/components/page-attributes/parent.js +7 -3
  161. package/build-module/components/page-attributes/parent.js.map +1 -1
  162. package/build-module/components/post-actions/actions.js +137 -350
  163. package/build-module/components/post-actions/actions.js.map +1 -1
  164. package/build-module/components/post-actions/index.js +16 -6
  165. package/build-module/components/post-actions/index.js.map +1 -1
  166. package/build-module/components/post-author/hook.js +10 -3
  167. package/build-module/components/post-author/hook.js.map +1 -1
  168. package/build-module/components/post-author/panel.js +2 -1
  169. package/build-module/components/post-author/panel.js.map +1 -1
  170. package/build-module/components/post-card-panel/index.js +9 -3
  171. package/build-module/components/post-card-panel/index.js.map +1 -1
  172. package/build-module/components/post-comments/index.js +8 -24
  173. package/build-module/components/post-comments/index.js.map +1 -1
  174. package/build-module/components/post-content-information/index.js +7 -1
  175. package/build-module/components/post-content-information/index.js.map +1 -1
  176. package/build-module/components/post-discussion/panel.js +3 -3
  177. package/build-module/components/post-discussion/panel.js.map +1 -1
  178. package/build-module/components/post-excerpt/panel.js +1 -1
  179. package/build-module/components/post-excerpt/panel.js.map +1 -1
  180. package/build-module/components/post-featured-image/index.js +3 -1
  181. package/build-module/components/post-featured-image/index.js.map +1 -1
  182. package/build-module/components/post-last-revision/index.js +2 -1
  183. package/build-module/components/post-last-revision/index.js.map +1 -1
  184. package/build-module/components/post-publish-button/index.js +4 -11
  185. package/build-module/components/post-publish-button/index.js.map +1 -1
  186. package/build-module/components/post-publish-panel/maybe-category-panel.js +4 -1
  187. package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  188. package/build-module/components/post-publish-panel/maybe-tags-panel.js +2 -1
  189. package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  190. package/build-module/components/post-status/index.js +49 -53
  191. package/build-module/components/post-status/index.js.map +1 -1
  192. package/build-module/components/post-taxonomies/flat-term-selector.js +17 -6
  193. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  194. package/build-module/components/post-taxonomies/index.js +7 -1
  195. package/build-module/components/post-taxonomies/index.js.map +1 -1
  196. package/build-module/components/post-template/block-theme.js +4 -4
  197. package/build-module/components/post-template/block-theme.js.map +1 -1
  198. package/build-module/components/post-template/classic-theme.js +8 -2
  199. package/build-module/components/post-template/classic-theme.js.map +1 -1
  200. package/build-module/components/post-template/create-new-template-modal.js +3 -0
  201. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  202. package/build-module/components/post-template/create-new-template.js +4 -1
  203. package/build-module/components/post-template/create-new-template.js.map +1 -1
  204. package/build-module/components/post-template/hooks.js +5 -1
  205. package/build-module/components/post-template/hooks.js.map +1 -1
  206. package/build-module/components/post-template/panel.js +8 -2
  207. package/build-module/components/post-template/panel.js.map +1 -1
  208. package/build-module/components/post-trash/check.js +6 -4
  209. package/build-module/components/post-trash/check.js.map +1 -1
  210. package/build-module/components/post-url/panel.js +10 -7
  211. package/build-module/components/post-url/panel.js.map +1 -1
  212. package/build-module/components/posts-per-page/index.js +6 -2
  213. package/build-module/components/posts-per-page/index.js.map +1 -1
  214. package/build-module/components/preview-dropdown/index.js +84 -19
  215. package/build-module/components/preview-dropdown/index.js.map +1 -1
  216. package/build-module/components/provider/disable-non-page-content-blocks.js +15 -19
  217. package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
  218. package/build-module/components/provider/use-block-editor-settings.js +15 -6
  219. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  220. package/build-module/components/save-publish-panels/index.js +1 -2
  221. package/build-module/components/save-publish-panels/index.js.map +1 -1
  222. package/build-module/components/sidebar/index.js +3 -9
  223. package/build-module/components/sidebar/index.js.map +1 -1
  224. package/build-module/components/site-discussion/index.js +14 -24
  225. package/build-module/components/site-discussion/index.js.map +1 -1
  226. package/build-module/components/template-content-panel/index.js +18 -16
  227. package/build-module/components/template-content-panel/index.js.map +1 -1
  228. package/build-module/components/visual-editor/edit-template-blocks-notification.js +4 -4
  229. package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  230. package/build-module/components/visual-editor/index.js +7 -3
  231. package/build-module/components/visual-editor/index.js.map +1 -1
  232. package/build-module/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
  233. package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
  234. package/build-module/dataviews/actions/delete-post.js +2 -0
  235. package/build-module/dataviews/actions/delete-post.js.map +1 -1
  236. package/build-module/dataviews/actions/export-pattern.native.js +3 -0
  237. package/build-module/dataviews/actions/export-pattern.native.js.map +1 -0
  238. package/build-module/dataviews/actions/permanently-delete-post.js +99 -0
  239. package/build-module/dataviews/actions/permanently-delete-post.js.map +1 -0
  240. package/build-module/dataviews/actions/restore-post.js +104 -0
  241. package/build-module/dataviews/actions/restore-post.js.map +1 -0
  242. package/build-module/dataviews/actions/trash-post.js +135 -0
  243. package/build-module/dataviews/actions/trash-post.js.map +1 -0
  244. package/build-module/dataviews/store/private-actions.js +40 -0
  245. package/build-module/dataviews/store/private-actions.js.map +1 -1
  246. package/build-module/dataviews/store/private-selectors.js +8 -9
  247. package/build-module/dataviews/store/private-selectors.js.map +1 -1
  248. package/build-module/dataviews/store/reducer.js +15 -1
  249. package/build-module/dataviews/store/reducer.js.map +1 -1
  250. package/build-module/dataviews/types.js.map +1 -1
  251. package/build-module/hooks/pattern-overrides.js +1 -1
  252. package/build-module/hooks/pattern-overrides.js.map +1 -1
  253. package/build-module/index.js +0 -1
  254. package/build-module/index.js.map +1 -1
  255. package/build-module/private-apis.js +3 -2
  256. package/build-module/private-apis.js.map +1 -1
  257. package/build-module/store/actions.js +16 -2
  258. package/build-module/store/actions.js.map +1 -1
  259. package/build-module/store/private-actions.js +8 -1
  260. package/build-module/store/private-actions.js.map +1 -1
  261. package/build-module/store/private-selectors.js +32 -2
  262. package/build-module/store/private-selectors.js.map +1 -1
  263. package/build-module/utils/media-upload/index.js +36 -3
  264. package/build-module/utils/media-upload/index.js.map +1 -1
  265. package/build-style/style-rtl.css +97 -45
  266. package/build-style/style.css +97 -45
  267. package/build-types/bindings/api.d.ts +25 -0
  268. package/build-types/bindings/api.d.ts.map +1 -0
  269. package/build-types/bindings/pattern-overrides.d.ts +5 -6
  270. package/build-types/bindings/pattern-overrides.d.ts.map +1 -1
  271. package/build-types/bindings/post-meta.d.ts +11 -7
  272. package/build-types/bindings/post-meta.d.ts.map +1 -1
  273. package/build-types/components/autocompleters/user.d.ts +2 -2
  274. package/build-types/components/autocompleters/user.d.ts.map +1 -1
  275. package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
  276. package/build-types/components/blog-title/index.d.ts.map +1 -1
  277. package/build-types/components/collapsible-block-toolbar/index.d.ts +1 -2
  278. package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -1
  279. package/build-types/components/commands/index.d.ts.map +1 -1
  280. package/build-types/components/document-bar/index.d.ts.map +1 -1
  281. package/build-types/components/document-outline/check.d.ts.map +1 -1
  282. package/build-types/components/document-outline/index.d.ts.map +1 -1
  283. package/build-types/components/editor-history/redo.d.ts +1 -1
  284. package/build-types/components/editor-history/undo.d.ts +1 -1
  285. package/build-types/components/editor-notices/index.d.ts.map +1 -1
  286. package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
  287. package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
  288. package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
  289. package/build-types/components/header/back-button.d.ts +1 -0
  290. package/build-types/components/header/back-button.d.ts.map +1 -1
  291. package/build-types/components/header/index.d.ts.map +1 -1
  292. package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -1
  293. package/build-types/components/media-categories/index.d.ts.map +1 -1
  294. package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
  295. package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
  296. package/build-types/components/page-attributes/check.d.ts.map +1 -1
  297. package/build-types/components/page-attributes/order.d.ts +1 -1
  298. package/build-types/components/page-attributes/order.d.ts.map +1 -1
  299. package/build-types/components/page-attributes/panel.d.ts.map +1 -1
  300. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  301. package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
  302. package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
  303. package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
  304. package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
  305. package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
  306. package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
  307. package/build-types/components/post-actions/actions.d.ts.map +1 -1
  308. package/build-types/components/post-actions/index.d.ts.map +1 -1
  309. package/build-types/components/post-author/check.d.ts.map +1 -1
  310. package/build-types/components/post-author/hook.d.ts +1 -1
  311. package/build-types/components/post-author/hook.d.ts.map +1 -1
  312. package/build-types/components/post-author/index.d.ts.map +1 -1
  313. package/build-types/components/post-author/panel.d.ts.map +1 -1
  314. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  315. package/build-types/components/post-comments/index.d.ts.map +1 -1
  316. package/build-types/components/post-content-information/index.d.ts.map +1 -1
  317. package/build-types/components/post-discussion/panel.d.ts.map +1 -1
  318. package/build-types/components/post-excerpt/check.d.ts.map +1 -1
  319. package/build-types/components/post-excerpt/index.d.ts.map +1 -1
  320. package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
  321. package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
  322. package/build-types/components/post-featured-image/check.d.ts.map +1 -1
  323. package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
  324. package/build-types/components/post-format/index.d.ts.map +1 -1
  325. package/build-types/components/post-format/panel.d.ts.map +1 -1
  326. package/build-types/components/post-last-revision/check.d.ts.map +1 -1
  327. package/build-types/components/post-last-revision/index.d.ts.map +1 -1
  328. package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
  329. package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
  330. package/build-types/components/post-pending-status/check.d.ts.map +1 -1
  331. package/build-types/components/post-pending-status/index.d.ts.map +1 -1
  332. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  333. package/build-types/components/post-publish-button/index.d.ts.map +1 -1
  334. package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -1
  335. package/build-types/components/post-saved-state/index.d.ts +1 -1
  336. package/build-types/components/post-saved-state/index.d.ts.map +1 -1
  337. package/build-types/components/post-schedule/check.d.ts.map +1 -1
  338. package/build-types/components/post-schedule/index.d.ts.map +1 -1
  339. package/build-types/components/post-schedule/label.d.ts.map +1 -1
  340. package/build-types/components/post-schedule/panel.d.ts.map +1 -1
  341. package/build-types/components/post-slug/check.d.ts.map +1 -1
  342. package/build-types/components/post-slug/index.d.ts.map +1 -1
  343. package/build-types/components/post-status/index.d.ts +2 -1
  344. package/build-types/components/post-status/index.d.ts.map +1 -1
  345. package/build-types/components/post-sticky/check.d.ts.map +1 -1
  346. package/build-types/components/post-sticky/index.d.ts.map +1 -1
  347. package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
  348. package/build-types/components/post-sync-status/index.d.ts.map +1 -1
  349. package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
  350. package/build-types/components/post-taxonomies/flat-term-selector.d.ts +9 -7
  351. package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
  352. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +13 -11
  353. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  354. package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
  355. package/build-types/components/post-template/block-theme.d.ts.map +1 -1
  356. package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
  357. package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
  358. package/build-types/components/post-template/create-new-template.d.ts.map +1 -1
  359. package/build-types/components/post-template/hooks.d.ts.map +1 -1
  360. package/build-types/components/post-template/panel.d.ts.map +1 -1
  361. package/build-types/components/post-text-editor/index.d.ts.map +1 -1
  362. package/build-types/components/post-trash/check.d.ts.map +1 -1
  363. package/build-types/components/post-trash/index.d.ts.map +1 -1
  364. package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
  365. package/build-types/components/post-url/check.d.ts.map +1 -1
  366. package/build-types/components/post-url/index.d.ts.map +1 -1
  367. package/build-types/components/post-url/label.d.ts.map +1 -1
  368. package/build-types/components/post-url/panel.d.ts.map +1 -1
  369. package/build-types/components/post-visibility/check.d.ts.map +1 -1
  370. package/build-types/components/post-visibility/index.d.ts.map +1 -1
  371. package/build-types/components/posts-per-page/index.d.ts.map +1 -1
  372. package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
  373. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  374. package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
  375. package/build-types/components/provider/index.d.ts.map +1 -1
  376. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  377. package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
  378. package/build-types/components/sidebar/index.d.ts.map +1 -1
  379. package/build-types/components/site-discussion/index.d.ts.map +1 -1
  380. package/build-types/components/template-content-panel/index.d.ts +1 -3
  381. package/build-types/components/template-content-panel/index.d.ts.map +1 -1
  382. package/build-types/components/theme-support-check/index.d.ts.map +1 -1
  383. package/build-types/components/time-to-read/index.d.ts.map +1 -1
  384. package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
  385. package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
  386. package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -1
  387. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  388. package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts.map +1 -0
  389. package/build-types/components/word-count/index.d.ts.map +1 -1
  390. package/build-types/dataviews/actions/delete-post.d.ts.map +1 -1
  391. package/build-types/dataviews/actions/export-pattern.native.d.ts +3 -0
  392. package/build-types/dataviews/actions/export-pattern.native.d.ts.map +1 -0
  393. package/build-types/dataviews/actions/permanently-delete-post.d.ts +5 -0
  394. package/build-types/dataviews/actions/permanently-delete-post.d.ts.map +1 -0
  395. package/build-types/dataviews/actions/restore-post.d.ts +5 -0
  396. package/build-types/dataviews/actions/restore-post.d.ts.map +1 -0
  397. package/build-types/dataviews/actions/trash-post.d.ts +5 -0
  398. package/build-types/dataviews/actions/trash-post.d.ts.map +1 -0
  399. package/build-types/dataviews/api.d.ts +1 -1
  400. package/build-types/dataviews/api.d.ts.map +1 -1
  401. package/build-types/dataviews/store/private-actions.d.ts +8 -3
  402. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  403. package/build-types/dataviews/store/private-selectors.d.ts +2 -2
  404. package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
  405. package/build-types/dataviews/store/reducer.d.ts +4 -1
  406. package/build-types/dataviews/store/reducer.d.ts.map +1 -1
  407. package/build-types/dataviews/types.d.ts +9 -0
  408. package/build-types/dataviews/types.d.ts.map +1 -1
  409. package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +1 -1
  410. package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -1
  411. package/build-types/hooks/pattern-overrides.d.ts.map +1 -1
  412. package/build-types/private-apis.d.ts.map +1 -1
  413. package/build-types/store/actions.d.ts.map +1 -1
  414. package/build-types/store/private-actions.d.ts.map +1 -1
  415. package/build-types/store/private-selectors.d.ts +11 -0
  416. package/build-types/store/private-selectors.d.ts.map +1 -1
  417. package/build-types/store/reducer.d.ts +1 -0
  418. package/build-types/store/reducer.d.ts.map +1 -1
  419. package/build-types/store/selectors.d.ts +0 -1
  420. package/build-types/store/selectors.d.ts.map +1 -1
  421. package/build-types/utils/media-upload/index.d.ts.map +1 -1
  422. package/package.json +38 -37
  423. package/src/bindings/api.js +57 -0
  424. package/src/bindings/pattern-overrides.js +28 -17
  425. package/src/bindings/post-meta.js +39 -14
  426. package/src/components/block-settings-menu/content-only-settings-menu.js +4 -4
  427. package/src/components/blog-title/index.js +8 -3
  428. package/src/components/collapsible-block-toolbar/index.js +1 -3
  429. package/src/components/collapsible-block-toolbar/style.scss +0 -3
  430. package/src/components/commands/index.js +4 -2
  431. package/src/components/document-bar/index.js +1 -1
  432. package/src/components/document-bar/style.scss +2 -6
  433. package/src/components/document-tools/style.scss +4 -4
  434. package/src/components/editor-interface/style.scss +9 -0
  435. package/src/components/global-styles-provider/index.js +22 -11
  436. package/src/components/header/back-button.js +6 -6
  437. package/src/components/header/index.js +27 -27
  438. package/src/components/header/style.scss +64 -21
  439. package/src/components/inserter-sidebar/style.scss +1 -6
  440. package/src/components/list-view-sidebar/style.scss +4 -0
  441. package/src/components/page-attributes/order.js +3 -77
  442. package/src/components/page-attributes/panel.js +1 -7
  443. package/src/components/page-attributes/parent.js +25 -7
  444. package/src/components/post-actions/actions.js +158 -463
  445. package/src/components/post-actions/index.js +19 -7
  446. package/src/components/post-author/hook.js +11 -3
  447. package/src/components/post-author/panel.js +3 -1
  448. package/src/components/post-card-panel/index.js +9 -3
  449. package/src/components/post-comments/index.js +8 -21
  450. package/src/components/post-content-information/index.js +7 -1
  451. package/src/components/post-discussion/panel.js +5 -3
  452. package/src/components/post-excerpt/panel.js +2 -1
  453. package/src/components/post-featured-image/index.js +5 -1
  454. package/src/components/post-last-revision/index.js +1 -0
  455. package/src/components/post-panel-row/style.scss +0 -1
  456. package/src/components/post-publish-button/index.js +4 -17
  457. package/src/components/post-publish-panel/maybe-category-panel.js +4 -1
  458. package/src/components/post-publish-panel/maybe-tags-panel.js +1 -1
  459. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +2 -2
  460. package/src/components/post-status/index.js +29 -51
  461. package/src/components/post-taxonomies/flat-term-selector.js +19 -5
  462. package/src/components/post-taxonomies/index.js +8 -1
  463. package/src/components/post-template/block-theme.js +5 -1
  464. package/src/components/post-template/classic-theme.js +8 -3
  465. package/src/components/post-template/create-new-template-modal.js +7 -1
  466. package/src/components/post-template/create-new-template.js +4 -1
  467. package/src/components/post-template/hooks.js +8 -2
  468. package/src/components/post-template/panel.js +10 -2
  469. package/src/components/post-trash/check.js +9 -5
  470. package/src/components/post-url/panel.js +15 -4
  471. package/src/components/posts-per-page/index.js +7 -2
  472. package/src/components/preview-dropdown/index.js +113 -35
  473. package/src/components/preview-dropdown/style.scss +5 -0
  474. package/src/components/provider/disable-non-page-content-blocks.js +27 -24
  475. package/src/components/provider/use-block-editor-settings.js +15 -6
  476. package/src/components/save-publish-panels/index.js +1 -4
  477. package/src/components/sidebar/index.js +2 -5
  478. package/src/components/site-discussion/index.js +15 -22
  479. package/src/components/template-content-panel/index.js +37 -21
  480. package/src/components/visual-editor/edit-template-blocks-notification.js +5 -1
  481. package/src/components/visual-editor/index.js +13 -8
  482. package/src/components/visual-editor/style.scss +1 -4
  483. package/src/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
  484. package/src/dataviews/actions/delete-post.tsx +2 -0
  485. package/src/dataviews/actions/export-pattern.native.tsx +3 -0
  486. package/src/dataviews/actions/permanently-delete-post.tsx +116 -0
  487. package/src/dataviews/actions/restore-post.tsx +134 -0
  488. package/src/dataviews/actions/trash-post.tsx +196 -0
  489. package/src/dataviews/store/private-actions.ts +68 -0
  490. package/src/dataviews/store/private-selectors.ts +9 -17
  491. package/src/dataviews/store/reducer.ts +20 -1
  492. package/src/dataviews/types.ts +11 -0
  493. package/src/hooks/pattern-overrides.js +1 -1
  494. package/src/index.js +0 -1
  495. package/src/private-apis.js +6 -2
  496. package/src/store/actions.js +36 -13
  497. package/src/store/private-actions.js +8 -4
  498. package/src/store/private-selectors.js +45 -2
  499. package/src/store/test/actions.js +9 -3
  500. package/src/store/test/private-selectors.js +78 -0
  501. package/src/utils/media-upload/index.js +38 -3
  502. package/tsconfig.tsbuildinfo +1 -1
  503. package/build/bindings/index.js +0 -22
  504. package/build/bindings/index.js.map +0 -1
  505. package/build/dataviews/actions/index.js +0 -32
  506. package/build/dataviews/actions/index.js.map +0 -1
  507. package/build/hooks/use-select-nearest-editable-block.js.map +0 -1
  508. package/build/store/utils/get-filtered-template-parts.js +0 -71
  509. package/build/store/utils/get-filtered-template-parts.js.map +0 -1
  510. package/build/utils/set-nested-value.js +0 -44
  511. package/build/utils/set-nested-value.js.map +0 -1
  512. package/build-module/bindings/index.js +0 -17
  513. package/build-module/bindings/index.js.map +0 -1
  514. package/build-module/dataviews/actions/index.js +0 -24
  515. package/build-module/dataviews/actions/index.js.map +0 -1
  516. package/build-module/hooks/use-select-nearest-editable-block.js.map +0 -1
  517. package/build-module/store/utils/get-filtered-template-parts.js +0 -64
  518. package/build-module/store/utils/get-filtered-template-parts.js.map +0 -1
  519. package/build-module/utils/set-nested-value.js +0 -38
  520. package/build-module/utils/set-nested-value.js.map +0 -1
  521. package/build-types/bindings/index.d.ts +0 -2
  522. package/build-types/bindings/index.d.ts.map +0 -1
  523. package/build-types/dataviews/actions/index.d.ts +0 -2
  524. package/build-types/dataviews/actions/index.d.ts.map +0 -1
  525. package/build-types/hooks/use-select-nearest-editable-block.d.ts.map +0 -1
  526. package/build-types/store/utils/get-filtered-template-parts.d.ts +0 -3
  527. package/build-types/store/utils/get-filtered-template-parts.d.ts.map +0 -1
  528. package/build-types/utils/set-nested-value.d.ts +0 -20
  529. package/build-types/utils/set-nested-value.d.ts.map +0 -1
  530. package/src/bindings/index.js +0 -15
  531. package/src/components/document-outline/test/__snapshots__/index.js.snap +0 -111
  532. package/src/components/document-outline/test/index.js +0 -185
  533. package/src/dataviews/actions/index.ts +0 -25
  534. package/src/store/utils/get-filtered-template-parts.js +0 -69
  535. package/src/store/utils/test/get-filtered-template-parts.js +0 -189
  536. package/src/utils/set-nested-value.js +0 -39
  537. /package/build-types/{hooks → components/visual-editor}/use-select-nearest-editable-block.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ import type { PostWithPermissions } from '../types';
3
+ declare const permanentlyDeletePost: Action<PostWithPermissions>;
4
+ export default permanentlyDeletePost;
5
+ //# sourceMappingURL=permanently-delete-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permanently-delete-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/permanently-delete-post.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAAE,mBAAmB,CAmGvD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ import type { PostWithPermissions } from '../types';
3
+ declare const restorePost: Action<PostWithPermissions>;
4
+ export default restorePost;
5
+ //# sourceMappingURL=restore-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/restore-post.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,WAAW,EAAE,MAAM,CAAE,mBAAmB,CAoH7C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ import type { PostWithPermissions } from '../types';
3
+ declare const trashPost: Action<PostWithPermissions>;
4
+ export default trashPost;
5
+ //# sourceMappingURL=trash-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trash-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/trash-post.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAMnD,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,QAAA,MAAM,SAAS,EAAE,MAAM,CAAE,mBAAmB,CA0K3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -11,7 +11,7 @@
11
11
  * @param {string} name Entity name.
12
12
  * @param {Action} config Action configuration.
13
13
  */
14
- export function registerEntityAction(kind: string, name: string, config: any): void;
14
+ export function registerEntityAction(kind: string, name: string, config: Action): void;
15
15
  /**
16
16
  * Unregisters a DataViews action.
17
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/dataviews/api.js"],"names":[],"mappings":"AAWA;;GAEG;AAEH;;;;;;;;;GASG;AAEH,2CALW,MAAM,QACN,MAAM,qBAYhB;AAED;;;;;;;;;GASG;AACH,6CAJW,MAAM,QACN,MAAM,YACN,MAAM,QAUhB"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/dataviews/api.js"],"names":[],"mappings":"AAWA;;GAEG;AAEH;;;;;;;;;GASG;AAEH,2CALW,MAAM,QACN,MAAM,UACN,MAAM,QAWhB;AAED;;;;;;;;;GASG;AACH,6CAJW,MAAM,QACN,MAAM,YACN,MAAM,QAUhB;qBA1CY,GAAqC"}
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import type { Action } from '@wordpress/dataviews';
5
2
  export declare function registerEntityAction<Item>(kind: string, name: string, config: Action<Item>): {
6
3
  type: "REGISTER_ENTITY_ACTION";
@@ -14,4 +11,12 @@ export declare function unregisterEntityAction(kind: string, name: string, actio
14
11
  name: string;
15
12
  actionId: string;
16
13
  };
14
+ export declare function setIsReady(kind: string, name: string): {
15
+ type: "SET_IS_READY";
16
+ kind: string;
17
+ name: string;
18
+ };
19
+ export declare const registerPostTypeActions: (postType: string) => ({ registry }: {
20
+ registry: any;
21
+ }) => Promise<void>;
17
22
  //# sourceMappingURL=private-actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAgBnD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AAED,eAAO,MAAM,uBAAuB,aACvB,MAAM,oBACI;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBAyCtC,CAAC"}
@@ -1,7 +1,7 @@
1
- /// <reference types="rememo" />
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
5
4
  import type { State } from './reducer';
6
- export declare const getEntityActions: ((state: State, kind: string, name: string) => import("@wordpress/dataviews").Action<any>[]) & import("rememo").EnhancedSelector;
5
+ export declare function getEntityActions(state: State, kind: string, name: string): import("@wordpress/dataviews").Action<any>[];
6
+ export declare function isEntityReady(state: State, kind: string, name: string): boolean;
7
7
  //# sourceMappingURL=private-selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-selectors.ts"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,gBAAgB,WACnB,KAAK,QAAQ,MAAM,QAAQ,MAAM,sFAU1C,CAAC"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-selectors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gDAEzE;AAED,wBAAgB,aAAa,CAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAEtE"}
@@ -1,8 +1,10 @@
1
1
  import type { Action } from '@wordpress/dataviews';
2
- type ReduxAction = ReturnType<typeof import('./private-actions').registerEntityAction> | ReturnType<typeof import('./private-actions').unregisterEntityAction>;
2
+ type ReduxAction = ReturnType<typeof import('./private-actions').registerEntityAction> | ReturnType<typeof import('./private-actions').unregisterEntityAction> | ReturnType<typeof import('./private-actions').setIsReady>;
3
3
  export type ActionState = Record<string, Record<string, Action<any>[]>>;
4
+ export type ReadyState = Record<string, Record<string, boolean>>;
4
5
  export type State = {
5
6
  actions: ActionState;
7
+ isReady: ReadyState;
6
8
  };
7
9
  declare const _default: import("redux").Reducer<import("redux").CombinedState<{
8
10
  actions: {
@@ -10,6 +12,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
10
12
  [x: string]: Action<any>[] | (Action<unknown> | Action<any>)[];
11
13
  };
12
14
  };
15
+ isReady: ReadyState;
13
16
  }>, ReduxAction>;
14
17
  export default _default;
15
18
  //# sourceMappingURL=reducer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/reducer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,WAAW,GACb,UAAU,CAAE,cAAc,mBAAmB,EAAE,oBAAoB,CAAE,GACrE,UAAU,CAAE,cAAc,mBAAmB,EAAE,sBAAsB,CAAE,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,GAAG,CAAE,EAAE,CAAE,CAAE,CAAC;AAC9E,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;;;;;;;;AAmCF,wBAEI"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/reducer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,WAAW,GACb,UAAU,CAAE,cAAc,mBAAmB,EAAE,oBAAoB,CAAE,GACrE,UAAU,CAAE,cAAc,mBAAmB,EAAE,sBAAsB,CAAE,GACvE,UAAU,CAAE,cAAc,mBAAmB,EAAE,UAAU,CAAE,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,GAAG,CAAE,EAAE,CAAE,CAAE,CAAC;AAC9E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAE,CAAC;AACrE,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC;CACpB,CAAC;;;;;;;;;AAkDF,wBAGI"}
@@ -26,6 +26,15 @@ export interface Pattern extends BasePost {
26
26
  wp_pattern_sync_status: string;
27
27
  }
28
28
  export type Post = TemplateOrTemplatePart | Pattern | BasePost;
29
+ export type PostWithPermissions = Post & {
30
+ permissions: {
31
+ delete: boolean;
32
+ update: boolean;
33
+ };
34
+ };
35
+ export interface PostType {
36
+ slug: string;
37
+ }
29
38
  export type CoreDataError = {
30
39
  message?: string;
31
40
  code?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dataviews/types.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GACZ,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,OAAO,CAAC;AAEX,MAAM,WAAW,QAAQ;IACxB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,sBAAuB,SAAQ,QAAQ;IACvD,IAAI,EAAE,aAAa,GAAG,kBAAkB,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC;IAClC,sBAAsB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM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,CAAC;AAEF,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;CACb;AAGD,MAAM,MAAM,aAAa,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- export type WPHigherOrderComponent = import('@wordpress/compose').WPHigherOrderComponent;
1
+ export type WPHigherOrderComponent = import("@wordpress/compose").WPHigherOrderComponent;
2
2
  export type WPBlockSettings = any;
3
3
  /**
4
4
  * Object whose keys are the names of block attributes, where each value
@@ -1 +1 @@
1
- {"version":3,"file":"custom-sources-backwards-compatibility.d.ts","sourceRoot":"","sources":["../../src/hooks/custom-sources-backwards-compatibility.js"],"names":[],"mappings":"qCAcc,OAAO,oBAAoB,EAAE,sBAAsB;;;;;;;QAS7C,MAAM,GAAC,MAAM"}
1
+ {"version":3,"file":"custom-sources-backwards-compatibility.d.ts","sourceRoot":"","sources":["../../src/hooks/custom-sources-backwards-compatibility.js"],"names":[],"mappings":"qCAcc,OAAO,oBAAoB,EAAE,sBAAsB;8BACnD,GAA2C;;;;;qCAQ5C;QAAO,MAAM,GAAC,MAAM;CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pattern-overrides.d.ts","sourceRoot":"","sources":["../../src/hooks/pattern-overrides.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"pattern-overrides.d.ts","sourceRoot":"","sources":["../../src/hooks/pattern-overrides.js"],"names":[],"mappings":"8BAgBc,GAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA6BA,6BAA8B"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAgCA,6BAA8B"}
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAsEA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,MAAM;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAqDK;;;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"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAsEA;;;;;;;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;AAsID;;;;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;AAED;;;;;;;;;;;GAWG;AACH,2CATW,OAAO,GAAC,MAAM,GAOb,MAAM,CAOjB;AAED;;;;;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;AAx0BM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBA+Gf;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;AAqDK;;;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFI,MAAM;;;;mBAqCf;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK;IALuB,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;;;WAkGjC;AAUK,yCALI,MAAM;;;;oBAiIf;AAOK;;oBAsHL"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFI,MAAM,OAAC;;;;mBAqChB;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK,0FALJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;CAClC;;WAiGC;AAUK,yCALI,MAAM;;;;oBAiIf;AAOK;;oBA0HL"}
@@ -1,6 +1,7 @@
1
1
  export function getListViewToggleRef(state: any): any;
2
2
  export function getInserterSidebarToggleRef(state: any): any;
3
3
  export function getEntityActions(state: any, ...args: any[]): import("@wordpress/dataviews").Action<any>[];
4
+ export function isEntityReady(state: any, ...args: any[]): boolean;
4
5
  /**
5
6
  * Get the insertion point for the inserter.
6
7
  *
@@ -21,4 +22,14 @@ export const getPostIcon: Function;
21
22
  * @return {boolean} Whether there are edits or not in the meta fields of the relevant post.
22
23
  */
23
24
  export const hasPostMetaChanges: Function;
25
+ /**
26
+ * Similar to getBlocksByName in @wordpress/block-editor, but only returns the top-most
27
+ * blocks that aren't descendants of the query block.
28
+ *
29
+ * @param {Object} state Global application state.
30
+ * @param {Array|string} blockNames Block names of the blocks to retrieve.
31
+ *
32
+ * @return {Array} Block client IDs.
33
+ */
34
+ export const getPostBlocksByName: Function;
24
35
  //# sourceMappingURL=private-selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AA+EA,sDAEC;AACD,6DAEC;AA2ED,2GAEC;AA9HD;;;;;;GAMG;AACH,yCAmCE;AAeF,mCA0BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE"}
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"}
@@ -201,6 +201,7 @@ declare const _default: import("redux").Reducer<import("redux").CombinedState<{
201
201
  [x: string]: import("@wordpress/dataviews").Action<any>[] | (import("@wordpress/dataviews").Action<unknown> | import("@wordpress/dataviews").Action<any>)[];
202
202
  };
203
203
  };
204
+ isReady: import("../dataviews/store/reducer").ReadyState;
204
205
  }>;
205
206
  }>, any>;
206
207
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,iDAMC;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,4DAJW,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,0DAJW,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,4DAJW,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,mEAJW,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,yEAJW,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,6EAJW,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,kEAJW,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,8DAJW,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,sEAFW,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,iEAFW,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9Ma,OAAO;;;;gBACN,OAAO;;;;oBACP,OAAO;;;;UACP,MAAM"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,8BALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,gCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,sCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,0CALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,0CAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,qCAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA9Ma,OAAO;;;;gBACN,OAAO,OAAA;;;;oBACP,OAAO,OAAA;;;;UACP,MAAM,OAAA"}
@@ -1,4 +1,3 @@
1
- /// <reference types="rememo" />
2
1
  /**
3
2
  * Returns true if the currently edited post is yet to be saved, or false if
4
3
  * the post has been saved.
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":";AA+DA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,OAAO,CAKlB;AA+CD;;;;;;;GAOG;AACH,sCAJW,MAAM,GAEL,OAAO,CAIlB;AAgCD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,MAAM,QAIlB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,MAAM,QAIjB;AAED;;;;;;GAMG;AACH,oDAJW,MAAM,GA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G;AACH,+CAEE;AAEF;;GAEG;AACH,2DAEE;AAEF;;GAEG;AACH,yDAEE;AAEF;;GAEG;AACH,qCAAuE;AAEvE;;GAEG;AACH,qCAAuE;AAEvE;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,6CAEE;AAEF;;GAEG;AACH,8CAEE;AAEF;;GAEG;AACH,yCAA+E;AAE/E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,oCAAqE;AAErE;;GAEG;AACH,gCAA6D;AAE7D;;GAEG;AACH,kDAEE;AAEF;;GAEG;AACH,8CAEE;AAEF;;GAEG;AACH,oDAEE;AAEF;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,mCAAmE;AAEnE;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,4CAEE;AAaF;;;;;;GAMG;AACH,kHASE;AAEF;;;;;;;GAOG;AACH,wHAcE;AAEF;;;;;;;GAOG;AACH,oHAgCE;AAEF;;;;;;GAMG;AACH,wCAQE;;;;;;;;cAnlBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA+DA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,OAAO,CAKlB;AA+CD;;;;;;;GAOG;AACH,sCAJW,MAAM,GAEL,OAAO,CAIlB;AAgCD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,MAAM,OAAC,CAIlB;AAED;;;;;;GAMG;AACH,oDAJW,MA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AACH,iDAEE;AAEF;;GAEG;AACH,4CAEE;AAEF;;GAEG;AACH,+CAEE;AAEF;;GAEG;AACH,2DAEE;AAEF;;GAEG;AACH,yDAEE;AAEF;;GAEG;AACH,qCAAuE;AAEvE;;GAEG;AACH,qCAAuE;AAEvE;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,6CAEE;AAEF;;GAEG;AACH,8CAEE;AAEF;;GAEG;AACH,yCAA+E;AAE/E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,oCAAqE;AAErE;;GAEG;AACH,gCAA6D;AAE7D;;GAEG;AACH,kDAEE;AAEF;;GAEG;AACH,8CAEE;AAEF;;GAEG;AACH,oDAEE;AAEF;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,mCAAmE;AAEnE;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,4CAEE;AAaF;;;;;;GAMG;AACH,kHASE;AAEF;;;;;;;GAOG;AACH,wHAcE;AAEF;;;;;;;GAOG;AACH,oHAgCE;AAEF;;;;;;GAMG;AACH,wCAQE;;;;;;;;cAnlBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;GAWG;AACH;IAPwB,cAAc,EAA1B,MAAM;IACM,YAAY,EAAzB,MAAM;IACO,SAAS;IACT,iBAAiB,EAA7B,MAAM;IACM,OAAO;IACP,YAAY;SAkCnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;GAWG;AACH,4HAPG;IAAqB,cAAc,EAA1B,MAAM,OAAA;IACM,YAAY,EAAzB,MAAM;IACO,SAAS;IACT,iBAAiB,EAA7B,MAAM,OAAA;IACM,OAAO;IACP,YAAY;CACnC,QA+DA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.3.0",
3
+ "version": "14.5.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -32,40 +32,40 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^4.3.0",
36
- "@wordpress/api-fetch": "^7.3.0",
37
- "@wordpress/blob": "^4.3.0",
38
- "@wordpress/block-editor": "^13.3.0",
39
- "@wordpress/blocks": "^13.3.0",
40
- "@wordpress/commands": "^1.3.0",
41
- "@wordpress/components": "^28.3.0",
42
- "@wordpress/compose": "^7.3.0",
43
- "@wordpress/core-data": "^7.3.0",
44
- "@wordpress/data": "^10.3.0",
45
- "@wordpress/dataviews": "^3.0.0",
46
- "@wordpress/date": "^5.3.0",
47
- "@wordpress/deprecated": "^4.3.0",
48
- "@wordpress/dom": "^4.3.0",
49
- "@wordpress/element": "^6.3.0",
50
- "@wordpress/hooks": "^4.3.0",
51
- "@wordpress/html-entities": "^4.3.0",
52
- "@wordpress/i18n": "^5.3.0",
53
- "@wordpress/icons": "^10.3.0",
54
- "@wordpress/interface": "^6.3.0",
55
- "@wordpress/keyboard-shortcuts": "^5.3.0",
56
- "@wordpress/keycodes": "^4.3.0",
57
- "@wordpress/media-utils": "^5.3.0",
58
- "@wordpress/notices": "^5.3.0",
59
- "@wordpress/patterns": "^2.3.0",
60
- "@wordpress/plugins": "^7.3.0",
61
- "@wordpress/preferences": "^4.3.0",
62
- "@wordpress/private-apis": "^1.3.0",
63
- "@wordpress/reusable-blocks": "^5.3.0",
64
- "@wordpress/rich-text": "^7.3.0",
65
- "@wordpress/server-side-render": "^5.3.0",
66
- "@wordpress/url": "^4.3.0",
67
- "@wordpress/warning": "^3.3.0",
68
- "@wordpress/wordcount": "^4.3.0",
35
+ "@wordpress/a11y": "^4.5.0",
36
+ "@wordpress/api-fetch": "^7.5.0",
37
+ "@wordpress/blob": "^4.5.0",
38
+ "@wordpress/block-editor": "^14.0.0",
39
+ "@wordpress/blocks": "^13.5.0",
40
+ "@wordpress/commands": "^1.5.0",
41
+ "@wordpress/components": "^28.5.0",
42
+ "@wordpress/compose": "^7.5.0",
43
+ "@wordpress/core-data": "^7.5.0",
44
+ "@wordpress/data": "^10.5.0",
45
+ "@wordpress/dataviews": "^4.1.0",
46
+ "@wordpress/date": "^5.5.0",
47
+ "@wordpress/deprecated": "^4.5.0",
48
+ "@wordpress/dom": "^4.5.0",
49
+ "@wordpress/element": "^6.5.0",
50
+ "@wordpress/hooks": "^4.5.0",
51
+ "@wordpress/html-entities": "^4.5.0",
52
+ "@wordpress/i18n": "^5.5.0",
53
+ "@wordpress/icons": "^10.5.0",
54
+ "@wordpress/interface": "^6.5.0",
55
+ "@wordpress/keyboard-shortcuts": "^5.5.0",
56
+ "@wordpress/keycodes": "^4.5.0",
57
+ "@wordpress/media-utils": "^5.5.0",
58
+ "@wordpress/notices": "^5.5.0",
59
+ "@wordpress/patterns": "^2.5.0",
60
+ "@wordpress/plugins": "^7.5.0",
61
+ "@wordpress/preferences": "^4.5.0",
62
+ "@wordpress/private-apis": "^1.5.0",
63
+ "@wordpress/reusable-blocks": "^5.5.0",
64
+ "@wordpress/rich-text": "^7.5.0",
65
+ "@wordpress/server-side-render": "^5.5.0",
66
+ "@wordpress/url": "^4.5.0",
67
+ "@wordpress/warning": "^3.5.0",
68
+ "@wordpress/wordcount": "^4.5.0",
69
69
  "change-case": "^4.1.2",
70
70
  "client-zip": "^2.4.5",
71
71
  "clsx": "^2.1.1",
@@ -75,7 +75,8 @@
75
75
  "is-plain-object": "^5.0.0",
76
76
  "memize": "^2.1.0",
77
77
  "react-autosize-textarea": "^7.1.0",
78
- "remove-accents": "^0.5.0"
78
+ "remove-accents": "^0.5.0",
79
+ "uuid": "^9.0.1"
79
80
  },
80
81
  "peerDependencies": {
81
82
  "react": "^18.0.0",
@@ -84,5 +85,5 @@
84
85
  "publishConfig": {
85
86
  "access": "public"
86
87
  },
87
- "gitHead": "122867d355ca4edc63d3a3bbd9411d3a2e1458df"
88
+ "gitHead": "c3101ab024e2bfc85d525c6d247e0d57cafc9fd9"
88
89
  }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import {
5
+ privateApis as blocksPrivateApis,
6
+ store as blocksStore,
7
+ } from '@wordpress/blocks';
8
+ import { dispatch } from '@wordpress/data';
9
+
10
+ /**
11
+ * Internal dependencies
12
+ */
13
+ import patternOverrides from './pattern-overrides';
14
+ import postMeta from './post-meta';
15
+ import { unlock } from '../lock-unlock';
16
+
17
+ /**
18
+ * Function to register core block bindings sources provided by the editor.
19
+ *
20
+ * @example
21
+ * ```js
22
+ * import { registerCoreBlockBindingsSources } from '@wordpress/editor';
23
+ *
24
+ * registerCoreBlockBindingsSources();
25
+ * ```
26
+ */
27
+ export function registerCoreBlockBindingsSources() {
28
+ const { registerBlockBindingsSource } = unlock( blocksPrivateApis );
29
+ registerBlockBindingsSource( patternOverrides );
30
+ registerBlockBindingsSource( postMeta );
31
+ }
32
+
33
+ /**
34
+ * Function to bootstrap core block bindings sources defined in the server.
35
+ *
36
+ * @param {Object} sources Object containing the sources to bootstrap.
37
+ *
38
+ * @example
39
+ * ```js
40
+ * import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
41
+ *
42
+ * bootstrapBlockBindingsSourcesFromServer( sources );
43
+ * ```
44
+ */
45
+ export function bootstrapBlockBindingsSourcesFromServer( sources ) {
46
+ if ( sources ) {
47
+ const { addBootstrappedBlockBindingsSource } = unlock(
48
+ dispatch( blocksStore )
49
+ );
50
+ for ( const [ name, args ] of Object.entries( sources ) ) {
51
+ addBootstrappedBlockBindingsSource( {
52
+ name,
53
+ ...args,
54
+ } );
55
+ }
56
+ }
57
+ }
@@ -1,36 +1,38 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { _x } from '@wordpress/i18n';
5
4
  import { store as blockEditorStore } from '@wordpress/block-editor';
6
5
 
7
6
  const CONTENT = 'content';
8
7
 
9
8
  export default {
10
9
  name: 'core/pattern-overrides',
11
- label: _x( 'Pattern Overrides', 'block bindings source' ),
12
- getValue( { registry, clientId, context, attributeName } ) {
10
+ getValues( { registry, clientId, context, bindings } ) {
13
11
  const patternOverridesContent = context[ 'pattern/overrides' ];
14
12
  const { getBlockAttributes } = registry.select( blockEditorStore );
15
13
  const currentBlockAttributes = getBlockAttributes( clientId );
16
14
 
17
- if ( ! patternOverridesContent ) {
18
- return currentBlockAttributes[ attributeName ];
19
- }
20
-
21
- const overridableValue =
22
- patternOverridesContent?.[
23
- currentBlockAttributes?.metadata?.name
24
- ]?.[ attributeName ];
15
+ const overridesValues = {};
16
+ for ( const attributeName of Object.keys( bindings ) ) {
17
+ const overridableValue =
18
+ patternOverridesContent?.[
19
+ currentBlockAttributes?.metadata?.name
20
+ ]?.[ attributeName ];
25
21
 
26
- // If there is no pattern client ID, or it is not overwritten, return the default value.
27
- if ( overridableValue === undefined ) {
28
- return currentBlockAttributes[ attributeName ];
22
+ // If it has not been overriden, return the original value.
23
+ // Check undefined because empty string is a valid value.
24
+ if ( overridableValue === undefined ) {
25
+ overridesValues[ attributeName ] =
26
+ currentBlockAttributes[ attributeName ];
27
+ continue;
28
+ } else {
29
+ overridesValues[ attributeName ] =
30
+ overridableValue === '' ? undefined : overridableValue;
31
+ }
29
32
  }
30
-
31
- return overridableValue === '' ? undefined : overridableValue;
33
+ return overridesValues;
32
34
  },
33
- setValues( { registry, clientId, attributes } ) {
35
+ setValues( { registry, clientId, bindings } ) {
34
36
  const { getBlockAttributes, getBlockParentsByBlockName, getBlocks } =
35
37
  registry.select( blockEditorStore );
36
38
  const currentBlockAttributes = getBlockAttributes( clientId );
@@ -45,6 +47,15 @@ export default {
45
47
  true
46
48
  );
47
49
 
50
+ // Extract the updated attributes from the source bindings.
51
+ const attributes = Object.entries( bindings ).reduce(
52
+ ( attrs, [ key, { newValue } ] ) => {
53
+ attrs[ key ] = newValue;
54
+ return attrs;
55
+ },
56
+ {}
57
+ );
58
+
48
59
  // If there is no pattern client ID, sync blocks with the same name and same attributes.
49
60
  if ( ! patternClientId ) {
50
61
  const syncBlocksWithSameName = ( blocks ) => {
@@ -2,7 +2,6 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import { store as coreDataStore } from '@wordpress/core-data';
5
- import { _x } from '@wordpress/i18n';
6
5
 
7
6
  /**
8
7
  * Internal dependencies
@@ -11,26 +10,32 @@ import { store as editorStore } from '../store';
11
10
 
12
11
  export default {
13
12
  name: 'core/post-meta',
14
- label: _x( 'Post Meta', 'block bindings source' ),
15
13
  getPlaceholder( { args } ) {
16
14
  return args.key;
17
15
  },
18
- getValue( { registry, context, args } ) {
19
- return registry
16
+ getValues( { registry, context, bindings } ) {
17
+ const meta = registry
20
18
  .select( coreDataStore )
21
19
  .getEditedEntityRecord(
22
20
  'postType',
23
21
  context?.postType,
24
22
  context?.postId
25
- ).meta?.[ args.key ];
23
+ )?.meta;
24
+ const newValues = {};
25
+ for ( const [ attributeName, source ] of Object.entries( bindings ) ) {
26
+ newValues[ attributeName ] = meta?.[ source.args.key ];
27
+ }
28
+ return newValues;
26
29
  },
27
- setValue( { registry, context, args, value } ) {
30
+ setValues( { registry, context, bindings } ) {
31
+ const newMeta = {};
32
+ Object.values( bindings ).forEach( ( { args, newValue } ) => {
33
+ newMeta[ args.key ] = newValue;
34
+ } );
28
35
  registry
29
36
  .dispatch( coreDataStore )
30
37
  .editEntityRecord( 'postType', context?.postType, context?.postId, {
31
- meta: {
32
- [ args.key ]: value,
33
- },
38
+ meta: newMeta,
34
39
  } );
35
40
  },
36
41
  canUserEditValue( { select, context, args } ) {
@@ -59,15 +64,35 @@ export default {
59
64
  }
60
65
 
61
66
  // Check that the user has the capability to edit post meta.
62
- const canUserEdit = select( coreDataStore ).canUserEditEntityRecord(
63
- 'postType',
64
- context?.postType,
65
- context?.postId
66
- );
67
+ const canUserEdit = select( coreDataStore ).canUser( 'update', {
68
+ kind: 'postType',
69
+ name: context?.postType,
70
+ id: context?.postId,
71
+ } );
67
72
  if ( ! canUserEdit ) {
68
73
  return false;
69
74
  }
70
75
 
71
76
  return true;
72
77
  },
78
+ getFieldsList( { registry, context } ) {
79
+ const metaFields = registry
80
+ .select( coreDataStore )
81
+ .getEditedEntityRecord(
82
+ 'postType',
83
+ context?.postType,
84
+ context?.postId
85
+ ).meta;
86
+
87
+ if ( ! metaFields || ! Object.keys( metaFields ).length ) {
88
+ return null;
89
+ }
90
+
91
+ // Remove footnotes from the list of fields
92
+ return Object.fromEntries(
93
+ Object.entries( metaFields ).filter(
94
+ ( [ key ] ) => key !== 'footnotes'
95
+ )
96
+ );
97
+ },
73
98
  };
@@ -59,10 +59,10 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
59
59
  );
60
60
  }
61
61
  }
62
- const _canEditTemplates = select( coreStore ).canUser(
63
- 'create',
64
- 'templates'
65
- );
62
+ const _canEditTemplates = select( coreStore ).canUser( 'create', {
63
+ kind: 'postType',
64
+ name: 'wp_template',
65
+ } );
66
66
  return {
67
67
  canEditTemplates: _canEditTemplates,
68
68
  entity: record,
@@ -27,9 +27,14 @@ export default function BlogTitle() {
27
27
  const { editEntityRecord } = useDispatch( coreStore );
28
28
  const { postsPageTitle, postsPageId, isTemplate, postSlug } = useSelect(
29
29
  ( select ) => {
30
- const { getEntityRecord, getEditedEntityRecord } =
30
+ const { getEntityRecord, getEditedEntityRecord, canUser } =
31
31
  select( coreStore );
32
- const siteSettings = getEntityRecord( 'root', 'site' );
32
+ const siteSettings = canUser( 'read', {
33
+ kind: 'root',
34
+ name: 'site',
35
+ } )
36
+ ? getEntityRecord( 'root', 'site' )
37
+ : undefined;
33
38
  const _postsPageRecord = siteSettings?.page_for_posts
34
39
  ? getEditedEntityRecord(
35
40
  'postType',
@@ -106,7 +111,7 @@ export default function BlogTitle() {
106
111
  onClose={ onClose }
107
112
  />
108
113
  <InputControl
109
- placeholder={ __( 'No Title' ) }
114
+ placeholder={ __( 'No title' ) }
110
115
  size="__unstable-large"
111
116
  value={ postsPageTitle }
112
117
  onChange={ debounce( setPostsPageTitle, 300 ) }