@wordpress/editor 14.4.0 → 14.6.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 (375) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/bindings/post-meta.js +12 -0
  3. package/build/bindings/post-meta.js.map +1 -1
  4. package/build/components/blog-title/index.js +1 -1
  5. package/build/components/blog-title/index.js.map +1 -1
  6. package/build/components/commands/index.js +8 -2
  7. package/build/components/commands/index.js.map +1 -1
  8. package/build/components/create-template-part-modal/index.js +1 -0
  9. package/build/components/create-template-part-modal/index.js.map +1 -1
  10. package/build/components/document-bar/index.js +1 -1
  11. package/build/components/document-bar/index.js.map +1 -1
  12. package/build/components/global-styles-provider/index.js +17 -4
  13. package/build/components/global-styles-provider/index.js.map +1 -1
  14. package/build/components/header/index.js +2 -3
  15. package/build/components/header/index.js.map +1 -1
  16. package/build/components/inserter-sidebar/index.js +5 -2
  17. package/build/components/inserter-sidebar/index.js.map +1 -1
  18. package/build/components/page-attributes/parent.js +11 -6
  19. package/build/components/page-attributes/parent.js.map +1 -1
  20. package/build/components/post-actions/actions.js +10 -811
  21. package/build/components/post-actions/actions.js.map +1 -1
  22. package/build/components/post-actions/index.js +20 -19
  23. package/build/components/post-actions/index.js.map +1 -1
  24. package/build/components/post-author/hook.js +10 -3
  25. package/build/components/post-author/hook.js.map +1 -1
  26. package/build/components/post-author/panel.js +2 -1
  27. package/build/components/post-author/panel.js.map +1 -1
  28. package/build/components/post-card-panel/index.js +21 -21
  29. package/build/components/post-card-panel/index.js.map +1 -1
  30. package/build/components/post-comments/index.js +6 -20
  31. package/build/components/post-comments/index.js.map +1 -1
  32. package/build/components/post-featured-image/index.js +2 -0
  33. package/build/components/post-featured-image/index.js.map +1 -1
  34. package/build/components/post-publish-panel/postpublish.js +4 -0
  35. package/build/components/post-publish-panel/postpublish.js.map +1 -1
  36. package/build/components/post-slug/index.js +1 -0
  37. package/build/components/post-slug/index.js.map +1 -1
  38. package/build/components/post-status/index.js +17 -41
  39. package/build/components/post-status/index.js.map +1 -1
  40. package/build/components/post-taxonomies/hierarchical-term-selector.js +2 -1
  41. package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  42. package/build/components/post-template/create-new-template-modal.js +3 -0
  43. package/build/components/post-template/create-new-template-modal.js.map +1 -1
  44. package/build/components/post-url/index.js +6 -5
  45. package/build/components/post-url/index.js.map +1 -1
  46. package/build/components/post-url/panel.js +3 -2
  47. package/build/components/post-url/panel.js.map +1 -1
  48. package/build/components/preview-dropdown/index.js +82 -17
  49. package/build/components/preview-dropdown/index.js.map +1 -1
  50. package/build/components/provider/disable-non-page-content-blocks.js +14 -18
  51. package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
  52. package/build/components/sidebar/post-summary.js +10 -7
  53. package/build/components/sidebar/post-summary.js.map +1 -1
  54. package/build/components/site-discussion/index.js +6 -20
  55. package/build/components/site-discussion/index.js.map +1 -1
  56. package/build/components/template-content-panel/index.js +15 -13
  57. package/build/components/template-content-panel/index.js.map +1 -1
  58. package/build/components/visual-editor/index.js +2 -1
  59. package/build/components/visual-editor/index.js.map +1 -1
  60. package/build/dataviews/actions/duplicate-pattern.js +48 -0
  61. package/build/dataviews/actions/duplicate-pattern.js.map +1 -0
  62. package/build/dataviews/actions/duplicate-post.js +146 -0
  63. package/build/dataviews/actions/duplicate-post.js.map +1 -0
  64. package/build/dataviews/actions/duplicate-post.native.js +9 -0
  65. package/build/dataviews/actions/duplicate-post.native.js.map +1 -0
  66. package/build/dataviews/actions/duplicate-template-part.js +67 -0
  67. package/build/dataviews/actions/duplicate-template-part.js.map +1 -0
  68. package/build/dataviews/actions/export-pattern.native.js +9 -0
  69. package/build/dataviews/actions/export-pattern.native.js.map +1 -0
  70. package/build/dataviews/actions/permanently-delete-post.js +107 -0
  71. package/build/dataviews/actions/permanently-delete-post.js.map +1 -0
  72. package/build/dataviews/actions/rename-post.js +125 -0
  73. package/build/dataviews/actions/rename-post.js.map +1 -0
  74. package/build/dataviews/actions/reorder-page.js +116 -0
  75. package/build/dataviews/actions/reorder-page.js.map +1 -0
  76. package/build/dataviews/actions/reorder-page.native.js +9 -0
  77. package/build/dataviews/actions/reorder-page.native.js.map +1 -0
  78. package/build/dataviews/actions/reset-post.js +1 -1
  79. package/build/dataviews/actions/reset-post.js.map +1 -1
  80. package/build/dataviews/actions/restore-post.js +112 -0
  81. package/build/dataviews/actions/restore-post.js.map +1 -0
  82. package/build/dataviews/actions/trash-post.js +142 -0
  83. package/build/dataviews/actions/trash-post.js.map +1 -0
  84. package/build/dataviews/actions/utils.js +9 -1
  85. package/build/dataviews/actions/utils.js.map +1 -1
  86. package/build/dataviews/actions/view-post-revisions.js +49 -0
  87. package/build/dataviews/actions/view-post-revisions.js.map +1 -0
  88. package/build/dataviews/actions/view-post.js +36 -0
  89. package/build/dataviews/actions/view-post.js.map +1 -0
  90. package/build/dataviews/fields/index.js +32 -0
  91. package/build/dataviews/fields/index.js.map +1 -0
  92. package/build/dataviews/store/private-actions.js +59 -0
  93. package/build/dataviews/store/private-actions.js.map +1 -1
  94. package/build/dataviews/store/private-selectors.js +10 -10
  95. package/build/dataviews/store/private-selectors.js.map +1 -1
  96. package/build/dataviews/store/reducer.js +15 -1
  97. package/build/dataviews/store/reducer.js.map +1 -1
  98. package/build/dataviews/types.js.map +1 -1
  99. package/build/private-apis.js +2 -2
  100. package/build/private-apis.js.map +1 -1
  101. package/build/store/actions.js +16 -2
  102. package/build/store/actions.js.map +1 -1
  103. package/build/store/private-actions.js +9 -2
  104. package/build/store/private-actions.js.map +1 -1
  105. package/build/store/private-selectors.js +33 -2
  106. package/build/store/private-selectors.js.map +1 -1
  107. package/build/store/utils/is-template-revertable.js +1 -1
  108. package/build/store/utils/is-template-revertable.js.map +1 -1
  109. package/build-module/bindings/post-meta.js +12 -0
  110. package/build-module/bindings/post-meta.js.map +1 -1
  111. package/build-module/components/blog-title/index.js +1 -1
  112. package/build-module/components/blog-title/index.js.map +1 -1
  113. package/build-module/components/commands/index.js +8 -2
  114. package/build-module/components/commands/index.js.map +1 -1
  115. package/build-module/components/create-template-part-modal/index.js +1 -0
  116. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  117. package/build-module/components/document-bar/index.js +1 -1
  118. package/build-module/components/document-bar/index.js.map +1 -1
  119. package/build-module/components/global-styles-provider/index.js +17 -4
  120. package/build-module/components/global-styles-provider/index.js.map +1 -1
  121. package/build-module/components/header/index.js +2 -3
  122. package/build-module/components/header/index.js.map +1 -1
  123. package/build-module/components/inserter-sidebar/index.js +5 -2
  124. package/build-module/components/inserter-sidebar/index.js.map +1 -1
  125. package/build-module/components/page-attributes/parent.js +12 -7
  126. package/build-module/components/page-attributes/parent.js.map +1 -1
  127. package/build-module/components/post-actions/actions.js +12 -814
  128. package/build-module/components/post-actions/actions.js.map +1 -1
  129. package/build-module/components/post-actions/index.js +20 -19
  130. package/build-module/components/post-actions/index.js.map +1 -1
  131. package/build-module/components/post-author/hook.js +10 -3
  132. package/build-module/components/post-author/hook.js.map +1 -1
  133. package/build-module/components/post-author/panel.js +2 -1
  134. package/build-module/components/post-author/panel.js.map +1 -1
  135. package/build-module/components/post-card-panel/index.js +21 -21
  136. package/build-module/components/post-card-panel/index.js.map +1 -1
  137. package/build-module/components/post-comments/index.js +7 -23
  138. package/build-module/components/post-comments/index.js.map +1 -1
  139. package/build-module/components/post-featured-image/index.js +2 -0
  140. package/build-module/components/post-featured-image/index.js.map +1 -1
  141. package/build-module/components/post-publish-panel/postpublish.js +4 -0
  142. package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
  143. package/build-module/components/post-slug/index.js +1 -0
  144. package/build-module/components/post-slug/index.js.map +1 -1
  145. package/build-module/components/post-status/index.js +19 -43
  146. package/build-module/components/post-status/index.js.map +1 -1
  147. package/build-module/components/post-taxonomies/hierarchical-term-selector.js +3 -2
  148. package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  149. package/build-module/components/post-template/create-new-template-modal.js +3 -0
  150. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  151. package/build-module/components/post-url/index.js +7 -6
  152. package/build-module/components/post-url/index.js.map +1 -1
  153. package/build-module/components/post-url/panel.js +4 -5
  154. package/build-module/components/post-url/panel.js.map +1 -1
  155. package/build-module/components/preview-dropdown/index.js +84 -19
  156. package/build-module/components/preview-dropdown/index.js.map +1 -1
  157. package/build-module/components/provider/disable-non-page-content-blocks.js +15 -19
  158. package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
  159. package/build-module/components/sidebar/post-summary.js +10 -7
  160. package/build-module/components/sidebar/post-summary.js.map +1 -1
  161. package/build-module/components/site-discussion/index.js +7 -21
  162. package/build-module/components/site-discussion/index.js.map +1 -1
  163. package/build-module/components/template-content-panel/index.js +16 -14
  164. package/build-module/components/template-content-panel/index.js.map +1 -1
  165. package/build-module/components/visual-editor/index.js +2 -1
  166. package/build-module/components/visual-editor/index.js.map +1 -1
  167. package/build-module/dataviews/actions/duplicate-pattern.js +39 -0
  168. package/build-module/dataviews/actions/duplicate-pattern.js.map +1 -0
  169. package/build-module/dataviews/actions/duplicate-post.js +139 -0
  170. package/build-module/dataviews/actions/duplicate-post.js.map +1 -0
  171. package/build-module/dataviews/actions/duplicate-post.native.js +3 -0
  172. package/build-module/dataviews/actions/duplicate-post.native.js.map +1 -0
  173. package/build-module/dataviews/actions/duplicate-template-part.js +58 -0
  174. package/build-module/dataviews/actions/duplicate-template-part.js.map +1 -0
  175. package/build-module/dataviews/actions/export-pattern.native.js +3 -0
  176. package/build-module/dataviews/actions/export-pattern.native.js.map +1 -0
  177. package/build-module/dataviews/actions/permanently-delete-post.js +99 -0
  178. package/build-module/dataviews/actions/permanently-delete-post.js.map +1 -0
  179. package/build-module/dataviews/actions/rename-post.js +118 -0
  180. package/build-module/dataviews/actions/rename-post.js.map +1 -0
  181. package/build-module/dataviews/actions/reorder-page.js +111 -0
  182. package/build-module/dataviews/actions/reorder-page.js.map +1 -0
  183. package/build-module/dataviews/actions/reorder-page.native.js +3 -0
  184. package/build-module/dataviews/actions/reorder-page.native.js.map +1 -0
  185. package/build-module/dataviews/actions/reset-post.js +1 -1
  186. package/build-module/dataviews/actions/reset-post.js.map +1 -1
  187. package/build-module/dataviews/actions/restore-post.js +104 -0
  188. package/build-module/dataviews/actions/restore-post.js.map +1 -0
  189. package/build-module/dataviews/actions/trash-post.js +135 -0
  190. package/build-module/dataviews/actions/trash-post.js.map +1 -0
  191. package/build-module/dataviews/actions/utils.js +7 -1
  192. package/build-module/dataviews/actions/utils.js.map +1 -1
  193. package/build-module/dataviews/actions/view-post-revisions.js +43 -0
  194. package/build-module/dataviews/actions/view-post-revisions.js.map +1 -0
  195. package/build-module/dataviews/actions/view-post.js +30 -0
  196. package/build-module/dataviews/actions/view-post.js.map +1 -0
  197. package/build-module/dataviews/fields/index.js +26 -0
  198. package/build-module/dataviews/fields/index.js.map +1 -0
  199. package/build-module/dataviews/store/private-actions.js +54 -0
  200. package/build-module/dataviews/store/private-actions.js.map +1 -1
  201. package/build-module/dataviews/store/private-selectors.js +8 -9
  202. package/build-module/dataviews/store/private-selectors.js.map +1 -1
  203. package/build-module/dataviews/store/reducer.js +15 -1
  204. package/build-module/dataviews/store/reducer.js.map +1 -1
  205. package/build-module/dataviews/types.js.map +1 -1
  206. package/build-module/private-apis.js +2 -2
  207. package/build-module/private-apis.js.map +1 -1
  208. package/build-module/store/actions.js +16 -2
  209. package/build-module/store/actions.js.map +1 -1
  210. package/build-module/store/private-actions.js +9 -2
  211. package/build-module/store/private-actions.js.map +1 -1
  212. package/build-module/store/private-selectors.js +32 -2
  213. package/build-module/store/private-selectors.js.map +1 -1
  214. package/build-module/store/utils/is-template-revertable.js +1 -1
  215. package/build-module/store/utils/is-template-revertable.js.map +1 -1
  216. package/build-style/style-rtl.css +21 -34
  217. package/build-style/style.css +21 -34
  218. package/build-types/bindings/post-meta.d.ts +6 -0
  219. package/build-types/bindings/post-meta.d.ts.map +1 -1
  220. package/build-types/components/commands/index.d.ts.map +1 -1
  221. package/build-types/components/create-template-part-modal/index.d.ts.map +1 -1
  222. package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
  223. package/build-types/components/header/index.d.ts.map +1 -1
  224. package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
  225. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  226. package/build-types/components/post-actions/actions.d.ts +1 -26
  227. package/build-types/components/post-actions/actions.d.ts.map +1 -1
  228. package/build-types/components/post-actions/index.d.ts +3 -2
  229. package/build-types/components/post-actions/index.d.ts.map +1 -1
  230. package/build-types/components/post-author/hook.d.ts +1 -1
  231. package/build-types/components/post-author/hook.d.ts.map +1 -1
  232. package/build-types/components/post-author/panel.d.ts.map +1 -1
  233. package/build-types/components/post-card-panel/index.d.ts +4 -2
  234. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  235. package/build-types/components/post-comments/index.d.ts.map +1 -1
  236. package/build-types/components/post-slug/index.d.ts.map +1 -1
  237. package/build-types/components/post-status/index.d.ts +2 -1
  238. package/build-types/components/post-status/index.d.ts.map +1 -1
  239. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +1 -17
  240. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  241. package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
  242. package/build-types/components/post-url/index.d.ts.map +1 -1
  243. package/build-types/components/post-url/panel.d.ts.map +1 -1
  244. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  245. package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
  246. package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
  247. package/build-types/components/site-discussion/index.d.ts.map +1 -1
  248. package/build-types/components/template-content-panel/index.d.ts.map +1 -1
  249. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  250. package/build-types/dataviews/actions/duplicate-pattern.d.ts +5 -0
  251. package/build-types/dataviews/actions/duplicate-pattern.d.ts.map +1 -0
  252. package/build-types/dataviews/actions/duplicate-post.d.ts +5 -0
  253. package/build-types/dataviews/actions/duplicate-post.d.ts.map +1 -0
  254. package/build-types/dataviews/actions/duplicate-post.native.d.ts +3 -0
  255. package/build-types/dataviews/actions/duplicate-post.native.d.ts.map +1 -0
  256. package/build-types/dataviews/actions/duplicate-template-part.d.ts +5 -0
  257. package/build-types/dataviews/actions/duplicate-template-part.d.ts.map +1 -0
  258. package/build-types/dataviews/actions/export-pattern.native.d.ts +3 -0
  259. package/build-types/dataviews/actions/export-pattern.native.d.ts.map +1 -0
  260. package/build-types/dataviews/actions/permanently-delete-post.d.ts +5 -0
  261. package/build-types/dataviews/actions/permanently-delete-post.d.ts.map +1 -0
  262. package/build-types/dataviews/actions/rename-post.d.ts +5 -0
  263. package/build-types/dataviews/actions/rename-post.d.ts.map +1 -0
  264. package/build-types/dataviews/actions/reorder-page.d.ts +8 -0
  265. package/build-types/dataviews/actions/reorder-page.d.ts.map +1 -0
  266. package/build-types/dataviews/actions/reorder-page.native.d.ts +3 -0
  267. package/build-types/dataviews/actions/reorder-page.native.d.ts.map +1 -0
  268. package/build-types/dataviews/actions/reset-post.d.ts.map +1 -1
  269. package/build-types/dataviews/actions/restore-post.d.ts +5 -0
  270. package/build-types/dataviews/actions/restore-post.d.ts.map +1 -0
  271. package/build-types/dataviews/actions/trash-post.d.ts +5 -0
  272. package/build-types/dataviews/actions/trash-post.d.ts.map +1 -0
  273. package/build-types/dataviews/actions/utils.d.ts +5 -3
  274. package/build-types/dataviews/actions/utils.d.ts.map +1 -1
  275. package/build-types/dataviews/actions/view-post-revisions.d.ts +8 -0
  276. package/build-types/dataviews/actions/view-post-revisions.d.ts.map +1 -0
  277. package/build-types/dataviews/actions/view-post.d.ts +8 -0
  278. package/build-types/dataviews/actions/view-post.d.ts.map +1 -0
  279. package/build-types/dataviews/fields/index.d.ts +8 -0
  280. package/build-types/dataviews/fields/index.d.ts.map +1 -0
  281. package/build-types/dataviews/store/private-actions.d.ts +8 -3
  282. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  283. package/build-types/dataviews/store/private-selectors.d.ts +2 -1
  284. package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
  285. package/build-types/dataviews/store/reducer.d.ts +4 -1
  286. package/build-types/dataviews/store/reducer.d.ts.map +1 -1
  287. package/build-types/dataviews/types.d.ts +66 -8
  288. package/build-types/dataviews/types.d.ts.map +1 -1
  289. package/build-types/store/actions.d.ts.map +1 -1
  290. package/build-types/store/private-actions.d.ts.map +1 -1
  291. package/build-types/store/private-selectors.d.ts +11 -0
  292. package/build-types/store/private-selectors.d.ts.map +1 -1
  293. package/build-types/store/reducer.d.ts +1 -0
  294. package/build-types/store/reducer.d.ts.map +1 -1
  295. package/build-types/store/utils/is-template-revertable.d.ts.map +1 -1
  296. package/package.json +36 -36
  297. package/src/bindings/post-meta.js +20 -0
  298. package/src/components/block-manager/style.scss +2 -2
  299. package/src/components/blog-title/index.js +1 -1
  300. package/src/components/commands/index.js +4 -2
  301. package/src/components/create-template-part-modal/index.js +1 -0
  302. package/src/components/document-bar/index.js +1 -1
  303. package/src/components/document-bar/style.scss +1 -1
  304. package/src/components/editor-interface/style.scss +5 -0
  305. package/src/components/error-boundary/style.native.scss +1 -1
  306. package/src/components/error-boundary/style.scss +1 -1
  307. package/src/components/global-styles-provider/index.js +16 -3
  308. package/src/components/header/index.js +1 -2
  309. package/src/components/inserter-sidebar/index.js +10 -4
  310. package/src/components/list-view-sidebar/style.scss +4 -0
  311. package/src/components/page-attributes/parent.js +38 -16
  312. package/src/components/post-actions/actions.js +10 -1044
  313. package/src/components/post-actions/index.js +25 -17
  314. package/src/components/post-author/hook.js +11 -3
  315. package/src/components/post-author/panel.js +3 -1
  316. package/src/components/post-card-panel/index.js +29 -28
  317. package/src/components/post-comments/index.js +7 -20
  318. package/src/components/post-discussion/style.scss +0 -9
  319. package/src/components/post-featured-image/index.js +2 -0
  320. package/src/components/post-format/style.scss +0 -6
  321. package/src/components/post-publish-panel/postpublish.js +8 -2
  322. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +10 -10
  323. package/src/components/post-slug/index.js +1 -0
  324. package/src/components/post-status/index.js +11 -41
  325. package/src/components/post-status/style.scss +0 -19
  326. package/src/components/post-taxonomies/hierarchical-term-selector.js +3 -1
  327. package/src/components/post-template/create-new-template-modal.js +7 -1
  328. package/src/components/post-url/index.js +15 -9
  329. package/src/components/post-url/panel.js +8 -2
  330. package/src/components/preview-dropdown/index.js +113 -35
  331. package/src/components/preview-dropdown/style.scss +5 -0
  332. package/src/components/provider/disable-non-page-content-blocks.js +27 -24
  333. package/src/components/save-publish-panels/style.scss +3 -3
  334. package/src/components/sidebar/post-summary.js +20 -16
  335. package/src/components/site-discussion/index.js +7 -19
  336. package/src/components/site-discussion/style.scss +0 -14
  337. package/src/components/template-content-panel/index.js +40 -22
  338. package/src/components/visual-editor/index.js +8 -6
  339. package/src/components/visual-editor/style.scss +1 -3
  340. package/src/dataviews/actions/duplicate-pattern.tsx +40 -0
  341. package/src/dataviews/actions/duplicate-post.native.tsx +3 -0
  342. package/src/dataviews/actions/duplicate-post.tsx +174 -0
  343. package/src/dataviews/actions/duplicate-template-part.tsx +70 -0
  344. package/src/dataviews/actions/export-pattern.native.tsx +3 -0
  345. package/src/dataviews/actions/permanently-delete-post.tsx +116 -0
  346. package/src/dataviews/actions/rename-post.tsx +146 -0
  347. package/src/dataviews/actions/reorder-page.native.tsx +3 -0
  348. package/src/dataviews/actions/reorder-page.tsx +125 -0
  349. package/src/dataviews/actions/reset-post.tsx +2 -1
  350. package/src/dataviews/actions/restore-post.tsx +134 -0
  351. package/src/dataviews/actions/trash-post.tsx +196 -0
  352. package/src/dataviews/actions/utils.ts +14 -4
  353. package/src/dataviews/actions/view-post-revisions.tsx +47 -0
  354. package/src/dataviews/actions/view-post.tsx +30 -0
  355. package/src/dataviews/fields/index.ts +26 -0
  356. package/src/dataviews/store/private-actions.ts +109 -0
  357. package/src/dataviews/store/private-selectors.ts +9 -17
  358. package/src/dataviews/store/reducer.ts +20 -1
  359. package/src/dataviews/types.ts +58 -6
  360. package/src/private-apis.js +2 -2
  361. package/src/store/actions.js +36 -13
  362. package/src/store/private-actions.js +9 -5
  363. package/src/store/private-selectors.js +45 -2
  364. package/src/store/test/private-selectors.js +78 -0
  365. package/src/store/utils/is-template-revertable.js +2 -1
  366. package/tsconfig.tsbuildinfo +1 -1
  367. package/build/dataviews/actions/index.js +0 -32
  368. package/build/dataviews/actions/index.js.map +0 -1
  369. package/build-module/dataviews/actions/index.js +0 -24
  370. package/build-module/dataviews/actions/index.js.map +0 -1
  371. package/build-types/dataviews/actions/index.d.ts +0 -2
  372. package/build-types/dataviews/actions/index.d.ts.map +0 -1
  373. package/src/components/document-outline/test/__snapshots__/index.js.snap +0 -111
  374. package/src/components/document-outline/test/index.js +0 -185
  375. package/src/dataviews/actions/index.ts +0 -25
