@wordpress/editor 14.44.1-next.v.202604201441.0 → 14.45.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 (322) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/collab-sidebar/{comment-menu-item.cjs → add-note-menu-item.cjs} +17 -14
  3. package/build/components/collab-sidebar/add-note-menu-item.cjs.map +7 -0
  4. package/build/components/collab-sidebar/{add-comment.cjs → add-note.cjs} +28 -41
  5. package/build/components/collab-sidebar/add-note.cjs.map +7 -0
  6. package/build/components/collab-sidebar/board-store.cjs +3 -0
  7. package/build/components/collab-sidebar/board-store.cjs.map +2 -2
  8. package/build/components/collab-sidebar/floating-container.cjs +4 -3
  9. package/build/components/collab-sidebar/floating-container.cjs.map +3 -3
  10. package/build/components/collab-sidebar/hooks.cjs +92 -135
  11. package/build/components/collab-sidebar/hooks.cjs.map +3 -3
  12. package/build/components/collab-sidebar/index.cjs +28 -79
  13. package/build/components/collab-sidebar/index.cjs.map +3 -3
  14. package/build/components/collab-sidebar/{comment-author-info.cjs → note-byline.cjs} +13 -9
  15. package/build/components/collab-sidebar/note-byline.cjs.map +7 -0
  16. package/build/components/collab-sidebar/note-card.cjs +58 -0
  17. package/build/components/collab-sidebar/note-card.cjs.map +7 -0
  18. package/build/components/collab-sidebar/{comment-form.cjs → note-form.cjs} +45 -36
  19. package/build/components/collab-sidebar/note-form.cjs.map +7 -0
  20. package/build/components/collab-sidebar/{comment-indicator-toolbar.cjs → note-indicator-toolbar.cjs} +31 -27
  21. package/build/components/collab-sidebar/note-indicator-toolbar.cjs.map +7 -0
  22. package/build/components/collab-sidebar/note-thread.cjs +321 -0
  23. package/build/components/collab-sidebar/note-thread.cjs.map +7 -0
  24. package/build/components/collab-sidebar/note.cjs +207 -0
  25. package/build/components/collab-sidebar/note.cjs.map +7 -0
  26. package/build/components/collab-sidebar/notes.cjs +237 -0
  27. package/build/components/collab-sidebar/notes.cjs.map +7 -0
  28. package/build/components/collab-sidebar/utils.cjs +23 -25
  29. package/build/components/collab-sidebar/utils.cjs.map +2 -2
  30. package/build/components/document-bar/index.cjs.map +3 -3
  31. package/build/components/error-boundary/index.cjs.map +3 -3
  32. package/build/components/list-view-sidebar/list-view-outline.cjs.map +3 -3
  33. package/build/components/media/media-editor-modal.cjs +93 -0
  34. package/build/components/media/media-editor-modal.cjs.map +7 -0
  35. package/build/components/more-menu/index.cjs +3 -2
  36. package/build/components/more-menu/index.cjs.map +2 -2
  37. package/build/components/post-actions/set-as-homepage.cjs.map +3 -3
  38. package/build/components/post-actions/set-as-posts-page.cjs.map +3 -3
  39. package/build/components/post-card-panel/index.cjs +2 -2
  40. package/build/components/post-card-panel/index.cjs.map +3 -3
  41. package/build/components/post-content-information/index.cjs.map +3 -3
  42. package/build/components/post-excerpt/panel.cjs.map +3 -3
  43. package/build/components/post-last-edited-panel/index.cjs.map +3 -3
  44. package/build/components/post-preview-button/index.cjs +3 -2
  45. package/build/components/post-preview-button/index.cjs.map +2 -2
  46. package/build/components/post-publish-button/index.cjs +2 -2
  47. package/build/components/post-publish-button/index.cjs.map +2 -2
  48. package/build/components/post-publish-button/label.cjs +4 -2
  49. package/build/components/post-publish-button/label.cjs.map +2 -2
  50. package/build/components/post-publish-panel/postpublish.cjs +3 -2
  51. package/build/components/post-publish-panel/postpublish.cjs.map +2 -2
  52. package/build/components/post-revisions-panel/index.cjs +2 -2
  53. package/build/components/post-revisions-panel/index.cjs.map +2 -2
  54. package/build/components/post-revisions-preview/diff-markers.cjs +1 -1
  55. package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
  56. package/build/components/post-revisions-preview/revisions-slider.cjs +1 -0
  57. package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
  58. package/build/components/post-saved-state/index.cjs +4 -1
  59. package/build/components/post-saved-state/index.cjs.map +2 -2
  60. package/build/components/post-text-editor/index.cjs +3 -4
  61. package/build/components/post-text-editor/index.cjs.map +2 -2
  62. package/build/components/preview-dropdown/index.cjs +3 -2
  63. package/build/components/preview-dropdown/index.cjs.map +2 -2
  64. package/build/components/provider/index.cjs +3 -1
  65. package/build/components/provider/index.cjs.map +3 -3
  66. package/build/components/provider/use-block-editor-settings.cjs +7 -1
  67. package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
  68. package/build/components/provider/use-upload-save-lock.cjs +2 -12
  69. package/build/components/provider/use-upload-save-lock.cjs.map +2 -2
  70. package/build/components/resizable-editor/resize-handle.cjs +2 -1
  71. package/build/components/resizable-editor/resize-handle.cjs.map +2 -2
  72. package/build/components/revision-created-panel/index.cjs.map +3 -3
  73. package/build/components/site-discussion/index.cjs.map +2 -2
  74. package/build/components/template-actions-panel/classic-theme-content.cjs.map +2 -2
  75. package/build/components/template-part-menu-items/convert-to-regular.cjs +54 -11
  76. package/build/components/template-part-menu-items/convert-to-regular.cjs.map +3 -3
  77. package/build/components/visual-editor/index.cjs +5 -22
  78. package/build/components/visual-editor/index.cjs.map +2 -2
  79. package/build/store/private-actions.cjs +0 -8
  80. package/build/store/private-actions.cjs.map +2 -2
  81. package/build/store/private-selectors.cjs +0 -5
  82. package/build/store/private-selectors.cjs.map +2 -2
  83. package/build/store/reducer.cjs +0 -10
  84. package/build/store/reducer.cjs.map +2 -2
  85. package/build/utils/media-finalize/index.cjs +3 -2
  86. package/build/utils/media-finalize/index.cjs.map +2 -2
  87. package/build/utils/media-upload/index.cjs +14 -25
  88. package/build/utils/media-upload/index.cjs.map +2 -2
  89. package/build-module/components/collab-sidebar/{comment-menu-item.mjs → add-note-menu-item.mjs} +10 -11
  90. package/build-module/components/collab-sidebar/add-note-menu-item.mjs.map +7 -0
  91. package/build-module/components/collab-sidebar/{add-comment.mjs → add-note.mjs} +26 -29
  92. package/build-module/components/collab-sidebar/add-note.mjs.map +7 -0
  93. package/build-module/components/collab-sidebar/board-store.mjs +3 -0
  94. package/build-module/components/collab-sidebar/board-store.mjs.map +2 -2
  95. package/build-module/components/collab-sidebar/floating-container.mjs +4 -3
  96. package/build-module/components/collab-sidebar/floating-container.mjs.map +2 -2
  97. package/build-module/components/collab-sidebar/hooks.mjs +91 -137
  98. package/build-module/components/collab-sidebar/hooks.mjs.map +2 -2
  99. package/build-module/components/collab-sidebar/index.mjs +29 -84
  100. package/build-module/components/collab-sidebar/index.mjs.map +2 -2
  101. package/build-module/components/collab-sidebar/{comment-author-info.mjs → note-byline.mjs} +7 -7
  102. package/build-module/components/collab-sidebar/note-byline.mjs.map +7 -0
  103. package/build-module/components/collab-sidebar/note-card.mjs +33 -0
  104. package/build-module/components/collab-sidebar/note-card.mjs.map +7 -0
  105. package/build-module/components/collab-sidebar/note-form.mjs +84 -0
  106. package/build-module/components/collab-sidebar/note-form.mjs.map +7 -0
  107. package/build-module/components/collab-sidebar/{comment-indicator-toolbar.mjs → note-indicator-toolbar.mjs} +25 -29
  108. package/build-module/components/collab-sidebar/note-indicator-toolbar.mjs.map +7 -0
  109. package/build-module/components/collab-sidebar/note-thread.mjs +289 -0
  110. package/build-module/components/collab-sidebar/note-thread.mjs.map +7 -0
  111. package/build-module/components/collab-sidebar/note.mjs +176 -0
  112. package/build-module/components/collab-sidebar/note.mjs.map +7 -0
  113. package/build-module/components/collab-sidebar/notes.mjs +215 -0
  114. package/build-module/components/collab-sidebar/notes.mjs.map +7 -0
  115. package/build-module/components/collab-sidebar/utils.mjs +19 -21
  116. package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
  117. package/build-module/components/document-bar/index.mjs +3 -3
  118. package/build-module/components/document-bar/index.mjs.map +2 -2
  119. package/build-module/components/error-boundary/index.mjs +2 -2
  120. package/build-module/components/error-boundary/index.mjs.map +2 -2
  121. package/build-module/components/list-view-sidebar/list-view-outline.mjs +5 -5
  122. package/build-module/components/list-view-sidebar/list-view-outline.mjs.map +2 -2
  123. package/build-module/components/media/media-editor-modal.mjs +62 -0
  124. package/build-module/components/media/media-editor-modal.mjs.map +7 -0
  125. package/build-module/components/more-menu/index.mjs +3 -7
  126. package/build-module/components/more-menu/index.mjs.map +2 -2
  127. package/build-module/components/post-actions/set-as-homepage.mjs +2 -2
  128. package/build-module/components/post-actions/set-as-homepage.mjs.map +2 -2
  129. package/build-module/components/post-actions/set-as-posts-page.mjs +2 -2
  130. package/build-module/components/post-actions/set-as-posts-page.mjs.map +2 -2
  131. package/build-module/components/post-card-panel/index.mjs +5 -5
  132. package/build-module/components/post-card-panel/index.mjs.map +2 -2
  133. package/build-module/components/post-content-information/index.mjs +2 -2
  134. package/build-module/components/post-content-information/index.mjs.map +2 -2
  135. package/build-module/components/post-excerpt/panel.mjs +2 -2
  136. package/build-module/components/post-excerpt/panel.mjs.map +2 -2
  137. package/build-module/components/post-last-edited-panel/index.mjs +2 -2
  138. package/build-module/components/post-last-edited-panel/index.mjs.map +2 -2
  139. package/build-module/components/post-preview-button/index.mjs +3 -2
  140. package/build-module/components/post-preview-button/index.mjs.map +2 -2
  141. package/build-module/components/post-publish-button/index.mjs +2 -2
  142. package/build-module/components/post-publish-button/index.mjs.map +2 -2
  143. package/build-module/components/post-publish-button/label.mjs +4 -2
  144. package/build-module/components/post-publish-button/label.mjs.map +2 -2
  145. package/build-module/components/post-publish-panel/postpublish.mjs +3 -3
  146. package/build-module/components/post-publish-panel/postpublish.mjs.map +2 -2
  147. package/build-module/components/post-revisions-panel/index.mjs +2 -2
  148. package/build-module/components/post-revisions-panel/index.mjs.map +2 -2
  149. package/build-module/components/post-revisions-preview/diff-markers.mjs +1 -1
  150. package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
  151. package/build-module/components/post-revisions-preview/revisions-slider.mjs +1 -0
  152. package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
  153. package/build-module/components/post-saved-state/index.mjs +4 -1
  154. package/build-module/components/post-saved-state/index.mjs.map +2 -2
  155. package/build-module/components/post-text-editor/index.mjs +2 -3
  156. package/build-module/components/post-text-editor/index.mjs.map +2 -2
  157. package/build-module/components/preview-dropdown/index.mjs +2 -2
  158. package/build-module/components/preview-dropdown/index.mjs.map +2 -2
  159. package/build-module/components/provider/index.mjs +3 -1
  160. package/build-module/components/provider/index.mjs.map +2 -2
  161. package/build-module/components/provider/use-block-editor-settings.mjs +7 -1
  162. package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
  163. package/build-module/components/provider/use-upload-save-lock.mjs +2 -12
  164. package/build-module/components/provider/use-upload-save-lock.mjs.map +2 -2
  165. package/build-module/components/resizable-editor/resize-handle.mjs +2 -5
  166. package/build-module/components/resizable-editor/resize-handle.mjs.map +2 -2
  167. package/build-module/components/revision-created-panel/index.mjs +2 -2
  168. package/build-module/components/revision-created-panel/index.mjs.map +2 -2
  169. package/build-module/components/site-discussion/index.mjs +2 -2
  170. package/build-module/components/site-discussion/index.mjs.map +2 -2
  171. package/build-module/components/template-actions-panel/classic-theme-content.mjs +2 -2
  172. package/build-module/components/template-actions-panel/classic-theme-content.mjs.map +2 -2
  173. package/build-module/components/template-part-menu-items/convert-to-regular.mjs +60 -14
  174. package/build-module/components/template-part-menu-items/convert-to-regular.mjs.map +2 -2
  175. package/build-module/components/visual-editor/index.mjs +5 -22
  176. package/build-module/components/visual-editor/index.mjs.map +2 -2
  177. package/build-module/store/private-actions.mjs +0 -7
  178. package/build-module/store/private-actions.mjs.map +2 -2
  179. package/build-module/store/private-selectors.mjs +0 -4
  180. package/build-module/store/private-selectors.mjs.map +2 -2
  181. package/build-module/store/reducer.mjs +0 -9
  182. package/build-module/store/reducer.mjs.map +2 -2
  183. package/build-module/utils/media-finalize/index.mjs +3 -2
  184. package/build-module/utils/media-finalize/index.mjs.map +2 -2
  185. package/build-module/utils/media-upload/index.mjs +14 -25
  186. package/build-module/utils/media-upload/index.mjs.map +2 -2
  187. package/build-style/style-rtl.css +386 -142
  188. package/build-style/style.css +386 -142
  189. package/build-types/components/collab-sidebar/add-note-menu-item.d.ts +5 -0
  190. package/build-types/components/collab-sidebar/add-note-menu-item.d.ts.map +1 -0
  191. package/build-types/components/collab-sidebar/add-note.d.ts +6 -0
  192. package/build-types/components/collab-sidebar/add-note.d.ts.map +1 -0
  193. package/build-types/components/collab-sidebar/board-store.d.ts +1 -0
  194. package/build-types/components/collab-sidebar/board-store.d.ts.map +1 -1
  195. package/build-types/components/collab-sidebar/floating-container.d.ts.map +1 -1
  196. package/build-types/components/collab-sidebar/hooks.d.ts +8 -21
  197. package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
  198. package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
  199. package/build-types/components/collab-sidebar/note-byline.d.ts +7 -0
  200. package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -0
  201. package/build-types/components/collab-sidebar/note-card.d.ts +8 -0
  202. package/build-types/components/collab-sidebar/note-card.d.ts.map +1 -0
  203. package/build-types/components/collab-sidebar/note-form.d.ts +7 -0
  204. package/build-types/components/collab-sidebar/note-form.d.ts.map +1 -0
  205. package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts +5 -0
  206. package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts.map +1 -0
  207. package/build-types/components/collab-sidebar/note-thread.d.ts +11 -0
  208. package/build-types/components/collab-sidebar/note-thread.d.ts.map +1 -0
  209. package/build-types/components/collab-sidebar/note.d.ts +9 -0
  210. package/build-types/components/collab-sidebar/note.d.ts.map +1 -0
  211. package/build-types/components/collab-sidebar/notes.d.ts +7 -0
  212. package/build-types/components/collab-sidebar/notes.d.ts.map +1 -0
  213. package/build-types/components/collab-sidebar/utils.d.ts +21 -20
  214. package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
  215. package/build-types/components/media/media-editor-modal.d.ts +11 -0
  216. package/build-types/components/media/media-editor-modal.d.ts.map +1 -0
  217. package/build-types/components/more-menu/index.d.ts.map +1 -1
  218. package/build-types/components/post-preview-button/index.d.ts.map +1 -1
  219. package/build-types/components/post-publish-button/index.d.ts.map +1 -1
  220. package/build-types/components/post-publish-button/label.d.ts.map +1 -1
  221. package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
  222. package/build-types/components/post-saved-state/index.d.ts.map +1 -1
  223. package/build-types/components/provider/index.d.ts.map +1 -1
  224. package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
  225. package/build-types/components/provider/use-upload-save-lock.d.ts +0 -2
  226. package/build-types/components/provider/use-upload-save-lock.d.ts.map +1 -1
  227. package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
  228. package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -1
  229. package/build-types/components/visual-editor/index.d.ts.map +1 -1
  230. package/build-types/store/private-actions.d.ts +0 -7
  231. package/build-types/store/private-actions.d.ts.map +1 -1
  232. package/build-types/store/private-selectors.d.ts +0 -7
  233. package/build-types/store/private-selectors.d.ts.map +1 -1
  234. package/build-types/store/reducer.d.ts +0 -10
  235. package/build-types/store/reducer.d.ts.map +1 -1
  236. package/build-types/utils/media-finalize/index.d.ts +1 -1
  237. package/build-types/utils/media-finalize/index.d.ts.map +1 -1
  238. package/build-types/utils/media-upload/index.d.ts.map +1 -1
  239. package/package.json +46 -46
  240. package/src/components/collab-sidebar/README.md +117 -0
  241. package/src/components/collab-sidebar/{comment-menu-item.js → add-note-menu-item.js} +8 -10
  242. package/src/components/collab-sidebar/{add-comment.js → add-note.js} +20 -21
  243. package/src/components/collab-sidebar/board-store.js +4 -2
  244. package/src/components/collab-sidebar/floating-container.js +5 -4
  245. package/src/components/collab-sidebar/hooks.js +115 -175
  246. package/src/components/collab-sidebar/index.js +35 -95
  247. package/src/components/collab-sidebar/{comment-author-info.js → note-byline.js} +5 -6
  248. package/src/components/collab-sidebar/note-card.js +36 -0
  249. package/src/components/collab-sidebar/{comment-form.js → note-form.js} +25 -27
  250. package/src/components/collab-sidebar/{comment-indicator-toolbar.js → note-indicator-toolbar.js} +29 -32
  251. package/src/components/collab-sidebar/note-thread.js +331 -0
  252. package/src/components/collab-sidebar/note.js +209 -0
  253. package/src/components/collab-sidebar/notes.js +276 -0
  254. package/src/components/collab-sidebar/style.scss +21 -11
  255. package/src/components/collab-sidebar/test/utils.js +65 -63
  256. package/src/components/collab-sidebar/utils.js +33 -35
  257. package/src/components/document-bar/index.js +4 -4
  258. package/src/components/error-boundary/index.js +3 -3
  259. package/src/components/list-view-sidebar/list-view-outline.js +6 -6
  260. package/src/components/media/media-editor-modal.js +95 -0
  261. package/src/components/more-menu/index.js +3 -7
  262. package/src/components/post-actions/set-as-homepage.js +2 -2
  263. package/src/components/post-actions/set-as-posts-page.js +2 -2
  264. package/src/components/post-card-panel/index.js +7 -7
  265. package/src/components/post-content-information/index.js +3 -3
  266. package/src/components/post-excerpt/panel.js +3 -3
  267. package/src/components/post-last-edited-panel/index.js +3 -3
  268. package/src/components/post-preview-button/index.js +3 -2
  269. package/src/components/post-publish-button/index.js +6 -5
  270. package/src/components/post-publish-button/label.js +3 -1
  271. package/src/components/post-publish-panel/postpublish.js +2 -2
  272. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +8 -14
  273. package/src/components/post-revisions-panel/index.js +3 -3
  274. package/src/components/post-revisions-preview/diff-markers.js +1 -1
  275. package/src/components/post-revisions-preview/revisions-slider.js +1 -0
  276. package/src/components/post-saved-state/index.js +4 -1
  277. package/src/components/post-saved-state/test/__snapshots__/index.js.snap +0 -1
  278. package/src/components/post-text-editor/index.js +3 -3
  279. package/src/components/preview-dropdown/index.js +2 -2
  280. package/src/components/provider/index.js +4 -0
  281. package/src/components/provider/use-block-editor-settings.js +10 -0
  282. package/src/components/provider/use-upload-save-lock.js +2 -17
  283. package/src/components/resizable-editor/resize-handle.js +2 -5
  284. package/src/components/revision-created-panel/index.js +3 -3
  285. package/src/components/site-discussion/index.js +3 -3
  286. package/src/components/template-actions-panel/classic-theme-content.js +3 -3
  287. package/src/components/template-part-menu-items/convert-to-regular.js +74 -12
  288. package/src/components/visual-editor/index.js +2 -29
  289. package/src/store/private-actions.js +0 -13
  290. package/src/store/private-selectors.js +0 -10
  291. package/src/store/reducer.js +0 -16
  292. package/src/utils/media-finalize/index.js +2 -1
  293. package/src/utils/media-finalize/test/index.js +25 -1
  294. package/src/utils/media-upload/index.js +26 -29
  295. package/build/components/collab-sidebar/add-comment.cjs.map +0 -7
  296. package/build/components/collab-sidebar/comment-author-info.cjs.map +0 -7
  297. package/build/components/collab-sidebar/comment-form.cjs.map +0 -7
  298. package/build/components/collab-sidebar/comment-indicator-toolbar.cjs.map +0 -7
  299. package/build/components/collab-sidebar/comment-menu-item.cjs.map +0 -7
  300. package/build/components/collab-sidebar/comments.cjs +0 -696
  301. package/build/components/collab-sidebar/comments.cjs.map +0 -7
  302. package/build-module/components/collab-sidebar/add-comment.mjs.map +0 -7
  303. package/build-module/components/collab-sidebar/comment-author-info.mjs.map +0 -7
  304. package/build-module/components/collab-sidebar/comment-form.mjs +0 -82
  305. package/build-module/components/collab-sidebar/comment-form.mjs.map +0 -7
  306. package/build-module/components/collab-sidebar/comment-indicator-toolbar.mjs.map +0 -7
  307. package/build-module/components/collab-sidebar/comment-menu-item.mjs.map +0 -7
  308. package/build-module/components/collab-sidebar/comments.mjs +0 -678
  309. package/build-module/components/collab-sidebar/comments.mjs.map +0 -7
  310. package/build-types/components/collab-sidebar/add-comment.d.ts +0 -6
  311. package/build-types/components/collab-sidebar/add-comment.d.ts.map +0 -1
  312. package/build-types/components/collab-sidebar/comment-author-info.d.ts +0 -8
  313. package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +0 -1
  314. package/build-types/components/collab-sidebar/comment-form.d.ts +0 -9
  315. package/build-types/components/collab-sidebar/comment-form.d.ts.map +0 -1
  316. package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts +0 -6
  317. package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts.map +0 -1
  318. package/build-types/components/collab-sidebar/comment-menu-item.d.ts +0 -6
  319. package/build-types/components/collab-sidebar/comment-menu-item.d.ts.map +0 -1
  320. package/build-types/components/collab-sidebar/comments.d.ts +0 -10
  321. package/build-types/components/collab-sidebar/comments.d.ts.map +0 -1
  322. package/src/components/collab-sidebar/comments.js +0 -812
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { __experimentalText as Text } from '@wordpress/components';
4
+ import { __experimentalText as WCText } from '@wordpress/components';
5
5
  import { useSelect } from '@wordpress/data';
