@wordpress/editor 14.34.0 → 14.34.1-next.2f1c7c01b.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 (1133) hide show
  1. package/build/bindings/api.js +2 -0
  2. package/build/bindings/api.js.map +1 -1
  3. package/build/bindings/pattern-overrides.js +3 -1
  4. package/build/bindings/pattern-overrides.js.map +1 -1
  5. package/build/bindings/post-data.js +50 -64
  6. package/build/bindings/post-data.js.map +3 -3
  7. package/build/bindings/post-meta.js +47 -39
  8. package/build/bindings/post-meta.js.map +2 -2
  9. package/build/bindings/term-data.js +3 -1
  10. package/build/bindings/term-data.js.map +1 -1
  11. package/build/components/autocompleters/index.js +2 -0
  12. package/build/components/autocompleters/index.js.map +1 -1
  13. package/build/components/autocompleters/user.js +3 -1
  14. package/build/components/autocompleters/user.js.map +1 -1
  15. package/build/components/autosave-monitor/index.js +4 -2
  16. package/build/components/autosave-monitor/index.js.map +1 -1
  17. package/build/components/block-removal-warnings/index.js +6 -4
  18. package/build/components/block-removal-warnings/index.js.map +1 -1
  19. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +6 -4
  20. package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  21. package/build/components/block-visibility/index.js +5 -3
  22. package/build/components/block-visibility/index.js.map +1 -1
  23. package/build/components/blog-title/index.js +4 -2
  24. package/build/components/blog-title/index.js.map +1 -1
  25. package/build/components/character-count/index.js +2 -0
  26. package/build/components/character-count/index.js.map +1 -1
  27. package/build/components/collab-sidebar/add-comment.js +18 -12
  28. package/build/components/collab-sidebar/add-comment.js.map +2 -2
  29. package/build/components/collab-sidebar/comment-author-info.js +4 -2
  30. package/build/components/collab-sidebar/comment-author-info.js.map +2 -2
  31. package/build/components/collab-sidebar/comment-form.js +3 -1
  32. package/build/components/collab-sidebar/comment-form.js.map +1 -1
  33. package/build/components/collab-sidebar/comment-indicator-toolbar.js +14 -26
  34. package/build/components/collab-sidebar/comment-indicator-toolbar.js.map +3 -3
  35. package/build/components/collab-sidebar/comment-menu-item.js +40 -8
  36. package/build/components/collab-sidebar/comment-menu-item.js.map +3 -3
  37. package/build/components/collab-sidebar/comments.js +348 -323
  38. package/build/components/collab-sidebar/comments.js.map +3 -3
  39. package/build/components/collab-sidebar/constants.js +5 -3
  40. package/build/components/collab-sidebar/constants.js.map +1 -1
  41. package/build/components/collab-sidebar/hooks.js +8 -4
  42. package/build/components/collab-sidebar/hooks.js.map +2 -2
  43. package/build/components/collab-sidebar/index.js +50 -24
  44. package/build/components/collab-sidebar/index.js.map +3 -3
  45. package/build/components/collab-sidebar/utils.js +4 -2
  46. package/build/components/collab-sidebar/utils.js.map +2 -2
  47. package/build/components/collapsible-block-toolbar/index.js +4 -2
  48. package/build/components/collapsible-block-toolbar/index.js.map +1 -1
  49. package/build/components/commands/index.js +6 -4
  50. package/build/components/commands/index.js.map +1 -1
  51. package/build/components/deprecated.js +55 -53
  52. package/build/components/deprecated.js.map +1 -1
  53. package/build/components/document-bar/index.js +4 -2
  54. package/build/components/document-bar/index.js.map +1 -1
  55. package/build/components/document-outline/check.js +2 -0
  56. package/build/components/document-outline/check.js.map +1 -1
  57. package/build/components/document-outline/index.js +9 -7
  58. package/build/components/document-outline/index.js.map +1 -1
  59. package/build/components/document-outline/item.js +4 -2
  60. package/build/components/document-outline/item.js.map +1 -1
  61. package/build/components/document-tools/index.js +3 -1
  62. package/build/components/document-tools/index.js.map +1 -1
  63. package/build/components/editor/index.js +4 -2
  64. package/build/components/editor/index.js.map +3 -3
  65. package/build/components/editor-history/redo.js +3 -1
  66. package/build/components/editor-history/redo.js.map +1 -1
  67. package/build/components/editor-history/undo.js +3 -1
  68. package/build/components/editor-history/undo.js.map +1 -1
  69. package/build/components/editor-interface/index.js +4 -2
  70. package/build/components/editor-interface/index.js.map +1 -1
  71. package/build/components/editor-notices/index.js +3 -1
  72. package/build/components/editor-notices/index.js.map +1 -1
  73. package/build/components/editor-snackbars/index.js +4 -2
  74. package/build/components/editor-snackbars/index.js.map +1 -1
  75. package/build/components/entities-saved-states/entity-record-item.js +3 -1
  76. package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
  77. package/build/components/entities-saved-states/entity-type-list.js +3 -1
  78. package/build/components/entities-saved-states/entity-type-list.js.map +1 -1
  79. package/build/components/entities-saved-states/hooks/use-is-dirty.js +3 -1
  80. package/build/components/entities-saved-states/hooks/use-is-dirty.js.map +1 -1
  81. package/build/components/entities-saved-states/index.js +3 -1
  82. package/build/components/entities-saved-states/index.js.map +1 -1
  83. package/build/components/error-boundary/index.js +5 -3
  84. package/build/components/error-boundary/index.js.map +1 -1
  85. package/build/components/global-keyboard-shortcuts/index.js +2 -0
  86. package/build/components/global-keyboard-shortcuts/index.js.map +1 -1
  87. package/build/components/global-keyboard-shortcuts/register-shortcuts.js +3 -1
  88. package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
  89. package/build/components/global-styles/block-link.js +2 -0
  90. package/build/components/global-styles/block-link.js.map +1 -1
  91. package/build/components/global-styles/header.js +3 -1
  92. package/build/components/global-styles/header.js.map +1 -1
  93. package/build/components/global-styles/hooks.js +3 -1
  94. package/build/components/global-styles/hooks.js.map +1 -1
  95. package/build/components/global-styles/index.js +3 -1
  96. package/build/components/global-styles/index.js.map +1 -1
  97. package/build/components/global-styles/menu.js +3 -1
  98. package/build/components/global-styles/menu.js.map +1 -1
  99. package/build/components/global-styles-provider/index.js +3 -1
  100. package/build/components/global-styles-provider/index.js.map +1 -1
  101. package/build/components/global-styles-renderer/index.js +2 -0
  102. package/build/components/global-styles-renderer/index.js.map +1 -1
  103. package/build/components/global-styles-sidebar/default-sidebar.js +3 -1
  104. package/build/components/global-styles-sidebar/default-sidebar.js.map +1 -1
  105. package/build/components/global-styles-sidebar/index.js +3 -1
  106. package/build/components/global-styles-sidebar/index.js.map +1 -1
  107. package/build/components/global-styles-sidebar/welcome-guide-image.js +2 -0
  108. package/build/components/global-styles-sidebar/welcome-guide-image.js.map +1 -1
  109. package/build/components/global-styles-sidebar/welcome-guide.js +3 -1
  110. package/build/components/global-styles-sidebar/welcome-guide.js.map +1 -1
  111. package/build/components/header/back-button.js +8 -6
  112. package/build/components/header/back-button.js.map +1 -1
  113. package/build/components/header/index.js +5 -3
  114. package/build/components/header/index.js.map +1 -1
  115. package/build/components/index.js +4 -2
  116. package/build/components/index.js.map +2 -2
  117. package/build/components/inserter-sidebar/index.js +4 -2
  118. package/build/components/inserter-sidebar/index.js.map +1 -1
  119. package/build/components/keyboard-shortcut-help-modal/config.js +3 -1
  120. package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  121. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +3 -1
  122. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  123. package/build/components/keyboard-shortcut-help-modal/index.js +7 -5
  124. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  125. package/build/components/keyboard-shortcut-help-modal/shortcut.js +3 -1
  126. package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  127. package/build/components/list-view-sidebar/index.js +4 -2
  128. package/build/components/list-view-sidebar/index.js.map +1 -1
  129. package/build/components/list-view-sidebar/list-view-outline.js +3 -1
  130. package/build/components/list-view-sidebar/list-view-outline.js.map +1 -1
  131. package/build/components/local-autosave-monitor/index.js +6 -4
  132. package/build/components/local-autosave-monitor/index.js.map +1 -1
  133. package/build/components/media-categories/index.js +8 -6
  134. package/build/components/media-categories/index.js.map +1 -1
  135. package/build/components/mode-switcher/index.js +4 -2
  136. package/build/components/mode-switcher/index.js.map +1 -1
  137. package/build/components/more-menu/copy-content-menu-item.js +3 -1
  138. package/build/components/more-menu/copy-content-menu-item.js.map +1 -1
  139. package/build/components/more-menu/index.js +4 -2
  140. package/build/components/more-menu/index.js.map +2 -2
  141. package/build/components/more-menu/tools-more-menu-group.js +4 -2
  142. package/build/components/more-menu/tools-more-menu-group.js.map +1 -1
  143. package/build/components/more-menu/view-more-menu-group.js +4 -2
  144. package/build/components/more-menu/view-more-menu-group.js.map +1 -1
  145. package/build/components/page-attributes/check.js +2 -0
  146. package/build/components/page-attributes/check.js.map +1 -1
  147. package/build/components/page-attributes/order.js +3 -1
  148. package/build/components/page-attributes/order.js.map +1 -1
  149. package/build/components/page-attributes/panel.js +4 -2
  150. package/build/components/page-attributes/panel.js.map +1 -1
  151. package/build/components/page-attributes/parent.js +4 -2
  152. package/build/components/page-attributes/parent.js.map +1 -1
  153. package/build/components/pattern-duplicate-modal/index.js +5 -3
  154. package/build/components/pattern-duplicate-modal/index.js.map +1 -1
  155. package/build/components/pattern-overrides-panel/index.js +4 -2
  156. package/build/components/pattern-overrides-panel/index.js.map +1 -1
  157. package/build/components/pattern-rename-modal/index.js +5 -3
  158. package/build/components/pattern-rename-modal/index.js.map +1 -1
  159. package/build/components/plugin-document-setting-panel/index.js +5 -3
  160. package/build/components/plugin-document-setting-panel/index.js.map +1 -1
  161. package/build/components/plugin-more-menu-item/index.js +3 -1
  162. package/build/components/plugin-more-menu-item/index.js.map +1 -1
  163. package/build/components/plugin-post-publish-panel/index.js +5 -3
  164. package/build/components/plugin-post-publish-panel/index.js.map +1 -1
  165. package/build/components/plugin-post-status-info/index.js +5 -3
  166. package/build/components/plugin-post-status-info/index.js.map +1 -1
  167. package/build/components/plugin-pre-publish-panel/index.js +5 -3
  168. package/build/components/plugin-pre-publish-panel/index.js.map +1 -1
  169. package/build/components/plugin-preview-menu-item/index.js +3 -1
  170. package/build/components/plugin-preview-menu-item/index.js.map +1 -1
  171. package/build/components/plugin-sidebar/index.js +3 -1
  172. package/build/components/plugin-sidebar/index.js.map +1 -1
  173. package/build/components/plugin-sidebar-more-menu-item/index.js +3 -1
  174. package/build/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
  175. package/build/components/post-actions/actions.js +3 -1
  176. package/build/components/post-actions/actions.js.map +1 -1
  177. package/build/components/post-actions/index.js +4 -2
  178. package/build/components/post-actions/index.js.map +1 -1
  179. package/build/components/post-actions/set-as-homepage.js +5 -3
  180. package/build/components/post-actions/set-as-homepage.js.map +1 -1
  181. package/build/components/post-actions/set-as-posts-page.js +5 -3
  182. package/build/components/post-actions/set-as-posts-page.js.map +1 -1
  183. package/build/components/post-author/check.js +3 -1
  184. package/build/components/post-author/check.js.map +1 -1
  185. package/build/components/post-author/combobox.js +3 -1
  186. package/build/components/post-author/combobox.js.map +1 -1
  187. package/build/components/post-author/constants.js +4 -2
  188. package/build/components/post-author/constants.js.map +1 -1
  189. package/build/components/post-author/hook.js +2 -0
  190. package/build/components/post-author/hook.js.map +1 -1
  191. package/build/components/post-author/index.js +4 -2
  192. package/build/components/post-author/index.js.map +1 -1
  193. package/build/components/post-author/panel.js +3 -1
  194. package/build/components/post-author/panel.js.map +1 -1
  195. package/build/components/post-author/select.js +3 -1
  196. package/build/components/post-author/select.js.map +1 -1
  197. package/build/components/post-card-panel/index.js +4 -2
  198. package/build/components/post-card-panel/index.js.map +1 -1
  199. package/build/components/post-comments/index.js +4 -2
  200. package/build/components/post-comments/index.js.map +1 -1
  201. package/build/components/post-content-information/index.js +4 -2
  202. package/build/components/post-content-information/index.js.map +1 -1
  203. package/build/components/post-discussion/panel.js +4 -2
  204. package/build/components/post-discussion/panel.js.map +1 -1
  205. package/build/components/post-excerpt/check.js +3 -1
  206. package/build/components/post-excerpt/check.js.map +1 -1
  207. package/build/components/post-excerpt/index.js +3 -1
  208. package/build/components/post-excerpt/index.js.map +1 -1
  209. package/build/components/post-excerpt/panel.js +4 -2
  210. package/build/components/post-excerpt/panel.js.map +1 -1
  211. package/build/components/post-excerpt/plugin.js +5 -3
  212. package/build/components/post-excerpt/plugin.js.map +1 -1
  213. package/build/components/post-featured-image/check.js +3 -1
  214. package/build/components/post-featured-image/check.js.map +1 -1
  215. package/build/components/post-featured-image/index.js +10 -8
  216. package/build/components/post-featured-image/index.js.map +1 -1
  217. package/build/components/post-featured-image/panel.js +4 -2
  218. package/build/components/post-featured-image/panel.js.map +1 -1
  219. package/build/components/post-fields/index.js +2 -0
  220. package/build/components/post-fields/index.js.map +1 -1
  221. package/build/components/post-format/check.js +3 -1
  222. package/build/components/post-format/check.js.map +1 -1
  223. package/build/components/post-format/index.js +4 -2
  224. package/build/components/post-format/index.js.map +1 -1
  225. package/build/components/post-format/panel.js +3 -1
  226. package/build/components/post-format/panel.js.map +1 -1
  227. package/build/components/post-last-edited-panel/index.js +3 -1
  228. package/build/components/post-last-edited-panel/index.js.map +1 -1
  229. package/build/components/post-last-revision/check.js +3 -1
  230. package/build/components/post-last-revision/check.js.map +1 -1
  231. package/build/components/post-last-revision/index.js +3 -1
  232. package/build/components/post-last-revision/index.js.map +1 -1
  233. package/build/components/post-last-revision/panel.js +3 -1
  234. package/build/components/post-last-revision/panel.js.map +1 -1
  235. package/build/components/post-locked-modal/index.js +3 -1
  236. package/build/components/post-locked-modal/index.js.map +1 -1
  237. package/build/components/post-panel-row/index.js +4 -2
  238. package/build/components/post-panel-row/index.js.map +1 -1
  239. package/build/components/post-panel-section/index.js +3 -1
  240. package/build/components/post-panel-section/index.js.map +1 -1
  241. package/build/components/post-pending-status/check.js +2 -0
  242. package/build/components/post-pending-status/check.js.map +1 -1
  243. package/build/components/post-pending-status/index.js +3 -1
  244. package/build/components/post-pending-status/index.js.map +1 -1
  245. package/build/components/post-pingbacks/index.js +3 -1
  246. package/build/components/post-pingbacks/index.js.map +1 -1
  247. package/build/components/post-preview-button/index.js +3 -1
  248. package/build/components/post-preview-button/index.js.map +1 -1
  249. package/build/components/post-publish-button/index.js +6 -4
  250. package/build/components/post-publish-button/index.js.map +1 -1
  251. package/build/components/post-publish-button/label.js +2 -0
  252. package/build/components/post-publish-button/label.js.map +1 -1
  253. package/build/components/post-publish-button/post-publish-button-or-toggle.js +5 -3
  254. package/build/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
  255. package/build/components/post-publish-panel/index.js +5 -3
  256. package/build/components/post-publish-panel/index.js.map +1 -1
  257. package/build/components/post-publish-panel/maybe-category-panel.js +3 -1
  258. package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  259. package/build/components/post-publish-panel/maybe-post-format-panel.js +5 -3
  260. package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  261. package/build/components/post-publish-panel/maybe-tags-panel.js +5 -3
  262. package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  263. package/build/components/post-publish-panel/maybe-upload-media.js +3 -1
  264. package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  265. package/build/components/post-publish-panel/media-util.js +2 -0
  266. package/build/components/post-publish-panel/media-util.js.map +1 -1
  267. package/build/components/post-publish-panel/postpublish.js +6 -4
  268. package/build/components/post-publish-panel/postpublish.js.map +1 -1
  269. package/build/components/post-publish-panel/prepublish.js +3 -1
  270. package/build/components/post-publish-panel/prepublish.js.map +1 -1
  271. package/build/components/post-saved-state/index.js +3 -1
  272. package/build/components/post-saved-state/index.js.map +1 -1
  273. package/build/components/post-schedule/check.js +2 -0
  274. package/build/components/post-schedule/check.js.map +1 -1
  275. package/build/components/post-schedule/index.js +4 -2
  276. package/build/components/post-schedule/index.js.map +1 -1
  277. package/build/components/post-schedule/label.js +2 -0
  278. package/build/components/post-schedule/label.js.map +1 -1
  279. package/build/components/post-schedule/panel.js +4 -2
  280. package/build/components/post-schedule/panel.js.map +1 -1
  281. package/build/components/post-status/index.js +6 -4
  282. package/build/components/post-status/index.js.map +1 -1
  283. package/build/components/post-sticky/check.js +2 -0
  284. package/build/components/post-sticky/check.js.map +1 -1
  285. package/build/components/post-sticky/index.js +3 -1
  286. package/build/components/post-sticky/index.js.map +1 -1
  287. package/build/components/post-sticky/panel.js +3 -1
  288. package/build/components/post-sticky/panel.js.map +1 -1
  289. package/build/components/post-switch-to-draft-button/index.js +3 -1
  290. package/build/components/post-switch-to-draft-button/index.js.map +1 -1
  291. package/build/components/post-sync-status/index.js +3 -1
  292. package/build/components/post-sync-status/index.js.map +1 -1
  293. package/build/components/post-taxonomies/check.js +2 -0
  294. package/build/components/post-taxonomies/check.js.map +1 -1
  295. package/build/components/post-taxonomies/flat-term-selector.js +9 -7
  296. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  297. package/build/components/post-taxonomies/hierarchical-term-selector.js +8 -6
  298. package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  299. package/build/components/post-taxonomies/index.js +4 -2
  300. package/build/components/post-taxonomies/index.js.map +1 -1
  301. package/build/components/post-taxonomies/most-used-terms.js +5 -3
  302. package/build/components/post-taxonomies/most-used-terms.js.map +1 -1
  303. package/build/components/post-taxonomies/panel.js +3 -1
  304. package/build/components/post-taxonomies/panel.js.map +1 -1
  305. package/build/components/post-template/block-theme.js +3 -1
  306. package/build/components/post-template/block-theme.js.map +1 -1
  307. package/build/components/post-template/classic-theme.js +3 -1
  308. package/build/components/post-template/classic-theme.js.map +1 -1
  309. package/build/components/post-template/create-new-template-modal.js +4 -2
  310. package/build/components/post-template/create-new-template-modal.js.map +1 -1
  311. package/build/components/post-template/create-new-template.js +3 -1
  312. package/build/components/post-template/create-new-template.js.map +1 -1
  313. package/build/components/post-template/hooks.js +2 -0
  314. package/build/components/post-template/hooks.js.map +1 -1
  315. package/build/components/post-template/panel.js +3 -1
  316. package/build/components/post-template/panel.js.map +1 -1
  317. package/build/components/post-template/reset-default-template.js +3 -1
  318. package/build/components/post-template/reset-default-template.js.map +1 -1
  319. package/build/components/post-template/swap-template-button.js +3 -1
  320. package/build/components/post-template/swap-template-button.js.map +1 -1
  321. package/build/components/post-text-editor/index.js +3 -1
  322. package/build/components/post-text-editor/index.js.map +1 -1
  323. package/build/components/post-title/constants.js +4 -2
  324. package/build/components/post-title/constants.js.map +1 -1
  325. package/build/components/post-title/index.js +7 -5
  326. package/build/components/post-title/index.js.map +1 -1
  327. package/build/components/post-title/post-title-raw.js +3 -1
  328. package/build/components/post-title/post-title-raw.js.map +1 -1
  329. package/build/components/post-title/use-post-title-focus.js +2 -0
  330. package/build/components/post-title/use-post-title-focus.js.map +1 -1
  331. package/build/components/post-title/use-post-title.js +2 -0
  332. package/build/components/post-title/use-post-title.js.map +1 -1
  333. package/build/components/post-transform-panel/hooks.js +3 -1
  334. package/build/components/post-transform-panel/hooks.js.map +1 -1
  335. package/build/components/post-transform-panel/index.js +3 -1
  336. package/build/components/post-transform-panel/index.js.map +1 -1
  337. package/build/components/post-trash/check.js +2 -0
  338. package/build/components/post-trash/check.js.map +1 -1
  339. package/build/components/post-trash/index.js +3 -1
  340. package/build/components/post-trash/index.js.map +1 -1
  341. package/build/components/post-type-support-check/index.js +2 -0
  342. package/build/components/post-type-support-check/index.js.map +1 -1
  343. package/build/components/post-url/check.js +2 -0
  344. package/build/components/post-url/check.js.map +1 -1
  345. package/build/components/post-url/index.js +3 -1
  346. package/build/components/post-url/index.js.map +1 -1
  347. package/build/components/post-url/label.js +2 -0
  348. package/build/components/post-url/label.js.map +1 -1
  349. package/build/components/post-url/panel.js +3 -1
  350. package/build/components/post-url/panel.js.map +1 -1
  351. package/build/components/post-view-link/index.js +3 -1
  352. package/build/components/post-view-link/index.js.map +1 -1
  353. package/build/components/post-visibility/check.js +2 -0
  354. package/build/components/post-visibility/check.js.map +1 -1
  355. package/build/components/post-visibility/index.js +3 -1
  356. package/build/components/post-visibility/index.js.map +1 -1
  357. package/build/components/post-visibility/label.js +2 -0
  358. package/build/components/post-visibility/label.js.map +1 -1
  359. package/build/components/post-visibility/utils.js +3 -1
  360. package/build/components/post-visibility/utils.js.map +1 -1
  361. package/build/components/posts-per-page/index.js +3 -1
  362. package/build/components/posts-per-page/index.js.map +1 -1
  363. package/build/components/preferences-modal/enable-panel.js +4 -2
  364. package/build/components/preferences-modal/enable-panel.js.map +1 -1
  365. package/build/components/preferences-modal/enable-plugin-document-setting-panel.js +5 -3
  366. package/build/components/preferences-modal/enable-plugin-document-setting-panel.js.map +1 -1
  367. package/build/components/preferences-modal/enable-publish-sidebar.js +4 -2
  368. package/build/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
  369. package/build/components/preferences-modal/index.js +5 -3
  370. package/build/components/preferences-modal/index.js.map +2 -2
  371. package/build/components/preview-dropdown/index.js +3 -1
  372. package/build/components/preview-dropdown/index.js.map +1 -1
  373. package/build/components/provider/disable-non-page-content-blocks.js +2 -0
  374. package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
  375. package/build/components/provider/index.js +8 -6
  376. package/build/components/provider/index.js.map +1 -1
  377. package/build/components/provider/navigation-block-editing-mode.js +2 -0
  378. package/build/components/provider/navigation-block-editing-mode.js.map +1 -1
  379. package/build/components/provider/use-auto-switch-editor-sidebars.js +2 -0
  380. package/build/components/provider/use-auto-switch-editor-sidebars.js.map +1 -1
  381. package/build/components/provider/use-block-editor-settings.js +5 -3
  382. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  383. package/build/components/provider/use-hide-blocks-from-inserter.js +3 -1
  384. package/build/components/provider/use-hide-blocks-from-inserter.js.map +1 -1
  385. package/build/components/provider/use-post-content-blocks.js +3 -1
  386. package/build/components/provider/use-post-content-blocks.js.map +1 -1
  387. package/build/components/provider/with-registry-provider.js +4 -2
  388. package/build/components/provider/with-registry-provider.js.map +1 -1
  389. package/build/components/resizable-editor/index.js +4 -2
  390. package/build/components/resizable-editor/index.js.map +1 -1
  391. package/build/components/resizable-editor/resize-handle.js +4 -2
  392. package/build/components/resizable-editor/resize-handle.js.map +1 -1
  393. package/build/components/save-publish-panels/index.js +5 -3
  394. package/build/components/save-publish-panels/index.js.map +1 -1
  395. package/build/components/sidebar/constants.js +3 -1
  396. package/build/components/sidebar/constants.js.map +1 -1
  397. package/build/components/sidebar/header.js +5 -3
  398. package/build/components/sidebar/header.js.map +1 -1
  399. package/build/components/sidebar/index.js +7 -5
  400. package/build/components/sidebar/index.js.map +1 -1
  401. package/build/components/sidebar/post-summary.js +4 -2
  402. package/build/components/sidebar/post-summary.js.map +1 -1
  403. package/build/components/site-discussion/index.js +4 -2
  404. package/build/components/site-discussion/index.js.map +1 -1
  405. package/build/components/start-page-options/index.js +7 -6
  406. package/build/components/start-page-options/index.js.map +2 -2
  407. package/build/components/start-template-options/index.js +3 -1
  408. package/build/components/start-template-options/index.js.map +1 -1
  409. package/build/components/style-book/categories.js +2 -0
  410. package/build/components/style-book/categories.js.map +1 -1
  411. package/build/components/style-book/color-examples.js +4 -2
  412. package/build/components/style-book/color-examples.js.map +1 -1
  413. package/build/components/style-book/constants.js +9 -7
  414. package/build/components/style-book/constants.js.map +1 -1
  415. package/build/components/style-book/duotone-examples.js +4 -2
  416. package/build/components/style-book/duotone-examples.js.map +1 -1
  417. package/build/components/style-book/examples.js +3 -1
  418. package/build/components/style-book/examples.js.map +1 -1
  419. package/build/components/style-book/index.js +13 -11
  420. package/build/components/style-book/index.js.map +1 -1
  421. package/build/components/style-book/types.js +2 -0
  422. package/build/components/style-book/types.js.map +1 -1
  423. package/build/components/styles-canvas/index.js +3 -1
  424. package/build/components/styles-canvas/index.js.map +1 -1
  425. package/build/components/styles-canvas/revisions.js +4 -2
  426. package/build/components/styles-canvas/revisions.js.map +1 -1
  427. package/build/components/styles-canvas/style-book.js +3 -1
  428. package/build/components/styles-canvas/style-book.js.map +1 -1
  429. package/build/components/table-of-contents/index.js +3 -1
  430. package/build/components/table-of-contents/index.js.map +1 -1
  431. package/build/components/table-of-contents/panel.js +3 -1
  432. package/build/components/table-of-contents/panel.js.map +1 -1
  433. package/build/components/template-content-panel/index.js +6 -4
  434. package/build/components/template-content-panel/index.js.map +1 -1
  435. package/build/components/template-part-content-panel/index.js +4 -2
  436. package/build/components/template-part-content-panel/index.js.map +1 -1
  437. package/build/components/template-part-menu-items/convert-to-regular.js +3 -1
  438. package/build/components/template-part-menu-items/convert-to-regular.js.map +1 -1
  439. package/build/components/template-part-menu-items/convert-to-template-part.js +3 -1
  440. package/build/components/template-part-menu-items/convert-to-template-part.js.map +1 -1
  441. package/build/components/template-part-menu-items/index.js +3 -1
  442. package/build/components/template-part-menu-items/index.js.map +1 -1
  443. package/build/components/template-validation-notice/index.js +3 -1
  444. package/build/components/template-validation-notice/index.js.map +1 -1
  445. package/build/components/text-editor/index.js +3 -1
  446. package/build/components/text-editor/index.js.map +1 -1
  447. package/build/components/theme-support-check/index.js +2 -0
  448. package/build/components/theme-support-check/index.js.map +1 -1
  449. package/build/components/time-to-read/index.js +4 -2
  450. package/build/components/time-to-read/index.js.map +1 -1
  451. package/build/components/unsaved-changes-warning/index.js +2 -0
  452. package/build/components/unsaved-changes-warning/index.js.map +1 -1
  453. package/build/components/visual-editor/edit-template-blocks-notification.js +3 -1
  454. package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  455. package/build/components/visual-editor/index.js +25 -12
  456. package/build/components/visual-editor/index.js.map +2 -2
  457. package/build/components/visual-editor/use-select-nearest-editable-block.js +3 -1
  458. package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
  459. package/build/components/visual-editor/use-zoom-out-mode-exit.js +2 -0
  460. package/build/components/visual-editor/use-zoom-out-mode-exit.js.map +1 -1
  461. package/build/components/word-count/index.js +3 -1
  462. package/build/components/word-count/index.js.map +1 -1
  463. package/build/components/zoom-out-toggle/index.js +4 -2
  464. package/build/components/zoom-out-toggle/index.js.map +1 -1
  465. package/build/dataviews/api.js +2 -0
  466. package/build/dataviews/api.js.map +1 -1
  467. package/build/dataviews/fields/content-preview/content-preview-view.js +4 -2
  468. package/build/dataviews/fields/content-preview/content-preview-view.js.map +1 -1
  469. package/build/dataviews/fields/content-preview/index.js +3 -1
  470. package/build/dataviews/fields/content-preview/index.js.map +1 -1
  471. package/build/dataviews/store/private-actions.js +3 -1
  472. package/build/dataviews/store/private-actions.js.map +1 -1
  473. package/build/dataviews/store/private-selectors.js +3 -1
  474. package/build/dataviews/store/private-selectors.js.map +1 -1
  475. package/build/dataviews/store/reducer.js +2 -0
  476. package/build/dataviews/store/reducer.js.map +1 -1
  477. package/build/hooks/custom-sources-backwards-compatibility.js +4 -2
  478. package/build/hooks/custom-sources-backwards-compatibility.js.map +1 -1
  479. package/build/hooks/default-autocompleters.js +2 -0
  480. package/build/hooks/default-autocompleters.js.map +1 -1
  481. package/build/hooks/index.js +2 -0
  482. package/build/hooks/index.js.map +1 -1
  483. package/build/hooks/media-upload.js +3 -1
  484. package/build/hooks/media-upload.js.map +1 -1
  485. package/build/hooks/navigation-link-view-button.js +5 -3
  486. package/build/hooks/navigation-link-view-button.js.map +1 -1
  487. package/build/hooks/pattern-overrides.js +5 -3
  488. package/build/hooks/pattern-overrides.js.map +1 -1
  489. package/build/hooks/push-changes-to-global-styles/index.js +12 -10
  490. package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
  491. package/build/hooks/template-part-navigation-edit-button.js +7 -5
  492. package/build/hooks/template-part-navigation-edit-button.js.map +1 -1
  493. package/build/hooks/use-global-styles-output.js +2 -0
  494. package/build/hooks/use-global-styles-output.js.map +1 -1
  495. package/build/index.js +2 -0
  496. package/build/index.js.map +1 -1
  497. package/build/lock-unlock.js +3 -1
  498. package/build/lock-unlock.js.map +1 -1
  499. package/build/private-apis.js +4 -2
  500. package/build/private-apis.js.map +1 -1
  501. package/build/store/actions.js +53 -51
  502. package/build/store/actions.js.map +1 -1
  503. package/build/store/constants.js +15 -13
  504. package/build/store/constants.js.map +1 -1
  505. package/build/store/defaults.js +3 -1
  506. package/build/store/defaults.js.map +1 -1
  507. package/build/store/index.js +4 -2
  508. package/build/store/index.js.map +1 -1
  509. package/build/store/local-autosave.js +2 -0
  510. package/build/store/local-autosave.js.map +1 -1
  511. package/build/store/private-actions.js +17 -7
  512. package/build/store/private-actions.js.map +2 -2
  513. package/build/store/private-selectors.js +15 -8
  514. package/build/store/private-selectors.js.map +2 -2
  515. package/build/store/reducer.js +12 -0
  516. package/build/store/reducer.js.map +2 -2
  517. package/build/store/selectors.js +80 -78
  518. package/build/store/selectors.js.map +2 -2
  519. package/build/store/utils/is-template-revertable.js +2 -0
  520. package/build/store/utils/is-template-revertable.js.map +1 -1
  521. package/build/store/utils/notice-builder.js +2 -0
  522. package/build/store/utils/notice-builder.js.map +1 -1
  523. package/build/utils/get-item-title.js +2 -0
  524. package/build/utils/get-item-title.js.map +1 -1
  525. package/build/utils/get-template-info.js +4 -2
  526. package/build/utils/get-template-info.js.map +1 -1
  527. package/build/utils/get-template-part-icon.js +2 -0
  528. package/build/utils/get-template-part-icon.js.map +1 -1
  529. package/build/utils/index.js +2 -0
  530. package/build/utils/index.js.map +1 -1
  531. package/build/utils/media-sideload/index.js +3 -1
  532. package/build/utils/media-sideload/index.js.map +1 -1
  533. package/build/utils/media-upload/index.js +3 -1
  534. package/build/utils/media-upload/index.js.map +1 -1
  535. package/build/utils/pageTypeBadge.js +2 -0
  536. package/build/utils/pageTypeBadge.js.map +1 -1
  537. package/build/utils/search-templates.js +2 -0
  538. package/build/utils/search-templates.js.map +1 -1
  539. package/build/utils/set-nested-value.js +2 -0
  540. package/build/utils/set-nested-value.js.map +1 -1
  541. package/build/utils/terms.js +5 -3
  542. package/build/utils/terms.js.map +1 -1
  543. package/build/utils/url.js +2 -0
  544. package/build/utils/url.js.map +1 -1
  545. package/build-module/bindings/api.js +1 -0
  546. package/build-module/bindings/api.js.map +1 -1
  547. package/build-module/bindings/pattern-overrides.js +2 -1
  548. package/build-module/bindings/pattern-overrides.js.map +1 -1
  549. package/build-module/bindings/post-data.js +49 -64
  550. package/build-module/bindings/post-data.js.map +2 -2
  551. package/build-module/bindings/post-meta.js +46 -39
  552. package/build-module/bindings/post-meta.js.map +2 -2
  553. package/build-module/bindings/term-data.js +2 -1
  554. package/build-module/bindings/term-data.js.map +1 -1
  555. package/build-module/components/autocompleters/index.js +1 -0
  556. package/build-module/components/autocompleters/index.js.map +1 -1
  557. package/build-module/components/autocompleters/user.js +2 -1
  558. package/build-module/components/autocompleters/user.js.map +1 -1
  559. package/build-module/components/autosave-monitor/index.js +3 -2
  560. package/build-module/components/autosave-monitor/index.js.map +1 -1
  561. package/build-module/components/block-removal-warnings/index.js +5 -4
  562. package/build-module/components/block-removal-warnings/index.js.map +1 -1
  563. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +5 -4
  564. package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
  565. package/build-module/components/block-visibility/index.js +4 -3
  566. package/build-module/components/block-visibility/index.js.map +1 -1
  567. package/build-module/components/blog-title/index.js +3 -2
  568. package/build-module/components/blog-title/index.js.map +1 -1
  569. package/build-module/components/character-count/index.js +1 -0
  570. package/build-module/components/character-count/index.js.map +1 -1
  571. package/build-module/components/collab-sidebar/add-comment.js +18 -13
  572. package/build-module/components/collab-sidebar/add-comment.js.map +2 -2
  573. package/build-module/components/collab-sidebar/comment-author-info.js +3 -2
  574. package/build-module/components/collab-sidebar/comment-author-info.js.map +2 -2
  575. package/build-module/components/collab-sidebar/comment-form.js +2 -1
  576. package/build-module/components/collab-sidebar/comment-form.js.map +1 -1
  577. package/build-module/components/collab-sidebar/comment-indicator-toolbar.js +19 -28
  578. package/build-module/components/collab-sidebar/comment-indicator-toolbar.js.map +2 -2
  579. package/build-module/components/collab-sidebar/comment-menu-item.js +43 -9
  580. package/build-module/components/collab-sidebar/comment-menu-item.js.map +2 -2
  581. package/build-module/components/collab-sidebar/comments.js +349 -324
  582. package/build-module/components/collab-sidebar/comments.js.map +2 -2
  583. package/build-module/components/collab-sidebar/constants.js +4 -3
  584. package/build-module/components/collab-sidebar/constants.js.map +1 -1
  585. package/build-module/components/collab-sidebar/hooks.js +7 -4
  586. package/build-module/components/collab-sidebar/hooks.js.map +2 -2
  587. package/build-module/components/collab-sidebar/index.js +49 -24
  588. package/build-module/components/collab-sidebar/index.js.map +2 -2
  589. package/build-module/components/collab-sidebar/utils.js +3 -2
  590. package/build-module/components/collab-sidebar/utils.js.map +2 -2
  591. package/build-module/components/collapsible-block-toolbar/index.js +3 -2
  592. package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
  593. package/build-module/components/commands/index.js +5 -4
  594. package/build-module/components/commands/index.js.map +1 -1
  595. package/build-module/components/deprecated.js +54 -53
  596. package/build-module/components/deprecated.js.map +1 -1
  597. package/build-module/components/document-bar/index.js +3 -2
  598. package/build-module/components/document-bar/index.js.map +1 -1
  599. package/build-module/components/document-outline/check.js +1 -0
  600. package/build-module/components/document-outline/check.js.map +1 -1
  601. package/build-module/components/document-outline/index.js +8 -7
  602. package/build-module/components/document-outline/index.js.map +1 -1
  603. package/build-module/components/document-outline/item.js +3 -2
  604. package/build-module/components/document-outline/item.js.map +1 -1
  605. package/build-module/components/document-tools/index.js +2 -1
  606. package/build-module/components/document-tools/index.js.map +1 -1
  607. package/build-module/components/editor/index.js +3 -2
  608. package/build-module/components/editor/index.js.map +2 -2
  609. package/build-module/components/editor-history/redo.js +2 -1
  610. package/build-module/components/editor-history/redo.js.map +1 -1
  611. package/build-module/components/editor-history/undo.js +2 -1
  612. package/build-module/components/editor-history/undo.js.map +1 -1
  613. package/build-module/components/editor-interface/index.js +3 -2
  614. package/build-module/components/editor-interface/index.js.map +1 -1
  615. package/build-module/components/editor-notices/index.js +2 -1
  616. package/build-module/components/editor-notices/index.js.map +1 -1
  617. package/build-module/components/editor-snackbars/index.js +3 -2
  618. package/build-module/components/editor-snackbars/index.js.map +1 -1
  619. package/build-module/components/entities-saved-states/entity-record-item.js +2 -1
  620. package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
  621. package/build-module/components/entities-saved-states/entity-type-list.js +2 -1
  622. package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
  623. package/build-module/components/entities-saved-states/hooks/use-is-dirty.js +2 -1
  624. package/build-module/components/entities-saved-states/hooks/use-is-dirty.js.map +1 -1
  625. package/build-module/components/entities-saved-states/index.js +2 -1
  626. package/build-module/components/entities-saved-states/index.js.map +1 -1
  627. package/build-module/components/error-boundary/index.js +4 -3
  628. package/build-module/components/error-boundary/index.js.map +1 -1
  629. package/build-module/components/global-keyboard-shortcuts/index.js +1 -0
  630. package/build-module/components/global-keyboard-shortcuts/index.js.map +1 -1
  631. package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +2 -1
  632. package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
  633. package/build-module/components/global-styles/block-link.js +1 -0
  634. package/build-module/components/global-styles/block-link.js.map +1 -1
  635. package/build-module/components/global-styles/header.js +2 -1
  636. package/build-module/components/global-styles/header.js.map +1 -1
  637. package/build-module/components/global-styles/hooks.js +2 -1
  638. package/build-module/components/global-styles/hooks.js.map +1 -1
  639. package/build-module/components/global-styles/index.js +3 -2
  640. package/build-module/components/global-styles/index.js.map +1 -1
  641. package/build-module/components/global-styles/menu.js +2 -1
  642. package/build-module/components/global-styles/menu.js.map +1 -1
  643. package/build-module/components/global-styles-provider/index.js +2 -1
  644. package/build-module/components/global-styles-provider/index.js.map +1 -1
  645. package/build-module/components/global-styles-renderer/index.js +1 -0
  646. package/build-module/components/global-styles-renderer/index.js.map +1 -1
  647. package/build-module/components/global-styles-sidebar/default-sidebar.js +2 -1
  648. package/build-module/components/global-styles-sidebar/default-sidebar.js.map +1 -1
  649. package/build-module/components/global-styles-sidebar/index.js +2 -1
  650. package/build-module/components/global-styles-sidebar/index.js.map +1 -1
  651. package/build-module/components/global-styles-sidebar/welcome-guide-image.js +1 -0
  652. package/build-module/components/global-styles-sidebar/welcome-guide-image.js.map +1 -1
  653. package/build-module/components/global-styles-sidebar/welcome-guide.js +2 -1
  654. package/build-module/components/global-styles-sidebar/welcome-guide.js.map +1 -1
  655. package/build-module/components/header/back-button.js +7 -6
  656. package/build-module/components/header/back-button.js.map +1 -1
  657. package/build-module/components/header/index.js +4 -3
  658. package/build-module/components/header/index.js.map +1 -1
  659. package/build-module/components/index.js +3 -2
  660. package/build-module/components/index.js.map +1 -1
  661. package/build-module/components/inserter-sidebar/index.js +3 -2
  662. package/build-module/components/inserter-sidebar/index.js.map +1 -1
  663. package/build-module/components/keyboard-shortcut-help-modal/config.js +2 -1
  664. package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
  665. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -1
  666. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  667. package/build-module/components/keyboard-shortcut-help-modal/index.js +6 -5
  668. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  669. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +5 -4
  670. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  671. package/build-module/components/list-view-sidebar/index.js +3 -2
  672. package/build-module/components/list-view-sidebar/index.js.map +1 -1
  673. package/build-module/components/list-view-sidebar/list-view-outline.js +2 -1
  674. package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
  675. package/build-module/components/local-autosave-monitor/index.js +5 -4
  676. package/build-module/components/local-autosave-monitor/index.js.map +1 -1
  677. package/build-module/components/media-categories/index.js +7 -6
  678. package/build-module/components/media-categories/index.js.map +1 -1
  679. package/build-module/components/mode-switcher/index.js +3 -2
  680. package/build-module/components/mode-switcher/index.js.map +1 -1
  681. package/build-module/components/more-menu/copy-content-menu-item.js +2 -1
  682. package/build-module/components/more-menu/copy-content-menu-item.js.map +1 -1
  683. package/build-module/components/more-menu/index.js +3 -2
  684. package/build-module/components/more-menu/index.js.map +2 -2
  685. package/build-module/components/more-menu/tools-more-menu-group.js +3 -2
  686. package/build-module/components/more-menu/tools-more-menu-group.js.map +1 -1
  687. package/build-module/components/more-menu/view-more-menu-group.js +3 -2
  688. package/build-module/components/more-menu/view-more-menu-group.js.map +1 -1
  689. package/build-module/components/page-attributes/check.js +1 -0
  690. package/build-module/components/page-attributes/check.js.map +1 -1
  691. package/build-module/components/page-attributes/order.js +2 -1
  692. package/build-module/components/page-attributes/order.js.map +1 -1
  693. package/build-module/components/page-attributes/panel.js +3 -2
  694. package/build-module/components/page-attributes/panel.js.map +1 -1
  695. package/build-module/components/page-attributes/parent.js +3 -2
  696. package/build-module/components/page-attributes/parent.js.map +1 -1
  697. package/build-module/components/pattern-duplicate-modal/index.js +4 -3
  698. package/build-module/components/pattern-duplicate-modal/index.js.map +1 -1
  699. package/build-module/components/pattern-overrides-panel/index.js +3 -2
  700. package/build-module/components/pattern-overrides-panel/index.js.map +1 -1
  701. package/build-module/components/pattern-rename-modal/index.js +4 -3
  702. package/build-module/components/pattern-rename-modal/index.js.map +1 -1
  703. package/build-module/components/plugin-document-setting-panel/index.js +4 -3
  704. package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
  705. package/build-module/components/plugin-more-menu-item/index.js +2 -1
  706. package/build-module/components/plugin-more-menu-item/index.js.map +1 -1
  707. package/build-module/components/plugin-post-publish-panel/index.js +4 -3
  708. package/build-module/components/plugin-post-publish-panel/index.js.map +1 -1
  709. package/build-module/components/plugin-post-status-info/index.js +4 -3
  710. package/build-module/components/plugin-post-status-info/index.js.map +1 -1
  711. package/build-module/components/plugin-pre-publish-panel/index.js +4 -3
  712. package/build-module/components/plugin-pre-publish-panel/index.js.map +1 -1
  713. package/build-module/components/plugin-preview-menu-item/index.js +2 -1
  714. package/build-module/components/plugin-preview-menu-item/index.js.map +1 -1
  715. package/build-module/components/plugin-sidebar/index.js +2 -1
  716. package/build-module/components/plugin-sidebar/index.js.map +1 -1
  717. package/build-module/components/plugin-sidebar-more-menu-item/index.js +2 -1
  718. package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
  719. package/build-module/components/post-actions/actions.js +2 -1
  720. package/build-module/components/post-actions/actions.js.map +1 -1
  721. package/build-module/components/post-actions/index.js +3 -2
  722. package/build-module/components/post-actions/index.js.map +1 -1
  723. package/build-module/components/post-actions/set-as-homepage.js +4 -3
  724. package/build-module/components/post-actions/set-as-homepage.js.map +1 -1
  725. package/build-module/components/post-actions/set-as-posts-page.js +4 -3
  726. package/build-module/components/post-actions/set-as-posts-page.js.map +1 -1
  727. package/build-module/components/post-author/check.js +2 -1
  728. package/build-module/components/post-author/check.js.map +1 -1
  729. package/build-module/components/post-author/combobox.js +2 -1
  730. package/build-module/components/post-author/combobox.js.map +1 -1
  731. package/build-module/components/post-author/constants.js +3 -2
  732. package/build-module/components/post-author/constants.js.map +1 -1
  733. package/build-module/components/post-author/hook.js +1 -0
  734. package/build-module/components/post-author/hook.js.map +1 -1
  735. package/build-module/components/post-author/index.js +3 -2
  736. package/build-module/components/post-author/index.js.map +1 -1
  737. package/build-module/components/post-author/panel.js +2 -1
  738. package/build-module/components/post-author/panel.js.map +1 -1
  739. package/build-module/components/post-author/select.js +2 -1
  740. package/build-module/components/post-author/select.js.map +1 -1
  741. package/build-module/components/post-card-panel/index.js +3 -2
  742. package/build-module/components/post-card-panel/index.js.map +1 -1
  743. package/build-module/components/post-comments/index.js +3 -2
  744. package/build-module/components/post-comments/index.js.map +1 -1
  745. package/build-module/components/post-content-information/index.js +3 -2
  746. package/build-module/components/post-content-information/index.js.map +1 -1
  747. package/build-module/components/post-discussion/panel.js +3 -2
  748. package/build-module/components/post-discussion/panel.js.map +1 -1
  749. package/build-module/components/post-excerpt/check.js +2 -1
  750. package/build-module/components/post-excerpt/check.js.map +1 -1
  751. package/build-module/components/post-excerpt/index.js +2 -1
  752. package/build-module/components/post-excerpt/index.js.map +1 -1
  753. package/build-module/components/post-excerpt/panel.js +3 -2
  754. package/build-module/components/post-excerpt/panel.js.map +1 -1
  755. package/build-module/components/post-excerpt/plugin.js +4 -3
  756. package/build-module/components/post-excerpt/plugin.js.map +1 -1
  757. package/build-module/components/post-featured-image/check.js +2 -1
  758. package/build-module/components/post-featured-image/check.js.map +1 -1
  759. package/build-module/components/post-featured-image/index.js +9 -8
  760. package/build-module/components/post-featured-image/index.js.map +1 -1
  761. package/build-module/components/post-featured-image/panel.js +3 -2
  762. package/build-module/components/post-featured-image/panel.js.map +1 -1
  763. package/build-module/components/post-fields/index.js +1 -0
  764. package/build-module/components/post-fields/index.js.map +1 -1
  765. package/build-module/components/post-format/check.js +2 -1
  766. package/build-module/components/post-format/check.js.map +1 -1
  767. package/build-module/components/post-format/index.js +3 -2
  768. package/build-module/components/post-format/index.js.map +1 -1
  769. package/build-module/components/post-format/panel.js +2 -1
  770. package/build-module/components/post-format/panel.js.map +1 -1
  771. package/build-module/components/post-last-edited-panel/index.js +2 -1
  772. package/build-module/components/post-last-edited-panel/index.js.map +1 -1
  773. package/build-module/components/post-last-revision/check.js +2 -1
  774. package/build-module/components/post-last-revision/check.js.map +1 -1
  775. package/build-module/components/post-last-revision/index.js +2 -1
  776. package/build-module/components/post-last-revision/index.js.map +1 -1
  777. package/build-module/components/post-last-revision/panel.js +2 -1
  778. package/build-module/components/post-last-revision/panel.js.map +1 -1
  779. package/build-module/components/post-locked-modal/index.js +2 -1
  780. package/build-module/components/post-locked-modal/index.js.map +1 -1
  781. package/build-module/components/post-panel-row/index.js +3 -2
  782. package/build-module/components/post-panel-row/index.js.map +1 -1
  783. package/build-module/components/post-panel-section/index.js +2 -1
  784. package/build-module/components/post-panel-section/index.js.map +1 -1
  785. package/build-module/components/post-pending-status/check.js +1 -0
  786. package/build-module/components/post-pending-status/check.js.map +1 -1
  787. package/build-module/components/post-pending-status/index.js +2 -1
  788. package/build-module/components/post-pending-status/index.js.map +1 -1
  789. package/build-module/components/post-pingbacks/index.js +2 -1
  790. package/build-module/components/post-pingbacks/index.js.map +1 -1
  791. package/build-module/components/post-preview-button/index.js +2 -1
  792. package/build-module/components/post-preview-button/index.js.map +1 -1
  793. package/build-module/components/post-publish-button/index.js +5 -4
  794. package/build-module/components/post-publish-button/index.js.map +1 -1
  795. package/build-module/components/post-publish-button/label.js +1 -0
  796. package/build-module/components/post-publish-button/label.js.map +1 -1
  797. package/build-module/components/post-publish-button/post-publish-button-or-toggle.js +4 -3
  798. package/build-module/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
  799. package/build-module/components/post-publish-panel/index.js +4 -3
  800. package/build-module/components/post-publish-panel/index.js.map +1 -1
  801. package/build-module/components/post-publish-panel/maybe-category-panel.js +2 -1
  802. package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  803. package/build-module/components/post-publish-panel/maybe-post-format-panel.js +4 -3
  804. package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  805. package/build-module/components/post-publish-panel/maybe-tags-panel.js +4 -3
  806. package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  807. package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -1
  808. package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  809. package/build-module/components/post-publish-panel/media-util.js +1 -0
  810. package/build-module/components/post-publish-panel/media-util.js.map +1 -1
  811. package/build-module/components/post-publish-panel/postpublish.js +5 -4
  812. package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
  813. package/build-module/components/post-publish-panel/prepublish.js +2 -1
  814. package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
  815. package/build-module/components/post-saved-state/index.js +2 -1
  816. package/build-module/components/post-saved-state/index.js.map +1 -1
  817. package/build-module/components/post-schedule/check.js +1 -0
  818. package/build-module/components/post-schedule/check.js.map +1 -1
  819. package/build-module/components/post-schedule/index.js +3 -2
  820. package/build-module/components/post-schedule/index.js.map +1 -1
  821. package/build-module/components/post-schedule/label.js +1 -0
  822. package/build-module/components/post-schedule/label.js.map +1 -1
  823. package/build-module/components/post-schedule/panel.js +3 -2
  824. package/build-module/components/post-schedule/panel.js.map +1 -1
  825. package/build-module/components/post-status/index.js +5 -4
  826. package/build-module/components/post-status/index.js.map +1 -1
  827. package/build-module/components/post-sticky/check.js +1 -0
  828. package/build-module/components/post-sticky/check.js.map +1 -1
  829. package/build-module/components/post-sticky/index.js +2 -1
  830. package/build-module/components/post-sticky/index.js.map +1 -1
  831. package/build-module/components/post-sticky/panel.js +2 -1
  832. package/build-module/components/post-sticky/panel.js.map +1 -1
  833. package/build-module/components/post-switch-to-draft-button/index.js +2 -1
  834. package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
  835. package/build-module/components/post-sync-status/index.js +2 -1
  836. package/build-module/components/post-sync-status/index.js.map +1 -1
  837. package/build-module/components/post-taxonomies/check.js +1 -0
  838. package/build-module/components/post-taxonomies/check.js.map +1 -1
  839. package/build-module/components/post-taxonomies/flat-term-selector.js +8 -7
  840. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  841. package/build-module/components/post-taxonomies/hierarchical-term-selector.js +7 -6
  842. package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  843. package/build-module/components/post-taxonomies/index.js +3 -2
  844. package/build-module/components/post-taxonomies/index.js.map +1 -1
  845. package/build-module/components/post-taxonomies/most-used-terms.js +4 -3
  846. package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
  847. package/build-module/components/post-taxonomies/panel.js +2 -1
  848. package/build-module/components/post-taxonomies/panel.js.map +1 -1
  849. package/build-module/components/post-template/block-theme.js +2 -1
  850. package/build-module/components/post-template/block-theme.js.map +1 -1
  851. package/build-module/components/post-template/classic-theme.js +2 -1
  852. package/build-module/components/post-template/classic-theme.js.map +1 -1
  853. package/build-module/components/post-template/create-new-template-modal.js +3 -2
  854. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  855. package/build-module/components/post-template/create-new-template.js +2 -1
  856. package/build-module/components/post-template/create-new-template.js.map +1 -1
  857. package/build-module/components/post-template/hooks.js +1 -0
  858. package/build-module/components/post-template/hooks.js.map +1 -1
  859. package/build-module/components/post-template/panel.js +2 -1
  860. package/build-module/components/post-template/panel.js.map +1 -1
  861. package/build-module/components/post-template/reset-default-template.js +2 -1
  862. package/build-module/components/post-template/reset-default-template.js.map +1 -1
  863. package/build-module/components/post-template/swap-template-button.js +2 -1
  864. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  865. package/build-module/components/post-text-editor/index.js +2 -1
  866. package/build-module/components/post-text-editor/index.js.map +1 -1
  867. package/build-module/components/post-title/constants.js +3 -2
  868. package/build-module/components/post-title/constants.js.map +1 -1
  869. package/build-module/components/post-title/index.js +3 -2
  870. package/build-module/components/post-title/index.js.map +1 -1
  871. package/build-module/components/post-title/post-title-raw.js +2 -1
  872. package/build-module/components/post-title/post-title-raw.js.map +1 -1
  873. package/build-module/components/post-title/use-post-title-focus.js +1 -0
  874. package/build-module/components/post-title/use-post-title-focus.js.map +1 -1
  875. package/build-module/components/post-title/use-post-title.js +1 -0
  876. package/build-module/components/post-title/use-post-title.js.map +1 -1
  877. package/build-module/components/post-transform-panel/hooks.js +2 -1
  878. package/build-module/components/post-transform-panel/hooks.js.map +1 -1
  879. package/build-module/components/post-transform-panel/index.js +2 -1
  880. package/build-module/components/post-transform-panel/index.js.map +1 -1
  881. package/build-module/components/post-trash/check.js +1 -0
  882. package/build-module/components/post-trash/check.js.map +1 -1
  883. package/build-module/components/post-trash/index.js +2 -1
  884. package/build-module/components/post-trash/index.js.map +1 -1
  885. package/build-module/components/post-type-support-check/index.js +1 -0
  886. package/build-module/components/post-type-support-check/index.js.map +1 -1
  887. package/build-module/components/post-url/check.js +1 -0
  888. package/build-module/components/post-url/check.js.map +1 -1
  889. package/build-module/components/post-url/index.js +2 -1
  890. package/build-module/components/post-url/index.js.map +1 -1
  891. package/build-module/components/post-url/label.js +1 -0
  892. package/build-module/components/post-url/label.js.map +1 -1
  893. package/build-module/components/post-url/panel.js +2 -1
  894. package/build-module/components/post-url/panel.js.map +1 -1
  895. package/build-module/components/post-view-link/index.js +2 -1
  896. package/build-module/components/post-view-link/index.js.map +1 -1
  897. package/build-module/components/post-visibility/check.js +1 -0
  898. package/build-module/components/post-visibility/check.js.map +1 -1
  899. package/build-module/components/post-visibility/index.js +2 -1
  900. package/build-module/components/post-visibility/index.js.map +1 -1
  901. package/build-module/components/post-visibility/label.js +1 -0
  902. package/build-module/components/post-visibility/label.js.map +1 -1
  903. package/build-module/components/post-visibility/utils.js +2 -1
  904. package/build-module/components/post-visibility/utils.js.map +1 -1
  905. package/build-module/components/posts-per-page/index.js +2 -1
  906. package/build-module/components/posts-per-page/index.js.map +1 -1
  907. package/build-module/components/preferences-modal/enable-panel.js +3 -2
  908. package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
  909. package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js +4 -3
  910. package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js.map +1 -1
  911. package/build-module/components/preferences-modal/enable-publish-sidebar.js +3 -2
  912. package/build-module/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
  913. package/build-module/components/preferences-modal/index.js +4 -3
  914. package/build-module/components/preferences-modal/index.js.map +2 -2
  915. package/build-module/components/preview-dropdown/index.js +2 -1
  916. package/build-module/components/preview-dropdown/index.js.map +1 -1
  917. package/build-module/components/provider/disable-non-page-content-blocks.js +1 -0
  918. package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
  919. package/build-module/components/provider/index.js +7 -6
  920. package/build-module/components/provider/index.js.map +1 -1
  921. package/build-module/components/provider/navigation-block-editing-mode.js +1 -0
  922. package/build-module/components/provider/navigation-block-editing-mode.js.map +1 -1
  923. package/build-module/components/provider/use-auto-switch-editor-sidebars.js +1 -0
  924. package/build-module/components/provider/use-auto-switch-editor-sidebars.js.map +1 -1
  925. package/build-module/components/provider/use-block-editor-settings.js +4 -3
  926. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  927. package/build-module/components/provider/use-hide-blocks-from-inserter.js +2 -1
  928. package/build-module/components/provider/use-hide-blocks-from-inserter.js.map +1 -1
  929. package/build-module/components/provider/use-post-content-blocks.js +2 -1
  930. package/build-module/components/provider/use-post-content-blocks.js.map +1 -1
  931. package/build-module/components/provider/with-registry-provider.js +3 -2
  932. package/build-module/components/provider/with-registry-provider.js.map +1 -1
  933. package/build-module/components/resizable-editor/index.js +3 -2
  934. package/build-module/components/resizable-editor/index.js.map +1 -1
  935. package/build-module/components/resizable-editor/resize-handle.js +3 -2
  936. package/build-module/components/resizable-editor/resize-handle.js.map +1 -1
  937. package/build-module/components/save-publish-panels/index.js +4 -3
  938. package/build-module/components/save-publish-panels/index.js.map +1 -1
  939. package/build-module/components/sidebar/constants.js +2 -1
  940. package/build-module/components/sidebar/constants.js.map +1 -1
  941. package/build-module/components/sidebar/header.js +4 -3
  942. package/build-module/components/sidebar/header.js.map +1 -1
  943. package/build-module/components/sidebar/index.js +6 -5
  944. package/build-module/components/sidebar/index.js.map +1 -1
  945. package/build-module/components/sidebar/post-summary.js +3 -2
  946. package/build-module/components/sidebar/post-summary.js.map +1 -1
  947. package/build-module/components/site-discussion/index.js +3 -2
  948. package/build-module/components/site-discussion/index.js.map +1 -1
  949. package/build-module/components/start-page-options/index.js +7 -7
  950. package/build-module/components/start-page-options/index.js.map +2 -2
  951. package/build-module/components/start-template-options/index.js +2 -1
  952. package/build-module/components/start-template-options/index.js.map +1 -1
  953. package/build-module/components/style-book/categories.js +1 -0
  954. package/build-module/components/style-book/categories.js.map +1 -1
  955. package/build-module/components/style-book/color-examples.js +3 -2
  956. package/build-module/components/style-book/color-examples.js.map +1 -1
  957. package/build-module/components/style-book/constants.js +8 -7
  958. package/build-module/components/style-book/constants.js.map +1 -1
  959. package/build-module/components/style-book/duotone-examples.js +3 -2
  960. package/build-module/components/style-book/duotone-examples.js.map +1 -1
  961. package/build-module/components/style-book/examples.js +2 -1
  962. package/build-module/components/style-book/examples.js.map +1 -1
  963. package/build-module/components/style-book/index.js +12 -11
  964. package/build-module/components/style-book/index.js.map +1 -1
  965. package/build-module/components/styles-canvas/index.js +2 -1
  966. package/build-module/components/styles-canvas/index.js.map +1 -1
  967. package/build-module/components/styles-canvas/revisions.js +3 -2
  968. package/build-module/components/styles-canvas/revisions.js.map +1 -1
  969. package/build-module/components/styles-canvas/style-book.js +2 -1
  970. package/build-module/components/styles-canvas/style-book.js.map +1 -1
  971. package/build-module/components/table-of-contents/index.js +2 -1
  972. package/build-module/components/table-of-contents/index.js.map +1 -1
  973. package/build-module/components/table-of-contents/panel.js +2 -1
  974. package/build-module/components/table-of-contents/panel.js.map +1 -1
  975. package/build-module/components/template-content-panel/index.js +5 -4
  976. package/build-module/components/template-content-panel/index.js.map +1 -1
  977. package/build-module/components/template-part-content-panel/index.js +3 -2
  978. package/build-module/components/template-part-content-panel/index.js.map +1 -1
  979. package/build-module/components/template-part-menu-items/convert-to-regular.js +2 -1
  980. package/build-module/components/template-part-menu-items/convert-to-regular.js.map +1 -1
  981. package/build-module/components/template-part-menu-items/convert-to-template-part.js +2 -1
  982. package/build-module/components/template-part-menu-items/convert-to-template-part.js.map +1 -1
  983. package/build-module/components/template-part-menu-items/index.js +2 -1
  984. package/build-module/components/template-part-menu-items/index.js.map +1 -1
  985. package/build-module/components/template-validation-notice/index.js +2 -1
  986. package/build-module/components/template-validation-notice/index.js.map +1 -1
  987. package/build-module/components/text-editor/index.js +2 -1
  988. package/build-module/components/text-editor/index.js.map +1 -1
  989. package/build-module/components/theme-support-check/index.js +1 -0
  990. package/build-module/components/theme-support-check/index.js.map +1 -1
  991. package/build-module/components/time-to-read/index.js +3 -2
  992. package/build-module/components/time-to-read/index.js.map +1 -1
  993. package/build-module/components/unsaved-changes-warning/index.js +1 -0
  994. package/build-module/components/unsaved-changes-warning/index.js.map +1 -1
  995. package/build-module/components/visual-editor/edit-template-blocks-notification.js +2 -1
  996. package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  997. package/build-module/components/visual-editor/index.js +24 -12
  998. package/build-module/components/visual-editor/index.js.map +2 -2
  999. package/build-module/components/visual-editor/use-select-nearest-editable-block.js +2 -1
  1000. package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
  1001. package/build-module/components/visual-editor/use-zoom-out-mode-exit.js +1 -0
  1002. package/build-module/components/visual-editor/use-zoom-out-mode-exit.js.map +1 -1
  1003. package/build-module/components/word-count/index.js +2 -1
  1004. package/build-module/components/word-count/index.js.map +1 -1
  1005. package/build-module/components/zoom-out-toggle/index.js +3 -2
  1006. package/build-module/components/zoom-out-toggle/index.js.map +1 -1
  1007. package/build-module/dataviews/api.js +1 -0
  1008. package/build-module/dataviews/api.js.map +1 -1
  1009. package/build-module/dataviews/fields/content-preview/content-preview-view.js +3 -2
  1010. package/build-module/dataviews/fields/content-preview/content-preview-view.js.map +1 -1
  1011. package/build-module/dataviews/fields/content-preview/index.js +2 -1
  1012. package/build-module/dataviews/fields/content-preview/index.js.map +1 -1
  1013. package/build-module/dataviews/store/private-actions.js +2 -1
  1014. package/build-module/dataviews/store/private-actions.js.map +1 -1
  1015. package/build-module/dataviews/store/private-selectors.js +2 -1
  1016. package/build-module/dataviews/store/private-selectors.js.map +1 -1
  1017. package/build-module/dataviews/store/reducer.js +1 -0
  1018. package/build-module/dataviews/store/reducer.js.map +1 -1
  1019. package/build-module/hooks/custom-sources-backwards-compatibility.js +3 -2
  1020. package/build-module/hooks/custom-sources-backwards-compatibility.js.map +1 -1
  1021. package/build-module/hooks/default-autocompleters.js +1 -0
  1022. package/build-module/hooks/default-autocompleters.js.map +1 -1
  1023. package/build-module/hooks/index.js +1 -0
  1024. package/build-module/hooks/index.js.map +1 -1
  1025. package/build-module/hooks/media-upload.js +2 -1
  1026. package/build-module/hooks/media-upload.js.map +1 -1
  1027. package/build-module/hooks/navigation-link-view-button.js +4 -3
  1028. package/build-module/hooks/navigation-link-view-button.js.map +1 -1
  1029. package/build-module/hooks/pattern-overrides.js +4 -3
  1030. package/build-module/hooks/pattern-overrides.js.map +1 -1
  1031. package/build-module/hooks/push-changes-to-global-styles/index.js +11 -10
  1032. package/build-module/hooks/push-changes-to-global-styles/index.js.map +1 -1
  1033. package/build-module/hooks/template-part-navigation-edit-button.js +6 -5
  1034. package/build-module/hooks/template-part-navigation-edit-button.js.map +1 -1
  1035. package/build-module/hooks/use-global-styles-output.js +1 -0
  1036. package/build-module/hooks/use-global-styles-output.js.map +1 -1
  1037. package/build-module/index.js +1 -0
  1038. package/build-module/index.js.map +1 -1
  1039. package/build-module/lock-unlock.js +2 -1
  1040. package/build-module/lock-unlock.js.map +1 -1
  1041. package/build-module/private-apis.js +3 -2
  1042. package/build-module/private-apis.js.map +1 -1
  1043. package/build-module/store/actions.js +52 -51
  1044. package/build-module/store/actions.js.map +1 -1
  1045. package/build-module/store/constants.js +14 -13
  1046. package/build-module/store/constants.js.map +1 -1
  1047. package/build-module/store/defaults.js +2 -1
  1048. package/build-module/store/defaults.js.map +1 -1
  1049. package/build-module/store/index.js +3 -2
  1050. package/build-module/store/index.js.map +1 -1
  1051. package/build-module/store/local-autosave.js +1 -0
  1052. package/build-module/store/local-autosave.js.map +1 -1
  1053. package/build-module/store/private-actions.js +15 -7
  1054. package/build-module/store/private-actions.js.map +2 -2
  1055. package/build-module/store/private-selectors.js +13 -8
  1056. package/build-module/store/private-selectors.js.map +2 -2
  1057. package/build-module/store/reducer.js +10 -0
  1058. package/build-module/store/reducer.js.map +2 -2
  1059. package/build-module/store/selectors.js +79 -78
  1060. package/build-module/store/selectors.js.map +2 -2
  1061. package/build-module/store/utils/is-template-revertable.js +1 -0
  1062. package/build-module/store/utils/is-template-revertable.js.map +1 -1
  1063. package/build-module/store/utils/notice-builder.js +1 -0
  1064. package/build-module/store/utils/notice-builder.js.map +1 -1
  1065. package/build-module/utils/get-item-title.js +1 -0
  1066. package/build-module/utils/get-item-title.js.map +1 -1
  1067. package/build-module/utils/get-template-info.js +3 -2
  1068. package/build-module/utils/get-template-info.js.map +1 -1
  1069. package/build-module/utils/get-template-part-icon.js +1 -0
  1070. package/build-module/utils/get-template-part-icon.js.map +1 -1
  1071. package/build-module/utils/index.js +1 -0
  1072. package/build-module/utils/index.js.map +1 -1
  1073. package/build-module/utils/media-sideload/index.js +2 -1
  1074. package/build-module/utils/media-sideload/index.js.map +1 -1
  1075. package/build-module/utils/media-upload/index.js +2 -1
  1076. package/build-module/utils/media-upload/index.js.map +1 -1
  1077. package/build-module/utils/pageTypeBadge.js +1 -0
  1078. package/build-module/utils/pageTypeBadge.js.map +1 -1
  1079. package/build-module/utils/search-templates.js +1 -0
  1080. package/build-module/utils/search-templates.js.map +1 -1
  1081. package/build-module/utils/set-nested-value.js +1 -0
  1082. package/build-module/utils/set-nested-value.js.map +1 -1
  1083. package/build-module/utils/terms.js +4 -3
  1084. package/build-module/utils/terms.js.map +1 -1
  1085. package/build-module/utils/url.js +1 -0
  1086. package/build-module/utils/url.js.map +1 -1
  1087. package/build-style/style-rtl.css +9 -45
  1088. package/build-style/style.css +9 -45
  1089. package/build-types/bindings/post-data.d.ts +18 -8
  1090. package/build-types/bindings/post-meta.d.ts +1 -7
  1091. package/build-types/components/collab-sidebar/add-comment.d.ts +3 -3
  1092. package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
  1093. package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts.map +1 -1
  1094. package/build-types/components/collab-sidebar/comment-menu-item.d.ts +3 -2
  1095. package/build-types/components/collab-sidebar/comment-menu-item.d.ts.map +1 -1
  1096. package/build-types/components/collab-sidebar/comments.d.ts +4 -4
  1097. package/build-types/components/collab-sidebar/comments.d.ts.map +1 -1
  1098. package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
  1099. package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
  1100. package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
  1101. package/build-types/components/start-page-options/index.d.ts.map +1 -1
  1102. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  1103. package/build-types/store/private-actions.d.ts +7 -0
  1104. package/build-types/store/private-actions.d.ts.map +1 -1
  1105. package/build-types/store/private-selectors.d.ts +7 -0
  1106. package/build-types/store/private-selectors.d.ts.map +1 -1
  1107. package/build-types/store/reducer.d.ts +10 -0
  1108. package/build-types/store/reducer.d.ts.map +1 -1
  1109. package/build-types/store/selectors.d.ts.map +1 -1
  1110. package/package.json +40 -40
  1111. package/src/bindings/post-data.js +63 -111
  1112. package/src/bindings/post-meta.js +55 -46
  1113. package/src/bindings/test/post-meta.js +211 -0
  1114. package/src/components/collab-sidebar/add-comment.js +20 -11
  1115. package/src/components/collab-sidebar/comment-author-info.js +1 -1
  1116. package/src/components/collab-sidebar/comment-indicator-toolbar.js +19 -29
  1117. package/src/components/collab-sidebar/comment-menu-item.js +51 -11
  1118. package/src/components/collab-sidebar/comments.js +87 -53
  1119. package/src/components/collab-sidebar/hooks.js +6 -4
  1120. package/src/components/collab-sidebar/index.js +75 -37
  1121. package/src/components/collab-sidebar/style.scss +7 -46
  1122. package/src/components/collab-sidebar/utils.js +3 -2
  1123. package/src/components/editor/index.js +1 -1
  1124. package/src/components/more-menu/index.js +1 -1
  1125. package/src/components/preferences-modal/index.js +1 -1
  1126. package/src/components/start-page-options/index.js +5 -6
  1127. package/src/components/start-page-options/style.scss +1 -1
  1128. package/src/components/visual-editor/index.js +27 -6
  1129. package/src/store/private-actions.js +13 -0
  1130. package/src/store/private-selectors.js +10 -0
  1131. package/src/store/reducer.js +16 -0
  1132. package/src/store/selectors.js +0 -2
  1133. package/tsconfig.tsbuildinfo +1 -1