@@ -1,5 +1,7 @@
1
- import type { Post, TemplateOrTemplatePart } from '../types';
2
- export declare function isTemplateOrTemplatePart(p: Post): p is TemplateOrTemplatePart;
1
+ import type { Post, TemplatePart, Template } from '../types';
2
+ export declare function isTemplate(post: Post): post is Template;
3
+ export declare function isTemplatePart(post: Post): post is TemplatePart;
4
+ export declare function isTemplateOrTemplatePart(p: Post): p is Template | TemplatePart;
3
5
  export declare function getItemTitle(item: Post): string;
4
6
  /**
5
7
  * Check if a template is removable.
@@ -7,5 +9,5 @@ export declare function getItemTitle(item: Post): string;
7
9
  * @param template The template entity to check.
8
10
  * @return Whether the template is removable.
9
11
  */
10
- export declare function isTemplateRemovable(template: TemplateOrTemplatePart): boolean;
12
+ export declare function isTemplateRemovable(template: Template | TemplatePart): boolean;
11
13
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/utils.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE7D,wBAAgB,wBAAwB,CACvC,CAAC,EAAE,IAAI,GACL,CAAC,IAAI,sBAAsB,CAE7B;AAED,wBAAgB,YAAY,CAAE,IAAI,EAAE,IAAI,UAWvC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAE,QAAQ,EAAE,sBAAsB,WAYpE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/utils.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE7D,wBAAgB,UAAU,CAAE,IAAI,EAAE,IAAI,GAAI,IAAI,IAAI,QAAQ,CAEzD;AAED,wBAAgB,cAAc,CAAE,IAAI,EAAE,IAAI,GAAI,IAAI,IAAI,YAAY,CAEjE;AAED,wBAAgB,wBAAwB,CACvC,CAAC,EAAE,IAAI,GACL,CAAC,IAAI,QAAQ,GAAG,YAAY,CAE9B;AAED,wBAAgB,YAAY,CAAE,IAAI,EAAE,IAAI,UAWvC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAE,QAAQ,EAAE,QAAQ,GAAG,YAAY,WAcrE"}
@@ -0,0 +1,8 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { Post } from '../types';
6
+ declare const viewPostRevisions: Action<Post>;
7
+ export default viewPostRevisions;
8
+ //# sourceMappingURL=view-post-revisions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-post-revisions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/view-post-revisions.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAE,IAAI,CAgCpC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Action } from '@wordpress/dataviews';
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { BasePost } from '../types';
6
+ declare const viewPost: Action<BasePost>;
7
+ export default viewPost;
8
+ //# sourceMappingURL=view-post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-post.d.ts","sourceRoot":"","sources":["../../../src/dataviews/actions/view-post.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,QAAA,MAAM,QAAQ,EAAE,MAAM,CAAE,QAAQ,CAe/B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Field } from '@wordpress/dataviews';
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { BasePost } from '../types';
6
+ export declare const titleField: Field<BasePost>;
7
+ export declare const orderField: Field<BasePost>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dataviews/fields/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAE,QAAQ,CAMvC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAE,QAAQ,CAKvC,CAAC"}
@@ -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;AAuBnD,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,kBA2EtC,CAAC"}
@@ -2,5 +2,6 @@
2
2
  * Internal dependencies