6
6
  import { __, _x, _n, sprintf } from '@wordpress/i18n';
7
7
  import { count as wordCount } from '@wordpress/wordcount';
@@ -76,14 +76,14 @@ export function PostContentInformationUI( { postContent } ) {
76
76
  );
77
77
  return (
78
78
  <div className="editor-post-content-information">
79
- <Text>
79
+ <WCText>
80
80
  { sprintf(
81
81
  /* translators: 1: How many words a post has. 2: the number of minutes to read the post (e.g. 130 words, 2 minutes read time.) */
82
82
  __( '%1$s, %2$s read time.' ),
83
83
  wordsCountText,
84
84
  minutesText
85
85
  ) }
86
- </Text>
86
+ </WCText>
87
87
  </div>
88
88
  );
89
89
  }
@@ -4,7 +4,7 @@
4
4
  import { __ } from '@wordpress/i18n';
5
5
  import {
6
6
  PanelBody,
7
- __experimentalText as Text,
7
+ __experimentalText as WCText,
8
8
  Dropdown,
9
9
  Button,
10
10
  __experimentalVStack as VStack,
@@ -185,9 +185,9 @@ function PrivateExcerpt() {
185
185
  return false;
186
186
  }
187
187
  const excerptText = !! excerpt && (
188
- <Text align="left" numberOfLines={ 4 } truncate={ allowEditing }>
188
+ <WCText align="left" numberOfLines={ 4 } truncate={ allowEditing }>
189
189
  { decodeEntities( excerpt ) }
190
- </Text>
190
+ </WCText>
191
191
  );
192
192
  if ( ! allowEditing ) {
193
193
  return excerptText;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { __experimentalText as Text } from '@wordpress/components';
4
+ import { __experimentalText as WCText } from '@wordpress/components';
5
5
  import { useSelect } from '@wordpress/data';
6
6
  import { __, sprintf } from '@wordpress/i18n';
7
7
  import { humanTimeDiff } from '@wordpress/date';
@@ -22,13 +22,13 @@ export default function PostLastEditedPanel() {
22
22
  }
23
23
  return (
24
24
  <div className="editor-post-last-edited-panel">
25
- <Text>
25
+ <WCText>
26
26
  { sprintf(
27
27
  // translators: %s: Human-readable time difference, e.g. "2 days ago".
28
28
  __( 'Last edited %s.' ),
29
29
  humanTimeDiff( modified )
30
30
  ) }
31
- </Text>
31
+ </WCText>
32
32
  </div>
33
33
  );
34
34
  }
@@ -2,11 +2,12 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import { renderToString } from '@wordpress/element';
5
- import { Button, Path, SVG, VisuallyHidden } from '@wordpress/components';
5
+ import { Button, Path, SVG } from '@wordpress/components';
6
6
  import { __, _x } from '@wordpress/i18n';
7
7
  import { useSelect, useDispatch } from '@wordpress/data';
8
8
  import { applyFilters } from '@wordpress/hooks';
9
9
  import { store as coreStore } from '@wordpress/core-data';
10
+ import { VisuallyHidden } from '@wordpress/ui';
10
11
 
11
12
  /**
12
13
  * Internal dependencies
@@ -196,7 +197,7 @@ export default function PostPreviewButton( {
196
197
  { textContent || (
197
198
  <>
198
199
  { _x( 'Preview', 'imperative verb' ) }
199
- <VisuallyHidden as="span">
200
+ <VisuallyHidden render={ <span /> }>
200
201
  {
201
202
  /* translators: accessibility text */
202
203
  __( '(opens in a new tab)' )
@@ -101,18 +101,19 @@ export class PostPublishButton extends Component {
101
101
  } = this.props;
102
102
 
103
103
  const isButtonDisabled =
104
- ( isSaving ||
104
+ isPostSavingLocked ||
105
+ ( ( isSaving ||
105
106
  ! isSaveable ||
106
- isPostSavingLocked ||
107
107
  ( ! isPublishable && ! forceIsDirty ) ) &&
108
- ( ! hasNonPostEntityChanges || isSavingNonPostEntityChanges );
108
+ ( ! hasNonPostEntityChanges || isSavingNonPostEntityChanges ) );
109
109
 
110
110
  const isToggleDisabled =
111
- ( isPublished ||
111
+ isPostSavingLocked ||
112
+ ( ( isPublished ||
112
113
  isSaving ||
113
114
  ! isSaveable ||
114
115
  ( ! isPublishable && ! forceIsDirty ) ) &&
115
- ( ! hasNonPostEntityChanges || isSavingNonPostEntityChanges );
116
+ ( ! hasNonPostEntityChanges || isSavingNonPostEntityChanges ) );
116
117
 
117
118
  // If the new status has not changed explicitly, we derive it from
118
119
  // other factors, like having a publish action, etc.. We need to preserve
@@ -29,6 +29,7 @@ export default function PublishButtonLabel() {
29
29
  postStatusHasChanged,
30
30
  postStatus,
31
31
  postType,
32
+ isPostSavingLocked,
32
33
  } = useSelect( ( select ) => {
33
34
  const {
34
35
  isCurrentPostPublished,
@@ -52,6 +53,7 @@ export default function PublishButtonLabel() {
52
53
  isAutosaving: isAutosavingPost(),
53
54
  hasNonPostEntityChanges:
54
55
  select( editorStore ).hasNonPostEntityChanges(),
56
+ isPostSavingLocked: select( editorStore ).isPostSavingLocked(),
55
57
  postStatusHasChanged: !! getPostEdits()?.status,
56
58
  postStatus: getEditedPostAttribute( 'status' ),
57
59
  };
@@ -82,7 +84,7 @@ export default function PublishButtonLabel() {
82
84
  : __( 'Submit for Review' );
83
85
  }
84
86
  if (
85
- hasNonPostEntityChanges ||
87
+ ( hasNonPostEntityChanges && ! isPostSavingLocked ) ||
86
88
  isPublished ||
87
89
  ( postStatusHasChanged &&
88
90
  ! [ 'future', 'publish' ].includes( postStatus ) ) ||
@@ -6,7 +6,6 @@ import {
6
6
  Button,
7
7
  TextControl,
8
8
  ExternalLink,
9
- VisuallyHidden,
10
9
  } from '@wordpress/components';
11
10
  import { __, sprintf } from '@wordpress/i18n';
12
11
  import { useCallback, useEffect, useState, useRef } from '@wordpress/element';
@@ -16,6 +15,7 @@ import { decodeEntities } from '@wordpress/html-entities';
16
15
  import { useCopyToClipboard } from '@wordpress/compose';
17
16
  import { store as coreStore } from '@wordpress/core-data';
18
17
  import { external } from '@wordpress/icons';
18
+ import { VisuallyHidden } from '@wordpress/ui';
19
19
 
20
20
  /**
21
21
  * Internal dependencies
@@ -164,7 +164,7 @@ export default function PostPublishPanelPostpublish( {
164
164
  target="_blank"
165
165
  >
166
166
  { viewPostLabel }
167
- <VisuallyHidden as="span">
167
+ <VisuallyHidden render={ <span /> }>
168
168
  {
169
169
  /* translators: accessibility text */
170
170
  __( '(opens in a new tab)' )
@@ -27,7 +27,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
27
27
  padding: 0;
28
28
  }
29
29
 
30
- .emotion-12 {
30
+ .emotion-10 {
31
31
  display: -webkit-box;
32
32
  display: -webkit-flex;
33
33
  display: -ms-flexbox;
@@ -47,7 +47,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
47
47
  width: 100%;
48
48
  }
49
49
 
50
- .emotion-12>* {
50
+ .emotion-10>* {
51
51
  min-width: 0;
52
52
  }
53
53
 
@@ -161,10 +161,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
161
161
  target="_blank"
162
162
  >
163
163
  <span
164
- class="components-visually-hidden emotion-6 emotion-7"
165
- data-wp-c16t="true"
166
- data-wp-component="VisuallyHidden"
167
- style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal; word-break: normal;"
164
+ data-visually-hidden=""
168
165
  >
169
166
  (opens in a new tab)
170
167
  </span>
@@ -199,7 +196,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
199
196
  class="components-base-control__field emotion-2 emotion-3"
200
197
  >
201
198
  <div
202
- class="components-flex components-h-stack emotion-12 emotion-7"
199
+ class="components-flex components-h-stack emotion-10 emotion-11"
203
200
  data-wp-c16t="true"
204
201
  data-wp-component="HStack"
205
202
  >
@@ -254,7 +251,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
254
251
  padding: 0;
255
252
  }
256
253
 
257
- .emotion-12 {
254
+ .emotion-10 {
258
255
  display: -webkit-box;
259
256
  display: -webkit-flex;
260
257
  display: -ms-flexbox;
@@ -274,7 +271,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
274
271
  width: 100%;
275
272
  }
276
273
 
277
- .emotion-12>* {
274
+ .emotion-10>* {
278
275
  min-width: 0;
279
276
  }
280
277
 
@@ -388,10 +385,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
388
385
  target="_blank"
389
386
  >
390
387
  <span
391
- class="components-visually-hidden emotion-6 emotion-7"
392
- data-wp-c16t="true"
393
- data-wp-component="VisuallyHidden"
394
- style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal; word-break: normal;"
388
+ data-visually-hidden=""
395
389
  >
396
390
  (opens in a new tab)
397
391
  </span>
@@ -426,7 +420,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
426
420
  class="components-base-control__field emotion-2 emotion-3"
427
421
  >
428
422
  <div
429
- class="components-flex components-h-stack emotion-12 emotion-7"
423
+ class="components-flex components-h-stack emotion-10 emotion-11"
430
424
  data-wp-c16t="true"
431
425
  data-wp-component="HStack"
432
426
  >
@@ -22,7 +22,7 @@ import PostLastRevisionCheck from '../post-last-revision/check';
22
22
  import { store as editorStore } from '../../store';
23
23
  import { unlock } from '../../lock-unlock';
24
24
 
25
- const { Badge } = unlock( componentsPrivateApis );
25
+ const { Badge: WCBadge } = unlock( componentsPrivateApis );
26
26
  const DAY_IN_MILLISECONDS = 86400000;
27
27
  const EMPTY_ARRAY = [];
28
28
  const defaultLayouts = { activity: true };
@@ -107,9 +107,9 @@ function PostRevisionsPanelContent() {
107
107
  title={
108
108
  <HStack justify="space-between" align="center" as="span">
109
109
  <span>{ __( 'Revisions' ) }</span>
110
- <Badge className="editor-post-revisions-panel__revisions-count">
110
+ <WCBadge className="editor-post-revisions-panel__revisions-count">
111
111
  { revisionsCount }
112
- </Badge>
112
+ </WCBadge>
113
113
  </HStack>
114
114
  }
115
115
  initialOpen={ false }
@@ -145,7 +145,7 @@ export function useDiffMarkers() {
145
145
  key="diff-markers"
146
146
  className="revision-diff-markers"
147
147
  role="navigation"
148
- aria-label={ __( 'Diff markers' ) }
148
+ aria-label={ __( 'Document changes' ) }
149
149
  >
150
150
  { isMounted &&
151
151
  diffBlocks.map( ( { clientId, status } ) => (
@@ -117,6 +117,7 @@ function RevisionsSlider() {
117
117
  return (
118
118
  <RangeControl
119
119
  __next40pxDefaultSize
120
+ aria-valuetext={ renderTooltipContent( selectedIndex ) }
120
121
  className="editor-revisions-header__slider"
121
122
  hideLabelFromVision
122
123
  label={ __( 'Revision' ) }
@@ -45,6 +45,7 @@ export default function PostSavedState( { forceIsDirty } ) {
45
45
  isPublished,
46
46
  isSaveable,
47
47
  isSaving,
48
+ isSavingLocked,
48
49
  isScheduled,
49
50
  hasPublishAction,
50
51
  showIconLabels,
@@ -60,6 +61,7 @@ export default function PostSavedState( { forceIsDirty } ) {
60
61
  isEditedPostDirty,
61
62
  isSavingPost,
62
63
  isEditedPostSaveable,
64
+ isPostSavingLocked,
63
65
  getCurrentPost,
64
66
  isAutosavingPost,
65
67
  getEditedPostAttribute,
@@ -73,6 +75,7 @@ export default function PostSavedState( { forceIsDirty } ) {
73
75
  isPublished: isCurrentPostPublished(),
74
76
  isSaving: isSavingPost(),
75
77
  isSaveable: isEditedPostSaveable(),
78
+ isSavingLocked: isPostSavingLocked(),
76
79
  isScheduled: isCurrentPostScheduled(),
77
80
  hasPublishAction:
78
81
  getCurrentPost()?._links?.[ 'wp:action-publish' ] ?? false,
@@ -140,7 +143,7 @@ export default function PostSavedState( { forceIsDirty } ) {
140
143
 
141
144
  const isSaved = forceSavedMessage || ( ! isNew && ! isDirty );
142
145
  const isSavedState = isSaving || isSaved;
143
- const isDisabled = isSaving || isSaved || ! isSaveable;
146
+ const isDisabled = isSaving || isSaved || ! isSaveable || isSavingLocked;
144
147
  let text;
145
148
 
146
149
  if ( isSaving ) {
@@ -24,7 +24,6 @@ exports[`PostSavedState returns a disabled button if the post is not saveable 1`
24
24
 
25
25
  exports[`PostSavedState should return Save button if edits to be saved 1`] = `
26
26
  <button
27
- aria-disabled="false"
28
27
  aria-label="Save draft"
29
28
  class="components-button editor-post-save-draft is-compact is-tertiary"
30
29
  type="button"
@@ -10,7 +10,7 @@ import { __ } from '@wordpress/i18n';
10
10
  import { store as coreStore } from '@wordpress/core-data';
11
11
  import { useDispatch, useSelect } from '@wordpress/data';
12
12
  import { useInstanceId } from '@wordpress/compose';
13
- import { VisuallyHidden } from '@wordpress/components';
13
+ import { VisuallyHidden } from '@wordpress/ui';
14
14
 
15
15
  /**
16
16
  * Internal dependencies
@@ -38,8 +38,8 @@ export default function PostTextEditor() {
38
38
  return (
39
39
  <>
40
40
  <VisuallyHidden
41
- as="label"
42
- htmlFor={ `post-content-${ instanceId }` }
41
+ // eslint-disable-next-line jsx-a11y/label-has-associated-control
42
+ render={ <label htmlFor={ `post-content-${ instanceId }` } /> }
43
43
  >
44
44
  { __( 'Type text or HTML' ) }
45
45
  </VisuallyHidden>
@@ -12,7 +12,6 @@ import {
12
12
  MenuGroup,
13
13
  MenuItem,
14
14
  MenuItemsChoice,
15
- VisuallyHidden,
16
15
  Icon,
17
16
  } from '@wordpress/components';
18
17
  import { __ } from '@wordpress/i18n';
@@ -22,6 +21,7 @@ import { store as coreStore } from '@wordpress/core-data';
22
21
  import { store as preferencesStore } from '@wordpress/preferences';
23
22
  import { ActionItem } from '@wordpress/interface';
24
23
  import { store as blockEditorStore } from '@wordpress/block-editor';
24
+ import { VisuallyHidden } from '@wordpress/ui';
25
25
 
26
26
  /**
27
27
  * Internal dependencies
@@ -151,7 +151,7 @@ export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) {
151
151
  onClick={ onClose }
152
152
  >
153
153
  { __( 'View site' ) }
154
- <VisuallyHidden as="span">
154
+ <VisuallyHidden render={ <span /> }>
155
155
  {
156
156
  /* translators: accessibility text */
157
157
  __( '(opens in a new tab)' )
@@ -45,6 +45,7 @@ import EditorKeyboardShortcuts from '../global-keyboard-shortcuts';
45
45
  import PatternRenameModal from '../pattern-rename-modal';
46
46
  import PatternDuplicateModal from '../pattern-duplicate-modal';
47
47
  import TemplatePartMenuItems from '../template-part-menu-items';
48
+ import MediaEditorModalMount from '../media/media-editor-modal';
48
49
 
49
50
  const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );
50
51
  const { PatternsMenuItems } = unlock( editPatternsPrivateApis );
@@ -465,6 +466,9 @@ export const ExperimentalEditorProvider = withRegistryProvider(
465
466
  <StartTemplateOptions />
466
467
  <PatternRenameModal />
467
468
  <PatternDuplicateModal />
469
+ { window?.__experimentalMediaEditorModal && (
470
+ <MediaEditorModalMount />
471
+ ) }
468
472
  </>
469
473
  ) }
470
474
  </BlockEditorProviderComponent>
@@ -17,6 +17,7 @@ import {
17
17
  privateApis,
18
18
  store as blockEditorStore,
19
19
  } from '@wordpress/block-editor';
20
+ import { privateApis as mediaEditorPrivateApis } from '@wordpress/media-editor';
20
21
 
21
22
  /**
22
23
  * Internal dependencies
@@ -30,6 +31,8 @@ import { store as editorStore } from '../../store';
30
31
  import { unlock } from '../../lock-unlock';
31
32
  import { useGlobalStylesContext } from '../global-styles-provider';
32
33
 
34
+ const { store: mediaEditorStore } = unlock( mediaEditorPrivateApis );
35
+
33
36
  const EMPTY_OBJECT = {};
34
37
 
35
38
  function __experimentalReusableBlocksSelect( select ) {
@@ -107,6 +110,7 @@ const {
107
110
  isNavigationOverlayContextKey,
108
111
  isNavigationPostEditorKey,
109
112
  mediaUploadOnSuccessKey,
113
+ openMediaEditorModalKey,
110
114
  } = unlock( privateApis );
111
115
 
112
116
  /**
@@ -269,6 +273,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
269
273
  const { undo, setIsInserterOpened } = useDispatch( editorStore );
270
274
  const { editMediaEntity } = unlock( useDispatch( coreStore ) );
271
275
  const { saveEntityRecord } = useDispatch( coreStore );
276
+ const { openMediaEditorModal } = useDispatch( mediaEditorStore );
272
277
 
273
278
  /**
274
279
  * Creates a Post entity.
@@ -339,6 +344,10 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
339
344
  [ mediaEditKey ]: hasUploadPermissions
340
345
  ? editMediaEntity
341
346
  : undefined,
347
+ [ openMediaEditorModalKey ]: window?.__experimentalMediaEditorModal
348
+ ? ( { id, onUpdate } ) =>
349
+ openMediaEditorModal( { id, onUpdate } )
350
+ : undefined,
342
351
  mediaUpload: hasUploadPermissions ? mediaUpload : undefined,
343
352
  [ mediaUploadOnSuccessKey ]: hasUploadPermissions
344
353
  ? mediaUploadOnSuccess
@@ -435,6 +444,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
435
444
  globalStylesLinksData,
436
445
  renderingMode,
437
446
  editMediaEntity,
447
+ openMediaEditorModal,
438
448
  settings.onNavigateToEntityRecord,
439
449
  deviceType,
440
450
  allImageSizes,
@@ -15,21 +15,11 @@ const LOCK_NAME = 'upload-in-progress';
15
15
  /**
16
16
  * A hook that locks post saving and autosaving while media uploads are in progress.
17
17
  * This prevents users from publishing or saving while files are still uploading.
18
- *
19
- * Only active when client-side media processing is enabled.
20
18
  */
21
19
  export default function useUploadSaveLock() {
22
- const isClientSideMediaProcessingEnabled =
23
- window.__clientSideMediaProcessing;
24
-
25
20
  const isUploading = useSelect(
26
- ( select ) => {
27
- if ( ! isClientSideMediaProcessingEnabled ) {
28
- return false;
29
- }
30
- return select( uploadStore ).isUploading();
31
- },
32
- [ isClientSideMediaProcessingEnabled ]
21
+ ( select ) => select( uploadStore ).isUploading(),
22
+ []
33
23
  );
34
24
 
35
25
  const {
@@ -40,10 +30,6 @@ export default function useUploadSaveLock() {
40
30
  } = useDispatch( editorStore );
41
31
 
42
32
  useEffect( () => {
43
- if ( ! isClientSideMediaProcessingEnabled ) {
44
- return;
45
- }
46
-
47
33
  if ( isUploading ) {
48
34
  lockPostSaving( LOCK_NAME );
49
35
  lockPostAutosaving( LOCK_NAME );
@@ -57,7 +43,6 @@ export default function useUploadSaveLock() {
57
43
  unlockPostAutosaving( LOCK_NAME );
58
44
  };
59
45
  }, [
60
- isClientSideMediaProcessingEnabled,
61
46
  isUploading,
62
47
  lockPostSaving,
63
48
  unlockPostSaving,
@@ -3,11 +3,8 @@
3
3
  */
4
4
  import { __ } from '@wordpress/i18n';
5
5
  import { LEFT, RIGHT } from '@wordpress/keycodes';
6
- import {
7
- VisuallyHidden,
8
- Tooltip,
9
- __unstableMotion as motion,
10
- } from '@wordpress/components';
6
+ import { Tooltip, __unstableMotion as motion } from '@wordpress/components';
7
+ import { VisuallyHidden } from '@wordpress/ui';
11
8
 
12
9
  const DELTA_DISTANCE = 20; // The distance to resize per keydown in pixels.
13
10
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { __experimentalText as Text } from '@wordpress/components';
4
+ import { __experimentalText as WCText } from '@wordpress/components';
5
5
  import { useSelect } from '@wordpress/data';
6
6
  import { __, sprintf } from '@wordpress/i18n';
7
7
  import { humanTimeDiff } from '@wordpress/date';
@@ -24,13 +24,13 @@ export default function RevisionCreatedPanel() {
24
24
 
25
25
  return (
26
26
  <div className="editor-post-last-edited-panel">
27
- <Text>
27
+ <WCText>
28
28
  { sprintf(
29
29
  // translators: %s: Human-readable time difference, e.g. "2 days ago".
30
30
  __( 'Created %s.' ),
31
31
  humanTimeDiff( date )
32
32
  ) }
33
- </Text>
33
+ </WCText>
34
34
  </div>
35
35
  );
36
36
  }
@@ -9,7 +9,7 @@ import {
9
9
  Dropdown,
10
10
  RadioControl,
11
11
  __experimentalVStack as VStack,
12
- __experimentalText as Text,
12
+ __experimentalText as WCText,
13
13
  } from '@wordpress/components';
14
14
  import { useState, useMemo } from '@wordpress/element';
15
15
  import { __experimentalInspectorPopoverHeader as InspectorPopoverHeader } from '@wordpress/block-editor';
@@ -109,11 +109,11 @@ export default function SiteDiscussion() {
109
109
  onClose={ onClose }
110
110
  />
111
111
  <VStack spacing={ 3 }>
112
- <Text>
112
+ <WCText>
113
113
  { __(
114
114
  'Changes will apply to new posts only. Individual posts may override these settings.'
115
115
  ) }
116
- </Text>
116
+ </WCText>
117
117
  <RadioControl
118
118
  className="editor-site-discussion__options"
119
119
  hideLabelFromVision
@@ -11,7 +11,7 @@ import { BlockPreview } from '@wordpress/block-editor';
11
11
  import {
12
12
  PanelBody,
13
13
  Button,
14
- __experimentalText as Text,
14
+ __experimentalText as WCText,
15
15
  __experimentalHStack as HStack,
16
16
  __experimentalVStack as VStack,
17
17
  } from '@wordpress/components';
@@ -117,11 +117,11 @@ export default function ClassicThemeContent() {
117
117
  >
118
118
  <VStack>
119
119
  { ! templateId && (
120
- <Text>
120
+ <WCText>
121
121
  { __(
122
122
  'This page uses a classic template. To edit this template with blocks, create a block template.'
123
123
  ) }
124
- </Text>
124
+ </WCText>
125
125
  ) }
126
126
  { template && previewContent && (
127
127
  <div className="editor-template-actions-panel__preview">