@wordpress/editor 14.3.0 → 14.4.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 (400) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -1
  3. package/build/bindings/api.js +65 -0
  4. package/build/bindings/api.js.map +1 -0
  5. package/build/bindings/pattern-overrides.js +23 -13
  6. package/build/bindings/pattern-overrides.js.map +1 -1
  7. package/build/bindings/post-meta.js +23 -12
  8. package/build/bindings/post-meta.js.map +1 -1
  9. package/build/components/block-settings-menu/content-only-settings-menu.js +4 -1
  10. package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  11. package/build/components/blog-title/index.js +6 -2
  12. package/build/components/blog-title/index.js.map +1 -1
  13. package/build/components/collapsible-block-toolbar/index.js +2 -3
  14. package/build/components/collapsible-block-toolbar/index.js.map +1 -1
  15. package/build/components/global-styles-provider/index.js +15 -3
  16. package/build/components/global-styles-provider/index.js.map +1 -1
  17. package/build/components/header/back-button.js +7 -8
  18. package/build/components/header/back-button.js.map +1 -1
  19. package/build/components/header/index.js +19 -17
  20. package/build/components/header/index.js.map +1 -1
  21. package/build/components/page-attributes/order.js +1 -67
  22. package/build/components/page-attributes/order.js.map +1 -1
  23. package/build/components/page-attributes/panel.js +1 -4
  24. package/build/components/page-attributes/panel.js.map +1 -1
  25. package/build/components/post-actions/actions.js +126 -33
  26. package/build/components/post-actions/actions.js.map +1 -1
  27. package/build/components/post-card-panel/index.js +8 -2
  28. package/build/components/post-card-panel/index.js.map +1 -1
  29. package/build/components/post-comments/index.js +1 -1
  30. package/build/components/post-comments/index.js.map +1 -1
  31. package/build/components/post-content-information/index.js +7 -1
  32. package/build/components/post-content-information/index.js.map +1 -1
  33. package/build/components/post-discussion/panel.js +2 -2
  34. package/build/components/post-discussion/panel.js.map +1 -1
  35. package/build/components/post-excerpt/panel.js +1 -1
  36. package/build/components/post-excerpt/panel.js.map +1 -1
  37. package/build/components/post-featured-image/index.js +3 -1
  38. package/build/components/post-featured-image/index.js.map +1 -1
  39. package/build/components/post-last-revision/index.js +2 -1
  40. package/build/components/post-last-revision/index.js.map +1 -1
  41. package/build/components/post-publish-button/index.js +4 -11
  42. package/build/components/post-publish-button/index.js.map +1 -1
  43. package/build/components/post-publish-panel/maybe-category-panel.js +4 -1
  44. package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  45. package/build/components/post-publish-panel/maybe-tags-panel.js +2 -1
  46. package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  47. package/build/components/post-status/index.js +30 -10
  48. package/build/components/post-status/index.js.map +1 -1
  49. package/build/components/post-taxonomies/flat-term-selector.js +17 -6
  50. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  51. package/build/components/post-taxonomies/index.js +7 -1
  52. package/build/components/post-taxonomies/index.js.map +1 -1
  53. package/build/components/post-template/block-theme.js +4 -4
  54. package/build/components/post-template/block-theme.js.map +1 -1
  55. package/build/components/post-template/classic-theme.js +8 -2
  56. package/build/components/post-template/classic-theme.js.map +1 -1
  57. package/build/components/post-template/create-new-template.js +4 -1
  58. package/build/components/post-template/create-new-template.js.map +1 -1
  59. package/build/components/post-template/hooks.js +5 -1
  60. package/build/components/post-template/hooks.js.map +1 -1
  61. package/build/components/post-template/panel.js +8 -2
  62. package/build/components/post-template/panel.js.map +1 -1
  63. package/build/components/post-trash/check.js +6 -4
  64. package/build/components/post-trash/check.js.map +1 -1
  65. package/build/components/post-url/panel.js +6 -2
  66. package/build/components/post-url/panel.js.map +1 -1
  67. package/build/components/posts-per-page/index.js +6 -2
  68. package/build/components/posts-per-page/index.js.map +1 -1
  69. package/build/components/provider/use-block-editor-settings.js +15 -6
  70. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  71. package/build/components/save-publish-panels/index.js +1 -2
  72. package/build/components/save-publish-panels/index.js.map +1 -1
  73. package/build/components/sidebar/index.js +3 -9
  74. package/build/components/sidebar/index.js.map +1 -1
  75. package/build/components/site-discussion/index.js +7 -3
  76. package/build/components/site-discussion/index.js.map +1 -1
  77. package/build/components/template-content-panel/index.js +5 -5
  78. package/build/components/template-content-panel/index.js.map +1 -1
  79. package/build/components/visual-editor/edit-template-blocks-notification.js +4 -4
  80. package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  81. package/build/components/visual-editor/index.js +5 -2
  82. package/build/components/visual-editor/index.js.map +1 -1
  83. package/build/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
  84. package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
  85. package/build/dataviews/actions/delete-post.js +2 -0
  86. package/build/dataviews/actions/delete-post.js.map +1 -1
  87. package/build/hooks/pattern-overrides.js +1 -1
  88. package/build/hooks/pattern-overrides.js.map +1 -1
  89. package/build/index.js +0 -1
  90. package/build/index.js.map +1 -1
  91. package/build/private-apis.js +3 -0
  92. package/build/private-apis.js.map +1 -1
  93. package/build/utils/media-upload/index.js +35 -2
  94. package/build/utils/media-upload/index.js.map +1 -1
  95. package/build-module/bindings/api.js +57 -0
  96. package/build-module/bindings/api.js.map +1 -0
  97. package/build-module/bindings/pattern-overrides.js +23 -13
  98. package/build-module/bindings/pattern-overrides.js.map +1 -1
  99. package/build-module/bindings/post-meta.js +23 -12
  100. package/build-module/bindings/post-meta.js.map +1 -1
  101. package/build-module/components/block-settings-menu/content-only-settings-menu.js +4 -1
  102. package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  103. package/build-module/components/blog-title/index.js +6 -2
  104. package/build-module/components/blog-title/index.js.map +1 -1
  105. package/build-module/components/collapsible-block-toolbar/index.js +1 -2
  106. package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
  107. package/build-module/components/global-styles-provider/index.js +15 -3
  108. package/build-module/components/global-styles-provider/index.js.map +1 -1
  109. package/build-module/components/header/back-button.js +5 -7
  110. package/build-module/components/header/back-button.js.map +1 -1
  111. package/build-module/components/header/index.js +19 -19
  112. package/build-module/components/header/index.js.map +1 -1
  113. package/build-module/components/page-attributes/order.js +4 -70
  114. package/build-module/components/page-attributes/order.js.map +1 -1
  115. package/build-module/components/page-attributes/panel.js +1 -6
  116. package/build-module/components/page-attributes/panel.js.map +1 -1
  117. package/build-module/components/post-actions/actions.js +127 -34
  118. package/build-module/components/post-actions/actions.js.map +1 -1
  119. package/build-module/components/post-card-panel/index.js +8 -2
  120. package/build-module/components/post-card-panel/index.js.map +1 -1
  121. package/build-module/components/post-comments/index.js +2 -2
  122. package/build-module/components/post-comments/index.js.map +1 -1
  123. package/build-module/components/post-content-information/index.js +7 -1
  124. package/build-module/components/post-content-information/index.js.map +1 -1
  125. package/build-module/components/post-discussion/panel.js +3 -3
  126. package/build-module/components/post-discussion/panel.js.map +1 -1
  127. package/build-module/components/post-excerpt/panel.js +1 -1
  128. package/build-module/components/post-excerpt/panel.js.map +1 -1
  129. package/build-module/components/post-featured-image/index.js +3 -1
  130. package/build-module/components/post-featured-image/index.js.map +1 -1
  131. package/build-module/components/post-last-revision/index.js +2 -1
  132. package/build-module/components/post-last-revision/index.js.map +1 -1
  133. package/build-module/components/post-publish-button/index.js +4 -11
  134. package/build-module/components/post-publish-button/index.js.map +1 -1
  135. package/build-module/components/post-publish-panel/maybe-category-panel.js +4 -1
  136. package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  137. package/build-module/components/post-publish-panel/maybe-tags-panel.js +2 -1
  138. package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  139. package/build-module/components/post-status/index.js +30 -10
  140. package/build-module/components/post-status/index.js.map +1 -1
  141. package/build-module/components/post-taxonomies/flat-term-selector.js +17 -6
  142. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  143. package/build-module/components/post-taxonomies/index.js +7 -1
  144. package/build-module/components/post-taxonomies/index.js.map +1 -1
  145. package/build-module/components/post-template/block-theme.js +4 -4
  146. package/build-module/components/post-template/block-theme.js.map +1 -1
  147. package/build-module/components/post-template/classic-theme.js +8 -2
  148. package/build-module/components/post-template/classic-theme.js.map +1 -1
  149. package/build-module/components/post-template/create-new-template.js +4 -1
  150. package/build-module/components/post-template/create-new-template.js.map +1 -1
  151. package/build-module/components/post-template/hooks.js +5 -1
  152. package/build-module/components/post-template/hooks.js.map +1 -1
  153. package/build-module/components/post-template/panel.js +8 -2
  154. package/build-module/components/post-template/panel.js.map +1 -1
  155. package/build-module/components/post-trash/check.js +6 -4
  156. package/build-module/components/post-trash/check.js.map +1 -1
  157. package/build-module/components/post-url/panel.js +6 -2
  158. package/build-module/components/post-url/panel.js.map +1 -1
  159. package/build-module/components/posts-per-page/index.js +6 -2
  160. package/build-module/components/posts-per-page/index.js.map +1 -1
  161. package/build-module/components/provider/use-block-editor-settings.js +15 -6
  162. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  163. package/build-module/components/save-publish-panels/index.js +1 -2
  164. package/build-module/components/save-publish-panels/index.js.map +1 -1
  165. package/build-module/components/sidebar/index.js +3 -9
  166. package/build-module/components/sidebar/index.js.map +1 -1
  167. package/build-module/components/site-discussion/index.js +8 -4
  168. package/build-module/components/site-discussion/index.js.map +1 -1
  169. package/build-module/components/template-content-panel/index.js +5 -5
  170. package/build-module/components/template-content-panel/index.js.map +1 -1
  171. package/build-module/components/visual-editor/edit-template-blocks-notification.js +4 -4
  172. package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  173. package/build-module/components/visual-editor/index.js +5 -2
  174. package/build-module/components/visual-editor/index.js.map +1 -1
  175. package/build-module/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
  176. package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
  177. package/build-module/dataviews/actions/delete-post.js +2 -0
  178. package/build-module/dataviews/actions/delete-post.js.map +1 -1
  179. package/build-module/hooks/pattern-overrides.js +1 -1
  180. package/build-module/hooks/pattern-overrides.js.map +1 -1
  181. package/build-module/index.js +0 -1
  182. package/build-module/index.js.map +1 -1
  183. package/build-module/private-apis.js +3 -0
  184. package/build-module/private-apis.js.map +1 -1
  185. package/build-module/utils/media-upload/index.js +36 -3
  186. package/build-module/utils/media-upload/index.js.map +1 -1
  187. package/build-style/style-rtl.css +78 -42
  188. package/build-style/style.css +78 -42
  189. package/build-types/bindings/api.d.ts +25 -0
  190. package/build-types/bindings/api.d.ts.map +1 -0
  191. package/build-types/bindings/pattern-overrides.d.ts +5 -6
  192. package/build-types/bindings/pattern-overrides.d.ts.map +1 -1
  193. package/build-types/bindings/post-meta.d.ts +5 -7
  194. package/build-types/bindings/post-meta.d.ts.map +1 -1
  195. package/build-types/components/autocompleters/user.d.ts +2 -2
  196. package/build-types/components/autocompleters/user.d.ts.map +1 -1
  197. package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
  198. package/build-types/components/blog-title/index.d.ts.map +1 -1
  199. package/build-types/components/collapsible-block-toolbar/index.d.ts +1 -2
  200. package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -1
  201. package/build-types/components/document-bar/index.d.ts.map +1 -1
  202. package/build-types/components/document-outline/check.d.ts.map +1 -1
  203. package/build-types/components/document-outline/index.d.ts.map +1 -1
  204. package/build-types/components/editor-history/redo.d.ts +1 -1
  205. package/build-types/components/editor-history/undo.d.ts +1 -1
  206. package/build-types/components/editor-notices/index.d.ts.map +1 -1
  207. package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
  208. package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
  209. package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
  210. package/build-types/components/header/back-button.d.ts +1 -0
  211. package/build-types/components/header/back-button.d.ts.map +1 -1
  212. package/build-types/components/header/index.d.ts.map +1 -1
  213. package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -1
  214. package/build-types/components/media-categories/index.d.ts.map +1 -1
  215. package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
  216. package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
  217. package/build-types/components/page-attributes/check.d.ts.map +1 -1
  218. package/build-types/components/page-attributes/order.d.ts +1 -1
  219. package/build-types/components/page-attributes/order.d.ts.map +1 -1
  220. package/build-types/components/page-attributes/panel.d.ts.map +1 -1
  221. package/build-types/components/page-attributes/parent.d.ts.map +1 -1
  222. package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
  223. package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
  224. package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
  225. package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
  226. package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
  227. package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
  228. package/build-types/components/post-actions/actions.d.ts.map +1 -1
  229. package/build-types/components/post-author/check.d.ts.map +1 -1
  230. package/build-types/components/post-author/index.d.ts.map +1 -1
  231. package/build-types/components/post-author/panel.d.ts.map +1 -1
  232. package/build-types/components/post-card-panel/index.d.ts.map +1 -1
  233. package/build-types/components/post-content-information/index.d.ts.map +1 -1
  234. package/build-types/components/post-discussion/panel.d.ts.map +1 -1
  235. package/build-types/components/post-excerpt/check.d.ts.map +1 -1
  236. package/build-types/components/post-excerpt/index.d.ts.map +1 -1
  237. package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
  238. package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
  239. package/build-types/components/post-featured-image/check.d.ts.map +1 -1
  240. package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
  241. package/build-types/components/post-format/index.d.ts.map +1 -1
  242. package/build-types/components/post-format/panel.d.ts.map +1 -1
  243. package/build-types/components/post-last-revision/check.d.ts.map +1 -1
  244. package/build-types/components/post-last-revision/index.d.ts.map +1 -1
  245. package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
  246. package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
  247. package/build-types/components/post-pending-status/check.d.ts.map +1 -1
  248. package/build-types/components/post-pending-status/index.d.ts.map +1 -1
  249. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  250. package/build-types/components/post-publish-button/index.d.ts.map +1 -1
  251. package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -1
  252. package/build-types/components/post-saved-state/index.d.ts +1 -1
  253. package/build-types/components/post-saved-state/index.d.ts.map +1 -1
  254. package/build-types/components/post-schedule/check.d.ts.map +1 -1
  255. package/build-types/components/post-schedule/index.d.ts.map +1 -1
  256. package/build-types/components/post-schedule/label.d.ts.map +1 -1
  257. package/build-types/components/post-schedule/panel.d.ts.map +1 -1
  258. package/build-types/components/post-slug/check.d.ts.map +1 -1
  259. package/build-types/components/post-slug/index.d.ts.map +1 -1
  260. package/build-types/components/post-status/index.d.ts.map +1 -1
  261. package/build-types/components/post-sticky/check.d.ts.map +1 -1
  262. package/build-types/components/post-sticky/index.d.ts.map +1 -1
  263. package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
  264. package/build-types/components/post-sync-status/index.d.ts.map +1 -1
  265. package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
  266. package/build-types/components/post-taxonomies/flat-term-selector.d.ts +9 -7
  267. package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
  268. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +13 -11
  269. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  270. package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
  271. package/build-types/components/post-template/block-theme.d.ts.map +1 -1
  272. package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
  273. package/build-types/components/post-template/create-new-template.d.ts.map +1 -1
  274. package/build-types/components/post-template/hooks.d.ts.map +1 -1
  275. package/build-types/components/post-template/panel.d.ts.map +1 -1
  276. package/build-types/components/post-text-editor/index.d.ts.map +1 -1
  277. package/build-types/components/post-trash/check.d.ts.map +1 -1
  278. package/build-types/components/post-trash/index.d.ts.map +1 -1
  279. package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
  280. package/build-types/components/post-url/check.d.ts.map +1 -1
  281. package/build-types/components/post-url/index.d.ts.map +1 -1
  282. package/build-types/components/post-url/label.d.ts.map +1 -1
  283. package/build-types/components/post-url/panel.d.ts.map +1 -1
  284. package/build-types/components/post-visibility/check.d.ts.map +1 -1
  285. package/build-types/components/post-visibility/index.d.ts.map +1 -1
  286. package/build-types/components/posts-per-page/index.d.ts.map +1 -1
  287. package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
  288. package/build-types/components/provider/index.d.ts.map +1 -1
  289. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  290. package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
  291. package/build-types/components/sidebar/index.d.ts.map +1 -1
  292. package/build-types/components/site-discussion/index.d.ts.map +1 -1
  293. package/build-types/components/template-content-panel/index.d.ts +1 -3
  294. package/build-types/components/template-content-panel/index.d.ts.map +1 -1
  295. package/build-types/components/theme-support-check/index.d.ts.map +1 -1
  296. package/build-types/components/time-to-read/index.d.ts.map +1 -1
  297. package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
  298. package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
  299. package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -1
  300. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  301. package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts.map +1 -0
  302. package/build-types/components/word-count/index.d.ts.map +1 -1
  303. package/build-types/dataviews/actions/delete-post.d.ts.map +1 -1
  304. package/build-types/dataviews/api.d.ts +1 -1
  305. package/build-types/dataviews/api.d.ts.map +1 -1
  306. package/build-types/dataviews/store/private-selectors.d.ts +0 -1
  307. package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
  308. package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +1 -1
  309. package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -1
  310. package/build-types/hooks/pattern-overrides.d.ts.map +1 -1
  311. package/build-types/private-apis.d.ts.map +1 -1
  312. package/build-types/store/actions.d.ts.map +1 -1
  313. package/build-types/store/private-actions.d.ts.map +1 -1
  314. package/build-types/store/reducer.d.ts.map +1 -1
  315. package/build-types/store/selectors.d.ts +0 -1
  316. package/build-types/store/selectors.d.ts.map +1 -1
  317. package/build-types/utils/media-upload/index.d.ts.map +1 -1
  318. package/package.json +38 -37
  319. package/src/bindings/api.js +57 -0
  320. package/src/bindings/pattern-overrides.js +28 -17
  321. package/src/bindings/post-meta.js +19 -14
  322. package/src/components/block-settings-menu/content-only-settings-menu.js +4 -4
  323. package/src/components/blog-title/index.js +7 -2
  324. package/src/components/collapsible-block-toolbar/index.js +1 -3
  325. package/src/components/collapsible-block-toolbar/style.scss +0 -3
  326. package/src/components/document-bar/style.scss +1 -5
  327. package/src/components/document-tools/style.scss +4 -4
  328. package/src/components/editor-interface/style.scss +4 -0
  329. package/src/components/global-styles-provider/index.js +22 -11
  330. package/src/components/header/back-button.js +6 -6
  331. package/src/components/header/index.js +26 -25
  332. package/src/components/header/style.scss +64 -21
  333. package/src/components/inserter-sidebar/style.scss +1 -6
  334. package/src/components/page-attributes/order.js +3 -77
  335. package/src/components/page-attributes/panel.js +1 -7
  336. package/src/components/post-actions/actions.js +150 -32
  337. package/src/components/post-card-panel/index.js +8 -2
  338. package/src/components/post-comments/index.js +2 -2
  339. package/src/components/post-content-information/index.js +7 -1
  340. package/src/components/post-discussion/panel.js +5 -3
  341. package/src/components/post-excerpt/panel.js +2 -1
  342. package/src/components/post-featured-image/index.js +5 -1
  343. package/src/components/post-last-revision/index.js +1 -0
  344. package/src/components/post-panel-row/style.scss +0 -1
  345. package/src/components/post-publish-button/index.js +4 -17
  346. package/src/components/post-publish-panel/maybe-category-panel.js +4 -1
  347. package/src/components/post-publish-panel/maybe-tags-panel.js +1 -1
  348. package/src/components/post-status/index.js +18 -10
  349. package/src/components/post-taxonomies/flat-term-selector.js +19 -5
  350. package/src/components/post-taxonomies/index.js +8 -1
  351. package/src/components/post-template/block-theme.js +5 -1
  352. package/src/components/post-template/classic-theme.js +8 -3
  353. package/src/components/post-template/create-new-template.js +4 -1
  354. package/src/components/post-template/hooks.js +8 -2
  355. package/src/components/post-template/panel.js +10 -2
  356. package/src/components/post-trash/check.js +9 -5
  357. package/src/components/post-url/panel.js +7 -2
  358. package/src/components/posts-per-page/index.js +7 -2
  359. package/src/components/provider/use-block-editor-settings.js +15 -6
  360. package/src/components/save-publish-panels/index.js +1 -4
  361. package/src/components/sidebar/index.js +2 -5
  362. package/src/components/site-discussion/index.js +9 -4
  363. package/src/components/template-content-panel/index.js +3 -2
  364. package/src/components/visual-editor/edit-template-blocks-notification.js +5 -1
  365. package/src/components/visual-editor/index.js +5 -2
  366. package/src/components/visual-editor/style.scss +0 -1
  367. package/src/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
  368. package/src/dataviews/actions/delete-post.tsx +2 -0
  369. package/src/hooks/pattern-overrides.js +1 -1
  370. package/src/index.js +0 -1
  371. package/src/private-apis.js +6 -0
  372. package/src/store/test/actions.js +9 -3
  373. package/src/utils/media-upload/index.js +38 -3
  374. package/tsconfig.tsbuildinfo +1 -1
  375. package/build/bindings/index.js +0 -22
  376. package/build/bindings/index.js.map +0 -1
  377. package/build/hooks/use-select-nearest-editable-block.js.map +0 -1
  378. package/build/store/utils/get-filtered-template-parts.js +0 -71
  379. package/build/store/utils/get-filtered-template-parts.js.map +0 -1
  380. package/build/utils/set-nested-value.js +0 -44
  381. package/build/utils/set-nested-value.js.map +0 -1
  382. package/build-module/bindings/index.js +0 -17
  383. package/build-module/bindings/index.js.map +0 -1
  384. package/build-module/hooks/use-select-nearest-editable-block.js.map +0 -1
  385. package/build-module/store/utils/get-filtered-template-parts.js +0 -64
  386. package/build-module/store/utils/get-filtered-template-parts.js.map +0 -1
  387. package/build-module/utils/set-nested-value.js +0 -38
  388. package/build-module/utils/set-nested-value.js.map +0 -1
  389. package/build-types/bindings/index.d.ts +0 -2
  390. package/build-types/bindings/index.d.ts.map +0 -1
  391. package/build-types/hooks/use-select-nearest-editable-block.d.ts.map +0 -1
  392. package/build-types/store/utils/get-filtered-template-parts.d.ts +0 -3
  393. package/build-types/store/utils/get-filtered-template-parts.d.ts.map +0 -1
  394. package/build-types/utils/set-nested-value.d.ts +0 -20
  395. package/build-types/utils/set-nested-value.d.ts.map +0 -1
  396. package/src/bindings/index.js +0 -15
  397. package/src/store/utils/get-filtered-template-parts.js +0 -69
  398. package/src/store/utils/test/get-filtered-template-parts.js +0 -189
  399. package/src/utils/set-nested-value.js +0 -39
  400. /package/build-types/{hooks → components/visual-editor}/use-select-nearest-editable-block.d.ts +0 -0
