@wordpress/editor 14.9.0 → 14.10.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 (338) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/bindings/api.js +0 -29
  3. package/build/bindings/api.js.map +1 -1
  4. package/build/components/autocompleters/user.js.map +1 -1
  5. package/build/components/block-manager/index.js +2 -2
  6. package/build/components/block-manager/index.js.map +1 -1
  7. package/build/components/commands/index.js.map +1 -1
  8. package/build/components/create-template-part-modal/index.js.map +1 -1
  9. package/build/components/create-template-part-modal/utils.js.map +1 -1
  10. package/build/components/document-outline/index.js.map +1 -1
  11. package/build/components/document-outline/item.js.map +1 -1
  12. package/build/components/document-tools/index.js +1 -1
  13. package/build/components/document-tools/index.js.map +1 -1
  14. package/build/components/editor-interface/index.js +1 -12
  15. package/build/components/editor-interface/index.js.map +1 -1
  16. package/build/components/entities-saved-states/index.js +1 -1
  17. package/build/components/entities-saved-states/index.js.map +1 -1
  18. package/build/components/media-categories/index.js.map +1 -1
  19. package/build/components/page-attributes/parent.js +1 -1
  20. package/build/components/page-attributes/parent.js.map +1 -1
  21. package/build/components/plugin-document-setting-panel/index.js.map +1 -1
  22. package/build/components/post-actions/index.js.map +1 -1
  23. package/build/components/post-content-information/index.js +1 -1
  24. package/build/components/post-content-information/index.js.map +1 -1
  25. package/build/components/post-featured-image/index.js.map +1 -1
  26. package/build/components/post-format/index.js +1 -1
  27. package/build/components/post-format/index.js.map +1 -1
  28. package/build/components/post-last-revision/index.js +1 -1
  29. package/build/components/post-last-revision/index.js.map +1 -1
  30. package/build/components/post-locked-modal/index.js +2 -2
  31. package/build/components/post-locked-modal/index.js.map +1 -1
  32. package/build/components/post-preview-button/index.js +1 -1
  33. package/build/components/post-preview-button/index.js.map +1 -1
  34. package/build/components/post-publish-button/index.js.map +1 -1
  35. package/build/components/post-publish-panel/maybe-post-format-panel.js +1 -1
  36. package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  37. package/build/components/post-publish-panel/maybe-upload-media.js +1 -0
  38. package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  39. package/build/components/post-publish-panel/media-util.js +1 -0
  40. package/build/components/post-publish-panel/media-util.js.map +1 -1
  41. package/build/components/post-publish-panel/postpublish.js +1 -1
  42. package/build/components/post-publish-panel/postpublish.js.map +1 -1
  43. package/build/components/post-schedule/label.js.map +1 -1
  44. package/build/components/post-taxonomies/flat-term-selector.js +4 -4
  45. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  46. package/build/components/post-taxonomies/hierarchical-term-selector.js +3 -2
  47. package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  48. package/build/components/post-taxonomies/index.js +1 -1
  49. package/build/components/post-taxonomies/index.js.map +1 -1
  50. package/build/components/post-taxonomies/panel.js.map +1 -1
  51. package/build/components/post-template/classic-theme.js +2 -4
  52. package/build/components/post-template/classic-theme.js.map +1 -1
  53. package/build/components/post-text-editor/index.js.map +1 -1
  54. package/build/components/post-title/index.js +15 -19
  55. package/build/components/post-title/index.js.map +1 -1
  56. package/build/components/post-title/index.native.js +2 -2
  57. package/build/components/post-title/index.native.js.map +1 -1
  58. package/build/components/post-url/index.js +76 -63
  59. package/build/components/post-url/index.js.map +1 -1
  60. package/build/components/post-url/panel.js +46 -26
  61. package/build/components/post-url/panel.js.map +1 -1
  62. package/build/components/post-visibility/index.js.map +1 -1
  63. package/build/components/preferences-modal/index.js.map +1 -1
  64. package/build/components/preview-dropdown/index.js.map +1 -1
  65. package/build/components/provider/index.js +1 -1
  66. package/build/components/provider/index.js.map +1 -1
  67. package/build/components/resizable-editor/resize-handle.js.map +1 -1
  68. package/build/components/time-to-read/index.js +1 -1
  69. package/build/components/time-to-read/index.js.map +1 -1
  70. package/build/components/visual-editor/edit-template-blocks-notification.js +4 -1
  71. package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  72. package/build/components/visual-editor/index.js +4 -3
  73. package/build/components/visual-editor/index.js.map +1 -1
  74. package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
  75. package/build/dataviews/actions/duplicate-template-part.js +1 -1
  76. package/build/dataviews/actions/duplicate-template-part.js.map +1 -1
  77. package/build/private-apis.js +0 -1
  78. package/build/private-apis.js.map +1 -1
  79. package/build/store/actions.js +26 -1
  80. package/build/store/actions.js.map +1 -1
  81. package/build/store/constants.js +1 -0
  82. package/build/store/constants.js.map +1 -1
  83. package/build/store/local-autosave.js.map +1 -1
  84. package/build/store/private-actions.js +7 -6
  85. package/build/store/private-actions.js.map +1 -1
  86. package/build/store/selectors.js +21 -0
  87. package/build/store/selectors.js.map +1 -1
  88. package/build/utils/media-upload/index.js.map +1 -1
  89. package/build-module/bindings/api.js +1 -29
  90. package/build-module/bindings/api.js.map +1 -1
  91. package/build-module/components/autocompleters/user.js +1 -3
  92. package/build-module/components/autocompleters/user.js.map +1 -1
  93. package/build-module/components/block-manager/category.js +1 -2
  94. package/build-module/components/block-manager/category.js.map +1 -1
  95. package/build-module/components/block-manager/checklist.js +1 -2
  96. package/build-module/components/block-manager/checklist.js.map +1 -1
  97. package/build-module/components/block-manager/index.js +3 -4
  98. package/build-module/components/block-manager/index.js.map +1 -1
  99. package/build-module/components/block-settings-menu/content-only-settings-menu.js +1 -3
  100. package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
  101. package/build-module/components/blog-title/index.js +1 -3
  102. package/build-module/components/blog-title/index.js.map +1 -1
  103. package/build-module/components/collapsible-block-toolbar/index.js +1 -3
  104. package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
  105. package/build-module/components/commands/index.js.map +1 -1
  106. package/build-module/components/create-template-part-modal/index.js +1 -2
  107. package/build-module/components/create-template-part-modal/index.js.map +1 -1
  108. package/build-module/components/create-template-part-modal/utils.js.map +1 -1
  109. package/build-module/components/document-bar/index.js +1 -2
  110. package/build-module/components/document-bar/index.js.map +1 -1
  111. package/build-module/components/document-outline/index.js +1 -2
  112. package/build-module/components/document-outline/index.js.map +1 -1
  113. package/build-module/components/document-outline/item.js +1 -2
  114. package/build-module/components/document-outline/item.js.map +1 -1
  115. package/build-module/components/document-tools/index.js +2 -4
  116. package/build-module/components/document-tools/index.js.map +1 -1
  117. package/build-module/components/editor/index.js +1 -3
  118. package/build-module/components/editor/index.js.map +1 -1
  119. package/build-module/components/editor-help/add-blocks.native.js +1 -3
  120. package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
  121. package/build-module/components/editor-help/customize-blocks.native.js +1 -3
  122. package/build-module/components/editor-help/customize-blocks.native.js.map +1 -1
  123. package/build-module/components/editor-help/help-detail-navigation-screen.native.js +1 -2
  124. package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
  125. package/build-module/components/editor-help/index.native.js +1 -3
  126. package/build-module/components/editor-help/index.native.js.map +1 -1
  127. package/build-module/components/editor-help/intro-to-blocks.native.js +1 -3
  128. package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
  129. package/build-module/components/editor-help/move-blocks.native.js +1 -3
  130. package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
  131. package/build-module/components/editor-help/remove-blocks.native.js +1 -3
  132. package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
  133. package/build-module/components/editor-help/view-sections.native.js +1 -2
  134. package/build-module/components/editor-help/view-sections.native.js.map +1 -1
  135. package/build-module/components/editor-interface/index.js +2 -15
  136. package/build-module/components/editor-interface/index.js.map +1 -1
  137. package/build-module/components/editor-notices/index.js +1 -3
  138. package/build-module/components/editor-notices/index.js.map +1 -1
  139. package/build-module/components/entities-saved-states/entity-record-item.js +1 -3
  140. package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
  141. package/build-module/components/entities-saved-states/entity-type-list.js +1 -2
  142. package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
  143. package/build-module/components/entities-saved-states/index.js +2 -3
  144. package/build-module/components/entities-saved-states/index.js.map +1 -1
  145. package/build-module/components/error-boundary/index.native.js +1 -2
  146. package/build-module/components/error-boundary/index.native.js.map +1 -1
  147. package/build-module/components/header/index.js +1 -2
  148. package/build-module/components/header/index.js.map +1 -1
  149. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
  150. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  151. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -3
  152. package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
  153. package/build-module/components/list-view-sidebar/list-view-outline.js +1 -3
  154. package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
  155. package/build-module/components/media-categories/index.js.map +1 -1
  156. package/build-module/components/more-menu/index.js +1 -3
  157. package/build-module/components/more-menu/index.js.map +1 -1
  158. package/build-module/components/offline-status/index.native.js +1 -2
  159. package/build-module/components/offline-status/index.native.js.map +1 -1
  160. package/build-module/components/page-attributes/parent.js +2 -3
  161. package/build-module/components/page-attributes/parent.js.map +1 -1
  162. package/build-module/components/plugin-document-setting-panel/index.js +1 -3
  163. package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
  164. package/build-module/components/post-actions/index.js +1 -3
  165. package/build-module/components/post-actions/index.js.map +1 -1
  166. package/build-module/components/post-author/panel.js +1 -2
  167. package/build-module/components/post-author/panel.js.map +1 -1
  168. package/build-module/components/post-card-panel/index.js +1 -2
  169. package/build-module/components/post-card-panel/index.js.map +1 -1
  170. package/build-module/components/post-content-information/index.js +1 -1
  171. package/build-module/components/post-content-information/index.js.map +1 -1
  172. package/build-module/components/post-discussion/panel.js +1 -2
  173. package/build-module/components/post-discussion/panel.js.map +1 -1
  174. package/build-module/components/post-excerpt/panel.js +1 -3
  175. package/build-module/components/post-excerpt/panel.js.map +1 -1
  176. package/build-module/components/post-featured-image/index.js +1 -2
  177. package/build-module/components/post-featured-image/index.js.map +1 -1
  178. package/build-module/components/post-format/index.js +2 -3
  179. package/build-module/components/post-format/index.js.map +1 -1
  180. package/build-module/components/post-format/panel.js +1 -2
  181. package/build-module/components/post-format/panel.js.map +1 -1
  182. package/build-module/components/post-last-revision/index.js +1 -1
  183. package/build-module/components/post-last-revision/index.js.map +1 -1
  184. package/build-module/components/post-locked-modal/index.js +3 -5
  185. package/build-module/components/post-locked-modal/index.js.map +1 -1
  186. package/build-module/components/post-panel-row/index.js +1 -2
  187. package/build-module/components/post-panel-row/index.js.map +1 -1
  188. package/build-module/components/post-preview-button/index.js +2 -4
  189. package/build-module/components/post-preview-button/index.js.map +1 -1
  190. package/build-module/components/post-publish-button/index.js +1 -2
  191. package/build-module/components/post-publish-button/index.js.map +1 -1
  192. package/build-module/components/post-publish-panel/index.js +1 -3
  193. package/build-module/components/post-publish-panel/index.js.map +1 -1
  194. package/build-module/components/post-publish-panel/maybe-category-panel.js +1 -2
  195. package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
  196. package/build-module/components/post-publish-panel/maybe-post-format-panel.js +2 -3
  197. package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
  198. package/build-module/components/post-publish-panel/maybe-tags-panel.js +1 -2
  199. package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
  200. package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -2
  201. package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
  202. package/build-module/components/post-publish-panel/media-util.js +1 -0
  203. package/build-module/components/post-publish-panel/media-util.js.map +1 -1
  204. package/build-module/components/post-publish-panel/postpublish.js +2 -4
  205. package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
  206. package/build-module/components/post-publish-panel/prepublish.js +1 -3
  207. package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
  208. package/build-module/components/post-saved-state/index.js +1 -2
  209. package/build-module/components/post-saved-state/index.js.map +1 -1
  210. package/build-module/components/post-schedule/label.js.map +1 -1
  211. package/build-module/components/post-status/index.js +1 -3
  212. package/build-module/components/post-status/index.js.map +1 -1
  213. package/build-module/components/post-switch-to-draft-button/index.js +1 -3
  214. package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
  215. package/build-module/components/post-taxonomies/flat-term-selector.js +5 -7
  216. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  217. package/build-module/components/post-taxonomies/hierarchical-term-selector.js +4 -4
  218. package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
  219. package/build-module/components/post-taxonomies/index.js +1 -1
  220. package/build-module/components/post-taxonomies/index.js.map +1 -1
  221. package/build-module/components/post-taxonomies/most-used-terms.js +1 -2
  222. package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
  223. package/build-module/components/post-taxonomies/panel.js.map +1 -1
  224. package/build-module/components/post-template/block-theme.js +1 -3
  225. package/build-module/components/post-template/block-theme.js.map +1 -1
  226. package/build-module/components/post-template/classic-theme.js +3 -6
  227. package/build-module/components/post-template/classic-theme.js.map +1 -1
  228. package/build-module/components/post-template/create-new-template-modal.js +1 -2
  229. package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
  230. package/build-module/components/post-template/create-new-template.js +1 -3
  231. package/build-module/components/post-template/create-new-template.js.map +1 -1
  232. package/build-module/components/post-template/swap-template-button.js +1 -3
  233. package/build-module/components/post-template/swap-template-button.js.map +1 -1
  234. package/build-module/components/post-text-editor/index.js +1 -3
  235. package/build-module/components/post-text-editor/index.js.map +1 -1
  236. package/build-module/components/post-title/index.js +15 -19
  237. package/build-module/components/post-title/index.js.map +1 -1
  238. package/build-module/components/post-title/index.native.js +2 -2
  239. package/build-module/components/post-title/index.native.js.map +1 -1
  240. package/build-module/components/post-trash/index.js +1 -2
  241. package/build-module/components/post-trash/index.js.map +1 -1
  242. package/build-module/components/post-url/index.js +78 -66
  243. package/build-module/components/post-url/index.js.map +1 -1
  244. package/build-module/components/post-url/panel.js +48 -28
  245. package/build-module/components/post-url/panel.js.map +1 -1
  246. package/build-module/components/post-visibility/index.js +1 -2
  247. package/build-module/components/post-visibility/index.js.map +1 -1
  248. package/build-module/components/posts-per-page/index.js +1 -3
  249. package/build-module/components/posts-per-page/index.js.map +1 -1
  250. package/build-module/components/preferences-modal/index.js +1 -3
  251. package/build-module/components/preferences-modal/index.js.map +1 -1
  252. package/build-module/components/preview-dropdown/index.js +1 -3
  253. package/build-module/components/preview-dropdown/index.js.map +1 -1
  254. package/build-module/components/provider/index.js +2 -4
  255. package/build-module/components/provider/index.js.map +1 -1
  256. package/build-module/components/provider/index.native.js +1 -3
  257. package/build-module/components/provider/index.native.js.map +1 -1
  258. package/build-module/components/resizable-editor/resize-handle.js +1 -3
  259. package/build-module/components/resizable-editor/resize-handle.js.map +1 -1
  260. package/build-module/components/save-publish-panels/index.js +1 -3
  261. package/build-module/components/save-publish-panels/index.js.map +1 -1
  262. package/build-module/components/sidebar/header.js +1 -2
  263. package/build-module/components/sidebar/header.js.map +1 -1
  264. package/build-module/components/sidebar/index.js +1 -2
  265. package/build-module/components/sidebar/index.js.map +1 -1
  266. package/build-module/components/sidebar/post-summary.js +1 -3
  267. package/build-module/components/sidebar/post-summary.js.map +1 -1
  268. package/build-module/components/site-discussion/index.js +1 -3
  269. package/build-module/components/site-discussion/index.js.map +1 -1
  270. package/build-module/components/start-template-options/index.js +1 -2
  271. package/build-module/components/start-template-options/index.js.map +1 -1
  272. package/build-module/components/table-of-contents/panel.js +1 -3
  273. package/build-module/components/table-of-contents/panel.js.map +1 -1
  274. package/build-module/components/template-part-menu-items/convert-to-template-part.js +1 -3
  275. package/build-module/components/template-part-menu-items/convert-to-template-part.js.map +1 -1
  276. package/build-module/components/template-validation-notice/index.js +1 -3
  277. package/build-module/components/template-validation-notice/index.js.map +1 -1
  278. package/build-module/components/text-editor/index.js +1 -2
  279. package/build-module/components/text-editor/index.js.map +1 -1
  280. package/build-module/components/time-to-read/index.js +1 -1
  281. package/build-module/components/time-to-read/index.js.map +1 -1
  282. package/build-module/components/visual-editor/edit-template-blocks-notification.js +4 -1
  283. package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
  284. package/build-module/components/visual-editor/index.js +5 -6
  285. package/build-module/components/visual-editor/index.js.map +1 -1
  286. package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
  287. package/build-module/dataviews/actions/duplicate-template-part.js +1 -1
  288. package/build-module/dataviews/actions/duplicate-template-part.js.map +1 -1
  289. package/build-module/hooks/pattern-overrides.js +1 -3
  290. package/build-module/hooks/pattern-overrides.js.map +1 -1
  291. package/build-module/private-apis.js +1 -2
  292. package/build-module/private-apis.js.map +1 -1
  293. package/build-module/store/actions.js +26 -1
  294. package/build-module/store/actions.js.map +1 -1
  295. package/build-module/store/constants.js +1 -0
  296. package/build-module/store/constants.js.map +1 -1
  297. package/build-module/store/local-autosave.js.map +1 -1
  298. package/build-module/store/private-actions.js +7 -6
  299. package/build-module/store/private-actions.js.map +1 -1
  300. package/build-module/store/selectors.js +21 -0
  301. package/build-module/store/selectors.js.map +1 -1
  302. package/build-module/utils/media-upload/index.js.map +1 -1
  303. package/build-style/style-rtl.css +20 -5
  304. package/build-style/style.css +20 -5
  305. package/build-types/bindings/api.d.ts +0 -13
  306. package/build-types/bindings/api.d.ts.map +1 -1
  307. package/build-types/components/editor-interface/index.d.ts +1 -2
  308. package/build-types/components/editor-interface/index.d.ts.map +1 -1
  309. package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
  310. package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
  311. package/build-types/components/post-url/index.d.ts.map +1 -1
  312. package/build-types/components/post-url/panel.d.ts.map +1 -1
  313. package/build-types/components/provider/index.d.ts.map +1 -1
  314. package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -1
  315. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  316. package/build-types/private-apis.d.ts.map +1 -1
  317. package/build-types/store/actions.d.ts +1 -4
  318. package/build-types/store/actions.d.ts.map +1 -1
  319. package/build-types/store/selectors.d.ts +21 -0
  320. package/build-types/store/selectors.d.ts.map +1 -1
  321. package/package.json +38 -38
  322. package/src/bindings/api.js +1 -32
  323. package/src/components/document-tools/index.js +1 -1
  324. package/src/components/editor-interface/index.js +0 -15
  325. package/src/components/header/style.scss +1 -0
  326. package/src/components/post-saved-state/test/__snapshots__/index.js.snap +1 -1
  327. package/src/components/post-taxonomies/hierarchical-term-selector.js +1 -0
  328. package/src/components/post-template/classic-theme.js +1 -2
  329. package/src/components/post-url/index.js +67 -55
  330. package/src/components/post-url/panel.js +57 -33
  331. package/src/components/post-url/style.scss +21 -3
  332. package/src/components/provider/index.js +1 -0
  333. package/src/components/visual-editor/edit-template-blocks-notification.js +5 -1
  334. package/src/components/visual-editor/index.js +3 -1
  335. package/src/private-apis.js +1 -5
  336. package/src/store/actions.js +28 -1
  337. package/src/store/selectors.js +21 -0
  338. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AA0NA,oEAaC"}