@@ -1,8 +1,12 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { ToolbarButton } from '@wordpress/components';
5
- import { __, _n, sprintf } from '@wordpress/i18n';
4
+ import {
5
+ ToolbarButton,
6
+ __experimentalText as Text,
7
+ __experimentalHStack as HStack,
8
+ } from '@wordpress/components';
9
+ import { __, sprintf } from '@wordpress/i18n';
6
10
  import { useMemo } from '@wordpress/element';
7
11
  import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
8
12
 
@@ -49,10 +53,16 @@ const CommentAvatarIndicator = ( { onClick, thread } ) => {
49
53
  return null;
50
54
  }
51
55
 
52
- // Show up to 3 avatars, with overflow indicator.
56
+ // If there are more than 3 participants, show 2 avatars and a "+n" number.
53
57
  const maxAvatars = 3;
54
- const visibleParticipants = threadParticipants.slice( 0, maxAvatars );
55
- const overflowCount = Math.max( 0, threadParticipants.length - maxAvatars );
58
+ const isOverflow = threadParticipants.length > maxAvatars;
59
+ const visibleParticipants = isOverflow
60
+ ? threadParticipants.slice( 0, maxAvatars - 1 )
61
+ : threadParticipants;
62
+ const overflowCount = Math.max(
63
+ 0,
64
+ threadParticipants.length - visibleParticipants.length
65
+ );
56
66
  const threadHasMoreParticipants = threadParticipants.length > 100;