@@ -21,6 +21,7 @@ import ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';
21
21
  import ResizableEditor from './components/resizable-editor';
22
22
  import { mergeBaseAndUserConfigs, GlobalStylesProvider } from './components/global-styles-provider';
23
23
  import registerDefaultActions from './dataviews/actions';
24
+ import { registerCoreBlockBindingsSources, bootstrapBlockBindingsSourcesFromServer } from './bindings/api';
24
25
  const {
25
26
  store: interfaceStore,
26
27
  ...remainingInterfaceApis
@@ -41,6 +42,8 @@ lock(privateApis, {
41
42
  ViewMoreMenuGroup,
42
43
  ResizableEditor,
43
44
  registerDefaultActions,
45
+ registerCoreBlockBindingsSources,
46
+ bootstrapBlockBindingsSourcesFromServer,
44
47
  // This is a temporary private API while we're updating the site editor to use EditorProvider.
45
48
  useBlockEditorSettings,
46
49
  interfaceStore,
@@ -1 +1 @@
1
- {"version":3,"names":["interfaceApis","lock","EntitiesSavedStatesExtensible","EditorContentSlotFill","useBlockEditorSettings","BackButton","CreateTemplatePartModal","Editor","PluginPostExcerpt","PreferencesModal","usePostActions","ToolsMoreMenuGroup","ViewMoreMenuGroup","ResizableEditor","mergeBaseAndUserConfigs","GlobalStylesProvider","registerDefaultActions","store","interfaceStore","remainingInterfaceApis","privateApis"],"sources":["@wordpress/editor/src/private-apis.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport * as interfaceApis from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport { EntitiesSavedStatesExtensible } from './components/entities-saved-states';\nimport EditorContentSlotFill from './components/editor-interface/content-slot-fill';\nimport useBlockEditorSettings from './components/provider/use-block-editor-settings';\nimport BackButton from './components/header/back-button';\nimport CreateTemplatePartModal from './components/create-template-part-modal';\nimport Editor from './components/editor';\nimport PluginPostExcerpt from './components/post-excerpt/plugin';\nimport PreferencesModal from './components/preferences-modal';\nimport { usePostActions } from './components/post-actions/actions';\nimport ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';\nimport ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';\nimport ResizableEditor from './components/resizable-editor';\nimport {\n\tmergeBaseAndUserConfigs,\n\tGlobalStylesProvider,\n} from './components/global-styles-provider';\nimport registerDefaultActions from './dataviews/actions';\n\nconst { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCreateTemplatePartModal,\n\tBackButton,\n\tEntitiesSavedStatesExtensible,\n\tEditor,\n\tEditorContentSlotFill,\n\tGlobalStylesProvider,\n\tmergeBaseAndUserConfigs,\n\tPluginPostExcerpt,\n\tPreferencesModal,\n\tusePostActions,\n\tToolsMoreMenuGroup,\n\tViewMoreMenuGroup,\n\tResizableEditor,\n\tregisterDefaultActions,\n\n\t// This is a temporary private API while we're updating the site editor to use EditorProvider.\n\tuseBlockEditorSettings,\n\tinterfaceStore,\n\t...remainingInterfaceApis,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,KAAKA,aAAa,MAAM,sBAAsB;;AAErD;AACA;AACA;AACA,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,OAAOC,qBAAqB,MAAM,iDAAiD;AACnF,OAAOC,sBAAsB,MAAM,iDAAiD;AACpF,OAAOC,UAAU,MAAM,iCAAiC;AACxD,OAAOC,uBAAuB,MAAM,yCAAyC;AAC7E,OAAOC,MAAM,MAAM,qBAAqB;AACxC,OAAOC,iBAAiB,MAAM,kCAAkC;AAChE,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,mCAAmC;AAClE,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,iBAAiB,MAAM,6CAA6C;AAC3E,OAAOC,eAAe,MAAM,+BAA+B;AAC3D,SACCC,uBAAuB,EACvBC,oBAAoB,QACd,qCAAqC;AAC5C,OAAOC,sBAAsB,MAAM,qBAAqB;AAExD,MAAM;EAAEC,KAAK,EAAEC,cAAc;EAAE,GAAGC;AAAuB,CAAC,GAAGnB,aAAa;AAE1E,OAAO,MAAMoB,WAAW,GAAG,CAAC,CAAC;AAC7BnB,IAAI,CAAEmB,WAAW,EAAE;EAClBd,uBAAuB;EACvBD,UAAU;EACVH,6BAA6B;EAC7BK,MAAM;EACNJ,qBAAqB;EACrBY,oBAAoB;EACpBD,uBAAuB;EACvBN,iBAAiB;EACjBC,gBAAgB;EAChBC,cAAc;EACdC,kBAAkB;EAClBC,iBAAiB;EACjBC,eAAe;EACfG,sBAAsB;EAEtB;EACAZ,sBAAsB;EACtBc,cAAc;EACd,GAAGC;AACJ,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["interfaceApis","lock","EntitiesSavedStatesExtensible","EditorContentSlotFill","useBlockEditorSettings","BackButton","CreateTemplatePartModal","Editor","PluginPostExcerpt","PreferencesModal","usePostActions","ToolsMoreMenuGroup","ViewMoreMenuGroup","ResizableEditor","mergeBaseAndUserConfigs","GlobalStylesProvider","registerDefaultActions","registerCoreBlockBindingsSources","bootstrapBlockBindingsSourcesFromServer","store","interfaceStore","remainingInterfaceApis","privateApis"],"sources":["@wordpress/editor/src/private-apis.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport * as interfaceApis from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport { EntitiesSavedStatesExtensible } from './components/entities-saved-states';\nimport EditorContentSlotFill from './components/editor-interface/content-slot-fill';\nimport useBlockEditorSettings from './components/provider/use-block-editor-settings';\nimport BackButton from './components/header/back-button';\nimport CreateTemplatePartModal from './components/create-template-part-modal';\nimport Editor from './components/editor';\nimport PluginPostExcerpt from './components/post-excerpt/plugin';\nimport PreferencesModal from './components/preferences-modal';\nimport { usePostActions } from './components/post-actions/actions';\nimport ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';\nimport ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';\nimport ResizableEditor from './components/resizable-editor';\nimport {\n\tmergeBaseAndUserConfigs,\n\tGlobalStylesProvider,\n} from './components/global-styles-provider';\nimport registerDefaultActions from './dataviews/actions';\nimport {\n\tregisterCoreBlockBindingsSources,\n\tbootstrapBlockBindingsSourcesFromServer,\n} from './bindings/api';\n\nconst { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCreateTemplatePartModal,\n\tBackButton,\n\tEntitiesSavedStatesExtensible,\n\tEditor,\n\tEditorContentSlotFill,\n\tGlobalStylesProvider,\n\tmergeBaseAndUserConfigs,\n\tPluginPostExcerpt,\n\tPreferencesModal,\n\tusePostActions,\n\tToolsMoreMenuGroup,\n\tViewMoreMenuGroup,\n\tResizableEditor,\n\tregisterDefaultActions,\n\tregisterCoreBlockBindingsSources,\n\tbootstrapBlockBindingsSourcesFromServer,\n\n\t// This is a temporary private API while we're updating the site editor to use EditorProvider.\n\tuseBlockEditorSettings,\n\tinterfaceStore,\n\t...remainingInterfaceApis,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,KAAKA,aAAa,MAAM,sBAAsB;;AAErD;AACA;AACA;AACA,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,OAAOC,qBAAqB,MAAM,iDAAiD;AACnF,OAAOC,sBAAsB,MAAM,iDAAiD;AACpF,OAAOC,UAAU,MAAM,iCAAiC;AACxD,OAAOC,uBAAuB,MAAM,yCAAyC;AAC7E,OAAOC,MAAM,MAAM,qBAAqB;AACxC,OAAOC,iBAAiB,MAAM,kCAAkC;AAChE,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,mCAAmC;AAClE,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,iBAAiB,MAAM,6CAA6C;AAC3E,OAAOC,eAAe,MAAM,+BAA+B;AAC3D,SACCC,uBAAuB,EACvBC,oBAAoB,QACd,qCAAqC;AAC5C,OAAOC,sBAAsB,MAAM,qBAAqB;AACxD,SACCC,gCAAgC,EAChCC,uCAAuC,QACjC,gBAAgB;AAEvB,MAAM;EAAEC,KAAK,EAAEC,cAAc;EAAE,GAAGC;AAAuB,CAAC,GAAGrB,aAAa;AAE1E,OAAO,MAAMsB,WAAW,GAAG,CAAC,CAAC;AAC7BrB,IAAI,CAAEqB,WAAW,EAAE;EAClBhB,uBAAuB;EACvBD,UAAU;EACVH,6BAA6B;EAC7BK,MAAM;EACNJ,qBAAqB;EACrBY,oBAAoB;EACpBD,uBAAuB;EACvBN,iBAAiB;EACjBC,gBAAgB;EAChBC,cAAc;EACdC,kBAAkB;EAClBC,iBAAiB;EACjBC,eAAe;EACfG,sBAAsB;EACtBC,gCAAgC;EAChCC,uCAAuC;EAEvC;EACAd,sBAAsB;EACtBgB,cAAc;EACd,GAAGC;AACJ,CAAE,CAAC","ignoreList":[]}
@@ -1,7 +1,12 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { v4 as uuid } from 'uuid';
5
+
1
6
  /**
2
7
  * WordPress dependencies
3
8
  */
4
- import { select } from '@wordpress/data';
9
+ import { select, dispatch } from '@wordpress/data';
5
10
  import { uploadMedia } from '@wordpress/media-utils';
6
11
 
7
12
  /**
@@ -34,18 +39,43 @@ export default function mediaUpload({
34
39
  getCurrentPost,
35
40
  getEditorSettings
36
41
  } = select(editorStore);
42
+ const {
43
+ lockPostAutosaving,
44
+ unlockPostAutosaving,
45
+ lockPostSaving,
46
+ unlockPostSaving
47
+ } = dispatch(editorStore);
37
48
  const wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;
49
+ const lockKey = `image-upload-${uuid()}`;
50
+ let imageIsUploading = false;
38
51
  maxUploadFileSize = maxUploadFileSize || getEditorSettings().maxUploadFileSize;
39
52
  const currentPost = getCurrentPost();
40
53
  // Templates and template parts' numerical ID is stored in `wp_id`.
41
54
  const currentPostId = typeof currentPost?.id === 'number' ? currentPost.id : currentPost?.wp_id;
55
+ const setSaveLock = () => {
56
+ lockPostSaving(lockKey);
57
+ lockPostAutosaving(lockKey);
58
+ imageIsUploading = true;
59
+ };
42
60
  const postData = currentPostId ? {
43
61
  post: currentPostId
44
62
  } : {};
63
+ const clearSaveLock = () => {
64
+ unlockPostSaving(lockKey);
65
+ unlockPostAutosaving(lockKey);
66
+ imageIsUploading = false;
67
+ };
45
68
  uploadMedia({
46
69
  allowedTypes,
47
70
  filesList,
48
- onFileChange,
71
+ onFileChange: file => {
72
+ if (!imageIsUploading) {
73
+ setSaveLock();
74
+ } else {
75
+ clearSaveLock();
76
+ }
77
+ onFileChange(file);
78
+ },
49
79
  additionalData: {
50
80
  ...postData,
51
81
  ...additionalData
@@ -53,7 +83,10 @@ export default function mediaUpload({
53
83
  maxUploadFileSize,
54
84
  onError: ({
55
85
  message
56
- }) => onError(message),
86
+ }) => {
87
+ clearSaveLock();
88
+ onError(message);
89
+ },
57
90
  wpAllowedMimeTypes
58
91
  });
59
92
  }
@@ -1 +1 @@
1
- {"version":3,"names":["select","uploadMedia","store","editorStore","noop","mediaUpload","additionalData","allowedTypes","filesList","maxUploadFileSize","onError","onFileChange","getCurrentPost","getEditorSettings","wpAllowedMimeTypes","allowedMimeTypes","currentPost","currentPostId","id","wp_id","postData","post","message"],"sources":["@wordpress/editor/src/utils/media-upload/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { select } from '@wordpress/data';\nimport { uploadMedia } from '@wordpress/media-utils';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nconst noop = () => {};\n\n/**\n * Upload a media file when the file upload button is activated.\n * Wrapper around mediaUpload() that injects the current post ID.\n *\n * @param {Object} $0 Parameters object passed to the function.\n * @param {?Object} $0.additionalData Additional data to include in the request.\n * @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Array} $0.filesList List of files.\n * @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.\n * @param {Function} $0.onError Function called when an error happens.\n * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.\n */\nexport default function mediaUpload( {\n\tadditionalData = {},\n\tallowedTypes,\n\tfilesList,\n\tmaxUploadFileSize,\n\tonError = noop,\n\tonFileChange,\n} ) {\n\tconst { getCurrentPost, getEditorSettings } = select( editorStore );\n\tconst wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;\n\tmaxUploadFileSize =\n\t\tmaxUploadFileSize || getEditorSettings().maxUploadFileSize;\n\tconst currentPost = getCurrentPost();\n\t// Templates and template parts' numerical ID is stored in `wp_id`.\n\tconst currentPostId =\n\t\ttypeof currentPost?.id === 'number'\n\t\t\t? currentPost.id\n\t\t\t: currentPost?.wp_id;\n\tconst postData = currentPostId ? { post: currentPostId } : {};\n\n\tuploadMedia( {\n\t\tallowedTypes,\n\t\tfilesList,\n\t\tonFileChange,\n\t\tadditionalData: {\n\t\t\t...postData,\n\t\t\t...additionalData,\n\t\t},\n\t\tmaxUploadFileSize,\n\t\tonError: ( { message } ) => onError( message ),\n\t\twpAllowedMimeTypes,\n\t} );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,MAAM,QAAQ,iBAAiB;AACxC,SAASC,WAAW,QAAQ,wBAAwB;;AAEpD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAElD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,WAAWA,CAAE;EACpCC,cAAc,GAAG,CAAC,CAAC;EACnBC,YAAY;EACZC,SAAS;EACTC,iBAAiB;EACjBC,OAAO,GAAGN,IAAI;EACdO;AACD,CAAC,EAAG;EACH,MAAM;IAAEC,cAAc;IAAEC;EAAkB,CAAC,GAAGb,MAAM,CAAEG,WAAY,CAAC;EACnE,MAAMW,kBAAkB,GAAGD,iBAAiB,CAAC,CAAC,CAACE,gBAAgB;EAC/DN,iBAAiB,GAChBA,iBAAiB,IAAII,iBAAiB,CAAC,CAAC,CAACJ,iBAAiB;EAC3D,MAAMO,WAAW,GAAGJ,cAAc,CAAC,CAAC;EACpC;EACA,MAAMK,aAAa,GAClB,OAAOD,WAAW,EAAEE,EAAE,KAAK,QAAQ,GAChCF,WAAW,CAACE,EAAE,GACdF,WAAW,EAAEG,KAAK;EACtB,MAAMC,QAAQ,GAAGH,aAAa,GAAG;IAAEI,IAAI,EAAEJ;EAAc,CAAC,GAAG,CAAC,CAAC;EAE7DhB,WAAW,CAAE;IACZM,YAAY;IACZC,SAAS;IACTG,YAAY;IACZL,cAAc,EAAE;MACf,GAAGc,QAAQ;MACX,GAAGd;IACJ,CAAC;IACDG,iBAAiB;IACjBC,OAAO,EAAEA,CAAE;MAAEY;IAAQ,CAAC,KAAMZ,OAAO,CAAEY,OAAQ,CAAC;IAC9CR;EACD,CAAE,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["v4","uuid","select","dispatch","uploadMedia","store","editorStore","noop","mediaUpload","additionalData","allowedTypes","filesList","maxUploadFileSize","onError","onFileChange","getCurrentPost","getEditorSettings","lockPostAutosaving","unlockPostAutosaving","lockPostSaving","unlockPostSaving","wpAllowedMimeTypes","allowedMimeTypes","lockKey","imageIsUploading","currentPost","currentPostId","id","wp_id","setSaveLock","postData","post","clearSaveLock","file","message"],"sources":["@wordpress/editor/src/utils/media-upload/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * WordPress dependencies\n */\nimport { select, dispatch } from '@wordpress/data';\nimport { uploadMedia } from '@wordpress/media-utils';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nconst noop = () => {};\n\n/**\n * Upload a media file when the file upload button is activated.\n * Wrapper around mediaUpload() that injects the current post ID.\n *\n * @param {Object} $0 Parameters object passed to the function.\n * @param {?Object} $0.additionalData Additional data to include in the request.\n * @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Array} $0.filesList List of files.\n * @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.\n * @param {Function} $0.onError Function called when an error happens.\n * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.\n */\nexport default function mediaUpload( {\n\tadditionalData = {},\n\tallowedTypes,\n\tfilesList,\n\tmaxUploadFileSize,\n\tonError = noop,\n\tonFileChange,\n} ) {\n\tconst { getCurrentPost, getEditorSettings } = select( editorStore );\n\tconst {\n\t\tlockPostAutosaving,\n\t\tunlockPostAutosaving,\n\t\tlockPostSaving,\n\t\tunlockPostSaving,\n\t} = dispatch( editorStore );\n\n\tconst wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;\n\tconst lockKey = `image-upload-${ uuid() }`;\n\tlet imageIsUploading = false;\n\tmaxUploadFileSize =\n\t\tmaxUploadFileSize || getEditorSettings().maxUploadFileSize;\n\tconst currentPost = getCurrentPost();\n\t// Templates and template parts' numerical ID is stored in `wp_id`.\n\tconst currentPostId =\n\t\ttypeof currentPost?.id === 'number'\n\t\t\t? currentPost.id\n\t\t\t: currentPost?.wp_id;\n\tconst setSaveLock = () => {\n\t\tlockPostSaving( lockKey );\n\t\tlockPostAutosaving( lockKey );\n\t\timageIsUploading = true;\n\t};\n\n\tconst postData = currentPostId ? { post: currentPostId } : {};\n\tconst clearSaveLock = () => {\n\t\tunlockPostSaving( lockKey );\n\t\tunlockPostAutosaving( lockKey );\n\t\timageIsUploading = false;\n\t};\n\n\tuploadMedia( {\n\t\tallowedTypes,\n\t\tfilesList,\n\t\tonFileChange: ( file ) => {\n\t\t\tif ( ! imageIsUploading ) {\n\t\t\t\tsetSaveLock();\n\t\t\t} else {\n\t\t\t\tclearSaveLock();\n\t\t\t}\n\t\t\tonFileChange( file );\n\t\t},\n\t\tadditionalData: {\n\t\t\t...postData,\n\t\t\t...additionalData,\n\t\t},\n\t\tmaxUploadFileSize,\n\t\tonError: ( { message } ) => {\n\t\t\tclearSaveLock();\n\t\t\tonError( message );\n\t\t},\n\t\twpAllowedMimeTypes,\n\t} );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,IAAIC,IAAI,QAAQ,MAAM;;AAEjC;AACA;AACA;AACA,SAASC,MAAM,EAAEC,QAAQ,QAAQ,iBAAiB;AAClD,SAASC,WAAW,QAAQ,wBAAwB;;AAEpD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAElD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,WAAWA,CAAE;EACpCC,cAAc,GAAG,CAAC,CAAC;EACnBC,YAAY;EACZC,SAAS;EACTC,iBAAiB;EACjBC,OAAO,GAAGN,IAAI;EACdO;AACD,CAAC,EAAG;EACH,MAAM;IAAEC,cAAc;IAAEC;EAAkB,CAAC,GAAGd,MAAM,CAAEI,WAAY,CAAC;EACnE,MAAM;IACLW,kBAAkB;IAClBC,oBAAoB;IACpBC,cAAc;IACdC;EACD,CAAC,GAAGjB,QAAQ,CAAEG,WAAY,CAAC;EAE3B,MAAMe,kBAAkB,GAAGL,iBAAiB,CAAC,CAAC,CAACM,gBAAgB;EAC/D,MAAMC,OAAO,GAAI,gBAAgBtB,IAAI,CAAC,CAAG,EAAC;EAC1C,IAAIuB,gBAAgB,GAAG,KAAK;EAC5BZ,iBAAiB,GAChBA,iBAAiB,IAAII,iBAAiB,CAAC,CAAC,CAACJ,iBAAiB;EAC3D,MAAMa,WAAW,GAAGV,cAAc,CAAC,CAAC;EACpC;EACA,MAAMW,aAAa,GAClB,OAAOD,WAAW,EAAEE,EAAE,KAAK,QAAQ,GAChCF,WAAW,CAACE,EAAE,GACdF,WAAW,EAAEG,KAAK;EACtB,MAAMC,WAAW,GAAGA,CAAA,KAAM;IACzBV,cAAc,CAAEI,OAAQ,CAAC;IACzBN,kBAAkB,CAAEM,OAAQ,CAAC;IAC7BC,gBAAgB,GAAG,IAAI;EACxB,CAAC;EAED,MAAMM,QAAQ,GAAGJ,aAAa,GAAG;IAAEK,IAAI,EAAEL;EAAc,CAAC,GAAG,CAAC,CAAC;EAC7D,MAAMM,aAAa,GAAGA,CAAA,KAAM;IAC3BZ,gBAAgB,CAAEG,OAAQ,CAAC;IAC3BL,oBAAoB,CAAEK,OAAQ,CAAC;IAC/BC,gBAAgB,GAAG,KAAK;EACzB,CAAC;EAEDpB,WAAW,CAAE;IACZM,YAAY;IACZC,SAAS;IACTG,YAAY,EAAImB,IAAI,IAAM;MACzB,IAAK,CAAET,gBAAgB,EAAG;QACzBK,WAAW,CAAC,CAAC;MACd,CAAC,MAAM;QACNG,aAAa,CAAC,CAAC;MAChB;MACAlB,YAAY,CAAEmB,IAAK,CAAC;IACrB,CAAC;IACDxB,cAAc,EAAE;MACf,GAAGqB,QAAQ;MACX,GAAGrB;IACJ,CAAC;IACDG,iBAAiB;IACjBC,OAAO,EAAEA,CAAE;MAAEqB;IAAQ,CAAC,KAAM;MAC3BF,aAAa,CAAC,CAAC;MACfnB,OAAO,CAAEqB,OAAQ,CAAC;IACnB,CAAC;IACDb;EACD,CAAE,CAAC;AACJ","ignoreList":[]}
@@ -177,7 +177,7 @@
177
177
  top: 0;
178
178
  }
179
179
  }
180
- .interface-complementary-area p:not(.components-base-control__help) {
180
+ .interface-complementary-area p:not(.components-base-control__help, .components-form-token-field__help) {
181
181
  margin-top: 0;
182
182
  }
183
183
  .interface-complementary-area h2 {
@@ -638,10 +638,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
638
638
  display: none;
639
639
  }
640
640
 
641
- .editor-collapsible-block-toolbar__toggle {
642
- margin-right: 2px;
643
- }
644
-
645
641
  .editor-create-template-part-modal {
646
642
  z-index: 1000001;
647
643
  }
@@ -711,7 +707,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
711
707
  min-width: 0;
712
708
  background: #f0f0f0;
713
709
  border-radius: 4px;
714
- width: min(100%, 416px);
710
+ width: min(100%, 450px);
715
711
  }
716
712
  .editor-document-bar:hover {
717
713
  background-color: #e0e0e0;
@@ -729,11 +725,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
729
725
  .editor-document-bar .components-button:hover {
730
726
  background: #e0e0e0;
731
727
  }
732
- @media (min-width: 960px) {
733
- .editor-document-bar {
734
- width: min(100%, 450px);
735
- }
736
- }
737
728
 
738
729
  .editor-document-bar__command {
739
730
  flex-grow: 1;
@@ -937,9 +928,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
937
928
  .editor-document-tools__left {
938
929
  display: inline-flex;
939
930
  align-items: center;
940
- padding-right: 16px;
941
931
  gap: 8px;
942
- margin-left: 8px;
932
+ }
933
+ .editor-document-tools__left:not(:last-child) {
934
+ margin-inline-end: 8px;
943
935
  }
944
936
 
945
937
  .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
@@ -962,6 +954,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
962
954
  height: 61px;
963
955
  }
964
956
 
957
+ .editor-visual-editor {
958
+ flex: 1 0 auto;
959
+ }
960
+
965
961
  .components-editor-notices__dismissible,
966
962
  .components-editor-notices__pinned {
967
963
  position: relative;
@@ -1025,12 +1021,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1025
1021
  .editor-header {
1026
1022
  height: 60px;
1027
1023
  background: #fff;
1028
- display: flex;
1029
- flex-wrap: wrap;
1024
+ display: grid;
1025
+ grid-auto-flow: row;
1026
+ grid-template: auto/60px minmax(0, max-content) minmax(min-content, 1fr) 60px;
1030
1027
  align-items: center;
1031
1028
  max-width: 100vw;
1032
1029
  justify-content: space-between;
1033
1030
  }
1031
+ .editor-header:has(> .editor-header__center) {
1032
+ grid-template: auto/60px min-content 1fr min-content 60px;
1033
+ }
1034
+ @media (min-width: 782px) {
1035
+ .editor-header:has(> .editor-header__center) {
1036
+ grid-template: auto/60px minmax(min-content, 1fr) 2fr minmax(min-content, 1fr) 60px;
1037
+ }
1038
+ }
1039
+ @media (min-width: 480px) {
1040
+ .editor-header {
1041
+ gap: 16px;
1042
+ }
1043
+ }
1034
1044
  @media (min-width: 280px) {
1035
1045
  .editor-header {
1036
1046
  flex-wrap: nowrap;
@@ -1038,16 +1048,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1038
1048
  }
1039
1049
 
1040
1050
  .editor-header__toolbar {
1051
+ grid-column: 1/3;
1041
1052
  display: flex;
1042
- flex-shrink: 8;
1043
- flex-grow: 3;
1044
- overflow: hidden;
1045
- padding: 2px 0;
1053
+ min-width: 0;
1046
1054
  align-items: center;
1055
+ clip-path: inset(-2px);
1047
1056
  }
1048
- @media (min-width: 782px) {
1057
+ .editor-header__toolbar > :first-child {
1058
+ margin-inline: 16px 0;
1059
+ }
1060
+ .editor-header__back-button + .editor-header__toolbar {
1061
+ grid-column: 2/3;
1062
+ }
1063
+ @media (min-width: 480px) {
1064
+ .editor-header__back-button + .editor-header__toolbar > :first-child {
1065
+ margin-inline: 0;
1066
+ }
1067
+ }
1068
+ @media (min-width: 480px) {
1049
1069
  .editor-header__toolbar {
1050
- padding-left: var(--wp-admin-border-width-focus);
1070
+ clip-path: none;
1051
1071
  }
1052
1072
  }
1053
1073
  .editor-header__toolbar .table-of-contents {
@@ -1058,27 +1078,45 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1058
1078
  display: block;
1059
1079
  }
1060
1080
  }
1081
+ .editor-header__toolbar .editor-collapsible-block-toolbar {
1082
+ margin-inline: 8px 0;
1083
+ }
1084
+ .editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed ~ .editor-collapsible-block-toolbar__toggle {
1085
+ margin-inline: 8px 0;
1086
+ }
1061
1087
 
1062
1088
  .editor-header__center {
1063
- flex-grow: 1;
1089
+ grid-column: 3/4;
1064
1090
  display: flex;
1065
1091
  justify-content: center;
1092
+ align-items: center;
1066
1093
  min-width: 0;
1094
+ clip-path: inset(-2px);
1067
1095
  }
1068
- .editor-header__center.is-collapsed {
1069
- display: none;
1096
+ @media (max-width: 479px) {
1097
+ .editor-header__center > :first-child {
1098
+ margin-inline-start: 8px;
1099
+ }
1100
+ .editor-header__center > :last-child {
1101
+ margin-inline-end: 8px;
1102
+ }
1070
1103
  }
1071
1104
 
1072
1105
  /**
1073
1106
  * Buttons on the right side
1074
1107
  */
1075
1108
  .editor-header__settings {
1109
+ grid-column: 3/-1;
1110
+ justify-self: end;
1076
1111
  display: inline-flex;
1077
1112
  align-items: center;
1078
1113
  flex-wrap: nowrap;
1079
1114
  padding-left: 4px;
1080
1115
  gap: 8px;
1081
1116
  }
1117
+ .editor-header:has(> .editor-header__center) .editor-header__settings {
1118
+ grid-column: 4/-1;
1119
+ }
1082
1120
  @media (min-width: 600px) {
1083
1121
  .editor-header__settings {
1084
1122
  padding-left: 8px;
@@ -1236,12 +1274,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1236
1274
  }
1237
1275
 
1238
1276
  .editor-inserter-sidebar__content {
1239
- height: calc(100% - 36px - 8px);
1240
- }
1241
- @media (min-width: 782px) {
1242
- .editor-inserter-sidebar__content {
1243
- height: 100%;
1244
- }
1277
+ height: 100%;
1245
1278
  }
1246
1279
 
1247
1280
  .editor-keyboard-shortcut-help-modal__section {
@@ -1671,7 +1704,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1671
1704
  white-space: normal;
1672
1705
  text-wrap: balance;
1673
1706
  text-wrap: pretty;
1674
- height: auto;
1675
1707
  min-height: 32px;
1676
1708
  }
1677
1709
  .editor-post-panel__row-control .components-dropdown {
@@ -2170,6 +2202,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2170
2202
  height: 24px;
2171
2203
  min-width: 24px;
2172
2204
  max-width: 24px;
2205
+ position: relative;
2173
2206
  margin-top: 2px;
2174
2207
  }
2175
2208
  @media (prefers-reduced-motion: reduce) {
@@ -2202,24 +2235,28 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2202
2235
  }
2203
2236
  @media (min-width: 600px) {
2204
2237
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2205
- height: 20px;
2206
- width: 20px;
2207
- min-width: 20px;
2208
- max-width: 20px;
2238
+ height: 16px;
2239
+ width: 16px;
2240
+ min-width: 16px;
2241
+ max-width: 16px;
2209
2242
  }
2210
2243
  }
2211
2244
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2212
2245
  box-sizing: inherit;
2213
- width: 8px;
2214
- height: 8px;
2215
- transform: translate(-7px, 7px);
2246
+ width: 12px;
2247
+ height: 12px;
2248
+ position: absolute;
2249
+ top: 50%;
2250
+ right: 50%;
2251
+ transform: translate(50%, -50%);
2216
2252
  margin: 0;
2217
2253
  background-color: #fff;
2218
2254
  border: 4px solid #fff;
2219
2255
  }
2220
2256
  @media (min-width: 600px) {
2221
2257
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2222
- transform: translate(-5px, 5px);
2258
+ width: 8px;
2259
+ height: 8px;
2223
2260
  }
2224
2261
  }
2225
2262
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
@@ -2228,7 +2265,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2228
2265
  }
2229
2266
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked {
2230
2267
  background: var(--wp-admin-theme-color);
2231
- border-color: var(--wp-admin-theme-color);
2268
+ border: none;
2232
2269
  }
2233
2270
  .editor-post-visibility__fieldset .editor-post-visibility__info {
2234
2271
  color: #757575;
@@ -2237,7 +2274,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2237
2274
  }
2238
2275
  @media (min-width: 600px) {
2239
2276
  .editor-post-visibility__fieldset .editor-post-visibility__info {
2240
- margin-right: 32px;
2277
+ margin-right: 28px;
2241
2278
  }
2242
2279
  }
2243
2280
  .editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info {
@@ -2607,7 +2644,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2607
2644
 
2608
2645
  .editor-visual-editor {
2609
2646
  position: relative;
2610
- height: 100%;
2611
2647
  display: block;
2612
2648
  background-color: #ddd;
2613
2649
  isolation: isolate;
@@ -177,7 +177,7 @@
177
177
  top: 0;
178
178
  }
179
179
  }
180
- .interface-complementary-area p:not(.components-base-control__help) {
180
+ .interface-complementary-area p:not(.components-base-control__help, .components-form-token-field__help) {
181
181
  margin-top: 0;
182
182
  }
183
183
  .interface-complementary-area h2 {
@@ -638,10 +638,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
638
638
  display: none;
639
639
  }
640
640
 
641
- .editor-collapsible-block-toolbar__toggle {
642
- margin-left: 2px;
643
- }
644
-
645
641
  .editor-create-template-part-modal {
646
642
  z-index: 1000001;
647
643
  }
@@ -711,7 +707,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
711
707
  min-width: 0;
712
708
  background: #f0f0f0;
713
709
  border-radius: 4px;
714
- width: min(100%, 416px);
710
+ width: min(100%, 450px);
715
711
  }
716
712
  .editor-document-bar:hover {
717
713
  background-color: #e0e0e0;
@@ -729,11 +725,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
729
725
  .editor-document-bar .components-button:hover {
730
726
  background: #e0e0e0;
731
727
  }
732
- @media (min-width: 960px) {
733
- .editor-document-bar {
734
- width: min(100%, 450px);
735
- }
736
- }
737
728
 
738
729
  .editor-document-bar__command {
739
730
  flex-grow: 1;
@@ -937,9 +928,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
937
928
  .editor-document-tools__left {
938
929
  display: inline-flex;
939
930
  align-items: center;
940
- padding-left: 16px;
941
931
  gap: 8px;
942
- margin-right: 8px;
932
+ }
933
+ .editor-document-tools__left:not(:last-child) {
934
+ margin-inline-end: 8px;
943
935
  }
944
936
 
945
937
  .editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
@@ -962,6 +954,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
962
954
  height: 61px;
963
955
  }
964
956
 
957
+ .editor-visual-editor {
958
+ flex: 1 0 auto;
959
+ }
960
+
965
961
  .components-editor-notices__dismissible,
966
962
  .components-editor-notices__pinned {
967
963
  position: relative;
@@ -1025,12 +1021,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1025
1021
  .editor-header {
1026
1022
  height: 60px;
1027
1023
  background: #fff;
1028
- display: flex;
1029
- flex-wrap: wrap;
1024
+ display: grid;
1025
+ grid-auto-flow: row;
1026
+ grid-template: auto/60px minmax(0, max-content) minmax(min-content, 1fr) 60px;
1030
1027
  align-items: center;
1031
1028
  max-width: 100vw;
1032
1029
  justify-content: space-between;
1033
1030
  }
1031
+ .editor-header:has(> .editor-header__center) {
1032
+ grid-template: auto/60px min-content 1fr min-content 60px;
1033
+ }
1034
+ @media (min-width: 782px) {
1035
+ .editor-header:has(> .editor-header__center) {
1036
+ grid-template: auto/60px minmax(min-content, 1fr) 2fr minmax(min-content, 1fr) 60px;
1037
+ }
1038
+ }
1039
+ @media (min-width: 480px) {
1040
+ .editor-header {
1041
+ gap: 16px;
1042
+ }
1043
+ }
1034
1044
  @media (min-width: 280px) {
1035
1045
  .editor-header {
1036
1046
  flex-wrap: nowrap;
@@ -1038,16 +1048,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1038
1048
  }
1039
1049
 
1040
1050
  .editor-header__toolbar {
1051
+ grid-column: 1/3;
1041
1052
  display: flex;
1042
- flex-shrink: 8;
1043
- flex-grow: 3;
1044
- overflow: hidden;
1045
- padding: 2px 0;
1053
+ min-width: 0;
1046
1054
  align-items: center;
1055
+ clip-path: inset(-2px);
1047
1056
  }
1048
- @media (min-width: 782px) {
1057
+ .editor-header__toolbar > :first-child {
1058
+ margin-inline: 16px 0;
1059
+ }
1060
+ .editor-header__back-button + .editor-header__toolbar {
1061
+ grid-column: 2/3;
1062
+ }
1063
+ @media (min-width: 480px) {
1064
+ .editor-header__back-button + .editor-header__toolbar > :first-child {
1065
+ margin-inline: 0;
1066
+ }
1067
+ }
1068
+ @media (min-width: 480px) {
1049
1069
  .editor-header__toolbar {
1050
- padding-right: var(--wp-admin-border-width-focus);
1070
+ clip-path: none;
1051
1071
  }
1052
1072
  }
1053
1073
  .editor-header__toolbar .table-of-contents {
@@ -1058,27 +1078,45 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1058
1078
  display: block;
1059
1079
  }
1060
1080
  }
1081
+ .editor-header__toolbar .editor-collapsible-block-toolbar {
1082
+ margin-inline: 8px 0;
1083
+ }
1084
+ .editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed ~ .editor-collapsible-block-toolbar__toggle {
1085
+ margin-inline: 8px 0;
1086
+ }
1061
1087
 
1062
1088
  .editor-header__center {
1063
- flex-grow: 1;
1089
+ grid-column: 3/4;
1064
1090
  display: flex;
1065
1091
  justify-content: center;
1092
+ align-items: center;
1066
1093
  min-width: 0;
1094
+ clip-path: inset(-2px);
1067
1095
  }
1068
- .editor-header__center.is-collapsed {
1069
- display: none;
1096
+ @media (max-width: 479px) {
1097
+ .editor-header__center > :first-child {
1098
+ margin-inline-start: 8px;
1099
+ }
1100
+ .editor-header__center > :last-child {
1101
+ margin-inline-end: 8px;
1102
+ }
1070
1103
  }
1071
1104
 
1072
1105
  /**
1073
1106
  * Buttons on the right side
1074
1107
  */
1075
1108
  .editor-header__settings {
1109
+ grid-column: 3/-1;
1110
+ justify-self: end;
1076
1111
  display: inline-flex;
1077
1112
  align-items: center;
1078
1113
  flex-wrap: nowrap;
1079
1114
  padding-right: 4px;
1080
1115
  gap: 8px;
1081
1116
  }
1117
+ .editor-header:has(> .editor-header__center) .editor-header__settings {
1118
+ grid-column: 4/-1;
1119
+ }
1082
1120
  @media (min-width: 600px) {
1083
1121
  .editor-header__settings {
1084
1122
  padding-right: 8px;
@@ -1236,12 +1274,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1236
1274
  }
1237
1275
 
1238
1276
  .editor-inserter-sidebar__content {
1239
- height: calc(100% - 36px - 8px);
1240
- }
1241
- @media (min-width: 782px) {
1242
- .editor-inserter-sidebar__content {
1243
- height: 100%;
1244
- }
1277
+ height: 100%;
1245
1278
  }
1246
1279
 
1247
1280
  .editor-keyboard-shortcut-help-modal__section {
@@ -1671,7 +1704,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
1671
1704
  white-space: normal;
1672
1705
  text-wrap: balance;
1673
1706
  text-wrap: pretty;
1674
- height: auto;
1675
1707
  min-height: 32px;
1676
1708
  }
1677
1709
  .editor-post-panel__row-control .components-dropdown {
@@ -2174,6 +2206,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2174
2206
  height: 24px;
2175
2207
  min-width: 24px;
2176
2208
  max-width: 24px;
2209
+ position: relative;
2177
2210
  margin-top: 2px;
2178
2211
  }
2179
2212
  @media (prefers-reduced-motion: reduce) {
@@ -2206,24 +2239,28 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2206
2239
  }
2207
2240
  @media (min-width: 600px) {
2208
2241
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
2209
- height: 20px;
2210
- width: 20px;
2211
- min-width: 20px;
2212
- max-width: 20px;
2242
+ height: 16px;
2243
+ width: 16px;
2244
+ min-width: 16px;
2245
+ max-width: 16px;
2213
2246
  }
2214
2247
  }
2215
2248
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2216
2249
  box-sizing: inherit;
2217
- width: 8px;
2218
- height: 8px;
2219
- transform: translate(7px, 7px);
2250
+ width: 12px;
2251
+ height: 12px;
2252
+ position: absolute;
2253
+ top: 50%;
2254
+ left: 50%;
2255
+ transform: translate(-50%, -50%);
2220
2256
  margin: 0;
2221
2257
  background-color: #fff;
2222
2258
  border: 4px solid #fff;
2223
2259
  }
2224
2260
  @media (min-width: 600px) {
2225
2261
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
2226
- transform: translate(5px, 5px);
2262
+ width: 8px;
2263
+ height: 8px;
2227
2264
  }
2228
2265
  }
2229
2266
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
@@ -2232,7 +2269,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2232
2269
  }
2233
2270
  .editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked {
2234
2271
  background: var(--wp-admin-theme-color);
2235
- border-color: var(--wp-admin-theme-color);
2272
+ border: none;
2236
2273
  }
2237
2274
  .editor-post-visibility__fieldset .editor-post-visibility__info {
2238
2275
  color: #757575;
@@ -2241,7 +2278,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2241
2278
  }
2242
2279
  @media (min-width: 600px) {
2243
2280
  .editor-post-visibility__fieldset .editor-post-visibility__info {
2244
- margin-left: 32px;
2281
+ margin-left: 28px;
2245
2282
  }
2246
2283
  }
2247
2284
  .editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info {
@@ -2611,7 +2648,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
2611
2648
 
2612
2649
  .editor-visual-editor {
2613
2650
  position: relative;
2614
- height: 100%;
2615
2651
  display: block;
2616
2652
  background-color: #ddd;
2617
2653
  isolation: isolate;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Function to register core block bindings sources provided by the editor.
3
+ *
4
+ * @example
5
+ * ```js
6
+ * import { registerCoreBlockBindingsSources } from '@wordpress/editor';
7
+ *
8
+ * registerCoreBlockBindingsSources();
9
+ * ```
10
+ */
11
+ export function registerCoreBlockBindingsSources(): void;
12
+ /**
13
+ * Function to bootstrap core block bindings sources defined in the server.
14
+ *
15
+ * @param {Object} sources Object containing the sources to bootstrap.
16
+ *
17
+ * @example
18
+ * ```js
19
+ * import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
20
+ *
21
+ * bootstrapBlockBindingsSourcesFromServer( sources );
22
+ * ```
23
+ */
24
+ export function bootstrapBlockBindingsSourcesFromServer(sources: Object): void;
25
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/bindings/api.js"],"names":[],"mappings":"AAgBA;;;;;;;;;GASG;AACH,yDAIC;AAED;;;;;;;;;;;GAWG;AACH,iEATW,MAAM,QAqBhB"}