1
+ {"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AAyNA,oEAaC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,CAoJpB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,CAgKpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CAqCtB"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CA2DtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAgWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AArQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAkME"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAiWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AAtQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAmME"}
@@ -1 +1 @@
1
- {"version":3,"file":"edit-template-blocks-notification.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/edit-template-blocks-notification.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,uEAHG;IAAsD,UAAU,EAAxD,OAAO,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;CAEhD,sCAqEA"}
1
+ {"version":3,"file":"edit-template-blocks-notification.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/edit-template-blocks-notification.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,uEAHG;IAAsD,UAAU,EAAxD,OAAO,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;CAEhD,sCAyEA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AAkGA;;;;;;;gCAgZC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AAmGA;;;;;;;gCAiZC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AAgCA,6BAA8B"}
1
+ {"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA6BA,6BAA8B"}
@@ -200,10 +200,7 @@ export function togglePublishSidebar(): Object;
200
200
  export function setupEditor(post: Object, edits: Object, template: any[] | null): ({ dispatch }: {
201
201
  dispatch: any;
202
202
  }) => void;
203
- export function editPost(edits: Object, options: Object): ({ select, registry }: {
204
- select: any;
205
- registry: any;
206
- }) => void;
203
+ export function editPost(edits: Object, options: Object): Object;
207
204
  export function savePost(options?: Object): ({ select, dispatch, registry }: {
208
205
  select: any;
209
206
  dispatch: any;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AAiJD;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,yCAxCW,MAAM,GAsCL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,6CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,+CAVW,MAAM,GAQL,MAAM,CAOjB;AA6CD;;;EAKC;AAyBD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAOjB;AAiED;;;;;;GAMG;AACH,6CAJW,MAAM,GAEL,MAAM,CAOjB;AAsCD;;;;;GAKG;AACH,4CAHW,OAAO,GACN,MAAM,CAOjB;AA+FD;;;;;GAKG;AACH,sCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,uCAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,wCAFY,MAAM,CAMjB;AAp2BM,kCAJI,MAAM,SACN,MAAM,YACN,YAAM;;WAiCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBA0Hf;AAmBK;;;;oBA2BL;AAUK,iDAFI,MAAM,OAAC;;;oBAqBhB;AAEK;;;;;mBAkBL;AAKK;;WAIL;AAKK;;WAIL;AAgCK;;WAML;AAKK;;WAML;AAsHK,2DAFK,MAAM,OAAA;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAgCK,2CAbI,OAAO,GAAC,MAAM,GAWb,MAAM,CAoBhB;AAoBK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC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DAFI,MAAM;;WAyBf;AAgCK,2CAbI,OAAO,GAAC,MAAM,GAWb,MAAM,CAoBhB;AAoBK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
@@ -29,6 +29,11 @@ export function isCleanNewPost(state: Object): boolean;
29
29
  *
30
30
  * @param {Object} state Global application state.
31
31
  *
32
+ * @example
33
+ *
34
+ *```js
35
+ * const currentPostType = wp.data.select( 'core/editor' ).getCurrentPostType();
36
+ *```
32
37
  * @return {string} Post type.
33
38
  */
34
39
  export function getCurrentPostType(state: Object): string;
@@ -83,6 +88,22 @@ export function getCurrentPostAttribute(state: Object, attributeName: string): a
83
88
  * @param {Object} state Global application state.
84
89
  * @param {string} attributeName Post attribute name.
85
90
  *
91
+ * @example
92
+ *
93
+ *```js
94
+ * // Get specific media size based on the featured media ID
95
+ * // Note: change sizes?.large for any registered size
96
+ * const getFeaturedMediaUrl = useSelect( ( select ) => {
97
+ * const getFeaturedMediaId =
98
+ * select( 'core/editor' ).getEditedPostAttribute( 'featured_media' );
99
+ * const getMedia = select( 'core' ).getMedia( getFeaturedMediaId );
100
+ *
101
+ * return (
102
+ * getMedia?.media_details?.sizes?.large?.source_url || getMedia?.source_url || ''
103
+ * );
104
+ * }, [] );
105
+ *```
106
+ *
86
107
  * @return {*} Post attribute value.
87
108
  */
88
109
  export function getEditedPostAttribute(state: Object, attributeName: string): any;
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts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;;;;;;;;cAzlBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.9.0",
3
+ "version": "14.10.0",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,42 +31,42 @@
31
31
  "{src,build,build-module}/{index.js,store/index.js,hooks/**,bindings/**}"
32
32
  ],
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^4.9.0",
36
- "@wordpress/api-fetch": "^7.9.0",
37
- "@wordpress/blob": "^4.9.0",
38
- "@wordpress/block-editor": "^14.4.0",
39
- "@wordpress/blocks": "^13.9.0",
40
- "@wordpress/commands": "^1.9.0",
41
- "@wordpress/components": "^28.9.0",
42
- "@wordpress/compose": "^7.9.0",
43
- "@wordpress/core-data": "^7.9.0",
44
- "@wordpress/data": "^10.9.0",
45
- "@wordpress/dataviews": "^4.5.0",
46
- "@wordpress/date": "^5.9.0",
47
- "@wordpress/deprecated": "^4.9.0",
48
- "@wordpress/dom": "^4.9.0",
49
- "@wordpress/element": "^6.9.0",
50
- "@wordpress/fields": "^0.1.0",
51
- "@wordpress/hooks": "^4.9.0",
52
- "@wordpress/html-entities": "^4.9.0",
53
- "@wordpress/i18n": "^5.9.0",
54
- "@wordpress/icons": "^10.9.0",
55
- "@wordpress/interface": "^6.9.0",
56
- "@wordpress/keyboard-shortcuts": "^5.9.0",
57
- "@wordpress/keycodes": "^4.9.0",
58
- "@wordpress/media-utils": "^5.9.0",
59
- "@wordpress/notices": "^5.9.0",
60
- "@wordpress/patterns": "^2.9.0",
61
- "@wordpress/plugins": "^7.9.0",
62
- "@wordpress/preferences": "^4.9.0",
63
- "@wordpress/private-apis": "^1.9.0",
64
- "@wordpress/reusable-blocks": "^5.9.0",
65
- "@wordpress/rich-text": "^7.9.0",
66
- "@wordpress/server-side-render": "^5.9.0",
67
- "@wordpress/url": "^4.9.0",
68
- "@wordpress/warning": "^3.9.0",
69
- "@wordpress/wordcount": "^4.9.0",
34
+ "@babel/runtime": "7.25.7",
35
+ "@wordpress/a11y": "^4.10.0",
36
+ "@wordpress/api-fetch": "^7.10.0",
37
+ "@wordpress/blob": "^4.10.0",
38
+ "@wordpress/block-editor": "^14.5.0",
39
+ "@wordpress/blocks": "^13.10.0",
40
+ "@wordpress/commands": "^1.10.0",
41
+ "@wordpress/components": "^28.10.0",
42
+ "@wordpress/compose": "^7.10.0",
43
+ "@wordpress/core-data": "^7.10.0",
44
+ "@wordpress/data": "^10.10.0",
45
+ "@wordpress/dataviews": "^4.6.0",
46
+ "@wordpress/date": "^5.10.0",
47
+ "@wordpress/deprecated": "^4.10.0",
48
+ "@wordpress/dom": "^4.10.0",
49
+ "@wordpress/element": "^6.10.0",
50
+ "@wordpress/fields": "^0.2.0",
51
+ "@wordpress/hooks": "^4.10.0",
52
+ "@wordpress/html-entities": "^4.10.0",
53
+ "@wordpress/i18n": "^5.10.0",
54
+ "@wordpress/icons": "^10.10.0",
55
+ "@wordpress/interface": "^7.0.0",
56
+ "@wordpress/keyboard-shortcuts": "^5.10.0",
57
+ "@wordpress/keycodes": "^4.10.0",
58
+ "@wordpress/media-utils": "^5.10.0",
59
+ "@wordpress/notices": "^5.10.0",
60
+ "@wordpress/patterns": "^2.10.0",
61
+ "@wordpress/plugins": "^7.10.0",
62
+ "@wordpress/preferences": "^4.10.0",
63
+ "@wordpress/private-apis": "^1.10.0",
64
+ "@wordpress/reusable-blocks": "^5.10.0",
65
+ "@wordpress/rich-text": "^7.10.0",
66
+ "@wordpress/server-side-render": "^5.10.0",
67
+ "@wordpress/url": "^4.10.0",
68
+ "@wordpress/warning": "^3.10.0",
69
+ "@wordpress/wordcount": "^4.10.0",
70
70
  "change-case": "^4.1.2",
71
71
  "client-zip": "^2.4.5",
72
72
  "clsx": "^2.1.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "2e5495c635910cb34bfaca3c6258d2e989f66214"
89
+ "gitHead": "ab34a7ac935fd1478eac63b596242d83270897ee"
90
90
  }