3
3
  */
4
4
  import type { State } from './reducer';
5
- 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;
6
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"}
@@ -1,31 +1,89 @@
1
1
  type PostStatus = 'published' | 'draft' | 'pending' | 'private' | 'future' | 'auto-draft' | 'trash';
2
- export interface BasePost {
2
+ export interface CommonPost {
3
3
  status?: PostStatus;
4
4
  title: string | {
5
5
  rendered: string;
6
6
  } | {
7
7
  raw: string;
8
8
  };
9
+ content: string | {
10
+ raw: string;
11
+ rendered: string;
12
+ };
9
13
  type: string;
10
14
  id: string | number;
15
+ blocks?: Object[];
16
+ _links?: Links;
17
+ }
18
+ interface Links {
19
+ 'predecessor-version'?: {
20
+ href: string;
21
+ id: number;
22
+ }[];
23
+ 'version-history'?: {
24
+ href: string;
25
+ count: number;
26
+ }[];
27
+ [key: string]: {
28
+ href: string;
29
+ }[] | undefined;
30
+ }
31
+ export interface BasePost extends CommonPost {
32
+ comment_status?: 'open' | 'closed';
33
+ excerpt?: string | {
34
+ raw: string;
35
+ rendered: string;
36
+ };
37
+ meta?: Record<string, any>;
38
+ parent?: number;
39
+ password?: string;
40
+ template?: string;
41
+ format?: string;
42
+ featured_media?: number;
43
+ menu_order?: number;
44
+ ping_status?: 'open' | 'closed';
45
+ link?: string;
46
+ }
47
+ export interface Template extends CommonPost {
48
+ type: 'wp_template';
49
+ is_custom: boolean;
50
+ source: string;
51
+ origin: string;
52
+ plugin?: string;
53
+ has_theme_file: boolean;
54
+ id: string;
11
55
  }
12
- export interface TemplateOrTemplatePart extends BasePost {
13
- type: 'wp_template' | 'wp_template_part';
56
+ export interface TemplatePart extends CommonPost {
57
+ type: 'wp_template_part';
14
58
  source: string;
59
+ origin: string;
15
60
  has_theme_file: boolean;
16
61
  id: string;
62
+ area: string;
17
63
  }
18
- export interface Pattern extends BasePost {
64
+ export interface Pattern extends CommonPost {
19
65
  slug: string;
20
66
  title: {
21
67
  raw: string;
22
68
  };
23
- content: {
24
- raw: string;
25
- } | string;
26
69
  wp_pattern_sync_status: string;
27
70
  }
28
- export type Post = TemplateOrTemplatePart | Pattern | BasePost;
71
+ export type Post = Template | TemplatePart | Pattern | BasePost;
72
+ export type PostWithPermissions = Post & {
73
+ permissions: {
74
+ delete: boolean;
75
+ update: boolean;
76
+ };
77
+ };
78
+ export interface PostType {
79
+ slug: string;
80
+ viewable: boolean;
81
+ supports?: {
82
+ 'page-attributes'?: boolean;
83
+ title?: boolean;
84
+ revisions?: boolean;
85
+ };
86
+ }
29
87
  export type CoreDataError = {
30
88
  message?: string;
31
89
  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,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QL,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;AAjzBM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBAwFf;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
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"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AKK;;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,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;;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,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
+ {"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 +1 @@
1
- {"version":3,"file":"is-template-revertable.d.ts","sourceRoot":"","sources":["../../../src/store/utils/is-template-revertable.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,qEAHW,MAAM,GACL,OAAO,CAWlB"}
1
+ {"version":3,"file":"is-template-revertable.d.ts","sourceRoot":"","sources":["../../../src/store/utils/is-template-revertable.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,qEAHW,MAAM,GACL,OAAO,CAYlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.4.0",
3
+ "version": "14.6.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.4.0",
36
- "@wordpress/api-fetch": "^7.4.0",
37
- "@wordpress/blob": "^4.4.0",
38
- "@wordpress/block-editor": "^13.4.0",
39
- "@wordpress/blocks": "^13.4.0",
40
- "@wordpress/commands": "^1.4.0",
41
- "@wordpress/components": "^28.4.0",
42
- "@wordpress/compose": "^7.4.0",
43
- "@wordpress/core-data": "^7.4.0",
44
- "@wordpress/data": "^10.4.0",
45
- "@wordpress/dataviews": "^4.0.0",
46
- "@wordpress/date": "^5.4.0",
47
- "@wordpress/deprecated": "^4.4.0",
48
- "@wordpress/dom": "^4.4.0",
49
- "@wordpress/element": "^6.4.0",
50
- "@wordpress/hooks": "^4.4.0",
51
- "@wordpress/html-entities": "^4.4.0",
52
- "@wordpress/i18n": "^5.4.0",
53
- "@wordpress/icons": "^10.4.0",
54
- "@wordpress/interface": "^6.4.0",
55
- "@wordpress/keyboard-shortcuts": "^5.4.0",
56
- "@wordpress/keycodes": "^4.4.0",
57
- "@wordpress/media-utils": "^5.4.0",
58
- "@wordpress/notices": "^5.4.0",
59
- "@wordpress/patterns": "^2.4.0",
60
- "@wordpress/plugins": "^7.4.0",
61
- "@wordpress/preferences": "^4.4.0",
62
- "@wordpress/private-apis": "^1.4.0",
63
- "@wordpress/reusable-blocks": "^5.4.0",
64
- "@wordpress/rich-text": "^7.4.0",
65
- "@wordpress/server-side-render": "^5.4.0",
66
- "@wordpress/url": "^4.4.0",
67
- "@wordpress/warning": "^3.4.0",
68
- "@wordpress/wordcount": "^4.4.0",
35
+ "@wordpress/a11y": "^4.6.0",
36
+ "@wordpress/api-fetch": "^7.6.0",
37
+ "@wordpress/blob": "^4.6.0",
38
+ "@wordpress/block-editor": "^14.1.0",
39
+ "@wordpress/blocks": "^13.6.0",
40
+ "@wordpress/commands": "^1.6.0",
41
+ "@wordpress/components": "^28.6.0",
42
+ "@wordpress/compose": "^7.6.0",
43
+ "@wordpress/core-data": "^7.6.0",
44
+ "@wordpress/data": "^10.6.0",
45
+ "@wordpress/dataviews": "^4.2.0",
46
+ "@wordpress/date": "^5.6.0",
47
+ "@wordpress/deprecated": "^4.6.0",
48
+ "@wordpress/dom": "^4.6.0",
49
+ "@wordpress/element": "^6.6.0",
50
+ "@wordpress/hooks": "^4.6.0",
51
+ "@wordpress/html-entities": "^4.6.0",
52
+ "@wordpress/i18n": "^5.6.0",
53
+ "@wordpress/icons": "^10.6.0",
54
+ "@wordpress/interface": "^6.6.0",
55
+ "@wordpress/keyboard-shortcuts": "^5.6.0",
56
+ "@wordpress/keycodes": "^4.6.0",
57
+ "@wordpress/media-utils": "^5.6.0",
58
+ "@wordpress/notices": "^5.6.0",
59
+ "@wordpress/patterns": "^2.6.0",
60
+ "@wordpress/plugins": "^7.6.0",
61
+ "@wordpress/preferences": "^4.6.0",
62
+ "@wordpress/private-apis": "^1.6.0",
63
+ "@wordpress/reusable-blocks": "^5.6.0",
64
+ "@wordpress/rich-text": "^7.6.0",
65
+ "@wordpress/server-side-render": "^5.6.0",
66
+ "@wordpress/url": "^4.6.0",
67
+ "@wordpress/warning": "^3.6.0",
68
+ "@wordpress/wordcount": "^4.6.0",
69
69
  "change-case": "^4.1.2",
70
70
  "client-zip": "^2.4.5",
71
71
  "clsx": "^2.1.1",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "363edb39b8dda8727f652e42cbb8497732693ed2"
88
+ "gitHead": "ab9564947967bb3f00343130954b9efacba6cdd7"
89
89
  }
@@ -75,4 +75,24 @@ export default {
75
75
 
76
76
  return true;
77
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 or private keys from the list of fields.
92
+ return Object.fromEntries(
93
+ Object.entries( metaFields ).filter(
94
+ ( [ key ] ) => key !== 'footnotes' && key.charAt( 0 ) !== '_'
95
+ )
96
+ );
97
+ },
78
98
  };
@@ -9,8 +9,8 @@
9
9
  }
10
10
 
11
11
  .editor-block-manager__disabled-blocks-count {
12
- border: 1px solid $gray-300;
13
- border-width: 1px 0;
12
+ border: $border-width solid $gray-300;
13
+ border-width: $border-width 0;
14
14
  // Cover up horizontal areas off the sides of the box rectangle
15
15
  box-shadow: -$grid-unit-40 0 0 0 $white, $grid-unit-40 0 0 0 $white;
16
16
  padding: $grid-unit-10;
@@ -111,7 +111,7 @@ export default function BlogTitle() {
111
111
  onClose={ onClose }
112
112
  />
113
113
  <InputControl
114
- placeholder={ __( 'No Title' ) }
114
+ placeholder={ __( 'No title' ) }
115
115
  size="__unstable-large"
116
116
  value={ postsPageTitle }
117
117
  onChange={ debounce( setPostsPageTitle, 300 ) }
@@ -89,7 +89,8 @@ function useEditorCommandLoader() {
89
89
  name: 'core/open-shortcut-help',
90
90
  label: __( 'Keyboard shortcuts' ),
91
91
  icon: keyboard,
92
- callback: () => {
92
+ callback: ( { close } ) => {
93
+ close();
93
94
  openModal( 'editor/keyboard-shortcut-help' );
94
95
  },
95
96
  } );
@@ -108,7 +109,8 @@ function useEditorCommandLoader() {
108
109
  commands.push( {
109
110
  name: 'core/open-preferences',
110
111
  label: __( 'Editor preferences' ),
111
- callback: () => {
112
+ callback: ( { close } ) => {
113
+ close();
112
114
  openModal( 'editor/preferences' );
113
115
  },
114
116
  } );
@@ -143,6 +143,7 @@ export function CreateTemplatePartModalContents( {
143
143
  required
144
144
  />
145
145
  <BaseControl
146
+ __nextHasNoMarginBottom
146
147
  label={ __( 'Area' ) }
147
148
  id={ `editor-create-template-part-modal__area-selection-${ instanceId }` }
148
149
  className="editor-create-template-part-modal__area-base-control"
@@ -200,7 +200,7 @@ export default function DocumentBar( props ) {
200
200
  >
201
201
  { title
202
202
  ? decodeEntities( title )
203
- : __( 'No Title' ) }
203
+ : __( 'No title' ) }
204
204
  </Text>
205
205
  </motion.div>
206
206
  <span className="editor-document-bar__shortcut">
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .editor-document-bar__title {
37
- flex-grow: 1;
37
+ flex: 1;
38
38
  overflow: hidden;
39
39
  color: $gray-900;
40
40
  gap: $grid-unit-05;
@@ -2,6 +2,11 @@
2
2
  height: $header-height + $border-width;
3
3
  }
4
4
 
5
+ .editor-editor-interface .interface-interface-skeleton__content {
6
+ // Make this a stacking context to contain the z-index of children elements.
7
+ isolation: isolate;
8
+ }
9
+
5
10
  .editor-visual-editor {
6
11
  flex: 1 0 auto;
7
12
  }
@@ -86,7 +86,7 @@
86
86
  }
87
87
 
88
88
  .copy-button__container--secondary {
89
- border: 1px #c6c6c8;
89
+ border: $border-width #c6c6c8;
90
90
  background-color: $white;
91
91
  }
92
92
 
@@ -3,5 +3,5 @@
3
3
  max-width: 780px;
4
4
  padding: 20px;
5
5
  margin-top: 60px;
6
- box-shadow: $shadow-modal;
6
+ box-shadow: $elevation-large;
7
7
  }
@@ -23,10 +23,23 @@ const { GlobalStylesContext, cleanEmptyObject } = unlock(
23
23
 
24
24
  export function mergeBaseAndUserConfigs( base, user ) {
25
25
  return deepmerge( base, user, {
26
- // We only pass as arrays the presets,
27
- // in which case we want the new array of values
28
- // to override the old array (no merging).
26
+ /*
27
+ * We only pass as arrays the presets,
28
+ * in which case we want the new array of values
29
+ * to override the old array (no merging).
30
+ */
29
31
  isMergeableObject: isPlainObject,
32
+ /*
33
+ * Exceptions to the above rule.
34
+ * Background images should be replaced, not merged,
35
+ * as they themselves are specific object definitions for the style.
36
+ */
37
+ customMerge: ( key ) => {
38
+ if ( key === 'backgroundImage' ) {
39
+ return ( baseConfig, userConfig ) => userConfig;
40
+ }
41
+ return undefined;
42
+ },
30
43
  } );
31
44
  }
32
45
 
@@ -57,7 +57,6 @@ function Header( {
57
57
  showIconLabels,
58
58
  hasFixedToolbar,
59
59
  isNestedEntity,
60
- isZoomedOutView,
61
60
  } = useSelect( ( select ) => {
62
61
  const { get: getPreference } = select( preferencesStore );
63
62
  const {
@@ -136,7 +135,7 @@ function Header( {
136
135
  ) }
137
136
  <PreviewDropdown
138
137
  forceIsAutosaveable={ forceIsDirty }
139
- disabled={ isNestedEntity || isZoomedOutView }
138
+ disabled={ isNestedEntity }
140
139
  />
141
140
  <PostPreviewButton
142
141
  className="editor-header__post-preview-button"
@@ -22,6 +22,7 @@ const { PrivateInserterLibrary } = unlock( blockEditorPrivateApis );
22
22
 
23
23
  export default function InserterSidebar() {
24
24
  const {
25
+ blockInsertionPoint,
25
26
  blockSectionRootClientId,
26
27
  inserterSidebarToggleRef,
27
28
  insertionPoint,
@@ -33,8 +34,12 @@ export default function InserterSidebar() {
33
34
  getInsertionPoint,
34
35
  isPublishSidebarOpened,
35
36
  } = unlock( select( editorStore ) );
36
- const { getBlockRootClientId, __unstableGetEditorMode, getSettings } =
37
- select( blockEditorStore );
37
+ const {
38
+ getBlockInsertionPoint,
39
+ getBlockRootClientId,
40
+ __unstableGetEditorMode,
41
+ getSettings,
42
+ } = select( blockEditorStore );
38
43
  const { get } = select( preferencesStore );
39
44
  const { getActiveComplementaryArea } = select( interfaceStore );
40
45
  const getBlockSectionRootClientId = () => {
@@ -47,6 +52,7 @@ export default function InserterSidebar() {
47
52
  return getBlockRootClientId();
48
53
  };
49
54
  return {
55
+ blockInsertionPoint: getBlockInsertionPoint(),
50
56
  inserterSidebarToggleRef: getInserterSidebarToggleRef(),
51
57
  insertionPoint: getInsertionPoint(),
52
58
  showMostUsedBlocks: get( 'core', 'mostUsedBlocks' ),
@@ -85,9 +91,9 @@ export default function InserterSidebar() {
85
91
  showInserterHelpPanel
86
92
  shouldFocusBlock={ isMobileViewport }
87
93
  rootClientId={
88
- blockSectionRootClientId ?? insertionPoint.rootClientId
94
+ blockSectionRootClientId ?? blockInsertionPoint.rootClientId
89
95
  }
90
- __experimentalInsertionIndex={ insertionPoint.insertionIndex }
96
+ __experimentalInsertionIndex={ blockInsertionPoint.index }
91
97
  onSelect={ insertionPoint.onSelect }
92
98
  __experimentalInitialTab={ insertionPoint.tab }
93
99
  __experimentalInitialCategory={ insertionPoint.category }
@@ -1,5 +1,9 @@
1
1
  .editor-list-view-sidebar {
2
2
  height: 100%;
3
+
4
+ @include break-medium {
5
+ width: $secondary-sidebar-width;
6
+ }
3
7
  }
4
8
 
5
9
  .editor-list-view-sidebar__list-view-panel-content,