@wordpress/editor 14.11.0 → 14.12.1-next.082ed6819.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 (842) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +120 -107
  3. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
  4. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  5. package/build/components/collab-sidebar/add-comment.js +19 -68
  6. package/build/components/collab-sidebar/add-comment.js.map +1 -1
  7. package/build/components/collab-sidebar/comment-author-info.js +76 -0
  8. package/build/components/collab-sidebar/comment-author-info.js.map +1 -0
  9. package/build/components/collab-sidebar/comment-button-toolbar.js +2 -2
  10. package/build/components/collab-sidebar/comment-button-toolbar.js.map +1 -1
  11. package/build/components/collab-sidebar/comment-button.js +2 -2
  12. package/build/components/collab-sidebar/comment-button.js.map +1 -1
  13. package/build/components/collab-sidebar/comment-form.js +64 -0
  14. package/build/components/collab-sidebar/comment-form.js.map +1 -0
  15. package/build/components/collab-sidebar/comments.js +33 -91
  16. package/build/components/collab-sidebar/comments.js.map +1 -1
  17. package/build/components/collab-sidebar/index.js +75 -73
  18. package/build/components/collab-sidebar/index.js.map +1 -1
  19. package/build/components/commands/index.js +142 -34
  20. package/build/components/commands/index.js.map +1 -1
  21. package/build/components/create-template-part-modal/index.js +2 -2
  22. package/build/components/create-template-part-modal/index.js.map +1 -1
  23. package/build/components/document-bar/index.js +18 -5
  24. package/build/components/document-bar/index.js.map +1 -1
  25. package/build/components/document-outline/check.js +4 -4
  26. package/build/components/document-outline/check.js.map +1 -1
  27. package/build/components/document-outline/index.js +8 -8
  28. package/build/components/document-outline/index.js.map +1 -1
  29. package/build/components/document-tools/index.js +8 -4
  30. package/build/components/document-tools/index.js.map +1 -1
  31. package/build/components/editor-history/redo.js +1 -1
  32. package/build/components/editor-history/redo.js.map +1 -1
  33. package/build/components/editor-history/undo.js +1 -1
  34. package/build/components/editor-history/undo.js.map +1 -1
  35. package/build/components/editor-interface/content-slot-fill.js +1 -10
  36. package/build/components/editor-interface/content-slot-fill.js.map +1 -1
  37. package/build/components/editor-interface/index.js +4 -11
  38. package/build/components/editor-interface/index.js.map +1 -1
  39. package/build/components/editor-notices/index.js +1 -1
  40. package/build/components/editor-notices/index.js.map +1 -1
  41. package/build/components/editor-snackbars/index.js +1 -1
  42. package/build/components/editor-snackbars/index.js.map +1 -1
  43. package/build/components/entities-saved-states/entity-record-item.js +9 -1
  44. package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
  45. package/build/components/entities-saved-states/index.js +2 -2
  46. package/build/components/entities-saved-states/index.js.map +1 -1
  47. package/build/components/global-styles-provider/index.js +20 -8
  48. package/build/components/global-styles-provider/index.js.map +1 -1
  49. package/build/components/header/index.js +10 -12
  50. package/build/components/header/index.js.map +1 -1
  51. package/build/components/more-menu/index.js +9 -7
  52. package/build/components/more-menu/index.js.map +1 -1
  53. package/build/components/page-attributes/check.js +3 -3
  54. package/build/components/page-attributes/check.js.map +1 -1
  55. package/build/components/page-attributes/order.js +1 -1
  56. package/build/components/page-attributes/order.js.map +1 -1
  57. package/build/components/page-attributes/panel.js +1 -1
  58. package/build/components/page-attributes/panel.js.map +1 -1
  59. package/build/components/page-attributes/parent.js +1 -1
  60. package/build/components/page-attributes/parent.js.map +1 -1
  61. package/build/components/plugin-document-setting-panel/index.js +2 -2
  62. package/build/components/plugin-document-setting-panel/index.js.map +1 -1
  63. package/build/components/plugin-more-menu-item/index.js +2 -1
  64. package/build/components/plugin-more-menu-item/index.js.map +1 -1
  65. package/build/components/plugin-post-publish-panel/index.js +2 -2
  66. package/build/components/plugin-post-publish-panel/index.js.map +1 -1
  67. package/build/components/plugin-post-status-info/index.js +4 -4
  68. package/build/components/plugin-post-status-info/index.js.map +1 -1
  69. package/build/components/plugin-pre-publish-panel/index.js +2 -2
  70. package/build/components/plugin-pre-publish-panel/index.js.map +1 -1
  71. package/build/components/plugin-preview-menu-item/index.js +2 -1
  72. package/build/components/plugin-preview-menu-item/index.js.map +1 -1
  73. package/build/components/plugin-sidebar/index.js +1 -0
  74. package/build/components/plugin-sidebar/index.js.map +1 -1
  75. package/build/components/plugin-sidebar-more-menu-item/index.js +2 -1
  76. package/build/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
  77. package/build/components/post-actions/actions.js +3 -3
  78. package/build/components/post-actions/actions.js.map +1 -1
  79. package/build/components/post-author/check.js +3 -3
  80. package/build/components/post-author/check.js.map +1 -1
  81. package/build/components/post-author/index.js +1 -1
  82. package/build/components/post-author/index.js.map +1 -1
  83. package/build/components/post-author/panel.js +1 -1
  84. package/build/components/post-author/panel.js.map +1 -1
  85. package/build/components/post-card-panel/index.js +9 -4
  86. package/build/components/post-card-panel/index.js.map +1 -1
  87. package/build/components/post-comments/index.js +1 -1
  88. package/build/components/post-comments/index.js.map +1 -1
  89. package/build/components/post-discussion/panel.js +1 -1
  90. package/build/components/post-discussion/panel.js.map +1 -1
  91. package/build/components/post-excerpt/check.js +3 -3
  92. package/build/components/post-excerpt/check.js.map +1 -1
  93. package/build/components/post-excerpt/panel.js +1 -1
  94. package/build/components/post-excerpt/panel.js.map +1 -1
  95. package/build/components/post-excerpt/plugin.js +4 -4
  96. package/build/components/post-excerpt/plugin.js.map +1 -1
  97. package/build/components/post-featured-image/check.js +3 -3
  98. package/build/components/post-featured-image/check.js.map +1 -1
  99. package/build/components/post-featured-image/index.js +39 -9
  100. package/build/components/post-featured-image/index.js.map +1 -1
  101. package/build/components/post-featured-image/panel.js +1 -1
  102. package/build/components/post-featured-image/panel.js.map +1 -1
  103. package/build/components/post-fields/index.js +70 -0
  104. package/build/components/post-fields/index.js.map +1 -0
  105. package/build/components/post-format/check.js +9 -12
  106. package/build/components/post-format/check.js.map +1 -1
  107. package/build/components/post-format/index.js +1 -1
  108. package/build/components/post-format/index.js.map +1 -1
  109. package/build/components/post-format/panel.js +1 -1
  110. package/build/components/post-format/panel.js.map +1 -1
  111. package/build/components/post-last-revision/check.js +3 -3
  112. package/build/components/post-last-revision/check.js.map +1 -1
  113. package/build/components/post-last-revision/index.js +1 -1
  114. package/build/components/post-last-revision/index.js.map +1 -1
  115. package/build/components/post-last-revision/panel.js +1 -1
  116. package/build/components/post-last-revision/panel.js.map +1 -1
  117. package/build/components/post-locked-modal/index.js +1 -1
  118. package/build/components/post-locked-modal/index.js.map +1 -1
  119. package/build/components/post-pending-status/check.js +3 -3
  120. package/build/components/post-pending-status/check.js.map +1 -1
  121. package/build/components/post-pending-status/index.js +1 -1
  122. package/build/components/post-pending-status/index.js.map +1 -1
  123. package/build/components/post-preview-button/index.js +1 -1
  124. package/build/components/post-preview-button/index.js.map +1 -1
  125. package/build/components/post-publish-panel/index.js +5 -2
  126. package/build/components/post-publish-panel/index.js.map +1 -1
  127. package/build/components/post-schedule/check.js +3 -3
  128. package/build/components/post-schedule/check.js.map +1 -1
  129. package/build/components/post-schedule/index.js +1 -1
  130. package/build/components/post-schedule/index.js.map +1 -1
  131. package/build/components/post-schedule/label.js +1 -1
  132. package/build/components/post-schedule/label.js.map +1 -1
  133. package/build/components/post-schedule/panel.js +1 -1
  134. package/build/components/post-schedule/panel.js.map +1 -1
  135. package/build/components/post-slug/check.js +3 -3
  136. package/build/components/post-slug/check.js.map +1 -1
  137. package/build/components/post-slug/index.js +1 -1
  138. package/build/components/post-slug/index.js.map +1 -1
  139. package/build/components/post-sticky/check.js +3 -3
  140. package/build/components/post-sticky/check.js.map +1 -1
  141. package/build/components/post-sticky/index.js +1 -1
  142. package/build/components/post-sticky/index.js.map +1 -1
  143. package/build/components/post-switch-to-draft-button/index.js +1 -1
  144. package/build/components/post-switch-to-draft-button/index.js.map +1 -1
  145. package/build/components/post-sync-status/index.js +1 -1
  146. package/build/components/post-sync-status/index.js.map +1 -1
  147. package/build/components/post-taxonomies/check.js +3 -3
  148. package/build/components/post-taxonomies/check.js.map +1 -1
  149. package/build/components/post-taxonomies/flat-term-selector.js +11 -9
  150. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  151. package/build/components/post-taxonomies/panel.js +16 -13
  152. package/build/components/post-taxonomies/panel.js.map +1 -1
  153. package/build/components/post-template/classic-theme.js +2 -2
  154. package/build/components/post-template/classic-theme.js.map +1 -1
  155. package/build/components/post-template/panel.js +1 -1
  156. package/build/components/post-template/panel.js.map +1 -1
  157. package/build/components/post-template/swap-template-button.js +0 -3
  158. package/build/components/post-template/swap-template-button.js.map +1 -1
  159. package/build/components/post-text-editor/index.js +1 -1
  160. package/build/components/post-text-editor/index.js.map +1 -1
  161. package/build/components/post-title/index.js +20 -18
  162. package/build/components/post-title/index.js.map +1 -1
  163. package/build/components/post-title/post-title-raw.js +1 -1
  164. package/build/components/post-title/post-title-raw.js.map +1 -1
  165. package/build/components/post-transform-panel/index.js +0 -3
  166. package/build/components/post-transform-panel/index.js.map +1 -1
  167. package/build/components/post-trash/check.js +3 -3
  168. package/build/components/post-trash/check.js.map +1 -1
  169. package/build/components/post-trash/index.js +1 -1
  170. package/build/components/post-trash/index.js.map +1 -1
  171. package/build/components/post-type-support-check/index.js +6 -6
  172. package/build/components/post-type-support-check/index.js.map +1 -1
  173. package/build/components/post-url/check.js +3 -3
  174. package/build/components/post-url/check.js.map +1 -1
  175. package/build/components/post-url/index.js +1 -1
  176. package/build/components/post-url/index.js.map +1 -1
  177. package/build/components/post-url/label.js +1 -1
  178. package/build/components/post-url/label.js.map +1 -1
  179. package/build/components/post-url/panel.js +1 -1
  180. package/build/components/post-url/panel.js.map +1 -1
  181. package/build/components/post-visibility/check.js +1 -1
  182. package/build/components/post-visibility/check.js.map +1 -1
  183. package/build/components/post-visibility/index.js +1 -1
  184. package/build/components/post-visibility/index.js.map +1 -1
  185. package/build/components/preferences-modal/block-visibility.js +87 -0
  186. package/build/components/preferences-modal/block-visibility.js.map +1 -0
  187. package/build/components/preferences-modal/enable-panel.js +27 -19
  188. package/build/components/preferences-modal/enable-panel.js.map +1 -1
  189. package/build/components/preferences-modal/enable-publish-sidebar.js +13 -10
  190. package/build/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
  191. package/build/components/preferences-modal/index.js +28 -24
  192. package/build/components/preferences-modal/index.js.map +1 -1
  193. package/build/components/preview-dropdown/index.js +23 -4
  194. package/build/components/preview-dropdown/index.js.map +1 -1
  195. package/build/components/provider/index.js +14 -8
  196. package/build/components/provider/index.js.map +1 -1
  197. package/build/components/provider/use-block-editor-settings.js +10 -9
  198. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  199. package/build/components/sidebar/post-summary.js +2 -2
  200. package/build/components/sidebar/post-summary.js.map +1 -1
  201. package/build/components/start-page-options/index.js +0 -3
  202. package/build/components/start-page-options/index.js.map +1 -1
  203. package/build/components/start-template-options/index.js +0 -3
  204. package/build/components/start-template-options/index.js.map +1 -1
  205. package/build/components/table-of-contents/index.js +1 -1
  206. package/build/components/table-of-contents/index.js.map +1 -1
  207. package/build/components/theme-support-check/index.js +4 -4
  208. package/build/components/theme-support-check/index.js.map +1 -1
  209. package/build/components/time-to-read/index.js +1 -1
  210. package/build/components/time-to-read/index.js.map +1 -1
  211. package/build/components/unsaved-changes-warning/index.js +1 -1
  212. package/build/components/unsaved-changes-warning/index.js.map +1 -1
  213. package/build/components/visual-editor/index.js +5 -2
  214. package/build/components/visual-editor/index.js.map +1 -1
  215. package/build/components/word-count/index.js +1 -1
  216. package/build/components/word-count/index.js.map +1 -1
  217. package/build/components/zoom-out-toggle/index.js +8 -3
  218. package/build/components/zoom-out-toggle/index.js.map +1 -1
  219. package/build/dataviews/api.js +41 -0
  220. package/build/dataviews/api.js.map +1 -1
  221. package/build/dataviews/store/private-actions.js +26 -4
  222. package/build/dataviews/store/private-actions.js.map +1 -1
  223. package/build/dataviews/store/private-selectors.js +5 -0
  224. package/build/dataviews/store/private-selectors.js.map +1 -1
  225. package/build/dataviews/store/reducer.js +23 -0
  226. package/build/dataviews/store/reducer.js.map +1 -1
  227. package/build/private-apis.js +4 -0
  228. package/build/private-apis.js.map +1 -1
  229. package/build/store/actions.js +76 -25
  230. package/build/store/actions.js.map +1 -1
  231. package/build/store/constants.js +0 -2
  232. package/build/store/constants.js.map +1 -1
  233. package/build/store/index.js +0 -4
  234. package/build/store/index.js.map +1 -1
  235. package/build/store/private-selectors.js +5 -1
  236. package/build/store/private-selectors.js.map +1 -1
  237. package/build/store/reducer.native.js +1 -0
  238. package/build/store/reducer.native.js.map +1 -1
  239. package/build/store/selectors.js +36 -44
  240. package/build/store/selectors.js.map +1 -1
  241. package/build/utils/get-template-info.js +60 -0
  242. package/build/utils/get-template-info.js.map +1 -0
  243. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
  244. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  245. package/build-module/components/collab-sidebar/add-comment.js +20 -70
  246. package/build-module/components/collab-sidebar/add-comment.js.map +1 -1
  247. package/build-module/components/collab-sidebar/comment-author-info.js +71 -0
  248. package/build-module/components/collab-sidebar/comment-author-info.js.map +1 -0
  249. package/build-module/components/collab-sidebar/comment-button-toolbar.js +2 -2
  250. package/build-module/components/collab-sidebar/comment-button-toolbar.js.map +1 -1
  251. package/build-module/components/collab-sidebar/comment-button.js +2 -2
  252. package/build-module/components/collab-sidebar/comment-button.js.map +1 -1
  253. package/build-module/components/collab-sidebar/comment-form.js +59 -0
  254. package/build-module/components/collab-sidebar/comment-form.js.map +1 -0
  255. package/build-module/components/collab-sidebar/comments.js +33 -91
  256. package/build-module/components/collab-sidebar/comments.js.map +1 -1
  257. package/build-module/components/collab-sidebar/index.js +76 -74
  258. package/build-module/components/collab-sidebar/index.js.map +1 -1
  259. package/build-module/components/commands/index.js +145 -38
  260. package/build-module/components/commands/index.js.map +1 -1
  261. package/build-module/components/create-template-part-modal/index.js +2 -2
  262. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  263. package/build-module/components/document-bar/index.js +19 -6
  264. package/build-module/components/document-bar/index.js.map +1 -1
  265. package/build-module/components/document-outline/check.js +4 -4
  266. package/build-module/components/document-outline/check.js.map +1 -1
  267. package/build-module/components/document-outline/index.js +8 -8
  268. package/build-module/components/document-outline/index.js.map +1 -1
  269. package/build-module/components/document-tools/index.js +8 -4
  270. package/build-module/components/document-tools/index.js.map +1 -1
  271. package/build-module/components/editor-history/redo.js +1 -1
  272. package/build-module/components/editor-history/redo.js.map +1 -1
  273. package/build-module/components/editor-history/undo.js +1 -1
  274. package/build-module/components/editor-history/undo.js.map +1 -1
  275. package/build-module/components/editor-interface/content-slot-fill.js +2 -11
  276. package/build-module/components/editor-interface/content-slot-fill.js.map +1 -1
  277. package/build-module/components/editor-interface/index.js +5 -12
  278. package/build-module/components/editor-interface/index.js.map +1 -1
  279. package/build-module/components/editor-notices/index.js +1 -1
  280. package/build-module/components/editor-notices/index.js.map +1 -1
  281. package/build-module/components/editor-snackbars/index.js +1 -1
  282. package/build-module/components/editor-snackbars/index.js.map +1 -1
  283. package/build-module/components/entities-saved-states/entity-record-item.js +9 -1
  284. package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
  285. package/build-module/components/entities-saved-states/index.js +2 -2
  286. package/build-module/components/entities-saved-states/index.js.map +1 -1
  287. package/build-module/components/global-styles-provider/index.js +20 -8
  288. package/build-module/components/global-styles-provider/index.js.map +1 -1
  289. package/build-module/components/header/index.js +10 -12
  290. package/build-module/components/header/index.js.map +1 -1
  291. package/build-module/components/more-menu/index.js +9 -7
  292. package/build-module/components/more-menu/index.js.map +1 -1
  293. package/build-module/components/page-attributes/check.js +3 -3
  294. package/build-module/components/page-attributes/check.js.map +1 -1
  295. package/build-module/components/page-attributes/order.js +1 -1
  296. package/build-module/components/page-attributes/order.js.map +1 -1
  297. package/build-module/components/page-attributes/panel.js +1 -1
  298. package/build-module/components/page-attributes/panel.js.map +1 -1
  299. package/build-module/components/page-attributes/parent.js +1 -1
  300. package/build-module/components/page-attributes/parent.js.map +1 -1
  301. package/build-module/components/plugin-document-setting-panel/index.js +2 -2
  302. package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
  303. package/build-module/components/plugin-more-menu-item/index.js +2 -1
  304. package/build-module/components/plugin-more-menu-item/index.js.map +1 -1
  305. package/build-module/components/plugin-post-publish-panel/index.js +2 -2
  306. package/build-module/components/plugin-post-publish-panel/index.js.map +1 -1
  307. package/build-module/components/plugin-post-status-info/index.js +4 -4
  308. package/build-module/components/plugin-post-status-info/index.js.map +1 -1
  309. package/build-module/components/plugin-pre-publish-panel/index.js +2 -2
  310. package/build-module/components/plugin-pre-publish-panel/index.js.map +1 -1
  311. package/build-module/components/plugin-preview-menu-item/index.js +2 -1
  312. package/build-module/components/plugin-preview-menu-item/index.js.map +1 -1
  313. package/build-module/components/plugin-sidebar/index.js +1 -0
  314. package/build-module/components/plugin-sidebar/index.js.map +1 -1
  315. package/build-module/components/plugin-sidebar-more-menu-item/index.js +2 -1
  316. package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
  317. package/build-module/components/post-actions/actions.js +3 -3
  318. package/build-module/components/post-actions/actions.js.map +1 -1
  319. package/build-module/components/post-author/check.js +3 -3
  320. package/build-module/components/post-author/check.js.map +1 -1
  321. package/build-module/components/post-author/index.js +1 -1
  322. package/build-module/components/post-author/index.js.map +1 -1
  323. package/build-module/components/post-author/panel.js +1 -1
  324. package/build-module/components/post-author/panel.js.map +1 -1
  325. package/build-module/components/post-card-panel/index.js +9 -4
  326. package/build-module/components/post-card-panel/index.js.map +1 -1
  327. package/build-module/components/post-comments/index.js +1 -1
  328. package/build-module/components/post-comments/index.js.map +1 -1
  329. package/build-module/components/post-discussion/panel.js +1 -1
  330. package/build-module/components/post-discussion/panel.js.map +1 -1
  331. package/build-module/components/post-excerpt/check.js +3 -3
  332. package/build-module/components/post-excerpt/check.js.map +1 -1
  333. package/build-module/components/post-excerpt/panel.js +1 -1
  334. package/build-module/components/post-excerpt/panel.js.map +1 -1
  335. package/build-module/components/post-excerpt/plugin.js +4 -4
  336. package/build-module/components/post-excerpt/plugin.js.map +1 -1
  337. package/build-module/components/post-featured-image/check.js +3 -3
  338. package/build-module/components/post-featured-image/check.js.map +1 -1
  339. package/build-module/components/post-featured-image/index.js +40 -10
  340. package/build-module/components/post-featured-image/index.js.map +1 -1
  341. package/build-module/components/post-featured-image/panel.js +1 -1
  342. package/build-module/components/post-featured-image/panel.js.map +1 -1
  343. package/build-module/components/post-fields/index.js +62 -0
  344. package/build-module/components/post-fields/index.js.map +1 -0
  345. package/build-module/components/post-format/check.js +10 -11
  346. package/build-module/components/post-format/check.js.map +1 -1
  347. package/build-module/components/post-format/index.js +1 -1
  348. package/build-module/components/post-format/index.js.map +1 -1
  349. package/build-module/components/post-format/panel.js +1 -1
  350. package/build-module/components/post-format/panel.js.map +1 -1
  351. package/build-module/components/post-last-revision/check.js +3 -3
  352. package/build-module/components/post-last-revision/check.js.map +1 -1
  353. package/build-module/components/post-last-revision/index.js +1 -1
  354. package/build-module/components/post-last-revision/index.js.map +1 -1
  355. package/build-module/components/post-last-revision/panel.js +1 -1
  356. package/build-module/components/post-last-revision/panel.js.map +1 -1
  357. package/build-module/components/post-locked-modal/index.js +1 -1
  358. package/build-module/components/post-locked-modal/index.js.map +1 -1
  359. package/build-module/components/post-pending-status/check.js +3 -3
  360. package/build-module/components/post-pending-status/check.js.map +1 -1
  361. package/build-module/components/post-pending-status/index.js +1 -1
  362. package/build-module/components/post-pending-status/index.js.map +1 -1
  363. package/build-module/components/post-preview-button/index.js +1 -1
  364. package/build-module/components/post-preview-button/index.js.map +1 -1
  365. package/build-module/components/post-publish-panel/index.js +5 -2
  366. package/build-module/components/post-publish-panel/index.js.map +1 -1
  367. package/build-module/components/post-schedule/check.js +3 -3
  368. package/build-module/components/post-schedule/check.js.map +1 -1
  369. package/build-module/components/post-schedule/index.js +1 -1
  370. package/build-module/components/post-schedule/index.js.map +1 -1
  371. package/build-module/components/post-schedule/label.js +1 -1
  372. package/build-module/components/post-schedule/label.js.map +1 -1
  373. package/build-module/components/post-schedule/panel.js +1 -1
  374. package/build-module/components/post-schedule/panel.js.map +1 -1
  375. package/build-module/components/post-slug/check.js +3 -3
  376. package/build-module/components/post-slug/check.js.map +1 -1
  377. package/build-module/components/post-slug/index.js +1 -1
  378. package/build-module/components/post-slug/index.js.map +1 -1
  379. package/build-module/components/post-sticky/check.js +3 -3
  380. package/build-module/components/post-sticky/check.js.map +1 -1
  381. package/build-module/components/post-sticky/index.js +1 -1
  382. package/build-module/components/post-sticky/index.js.map +1 -1
  383. package/build-module/components/post-switch-to-draft-button/index.js +1 -1
  384. package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
  385. package/build-module/components/post-sync-status/index.js +1 -1
  386. package/build-module/components/post-sync-status/index.js.map +1 -1
  387. package/build-module/components/post-taxonomies/check.js +3 -3
  388. package/build-module/components/post-taxonomies/check.js.map +1 -1
  389. package/build-module/components/post-taxonomies/flat-term-selector.js +11 -9
  390. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  391. package/build-module/components/post-taxonomies/panel.js +17 -12
  392. package/build-module/components/post-taxonomies/panel.js.map +1 -1
  393. package/build-module/components/post-template/classic-theme.js +2 -2
  394. package/build-module/components/post-template/classic-theme.js.map +1 -1
  395. package/build-module/components/post-template/panel.js +1 -1
  396. package/build-module/components/post-template/panel.js.map +1 -1
  397. package/build-module/components/post-template/swap-template-button.js +0 -3
  398. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  399. package/build-module/components/post-text-editor/index.js +1 -1
  400. package/build-module/components/post-text-editor/index.js.map +1 -1
  401. package/build-module/components/post-title/index.js +20 -18
  402. package/build-module/components/post-title/index.js.map +1 -1
  403. package/build-module/components/post-title/post-title-raw.js +1 -1
  404. package/build-module/components/post-title/post-title-raw.js.map +1 -1
  405. package/build-module/components/post-transform-panel/index.js +0 -3
  406. package/build-module/components/post-transform-panel/index.js.map +1 -1
  407. package/build-module/components/post-trash/check.js +3 -3
  408. package/build-module/components/post-trash/check.js.map +1 -1
  409. package/build-module/components/post-trash/index.js +1 -1
  410. package/build-module/components/post-trash/index.js.map +1 -1
  411. package/build-module/components/post-type-support-check/index.js +6 -6
  412. package/build-module/components/post-type-support-check/index.js.map +1 -1
  413. package/build-module/components/post-url/check.js +3 -3
  414. package/build-module/components/post-url/check.js.map +1 -1
  415. package/build-module/components/post-url/index.js +1 -1
  416. package/build-module/components/post-url/index.js.map +1 -1
  417. package/build-module/components/post-url/label.js +1 -1
  418. package/build-module/components/post-url/label.js.map +1 -1
  419. package/build-module/components/post-url/panel.js +1 -1
  420. package/build-module/components/post-url/panel.js.map +1 -1
  421. package/build-module/components/post-visibility/check.js +1 -1
  422. package/build-module/components/post-visibility/check.js.map +1 -1
  423. package/build-module/components/post-visibility/index.js +1 -1
  424. package/build-module/components/post-visibility/index.js.map +1 -1
  425. package/build-module/components/preferences-modal/block-visibility.js +80 -0
  426. package/build-module/components/preferences-modal/block-visibility.js.map +1 -0
  427. package/build-module/components/preferences-modal/enable-panel.js +27 -19
  428. package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
  429. package/build-module/components/preferences-modal/enable-publish-sidebar.js +13 -10
  430. package/build-module/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
  431. package/build-module/components/preferences-modal/index.js +28 -24
  432. package/build-module/components/preferences-modal/index.js.map +1 -1
  433. package/build-module/components/preview-dropdown/index.js +24 -5
  434. package/build-module/components/preview-dropdown/index.js.map +1 -1
  435. package/build-module/components/provider/index.js +14 -8
  436. package/build-module/components/provider/index.js.map +1 -1
  437. package/build-module/components/provider/use-block-editor-settings.js +11 -10
  438. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  439. package/build-module/components/sidebar/post-summary.js +2 -2
  440. package/build-module/components/sidebar/post-summary.js.map +1 -1
  441. package/build-module/components/start-page-options/index.js +0 -3
  442. package/build-module/components/start-page-options/index.js.map +1 -1
  443. package/build-module/components/start-template-options/index.js +0 -3
  444. package/build-module/components/start-template-options/index.js.map +1 -1
  445. package/build-module/components/table-of-contents/index.js +1 -1
  446. package/build-module/components/table-of-contents/index.js.map +1 -1
  447. package/build-module/components/theme-support-check/index.js +4 -4
  448. package/build-module/components/theme-support-check/index.js.map +1 -1
  449. package/build-module/components/time-to-read/index.js +1 -1
  450. package/build-module/components/time-to-read/index.js.map +1 -1
  451. package/build-module/components/unsaved-changes-warning/index.js +1 -1
  452. package/build-module/components/unsaved-changes-warning/index.js.map +1 -1
  453. package/build-module/components/visual-editor/index.js +5 -2
  454. package/build-module/components/visual-editor/index.js.map +1 -1
  455. package/build-module/components/word-count/index.js +1 -1
  456. package/build-module/components/word-count/index.js.map +1 -1
  457. package/build-module/components/zoom-out-toggle/index.js +8 -3
  458. package/build-module/components/zoom-out-toggle/index.js.map +1 -1
  459. package/build-module/dataviews/api.js +39 -0
  460. package/build-module/dataviews/api.js.map +1 -1
  461. package/build-module/dataviews/store/private-actions.js +23 -3
  462. package/build-module/dataviews/store/private-actions.js.map +1 -1
  463. package/build-module/dataviews/store/private-selectors.js +4 -0
  464. package/build-module/dataviews/store/private-selectors.js.map +1 -1
  465. package/build-module/dataviews/store/reducer.js +23 -0
  466. package/build-module/dataviews/store/reducer.js.map +1 -1
  467. package/build-module/private-apis.js +4 -0
  468. package/build-module/private-apis.js.map +1 -1
  469. package/build-module/store/actions.js +72 -23
  470. package/build-module/store/actions.js.map +1 -1
  471. package/build-module/store/constants.js +0 -2
  472. package/build-module/store/constants.js.map +1 -1
  473. package/build-module/store/index.js +0 -4
  474. package/build-module/store/index.js.map +1 -1
  475. package/build-module/store/private-selectors.js +6 -3
  476. package/build-module/store/private-selectors.js.map +1 -1
  477. package/build-module/store/reducer.native.js +2 -1
  478. package/build-module/store/reducer.native.js.map +1 -1
  479. package/build-module/store/selectors.js +35 -41
  480. package/build-module/store/selectors.js.map +1 -1
  481. package/build-module/utils/get-template-info.js +51 -0
  482. package/build-module/utils/get-template-info.js.map +1 -0
  483. package/build-style/style-rtl.css +33 -87
  484. package/build-style/style.css +33 -87
  485. package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +2 -2
  486. package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
  487. package/build-types/components/collab-sidebar/add-comment.d.ts +2 -2
  488. package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
  489. package/build-types/components/collab-sidebar/comment-author-info.d.ts +17 -0
  490. package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +1 -0
  491. package/build-types/components/collab-sidebar/comment-form.d.ts +18 -0
  492. package/build-types/components/collab-sidebar/comment-form.d.ts.map +1 -0
  493. package/build-types/components/collab-sidebar/comments.d.ts +2 -2
  494. package/build-types/components/collab-sidebar/comments.d.ts.map +1 -1
  495. package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
  496. package/build-types/components/commands/index.d.ts.map +1 -1
  497. package/build-types/components/create-template-part-modal/index.d.ts.map +1 -1
  498. package/build-types/components/document-bar/index.d.ts +2 -2
  499. package/build-types/components/document-bar/index.d.ts.map +1 -1
  500. package/build-types/components/document-outline/check.d.ts +5 -5
  501. package/build-types/components/document-outline/check.d.ts.map +1 -1
  502. package/build-types/components/document-outline/index.d.ts +4 -6
  503. package/build-types/components/document-outline/index.d.ts.map +1 -1
  504. package/build-types/components/document-tools/index.d.ts.map +1 -1
  505. package/build-types/components/editor-interface/content-slot-fill.d.ts +12 -1
  506. package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -1
  507. package/build-types/components/editor-interface/index.d.ts.map +1 -1
  508. package/build-types/components/editor-notices/index.d.ts +2 -2
  509. package/build-types/components/editor-notices/index.d.ts.map +1 -1
  510. package/build-types/components/editor-snackbars/index.d.ts +2 -2
  511. package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
  512. package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -1
  513. package/build-types/components/entities-saved-states/index.d.ts +4 -4
  514. package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
  515. package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
  516. package/build-types/components/header/back-button.d.ts.map +1 -1
  517. package/build-types/components/header/index.d.ts +1 -2
  518. package/build-types/components/header/index.d.ts.map +1 -1
  519. package/build-types/components/more-menu/index.d.ts.map +1 -1
  520. package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
  521. package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
  522. package/build-types/components/page-attributes/check.d.ts +5 -5
  523. package/build-types/components/page-attributes/check.d.ts.map +1 -1
  524. package/build-types/components/page-attributes/order.d.ts +2 -2
  525. package/build-types/components/page-attributes/order.d.ts.map +1 -1
  526. package/build-types/components/page-attributes/panel.d.ts +2 -2
  527. package/build-types/components/page-attributes/panel.d.ts.map +1 -1
  528. package/build-types/components/page-attributes/parent.d.ts +2 -2
  529. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  530. package/build-types/components/plugin-document-setting-panel/index.d.ts +4 -4
  531. package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
  532. package/build-types/components/plugin-more-menu-item/index.d.ts +4 -2
  533. package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -1
  534. package/build-types/components/plugin-post-publish-panel/index.d.ts +4 -4
  535. package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
  536. package/build-types/components/plugin-post-status-info/index.d.ts +6 -6
  537. package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
  538. package/build-types/components/plugin-pre-publish-panel/index.d.ts +4 -4
  539. package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
  540. package/build-types/components/plugin-preview-menu-item/index.d.ts +4 -2
  541. package/build-types/components/plugin-preview-menu-item/index.d.ts.map +1 -1
  542. package/build-types/components/plugin-sidebar/index.d.ts +2 -0
  543. package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
  544. package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +4 -2
  545. package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
  546. package/build-types/components/post-author/check.d.ts +5 -5
  547. package/build-types/components/post-author/check.d.ts.map +1 -1
  548. package/build-types/components/post-author/index.d.ts +2 -2
  549. package/build-types/components/post-author/index.d.ts.map +1 -1
  550. package/build-types/components/post-author/panel.d.ts +2 -2
  551. package/build-types/components/post-author/panel.d.ts.map +1 -1
  552. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  553. package/build-types/components/post-discussion/panel.d.ts +2 -2
  554. package/build-types/components/post-discussion/panel.d.ts.map +1 -1
  555. package/build-types/components/post-excerpt/check.d.ts +5 -5
  556. package/build-types/components/post-excerpt/check.d.ts.map +1 -1
  557. package/build-types/components/post-excerpt/panel.d.ts +2 -2
  558. package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
  559. package/build-types/components/post-excerpt/plugin.d.ts +6 -6
  560. package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
  561. package/build-types/components/post-featured-image/check.d.ts +5 -5
  562. package/build-types/components/post-featured-image/check.d.ts.map +1 -1
  563. package/build-types/components/post-featured-image/panel.d.ts +2 -2
  564. package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
  565. package/build-types/components/post-fields/index.d.ts +12 -0
  566. package/build-types/components/post-fields/index.d.ts.map +1 -0
  567. package/build-types/components/post-format/check.d.ts +11 -4
  568. package/build-types/components/post-format/check.d.ts.map +1 -1
  569. package/build-types/components/post-format/index.d.ts +2 -2
  570. package/build-types/components/post-format/index.d.ts.map +1 -1
  571. package/build-types/components/post-format/panel.d.ts +2 -2
  572. package/build-types/components/post-format/panel.d.ts.map +1 -1
  573. package/build-types/components/post-last-revision/check.d.ts +5 -5
  574. package/build-types/components/post-last-revision/check.d.ts.map +1 -1
  575. package/build-types/components/post-last-revision/index.d.ts +2 -2
  576. package/build-types/components/post-last-revision/index.d.ts.map +1 -1
  577. package/build-types/components/post-last-revision/panel.d.ts +2 -2
  578. package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
  579. package/build-types/components/post-locked-modal/index.d.ts +2 -2
  580. package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
  581. package/build-types/components/post-pending-status/check.d.ts +5 -5
  582. package/build-types/components/post-pending-status/check.d.ts.map +1 -1
  583. package/build-types/components/post-pending-status/index.d.ts +2 -2
  584. package/build-types/components/post-pending-status/index.d.ts.map +1 -1
  585. package/build-types/components/post-preview-button/index.d.ts +2 -2
  586. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  587. package/build-types/components/post-publish-panel/index.d.ts.map +1 -1
  588. package/build-types/components/post-schedule/check.d.ts +5 -5
  589. package/build-types/components/post-schedule/check.d.ts.map +1 -1
  590. package/build-types/components/post-schedule/index.d.ts +2 -2
  591. package/build-types/components/post-schedule/index.d.ts.map +1 -1
  592. package/build-types/components/post-schedule/label.d.ts +2 -2
  593. package/build-types/components/post-schedule/label.d.ts.map +1 -1
  594. package/build-types/components/post-schedule/panel.d.ts +2 -2
  595. package/build-types/components/post-schedule/panel.d.ts.map +1 -1
  596. package/build-types/components/post-slug/check.d.ts +5 -5
  597. package/build-types/components/post-slug/check.d.ts.map +1 -1
  598. package/build-types/components/post-slug/index.d.ts +2 -2
  599. package/build-types/components/post-slug/index.d.ts.map +1 -1
  600. package/build-types/components/post-sticky/check.d.ts +5 -5
  601. package/build-types/components/post-sticky/check.d.ts.map +1 -1
  602. package/build-types/components/post-sticky/index.d.ts +2 -2
  603. package/build-types/components/post-sticky/index.d.ts.map +1 -1
  604. package/build-types/components/post-switch-to-draft-button/index.d.ts +2 -2
  605. package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
  606. package/build-types/components/post-sync-status/index.d.ts +2 -2
  607. package/build-types/components/post-sync-status/index.d.ts.map +1 -1
  608. package/build-types/components/post-taxonomies/check.d.ts +5 -5
  609. package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
  610. package/build-types/components/post-taxonomies/flat-term-selector.d.ts +2 -2
  611. package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
  612. package/build-types/components/post-taxonomies/panel.d.ts +6 -2
  613. package/build-types/components/post-taxonomies/panel.d.ts.map +1 -1
  614. package/build-types/components/post-template/hooks.d.ts +2 -2
  615. package/build-types/components/post-template/panel.d.ts +2 -2
  616. package/build-types/components/post-template/panel.d.ts.map +1 -1
  617. package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
  618. package/build-types/components/post-text-editor/index.d.ts +2 -2
  619. package/build-types/components/post-text-editor/index.d.ts.map +1 -1
  620. package/build-types/components/post-title/index.d.ts +1 -1
  621. package/build-types/components/post-transform-panel/index.d.ts.map +1 -1
  622. package/build-types/components/post-trash/check.d.ts +5 -5
  623. package/build-types/components/post-trash/check.d.ts.map +1 -1
  624. package/build-types/components/post-trash/index.d.ts +2 -2
  625. package/build-types/components/post-trash/index.d.ts.map +1 -1
  626. package/build-types/components/post-type-support-check/index.d.ts +8 -8
  627. package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
  628. package/build-types/components/post-url/check.d.ts +5 -5
  629. package/build-types/components/post-url/check.d.ts.map +1 -1
  630. package/build-types/components/post-url/index.d.ts +2 -2
  631. package/build-types/components/post-url/index.d.ts.map +1 -1
  632. package/build-types/components/post-url/label.d.ts +2 -2
  633. package/build-types/components/post-url/label.d.ts.map +1 -1
  634. package/build-types/components/post-url/panel.d.ts +2 -2
  635. package/build-types/components/post-url/panel.d.ts.map +1 -1
  636. package/build-types/components/post-visibility/check.d.ts +2 -2
  637. package/build-types/components/post-visibility/check.d.ts.map +1 -1
  638. package/build-types/components/post-visibility/index.d.ts +2 -2
  639. package/build-types/components/post-visibility/index.d.ts.map +1 -1
  640. package/build-types/components/preferences-modal/block-visibility.d.ts +2 -0
  641. package/build-types/components/preferences-modal/block-visibility.d.ts.map +1 -0
  642. package/build-types/components/preferences-modal/enable-panel.d.ts +1 -2
  643. package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -1
  644. package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
  645. package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +1 -2
  646. package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -1
  647. package/build-types/components/preferences-modal/index.d.ts.map +1 -1
  648. package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
  649. package/build-types/components/provider/index.d.ts +2 -2
  650. package/build-types/components/provider/index.d.ts.map +1 -1
  651. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  652. package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
  653. package/build-types/components/start-page-options/index.d.ts.map +1 -1
  654. package/build-types/components/start-template-options/index.d.ts.map +1 -1
  655. package/build-types/components/theme-support-check/index.d.ts +6 -6
  656. package/build-types/components/theme-support-check/index.d.ts.map +1 -1
  657. package/build-types/components/time-to-read/index.d.ts +2 -2
  658. package/build-types/components/time-to-read/index.d.ts.map +1 -1
  659. package/build-types/components/unsaved-changes-warning/index.d.ts +2 -2
  660. package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
  661. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  662. package/build-types/components/word-count/index.d.ts +2 -2
  663. package/build-types/components/word-count/index.d.ts.map +1 -1
  664. package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -1
  665. package/build-types/dataviews/api.d.ts +24 -0
  666. package/build-types/dataviews/api.d.ts.map +1 -1
  667. package/build-types/dataviews/store/private-actions.d.ts +14 -2
  668. package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
  669. package/build-types/dataviews/store/private-selectors.d.ts +1 -0
  670. package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
  671. package/build-types/dataviews/store/reducer.d.ts +15 -4
  672. package/build-types/dataviews/store/reducer.d.ts.map +1 -1
  673. package/build-types/lock-unlock.d.ts +2 -2
  674. package/build-types/private-apis.d.ts.map +1 -1
  675. package/build-types/store/actions.d.ts +16 -6
  676. package/build-types/store/actions.d.ts.map +1 -1
  677. package/build-types/store/constants.d.ts +0 -2
  678. package/build-types/store/constants.d.ts.map +1 -1
  679. package/build-types/store/index.d.ts +9 -11
  680. package/build-types/store/index.d.ts.map +1 -1
  681. package/build-types/store/private-selectors.d.ts +1 -0
  682. package/build-types/store/private-selectors.d.ts.map +1 -1
  683. package/build-types/store/reducer.d.ts +29 -4
  684. package/build-types/store/reducer.d.ts.map +1 -1
  685. package/build-types/store/selectors.d.ts +7 -14
  686. package/build-types/store/selectors.d.ts.map +1 -1
  687. package/build-types/utils/get-template-info.d.ts +6 -0
  688. package/build-types/utils/get-template-info.d.ts.map +1 -0
  689. package/package.json +36 -35
  690. package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
  691. package/src/components/collab-sidebar/add-comment.js +17 -77
  692. package/src/components/collab-sidebar/comment-author-info.js +68 -0
  693. package/src/components/collab-sidebar/comment-button-toolbar.js +3 -3
  694. package/src/components/collab-sidebar/comment-button.js +3 -3
  695. package/src/components/collab-sidebar/comment-form.js +62 -0
  696. package/src/components/collab-sidebar/comments.js +39 -101
  697. package/src/components/collab-sidebar/index.js +79 -88
  698. package/src/components/commands/index.js +390 -270
  699. package/src/components/create-template-part-modal/index.js +4 -2
  700. package/src/components/document-bar/index.js +22 -4
  701. package/src/components/document-bar/style.scss +13 -0
  702. package/src/components/document-outline/check.js +4 -4
  703. package/src/components/document-outline/index.js +9 -9
  704. package/src/components/document-tools/index.js +8 -1
  705. package/src/components/editor-history/redo.js +1 -1
  706. package/src/components/editor-history/undo.js +1 -1
  707. package/src/components/editor-interface/content-slot-fill.js +4 -9
  708. package/src/components/editor-interface/index.js +1 -12
  709. package/src/components/editor-notices/index.js +1 -1
  710. package/src/components/editor-snackbars/index.js +1 -1
  711. package/src/components/entities-saved-states/entity-record-item.js +12 -4
  712. package/src/components/entities-saved-states/index.js +2 -2
  713. package/src/components/global-styles-provider/index.js +20 -8
  714. package/src/components/header/index.js +18 -10
  715. package/src/components/header/style.scss +2 -1
  716. package/src/components/more-menu/index.js +12 -7
  717. package/src/components/page-attributes/check.js +3 -3
  718. package/src/components/page-attributes/order.js +1 -1
  719. package/src/components/page-attributes/panel.js +1 -1
  720. package/src/components/page-attributes/parent.js +1 -1
  721. package/src/components/plugin-document-setting-panel/index.js +2 -2
  722. package/src/components/plugin-more-menu-item/index.js +2 -1
  723. package/src/components/plugin-post-publish-panel/index.js +2 -2
  724. package/src/components/plugin-post-publish-panel/test/__snapshots__/index.js.snap +1 -1
  725. package/src/components/plugin-post-status-info/index.js +4 -4
  726. package/src/components/plugin-pre-publish-panel/index.js +2 -2
  727. package/src/components/plugin-preview-menu-item/index.js +2 -1
  728. package/src/components/plugin-sidebar/index.js +1 -0
  729. package/src/components/plugin-sidebar-more-menu-item/index.js +2 -2
  730. package/src/components/post-actions/actions.js +3 -3
  731. package/src/components/post-author/check.js +3 -3
  732. package/src/components/post-author/index.js +1 -1
  733. package/src/components/post-author/panel.js +1 -1
  734. package/src/components/post-card-panel/index.js +18 -5
  735. package/src/components/post-comments/index.js +1 -1
  736. package/src/components/post-discussion/panel.js +1 -1
  737. package/src/components/post-excerpt/check.js +3 -3
  738. package/src/components/post-excerpt/panel.js +1 -1
  739. package/src/components/post-excerpt/plugin.js +4 -4
  740. package/src/components/post-featured-image/check.js +3 -3
  741. package/src/components/post-featured-image/index.js +107 -43
  742. package/src/components/post-featured-image/panel.js +1 -1
  743. package/src/components/post-featured-image/style.scss +23 -13
  744. package/src/components/post-fields/index.ts +76 -0
  745. package/src/components/post-format/check.js +9 -11
  746. package/src/components/post-format/index.js +1 -1
  747. package/src/components/post-format/panel.js +1 -1
  748. package/src/components/post-last-revision/check.js +3 -3
  749. package/src/components/post-last-revision/index.js +1 -1
  750. package/src/components/post-last-revision/panel.js +1 -1
  751. package/src/components/post-locked-modal/index.js +1 -1
  752. package/src/components/post-pending-status/check.js +3 -3
  753. package/src/components/post-pending-status/index.js +1 -1
  754. package/src/components/post-preview-button/index.js +1 -1
  755. package/src/components/post-publish-panel/index.js +7 -3
  756. package/src/components/post-schedule/check.js +3 -3
  757. package/src/components/post-schedule/index.js +1 -1
  758. package/src/components/post-schedule/label.js +1 -1
  759. package/src/components/post-schedule/panel.js +1 -1
  760. package/src/components/post-slug/check.js +3 -3
  761. package/src/components/post-slug/index.js +1 -1
  762. package/src/components/post-sticky/check.js +3 -3
  763. package/src/components/post-sticky/index.js +1 -1
  764. package/src/components/post-switch-to-draft-button/index.js +1 -1
  765. package/src/components/post-sync-status/index.js +1 -1
  766. package/src/components/post-taxonomies/check.js +3 -3
  767. package/src/components/post-taxonomies/flat-term-selector.js +9 -9
  768. package/src/components/post-taxonomies/panel.js +15 -12
  769. package/src/components/post-template/classic-theme.js +2 -2
  770. package/src/components/post-template/panel.js +1 -1
  771. package/src/components/post-template/swap-template-button.js +0 -3
  772. package/src/components/post-text-editor/index.js +1 -1
  773. package/src/components/post-title/index.js +20 -18
  774. package/src/components/post-title/post-title-raw.js +1 -1
  775. package/src/components/post-transform-panel/index.js +0 -3
  776. package/src/components/post-trash/check.js +3 -3
  777. package/src/components/post-trash/index.js +1 -1
  778. package/src/components/post-type-support-check/index.js +6 -6
  779. package/src/components/post-url/check.js +3 -3
  780. package/src/components/post-url/index.js +1 -1
  781. package/src/components/post-url/label.js +1 -1
  782. package/src/components/post-url/panel.js +1 -1
  783. package/src/components/post-visibility/check.js +1 -1
  784. package/src/components/post-visibility/index.js +1 -1
  785. package/src/components/preferences-modal/block-visibility.js +96 -0
  786. package/src/components/preferences-modal/enable-panel.js +27 -17
  787. package/src/components/preferences-modal/enable-publish-sidebar.js +18 -15
  788. package/src/components/preferences-modal/index.js +28 -21
  789. package/src/components/preferences-modal/test/index.js +1 -1
  790. package/src/components/preview-dropdown/index.js +45 -16
  791. package/src/components/provider/index.js +55 -30
  792. package/src/components/provider/use-block-editor-settings.js +10 -9
  793. package/src/components/sidebar/post-summary.js +1 -1
  794. package/src/components/sidebar/style.scss +1 -3
  795. package/src/components/start-page-options/index.js +0 -3
  796. package/src/components/start-template-options/index.js +0 -3
  797. package/src/components/table-of-contents/index.js +1 -1
  798. package/src/components/theme-support-check/index.js +4 -4
  799. package/src/components/time-to-read/index.js +1 -1
  800. package/src/components/unsaved-changes-warning/index.js +1 -1
  801. package/src/components/visual-editor/index.js +7 -1
  802. package/src/components/visual-editor/style.scss +11 -0
  803. package/src/components/word-count/index.js +1 -1
  804. package/src/components/zoom-out-toggle/index.js +26 -13
  805. package/src/dataviews/api.js +41 -0
  806. package/src/dataviews/store/private-actions.ts +57 -3
  807. package/src/dataviews/store/private-selectors.ts +4 -0
  808. package/src/dataviews/store/reducer.ts +38 -1
  809. package/src/private-apis.js +4 -1
  810. package/src/store/actions.js +123 -42
  811. package/src/store/constants.ts +0 -2
  812. package/src/store/index.js +0 -4
  813. package/src/store/private-selectors.js +13 -8
  814. package/src/store/reducer.native.js +2 -0
  815. package/src/store/selectors.js +82 -64
  816. package/src/store/test/selectors.js +0 -255
  817. package/src/style.scss +0 -1
  818. package/src/utils/get-template-info.js +52 -0
  819. package/src/utils/test/get-template-info.js +224 -0
  820. package/tsconfig.tsbuildinfo +1 -1
  821. package/build/components/block-manager/category.js +0 -107
  822. package/build/components/block-manager/category.js.map +0 -1
  823. package/build/components/block-manager/checklist.js +0 -35
  824. package/build/components/block-manager/checklist.js.map +0 -1
  825. package/build/components/block-manager/index.js +0 -115
  826. package/build/components/block-manager/index.js.map +0 -1
  827. package/build-module/components/block-manager/category.js +0 -99
  828. package/build-module/components/block-manager/category.js.map +0 -1
  829. package/build-module/components/block-manager/checklist.js +0 -28
  830. package/build-module/components/block-manager/checklist.js.map +0 -1
  831. package/build-module/components/block-manager/index.js +0 -107
  832. package/build-module/components/block-manager/index.js.map +0 -1
  833. package/build-types/components/block-manager/category.d.ts +0 -6
  834. package/build-types/components/block-manager/category.d.ts.map +0 -1
  835. package/build-types/components/block-manager/checklist.d.ts +0 -7
  836. package/build-types/components/block-manager/checklist.d.ts.map +0 -1
  837. package/build-types/components/block-manager/index.d.ts +0 -2
  838. package/build-types/components/block-manager/index.d.ts.map +0 -1
  839. package/src/components/block-manager/category.js +0 -96
  840. package/src/components/block-manager/checklist.js +0 -30
  841. package/src/components/block-manager/index.js +0 -145
  842. package/src/components/block-manager/style.scss +0 -82
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","BlockList","store","blockEditorStore","__unstableUseTypewriter","useTypewriter","__unstableUseTypingObserver","useTypingObserver","useSettings","RecursionProvider","privateApis","blockEditorPrivateApis","__experimentalUseResizeCanvas","useResizeCanvas","useEffect","useRef","useMemo","useState","useSelect","parse","coreStore","useMergeRefs","useViewportMatch","useResizeObserver","PostTitle","editorStore","unlock","EditTemplateBlocksNotification","ResizableEditor","useSelectNearestEditableBlock","NAVIGATION_POST_TYPE","PATTERN_POST_TYPE","TEMPLATE_PART_POST_TYPE","TEMPLATE_POST_TYPE","useZoomOutModeExit","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","LayoutStyle","useLayoutClasses","useLayoutStyles","ExperimentalBlockCanvas","BlockCanvas","useFlashEditableBlocks","DESIGN_POST_TYPES","getPostContentAttributes","blocks","i","length","name","attributes","innerBlocks","nestedPostContent","checkForPostContentAtRootLevel","VisualEditor","autoFocus","styles","disableIframe","iframeProps","contentRef","className","contentHeight","setContentHeight","effectContentHeight","entry","borderBoxSize","blockSize","isMobileViewport","renderingMode","postContentAttributes","editedPostTemplate","wrapperBlockName","wrapperUniqueId","deviceType","isFocusedEntity","isDesignPostType","postType","isPreview","select","getCurrentPostId","getCurrentPostType","getCurrentTemplateId","getEditorSettings","getRenderingMode","getDeviceType","getPostType","getEditedEntityRecord","postTypeSlug","_renderingMode","_wrapperBlockName","editorSettings","supportsTemplateMode","postTypeObject","currentTemplateId","template","undefined","includes","viewable","onNavigateToPreviousEntityRecord","isPreviewMode","isCleanNewPost","hasRootPaddingAwareAlignments","themeHasDisabledLayoutStyles","themeSupportsLayout","isZoomedOut","getSettings","isZoomOut","_isZoomOut","_settings","disableLayoutStyles","supportsLayout","__experimentalFeatures","useRootPaddingAwareAlignments","deviceStyles","globalLayoutSettings","fallbackLayout","type","newestPostContentAttributes","content","parseableContent","hasPostContentAtRootLevel","layout","align","postContentLayoutClasses","blockListLayoutClass","postContentLayoutStyles","postContentLayout","inherit","contentSize","wideSize","blockListLayout","postEditorLayout","observeTypingRef","titleRef","current","focus","alignCSS","forceFullHeight","enableResizing","iframeStyles","css","localRef","typewriterRef","isEnabled","children","height","shouldIframe","style","selector","contentEditable","ref","marginTop","blockName","uniqueId","toLowerCase","dropZoneElement","parentNode","__unstableDisableDropZone"],"sources":["@wordpress/editor/src/components/visual-editor/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tBlockList,\n\tstore as blockEditorStore,\n\t__unstableUseTypewriter as useTypewriter,\n\t__unstableUseTypingObserver as useTypingObserver,\n\tuseSettings,\n\tRecursionProvider,\n\tprivateApis as blockEditorPrivateApis,\n\t__experimentalUseResizeCanvas as useResizeCanvas,\n} from '@wordpress/block-editor';\nimport { useEffect, useRef, useMemo, useState } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { parse } from '@wordpress/blocks';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tuseMergeRefs,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport PostTitle from '../post-title';\nimport { store as editorStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport EditTemplateBlocksNotification from './edit-template-blocks-notification';\nimport ResizableEditor from '../resizable-editor';\nimport useSelectNearestEditableBlock from './use-select-nearest-editable-block';\nimport {\n\tNAVIGATION_POST_TYPE,\n\tPATTERN_POST_TYPE,\n\tTEMPLATE_PART_POST_TYPE,\n\tTEMPLATE_POST_TYPE,\n} from '../../store/constants';\nimport { useZoomOutModeExit } from './use-zoom-out-mode-exit';\n\nconst {\n\tLayoutStyle,\n\tuseLayoutClasses,\n\tuseLayoutStyles,\n\tExperimentalBlockCanvas: BlockCanvas,\n\tuseFlashEditableBlocks,\n} = unlock( blockEditorPrivateApis );\n\n/**\n * These post types have a special editor where they don't allow you to fill the title\n * and they don't apply the layout styles.\n */\nconst DESIGN_POST_TYPES = [\n\tPATTERN_POST_TYPE,\n\tTEMPLATE_POST_TYPE,\n\tNAVIGATION_POST_TYPE,\n\tTEMPLATE_PART_POST_TYPE,\n];\n\n/**\n * Given an array of nested blocks, find the first Post Content\n * block inside it, recursing through any nesting levels,\n * and return its attributes.\n *\n * @param {Array} blocks A list of blocks.\n *\n * @return {Object | undefined} The Post Content block.\n */\nfunction getPostContentAttributes( blocks ) {\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( blocks[ i ].name === 'core/post-content' ) {\n\t\t\treturn blocks[ i ].attributes;\n\t\t}\n\t\tif ( blocks[ i ].innerBlocks.length ) {\n\t\t\tconst nestedPostContent = getPostContentAttributes(\n\t\t\t\tblocks[ i ].innerBlocks\n\t\t\t);\n\n\t\t\tif ( nestedPostContent ) {\n\t\t\t\treturn nestedPostContent;\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction checkForPostContentAtRootLevel( blocks ) {\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( blocks[ i ].name === 'core/post-content' ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nfunction VisualEditor( {\n\t// Ideally as we unify post and site editors, we won't need these props.\n\tautoFocus,\n\tstyles,\n\tdisableIframe = false,\n\tiframeProps,\n\tcontentRef,\n\tclassName,\n} ) {\n\tconst [ contentHeight, setContentHeight ] = useState( '' );\n\tconst effectContentHeight = useResizeObserver( ( [ entry ] ) => {\n\t\tsetContentHeight( entry.borderBoxSize[ 0 ].blockSize );\n\t} );\n\tconst isMobileViewport = useViewportMatch( 'small', '<' );\n\tconst {\n\t\trenderingMode,\n\t\tpostContentAttributes,\n\t\teditedPostTemplate = {},\n\t\twrapperBlockName,\n\t\twrapperUniqueId,\n\t\tdeviceType,\n\t\tisFocusedEntity,\n\t\tisDesignPostType,\n\t\tpostType,\n\t\tisPreview,\n\t} = useSelect( ( select ) => {\n\t\tconst {\n\t\t\tgetCurrentPostId,\n\t\t\tgetCurrentPostType,\n\t\t\tgetCurrentTemplateId,\n\t\t\tgetEditorSettings,\n\t\t\tgetRenderingMode,\n\t\t\tgetDeviceType,\n\t\t} = select( editorStore );\n\t\tconst { getPostType, getEditedEntityRecord } = select( coreStore );\n\t\tconst postTypeSlug = getCurrentPostType();\n\t\tconst _renderingMode = getRenderingMode();\n\t\tlet _wrapperBlockName;\n\n\t\tif ( postTypeSlug === PATTERN_POST_TYPE ) {\n\t\t\t_wrapperBlockName = 'core/block';\n\t\t} else if ( _renderingMode === 'post-only' ) {\n\t\t\t_wrapperBlockName = 'core/post-content';\n\t\t}\n\n\t\tconst editorSettings = getEditorSettings();\n\t\tconst supportsTemplateMode = editorSettings.supportsTemplateMode;\n\t\tconst postTypeObject = getPostType( postTypeSlug );\n\t\tconst currentTemplateId = getCurrentTemplateId();\n\t\tconst template = currentTemplateId\n\t\t\t? getEditedEntityRecord(\n\t\t\t\t\t'postType',\n\t\t\t\t\tTEMPLATE_POST_TYPE,\n\t\t\t\t\tcurrentTemplateId\n\t\t\t )\n\t\t\t: undefined;\n\n\t\treturn {\n\t\t\trenderingMode: _renderingMode,\n\t\t\tpostContentAttributes: editorSettings.postContentAttributes,\n\t\t\tisDesignPostType: DESIGN_POST_TYPES.includes( postTypeSlug ),\n\t\t\t// Post template fetch returns a 404 on classic themes, which\n\t\t\t// messes with e2e tests, so check it's a block theme first.\n\t\t\teditedPostTemplate:\n\t\t\t\tpostTypeObject?.viewable && supportsTemplateMode\n\t\t\t\t\t? template\n\t\t\t\t\t: undefined,\n\t\t\twrapperBlockName: _wrapperBlockName,\n\t\t\twrapperUniqueId: getCurrentPostId(),\n\t\t\tdeviceType: getDeviceType(),\n\t\t\tisFocusedEntity: !! editorSettings.onNavigateToPreviousEntityRecord,\n\t\t\tpostType: postTypeSlug,\n\t\t\tisPreview: editorSettings.isPreviewMode,\n\t\t};\n\t}, [] );\n\tconst { isCleanNewPost } = useSelect( editorStore );\n\tconst {\n\t\thasRootPaddingAwareAlignments,\n\t\tthemeHasDisabledLayoutStyles,\n\t\tthemeSupportsLayout,\n\t\tisZoomedOut,\n\t} = useSelect( ( select ) => {\n\t\tconst { getSettings, isZoomOut: _isZoomOut } = unlock(\n\t\t\tselect( blockEditorStore )\n\t\t);\n\n\t\tconst _settings = getSettings();\n\t\treturn {\n\t\t\tthemeHasDisabledLayoutStyles: _settings.disableLayoutStyles,\n\t\t\tthemeSupportsLayout: _settings.supportsLayout,\n\t\t\thasRootPaddingAwareAlignments:\n\t\t\t\t_settings.__experimentalFeatures?.useRootPaddingAwareAlignments,\n\t\t\tisZoomedOut: _isZoomOut(),\n\t\t};\n\t}, [] );\n\n\tconst deviceStyles = useResizeCanvas( deviceType );\n\tconst [ globalLayoutSettings ] = useSettings( 'layout' );\n\n\t// fallbackLayout is used if there is no Post Content,\n\t// and for Post Title.\n\tconst fallbackLayout = useMemo( () => {\n\t\tif ( renderingMode !== 'post-only' || isDesignPostType ) {\n\t\t\treturn { type: 'default' };\n\t\t}\n\n\t\tif ( themeSupportsLayout ) {\n\t\t\t// We need to ensure support for wide and full alignments,\n\t\t\t// so we add the constrained type.\n\t\t\treturn { ...globalLayoutSettings, type: 'constrained' };\n\t\t}\n\t\t// Set default layout for classic themes so all alignments are supported.\n\t\treturn { type: 'default' };\n\t}, [\n\t\trenderingMode,\n\t\tthemeSupportsLayout,\n\t\tglobalLayoutSettings,\n\t\tisDesignPostType,\n\t] );\n\n\tconst newestPostContentAttributes = useMemo( () => {\n\t\tif (\n\t\t\t! editedPostTemplate?.content &&\n\t\t\t! editedPostTemplate?.blocks &&\n\t\t\tpostContentAttributes\n\t\t) {\n\t\t\treturn postContentAttributes;\n\t\t}\n\t\t// When in template editing mode, we can access the blocks directly.\n\t\tif ( editedPostTemplate?.blocks ) {\n\t\t\treturn getPostContentAttributes( editedPostTemplate?.blocks );\n\t\t}\n\t\t// If there are no blocks, we have to parse the content string.\n\t\t// Best double-check it's a string otherwise the parse function gets unhappy.\n\t\tconst parseableContent =\n\t\t\ttypeof editedPostTemplate?.content === 'string'\n\t\t\t\t? editedPostTemplate?.content\n\t\t\t\t: '';\n\n\t\treturn getPostContentAttributes( parse( parseableContent ) ) || {};\n\t}, [\n\t\teditedPostTemplate?.content,\n\t\teditedPostTemplate?.blocks,\n\t\tpostContentAttributes,\n\t] );\n\n\tconst hasPostContentAtRootLevel = useMemo( () => {\n\t\tif ( ! editedPostTemplate?.content && ! editedPostTemplate?.blocks ) {\n\t\t\treturn false;\n\t\t}\n\t\t// When in template editing mode, we can access the blocks directly.\n\t\tif ( editedPostTemplate?.blocks ) {\n\t\t\treturn checkForPostContentAtRootLevel( editedPostTemplate?.blocks );\n\t\t}\n\t\t// If there are no blocks, we have to parse the content string.\n\t\t// Best double-check it's a string otherwise the parse function gets unhappy.\n\t\tconst parseableContent =\n\t\t\ttypeof editedPostTemplate?.content === 'string'\n\t\t\t\t? editedPostTemplate?.content\n\t\t\t\t: '';\n\n\t\treturn (\n\t\t\tcheckForPostContentAtRootLevel( parse( parseableContent ) ) || false\n\t\t);\n\t}, [ editedPostTemplate?.content, editedPostTemplate?.blocks ] );\n\n\tconst { layout = {}, align = '' } = newestPostContentAttributes || {};\n\n\tconst postContentLayoutClasses = useLayoutClasses(\n\t\tnewestPostContentAttributes,\n\t\t'core/post-content'\n\t);\n\n\tconst blockListLayoutClass = clsx(\n\t\t{\n\t\t\t'is-layout-flow': ! themeSupportsLayout,\n\t\t},\n\t\tthemeSupportsLayout && postContentLayoutClasses,\n\t\talign && `align${ align }`\n\t);\n\n\tconst postContentLayoutStyles = useLayoutStyles(\n\t\tnewestPostContentAttributes,\n\t\t'core/post-content',\n\t\t'.block-editor-block-list__layout.is-root-container'\n\t);\n\n\t// Update type for blocks using legacy layouts.\n\tconst postContentLayout = useMemo( () => {\n\t\treturn layout &&\n\t\t\t( layout?.type === 'constrained' ||\n\t\t\t\tlayout?.inherit ||\n\t\t\t\tlayout?.contentSize ||\n\t\t\t\tlayout?.wideSize )\n\t\t\t? { ...globalLayoutSettings, ...layout, type: 'constrained' }\n\t\t\t: { ...globalLayoutSettings, ...layout, type: 'default' };\n\t}, [\n\t\tlayout?.type,\n\t\tlayout?.inherit,\n\t\tlayout?.contentSize,\n\t\tlayout?.wideSize,\n\t\tglobalLayoutSettings,\n\t] );\n\n\t// If there is a Post Content block we use its layout for the block list;\n\t// if not, this must be a classic theme, in which case we use the fallback layout.\n\tconst blockListLayout = postContentAttributes\n\t\t? postContentLayout\n\t\t: fallbackLayout;\n\n\tconst postEditorLayout =\n\t\tblockListLayout?.type === 'default' && ! hasPostContentAtRootLevel\n\t\t\t? fallbackLayout\n\t\t\t: blockListLayout;\n\tconst observeTypingRef = useTypingObserver();\n\tconst titleRef = useRef();\n\tuseEffect( () => {\n\t\tif ( ! autoFocus || ! isCleanNewPost() ) {\n\t\t\treturn;\n\t\t}\n\t\ttitleRef?.current?.focus();\n\t}, [ autoFocus, isCleanNewPost ] );\n\n\t// Add some styles for alignwide/alignfull Post Content and its children.\n\tconst alignCSS = `.is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`;\n\n\tconst forceFullHeight = postType === NAVIGATION_POST_TYPE;\n\tconst enableResizing =\n\t\t[\n\t\t\tNAVIGATION_POST_TYPE,\n\t\t\tTEMPLATE_PART_POST_TYPE,\n\t\t\tPATTERN_POST_TYPE,\n\t\t].includes( postType ) &&\n\t\t// Disable in previews / view mode.\n\t\t! isPreview &&\n\t\t// Disable resizing in mobile viewport.\n\t\t! isMobileViewport &&\n\t\t// Dsiable resizing in zoomed-out mode.\n\t\t! isZoomedOut;\n\n\tconst iframeStyles = useMemo( () => {\n\t\treturn [\n\t\t\t...( styles ?? [] ),\n\t\t\t{\n\t\t\t\t// Ensures margins of children are contained so that the body background paints behind them.\n\t\t\t\t// Otherwise, the background of html (when zoomed out) would show there and appear broken. It’s\n\t\t\t\t// important mostly for post-only views yet conceivably an issue in templated views too.\n\t\t\t\tcss: `:where(.block-editor-iframe__body){display:flow-root;}.is-root-container{display:flow-root;${\n\t\t\t\t\t// Some themes will have `min-height: 100vh` for the root container,\n\t\t\t\t\t// which isn't a requirement in auto resize mode.\n\t\t\t\t\tenableResizing ? 'min-height:0!important;' : ''\n\t\t\t\t}}`,\n\t\t\t},\n\t\t];\n\t}, [ styles, enableResizing ] );\n\n\tconst localRef = useRef();\n\tconst typewriterRef = useTypewriter();\n\tcontentRef = useMergeRefs( [\n\t\tlocalRef,\n\t\tcontentRef,\n\t\trenderingMode === 'post-only' ? typewriterRef : null,\n\t\tuseFlashEditableBlocks( {\n\t\t\tisEnabled: renderingMode === 'template-locked',\n\t\t} ),\n\t\tuseSelectNearestEditableBlock( {\n\t\t\tisEnabled: renderingMode === 'template-locked',\n\t\t} ),\n\t\tuseZoomOutModeExit(),\n\t\t// Avoid resize listeners when not needed, these will trigger\n\t\t// unnecessary re-renders when animating the iframe width.\n\t\tenableResizing ? effectContentHeight : null,\n\t] );\n\n\treturn (\n\t\t<div\n\t\t\tclassName={ clsx(\n\t\t\t\t'editor-visual-editor',\n\t\t\t\t// this class is here for backward compatibility reasons.\n\t\t\t\t'edit-post-visual-editor',\n\t\t\t\tclassName,\n\t\t\t\t{\n\t\t\t\t\t'has-padding': isFocusedEntity || enableResizing,\n\t\t\t\t\t'is-resizable': enableResizing,\n\t\t\t\t\t'is-iframed': ! disableIframe,\n\t\t\t\t}\n\t\t\t) }\n\t\t>\n\t\t\t<ResizableEditor\n\t\t\t\tenableResizing={ enableResizing }\n\t\t\t\theight={\n\t\t\t\t\tcontentHeight && ! forceFullHeight ? contentHeight : '100%'\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t<BlockCanvas\n\t\t\t\t\tshouldIframe={ ! disableIframe }\n\t\t\t\t\tcontentRef={ contentRef }\n\t\t\t\t\tstyles={ iframeStyles }\n\t\t\t\t\theight=\"100%\"\n\t\t\t\t\tiframeProps={ {\n\t\t\t\t\t\t...iframeProps,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...iframeProps?.style,\n\t\t\t\t\t\t\t...deviceStyles,\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ themeSupportsLayout &&\n\t\t\t\t\t\t! themeHasDisabledLayoutStyles &&\n\t\t\t\t\t\trenderingMode === 'post-only' &&\n\t\t\t\t\t\t! isDesignPostType && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<LayoutStyle\n\t\t\t\t\t\t\t\t\tselector=\".editor-visual-editor__post-title-wrapper\"\n\t\t\t\t\t\t\t\t\tlayout={ fallbackLayout }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<LayoutStyle\n\t\t\t\t\t\t\t\t\tselector=\".block-editor-block-list__layout.is-root-container\"\n\t\t\t\t\t\t\t\t\tlayout={ postEditorLayout }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t{ align && <LayoutStyle css={ alignCSS } /> }\n\t\t\t\t\t\t\t\t{ postContentLayoutStyles && (\n\t\t\t\t\t\t\t\t\t<LayoutStyle\n\t\t\t\t\t\t\t\t\t\tlayout={ postContentLayout }\n\t\t\t\t\t\t\t\t\t\tcss={ postContentLayoutStyles }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) }\n\t\t\t\t\t{ renderingMode === 'post-only' && ! isDesignPostType && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\t\t'editor-visual-editor__post-title-wrapper',\n\t\t\t\t\t\t\t\t// The following class is only here for backward comapatibility\n\t\t\t\t\t\t\t\t// some themes might be using it to style the post title.\n\t\t\t\t\t\t\t\t'edit-post-visual-editor__post-title-wrapper',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t'has-global-padding':\n\t\t\t\t\t\t\t\t\t\thasRootPaddingAwareAlignments,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tcontentEditable={ false }\n\t\t\t\t\t\t\tref={ observeTypingRef }\n\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\t// This is using inline styles\n\t\t\t\t\t\t\t\t// so it's applied for both iframed and non iframed editors.\n\t\t\t\t\t\t\t\tmarginTop: '4rem',\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<PostTitle ref={ titleRef } />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) }\n\t\t\t\t\t<RecursionProvider\n\t\t\t\t\t\tblockName={ wrapperBlockName }\n\t\t\t\t\t\tuniqueId={ wrapperUniqueId }\n\t\t\t\t\t>\n\t\t\t\t\t\t<BlockList\n\t\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\t\t'is-' + deviceType.toLowerCase() + '-preview',\n\t\t\t\t\t\t\t\trenderingMode !== 'post-only' ||\n\t\t\t\t\t\t\t\t\tisDesignPostType\n\t\t\t\t\t\t\t\t\t? 'wp-site-blocks'\n\t\t\t\t\t\t\t\t\t: `${ blockListLayoutClass } wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules.\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tlayout={ blockListLayout }\n\t\t\t\t\t\t\tdropZoneElement={\n\t\t\t\t\t\t\t\t// When iframed, pass in the html element of the iframe to\n\t\t\t\t\t\t\t\t// ensure the drop zone extends to the edges of the iframe.\n\t\t\t\t\t\t\t\tdisableIframe\n\t\t\t\t\t\t\t\t\t? localRef.current\n\t\t\t\t\t\t\t\t\t: localRef.current?.parentNode\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t__unstableDisableDropZone={\n\t\t\t\t\t\t\t\t// In template preview mode, disable drop zones at the root of the template.\n\t\t\t\t\t\t\t\trenderingMode === 'template-locked'\n\t\t\t\t\t\t\t\t\t? true\n\t\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{ renderingMode === 'template-locked' && (\n\t\t\t\t\t\t\t<EditTemplateBlocksNotification\n\t\t\t\t\t\t\t\tcontentRef={ localRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</RecursionProvider>\n\t\t\t\t</BlockCanvas>\n\t\t\t</ResizableEditor>\n\t\t</div>\n\t);\n}\n\nexport default VisualEditor;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SACCC,SAAS,EACTC,KAAK,IAAIC,gBAAgB,EACzBC,uBAAuB,IAAIC,aAAa,EACxCC,2BAA2B,IAAIC,iBAAiB,EAChDC,WAAW,EACXC,iBAAiB,EACjBC,WAAW,IAAIC,sBAAsB,EACrCC,6BAA6B,IAAIC,eAAe,QAC1C,yBAAyB;AAChC,SAASC,SAAS,EAAEC,MAAM,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,oBAAoB;AACzE,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASjB,KAAK,IAAIkB,SAAS,QAAQ,sBAAsB;AACzD,SACCC,YAAY,EACZC,gBAAgB,EAChBC,iBAAiB,QACX,oBAAoB;;AAE3B;AACA;AACA;AACA,OAAOC,SAAS,MAAM,eAAe;AACrC,SAAStB,KAAK,IAAIuB,WAAW,QAAQ,aAAa;AAClD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,8BAA8B,MAAM,qCAAqC;AAChF,OAAOC,eAAe,MAAM,qBAAqB;AACjD,OAAOC,6BAA6B,MA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B,GACd,gBAAgB,GAChB,GAAIiD,oBAAoB,wBAAyB,CAAC;YACtD,CAAG;YACHH,MAAM,EAAGS,eAAiB;YAC1ByB,eAAe;YACd;YACA;YACAlG,aAAa,GACVoF,QAAQ,CAACP,OAAO,GAChBO,QAAQ,CAACP,OAAO,EAAEsB,UACrB;YACDC,yBAAyB;YACxB;YACAzF,aAAa,KAAK,iBAAiB,GAChC,IAAI,GACJ;UACH,CACD,CAAC,EACAA,aAAa,KAAK,iBAAiB,iBACpCnC,IAAA,CAACT,8BAA8B;YAC9BmC,UAAU,EAAGkF;UAAU,CACvB,CACD;QAAA,CACiB,CAAC;MAAA,CACR;IAAC,CACE;EAAC,CACd,CAAC;AAER;AAEA,eAAevF,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["clsx","BlockList","store","blockEditorStore","__unstableUseTypewriter","useTypewriter","__unstableUseTypingObserver","useTypingObserver","useSettings","RecursionProvider","privateApis","blockEditorPrivateApis","__experimentalUseResizeCanvas","useResizeCanvas","useEffect","useRef","useMemo","useState","useSelect","parse","coreStore","useMergeRefs","useViewportMatch","useResizeObserver","PostTitle","editorStore","unlock","EditTemplateBlocksNotification","ResizableEditor","useSelectNearestEditableBlock","NAVIGATION_POST_TYPE","PATTERN_POST_TYPE","TEMPLATE_PART_POST_TYPE","TEMPLATE_POST_TYPE","useZoomOutModeExit","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","LayoutStyle","useLayoutClasses","useLayoutStyles","ExperimentalBlockCanvas","BlockCanvas","useFlashEditableBlocks","DESIGN_POST_TYPES","getPostContentAttributes","blocks","i","length","name","attributes","innerBlocks","nestedPostContent","checkForPostContentAtRootLevel","VisualEditor","autoFocus","styles","disableIframe","iframeProps","contentRef","className","contentHeight","setContentHeight","effectContentHeight","entry","borderBoxSize","blockSize","isMobileViewport","renderingMode","postContentAttributes","editedPostTemplate","wrapperBlockName","wrapperUniqueId","deviceType","isFocusedEntity","isDesignPostType","postType","isPreview","select","getCurrentPostId","getCurrentPostType","getCurrentTemplateId","getEditorSettings","getRenderingMode","getDeviceType","getPostType","getEditedEntityRecord","postTypeSlug","_renderingMode","_wrapperBlockName","editorSettings","supportsTemplateMode","postTypeObject","currentTemplateId","template","undefined","includes","viewable","onNavigateToPreviousEntityRecord","isPreviewMode","isCleanNewPost","hasRootPaddingAwareAlignments","themeHasDisabledLayoutStyles","themeSupportsLayout","isZoomedOut","getSettings","isZoomOut","_isZoomOut","_settings","disableLayoutStyles","supportsLayout","__experimentalFeatures","useRootPaddingAwareAlignments","deviceStyles","globalLayoutSettings","fallbackLayout","type","newestPostContentAttributes","content","parseableContent","hasPostContentAtRootLevel","layout","align","postContentLayoutClasses","blockListLayoutClass","postContentLayoutStyles","postContentLayout","inherit","contentSize","wideSize","blockListLayout","postEditorLayout","observeTypingRef","titleRef","current","focus","alignCSS","forceFullHeight","enableResizing","iframeStyles","css","localRef","typewriterRef","isEnabled","children","height","shouldIframe","style","selector","contentEditable","ref","marginTop","blockName","uniqueId","toLowerCase","dropZoneElement","parentNode","__unstableDisableDropZone"],"sources":["@wordpress/editor/src/components/visual-editor/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tBlockList,\n\tstore as blockEditorStore,\n\t__unstableUseTypewriter as useTypewriter,\n\t__unstableUseTypingObserver as useTypingObserver,\n\tuseSettings,\n\tRecursionProvider,\n\tprivateApis as blockEditorPrivateApis,\n\t__experimentalUseResizeCanvas as useResizeCanvas,\n} from '@wordpress/block-editor';\nimport { useEffect, useRef, useMemo, useState } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { parse } from '@wordpress/blocks';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tuseMergeRefs,\n\tuseViewportMatch,\n\tuseResizeObserver,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport PostTitle from '../post-title';\nimport { store as editorStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport EditTemplateBlocksNotification from './edit-template-blocks-notification';\nimport ResizableEditor from '../resizable-editor';\nimport useSelectNearestEditableBlock from './use-select-nearest-editable-block';\nimport {\n\tNAVIGATION_POST_TYPE,\n\tPATTERN_POST_TYPE,\n\tTEMPLATE_PART_POST_TYPE,\n\tTEMPLATE_POST_TYPE,\n} from '../../store/constants';\nimport { useZoomOutModeExit } from './use-zoom-out-mode-exit';\n\nconst {\n\tLayoutStyle,\n\tuseLayoutClasses,\n\tuseLayoutStyles,\n\tExperimentalBlockCanvas: BlockCanvas,\n\tuseFlashEditableBlocks,\n} = unlock( blockEditorPrivateApis );\n\n/**\n * These post types have a special editor where they don't allow you to fill the title\n * and they don't apply the layout styles.\n */\nconst DESIGN_POST_TYPES = [\n\tPATTERN_POST_TYPE,\n\tTEMPLATE_POST_TYPE,\n\tNAVIGATION_POST_TYPE,\n\tTEMPLATE_PART_POST_TYPE,\n];\n\n/**\n * Given an array of nested blocks, find the first Post Content\n * block inside it, recursing through any nesting levels,\n * and return its attributes.\n *\n * @param {Array} blocks A list of blocks.\n *\n * @return {Object | undefined} The Post Content block.\n */\nfunction getPostContentAttributes( blocks ) {\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( blocks[ i ].name === 'core/post-content' ) {\n\t\t\treturn blocks[ i ].attributes;\n\t\t}\n\t\tif ( blocks[ i ].innerBlocks.length ) {\n\t\t\tconst nestedPostContent = getPostContentAttributes(\n\t\t\t\tblocks[ i ].innerBlocks\n\t\t\t);\n\n\t\t\tif ( nestedPostContent ) {\n\t\t\t\treturn nestedPostContent;\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction checkForPostContentAtRootLevel( blocks ) {\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( blocks[ i ].name === 'core/post-content' ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nfunction VisualEditor( {\n\t// Ideally as we unify post and site editors, we won't need these props.\n\tautoFocus,\n\tstyles,\n\tdisableIframe = false,\n\tiframeProps,\n\tcontentRef,\n\tclassName,\n} ) {\n\tconst [ contentHeight, setContentHeight ] = useState( '' );\n\tconst effectContentHeight = useResizeObserver( ( [ entry ] ) => {\n\t\tsetContentHeight( entry.borderBoxSize[ 0 ].blockSize );\n\t} );\n\tconst isMobileViewport = useViewportMatch( 'small', '<' );\n\tconst {\n\t\trenderingMode,\n\t\tpostContentAttributes,\n\t\teditedPostTemplate = {},\n\t\twrapperBlockName,\n\t\twrapperUniqueId,\n\t\tdeviceType,\n\t\tisFocusedEntity,\n\t\tisDesignPostType,\n\t\tpostType,\n\t\tisPreview,\n\t} = useSelect( ( select ) => {\n\t\tconst {\n\t\t\tgetCurrentPostId,\n\t\t\tgetCurrentPostType,\n\t\t\tgetCurrentTemplateId,\n\t\t\tgetEditorSettings,\n\t\t\tgetRenderingMode,\n\t\t\tgetDeviceType,\n\t\t} = select( editorStore );\n\t\tconst { getPostType, getEditedEntityRecord } = select( coreStore );\n\t\tconst postTypeSlug = getCurrentPostType();\n\t\tconst _renderingMode = getRenderingMode();\n\t\tlet _wrapperBlockName;\n\n\t\tif ( postTypeSlug === PATTERN_POST_TYPE ) {\n\t\t\t_wrapperBlockName = 'core/block';\n\t\t} else if ( _renderingMode === 'post-only' ) {\n\t\t\t_wrapperBlockName = 'core/post-content';\n\t\t}\n\n\t\tconst editorSettings = getEditorSettings();\n\t\tconst supportsTemplateMode = editorSettings.supportsTemplateMode;\n\t\tconst postTypeObject = getPostType( postTypeSlug );\n\t\tconst currentTemplateId = getCurrentTemplateId();\n\t\tconst template = currentTemplateId\n\t\t\t? getEditedEntityRecord(\n\t\t\t\t\t'postType',\n\t\t\t\t\tTEMPLATE_POST_TYPE,\n\t\t\t\t\tcurrentTemplateId\n\t\t\t )\n\t\t\t: undefined;\n\n\t\treturn {\n\t\t\trenderingMode: _renderingMode,\n\t\t\tpostContentAttributes: editorSettings.postContentAttributes,\n\t\t\tisDesignPostType: DESIGN_POST_TYPES.includes( postTypeSlug ),\n\t\t\t// Post template fetch returns a 404 on classic themes, which\n\t\t\t// messes with e2e tests, so check it's a block theme first.\n\t\t\teditedPostTemplate:\n\t\t\t\tpostTypeObject?.viewable && supportsTemplateMode\n\t\t\t\t\t? template\n\t\t\t\t\t: undefined,\n\t\t\twrapperBlockName: _wrapperBlockName,\n\t\t\twrapperUniqueId: getCurrentPostId(),\n\t\t\tdeviceType: getDeviceType(),\n\t\t\tisFocusedEntity: !! editorSettings.onNavigateToPreviousEntityRecord,\n\t\t\tpostType: postTypeSlug,\n\t\t\tisPreview: editorSettings.isPreviewMode,\n\t\t};\n\t}, [] );\n\tconst { isCleanNewPost } = useSelect( editorStore );\n\tconst {\n\t\thasRootPaddingAwareAlignments,\n\t\tthemeHasDisabledLayoutStyles,\n\t\tthemeSupportsLayout,\n\t\tisZoomedOut,\n\t} = useSelect( ( select ) => {\n\t\tconst { getSettings, isZoomOut: _isZoomOut } = unlock(\n\t\t\tselect( blockEditorStore )\n\t\t);\n\n\t\tconst _settings = getSettings();\n\t\treturn {\n\t\t\tthemeHasDisabledLayoutStyles: _settings.disableLayoutStyles,\n\t\t\tthemeSupportsLayout: _settings.supportsLayout,\n\t\t\thasRootPaddingAwareAlignments:\n\t\t\t\t_settings.__experimentalFeatures?.useRootPaddingAwareAlignments,\n\t\t\tisZoomedOut: _isZoomOut(),\n\t\t};\n\t}, [] );\n\n\tconst deviceStyles = useResizeCanvas( deviceType );\n\tconst [ globalLayoutSettings ] = useSettings( 'layout' );\n\n\t// fallbackLayout is used if there is no Post Content,\n\t// and for Post Title.\n\tconst fallbackLayout = useMemo( () => {\n\t\tif ( renderingMode !== 'post-only' || isDesignPostType ) {\n\t\t\treturn { type: 'default' };\n\t\t}\n\n\t\tif ( themeSupportsLayout ) {\n\t\t\t// We need to ensure support for wide and full alignments,\n\t\t\t// so we add the constrained type.\n\t\t\treturn { ...globalLayoutSettings, type: 'constrained' };\n\t\t}\n\t\t// Set default layout for classic themes so all alignments are supported.\n\t\treturn { type: 'default' };\n\t}, [\n\t\trenderingMode,\n\t\tthemeSupportsLayout,\n\t\tglobalLayoutSettings,\n\t\tisDesignPostType,\n\t] );\n\n\tconst newestPostContentAttributes = useMemo( () => {\n\t\tif (\n\t\t\t! editedPostTemplate?.content &&\n\t\t\t! editedPostTemplate?.blocks &&\n\t\t\tpostContentAttributes\n\t\t) {\n\t\t\treturn postContentAttributes;\n\t\t}\n\t\t// When in template editing mode, we can access the blocks directly.\n\t\tif ( editedPostTemplate?.blocks ) {\n\t\t\treturn getPostContentAttributes( editedPostTemplate?.blocks );\n\t\t}\n\t\t// If there are no blocks, we have to parse the content string.\n\t\t// Best double-check it's a string otherwise the parse function gets unhappy.\n\t\tconst parseableContent =\n\t\t\ttypeof editedPostTemplate?.content === 'string'\n\t\t\t\t? editedPostTemplate?.content\n\t\t\t\t: '';\n\n\t\treturn getPostContentAttributes( parse( parseableContent ) ) || {};\n\t}, [\n\t\teditedPostTemplate?.content,\n\t\teditedPostTemplate?.blocks,\n\t\tpostContentAttributes,\n\t] );\n\n\tconst hasPostContentAtRootLevel = useMemo( () => {\n\t\tif ( ! editedPostTemplate?.content && ! editedPostTemplate?.blocks ) {\n\t\t\treturn false;\n\t\t}\n\t\t// When in template editing mode, we can access the blocks directly.\n\t\tif ( editedPostTemplate?.blocks ) {\n\t\t\treturn checkForPostContentAtRootLevel( editedPostTemplate?.blocks );\n\t\t}\n\t\t// If there are no blocks, we have to parse the content string.\n\t\t// Best double-check it's a string otherwise the parse function gets unhappy.\n\t\tconst parseableContent =\n\t\t\ttypeof editedPostTemplate?.content === 'string'\n\t\t\t\t? editedPostTemplate?.content\n\t\t\t\t: '';\n\n\t\treturn (\n\t\t\tcheckForPostContentAtRootLevel( parse( parseableContent ) ) || false\n\t\t);\n\t}, [ editedPostTemplate?.content, editedPostTemplate?.blocks ] );\n\n\tconst { layout = {}, align = '' } = newestPostContentAttributes || {};\n\n\tconst postContentLayoutClasses = useLayoutClasses(\n\t\tnewestPostContentAttributes,\n\t\t'core/post-content'\n\t);\n\n\tconst blockListLayoutClass = clsx(\n\t\t{\n\t\t\t'is-layout-flow': ! themeSupportsLayout,\n\t\t},\n\t\tthemeSupportsLayout && postContentLayoutClasses,\n\t\talign && `align${ align }`\n\t);\n\n\tconst postContentLayoutStyles = useLayoutStyles(\n\t\tnewestPostContentAttributes,\n\t\t'core/post-content',\n\t\t'.block-editor-block-list__layout.is-root-container'\n\t);\n\n\t// Update type for blocks using legacy layouts.\n\tconst postContentLayout = useMemo( () => {\n\t\treturn layout &&\n\t\t\t( layout?.type === 'constrained' ||\n\t\t\t\tlayout?.inherit ||\n\t\t\t\tlayout?.contentSize ||\n\t\t\t\tlayout?.wideSize )\n\t\t\t? { ...globalLayoutSettings, ...layout, type: 'constrained' }\n\t\t\t: { ...globalLayoutSettings, ...layout, type: 'default' };\n\t}, [\n\t\tlayout?.type,\n\t\tlayout?.inherit,\n\t\tlayout?.contentSize,\n\t\tlayout?.wideSize,\n\t\tglobalLayoutSettings,\n\t] );\n\n\t// If there is a Post Content block we use its layout for the block list;\n\t// if not, this must be a classic theme, in which case we use the fallback layout.\n\tconst blockListLayout = postContentAttributes\n\t\t? postContentLayout\n\t\t: fallbackLayout;\n\n\tconst postEditorLayout =\n\t\tblockListLayout?.type === 'default' && ! hasPostContentAtRootLevel\n\t\t\t? fallbackLayout\n\t\t\t: blockListLayout;\n\tconst observeTypingRef = useTypingObserver();\n\tconst titleRef = useRef();\n\tuseEffect( () => {\n\t\tif ( ! autoFocus || ! isCleanNewPost() ) {\n\t\t\treturn;\n\t\t}\n\t\ttitleRef?.current?.focus();\n\t}, [ autoFocus, isCleanNewPost ] );\n\n\t// Add some styles for alignwide/alignfull Post Content and its children.\n\tconst alignCSS = `.is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`;\n\n\tconst forceFullHeight = postType === NAVIGATION_POST_TYPE;\n\tconst enableResizing =\n\t\t[\n\t\t\tNAVIGATION_POST_TYPE,\n\t\t\tTEMPLATE_PART_POST_TYPE,\n\t\t\tPATTERN_POST_TYPE,\n\t\t].includes( postType ) &&\n\t\t// Disable in previews / view mode.\n\t\t! isPreview &&\n\t\t// Disable resizing in mobile viewport.\n\t\t! isMobileViewport &&\n\t\t// Dsiable resizing in zoomed-out mode.\n\t\t! isZoomedOut;\n\n\tconst iframeStyles = useMemo( () => {\n\t\treturn [\n\t\t\t...( styles ?? [] ),\n\t\t\t{\n\t\t\t\t// Ensures margins of children are contained so that the body background paints behind them.\n\t\t\t\t// Otherwise, the background of html (when zoomed out) would show there and appear broken. It’s\n\t\t\t\t// important mostly for post-only views yet conceivably an issue in templated views too.\n\t\t\t\tcss: `:where(.block-editor-iframe__body){display:flow-root;}.is-root-container{display:flow-root;${\n\t\t\t\t\t// Some themes will have `min-height: 100vh` for the root container,\n\t\t\t\t\t// which isn't a requirement in auto resize mode.\n\t\t\t\t\tenableResizing ? 'min-height:0!important;' : ''\n\t\t\t\t}}`,\n\t\t\t},\n\t\t];\n\t}, [ styles, enableResizing ] );\n\n\tconst localRef = useRef();\n\tconst typewriterRef = useTypewriter();\n\tcontentRef = useMergeRefs( [\n\t\tlocalRef,\n\t\tcontentRef,\n\t\trenderingMode === 'post-only' ? typewriterRef : null,\n\t\tuseFlashEditableBlocks( {\n\t\t\tisEnabled: renderingMode === 'template-locked',\n\t\t} ),\n\t\tuseSelectNearestEditableBlock( {\n\t\t\tisEnabled: renderingMode === 'template-locked',\n\t\t} ),\n\t\tuseZoomOutModeExit(),\n\t\t// Avoid resize listeners when not needed, these will trigger\n\t\t// unnecessary re-renders when animating the iframe width.\n\t\tenableResizing ? effectContentHeight : null,\n\t] );\n\n\treturn (\n\t\t<div\n\t\t\tclassName={ clsx(\n\t\t\t\t'editor-visual-editor',\n\t\t\t\t// this class is here for backward compatibility reasons.\n\t\t\t\t'edit-post-visual-editor',\n\t\t\t\tclassName,\n\t\t\t\t{\n\t\t\t\t\t'has-padding': isFocusedEntity || enableResizing,\n\t\t\t\t\t'is-resizable': enableResizing,\n\t\t\t\t\t'is-iframed': ! disableIframe,\n\t\t\t\t}\n\t\t\t) }\n\t\t>\n\t\t\t<ResizableEditor\n\t\t\t\tenableResizing={ enableResizing }\n\t\t\t\theight={\n\t\t\t\t\tcontentHeight && ! forceFullHeight ? contentHeight : '100%'\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t<BlockCanvas\n\t\t\t\t\tshouldIframe={ ! disableIframe }\n\t\t\t\t\tcontentRef={ contentRef }\n\t\t\t\t\tstyles={ iframeStyles }\n\t\t\t\t\theight=\"100%\"\n\t\t\t\t\tiframeProps={ {\n\t\t\t\t\t\t...iframeProps,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...iframeProps?.style,\n\t\t\t\t\t\t\t...deviceStyles,\n\t\t\t\t\t\t},\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t{ themeSupportsLayout &&\n\t\t\t\t\t\t! themeHasDisabledLayoutStyles &&\n\t\t\t\t\t\trenderingMode === 'post-only' &&\n\t\t\t\t\t\t! isDesignPostType && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<LayoutStyle\n\t\t\t\t\t\t\t\t\tselector=\".editor-visual-editor__post-title-wrapper\"\n\t\t\t\t\t\t\t\t\tlayout={ fallbackLayout }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<LayoutStyle\n\t\t\t\t\t\t\t\t\tselector=\".block-editor-block-list__layout.is-root-container\"\n\t\t\t\t\t\t\t\t\tlayout={ postEditorLayout }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t{ align && <LayoutStyle css={ alignCSS } /> }\n\t\t\t\t\t\t\t\t{ postContentLayoutStyles && (\n\t\t\t\t\t\t\t\t\t<LayoutStyle\n\t\t\t\t\t\t\t\t\t\tlayout={ postContentLayout }\n\t\t\t\t\t\t\t\t\t\tcss={ postContentLayoutStyles }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) }\n\t\t\t\t\t{ renderingMode === 'post-only' && ! isDesignPostType && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\t\t'editor-visual-editor__post-title-wrapper',\n\t\t\t\t\t\t\t\t// The following class is only here for backward comapatibility\n\t\t\t\t\t\t\t\t// some themes might be using it to style the post title.\n\t\t\t\t\t\t\t\t'edit-post-visual-editor__post-title-wrapper',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t'has-global-padding':\n\t\t\t\t\t\t\t\t\t\thasRootPaddingAwareAlignments,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tcontentEditable={ false }\n\t\t\t\t\t\t\tref={ observeTypingRef }\n\t\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\t\t// This is using inline styles\n\t\t\t\t\t\t\t\t// so it's applied for both iframed and non iframed editors.\n\t\t\t\t\t\t\t\tmarginTop: '4rem',\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<PostTitle ref={ titleRef } />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) }\n\t\t\t\t\t<RecursionProvider\n\t\t\t\t\t\tblockName={ wrapperBlockName }\n\t\t\t\t\t\tuniqueId={ wrapperUniqueId }\n\t\t\t\t\t>\n\t\t\t\t\t\t<BlockList\n\t\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\t\t'is-' + deviceType.toLowerCase() + '-preview',\n\t\t\t\t\t\t\t\trenderingMode !== 'post-only' ||\n\t\t\t\t\t\t\t\t\tisDesignPostType\n\t\t\t\t\t\t\t\t\t? 'wp-site-blocks'\n\t\t\t\t\t\t\t\t\t: `${ blockListLayoutClass } wp-block-post-content`, // Ensure root level blocks receive default/flow blockGap styling rules.\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t'has-global-padding':\n\t\t\t\t\t\t\t\t\t\trenderingMode === 'post-only' &&\n\t\t\t\t\t\t\t\t\t\t! isDesignPostType &&\n\t\t\t\t\t\t\t\t\t\thasRootPaddingAwareAlignments,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tlayout={ blockListLayout }\n\t\t\t\t\t\t\tdropZoneElement={\n\t\t\t\t\t\t\t\t// When iframed, pass in the html element of the iframe to\n\t\t\t\t\t\t\t\t// ensure the drop zone extends to the edges of the iframe.\n\t\t\t\t\t\t\t\tdisableIframe\n\t\t\t\t\t\t\t\t\t? localRef.current\n\t\t\t\t\t\t\t\t\t: localRef.current?.parentNode\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t__unstableDisableDropZone={\n\t\t\t\t\t\t\t\t// In template preview mode, disable drop zones at the root of the template.\n\t\t\t\t\t\t\t\trenderingMode === 'template-locked'\n\t\t\t\t\t\t\t\t\t? true\n\t\t\t\t\t\t\t\t\t: false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{ renderingMode === 'template-locked' && (\n\t\t\t\t\t\t\t<EditTemplateBlocksNotification\n\t\t\t\t\t\t\t\tcontentRef={ localRef }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t</RecursionProvider>\n\t\t\t\t</BlockCanvas>\n\t\t\t</ResizableEditor>\n\t\t</div>\n\t);\n}\n\nexport default VisualEditor;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SACCC,SAAS,EACTC,KAAK,IAAIC,gBAA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13
13
  /**
14
14
  * Renders the word count of the post content.
15
15
  *
16
- * @return {JSX.Element|null} The rendered WordCount component.
16
+ * @return {React.ReactNode} The rendered WordCount component.
17
17
  */
18
18
  import { jsx as _jsx } from "react/jsx-runtime";
19
19
  export default function WordCount() {
@@ -1 +1 @@
1
- {"version":3,"names":["useSelect","_x","count","wordCount","store","editorStore","jsx","_jsx","WordCount","content","select","getEditedPostAttribute","wordCountType","className","children"],"sources":["@wordpress/editor/src/components/word-count/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { _x } from '@wordpress/i18n';\nimport { count as wordCount } from '@wordpress/wordcount';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\n/**\n * Renders the word count of the post content.\n *\n * @return {JSX.Element|null} The rendered WordCount component.\n */\nexport default function WordCount() {\n\tconst content = useSelect(\n\t\t( select ) => select( editorStore ).getEditedPostAttribute( 'content' ),\n\t\t[]\n\t);\n\n\t/*\n\t * translators: If your word count is based on single characters (e.g. East Asian characters),\n\t * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.\n\t * Do not translate into your own language.\n\t */\n\tconst wordCountType = _x( 'words', 'Word count type. Do not translate!' );\n\n\treturn (\n\t\t<span className=\"word-count\">\n\t\t\t{ wordCount( content, wordCountType ) }\n\t\t</span>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;;AAEzD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;;AAElD;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA;AAKA,eAAe,SAASC,SAASA,CAAA,EAAG;EACnC,MAAMC,OAAO,GAAGT,SAAS,CACtBU,MAAM,IAAMA,MAAM,CAAEL,WAAY,CAAC,CAACM,sBAAsB,CAAE,SAAU,CAAC,EACvE,EACD,CAAC;;EAED;AACD;AACA;AACA;AACA;EACC,MAAMC,aAAa,GAAGX,EAAE,CAAE,OAAO,EAAE,oCAAqC,CAAC;EAEzE,oBACCM,IAAA;IAAMM,SAAS,EAAC,YAAY;IAAAC,QAAA,EACzBX,SAAS,CAAEM,OAAO,EAAEG,aAAc;EAAC,CAChC,CAAC;AAET","ignoreList":[]}
1
+ {"version":3,"names":["useSelect","_x","count","wordCount","store","editorStore","jsx","_jsx","WordCount","content","select","getEditedPostAttribute","wordCountType","className","children"],"sources":["@wordpress/editor/src/components/word-count/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { _x } from '@wordpress/i18n';\nimport { count as wordCount } from '@wordpress/wordcount';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\n/**\n * Renders the word count of the post content.\n *\n * @return {React.ReactNode} The rendered WordCount component.\n */\nexport default function WordCount() {\n\tconst content = useSelect(\n\t\t( select ) => select( editorStore ).getEditedPostAttribute( 'content' ),\n\t\t[]\n\t);\n\n\t/*\n\t * translators: If your word count is based on single characters (e.g. East Asian characters),\n\t * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.\n\t * Do not translate into your own language.\n\t */\n\tconst wordCountType = _x( 'words', 'Word count type. Do not translate!' );\n\n\treturn (\n\t\t<span className=\"word-count\">\n\t\t\t{ wordCount( content, wordCountType ) }\n\t\t</span>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;;AAEzD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;;AAElD;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA;AAKA,eAAe,SAASC,SAASA,CAAA,EAAG;EACnC,MAAMC,OAAO,GAAGT,SAAS,CACtBU,MAAM,IAAMA,MAAM,CAAEL,WAAY,CAAC,CAACM,sBAAsB,CAAE,SAAU,CAAC,EACvE,EACD,CAAC;;EAED;AACD;AACA;AACA;AACA;EACC,MAAMC,aAAa,GAAGX,EAAE,CAAE,OAAO,EAAE,oCAAqC,CAAC;EAEzE,oBACCM,IAAA;IAAMM,SAAS,EAAC,YAAY;IAAAC,QAAA,EACzBX,SAAS,CAAEM,OAAO,EAAEG,aAAc;EAAC,CAChC,CAAC;AAET","ignoreList":[]}
@@ -21,10 +21,12 @@ const ZoomOutToggle = ({
21
21
  }) => {
22
22
  const {
23
23
  isZoomOut,
24
- showIconLabels
24
+ showIconLabels,
25
+ isDistractionFree
25
26
  } = useSelect(select => ({
26
27
  isZoomOut: unlock(select(blockEditorStore)).isZoomOut(),
27
- showIconLabels: select(preferencesStore).get('core', 'showIconLabels')
28
+ showIconLabels: select(preferencesStore).get('core', 'showIconLabels'),
29
+ isDistractionFree: select(preferencesStore).get('core', 'distractionFree')
28
30
  }));
29
31
  const {
30
32
  resetZoomLevel,
@@ -56,6 +58,8 @@ const ZoomOutToggle = ({
56
58
  } else {
57
59
  setZoomLevel('auto-scaled');
58
60
  }
61
+ }, {
62
+ isDisabled: isDistractionFree
59
63
  });
60
64
  const handleZoomOut = () => {
61
65
  if (isZoomOut) {
@@ -72,7 +76,8 @@ const ZoomOutToggle = ({
72
76
  label: __('Zoom Out'),
73
77
  isPressed: isZoomOut,
74
78
  size: "compact",
75
- showTooltip: !showIconLabels
79
+ showTooltip: !showIconLabels,
80
+ className: "editor-zoom-out-toggle"
76
81
  });
77
82
  };
78
83
  export default ZoomOutToggle;
@@ -1 +1 @@
1
- {"version":3,"names":["Button","__","useEffect","useDispatch","useSelect","store","blockEditorStore","square","zoomOutIcon","preferencesStore","useShortcut","keyboardShortcutsStore","isAppleOS","unlock","jsx","_jsx","ZoomOutToggle","disabled","isZoomOut","showIconLabels","select","get","resetZoomLevel","setZoomLevel","registerShortcut","unregisterShortcut","name","category","description","keyCombination","modifier","character","handleZoomOut","accessibleWhenDisabled","onClick","icon","label","isPressed","size","showTooltip"],"sources":["@wordpress/editor/src/components/zoom-out-toggle/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Button } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { square as zoomOutIcon } from '@wordpress/icons';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tuseShortcut,\n\tstore as keyboardShortcutsStore,\n} from '@wordpress/keyboard-shortcuts';\nimport { isAppleOS } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst ZoomOutToggle = ( { disabled } ) => {\n\tconst { isZoomOut, showIconLabels } = useSelect( ( select ) => ( {\n\t\tisZoomOut: unlock( select( blockEditorStore ) ).isZoomOut(),\n\t\tshowIconLabels: select( preferencesStore ).get(\n\t\t\t'core',\n\t\t\t'showIconLabels'\n\t\t),\n\t} ) );\n\n\tconst { resetZoomLevel, setZoomLevel } = unlock(\n\t\tuseDispatch( blockEditorStore )\n\t);\n\tconst { registerShortcut, unregisterShortcut } = useDispatch(\n\t\tkeyboardShortcutsStore\n\t);\n\n\tuseEffect( () => {\n\t\tregisterShortcut( {\n\t\t\tname: 'core/editor/zoom',\n\t\t\tcategory: 'global',\n\t\t\tdescription: __( 'Enter or exit zoom out.' ),\n\t\t\tkeyCombination: {\n\t\t\t\t// `primaryShift+0` (`ctrl+shift+0`) is the shortcut for switching\n\t\t\t\t// to input mode in Windows, so apply a different key combination.\n\t\t\t\tmodifier: isAppleOS() ? 'primaryShift' : 'secondary',\n\t\t\t\tcharacter: '0',\n\t\t\t},\n\t\t} );\n\t\treturn () => {\n\t\t\tunregisterShortcut( 'core/editor/zoom' );\n\t\t};\n\t}, [ registerShortcut, unregisterShortcut ] );\n\n\tuseShortcut( 'core/editor/zoom', () => {\n\t\tif ( isZoomOut ) {\n\t\t\tresetZoomLevel();\n\t\t} else {\n\t\t\tsetZoomLevel( 'auto-scaled' );\n\t\t}\n\t} );\n\n\tconst handleZoomOut = () => {\n\t\tif ( isZoomOut ) {\n\t\t\tresetZoomLevel();\n\t\t} else {\n\t\t\tsetZoomLevel( 'auto-scaled' );\n\t\t}\n\t};\n\n\treturn (\n\t\t<Button\n\t\t\taccessibleWhenDisabled\n\t\t\tdisabled={ disabled }\n\t\t\tonClick={ handleZoomOut }\n\t\t\ticon={ zoomOutIcon }\n\t\t\tlabel={ __( 'Zoom Out' ) }\n\t\t\tisPressed={ isZoomOut }\n\t\t\tsize=\"compact\"\n\t\t\tshowTooltip={ ! showIconLabels }\n\t\t/>\n\t);\n};\n\nexport default ZoomOutToggle;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,WAAW,EAAEC,SAAS,QAAQ,iBAAiB;AACxD,SAASC,KAAK,IAAIC,gBAAgB,QAAQ,yBAAyB;AACnE,SAASC,MAAM,IAAIC,WAAW,QAAQ,kBAAkB;AACxD,SAASH,KAAK,IAAII,gBAAgB,QAAQ,wBAAwB;AAClE,SACCC,WAAW,EACXL,KAAK,IAAIM,sBAAsB,QACzB,+BAA+B;AACtC,SAASC,SAAS,QAAQ,qBAAqB;;AAE/C;AACA;AACA;AACA,SAASC,MAAM,QAAQ,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE3C,MAAMC,aAAa,GAAGA,CAAE;EAAEC;AAAS,CAAC,KAAM;EACzC,MAAM;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAGf,SAAS,CAAIgB,MAAM,KAAQ;IAChEF,SAAS,EAAEL,MAAM,CAAEO,MAAM,CAA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E,CAAE,UAAW,CAAG;IAC1BoC,SAAS,EAAGnB,SAAW;IACvBoB,IAAI,EAAC,SAAS;IACdC,WAAW,EAAG,CAAEpB;EAAgB,CAChC,CAAC;AAEJ,CAAC;AAED,eAAeH,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["Button","__","useEffect","useDispatch","useSelect","store","blockEditorStore","square","zoomOutIcon","preferencesStore","useShortcut","keyboardShortcutsStore","isAppleOS","unlock","jsx","_jsx","ZoomOutToggle","disabled","isZoomOut","showIconLabels","isDistractionFree","select","get","resetZoomLevel","setZoomLevel","registerShortcut","unregisterShortcut","name","category","description","keyCombination","modifier","character","isDisabled","handleZoomOut","accessibleWhenDisabled","onClick","icon","label","isPressed","size","showTooltip","className"],"sources":["@wordpress/editor/src/components/zoom-out-toggle/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Button } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { square as zoomOutIcon } from '@wordpress/icons';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tuseShortcut,\n\tstore as keyboardShortcutsStore,\n} from '@wordpress/keyboard-shortcuts';\nimport { isAppleOS } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst ZoomOutToggle = ( { disabled } ) => {\n\tconst { isZoomOut, showIconLabels, isDistractionFree } = useSelect(\n\t\t( select ) => ( {\n\t\t\tisZoomOut: unlock( select( blockEditorStore ) ).isZoomOut(),\n\t\t\tshowIconLabels: select( preferencesStore ).get(\n\t\t\t\t'core',\n\t\t\t\t'showIconLabels'\n\t\t\t),\n\t\t\tisDistractionFree: select( preferencesStore ).get(\n\t\t\t\t'core',\n\t\t\t\t'distractionFree'\n\t\t\t),\n\t\t} )\n\t);\n\n\tconst { resetZoomLevel, setZoomLevel } = unlock(\n\t\tuseDispatch( blockEditorStore )\n\t);\n\tconst { registerShortcut, unregisterShortcut } = useDispatch(\n\t\tkeyboardShortcutsStore\n\t);\n\n\tuseEffect( () => {\n\t\tregisterShortcut( {\n\t\t\tname: 'core/editor/zoom',\n\t\t\tcategory: 'global',\n\t\t\tdescription: __( 'Enter or exit zoom out.' ),\n\t\t\tkeyCombination: {\n\t\t\t\t// `primaryShift+0` (`ctrl+shift+0`) is the shortcut for switching\n\t\t\t\t// to input mode in Windows, so apply a different key combination.\n\t\t\t\tmodifier: isAppleOS() ? 'primaryShift' : 'secondary',\n\t\t\t\tcharacter: '0',\n\t\t\t},\n\t\t} );\n\t\treturn () => {\n\t\t\tunregisterShortcut( 'core/editor/zoom' );\n\t\t};\n\t}, [ registerShortcut, unregisterShortcut ] );\n\n\tuseShortcut(\n\t\t'core/editor/zoom',\n\t\t() => {\n\t\t\tif ( isZoomOut ) {\n\t\t\t\tresetZoomLevel();\n\t\t\t} else {\n\t\t\t\tsetZoomLevel( 'auto-scaled' );\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tisDisabled: isDistractionFree,\n\t\t}\n\t);\n\n\tconst handleZoomOut = () => {\n\t\tif ( isZoomOut ) {\n\t\t\tresetZoomLevel();\n\t\t} else {\n\t\t\tsetZoomLevel( 'auto-scaled' );\n\t\t}\n\t};\n\n\treturn (\n\t\t<Button\n\t\t\taccessibleWhenDisabled\n\t\t\tdisabled={ disabled }\n\t\t\tonClick={ handleZoomOut }\n\t\t\ticon={ zoomOutIcon }\n\t\t\tlabel={ __( 'Zoom Out' ) }\n\t\t\tisPressed={ isZoomOut }\n\t\t\tsize=\"compact\"\n\t\t\tshowTooltip={ ! showIconLabels }\n\t\t\tclassName=\"editor-zoom-out-toggle\"\n\t\t/>\n\t);\n};\n\nexport default ZoomOutToggle;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,SAAS,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CAAC,GAAG,cAAc,GAAG,WAAW;QACpDoB,SAAS,EAAE;MACZ;IACD,CAAE,CAAC;IACH,OAAO,MAAM;MACZN,kBAAkB,CAAE,kBAAmB,CAAC;IACzC,CAAC;EACF,CAAC,EAAE,CAAED,gBAAgB,EAAEC,kBAAkB,CAAG,CAAC;EAE7ChB,WAAW,CACV,kBAAkB,EAClB,MAAM;IACL,IAAKQ,SAAS,EAAG;MAChBK,cAAc,CAAC,CAAC;IACjB,CAAC,MAAM;MACNC,YAAY,CAAE,aAAc,CAAC;IAC9B;EACD,CAAC,EACD;IACCS,UAAU,EAAEb;EACb,CACD,CAAC;EAED,MAAMc,aAAa,GAAGA,CAAA,KAAM;IAC3B,IAAKhB,SAAS,EAAG;MAChBK,cAAc,CAAC,CAAC;IACjB,CAAC,MAAM;MACNC,YAAY,CAAE,aAAc,CAAC;IAC9B;EACD,CAAC;EAED,oBACCT,IAAA,CAACf,MAAM;IACNmC,sBAAsB;IACtBlB,QAAQ,EAAGA,QAAU;IACrBmB,OAAO,EAAGF,aAAe;IACzBG,IAAI,EAAG7B,WAAa;IACpB8B,KAAK,EAAGrC,EAAE,CAAE,UAAW,CAAG;IAC1BsC,SAAS,EAAGrB,SAAW;IACvBsB,IAAI,EAAC,SAAS;IACdC,WAAW,EAAG,CAAEtB,cAAgB;IAChCuB,SAAS,EAAC;EAAwB,CAClC,CAAC;AAEJ,CAAC;AAED,eAAe1B,aAAa","ignoreList":[]}
@@ -11,6 +11,7 @@ import { store as editorStore } from '../store';
11
11
 
12
12
  /**
13
13
  * @typedef {import('@wordpress/dataviews').Action} Action
14
+ * @typedef {import('@wordpress/dataviews').Field} Field
14
15
  */
15
16
 
16
17
  /**
@@ -51,4 +52,42 @@ export function unregisterEntityAction(kind, name, actionId) {
51
52
  _unregisterEntityAction(kind, name, actionId);
52
53
  }
53
54
  }
55
+
56
+ /**
57
+ * Registers a new DataViews field.
58
+ *
59
+ * This is an experimental API and is subject to change.
60
+ * it's only available in the Gutenberg plugin for now.
61
+ *
62
+ * @param {string} kind Entity kind.
63
+ * @param {string} name Entity name.
64
+ * @param {Field} config Field configuration.
65
+ */
66
+ export function registerEntityField(kind, name, config) {
67
+ const {
68
+ registerEntityField: _registerEntityField
69
+ } = unlock(dispatch(editorStore));
70
+ if (globalThis.IS_GUTENBERG_PLUGIN) {
71
+ _registerEntityField(kind, name, config);
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Unregisters a DataViews field.
77
+ *
78
+ * This is an experimental API and is subject to change.
79
+ * it's only available in the Gutenberg plugin for now.
80
+ *
81
+ * @param {string} kind Entity kind.
82
+ * @param {string} name Entity name.
83
+ * @param {string} fieldId Field ID.
84
+ */
85
+ export function unregisterEntityField(kind, name, fieldId) {
86
+ const {
87
+ unregisterEntityField: _unregisterEntityField
88
+ } = unlock(dispatch(editorStore));
89
+ if (globalThis.IS_GUTENBERG_PLUGIN) {
90
+ _unregisterEntityField(kind, name, fieldId);
91
+ }
92
+ }
54
93
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["dispatch","unlock","store","editorStore","registerEntityAction","kind","name","config","_registerEntityAction","globalThis","IS_GUTENBERG_PLUGIN","unregisterEntityAction","actionId","_unregisterEntityAction"],"sources":["@wordpress/editor/src/dataviews/api.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { dispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\nimport { store as editorStore } from '../store';\n\n/**\n * @typedef {import('@wordpress/dataviews').Action} Action\n */\n\n/**\n * Registers a new DataViews action.\n *\n * This is an experimental API and is subject to change.\n * it's only available in the Gutenberg plugin for now.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {Action} config Action configuration.\n */\n\nexport function registerEntityAction( kind, name, config ) {\n\tconst { registerEntityAction: _registerEntityAction } = unlock(\n\t\tdispatch( editorStore )\n\t);\n\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t_registerEntityAction( kind, name, config );\n\t}\n}\n\n/**\n * Unregisters a DataViews action.\n *\n * This is an experimental API and is subject to change.\n * it's only available in the Gutenberg plugin for now.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {string} actionId Action ID.\n */\nexport function unregisterEntityAction( kind, name, actionId ) {\n\tconst { unregisterEntityAction: _unregisterEntityAction } = unlock(\n\t\tdispatch( editorStore )\n\t);\n\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t_unregisterEntityAction( kind, name, actionId );\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,iBAAiB;;AAE1C;AACA;AACA;AACA,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,KAAK,IAAIC,WAAW,QAAQ,UAAU;;AAE/C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAASC,oBAAoBA,CAAEC,IAAI,EAAEC,IAAI,EAAEC,MAAM,EAAG;EAC1D,MAAM;IAAEH,oBAAoB,EAAEI;EAAsB,CAAC,GAAGP,MAAM,CAC7DD,QAAQ,CAAEG,WAAY,CACvB,CAAC;EAED,IAAKM,UAAU,CAACC,mBAAmB,EAAG;IACrCF,qBAAqB,CAAEH,IAAI,EAAEC,IAAI,EAAEC,MAAO,CAAC;EAC5C;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASI,sBAAsBA,CAAEN,IAAI,EAAEC,IAAI,EAAEM,QAAQ,EAAG;EAC9D,MAAM;IAAED,sBAAsB,EAAEE;EAAwB,CAAC,GAAGZ,MAAM,CACjED,QAAQ,CAAEG,WAAY,CACvB,CAAC;EAED,IAAKM,UAAU,CAACC,mBAAmB,EAAG;IACrCG,uBAAuB,CAAER,IAAI,EAAEC,IAAI,EAAEM,QAAS,CAAC;EAChD;AACD","ignoreList":[]}
1
+ {"version":3,"names":["dispatch","unlock","store","editorStore","registerEntityAction","kind","name","config","_registerEntityAction","globalThis","IS_GUTENBERG_PLUGIN","unregisterEntityAction","actionId","_unregisterEntityAction","registerEntityField","_registerEntityField","unregisterEntityField","fieldId","_unregisterEntityField"],"sources":["@wordpress/editor/src/dataviews/api.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { dispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\nimport { store as editorStore } from '../store';\n\n/**\n * @typedef {import('@wordpress/dataviews').Action} Action\n * @typedef {import('@wordpress/dataviews').Field} Field\n */\n\n/**\n * Registers a new DataViews action.\n *\n * This is an experimental API and is subject to change.\n * it's only available in the Gutenberg plugin for now.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {Action} config Action configuration.\n */\n\nexport function registerEntityAction( kind, name, config ) {\n\tconst { registerEntityAction: _registerEntityAction } = unlock(\n\t\tdispatch( editorStore )\n\t);\n\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t_registerEntityAction( kind, name, config );\n\t}\n}\n\n/**\n * Unregisters a DataViews action.\n *\n * This is an experimental API and is subject to change.\n * it's only available in the Gutenberg plugin for now.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {string} actionId Action ID.\n */\nexport function unregisterEntityAction( kind, name, actionId ) {\n\tconst { unregisterEntityAction: _unregisterEntityAction } = unlock(\n\t\tdispatch( editorStore )\n\t);\n\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t_unregisterEntityAction( kind, name, actionId );\n\t}\n}\n\n/**\n * Registers a new DataViews field.\n *\n * This is an experimental API and is subject to change.\n * it's only available in the Gutenberg plugin for now.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {Field} config Field configuration.\n */\nexport function registerEntityField( kind, name, config ) {\n\tconst { registerEntityField: _registerEntityField } = unlock(\n\t\tdispatch( editorStore )\n\t);\n\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t_registerEntityField( kind, name, config );\n\t}\n}\n\n/**\n * Unregisters a DataViews field.\n *\n * This is an experimental API and is subject to change.\n * it's only available in the Gutenberg plugin for now.\n *\n * @param {string} kind Entity kind.\n * @param {string} name Entity name.\n * @param {string} fieldId Field ID.\n */\nexport function unregisterEntityField( kind, name, fieldId ) {\n\tconst { unregisterEntityField: _unregisterEntityField } = unlock(\n\t\tdispatch( editorStore )\n\t);\n\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t_unregisterEntityField( kind, name, fieldId );\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,iBAAiB;;AAE1C;AACA;AACA;AACA,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,KAAK,IAAIC,WAAW,QAAQ,UAAU;;AAE/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAASC,oBAAoBA,CAAEC,IAAI,EAAEC,IAAI,EAAEC,MAAM,EAAG;EAC1D,MAAM;IAAEH,oBAAoB,EAAEI;EAAsB,CAAC,GAAGP,MAAM,CAC7DD,QAAQ,CAAEG,WAAY,CACvB,CAAC;EAED,IAAKM,UAAU,CAACC,mBAAmB,EAAG;IACrCF,qBAAqB,CAAEH,IAAI,EAAEC,IAAI,EAAEC,MAAO,CAAC;EAC5C;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASI,sBAAsBA,CAAEN,IAAI,EAAEC,IAAI,EAAEM,QAAQ,EAAG;EAC9D,MAAM;IAAED,sBAAsB,EAAEE;EAAwB,CAAC,GAAGZ,MAAM,CACjED,QAAQ,CAAEG,WAAY,CACvB,CAAC;EAED,IAAKM,UAAU,CAACC,mBAAmB,EAAG;IACrCG,uBAAuB,CAAER,IAAI,EAAEC,IAAI,EAAEM,QAAS,CAAC;EAChD;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,mBAAmBA,CAAET,IAAI,EAAEC,IAAI,EAAEC,MAAM,EAAG;EACzD,MAAM;IAAEO,mBAAmB,EAAEC;EAAqB,CAAC,GAAGd,MAAM,CAC3DD,QAAQ,CAAEG,WAAY,CACvB,CAAC;EAED,IAAKM,UAAU,CAACC,mBAAmB,EAAG;IACrCK,oBAAoB,CAAEV,IAAI,EAAEC,IAAI,EAAEC,MAAO,CAAC;EAC3C;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASS,qBAAqBA,CAAEX,IAAI,EAAEC,IAAI,EAAEW,OAAO,EAAG;EAC5D,MAAM;IAAED,qBAAqB,EAAEE;EAAuB,CAAC,GAAGjB,MAAM,CAC/DD,QAAQ,CAAEG,WAAY,CACvB,CAAC;EAED,IAAKM,UAAU,CAACC,mBAAmB,EAAG;IACrCQ,sBAAsB,CAAEb,IAAI,EAAEC,IAAI,EAAEW,OAAQ,CAAC;EAC9C;AACD","ignoreList":[]}
@@ -10,7 +10,7 @@ import { doAction } from '@wordpress/hooks';
10
10
 
11
11
  import { store as editorStore } from '../../store';
12
12
  import { unlock } from '../../lock-unlock';
13
- import { viewPost, viewPostRevisions, duplicatePost, duplicatePattern, reorderPage, exportPattern, permanentlyDeletePost, restorePost, trashPost, renamePost, resetPost, deletePost } from '@wordpress/fields';
13
+ import { viewPost, viewPostRevisions, duplicatePost, duplicatePattern, reorderPage, exportPattern, permanentlyDeletePost, restorePost, trashPost, renamePost, resetPost, deletePost, featuredImageField, dateField, parentField, passwordField, commentStatusField, slugField, statusField, authorField, titleField } from '@wordpress/fields';
14
14
  import duplicateTemplatePart from '../actions/duplicate-template-part';
15
15
  export function registerEntityAction(kind, name, config) {
16
16
  return {
@@ -28,6 +28,22 @@ export function unregisterEntityAction(kind, name, actionId) {
28
28
  actionId
29
29
  };
30
30
  }
31
+ export function registerEntityField(kind, name, config) {
32
+ return {
33
+ type: 'REGISTER_ENTITY_FIELD',
34
+ kind,
35
+ name,
36
+ config
37
+ };
38
+ }
39
+ export function unregisterEntityField(kind, name, fieldId) {
40
+ return {
41
+ type: 'UNREGISTER_ENTITY_FIELD',
42
+ kind,
43
+ name,
44
+ fieldId
45
+ };
46
+ }
31
47
  export function setIsReady(kind, name) {
32
48
  return {
33
49
  type: 'SET_IS_READY',
@@ -35,7 +51,7 @@ export function setIsReady(kind, name) {
35
51
  name
36
52
  };
37
53
  }
38
- export const registerPostTypeActions = postType => async ({
54
+ export const registerPostTypeSchema = postType => async ({
39
55
  registry
40
56
  }) => {
41
57
  const isReady = unlock(registry.select(editorStore)).isEntityReady('postType', postType);
@@ -52,6 +68,7 @@ export const registerPostTypeActions = postType => async ({
52
68
  const actions = [postTypeConfig.viewable ? viewPost : undefined, !!postTypeConfig?.supports?.revisions ? viewPostRevisions : undefined,
53
69
  // @ts-ignore
54
70
  globalThis.IS_GUTENBERG_PLUGIN ? !['wp_template', 'wp_block', 'wp_template_part'].includes(postTypeConfig.slug) && canCreate && duplicatePost : undefined, postTypeConfig.slug === 'wp_template_part' && canCreate && currentTheme?.is_block_theme ? duplicateTemplatePart : undefined, canCreate && postTypeConfig.slug === 'wp_block' ? duplicatePattern : undefined, postTypeConfig.supports?.title ? renamePost : undefined, postTypeConfig?.supports?.['page-attributes'] ? reorderPage : undefined, postTypeConfig.slug === 'wp_block' ? exportPattern : undefined, restorePost, resetPost, deletePost, trashPost, permanentlyDeletePost];
71
+ const fields = [featuredImageField, titleField, authorField, statusField, dateField, slugField, parentField, commentStatusField, passwordField];
55
72
  registry.batch(() => {
56
73
  actions.forEach(action => {
57
74
  if (!action) {
@@ -59,7 +76,10 @@ export const registerPostTypeActions = postType => async ({
59
76
  }
60
77
  unlock(registry.dispatch(editorStore)).registerEntityAction('postType', postType, action);
61
78
  });
79
+ fields.forEach(field => {
80
+ unlock(registry.dispatch(editorStore)).registerEntityField('postType', postType, field);
81
+ });
62
82
  });
63
- doAction('core.registerPostTypeActions', postType);
83
+ doAction('core.registerPostTypeSchema', postType);
64
84
  };
65
85
  //# sourceMappingURL=private-actions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["store","coreStore","doAction","editorStore","unlock","viewPost","viewPostRevisions","duplicatePost","duplicatePattern","reorderPage","exportPattern","permanentlyDeletePost","restorePost","trashPost","renamePost","resetPost","deletePost","duplicateTemplatePart","registerEntityAction","kind","name","config","type","unregisterEntityAction","actionId","setIsReady","registerPostTypeActions","postType","registry","isReady","select","isEntityReady","dispatch","postTypeConfig","resolveSelect","getPostType","canCreate","canUser","currentTheme","getCurrentTheme","actions","viewable","undefined","supports","revisions","globalThis","IS_GUTENBERG_PLUGIN","includes","slug","is_block_theme","title","batch","forEach","action"],"sources":["@wordpress/editor/src/dataviews/store/private-actions.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { Action } from '@wordpress/dataviews';\nimport { doAction } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport type { PostType } from '../types';\nimport { store as editorStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport {\n\tviewPost,\n\tviewPostRevisions,\n\tduplicatePost,\n\tduplicatePattern,\n\treorderPage,\n\texportPattern,\n\tpermanentlyDeletePost,\n\trestorePost,\n\ttrashPost,\n\trenamePost,\n\tresetPost,\n\tdeletePost,\n} from '@wordpress/fields';\nimport duplicateTemplatePart from '../actions/duplicate-template-part';\n\nexport function registerEntityAction< Item >(\n\tkind: string,\n\tname: string,\n\tconfig: Action< Item >\n) {\n\treturn {\n\t\ttype: 'REGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tconfig,\n\t};\n}\n\nexport function unregisterEntityAction(\n\tkind: string,\n\tname: string,\n\tactionId: string\n) {\n\treturn {\n\t\ttype: 'UNREGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tactionId,\n\t};\n}\n\nexport function setIsReady( kind: string, name: string ) {\n\treturn {\n\t\ttype: 'SET_IS_READY' as const,\n\t\tkind,\n\t\tname,\n\t};\n}\n\nexport const registerPostTypeActions =\n\t( postType: string ) =>\n\tasync ( { registry }: { registry: any } ) => {\n\t\tconst isReady = unlock( registry.select( editorStore ) ).isEntityReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\t\tif ( isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\tunlock( registry.dispatch( editorStore ) ).setIsReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\n\t\tconst postTypeConfig = ( await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getPostType( postType ) ) as PostType;\n\n\t\tconst canCreate = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.canUser( 'create', {\n\t\t\t\tkind: 'postType',\n\t\t\t\tname: postType,\n\t\t\t} );\n\t\tconst currentTheme = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getCurrentTheme();\n\n\t\tconst actions = [\n\t\t\tpostTypeConfig.viewable ? viewPost : undefined,\n\t\t\t!! postTypeConfig?.supports?.revisions\n\t\t\t\t? viewPostRevisions\n\t\t\t\t: undefined,\n\t\t\t// @ts-ignore\n\t\t\tglobalThis.IS_GUTENBERG_PLUGIN\n\t\t\t\t? ! [ 'wp_template', 'wp_block', 'wp_template_part' ].includes(\n\t\t\t\t\t\tpostTypeConfig.slug\n\t\t\t\t ) &&\n\t\t\t\t canCreate &&\n\t\t\t\t duplicatePost\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_template_part' &&\n\t\t\tcanCreate &&\n\t\t\tcurrentTheme?.is_block_theme\n\t\t\t\t? duplicateTemplatePart\n\t\t\t\t: undefined,\n\t\t\tcanCreate && postTypeConfig.slug === 'wp_block'\n\t\t\t\t? duplicatePattern\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.supports?.title ? renamePost : undefined,\n\t\t\tpostTypeConfig?.supports?.[ 'page-attributes' ]\n\t\t\t\t? reorderPage\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_block' ? exportPattern : undefined,\n\t\t\trestorePost,\n\t\t\tresetPost,\n\t\t\tdeletePost,\n\t\t\ttrashPost,\n\t\t\tpermanentlyDeletePost,\n\t\t];\n\n\t\tregistry.batch( () => {\n\t\t\tactions.forEach( ( action ) => {\n\t\t\t\tif ( ! action ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tunlock( registry.dispatch( editorStore ) ).registerEntityAction(\n\t\t\t\t\t'postType',\n\t\t\t\t\tpostType,\n\t\t\t\t\taction\n\t\t\t\t);\n\t\t\t} );\n\t\t} );\n\n\t\tdoAction( 'core.registerPostTypeActions', postType );\n\t};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AAEzD,SAASC,QAAQ,QAAQ,kBAAkB;;AAE3C;AACA;AACA;;AAEA,SAASF,KAAK,IAAIG,WAAW,QAAQ,aAAa;AAClD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SACCC,QAAQ,EACRC,iBAAiB,EACjBC,aAAa,EACbC,gBAAgB,EAChBC,WAAW,EACXC,aAAa,EACbC,qBAAqB,EACrBC,WAAW,EACXC,SAAS,EACTC,UAAU,EACVC,SAAS,EACTC,UAAU,QACJ,mBAAmB;AAC1B,OAAOC,qBAAqB,MAAM,oCAAoC;AAEtE,OAAO,SAASC,oBAAoBA,CACnCC,IAAY,EACZC,IAAY,EACZC,MAAsB,EACrB;EACD,OAAO;IACNC,IAAI,EAAE,wBAAiC;IACvCH,IAAI;IACJC,IAAI;IACJC;EACD,CAAC;AACF;AAEA,OAAO,SAASE,sBAAsBA,CACrCJ,IAAY,EACZC,IAAY,EACZI,QAAgB,EACf;EACD,OAAO;IACNF,IAAI,EAAE,0BAAmC;IACzCH,IAAI;IACJC,IAAI;IACJI;EACD,CAAC;AACF;AAEA,OAAO,SAASC,UAAUA,C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CZ,SAAS,IACTE,YAAY,EAAEW,cAAc,GACzBhC,qBAAqB,GACrByB,SAAS,EACZN,SAAS,IAAIH,cAAc,CAACe,IAAI,KAAK,UAAU,GAC5CxC,gBAAgB,GAChBkC,SAAS,EACZT,cAAc,CAACU,QAAQ,EAAEO,KAAK,GAAGpC,UAAU,GAAG4B,SAAS,EACvDT,cAAc,EAAEU,QAAQ,GAAI,iBAAiB,CAAE,GAC5ClC,WAAW,GACXiC,SAAS,EACZT,cAAc,CAACe,IAAI,KAAK,UAAU,GAAGtC,aAAa,GAAGgC,SAAS,EAC9D9B,WAAW,EACXG,SAAS,EACTC,UAAU,EACVH,SAAS,EACTF,qBAAqB,CACrB;EAEDiB,QAAQ,CAACuB,KAAK,CAAE,MAAM;IACrBX,OAAO,CAACY,OAAO,CAAIC,MAAM,IAAM;MAC9B,IAAK,CAAEA,MAAM,EAAG;QACf;MACD;MACAjD,MAAM,CAAEwB,QAAQ,CAACI,QAAQ,CAAE7B,WAAY,CAAE,CAAC,CAACe,oBAAoB,CAC9D,UAAU,EACVS,QAAQ,EACR0B,MACD,CAAC;IACF,CAAE,CAAC;EACJ,CAAE,CAAC;EAEHnD,QAAQ,CAAE,8BAA8B,EAAEyB,QAAS,CAAC;AACrD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["store","coreStore","doAction","editorStore","unlock","viewPost","viewPostRevisions","duplicatePost","duplicatePattern","reorderPage","exportPattern","permanentlyDeletePost","restorePost","trashPost","renamePost","resetPost","deletePost","featuredImageField","dateField","parentField","passwordField","commentStatusField","slugField","statusField","authorField","titleField","duplicateTemplatePart","registerEntityAction","kind","name","config","type","unregisterEntityAction","actionId","registerEntityField","unregisterEntityField","fieldId","setIsReady","registerPostTypeSchema","postType","registry","isReady","select","isEntityReady","dispatch","postTypeConfig","resolveSelect","getPostType","canCreate","canUser","currentTheme","getCurrentTheme","actions","viewable","undefined","supports","revisions","globalThis","IS_GUTENBERG_PLUGIN","includes","slug","is_block_theme","title","fields","batch","forEach","action","field"],"sources":["@wordpress/editor/src/dataviews/store/private-actions.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as coreStore } from '@wordpress/core-data';\nimport type { Action, Field } from '@wordpress/dataviews';\nimport { doAction } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport type { PostType } from '../types';\nimport { store as editorStore } from '../../store';\nimport { unlock } from '../../lock-unlock';\nimport {\n\tviewPost,\n\tviewPostRevisions,\n\tduplicatePost,\n\tduplicatePattern,\n\treorderPage,\n\texportPattern,\n\tpermanentlyDeletePost,\n\trestorePost,\n\ttrashPost,\n\trenamePost,\n\tresetPost,\n\tdeletePost,\n\tfeaturedImageField,\n\tdateField,\n\tparentField,\n\tpasswordField,\n\tcommentStatusField,\n\tslugField,\n\tstatusField,\n\tauthorField,\n\ttitleField,\n} from '@wordpress/fields';\nimport duplicateTemplatePart from '../actions/duplicate-template-part';\n\nexport function registerEntityAction< Item >(\n\tkind: string,\n\tname: string,\n\tconfig: Action< Item >\n) {\n\treturn {\n\t\ttype: 'REGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tconfig,\n\t};\n}\n\nexport function unregisterEntityAction(\n\tkind: string,\n\tname: string,\n\tactionId: string\n) {\n\treturn {\n\t\ttype: 'UNREGISTER_ENTITY_ACTION' as const,\n\t\tkind,\n\t\tname,\n\t\tactionId,\n\t};\n}\n\nexport function registerEntityField< Item >(\n\tkind: string,\n\tname: string,\n\tconfig: Field< Item >\n) {\n\treturn {\n\t\ttype: 'REGISTER_ENTITY_FIELD' as const,\n\t\tkind,\n\t\tname,\n\t\tconfig,\n\t};\n}\n\nexport function unregisterEntityField(\n\tkind: string,\n\tname: string,\n\tfieldId: string\n) {\n\treturn {\n\t\ttype: 'UNREGISTER_ENTITY_FIELD' as const,\n\t\tkind,\n\t\tname,\n\t\tfieldId,\n\t};\n}\n\nexport function setIsReady( kind: string, name: string ) {\n\treturn {\n\t\ttype: 'SET_IS_READY' as const,\n\t\tkind,\n\t\tname,\n\t};\n}\n\nexport const registerPostTypeSchema =\n\t( postType: string ) =>\n\tasync ( { registry }: { registry: any } ) => {\n\t\tconst isReady = unlock( registry.select( editorStore ) ).isEntityReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\t\tif ( isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\tunlock( registry.dispatch( editorStore ) ).setIsReady(\n\t\t\t'postType',\n\t\t\tpostType\n\t\t);\n\n\t\tconst postTypeConfig = ( await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getPostType( postType ) ) as PostType;\n\n\t\tconst canCreate = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.canUser( 'create', {\n\t\t\t\tkind: 'postType',\n\t\t\t\tname: postType,\n\t\t\t} );\n\t\tconst currentTheme = await registry\n\t\t\t.resolveSelect( coreStore )\n\t\t\t.getCurrentTheme();\n\n\t\tconst actions = [\n\t\t\tpostTypeConfig.viewable ? viewPost : undefined,\n\t\t\t!! postTypeConfig?.supports?.revisions\n\t\t\t\t? viewPostRevisions\n\t\t\t\t: undefined,\n\t\t\t// @ts-ignore\n\t\t\tglobalThis.IS_GUTENBERG_PLUGIN\n\t\t\t\t? ! [ 'wp_template', 'wp_block', 'wp_template_part' ].includes(\n\t\t\t\t\t\tpostTypeConfig.slug\n\t\t\t\t ) &&\n\t\t\t\t canCreate &&\n\t\t\t\t duplicatePost\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_template_part' &&\n\t\t\tcanCreate &&\n\t\t\tcurrentTheme?.is_block_theme\n\t\t\t\t? duplicateTemplatePart\n\t\t\t\t: undefined,\n\t\t\tcanCreate && postTypeConfig.slug === 'wp_block'\n\t\t\t\t? duplicatePattern\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.supports?.title ? renamePost : undefined,\n\t\t\tpostTypeConfig?.supports?.[ 'page-attributes' ]\n\t\t\t\t? reorderPage\n\t\t\t\t: undefined,\n\t\t\tpostTypeConfig.slug === 'wp_block' ? exportPattern : undefined,\n\t\t\trestorePost,\n\t\t\tresetPost,\n\t\t\tdeletePost,\n\t\t\ttrashPost,\n\t\t\tpermanentlyDeletePost,\n\t\t];\n\n\t\tconst fields = [\n\t\t\tfeaturedImageField,\n\t\t\ttitleField,\n\t\t\tauthorField,\n\t\t\tstatusField,\n\t\t\tdateField,\n\t\t\tslugField,\n\t\t\tparentField,\n\t\t\tcommentStatusField,\n\t\t\tpasswordField,\n\t\t];\n\n\t\tregistry.batch( () => {\n\t\t\tactions.forEach( ( action ) => {\n\t\t\t\tif ( ! action ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tunlock( registry.dispatch( editorStore ) ).registerEntityAction(\n\t\t\t\t\t'postType',\n\t\t\t\t\tpostType,\n\t\t\t\t\taction\n\t\t\t\t);\n\t\t\t} );\n\t\t\tfields.forEach( ( field ) => {\n\t\t\t\tunlock( registry.dispatch( editorStore ) ).registerEntityField(\n\t\t\t\t\t'postType',\n\t\t\t\t\tpostType,\n\t\t\t\t\tfield\n\t\t\t\t);\n\t\t\t} );\n\t\t} );\n\n\t\tdoAction( 'core.registerPostTypeSchema', postType );\n\t};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,SAAS,QAAQ,sBAAsB;AAEzD,SAASC,QAAQ,QAAQ,kBAAkB;;AAE3C;AACA;AACA;;AAEA,SAASF,KAAK,IAAIG,WAAW,QAAQ,aAAa;AAClD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SACCC,QAAQ,EACRC,iBAAiB,EACjBC,aAAa,EACbC,gBAAgB,EAChBC,WAAW,EACXC,aAAa,EACbC,qBAAqB,EACrBC,WAAW,EACXC,SAAS,EACTC,UAAU,EACVC,SAAS,EACTC,UAAU,EACVC,kBAAkB,EAClBC,SAAS,EACTC,WAAW,EACXC,aAAa,EACbC,kBAAkB,EAClBC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,UAAU,QACJ,mBAAm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EACXE,kBAAkB,EAClBD,aAAa,CACb;EAEDoB,QAAQ,CAACwB,KAAK,CAAE,MAAM;IACrBZ,OAAO,CAACa,OAAO,CAAIC,MAAM,IAAM;MAC9B,IAAK,CAAEA,MAAM,EAAG;QACf;MACD;MACA9D,MAAM,CAAEoC,QAAQ,CAACI,QAAQ,CAAEzC,WAAY,CAAE,CAAC,CAACwB,oBAAoB,CAC9D,UAAU,EACVY,QAAQ,EACR2B,MACD,CAAC;IACF,CAAE,CAAC;IACHH,MAAM,CAACE,OAAO,CAAIE,KAAK,IAAM;MAC5B/D,MAAM,CAAEoC,QAAQ,CAACI,QAAQ,CAAEzC,WAAY,CAAE,CAAC,CAAC+B,mBAAmB,CAC7D,UAAU,EACVK,QAAQ,EACR4B,KACD,CAAC;IACF,CAAE,CAAC;EACJ,CAAE,CAAC;EAEHjE,QAAQ,CAAE,6BAA6B,EAAEqC,QAAS,CAAC;AACpD,CAAC","ignoreList":[]}
@@ -7,6 +7,10 @@ export function getEntityActions(state, kind, name) {
7
7
  var _state$actions$kind$n;
8
8
  return (_state$actions$kind$n = state.actions[kind]?.[name]) !== null && _state$actions$kind$n !== void 0 ? _state$actions$kind$n : EMPTY_ARRAY;
9
9
  }
10
+ export function getEntityFields(state, kind, name) {
11
+ var _state$fields$kind$na;
12
+ return (_state$fields$kind$na = state.fields[kind]?.[name]) !== null && _state$fields$kind$na !== void 0 ? _state$fields$kind$na : EMPTY_ARRAY;
13
+ }
10
14
  export function isEntityReady(state, kind, name) {
11
15
  return state.isReady[kind]?.[name];
12
16
  }
@@ -1 +1 @@
1
- {"version":3,"names":["EMPTY_ARRAY","getEntityActions","state","kind","name","_state$actions$kind$n","actions","isEntityReady","isReady"],"sources":["@wordpress/editor/src/dataviews/store/private-selectors.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport type { State } from './reducer';\n\nconst EMPTY_ARRAY = [] as [];\n\nexport function getEntityActions( state: State, kind: string, name: string ) {\n\treturn state.actions[ kind ]?.[ name ] ?? EMPTY_ARRAY;\n}\n\nexport function isEntityReady( state: State, kind: string, name: string ) {\n\treturn state.isReady[ kind ]?.[ name ];\n}\n"],"mappings":"AAAA;AACA;AACA;;AAGA,MAAMA,WAAW,GAAG,EAAQ;AAE5B,OAAO,SAASC,gBAAgBA,CAAEC,KAAY,EAAEC,IAAY,EAAEC,IAAY,EAAG;EAAA,IAAAC,qBAAA;EAC5E,QAAAA,qBAAA,GAAOH,KAAK,CAACI,OAAO,CAAEH,IAAI,CAAE,GAAIC,IAAI,CAAE,cAAAC,qBAAA,cAAAA,qBAAA,GAAIL,WAAW;AACtD;AAEA,OAAO,SAASO,aAAaA,CAAEL,KAAY,EAAEC,IAAY,EAAEC,IAAY,EAAG;EACzE,OAAOF,KAAK,CAACM,OAAO,CAAEL,IAAI,CAAE,GAAIC,IAAI,CAAE;AACvC","ignoreList":[]}
1
+ {"version":3,"names":["EMPTY_ARRAY","getEntityActions","state","kind","name","_state$actions$kind$n","actions","getEntityFields","_state$fields$kind$na","fields","isEntityReady","isReady"],"sources":["@wordpress/editor/src/dataviews/store/private-selectors.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport type { State } from './reducer';\n\nconst EMPTY_ARRAY = [] as [];\n\nexport function getEntityActions( state: State, kind: string, name: string ) {\n\treturn state.actions[ kind ]?.[ name ] ?? EMPTY_ARRAY;\n}\n\nexport function getEntityFields( state: State, kind: string, name: string ) {\n\treturn state.fields[ kind ]?.[ name ] ?? EMPTY_ARRAY;\n}\n\nexport function isEntityReady( state: State, kind: string, name: string ) {\n\treturn state.isReady[ kind ]?.[ name ];\n}\n"],"mappings":"AAAA;AACA;AACA;;AAGA,MAAMA,WAAW,GAAG,EAAQ;AAE5B,OAAO,SAASC,gBAAgBA,CAAEC,KAAY,EAAEC,IAAY,EAAEC,IAAY,EAAG;EAAA,IAAAC,qBAAA;EAC5E,QAAAA,qBAAA,GAAOH,KAAK,CAACI,OAAO,CAAEH,IAAI,CAAE,GAAIC,IAAI,CAAE,cAAAC,qBAAA,cAAAA,qBAAA,GAAIL,WAAW;AACtD;AAEA,OAAO,SAASO,eAAeA,CAAEL,KAAY,EAAEC,IAAY,EAAEC,IAAY,EAAG;EAAA,IAAAI,qBAAA;EAC3E,QAAAA,qBAAA,GAAON,KAAK,CAACO,MAAM,CAAEN,IAAI,CAAE,GAAIC,IAAI,CAAE,cAAAI,qBAAA,cAAAA,qBAAA,GAAIR,WAAW;AACrD;AAEA,OAAO,SAASU,aAAaA,CAAER,KAAY,EAAEC,IAAY,EAAEC,IAAY,EAAG;EACzE,OAAOF,KAAK,CAACS,OAAO,CAAER,IAAI,CAAE,GAAIC,IAAI,CAAE;AACvC","ignoreList":[]}
@@ -40,8 +40,31 @@ function actions(state = {}, action) {
40
40
  }
41
41
  return state;
42
42
  }
43
+ function fields(state = {}, action) {
44
+ var _state$action$kind$ac3, _state$action$kind$ac4;
45
+ switch (action.type) {
46
+ case 'REGISTER_ENTITY_FIELD':
47
+ return {
48
+ ...state,
49
+ [action.kind]: {
50
+ ...state[action.kind],
51
+ [action.name]: [...((_state$action$kind$ac3 = state[action.kind]?.[action.name]) !== null && _state$action$kind$ac3 !== void 0 ? _state$action$kind$ac3 : []).filter(_field => _field.id !== action.config.id), action.config]
52
+ }
53
+ };
54
+ case 'UNREGISTER_ENTITY_FIELD':
55
+ return {
56
+ ...state,
57
+ [action.kind]: {
58
+ ...state[action.kind],
59
+ [action.name]: ((_state$action$kind$ac4 = state[action.kind]?.[action.name]) !== null && _state$action$kind$ac4 !== void 0 ? _state$action$kind$ac4 : []).filter(_field => _field.id !== action.fieldId)
60
+ }
61
+ };
62
+ }
63
+ return state;
64
+ }
43
65
  export default combineReducers({
44
66
  actions,
67
+ fields,
45
68
  isReady
46
69
  });
47
70
  //# sourceMappingURL=reducer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["combineReducers","isReady","state","action","type","kind","name","actions","_state$action$kind$ac","filter","_action","id","config","_state$action$kind$ac2","actionId"],"sources":["@wordpress/editor/src/dataviews/store/reducer.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\nimport type { Action } from '@wordpress/dataviews';\n\ntype ReduxAction =\n\t| ReturnType< typeof import('./private-actions').registerEntityAction >\n\t| ReturnType< typeof import('./private-actions').unregisterEntityAction >\n\t| ReturnType< typeof import('./private-actions').setIsReady >;\n\nexport type ActionState = Record< string, Record< string, Action< any >[] > >;\nexport type ReadyState = Record< string, Record< string, boolean > >;\nexport type State = {\n\tactions: ActionState;\n\tisReady: ReadyState;\n};\n\nfunction isReady( state: ReadyState = {}, action: ReduxAction ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_READY':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: true,\n\t\t\t\t},\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\nfunction actions( state: ActionState = {}, action: ReduxAction ) {\n\tswitch ( action.type ) {\n\t\tcase 'REGISTER_ENTITY_ACTION':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: [\n\t\t\t\t\t\t...(\n\t\t\t\t\t\t\tstate[ action.kind ]?.[ action.name ] ?? []\n\t\t\t\t\t\t).filter(\n\t\t\t\t\t\t\t( _action ) => _action.id !== action.config.id\n\t\t\t\t\t\t),\n\t\t\t\t\t\taction.config,\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'UNREGISTER_ENTITY_ACTION': {\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: (\n\t\t\t\t\t\tstate[ action.kind ]?.[ action.name ] ?? []\n\t\t\t\t\t).filter( ( _action ) => _action.id !== action.actionId ),\n\t\t\t\t},\n\t\t\t};\n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O,sBAAA,GAChBX,KAAK,CAAEC,MAAM,CAACE,IAAI,CAAE,GAAIF,MAAM,CAACG,IAAI,CAAE,cAAAO,sBAAA,cAAAA,sBAAA,GAAI,EAAE,EAC1CJ,MAAM,CAAIC,OAAO,IAAMA,OAAO,CAACC,EAAE,KAAKR,MAAM,CAACW,QAAS;UACzD;QACD,CAAC;MACF;EACD;EAEA,OAAOZ,KAAK;AACb;AAEA,eAAeF,eAAe,CAAE;EAC/BO,OAAO;EACPN;AACD,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["combineReducers","isReady","state","action","type","kind","name","actions","_state$action$kind$ac","filter","_action","id","config","_state$action$kind$ac2","actionId","fields","_state$action$kind$ac3","_state$action$kind$ac4","_field","fieldId"],"sources":["@wordpress/editor/src/dataviews/store/reducer.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\nimport type { Action, Field } from '@wordpress/dataviews';\n\ntype ReduxAction =\n\t| ReturnType< typeof import('./private-actions').registerEntityAction >\n\t| ReturnType< typeof import('./private-actions').unregisterEntityAction >\n\t| ReturnType< typeof import('./private-actions').registerEntityField >\n\t| ReturnType< typeof import('./private-actions').unregisterEntityField >\n\t| ReturnType< typeof import('./private-actions').setIsReady >;\n\nexport type ActionState = Record< string, Record< string, Action< any >[] > >;\nexport type FieldsState = Record< string, Record< string, Field< any >[] > >;\nexport type ReadyState = Record< string, Record< string, boolean > >;\nexport type State = {\n\tactions: ActionState;\n\tfields: FieldsState;\n\tisReady: ReadyState;\n};\n\nfunction isReady( state: ReadyState = {}, action: ReduxAction ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_READY':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: true,\n\t\t\t\t},\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\nfunction actions( state: ActionState = {}, action: ReduxAction ) {\n\tswitch ( action.type ) {\n\t\tcase 'REGISTER_ENTITY_ACTION':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: [\n\t\t\t\t\t\t...(\n\t\t\t\t\t\t\tstate[ action.kind ]?.[ action.name ] ?? []\n\t\t\t\t\t\t).filter(\n\t\t\t\t\t\t\t( _action ) => _action.id !== action.config.id\n\t\t\t\t\t\t),\n\t\t\t\t\t\taction.config,\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'UNREGISTER_ENTITY_ACTION': {\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: (\n\t\t\t\t\t\tstate[ action.kind ]?.[ action.name ] ?? []\n\t\t\t\t\t).filter( ( _action ) => _action.id !== action.actionId ),\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t}\n\n\treturn state;\n}\n\nfunction fields( state: FieldsState = {}, action: ReduxAction ) {\n\tswitch ( action.type ) {\n\t\tcase 'REGISTER_ENTITY_FIELD':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: [\n\t\t\t\t\t\t...(\n\t\t\t\t\t\t\tstate[ action.kind ]?.[ action.name ] ?? []\n\t\t\t\t\t\t).filter(\n\t\t\t\t\t\t\t( _field ) => _field.id !== action.config.id\n\t\t\t\t\t\t),\n\t\t\t\t\t\taction.config,\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'UNREGISTER_ENTITY_FIELD':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.kind ]: {\n\t\t\t\t\t...state[ action.kind ],\n\t\t\t\t\t[ action.name ]: (\n\t\t\t\t\t\tstate[ action.kind ]?.[ action.name ] ?? []\n\t\t\t\t\t).filter( ( _field ) => _field.id !== action.fieldId ),\n\t\t\t\t},\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\nexport default combineReducers( {\n\tactions,\n\tfields,\n\tisReady,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,eAAe,QAAQ,iBAAiB;AAmBjD,SAASC,OAAOA,CAAEC,KAAiB,GAAG,CAAC,CAAC,EAAEC,MAAmB,EAAG;EAC/D,QAASA,MAAM,CAACC,IAAI;IACnB,KAAK,cAAc;MAClB,OAAO;QACN,GAAGF,KAAK;QACR,CAAEC,MAAM,CAACE,IAAI,GAAI;UAChB,GAAGH,KAAK,CAAEC,MAAM,CAACE,IAAI,CAAE;UACvB,CAAEF,MAAM,CAACG,IAAI,GAAI;QAClB;MACD,CAAC;EACH;EAEA,OAAOJ,KAAK;AACb;AAEA,SAASK,OAAOA,CAAEL,KAAkB,GAAG,CAAC,CAAC,EAAEC,MAAmB,EAAG;EAAA,IAAAK,qBAAA;EAChE,QAASL,MAAM,CAACC,IAAI;IACnB,KAAK,wBAAwB;MAC5B,OAAO;QACN,GAAGF,KAAK;QACR,CAAEC,MAAM,CAACE,IAAI,GAAI;UAChB,GAAGH,KAAK,CAAEC,MAAM,CAACE,IAAI,CAAE;UACvB,CAAEF,MAAM,CAACG,IAAI,GAAI,CAChB,GAAG,EAAAE,qBAAA,GACFN,KAAK,CAAEC,MAAM,CAACE,IAAI,CAAE,GAAIF,MAAM,CAACG,IAAI,CAAE,cAAAE,qBAAA,cAAAA,qBAAA,GAAI,EAAE,EAC1CC,MAAM,CACLC,OAAO,IAAMA,OAAO,CAACC,EAAE,KAAKR,MAAM,CAACS,MAAM,CAACD,EAC7C,CAAC,EACDR,MAAM,CAACS,MAAM;QAEf;MACD,CAAC;IACF,KAAK,0BAA0B;MAAE;QAAA,IAAAC,sBAAA;QAChC,OAAO;UACN,GAAGX,KAAK;UACR,CAAEC,MAAM,CAACE,IAAI,GAAI;YAChB,GAAGH,KAAK,CAAEC,MAA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,CAAIS,MAAM,IAAMA,MAAM,CAACP,EAAE,KAAKR,MAAM,CAACgB,OAAQ;QACtD;MACD,CAAC;EACH;EAEA,OAAOjB,KAAK;AACb;AAEA,eAAeF,eAAe,CAAE;EAC/BO,OAAO;EACPQ,MAAM;EACNd;AACD,CAAE,CAAC","ignoreList":[]}
@@ -16,11 +16,13 @@ import PluginPostExcerpt from './components/post-excerpt/plugin';
16
16
  import PostCardPanel from './components/post-card-panel';
17
17
  import PreferencesModal from './components/preferences-modal';
18
18
  import { usePostActions } from './components/post-actions/actions';
19
+ import usePostFields from './components/post-fields';
19
20
  import ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';
20
21
  import ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';
21
22
  import ResizableEditor from './components/resizable-editor';
22
23
  import { mergeBaseAndUserConfigs, GlobalStylesProvider } from './components/global-styles-provider';
23
24
  import { registerCoreBlockBindingsSources } from './bindings/api';
25
+ import { getTemplateInfo } from './utils/get-template-info';
24
26
  const {
25
27
  store: interfaceStore,
26
28
  ...remainingInterfaceApis
@@ -38,10 +40,12 @@ lock(privateApis, {
38
40
  PostCardPanel,
39
41
  PreferencesModal,
40
42
  usePostActions,
43
+ usePostFields,
41
44
  ToolsMoreMenuGroup,
42
45
  ViewMoreMenuGroup,
43
46
  ResizableEditor,
44
47
  registerCoreBlockBindingsSources,
48
+ getTemplateInfo,
45
49
  // This is a temporary private API while we're updating the site editor to use EditorProvider.
46
50
  interfaceStore,
47
51
  ...remainingInterfaceApis
@@ -1 +1 @@
1
- {"version":3,"names":["interfaceApis","lock","EntitiesSavedStatesExtensible","EditorContentSlotFill","BackButton","CreateTemplatePartModal","Editor","PluginPostExcerpt","PostCardPanel","PreferencesModal","usePostActions","ToolsMoreMenuGroup","ViewMoreMenuGroup","ResizableEditor","mergeBaseAndUserConfigs","GlobalStylesProvider","registerCoreBlockBindingsSources","store","interfaceStore","remainingInterfaceApis","privateApis"],"sources":["@wordpress/editor/src/private-apis.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport * as interfaceApis from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport { EntitiesSavedStatesExtensible } from './components/entities-saved-states';\nimport EditorContentSlotFill from './components/editor-interface/content-slot-fill';\nimport BackButton from './components/header/back-button';\nimport CreateTemplatePartModal from './components/create-template-part-modal';\nimport Editor from './components/editor';\nimport PluginPostExcerpt from './components/post-excerpt/plugin';\nimport PostCardPanel from './components/post-card-panel';\nimport PreferencesModal from './components/preferences-modal';\nimport { usePostActions } from './components/post-actions/actions';\nimport ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';\nimport ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';\nimport ResizableEditor from './components/resizable-editor';\nimport {\n\tmergeBaseAndUserConfigs,\n\tGlobalStylesProvider,\n} from './components/global-styles-provider';\nimport { registerCoreBlockBindingsSources } from './bindings/api';\n\nconst { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCreateTemplatePartModal,\n\tBackButton,\n\tEntitiesSavedStatesExtensible,\n\tEditor,\n\tEditorContentSlotFill,\n\tGlobalStylesProvider,\n\tmergeBaseAndUserConfigs,\n\tPluginPostExcerpt,\n\tPostCardPanel,\n\tPreferencesModal,\n\tusePostActions,\n\tToolsMoreMenuGroup,\n\tViewMoreMenuGroup,\n\tResizableEditor,\n\tregisterCoreBlockBindingsSources,\n\n\t// This is a temporary private API while we're updating the site editor to use EditorProvider.\n\tinterfaceStore,\n\t...remainingInterfaceApis,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,KAAKA,aAAa,MAAM,sBAAsB;;AAErD;AACA;AACA;AACA,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,OAAOC,qBAAqB,MAAM,iDAAiD;AACnF,OAAOC,UAAU,MAAM,iCAAiC;AACxD,OAAOC,uBAAuB,MAAM,yCAAyC;AAC7E,OAAOC,MAAM,MAAM,qBAAqB;AACxC,OAAOC,iBAAiB,MAAM,kCAAkC;AAChE,OAAOC,aAAa,MAAM,8BAA8B;AACxD,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,mCAAmC;AAClE,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,iBAAiB,MAAM,6CAA6C;AAC3E,OAAOC,eAAe,MAAM,+BAA+B;AAC3D,SACCC,uBAAuB,EACvBC,oBAAoB,QACd,qCAAqC;AAC5C,SAASC,gCAAgC,QAAQ,gBAAgB;AAEjE,MAAM;EAAEC,KAAK,EAAEC,cAAc;EAAE,GAAGC;AAAuB,CAAC,GAAGnB,aAAa;AAE1E,OAAO,MAAMoB,WAAW,GAAG,CAAC,CAAC;AAC7BnB,IAAI,CAAEmB,WAAW,EAAE;EAClBf,uBAAuB;EACvBD,UAAU;EACVF,6BAA6B;EAC7BI,MAAM;EACNH,qBAAqB;EACrBY,oBAAoB;EACpBD,uBAAuB;EACvBP,iBAAiB;EACjBC,aAAa;EACbC,gBAAgB;EAChBC,cAAc;EACdC,kBAAkB;EAClBC,iBAAiB;EACjBC,eAAe;EACfG,gCAAgC;EAEhC;EACAE,cAAc;EACd,GAAGC;AACJ,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["interfaceApis","lock","EntitiesSavedStatesExtensible","EditorContentSlotFill","BackButton","CreateTemplatePartModal","Editor","PluginPostExcerpt","PostCardPanel","PreferencesModal","usePostActions","usePostFields","ToolsMoreMenuGroup","ViewMoreMenuGroup","ResizableEditor","mergeBaseAndUserConfigs","GlobalStylesProvider","registerCoreBlockBindingsSources","getTemplateInfo","store","interfaceStore","remainingInterfaceApis","privateApis"],"sources":["@wordpress/editor/src/private-apis.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport * as interfaceApis from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport { EntitiesSavedStatesExtensible } from './components/entities-saved-states';\nimport EditorContentSlotFill from './components/editor-interface/content-slot-fill';\nimport BackButton from './components/header/back-button';\nimport CreateTemplatePartModal from './components/create-template-part-modal';\nimport Editor from './components/editor';\nimport PluginPostExcerpt from './components/post-excerpt/plugin';\nimport PostCardPanel from './components/post-card-panel';\nimport PreferencesModal from './components/preferences-modal';\nimport { usePostActions } from './components/post-actions/actions';\nimport usePostFields from './components/post-fields';\nimport ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';\nimport ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';\nimport ResizableEditor from './components/resizable-editor';\nimport {\n\tmergeBaseAndUserConfigs,\n\tGlobalStylesProvider,\n} from './components/global-styles-provider';\nimport { registerCoreBlockBindingsSources } from './bindings/api';\nimport { getTemplateInfo } from './utils/get-template-info';\n\nconst { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCreateTemplatePartModal,\n\tBackButton,\n\tEntitiesSavedStatesExtensible,\n\tEditor,\n\tEditorContentSlotFill,\n\tGlobalStylesProvider,\n\tmergeBaseAndUserConfigs,\n\tPluginPostExcerpt,\n\tPostCardPanel,\n\tPreferencesModal,\n\tusePostActions,\n\tusePostFields,\n\tToolsMoreMenuGroup,\n\tViewMoreMenuGroup,\n\tResizableEditor,\n\tregisterCoreBlockBindingsSources,\n\tgetTemplateInfo,\n\t// This is a temporary private API while we're updating the site editor to use EditorProvider.\n\tinterfaceStore,\n\t...remainingInterfaceApis,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,KAAKA,aAAa,MAAM,sBAAsB;;AAErD;AACA;AACA;AACA,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,OAAOC,qBAAqB,MAAM,iDAAiD;AACnF,OAAOC,UAAU,MAAM,iCAAiC;AACxD,OAAOC,uBAAuB,MAAM,yCAAyC;AAC7E,OAAOC,MAAM,MAAM,qBAAqB;AACxC,OAAOC,iBAAiB,MAAM,kCAAkC;AAChE,OAAOC,aAAa,MAAM,8BAA8B;AACxD,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,mCAAmC;AAClE,OAAOC,aAAa,MAAM,0BAA0B;AACpD,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,iBAAiB,MAAM,6CAA6C;AAC3E,OAAOC,eAAe,MAAM,+BAA+B;AAC3D,SACCC,uBAAuB,EACvBC,oBAAoB,QACd,qCAAqC;AAC5C,SAASC,gCAAgC,QAAQ,gBAAgB;AACjE,SAASC,eAAe,QAAQ,2BAA2B;AAE3D,MAAM;EAAEC,KAAK,EAAEC,cAAc;EAAE,GAAGC;AAAuB,CAAC,GAAGrB,aAAa;AAE1E,OAAO,MAAMsB,WAAW,GAAG,CAAC,CAAC;AAC7BrB,IAAI,CAAEqB,WAAW,EAAE;EAClBjB,uBAAuB;EACvBD,UAAU;EACVF,6BAA6B;EAC7BI,MAAM;EACNH,qBAAqB;EACrBa,oBAAoB;EACpBD,uBAAuB;EACvBR,iBAAiB;EACjBC,aAAa;EACbC,gBAAgB;EAChBC,cAAc;EACdC,aAAa;EACbC,kBAAkB;EAClBC,iBAAiB;EACjBC,eAAe;EACfG,gCAAgC;EAChCC,eAAe;EACf;EACAE,cAAc;EACd,GAAGC;AACJ,CAAE,CAAC","ignoreList":[]}