@@ -1,18 +1,13 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import {
5
- store as blocksStore,
6
- registerBlockBindingsSource,
7
- } from '@wordpress/blocks';
8
- import { dispatch } from '@wordpress/data';
4
+ import { registerBlockBindingsSource } from '@wordpress/blocks';
9
5
 
10
6
  /**
11
7
  * Internal dependencies
12
8
  */
13
9
  import patternOverrides from './pattern-overrides';
14
10
  import postMeta from './post-meta';
15
- import { unlock } from '../lock-unlock';
16
11
 
17
12
  /**
18
13
  * Function to register core block bindings sources provided by the editor.
@@ -28,29 +23,3 @@ export function registerCoreBlockBindingsSources() {
28
23
  registerBlockBindingsSource( patternOverrides );
29
24
  registerBlockBindingsSource( postMeta );
30
25
  }
31
-
32
- /**
33
- * Function to bootstrap core block bindings sources defined in the server.
34
- *
35
- * @param {Object} sources Object containing the sources to bootstrap.
36
- *
37
- * @example
38
- * ```js
39
- * import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
40
- *
41
- * bootstrapBlockBindingsSourcesFromServer( sources );
42
- * ```
43
- */
44
- export function bootstrapBlockBindingsSourcesFromServer( sources ) {
45
- if ( sources ) {
46
- const { addBootstrappedBlockBindingsSource } = unlock(
47
- dispatch( blocksStore )
48
- );
49
- for ( const [ name, args ] of Object.entries( sources ) ) {
50
- addBootstrappedBlockBindingsSource( {
51
- name,
52
- ...args,
53
- } );
54
- }
55
- }
56
- }
@@ -96,7 +96,7 @@ function DocumentTools( { className, disableBlockTools = false } ) {
96
96
 
97
97
  /* translators: button label text should, if possible, be under 16 characters. */
98
98
  const longLabel = _x(
99
- 'Toggle block inserter',
99
+ 'Block Inserter',
100
100
  'Generic label for block inserter button'
101
101
  );
102
102
  const shortLabel = ! isInserterOpened ? __( 'Add' ) : __( 'Close' );
@@ -15,7 +15,6 @@ import {
15
15
  BlockBreadcrumb,
16
16
  BlockToolbar,
17
17
  } from '@wordpress/block-editor';
18
- import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
19
18
  import { useViewportMatch } from '@wordpress/compose';
20
19
  import { useState, useCallback } from '@wordpress/element';
21
20
 
@@ -49,7 +48,6 @@ const interfaceLabels = {
49
48
 
50
49
  export default function EditorInterface( {
51
50
  className,
52
- enableRegionNavigation,
53
51
  styles,
54
52
  children,
55
53
  forceIsDirty,
@@ -69,8 +67,6 @@ export default function EditorInterface( {
69
67
  isListViewOpened,
70
68
  isDistractionFree,
71
69
  isPreviewMode,
72
- previousShortcut,
73
- nextShortcut,
74
70
  showBlockBreadcrumbs,
75
71
  documentLabel,
76
72
  isZoomOut,
@@ -88,12 +84,6 @@ export default function EditorInterface( {
88
84
  isListViewOpened: select( editorStore ).isListViewOpened(),
89
85
  isDistractionFree: get( 'core', 'distractionFree' ),
90
86
  isPreviewMode: editorSettings.__unstableIsPreviewMode,
91
- previousShortcut: select(
92
- keyboardShortcutsStore
93
- ).getAllShortcutKeyCombinations( 'core/editor/previous-region' ),
94
- nextShortcut: select(
95
- keyboardShortcutsStore
96
- ).getAllShortcutKeyCombinations( 'core/editor/next-region' ),
97
87
  showBlockBreadcrumbs: get( 'core', 'showBlockBreadcrumbs' ),
98
88
  // translators: Default label for the Document in the Block Breadcrumb.
99
89
  documentLabel: postTypeLabel || _x( 'Document', 'noun' ),
@@ -121,7 +111,6 @@ export default function EditorInterface( {
121
111
 
122
112
  return (
123
113
  <InterfaceSkeleton
124
- enableRegionNavigation={ enableRegionNavigation }
125
114
  isDistractionFree={ isDistractionFree }
126
115
  className={ clsx( 'editor-editor-interface', className, {
127
116
  'is-entity-save-view-open': !! entitiesSavedStatesCallback,
@@ -231,10 +220,6 @@ export default function EditorInterface( {
231
220
  )
232
221
  : undefined
233
222
  }
234
- shortcuts={ {
235
- previous: previousShortcut,
236
- next: nextShortcut,
237
- } }
238
223
  />
239
224
  );
240
225
  }
@@ -130,6 +130,7 @@
130
130
  // ... and display labels.
131
131
  &::after {
132
132
  content: attr(aria-label);
133
+ white-space: nowrap;
133
134
  }
134
135
  &[aria-disabled="true"] {
135
136
  background-color: transparent;
@@ -16,7 +16,7 @@ exports[`PostSavedState returns a disabled button if the post is not saveable 1`
16
16
  xmlns="http://www.w3.org/2000/svg"
17
17
  >
18
18
  <path
19
- d="M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"
19
+ d="M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"
20
20
  />
21
21
  </svg>
22
22
  </button>
@@ -411,6 +411,7 @@ export function HierarchicalTermSelector( { slug } ) {
411
411
  __next40pxDefaultSize
412
412
  __nextHasNoMarginBottom
413
413
  label={ filterLabel }
414
+ placeholder={ filterLabel }
414
415
  value={ filterValue }
415
416
  onChange={ setFilter }
416
417
  />
@@ -177,8 +177,7 @@ function PostTemplateDropdownContent( { onClose } ) {
177
177
  { canEdit && onNavigateToEntityRecord && (
178
178
  <p>
179
179
  <Button
180
- // TODO: Switch to `true` (40px size) if possible
181
- __next40pxDefaultSize={ false }
180
+ __next40pxDefaultSize
182
181
  variant="link"
183
182
  onClick={ () => {
184
183
  onNavigateToEntityRecord( {
@@ -17,7 +17,7 @@ import {
17
17
  import { store as noticesStore } from '@wordpress/notices';
18
18
  import { copySmall } from '@wordpress/icons';
19
19
  import { store as coreStore } from '@wordpress/core-data';
20
- import { useCopyToClipboard } from '@wordpress/compose';
20
+ import { useCopyToClipboard, useInstanceId } from '@wordpress/compose';
21
21
 
22
22
  /**
23
23
  * Internal dependencies
@@ -70,25 +70,29 @@ export default function PostURL( { onClose } ) {
70
70
  const { createNotice } = useDispatch( noticesStore );
71
71
  const [ forceEmptyField, setForceEmptyField ] = useState( false );
72
72
  const copyButtonRef = useCopyToClipboard( permalink, () => {
73
- createNotice( 'info', __( 'Copied URL to clipboard.' ), {
73
+ createNotice( 'info', __( 'Copied Permalink to clipboard.' ), {
74
74
  isDismissible: true,
75
75
  type: 'snackbar',
76
76
  } );
77
77
  } );
78
+ const postUrlSlugDescriptionId =
79
+ 'editor-post-url__slug-descriotion-' + useInstanceId( PostURL );
80
+
78
81
  return (
79
82
  <div className="editor-post-url">
80
83
  <InspectorPopoverHeader
81
- title={ __( 'Link' ) }
84
+ title={ __( 'Slug' ) }
82
85
  onClose={ onClose }
83
86
  />
84
87
  <VStack spacing={ 3 }>
85
88
  { isEditable && (
86
- <div>
89
+ <p className="editor-post-url__intro">
87
90
  { createInterpolateElement(
88
91
  __(
89
- 'Customize the last part of the URL. <a>Learn more.</a>'
92
+ '<span>Customize the last part of the Permalink.</span> <a>Learn more.</a>'
90
93
  ),
91
94
  {
95
+ span: <span id={ postUrlSlugDescriptionId } />,
92
96
  a: (
93
97
  <ExternalLink
94
98
  href={ __(
@@ -98,59 +102,67 @@ export default function PostURL( { onClose } ) {
98
102
  ),
99
103
  }
100
104
  ) }
101
- </div>
105
+ </p>
102
106
  ) }
103
107
  <div>
104
108
  { isEditable && (
105
- <InputControl
106
- __next40pxDefaultSize
107
- prefix={
108
- <InputControlPrefixWrapper>
109
- /
110
- </InputControlPrefixWrapper>
111
- }
112
- suffix={
113
- <InputControlSuffixWrapper variant="control">
114
- <Button
115
- icon={ copySmall }
116
- ref={ copyButtonRef }
117
- size="small"
118
- label="Copy"
119
- />
120
- </InputControlSuffixWrapper>
121
- }
122
- label={ __( 'Link' ) }
123
- hideLabelFromVision
124
- value={ forceEmptyField ? '' : postSlug }
125
- autoComplete="off"
126
- spellCheck="false"
127
- type="text"
128
- className="editor-post-url__input"
129
- onChange={ ( newValue ) => {
130
- editPost( { slug: newValue } );
131
- // When we delete the field the permalink gets
132
- // reverted to the original value.
133
- // The forceEmptyField logic allows the user to have
134
- // the field temporarily empty while typing.
135
- if ( ! newValue ) {
136
- if ( ! forceEmptyField ) {
137
- setForceEmptyField( true );
138
- }
139
- return;
109
+ <>
110
+ <InputControl
111
+ __next40pxDefaultSize
112
+ prefix={
113
+ <InputControlPrefixWrapper>
114
+ /
115
+ </InputControlPrefixWrapper>
140
116
  }
141
- if ( forceEmptyField ) {
142
- setForceEmptyField( false );
117
+ suffix={
118
+ <InputControlSuffixWrapper variant="control">
119
+ <Button
120
+ icon={ copySmall }
121
+ ref={ copyButtonRef }
122
+ size="small"
123
+ label="Copy"
124
+ />
125
+ </InputControlSuffixWrapper>
143
126
  }
144
- } }
145
- onBlur={ ( event ) => {
146
- editPost( {
147
- slug: cleanForSlug( event.target.value ),
148
- } );
149
- if ( forceEmptyField ) {
150
- setForceEmptyField( false );
151
- }
152
- } }
153
- help={
127
+ label={ __( 'Slug' ) }
128
+ hideLabelFromVision
129
+ value={ forceEmptyField ? '' : postSlug }
130
+ autoComplete="off"
131
+ spellCheck="false"
132
+ type="text"
133
+ className="editor-post-url__input"
134
+ onChange={ ( newValue ) => {
135
+ editPost( { slug: newValue } );
136
+ // When we delete the field the permalink gets
137
+ // reverted to the original value.
138
+ // The forceEmptyField logic allows the user to have
139
+ // the field temporarily empty while typing.
140
+ if ( ! newValue ) {
141
+ if ( ! forceEmptyField ) {
142
+ setForceEmptyField( true );
143
+ }
144
+ return;
145
+ }
146
+ if ( forceEmptyField ) {
147
+ setForceEmptyField( false );
148
+ }
149
+ } }
150
+ onBlur={ ( event ) => {
151
+ editPost( {
152
+ slug: cleanForSlug(
153
+ event.target.value
154
+ ),
155
+ } );
156
+ if ( forceEmptyField ) {
157
+ setForceEmptyField( false );
158
+ }
159
+ } }
160
+ aria-describedby={ postUrlSlugDescriptionId }
161
+ />
162
+ <p className="editor-post-url__permalink">
163
+ <span className="editor-post-url__permalink-visual-label">
164
+ { __( 'Permalink:' ) }
165
+ </span>
154
166
  <ExternalLink
155
167
  className="editor-post-url__link"
156
168
  href={ postLink }
@@ -166,8 +178,8 @@ export default function PostURL( { onClose } ) {
166
178
  { permalinkSuffix }
167
179
  </span>
168
180
  </ExternalLink>
169
- }
170
- />
181
+ </p>
182
+ </>
171
183
  ) }
172
184
  { ! isEditable && (
173
185
  <ExternalLink