57
67
 
58
68
  // If we hit the comment limit, show "100+" instead of exact overflow count.
@@ -65,19 +75,6 @@ const CommentAvatarIndicator = ( { onClick, thread } ) => {
65
75
  overflowCount
66
76
  );
67
77
 
68
- const overflowTitle =
69
- threadHasMoreParticipants && overflowCount > 0
70
- ? __( '100+ participants' )
71
- : sprintf(
72
- // translators: %s: Number of participants.
73
- _n(
74
- '+%s more participant',
75
- '+%s more participants',
76
- overflowCount
77
- ),
78
- overflowCount
79
- );
80
-
81
78
  return (
82
79
  <CommentIconToolbarSlotFill.Fill>
83
80
  <ToolbarButton
@@ -86,15 +83,14 @@ const CommentAvatarIndicator = ( { onClick, thread } ) => {
86
83
  onClick={ onClick }
87
84
  showTooltip
88
85
  >
89
- <div className="comment-avatar-stack">
90
- { visibleParticipants.map( ( participant, index ) => (
86
+ <HStack spacing="1">
87
+ { visibleParticipants.map( ( participant ) => (
91
88
  <img
92
89
  key={ participant.id }
93
90
  src={ participant.avatar }
94
91
  alt={ participant.name }
95
92
  className="comment-avatar"
96
93
  style={ {
97
- zIndex: maxAvatars - index,
98
94
  borderColor: getAvatarBorderColor(
99
95
  participant.id
100
96
  ),
@@ -102,15 +98,9 @@ const CommentAvatarIndicator = ( { onClick, thread } ) => {
102
98
  />
103
99
  ) ) }
104
100
  { overflowCount > 0 && (
105
- <div
106
- className="comment-avatar-overflow"
107
- style={ { zIndex: 0 } }
108
- title={ overflowTitle }
109
- >
110
- { overflowText }
111
- </div>
101
+ <Text weight={ 500 }>{ overflowText }</Text>
112
102
  ) }
113
- </div>
103
+ </HStack>
114
104
  </ToolbarButton>
115
105
  </CommentIconToolbarSlotFill.Fill>
116
106
  );
@@ -4,8 +4,12 @@
4
4
  import { MenuItem } from '@wordpress/components';
5
5
  import { __ } from '@wordpress/i18n';
6
6
  import { comment as commentIcon } from '@wordpress/icons';
7
-
8
- import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
7
+ import {
8
+ privateApis as blockEditorPrivateApis,
9
+ store as blockEditorStore,
10
+ } from '@wordpress/block-editor';
11
+ import { useSelect } from '@wordpress/data';
12
+ import { getUnregisteredTypeHandlerName } from '@wordpress/blocks';
9
13
 
10
14
  /**
11
15
  * Internal dependencies
@@ -14,23 +18,59 @@ import { unlock } from '../../lock-unlock';
14
18
 
15
19
  const { CommentIconSlotFill } = unlock( blockEditorPrivateApis );
16
20
 
17
- const AddCommentMenuItem = ( { onClick } ) => {
21
+ const AddCommentMenuItem = ( { clientId, onClick, isDistractionFree } ) => {
22
+ const block = useSelect(
23
+ ( select ) => {
24
+ return select( blockEditorStore ).getBlock( clientId );
25
+ },
26
+ [ clientId ]
27
+ );
28
+
29
+ if (
30
+ ! block?.isValid ||
31
+ block?.name === getUnregisteredTypeHandlerName()
32
+ ) {
33
+ return null;
34
+ }
35
+
36
+ const isDisabled = isDistractionFree || block?.name === 'core/freeform';
37
+
38
+ let infoText;
39
+
40
+ if ( isDistractionFree ) {
41
+ infoText = __( 'Notes are disabled in distraction free mode.' );
42
+ } else if ( block?.name === 'core/freeform' ) {
43
+ infoText = __( 'Convert to blocks to add notes.' );
44
+ }
45
+
46
+ return (
47
+ <MenuItem
48
+ icon={ commentIcon }
49
+ onClick={ onClick }
50
+ aria-haspopup="dialog"
51
+ disabled={ isDisabled }
52
+ info={ infoText }
53
+ >
54
+ { __( 'Add note' ) }
55
+ </MenuItem>
56
+ );
57
+ };
58
+
59
+ const AddCommentMenuItemFill = ( { onClick, isDistractionFree } ) => {
18
60
  return (
19
61
  <CommentIconSlotFill.Fill>
20
- { ( { onClose } ) => (
21
- <MenuItem
22
- icon={ commentIcon }
62
+ { ( { clientId, onClose } ) => (
63
+ <AddCommentMenuItem
64
+ clientId={ clientId }
65
+ isDistractionFree={ isDistractionFree }
23
66
  onClick={ () => {
24
67
  onClick();
25
68
  onClose();
26
69
  } }
27
- aria-haspopup="dialog"
28
- >
29
- { __( 'Add note' ) }
30
- </MenuItem>
70
+ />
31
71
  ) }
32
72
  </CommentIconSlotFill.Fill>
33
73
  );
34
74
  };
35
75
 
36
- export default AddCommentMenuItem;
76
+ export default AddCommentMenuItemFill;
@@ -12,6 +12,7 @@ import {
12
12
  useEffect,
13
13
  useCallback,
14
14
  useMemo,
15
+ useRef,
15
16
  } from '@wordpress/element';
16
17
  import {
17
18
  __experimentalText as Text,
@@ -42,6 +43,7 @@ import CommentForm from './comment-form';
42
43
  import { focusCommentThread, getCommentExcerpt } from './utils';
43
44
  import { useFloatingThread } from './hooks';
44
45
  import { AddComment } from './add-comment';
46
+ import { store as editorStore } from '../../store';
45
47
 
46
48
  const { useBlockElement } = unlock( blockEditorPrivateApis );
47
49
  const { Menu } = unlock( componentsPrivateApis );
@@ -51,8 +53,8 @@ export function Comments( {
51
53
  onEditComment,
52
54
  onAddReply,
53
55
  onCommentDelete,
54
- showCommentBoard,
55
- setShowCommentBoard,
56
+ newNoteFormState,
57
+ setNewNoteFormState,
56
58
  commentSidebarRef,
57
59
  reflowComments,
58
60
  isFloating = false,
@@ -63,17 +65,21 @@ export function Comments( {
63
65
  const [ boardOffsets, setBoardOffsets ] = useState( {} );
64
66
  const [ blockRefs, setBlockRefs ] = useState( {} );
65
67
 
68
+ const { setCanvasMinHeight } = unlock( useDispatch( editorStore ) );
66
69
  const { blockCommentId, selectedBlockClientId, orderedBlockIds } =
67
70
  useSelect( ( select ) => {
68
- const { getBlockAttributes, getSelectedBlockClientId } =
69
- select( blockEditorStore );
71
+ const {
72
+ getBlockAttributes,
73
+ getSelectedBlockClientId,
74
+ getClientIdsWithDescendants,
75
+ } = select( blockEditorStore );
70
76
  const clientId = getSelectedBlockClientId();
71
77
  return {
72
78
  blockCommentId: clientId
73
79
  ? getBlockAttributes( clientId )?.metadata?.noteId
74
80
  : null,
75
81
  selectedBlockClientId: clientId,
76
- orderedBlockIds: select( blockEditorStore ).getBlockOrder(),
82
+ orderedBlockIds: getClientIdsWithDescendants(),
77
83
  };
78
84
  }, [] );
79
85
 
@@ -87,7 +93,11 @@ export function Comments( {
87
93
  // add a "new note" entry to the threads. This special thread type
88
94
  // gets sorted and floated like regular threads, but shows an AddComment
89
95
  // component instead of a regular comment thread.
90
- if ( isFloating && showCommentBoard && undefined === blockCommentId ) {
96
+ if (
97
+ isFloating &&
98
+ newNoteFormState === 'open' &&
99
+ undefined === blockCommentId
100
+ ) {
91
101
  // Insert the new note entry at the correct location for its blockId.
92
102
  const newNoteThread = {
93
103
  id: 'new-note-thread',
@@ -113,7 +123,7 @@ export function Comments( {
113
123
  }, [
114
124
  noteThreads,
115
125
  isFloating,
116
- showCommentBoard,
126
+ newNoteFormState,
117
127
  blockCommentId,
118
128
  selectedBlockClientId,
119
129
  orderedBlockIds,
@@ -141,7 +151,7 @@ export function Comments( {
141
151
  focusCommentThread( prevThread.id, commentSidebarRef.current );
142
152
  } else {
143
153
  setSelectedThread( null );
144
- setShowCommentBoard( false );
154
+ setNewNoteFormState( 'closed' );
145
155
  // Move focus to the related block.
146
156
  relatedBlockElement?.focus();
147
157
  }
@@ -149,8 +159,10 @@ export function Comments( {
149
159
 
150
160
  // Auto-select the related comment thread when a block is selected.
151
161
  useEffect( () => {
152
- setSelectedThread( blockCommentId ?? undefined );
153
- }, [ blockCommentId ] );
162
+ // Fallback to 'new-note-thread' when showing the comment board for a new note.
163
+ const fallback = newNoteFormState === 'open' ? 'new-note-thread' : null;
164
+ setSelectedThread( blockCommentId ?? fallback );
165
+ }, [ blockCommentId, newNoteFormState ] );
154
166
 
155
167
  const setBlockRef = useCallback( ( id, blockRef ) => {
156
168
  setBlockRefs( ( prev ) => ( { ...prev, [ id ]: blockRef } ) );
@@ -166,7 +178,7 @@ export function Comments( {
166
178
  const offsets = {};
167
179
 
168
180
  if ( ! isFloating ) {
169
- return offsets;
181
+ return { offsets, minHeight: 0 };
170
182
  }
171
183
 
172
184
  // Find the index of the selected thread.
@@ -184,7 +196,7 @@ export function Comments( {
184
196
  ! selectedThreadData ||
185
197
  ! blockRefs[ selectedThreadData.id ]
186
198
  ) {
187
- return offsets;
199
+ return { offsets, minHeight: 0 };
188
200
  }
189
201
 
190
202
  let blockElement = blockRefs[ selectedThreadData.id ];
@@ -271,41 +283,52 @@ export function Comments( {
271
283
  threadTop: threadTop + additionalOffset,
272
284
  };
273
285
  }
274
- return offsets;
286
+
287
+ let editorMinHeight = 0;
288
+ // Take the calculated top of the final note plus its height as the editor min height.
289
+ const lastThread = threads[ threads.length - 1 ];
290
+ if ( blockRefs[ lastThread.id ] ) {
291
+ const lastBlockElement = blockRefs[ lastThread.id ];
292
+ const lastBlockRect = lastBlockElement?.getBoundingClientRect();
293
+ const lastThreadTop = lastBlockRect?.top || 0;
294
+ const lastThreadHeight = heights[ lastThread.id ] || 0;
295
+ const lastThreadOffset = offsets[ lastThread.id ] || 0;
296
+ editorMinHeight =
297
+ lastThreadTop + lastThreadHeight + lastThreadOffset + 32;
298
+ }
299
+
300
+ return { offsets, minHeight: editorMinHeight };
275
301
  };
276
- const newOffsets = calculateAllOffsets();
302
+ const { offsets: newOffsets, minHeight } = calculateAllOffsets();
277
303
  if ( Object.keys( newOffsets ).length > 0 ) {
278
304
  setBoardOffsets( newOffsets );
279
305
  }
280
- }, [ heights, blockRefs, isFloating, threads, selectedThread ] );
306
+ // Ensure the editor has enough height to scroll to all notes.
307
+ setCanvasMinHeight( minHeight );
308
+ }, [
309
+ heights,
310
+ blockRefs,
311
+ isFloating,
312
+ threads,
313
+ selectedThread,
314
+ setCanvasMinHeight,
315
+ ] );
281
316
 
282
317
  const hasThreads = Array.isArray( threads ) && threads.length > 0;
318
+ // This should no longer happen since https://github.com/WordPress/gutenberg/pull/72872.
283
319
  if ( ! hasThreads && ! isFloating ) {
284
- return (
285
- <>
286
- <AddComment
287
- onSubmit={ onAddReply }
288
- showCommentBoard={ showCommentBoard }
289
- setShowCommentBoard={ setShowCommentBoard }
290
- commentSidebarRef={ commentSidebarRef }
291
- />
292
- <Text as="p">{ __( 'No notes available.' ) }</Text>
293
- <Text as="p" variant="muted">
294
- { __( 'Only logged in users can see Notes.' ) }
295
- </Text>
296
- </>
297
- );
320
+ return null;
298
321
  }
299
322
 
300
323
  return (
301
324
  <>
302
325
  { ! isFloating &&
303
- showCommentBoard &&
326
+ newNoteFormState === 'open' &&
304
327
  undefined === blockCommentId && (
305
328
  <AddComment
306
329
  onSubmit={ onAddReply }
307
- showCommentBoard={ showCommentBoard }
308
- setShowCommentBoard={ setShowCommentBoard }
330
+ newNoteFormState={ newNoteFormState }
331
+ setNewNoteFormState={ setNewNoteFormState }
309
332
  commentSidebarRef={ commentSidebarRef }
310
333
  />
311
334
  ) }
@@ -318,7 +341,7 @@ export function Comments( {
318
341
  onEditComment={ onEditComment }
319
342
  isSelected={ selectedThread === thread.id }
320
343
  setSelectedThread={ setSelectedThread }
321
- setShowCommentBoard={ setShowCommentBoard }
344
+ setNewNoteFormState={ setNewNoteFormState }
322
345
  commentSidebarRef={ commentSidebarRef }
323
346
  reflowComments={ reflowComments }
324
347
  isFloating={ isFloating }
@@ -327,7 +350,7 @@ export function Comments( {
327
350
  setBlockRef={ setBlockRef }
328
351
  selectedThread={ selectedThread }
329
352
  commentLastUpdated={ commentLastUpdated }
330
- showCommentBoard={ showCommentBoard }
353
+ newNoteFormState={ newNoteFormState }
331
354
  />
332
355
  ) ) }
333
356
  </>
@@ -340,7 +363,7 @@ function Thread( {
340
363
  onAddReply,
341
364
  onCommentDelete,
342
365
  isSelected,
343
- setShowCommentBoard,
366
+ setNewNoteFormState,
344
367
  commentSidebarRef,
345
368
  reflowComments,
346
369
  isFloating,
@@ -350,7 +373,7 @@ function Thread( {
350
373
  setSelectedThread,
351
374
  selectedThread,
352
375
  commentLastUpdated,
353
- showCommentBoard,
376
+ newNoteFormState,
354
377
  } ) {
355
378
  const { toggleBlockHighlight, selectBlock, toggleBlockSpotlight } = unlock(
356
379
  useDispatch( blockEditorStore )
@@ -378,7 +401,7 @@ function Thread( {
378
401
  };
379
402
 
380
403
  const handleCommentSelect = () => {
381
- setShowCommentBoard( false );
404
+ setNewNoteFormState( 'closed' );
382
405
  setSelectedThread( thread.id );
383
406
  if ( !! thread.blockClientId ) {
384
407
  // Pass `null` as the second parameter to prevent focusing the block.
@@ -389,7 +412,7 @@ function Thread( {
389
412
 
390
413
  const unselectThread = () => {
391
414
  setSelectedThread( null );
392
- setShowCommentBoard( false );
415
+ setNewNoteFormState( 'closed' );
393
416
  toggleBlockSpotlight( thread.blockClientId, false );
394
417
  };
395
418
 
@@ -415,12 +438,16 @@ function Thread( {
415
438
  commentExcerpt
416
439
  );
417
440
 
418
- if ( 'new-note-thread' === thread.id && showCommentBoard && isFloating ) {
441
+ if (
442
+ thread.id === 'new-note-thread' &&
443
+ newNoteFormState === 'open' &&
444
+ isFloating
445
+ ) {
419
446
  return (
420
447
  <AddComment
421
448
  onSubmit={ onAddReply }
422
- showCommentBoard={ showCommentBoard }
423
- setShowCommentBoard={ setShowCommentBoard }
449
+ newNoteFormState={ newNoteFormState }
450
+ setNewNoteFormState={ setNewNoteFormState }
424
451
  commentSidebarRef={ commentSidebarRef }
425
452
  reflowComments={ reflowComments }
426
453
  isFloating={ isFloating }
@@ -431,8 +458,6 @@ function Thread( {
431
458
  }
432
459
 
433
460
  return (
434
- // Disable reason: role="listitem" does in fact support aria-expanded.
435
- // eslint-disable-next-line jsx-a11y/role-supports-aria-props
436
461
  <VStack
437
462
  className={ clsx( 'editor-collab-sidebar-panel__thread', {
438
463
  'is-selected': isSelected,
@@ -467,7 +492,7 @@ function Thread( {
467
492
  }
468
493
  } }
469
494
  tabIndex={ 0 }
470
- role="listitem"
495
+ role="treeitem"
471
496
  aria-label={ ariaLabel }
472
497
  aria-expanded={ isSelected }
473
498
  ref={ isFloating ? refs.setFloating : undefined }
@@ -496,14 +521,17 @@ function Thread( {
496
521
  thread={ thread }
497
522
  isExpanded={ isSelected }
498
523
  onEdit={ ( params = {} ) => {
499
- const { status } = params;
500
524
  onEditComment( params );
501
- if ( status === 'approved' ) {
525
+ if ( params.status === 'approved' ) {
502
526
  unselectThread();
503
- focusCommentThread(
504
- thread.id,
505
- commentSidebarRef.current
506
- );
527
+ if ( isFloating ) {
528
+ relatedBlockElement?.focus();
529
+ } else {
530
+ focusCommentThread(
531
+ thread.id,
532
+ commentSidebarRef.current
533
+ );
534
+ }
507
535
  }
508
536
  } }
509
537
  onDelete={ onCommentDelete }
@@ -558,7 +586,7 @@ function Thread( {
558
586
  />
559
587
  ) }
560
588
  { isSelected && (
561
- <VStack spacing="2">
589
+ <VStack spacing="2" role="treeitem">
562
590
  <HStack alignment="left" spacing="3" justify="flex-start">
563
591
  <CommentAuthorInfo />
564
592
  </HStack>
@@ -633,7 +661,7 @@ const CommentBoard = ( {
633
661
  } ) => {
634
662
  const [ actionState, setActionState ] = useState( false );
635
663
  const [ showConfirmDialog, setShowConfirmDialog ] = useState( false );
636
-
664
+ const actionButtonRef = useRef( null );
637
665
  const handleConfirmDelete = () => {
638
666
  onDelete( thread );
639
667
  setActionState( false );
@@ -643,6 +671,7 @@ const CommentBoard = ( {
643
671
  const handleCancel = () => {
644
672
  setActionState( false );
645
673
  setShowConfirmDialog( false );
674
+ actionButtonRef.current?.focus();
646
675
  };
647
676
 
648
677
  // Check if this is a resolution comment by checking metadata.
@@ -687,7 +716,10 @@ const CommentBoard = ( {
687
716
  : [];
688
717
 
689
718
  return (
690
- <VStack spacing="2">
719
+ <VStack
720
+ spacing="2"
721
+ role={ thread.parent !== 0 ? 'treeitem' : undefined }
722
+ >
691
723
  <HStack alignment="left" spacing="3" justify="flex-start">
692
724
  <CommentAuthorInfo
693
725
  avatar={ thread?.author_avatar_urls?.[ 48 ] }
@@ -728,6 +760,7 @@ const CommentBoard = ( {
728
760
  <Menu.TriggerButton
729
761
  render={
730
762
  <Button
763
+ ref={ actionButtonRef }
731
764
  size="small"
732
765
  icon={ moreVertical }
733
766
  label={ __( 'Actions' ) }
@@ -761,6 +794,7 @@ const CommentBoard = ( {
761
794
  content: value,
762
795
  } );
763
796
  setActionState( false );
797
+ actionButtonRef.current?.focus();
764
798
  } }
765
799
  onCancel={ () => handleCancel() }
766
800
  thread={ thread }
@@ -70,6 +70,10 @@ export function useBlockComments( postId ) {
70
70
 
71
71
  // Process comments to build the tree structure.
72
72
  const { resultComments, unresolvedSortedThreads } = useMemo( () => {
73
+ if ( ! threads || threads.length === 0 ) {
74
+ return { resultComments: [], unresolvedSortedThreads: [] };
75
+ }
76
+
73
77
  const blocksWithComments = clientIds.reduce( ( results, clientId ) => {
74
78
  const commentId = getBlockAttributes( clientId )?.metadata?.noteId;
75
79
  if ( commentId ) {
@@ -82,10 +86,8 @@ export function useBlockComments( postId ) {
82
86
  const compare = {};
83
87
  const result = [];
84
88
 
85
- const allComments = threads ?? [];
86
-
87
89
  // Initialize each object with an empty `reply` array and map blockClientId.
88
- allComments.forEach( ( item ) => {
90
+ threads.forEach( ( item ) => {
89
91
  const itemBlock = Object.keys( blocksWithComments ).find(
90
92
  ( key ) => blocksWithComments[ key ] === item.id
91
93
  );
@@ -98,7 +100,7 @@ export function useBlockComments( postId ) {
98
100
  } );
99
101
 
100
102
  // Iterate over the data to build the tree structure.
101
- allComments.forEach( ( item ) => {
103
+ threads.forEach( ( item ) => {
102
104
  if ( item.parent === 0 ) {
103
105
  // If parent is 0, it's a root item, push it to the result array.
104
106
  result.push( compare[ item.id ] );